/* CGPay钱包官网 - 全局样式 | 绿色主题 | 2026百度SEO优化 */
:root {
  --green: #1B8A4A;
  --green-dark: #145F34;
  --green-light: #E8F5E9;
  --green2: #2ECC71;
  --ink: #1A2E1F;
  --ink-light: #2E4A35;
  --gray: #5A7060;
  --gray-light: #F4F8F4;
  --border: #D6E8D9;
  --bg: #F6FAF6;
  --white: #FFFFFF;
  --gold: #C5A028;
  --gold-light: #FDF6E0;
  --font-serif: 'Noto Serif SC', serif;
  --font-sans: 'Noto Sans SC', sans-serif;
  --shadow-sm: 0 2px 8px rgba(27,138,74,0.06);
  --shadow-md: 0 8px 32px rgba(27,138,74,0.10);
  --shadow-lg: 0 24px 64px rgba(27,138,74,0.14);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: 0.22s ease;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--ink); line-height: 1.75; font-size: 15px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 700; color: var(--ink); line-height: 1.3; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3.5vw, 32px); }
h3 { font-family: var(--font-sans); font-size: clamp(16px, 2.5vw, 19px); font-weight: 500; }
p { color: var(--gray); line-height: 1.85; margin-bottom: 14px; }
p:last-child { margin-bottom: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* NAV */
.nav { background: var(--white); border-bottom: 2px solid var(--green-light); position: sticky; top: 0; z-index: 100; height: 64px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 36px; background: var(--green); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: white; font-family: var(--font-serif); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.logo-text { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--ink); }
.logo-text span { color: var(--green); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-light); transition: color var(--transition); white-space: nowrap; }
.nav-links a:hover, .nav-links a.active { color: var(--green); }
.nav-cta { background: var(--green); color: white; border: none; padding: 9px 22px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; cursor: pointer; font-family: var(--font-sans); transition: background var(--transition); white-space: nowrap; display: inline-block; }
.nav-cta:hover { background: var(--green-dark); color: white; }
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* BREADCRUMB */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb-list { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--gray); }
.breadcrumb-list a { color: var(--green); }
.breadcrumb-list a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border); }

/* BUTTONS */
.btn-primary { background: var(--green); color: white; padding: 13px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; transition: background var(--transition); display: inline-block; }
.btn-primary:hover { background: var(--green-dark); color: white; }
.btn-secondary { background: var(--white); color: var(--ink); padding: 13px 28px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 500; border: 1px solid var(--border); transition: border-color var(--transition), color var(--transition); display: inline-block; }
.btn-secondary:hover { border-color: var(--green); color: var(--green); }

