/* ============================================================
   baby_learn 知识库 · Brilliant 风格白天主题
   米白暖底 + 深藏青文字 + 亮黄 CTA + 白色卡片
   同时服务：落地页 / 登录注册页 / 知识库阅读页
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #fdfaf3;
  --bg-deep: #f6f0e3;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.88);
  --ink: #14303f;
  --muted: #5d7787;
  --line: rgba(20, 48, 63, 0.12);
  --line-strong: rgba(20, 48, 63, 0.26);
  --accent: #ffbe27;
  --accent-deep: #d9a010;
  --accent-ink: #14303f;
  --blue: #1779b3;
  --green: #178a66;
  --purple: #7a4fd0;
  --coral: #dd5a40;
  --orange: #d97a1f;
  --missing: #d95f4c;
  --shadow: 0 10px 30px rgba(24, 46, 59, 0.08);
  --shadow-lift: 0 16px 42px rgba(24, 46, 59, 0.14);
  --radius-lg: 22px;
  --radius-md: 14px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }

body {
  margin: 0;
  color: var(--ink);
  line-height: 1.72;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(255, 190, 39, 0.10), transparent 60%),
    radial-gradient(900px 480px at 8% 108%, rgba(23, 121, 179, 0.07), transparent 55%),
    var(--bg);
  background-attachment: fixed;
}

a { color: var(--blue); text-underline-offset: 0.18em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* ---------- 顶栏 / 页脚 ---------- */

