/* ============================================================
   机器学习演示中心 · V3 · 马卡龙主题
   杏仁奶油底 / 玫瑰粉主色 / 抹茶·香草·薰衣草·蜂蜜辅助色
   圆角「贝壳」卡片 + 马卡龙图形符号，知识手账式排版。
   说明：V3 沿用 V2/V1 的类名结构与脚本接口，只换皮肤与信息密度。
   ============================================================ */
:root {
  --bg: #FAF3F7;
  --bg-soft: #FDF7F3;
  --surface: #FFFFFF;
  --ink: #5C4B51;
  --muted: #8A6F78;
  --muted-2: #AB929C;
  --border: #F1DEE7;
  --border-strong: #E7C3D4;
  --accent: #E56B9F;
  --accent-deep: #D14D86;
  --accent-soft: #FBDCE9;
  --accent-ghost: #FDF0F6;
  --berry: #C75B7A;
  --mint: #4CA98C;   --mint-soft: #EAF6F0;
  --blue: #6C8FC7;   --blue-soft: #ECF2FA;
  --butter: #D99C4A; --butter-soft: #FBF3E4;
  --lilac: #9C86C9;  --lilac-soft: #F2EEFA;
  --shadow: 0 10px 26px rgba(197, 108, 143, 0.10);
  --display: 'YouYuan', 'Yuanti SC', 'Segoe UI', 'Microsoft YaHei', sans-serif;
  --sans: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --mono: 'Cascadia Code', 'JetBrains Mono', Consolas, ui-monospace, 'Courier New', monospace;
  --radius: 20px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-card: var(--shadow);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 10% 14%, rgba(251, 220, 233, 0.55) 0, transparent 42%),
    radial-gradient(circle at 90% 6%, rgba(250, 235, 213, 0.55) 0, transparent 40%),
    radial-gradient(circle at 80% 86%, rgba(236, 242, 250, 0.60) 0, transparent 45%),
    radial-gradient(rgba(226, 176, 200, 0.14) 1.6px, transparent 1.6px);
  background-size: auto, auto, auto, 34px 34px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 30px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
sup { font-size: 0.68em; vertical-align: super; line-height: 0; }
kbd {
  font-family: var(--mono); font-size: 0.86em;
  padding: 2px 7px; border-radius: 8px;
  background: var(--accent-ghost); border: 1.5px solid var(--border-strong);
}

h1, h2, h3, .brand { font-family: var(--display); }
h1 em, h2 em { font-style: normal; color: var(--accent-deep); }
.hero h1 em { background: linear-gradient(transparent 70%, var(--accent-soft) 0); }

/* ============ 导航（马卡龙药丸 + 下拉演示列表） ============ */
.nav {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  max-width: 1020px;
  padding: 10px 12px 10px 20px;
  background: rgba(250, 243, 247, 0.88);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.nav .brand {
  font-size: 20px; letter-spacing: 0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav .brand em { font-style: normal; color: var(--accent-deep); }
.nav ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; align-items: center; }
.nav ul a, .nav-more summary {
  color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; padding: 5px 2px; cursor: pointer; list-style: none;
}
.nav ul a:hover, .nav-more summary:hover { color: var(--accent-deep); }
.nav ul a[aria-current="page"] { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-more { position: relative; }
.nav-more summary::after { content: ' ▾'; color: var(--accent-deep); }
.nav-more[open] summary::after { content: ' ▴'; }
.nav-more .menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  width: 250px; max-height: 62vh; overflow: auto;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: 16px; box-shadow: var(--shadow);
  padding: 8px; margin: 0;
}
.nav-more .menu a {
  display: block; padding: 8px 12px; border-radius: 10px;
  font-size: 13.5px; color: var(--ink); text-decoration: none; cursor: pointer;
}
.nav-more .menu a:hover { background: var(--accent-ghost); color: var(--accent-deep); }
.nav .cta {
  font: 600 13px/1 var(--sans);
  padding: 9px 16px; border-radius: 999px;
  background: var(--accent); color: #fff;
  border: 2px solid var(--accent);
  text-decoration: none; white-space: nowrap;
  transition: transform 200ms var(--ease);
}
.nav .cta:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.nav .cta:active { transform: scale(0.97); }

/* ============ 按钮与标签 ============ */
.btn {
  font: 600 14px/1 var(--sans);
  padding: 12px 22px; border-radius: 999px;
  cursor: pointer; border: 2px solid transparent;
  transition: transform 200ms var(--ease), box-shadow 200ms ease, background 200ms ease;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); text-decoration: none; display: inline-block; }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--accent-deep); border-color: var(--border-strong); text-decoration: none; display: inline-block; }
