/* =========================================================
   GTMD · 考研自习室 —— 全局样式系统（简洁风）
   ========================================================= */

:root {
  /* 色彩 */
  --bg: #f6f7f9;
  --bg-soft: #f0f1f4;
  --card: #ffffff;
  --border: #e7e9ee;
  --border-strong: #d6d9e0;

  --text: #1b1d23;
  --text-2: #5c6170;
  --text-3: #8a8f9c;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-border: #d7d9ff;

  --green: #16a34a;
  --green-soft: #e9f9ef;
  --red: #dc2626;
  --red-soft: #fdecec;
  --amber: #d97706;
  --amber-soft: #fdf3e3;
  --blue: #2563eb;
  --blue-soft: #eaf1fe;

  /* 尺寸 */
  --sidebar-w: 236px;
  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 30, 0.05);
  --shadow: 0 2px 10px rgba(20, 22, 30, 0.06);
  --shadow-lg: 0 12px 32px rgba(20, 22, 30, 0.10);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;
}

[data-theme="dark"] {
  --bg: #111318;
  --bg-soft: #171a21;
  --card: #1b1e26;
  --border: #272b35;
  --border-strong: #343945;

  --text: #e8eaf0;
  --text-2: #a6abb8;
  --text-3: #737a89;

  --accent: #818cf8;
  --accent-hover: #6d78f5;
  --accent-soft: #232844;
  --accent-border: #33395c;

  --green: #34d399;
  --green-soft: #14271f;
  --red: #f87171;
  --red-soft: #2b1b1c;
  --amber: #fbbf24;
  --amber-soft: #292114;
  --blue: #60a5fa;
  --blue-soft: #182338;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
::selection { background: var(--accent-soft); }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.brand-logo {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
  flex-shrink: 0;
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: .5px; }
.brand-sub { font-size: 11px; color: var(--text-3); }

.countdown-mini {
  margin: 0 4px 16px;
  padding: 12px 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  text-align: center;
}
.countdown-mini .num {
  font-size: 26px; font-weight: 800; color: var(--accent);
  line-height: 1.1;
}
.countdown-mini .lbl { font-size: 11px; color: var(--text-2); margin-top: 2px; }

.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-group-label {
  font-size: 11px; color: var(--text-3);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 10px 8px 4px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  transition: background .15s, color .15s;
  position: relative;
}
.nav-item:hover { background: var(--bg-soft); color: var(--text); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .badge {
  margin-left: auto;
  font-size: 11px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 99px;
  padding: 1px 7px;
  font-weight: 600;
}

.sidebar-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent-border); }
.streak-mini { font-size: 12px; color: var(--text-2); }
.streak-mini b { color: var(--amber); }

