/* 天王星刷题宝 · 白底主题（天王星）
   本文件是唯一的样式入口：所有类名由 app.js 的模板字符串与 index.html 使用。
   色板 / 形状 / 动效统一由下面的 token 控制，改风格优先改 token。 */
:root {
  color-scheme: light;

  /* 页面底色（白） */
  --bg-deep: #eef3f8;
  --bg: #f8fafc;
  --bg-2: #eef4f9;

  /* 面板 */
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --panel-muted: #f5f8fc;
  --line: #e2eaf3;
  --line-strong: #cddbe9;

  /* 文字 */
  --ink: #0f1f2e;
  --ink-soft: #34485c;
  --muted: #5d7286;

  /* 天王星色：--uranus / --uranus-2 只用于装饰，*--deep 才是白底上的文字色（对比度 ≥ 4.5:1） */
  --uranus: #12a396;
  --uranus-2: #1f9ad6;
  --uranus-deep: #0b7a70;
  --uranus-2-deep: #10688f;
  --uranus-soft: rgba(18, 163, 150, .09);
  --uranus-line: rgba(18, 163, 150, .32);
  --gold: #c9931f;
  --gold-deep: #8a6410;
  --gold-soft: rgba(201, 147, 31, .10);
  --gold-line: rgba(201, 147, 31, .38);

  /* 语义色 */
  --green: #0f9d63;
  --green-deep: #0b7a4d;
  --green-soft: rgba(15, 157, 99, .10);
  --green-line: rgba(15, 157, 99, .34);
  --orange: #d9820a;
  --orange-deep: #9a5a03;
  --orange-soft: rgba(217, 130, 10, .11);
  --orange-line: rgba(217, 130, 10, .38);
  --red: #d93a52;
  --red-deep: #b02a3f;
  --red-soft: rgba(217, 58, 82, .09);
  --red-line: rgba(217, 58, 82, .36);

  --shadow: 0 10px 28px rgba(15, 40, 70, .08);
  --shadow-soft: 0 6px 16px rgba(15, 40, 70, .06);
  --glow: 0 0 0 1px rgba(18, 163, 150, .20), 0 14px 30px rgba(18, 163, 150, .16);
  --radius: 16px;
  --radius-sm: 11px;

  /* 首页每日主题色（默认极光青；每天由 app.js 的 dailyTheme() 覆盖 .dashboard-stack 上的这组变量） */
  --hero-accent: #12a396;
  --hero-accent2: #1f9ad6;
  --hero-deep: #0b7a70;
  --hero-deep2: #10688f;
  --hero-tint: rgba(18, 163, 150, .16);
  --hero-tint2: rgba(31, 154, 214, .13);
  --hero-line: rgba(18, 163, 150, .34);
  --hero-bright: #5ee7d6;
  --hero-bright2: #7fc9f5;
  --hero-on-bright: #04231f;

  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg-deep); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(18, 163, 150, .07), transparent 62%),
    radial-gradient(880px 560px at 4% 2%, rgba(31, 154, 214, .06), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 62%, var(--bg-deep) 100%);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(620px 340px at 92% 4%, rgba(18, 163, 150, .05), transparent 62%),
    radial-gradient(560px 320px at 2% 98%, rgba(31, 154, 214, .05), transparent 62%);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; color: inherit; }
