/* =============================================================================
   IELTS 陪练 · style.css
   深色优先 / 移动端优先 / 支持浅色 / 适配刘海屏安全区
   结构：1 变量 2 基础 3 布局 4 通用组件 5 对话 6 口语 7 写作 8 听力
        9 我的 10 词汇 11 设置面板 12 Markdown 13 动画 14 响应式
   ========================================================================== */

/* ---------------------------------------------------------------- 1 变量 */
:root {
  --bg: #0b0d12;
  --bg-soft: #11141c;
  --card: #151923;
  --card-2: #1b202d;
  --card-3: #222839;
  --line: #262d3d;
  --line-soft: #1e2432;
  --text: #e9edf6;
  --text-2: #c3cadd;
  --muted: #8d97ad;
  --accent: #5b8cff;
  --accent-2: #37d6b0;
  --accent-soft: rgba(91, 140, 255, 0.14);
  --warn: #ffb020;
  --danger: #ff5f6d;
  --ok: #35d39a;
  --purple: #a06bff;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --tap: 46px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --tabbar-h: 58px;
  --app-h: 100dvh;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f3f5fa;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --card-2: #f5f7fc;
  --card-3: #eceff8;
  --line: #e1e6f1;
  --line-soft: #eaeef7;
  --text: #11162a;
  --text-2: #333c55;
  --muted: #6b768d;
  --accent: #2f66f4;
  --accent-2: #0aa583;
  --accent-soft: rgba(47, 102, 244, 0.1);
  --warn: #b87400;
  --danger: #d92d4b;
  --ok: #0f9d70;
  --shadow: 0 10px 26px rgba(20, 40, 90, 0.1);
  color-scheme: light;
}

/* ---------------------------------------------------------------- 2 基础 */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  overscroll-behavior-y: none;
  overflow: hidden;
}

h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding-left: 1.15em; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
img { max-width: 100%; }

::selection { background: var(--accent); color: #fff; }

/* 滚动条（桌面端好看一点） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------------------------------------------------------------- 3 布局 */
#app {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: var(--app-h, 100dvh);
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  overflow: hidden;
}

.topbar {
  flex: 0 0 auto;
  padding-top: var(--safe-t);
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding-left: calc(14px + var(--safe-l));
  padding-right: calc(10px + var(--safe-r));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--purple) 60%, var(--accent-2));
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(91, 140, 255, 0.35);
}
.brand-text { min-width: 0; }
.brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-spacer { flex: 1 1 auto; }

.top-mode {
  font-size: 12px;
  color: var(--text-2);
  background: var(--card-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  max-width: 36vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.target-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  background: color-mix(in srgb, var(--accent-2) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-2) 34%, transparent);
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.icon-btn {
  width: 42px;
  height: 42px;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.icon-btn:active { background: var(--card-2); }
.icon-btn svg { width: 21px; height: 21px; }

main {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 14px calc(14px + var(--safe-r)) 26px calc(14px + var(--safe-l));
  scrollbar-gutter: stable;
}

.screen { display: none; }
.screen.is-active { display: block; animation: fade-in 0.18s ease both; }

/* 底部 Tab */
.tabbar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-top: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 30;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: var(--tabbar-h);
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.2px;
  position: relative;
  transition: color 0.15s ease;
}
.tab svg { width: 22px; height: 22px; stroke-width: 1.8; }
.tab.is-on { color: var(--accent); }
.tab.is-on::after {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--accent);
}
.tab:active { background: var(--card-2); }

/* 输入区（对话页专用，贴在 tabbar 上方） */
.composer {
  flex: 0 0 auto;
  display: none;
  gap: 8px;
  align-items: flex-end;
  padding: 8px calc(10px + var(--safe-r)) 8px calc(10px + var(--safe-l));
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-top: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 25;
}
.composer.is-active { display: flex; }
.composer textarea {
  flex: 1 1 auto;
  min-height: var(--tap);
  max-height: 132px;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
  resize: none;
  outline: none;
}
.composer textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer .send-btn {
  width: 54px;
  height: var(--tap);
  min-height: var(--tap);
  border-radius: var(--radius);
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  flex: 0 0 auto;
}
.composer .send-btn:disabled { opacity: 0.5; }
.composer .send-btn.is-stop {
  background: var(--card-3);
  color: var(--text);
  border: 1px solid var(--line);
}
.composer .mic-btn {
  width: var(--tap);
  height: var(--tap);
  min-height: var(--tap);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--text-2);
  cursor: pointer;
  flex: 0 0 auto;
}
.composer .mic-btn.is-rec {
  color: #fff;
  background: var(--danger);
  border-color: var(--danger);
  animation: pulse 1.2s infinite;
}