.btn-ghost:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 9px 15px; font-size: 13px; }
.btn-link {
  background: transparent; border: none; color: var(--accent-deep);
  padding: 12px 2px; font: 600 14px/1 var(--sans); cursor: pointer; text-decoration: none; display: inline-block;
}
.btn-link::after { content: ' →'; }
.btn-link:hover { color: var(--accent); }
.keystroke {
  font-family: var(--mono); font-size: 11.5px;
  padding: 5px 9px; border: 1.5px dashed var(--border-strong);
  border-radius: 999px; background: var(--surface); color: var(--muted);
  white-space: nowrap;
}
.chip {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; padding: 3px 10px; border-radius: 999px; margin-right: 6px;
}
.chip--pink { background: var(--accent-soft); color: var(--accent-deep); }
.chip--mint { background: var(--mint-soft); color: var(--mint); }
.chip--blue { background: var(--blue-soft); color: var(--blue); }
.chip--butter { background: var(--butter-soft); color: var(--butter); }
.chip--lilac { background: var(--lilac-soft); color: var(--lilac); }

/* 马卡龙小标记（SVG data-uri，用于面板标题） */
.panel-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-size: 13.5px; letter-spacing: 0.06em;
  color: var(--accent-deep); margin: 0 0 16px;
}
.panel-title::before {
  content: ''; width: 24px; height: 16px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M12 1c3.4 0 5 1.5 7.6 1.5 2 0 3.4 1.2 3.4 2.7s-1.4 2.8-3.4 2.8C17 8 15.4 9.5 12 9.5S7 8 4.4 8C2.4 8 1 6.7 1 5.2S2.4 2.5 4.4 2.5C7 2.5 8.6 1 12 1z' fill='%23EBA7C6'/%3E%3Crect x='3.5' y='8.4' width='17' height='2.4' rx='1.2' fill='%23C75B7A'/%3E%3Cpath d='M12 15.5c3.4 0 5-1.5 7.6-1.5 2 0 3.4-1.2 3.4-2.7s-1.4-2.8-3.4-2.8C17 8.5 15.4 7 12 7S7 8.5 4.4 8.5C2.4 8.5 1 9.8 1 11.3s1.4 2.7 3.4 2.7C7 14 8.6 15.5 12 15.5z' fill='%23EBA7C6' opacity='.88'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ============ Hero ============ */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(200px, 0.6fr); gap: 32px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  color: var(--accent-deep);
  padding: 6px 13px; border: 2px dashed var(--border-strong);
  border-radius: 999px; background: var(--surface);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.hero h1, .page-head h1 {
  font-size: clamp(38px, 5.8vw, 68px);
  line-height: 1.12; letter-spacing: 0.01em;
  margin: 20px 0 0; font-weight: 700;
}
.hero .lede, .page-head .lede {
  font-size: 17.5px; color: var(--muted);
  max-width: 56ch; margin: 20px 0 32px;
}
.hero .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cupcake-art { text-align: center; }
.cupcake-art svg { width: 100%; max-width: 230px; height: auto; }
.cupcake-art .cap { font-family: var(--mono); font-size: 11px; color: var(--muted-2); margin-top: 8px; }

/* ============ 首页数据带 ============ */
.stat-band {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow); margin-top: 8px;
}
.stat-cell { padding: 18px 20px; border-left: 2px dashed var(--border); min-width: 0; }
.stat-cell:first-child { border-left: none; }
.stat-cell .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted-2); display: block; margin-bottom: 6px; }
.stat-cell .v { font-family: var(--mono); font-size: 24px; color: var(--accent-deep); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-cell .v small { font-size: 12px; color: var(--muted); }

/* ============ 区块骨架 ============ */
.section {
  border-top: 2px dashed var(--border-strong);
  padding: 72px 0; margin-top: 8px;
}
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 {
  font-size: clamp(28px, 3.8vw, 44px); line-height: 1.15;
  margin: 0; font-weight: 700;
}
.section-head p { color: var(--muted); margin: 0; max-width: 46ch; font-size: 14.5px; }

/* ============ 演示卡片板（不均匀贴纸板） ============ */
.demo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.demo-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow);
  transition: transform 250ms var(--ease), box-shadow 250ms ease;
  display: flex; flex-direction: column; gap: 6px;
}
.demo-card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 14px 30px rgba(197, 108, 143, 0.16); }
.demo-card.is-hidden { display: none; }
.demo-card--wide { grid-column: span 4; }
.demo-card--tall { grid-column: span 2; grid-row: span 2; }
.demo-card--small { grid-column: span 2; }
.sticker {
  position: absolute; top: -12px; left: 18px;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--accent); color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(197, 108, 143, 0.28);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  transform: rotate(-6deg);
}
.demo-card h3 { font-size: 21px; font-weight: 700; margin: 8px 0 2px; }
.demo-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; flex: 1; }
.kn-list {
  list-style: none; margin: 8px 0 0; padding: 12px 14px 10px;
  background: var(--accent-ghost); border: 1.5px dashed var(--border-strong); border-radius: 14px;
  display: grid; gap: 5px;
  font-size: 12.5px; color: var(--ink); line-height: 1.55;
}
.kn-list li { display: flex; gap: 8px; align-items: baseline; }
.kn-list li::before {
  content: ''; flex: none; width: 8px; height: 8px; border-radius: 999px;
  background: var(--accent); opacity: 0.55; transform: translateY(-1px);
}
.more-chips {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  margin-top: 12px; font-size: 12px; color: var(--muted-2);
}
.more-chips a { color: var(--muted); text-decoration: none; border-bottom: 1.5px dashed var(--border-strong); padding-bottom: 1px; }
.more-chips a:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }
.demo-card .go {
  margin-top: 14px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--accent-deep); text-decoration: none;
  border: 2px solid var(--border-strong); border-radius: 999px; padding: 8px 16px;
  background: var(--accent-ghost);
}
.demo-card .go::after { content: '→'; font-size: 11px; }
.demo-card .go:hover { background: var(--accent-soft); }
.demo-card.is-soon { border-style: dashed; box-shadow: none; background: rgba(255, 255, 255, 0.6); }
.demo-card.is-soon .go { pointer-events: none; opacity: 0.55; cursor: not-allowed; background: transparent; }
.demo-card.is-soon .go::after { content: ''; }

