/* ============================================================
   TradeLock Pro · 官网公共样式（预览入口页 / 模块 B 上传复盘 / 模块 C 帮助）
   风格：干净整洁大气（深藏青 + 白底 + 克制的金色点缀）
   ============================================================ */

:root {
    --navy: #0F2A4A;
    --navy-deep: #0A1D33;
    --ink: #14263C;
    --muted: #5C6E85;
    --line: #E4E9F0;
    --bg: #FFFFFF;
    --bg-alt: #F6F8FB;
    --accent: #1D6FB8;
    --gold: #C0973C;
    --ok: #1F7A4D;
    --warn: #9A6B12;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 42, 74, .06), 0 4px 14px rgba(15, 42, 74, .05);
    --shadow-md: 0 10px 34px rgba(15, 42, 74, .10);
    --font-sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部导航 ---------- */
.site-nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(150%) blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
    display: flex; align-items: center; gap: 18px;
    min-height: 70px;
}
.site-nav .brand { display: flex; align-items: center; gap: 12px; }
.site-nav .brand img { height: 34px; width: auto; display: block; }
.site-nav .brand-name { font-weight: 700; letter-spacing: .2px; color: var(--navy); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 26px; border-radius: 999px;
    font-size: 15px; font-weight: 600; line-height: 1;
    border: 1px solid transparent; cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- 通用区块 ---------- */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
    font-size: 12.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--gold); margin: 0 0 14px;
}
h1, h2, h3 { color: var(--navy); line-height: 1.25; margin: 0 0 14px; }
h1 { font-size: 42px; letter-spacing: -.4px; }
h2 { font-size: 27px; }
h3 { font-size: 18px; }
p { margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--muted); text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---------- 页面头 ---------- */
.page-head { padding: 46px 0 26px; }
.page-head h1 { font-size: 34px; margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 720px; }

/* ---------- 卡片 ---------- */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card h3 { margin-bottom: 10px; }

