:root {
  --bg: #f5f7fa; --card: #ffffff; --primary: #185fa5; --primary-dark: #0c447c;
  --teal: #0f6e56; --teal-bg: #e1f5ee; --amber: #854f0b; --amber-bg: #faeeda;
  --red: #a32d2d; --red-bg: #fcebeb; --text: #1a2332; --muted: #5f6b7a;
  --border: #e2e8f0; --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
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; font-size: 15px; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.site-nav { background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.site-nav .inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; }
.logo { font-weight: 600; font-size: 16px; color: var(--primary-dark); display: flex; align-items: center; gap: 8px; }
.logo .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--primary); display: inline-block; }
.nav-links { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a.active, .nav-links a:hover { color: var(--primary-dark); }
.badge { font-size: 12px; background: var(--amber-bg); color: var(--amber); border-radius: 999px; padding: 2px 10px; }

.hero { padding: 64px 0 40px; }
.hero h1 { font-size: 34px; line-height: 1.3; font-weight: 600; letter-spacing: .5px; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero p.sub { margin-top: 14px; font-size: 16px; color: var(--muted); max-width: 720px; }
.cta-row { margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; border: 1px solid var(--primary); background: var(--primary); color: #fff; border-radius: 8px; padding: 10px 22px; font-size: 15px; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--primary-dark); }
.btn.ghost:hover { background: #e6f1fb; }
.btn.sm { padding: 6px 14px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 36px 0 8px; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat .num { font-size: 26px; font-weight: 600; color: var(--primary-dark); }
.stat .label { font-size: 13px; color: var(--muted); margin-top: 2px; }

.section { padding: 36px 0; }
.section h2 { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.section .desc { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .hero h1 { font-size: 26px; } }

table.align { width: 100%; border-collapse: collapse; font-size: 14px; }
table.align th, table.align td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; }
table.align th { color: var(--muted); font-weight: 500; font-size: 13px; }
table.align td.num { font-variant-numeric: tabular-nums; }
.pill { display: inline-block; font-size: 12px; border-radius: 999px; padding: 1px 9px; background: #eef2f7; color: var(--muted); }
.pill.ok { background: var(--teal-bg); color: var(--teal); }
.pill.warn { background: var(--amber-bg); color: var(--amber); }

.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--muted); }
.feature .tag { font-size: 12px; color: var(--primary); font-weight: 500; }

.price-vote { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.price-vote button { border: 1px solid var(--border); background: var(--card); border-radius: 8px; padding: 10px 16px; font-size: 14px; cursor: pointer; }
.price-vote button.sel { border-color: var(--primary); background: #e6f1fb; color: var(--primary-dark); font-weight: 500; }
.lead-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.lead-form input { flex: 1; min-width: 220px; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fff; }
.thanks { background: var(--teal-bg); color: var(--teal); border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-top: 10px; }

.footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 26px 0 40px; color: var(--muted); font-size: 12.5px; }
.footer p { margin-bottom: 6px; }

/* practice */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0 18px; }
.chip { border: 1px solid var(--border); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; color: var(--muted); }
.chip.sel { border-color: var(--primary); background: #e6f1fb; color: var(--primary-dark); font-weight: 500; }
.chip .n { opacity: .7; font-size: 12px; }

.q-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.q-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.q-head .no { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-stem { font-size: 16px; font-weight: 500; margin-bottom: 14px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font-size: 14.5px; background: #fff; }
.opt:hover { border-color: #b5d4f4; }
.opt input { margin-top: 5px; }
.opt.picked { border-color: var(--primary); background: #f0f6fd; }
.opt.right { border-color: var(--teal); background: var(--teal-bg); }
.opt.wrong { border-color: var(--red); background: var(--red-bg); }
.opt.dim { opacity: .75; }
.explain { border-top: 1px dashed var(--border); margin-top: 14px; padding-top: 12px; font-size: 14px; display: none; }
.explain.show { display: block; }
.explain .row { margin-bottom: 6px; }
.explain .k { color: var(--muted); font-size: 13px; }
.explain .src { font-size: 12.5px; }
.q-actions { margin-top: 12px; display: flex; gap: 10px; align-items: center; }
.round-meta { font-size: 13px; color: var(--muted); }

/* exam */
.exam-top { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 18px; margin: 22px 0 18px; position: sticky; top: 57px; z-index: 5; }
.timer { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--primary-dark); }
.timer.danger { color: var(--red); }
.exam-top .spacer { flex: 1; }
.nav-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-bottom: 18px; }
.nav-grid button { aspect-ratio: 1; border: 1px solid var(--border); background: #fff; border-radius: 6px; font-size: 12px; cursor: pointer; color: var(--muted); }
.nav-grid button.answered { background: #e6f1fb; border-color: #85b7eb; color: var(--primary-dark); }
.nav-grid button.current { outline: 2px solid var(--primary); }
.score-ring { width: 130px; height: 130px; border-radius: 50%; margin: 10px auto 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 8px solid var(--teal); background: var(--card); }
.score-ring.fail { border-color: var(--red); }
.score-ring .s { font-size: 30px; font-weight: 600; }
.score-ring .t { font-size: 12px; color: var(--muted); }
.verdict { text-align: center; font-size: 17px; font-weight: 500; margin-bottom: 18px; }
.verdict.pass { color: var(--teal); }
.verdict.fail { color: var(--red); }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; }
.bar-row .name { width: 190px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .track { flex: 1; height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.bar-row .fill { height: 100%; background: var(--primary); }
.bar-row .val { width: 64px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.wrong-item { border-left: 3px solid var(--red); }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 18px; }

/* 早鸟名单表单 */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 16px; }
.form-grid.single { grid-template-columns: 1fr; }
.form-grid.single .field { max-width: 420px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .label, .price-block .label { font-size: 13.5px; color: var(--text); font-weight: 500; }
.field input { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fff; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24, 95, 165, .12); }
.hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.req { color: var(--red); }
.price-block { margin-bottom: 16px; }
.price-anchor { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.price-vote button:hover { border-color: #b5d4f4; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.check.consent { align-items: flex-start; margin: 16px 0 4px; font-size: 13.5px; line-height: 1.6; color: var(--muted); cursor: pointer; }
.check.consent input { margin-top: 3px; flex: 0 0 auto; }
.check.consent a { color: var(--primary); }
.queue-line { font-size: 15px; margin: 0 0 12px; color: var(--text); }
.queue-line b { color: var(--primary); font-size: 17px; }
.prose h3 { font-size: 15.5px; font-weight: 600; margin: 22px 0 8px; color: var(--text); }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 14px; line-height: 1.75; color: var(--text); }
.prose ul { margin: 8px 0; padding-left: 20px; }
.prose p { margin: 8px 0; }
.privacy-line { font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.6; }
.form-error { margin-top: 10px; background: var(--red-bg); color: var(--red); border-radius: 8px; padding: 10px 14px; font-size: 13.5px; }
.privacy-list { margin: 0; padding-left: 20px; font-size: 14px; color: var(--text); }
.privacy-list li { margin-bottom: 8px; }
.thanks-block h3 { font-size: 17px; font-weight: 600; color: var(--teal); margin-bottom: 10px; }
.thanks-block ul { margin: 0 0 14px; padding-left: 20px; font-size: 14px; }
.thanks-block li { margin-bottom: 6px; }

/* ---------- 内容站：门户与文章 ---------- */
.table-wrap { overflow-x: auto; }
.table-wrap table.align { min-width: 520px; }

.link-card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.link-card:hover { text-decoration: none; border-color: #b5d4f4; }
.link-card h3 { color: var(--primary-dark); }
.link-card .tag { display: block; margin-bottom: 6px; }

.page-title { font-size: 28px; font-weight: 600; margin-bottom: 8px; }
.guide-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.guide-item { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; color: inherit; text-decoration: none; transition: border-color .15s; }
.guide-item:hover { text-decoration: none; border-color: #b5d4f4; }
.guide-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--primary-dark); line-height: 1.5; }
.guide-item p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.guide-meta { font-size: 12.5px; color: var(--muted); }

.article { max-width: 760px; margin: 0 auto; padding: 44px 0 20px; }
.article-head { margin-bottom: 30px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--primary); }
.crumb span { opacity: .5; }
.article-head h1 { font-size: 30px; line-height: 1.4; font-weight: 600; letter-spacing: .2px; }
.article-meta { font-size: 13px; color: var(--muted); margin-top: 12px; }
.article-lede { font-size: 16.5px; color: var(--muted); line-height: 1.75; margin-top: 14px; padding-left: 14px; border-left: 3px solid #d6e4f5; }

.article-body { font-size: 16px; }
.article-body h2 { font-size: 21px; font-weight: 600; margin: 36px 0 12px; padding-top: 6px; }
.article-body h3 { font-size: 17px; font-weight: 600; margin: 26px 0 8px; }
.article-body h4 { font-size: 15.5px; font-weight: 600; margin: 20px 0 6px; }
.article-body p { font-size: 16px; line-height: 1.85; margin: 14px 0; }
.article-body ul, .article-body ol { margin: 14px 0; padding-left: 24px; }
.article-body li { font-size: 16px; line-height: 1.85; margin-bottom: 8px; }
.article-body a { border-bottom: 1px solid rgba(24, 95, 165, .3); }
.article-body a:hover { text-decoration: none; border-bottom-color: var(--primary); }
.article-body strong { font-weight: 600; }
.article-body code { background: #eef2f7; border-radius: 4px; padding: 1px 6px; font-size: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.article-body blockquote { margin: 18px 0; padding: 14px 18px; background: #f0f6fd; border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; color: var(--text); font-size: 15.5px; }
.article-body hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }
.article-body table.align { margin: 18px 0; font-size: 14px; }
.article-body table.align th { background: #f7f9fc; }
.article-body table.align td { line-height: 1.65; vertical-align: top; }

.article-cta { margin-top: 44px; background: #f0f6fd; border: 1px solid #d6e4f5; border-radius: var(--radius); padding: 22px 24px; }
.article-cta h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--primary-dark); }
.article-cta p { font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  .article-head h1 { font-size: 24px; }
  .article-body, .article-body p, .article-body li { font-size: 15.5px; }
  .article { padding-top: 28px; }
}

/* 文章内表格可读性 */
.article-body table.align { font-size: 13.5px; }
.article-body table.align td { word-break: break-word; }
.article-body table.align td:first-child { white-space: nowrap; font-weight: 500; }
.article-body table.align th:first-child { white-space: nowrap; }

/* 上一篇 / 下一篇：把六篇文章串成一条阅读路径 */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 36px 0 8px; }
.article-nav a { display: block; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); padding: 14px 18px; transition: border-color .15s; }
.article-nav a:hover { border-color: var(--primary); text-decoration: none; }
.article-nav a span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.article-nav a b { display: block; font-size: 14.5px; font-weight: 500; color: var(--text); line-height: 1.5; }
.article-nav a.next { text-align: right; }
@media (max-width: 640px) {
  .article-nav { grid-template-columns: 1fr; }
  .article-nav a.next { text-align: left; }
}

/* 404 */
.notfound { padding: 80px 0 60px; text-align: center; }
.notfound h1 { font-size: 30px; font-weight: 600; margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 24px; }

/* 导航栏行动按钮：全站可见的等候队列入口（移动端让位给吸底条） */
.nav-cta { margin-left: 6px; font-size: 13.5px; line-height: 1; border: 1px solid var(--primary); color: var(--primary);
  border-radius: 7px; padding: 7px 14px; white-space: nowrap; transition: background .15s, color .15s; }
.nav-cta:hover { background: var(--primary); color: #fff; text-decoration: none; }

/* 中途转化条：放在「读完规则、还没决定」的位置，不重复表单，只把人带到 #join */
.join-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: #eef6fd; border: 1px solid #cfe3f5; border-radius: var(--radius); padding: 18px 22px; }
.join-band .t { font-size: 15.5px; font-weight: 600; color: var(--primary-dark); }
.join-band .d { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.join-band .btn { flex-shrink: 0; }

/* 移动端吸底条：只在首页与文章页出现，滚过首屏后升起，可关闭且本次会话不再打扰 */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .nav-cta { display: none; }
  .mobile-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: rgba(255,255,255,.98); border-top: 1px solid var(--border);
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(15,27,45,.07);
    transform: translateY(110%); transition: transform .22s ease; }
  .mobile-cta.show { transform: translateY(0); }
  .mobile-cta .inner { display: flex; align-items: center; gap: 12px; }
  .mobile-cta .txt { flex: 1; font-size: 12px; color: var(--muted); line-height: 1.35; }
  .mobile-cta .txt b { display: block; font-size: 14px; color: var(--text); margin-bottom: 1px; }
  .mobile-cta .close { flex-shrink: 0; background: none; border: 0; color: #a8b2bf; font-size: 20px;
    line-height: 1; padding: 4px 2px; cursor: pointer; }
  body.has-mobile-cta { padding-bottom: 72px; }
}

/* 锚点跳转避开吸顶导航 */
#join { scroll-margin-top: 76px; }

/* 文章页 CTA 里的等候队列软链 */
.article-cta .cta-alt { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.article-cta .cta-alt a { color: var(--primary); }

/* 移动端导航收紧，给三个链接留出呼吸空间 */
@media (max-width: 760px) {
  .site-nav .inner { gap: 10px; padding: 11px 16px; }
  .logo { font-size: 15px; }
  .nav-links { gap: 11px; font-size: 13px; }
}