/* ---------------------------------------------------------------- 4 组件 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.card + .card { margin-top: 12px; }
.card-title {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.card-title .sub { font-weight: 400; font-size: 12px; color: var(--muted); }
.card-hd { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.card-hd .card-title { margin-bottom: 0; }
.card-hd .grow { flex: 1 1 auto; }

.section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.4px;
  margin: 18px 2px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title:first-child { margin-top: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s ease, opacity 0.15s ease, background 0.15s ease;
  user-select: none;
}
.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(91, 140, 255, 0.28);
}
.btn-accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: transparent; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 0; min-width: 120px; }

.pill {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pill.is-on {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(91, 140, 255, 0.3);
}
.pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pills-row::-webkit-scrollbar { display: none; }
.pills-row > .pill { flex: 0 0 auto; }

.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.segmented > button {
  flex: 1 1 0;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0 6px;
}
.segmented > button.is-on {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.field { margin-top: 12px; }
.field > label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.input, .textarea, .select {
  width: 100%;
  min-height: var(--tap);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% + 1px), calc(100% - 14px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
.select option { background: var(--card); color: var(--text); }

.row { display: flex; gap: 9px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row > .grow { flex: 1 1 auto; min-width: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--card-3);
  color: var(--text-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 34%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 34%, transparent); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.badge-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 34%, transparent); background: color-mix(in srgb, var(--danger) 12%, transparent); }
.badge-accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 34%, transparent); background: var(--accent-soft); }
.badge-purple { color: var(--purple); border-color: color-mix(in srgb, var(--purple) 34%, transparent); background: color-mix(in srgb, var(--purple) 12%, transparent); }

.note {
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 9px 11px;
  line-height: 1.55;
}
.note.warn { border-left-color: var(--warn); }
.note.danger { border-left-color: var(--danger); }
.note.ok { border-left-color: var(--ok); }
.note + .note { margin-top: 8px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.mono { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.hidden { display: none !important; }
.spacer-8 { height: 8px; }
.spacer-12 { height: 12px; }
.spacer-20 { height: 20px; }

/* 状态：空 / 加载 / 错误 */
.empty {
  text-align: center;
  padding: 30px 18px;
  color: var(--muted);
}
.empty .emoji { font-size: 34px; display: block; margin-bottom: 8px; }
.empty .t { color: var(--text-2); font-weight: 600; margin-bottom: 4px; font-size: 14.5px; }
.empty .d { font-size: 12.5px; line-height: 1.6; }

.loading-box {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 13.5px;
  padding: 14px;
  background: var(--card-2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  margin-top: 10px;
}
.spinner {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-top-color: var(--accent);
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}

.error-box {
  margin-top: 10px;
  background: color-mix(in srgb, var(--danger) 9%, var(--card));
  border: 1px solid color-mix(in srgb, var(--danger) 32%, transparent);
  border-radius: 12px;
  padding: 11px 12px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}
.error-box .t { color: var(--danger); font-weight: 700; margin-bottom: 3px; }

/* Toast */
#toast-wrap {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--safe-t) + 10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
  padding: 0 14px;
}
.toast {
  max-width: min(92vw, 520px);
  background: var(--card-3);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 13.5px;
  line-height: 1.45;
  box-shadow: var(--shadow);
  animation: toast-in 0.22s ease both;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.toast.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.toast.err { border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.toast.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.toast .ic { flex: 0 0 auto; }
.toast.out { animation: toast-out 0.2s ease both; }

/* 模态 / 面板 */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 12, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.backdrop.is-on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 91;
  max-width: 820px;
  margin: 0 auto;
  max-height: 88dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border-radius: 20px 20px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  transform: translateY(102%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  padding-bottom: var(--safe-b);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.4);
}
.sheet.is-on { transform: translateY(0); }
.sheet-hd {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line-soft);
}
.sheet-hd .t { font-size: 16px; font-weight: 700; flex: 1 1 auto; }
.sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 16px 24px;
}
.sheet-grip {
  width: 38px;
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  margin: 8px auto 0;
}