/* 筛选 */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filter-btn {
  font: 600 13px/1 var(--sans); cursor: pointer;
  padding: 9px 18px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
  border: 2px solid var(--border);
}
.filter-btn:hover { color: var(--accent-deep); border-color: var(--border-strong); }
.filter-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============ 学习路线图 ============ */
.path-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 860px; }
.path-steps li {
  position: relative; padding: 18px 0 18px 64px;
  border-top: 2px dashed var(--border);
}
.path-steps li:first-child { border-top: none; }
.path-steps .ps-no {
  position: absolute; left: 0; top: 18px;
  width: 42px; height: 42px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  border: 2px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
}
.path-steps strong { display: block; font-size: 16px; margin-bottom: 3px; }
.path-steps .ps-desc { font-size: 13.5px; color: var(--muted); }
.path-steps .ps-links { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.path-steps .ps-links a {
  font-size: 12px; color: var(--accent-deep); text-decoration: none;
  background: var(--accent-ghost); border: 1.5px solid var(--border-strong);
  padding: 4px 11px; border-radius: 999px;
}
.path-steps .ps-links a:hover { background: var(--accent-soft); }

/* ============ 实验页布局 ============ */
.page-head { padding: 56px 0 36px; }
.exp { padding: 4px 0 64px; }
.exp-layout {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 18px; align-items: stretch;
}
.panel {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.canvas-frame { position: relative; }
.canvas-frame canvas { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; border: 1.5px solid var(--border); }
.canvas-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.control { margin-bottom: 16px; }
.control > label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  font-size: 13px; font-weight: 700; margin-bottom: 7px;
}
.control output, .control .val {
  font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}
input[type="range"] { width: 100%; accent-color: var(--accent); margin: 2px 0; }
input[type="range"]:disabled { opacity: 0.4; cursor: not-allowed; }
select {
  width: 100%; font: 600 13.5px/1.4 var(--sans); color: var(--ink);
  padding: 9px 12px; border: 2px solid var(--border); border-radius: 999px;
  background: var(--surface);
}
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.btn-row .btn { flex: 1 1 auto; }

/* 指标药丸 */
.metric-row {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-top: 18px; overflow: hidden; box-shadow: var(--shadow);
}
.metric { padding: 15px 18px; border-left: 2px dashed var(--border); min-width: 0; }
.metric:first-child { border-left: none; }
.metric .k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  color: var(--muted-2); display: block; margin-bottom: 5px;
}
.metric .v {
  font-family: var(--mono); font-size: 20px; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; line-height: 1.1; color: var(--accent-deep);
}
.metric .v small { font-size: 12px; color: var(--muted); }