/* ---------- 模块 B · 拖放区 ---------- */
.dropzone {
    border: 2px dashed #C3CEDC; border-radius: 18px; background: var(--bg-alt);
    padding: 46px 24px; text-align: center; cursor: pointer;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.dropzone:hover { border-color: var(--accent); background: #EFF5FC; }
.dropzone.dragging { border-color: var(--accent); background: #E7F1FB; transform: scale(1.005); }
.dropzone .dz-title { font-size: 19px; font-weight: 650; color: var(--navy); margin-bottom: 8px; }
.dropzone .dz-sub { color: var(--muted); font-size: 14px; }
.dropzone .dz-link { color: var(--accent); font-weight: 600; text-decoration: underline; }
.dz-badge {
    display: inline-block; margin-bottom: 16px; padding: 4px 12px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); color: var(--muted);
    font-size: 12px; font-weight: 600; letter-spacing: .6px;
}
.file-meta {
    display: none; align-items: center; gap: 10px; margin-top: 14px;
    padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line);
    font-size: 13.5px; color: var(--muted);
}
.file-meta.on { display: flex; }
.file-meta .fname { color: var(--ink); font-weight: 600; }

.notice {
    margin-top: 14px; padding: 12px 16px; border-radius: 10px;
    font-size: 13.5px; background: #FFF8E8; border: 1px solid #F0DFAE; color: #7A5A12;
}
.notice.err { background: #FDEEEE; border-color: #F3C3C3; color: #8E2A2A; }
.notice.ok { background: #EEF7F1; border-color: #C3E0CD; color: #17593A; }

.session-line {
    display: flex; align-items: center; gap: 8px; margin-top: 12px;
    font-size: 13px; color: var(--muted);
}
.session-line .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- 报告区 ---------- */
.report { display: none; margin-top: 30px; }
.report.on { display: block; }
.report-head {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px;
    padding-bottom: 14px; border-bottom: 2px solid var(--navy); margin-bottom: 22px;
}
.report-head .product { font-size: 22px; font-weight: 700; color: var(--navy); }
.report-head .tag {
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted);
}
.section-title {
    display: flex; align-items: center; gap: 10px; margin: 30px 0 14px;
    font-size: 13px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold);
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.finding {
    border: 1px solid var(--line); border-left: 4px solid var(--navy);
    border-radius: 12px; padding: 18px 20px; background: #fff; margin-bottom: 14px;
}
.finding.rank-1 { border-left-color: var(--gold); }
.finding .f-plain { font-size: 16.5px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.finding .f-block { margin-top: 10px; }
.finding .f-label {
    font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.finding .f-block p { margin: 4px 0 0; font-size: 14.5px; color: var(--ink); }

.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.charts-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.charts-row-half { grid-template-columns: 1fr 1fr; }
.chart-box {
    background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px;
    box-shadow: 0 1px 3px rgba(10,37,64,.04), 0 8px 24px -12px rgba(10,37,64,.1);
    display: flex; flex-direction: column; height: 240px;
}
.chart-box.h-lg { height: 320px; }
.chart-box.h-md { height: 240px; }
.chart-box.h-sm { height: 190px; }
.chart-canvas { position: relative; flex: 1 1 auto; min-height: 0; }
.chart-box canvas { display: block; width: 100% !important; height: 100% !important; }
.chart-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 9px; padding-bottom: 8px; border-bottom: 1px solid rgba(15,34,58,.07);
    font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: #8794A3; flex-wrap: wrap;
}
.chart-head .chart-head-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.chart-head .pill { font-size: 10px; padding: 2px 7px; letter-spacing: .02em; text-transform: none; font-weight: 600; }
.chart-footnote { font-size: 10.5px; color: #98A4B1; margin-top: 7px; line-height: 1.5; }
.chart-box-half { grid-column: span 1; }

/* ===== 深度分析 · 执行看板与六维度 ===== */
.dash-board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.dash-tile {
    padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(31,174,206,.22);
    background: linear-gradient(180deg, #F7FCFD 0%, #FFFFFF 100%);
}
.dash-k { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: #6C7C8C; font-weight: 600; }
.dash-v { font-family: "SFMono-Regular", Consolas, monospace; font-size: 22px; font-weight: 700; color: #0F223A; margin-top: 6px; line-height: 1.1; }
.dash-s { font-size: 10px; color: #98A4B1; margin-top: 4px; }

.dim-block {
    margin-top: 18px; padding: 18px 20px 20px; background: #fff;
    border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 1px 3px rgba(10,37,64,.04), 0 8px 24px -12px rgba(10,37,64,.1);
}
.dim-head { display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(15,34,58,.07); }
.dim-num { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11px; font-weight: 700; color: #1FAECE; letter-spacing: .08em; }
.dim-name { font-size: 15px; font-weight: 700; color: #0F223A; }
.dim-en { font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; letter-spacing: .16em; color: #9AA6B3; }
.dim-count { margin-left: auto; font-size: 10.5px; color: #98A4B1; letter-spacing: .04em; }

.kpi-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; margin-top: 14px;
    background: rgba(15,34,58,.06); border: 1px solid rgba(15,34,58,.06); border-radius: 8px; overflow: hidden;
}
.kpi-grid.k2 { grid-template-columns: repeat(2, 1fr); }
.kpi-grid.k3 { grid-template-columns: repeat(3, 1fr); }
.kpi-grid.k4 { grid-template-columns: repeat(4, 1fr); }
.kpi-grid.k5 { grid-template-columns: repeat(5, 1fr); }
.kpi-grid.k6 { grid-template-columns: repeat(6, 1fr); }
.kpi { background: #fff; padding: 10px 12px; }
.kpi-k { font-size: 10px; color: #8794A3; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }
.kpi-v { font-family: "SFMono-Regular", Consolas, monospace; font-size: 15px; font-weight: 700; color: #0F223A; margin-top: 4px; line-height: 1.25; word-break: break-word; }
.kpi-s { font-size: 10px; color: #98A4B1; margin-top: 2px; }
.kpi-good .kpi-v { color: #0E9F6E; }
.kpi-bad .kpi-v { color: #DC2626; }
.kpi-warn .kpi-v { color: #D97706; }

.charts-row.one { grid-template-columns: 1fr; }

@media (max-width: 820px) {
    .kpi-grid.k2, .kpi-grid.k3, .kpi-grid.k4, .kpi-grid.k5, .kpi-grid.k6 { grid-template-columns: repeat(2, 1fr); }
    .dash-board { grid-template-columns: repeat(2, 1fr); }
}

.pill {
    display: inline-block; font-size: 11px; padding: 3px 8px; border-radius: 999px;
    background: #F1F5F9; color: #0A2540; font-weight: 500; white-space: nowrap;
}
.pill-accent { background: #0A2540; color: #fff; }
.small { font-size: 11px; }
.muted { color: #94A3B8; }
@media (max-width: 680px) {
    .charts-row { grid-template-columns: 1fr; }
    .chart-box.h-lg { height: 280px; }
    .chart-box.h-md { height: 220px; }
}
.kv {
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.kv .k { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.kv .v { font-size: 20px; font-weight: 700; color: var(--navy); margin-top: 4px; }

.ov-row {
    display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 10px;
    padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: baseline;
}
.ov-row:last-child { border-bottom: 0; }
.ov-row .lbl { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.ov-row .plan { font-size: 14.5px; color: var(--ink); }
.ov-row .act { font-size: 14.5px; color: var(--ink); }
.ov-row .act.diff { color: var(--warn); font-weight: 700; }
.ov-head { font-size: 12px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.main-change {
    margin-top: 14px; padding: 12px 16px; border-radius: 10px;
    background: #F3F7FC; border: 1px solid #D8E5F3; font-size: 14.5px; color: var(--navy); font-weight: 600;
}

.item-list { list-style: none; margin: 0; padding: 0; }
.item-list li {
    display: grid; grid-template-columns: 150px 1fr; gap: 12px;
    padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px;
}
.item-list li:last-child { border-bottom: 0; }
.item-list .lbl { color: var(--muted); font-weight: 600; }

.pill {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: #EEF4FB; color: var(--navy); border: 1px solid #D8E5F3; margin: 0 6px 6px 0;
}
.pill.warn { background: #FFF8E8; color: #7A5A12; border-color: #F0DFAE; }

.bullets { margin: 0; padding-left: 18px; }
.bullets li { margin-bottom: 6px; font-size: 14.5px; }

.disclosure {
    margin-top: 20px; padding: 14px 18px; border-radius: 12px;
    background: var(--bg-alt); border: 1px solid var(--line); font-size: 13px; color: var(--muted);
}

/* ---------- 模块 C · 步骤与 FAQ ---------- */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
    position: relative; padding: 20px 22px 18px 66px; border: 1px solid var(--line);
    border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm);
}
.step::before {
    counter-increment: step; content: counter(step);
    position: absolute; left: 20px; top: 20px;
    width: 32px; height: 32px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--navy); color: #fff; font-weight: 700; font-size: 15px;
}
.step .s-en { font-size: 17px; font-weight: 650; color: var(--navy); }
.step .s-zh { font-size: 14px; color: var(--muted); margin-top: 4px; }

.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.faq + .faq { margin-top: 12px; }
.faq summary {
    cursor: pointer; list-style: none; padding: 16px 20px;
    font-size: 15.5px; font-weight: 650; color: var(--navy);
    display: flex; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--muted); font-weight: 400; font-size: 20px; }
.faq[open] summary::after { content: "−"; }
.faq .faq-body { padding: 0 20px 18px; }
.faq .faq-body p { font-size: 14.5px; margin-bottom: 8px; }
.faq .faq-body .zh { color: var(--muted); font-size: 13.5px; }

/* ---------- 页脚 ---------- */
.site-foot {
    margin-top: 60px; padding: 30px 0 34px;
    border-top: 1px solid var(--line); background: var(--bg-alt);
}
.site-foot .foot-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 26px;
    font-size: 13.5px; color: var(--muted); text-align: center;
}
.site-foot .foot-row .spacer { display: none; }
.site-foot .tagline { font-weight: 600; color: var(--navy); }
.site-foot .rule { font-weight: 600; color: var(--navy); letter-spacing: .3px; }

/* ---------- 预览入口页 ---------- */
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.preview-card {
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    background: #fff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.preview-card .thumb { height: 150px; display: grid; place-items: center; font-weight: 700; color: #fff; }
.preview-card .thumb.a { background: linear-gradient(135deg, #F7F9FC 0%, #DDE6F0 100%); color: var(--navy); }
.preview-card .thumb.b { background: linear-gradient(135deg, #06121F 0%, #0E2A45 100%); color: #7FD3E8; }
.preview-card .body { padding: 18px 20px 20px; }
.preview-card h3 { margin-bottom: 6px; }
.preview-card p { font-size: 14px; color: var(--muted); }

@media (max-width: 820px) {
    h1 { font-size: 32px; }
    .preview-grid { grid-template-columns: 1fr; }
    .item-list li { grid-template-columns: 1fr; gap: 2px; }
    .ov-row { grid-template-columns: 1fr 1fr 1fr; font-size: 13px; }
}