input, select, textarea { color: var(--ink); }
a { color: var(--uranus-2-deep); }
::selection { background: rgba(18, 163, 150, .22); color: #06231f; }
:focus-visible { outline: 2px solid var(--uranus-2); outline-offset: 2px; }

/* ---------- 外壳 ---------- */
.app-shell { min-height: 100vh; display: flex; position: relative; z-index: 1; }
.sidebar {
  width: 254px; flex: 0 0 254px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 20;
  padding: 24px 14px 22px;
  background: linear-gradient(180deg, #ffffff, #fafcfe);
  border-right: 1px solid var(--line);
}
.sidebar::after {
  content: ""; position: absolute; top: 0; right: -1px; width: 1px; height: 100%;
  background: linear-gradient(180deg, transparent, rgba(18, 163, 150, .55), transparent);
  opacity: .6;
}
.main-area { flex: 1; min-width: 0; }
.mobile-header { display: none; }
.content { max-width: 1320px; margin: 0 auto; padding: 42px 36px 96px; }
.site-footer {
  max-width: 1320px; margin: 0 auto; padding: 0 36px 44px;
  text-align: center; font-size: 12px; letter-spacing: .02em; color: var(--muted);
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--uranus-deep); text-decoration: underline; }

/* 品牌区 */
.brand {
  display: flex; align-items: center; gap: 12px;
  padding: 0 10px 24px; margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  width: 40px; height: auto; flex: 0 0 40px; display: block;
  filter: drop-shadow(0 2px 5px rgba(15, 40, 70, .12));
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25;
  background: linear-gradient(96deg, #0f1f2e 22%, #0b7a70 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { color: var(--muted); font-size: 11px; letter-spacing: .22em; margin-top: 3px; }
.mobile-brand { display: flex; align-items: center; gap: 8px; }
.mobile-brand img { width: 27px; height: auto; display: block; }

/* 侧栏分组 */
.side-group { margin: 16px 0 18px; }
.side-label {
  color: var(--muted); font-size: 11px; font-weight: 800;
  padding: 0 12px 8px; letter-spacing: .18em;
}
.side-link {
  width: 100%; border: 1px solid transparent; background: transparent; color: var(--ink-soft);
  display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 9px 13px;
  border-radius: var(--radius-sm); text-align: left; font-weight: 700; font-size: 14px;
  position: relative; transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.side-link:hover { background: var(--uranus-soft); border-color: var(--uranus-line); color: var(--ink); }
.side-link.active {
  background: linear-gradient(112deg, #2fd8c6, #46b8ea);
  border-color: transparent; color: #04231f; font-weight: 800;
  box-shadow: 0 10px 22px rgba(18, 163, 150, .24);
}
.side-link.active::before {
  content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 24px; border-radius: 0 3px 3px 0; background: var(--uranus);
  box-shadow: 0 0 10px rgba(18, 163, 150, .55);
}
.side-icon { width: 24px; flex: 0 0 24px; display: grid; place-items: center; color: var(--uranus); }
.side-link.active .side-icon { color: #04231f; }
.side-count {
  margin-left: auto; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 800;
  background: var(--uranus-soft); color: var(--uranus-deep); border: 1px solid var(--uranus-line);
}
.side-link.active .side-count { background: rgba(255, 255, 255, .6); color: #04231f; border-color: transparent; }

/* ---------- 页头 ---------- */
.page-head { margin-bottom: 26px; animation: twxFadeUp .5s ease both; }
.page-kicker {
  display: inline-flex; align-items: center; gap: 8px; color: var(--uranus-deep);
  font-size: 12px; font-weight: 800; letter-spacing: .22em; margin-bottom: 12px;
}
.page-kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--uranus); box-shadow: 0 0 0 4px rgba(18, 163, 150, .14);
}
.page-title {
  margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 850; letter-spacing: -.02em; line-height: 1.22;
  background: linear-gradient(96deg, #0f1f2e 12%, #0d6f8c 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-subtitle { margin: 12px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.head-row { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- 卡片与栅格 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel, .stat-card, .question-card, .chapter-panel, .empty-card, .loading-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel::before, .stat-card::before, .question-card::before {
  content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(18, 163, 150, .38), transparent);
  pointer-events: none;
}
.panel { padding: 22px; }
.stat-card { padding: 20px; min-height: 138px; }
.stat-label { color: var(--muted); font-size: 12.5px; letter-spacing: .12em; }
.stat-number {
  font-size: 36px; font-weight: 850; margin-top: 10px; letter-spacing: -.03em;
  background: linear-gradient(96deg, #0f1f2e 10%, #0b7a70 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-note { color: var(--muted); font-size: 12px; margin-top: 6px; line-height: 1.6; }
.progress-line {
  height: 8px; background: #eef3f8; border-radius: 999px; overflow: hidden; margin-top: 14px;
  border: 1px solid var(--line);
}
.progress-line > span {
  display: block; height: 100%; border-radius: inherit; transition: width .4s ease;
  background: linear-gradient(90deg, var(--uranus), var(--uranus-2));
  box-shadow: 0 0 10px rgba(18, 163, 150, .38);
}

.quick-card {
  text-align: left; padding: 20px; min-height: 152px; cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.quick-card:hover {
  transform: translateY(-3px); border-color: var(--uranus-line);
  box-shadow: var(--glow);
}
.quick-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: radial-gradient(circle at 32% 28%, rgba(18, 163, 150, .18), rgba(18, 163, 150, .05));
  border: 1px solid var(--uranus-line); color: var(--uranus-deep);
}
/* 首页四张快捷卡各给一个颜色：错题=红、收藏=金、章节=青、笔记=蓝 */
.card-grid.four .quick-card:nth-child(1) .quick-icon {
  color: var(--red-deep); border-color: var(--red-line);
  background: radial-gradient(circle at 32% 28%, rgba(217, 58, 82, .18), rgba(217, 58, 82, .05));
}
.card-grid.four .quick-card:nth-child(2) .quick-icon {
  color: var(--gold-deep); border-color: var(--gold-line);
  background: radial-gradient(circle at 32% 28%, rgba(201, 147, 31, .20), rgba(201, 147, 31, .06));
}
.card-grid.four .quick-card:nth-child(4) .quick-icon {
  color: var(--uranus-2-deep); border-color: rgba(31, 154, 214, .34);
  background: radial-gradient(circle at 32% 28%, rgba(31, 154, 214, .18), rgba(31, 154, 214, .05));
}
.quick-title { font-weight: 800; font-size: 16.5px; color: var(--ink); }
.quick-note { color: var(--muted); font-size: 13px; margin-top: 7px; line-height: 1.6; }

.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; flex-wrap: wrap; }
.section-title { font-size: 17.5px; font-weight: 820; margin: 0; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }

/* ---------- 药丸 / 标签页 / 按钮 ---------- */
.pill-row, .tab-row, .filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tab-row {
  padding: 5px; background: #eff4fa; border: 1px solid var(--line);
  border-radius: 14px; width: fit-content;
}
.tab {
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted);
  padding: 9px 15px; font-weight: 750; transition: .18s ease;
}
.tab:hover { color: var(--ink); background: rgba(18, 163, 150, .08); }
.tab.active {
  background: linear-gradient(112deg, #2fd8c6, #46b8ea);
  color: #04231f; font-weight: 800; box-shadow: 0 8px 18px rgba(18, 163, 150, .22);
}

/* ---------- 吸顶工具条：错题筛选 / 笔记搜索 ---------- */
.sticky-bar {
  position: sticky; top: 0; z-index: 9;
  margin-bottom: 16px; padding: 8px 0;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.review-tabs .tab { white-space: nowrap; font-size: 13.5px; padding: 8px 14px; }
.notes-search-field { min-width: 220px; flex: 1; }
.notes-search-panel { padding: 12px 15px; }
.notes-search-panel .label { font-size: 11px; margin-bottom: 4px; }
.notes-search-panel .search-box { min-height: 40px; padding: 0 12px; gap: 8px; border-radius: 11px; }
.notes-search-panel .search-box input { font-size: 13.5px; }
.notes-search-panel .search-box .ic { width: 15px; height: 15px; }

/* ---------- 题库筛选：搜索一行 + 科目/章节/题型/随机练习一行（吸顶） ---------- */
.practice-filter { padding: 12px 15px; display: grid; gap: 10px; }
.practice-search { max-width: 460px; }
.practice-search .label { font-size: 11px; margin-bottom: 4px; }
.practice-search .search-box { min-height: 40px; padding: 0 12px; gap: 8px; border-radius: 11px; }
.practice-search .search-box input { font-size: 13.5px; }
.practice-search .search-box .ic { width: 15px; height: 15px; }
.practice-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; align-items: end; }
.practice-control { min-width: 0; display: grid; gap: 3px; }
.practice-control .label { margin: 0; font-size: 10.5px; letter-spacing: .02em; }
.filter-select {
  width: 100%; border: 1px solid var(--line-strong); background: #ffffff; color: var(--ink);
  border-radius: 10px; padding: 8px 6px; font-size: 12px; font-weight: 750; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: .18s ease;
}
.filter-select:hover { border-color: var(--uranus-line); background: #f2f9f8; }
.filter-select, .practice-random { min-height: 34px; }
.practice-random { padding: 8px 4px; font-size: 11.5px; border-radius: 10px; }

/* ---------- 自定义选择面板（科目 / 章节 / 题型） ---------- */
.picker-modal {
  position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px;
  background: rgba(11, 25, 39, .48); backdrop-filter: blur(3px); animation: twxFadeUp .2s ease both;
}
.picker-card {
  width: min(440px, 100%); max-height: min(86vh, 660px); display: flex; flex-direction: column;
  padding: 14px 14px 12px; background: var(--panel); border-radius: 18px;
  box-shadow: 0 26px 60px rgba(9, 28, 46, .3); animation: thModalIn .22s ease both;
}
.picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; }
.picker-title { font-size: 15px; font-weight: 800; color: var(--ink); }
.picker-x { border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 10px; display: inline-flex; }
.picker-x:hover { background: var(--panel-muted); color: var(--ink); }
.picker-options { display: grid; gap: 4px; overflow: auto; min-height: 0; }
.picker-options.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.picker-option {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-soft);
  padding: 8px 10px; font-size: 13px; font-weight: 650; text-align: left; transition: .16s ease;
}
.picker-option:hover { background: var(--uranus-soft); border-color: var(--uranus-line); color: var(--ink); }
.picker-option.active { background: linear-gradient(112deg, #2fd8c6, #46b8ea); color: #04231f; font-weight: 800; }
.picker-option span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-option .ic { width: 15px; height: 15px; flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 4px 10px; white-space: nowrap;
  font-size: 12px; font-weight: 750; letter-spacing: .02em;
  background: var(--uranus-soft); color: var(--uranus-deep); border: 1px solid var(--uranus-line);
}
.chip.orange { background: var(--orange-soft); color: var(--orange-deep); border-color: var(--orange-line); }
.chip.green { background: var(--green-soft); color: var(--green-deep); border-color: var(--green-line); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 14px;
  background: #ffffff; color: var(--ink); font-weight: 750; text-decoration: none;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { background: #f2f9f8; border-color: var(--uranus-line); color: var(--ink); transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(112deg, #5ee7d6, #4bb6f0); border-color: transparent; color: #04231f; font-weight: 850;
  box-shadow: 0 10px 22px rgba(18, 163, 150, .26);
}
.btn.primary:hover { filter: brightness(1.05); color: #04231f; }
.btn.orange {
  background: linear-gradient(112deg, #ffd777, #f0a93b); border-color: transparent; color: #3a2405; font-weight: 820;
  box-shadow: 0 10px 20px rgba(240, 169, 59, .22);
}
.btn.orange:hover { filter: brightness(1.04); color: #3a2405; }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-soft); }
.btn.is-on { border-color: var(--uranus-line); background: var(--uranus-soft); color: var(--uranus-deep); }
.btn.small { padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.btn.danger { color: var(--red-deep); border-color: var(--red-line); background: var(--red-soft); }
.btn.danger:hover { background: rgba(217, 58, 82, .16); border-color: var(--red); color: #8f1f30; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.icon-button {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  min-width: 40px; min-height: 40px; border-radius: 10px; display: inline-grid; place-items: center;
  transition: .18s ease;
}
.icon-button:hover { background: rgba(18, 163, 150, .10); color: var(--uranus-deep); }
.icon-button.fav-on { color: var(--gold); }

/* ---------- 表单 ---------- */
.search-box {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px;
  background: #ffffff; border: 1px solid var(--line-strong); border-radius: 14px;
}
.search-box span { color: var(--uranus); display: grid; place-items: center; }
.search-box input { border: 0; outline: 0; width: 100%; min-width: 0; color: var(--ink); background: transparent; }
.search-box input::placeholder { color: #788d9f; }
.search-box:focus-within { border-color: var(--uranus); box-shadow: 0 0 0 3px rgba(18, 163, 150, .14); }
.select, .input, .textarea {
  border: 1px solid var(--line-strong); background: #ffffff; color: var(--ink);
  border-radius: var(--radius-sm); padding: 10px 12px; outline: none; transition: .18s ease;
}
.select:focus, .input:focus, .textarea:focus { border-color: var(--uranus); box-shadow: 0 0 0 3px rgba(18, 163, 150, .14); }
.input::placeholder, .textarea::placeholder { color: #788d9f; }
.select option { background: var(--panel-solid); color: var(--ink); }
.textarea { width: 100%; min-height: 150px; resize: vertical; line-height: 1.7; }
.label { color: var(--muted); font-size: 12px; font-weight: 750; display: block; margin-bottom: 6px; letter-spacing: .06em; }

/* ---------- 章节练习布局 ---------- */
.subject-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 18px; align-items: start; }
.chapter-panel { padding: 8px; position: sticky; top: 18px; }
.chapter-button {
  width: 100%; border: 1px solid transparent; background: transparent; padding: 13px; border-radius: 12px;
  text-align: left; display: flex; align-items: flex-start; gap: 9px; color: var(--ink-soft);
  transition: .18s ease;
}
.chapter-button:hover { background: rgba(18, 163, 150, .08); border-color: var(--line); }
.chapter-button.active {
  background: linear-gradient(112deg, #2fd8c6, #46b8ea);
  color: #04231f; box-shadow: 0 8px 18px rgba(18, 163, 150, .2);
}
.chapter-index { flex: 0 0 24px; font-weight: 850; color: var(--uranus-deep); }
.chapter-button.active .chapter-index { color: #04231f; }
.chapter-name { font-size: 13px; line-height: 1.5; font-weight: 750; }
.chapter-count { margin-left: auto; font-size: 11px; opacity: .7; white-space: nowrap; }
.subhead { margin: 0 0 16px; font-size: 19px; letter-spacing: -.01em; }

/* ---------- 已刷进度：章节进度条 / 题库练习工具 ---------- */
.chapter-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.chapter-row { display: flex; align-items: baseline; gap: 8px; }
.chapter-progress {
  display: block; height: 5px; border-radius: 999px; overflow: hidden;
  background: #eef3f8; border: 1px solid var(--line);
}
.chapter-progress > span {
  display: block; height: 100%; border-radius: inherit; transition: width .4s ease;
  background: linear-gradient(90deg, var(--uranus), var(--uranus-2));
}
.chapter-button.active .chapter-progress { background: rgba(4, 35, 31, .12); border-color: rgba(4, 35, 31, .2); }
.chapter-button.active .chapter-progress > span { background: linear-gradient(90deg, #04231f, #0d5a50); }
.practice-result-main { display: grid; gap: 3px; min-width: 0; }
.practice-tools { gap: 8px; }
.practice-tools .btn { white-space: nowrap; }
.pool-progress { margin: 0 0 14px; }
.pool-progress-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: 12px; color: var(--muted);
}
.pool-progress-head b { color: var(--uranus-deep); font-size: 13.5px; }
.pool-progress .progress-line { margin-top: 7px; height: 7px; }
.picker-count { flex: none; font-size: 11px; font-weight: 700; opacity: .7; white-space: nowrap; }
.picker-option.active .picker-count { opacity: .92; }

/* ---------- 题目卡片 ---------- */
.question-list { display: grid; gap: 12px; }
.question-card { padding: 18px 18px 18px 20px; overflow: hidden; }
.question-card::after {
  content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--uranus), rgba(31, 154, 214, .22));
  opacity: .85;
}
.item-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.item-number {
  width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; display: grid; place-items: center;
  font-size: 13px; font-weight: 850; color: var(--uranus-deep);
  background: var(--uranus-soft); border: 1px solid var(--uranus-line);
}
.item-title { font-weight: 780; line-height: 1.6; flex: 1 1 240px; min-width: 0; color: var(--ink); }
.item-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.item-body { margin: 13px 0 0 43px; color: var(--ink-soft); line-height: 1.85; white-space: normal; }
.answer-box {
  margin: 14px 0 0 43px; padding: 14px 16px; border-radius: 12px; line-height: 1.85;
  background: #f7fafd; border: 1px solid var(--line); border-left: 3px solid var(--uranus);
  color: var(--ink-soft);
}
.answer-box strong { display: block; color: var(--uranus-deep); font-size: 12px; margin-bottom: 6px; letter-spacing: .08em; }
.answer-paragraph { margin: 0 0 10px; line-height: 1.9; text-indent: 2em; }
.answer-paragraph:last-of-type { margin-bottom: 0; }

/* 材料题：材料折叠 + 问题常显 */
.material-block { display: block; }
.material-box {
  margin-top: 8px; padding: 10px 12px; border-radius: 11px;
  background: var(--panel-muted); border: 1px solid var(--line); border-left: 3px solid var(--uranus-line);
}
.material-label { display: block; font-size: 11px; font-weight: 750; letter-spacing: .16em; color: var(--muted); margin-bottom: 5px; }
.material-text { font-size: 13.5px; line-height: 1.75; font-weight: 500; color: var(--ink-soft); overflow-wrap: anywhere; }
.material-text.clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.material-toggle {
  margin-top: 7px; border: 0; padding: 2px 0; background: none; cursor: pointer;
  color: var(--uranus-deep); font-size: 12.5px; font-weight: 750;
  display: inline-flex; align-items: center; gap: 4px;
}
.material-toggle:hover { text-decoration: underline; }
.material-prompt { margin-top: 10px; font-weight: 700; line-height: 1.7; }
.material-prompt::before {
  content: "问题"; display: inline-block; margin-right: 7px; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 750; letter-spacing: .1em; vertical-align: 2px;
  color: var(--uranus-deep); background: var(--uranus-soft); border: 1px solid var(--uranus-line);
}
.recite-stem { font-size: 17px; line-height: 1.6; }
.dictate-stem { margin-bottom: 4px; }
.recite-stem .material-prompt, .dictate-stem .material-prompt { font-size: 17px; }
.answer-level-2 { padding-left: 1em; }
.answer-level-3 { padding-left: 2em; }
.answer-toggle { margin-top: 12px; }

.option-list { margin: 13px 0 0 43px; display: grid; gap: 7px; }
.option {
  width: 100%; text-align: left; font: inherit; cursor: pointer; padding: 10px 12px; border-radius: 10px;
  background: #ffffff; border: 1px solid var(--line-strong); color: var(--ink-soft); line-height: 1.6;
  transition: border-color .16s, background .16s, color .16s;
}
.option strong { color: var(--uranus-deep); margin-right: 2px; }
.option:hover { border-color: var(--uranus-line); background: #f2fbfa; }
.option.selected { border-color: var(--uranus-2); background: rgba(31, 154, 214, .10); color: var(--ink); }
.option.selected-correct, .option.correct-option {
  border-color: var(--green-line); background: var(--green-soft); color: var(--green-deep);
}
.option.selected-correct strong, .option.correct-option strong { color: var(--green-deep); }
.option.selected-incorrect { border-color: var(--red-line); background: var(--red-soft); color: var(--red-deep); }
.option.selected-incorrect strong { color: var(--red-deep); }
.option-mark { float: right; margin-left: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; opacity: .9; }
.choice-feedback { margin: 12px 0 0 43px; padding: 10px 12px; border-radius: 10px; font-weight: 750; }
.choice-feedback.correct { color: var(--green-deep); background: var(--green-soft); border: 1px solid var(--green-line); }
.choice-feedback.incorrect { color: var(--red-deep); background: var(--red-soft); border: 1px solid var(--red-line); }
.choice-feedback.neutral { color: var(--muted); background: #f5f8fc; border: 1px solid var(--line); }
/* 全部正确率：作答完选择题后出现，显示已作答学员的答对比例。 */
.qstat-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 10px 0 0 43px; padding: 8px 12px; border-radius: 10px;
  background: #f2f7ff; border: 1px dashed #c8d8ef;
}
.qstat-label { color: var(--muted); font-size: 12.5px; letter-spacing: .06em; }
.qstat-value { font-size: 19px; font-weight: 800; line-height: 1.2; }
.qstat-value.good { color: var(--green-deep); }
.qstat-value.mid { color: #b9770a; }
.qstat-value.low { color: var(--red-deep); }
.qstat-meta { color: var(--muted); font-size: 12px; }
.mastered { border-color: var(--green-line); background: linear-gradient(180deg, #f4fdf8, #ffffff); }
.mastered::after { background: linear-gradient(180deg, var(--green), rgba(15, 157, 99, .22)); }
.mastered .item-number { background: var(--green-soft); color: var(--green-deep); border-color: var(--green-line); }

/* ---------- 题目笔记 ---------- */
.note-box {
  margin: 14px 0 0 43px; padding: 14px 16px; border-radius: 12px;
  background: #fffaef; border: 1px solid var(--gold-line); border-left: 3px solid var(--gold);
}
.note-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.note-head strong { color: var(--gold-deep); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.note-hint { color: var(--muted); font-size: 12px; }
.note-box .textarea { min-height: 96px; background: #ffffff; }
.note-actions { margin: 10px 0 0 43px; }
.note-preview {
  margin: 14px 0 0 43px; padding: 10px 14px; border-radius: 11px; line-height: 1.7;
  background: #fffaef; border: 1px dashed var(--gold-line); color: #6d5210;
  cursor: pointer; word-break: break-word;
}
.note-preview:hover { border-color: var(--gold); }
.note-preview strong { color: var(--gold-deep); margin-right: 4px; }
.note-text {
  margin: 13px 0 0 43px; padding: 12px 14px; border-radius: 11px; line-height: 1.8;
  background: #fffaef; border-left: 3px solid var(--gold); color: #52400f;
  white-space: pre-wrap; word-break: break-word;
}
.btn.note-on { border-color: var(--gold-line); color: var(--gold-deep); background: var(--gold-soft); }

/* ---------- 公开笔记（班级共享 + 同学回复） ---------- */
.notes-tabs { margin-bottom: 10px; }
.notes-tabs .tab { white-space: nowrap; }
.notes-bar-row { margin-top: 10px; }
.tab-dot {
  display: inline-flex; align-items: center; justify-content: center; min-width: 17px; height: 17px;
  padding: 0 5px; margin-left: 5px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 10.5px; font-weight: 850; line-height: 1;
}
.pub-banner {
  display: flex; align-items: center; gap: 9px; width: 100%; margin-bottom: 14px; padding: 11px 15px;
  border-radius: 12px; border: 1px solid var(--uranus-line); cursor: pointer; text-align: left;
  background: linear-gradient(112deg, rgba(94, 231, 214, .20), rgba(75, 182, 240, .16));
  color: var(--uranus-deep); font-size: 13px; font-weight: 800;
}
.pub-banner:hover { border-color: var(--uranus); }
.pub-banner .ic { width: 16px; height: 16px; flex: none; }
.note-scope { display: flex; gap: 6px; margin-bottom: 9px; flex-wrap: wrap; }
.note-scope-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-soft);
  font-size: 12.5px; font-weight: 750; cursor: pointer; transition: .16s ease;
}
.note-scope-btn:hover { border-color: var(--uranus-line); color: var(--ink); }
.note-scope-btn.active { border-color: transparent; background: linear-gradient(112deg, #5ee7d6, #4bb6f0); color: #04231f; font-weight: 850; }
.note-scope-btn .ic { width: 14px; height: 14px; }
.note-scope-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: rgba(6, 32, 28, .12); font-size: 10.5px; font-weight: 850;
}
.pub-note-box { background: #eefaf8; border-color: var(--uranus-line); border-left-color: var(--uranus); }
.pub-note-box .note-head strong { color: var(--uranus-deep); }
.pub-note-list { display: grid; gap: 14px; }
.pub-note-card {
  padding: 15px 17px; border-radius: var(--radius-sm);
  background: var(--panel-muted); border: 1px solid var(--line); border-left: 3px solid var(--uranus-line);
}
.pub-note-card.is-mine { border-left-color: var(--gold); background: #fffdf6; }
.pub-note-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pub-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none;
  border-radius: 50%; background: linear-gradient(135deg, #5ee7d6, #4bb6f0); color: #04231f;
  font-size: 12.5px; font-weight: 850;
}
.pub-author { font-weight: 800; color: var(--ink); font-size: 13.5px; }
.pub-mini-chip { padding: 2px 8px; font-size: 11px; }
.pub-note-ops { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pub-note-meta { margin: 0 0 8px; }
.pub-note-text { line-height: 1.85; color: var(--ink-soft); word-break: break-word; white-space: pre-wrap; }
.pub-replies { margin-top: 12px; display: grid; gap: 8px; }
.pub-reply { padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.pub-reply-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.pub-reply-head strong { font-size: 12.5px; color: var(--ink); }
.pub-reply-retract { margin-left: auto; border: none; background: none; color: var(--muted); font-size: 11.5px; cursor: pointer; padding: 2px 4px; }
.pub-reply-retract:hover { color: var(--red-deep); }
.pub-reply-text { line-height: 1.75; color: var(--ink-soft); word-break: break-word; white-space: pre-wrap; }
.pub-reply-more { justify-self: start; border: none; background: none; color: var(--uranus-deep); font-size: 12.5px; font-weight: 800; cursor: pointer; padding: 2px 0; }
.pub-reply-more:hover { text-decoration: underline; }
.pub-reply-form { display: flex; gap: 8px; align-items: flex-end; }
.pub-reply-form .textarea { min-height: 44px; background: #fff; flex: 1; }
.pub-scope-hint {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 12px; padding: 7px 12px;
  border-radius: 999px; background: var(--uranus-soft); border: 1px solid var(--uranus-line);
  color: var(--uranus-deep); font-size: 12.5px; font-weight: 750;
}
.pub-scope-hint .ic { width: 14px; height: 14px; flex: none; }

/* ---------- 树洞（学员留言 + 管理端回复） ---------- */
.treehole-list { display: grid; gap: 14px; }
.treehole-ticket {
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--panel-muted); border: 1px solid var(--line);
}
.treehole-ticket.retracted { opacity: .62; }
.treehole-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.treehole-head strong { color: var(--ink); font-size: 14px; }
.treehole-head > .btn { margin-left: auto; }
.treehole-text { line-height: 1.85; color: var(--ink-soft); word-break: break-word; }
.treehole-reply {
  margin-top: 12px; padding: 12px 14px; border-radius: 11px;
  background: var(--uranus-soft); border-left: 3px solid var(--uranus-line);
}
.treehole-reply strong { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 13px; color: var(--uranus-deep); }
.treehole-reply .ic { width: 16px; height: 16px; }
.treehole-reply-text { line-height: 1.8; color: var(--ink-soft); word-break: break-word; }
.treehole-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.treehole-actions > .btn { margin-left: auto; }
.treehole-reply-box { margin-top: 12px; }
.treehole-reply-box .textarea { min-height: 90px; background: #ffffff; }
.treehole-ops { margin-top: 12px; }

/* ---------- 树洞 · 学员端大树（生长视频 → 静态大树 + 金苹果热区） ---------- */
.treehole-hero { margin-bottom: 22px; }
.treehole-scene { position: relative; width: 100%; aspect-ratio: 720 / 598; overflow: hidden; background: #cfe8f5; }
.treehole-scene > * { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.treehole-stage { object-fit: cover; user-select: none; -webkit-user-drag: none; }
/* 生长视频层：先播视频，播完停在最后一帧（与静态大图逐像素一致），淡出后金苹果热区淡入 */
.treehole-video { object-fit: cover; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; }
.treehole-scene.is-intro .treehole-stage { visibility: hidden; }
.treehole-scene.is-intro .treehole-video { opacity: 1; visibility: visible; transition: opacity .35s ease; }
.treehole-apple-layer { transition: opacity .7s ease; }
.treehole-scene.is-intro .treehole-apple-layer { opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
@media (prefers-reduced-motion: reduce) {
  .treehole-video, .treehole-apple-layer, .th-apple-ring, .th-apple-badge { transition: none; }
  .th-apple-halo, .th-apple-write .th-speech { animation: none; }
}
.treehole-caption { display: flex; align-items: center; justify-content: space-between; gap: 6px 18px; flex-wrap: wrap; padding: 10px 2px 0; }
.treehole-caption-main { color: var(--ink-soft); font-size: 13.5px; }
.treehole-caption-side { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.treehole-caption-side > .btn { padding: 4px 10px; font-size: 12px; }

/* 金苹果热区（叠在静态大图上：带数字的苹果 = 留言，发光的大苹果 = 写新留言） */
.treehole-apple-layer .th-apple { cursor: pointer; }
.treehole-apple-layer .th-apple:focus { outline: none; }
.th-apple-hit { fill: transparent; }
.th-apple[data-action]:focus-visible .th-apple-hit { stroke: var(--uranus); stroke-width: 2.5; stroke-dasharray: 6 6; }
.th-apple-ring { fill: none; stroke: #ffeaa6; stroke-width: 3; opacity: 0; transition: opacity .18s ease; filter: drop-shadow(0 0 7px rgba(255, 205, 70, .95)); }
.th-apple-ring.is-strong { opacity: .85; stroke-width: 3.4; }
.th-apple-msg:hover .th-apple-ring, .th-apple-msg:focus-visible .th-apple-ring { opacity: 1; }
.th-apple-badge { transform-box: fill-box; transform-origin: center; transition: transform .16s ease; }
.th-apple-badge circle { fill: #ffd75e; stroke: #ffffff; stroke-width: 3; }
.th-apple-badge text { fill: #7a4c07; font-size: 19px; font-weight: 800; }
.th-apple-msg:hover .th-apple-badge, .th-apple-msg:focus-visible .th-apple-badge { transform: scale(1.14); }
.th-apple-dot { fill: #f0a02c; stroke: #ffffff; stroke-width: 2.4; }
.th-apple-msg.is-done .th-apple-dot { fill: #23a35f; }
.th-apple-halo { fill: rgba(255, 214, 92, .5); transform-box: fill-box; transform-origin: center; animation: thApplePulse 2.4s ease-out infinite; }
@keyframes thApplePulse { 0% { transform: scale(.72); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.th-apple-write .th-apple-plus-edge { fill: none; stroke: #c9861a; stroke-width: 9.6; stroke-linecap: round; }
.th-apple-write .th-apple-plus { fill: none; stroke: #ffffff; stroke-width: 5.6; stroke-linecap: round; }
.th-speech { pointer-events: none; transform-box: fill-box; transform-origin: 50% 100%; }
.th-speech rect, .th-speech path { fill: #ffffff; stroke: var(--uranus-line); stroke-width: 1.8; }
.th-speech text { fill: var(--uranus-deep); font-size: 17px; font-weight: 700; }
.th-apple-write .th-speech { filter: drop-shadow(0 5px 12px rgba(15, 56, 48, .16)); animation: thSpeechFloat 3.6s ease-in-out infinite; }
@keyframes thSpeechFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.treehole-modal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: rgba(11, 25, 39, .46); backdrop-filter: blur(3px); animation: twxFadeUp .2s ease both;
}
.treehole-modal-card {
  width: min(600px, 100%); max-height: min(88vh, 720px); overflow: auto; padding: 22px;
  background: var(--panel); border-radius: 18px; box-shadow: 0 26px 60px rgba(9, 28, 46, .3);
  animation: thModalIn .24s ease both;
}
@keyframes thModalIn { from { transform: translateY(16px) scale(.97); opacity: .5; } to { transform: none; opacity: 1; } }
.treehole-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.treehole-modal-title { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 800; color: var(--ink); }
.treehole-modal-title .ic { width: 20px; height: 20px; color: var(--uranus-deep); }
.treehole-modal-x { border: 0; background: transparent; color: var(--muted); padding: 6px; border-radius: 10px; display: inline-flex; }
.treehole-modal-x:hover { background: var(--panel-muted); color: var(--ink); }
.treehole-modal-hint { margin: 4px 0 12px; line-height: 1.7; }
.treehole-modal-actions { justify-content: space-between; }
.treehole-modal-actions > .btn { margin-left: 0; }
.treehole-modal-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.treehole-detail-text { margin-top: 10px; }
.treehole-waiting { margin-top: 12px; padding: 12px 14px; border-radius: 11px; background: var(--orange-soft); border-left: 3px solid var(--orange-line); color: var(--orange-deep); }

/* ---------- 首页（每日主题色：倒计时 / 励志语录 / 快捷入口跟随 --hero-* 变量） ---------- */
.dashboard-stack { display: grid; gap: 18px; animation: twxFadeUp .55s ease both; }
.spaced { margin-top: 28px; }
.card-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 首页每天换一套颜色，配合天王星 logo 的青绿 + 冰蓝 + 星环金 */
.dashboard-stack[data-hero-theme="gold"] {
  --hero-accent: #c9931f; --hero-accent2: #e0801e; --hero-deep: #8a6410; --hero-deep2: #9a5a03;
  --hero-tint: rgba(201, 147, 31, .18); --hero-tint2: rgba(224, 128, 30, .12); --hero-line: rgba(201, 147, 31, .38);
  --hero-bright: #ffd777; --hero-bright2: #ffc14d; --hero-on-bright: #3a2405;
}
.dashboard-stack[data-hero-theme="violet"] {
  --hero-accent: #7b5cf0; --hero-accent2: #1f9ad6; --hero-deep: #5b3fd1; --hero-deep2: #10688f;
  --hero-tint: rgba(123, 92, 240, .16); --hero-tint2: rgba(31, 154, 214, .12); --hero-line: rgba(123, 92, 240, .34);
  --hero-bright: #c6b4ff; --hero-bright2: #9fd8ff; --hero-on-bright: #2a1660;
}
.dashboard-stack[data-hero-theme="rose"] {
  --hero-accent: #d93a52; --hero-accent2: #a06bf5; --hero-deep: #b02a3f; --hero-deep2: #6b46c1;
  --hero-tint: rgba(217, 58, 82, .14); --hero-tint2: rgba(160, 107, 245, .14); --hero-line: rgba(217, 58, 82, .32);
  --hero-bright: #ffb3c6; --hero-bright2: #d9b8ff; --hero-on-bright: #4a1030;
}
.dashboard-stack[data-hero-theme="mint"] {
  --hero-accent: #18ae90; --hero-accent2: #3fa34d; --hero-deep: #0d7a63; --hero-deep2: #2c7a37;
  --hero-tint: rgba(24, 174, 144, .16); --hero-tint2: rgba(63, 163, 77, .13); --hero-line: rgba(24, 174, 144, .34);
  --hero-bright: #a8f0d8; --hero-bright2: #cdf5b8; --hero-on-bright: #06301f;
}
.dashboard-stack[data-hero-theme="ocean"] {
  --hero-accent: #1f9ad6; --hero-accent2: #4a7de0; --hero-deep: #10688f; --hero-deep2: #3457b2;
  --hero-tint: rgba(31, 154, 214, .16); --hero-tint2: rgba(74, 125, 224, .13); --hero-line: rgba(31, 154, 214, .34);
  --hero-bright: #9bd7ff; --hero-bright2: #a8e6f0; --hero-on-bright: #05304a;
}

.hero-banner {
  position: relative; overflow: hidden; padding: 28px; border-radius: 20px; color: var(--ink);
  background:
    radial-gradient(620px 320px at 88% 12%, var(--hero-tint), transparent 62%),
    radial-gradient(420px 260px at 6% 100%, var(--hero-tint2), transparent 66%),
    linear-gradient(132deg, #f3fbf9, #eef4fd);
  border: 1px solid var(--hero-line);
  box-shadow: 0 14px 34px rgba(15, 40, 70, .09);
}
.hero-banner h2 { margin: 0; font-size: 23px; letter-spacing: -.01em; color: var(--ink); }
.hero-banner p { margin: 9px 0 0; color: var(--ink-soft); line-height: 1.75; max-width: 60ch; }
.hero-actions { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hero-actions .btn { border-color: var(--hero-line); background: #ffffff; color: var(--ink); width: 100%; padding: 9px 6px; font-size: 13px; gap: 5px; white-space: nowrap; }
.hero-actions .btn .ic { width: 16px; height: 16px; flex: none; }
.hero-actions .btn:hover { background: #f3fbfa; border-color: var(--hero-accent); }
.hero-banner > :not(.hero-art):not(.hero-glyph) { position: relative; z-index: 1; }
.hero-art { position: absolute; right: -54px; top: -40px; width: 330px; height: 330px; opacity: .9; pointer-events: none; z-index: 0; }
.hero-art .hero-ring { transform-origin: 160px 168px; animation: twxSpin 44s linear infinite; }
.hero-art .hero-planet { animation: twxDrift 12s ease-in-out infinite; transform-origin: 160px 168px; }

/* 倒计时卡片：数字最大、进度条随剩余天数收紧 */
.countdown-card {
  position: relative; overflow: hidden; padding: 22px 24px; border-radius: 20px;
  background:
    radial-gradient(520px 280px at 92% 6%, var(--hero-tint), transparent 64%),
    linear-gradient(140deg, #ffffff, #f4fbfa 62%, #eef4fd);
  border: 1px solid var(--hero-line); box-shadow: var(--shadow);
}
.countdown-card::after {
  content: ""; position: absolute; right: -46px; top: -46px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--hero-tint), transparent 70%); pointer-events: none;
}
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.cd-kicker {
  display: inline-flex; align-items: center; gap: 7px; color: var(--hero-deep);
  font-size: 12px; font-weight: 850; letter-spacing: .14em; white-space: nowrap;
}
.cd-kicker .ic { width: 17px; height: 17px; }
.cd-stage {
  border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 800;
  background: var(--hero-tint); color: var(--hero-deep); border: 1px solid var(--hero-line); white-space: nowrap;
}
.cd-row { display: flex; align-items: center; gap: 16px; margin-top: 10px; position: relative; }
.cd-num-wrap { display: flex; align-items: baseline; gap: 6px; flex: none; }
.cd-side { flex: 1; min-width: 0; }
.cd-days {
  font-size: clamp(44px, 7vw, 62px); font-weight: 900; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--hero-deep), var(--hero-accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 8px 18px var(--hero-tint));
}
.cd-unit { font-size: 18px; font-weight: 800; color: var(--hero-deep2); }
.cd-title { font-size: 15.5px; font-weight: 800; color: var(--ink); position: relative; }
.cd-bar {
  margin-top: 10px; height: 9px; border-radius: 999px; overflow: hidden; position: relative;
  background: #eef3f8; border: 1px solid var(--line);
}
.cd-bar > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--hero-accent), var(--hero-accent2));
  box-shadow: 0 0 12px var(--hero-tint);
}

/* 每日一句：横跨整行的窄条，左侧主题色竖条 + 引号 */
.quote-strip {
  position: relative; overflow: hidden; padding: 14px 20px 14px 24px; border-radius: 18px;
  background:
    radial-gradient(460px 200px at 100% 0%, var(--hero-tint2), transparent 66%),
    linear-gradient(120deg, #ffffff, #f5faff 70%, #f1f8ff);
  border: 1px solid var(--hero-line); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
}
.quote-strip::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, var(--hero-accent), var(--hero-accent2));
  box-shadow: 0 0 14px var(--hero-tint);
}
.quote-mark { font-size: 38px; line-height: 1; font-weight: 900; color: var(--hero-accent); opacity: .5; flex: none; }
.quote-body { position: relative; min-width: 0; }
.quote-text {
  margin: 0; font-size: clamp(16px, 2vw, 19px); font-weight: 850; line-height: 1.5;
  color: var(--ink); letter-spacing: .01em;
}
.quote-from { margin: 4px 0 0; font-size: 12.5px; color: var(--hero-deep2); font-weight: 750; }

/* 每日主题「花哨」增强：渐变描边 + 星尘闪烁 + logo 水印 */
.hero-banner::before,
.countdown-card::before,
.quote-strip::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--hero-accent), var(--hero-accent2) 52%, var(--hero-bright));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: .5;
}
.hero-banner::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(2px 2px at 18% 24%, var(--hero-bright), transparent 60%),
    radial-gradient(1.6px 1.6px at 34% 70%, var(--hero-bright2), transparent 62%),
    radial-gradient(2.2px 2.2px at 60% 30%, var(--hero-bright), transparent 60%),
    radial-gradient(1.4px 1.4px at 78% 76%, #ffffff, transparent 60%),
    radial-gradient(1.8px 1.8px at 52% 84%, var(--hero-bright2), transparent 62%),
    radial-gradient(1.6px 1.6px at 88% 20%, #ffffff, transparent 60%);
  opacity: .5; animation: twxTwinkle 4.6s ease-in-out infinite;
}
.hero-banner { box-shadow: 0 16px 40px var(--hero-tint), 0 14px 34px rgba(15, 40, 70, .09); }
.hero-glyph {
  position: absolute; left: 50%; top: 50%; width: 240px; height: 360px;
  transform: translate(-50%, -50%); color: var(--hero-accent);
  opacity: .07; pointer-events: none; z-index: 0;
}
.cd-days { text-shadow: 0 0 24px var(--hero-tint); }
.dashboard-stack .stat-card { background-image: radial-gradient(240px 150px at 100% 0%, var(--hero-tint), transparent 68%); }
.dashboard-stack .hero-quick .quick-card { background-image: radial-gradient(220px 140px at 100% 0%, var(--hero-tint2), transparent 70%); }
@keyframes twxTwinkle { 0%, 100% { opacity: .3; } 50% { opacity: .68; } }

/* 首页卡片跟随当日主题色：今日任务数字、章节练习图标、快捷卡悬停 */
.dashboard-stack .stat-card:nth-child(3) .stat-number {
  background: linear-gradient(96deg, var(--hero-deep), var(--hero-accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dashboard-stack .card-grid.four .quick-card:nth-child(3) .quick-icon {
  color: var(--hero-deep); border-color: var(--hero-line);
  background: radial-gradient(circle at 32% 28%, var(--hero-tint), var(--hero-tint2));
}
.dashboard-stack .quick-card:hover { border-color: var(--hero-line); }

/* 首页紧凑模式：压缩页头与卡片留白，让内容一屏看完 */
.page-head--compact { margin-bottom: 16px; }
.page-head--compact .page-kicker { margin-bottom: 8px; }
.page-head--compact .page-title { font-size: clamp(22px, 2.4vw, 30px); }
.page-head--compact .page-subtitle { margin-top: 8px; font-size: 13.5px; line-height: 1.6; }

.dashboard-stack .hero-banner { padding: 22px 24px; }
.dashboard-stack .hero-banner h2 { font-size: 21px; }
.dashboard-stack .hero-art { opacity: .55; }
.dashboard-stack .hero-banner p { margin-top: 7px; line-height: 1.6; }
.dashboard-stack .hero-actions { margin-top: 14px; gap: 8px; }
.dashboard-stack .hero-actions .btn { padding: 8px 6px; font-size: 12.5px; }

.dashboard-stack .countdown-card { padding: 15px 18px 14px; }
.dashboard-stack .cd-row { margin-top: 7px; }
.dashboard-stack .cd-days { font-size: clamp(44px, 7vw, 60px); }
.dashboard-stack .cd-title { font-size: 14.5px; }
.dashboard-stack .cd-bar { margin-top: 9px; height: 8px; }

.dashboard-stack .quote-strip { padding: 13px 18px 13px 22px; }
.dashboard-stack .quote-mark { font-size: 32px; }
.dashboard-stack .quote-text { font-size: clamp(16px, 2vw, 19px); line-height: 1.55; }
.dashboard-stack .quote-from { margin-top: 3px; font-size: 12.5px; }

.dashboard-stack .stat-card { padding: 15px 16px; min-height: 0; }
.dashboard-stack .stat-number { margin-top: 6px; font-size: 30px; }
.dashboard-stack .stat-note { margin-top: 4px; font-size: 11.5px; }
.dashboard-stack .progress-line { margin-top: 9px; height: 7px; }

.dashboard-stack .quick-card { padding: 14px 15px; min-height: 0; }
.dashboard-stack .quick-icon { width: 36px; height: 36px; margin-bottom: 9px; }
.dashboard-stack .quick-icon .ic { width: 19px; height: 19px; }
.dashboard-stack .quick-title { font-size: 15px; }
.dashboard-stack .quick-note { margin-top: 5px; font-size: 12px; line-height: 1.55; }

/* ---------- 首页刷题排行榜（并列同名次；前三名金/银/铜徽章，自己所在行浅青底） ---------- */
.leaderboard-card {
  padding: 18px 20px 16px;
  background-image: radial-gradient(320px 180px at 100% 0%, var(--hero-tint2), transparent 70%);
}
.lb-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lb-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; font-weight: 850; color: var(--ink); }
.lb-title .ic { width: 19px; height: 19px; color: var(--gold-deep); }
.lb-sub { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.lb-total { flex: none; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 800; color: var(--uranus-deep); background: var(--uranus-soft); border: 1px solid var(--uranus-line); white-space: nowrap; }
.lb-me { margin-top: 12px; border-radius: 14px; padding: 10px 14px; font-size: 13px; font-weight: 750; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.lb-me.is-ranked { background: linear-gradient(120deg, var(--uranus-soft), rgba(31, 154, 214, .09)); border: 1px solid var(--uranus-line); color: var(--uranus-deep); }
.lb-me-rank { font-size: 15px; font-weight: 900; }
.lb-me-meta { color: var(--ink-soft); font-size: 12.5px; font-weight: 650; }
.lb-me.is-empty, .lb-me--plain { background: var(--panel-muted); border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 700; }
.lb-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.leaderboard-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; border: 1px solid transparent; }
.leaderboard-row:nth-child(even) { background: #f8fbfd; }
.leaderboard-row.is-me { background: #eefaf8; border-color: var(--uranus-line); }
.lb-rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 900; color: #5b6879; background: #eef3f8; border: 1px solid var(--line); }
.lb-rank.r1 { color: #7a4c00; background: linear-gradient(135deg, #fff3c4, #f5c542 58%, #d99a1b); border-color: #edc967; box-shadow: 0 2px 8px rgba(233, 180, 60, .4), inset 0 -2px 0 rgba(122, 76, 0, .16); }
.lb-rank.r2 { color: #44546a; background: linear-gradient(135deg, #f6f9fc, #ccd8e6 58%, #9fb0c6); border-color: #c2cedd; box-shadow: 0 2px 8px rgba(148, 165, 187, .35), inset 0 -2px 0 rgba(68, 84, 106, .12); }
.lb-rank.r3 { color: #6d3c17; background: linear-gradient(135deg, #ffe8d2, #e2a06a 58%, #c07a41); border-color: #e0b58a; box-shadow: 0 2px 8px rgba(190, 124, 63, .32), inset 0 -2px 0 rgba(109, 60, 23, .14); }
.lb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 800; color: var(--ink); }
.leaderboard-row.is-me .lb-name { color: var(--uranus-deep); }
.lb-done { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; }
.lb-today { margin-left: 8px; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 850; color: var(--green-deep); background: var(--green-soft); }
.lb-empty { margin-top: 12px; border-radius: 14px; padding: 12px 14px; background: var(--panel-muted); border: 1px dashed var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 700; }
.lb-more { margin-top: 12px; width: 100%; }

/* 首页小屏：语录与倒计时各占一行、统计三格一行、快捷入口四格一行，一屏看完 */
@media (max-width: 760px) {
  .dashboard-stack .card-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .dashboard-stack .card-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .dashboard-stack .quick-card { padding: 11px 4px; text-align: center; }
  .dashboard-stack .quick-icon { width: 30px; height: 30px; margin: 0 auto 6px; }
  .dashboard-stack .quick-icon .ic { width: 16px; height: 16px; }
  .dashboard-stack .quick-title { font-size: 12px; }
}

.daily-controls { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.daily-list { margin-top: 18px; display: grid; gap: 11px; }
.daily-row {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 13px;
  border: 1px solid var(--line); background: #ffffff; transition: border-color .18s ease;
}
.daily-row:hover { border-color: var(--uranus-line); }
.daily-row .row-main { flex: 1; min-width: 0; }
.daily-row .row-title { font-weight: 760; line-height: 1.55; }
.daily-row .row-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.daily-check { color: var(--green); display: grid; place-items: center; filter: drop-shadow(0 0 5px rgba(15, 157, 99, .35)); }
/* 点「开始回忆」后滚动定位到的题目详情：一圈光晕提示“已经跳到这里” */
.recite-focus { animation: reciteFocusPulse .9s ease-out 1; }
@keyframes reciteFocusPulse {
  from { box-shadow: 0 0 0 0 rgba(18, 163, 150, .38); }
  to { box-shadow: 0 0 0 14px rgba(18, 163, 150, 0); }
}

.empty-card, .loading-card { padding: 42px 22px; text-align: center; color: var(--muted); line-height: 1.8; }
.empty-card .btn { margin-top: 14px; }
.spinner {
  width: 20px; height: 20px; border: 3px solid rgba(18, 163, 150, .22); border-top-color: var(--uranus);
  display: inline-block; border-radius: 50%; vertical-align: -5px; margin-right: 8px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none;
  padding: 11px 18px; border-radius: 999px; color: #f2f8fc; font-size: 13px; z-index: 60;
  background: rgba(16, 32, 47, .95); border: 1px solid rgba(16, 32, 47, .95);
  box-shadow: 0 14px 32px rgba(15, 40, 70, .26);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.bottom-nav { display: none; }

/* ---------- 侧栏账号 ---------- */
.account-card {
  margin: 0 4px; padding: 14px; border-radius: 14px;
  background: #f7fafd; border: 1px solid var(--line);
}
.account-name { font-weight: 800; }
.account-meta { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.6; }
.sync-line { margin-top: 9px; font-size: 12px; color: var(--green-deep); }
.sync-line.warn { color: var(--orange-deep); }
.device-list { display: grid; gap: 6px; margin-top: 8px; }
.device-row {
  display: flex; justify-content: space-between; gap: 8px; padding: 7px 9px; font-size: 12px;
  border: 1px solid var(--line); border-radius: 9px; background: #ffffff;
}
.device-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-input { padding: 8px 10px; font-size: 13px; max-width: 180px; }
#admin-name-input { max-width: 130px; }
.name-edit-btn { white-space: nowrap; }

/* ---------- 登录 / 改密 ---------- */
.login-wrap { display: flex; justify-content: center; padding: 20px 0 60px; animation: twxFadeUp .5s ease both; }
.login-card {
  width: 100%; max-width: 440px; padding: 30px 26px 26px; border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(15, 40, 70, .13);
  position: relative; overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; left: -30%; top: -60%; width: 160%; height: 120%;
  background: radial-gradient(closest-side, rgba(18, 163, 150, .10), transparent 70%);
  pointer-events: none;
}
.login-logo { display: block; width: 190px; max-width: 66%; margin: 2px auto 12px; position: relative; }
.login-brand {
  display: flex; align-items: center; justify-content: center; gap: 9px; position: relative;
  font-size: 19px; font-weight: 850; letter-spacing: .02em; color: var(--ink);
}
.login-brand .ic { color: var(--uranus); }
.login-tip { color: var(--muted); font-size: 13px; line-height: 1.8; margin: 12px 0 20px; position: relative; text-align: center; }
.field { margin-bottom: 15px; position: relative; }
.login-submit { width: 100%; margin-top: 6px; padding: 13px; font-size: 15px; }
.form-error {
  background: var(--red-soft); border: 1px solid var(--red-line); color: var(--red-deep);
  border-radius: 11px; padding: 10px 12px; font-size: 13px; margin-bottom: 14px; line-height: 1.65;
}
.form-ok {
  background: var(--green-soft); border: 1px solid var(--green-line); color: var(--green-deep);
  border-radius: 11px; padding: 10px 12px; font-size: 13px; margin-top: 14px; line-height: 1.65;
}

/* ---------- 管理端 ---------- */
.table-wrap { overflow-x: auto; margin-top: 16px; border-radius: 12px; border: 1px solid var(--line); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .1em;
  padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #f4f8fc;
}
.admin-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--ink-soft); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #f6fbfa; }
.admin-table input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--uranus); }
.pick-col, .pick-cell { width: 34px; text-align: center; padding-right: 0; }
.bulk-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding: 9px 12px;
  border: 1px dashed var(--line-strong); border-radius: 11px; background: #f7fafd;
}
.bulk-info { font-size: 13px; font-weight: 600; }
.created-list { display: grid; gap: 8px; margin-top: 10px; }
.created-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border-radius: 11px;
  border: 1px dashed var(--uranus-line); background: rgba(18, 163, 150, .05);
}
.pwd { color: var(--uranus-deep); font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.pwd-cell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.login-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.login-sub { color: var(--muted); font-size: 12px; margin-top: 3px; }
.detail-row td { background: #f7fafd; padding: 8px 12px 16px; }
.session-head { font-size: 12px; font-weight: 800; color: var(--muted); padding: 6px 0 8px; letter-spacing: .1em; }
.session-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.session-table th {
  text-align: left; color: var(--muted); font-weight: 750; padding: 6px 8px;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.session-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.session-table tr:last-child td { border-bottom: 0; }
code {
  background: rgba(18, 163, 150, .10); border: 1px solid var(--uranus-line); border-radius: 6px;
  padding: 2px 6px; font-size: 12px; color: var(--uranus-deep);
}

/* ---------- 安全提示 / 设备与审批 ---------- */
.notice-banner {
  background: #fffaef; border: 1px solid var(--gold-line); color: #6d5210;
  border-radius: 14px; padding: 13px 16px; font-size: 13px; line-height: 1.75; margin-bottom: 16px;
}
.notice-banner strong { color: var(--gold-deep); display: inline-flex; align-items: center; gap: 7px; }
.notice-banner p { margin: 7px 0 0; }
.notice-banner b { color: #7a5a12; }
.risk-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.request-banner {
  display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; margin-top: 12px; padding: 11px 14px;
  background: var(--orange-soft); border: 1px dashed var(--orange-line); color: var(--orange-deep);
  border-radius: 12px; font-size: 13px; font-weight: 750;
}
.request-banner:hover { background: rgba(217, 130, 10, .18); }
.request-list { display: grid; gap: 10px; }
.request-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #ffffff;
}
.security-panel { font-size: 13px; }
.security-panel .account-input { max-width: 200px; }
.security-panel label.muted { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 内联图标 ---------- */
.ic { width: 18px; height: 18px; flex: 0 0 auto; display: inline-block; vertical-align: -3px; }
.btn .ic, .tab .ic, .chip .ic { vertical-align: 0; }
.side-icon .ic { width: 20px; height: 20px; }
.icon-button .ic { width: 20px; height: 20px; }
.quick-icon .ic { width: 22px; height: 22px; }
.search-box .ic { width: 17px; height: 17px; }
.item-number .ic { width: 16px; height: 16px; }
.btn.small .ic { width: 15px; height: 15px; }
.empty-card .ic, .daily-check .ic { width: 22px; height: 22px; }

/* ---------- 动效 ---------- */
@keyframes twxFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes twxSpin { to { transform: rotate(360deg); } }
@keyframes twxDrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #eef3f8; }
::-webkit-scrollbar-thumb { background: rgba(18, 163, 150, .26); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(18, 163, 150, .42); background-clip: padding-box; }

@media (max-width: 1050px) {
  .sidebar { width: 226px; flex-basis: 226px; }
  .content { padding-left: 24px; padding-right: 24px; }
  .card-grid.three, .card-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-art { width: 260px; height: 260px; right: -70px; top: -50px; }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-104%);
    transition: transform .24s ease; box-shadow: 20px 0 60px rgba(15, 40, 70, .18);
  }
  .sidebar.open { transform: translateX(0); }
  .mobile-header {
    display: flex; position: sticky; top: 0; z-index: 12; height: 58px; align-items: center;
    justify-content: space-between; padding: 0 13px; gap: 10px;
    background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px);
  }
  .mobile-title { font-size: 15px; font-weight: 820; letter-spacing: -.01em; }
  .content { padding: 22px 15px 96px; }
  .site-footer { padding: 0 15px calc(82px + env(safe-area-inset-bottom)); }
  .sticky-bar { top: 58px; margin-bottom: 12px; padding: 6px 0; }
  .review-tabs { width: 100%; padding: 4px; gap: 5px; }
  .review-tabs .tab { flex: 1 1 0; min-width: 0; padding: 7px 2px; font-size: 12px; }
  .review-tabs .tab .tiny { font-size: 10.5px; }
  .notes-search-panel { padding: 10px 12px; }
  .notes-tabs .tab { flex: 1 1 0; min-width: 0; justify-content: center; padding: 8px 4px; font-size: 13px; }
  .pub-reply-form { flex-direction: column; align-items: stretch; }
  .pub-note-ops { margin-left: 0; }
  .pub-note-card { padding: 13px 14px; }
  .practice-filter { padding: 10px 12px; gap: 8px; }
  .practice-controls { gap: 6px; }
  .picker-card { padding: 12px 12px 10px; }
  .picker-option { padding: 7px 9px; font-size: 12.5px; }
  .page-title { font-size: 27px; }
  .head-row { display: block; }
  .head-actions { margin-top: 15px; }
  .card-grid, .card-grid.three, .card-grid.four { grid-template-columns: 1fr; }
  .subject-layout { display: block; }
  .chapter-panel { position: static; display: flex; gap: 8px; overflow-x: auto; padding: 7px; margin-bottom: 17px; }
  .chapter-button { min-width: 196px; }
  .item-head { gap: 9px; }
  .item-actions { margin-left: 0; }
  .item-body, .answer-box, .option-list, .choice-feedback, .qstat-row, .note-box, .note-actions, .note-preview, .note-text { margin-left: 0; }
  .question-card { padding: 15px; }
  .daily-controls { align-items: stretch; }
  .daily-controls > * { flex: 1; min-width: 120px; }
  .hero-banner { padding: 22px 18px; }
  .hero-banner h2 { font-size: 20px; }
  .hero-art { width: 210px; height: 210px; right: -80px; top: -26px; opacity: .5; }
  .hero-art .hero-planet { display: none; }
  .card-grid.two { grid-template-columns: 1fr; }
  .countdown-card { padding: 18px 18px 16px; }
  .cd-days { font-size: 54px; }
  /* 首页紧凑模式（手机）：页头瘦身、卡片留白再收一档，一屏看完 */
  .page-head--compact { margin-bottom: 10px; }
  .page-head--compact .page-kicker { margin-bottom: 6px; font-size: 11px; letter-spacing: .18em; }
  .page-head--compact .page-title { font-size: 21px; }
  .page-head--compact .page-subtitle { margin-top: 6px; font-size: 12.5px; line-height: 1.55; }

  .dashboard-stack { gap: 10px; }
  .dashboard-stack .hero-banner { padding: 16px 15px; }
  .dashboard-stack .hero-banner h2 { font-size: 17.5px; }
  .dashboard-stack .hero-banner p { margin-top: 6px; font-size: 12.5px; line-height: 1.55; }
  .dashboard-stack .hero-actions { margin-top: 12px; gap: 6px; }
  .dashboard-stack .hero-actions .btn { flex-direction: column; gap: 3px; padding: 7px 3px; font-size: 11.5px; border-radius: 10px; }
  .dashboard-stack .hero-actions .btn .ic { width: 18px; height: 18px; }

  .dashboard-stack .countdown-card { padding: 13px 15px 12px; }
  .dashboard-stack .cd-head { gap: 8px; }
  .dashboard-stack .cd-kicker { font-size: 11px; letter-spacing: .06em; }
  .dashboard-stack .cd-stage { padding: 3px 9px; font-size: 11px; }
  .dashboard-stack .cd-row { margin-top: 6px; gap: 12px; }
  .dashboard-stack .cd-days { font-size: 40px; }
  .dashboard-stack .cd-unit { font-size: 14px; }
  .dashboard-stack .cd-title { font-size: 13.5px; }
  .dashboard-stack .cd-bar { margin-top: 7px; height: 7px; }

  .dashboard-stack .quote-strip { padding: 12px 15px 12px 19px; gap: 10px; }
  .dashboard-stack .quote-mark { font-size: 28px; }
  .dashboard-stack .quote-text { font-size: 15px; line-height: 1.5; }
  .dashboard-stack .quote-from { margin-top: 3px; font-size: 12px; }
  .dashboard-stack .hero-glyph { display: none; }

  .dashboard-stack .stat-card { padding: 13px 14px; }
  .dashboard-stack .stat-label { font-size: 11.5px; }
  .dashboard-stack .stat-number { margin-top: 4px; font-size: 26px; }
  .dashboard-stack .stat-note { margin-top: 3px; font-size: 11px; }
  .dashboard-stack .progress-line { margin-top: 7px; height: 6px; }

  .dashboard-stack .leaderboard-card { padding: 14px 13px 12px; }
  .dashboard-stack .lb-title { font-size: 15.5px; }
  .dashboard-stack .lb-total { padding: 3px 9px; font-size: 11px; }
  .dashboard-stack .leaderboard-row { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; padding: 6px 8px; }
  .dashboard-stack .lb-rank { width: 26px; height: 26px; font-size: 12px; }
  .dashboard-stack .lb-name { font-size: 13px; }
  .dashboard-stack .lb-done { font-size: 11.5px; }
  .dashboard-stack .lb-today { margin-left: 5px; padding: 2px 7px; font-size: 10.5px; }

  .login-card { padding: 24px 18px; }
  .admin-table { font-size: 12px; }
  .request-row { align-items: flex-start; }
  .treehole-ticket { padding: 14px; }
  .treehole-head > .btn { margin-left: 0; }
  .treehole-actions > .btn { margin-left: 0; width: 100%; }
  .treehole-caption { justify-content: center; text-align: center; }
  .treehole-modal { padding: 12px; }
  .treehole-modal-card { padding: 18px; }
  .treehole-modal-buttons { width: 100%; }
  .treehole-modal-buttons > .btn { flex: 1; }
  .security-panel .pill-row .account-input { max-width: 100%; flex: 1 1 150px; }
  .bottom-nav {
    position: fixed; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; bottom: 0; left: 0; right: 0;
    height: 66px; padding-bottom: env(safe-area-inset-bottom); z-index: 15;
    background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line); backdrop-filter: blur(16px);
  }
  .bottom-link {
    border: 0; background: transparent; color: var(--muted); font-size: 10px;
    display: grid; place-items: center; gap: 3px; padding: 7px 2px; position: relative;
  }
  .bottom-link .ic { width: 21px; height: 21px; }
  .bottom-link.active { color: var(--uranus-deep); font-weight: 800; }
  .bottom-link.active::before {
    content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 26px; height: 2px; border-radius: 0 0 3px 3px; background: var(--uranus);
    box-shadow: 0 0 10px rgba(18, 163, 150, .6);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