/* 状态提示 */
.hint {
  display: none; align-items: flex-start; gap: 10px;
  margin-top: 14px; padding: 12px 14px;
  border-radius: 12px; font-size: 13.5px; line-height: 1.55;
}
.hint.is-show { display: flex; }
.hint--ok { background: var(--mint-soft); color: #2E7D64; }
.hint--warn { background: var(--butter-soft); color: #9A6A25; }
.hint--error { background: var(--accent-soft); color: var(--accent-deep); }
.hint button {
  margin-left: auto; flex: none;
  font: 700 12.5px/1 var(--sans); color: inherit;
  background: transparent; border: 2px solid currentColor;
  border-radius: 999px; padding: 6px 11px; cursor: pointer;
}

/* 空态浮层 */
.empty-overlay {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center; padding: 24px;
  background: rgba(250, 243, 247, 0.94);
  border-radius: 12px;
}
.empty-overlay.is-hidden { display: none; }
.empty-overlay h3 { font-size: 22px; margin: 0; }
.empty-overlay p { color: var(--muted); font-size: 13.5px; margin: 0 0 12px; max-width: 42ch; }
.empty-overlay .btn { pointer-events: auto; }

/* 图例 / 投票 / 邻居 */
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.legend .dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; margin-right: 6px; vertical-align: 0; }
.vote-list { list-style: none; margin: 0; padding: 0; }
.vote-list li { padding: 8px 0; border-top: 1.5px dashed var(--border); }
.vote-list li:first-child { border-top: none; }
.vote-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.vote-head .name { font-weight: 700; }
.vote-head .cnt { font-family: var(--mono); font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vote-bar { height: 8px; border-radius: 999px; opacity: 0.9; }
.neighbor-list { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.neighbor-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-top: 1.5px dashed var(--border);
  font-variant-numeric: tabular-nums;
}
.neighbor-list li:first-child { border-top: none; }
.neighbor-list .dist { font-family: var(--mono); color: var(--muted); }
.pred-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700;
  padding: 8px 16px; border-radius: 999px; margin: 2px 0 12px;
}
.kgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px;
}
.kcell {
  background: var(--accent-ghost); border: 2px solid var(--border);
  border-radius: 12px; padding: 9px 12px;
}
.kcell .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--muted-2); display: block; }
.kcell .a { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.kcell.is-current { background: var(--accent-soft); border-color: var(--accent); }
.kcell.is-current .a { color: var(--accent-deep); font-weight: 700; }
button.kcell { font: inherit; text-align: left; cursor: pointer; }
button.kcell:hover { border-color: var(--border-strong); }

/* 树结构列表 */
.tree-view {
  font-family: var(--mono); font-size: 12px; line-height: 1.9; color: var(--ink);
  background: var(--accent-ghost); border: 2px dashed var(--border);
  border-radius: 12px; padding: 12px 14px; max-height: 300px; overflow: auto;
  margin: 0; white-space: pre-wrap;
}
.tree-view b { color: var(--accent-deep); }

/* ============ 长文排版 ============ */
.prose { max-width: 780px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 30px; line-height: 1.2; margin: 0; font-weight: 700; }
.prose h3 { font-size: 16.5px; font-weight: 700; margin: 0; }
.prose p, .prose li { font-size: 15px; line-height: 1.8; }
.prose .caption { color: var(--muted); font-size: 13.5px; }
.prose a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--accent); }
.prose ol, .prose ul { padding-left: 24px; list-style: none; }
.prose ol { counter-reset: cute; }
.prose ol > li { counter-increment: cute; position: relative; }
.prose ol > li::before {
  content: counter(cute); position: absolute; left: -24px; top: 3px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 11px; font-weight: 700; text-align: center; line-height: 18px;
}
.prose ul > li { position: relative; padding-left: 4px; }
.prose ul > li::before {
  content: ''; display: inline-block; width: 13px; height: 12px; margin-right: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath d='M12 1c3.4 0 5 1.5 7.6 1.5 2 0 3.4 1.2 3.4 2.7s-1.4 2.8-3.4 2.8C17 8 15.4 9.5 12 9.5S7 8 4.4 8C2.4 8 1 6.7 1 5.2S2.4 2.5 4.4 2.5C7 2.5 8.6 1 12 1z' fill='%23EFA9C7'/%3E%3Crect x='3.5' y='8.4' width='17' height='2.4' rx='1.2' fill='%23C75B7A'/%3E%3Cpath d='M12 15.5c3.4 0 5-1.5 7.6-1.5 2 0 3.4-1.2 3.4-2.7s-1.4-2.8-3.4-2.8C17 8.5 15.4 7 12 7S7 8.5 4.4 8.5C2.4 8.5 1 9.8 1 11.3s1.4 2.7 3.4 2.7C7 14 8.6 15.5 12 15.5z' fill='%23EFA9C7' opacity='.88'/%3E%3C/svg%3E") no-repeat center / contain;
}
.prose li + li { margin-top: 6px; }
.formula {
  font-size: 16px; padding: 13px 18px;
  border: 2px dashed var(--border-strong); border-radius: 14px; background: var(--surface);
  overflow-x: auto; line-height: 1.7;
}
.formula i { font-family: Georgia, 'Times New Roman', serif; font-style: italic; }

