/* ============================================================
   网虫科技 WANGCHONG TECH · 企业级设计系统
   方向：Structured Confidence —— 深海军蓝 + 金，克制、可信
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
    --ink:        #0a1424;
    --ink-2:      #101f38;
    --ink-3:      #182c4d;
    --paper:      #ffffff;
    --bg:         #f4f6fa;
    --text:       #16233a;
    --muted:      #5d6f88;
    --muted-2:    #8a97ab;
    --line:       #e2e8f2;
    --gold:       #c9a13c;
    --gold-dark:  #ad8826;
    --green:      #0e9f64;
    --red:        #cf4a2c;
    --r:          8px;
}

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.page { max-width: 1080px; margin: 0 auto; background: var(--paper); }

a { text-decoration: none; color: inherit; }

/* ===== SVG 图标体系 ===== */
.ic {
    width: 22px; height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.ic-lg { width: 30px; height: 30px; }
.ic-xl { width: 42px; height: 42px; }

/* ===== 顶部导航 ===== */
.topnav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10, 20, 36, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.topnav-inner {
    max-width: 1080px; margin: 0 auto;
    height: 60px;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand-mark {
    width: 34px; height: 34px;
    border: 1.5px solid var(--gold);
    color: var(--gold);
    font-weight: 800;
    font-size: 17px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 6px;
    letter-spacing: 0;
}
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: 1px; }
.brand-sub {
    font-size: 9.5px;
    color: rgba(255,255,255,.45);
    letter-spacing: 2.5px;
    display: block;
    line-height: 1;
    margin-top: 2px;
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
    color: rgba(255,255,255,.65);
    font-size: 13.5px;
    padding: 7px 14px;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,.08); }

/* ===== 暗色 Hero ===== */
.hero-dark {
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,161,60,.13), transparent 60%),
        var(--ink);
    position: relative;
    overflow: hidden;
}
.hero-dark::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
}
.hero-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 88px 24px 96px;
    text-align: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.eyebrow::before, .eyebrow::after {
    content: '';
    width: 26px; height: 1px;
    background: var(--gold);
    opacity: .55;
}
.hero-inner h1 {
    color: #fff;
    font-size: clamp(30px, 5.6vw, 50px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 1px;
}
.hero-inner .lead {
    color: rgba(255,255,255,.66);
    font-size: clamp(14px, 2vw, 16.5px);
    max-width: 620px;
    margin: 18px auto 0;
}

/* ===== 指标带 ===== */
.metrics {
    position: relative;
    background: var(--ink-2);
    border-top: 1px solid rgba(255,255,255,.07);
}
.metrics-inner {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.metric {
    padding: 26px 10px;
    text-align: center;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.07);
}
.metric:last-child { border-right: none; }
.metric .ic { color: var(--gold); margin: 0 auto 9px; display: block; }
.metric .m-val { font-size: 14.5px; font-weight: 700; letter-spacing: .5px; }
.metric .m-desc { font-size: 11.5px; color: rgba(255,255,255,.45); margin-top: 2px; }

/* ===== 浅底章节 ===== */
.section-light { background: var(--bg); padding: 76px 24px; }
.section-white { background: var(--paper); padding: 76px 24px; border-top: 1px solid var(--line); }
.wrap { max-width: 880px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 46px; }
.sec-head .eyebrow { color: var(--gold-dark); }
.sec-head .eyebrow::before, .sec-head .eyebrow::after { background: var(--gold-dark); }
.sec-head h2 {
    font-size: clamp(24px, 3.6vw, 32px);
    font-weight: 800;
    letter-spacing: 1px;
}
.sec-head p { color: var(--muted); font-size: 14.5px; margin-top: 12px; }

/* ===== 产品矩阵卡片 ===== */
.p-list { display: flex; flex-direction: column; gap: 22px; max-width: 880px; margin: 0 auto; }
.p-card {
    position: relative;
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 26px;
    align-items: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 32px 34px;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.p-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,161,60,.55);
    box-shadow: 0 18px 44px rgba(16, 31, 56, .1);
}
.p-card.dark {
    background: var(--ink);
    border-color: var(--ink-3);
    color: #fff;
}
.p-card.dark:hover { border-color: var(--gold); box-shadow: 0 18px 44px rgba(10,20,36,.35); }
.p-num {
    font-size: 46px;
    font-weight: 800;
    color: #e6ebf4;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.p-card.dark .p-num { color: rgba(201,161,60,.85); }
.p-body h3 { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.p-body .p-en {
    font-size: 10.5px;
    color: var(--muted-2);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 3px;
    font-weight: 700;
}
.p-card.dark .p-en { color: rgba(255,255,255,.4); }
.p-body p { font-size: 14px; color: var(--muted); margin-top: 10px; max-width: 560px; }
.p-card.dark .p-body p { color: rgba(255,255,255,.62); }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.p-tag {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--line);
    padding: 3px 11px;
    border-radius: 4px;
    letter-spacing: .5px;
}
.p-card.dark .p-tag { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.18); }
.p-arrow {
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted-2);
    transition: all .25s;
}
.p-card:hover .p-arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.p-card.dark .p-arrow { border-color: rgba(255,255,255,.25); color: rgba(255,255,255,.7); }
.p-card.dark:hover .p-arrow { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.p-badge {
    position: absolute;
    top: 0; right: 28px;
    background: var(--gold);
    color: var(--ink);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 4px 12px 5px;
    border-radius: 0 0 5px 5px;
}

/* ===== 按钮 ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    padding: 14px 38px;
    border-radius: 6px;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: transform .18s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 26px rgba(201,161,60,.35); }
.btn-gold:hover { background: #d4af4e; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(14,159,100,.32); }
.btn-green:hover { background: #10b370; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== 子页面 Hero ===== */
.sub-hero {
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,161,60,.12), transparent 60%),
        var(--ink);
    position: relative;
    overflow: hidden;
}
.sub-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 75%);
}
.sub-hero-inner {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding: 52px 24px 72px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,.6);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 34px;
    transition: color .2s;
}
.back-link:hover { color: var(--gold); }
.sub-hero h1 {
    color: #fff;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 1px;
}
.sub-hero .lead {
    color: rgba(255,255,255,.64);
    font-size: 15.5px;
    max-width: 640px;
    margin-top: 16px;
}
.sub-hero .hero-cta { justify-content: flex-start; margin-top: 30px; }
.sub-hero .url-hint {
    color: rgba(255,255,255,.4);
    font-size: 12.5px;
    letter-spacing: .5px;
    margin-top: 14px;
}