.fullpanel {
  position: fixed;
  inset: 0;
  z-index: 95;
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.32, 0.72, 0, 1);
  visibility: hidden;
}
.fullpanel.is-on { transform: translateX(0); visibility: visible; }
.panel-hd {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(var(--safe-t) + 8px) calc(12px + var(--safe-r)) 8px calc(6px + var(--safe-l));
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg);
  min-height: 56px;
}
.panel-hd .t { font-size: 16px; font-weight: 700; flex: 1 1 auto; padding-left: 2px; }
.panel-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px calc(14px + var(--safe-r)) calc(28px + var(--safe-b)) calc(14px + var(--safe-l));
}

/* ---------------------------------------------------------------- 5 对话 */
.chat-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 4px; }
.msg { display: flex; flex-direction: column; max-width: 100%; }
.msg-user { align-items: flex-end; }
.msg-user .bubble {
  background: var(--accent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 92%, #000), color-mix(in srgb, var(--purple) 78%, #000));
  color: #fff;
  border-radius: 18px 18px 5px 18px;
  padding: 10px 14px;
  max-width: 88%;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.msg-ai { align-items: flex-start; }
.msg-ai .bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px 18px 18px 5px;
  padding: 12px 14px;
  max-width: 97%;
  font-size: 14.5px;
  line-height: 1.62;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.msg-ai .bubble.is-error { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.msg-ai .bubble.is-streaming::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 15px;
  margin-left: 2px;
  vertical-align: -2px;
  background: var(--accent);
  border-radius: 1px;
  animation: blink 1s steps(2) infinite;
}
.msg-meta {
  font-size: 11px;
  color: var(--muted);
  margin: 4px 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.msg-actions {
  display: flex;
  gap: 6px;
  margin: 6px 2px 0;
  flex-wrap: wrap;
}
.mini-btn {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mini-btn:active { background: var(--card-3); }
.mini-btn.danger { color: var(--danger); }

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}
.quick-card {
  text-align: left;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  min-height: 72px;
}
.quick-card .qt { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.quick-card .qd { font-size: 11.5px; color: var(--muted); line-height: 1.45; }

.chat-status {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 2px 8px;
}

/* ---------------------------------------------------------------- 6 口语 */
.timer-ring {
  display: flex;
  align-items: center;
  gap: 14px;
}
.timer-num {
  font-size: 34px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
  line-height: 1;
}
.timer-num.warn { color: var(--warn); }
.timer-num.danger { color: var(--danger); animation: pulse 1s infinite; }
.progress {
  height: 6px;
  background: var(--card-3);
  border-radius: 99px;
  overflow: hidden;
  flex: 1 1 auto;
}
.progress > i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 99px;
  transition: width 0.25s linear;
}

.q-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.q-card .q-topic {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.q-card .q-text {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
}
.q-card .q-points {
  margin-top: 10px;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}
.q-card .q-points li { margin: 1px 0; }

.rec-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  display: inline-block;
  margin-right: 6px;
  animation: pulse 1.1s infinite;
}
.transcript {
  min-height: 110px;
  font-size: 16px;
  line-height: 1.6;
}
.interim { color: var(--accent); opacity: 0.85; }

.meter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.meter {
  flex: 1 1 30%;
  min-width: 92px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
}
.meter .k { font-size: 10.5px; color: var(--muted); letter-spacing: 0.3px; }
.meter .v { font-size: 19px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 1px; }
.meter .v small { font-size: 10.5px; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------------------- 7 写作 */
.wc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.wc-row .num { font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.wc-row .num.ok { color: var(--ok); }
.wc-row .num.warn { color: var(--warn); }
.write-area { min-height: 210px; font-size: 16px; line-height: 1.65; }

/* ---------------------------------------------------------------- 8 听力 */
.audio-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}
.audio-title { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.audio-sub { font-size: 11.5px; color: var(--muted); word-break: break-all; }
.audio-time {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 6px;
}
.seek {
  height: 26px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
}
.seek-track { height: 6px; width: 100%; background: var(--card-3); border-radius: 99px; overflow: hidden; }
.seek-track > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.audio-ctrls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.round-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--text-2);
  flex: 0 0 auto;
}
.round-btn svg { width: 20px; height: 20px; }
.round-btn.is-on {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
}
.round-btn.big {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border: 0;
  color: #fff;
  box-shadow: 0 8px 22px rgba(91, 140, 255, 0.35);
}
.round-btn.big svg { width: 23px; height: 23px; }
.rate-pills { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.rate-pills .pill { min-height: 32px; font-size: 12px; padding: 0 11px; }

.dictation { min-height: 160px; font-size: 16px; line-height: 1.7; }

/* ---------------------------------------------------------------- 9 我的 */
.profile-card {
  background: var(--card);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 22%, var(--card)), var(--card) 62%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
}
.profile-card .hi { font-size: 12.5px; color: var(--text-2); }
.profile-card .goal { font-size: 21px; font-weight: 800; margin: 3px 0 2px; }
.profile-card .goal small { font-size: 12px; font-weight: 600; color: var(--muted); }
.profile-card .meta { display: flex; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.profile-card .meta b { color: var(--text); font-size: 14px; display: block; font-variant-numeric: tabular-nums; }

.menu-list { display: flex; flex-direction: column; gap: 2px; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 6px;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  min-height: 52px;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item .mi-ic {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--card-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex: 0 0 auto;
}
.menu-item .mi-t { flex: 1 1 auto; min-width: 0; }
.menu-item .mi-title { font-size: 14.5px; font-weight: 600; }
.menu-item .mi-desc { font-size: 11.5px; color: var(--muted); margin-top: 1px; line-height: 1.4; }
.menu-item .mi-arrow { color: var(--muted); font-size: 16px; flex: 0 0 auto; }

.record-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  margin-bottom: 9px;
}
.record-item:active { background: var(--card-2); }
.record-item .ri-main { flex: 1 1 auto; min-width: 0; }
.record-item .ri-t { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.record-item .ri-m { font-size: 11px; color: var(--muted); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 10 词汇 */
.vocab-stage { perspective: 1200px; margin-top: 4px; }
.flashcard {
  position: relative;
  width: 100%;
  min-height: 240px;
  transform-style: preserve-3d;
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
  cursor: pointer;
}
.flashcard.flipped { transform: rotateY(180deg); }
.face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--card-2), var(--card));
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
}
.face.back { transform: rotateY(180deg); justify-content: flex-start; padding-top: 20px; }
.face .word { font-size: 33px; font-weight: 800; letter-spacing: -0.5px; text-align: center; word-break: break-word; }
.face .ph { text-align: center; color: var(--muted); font-size: 14px; margin-top: 6px; font-family: "SF Mono", "Cascadia Code", Consolas, monospace; }
.face .tip { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 16px; }
.face .mean { font-size: 17px; font-weight: 600; line-height: 1.55; }
.face .sect { font-size: 10.5px; color: var(--muted); letter-spacing: 0.6px; margin-top: 12px; text-transform: uppercase; }
.face .coll { font-size: 13.5px; color: var(--text-2); line-height: 1.6; }
.face .eg { font-size: 14px; color: var(--text); line-height: 1.55; font-style: italic; }
.face .eg-zh { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.speak-chip {
  align-self: center;
  margin-top: 12px;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
}
.grade-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 14px; }
.grade-btn { min-height: 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.grade-btn .g1 { font-size: 15px; font-weight: 700; }
.grade-btn .g2 { font-size: 10.5px; color: var(--muted); }
.grade-btn.forgot { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.grade-btn.fuzzy { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.grade-btn.know { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.grade-btn:disabled { opacity: 0.45; }

/* ---------------------------------------------------------------- 11 设置 */
.preset-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.preset-btn {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  padding: 7px 10px;
  text-align: left;
}
.preset-btn .pn { font-size: 13.5px; font-weight: 700; }
.preset-btn .pm { font-size: 10.5px; color: var(--muted); line-height: 1.35; word-break: break-all; }
.preset-btn.is-on { border-color: var(--accent); background: var(--accent-soft); }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}
.switch-row:last-child { border-bottom: 0; }
.switch-row .sl { flex: 1 1 auto; min-width: 0; }
.switch-row .st { font-size: 14px; font-weight: 600; }
.switch-row .sd { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.switch {
  width: 50px;
  height: 30px;
  border-radius: 99px;
  background: var(--card-3);
  border: 1px solid var(--line);
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 0.18s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.18s ease, background 0.18s ease;
}
.switch.is-on { background: var(--accent); border-color: var(--accent); }
.switch.is-on::after { transform: translateX(20px); background: #fff; }

.test-result { margin-top: 10px; font-size: 13px; }
.temp-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  background: transparent;
  outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 5px;
  border-radius: 99px;
  background: var(--card-3);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: -9.5px;
  border: 3px solid var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
input[type="range"]::-moz-range-track { height: 5px; border-radius: 99px; background: var(--card-3); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 3px solid var(--bg); border-radius: 50%; background: var(--accent); }

/* ---------------------------------------------------------------- 12 Markdown */
.md { font-size: 14.5px; line-height: 1.66; color: var(--text); overflow-wrap: anywhere; }
.md > *:first-child { margin-top: 0; }
.md > *:last-child { margin-bottom: 0; }
.md p { margin: 8px 0; }
.md h1, .md h2, .md h3, .md h4 {
  margin: 16px 0 8px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text);
}
.md h1 { font-size: 19px; }
.md h2 { font-size: 17px; padding-bottom: 5px; border-bottom: 1px solid var(--line-soft); }
.md h3 { font-size: 15.5px; }
.md h4 { font-size: 14.5px; color: var(--text-2); }
.md ul, .md ol { margin: 8px 0; padding-left: 20px; }
.md li { margin: 3px 0; }
.md strong { color: var(--text); font-weight: 700; }
.md em { color: var(--text-2); }
.md code {
  background: var(--card-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.88em;
  font-family: "SF Mono", "Cascadia Code", Consolas, monospace;
}
.md pre {
  background: var(--card-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  overflow-x: auto;
  margin: 10px 0;
}
.md pre code { border: 0; background: transparent; padding: 0; font-size: 12.5px; line-height: 1.5; }
.md blockquote {
  margin: 10px 0;
  padding: 6px 12px;
  border-left: 3px solid var(--accent);
  background: var(--card-2);
  border-radius: 0 8px 8px 0;
  color: var(--text-2);
}
.md hr { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.md .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; }
.md table { border-collapse: collapse; width: 100%; font-size: 12.5px; min-width: 400px; }
.md th, .md td { border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); padding: 7px 9px; text-align: left; vertical-align: top; line-height: 1.5; }
.md th { background: var(--card-2); font-weight: 700; color: var(--text-2); white-space: nowrap; }
.md tr:last-child td { border-bottom: 0; }
.md th:last-child, .md td:last-child { border-right: 0; }
.md tbody tr:nth-child(even) { background: color-mix(in srgb, var(--card-2) 45%, transparent); }
.md a { text-decoration: underline; }

.result-card {
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

/* ---------------------------------------------------------------- 13 动画 */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- 14 响应式 */
@media (min-width: 700px) {
  main { padding-left: 22px; padding-right: 22px; }
  #app { border-left-color: var(--line-soft); border-right-color: var(--line-soft); }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .sheet { border-radius: 20px; bottom: 18px; max-height: 84dvh; }
  .sheet.is-on { transform: translateY(-18px); }
}

@media (max-height: 560px) {
  .flashcard { min-height: 190px; }
  .face .word { font-size: 26px; }
}

/* ============================================================
 * 学习监督（原生页面）
 * ============================================================ */
.sup-wrap { padding: 0 0 10px; }

.sup-hero {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 16px 16px 14px;
  background:
    radial-gradient(120% 120% at 88% 0%, rgba(91,140,255,.30) 0%, rgba(91,140,255,0) 58%),
    linear-gradient(160deg, #1c2334 0%, #141a27 100%);
  border: 1px solid var(--line);
}
.sup-hero-top { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--text-2); letter-spacing: .4px; }
.sup-goal { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(91,140,255,.35); padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.sup-hero-days { font-size: 42px; font-weight: 800; line-height: 1.08; margin: 8px 0 2px; color: #fff; font-variant-numeric: tabular-nums; }
.sup-hero-days i { font-size: 13px; font-style: normal; font-weight: 600; color: var(--muted); margin-left: 6px; }
.sup-hero-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.sup-hero-bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); margin-top: 12px; overflow: hidden; }
.sup-hero-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }

.sup-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.sup-stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.sup-stat .v { font-size: 18px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.sup-stat .k { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.sup-card { margin-top: 10px; padding: 14px; }
.sup-cardhead { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.sup-dim { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.sup-progress { height: 6px; border-radius: 999px; background: var(--card-3); overflow: hidden; margin-bottom: 8px; }
.sup-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }

.sup-task { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.sup-task:last-of-type { border-bottom: 0; }
.sup-check { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); background: transparent; color: #fff; font-size: 12px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; cursor: pointer; }
.sup-task.is-done .sup-check { background: var(--accent); border-color: var(--accent); }
.sup-task-t { flex: 1; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.sup-task.is-done .sup-task-t { color: var(--muted); text-decoration: line-through; }
.sup-del { width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; flex: 0 0 auto; cursor: pointer; }
.sup-addrow { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.sup-input { flex: 1; }
.sup-btn-sm { min-height: 38px; padding: 0 14px; }
.sup-pill { min-height: 36px; }
.sup-btn-main { flex: 1; min-height: 44px; border: 0; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--accent), #6f7bff); }

.sup-clock { font-size: 40px; font-weight: 800; letter-spacing: 1px; text-align: center; margin: 4px 0 12px; color: #fff; font-variant-numeric: tabular-nums; }
.sup-pomo-btns { display: flex; gap: 8px; align-items: center; }
.sup-pomo-tip { margin-top: 10px; line-height: 1.5; }

.sup-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sup-f { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.sup-f span { display: block; margin-bottom: 5px; }
.sup-frow { display: flex; gap: 6px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.sup-frow > span { width: 34px; flex: 0 0 auto; }
.sup-mini { flex: 1; min-width: 0; text-align: center; padding: 0 4px; }
.sup-mocklist { margin-top: 12px; }
.sup-mockrow { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-soft); font-size: 12px; }
.sup-mockdate { color: var(--muted); width: 74px; flex: 0 0 auto; }
.sup-mockbands { flex: 1; color: var(--text-2); font-variant-numeric: tabular-nums; }
.sup-mocktotal { font-weight: 800; color: var(--accent-2); font-size: 15px; font-variant-numeric: tabular-nums; }

.sup-errdrop { margin-top: 6px; }
.sup-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.sup-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); color: var(--text-2); font-size: 12px; cursor: pointer; }
.sup-chip i { font-style: normal; font-weight: 800; color: var(--muted); font-size: 11px; }
.sup-chip.has { border-color: rgba(255,95,109,.4); background: rgba(255,95,109,.10); color: #ffb3ba; }
.sup-chip.has i { color: var(--danger); }

.sup-achs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sup-ach { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; opacity: .45; }
.sup-ach.is-on { opacity: 1; border-color: rgba(55,214,176,.35); background: rgba(55,214,176,.08); }
.sup-ach .ic { font-size: 20px; }
.sup-ach .nm { font-size: 10.5px; color: var(--muted); margin-top: 4px; line-height: 1.3; }
.sup-ach.is-on .nm { color: var(--text-2); }

.sup-empty { font-size: 12.5px; color: var(--muted); padding: 8px 0; line-height: 1.6; }
.sup-set-tip { margin-top: 10px; line-height: 1.5; }
.sup-danger { color: #ffb3ba; border-color: rgba(255,95,109,.35); }

#supToast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-b));
  transform: translate(-50%, 8px); background: #2b6cff; color: #fff;
  font-size: 13px; padding: 9px 16px; border-radius: 12px; opacity: 0;
  pointer-events: none; transition: .2s; z-index: 9999; max-width: 80vw; text-align: center;
}
#supToast.on { opacity: 1; transform: translate(-50%, 0); }

/* 底部 6 个 Tab */
.tabbar { grid-template-columns: repeat(6, 1fr); }
.tab { font-size: 10px; }
.tab svg { width: 20px; height: 20px; }