/* 知识点拆解网格（演示页新增） */
.kn-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px;
}
.kn-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow);
}
.kn-card .kn-tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  padding: 3px 9px; border-radius: 999px; margin-bottom: 8px;
}
.kn-card h4 { margin: 0 0 6px; font-size: 15.5px; font-family: var(--display); }
.kn-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.kn-card .kn-k {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-deep);
  background: var(--accent-ghost); border-radius: 8px; padding: 2px 8px; display: inline-block; margin-top: 8px;
}

/* 术语速记 + FAQ */
.terms-mini { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.terms-mini li {
  font-size: 13.5px; padding: 9px 12px; border-radius: 12px;
  background: var(--bg-soft); border: 1.5px dashed var(--border);
}
.terms-mini b { color: var(--accent-deep); }
.faq-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.faq-list > li {
  padding: 13px 16px; border-radius: 14px;
  background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.7;
}
.faq-list .q { display: block; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.faq-list .q::before { content: 'Q '; font-family: var(--mono); color: var(--accent-deep); }

/* 表格 */
.table-wrap {
  border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow-x: auto; box-shadow: var(--shadow);
}
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.data th {
  font-family: var(--mono); font-weight: 700; font-size: 11px;
  letter-spacing: 0.1em; color: var(--accent-deep);
  text-align: left; padding: 12px 14px; border-bottom: 2px solid var(--border);
  background: var(--accent-ghost); white-space: nowrap;
}
table.data td { padding: 12px 14px; border-bottom: 1.5px dashed var(--border); vertical-align: top; line-height: 1.6; }
table.data tr:last-child td { border-bottom: none; }
table.data td.mono { font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 混淆矩阵 */
.cmatrix { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; font-size: 13px; align-items: stretch; }
.cmatrix .hd {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted-2);
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px;
}
.cmatrix .cell {
  border-radius: 12px; padding: 12px 10px; text-align: center;
  font-family: var(--mono); font-variant-numeric: tabular-nums;
  border: 2px solid var(--border); background: var(--accent-ghost);
}
.cmatrix .cell b { display: block; font-size: 18px; color: var(--ink); }
.cmatrix .cell.ok { background: var(--mint-soft); border-color: #B4DECE; }
.cmatrix .cell.bad { background: var(--accent-soft); border-color: #F0B9D0; }

/* 步骤列表 */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 16px 0 0; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 13px 0 13px 46px; border-top: 1.5px dashed var(--border);
  font-size: 14.5px; line-height: 1.65;
}
ol.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 14px;
  font-family: var(--mono); font-size: 12px; color: var(--accent-deep);
}

/* ============ 页脚 ============ */
footer {
  border-top: 2px dashed var(--border-strong);
  padding: 30px 0; margin-top: 24px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  letter-spacing: 0.04em;
}
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent-deep); }

