/* ============================================================
   区块链术语动画词典 — 样式
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }

:root {
  --bg: #f5f6fb;
  --card: #ffffff;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e6e8f0;
  --pri: #4f46e5;
  --pri-2: #06b6d4;
  --violet: #8b5cf6;
  --amber: #f59e0b;
  --grad: linear-gradient(135deg, #4f46e5, #06b6d4);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .13);
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ================= 头部 ================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  height: 68px;
}
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-svg { flex-shrink: 0; }
.logo-text { font-size: 18px; font-weight: 800; letter-spacing: .5px; }
.logo-text span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav-link {
  padding: 8px 14px; border-radius: 10px;
  font-size: 14.5px; color: var(--muted); font-weight: 500;
  transition: all .2s;
}
.nav-link:hover { color: var(--pri); background: #eef2ff; }
.nav-link.active { color: var(--pri); background: #eef2ff; font-weight: 600; }

/* 搜索 */
.bt-search {
  position: relative; flex: 1; max-width: 340px; margin-left: auto;
  display: flex; align-items: center;
}
.search-ic { position: absolute; left: 14px; color: #94a3b8; pointer-events: none; }
.bt-search input {
  width: 100%; height: 42px; padding: 0 16px 0 40px;
  border: 1px solid var(--line); border-radius: 999px;
  background: #f8f9fd; font-size: 14px; color: var(--ink);
  outline: none; transition: all .2s;
}
.bt-search input:focus { border-color: var(--pri); background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.suggest {
  position: absolute; top: 50px; left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: none; max-height: 340px; overflow-y: auto;
}
.suggest.open { display: block; }
.suggest a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid #f1f2f8; transition: background .15s;
}
.suggest a:last-child { border-bottom: none; }
.suggest a:hover { background: #f5f6ff; }
.s-name { font-weight: 600; font-size: 14px; }
.s-cat { font-size: 12px; color: var(--muted); background: #eef2ff; padding: 2px 8px; border-radius: 999px; }
.no-hit { padding: 14px 16px; color: var(--muted); font-size: 13px; }

/* 全部术语浏览：字母索引 + 分类筛选 */
.alpha-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.alpha-key {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  font-size: 14px; font-weight: 700; transition: all .2s;
}
.alpha-key:hover:not(:disabled) { border-color: var(--pri); color: var(--pri); transform: translateY(-1px); }
.alpha-key.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(79, 70, 229, .28); }
.alpha-key.disabled { opacity: .35; cursor: not-allowed; background: #f1f2f8; }
.browse-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13.5px; font-weight: 600; color: var(--muted);
  transition: all .2s;
}
.chip:hover { border-color: var(--pri); color: var(--pri); transform: translateY(-1px); }
.chip.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(79, 70, 229, .25); }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: none;
  font-size: 15px; font-weight: 600; transition: all .2s;
}
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .3); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, .38); }
.btn.ghost { background: #fff; color: var(--pri); border: 1px solid #dfe3ff; }
.btn.ghost:hover { background: #eef2ff; transform: translateY(-2px); }
.btn.swap { padding: 10px 16px; background: #eef2ff; color: var(--pri); border-radius: 10px; font-size: 18px; }
.btn.swap:hover { background: #e0e7ff; }

/* ================= Hero ================= */
.hero {
  position: relative;
  background: radial-gradient(1200px 480px at 20% -10%, rgba(79, 70, 229, .25), transparent 60%),
              radial-gradient(900px 420px at 90% 10%, rgba(6, 182, 212, .18), transparent 55%),
              linear-gradient(180deg, #fbfbfe, #f5f6fb);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.cube {
  position: absolute; width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #c7d2fe, #a5f3fc); opacity: .55;
  animation: heroFloat 6s ease-in-out infinite;
}
.cube.c1 { top: 18%; left: 8%; }
.cube.c2 { top: 62%; left: 3%; width: 22px; height: 22px; animation-delay: 1.2s; background: linear-gradient(135deg, #fde68a, #fda4af); }
.cube.c3 { top: 14%; right: 6%; width: 26px; height: 26px; animation-delay: 2s; background: linear-gradient(135deg, #c4b5fd, #99f6e4); }
.cube.c4 { bottom: 12%; right: 12%; width: 18px; height: 18px; animation-delay: .6s; }
@keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

.hero-inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 56px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid #e0e4ff; color: var(--pri);
  font-size: 13px; font-weight: 600; box-shadow: var(--shadow);
}
.hero h1 { font-size: 46px; line-height: 1.25; font-weight: 800; margin: 20px 0 14px; letter-spacing: .5px; }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-text p { color: var(--muted); font-size: 17px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-demo { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-anim-box {
  width: 100%; max-width: 460px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
}
.hero-anim-box svg { width: 100%; max-height: 300px; }
.hero-caption { color: var(--muted); font-size: 13.5px; }

.hero-stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 0 24px 48px;
}
.hero-stats > div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow);
}
.hero-stats b { font-size: 30px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: 13px; }

/* ================= 通用区块 ================= */
.section { padding: 56px 0 16px; }
.sec-head { margin-bottom: 26px; }
.sec-head h2 { font-size: 26px; font-weight: 800; }
.sec-head p { color: var(--muted); margin-top: 4px; }
.lead { color: var(--muted); font-size: 16px; margin: 8px 0 28px; }
.page-title { font-size: 32px; font-weight: 800; margin-bottom: 4px; }

/* 分类卡片 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
  transition: all .22s; position: relative; overflow: hidden;
}
.cat-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--c); opacity: 0; transition: opacity .2s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card:hover::after { opacity: 1; }
.cat-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: color-mix(in srgb, var(--c) 12%, #fff);
}
.cat-card h3 { font-size: 17px; font-weight: 700; }
.cat-card p { color: var(--muted); font-size: 13.5px; flex: 1; }
.count { font-size: 12.5px; font-weight: 600; color: var(--c); }

/* 字母索引 */
.alpha-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.alpha-key {
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--muted);
  font-size: 14px; font-weight: 700; font-family: inherit;
  transition: all .18s;
}
.alpha-key:hover:not(:disabled) { border-color: var(--pri); color: var(--pri); transform: translateY(-2px); }
.alpha-key.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(79, 70, 229, .3); }
.alpha-key:disabled { opacity: .32; cursor: not-allowed; }
.alpha-empty { color: var(--muted); font-size: 14px; padding: 26px 0; text-align: center; }

/* 术语卡片 */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.term-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; transition: all .22s; display: flex; flex-direction: column; }
.term-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #dfe3ff; }
.mini-anim {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border: 1px solid #eef1f8; border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; padding: 4px;
}
.mini-anim svg { width: 100%; height: 116px; }
.term-card h3 { font-size: 16.5px; font-weight: 700; }
.term-card .en { font-size: 12px; color: var(--muted); margin-top: 1px; }
.term-card .sum {
  font-size: 13px; color: #475569; margin-top: 8px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 徽章 */
.cat-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  color: var(--c);
}
.level-badge { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.lv1 { background: #dcfce7; color: #15803d; }
.lv2 { background: #dbeafe; color: #1d4ed8; }
.lv3 { background: #fef3c7; color: #b45309; }
.lv4 { background: #ffedd5; color: #c2410c; }
.lv5 { background: #fee2e2; color: #b91c1c; }

/* 对比专区（首页） */
.compare-teaser {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 34px; align-items: center;
  box-shadow: var(--shadow);
}
.ct-head h2 { font-size: 24px; font-weight: 800; margin: 12px 0 8px; }
.ct-head p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ct-col { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.ct-col h3 { font-size: 15px; }
.ct-col .anim-box { min-height: 200px; }

/* 动画容器通用 */
.anim-box {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 300px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 16px;
}
.anim-box svg { width: 100%; max-width: 460px; max-height: 360px; }

/* 学习路径引导条 */
.path-teaser .pt-box {
  background: var(--grad); border-radius: var(--radius-lg);
  padding: 40px; color: #fff; position: relative; overflow: hidden;
}
.path-teaser .pt-box::after {
  content: "🗺️"; position: absolute; right: 40px; top: 50%; transform: translateY(-50%);
  font-size: 90px; opacity: .25;
}
.path-teaser h2 { font-size: 24px; font-weight: 800; }
.path-teaser p { opacity: .9; margin: 8px 0 20px; max-width: 520px; }
.path-teaser .btn.primary { background: #fff; color: var(--pri); box-shadow: none; }

/* ================= 详情页 ================= */
.page { padding: 34px 0 70px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 22px; transition: color .2s; }
.back-link:hover { color: var(--pri); }
.detail-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: start; }

.anim-stage {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 22px; box-shadow: var(--shadow); position: sticky; top: 88px;
}
.anim-stage .replay {
  width: 100%; margin-top: 14px; padding: 11px;
  border: 1px dashed #c7cdf4; border-radius: 12px; background: #fafbff;
  color: var(--pri); font-size: 14px; font-weight: 600; transition: all .2s;
}
.anim-stage .replay:hover { background: #eef2ff; border-style: solid; }
.anim-note { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 10px; }

.term-head { display: flex; gap: 10px; margin-bottom: 12px; }
.term-info h1 { font-size: 30px; font-weight: 800; line-height: 1.3; }
.term-en { color: var(--muted); font-size: 15px; margin: 4px 0 14px; }
.summary {
  font-size: 16px; color: #334155; background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--pri); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px;
}
.block { margin-bottom: 22px; }
.block h3 {
  font-size: 14px; font-weight: 700; color: var(--pri);
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.block h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex-shrink: 0; }
.block p { color: #475569; font-size: 15px; margin-bottom: 8px; }
.analogy {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 14px; padding: 16px 18px; margin-bottom: 18px;
}
.analogy h3 { color: #b45309; display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 6px; }
.analogy p { color: #78451e; font-size: 14.5px; }
.myths { background: #fef2f2; border: 1px solid #fecaca; border-radius: 14px; padding: 16px 18px; }
.myths h3 { color: #b91c1c; display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.myths li { color: #7f1d1d; font-size: 14px; padding-left: 22px; position: relative; margin-bottom: 6px; }
.myths li::before { content: "✕"; position: absolute; left: 2px; color: #f87171; font-weight: 700; }

.related { margin-top: 40px; }
.learn-hint { margin-top: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.learn-hint a { color: var(--pri); font-weight: 600; }
.learn-hint a:hover { text-decoration: underline; }
.hint-stage {
  display: inline-block; margin: 2px 4px; padding: 5px 12px;
  background: #eef2ff; border-radius: 999px; color: var(--pri);
  font-weight: 600; font-size: 12.5px; transition: all .2s;
}
.hint-stage:hover { background: #e0e7ff; transform: translateY(-1px); }

/* ================= 对比页 ================= */
.compare-wrap { padding: 44px 0 70px; }
.compare-picker {
  display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.compare-picker select {
  height: 46px; min-width: 200px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: #f8f9fd; font-size: 15px; font-weight: 600;
  color: var(--ink); outline: none; transition: all .2s;
}
.compare-picker select:focus { border-color: var(--pri); background: #fff; box-shadow: 0 0 0 4px rgba(79, 70, 229, .12); }
.vs {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .35);
}

.comp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 26px; }
.comp-card {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; transition: all .2s;
}
.comp-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.comp-card.active { border-color: var(--pri); background: #eef2ff; }
.comp-card h3 { font-size: 15px; font-weight: 700; color: var(--ink); }
.comp-card p { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.compare-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 28px; }
.c-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
.c-col .anim-box { min-height: 240px; margin-bottom: 14px; }
.c-col h3 { font-size: 18px; font-weight: 800; text-align: center; }
.c-col .c-en { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.c-col .c-sum { text-align: center; color: #475569; font-size: 13.5px; margin-top: 8px; }

.compare-points { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.compare-points h2 { font-size: 21px; font-weight: 800; margin-bottom: 4px; }
.compare-points .pts-intro { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.points-table { width: 100%; border-collapse: collapse; }
.points-table th, .points-table td { padding: 13px 16px; text-align: left; font-size: 14.5px; }
.points-table thead th { background: #f5f6ff; border-bottom: 2px solid var(--line); }
.points-table thead th:nth-child(2) { color: var(--pri); }
.points-table thead th:nth-child(3) { color: var(--pri-2); }
.points-table tbody tr { border-bottom: 1px solid #f1f2f8; }
.points-table tbody tr:last-child { border-bottom: none; }
.points-table .lbl { font-weight: 700; width: 22%; color: #334155; }
.points-table .cola { color: #334155; width: 39%; }
.points-table .colb { color: #334155; width: 39%; }
.points-table .cola::before, .points-table .colb::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px;
}
.points-table .cola::before { background: var(--pri); }
.points-table .colb::before { background: var(--pri-2); }
.points-table .empty-row { text-align: center; color: var(--muted); padding: 24px; }

/* ================= 学习路径 ================= */
.learn-wrap { padding: 44px 0 70px; }
.path-progress {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow); margin-bottom: 30px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.path-progress .pp-label { font-weight: 700; font-size: 14px; white-space: nowrap; }
.pp-bar { flex: 1; min-width: 200px; height: 10px; border-radius: 999px; background: #eef1f8; overflow: hidden; }
#pathProgress { display: block; height: 100%; width: 0%; background: var(--grad); border-radius: 999px; transition: width .4s ease; }
#pathCount { font-size: 13px; color: var(--muted); }
#resetPath { font-size: 13px; color: var(--pri); background: #eef2ff; border: none; border-radius: 8px; padding: 6px 12px; }
#resetPath:hover { background: #e0e7ff; }

.path-stage { position: relative; padding-left: 64px; margin-bottom: 34px; }
.path-stage::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: -10px; width: 3px;
  background: linear-gradient(180deg, #c7d2fe, #a5f3fc); border-radius: 2px;
}
.path-stage:last-child::before { display: none; }
.stage-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.stage-num {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0;
  background: var(--grad); color: #fff; font-size: 20px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(79, 70, 229, .3);
}
.stage-head h2 { font-size: 20px; font-weight: 800; padding-top: 4px; }
.stage-head p { color: var(--muted); font-size: 14px; }
.stage-terms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.path-term {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 6px;
  transition: all .2s; position: relative; overflow: hidden;
}
.path-term::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.path-term.lv1::before { background: #22c55e; }
.path-term.lv2::before { background: #3b82f6; }
.path-term.lv3::before { background: #f59e0b; }
.path-term.lv4::before { background: #f97316; }
.path-term.lv5::before { background: #ef4444; }
.path-term:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.path-term.visited { background: #f0fdf4; border-color: #bbf7d0; }
.path-term.visited .pt-name::after { content: " ✓"; color: #16a34a; }
.pt-index { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: var(--muted); }
.pt-name { font-size: 15.5px; font-weight: 700; }
.pt-badge { align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #eef1f8; color: var(--muted); }

/* ================= 页脚 ================= */
.footer { background: #0f172a; color: #cbd5e1; margin-top: 70px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 24px; flex-wrap: wrap; }
.f-title { font-size: 16px; font-weight: 700; color: #fff; }
.f-desc { font-size: 13px; opacity: .75; margin-top: 4px; max-width: 460px; }
.f-links { display: flex; gap: 20px; }
.f-links a { font-size: 14px; opacity: .8; transition: all .2s; }
.f-links a:hover { opacity: 1; color: #a5f3fc; }

/* ================= 响应式 ================= */
@media (max-width: 1024px) {
  .cat-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-demo { order: -1; }
  .compare-teaser { grid-template-columns: 1fr; }
  .stage-terms { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
  .anim-stage { position: static; }
}
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .nav { order: 3; width: 100%; }
  .nav-link { flex: 1; text-align: center; padding: 8px 6px; }
  .bt-search { max-width: none; order: 2; }
  .hero h1 { font-size: 34px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .cat-grid, .card-grid, .stage-terms, .comp-cards, .compare-stage, .ct-grid { grid-template-columns: 1fr; }
  .points-table { display: block; overflow-x: auto; }
  .path-stage { padding-left: 56px; }
  .stage-num { width: 46px; height: 46px; font-size: 17px; border-radius: 13px; }
  .compare-picker select { min-width: 150px; }
}