/* ===== 功能网格 ===== */
.f-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.f-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 26px 22px;
    transition: transform .22s, border-color .22s, box-shadow .22s;
}
.f-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201,161,60,.5);
    box-shadow: 0 14px 34px rgba(16,31,56,.08);
}
.f-icon {
    width: 46px; height: 46px;
    border-radius: 8px;
    background: var(--ink);
    color: var(--gold);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.f-card.green .f-icon { background: var(--green); color: #fff; }
.f-card h4 { font-size: 15.5px; font-weight: 700; letter-spacing: .5px; }
.f-card p { font-size: 13px; color: var(--muted); margin-top: 7px; }

/* ===== 流程步骤 ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: step;
}
.step { position: relative; padding-top: 18px; }
.step::before {
    content: '';
    position: absolute;
    top: 39px; left: 52px; right: -10px;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px);
}
.step:last-child::before { display: none; }
.step-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
    font-weight: 800;
    font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--paper);
    margin-bottom: 14px;
    font-variant-numeric: tabular-nums;
}
.step h5 { font-size: 14.5px; font-weight: 700; }
.step p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ===== 深色信任带 ===== */
.trust {
    background: var(--ink);
    color: #fff;
    padding: 64px 24px;
}
.trust-inner { max-width: 880px; margin: 0 auto; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.trust-item .ic { color: var(--gold); margin-bottom: 14px; }
.trust-item h4 { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.trust-item p { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 7px; }

/* ===== 最终 CTA ===== */
.final-cta {
    background:
        radial-gradient(ellipse 70% 90% at 50% 110%, rgba(201,161,60,.16), transparent 60%),
        var(--ink-2);
    text-align: center;
    padding: 84px 24px;
}
.final-cta h2 { color: #fff; font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: 1px; }
.final-cta p { color: rgba(255,255,255,.6); font-size: 14.5px; margin: 14px 0 30px; }

/* ===== 页脚 ===== */
.footer {
    background: #070e1c;
    color: rgba(255,255,255,.55);
    padding: 44px 24px 30px;
}
.footer-inner {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}
.footer .brand { color: #fff; }
.footer-links { display: flex; gap: 22px; font-size: 13px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--gold); }
.footer-copy {
    max-width: 880px;
    margin: 26px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: 12px;
    color: rgba(255,255,255,.32);
    letter-spacing: .5px;
}

/* ===== 浏览器产品示意 ===== */
.mockup {
    max-width: 760px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ink-3);
    box-shadow: 0 30px 70px rgba(0,0,0,.45);
    background: var(--paper);
}
.mockup-bar {
    background: var(--ink-2);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-url {
    flex: 1;
    margin-left: 10px;
    background: rgba(255,255,255,.08);
    border-radius: 5px;
    height: 26px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 12px;
    color: rgba(255,255,255,.75);
    letter-spacing: .3px;
}
.mockup-body { padding: 26px; background: linear-gradient(180deg,#f6f8fc,#eef2f9); display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.mock-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.mock-line { height: 10px; border-radius: 5px; background: #e7ecf4; margin-bottom: 10px; }
.mock-line.gold { background: linear-gradient(90deg, var(--gold), #e0c068); width: 55%; }
.mock-line.short { width: 60%; }
.mock-btn { height: 34px; border-radius: 6px; background: var(--ink); margin-top: 8px; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; }

/* ===== 小程序截图 ===== */
.shots { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.shot {
    width: 210px;
    border-radius: 22px;
    border: 7px solid var(--ink);
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(10,20,36,.22);
    background: var(--ink);
}
.shot img { width: 100%; display: block; }
.shot-cap {
    font-size: 12px;
    text-align: center;
    padding: 9px 4px;
    color: rgba(255,255,255,.7);
    background: var(--ink);
    letter-spacing: 1px;
}

/* ===== 工具网格（小程序） ===== */
.tool-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.tool {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 18px 6px 14px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text);
    transition: border-color .2s, transform .2s;
}
.tool:hover { border-color: rgba(14,159,100,.5); transform: translateY(-2px); }
.tool .ic { color: var(--green); margin: 0 auto 8px; display: block; }

/* ===== 弹窗 ===== */
.modal-mask {
    position: fixed; inset: 0;
    background: rgba(7, 14, 28, .72);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 28px;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 340px;
    padding: 30px 26px 26px;
    text-align: center;
    position: relative;
    animation: pop .24s ease;
}
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-close {
    position: absolute; top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
}
.modal h4 { font-size: 19px; font-weight: 800; letter-spacing: 1px; }
.modal .modal-tip { font-size: 13px; color: var(--muted); margin: 8px 0 18px; }
.qr-box {
    background: #f6f8fb;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    display: inline-block;
    line-height: 0;
}
.qr-box img { width: 224px; height: 224px; border-radius: 6px; }
.qr-fallback {
    width: 224px; height: 224px;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted-2);
    font-size: 12.5px;
    line-height: 1.8; text-align: center; padding: 14px;
}
.modal-foot { font-size: 12px; color: var(--muted-2); margin-top: 16px; letter-spacing: .5px; }
.modal-foot b { color: var(--green); }

/* ===== 赞赏页 ===== */
.donate-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 44px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(16,31,56,.07);
}
.amounts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0 30px; }
.amount {
    border: 1.5px solid var(--line);
    background: #fff;
    border-radius: 6px;
    padding: 11px 0;
    width: 88px;
    font-size: 15px;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    transition: all .18s;
}
.amount.active {
    border-color: var(--gold);
    color: var(--gold-dark);
    background: #fdf8ea;
}
.pay-qr {
    display: inline-block;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    line-height: 0;
    margin-bottom: 16px;
}
.pay-qr img { width: 230px; height: 230px; border-radius: 6px; }
.donate-note { font-size: 14px; font-weight: 700; color: var(--text); letter-spacing: .5px; }
.tip-list { max-width: 560px; margin: 26px auto 0; }
.tip-list li {
    list-style: none;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 13.5px;
    color: var(--muted);
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.tip-list li:last-child { border-bottom: none; }
.tip-list .ic { color: var(--gold-dark); width: 18px; height: 18px; margin-top: 3px; }

/* ===== 移动端底部 CTA ===== */
.mobile-cta {
    display: none;
    position: fixed; bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 100%; max-width: 1080px;
    background: rgba(10,20,36,.95);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
}
.mobile-cta .btn { width: 100%; }

/* ===== 入场动效（无 JS 依赖，降级安全） ===== */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise .7s cubic-bezier(.22,.61,.36,1) both; }
.rise-1 { animation-delay: .08s; }
.rise-2 { animation-delay: .18s; }
.rise-3 { animation-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
    .rise { animation: none; }
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .f-grid { grid-template-columns: repeat(2, 1fr); }
    .tool-grid { grid-template-columns: repeat(4, 1fr); }
    .trust-grid { grid-template-columns: 1fr; gap: 24px; }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
    .step::before { display: none; }
    .mockup-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .metrics-inner { grid-template-columns: repeat(2, 1fr); }
    .metric:nth-child(2) { border-right: none; }
    .metric { border-bottom: 1px solid rgba(255,255,255,.07); }
    .metric:nth-child(3), .metric:nth-child(4) { border-bottom: none; }
    .p-card { grid-template-columns: 1fr; gap: 14px; padding: 26px 22px; }
    .p-num { font-size: 34px; }
    .p-arrow { position: absolute; right: 20px; bottom: 24px; width: 40px; height: 40px; }
    .f-grid { grid-template-columns: 1fr; }
    .tool-grid { grid-template-columns: repeat(3, 1fr); }
    .steps { grid-template-columns: 1fr 1fr; }
    .hero-inner { padding: 64px 22px 72px; }
    .section-light, .section-white { padding: 56px 20px; }
    .sub-hero-inner { padding: 40px 22px 120px; }
    .mobile-cta { display: block; }
    .sub-hero .hero-cta { display: none; }
    .donate-card { padding: 32px 22px; }
    .footer-inner { flex-direction: column; }
}