/* HERO */
.hero { padding: 72px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--green-light); color: var(--green); font-size: 12px; font-weight: 500; padding: 5px 14px; border-radius: 20px; margin-bottom: 20px; }
.hero-badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.hero h1 { margin-bottom: 16px; }
.hero h1 span { color: var(--green); }
.hero-desc { font-size: 16px; color: var(--gray); line-height: 1.85; margin-bottom: 32px; max-width: 460px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; padding-top: 32px; border-top: 1px solid var(--border); }
.stat-num { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--ink); }
.stat-label { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* PHONE MOCKUP */
.phone-wrap { display: flex; justify-content: center; }
.phone { width: 256px; background: var(--ink); border-radius: 36px; padding: 14px; box-shadow: var(--shadow-lg); }
.phone-screen { background: #0A1A0F; border-radius: 24px; overflow: hidden; }
.phone-topbar { background: #111E15; padding: 12px 16px 10px; display: flex; justify-content: space-between; align-items: center; }
.phone-topbar-title { color: #70A080; font-size: 10px; letter-spacing: 1px; }
.phone-dot { color: #2ECC71; font-size: 9px; }
.phone-balance { background: var(--green); padding: 22px 16px 18px; text-align: center; }
.phone-bal-label { color: rgba(255,255,255,0.75); font-size: 10px; }
.phone-bal-num { color: white; font-family: var(--font-serif); font-size: 26px; font-weight: 700; margin: 4px 0; }
.phone-bal-change { color: rgba(255,255,255,0.8); font-size: 11px; }
.phone-actions { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: #1A2E1F; padding: 14px 10px; }
.phone-action { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.phone-action-icon { width: 34px; height: 34px; background: #1E3528; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.phone-action-icon svg { width: 15px; height: 15px; stroke: #70A080; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.phone-action-label { color: #405840; font-size: 9px; }
.phone-txlist { background: #0A1A0F; padding: 12px; }
.tx-header { color: #405840; font-size: 9px; letter-spacing: 1px; margin-bottom: 8px; }
.tx-item { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid #1A2E1F; }
.tx-item:last-child { border: none; }
.tx-left { display: flex; align-items: center; gap: 8px; }
.tx-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.tx-dot.in { background: #0E3D1E; color: #4ADE80; }
.tx-dot.out { background: #2E3A1E; color: #A3E635; }
.tx-name { color: #90C0A0; font-size: 10px; font-weight: 500; }
.tx-date { color: #304830; font-size: 8px; }
.tx-amt { font-size: 10px; font-weight: 500; }
.tx-amt.in { color: #4ADE80; }
.tx-amt.out { color: #A3E635; }

/* SECTION */
.section { padding: 72px 0; }
.section-bg { background: var(--white); }
.section-tag { font-size: 12px; font-weight: 500; color: var(--green); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px; }
.section-title { margin-bottom: 10px; }
.section-sub { font-size: 15px; color: var(--gray); max-width: 500px; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* FEATURE CARDS */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.feat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow var(--transition), transform var(--transition); }
.feat-card:hover { box-shadow: 0 8px 32px rgba(27,138,74,0.10); transform: translateY(-3px); }
.feat-icon { width: 48px; height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-icon.green { background: var(--green-light); }
.feat-icon.gold { background: var(--gold-light); }
.feat-icon.teal { background: #E0F7FA; }
.feat-icon svg { width: 22px; height: 22px; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.feat-icon.green svg { stroke: var(--green); }
.feat-icon.gold svg { stroke: var(--gold); }
.feat-icon.teal svg { stroke: #00838F; }
.feat-name { font-family: var(--font-sans); font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.feat-desc { font-size: 13px; color: var(--gray); line-height: 1.75; margin-bottom: 0; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; position: relative; }
.steps-grid::before { content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 1px; background: var(--border); }
.step { text-align: center; position: relative; }
.step-num { width: 64px; height: 64px; border-radius: 50%; background: var(--white); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--gray); position: relative; z-index: 1; transition: background var(--transition), border-color var(--transition), color var(--transition); }
.step.active .step-num, .step:hover .step-num { background: var(--green); border-color: var(--green); color: white; }
.step-title { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.step-desc { font-size: 12px; color: var(--gray); padding: 0 12px; margin-bottom: 0; }

/* NEWS GRID */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); display: block; color: inherit; }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card-img { height: 160px; display: flex; align-items: center; justify-content: center; }
.news-card-body { padding: 18px 20px; }
.news-card-cat { font-size: 11px; font-weight: 600; color: var(--green); letter-spacing: 1px; margin-bottom: 6px; }
.news-card-title { font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 6px; line-height: 1.5; }
.news-card-date { font-size: 12px; color: var(--gray); }

/* NEWS LIST */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-list-item { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; display: flex; gap: 16px; align-items: flex-start; transition: box-shadow .22s, transform .22s; color: inherit; text-decoration: none; }
.news-list-item:hover { box-shadow: 0 8px 28px rgba(27,138,74,0.09); transform: translateY(-2px); border-color: var(--green); }
.news-list-icon { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.news-list-body { flex: 1; }
.news-list-cat { font-size: 11px; font-weight: 600; color: var(--green); letter-spacing: 1px; margin-bottom: 4px; }
.news-list-title { font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 6px; line-height: 1.5; }
.news-list-desc { font-size: 13px; color: var(--gray); line-height: 1.65; margin-bottom: 6px; }
.news-list-meta { font-size: 12px; color: var(--gray); }

/* FAQ */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 20px 0; gap: 16px; user-select: none; }
.faq-icon { color: var(--green); font-size: 22px; font-weight: 300; transition: transform var(--transition); flex-shrink: 0; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { font-size: 14px; color: var(--gray); line-height: 1.85; padding-bottom: 20px; display: none; }
.faq-item.open .faq-a { display: block; }

/* ARTICLE */
.article-body h2 { font-size: 22px; margin: 36px 0 14px; color: var(--ink); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-family: var(--font-sans); font-size: 17px; font-weight: 500; color: var(--ink); margin: 24px 0 10px; }
.article-body p { font-size: 15px; color: var(--gray); line-height: 1.9; margin-bottom: 14px; }
.article-body ul, .article-body ol { padding-left: 20px; margin-bottom: 14px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { font-size: 15px; color: var(--gray); line-height: 1.85; margin-bottom: 8px; }
.article-body li::marker { color: var(--green); }
.kw { color: var(--green); font-weight: 500; }
.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.article-tag { background: var(--green-light); color: var(--green); font-size: 11px; font-weight: 500; padding: 4px 12px; border-radius: 4px; }
.article-meta { font-size: 12px; color: var(--gray); margin-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; }

/* TABLE */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--gray-light); color: var(--ink); font-weight: 500; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--gray); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--green-light); }

/* NOTICE */
.notice { background: var(--green-light); border-left: 3px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; margin: 20px 0; font-size: 14px; color: var(--ink-light); }

/* RELATED */
.related-links { display: flex; flex-direction: column; gap: 8px; }
.related-link { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg); border-radius: var(--radius-sm); font-size: 13px; color: var(--gray); transition: background var(--transition), color var(--transition); }
.related-link:hover { background: var(--green-light); color: var(--green); }
.related-link::before { content: "→"; color: var(--green); flex-shrink: 0; }

/* CTA */
.cta-section { background: var(--green); padding: 72px 0; text-align: center; }
.cta-title { color: white; margin-bottom: 12px; }
.cta-sub { color: rgba(255,255,255,0.85); font-size: 16px; margin-bottom: 32px; }
.cta-btn { background: white; color: var(--green); padding: 14px 38px; border-radius: var(--radius-sm); font-size: 16px; font-weight: 700; display: inline-block; transition: opacity var(--transition); }
.cta-btn:hover { opacity: 0.92; color: var(--green); }

/* SIDEBAR */
.content-sidebar-grid { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.sidebar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 84px; }
.sidebar-card + .sidebar-card { margin-top: 16px; position: static; }
.sidebar-card h4 { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.sidebar-links li { margin-bottom: 8px; }
.sidebar-links a { font-size: 13px; color: var(--gray); transition: color var(--transition); }
.sidebar-links a:hover { color: var(--green); }

/* PAGE HERO */
.page-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 48px 0; }
.page-hero h1 { margin-bottom: 10px; }
.page-hero-desc { font-size: 16px; color: var(--gray); margin-bottom: 0; max-width: 560px; }

/* DOWNLOAD */
.download-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.download-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; }
.download-card.featured { border: 2px solid var(--green); }
.dl-badge { background: var(--green); color: white; font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 4px; display: inline-block; margin-bottom: 10px; }
.dl-icon { font-size: 48px; margin-bottom: 14px; }
.dl-title { font-family: var(--font-sans); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.dl-desc { font-size: 13px; color: var(--gray); margin-bottom: 20px; }

/* FOOTER */
footer { background: var(--ink); color: #8AA890; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: white; margin-bottom: 10px; }
.footer-brand span { color: #2ECC71; }
.footer-desc { font-size: 13px; line-height: 1.8; margin-bottom: 0; color: #8AA890; }
.footer-col h4 { font-family: var(--font-sans); font-size: 13px; font-weight: 500; color: white; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #8AA890; font-size: 13px; transition: color var(--transition); }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid #2E4A35; padding-top: 22px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-copy, .footer-beian { font-size: 12px; color: #506050; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 64px; left: 0; right: 0; background: var(--white); padding: 20px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); gap: 16px; z-index: 99; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone-wrap { order: -1; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .news-grid { grid-template-columns: 1fr; }
  .content-sidebar-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .download-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
