/* ============================================================
   冷钱包安全学院 - 全站样式
   ============================================================ */
:root {
  --bg: #0a0e17;
  --bg-soft: #0f1522;
  --surface: #141c2e;
  --surface-2: #1a2438;
  --border: #243049;
  --text: #e6eaf2;
  --text-dim: #9aa7bd;
  --accent: #f7931a;
  --accent-2: #22d3ee;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --max-w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }

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

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 14, 23, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800; color: var(--text);
  letter-spacing: .5px;
}
.logo:hover { color: var(--text); }
.logo .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #ffb54d);
  display: grid; place-items: center;
  font-size: 1.05rem; color: #1a1205; font-weight: 900;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 8px 13px; border-radius: 8px;
  color: var(--text-dim); font-size: .95rem; font-weight: 500;
  transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--accent); background: rgba(247, 147, 26, .1); font-weight: 700; }
.nav-cta {
  margin-left: 10px; padding: 8px 18px !important;
  background: linear-gradient(135deg, var(--accent), #ff9f43) !important;
  color: #1a1205 !important; font-weight: 700 !important; border-radius: 9px !important;
}
.nav-cta:hover { filter: brightness(1.1); }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--border);
  color: var(--text); width: 42px; height: 42px; border-radius: 9px;
  font-size: 1.3rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 76px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(34, 211, 238, .14), transparent 60%),
    radial-gradient(700px 380px at 8% 110%, rgba(247, 147, 26, .13), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 46px; align-items: center; }
.hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.25; margin-bottom: 18px; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { color: var(--text-dim); font-size: 1.08rem; margin-bottom: 28px; }
.hero-img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.badge-line { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.badge {
  font-size: .8rem; font-weight: 600; padding: 5px 13px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
}
.badge.gold { color: var(--accent); border-color: rgba(247,147,26,.4); }
.badge.cyan { color: var(--accent-2); border-color: rgba(34,211,238,.4); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 11px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: all .2s;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #ff9f43); color: #1a1205; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(247,147,26,.35); color: #1a1205; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------- 区块 ---------- */
.section { padding: 74px 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.section-head .kicker {
  color: var(--accent-2); font-weight: 700; letter-spacing: 3px;
  font-size: .82rem; text-transform: uppercase; margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); margin-bottom: 12px; }
.section-head p { color: var(--text-dim); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 26px;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(247,147,26,.45); box-shadow: var(--shadow); }
.card .icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(247,147,26,.18), rgba(34,211,238,.14));
  border: 1px solid var(--border);
}
.card h3 { font-size: 1.13rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: .95rem; }
.card .card-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .92rem; }