/* ============ 入场动效 ============ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .nav .cta, .demo-card { transition: none; }
}

/* ============ 响应式 ============ */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .nav { border-radius: 22px; flex-wrap: wrap; padding: 12px 16px; }
  .nav ul { width: 100%; order: 3; overflow-x: auto; padding-top: 10px; gap: 16px; }
  .hero-grid { grid-template-columns: 1fr; }
  .cupcake-art { order: -1; }
  .cupcake-art svg { max-width: 150px; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-card--wide, .demo-card--tall, .demo-card--small { grid-column: span 1; grid-row: auto; }
  .exp-layout { grid-template-columns: 1fr; }
  .metric-row, .stat-band { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(odd), .stat-cell:nth-child(odd) { border-left: none; }
  .metric:nth-child(n+3), .stat-cell:nth-child(n+3) { border-top: 2px dashed var(--border); }
  .kn-grid { grid-template-columns: 1fr; }
  .terms-mini { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 48px; }
  .section { padding: 52px 0; }
}
@media (max-width: 640px) {
  .cmatrix { grid-template-columns: auto 1fr 1fr; }
  .kgrid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   趣味扩展 · 闯关测验 / 术语配对 / 学习进度
   （沿用上方 :root token 与马卡龙设计语言）
   ============================================================ */
[hidden] { display: none !important; }

/* ---------- 开始页：模式 / 难度卡片 ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mode-grid:last-of-type { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mode-card {
  display: flex; flex-direction: column; gap: 5px; text-align: left; cursor: pointer;
  padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 2px solid var(--border);
  color: var(--ink); font-family: var(--sans);
  transition: transform 200ms var(--ease), border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.mode-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.mode-card.is-on { border-color: var(--accent); background: var(--accent-ghost); box-shadow: var(--shadow); }
.mode-card .mode-ico { font-size: 22px; line-height: 1; }
.mode-card strong { font-size: 15.5px; font-weight: 700; }
.mode-card small { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.mode-card.is-on strong { color: var(--accent-deep); }

.topic-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.topic-chip {
  font: 600 13px/1 var(--sans); cursor: pointer;
  padding: 9px 15px; border-radius: 999px;
  background: var(--surface); border: 2px solid var(--border); color: var(--muted);
}
.topic-chip:hover { border-color: var(--border-strong); color: var(--accent-deep); }
.topic-chip.is-on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- 成绩看板小格 ---------- */
.quiz-board {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden; box-shadow: var(--shadow);
}
.qb-cell { padding: 14px 16px; border-left: 2px dashed var(--border); min-width: 0; }
.qb-cell:first-child { border-left: none; }
.qb-cell .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); display: block; margin-bottom: 5px; }
.qb-cell .v { font-family: var(--mono); font-size: 19px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }

/* ---------- 游戏 HUD ---------- */
.quiz-hud {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 4px 2px 12px;
}
.hud-left, .hud-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hud-item { display: flex; flex-direction: column; }
.hud-item .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); }
.hud-item .v { font-family: var(--mono); font-size: 19px; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.hearts { display: flex; gap: 3px; font-size: 22px; line-height: 1; }
.heart { color: var(--berry); transition: opacity 200ms, transform 200ms; }
.heart.is-lost { color: #E8DAE0; transform: scale(0.85); }

.timer-ring { position: relative; width: 44px; height: 44px; }
.timer-ring svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.timer-ring .tr-bg { fill: none; stroke: var(--border); stroke-width: 4; }
.timer-ring .tr-fg { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; transition: stroke-dashoffset 100ms linear, stroke 200ms; }
.timer-ring .tr-fg.is-low { stroke: var(--berry); }
.timer-ring .tr-num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--accent-deep);
}

