/* nanti.adbyte.cn — 生产难题求解台
   设计语言：工业克制 + 可信赖。深石板蓝底 / 暖琥珀强调 / 亮白卡。
   ----------------------------------------------------------------------- */

:root {
    --bg: #0f172a;
    --bg-2: #111c33;
    --surface: #ffffff;
    --surface-2: #f6f8fc;
    --ink: #0b1b34;
    --ink-2: #475569;
    --ink-3: #94a3b8;
    --line: #e2e8f0;
    --brand: #1e3a8a;
    --brand-2: #2563eb;
    --amber: #d97706;
    --amber-2: #f59e0b;
    --green: #059669;
    --red: #dc2626;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 4px 8px rgba(15, 23, 42, .08), 0 24px 48px rgba(15, 23, 42, .12);
    --maxw: 1080px;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    color: var(--ink);
    background: var(--surface-2);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { color: var(--amber); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ── 顶栏 ─────────────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; height: 60px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand .logo {
    width: 28px; height: 28px; border-radius: 7px;
    background: linear-gradient(135deg, var(--brand-2), var(--brand));
    display: grid; place-items: center; color: #fff; font-size: 15px; font-weight: 800;
}
.brand .name { font-size: 17px; }
.brand .name small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: .5px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
    color: var(--ink-2); font-size: 14px; font-weight: 500;
    padding: 7px 12px; border-radius: 8px;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-cta {
    background: var(--ink); color: #fff !important; padding: 8px 16px; border-radius: 9px; font-size: 14px; font-weight: 600;
}
.nav-cta:hover { background: var(--brand); color: #fff !important; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    background:
        radial-gradient(900px 360px at 82% -10%, rgba(37, 99, 235, .22), transparent 60%),
        radial-gradient(700px 320px at 8% 0%, rgba(245, 158, 11, .14), transparent 55%),
        linear-gradient(180deg, #0b1426 0%, var(--bg) 100%);
    color: #e8eefc;
    padding: 64px 0 56px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    color: #fcd34d; border: 1px solid rgba(245, 158, 11, .4);
    padding: 4px 12px; border-radius: 999px; background: rgba(245, 158, 11, .08);
}
.hero h1 {
    font-size: 40px; line-height: 1.2; margin: 18px 0 14px; font-weight: 800; letter-spacing: -.5px;
    max-width: 720px;
}
.hero h1 .hl { color: var(--amber-2); }
.hero p.lead { font-size: 17px; color: #c2cce4; max-width: 620px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 10px; font-size: 15px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.btn-primary { background: var(--amber-2); color: #1a1407; }
.btn-primary:hover { background: #fbbf24; color: #1a1407; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .06); color: #e8eefc; border-color: rgba(255, 255, 255, .18); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand); color: #fff; }
.btn-block { display: flex; justify-content: center; width: 100%; }

.hero-meta { margin-top: 30px; display: flex; gap: 28px; flex-wrap: wrap; font-size: 13px; color: #9fb0d4; }
.hero-meta b { color: #fff; font-size: 15px; }

/* ── 通用 section ───────────────────────────────────────────── */
.section { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { font-size: 28px; margin: 0 0 10px; font-weight: 800; letter-spacing: -.3px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 16px; }
.section.alt { background: #fff; border-block: 1px solid var(--line); }

/* ── 三步 how ─────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); position: relative;
}
.step .num {
    position: absolute; top: -14px; left: 22px;
    background: var(--brand); color: #fff; font-weight: 800; font-size: 13px;
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
}
.step h3 { margin: 6px 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ── 难题卡 ────────────────────────────────────────────────── */
.toolbar {
    display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px;
}
.toolbar .search {
    flex: 1; min-width: 200px; position: relative;
}
.toolbar input[type=text] {
    width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--line);
    border-radius: 10px; font-size: 14px; background: var(--surface); color: var(--ink);
    box-shadow: var(--shadow);
}
.toolbar input[type=text]:focus { outline: 2px solid rgba(37, 99, 235, .3); border-color: var(--brand-2); }
.toolbar .search .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink-2); cursor: pointer; font-weight: 500;
}
.chip:hover { border-color: var(--brand-2); color: var(--brand-2); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
    transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card .tags { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag {
    font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px;
}
.tag.cat { background: rgba(37, 99, 235, .1); color: var(--brand-2); }
.tag.diff-l { background: rgba(5, 150, 105, .12); color: var(--green); }
.tag.diff-m { background: rgba(245, 158, 11, .14); color: var(--amber); }
.tag.diff-h { background: rgba(220, 38, 38, .12); color: var(--red); }
.tag.src { background: var(--surface-2); color: var(--ink-3); border: 1px solid var(--line); }
.card h3 { margin: 0; font-size: 18px; line-height: 1.4; }
.card .pain { color: var(--ink-2); font-size: 14.5px; margin: 0; }
.card .solution { background: var(--surface-2); border-left: 3px solid var(--amber-2); padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--ink-2); }
.card .solution b { color: var(--ink); }
.card .foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--ink-3); margin-top: auto; }
.status-pending { color: var(--amber); font-weight: 600; }
.status-solved { color: var(--green); font-weight: 600; }

.empty { text-align: center; padding: 48px 16px; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.loading { text-align: center; padding: 36px; color: var(--ink-3); }

/* ── 表单 ──────────────────────────────────────────────────── */
.form-wrap { max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
    font-size: 14.5px; font-family: inherit; color: var(--ink); background: var(--surface);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(37, 99, 235, .3); border-color: var(--brand-2); }
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 5px; }
.field .err { font-size: 12.5px; color: var(--red); margin-top: 5px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }

/* ── 提示 toast ────────────────────────────────────────────── */
.toast {
    position: fixed; right: 24px; bottom: 24px; z-index: 100;
    background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 10px;
    box-shadow: var(--shadow-lg); font-size: 14px; display: none; max-width: 340px;
}
.toast.show { display: block; animation: pop .25s ease; }
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── 成功态 ────────────────────────────────────────────────── */
.result-card { max-width: 560px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 28px; box-shadow: var(--shadow); }
.result-card .check { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: rgba(5, 150, 105, .12); color: var(--green); display: grid; place-items: center; font-size: 28px; }
.result-card h2 { margin: 0 0 8px; font-size: 22px; }
.result-card p { color: var(--ink-2); margin: 0 0 22px; }

/* ── 付费方案 ─────────────────────────────────────────────── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tier {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.tier.featured { border-color: var(--amber-2); box-shadow: var(--shadow-lg); position: relative; }
.tier.featured::before { content: "推荐"; position: absolute; top: -12px; right: 20px; background: var(--amber-2); color: #1a1407; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.tier h3 { margin: 0 0 4px; font-size: 18px; }
.tier .price { font-size: 30px; font-weight: 800; margin: 8px 0 4px; }
.tier .price small { font-size: 14px; font-weight: 500; color: var(--ink-3); }
.tier .per { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; color: var(--ink-2); }
.tier ul li { padding: 5px 0 5px 24px; position: relative; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.tier .btn { margin-top: auto; }

/* ── 统计带 ─────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 28px; color: var(--ink); }
.stat span { font-size: 13px; color: var(--ink-3); }

/* ── CTA band ───────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--brand), #1d4ed8);
    color: #fff; border-radius: var(--radius); padding: 40px; text-align: center;
}
.cta-band h2 { margin: 0 0 8px; font-size: 26px; }
.cta-band p { color: #dbe6ff; margin: 0 0 22px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.cta-band .btn-primary:hover { background: #fde68a; color: var(--brand); }

/* ── 页脚 ──────────────────────────────────────────────────── */
.footer { background: var(--bg); color: #9fb0d4; padding: 40px 0 28px; font-size: 13.5px; }
.footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .brand .name { color: #e8eefc; }
.footer a { color: #c2cce4; }
.footer .legal { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); color: #6b7ca0; font-size: 12.5px; }

/* ── 响应式 ────────────────────────────────────────────────── */
@media (max-width: 860px) {
    .steps, .grid, .tiers { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 30px; }
    .row2 { grid-template-columns: 1fr; }
    .nav-links a:not(.nav-cta) { display: none; }
}
