/* ============================================================
   英语学习中心 · 暖纸墨设计系统（参照「英语阅读室」风格）
   米纸底、墨色正文、青绿主色、赭金点缀；英文用衬线字
   目标设备：讯飞 T10（933×908 触控）优先；≥1100px 桌面展开
   ============================================================ */
:root {
  --bg: #FBF8F3;
  --surface: #FFFDF9;
  --surface-2: #F6F0E4;
  --border: #E8E0D4;
  --border-strong: #D8CDBC;
  --fg: #2A2724;
  --fg-2: #6F675F;
  --fg-3: #9C9184;
  --accent: #2F6B63;
  --accent-deep: #23504A;
  --accent-soft: #E7F0ED;
  --ok: #2F6B63;
  --ok-soft: #E7F0ED;
  --warn: #A5751B;
  --warn-soft: #F8EDD6;
  --bad: #A8552F;
  --bad-soft: #F6E7DC;
  --blue: #465A8E;
  --blue-soft: #E9EDF6;
  --deep: #23504A;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(42,39,36,.05);
  --shadow-lg: 0 4px 10px rgba(42,39,36,.07), 0 16px 40px rgba(42,39,36,.1);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Segoe UI", Roboto, "Microsoft YaHei", sans-serif;
  --font-en: "Iowan Old Style", "Palatino", "Palatino Linotype", Georgia, serif;
  --font-serif: "Iowan Old Style", "Palatino", "Palatino Linotype", Georgia, serif;
  --side-w: 68px;
}
@media (min-width: 1100px) { :root { --side-w: 208px; } }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

/* ---------- 布局骨架 ---------- */
#app { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: var(--side-w); flex: 0 0 var(--side-w); background: var(--surface);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  padding: 14px 10px; gap: 4px; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; min-height: 48px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px;
  background: var(--surface); border: 1.5px solid var(--fg);
  color: var(--fg); font: 600 21px/38px var(--font-en); text-align: center;
}
.brand-name { font-weight: 700; font-size: 15px; display: none; line-height: 1.2; }
.brand-name small { display: block; font-weight: 400; font-size: 11.5px; color: var(--fg-3); }
@media (min-width: 1100px) { .brand-name { display: block; } }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px; min-height: 46px;
  padding: 0 12px; border: 0; background: transparent; border-radius: 10px;
  font-size: 15px; color: var(--fg-2); text-decoration: none; width: 100%;
  transition: background .15s, color .15s;
}
.nav-item .ni-ico { display: inline-flex; align-items: center; justify-content: center; font-size: 19px; width: 24px; flex: 0 0 24px; }
.nav-item > span:not(.ni-ico) { display: none; font-weight: 500; }
@media (min-width: 1100px) { .nav-item > span:not(.ni-ico) { display: block; } }
.nav-item:active { background: var(--accent-soft); }
.nav-item.on { background: var(--accent-soft); color: var(--accent-deep); }
.nav-item.on .ni-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: none; }
@media (min-width: 1100px) { .nav-item.on .ni-dot { display: block; } }
.nav-badge {
  margin-left: auto; background: var(--bad); color: #fff; border-radius: 9px;
  font-size: 11.5px; font-weight: 700; padding: 1px 7px; display: none;
}
@media (min-width: 1100px) { .nav-badge { display: block; } }
.sidebar-foot { border-top: 1px solid var(--border); padding-top: 8px; }
.side-extra {
  width: 100%; min-height: 44px; border: 0; background: transparent; border-radius: 10px;
  font-size: 15px; color: var(--fg-2); display: flex; align-items: center; gap: 12px; padding: 0 12px;
  text-decoration: none;
}
.side-extra span { display: none; }
@media (min-width: 1100px) { .side-extra span { display: block; } }

/* 侧栏姊妹网站：词汇 / 语法 / 听力 / 阅读 */
.side-sites { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; border-top: 1px solid var(--border); }
.side-sites-label { display: none; padding: 2px 12px 6px; color: var(--fg-3); font-size: 11px; font-weight: 600; letter-spacing: .08em; }
@media (min-width: 1100px) { .side-sites-label { display: block; } }
.side-sites .side-extra { min-height: 42px; font-size: 14px; }
.side-sites .side-extra .ico { width: 19px; height: 19px; }
.side-sites .side-extra:hover { background: var(--surface-2); color: var(--fg); }

.main { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.view { max-width: 860px; margin: 0 auto; padding: 26px 26px 60px; }
@media (max-width: 640px) { .view { padding: 18px 14px 48px; } }

/* 右侧词典抽屉：窄屏浮层，宽屏常驻 */
.ctx {
  width: 300px; flex: 0 0 300px; background: var(--surface);
  border-left: 1px solid var(--border); display: flex; flex-direction: column;
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; box-shadow: var(--shadow-lg);
}
@media (min-width: 1100px) {
  .ctx { position: static; box-shadow: none; }
}
.ctx-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 10px; font-weight: 700; font-size: 15px;
}
.ctx-body { padding: 0 16px 20px; overflow-y: auto; flex: 1; }
.dict-input {
  width: 100%; height: 44px; border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 0 14px; font-size: 15px; background: var(--surface-2); outline: none;
}
.dict-input:focus { border-color: var(--accent); }
.dict-empty { color: var(--fg-3); font-size: 13.5px; margin-top: 14px; }
.dict-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; margin-top: 10px; background: var(--surface-2); }
.dict-card .dw { font-weight: 700; font-size: 17px; font-family: var(--font-en); }
.dict-card .dp { color: var(--fg-3); font-size: 13px; margin: 2px 0 4px; }
.dict-card .dg { font-size: 14px; }
.dict-card .du { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--accent-deep); background: var(--accent-soft); border-radius: 6px; padding: 1px 8px; }

/* ---------- 图标与排版基础 ---------- */
.ico { width: 20px; height: 20px; vertical-align: -4px; flex: 0 0 auto; }
.ico.sm { width: 16px; height: 16px; vertical-align: -3px; }
.nav-item .ico { width: 21px; height: 21px; }
.icon-btn .ico { width: 18px; height: 18px; }
button .ico, .btn .ico { margin: 0; }