/* ---------- 统计条 ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  text-align: center; padding: 26px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.stat .num { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat .lbl { color: var(--text-dim); font-size: .9rem; margin-top: 4px; }

/* ---------- 列表/步骤 ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: flex; gap: 20px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.step .step-no {
  flex: 0 0 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff9f43);
  color: #1a1205; font-weight: 900; font-size: 1.2rem;
  display: grid; place-items: center;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--text-dim); font-size: .95rem; }

/* ---------- 提示框 ---------- */
.callout {
  border-radius: 12px; padding: 18px 22px; margin: 22px 0;
  border-left: 4px solid; font-size: .96rem;
}
.callout.warn { background: rgba(251,191,36,.08); border-color: var(--yellow); }
.callout.danger { background: rgba(248,113,113,.08); border-color: var(--red); }
.callout.info { background: rgba(34,211,238,.07); border-color: var(--accent-2); }
.callout.ok { background: rgba(52,211,153,.08); border-color: var(--green); }
.callout strong { display: block; margin-bottom: 4px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 860px; background: var(--surface); }
table.cmp th, table.cmp td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .92rem; }
table.cmp thead th { background: var(--surface-2); color: var(--text); font-weight: 700; white-space: nowrap; }
table.cmp tbody tr:hover { background: rgba(34,211,238,.05); }
table.cmp td.dim { color: var(--text-dim); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.tag.yes { background: rgba(52,211,153,.15); color: var(--green); }
.tag.no { background: rgba(248,113,113,.15); color: var(--red); }
.tag.mid { background: rgba(251,191,36,.15); color: var(--yellow); }

/* ---------- FAQ 手风琴 ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 22px; color: var(--text); font-size: 1.02rem; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: inherit;
}
.faq-q .chev { transition: transform .25s; color: var(--accent); font-size: 1.2rem; flex: 0 0 auto; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--text-dim); font-size: .95rem; }

/* ---------- 评测 Quiz ---------- */
.quiz-box { max-width: 820px; margin: 0 auto; }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.quiz-bar { flex: 1; height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.quiz-bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 999px; transition: width .35s; }
.quiz-count { font-size: .88rem; color: var(--text-dim); white-space: nowrap; }
.quiz-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px; }
.quiz-card h3.q-title { font-size: 1.22rem; margin-bottom: 22px; line-height: 1.5; }
.opt {
  display: flex; align-items: flex-start; gap: 12px; width: 100%;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px;
  padding: 15px 18px; margin-bottom: 12px; cursor: pointer; color: var(--text);
  font-size: .98rem; text-align: left; transition: all .18s; font-family: inherit;
}
.opt:hover { border-color: var(--accent-2); transform: translateX(4px); }
.opt .opt-key {
  flex: 0 0 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface-2); font-weight: 800; font-size: .85rem; color: var(--accent-2);
}
.opt.picked { border-color: var(--accent); background: rgba(247,147,26,.08); }
.opt.correct { border-color: var(--green); background: rgba(52,211,153,.1); }
.opt.wrong { border-color: var(--red); background: rgba(248,113,113,.1); }
.opt:disabled { cursor: default; transform: none; }
.quiz-explain {
  display: none; margin-top: 16px; padding: 16px 18px; border-radius: 11px;
  background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.25);
  font-size: .93rem; color: var(--text-dim);
}
.quiz-explain.show { display: block; }
.quiz-explain b { color: var(--accent-2); }
.quiz-nav { display: flex; justify-content: space-between; margin-top: 24px; gap: 14px; }
.quiz-result { text-align: center; }
.score-ring {
  width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 22px;
  display: grid; place-items: center; font-size: 2.4rem; font-weight: 900;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--surface-2) 0);
  position: relative;
}
.score-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--surface); }
.score-ring span { position: relative; z-index: 1; }
.result-level { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; }
.result-desc { color: var(--text-dim); max-width: 560px; margin: 0 auto 26px; }
.review-list { text-align: left; display: grid; gap: 12px; margin-top: 26px; }
.review-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 11px; padding: 14px 18px; font-size: .92rem; }
.review-item .ok { color: var(--green); font-weight: 700; }
.review-item .bad { color: var(--red); font-weight: 700; }

/* ---------- 内页 Hero(简化) ---------- */
.page-hero { padding: 56px 0; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.page-hero p { color: var(--text-dim); max-width: 780px; }
.crumbs { font-size: .85rem; color: var(--text-dim); margin-bottom: 14px; }
.crumbs a { color: var(--text-dim); }
.crumbs .sep { margin: 0 8px; color: var(--border); }

/* ---------- 正文排版 ---------- */
.prose { max-width: 860px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 16px; padding-left: 14px; border-left: 4px solid var(--accent); }
.prose h3 { font-size: 1.15rem; margin: 26px 0 10px; color: var(--accent-2); }
.prose p { color: #c6cede; margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 24px; color: #c6cede; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }

/* ---------- 风险等级卡 ---------- */
.risk-card { border-left: 4px solid var(--red); }
.risk-card .risk-tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; margin-bottom: 12px; }
.risk-high { border-left-color: var(--red); }
.risk-high .risk-tag { background: rgba(248,113,113,.15); color: var(--red); }
.risk-mid { border-left-color: var(--yellow); }
.risk-mid .risk-tag { background: rgba(251,191,36,.15); color: var(--yellow); }
.risk-low { border-left-color: var(--accent-2); }
.risk-low .risk-tag { background: rgba(34,211,238,.15); color: var(--accent-2); }

/* ---------- CTA ---------- */
.cta-band {
  text-align: center; padding: 64px 22px; border-radius: var(--radius);
  background:
    radial-gradient(500px 220px at 20% 0%, rgba(247,147,26,.18), transparent 70%),
    radial-gradient(500px 220px at 85% 100%, rgba(34,211,238,.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: 1.7rem; margin-bottom: 12px; }
.cta-band p { color: var(--text-dim); margin-bottom: 26px; }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 52px 0 26px; margin-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 36px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 14px; color: var(--text); }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: var(--text-dim); font-size: .9rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-desc { color: var(--text-dim); font-size: .9rem; margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--text-dim); font-size: .82rem; }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    padding: 14px 22px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 56px 0; }
  .quiz-card { padding: 24px 18px; }
}