.quiz-progress { height: 10px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; margin-bottom: 16px; }
.quiz-progress-bar { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #F1A9C9, var(--accent)); transition: width 400ms var(--ease); }

/* ---------- 题目卡片 ---------- */
.quiz-card { position: relative; padding-top: 26px; }
.quiz-mascot { width: 76px; height: 84px; float: right; margin: -6px 0 6px 14px; }
.quiz-mascot svg { width: 100%; height: 100%; }
.quiz-qhead { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.q-count { font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.04em; }
.quiz-q { font-family: var(--display); font-size: clamp(20px, 2.6vw, 26px); line-height: 1.4; margin: 4px 0 18px; }

.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; clear: both; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 14px 16px; border-radius: 14px;
  background: var(--surface); border: 2px solid var(--border); color: var(--ink);
  font: 500 14.5px/1.5 var(--sans);
  transition: transform 160ms var(--ease), border-color 160ms, background 160ms, box-shadow 160ms;
}
.opt:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.opt-key {
  flex: none; width: 26px; height: 26px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  background: var(--accent-ghost); color: var(--accent-deep); border: 1.5px solid var(--border-strong);
}
.opt-text { flex: 1; }
.quiz-options.is-locked .opt { cursor: default; }
.quiz-options.is-locked .opt:hover { transform: none; box-shadow: none; border-color: var(--border); }
.opt.is-right { background: var(--mint-soft); border-color: #8FD0B8; }
.opt.is-right .opt-key { background: #8FD0B8; border-color: #8FD0B8; color: #fff; }
.opt.is-wrong { background: var(--accent-soft); border-color: #E58BAD; animation: shake 0.4s; }
.opt.is-wrong .opt-key { background: #E58BAD; border-color: #E58BAD; color: #fff; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-5px)} 75%{transform:translateX(5px)} }

.quiz-feedback { margin-top: 18px; padding: 14px 16px; border-radius: 14px; font-size: 14px; line-height: 1.7; }
.quiz-feedback.is-ok { background: var(--mint-soft); color: #2E7D64; }
.quiz-feedback.is-bad { background: var(--accent-ghost); color: var(--accent-deep); }
.quiz-feedback .fb-head { font-weight: 700; margin-bottom: 4px; }
.quiz-feedback .fb-body { color: var(--ink); }
.quiz-feedback .fb-body strong { color: inherit; }

/* ---------- 结算 ---------- */
.result-hero { text-align: center; }
.result-stars { font-size: 40px; letter-spacing: 6px; line-height: 1; margin-bottom: 8px; color: #E8DAE0; }
.result-stars.stars-1 { color: #F2C879; }
.result-stars.stars-2 { color: #E9B45C; }
.result-stars.stars-3 { color: #E0A23F; text-shadow: 0 2px 10px rgba(224,162,63,0.4); }
.result-title { font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); margin: 4px 0 6px; }
.result-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; }
.result-mascot { width: 96px; height: 104px; float: none; margin: 4px auto 14px; }
.result-hero .quiz-board { text-align: left; max-width: 640px; margin: 0 auto; }

.review-list { display: grid; gap: 10px; }
.review-item {
  display: grid; gap: 3px; text-decoration: none; color: var(--ink);
  padding: 13px 16px; border-radius: 14px;
  background: var(--surface); border: 2px solid var(--border);
  transition: border-color 180ms, transform 180ms var(--ease);
}
.review-item:hover { border-color: var(--accent); transform: translateX(3px); }
.review-item .ri-topic { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--accent-deep); }
.review-item .ri-q { font-size: 14px; font-weight: 600; }
.review-item .ri-a { font-size: 12.5px; color: var(--muted); }

/* ---------- 术语配对 ---------- */
.match-board { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.match-col { display: flex; flex-direction: column; gap: 10px; }
.match-card {
  text-align: left; cursor: pointer; font: 600 14px/1.5 var(--sans); color: var(--ink);
  padding: 13px 16px; border-radius: 14px;
  background: var(--surface); border: 2px solid var(--border);
  transition: transform 160ms var(--ease), border-color 160ms, background 160ms, box-shadow 160ms;
}
.match-term { font-family: var(--display); font-size: 15.5px; }
.match-def { font-weight: 500; font-size: 13px; color: var(--muted); }
.match-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.match-card.is-sel { border-color: var(--accent); background: var(--accent-ghost); color: var(--accent-deep); }
.match-card.is-matched { background: var(--mint-soft); border-color: #8FD0B8; color: #2E7D64; cursor: default; opacity: 0.92; }
.match-card.is-matched::after { content: ' ✓'; font-weight: 700; }
.match-card.is-wrong { background: var(--accent-soft); border-color: #E58BAD; animation: shake 0.4s; }
.canvas-note.is-ok { color: #2E7D64; font-weight: 600; }
.canvas-note.is-warn { color: #9A6A25; font-weight: 600; }

/* ---------- 撒花画布 ---------- */
.fx-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 200; }

/* ---------- 学习进度看板（首页） ---------- */
.progress-board {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 22px; align-items: center;
}
.progress-ring-wrap { display: flex; align-items: center; gap: 18px; }
.progress-ring { position: relative; width: 118px; height: 118px; flex: none; }
.progress-ring svg { width: 118px; height: 118px; transform: rotate(-90deg); }
.progress-ring .pr-bg { fill: none; stroke: var(--accent-soft); stroke-width: 10; }
.progress-ring .pr-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 700ms var(--ease); }
.progress-ring .pr-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.progress-ring .pr-num b { font-family: var(--mono); font-size: 26px; color: var(--accent-deep); }
.progress-ring .pr-num span { font-family: var(--mono); font-size: 10px; color: var(--muted-2); letter-spacing: 0.1em; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.badge {
  display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px;
  background: var(--surface); border: 2px solid var(--border); font-size: 12.5px; color: var(--muted);
}
.badge .b-ico { font-size: 17px; filter: grayscale(1); opacity: 0.5; }
.badge.is-done { border-color: var(--accent); background: var(--accent-ghost); color: var(--ink); }
.badge.is-done .b-ico { filter: none; opacity: 1; }

/* ---------- 首页游戏入口卡片 ---------- */
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.game-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 26px 26px 22px; border-radius: var(--radius);
  background: var(--surface); border: 2px solid var(--border); box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); position: relative; overflow: hidden;
  transition: transform 250ms var(--ease), box-shadow 250ms ease;
}
.game-card::before {
  content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px;
  border-radius: 999px; background: var(--accent-ghost); z-index: 0;
}
.game-card:hover { transform: translateY(-6px) rotate(-0.3deg); box-shadow: 0 14px 30px rgba(197,108,143,0.16); }
.game-card > * { position: relative; z-index: 1; }
.game-card .gc-ico {
  width: 52px; height: 52px; border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; background: var(--accent-soft); color: var(--accent-deep);
}
.game-card h3 { font-size: 22px; margin: 4px 0 0; }
.game-card p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.6; }
.game-card .gc-go {
  margin-top: 12px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--accent-deep);
  border: 2px solid var(--border-strong); border-radius: 999px; padding: 8px 16px; background: var(--accent-ghost);
}
.game-card .gc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }

/* ---------- 趣味响应式 ---------- */
@media (max-width: 900px) {
  .quiz-options { grid-template-columns: 1fr; }
  .match-board { grid-template-columns: 1fr; }
  .progress-board { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mode-grid, .mode-grid:last-of-type { grid-template-columns: 1fr; }
  .quiz-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qb-cell:nth-child(odd) { border-left: none; }
  .qb-cell:nth-child(n+3) { border-top: 2px dashed var(--border); }
  .quiz-mascot { width: 56px; height: 62px; }
}

/* ---------- 术语速查页 ---------- */
.gloss-tools {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; margin-bottom: 14px;
}
.gloss-search {
  flex: 1 1 280px; min-width: 0;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: #fff;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}
.gloss-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-ghost); }
.gloss-search .ico { font-size: 16px; line-height: 1; opacity: .8; }
.gloss-search input {
  flex: 1 1 auto; min-width: 0;
  border: none; outline: none; background: transparent;
  font: inherit; font-size: 14.5px;
  color: var(--ink);
}
.gloss-search input::placeholder { color: var(--muted); }
.gloss-meta {
  font-size: 13px; color: var(--muted); font-weight: 600;
  padding: 6px 12px; background: var(--accent-ghost); border-radius: 999px;
}

.gloss-grid { display: flex; flex-direction: column; gap: 18px; }
.gloss-topic {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
}
.gloss-topic > header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--border);
}
.gloss-topic > header h3 { margin: 0; font-size: 18px; }
.gloss-topic > header .gc-go { font-size: 12.5px; padding: 6px 12px; }
.gloss-topic ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.gloss-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  border: 1.5px solid transparent;
  transition: border-color 160ms ease, background 160ms ease;
}
.gloss-card:hover { border-color: var(--border-strong); background: #fff; }
.gloss-term {
  font-weight: 700; color: var(--accent-deep); font-size: 14.5px;
  font-family: ui-rounded, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.gloss-def { color: var(--muted); font-size: 13px; line-height: 1.55; }
.gloss-card mark {
  background: var(--butter-soft); color: var(--ink);
  padding: 1px 4px; border-radius: 4px;
}

/* ---------- 继续学习卡片 + 连续天数 ---------- */
.continue-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--accent-ghost), #FDF3F7);
  border: 2px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
}
.continue-card .cc-ico {
  font-size: 28px; line-height: 1;
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 50%;
  box-shadow: 0 4px 0 var(--border);
}
.continue-card .cc-body { flex: 1 1 240px; min-width: 0; }
.continue-card .cc-body strong { display: block; font-size: 15px; color: var(--ink); }
.continue-card .cc-body span { font-size: 13px; color: var(--muted); }
.continue-card .cc-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 0 var(--accent-deep);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.continue-card .cc-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--accent-deep); }
.continue-card.is-empty { background: var(--bg-soft); border-style: dashed; }
.continue-card.is-empty .cc-ico { box-shadow: none; opacity: .6; }

.streak-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 10px;
  padding: 6px 14px;
  background: var(--butter-soft);
  border: 2px solid #F0DDB4;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  color: #8A6430;
  align-self: flex-start;
}
.streak-pill.is-cold { background: var(--bg-soft); border-color: var(--border); color: var(--muted); }
.streak-pill .ico { font-size: 15px; line-height: 1; }

@media (max-width: 640px) {
  .continue-card { flex-direction: column; align-items: stretch; }
  .continue-card .cc-cta { align-self: flex-start; }
}

/* ============ 打印 ============ */
@media print {
  .nav, .fx-canvas, .filter-row, .actions, .btn, .hint { display: none !important; }
  body { background: #fff; }
  .reveal { opacity: 1; transform: none; }
  .section { padding: 24px 0; }
}