/* ---------- 通用组件 ---------- */
.page-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h h1 { font-size: 26px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.page-h .sub { color: var(--fg-3); font-size: 13px; }
.breadcrumb { font-size: 13px; color: var(--fg-3); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.breadcrumb a { color: var(--fg-3); text-decoration: none; }
.breadcrumb .ico { width: 13px; height: 13px; vertical-align: -2px; }
.bignum { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bignum small { font-size: 13px; font-weight: 400; color: var(--fg-3); margin-left: 2px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px 20px; margin-bottom: 16px;
}
.card h2 { font-size: 16.5px; margin: 0 0 10px; }
.card h3 { font-size: 15px; margin: 16px 0 8px; }
.muted { color: var(--fg-3); font-size: 13.5px; }
.btn {
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 15px; font-weight: 500; color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px; transition: all .15s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(47,107,99,.26); }
.btn.primary:active { background: var(--accent-deep); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--fg-2); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn.danger { color: var(--bad); border-color: #E5CBB8; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); font-size: 16px; display: inline-flex; align-items: center; justify-content: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
  border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 13.5px; color: var(--fg-2);
}
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-deep); font-weight: 600; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.pill { display: inline-block; font-size: 12px; border-radius: 6px; padding: 1px 8px; font-weight: 600; }
.pill.u { background: var(--accent-soft); color: var(--accent-deep); }
.pill.src { background: #F3EDE1; color: var(--fg-2); }
.pill.exam { background: var(--warn-soft); color: var(--warn); }
.badge-done { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 700; font-size: 13px; }

/* 掌握度点（5 级） */
.md { display: inline-flex; gap: 3px; align-items: center; }
.md i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); }
.md i.f { background: var(--dot, var(--accent)); }
.md[data-l="0"] { --dot: #CFC5B6; }
.md[data-l="1"] { --dot: #A5751B; }
.md[data-l="2"] { --dot: #465A8E; }
.md[data-l="3"] { --dot: #2F6B63; }
.md[data-l="4"] { --dot: #23504A; }
.md.weak::after { content: "!"; display: inline-grid; place-items: center; width: 14px; height: 14px; border: 1.4px solid var(--bad); border-radius: 50%; color: var(--bad); font: 700 10px/1 var(--font); margin-left: 4px; }
.md-label { font-size: 12px; color: var(--fg-3); margin-left: 6px; }

/* 进度环 */
.ring { --p: 0; --rc: var(--accent); width: 44px; height: 44px; border-radius: 50%;
  background: conic-gradient(var(--rc) calc(var(--p) * 1%), var(--border) 0);
  display: grid; place-items: center; flex: 0 0 44px; }
.ring b { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 11.5px; }

/* ---------- 今日页 ---------- */
.today-hero { display: flex; gap: 16px; align-items: stretch; flex-wrap: wrap; }
.today-main { flex: 2 1 380px; }
.today-side { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.stat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat3 .st { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; }
.stat3 .st b { font-size: 22px; display: block; }
.stat3 .st span { font-size: 12.5px; color: var(--fg-3); }
.comp-list { list-style: none; margin: 10px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.comp-list li { display: flex; justify-content: space-between; align-items: center; font-size: 14.5px; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }
.comp-list .cnt { font-weight: 700; color: var(--accent-deep); }

/* ---------- 学习 · 单元网格 ---------- */
.unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.unit-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s;
  display: flex; flex-direction: column; gap: 10px; text-align: left; font: inherit; color: inherit;
}
.unit-card.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.unit-card .cur-tag {
  font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); border-radius: 5px; padding: 1px 6px; vertical-align: 2px; margin-left: 4px;
}
.unit-card:active { transform: scale(.98); }
.unit-card .uh { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.unit-card .uno { font-size: 12px; color: var(--fg-3); font-weight: 600; letter-spacing: .06em; }
.unit-card .ut { font-size: 17px; font-weight: 700; font-family: var(--font-en); line-height: 1.25; }
.unit-card .uzh { font-size: 13px; color: var(--fg-2); }
.unit-card .umod { font-size: 11.5px; color: var(--fg-3); }
.unit-card .ufoot { display: flex; align-items: center; gap: 10px; margin-top: auto; }

/* ---------- 单元详情 tabs（下划线式） ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 18px; background: transparent; padding: 0; }
.tab { flex: 0 0 auto; min-height: 44px; padding: 0 14px 10px; border: 0; background: transparent; font-size: 14.5px; color: var(--fg-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.on { color: var(--accent-deep); border-bottom-color: var(--accent); font-weight: 600; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 12px; flex-wrap: wrap; }
.sec-head h2 { font-size: 19px; margin: 0; font-family: var(--font-en); }
.pgref { font-size: 12px; color: var(--fg-3); border: 1px solid var(--border); padding: 1px 8px; border-radius: 6px; }

/* 课文 */
.pass { margin: 0 0 18px; }
.pass .speaker { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pass .speaker .name { font-weight: 700; font-size: 13.5px; color: var(--accent-deep); }
.pass p.en { margin: 0 0 6px; font-size: 16.5px; line-height: 1.8; font-family: var(--font-en); }
.pass p.zh { margin: 0; color: var(--fg-2); font-size: 13.5px; }
.pass .spk { width: 34px; height: 34px; }
.wword { border-bottom: 1.5px dotted var(--accent); cursor: pointer; }
.keyline { background: linear-gradient(transparent 62%, rgba(246,231,200,.9) 62%); }
.dlg-line { display: flex; gap: 10px; margin: 4px 0; }
.dlg-line .who { flex: 0 0 74px; text-align: right; font-weight: 600; font-size: 13.5px; color: var(--accent-deep); }
.dlg-line .say { font-family: var(--font-en); font-size: 15.5px; }

/* 词表 */
.wl-row { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--border); }
.wl-row:last-child { border-bottom: 0; }
.wl-row .w { font-family: var(--font-en); font-weight: 700; font-size: 16.5px; flex: 1 1 auto; }
.wl-row .w small { display: block; font-weight: 400; font-size: 12px; color: var(--fg-3); }
.wl-row .g { flex: 2 1 200px; font-size: 14px; color: var(--fg-2); }
.wl-row .ipa { color: var(--fg-3); font-size: 13px; font-weight: 400; }
.wl-row .acts { display: flex; gap: 6px; align-items: center; }
.wl-row.is-sub .w { font-weight: 600; font-size: 14.5px; padding-left: 16px; }
.wl-row.is-sub .g { font-size: 13.5px; }

/* 语法要点 */
.gp-card { border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; margin: 10px 0; background: var(--surface-2); }
.gp-card .gpt { font-weight: 700; margin-bottom: 6px; }
.gp-card p { margin: 0 0 6px; font-size: 14.5px; }
.gtable { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 14px; }
.gtable th, .gtable td { border: 1px solid var(--border-strong); padding: 8px 10px; text-align: center; }
.gtable th { background: var(--accent-soft); font-weight: 600; }
.gtable td .blank { color: var(--accent-deep); font-weight: 700; }

/* 语音 */
.sound-group { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.sound-group .snd { font-family: var(--font-en); font-size: 19px; color: var(--accent-deep); font-weight: 700; flex: 0 0 72px; }
.sound-group .wrds { font-family: var(--font-en); font-size: 15.5px; letter-spacing: .02em; }

/* ---------- 图谱页 · 星系星图 ---------- */
.graph-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.graph-galaxy {
  position: relative; overflow: hidden; color: #dbe6ff;
  padding: 20px 22px 18px; border-radius: 22px;
  border: 1px solid rgba(138, 166, 255, .18);
  background:
    radial-gradient(120% 70% at 12% 0%, rgba(96, 112, 255, .20), transparent 56%),
    radial-gradient(90% 60% at 94% 100%, rgba(40, 200, 255, .13), transparent 60%),
    linear-gradient(165deg, #0e1834 0%, #0a1228 44%, #060a18 100%);
  box-shadow: 0 22px 54px rgba(17, 24, 54, .30), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.graph-galaxy::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .7) .6px, transparent 1px),
    radial-gradient(circle, rgba(170, 210, 255, .55) .5px, transparent 1px);
  background-size: 97px 83px, 151px 127px;
  background-position: 11px 23px, 47px 61px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 72%);
}
.gx-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 2px 2px 0; }
.gx-eyebrow { margin: 0 0 7px; font-size: 10px; font-weight: 700; letter-spacing: .26em; color: #7f93c4; }
.gx-head h1 {
  margin: 0; font-size: 30px; line-height: 1.16; font-weight: 600; letter-spacing: -.01em;
  color: #f3f7ff; text-shadow: 0 0 34px rgba(150, 190, 255, .28);
}
.gx-sub { margin: 8px 0 0; max-width: 570px; font-size: 13px; line-height: 1.7; color: #93a6cf; }
.gx-coord {
  flex: 0 0 auto; margin-top: 4px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid rgba(150, 185, 255, .22); background: rgba(255, 255, 255, .04);
  font-size: 10px; font-weight: 700; letter-spacing: .18em; color: #9fb6e8; white-space: nowrap;
}
.gx-coord::before {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%;
  background: #8fe8ff; box-shadow: 0 0 8px #5fd4ff; vertical-align: 1px;
}
.graph-galaxy .graph-toolbar { position: relative; margin: 15px 0 0; }
.graph-galaxy .chip {
  height: 32px; border-color: rgba(142, 176, 255, .22); background: rgba(255, 255, 255, .045);
  color: #aabde3; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.graph-galaxy .chip:hover { border-color: rgba(142, 200, 255, .45); color: #dfeaff; }
.graph-galaxy .chip.on {
  background: rgba(127, 231, 255, .14); border-color: rgba(127, 231, 255, .58); color: #e8fbff;
  box-shadow: 0 0 20px rgba(100, 215, 255, .16);
}

.km-head { position: relative; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 14px; }
.km-stats { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: baseline; padding: 12px 2px; }
.km-stat { display: flex; align-items: baseline; gap: 6px; }
.km-stat b { font-size: 24px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: #eaf1ff; text-shadow: 0 0 18px rgba(140, 180, 255, .22); }
.km-stat span { font-size: 12px; color: #8395bd; }
.km-stat-layers b { color: #d9c6ff; }
.km-stat-on b { color: #8fc6ff; }
.km-stat-done b { color: #7ef0da; }
.km-stat-weak b { color: #ff9ab8; }
.km-stat-faint b { color: #5f7097; }

.km-canvas {
  position: relative; height: clamp(540px, 64vh, 720px); overflow: hidden;
  border: 1px solid rgba(136, 166, 255, .16); border-radius: 16px;
  background: radial-gradient(125% 95% at 50% 0%, #16234f 0%, #0b1330 48%, #050814 100%);
  box-shadow: inset 0 0 90px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .05);
}
.km-canvas::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 92% at 50% 46%, transparent 54%, rgba(2, 5, 14, .55) 100%);
}
.km-sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sky-stars-a { animation: km-twinkle 7s ease-in-out infinite; }
.sky-stars-b { animation: km-twinkle 9.5s ease-in-out -2.4s infinite; }
.sky-stars-c { animation: km-twinkle 12s ease-in-out -5s infinite; }
.sky-sparks { animation: km-breathe 8s ease-in-out infinite; }
@keyframes km-twinkle { 0%, 100% { opacity: .78; } 50% { opacity: .36; } }
@keyframes km-breathe { 0%, 100% { opacity: .72; } 50% { opacity: 1; } }

#km-svg { position: relative; z-index: 2; display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
#km-svg:active { cursor: grabbing; }

.km-node { cursor: pointer; }
.km-hit { fill: transparent; stroke: none; }
.km-halo { pointer-events: none; opacity: .62; transition: opacity .18s ease; }
.km-dot { stroke: rgba(220, 235, 255, .35); stroke-width: 1; transition: stroke .15s ease, opacity .15s ease, filter .15s ease; }
.km-spark { fill: #fff; opacity: .85; pointer-events: none; }
.km-glyph {
  text-anchor: middle; pointer-events: none; font-size: 10.5px; font-weight: 800;
  fill: #f6f9ff; paint-order: stroke; stroke: rgba(5, 10, 25, .55); stroke-width: 2px; stroke-linejoin: round;
}
.km-name {
  opacity: 0; pointer-events: none;
  font-size: 11.5px; font-weight: 600; fill: #e2ebff; letter-spacing: .01em;
  paint-order: stroke; stroke: rgba(4, 9, 22, .9); stroke-width: 3.5px; stroke-linejoin: round;
  transition: opacity .18s ease;
}
.km-name.cat-name {
  opacity: 1; font-size: calc(10.5px * var(--ls, 1)); font-weight: 700; fill: var(--cat, #cbdcff);
  letter-spacing: .07em;
}
.km-canvas:not(.is-scoped) .km-name.cat-name { opacity: 0; }
.km-canvas:not(.is-scoped) .km-node:hover .km-name.cat-name,
.km-canvas:not(.is-scoped) .km-node.sel .km-name.cat-name { opacity: 1; }
.km-name.group-name {
  opacity: 1; font-size: calc(9.5px * var(--ls, 1)); font-weight: 600; fill: #c7d6f7;
}
/* 单元层只标类别，专题名留在下一层，避免标签互压 */
.km-canvas.scope-unit .km-name.group-name { opacity: 0; }
.km-canvas.scope-unit .km-node:hover .km-name.group-name,
.km-canvas.scope-unit .km-node.sel .km-name.group-name { opacity: 1; }
.km-canvas.scope-cat .km-name.cat-name,
.km-canvas.scope-group .km-name.group-name { opacity: 0; }
.km-canvas.scope-cat .km-node:hover .km-name.cat-name,
.km-canvas.scope-group .km-node:hover .km-name.group-name { opacity: 1; }
.km-name.leaf-name {
  opacity: 0; font-size: calc(9px * var(--ls, 1)); font-weight: 500; fill: #e2ebff;
}
#km-svg.show-leaf-names .km-name.leaf-name { opacity: 1; }
.km-node:hover .km-name, .km-node.sel .km-name { opacity: 1; }
.km-node:hover .km-dot, .km-node.sel .km-dot { stroke: #fff; stroke-width: 2; }
.km-node:hover .km-halo, .km-node.sel .km-halo { opacity: 1; }
.km-node:focus { outline: none; }
.km-node:focus-visible .km-dot { stroke: #ffd27a; stroke-width: 2.6; }
.km-node.offstage { display: none; }
.km-node.weak .km-dot { stroke: #ff8aa8; stroke-width: 1.7; }
.km-progress {
  fill: none; stroke: var(--cat, #9fc6ff); stroke-width: 1.2;
  opacity: .62; pointer-events: none;
}
.km-cat-ring { fill: none; stroke-width: 1; opacity: .42; pointer-events: none; }
.km-node.kind-cat .km-dot, .km-node.kind-pos .km-dot {
  stroke: var(--cat, #9fc6ff); stroke-width: 1.1;
  filter: drop-shadow(0 0 8px var(--cat, rgba(150, 190, 255, .5)));
}
.km-node.kind-cat .km-glyph { fill: #081222; stroke: rgba(255, 255, 255, .38); stroke-width: .8; }
.km-node.kind-cat .km-halo.cat-halo { opacity: .2; }
.km-node.kind-pos .km-halo.cat-halo { opacity: .13; }
.km-node.kind-root .km-dot {
  stroke: rgba(255, 247, 214, .96); stroke-width: 1.4;
  filter: drop-shadow(0 0 16px rgba(255, 226, 154, .55));
}
.km-node.kind-root .km-halo { opacity: .92; }
.km-node.kind-root .km-glyph { display: none; }
.km-root-spark { fill: rgba(255, 247, 214, .55); pointer-events: none; }
.km-rootname {
  fill: #ffe9b4; font-size: 12px; font-weight: 700; letter-spacing: .16em;
  paint-order: stroke; stroke: rgba(4, 9, 22, .9); stroke-width: 3.5px; stroke-linejoin: round;
  pointer-events: none;
}
.km-node.tier-4 .km-dot { stroke-width: .85; }
.km-node.micro .km-name { font-size: 9px; }

.km-node.st-0 .km-dot { stroke: rgba(150, 172, 214, .34); }
.km-node.st-1 .km-dot { stroke: rgba(255, 200, 130, .52); }
.km-node.st-2 .km-dot { stroke: rgba(140, 255, 232, .58); }
.km-node.st-3 .km-dot { stroke: rgba(165, 205, 255, .7); }
.km-node.st-4 .km-dot { stroke: rgba(255, 235, 175, .85); }
.km-node.st-0 .km-glyph { fill: #c3cee6; }
.km-node.st-0 .km-halo { opacity: .16; }
.km-node.st-4 .km-halo { opacity: .9; }

.km-node.kind-word .km-dot { stroke-width: 1.2; }
.km-node.kind-unit .km-dot {
  stroke: rgba(255, 242, 206, .92); stroke-width: 1.4;
  filter: drop-shadow(0 0 12px rgba(255, 220, 150, .42));
}
.km-node.kind-unit .km-halo { opacity: .85; }
.km-node.kind-unit .km-glyph { font-size: 11.5px; stroke-width: 1.4; }
.km-node.kind-unit:hover .km-dot, .km-node.kind-unit.sel .km-dot { stroke: #fff; stroke-width: 2; }

.km-orbit {
  fill: none; stroke: rgba(150, 190, 255, .24); stroke-width: 1; stroke-linecap: round;
  stroke-dasharray: 1 7; pointer-events: none;
  animation: km-orbit 80s linear infinite;
}
.km-orbit-2 { stroke: rgba(160, 200, 255, .14); stroke-dasharray: 2 9; animation-duration: 110s; animation-direction: reverse; }
.km-moon { fill: #cfe4ff; opacity: .85; pointer-events: none; filter: drop-shadow(0 0 4px rgba(180, 220, 255, .9)); }
@keyframes km-orbit { to { stroke-dashoffset: -200; } }

.km-node.nb .km-dot { stroke: rgba(220, 235, 255, .85); stroke-width: 1.5; }
.km-node.dim { opacity: .18; }
.km-node.dim .km-name, .km-node.dim .km-glyph { opacity: 0; }
.km-node.dim .km-halo { opacity: 0; }
.km-node.off { opacity: .06; pointer-events: none; }
.km-node.off .km-name { opacity: 0 !important; }

.km-badge circle { fill: #ff7a9e; stroke: #0a1228; stroke-width: 1.5; }
.km-badge text { fill: #fff; font-size: 10px; font-weight: 800; text-anchor: middle; pointer-events: none; }

.km-edge { fill: none; stroke: rgba(150, 180, 240, .2); stroke-width: 1; }
.km-edge.root { stroke: rgba(255, 225, 160, .2); stroke-width: 1; }
.km-edge.cat { stroke-width: 1; }
.km-edge.group { stroke-width: .9; }
.km-edge.leaf { stroke-width: .65; }
.km-edge.cat-vocab { stroke: rgba(95, 224, 255, .3); }
.km-edge.cat-grammar { stroke: rgba(255, 207, 107, .3); }
.km-edge.cat-pattern { stroke: rgba(183, 155, 255, .3); }
.km-edge.cat-sound { stroke: rgba(255, 143, 199, .3); }
.km-edge.cat-topic { stroke: rgba(125, 255, 196, .28); }
.km-edge.cat-vocab.leaf { stroke: rgba(95, 224, 255, .12); }
.km-edge.cat-grammar.leaf { stroke: rgba(255, 207, 107, .13); }
.km-edge.cat-pattern.leaf { stroke: rgba(183, 155, 255, .13); }
.km-edge.cat-sound.leaf { stroke: rgba(255, 143, 199, .12); }
.km-edge.cat-topic.leaf { stroke: rgba(125, 255, 196, .12); }
.km-edge.pre { stroke: rgba(127, 231, 255, .5); stroke-width: 1.1; stroke-dasharray: 4 5; animation: km-flow 26s linear infinite; }
.km-edge.rel { stroke: rgba(178, 164, 255, .32); stroke-width: 1; }
.km-edge.inc { stroke: rgba(230, 244, 255, .85); stroke-width: 1.6; }
.km-edge.inc.pre { stroke: #8fe8ff; stroke-width: 1.8; }
.km-edge.dim { opacity: .1; }
.km-edge.off { opacity: .04; }
.km-edge.offstage { display: none; }
@keyframes km-flow { to { stroke-dashoffset: -180; } }

.km-tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.km-tag {
  position: absolute; transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer;
  font-family: inherit; font-size: 10.5px; font-weight: 700; color: #8fa7d6; white-space: nowrap;
  letter-spacing: .12em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, .65);
  padding: 5px 8px 5px 13px; border: 0; border-radius: 6px;
  background: radial-gradient(ellipse 80% 165% at 46% 50%, rgba(4, 9, 24, .78), rgba(4, 9, 24, .4) 58%, rgba(4, 9, 24, 0) 100%);
  transition: color .15s ease;
}
.km-tag::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px;
  border-radius: 50%; background: #9fc6ff; box-shadow: 0 0 8px #6fa8ff; opacity: .85;
}
.km-tag::after {
  content: ""; position: absolute; left: 4px; top: calc(50% + 7px); width: 1px; height: 11px;
  background: linear-gradient(rgba(150, 190, 255, .45), transparent);
}
.km-tag .tag-short { display: none; }
.km-tag:hover, .km-tag.on { color: #f2f9ff; }
.km-tag.on::before { background: #ffe6a8; box-shadow: 0 0 10px #ffd27a; }
.km-tag.away { opacity: 0; pointer-events: none; transition: opacity .15s ease; }
.km-canvas.is-scoped .km-tags { opacity: 0; pointer-events: none; }

.km-crumbs {
  position: absolute; z-index: 6; top: 12px; left: 14px; right: 14px;
  display: flex; align-items: center; gap: 1px; overflow-x: auto; white-space: nowrap;
  padding: 4px 6px; border-radius: 999px; pointer-events: auto;
  border: 1px solid rgba(150, 185, 255, .16);
  background: rgba(8, 14, 32, .66);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  scrollbar-width: none;
}
.km-canvas:not(.is-scoped) .km-crumbs { display: none; }
.km-crumbs::-webkit-scrollbar { display: none; }
.km-crumb, .km-crumb-info {
  flex: 0 0 auto; border: 0; background: none; cursor: pointer; font-family: inherit;
  color: #9fb2d9; font-size: 11px; font-weight: 600; line-height: 1;
  padding: 6px 9px; border-radius: 999px; transition: color .15s ease, background .15s ease;
}
.km-crumb:hover, .km-crumb-info:hover { color: #f2f9ff; background: rgba(127, 231, 255, .1); }
.km-crumb.cur { color: #ffe7b0; }
.km-crumb-sep { flex: 0 0 auto; color: #5a6c92; font-size: 10px; }
.km-crumb-info {
  margin-left: 4px; color: #8fe8ff; border-left: 1px solid rgba(150, 185, 255, .16);
  border-radius: 0 999px 999px 0;
}

.km-tip {
  position: absolute; z-index: 5; max-width: 240px; pointer-events: none;
  background: rgba(9, 15, 34, .94); border: 1px solid rgba(140, 180, 255, .26); border-radius: 10px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 24px rgba(90, 130, 255, .12);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 9px 12px; font-size: 12px; line-height: 1.55; color: #c7d6f5;
}
@media (max-height: 720px) {
  .km-canvas { height: calc(100vh - 250px); min-height: 360px; }
}

.km-tip .km-tipkind { font-size: 10px; color: #8398c4; letter-spacing: .1em; }
.km-tip b { display: block; font-size: 13px; color: #f2f7ff; margin: 1px 0 2px; }

.km-zoom {
  position: absolute; z-index: 6; right: 12px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(150, 185, 255, .18); border-radius: 10px;
  background: rgba(8, 14, 32, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.km-zoom button {
  width: 34px; height: 34px; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: 15px; line-height: 1; color: #93a8d3;
}
.km-zoom button + button { border-top: 1px solid rgba(150, 185, 255, .12); }
.km-zoom button:hover { color: #f2f9ff; background: rgba(127, 231, 255, .12); }
.km-hint {
  position: absolute; z-index: 4; right: 14px; bottom: 18px; font-size: 10.5px; color: #7f93bd;
  background: rgba(8, 14, 32, .55); border: 1px solid rgba(150, 185, 255, .12); border-radius: 999px;
  padding: 4px 10px; pointer-events: none; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.km-legend {
  position: relative; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  font-size: 11.5px; color: #9aacd2; margin-top: 14px; padding: 0 2px;
}
.km-sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; border: 0; }
.km-sw.st-0 { background: #7183a8; box-shadow: 0 0 6px rgba(113, 131, 168, .8); }
.km-sw.st-1 { background: #f0a95e; box-shadow: 0 0 7px rgba(240, 169, 94, .85); }
.km-sw.st-2 { background: #55d6c2; box-shadow: 0 0 7px rgba(85, 214, 194, .85); }
.km-sw.st-3 { background: #6fa8ff; box-shadow: 0 0 8px rgba(111, 168, 255, .9); }
.km-sw.st-4 { background: #ffe2a3; box-shadow: 0 0 9px rgba(255, 214, 138, .95); }
.km-glyph-demo {
  display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, .06); border: 1px solid rgba(150, 185, 255, .22);
  color: #cbdcff; font-style: normal; font-size: 9.5px; font-weight: 800; margin-right: 4px; vertical-align: -4px;
}
.km-lg-line { display: inline-block; width: 18px; border-top: 2px dashed rgba(127, 231, 255, .5); margin-right: 4px; vertical-align: 3px; }
.km-lg-line.rel { border-top-style: solid; border-top-color: rgba(178, 164, 255, .45); }
.km-lg-weak { color: #ff9ab8; font-weight: 700; }
.km-cat-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0;
}
.km-cat-dot.cat-vocab { background: #5fe0ff; box-shadow: 0 0 7px rgba(95, 224, 255, .85); }
.km-cat-dot.cat-grammar { background: #ffcf6b; box-shadow: 0 0 7px rgba(255, 207, 107, .85); }
.km-cat-dot.cat-pattern { background: #b79bff; box-shadow: 0 0 7px rgba(183, 155, 255, .85); }
.km-cat-dot.cat-sound { background: #ff8fc7; box-shadow: 0 0 7px rgba(255, 143, 199, .85); }
.km-cat-dot.cat-topic { background: #7dffc4; box-shadow: 0 0 7px rgba(125, 255, 196, .85); }
.km-lg-note { color: #6f82aa; font-size: 10.5px; letter-spacing: .05em; }

@media (max-width: 760px) {
  .km-canvas { height: 62vh; min-height: 460px; }
  .km-stats { gap: 6px 16px; }
  .km-stat b { font-size: 21px; }
  .km-hint { display: none; }
  .km-legend { gap: 6px 12px; font-size: 11px; }
  .graph-galaxy { padding: 17px 15px 15px; border-radius: 18px; }
  .gx-head h1 { font-size: 26px; }
  .gx-coord { display: none; }
  .gx-sub { font-size: 12px; }
  .km-crumbs { top: 9px; left: 9px; right: 9px; padding: 3px 4px; }
  .km-crumb, .km-crumb-info { font-size: 10.5px; padding: 6px 6px; }
  .km-lg-note { display: none; }
}
@media (max-width: 820px) {
  .km-tag { display: inline-block; font-size: 10px; letter-spacing: .08em; padding: 5px 8px 5px 12px; }
  .km-tag .tag-full { display: none; }
  .km-tag .tag-short { display: inline; }
}
@media (max-width: 640px) {
  .km-name.cat-name { font-size: calc(10px * var(--ls, 1)); }
  .km-name.group-name { font-size: calc(9px * var(--ls, 1)); }
  .km-rootname { letter-spacing: .1em; }
  .km-zoom {
    top: auto; bottom: 12px; right: 12px; transform: none; flex-direction: row;
  }
  .km-zoom button + button { border-top: 0; border-left: 1px solid rgba(150, 185, 255, .12); }
}
@media (prefers-reduced-motion: reduce) {
  .sky-stars-a, .sky-stars-b, .sky-stars-c, .sky-sparks,
  .km-orbit, .km-edge.pre { animation: none; }
}

/* ---------- 练习页 ---------- */
.prac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.prac-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 8px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.prac-card:active { transform: scale(.98); }
.prac-card .pc-t { font-size: 16.5px; font-weight: 700; }
.prac-card .pc-d { font-size: 13px; color: var(--fg-3); flex: 1; }
.prac-card .pc-f { display: flex; align-items: center; justify-content: space-between; }
.prac-card .pc-b { font-size: 12.5px; font-weight: 700; color: var(--fg-2); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; }
.prac-card .pc-b.hot { color: var(--bad); background: var(--bad-soft); border-color: #EAD2C0; }

/* ---------- 今日 · 三步任务 + 本周节奏 ---------- */
.today-h { margin-bottom: 18px; }
.today-tasks { padding-bottom: 8px; }
.today-tasks > h2 { margin-bottom: 4px; }
.tdx-steps { display: flex; flex-direction: column; }
.tdx-step {
  display: flex; align-items: center; gap: 14px; padding: 14px 6px; text-decoration: none;
  background: transparent; border: 0; border-top: 1px solid var(--border); border-radius: 0;
  font: inherit; color: inherit; text-align: left; transition: background .15s;
}
.tdx-step:first-child { border-top: 0; }
.tdx-step:hover { background: var(--surface-2); }
.tdx-step.next { box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
.tdx-no {
  flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--accent); color: var(--accent-deep);
  font-weight: 800; font-size: 15.5px;
}
.tdx-step.next .tdx-no { background: var(--accent); color: #FFFDF9; }
.tdx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tdx-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tdx-title b { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdx-tag {
  flex: 0 0 auto; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--accent-deep);
  background: var(--accent-soft); border: 1px solid #CFE0DA; border-radius: 999px; padding: 1px 8px;
}
.tdx-main small { color: var(--fg-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdx-go { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; color: var(--accent-deep); font-weight: 600; font-size: 13.5px; }
/* 上次读到别的单元：收成任务卡底部的一行，不再抢主任务 */
.today-tasks .learn-resume.compact {
  margin: 2px 0 0; padding: 12px 6px 4px; border: 0; border-top: 1px dashed var(--border-strong);
  border-radius: 0; background: transparent; gap: 12px;
}
.today-tasks .learn-resume.compact .learn-eyebrow { font-size: 11px; color: var(--fg-3); font-weight: 600; letter-spacing: .02em; }
.today-tasks .learn-resume.compact h2 { margin: 2px 0; font-size: 13.5px; color: var(--fg-2); font-weight: 600; }
.today-tasks .learn-resume.compact p { font-size: 12px; color: var(--fg-3); }
.today-tasks .learn-resume.compact .btn {
  min-height: 30px; padding: 4px 10px; font-size: 12.5px;
  background: transparent; border: 1px solid var(--border-strong); color: var(--accent-deep); box-shadow: none;
}
.cal-card .cal-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.cal-card h2 { margin: 0; }
.cal-streak { display: flex; align-items: baseline; gap: 5px; }
.cal-streak b { font-size: 26px; font-weight: 800; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.cal-streak span { font-size: 12px; color: var(--fg-3); }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-col { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; }
.week-col em { font-style: normal; font-size: 10.5px; color: var(--fg-3); }
.week-col .cal-cell { width: 100%; }
.cal-cell { aspect-ratio: 1; border-radius: 5px; background: var(--border); }
.cal-cell.on { background: var(--accent-soft); border: 1px solid #BFD8D1; }
.cal-cell.on[data-lv="2"] { background: #A9CDC5; border-color: #8FBCB2; }
.cal-cell.on[data-lv="3"] { background: var(--accent); border-color: var(--accent); }
.cal-cell.today { outline: 2px solid var(--fg); outline-offset: 1px; }
.cal-note { margin: 12px 0 0; }

/* ---------- 今日 · 其他学习站 ---------- */
.sites-strip { margin-top: 16px; }
.sites-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.sites-strip-head h2 { margin: 0; }
.sites-row { display: flex; gap: 10px; flex-wrap: wrap; }
.site-link {
  flex: 1 1 170px; min-width: 0; display: flex; align-items: center; gap: 8px;
  padding: 11px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2);
  color: var(--fg); text-decoration: none; transition: border-color .15s, background .15s;
}
.site-link:hover { border-color: var(--accent); background: var(--accent-soft); }
.site-link .sl-ico { display: inline-flex; color: var(--accent-deep); flex: 0 0 auto; }
.site-link .sl-ico .ico { width: 19px; height: 19px; }
.site-link .sl-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-link .sl-go { display: inline-flex; color: var(--fg-3); flex: 0 0 auto; }
.site-link .sl-go .ico { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .tdx-step { gap: 10px; }
  .tdx-title { flex-wrap: wrap; row-gap: 3px; }
  .tdx-title b { white-space: normal; overflow: visible; text-overflow: clip; }
  .tdx-main small { white-space: normal; }
  .tdx-go { font-size: 13px; }
  .sites-strip-head { flex-wrap: wrap; }
  .today-tasks .learn-resume.compact { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- 设置 · 学习报告入口 ---------- */
.report-entry { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.report-entry-main { flex: 1 1 220px; min-width: 0; }
.report-entry-main h2 { margin-bottom: 4px; }
.report-entry-main p { margin: 0; }
.report-entry-stats { display: flex; gap: 20px; }
.report-entry-stats span { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; color: var(--fg-3); }
.report-entry-stats b { font-size: 20px; line-height: 1.2; color: var(--fg); font-variant-numeric: tabular-nums; }
.report-entry .btn { text-decoration: none; flex: 0 0 auto; }

/* ---------- 语法 · 一页讲透讲解卡 ---------- */
.hl { background: linear-gradient(transparent 60%, rgba(246,231,200,.95) 60%); padding: 0 1px; font-weight: 600; }
.gs-hero { margin: 2px 0 16px; }
.gs-hero h2 { margin: 4px 0 6px; font-size: 23px; font-family: var(--font-en); }
.gs-lead { margin: 0 0 8px; color: var(--fg-2); font-size: 14.5px; line-height: 1.7; }
.gs-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.gs-scene {
  background: var(--accent-soft); border: 1px solid #CFE0DA; border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 18px;
}
.gs-scene-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.gs-scene-en { margin: 0; font: 400 16.5px/1.85 var(--font-en); }
.gs-block { margin-bottom: 20px; }
.gs-block-title { margin: 0 0 12px; font-size: 16px; padding-bottom: 7px; border-bottom: 1px solid var(--border); }
.gs-point { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 10px; }
.gs-point-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gs-point-head b { font-size: 15.5px; }
.gs-no {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #FFFDF9; font: 700 13px/1 var(--font);
}
.gs-point-text { margin: 0 0 6px; font-size: 14.5px; line-height: 1.8; color: var(--fg); }
.gs-point .gtable { margin: 8px 0 0; }
.gs-tip {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 14px;
  background: var(--warn-soft); border: 1px solid #E7D3AC; border-radius: var(--r-md); color: var(--warn);
}
.gs-tip .ico { flex: 0 0 18px; margin-top: 2px; }
.gs-tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.gs-tip p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--fg); }
.gs-deep { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 12px; }
.gs-deep-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.gs-deep-head b { font-size: 15.5px; }
.gs-deep-point { padding: 10px 0; border-top: 1px dashed var(--border-strong); }
.gs-deep-point:first-of-type { border-top: 0; padding-top: 2px; }
.gs-deep-point > b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.gs-deep-point > p { margin: 0 0 8px; font-size: 14px; line-height: 1.85; }
.gs-example {
  display: flex; align-items: flex-start; gap: 10px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px 12px; margin: 8px 0;
}
.gs-ex-no { flex: 0 0 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-deep); font: 700 11px/18px var(--font); text-align: center; margin-top: 3px; }
.gs-ex-main { flex: 1; min-width: 0; }
.gs-ex-en { margin: 0; font: 500 15.5px/1.6 var(--font-en); }
.gs-ex-zh { margin: 3px 0 0; color: var(--fg-2); font-size: 13px; }
.gs-example .icon-btn { width: 32px; height: 32px; min-height: 32px; flex: 0 0 32px; }
.gs-practice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gs-practice-row .btn { flex: 1 1 220px; justify-content: space-between; }

/* ---------- 词汇卡 v2 ---------- */
.wcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 16px 12px; display: flex; flex-direction: column; gap: 7px;
}
.wcard.is-focus { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.wcard-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wcard-term { margin: 0; font: 600 26px/1.2 var(--font-en); letter-spacing: .01em; overflow-wrap: anywhere; }
.wcard-zh { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; }
.wcard-head .icon-btn { width: 36px; height: 36px; min-height: 36px; flex: 0 0 36px; }
.wcard-ipa-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pos-badge {
  font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 5px;
  background: var(--accent-soft); color: var(--accent-deep);
}
.wcard-ipa { color: var(--fg-3); font-size: 13.5px; font-family: var(--font-en); }
.wcard-gloss { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--fg); }
.wcard-example { background: var(--surface-2); border-radius: var(--r-sm); padding: 9px 11px; }
.wcard-example .gs-ex-en { font-size: 14.5px; }
.wcard-example .gs-ex-zh { font-size: 12.5px; }
.wcard-phrases { display: flex; flex-wrap: wrap; gap: 6px; }
.wcard-phrases .chip { height: auto; min-height: 26px; padding: 2px 9px; font-size: 12.5px; }
.wcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 9px; border-top: 1px dashed var(--border); }
.wcard-reveal summary { cursor: pointer; color: var(--accent-deep); font-size: 13.5px; min-height: 32px; display: flex; align-items: center; }
.wcard-reveal .wcard-term { font-size: 24px; margin: 4px 0; }

/* ---------- 语音 · 听力 v2 ---------- */
.ph-hero { margin: 2px 0 16px; }
.ph-hero h2 { margin: 4px 0 6px; font-size: 22px; }
.ph-groups { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.ph-group {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px;
}
.ph-group.is-drill { background: var(--surface-2); border-style: dashed; }
.ph-sound { flex: 0 0 92px; font: 700 22px/1.2 var(--font-en); color: var(--accent-deep); }
.ph-words { flex: 1; display: flex; flex-wrap: wrap; gap: 7px; }
.ph-word {
  border: 1px solid var(--border-strong); background: var(--surface); border-radius: 999px;
  padding: 4px 13px; font: 500 15px/1.4 var(--font-en); color: var(--fg);
}
.ph-word:hover { border-color: var(--accent); color: var(--accent-deep); background: var(--accent-soft); }
.dlg-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; margin: 14px 0; }
.dlg-row { display: flex; gap: 10px; padding: 6px 0; }
.dlg-who {
  flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-deep); font: 700 12.5px/1 var(--font); margin-top: 2px;
}
.dlg-en { flex: 1; font: 400 15.5px/1.75 var(--font-en); }
.listen-quiz { border: 1px solid var(--border); border-radius: var(--r-md); padding: 12px 14px; margin: 12px 0; }
.listen-quiz legend { font-weight: 700; font-size: 14.5px; padding: 0 6px; }
.listen-opts { display: flex; flex-direction: column; gap: 8px; }
.listen-opt {
  min-height: 46px; text-align: left; padding: 0 14px; border: 1.5px solid var(--border-strong);
  border-radius: 10px; background: var(--surface); font: inherit; font-size: 15px; color: var(--fg);
}
.listen-opt.right { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); font-weight: 600; }
.listen-opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.listen-result { margin: 8px 0 0; font-size: 13.5px; color: var(--fg-2); min-height: 18px; }

/* ---------- 答题浮层 ---------- */
.runner { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; flex-direction: column; }
.runner-head { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: var(--surface); border-bottom: 1px solid var(--border); }
.runner-head .rh-title { font-weight: 700; font-size: 15.5px; flex: 1; }
.runner-prog { display: flex; gap: 5px; align-items: center; }
.runner-prog i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.runner-prog i.done { background: var(--accent); }
.runner-prog i.bad { background: var(--bad); }
.runner-body { flex: 1; overflow-y: auto; padding: 28px 22px 120px; }
.rq { max-width: 720px; margin: 0 auto; }
.rq .q-kp { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.rq .q-text { font-size: 20px; font-weight: 600; margin: 0 0 6px; line-height: 1.5; }
.rq .q-en { font-family: var(--font-en); }
.rq .q-sub { color: var(--fg-3); font-size: 14px; margin-bottom: 18px; }
.rq .q-word { font-family: var(--font-en); font-size: clamp(34px, 7vw, 48px); font-weight: 700; letter-spacing: -.01em; margin: 6px 0 4px; display: flex; align-items: center; gap: 14px; }
.rq .q-phon { color: var(--fg-3); font-size: 15px; margin-bottom: 8px; font-family: var(--font-en); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt {
  min-height: 56px; border: 1.5px solid var(--border-strong); border-radius: 12px; background: var(--surface);
  display: flex; align-items: center; gap: 14px; padding: 8px 16px; font-size: 16.5px; text-align: left;
  font-family: var(--font-en); transition: all .12s;
}
.opt .key { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--border-strong); display: grid; place-items: center; font-size: 13.5px; font-weight: 700; flex: 0 0 30px; }
.opt.right { border-color: var(--ok); background: var(--ok-soft); }
.opt.right .key { border-color: var(--ok); background: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.opt.wrong .key { border-color: var(--bad); background: var(--bad); color: #fff; }
.opt.dim { opacity: .5; }
.fill-input {
  width: 100%; max-width: 420px; height: 56px; border: 1.5px solid var(--border-strong); border-radius: 12px;
  font-size: 18px; padding: 0 16px; font-family: var(--font-en); outline: none; background: var(--surface);
}
.fill-input:focus { border-color: var(--accent); }
.fill-input.right { border-color: var(--ok); background: var(--ok-soft); }
.fill-input.wrong { border-color: var(--bad); background: var(--bad-soft); }
/* 翻译题：每个单词一条横线 */
.trans-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: flex-end; margin-top: 8px; }
.tw-wrap { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.tw {
  border: 0; border-bottom: 2px solid var(--border-strong); border-radius: 0;
  background: transparent; font-family: var(--font-en); font-size: 17px; text-align: center;
  padding: 4px 2px 6px; outline: none; min-height: 40px; transition: border-color .15s;
}
.tw:focus { border-bottom-color: var(--accent); }
.tw.right { border-bottom-color: var(--ok); color: var(--ok); }
.tw.right:read-only { font-weight: 600; }
.tw.wrong { border-bottom-color: var(--bad); color: var(--bad); }
.tw-fix { font-size: 11.5px; color: var(--fg-3); min-height: 14px; font-family: var(--font-en); letter-spacing: .03em; }
.tw.wrong + .tw-fix, .tw-fix:not(:empty) { color: var(--accent-deep); }
.tw-tail { font-family: var(--font-en); font-size: 20px; color: var(--fg-2); padding-bottom: 8px; }
.fb { margin-top: 18px; border-radius: var(--r-md); padding: 14px 16px; font-size: 14.5px; }
.fb.ok { background: var(--ok-soft); border: 1px solid #CBDFD3; }
.fb.bad { background: var(--bad-soft); border: 1px solid #EAD2C0; }
.fb .fb-ans { font-weight: 700; font-family: var(--font-en); font-size: 16px; }
.fb .fb-exp { color: var(--fg-2); margin-top: 4px; }
.err-reason { margin-top: 14px; }
.err-reason .er-t { font-size: 13.5px; color: var(--fg-2); margin-bottom: 8px; }
.err-reason .chip { height: 38px; font-size: 14px; }
.runner-foot {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, var(--bg) 30%); display: flex; gap: 10px; justify-content: center;
}
.runner-foot .btn { min-width: 200px; justify-content: center; font-size: 16px; }
/* 持久输入框的舞台：保持原浮层的纵向布局（头/身/脚） */
#trk-stage, #rq-stage { flex: 1; display: flex; flex-direction: column; min-height: 0; }
/* 混编练习里的翻译题：与翻译练习共用 trk-* 题面/词槽/语音样式 */
.rq .trk-prompt { margin: 2px 0 12px; }
.rq .trk-voice { margin-top: 10px; }
.rq .trk-ans { margin-top: 12px; }
.runner-foot.trans-foot { justify-content: flex-start; gap: 10px; }
.runner-foot.trans-foot .btn { min-width: 0; font-size: 15px; padding: 0 16px; }
.runner-foot.trans-foot .grow { flex: 1; }
.report-q { margin-left: auto; }
/* 结果页 */
.rres { max-width: 640px; margin: 40px auto; text-align: center; }
.rres .big { font-size: 44px; font-weight: 800; }
.rres .sub2 { color: var(--fg-2); margin: 6px 0 22px; }
.rres-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 24px; }
.rres-grid .st { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.rres-grid .st b { display: block; font-size: 20px; }
.rres-grid .st span { font-size: 12px; color: var(--fg-3); }

/* ---------- 报告页 ---------- */
.mat { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--surface); }
.mat th, .mat td { border: 1px solid var(--border); padding: 8px 10px; text-align: center; }
.mat th { background: var(--surface-2); font-weight: 600; }
.mat td.rowh { text-align: left; font-weight: 600; }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.metric-grid .mt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; }
.metric-grid .mt .bignum { font-size: 28px; }
.metric-grid .mt span { font-size: 12.5px; color: var(--fg-3); display: block; margin-top: 2px; }
.bar-rows { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 64px 1fr 52px; align-items: center; gap: 10px; font-size: 13.5px; }
.bar-row .bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.bar-row .pct { text-align: right; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.sug-list { list-style: none; margin: 0; padding: 0; }
.sug-list li { display: flex; gap: 10px; padding: 7px 0; font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.sug-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-top: 8px; flex: 0 0 6px; }
.kdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 8px; }
.weak-list { list-style: none; margin: 0; padding: 0; }
.weak-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.weak-list li:last-child { border: 0; }
.flag-item { border: 1px solid #EAD2C0; background: #FFFCF7; border-radius: 12px; padding: 12px 14px; margin: 8px 0; }
.flag-item .fq { font-family: var(--font-en); font-size: 15px; }
.flag-acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- 浮层 sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(42,39,36,.38); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { .sheet { align-items: center; } }
.sheet-card {
  background: var(--surface); border-radius: 18px 18px 0 0; max-width: 620px; width: 100%;
  max-height: 82vh; overflow-y: auto; padding: 20px 22px; box-shadow: var(--shadow-lg);
}
@media (min-width: 700px) { .sheet-card { border-radius: 18px; } }
.sheet-card h3 { margin: 0 0 8px; font-size: 18px; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 200;
  background: rgba(42,39,36,.92); color: #FFFDF9; border-radius: 999px; padding: 10px 18px; font-size: 14.5px;
  opacity: 0; transition: opacity .25s; pointer-events: none; max-width: 80vw; }
#toast.show { opacity: 1; }

/* 小屏兜底（手机看报告） */
@media (max-width: 640px) {
  .stat3, .rres-grid { grid-template-columns: 1fr 1fr 1fr; }
  .view { padding-top: 16px; }
}

/* ---------- 翻译练习（仿听写工具 · 逐词即时判定） ---------- */
.transrun {
  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", "Noto Serif", serif;
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column;
}
.trk-head { display: flex; align-items: center; gap: 12px; padding: 12px 22px; background: var(--surface); border-bottom: 1px solid var(--border); }
.trk-progwrap { flex: 1; display: flex; align-items: center; gap: 12px; min-width: 0; }
.trk-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--border); overflow: hidden; }
.trk-bar i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }
.trk-count { font-size: 13px; color: var(--fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.trk-count b { color: var(--fg); }
.trk-pct { font-size: 13px; font-weight: 700; color: var(--ok); min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.trk-body { flex: 1; overflow-y: auto; padding: 16px 22px 10px; display: flex; flex-direction: column; gap: 12px; }

.trk-recap {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--fg-2);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 7px 12px;
}
.trk-recap .ok-b { color: var(--ok); font-weight: 700; }
.trk-recap .bad-b { color: var(--bad); font-weight: 700; }
.trk-recap .rws { font-family: var(--font-serif); font-size: 15px; }
.trk-recap .rws .ok-t { color: var(--ok); }
.trk-recap .rws .bad-t { color: var(--bad); }
.trk-recap .grow, .trk-btns .grow { flex: 1; }

.trk-prompt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 20px; box-shadow: var(--shadow); }
.trk-zh { display: flex; align-items: center; gap: 12px; }
.trk-zh .txt { font-size: 25px; font-weight: 700; line-height: 1.45; flex: 1; }
.trk-hintrow { margin-top: 6px; font-size: 12.5px; color: var(--fg-3); }
.trk-hintrow b { color: var(--fg-2); }

.trk-ans { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px 12px; box-shadow: var(--shadow); min-height: 148px; }
.trk-words { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; align-content: flex-start; }

/* 词槽：上词性签 / 中衬线词 / 下注解+提示 */
.tslot { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.tslot .pos {
  font-style: normal; font-size: 10.5px; line-height: 1; padding: 3px 7px; border-radius: 999px;
  font-weight: 600; font-family: var(--font-en); min-height: 9px; visibility: hidden;
}
.tslot.right .pos, .tslot.revealed .pos { visibility: visible; }
.pos.pn { background: var(--blue-soft); color: var(--blue); }
.pos.pv { background: var(--warn-soft); color: var(--warn); }
.pos.pj { background: var(--ok-soft); color: var(--ok); }
.pos.pd { background: var(--bad-soft); color: var(--bad); }
.pos.px { background: var(--surface-2); color: var(--fg-3); }
.tslot .w {
  font-family: var(--font-serif); font-size: 25px; line-height: 1.25; font-weight: 500;
  padding: 0 4px 3px; border-bottom: 2.5px solid var(--border-strong);
  min-width: 46px; min-height: 36px; text-align: center; color: var(--fg);
}
.tslot.pending.cur .w { color: var(--accent); border-bottom-color: var(--accent); animation: trk-blink 1.15s steps(1) infinite; }
@keyframes trk-blink { 0%, 60% { border-bottom-color: var(--accent); } 61%, 100% { border-bottom-color: var(--border-strong); } }
.tslot.right .w { color: var(--ok); border-bottom-color: var(--ok); font-weight: 600; }
.tslot.wrong .w { color: var(--bad); border-bottom-color: var(--bad); }
.tslot.wrong.editing .w { border-bottom-color: var(--bad); animation: none; }
.tslot.revealed .w { color: var(--accent-deep); border-bottom-color: var(--accent); }
.tslot .ann { font-style: normal; font-size: 11px; color: var(--fg-3); min-height: 15px; max-width: 170px; text-align: center; line-height: 1.35; margin-top: 1px; }
.tslot .fix { font-style: normal; font-size: 11.5px; color: var(--accent-deep); min-height: 15px; font-family: var(--font-en); letter-spacing: .05em; }
.trk-tail { font-family: var(--font-serif); font-size: 25px; color: var(--fg-3); padding: 0 2px 3px; align-self: flex-start; }

.trk-foot { border-top: 1px solid var(--border); background: var(--surface); padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; }
.trk-stats { display: flex; gap: 20px; font-size: 13px; color: var(--fg-2); align-items: center; }
.trk-stats b { font-variant-numeric: tabular-nums; font-size: 15px; color: var(--fg); }
.trk-stats b.okc { color: var(--ok); }
.trk-stats b.badc { color: var(--bad); }
.trk-stats .acc b { color: var(--ok); }
.trk-btns { display: flex; gap: 10px; align-items: center; }
kbd.tkb {
  font-family: var(--font-en); font-size: 11px; background: var(--surface-2); color: var(--fg-2);
  border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; margin-left: 6px;
}
#trk-in, #rq-trans-in {
  position: fixed; left: 50%; bottom: 130px; transform: translateX(-50%);
  width: 2px; height: 2px; opacity: .01; border: 0; padding: 0; margin: 0;
  background: transparent; color: transparent; font-size: 16px; caret-color: transparent;
}
/* 语音输入面板与麦克风按钮状态 */
.trk-voice {
  display: flex; align-items: center; gap: 10px; font-size: 15px;
  background: var(--accent-soft); border: 1px solid #CFE0DA; color: var(--accent-deep);
  border-radius: 10px; padding: 9px 14px; font-family: var(--font-en);
}
.trk-voice .vmic { display: inline-flex; }
.trk-voice .vmic .ico { width: 18px; height: 18px; animation: trk-micpulse 1.2s ease-in-out infinite; }
@keyframes trk-micpulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.trk-voice.done { background: var(--ok-soft); border-color: #CBDFD3; color: var(--ok); }
.trk-voice.ime { background: var(--surface-2); border-color: var(--border); color: var(--fg-2); }
.trk-voice.ime .vmic .ico { animation: none; }
.btn.trk-mic.on { background: var(--bad-soft); border-color: #EAD2C0; color: var(--bad); }
/* T10 横屏（接近方形）：压缩纵向留白，词号略收 */
@media (max-width: 960px) and (min-width: 641px) {
  .trk-zh .txt { font-size: 22px; }
  .tslot .w, .trk-tail { font-size: 22px; }
  .trk-body { gap: 10px; padding: 12px 16px 8px; }
  .trk-ans { min-height: 128px; }
}


/* 星焰凤凰升级提示（今日页） */
.pet-strip { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 13px 16px; text-decoration: none; color: inherit; }
.pet-strip-flame { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; background: #FBEBDD; color: var(--accent-deep); font-size: 16px; }
.pet-strip-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.pet-strip-main b { font-size: 14.5px; }
.pet-strip-main small { color: var(--fg-2); font-size: 12.5px; }
.pet-strip-go { color: var(--accent-deep); font-size: 13px; white-space: nowrap; }


/* ===== 学霸教辅（XB）：篇章/图片选项/多空/判断/套卷/写作卡 ===== */
/* 听力音频条 */
.q-audio { width: 100%; max-width: 420px; height: 36px; margin: 4px 0 10px; }
/* 篇章面板（完形/阅读/七选五/信息表） */
.passage { margin: 4px 0 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); overflow: hidden; }
.passage summary { cursor: pointer; padding: 8px 14px; font-size: 13px; color: var(--fg-2); background: var(--surface-2); user-select: none; }
.passage .pas-body { padding: 10px 14px; font-family: var(--font-en); font-size: 14.5px; line-height: 1.75; max-height: 42vh; overflow-y: auto; }
.passage .pas-img { display: block; max-width: 100%; margin: 6px auto; border-radius: 8px; }
.passage .pas-note { margin-top: 6px; font-size: 12.5px; color: var(--fg-2); font-family: inherit; }
/* 图片选项（听力看图选） */
.opt.opt-img { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; }
.opt.opt-img img { max-width: 100%; max-height: 110px; border-radius: 8px; object-fit: contain; }
/* 判断题 */
.opts-judge { grid-template-columns: 1fr 1fr; }
/* 多空填空行内输入 */
.q-multi { line-height: 2.4; }
.fill-blank { display: inline-block; width: 96px; min-width: 72px; margin: 0 2px; padding: 4px 8px; font-size: 15px;
  font-family: var(--font-en); text-align: center; border: none; border-bottom: 2px solid var(--border);
  background: var(--surface-2); border-radius: 6px 6px 0 0; outline: none; }
.fill-blank:focus { border-bottom-color: var(--accent); background: #fff; }
.fill-blank.right { border-bottom-color: var(--ok); background: var(--ok-soft); }
.fill-blank.wrong { border-bottom-color: var(--bad); background: var(--bad-soft); }
/* 多空题但题干没有横线时的兜底：题面下方一排输入框 */
.fill-blank-row { display: inline-flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0 4px; }
/* 手机/iOS：输入框字号 <16px 会在聚焦时自动放大页面 */
@media (max-width: 640px) {
  .fill-blank, .fill-input { font-size: 16px; }
}
/* 套卷：答题卡 */
.xb-navwrap { position: sticky; top: 0; z-index: 5; background: var(--bg, #FBF8F3); padding: 8px 0 6px; border-bottom: 1px solid var(--border); }
.xb-navgrid { display: flex; flex-wrap: wrap; gap: 6px; }
.xb-cell { width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; color: var(--fg-2); cursor: pointer; }
.xb-cell.ans { background: var(--surface-2); color: var(--fg); border-color: var(--accent); }
.xb-cell.ok { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.xb-cell.no { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
/* 套卷：题卡与交卷条 */
.xb-q { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.xb-q-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.xb-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent-soft, #FBEBDD); color: var(--accent-deep); font-weight: 700; font-size: 13px; }
.xb-q .opt.picked { border-color: var(--accent); background: var(--accent-soft, #FBEBDD); }
.xb-handin { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 10px 0 14px; background: var(--bg, #FBF8F3); border-top: 1px solid var(--border); }
/* 套卷列表 */
.xb-paper-list { display: flex; flex-direction: column; gap: 8px; }
.xb-paper-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; }
.xb-paper-item b { font-size: 14.5px; }
.xb-paper-score { white-space: nowrap; font-size: 13px; color: var(--fg-2); }
/* 写作任务卡 */
.xb-write-card { max-width: 620px; }
.xb-write-h { display: flex; justify-content: space-between; align-items: center; }
.xb-write-req, .xb-write-tips { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.xb-write-req ul { margin: 6px 0 0 18px; }
.xb-write-sample { margin: 12px 0; border: 1px dashed var(--border); border-radius: 10px; padding: 10px 12px; }
.xb-write-sample summary { cursor: pointer; font-size: 14px; color: var(--accent-deep); }
.xb-write-sample .pas-body { padding: 8px 0 0; max-height: none; font-size: 14.5px; line-height: 1.8; }

/* ===== 组题（篇章多空题：完形/阅读/七选五）一次呈现 ===== */
.rq-group .pas-body { max-height: 40vh; }
.gq-list { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.gq-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.gq-h { margin-bottom: 6px; }
.gq-no { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--accent-soft, #FBEBDD);
  color: var(--accent-deep); font-size: 13px; font-weight: 600; }
.gq-item .opts { margin-top: 0; }
.gq-fb .fb { margin-top: 8px; }
.gq-fb .fb-exp { margin-top: 4px; font-size: 13px; color: var(--fg-2); }
.opt.picked { border-color: var(--accent); background: var(--accent-soft, #FBEBDD); }