.site-header, .site-footer { max-width: 1200px; margin: 0 auto; padding: 0.75rem 1.5rem; color: var(--muted); }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.site-brand-wrap { display: flex; align-items: center; }
.site-brand {
  font-size: 1.45rem; font-weight: 900; color: #111827; text-decoration: none;
  letter-spacing: 0.02em;
}
.site-brand:hover { color: #111827; }
.site-header a { font-weight: 700; text-decoration: none; color: #111827; }
.nav-persona { margin-left: auto; display: flex; align-items: center; gap: 0.8rem; }
.site-header-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-streak {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.35rem 0.85rem; background: #f9fafb;
  border: 1.5px solid #e5e7eb; border-radius: 999px;
  font-weight: 750; color: #111827; font-size: 0.92rem; letter-spacing: -0.01em;
}
.site-footer { border-top: 1px solid var(--line); font-size: 0.9rem; }

.app-nav { display: flex; align-items: center; gap: 0.4rem; }
.app-nav-item {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.45rem; padding: 0.45rem 0.85rem;
  color: #4b5563; text-decoration: none; font-size: 0.92rem; font-weight: 600;
  border-bottom: 2.5px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.app-nav-item svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
}
.app-nav-item.is-active { border-bottom-color: #111827; color: #111827; font-weight: 750; }
.app-nav-item:hover { color: #111827; }

.persona-chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.32rem 0.85rem 0.32rem 0.4rem;
  background: color-mix(in srgb, var(--persona-accent, #ffbe27) 18%, white);
  border: 1px solid color-mix(in srgb, var(--persona-accent, #ffbe27) 50%, white);
  border-radius: 999px; font-size: 0.88rem; color: var(--ink); font-weight: 650;
}
.persona-emoji {
  display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem;
  background: var(--persona-accent, #ffbe27); border-radius: 50%; font-size: 0.95rem;
}
.persona-name small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted); line-height: 1.1; }

/* 手机顶栏：品牌留字，导航只留图标，人格只留头像 —— 否则 390px 下会竖排折行 */
@media (max-width: 720px) {
  .site-header { padding: 0.5rem 0.85rem; gap: 0.5rem; }
  .site-brand { font-size: 1rem; white-space: nowrap; }
  .app-nav { gap: 0; }
  .app-nav-item { padding: 0.45rem 0.5rem; }
  .app-nav-item span { display: none; }
  .nav-streak { padding: 0.22rem 0.6rem; font-size: 0.82rem; }
  .persona-name { display: none; }
  .persona-chip { padding: 0.15rem; }
  .persona-emoji { width: 1.9rem; height: 1.9rem; font-size: 1rem; }
  .nav-persona { gap: 0.45rem; }
  .nav-persona .btn-sm { padding: 0.32rem 0.62rem; font-size: 0.8rem; }
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.78rem 1.6rem; border-radius: 999px;
  font: inherit; font-weight: 750; text-decoration: none; line-height: 1.2;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.03); box-shadow: var(--shadow-lift); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(20, 48, 63, 0.04); }
.btn-sm { padding: 0.42rem 1rem; font-size: 0.88rem; }

/* ---------- 落地页 ---------- */

.landing { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem 4rem; }
.hero { text-align: center; padding: clamp(3rem, 9vw, 6.5rem) 0 3rem; }
.hero-eyebrow {
  display: inline-block; padding: 0.35rem 1rem; margin-bottom: 1.4rem;
  border: 1px solid var(--line-strong); border-radius: 999px;
  color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; background: var(--panel-soft);
}
.hero h1 {
  margin: 0 auto; max-width: 17em;
  font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 850;
  letter-spacing: -0.03em; line-height: 1.14; text-wrap: balance; color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { max-width: 38em; margin: 1.3rem auto 0; color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; margin-top: 2.2rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  max-width: 52rem; margin: 3.2rem auto 0;
}
.hero-stats div {
  padding: 1.3rem 1rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.hero-stats strong { display: block; font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 850; letter-spacing: -0.02em; color: var(--ink); }
.hero-stats span { color: var(--muted); font-size: 0.92rem; }

.section { margin-top: 4.5rem; }
.section-title { margin: 0 0 0.4rem; font-size: clamp(1.5rem, 3.4vw, 2rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { margin: 0 0 1.8rem; color: var(--muted); max-width: 42em; }

.subject-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.subject-card {
  display: flex; flex-direction: column; gap: 0.65rem;
  padding: 1.4rem 1.4rem 1.2rem; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.subject-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-lift); }
.subject-card.is-placeholder { opacity: 0.68; }
.subject-icon {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem;
  background: color-mix(in srgb, var(--tone, var(--orange)) 16%, white);
  border: 1px solid color-mix(in srgb, var(--tone, var(--orange)) 45%, white);
  color: var(--tone, var(--orange)); border-radius: 14px; font-size: 1.4rem; font-weight: 800;
}
.subject-name { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.subject-meta { color: var(--muted); font-size: 0.88rem; margin-top: -0.45rem; }
.subject-topics { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.2rem; }
.subject-topics span {
  padding: 0.16rem 0.62rem; font-size: 0.8rem; color: var(--muted);
  background: var(--bg-deep); border-radius: 999px;
}
.subject-go { margin-top: auto; padding-top: 0.7rem; color: var(--orange); font-weight: 750; font-size: 0.95rem; }
.subject-card:hover .subject-go { text-decoration: underline; text-underline-offset: 0.25em; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; }
.feature-grid > div {
  padding: 1.6rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.feature-grid h3 { margin: 0.2rem 0 0.5rem; font-size: 1.15rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature-emoji { font-size: 1.7rem; }

.final-cta {
  margin-top: 5rem; padding: clamp(2.2rem, 6vw, 4rem) 1.5rem; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.final-cta h2 { margin: 0 0 0.6rem; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 850; letter-spacing: -0.02em; border: 0; padding: 0; }
.final-cta p { margin: 0 auto 1.8rem; color: var(--muted); max-width: 34em; }
.landing-footer { margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; text-align: center; }

/* ---------- 登录 / 注册 ---------- */

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; }
.auth-card {
  width: min(24rem, 100%); padding: 2.6rem 2rem 2.1rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow-lift);
}
.auth-brand { display: block; text-align: center; text-decoration: none; color: var(--ink); font-weight: 850; font-size: 1.15rem; margin-bottom: 1.6rem; }
.auth-mark { text-align: center; font-size: 2.6rem; line-height: 1; margin-bottom: 0.9rem; }
.auth-title { margin: 0 0 0.35rem; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; text-align: center; }
.auth-sub { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.95rem; text-align: center; }

/* 家庭成员快选：点一下填好用户名，手机上不用打字 */
.fam-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.fam-pill {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 3rem; padding: 0 0.75rem;
  font: inherit; font-size: 0.88rem; font-weight: 700; color: var(--ink);
  background: #ffffff; border: 2px solid var(--line); border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.fam-pill:hover { border-color: var(--line-strong); }
.fam-pill:active { transform: translateY(2px); }
.fam-pill.is-on { border-color: var(--ink); background: var(--bg-deep); }
.fam-emoji { font-size: 1.2rem; line-height: 1; }

.auth-or {
  display: flex; align-items: center; gap: 0.9rem;
  margin: 1.5rem 0 1.3rem;
  color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-error {
  margin: 0 0 1rem; padding: 0.6rem 0.9rem; font-size: 0.9rem;
  color: #a33d2a; background: #fdecea;
  border: 1px solid #f3c4bb; border-radius: 10px;
}
.auth-form { display: grid; gap: 0.85rem; }
.auth-form label { display: grid; gap: 0.3rem; font-size: 0.88rem; font-weight: 650; color: var(--ink); }
.auth-form input[type="text"], .auth-form input[type="password"], .auth-form input[type="url"], .auth-form select {
  height: 3.25rem; padding: 0 1rem; font: inherit; font-size: 1rem; color: var(--ink);
  background: #ffffff; border: 2px solid var(--line); border-radius: 12px;
}
.auth-form input::placeholder { color: var(--muted); opacity: 0.75; }
.auth-form input:focus, .auth-form select:focus {
  outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink);
}
.auth-form select { appearance: none; }
.auth-form .btn { width: 100%; margin-top: 0.4rem; }

/* 主按钮：硬阴影 + 按下位移（Brilliant 的 3D 按钮手感） */
.auth-submit {
  height: 3.25rem; padding: 0 1.5rem; border-radius: 999px;
  font-size: 1.02rem; font-weight: 750;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 4px 0 var(--accent-deep);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out, background 0.1s ease-out;
}
.auth-submit:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 5px 0 var(--accent-deep); }
.auth-submit:active:not([disabled]) { transform: translateY(4px); box-shadow: none; }
.auth-submit[disabled] {
  background: rgba(20, 48, 63, 0.06); color: rgba(20, 48, 63, 0.28);
  box-shadow: none; cursor: default;
}

@media (max-width: 480px) {
  .auth-card { padding: 2rem 1.4rem 1.6rem; border-radius: 22px; }
  .auth-title { font-size: 1.7rem; }
}
.auth-check {
  display: flex !important; flex-direction: row; align-items: center; gap: 0.55rem;
  font-weight: 650;
}
.auth-check input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent); }
.auth-hint { text-align: center; color: var(--muted); font-size: 0.88rem; margin: 1.1rem 0 0; }
.auth-hint a { color: var(--ink); font-weight: 700; }
.emoji-field { display: flex; gap: 0.5rem; align-items: center; }
.emoji-field input { width: 4.2rem; text-align: center; font-size: 1.2rem; }
.emoji-presets { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.emoji-presets button {
  width: 2.3rem; height: 2.3rem; font-size: 1.15rem; cursor: pointer;
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
}
.emoji-presets button[aria-pressed="true"] { border-color: var(--orange); outline: 2px solid var(--accent); }
.accent-swatches { display: flex; gap: 0.55rem; }
.accent-swatches label { position: relative; cursor: pointer; }
.accent-swatches input { position: absolute; opacity: 0; inset: 0; }
.accent-swatches span {
  display: inline-block; width: 1.9rem; height: 1.9rem; border-radius: 50%;
  border: 2px solid transparent; transition: transform 0.12s ease;
}
.accent-swatches input:checked + span { border-color: var(--ink); transform: scale(1.12); }

/* ---------- 学习仪表盘（问候 + 修仙境界 + 学科进度） ---------- */

.kb-dashboard { margin-top: 2.4rem; text-align: left; }
.dash-greet {
  margin: 0; display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; justify-content: center;
  font-size: clamp(1.35rem, 3.2vw, 1.9rem); font-weight: 850; letter-spacing: -0.02em; color: var(--ink);
}
.dash-streak { font-size: 0.95rem; font-weight: 700; color: var(--orange); }
.dash-goal {
  font-size: 0.92rem; font-weight: 700; color: var(--blue); text-decoration: none;
  padding: 0.18rem 0.75rem; border: 1px solid rgba(23, 121, 179, 0.35); border-radius: 999px;
  background: rgba(23, 121, 179, 0.06);
}
.dash-goal:hover { border-color: var(--blue); background: rgba(23, 121, 179, 0.12); }
.dash-realm {
  max-width: 44rem; margin: 1.2rem auto 0; padding: 1.15rem 1.35rem 1rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.dash-realm-label {
  margin: 0 0 0.7rem; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.02em;
  color: var(--orange);
}
.dash-bar {
  height: 14px; border-radius: 999px; background: rgba(20, 48, 63, 0.08);
  border: 1px solid var(--line); overflow: hidden;
}
.dash-bar i {
  display: block; height: 100%; min-width: 2px;
  background: linear-gradient(90deg, var(--blue), var(--accent));
  border-radius: 999px; transition: width 0.5s ease;
}
.dash-bar-sm { height: 8px; margin: 0.45rem 0; }
.dash-caption {
  margin: 0.55rem 0 0; display: flex; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; font-size: 0.85rem; color: var(--muted);
}
.dash-subjects { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.dash-subject {
  padding: 0.85rem 1rem 0.75rem; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.dash-subject-name { font-weight: 750; font-size: 0.95rem; }
.dash-subject-value { float: right; font-size: 0.85rem; color: var(--muted); }

.dash-paths {
  display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; justify-content: center;
  max-width: 44rem; margin: 1rem auto 0;
}
.dash-paths-label { font-size: 0.82rem; font-weight: 750; color: var(--muted); letter-spacing: 0.06em; }
.dash-path {
  font-size: 0.88rem; font-weight: 700; text-decoration: none; color: var(--muted);
  padding: 0.22rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.dash-path:hover { border-color: var(--ink); color: var(--ink); }
.dash-path.is-active {
  color: var(--accent-ink); background: var(--accent); border-color: var(--accent);
  box-shadow: var(--shadow);
}

/* 学习路径卡片廊 */
.path-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem; max-width: 52rem; margin: 1.1rem auto 0;
}
.path-card {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto;
  column-gap: 0.9rem; align-items: center;
  padding: 1rem 1.1rem; text-decoration: none; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line-strong); }
.path-card.is-active { border: 2px solid var(--accent); }
.path-icon {
  grid-row: 1 / span 2; display: inline-grid; place-items: center;
  width: 2.7rem; height: 2.7rem; font-size: 1.4rem;
  background: rgba(255, 190, 39, 0.18); border: 1px solid rgba(217, 122, 31, 0.35);
  border-radius: 12px;
}
.path-head { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.path-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.path-card.is-active .path-name { color: var(--orange); }
.path-goal { font-size: 0.82rem; color: var(--muted); line-height: 1.45; }
.path-card .dash-bar { grid-column: 1 / -1; }
.path-value { grid-column: 1 / -1; font-size: 0.78rem; color: var(--muted); margin-top: -0.2rem; }

/* ---------- 首页布局 A/B ---------- */

.layout-picker {
  display: flex; align-items: center; gap: 0.45rem; justify-content: flex-end;
  margin: 0 0 0.8rem; font-size: 0.82rem;
}
.layout-label { color: var(--muted); font-weight: 650; }
.layout-opt {
  font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
  padding: 0.24rem 0.8rem; color: var(--muted);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
}
.layout-opt[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.layout-opt:hover { border-color: var(--ink); color: var(--ink); }
.layout-opt[aria-pressed="true"]:hover { color: var(--accent-ink); }

/* 布局 B：首页收敛为学习台 */
[data-layout="B"] .hero { display: none; }
[data-layout="B"] > .home-view { display: none; }
[data-layout="B"][data-view="today"] > .home-view[data-view="today"],
[data-layout="B"][data-view="subjects"] > .home-view[data-view="subjects"],
[data-layout="B"][data-view="me"] > .home-view[data-view="me"] { display: block; }
[data-layout="B"] .kb-dashboard { margin-top: 0; }
[data-layout="B"] .path-cards { max-width: none; margin-top: 1.6rem; }
[data-layout="B"] .course-rail.path-cards { margin-top: 0; }
[data-layout="B"] .today-loop { margin-top: 0; padding: 0; background: transparent; border: 0; box-shadow: none; flex: 1; min-width: 0; }
[data-layout="B"] .today-loop > h2 { font-size: 1.15rem; font-weight: 750; margin-bottom: 0.85rem; }
[data-layout="B"] .today-streak { display: none; }
.today-desk {
  display: flex; flex-direction: column; gap: 1.6rem;
}
.today-ask { position: relative; width: 100%; }
.today-welcome {
  margin: 0 0 1rem; border: 0; padding: 0;
  font-size: clamp(1.7rem, 3vw, 2.05rem); font-weight: 750; letter-spacing: -0.03em;
}
.ask-pill {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; min-height: 52px; padding: 4px 4px 4px 16px;
  background: #fff; border: 2px solid rgba(0, 0, 0, 0.10); border-radius: 999px;
}
.ask-pill:focus-within { border-color: rgba(0, 0, 0, 0.55); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08); }
.ask-icon { flex: 0 0 20px; width: 20px; height: 20px; color: rgba(0, 0, 0, 0.55); }
.ask-pill input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  color: var(--ink); font: inherit; font-size: 0.95rem; outline: none;
}
.ask-pill input::placeholder { color: rgba(0, 0, 0, 0.38); }
.ask-pill input::-webkit-search-cancel-button { display: none; }
.ask-go {
  flex: 0 0 auto; min-width: 61px; height: 40px; padding: 0 1rem;
  border: 0; border-radius: 54px; background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.28); font: inherit; font-size: 1rem; font-weight: 550;
  cursor: pointer;
}
.ask-pill.is-ready .ask-go,
.ask-go:hover { background: #111; color: #fff; }
.ask-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 0.45rem); z-index: 8;
  display: grid; gap: 0.15rem; padding: 0.45rem;
  background: #fff; border: 1px solid #e6e6e4; border-radius: 18px;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.10);
}
.ask-hit {
  display: grid; grid-template-columns: auto 1fr; column-gap: 0.7rem; row-gap: 0.05rem;
  padding: 0.65rem 0.75rem; border-radius: 12px; text-decoration: none; color: inherit;
}
.ask-hit:hover,
.ask-hit.is-active { background: #f4f4f2; }
.ask-hit-kind {
  grid-row: 1 / span 2; align-self: center;
  padding: 0.12rem 0.5rem; border-radius: 999px;
  background: #eef4ff; color: #3d7eff; font-size: 0.72rem; font-weight: 750;
}
.ask-hit[data-kind="card"] .ask-hit-kind { background: #eef8f2; color: #178a66; }
.ask-hit[data-kind="map"] .ask-hit-kind { background: #f3f0ea; color: #6b7280; }
.ask-hit-title { font-weight: 750; }
.ask-hit-meta { color: var(--muted); font-size: 0.8rem; }
.ask-empty { margin: 0; padding: 0.7rem 0.8rem; color: var(--muted); font-size: 0.9rem; }
.streak-dock {
  margin-top: 1.15rem; padding: 1.15rem 1.2rem 1.2rem;
  background: #fff; border: 1px solid #ecece9; border-radius: 22px;
}
.streak-head { display: flex; align-items: baseline; gap: 0.25rem; }
.streak-head strong { font-size: 2.4rem; letter-spacing: -0.05em; line-height: 1; }
.streak-bolt { font-size: 1.35rem; }
.streak-caption { margin: 0.35rem 0 0.9rem; color: var(--muted); font-size: 0.9rem; }
.streak-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.35rem; }
.streak-day {
  display: grid; place-items: center; height: 2rem;
  background: #f3f3f1; border-radius: 999px; color: #9ca3af; font-size: 0.72rem; font-weight: 700;
}
.streak-day.is-on { background: #ffe08a; color: #111; }
.streak-day.is-today { box-shadow: inset 0 0 0 2px #111; }
@media (min-width: 960px) {
  .today-desk { flex-direction: row; align-items: flex-start; gap: 52px; }
  .today-ask { position: sticky; top: 92px; flex: 0 0 338px; width: 338px; }
}
[data-layout="B"] .home-view[data-view="subjects"] > h2 {
  margin: 2.6rem 0 0.9rem; border: 0; padding: 0;
  font-size: 1.15rem; font-weight: 750;
}
[data-layout="B"] .final-cta { margin-top: 2.6rem; box-shadow: none; }
#home-root[data-layout="B"] > .layout-picker { display: none; }
.about-fold .layout-picker { display: flex; justify-content: flex-start; margin: 1rem 0 0; }

body.is-home {
  --bg: #ffffff;
  --bg-deep: #f5f5f3;
  --ink: #111111;
  --muted: #6b7280;
  --line: #e8e8e6;
  --line-strong: #d4d4d1;
  --shadow: none;
  --shadow-lift: 0 10px 28px rgba(17, 17, 17, 0.06);
  background: #ffffff;
}
body.is-home .site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
}
body.is-home .page-shell {
  width: min(1080px, calc(100% - 2rem));
  grid-template-columns: 1fr;
  margin-top: 1.2rem;
}
body.is-home .page-toc,
body.is-home .kb-landing .backlinks,
body.is-home .site-footer { display: none; }
body.is-home .persona-chip { display: none; }

.profile-desk { display: grid; gap: 1.15rem; }
.profile-head { display: flex; align-items: center; gap: 0.9rem; padding: 0.4rem 0 0.2rem; }
.profile-avatar {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 3.4rem; height: 3.4rem; font-size: 1.55rem;
  background: var(--persona-accent, #3d7eff);
  color: #fff; border-radius: 14px;
}
.profile-name { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; border: 0; padding: 0; }
.profile-meta { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.92rem; }

.period-switch {
  display: inline-flex; justify-self: center; padding: 0.18rem;
  background: #f0f0ee; border-radius: 999px;
}
.period-opt {
  min-width: 4.2rem; padding: 0.38rem 1rem; border: 0; background: transparent;
  color: var(--muted); font: inherit; font-size: 0.92rem; font-weight: 700;
  border-radius: 999px; cursor: pointer;
}
.period-opt[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(17, 17, 17, 0.06); }
.period-range {
  display: flex; align-items: center; justify-content: center; gap: 0.8rem;
}
.period-label { margin: 0; color: var(--muted); font-size: 0.95rem; }
.period-arrow {
  width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--ink);
  font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 8px;
}
.period-arrow:hover { background: #f3f3f1; }
.period-arrow:disabled { color: #c8c8c5; cursor: default; background: transparent; }

.week-summary {
  position: relative; overflow: hidden;
  padding: 1.35rem 1.4rem 1.5rem;
  background: #e7f3ea; border-radius: 22px; color: var(--ink);
}
.week-summary h2 { margin: 0; border: 0; padding: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.week-summary-range { margin: 0.2rem 0 0.85rem; color: #5f7464; font-size: 0.92rem; }
.week-summary ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; max-width: 34em; }
.week-summary li { color: #243129; }
.week-summary-mascot {
  position: absolute; right: 1rem; bottom: 0.4rem;
  font-size: 2.4rem; opacity: 0.92; pointer-events: none;
}

.snapshot-title { margin: 0.6rem 0 0; border: 0; padding: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; }
.snapshot-list { display: grid; gap: 0.75rem; }
.metric-card {
  padding: 1rem 1.15rem 1.05rem;
  background: #fff; border: 1px solid #e6e6e4; border-radius: 16px;
}
.metric-label { margin: 0; color: var(--muted); font-size: 0.86rem; }
.metric-value { margin: 0.15rem 0 0; font-size: 2.15rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.metric-note { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.85rem; }
.metric-note.is-up { color: #178a66; font-weight: 700; }
.about-fold { margin: 2.4rem 0 0; padding: 0.9rem 1.2rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-md); }
.about-fold > summary { color: var(--muted); font-weight: 700; }
.about-fold[open] > summary { color: var(--ink); }
.about-fold h2 { border-top: 0; margin-top: 1.6rem; padding-top: 0; }

/* ---------- 今日学习环（V0.3） ---------- */

.today-loop {
  margin-top: 2.2rem; padding: 1.6rem 1.6rem 1.4rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.today-loop h2 { margin: 0 0 0.3rem; border: 0; padding: 0; font-size: 1.3rem; }
.today-streak { margin: 0 0 1rem; font-size: 0.92rem; }
.today-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }
.today-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: 1.1rem 1.2rem; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-md);
}
.today-card.is-done { opacity: 0.6; }
.today-kind {
  align-self: flex-start; padding: 0.14rem 0.7rem;
  font-size: 0.78rem; font-weight: 750; border-radius: 999px;
}
.today-kind-复习 { color: var(--orange); background: rgba(217, 122, 31, 0.10); border: 1px solid rgba(217, 122, 31, 0.35); }
.today-kind-续学 { color: var(--blue); background: rgba(23, 121, 179, 0.08); border: 1px solid rgba(23, 121, 179, 0.35); }
.today-kind-新知 { color: var(--green); background: rgba(23, 138, 102, 0.08); border: 1px solid rgba(23, 138, 102, 0.35); }
.today-title { font-weight: 750; text-decoration: none; color: var(--ink); line-height: 1.4; }
.today-title:hover { color: var(--blue); }
.today-subject { font-size: 0.8rem; color: var(--muted); margin-top: -0.3rem; }
.today-actions { display: flex; gap: 0.5rem; margin-top: 0.4rem; color: var(--muted); font-size: 0.85rem; align-items: center; }

/* Continue 式横幅大卡：续学主卡 */
.today-featured {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(120deg, rgba(23, 121, 179, 0.07), rgba(255, 190, 39, 0.10)), var(--bg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
}
.today-featured .today-kind { font-size: 0.85rem; }
.today-featured .today-title { font-size: clamp(1.2rem, 2.6vw, 1.6rem); font-weight: 850; letter-spacing: -0.01em; }
.today-featured .today-subject { font-size: 0.88rem; margin-top: 0; }
.today-featured .today-actions { margin-top: 0; margin-left: auto; }
.today-featured .today-main { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }

.resume-stage { margin: 0 0 0.85rem; }
.resume-deck { position: relative; padding: 10px 6px 0; }
.resume-deck::before,
.resume-deck::after {
  content: ""; position: absolute; left: 16px; right: 16px; height: 72%;
  background: #fff; border: 1px solid #ecece9; border-radius: 22px;
}
.resume-deck::before { top: 0; transform: rotate(-1.6deg); }
.resume-deck::after { top: 5px; transform: rotate(1.3deg); }
.resume-card {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 0.15rem;
  min-height: 28rem; padding: 1.35rem 1.35rem 1.2rem;
  background: #fff; border: 1px solid #e6e6e4; border-radius: 26px;
}
.resume-title {
  margin: 0; border: 0; padding: 0;
  font-size: clamp(1.7rem, 3vw, 2.15rem); font-weight: 800; letter-spacing: -0.04em;
}
.resume-level {
  margin: 0.15rem 0 0; color: #9aa0a6;
  font-size: 0.78rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
}
.resume-art {
  display: grid; place-items: center; flex: 1;
  min-height: 10rem; margin: 0.7rem 0 0.4rem; font-size: 4.4rem;
  border-radius: 18px; background: #f4efe6;
}
.resume-art[data-tone="peach"] { background: #f8e6d4; }
.resume-art[data-tone="amber"] { background: #f7ecd0; }
.resume-art[data-tone="blue"] { background: #dceaf7; }
.resume-art[data-tone="teal"] { background: #d8efe8; }
.resume-art[data-tone="violet"] { background: #ece6f6; }
.resume-lesson-list { margin: 0.2rem 0 0.9rem; padding: 0; list-style: none; display: grid; gap: 0.55rem; }
.resume-lesson-list li {
  display: flex; align-items: center; gap: 0.65rem;
  color: #9aa0a6; font-size: 0.98rem; font-weight: 650;
}
.resume-lesson-list li.is-now { color: #111; font-weight: 750; }
.resume-lesson-list li.is-done { color: #178a66; }
.resume-lesson-list i {
  flex: 0 0 0.7rem; width: 0.7rem; height: 0.7rem;
  border: 2px solid #d4d4d1; border-radius: 50%;
}
.resume-lesson-list li.is-now i { border-color: #3d7eff; background: #3d7eff; }
.resume-lesson-list li.is-done i { border-color: #178a66; background: #178a66; }
.resume-start {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 3.15rem; margin-top: auto;
  background: #3d7eff; color: #fff; border-radius: 16px;
  font-size: 1.15rem; font-weight: 800; text-decoration: none; letter-spacing: 0.01em;
}
.resume-start:hover { filter: brightness(1.05); color: #fff; }
.resume-mark {
  margin: 0.55rem auto 0; padding: 0; border: 0; background: transparent;
  color: #6b7280; font: inherit; font-size: 0.88rem; font-weight: 650; cursor: pointer;
}
.resume-mark:hover { color: #111; }
.resume-empty { margin: 0; color: var(--muted); }

.course-rail {
  display: flex; gap: 0.65rem; overflow-x: auto;
  padding: 0.2rem 0.1rem 0.35rem; margin: 0 0 0.2rem;
}
.course-tile {
  flex: 0 0 72px; width: 72px; height: 72px;
  display: grid; place-items: center;
  background: #f6f6f4; border: 2px solid #ecece9; border-radius: 16px;
  color: inherit; text-decoration: none; font-size: 1.65rem;
}
.course-tile:hover { border-color: #cfcfcb; }
.course-tile.is-active { background: #fff; border-color: #3d7eff; }

.course-catalog {
  display: block; margin: 0 0 1rem;
}
.paths-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.5rem; margin: 0.5rem 0 2rem;
}
.paths-hero-text { flex: 1; min-width: 200px; }
.paths-main-title {
  margin: 0; border: 0; padding: 0;
  font-size: clamp(2rem, 3.5vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em;
  color: #111827;
}
.paths-sub { margin: 0.3rem 0 0; color: #6b7280; font-size: 1.05rem; }
.paths-ask-wrap { position: relative; width: min(100%, 25rem); }

.paths-group-title {
  margin: 2.2rem 0 1.2rem; border: 0; padding: 0;
  font-size: 1.35rem; font-weight: 750; color: #111827; letter-spacing: -0.02em;
}

.path-band { margin: 0 0 2.8rem; }
.path-band-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; margin: 0 0 1.2rem;
}
.path-band-icon {
  flex: 0 0 4.2rem; width: 4.2rem; height: 4.2rem;
  display: grid; place-items: center; border-radius: 16px;
  overflow: hidden; background: #fff;
}
.path-band-icon img, .path-band-icon svg {
  width: 100%; height: 100%; object-fit: contain;
}
.path-band-copy {
  flex: 1; min-width: 0;
}
.path-band-kicker {
  display: inline-block; margin: 0 0 0.15rem; color: #9ca3af;
  font-size: 0.72rem; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
}
.path-band-title {
  margin: 0; border: 0; padding: 0;
  color: #111827; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em;
}
.path-band-goal { margin: 0.2rem 0 0; color: #6b7280; font-size: 0.92rem; line-height: 1.4; max-width: 48em; }

.path-band-actions {
  display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0;
}
.path-band-progress-pill {
  display: flex; align-items: center; gap: 0.5rem;
  background: #f3f4f6; border-radius: 999px;
  padding: 0.45rem 0.95rem; font-size: 0.85rem; font-weight: 650; color: #374151;
}
.path-progress-ring { flex-shrink: 0; }

.path-star-btn {
  display: grid; place-items: center;
  width: 2.35rem; height: 2.35rem; border-radius: 50%;
  background: #f3f4f6; border: 0; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.path-star-btn:hover { background: #e5e7eb; }
.path-star-btn:active { transform: scale(0.92); }

.path-track {
  display: flex; gap: 1.25rem; overflow-x: auto;
  padding: 0.4rem 0.2rem 1rem; scrollbar-width: thin;
  position: relative;
}
.path-course-item {
  flex: 0 0 10.8rem; width: 10.8rem;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.path-course-item:not(:last-child)::after {
  content: ""; position: absolute; top: 5.4rem; right: -1.25rem;
  width: 1.25rem; height: 2px; background: #e5e7eb; z-index: 0;
}
.path-course-card {
  position: relative; z-index: 1;
  width: 10.8rem; height: 10.8rem;
  background: #fff; border: 2px solid #e5e7eb; border-radius: 22px;
  box-shadow: 0 4px 0 0 #e5e7eb;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; user-select: none;
  transition: transform 100ms ease-out, box-shadow 100ms ease-out, border-color 0.2s;
}
.path-course-card:hover {
  transform: translateY(-4px);
  border-color: #d1d5db;
  box-shadow: 0 4px 0 0 #d1d5db;
}
.path-course-card.is-now {
  border-color: #456DFF;
  box-shadow: 0 4px 0 0 #456DFF;
}
.path-course-card.is-done {
  border-color: #16a34a;
  box-shadow: 0 4px 0 0 #16a34a;
}
.path-course-grade {
  position: absolute; top: 0.85rem; left: 0.95rem;
  font-size: 0.72rem; font-weight: 700; color: #9ca3af; letter-spacing: 0.02em;
}
.path-course-new {
  position: absolute; top: 0.75rem; right: 0.85rem;
  background: #16a34a; color: #fff; font-size: 0.65rem; font-weight: 800;
  padding: 0.15rem 0.52rem; border-radius: 999px; letter-spacing: 0.02em;
}
.path-course-art {
  width: 6.6rem; height: 6.6rem;
  display: grid; place-items: center;
}
.path-course-art img, .path-course-art svg {
  width: 100%; height: 100%; object-fit: contain;
}
.path-course-bar {
  position: absolute; bottom: 0.85rem; left: 1rem; right: 1rem;
  height: 4px; background: #f3f4f6; border-radius: 999px; overflow: hidden;
}
.path-course-bar-fill {
  height: 100%; background: #456DFF; border-radius: 999px;
  transition: width 0.2s ease;
}
.path-course-title {
  display: block; margin-top: 0.85rem;
  font-size: 0.92rem; font-weight: 650; color: #111827;
  text-align: center; line-height: 1.25; text-decoration: none;
  max-width: 10.8rem; cursor: pointer;
}
.path-course-title:hover {
  color: #456DFF;
}

.path-grade-shelf { margin: 0 0 0.4rem; }
.path-grade-shelf > .paths-group {
  margin: 0 0 0.85rem; color: #9aa0a6; font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 750;
}
.path-star {
  align-self: center; width: 2.1rem; height: 2.1rem; padding: 0;
  border: 0; background: transparent; color: #d8d4cc;
  font-size: 1.45rem; line-height: 1; cursor: pointer;
}
.path-star[aria-pressed="true"] { color: #f5b942; }
.path-star:hover { color: #e0a82e; }
.path-band-goal { margin: 0.22rem 0 0; color: var(--muted); font-size: 0.92rem; max-width: 40em; }
.path-band-pct {
  align-self: center;
  color: var(--muted); font-size: 0.82rem; font-weight: 650; white-space: nowrap;
}
.path-track {
  position: relative; display: flex; gap: 1.15rem; overflow-x: auto;
  padding: 0.2rem 0.15rem 0.55rem; scrollbar-width: thin;
}
.path-track::before {
  content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 4.25rem;
  height: 2px; background: #ecece9; z-index: 0;
}
.path-track:not(:has(.path-lesson))::before { display: none; }
.path-lesson {
  position: relative; z-index: 1;
  flex: 0 0 8.5rem; width: 8.5rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.45rem;
  text-decoration: none; color: inherit;
}
.path-lesson-face {
  position: relative; overflow: hidden;
  display: grid; place-items: center; width: 8.5rem; height: 8.5rem;
  background: #fff; border: 1px solid #e8e8e6; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.04);
}
.path-lesson:hover .path-lesson-face { border-color: #d4d4d1; }
.path-lesson-tag {
  position: absolute; top: 0.55rem; left: 0.5rem;
  color: #9aa0a6; font-size: 0.62rem; font-weight: 750; letter-spacing: 0.02em;
}
.path-lesson-glyph {
  display: grid; place-items: center; width: 3.15rem; height: 3.15rem;
  border-radius: 12px; font-size: 1.7rem; background: #f4efe6;
}
.path-lesson-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
  background: #3d7eff;
}
.path-lesson.is-now .path-lesson-face { border-color: #3d7eff; box-shadow: 0 0 0 1px #3d7eff; }
.path-lesson.is-done .path-lesson-face { border-color: #dce8ff; }
.path-lesson-name {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; min-height: 2.2em;
  font-size: 0.84rem; font-weight: 700; text-align: center; line-height: 1.3;
}
[data-layout="B"] .home-view[data-view="subjects"] .subject-cards { margin-top: 0.4rem; }

.today-more { margin: 1.4rem 0 0; padding: 0; background: transparent; border: 0; }
.today-more > summary { color: #b0b4b8; font-weight: 650; font-size: 0.88rem; }
.today-more[open] > summary { color: var(--ink); margin-bottom: 0.7rem; }

.course-trail {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem;
  margin: 0 0 1.5rem; padding: 0.85rem 1.4rem;
  background: #f0f6ff; border: 1.5px solid #bfdbfe; border-radius: 16px;
  box-shadow: 0 2px 0 0 #dbeafe;
}
.course-trail-text { margin: 0; color: #1e293b; font-size: 0.95rem; font-weight: 700; }
.course-trail-next {
  margin-left: auto; padding: 0.45rem 1.15rem;
  background: #456DFF; color: #fff; border-radius: 999px;
  font-weight: 750; font-size: 0.88rem; text-decoration: none;
  box-shadow: 0 2px 0 0 #284bcc;
  transition: transform 0.12s ease;
}
.course-trail-next:hover { color: #fff; transform: translateY(-1px); }

/* ---------- 知识库阅读页 ---------- */

.page-shell {
  width: min(1180px, calc(100% - 2rem)); margin: 2rem auto 4rem;
  display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: 2rem; align-items: start;
}
.page-shell:not(:has(.page-toc)) {
  display: flex;
  flex-direction: column;
  max-width: 860px;
}
.page-shell:not(:has(.page-toc)) .kb-note {
  width: 100%;
}
.kb-note {
  min-width: 0; padding: clamp(1.25rem, 3vw, 3rem);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow);
}
.kb-landing { background: transparent; border: 0; box-shadow: none; padding: 0; }
.kb-landing .kb-metadata { display: none; }

h1, h2, h3, h4 { line-height: 1.28; text-wrap: balance; color: var(--ink); }
h1 { margin-top: 0.35rem; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.035em; }
h2 { margin-top: 2.5rem; padding-top: 0.35rem; border-top: 1px solid var(--line); }
h3 { margin-top: 1.8rem; }
blockquote {
  margin: 1.25rem 0; padding: 0.7rem 1rem; color: #2c4b5c;
  background: rgba(23, 121, 179, 0.07); border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0;
}
table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.96rem; }
th, td { padding: 0.65rem 0.75rem; border: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: var(--bg-deep); }
pre { overflow: auto; padding: 1rem; color: #14303f; background: var(--bg-deep); border: 1px solid var(--line); border-radius: 12px; }
code { font-family: "Cascadia Code", Consolas, monospace; font-size: 0.92em; }
:not(pre) > code { padding: 0.12em 0.35em; color: #9a5b13; background: rgba(255, 190, 39, 0.16); border-radius: 5px; }
.mermaid { color: #14303f; background: #ffffff; border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem; }

.kb-metadata { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.8rem; }
.kb-metadata div { display: flex; gap: 0.35rem; padding: 0.28rem 0.62rem; background: var(--bg-deep); border-radius: 999px; font-size: 0.82rem; }
.kb-metadata dt { color: var(--muted); }
.kb-metadata dd { margin: 0; font-weight: 650; }
.reference-link { font-weight: 620; color: var(--blue); }
.reference-link.is-missing { color: var(--missing); border-bottom: 1px dashed currentColor; cursor: help; }
.include-note { margin: 1rem 0; padding: 0.75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.include-note iframe { width: 100%; min-height: 32rem; margin-top: 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: white; }

.page-toc {
  position: sticky; top: 4.2rem; max-height: calc(100vh - 5.4rem); overflow: auto;
  padding: 1rem; color: var(--muted); border-left: 1px solid var(--line); font-size: 0.88rem;
}
.page-toc ol { margin: 0.6rem 0 0; padding: 0; list-style: none; }
.page-toc li { margin: 0.38rem 0; }
.page-toc .toc-level-3 { padding-left: 0.8rem; }
.page-toc a { color: inherit; text-decoration: none; }
.page-toc a:hover { color: var(--orange); }
.backlinks ul { columns: 2; }
.muted { color: var(--muted); }
details { margin: 1rem 0; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
summary { cursor: pointer; font-weight: 700; }

/* ---------- 交互式做中学组件 (Interactive Quiz & Roadmap) ---------- */

.interactive-quiz {
  margin: 1.5rem 0;
  padding: 1.4rem 1.6rem;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.03);
}
.interactive-quiz > p:first-child {
  margin-top: 0;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.6;
  color: #0f172a;
}
.interactive-quiz .quiz-options-grid {
  margin: 1rem 0;
}
.quiz-details {
  margin: 1rem 0 0;
  padding: 0.75rem 1.1rem;
  background: #ffffff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
}
.quiz-details > summary {
  color: #456DFF;
  font-weight: 700;
  font-size: 0.96rem;
  user-select: none;
  cursor: pointer;
}
.quiz-details > summary:hover {
  text-decoration: underline;
}
.quiz-details[open] {
  border-style: solid;
  border-color: #86efac;
  background: #f0fdf4;
}
.quiz-answer {
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid #bbf7d0;
  color: #14532d;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* 课程 MOC 学习顺序货架 */
.kb-note ol {
  margin: 1.2rem 0;
  padding: 0;
  list-style: none;
  counter-reset: course-step;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kb-note ol > li {
  counter-increment: course-step;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.95rem 1.2rem 0.95rem 3.4rem;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 0 0 #e5e7eb;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 0.15s ease;
}
.kb-note ol > li:hover {
  transform: translateY(-2px);
  border-color: #456DFF;
  box-shadow: 0 4px 0 0 #456DFF;
}
.kb-note ol > li::before {
  content: counter(course-step);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: #eff6ff;
  color: #3b82f6;
  font-weight: 800;
  font-size: 0.88rem;
  display: grid;
  place-items: center;
}
.kb-note ol > li > .reference-link {
  font-size: 1.08rem;
  font-weight: 750;
  color: #111827;
  text-decoration: none;
}
.kb-note ol > li > .reference-link:hover {
  color: #456DFF;
}
.kb-note ol > li > .muted {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

/* ==========================================================================
   1:1 BRILLIANT 课程关卡地图与 3D 踏板系统 (COURSE JOURNEY & STEPPING STONES)
   ========================================================================== */

html:has(meta[name="kb:type"][content*="course"]) body:not(.is-course-page) .kb-note,
html:has(meta[name="kb:type"][content*="course"]) body:not(.is-course-page) .site-footer {
  visibility: hidden;
}

body.is-course-page {
  background-color: #ffffff;
}

body.is-course-page .site-footer {
  display: none;
}

body.is-course-page .page-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 7rem;
  display: block;
}

.course-journey-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 4.5rem;
  align-items: start;
  position: relative;
}

/* 左侧 Sticky 课程全景大卡 */
.course-overview-card {
  position: sticky;
  top: 5.5rem;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: 0 4px 0 0 #e5e7eb;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.course-art-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1.5px solid #f1f5f9;
  margin-bottom: 0.4rem;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.course-art-box img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.08));
}

.course-art-placeholder {
  font-size: 3rem;
}

.course-view-title {
  font-size: 1.85rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0;
  line-height: 1.2;
}

.course-view-sub {
  font-size: 0.92rem;
  font-weight: 650;
  color: #64748b;
  margin: -0.4rem 0 0.1rem 0;
}

.course-view-desc {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0.2rem 0 0.5rem;
}

.course-view-stats {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.course-view-stats .stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
}

.course-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 750;
  color: #456DFF;
  text-decoration: none;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid #f1f5f9;
  transition: transform 0.15s ease, color 0.15s ease;
}

.course-back-link:hover {
  transform: translateX(-3px);
  color: #2e54e8;
}

/* 右侧关卡踏板地图轨道 */
.course-journey-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.course-level-block {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.course-level-block .stepping-stones-list {
  padding-bottom: 2.4rem;
  gap: 3.4rem;
}

/* LEVEL 关卡横幅：按关滚动，不吸顶叠在一起 */
.level-banner {
  width: 100%;
  margin: 0 0 2.2rem;
  position: static;
  z-index: 20;
}

.course-level-block + .course-level-block .level-banner {
  margin-top: 1.2rem;
}

.level-banner-inner {
  background: #ffffff;
  border: 2px solid #bfdbfe;
  border-radius: 20px;
  padding: 0.9rem 1.6rem;
  text-align: center;
  box-shadow: 0 4px 0 0 #dbeafe;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  backdrop-filter: blur(8px);
}

.level-kicker {
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  color: #3b82f6;
}

.level-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #1e293b;
  margin: 0;
}

/* 踏板节点列表 */
.stepping-stones-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4.2rem;
  width: 100%;
  padding-bottom: 9rem;
}

.stepping-stone-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  transition: transform 0.2s ease;
}

.stepping-stone-row.align-center {
  transform: translateX(0);
}

.stepping-stone-row.align-left {
  transform: translateX(-48px);
}

.stepping-stone-row.align-right {
  transform: translateX(48px);
}

.stepping-stone-anchor {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.stepping-stone-anchor:hover .stepping-disc-svg {
  transform: translateY(-4px) scale(1.03);
}

.stepping-stone-anchor:hover .step-title {
  color: #456DFF !important;
}

.disc-wrapper {
  position: relative;
  width: 124px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stepping-disc-svg {
  display: block;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: visible;
}

/* 激活光环与脉冲动画 */
.active-disc-halo-wrap {
  position: relative;
  width: 130px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active-pulse-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 148px;
  height: 102px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid rgba(69, 109, 255, 0.55);
  animation: pulseRing 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0.95;
  }
  70% {
    opacity: 0.35;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.32);
    opacity: 0;
  }
}

/* 3D 浮动吉祥物 (Koji Mascot) */
.koji-mascot {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  animation: kojiFloat 2.4s ease-in-out infinite;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

@keyframes kojiFloat {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -10px);
  }
}

/* 踏板标题与副文案 */
.stepping-stone-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-width: 250px;
}

.step-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: #1e293b;
  transition: color 0.15s ease;
  line-height: 1.3;
}

.stepping-stone-row.is-completed .step-title {
  color: #475569;
}

.stepping-stone-row.is-active .step-title {
  color: #111827;
  font-size: 1.22rem;
  font-weight: 850;
}

.stepping-stone-row.is-locked .step-title {
  color: #94a3b8;
}

.step-quote {
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stepping-stone-row.is-locked .step-quote {
  color: #cbd5e1;
}

/* 里程碑挑战奖杯 / 哑铃 */
.milestone-badge-wrap {
  position: absolute;
  right: -52px;
  top: 50%;
  transform: translateY(-50%);
  animation: milestoneBob 2.8s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(244, 63, 94, 0.35));
}

@keyframes milestoneBob {
  0%, 100% {
    transform: translateY(-50%) rotate(0deg);
  }
  50% {
    transform: translateY(calc(-50% - 6px)) rotate(3deg);
  }
}

/* 底部浮动行动卡 (Floating Action Dock) */
.course-action-dock {
  position: fixed;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 50;
}

.dock-actions {
  display: flex;
  gap: 0.55rem;
}

.dock-btn-jump {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #334155;
  font-weight: 750;
  font-size: 0.95rem;
  padding: 0.72rem 1rem;
  border-radius: 14px;
  text-decoration: none;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 0 0 #e2e8f0;
}

.dock-btn-jump:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
}

.dock-btn-start {
  flex: 1;
}

.course-about-card {
  width: 100%;
  max-width: 520px;
  margin: 1rem 0 1.5rem;
  padding: 1.4rem 1.5rem 1.5rem;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 3px 0 0 #e5e7eb;
  color: #334155;
  line-height: 1.6;
}

.course-about-card h2,
.course-about-card h3 {
  margin: 0 0 0.55rem;
  color: #0f172a;
}

.course-about-card h2 {
  font-size: 1.15rem;
}

.course-about-card h3 {
  font-size: 0.95rem;
  margin-top: 1.1rem;
}

.course-about-card p,
.course-about-card ul {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.course-about-card ul {
  padding-left: 1.15rem;
}

.course-next-card {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 0 7rem;
  padding: 1.2rem 1.4rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
}

.course-next-card:hover {
  border-color: #456DFF;
}

.course-next-kicker {
  font-size: 0.75rem;
  font-weight: 800;
  color: #456DFF;
}

.course-next-title {
  font-size: 1.05rem;
  color: #0f172a;
}

.course-next-quote {
  font-size: 0.86rem;
  color: #64748b;
}

.dock-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  padding: 1.15rem 1.4rem;
  box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.12), 0 8px 12px -6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 320px;
  animation: dockSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dockSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.dock-kicker {
  font-size: 0.76rem;
  font-weight: 800;
  color: #456DFF;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dock-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0.15rem 0 0;
  line-height: 1.3;
}

.dock-btn-start {
  display: block;
  width: 100%;
  text-align: center;
  background: #456DFF;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 750;
  padding: 0.85rem 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 0 0 #284bcc;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.dock-btn-start:hover {
  background: #355ee6;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 #284bcc;
}

.dock-btn-start:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 #284bcc;
}

.dock-actions .dock-btn-start {
  width: auto;
}

/* 原子卡学习页底部继续学习浮动卡 */
.lesson-floating-dock {
  position: fixed;
  bottom: 1.8rem;
  right: 2.2rem;
  z-index: 50;
}

.lesson-dock-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 0.9rem 1.3rem;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lesson-dock-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lesson-dock-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
}

.lesson-dock-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

.lesson-dock-btn {
  background: #456DFF;
  color: #ffffff;
  font-weight: 750;
  font-size: 0.92rem;
  padding: 0.65rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 3px 0 0 #284bcc;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.lesson-dock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 #284bcc;
}

.lesson-dock-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 0 #284bcc;
}

.lesson-dock-btn.is-gated,
.course-trail-next.is-gated {
  opacity: 0.45;
  pointer-events: none;
  box-shadow: none;
}

@media (max-width: 960px) {
  .course-journey-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .course-overview-card {
    position: static;
  }
  .course-action-dock {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .dock-card {
    width: 100%;
  }
  .stepping-stone-row.align-left,
  .stepping-stone-row.align-right {
    transform: translateX(0);
  }
}

/* ==========================================================================
   1:1 BRILLIANT 沉浸式互动课件播放器 (LESSON PRACTICE RUNNER)
   ========================================================================== */

.btn-practice-toggle {
  padding: 0.42rem 1.15rem;
  background: #eff6ff;
  color: #3b82f6;
  border: 1.5px solid #bfdbfe;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 0 0 #dbeafe;
}
.btn-practice-toggle:hover {
  background: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

body.is-practice-mode {
  background: #ffffff;
  overflow-x: hidden;
}

body.is-practice-mode .site-header,
body.is-practice-mode .site-footer,
body.is-practice-mode .page-shell,
body.is-practice-mode .lesson-floating-dock {
  display: none !important;
}

.brilliant-practice-runner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  position: relative;
}

/* 顶部进度条与导航 */
.practice-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1.5px solid #f1f5f9;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.practice-header-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.practice-close-btn,
.practice-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #64748b;
  text-decoration: none;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  padding: 0;
  cursor: pointer;
}
.practice-close-btn:hover,
.practice-back-btn:hover:not(:disabled) {
  color: #0f172a;
  background: #f1f5f9;
  transform: scale(1.05);
}

.practice-back-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.practice-pills-track {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 540px;
}

.practice-pills-track.has-checks {
  gap: 10px;
}

.practice-teach-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.practice-teach-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #22c55e;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.practice-check-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.practice-check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
  box-shadow: 0 0 0 3px #e5e7eb;
}

.practice-check-dot.is-active {
  background: #9ca3af;
  box-shadow: 0 0 0 4px #e5e7eb;
}

.practice-check-dot.is-completed {
  background: #16a34a;
  box-shadow: none;
}

.practice-pill {
  height: 8px;
  flex: 1;
  background: #e2e8f0;
  border-radius: 999px;
  transition: background 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease;
}

.practice-pill.is-active {
  background: #22c55e;
  transform: scaleY(1.25);
}

.practice-pill.is-completed {
  background: #16a34a;
}

.practice-header-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.practice-note-toggle {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 750;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.practice-note-toggle:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.practice-lang-toggle {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 850;
  padding: 0.38rem 0.7rem;
  min-width: 2.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.practice-lang-toggle:hover { background: #e2e8f0; color: #0f172a; }
.practice-lang-toggle.is-active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1e3a8a;
}

.practice-streak-badge {
  font-size: 0.88rem;
  font-weight: 850;
  color: #f59e0b;
  background: #fef3c7;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* 主内容舞台 */
.practice-stage-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.5rem 8rem;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

.brilliant-practice-runner.is-essay .practice-stage-shell {
  align-items: flex-start;
  justify-content: flex-start;
  padding: 2.6rem 1.75rem 8.5rem;
  max-width: 720px;
}

.practice-card-canvas {
  width: 100%;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 28px;
  padding: 2.8rem 3rem;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  animation: cardFadeIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.practice-card-canvas.is-read-focus {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0.15rem 0.1rem 0.5rem;
  animation: none;
}

.practice-card-canvas.is-read-focus.is-single-focus {
  text-align: left;
}

.practice-card-canvas.is-viz-focus {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0.4rem 0.2rem 1rem;
}

.practice-essay p,
.practice-card-canvas.is-read-focus .practice-one-liner {
  max-width: 38rem;
  margin: 0 0 1.35rem;
  font-size: 1.2rem;
  line-height: 1.72;
  font-weight: 450;
  text-align: left;
  color: #111827;
}

.practice-essay p:last-child,
.practice-card-canvas.is-read-focus .practice-one-liner:last-child {
  margin-bottom: 0;
}

.practice-essay strong,
.practice-card-canvas.is-read-focus .practice-one-liner strong {
  font-weight: 750;
  color: #111827;
}

.practice-card-canvas.is-read-focus .practice-welcome-list {
  margin: 0 0 1.35rem;
  max-width: 38rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: #111827;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.practice-card-kicker {
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  color: #456DFF;
  text-transform: uppercase;
}

.practice-card-title {
  font-size: 2.1rem;
  font-weight: 850;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin: 0.4rem 0 1.4rem;
  line-height: 1.25;
}

.practice-quote-pill {
  background: #eff6ff;
  border-left: 4.5px solid #3b82f6;
  padding: 1rem 1.4rem;
  border-radius: 0 16px 16px 0;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 1.12rem;
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

.practice-body-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
}

.practice-body-text p {
  margin: 0.9rem 0;
}

.practice-body-text ul, .practice-body-text ol {
  padding-left: 1.6rem;
  margin: 1.2rem 0;
}

.practice-body-text li {
  margin: 0.65rem 0;
  line-height: 1.65;
}

.practice-card-canvas.is-single-focus {
  text-align: center;
}

.practice-card-canvas.is-single-focus .practice-card-title {
  font-size: 1.85rem;
  margin: 0 0 0.7rem;
}

.practice-card-canvas.is-read-focus .practice-card-title {
  font-size: clamp(2.05rem, 4.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #111827;
  margin: 0 0 1.85rem;
  text-align: left;
}

.practice-one-liner {
  max-width: 36rem;
  margin: 0.85rem auto 0;
  font-size: 1.18rem;
  line-height: 1.55;
  color: #334155;
}

.practice-card-canvas.is-viz-focus .practice-one-liner:first-child {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.practice-card-canvas.is-read-focus .practice-one-liner {
  font-size: 1.2rem;
  font-weight: 450;
}

.practice-card-canvas.is-ask-focus .quiz-question-text {
  font-size: 1.42rem;
  font-weight: 800;
  margin: 0 0 1.2rem;
  line-height: 1.45;
}

.quiz-setup-text {
  max-width: 36rem;
  margin: 0 auto 1.15rem;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: #1e293b;
}

.practice-term {
  font-weight: 750;
  color: #1d4ed8;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.practice-card-canvas.is-ask-first .quiz-question-text {
  margin: 0 0 1rem;
}

.practice-card-canvas.is-ask-first .viz-rate-line,
.practice-card-canvas.is-ask-first .viz-tan {
  margin: 0.15rem 0 1.15rem;
}

.brilliant-practice-runner.is-quiet-dock .koji-speech {
  display: none;
}

/* 挑战题卡片与 1:1 Brilliant 做中学多选交互 */
.quiz-challenge-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 22px;
  padding: 1.8rem;
  margin-top: 1rem;
}

.quiz-challenge-box.is-micro {
  margin-top: 1.6rem;
  padding: 1.25rem 1.4rem;
}

.practice-viz {
  margin: 0 0 1.4rem;
  text-align: center;
}

.practice-welcome-list {
  text-align: left;
  max-width: 34rem;
  margin: 0.75rem auto 1rem;
  padding-left: 1.25rem;
  color: #334155;
  line-height: 1.6;
}

.practice-welcome-list li + li {
  margin-top: 0.28rem;
}

.viz-sym-svg {
  width: min(220px, 70vw);
  height: auto;
  margin: 0 auto;
  display: block;
}

.viz-cmp-svg {
  width: min(520px, 94vw);
}

.viz-cmp-slot {
  font-size: 12px;
  font-weight: 700;
  fill: #64748b;
}

.viz-cmp-label {
  font-size: 13px;
  font-weight: 750;
  fill: #0f172a;
}

.viz-cmp-op {
  font-size: 15px;
  font-weight: 800;
  fill: #0f172a;
}

.viz-cmp-op-r1 {
  fill: #0284c7;
}

.viz-cmp-outline {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 1.15;
  stroke-dasharray: 5 4;
  stroke-linejoin: round;
}

.viz-cmp-rot {
  stroke: #475569;
  stroke-width: 1.25;
  stroke-dasharray: 4 3.5;
  stroke-linecap: round;
}

.viz-cmp-axis {
  fill: none;
  stroke: #fde047;
  stroke-width: 1.15;
  stroke-dasharray: 3.2 3.6;
  stroke-linecap: round;
}

.viz-cmp-axis-bd,
.viz-cmp-axis-ce {
  stroke: #fde047;
}

.viz-cmp-axis-af {
  stroke: #7dd3fc;
  stroke-dasharray: 1.4 3.4;
}

.viz-cmp-controls {
  flex-wrap: wrap;
  justify-content: center;
}

.viz-sym-letters {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 0.4rem 0.35rem;
  max-width: 22rem;
  margin: 0.2rem auto 0.4rem;
  font-weight: 750;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  color: #0f172a;
}

.viz-sym-letter-big {
  font-size: 5.2rem;
  font-weight: 800;
  line-height: 1;
  margin: 0.15rem 0 0.55rem;
  color: #0f172a;
}

.viz-sym-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.55rem 0 0.1rem;
}

.viz-sym-six {
  display: grid;
  grid-template-columns: repeat(3, minmax(5.6rem, 1fr));
  gap: 0.45rem;
  width: min(22rem, 100%);
  margin: 0 auto;
}

.viz-sym-six .viz-sym-btn {
  width: 100%;
  min-height: 2.55rem;
  padding: 0.4rem 0.35rem;
  font-size: 0.82rem;
  box-shadow: 0 2px 0 #284bcc;
}

.viz-sym-btn {
  background: #456DFF;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 0.42rem 0.8rem;
  font-weight: 750;
  font-size: 0.86rem;
  box-shadow: 0 3px 0 #284bcc;
  cursor: pointer;
}

.viz-sym-btn.is-active {
  background: #0f766e;
  box-shadow: 0 2px 0 #115e59;
  outline: 2px solid #5eead4;
  outline-offset: 1px;
}

.viz-sym-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #284bcc;
}

.viz-sym-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.viz-sym-btn.is-muted {
  background: #64748b;
  box-shadow: 0 3px 0 #475569;
}

.viz-sym-btn.is-muted:active {
  box-shadow: 0 1px 0 #475569;
}

.viz-sym .viz-caption {
  min-height: 2.6em;
  margin: 0.45rem auto 0;
  max-width: 26rem;
}

.viz-rate-bottle,
.viz-rate-line,
.viz-rate-tangent,
.viz-tan {
  margin-bottom: 1.1rem;
}

.viz-rate-line .viz-rate-graph,
.viz-rate-tangent .viz-rate-graph,
.viz-tan .viz-tan-svg {
  width: min(420px, 100%);
  margin: 0 auto;
}

.practice-card-canvas.is-ask-focus .viz-rate-line {
  margin-bottom: 0.85rem;
}

.quiz-fill-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin: 0.15rem 0 1.15rem;
}

.quiz-fill-input {
  width: 4.4rem;
  height: 3.15rem;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  box-shadow: 0 2px 0 0 #e2e8f0;
}

.quiz-fill-input:focus {
  outline: none;
  border-color: #456DFF;
  box-shadow: 0 0 0 3px rgba(69, 109, 255, 0.16);
}

.quiz-fill-input:disabled {
  cursor: default;
}

.quiz-fill-input.is-correct {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
}

.quiz-fill-input.is-wrong {
  border-color: #dc2626;
  background: #fef2f2;
  color: #991b1b;
}

.quiz-unit-hint {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 750;
  color: #64748b;
}

.quiz-options-grid.is-number-pad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 22rem;
  margin: 0 auto 1.2rem;
}

.quiz-options-grid.is-number-pad .option-key {
  display: none;
}

.quiz-options-grid.is-number-pad .quiz-option-card {
  justify-content: center;
  min-height: 3.4rem;
  font-size: 1.35rem;
}

.quiz-options-grid.is-number-pad .option-text {
  flex: none;
  text-align: center;
}

.viz-rate-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.viz-rate-graph,
.viz-rate-flask {
  display: block;
  max-width: 100%;
  height: auto;
}

.viz-rate-graph {
  width: min(320px, 100%);
}

.viz-rate-flask {
  width: min(168px, 46%);
}

.viz-rate-axis-label,
.viz-rate-axis-name {
  fill: #64748b;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
}

.viz-rate-axis-name {
  font-size: 13px;
  font-style: italic;
}

.viz-rate-readout {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 0.55rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 750;
  color: #0f172a;
}

.viz-rate-readout [data-role="rate"] {
  color: #0369a1;
}

.viz-rate-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.35rem 0 0.15rem;
}

.viz-rate-play {
  flex-shrink: 0;
  background: #456DFF;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 0.45rem 0.95rem;
  font-weight: 750;
  font-size: 0.88rem;
  box-shadow: 0 3px 0 #284bcc;
  cursor: pointer;
}

.viz-rate-play:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #284bcc;
}

.viz-rate-slider {
  width: min(260px, 62%);
  /* 不用 accent-color：Chrome 152 会把 range 轨道渲染成深色（视觉 bug），改显式样式 */
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

.viz-rate-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0ea5e9;
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.3);
  cursor: grab;
}

.viz-tan-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 750;
  color: #0f172a;
}

.viz-tan-legend i {
  display: inline-block;
  width: 1.15rem;
  height: 0;
  border-top: 3px solid #f97316;
  transform: rotate(-28deg);
}

.viz-tan-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 0.4rem 0 0.1rem;
}

.viz-tan-slider {
  /* 见 .viz-rate-slider：不再使用 accent-color */
}

.viz-rate-water {
  transition: none;
}

.viz-caption {
  margin: 0.55rem 0 0;
  color: #64748b;
  font-size: 0.92rem;
  font-weight: 650;
}

.viz-pizza {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  margin: 0 auto;
  border: 6px solid #fff;
  box-shadow: 0 8px 0 #94a3b8, 0 16px 28px rgba(15, 23, 42, 0.12);
}

.viz-frac-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.viz-frac-label {
  font-weight: 800;
  color: #1e3a8a;
  margin-bottom: 0.4rem;
}

.viz-frac-row {
  display: flex;
  gap: 3px;
  padding: 6px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 3px 0 #cbd5e1;
}

.viz-cell {
  width: 22px;
  height: 36px;
  border-radius: 5px;
  background: #e2e8f0;
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
}

.viz-cell:hover {
  background: #bfdbfe;
  transform: scaleY(1.09);
}

.viz-cell.is-on {
  background: linear-gradient(180deg, #7dd3fc, #0284c7);
}

.viz-cell.is-on:hover {
  background: linear-gradient(180deg, #93c5fd, #0369a1);
}

.viz-frac-count {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #1d4ed8;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.viz-paint-svg {
  width: min(300px, 76vw);
  height: auto;
  border-radius: 14px;
}

.viz-paint-svg .viz-paint-cell {
  fill: #f1f5f9;
  stroke: #fff;
  stroke-width: 3;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill 0.14s;
}

.viz-paint-svg .viz-paint-cell:hover {
  fill: #bfdbfe;
}

.viz-paint-svg .viz-paint-cell.is-painted {
  fill: #38bdf8;
}

.viz-paint-svg .viz-paint-cell.is-painted:hover {
  fill: #0ea5e9;
}

.viz-paint-svg .viz-paint-cell.is-locked {
  cursor: default;
}

.viz-paint-hint {
  text-align: center;
}

.paint-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 6px 0 2px;
}

.paint-counter {
  font-size: 0.95rem;
  font-weight: 700;
  color: #334155;
}

.paint-counter b {
  color: #0369a1;
  font-size: 1.05rem;
}

.paint-reset-btn {
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 0 #cbd5e1;
  transition: transform 0.1s, box-shadow 0.1s;
}

.paint-reset-btn:hover {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #cbd5e1;
  color: #334155;
}

.viz-plus {
  font-size: 1.4rem;
  font-weight: 850;
  color: #456DFF;
}

/* Pizza SVG interactive slices */
.viz-pizza-slice.is-remain {
  cursor: pointer;
  transition: opacity 0.13s;
  transform-origin: 84px 84px;
}

.viz-pizza-slice.is-remain:hover {
  opacity: 0.82;
}

.viz-pizza-slice.is-selected {
  fill: #22c55e !important;
  stroke: #fff !important;
  stroke-width: 3 !important;
}

/* Balance interactive — real scale */
.viz-balance-new {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.viz-scale-svg {
  display: block;
  width: min(480px, 100%);
  margin: 0 auto;
}

.viz-scale-svg.is-balance-highlight ellipse {
  stroke: #4ade80;
  stroke-width: 3;
  animation: viz-balance-pulse 0.7s ease;
}

.viz-scale-eq {
  font-weight: 800;
  color: #1e3a8a;
  margin: 0.3rem 0 0;
  font-size: 1.05rem;
}

.viz-balance-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.65rem;
}

.viz-balance-btn {
  background: #eff6ff;
  border: 2px solid #93c5fd;
  border-radius: 99px;
  padding: 0.32rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 750;
  color: #1e3a8a;
  cursor: pointer;
  transition: background 0.14s, transform 0.1s;
}

.viz-balance-btn:hover {
  background: #dbeafe;
  transform: scale(1.04);
}

.viz-pan {
  background: #eff6ff;
  border: 2px solid #93c5fd;
  border-radius: 16px 16px 40px 40px;
  padding: 0.85rem 1rem;
  font-weight: 800;
  color: #1e3a8a;
  transition: background 0.18s, border-color 0.18s;
}

.viz-pan.is-balance-highlight {
  background: #dcfce7;
  border-color: #4ade80;
  animation: viz-balance-pulse 0.7s ease;
}

@keyframes viz-balance-pulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.viz-beam {
  width: 18px;
  height: 8px;
  background: #334155;
  border-radius: 8px;
  margin-bottom: 1.2rem;
}

.viz-number-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
}

.viz-axis {
  width: min(280px, 60%);
  height: 6px;
  background: #334155;
  border-radius: 99px;
  position: relative;
}

.viz-tick {
  font-weight: 800;
  color: #0f172a;
}

.viz-percent {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.viz-meter {
  height: 28px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.viz-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}

.viz-meter b {
  position: absolute;
  right: 10px;
  top: 4px;
  font-size: 0.82rem;
  color: #0f172a;
}

.quiz-question-text {
  font-size: 1.25rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.65;
  margin-bottom: 1.4rem;
}

.quiz-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.2rem;
}

.quiz-option-card {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 3px 0 0 #cbd5e1;
  font-size: 1.05rem;
  font-weight: 650;
  color: #1e293b;
  text-align: left;
  transition: all 0.15s ease;
  cursor: pointer;
  gap: 0.9rem;
  user-select: none;
}

.quiz-option-card .option-key {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  border: 1.5px solid #cbd5e1;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.quiz-option-card .option-text {
  flex: 1;
  line-height: 1.5;
  color: #1e293b;
}

.quiz-option-card mjx-container,
.quiz-option-card .option-text {
  pointer-events: none;
}

.quiz-options-grid > mjx-container {
  display: none !important;
}

.quiz-option-card:hover:not(:disabled) {
  border-color: #94a3b8;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 #cbd5e1;
}

.quiz-option-card:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 #cbd5e1;
}

.quiz-option-card.is-selected {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 3px 0 0 #2563eb;
  color: #1e40af;
}

.quiz-option-card.is-selected .option-key {
  background: #3b82f6;
  color: #ffffff;
  border-color: #2563eb;
}

.quiz-option-card.is-correct {
  border-color: #22c55e !important;
  background: #f0fdf4 !important;
  box-shadow: 0 3px 0 0 #16a34a !important;
  color: #14532d !important;
  animation: correctPop 0.35s ease;
}

.quiz-option-card.is-correct .option-key {
  background: #22c55e !important;
  color: #ffffff !important;
  border-color: #16a34a !important;
}

.quiz-option-card.is-wrong {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
  box-shadow: 0 3px 0 0 #dc2626 !important;
  color: #7f1d1d !important;
  animation: shakeWrong 0.4s ease;
}

.quiz-option-card.is-wrong .option-key {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
}

.quiz-option-card.is-correct-hint {
  border-color: #86efac !important;
  background: #f0fdf4 !important;
  box-shadow: 0 3px 0 0 #bbf7d0 !important;
  color: #14532d !important;
}

@keyframes shakeWrong {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

@keyframes correctPop {
  0% { transform: scale(0.97); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.quiz-answer-sheet, .quiz-feedback-box {
  margin-top: 1.4rem;
  background: #ffffff;
  border: 2px solid #86efac;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 4px 0 0 #bbf7d0;
  animation: revealSlide 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-feedback-box.is-wrong-feedback {
  border-color: #fca5a5;
  box-shadow: 0 4px 0 0 #fecaca;
  background: #fffdfd;
}

@keyframes revealSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-answer-header, .quiz-feedback-header {
  display: flex;
  align-items: center;
  margin-bottom: 0.6rem;
}

.quiz-answer-header .answer-badge, .quiz-feedback-header .feedback-badge {
  font-size: 0.88rem;
  font-weight: 850;
  color: #15803d;
  background: #dcfce7;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.quiz-feedback-header .feedback-badge.is-wrong-badge {
  color: #b45309;
  background: #fef3c7;
}

.quiz-answer-body, .quiz-feedback-body {
  font-size: 1.08rem;
  color: #14532d;
  line-height: 1.7;
}

.quiz-feedback-box.is-wrong-feedback .quiz-feedback-body {
  color: #1e293b;
}

/* 通关结算卡 */
.celebration-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.8rem 0;
}

.celebration-trophy-3d {
  margin-bottom: 1.4rem;
  animation: trophyPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 8px 18px rgba(245, 158, 11, 0.35));
}

@keyframes trophyPop {
  0% { transform: scale(0.6) rotate(-10deg); opacity: 0; }
  70% { transform: scale(1.1) rotate(4deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.celebration-badge {
  display: inline-block;
  background: #fef3c7;
  color: #b45309;
  font-weight: 850;
  font-size: 0.88rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.celebration-title {
  font-size: 2.2rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0 0 0.6rem;
}

.celebration-sub {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 500px;
  margin: 0 auto 2.2rem;
  line-height: 1.5;
}

.celebration-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.celebration-next-btn {
  background: #456DFF;
  color: #ffffff;
  font-size: 1.12rem;
  font-weight: 800;
  padding: 1rem 2.2rem;
  border-radius: 18px;
  text-decoration: none;
  box-shadow: 0 4px 0 0 #284bcc;
  transition: all 0.15s ease;
}
.celebration-next-btn:hover {
  background: #355ee6;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 #284bcc;
}

.celebration-back-btn {
  background: #f8fafc;
  color: #475569;
  font-size: 1.08rem;
  font-weight: 750;
  padding: 1rem 1.8rem;
  border-radius: 18px;
  text-decoration: none;
  border: 1.5px solid #e2e8f0;
  transition: all 0.15s ease;
}
.celebration-back-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* 底部操作条 */
.practice-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1.5px solid #e5e7eb;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 100;
}

.practice-koji-dock {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 550px;
}

.koji-avatar-mini {
  flex-shrink: 0;
  animation: kojiFloat 2.6s ease-in-out infinite;
}

.koji-speech {
  font-size: 0.94rem;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  padding: 0.5rem 1rem;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
}

.practice-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.7rem;
  flex-shrink: 0;
}

.practice-btn-back {
  background: #ffffff;
  color: #334155;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 0.9rem 1.45rem;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  box-shadow: 0 3px 0 0 #cbd5e1;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.practice-btn-back:hover:not(:disabled) {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 0 #cbd5e1;
}

.practice-btn-back:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 0 0 #cbd5e1;
}

.practice-btn-back:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.practice-btn-primary {
  background: #456DFF;
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
  padding: 0.9rem 2.2rem;
  border-radius: 16px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 0 0 #284bcc;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.practice-btn-primary:hover:not(:disabled) {
  background: #355ee6;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 #284bcc;
}

.practice-btn-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 #284bcc;
}

.practice-btn-primary:disabled {
  background: #e2e8f0;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.practice-btn-primary.is-glow {
  background: #22c55e;
  box-shadow: 0 4px 0 0 #15803d;
  animation: pulseButton 1.8s infinite;
}

@keyframes pulseButton {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@media (max-width: 768px) {
  .practice-header { padding: 0.8rem 1rem; }
  .practice-card-canvas { padding: 1.8rem 1.4rem; border-radius: 20px; }
  .practice-card-title { font-size: 1.6rem; }
  .practice-bottom-bar { padding: 0.9rem 1rem; flex-direction: column; align-items: stretch; }
  .practice-koji-dock { display: none; }
  .practice-footer-actions { width: 100%; }
  .practice-action-box { flex: 1; }
  .practice-btn-primary,
  .practice-btn-back { width: 100%; text-align: center; }
}

/* ---------- 1:1 Brilliant Today & Profile Views ---------- */

/* Today Hero Course Card */
.today-hero-course {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  padding: 1.8rem 2rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 26px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.8rem;
  align-items: center;
}

.today-hero-left {
  display: flex;
  align-items: center;
  justify-content: center;
}

.today-hero-art {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 20px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.today-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.hero-art-fallback {
  font-size: 5rem;
}

.today-hero-right {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.today-hero-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.today-hero-kicker {
  font-size: 0.85rem;
  font-weight: 800;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.today-hero-progress-pill {
  font-size: 0.8rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #a7f3d0;
}

.today-hero-course-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.03em;
  border: 0;
  padding: 0;
}

.today-hero-lesson-box {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  font-size: 0.95rem;
}

.hero-lesson-label {
  color: #64748b;
  font-weight: 700;
}

.hero-lesson-title {
  color: #0f172a;
  font-weight: 850;
}

.today-hero-quote {
  margin: 0.1rem 0 0.4rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.5;
  font-style: italic;
}

.today-hero-meter {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.2rem 0 0.8rem;
}

.today-hero-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.today-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.btn-today-practice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  background: #2563eb;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 4px 0 0 #1d4ed8;
  transition: all 0.15s ease;
}

.btn-today-practice:hover {
  background: #1d4ed8;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 0 #1e40af;
}

.btn-today-practice:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 0 #1e40af;
}

.btn-today-map {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.3rem;
  background: #f8fafc;
  color: #334155;
  font-size: 0.98rem;
  font-weight: 800;
  border: 1.5px solid #cbd5e1;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-today-map:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Today Daily Bite Challenge */
.today-daily-challenge {
  padding: 1.8rem 2rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 60%, #eff6ff 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 26px;
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.08);
  margin-bottom: 2rem;
}

.daily-bite-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.daily-bite-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 850;
  color: #059669;
  letter-spacing: 0.02em;
}

.daily-badge-icon {
  font-size: 1.1rem;
}

.daily-bite-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: #3b82f6;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.daily-bite-title {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
  font-weight: 850;
  color: #0f172a;
  border: 0;
  padding: 0;
}

.daily-bite-question {
  margin: 0 0 1.2rem;
  font-size: 1.02rem;
  color: #334155;
  line-height: 1.6;
}

.daily-bite-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.daily-opt-btn {
  padding: 0.9rem 1.1rem;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 750;
  color: #1e293b;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  transition: all 0.15s ease;
}

.daily-opt-btn:hover:not(:disabled) {
  border-color: #3b82f6;
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.12);
}

.daily-opt-btn.is-correct {
  background: #ecfdf5 !important;
  border-color: #10b981 !important;
  color: #065f46 !important;
  font-weight: 850;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.daily-opt-btn.is-wrong {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #991b1b !important;
}

.daily-bite-result {
  margin-top: 1.2rem;
  padding: 1.2rem 1.4rem;
  background: #ffffff;
  border: 1px solid #d1fae5;
  border-radius: 18px;
  animation: revealSlide 0.3s ease;
}

.daily-result-badge {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 850;
  color: #059669;
  margin-bottom: 0.4rem;
}

.daily-result-badge.is-hint {
  color: #d97706;
}

.daily-result-explain {
  margin: 0;
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.6;
}

/* Brilliant Profile / Me View */
.brilliant-me-container {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.me-profile-hero {
  padding: 2.2rem 2.4rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 28px;
  color: #ffffff;
  box-shadow: 0 15px 35px -10px rgba(15, 23, 42, 0.25);
}

.me-hero-main {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-bottom: 2rem;
}

.me-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.me-avatar-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #10b981, #fbbf24);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

.me-avatar-emoji {
  width: 100%;
  height: 100%;
  background: #1e293b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
}

.me-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 2px solid #0f172a;
}

.me-user-info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.me-display-name {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  border: 0;
  padding: 0;
  letter-spacing: -0.02em;
}

.me-persona-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  align-self: flex-start;
}

.persona-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}

.me-user-bio {
  margin: 0.2rem 0 0;
  color: #94a3b8;
  font-size: 0.92rem;
  max-width: 36em;
}

.me-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.me-stat-box {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.me-stat-icon {
  font-size: 1.25rem;
  margin-bottom: 0.1rem;
}

.me-stat-num {
  font-size: 1.9rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.me-stat-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 700;
}

.me-section-card {
  padding: 1.8rem 2rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 26px;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.04);
}

.me-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.me-card-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.me-card-icon {
  font-size: 1.3rem;
}

.me-card-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 850;
  color: #0f172a;
  border: 0;
  padding: 0;
}

.me-card-badge {
  font-size: 0.82rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.me-card-link {
  font-size: 0.88rem;
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
}

.me-card-link:hover {
  text-decoration: underline;
}

.me-habit-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.8rem;
}

.me-habit-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.me-habit-pill {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.me-habit-col.is-active .me-habit-pill {
  background: #10b981;
  border-color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.me-habit-check {
  color: #ffffff;
  font-weight: 900;
  font-size: 1.2rem;
}

.me-habit-col.is-today .me-habit-pill {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.me-habit-day {
  font-size: 0.82rem;
  font-weight: 750;
  color: #64748b;
}

.me-badges-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.me-badge-item {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.me-badge-item.is-unlocked {
  border-color: #cbd5e1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.me-badge-item.is-locked {
  opacity: 0.45;
  background: #f8fafc;
  filter: grayscale(0.8);
}

.me-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--badge-color, #3b82f6);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.me-badge-name {
  font-size: 1.05rem;
  font-weight: 850;
  color: #0f172a;
}

.me-badge-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
}

.me-courses-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.me-course-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr auto;
  align-items: center;
  gap: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.me-course-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.me-course-title {
  font-size: 1rem;
  font-weight: 850;
  color: #0f172a;
}

.me-course-meta {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 700;
}

.me-course-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.me-course-bar {
  flex: 1;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.me-course-bar-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 999px;
}

.me-course-pct {
  font-size: 0.82rem;
  font-weight: 800;
  color: #475569;
  min-width: 105px;
}

.me-course-btn {
  padding: 0.45rem 0.9rem;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #2563eb;
  text-decoration: none;
  transition: all 0.15s ease;
}

.me-course-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

@media (max-width: 768px) {
  .today-hero-course { grid-template-columns: 1fr; padding: 1.4rem; }
  .today-hero-art { aspect-ratio: 16/9; }
  .me-stats-row { grid-template-columns: repeat(2, 1fr); }
  .me-course-row { grid-template-columns: 1fr; gap: 0.6rem; }
}

/* ---------- 响应式 / 打印 ---------- */

@media (max-width: 880px) {
  .page-shell { grid-template-columns: 1fr; }
  .page-toc { position: static; order: -1; border: 1px solid var(--line); border-radius: 12px; }
  .backlinks ul { columns: 1; }
  .hero-stats { grid-template-columns: 1fr; }
  .today-featured .today-actions { margin-left: 0; }
  .path-now { grid-template-columns: auto 1fr; }
  .path-now-start, .path-now .path-band-pct { grid-column: 1 / -1; }
  .path-now-start { justify-self: start; }
  .path-band-head { grid-template-columns: auto 1fr auto; }
  .path-star { grid-column: 3; grid-row: 1; }
}
@media print {
  .site-header, .site-footer, .page-toc, .final-cta { display: none; }
  .page-shell { display: block; width: 100%; margin: 0; }
  .kb-note { border: 0; box-shadow: none; }
  body { background: #fff; color: #000; }
  a, .reference-link { color: #0a4d68; }
}

/* ── 五彩纸屑（庆祝页） ─────────────────────────────── */
.kb-confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

/* ── 课程蜿蜒路径（Brilliant 蛇形虚线） ─────────────── */
.course-journey-track {
  position: relative;
}

.journey-path-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.stepping-stone-row {
  z-index: 1;
}

/* 节点选中态（点一次选中联动行动卡，再点进入） */
.stepping-stone-row.is-focus .stepping-disc-svg {
  transform: scale(1.09);
  filter: drop-shadow(0 0 10px rgba(69, 109, 255, 0.45));
}

.stepping-stone-row.is-focus .step-title {
  color: #456DFF !important;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}

.course-action-dock.is-picking .dock-card {
  animation: dockPulse 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dockPulse {
  0% { transform: translateY(10px) scale(0.97); opacity: 0.6; }
  60% { transform: translateY(0) scale(1.02); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}


/* ── 双语显示（中文默认，右上角切 EN） ─────────────────────────────── */
html[data-lang="en"] .bi-zh { display: none; }
html:not([data-lang="en"]) .bi-en { display: none; }

.kb-lang-toggle {
  margin-left: auto;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 999px;
  min-width: 46px;
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.kb-lang-toggle:hover { background: #e2e8f0; }
.kb-lang-toggle.is-active { background: #0f172a; color: #f8fafc; border-color: #0f172a; }