/* ---------- 主内容区 ---------- */
.main {
  flex: 1;
  min-width: 0;
  padding: 28px 34px 60px;
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

.page-head { margin-bottom: 24px; }
.page-title {
  font-size: 24px; font-weight: 800; margin: 0 0 4px;
  letter-spacing: .3px;
}
.page-desc { color: var(--text-2); font-size: 14px; margin: 0; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 16px; }
.card-title {
  font-size: 16px; font-weight: 700; margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.card-title .hint { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: auto; }

/* ---------- 网格 ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 统计卡片 ---------- */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card .k { font-size: 13px; color: var(--text-2); }
.stat-card .v { font-size: 28px; font-weight: 800; letter-spacing: .3px; }
.stat-card .v small { font-size: 14px; font-weight: 600; color: var(--text-3); }
.stat-card .s { font-size: 12px; color: var(--text-3); }
.stat-card.accent { border-color: var(--accent-border); background: var(--accent-soft); }
.stat-card.accent .v { color: var(--accent); }
.stat-card.green { border-color: #bfe7cd; background: var(--green-soft); }
.stat-card.green .v { color: var(--green); }
.stat-card.amber { border-color: #f0ddb8; background: var(--amber-soft); }
.stat-card.amber .v { color: var(--amber); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 14px; font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.btn.primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { color: var(--text); background: var(--bg-soft); }
.btn.danger { background: var(--red-soft); color: var(--red); border-color: transparent; }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- 徽章 / 标签 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 99px;
  background: var(--bg-soft); color: var(--text-2);
}
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }

.tag {
  display: inline-block; font-size: 12px; color: var(--text-2);
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 6px; margin: 0 4px 4px 0;
}

/* ---------- 进度条 ---------- */
.progress { height: 8px; background: var(--bg-soft); border-radius: 99px; overflow: hidden; }
.progress > span {
  display: block; height: 100%; border-radius: 99px;
  background: var(--accent); transition: width .4s ease;
}
.progress.green > span { background: var(--green); }
.progress.amber > span { background: var(--amber); }

/* ---------- 科目主题色 ---------- */
.subject-politics { --c: #b45309; --cs: #fdf3e3; --cb: #eeddb9; }
.subject-english { --c: #2563eb; --cs: #eaf1fe; --cb: #c9dcfd; }
.subject-math    { --c: #16a34a; --cs: #e9f9ef; --cb: #bfe7cd; }
.subject-cs408   { --c: #7c3aed; --cs: #f3eeff; --cb: #ddd0fa; }
[data-theme="dark"] .subject-politics { --cs: #2a2114; --cb: #4a3b1f; }
[data-theme="dark"] .subject-english { --cs: #182338; --cb: #2a3d63; }
[data-theme="dark"] .subject-math    { --cs: #14271f; --cb: #1f4630; }
[data-theme="dark"] .subject-cs408   { --cs: #221c3d; --cb: #3b3168; }

.subject-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--cs); color: var(--c);
  border: 1px solid var(--cb);
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 99px;
}
.subject-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

/* ---------- 手风琴 / 折叠 ---------- */
.accordion { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.accordion + .accordion { margin-top: 10px; }
.accordion-head {
  width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: none; border: none;
  text-align: left; font-size: 14px; font-weight: 600; color: var(--text);
}
.accordion-head:hover { background: var(--bg-soft); }
.accordion-head .arrow { margin-left: auto; transition: transform .2s; color: var(--text-3); }
.accordion.open .accordion-head .arrow { transform: rotate(180deg); }
.accordion-body { display: none; padding: 2px 16px 16px; border-top: 1px solid var(--border); }
.accordion.open .accordion-body { display: block; }

/* ---------- 清单 / 勾选 ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 8px; border-radius: var(--radius-sm);
  cursor: pointer; transition: background .12s;
}
.check-item:hover { background: var(--bg-soft); }
.check-item input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }
.check-item .txt { flex: 1; }
.check-item.done .txt { color: var(--text-3); text-decoration: line-through; }

/* ---------- 表格 ---------- */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { color: var(--text-3); font-weight: 600; font-size: 12px; letter-spacing: .3px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-soft); }

/* ---------- 代码块 ---------- */
code.inline {
  font-family: var(--mono); font-size: .92em;
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px;
}
pre {
  background: #0f1116; color: #e6e9ef; border-radius: var(--radius-sm);
  padding: 14px 16px; overflow-x: auto; font-size: 13.5px; line-height: 1.6;
  font-family: var(--mono);
}
[data-theme="dark"] pre { background: #0b0d12; border: 1px solid var(--border); }

/* ---------- 公式 / 高亮 ---------- */
.formula {
  font-family: var(--mono); background: var(--bg-soft);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; margin: 8px 0; font-size: 14.5px; line-height: 1.7;
  overflow-x: auto;
}
.key { color: var(--accent); font-weight: 700; }

/* ---------- 提示框 ---------- */
.callout {
  border-radius: var(--radius-sm); padding: 12px 14px;
  border: 1px solid var(--border); background: var(--bg-soft);
  font-size: 14px; margin: 12px 0;
}
.callout.tip { border-color: var(--accent-border); background: var(--accent-soft); }
.callout.warn { border-color: #f0ddb8; background: var(--amber-soft); }
.callout.danger { border-color: #f3c5c5; background: var(--red-soft); }
.callout .ttl { font-weight: 700; display: block; margin-bottom: 2px; }

/* ---------- 番茄钟 ---------- */
.timer-ring {
  position: relative; width: 200px; height: 200px; margin: 0 auto;
}
.timer-ring svg { transform: rotate(-90deg); }
.timer-ring .circle-bg { fill: none; stroke: var(--bg-soft); stroke-width: 10; }
.timer-ring .circle-fg {
  fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round;
  transition: stroke-dashoffset .5s linear;
}
.timer-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.timer-time { font-size: 42px; font-weight: 800; font-family: var(--mono); letter-spacing: 1px; }
.timer-mode { font-size: 12px; color: var(--text-2); }

/* ---------- 刷题 ---------- */
.quiz-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.quiz-question { font-size: 16px; line-height: 1.8; margin: 6px 0 16px; }
.quiz-option {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 8px; cursor: pointer; transition: all .12s;
}
.quiz-option:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.quiz-option .opt-key {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 6px;
  background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.quiz-option.selected { border-color: var(--accent); background: var(--accent-soft); }
.quiz-option.selected .opt-key { background: var(--accent); color: #fff; border-color: var(--accent); }
.quiz-option.correct { border-color: var(--green); background: var(--green-soft); }
.quiz-option.correct .opt-key { background: var(--green); color: #fff; border-color: var(--green); }
.quiz-option.wrong { border-color: var(--red); background: var(--red-soft); }
.quiz-option.wrong .opt-key { background: var(--red); color: #fff; border-color: var(--red); }

.explain-box {
  border: 1px solid var(--accent-border); background: var(--accent-soft);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 14px;
  font-size: 14px; line-height: 1.75;
}
.explain-box .ttl { font-weight: 700; color: var(--accent); margin-bottom: 4px; }

/* ---------- 词汇卡 ---------- */
.word-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; background: var(--card); text-align: center; min-height: 180px;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.word-card .w { font-size: 26px; font-weight: 800; }
.word-card .p { color: var(--text-3); font-size: 14px; font-family: var(--mono); }
.word-card .m { color: var(--text-2); font-size: 15px; }
.word-card .hide .m, .word-card .hide .p { visibility: hidden; }

/* ---------- 闪卡 ---------- */
.flash { perspective: 1000px; cursor: pointer; min-height: 240px; }
.flash-inner { position: relative; width: 100%; height: 100%; min-height: 240px; transition: transform .5s; transform-style: preserve-3d; }
.flash.flipped .flash-inner { transform: rotateY(180deg); }
.flash-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px; gap: 8px;
}
.flash-back { transform: rotateY(180deg); }
.flash-hint { position: absolute; bottom: 14px; font-size: 12px; color: var(--text-3); }

/* ---------- 模态框 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 17, 22, .5);
  display: none; align-items: center; justify-content: center; z-index: 100;
  padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
  background: var(--card); border-radius: var(--radius-lg);
  max-width: 520px; width: 100%; padding: 24px;
  box-shadow: var(--shadow-lg); max-height: 88vh; overflow-y: auto;
}
.modal h3 { margin: 0 0 12px; font-size: 18px; }
.modal .field { margin-bottom: 14px; }
.modal .field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 600; }
.modal input, .modal select, .modal textarea {
  width: 100%; padding: 9px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 14px;
}
.modal input:focus, .modal select:focus, .modal textarea:focus {
  outline: none; border-color: var(--accent);
}
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

/* ---------- 时间轴 ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.timeline li { position: relative; padding-left: 26px; margin-bottom: 16px; }
.timeline li::before {
  content: ""; position: absolute; left: 2px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--accent);
}
.timeline li.done::before { background: var(--green); border-color: var(--green); }
.timeline .t-d { font-weight: 700; font-size: 14px; }
.timeline .t-b { color: var(--text-2); font-size: 13px; }

/* ---------- 月历 ---------- */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.cal-title { flex: 1; font-size: 15px; font-weight: 700; letter-spacing: .3px; }
.cal-nav, .cal-today {
  border: 1px solid var(--border); background: var(--card); color: var(--text-2);
  border-radius: 8px; transition: all .15s; flex-shrink: 0;
}
.cal-nav { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.cal-nav svg { width: 15px; height: 15px; }
.cal-nav:hover, .cal-today:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-soft); }
.cal-today { font-size: 12px; font-weight: 600; padding: 5px 12px; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-week { margin-bottom: 6px; }
.cal-week span { text-align: center; font-size: 11px; font-weight: 600; color: var(--text-3); padding: 2px 0; }
.cal-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 46px; border-radius: 10px; gap: 3px; cursor: pointer;
  border: 1px solid transparent; transition: background .12s, border-color .12s;
}
.cal-cell:hover { background: var(--bg-soft); }
.cal-cell .num { font-size: 13px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.cal-cell .dot { width: 5px; height: 5px; border-radius: 50%; }
.cal-cell .dot.done { background: var(--green); }
.cal-cell .dot.partial { background: var(--amber); }
.cal-cell .dot.overdue { background: var(--red); }
.cal-cell.sel .dot { background: #fff; }
.cal-cell.today { border-color: var(--accent); }
.cal-cell.today .num { color: var(--accent); font-weight: 800; }
.cal-cell.sel { background: var(--accent); border-color: var(--accent); }
.cal-cell.sel .num { color: #fff; font-weight: 700; }
.cal-cell.blank, .cal-cell.out { background: transparent; cursor: default; }
.cal-cell.blank:hover, .cal-cell.out:hover { background: transparent; }
.cal-cell.out .num { color: var(--text-3); font-weight: 400; }
.cal-cell.disabled { opacity: .4; cursor: not-allowed; }
.cal-cell.disabled:hover { background: transparent; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--text-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.cal-legend .sw.ring { background: transparent; border: 1.5px solid var(--accent); }

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%; height: auto; position: static; flex-direction: row;
    align-items: center; padding: 10px 12px; gap: 8px; overflow-x: auto;
  }
  .brand { border-bottom: none; margin: 0; padding: 0; }
  .countdown-mini { display: none; }
  .nav { flex-direction: row; }
  .nav-group-label { display: none; }
  .nav-item { padding: 7px 9px; font-size: 13px; }
  .sidebar-foot { border-top: none; padding: 0; margin: 0 0 0 auto; }
  .main { padding: 20px 16px 48px; }
  .page-title { font-size: 21px; }
}

/* ---------- 知识内容块 ---------- */
.kb-text { line-height: 1.75; }
.kb-list { margin: 8px 0; padding-left: 20px; }
.kb-list li { margin: 5px 0; line-height: 1.7; }
.kb-sub {
  margin: 12px 0; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-soft);
}
.kb-sub-t { font-weight: 700; margin-bottom: 6px; color: var(--text); }

/* ---------- 工具类 ---------- */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.center { text-align: center; }
.muted { color: var(--text-2); } .faint { color: var(--text-3); }
.small { font-size: 13px; } .tiny { font-size: 12px; }
.bold { font-weight: 700; }
.hidden { display: none !important; }
.grow { flex: 1; }
