/* 学个明白雅思 — 原型 D 组件样式 v2
 * 响应式：手机底部 Tab · 平板 80px 图标侧栏 · 桌面 248px 侧栏 · 超宽放宽内容区
 * 只引用 tokens.css 里的变量。 */

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text-1);
  font: var(--fw-reg) var(--fs-body)/var(--lh-body) var(--font);
  font-feature-settings: "cv05" 1;            /* Inter：带尾巴的 l，背单词时 l / I 不混 */
  overflow-x: hidden; min-height: 100vh;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* 中英混排：中文与拉丁之间自动留 1/8em；行首行尾标点挤压；严格断行（不让标点落到行首） */
  text-autospace: normal; text-spacing-trim: normal; line-break: strict; overflow-wrap: break-word;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
p, dd, .t2, .lead, .sf, .done-card span, .tile span { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
ol, ul { list-style: none; }
a { color: var(--brand); text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
[lang="en"] { font-family: var(--font-en); hyphens: manual; }  /* 不自动断词：窄栏里 be-fore 这类断法很难看；超长词靠 overflow-wrap */
svg.i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 20px; height: 20px; }
svg.i.xs { width: 16px; height: 16px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num, .en { font-family: var(--font-num); }
.num, .no, .due, time { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ── 焦点环：键盘才出现；行内元素用内描边，避免被 overflow:hidden 裁掉 ── */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-xs); box-shadow: 0 0 0 4px var(--ring); }
.row:focus-visible, .w:focus-visible, .grp > a:focus-visible, .grp > button:focus-visible { outline-offset: -2px; box-shadow: none; border-radius: 0; }
.btn:focus-visible, .chip:focus-visible { border-radius: inherit; }
kbd, .kbd {
  font-family: var(--font-num); font-size: 11px; line-height: 18px; font-weight: var(--fw-semi);
  min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 5px; background: var(--surface); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 0 var(--line-strong);
}

/* ── 进场：统一 ease-out + 320ms，元素依次错开 40ms ── */
@keyframes d-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes d-fade { from { opacity: 0; } to { opacity: 1; } }
.main > :not(.navbar) { animation: d-in var(--dur-3) var(--ease-out) both; }
.main > :nth-child(3) { animation-delay: 40ms; }
.main > :nth-child(4) { animation-delay: 80ms; }
.fade { animation: d-fade var(--dur-2) var(--ease) both; }

/* ═════════ 外壳 ═════════ */
:root { --tabh: 56px; --navh: 52px; --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px); }
.main { padding-bottom: calc(var(--tabh) + var(--safe-b) + var(--sp-4)); min-height: 100vh; margin-left: var(--nav-w); }
.main.no-tab { padding-bottom: calc(var(--safe-b) + var(--sp-4)); }
.col { max-width: calc(var(--page-max) + var(--page-pad) * 2); margin: 0 auto; padding: 0 var(--page-pad); }

/* 手机：底部 Tab 是浮起的胶囊（同 e.css）；.glass 还给别处用 */
.glass { background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
/* ── 底部 Tab：手机上是浮起的毛玻璃胶囊，选中块在 Tab 之间滑动 ── */
.tabbar{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom) + 12px);z-index:20;display:flex;
  width:min(360px,calc(100vw - 32px));height:60px;padding:5px;transform:translateX(-50%);
  border-radius:var(--r-full);background:var(--glass);
  -webkit-backdrop-filter:blur(24px) saturate(170%);backdrop-filter:blur(24px) saturate(170%);
  box-shadow:0 10px 30px rgba(18,24,21,.16),0 0 0 .5px rgba(18,24,21,.08)}
.tabbar .pill{position:absolute;top:5px;left:5px;height:50px;border-radius:var(--r-full);background:var(--surface);
  box-shadow:0 2px 8px rgba(18,24,21,.10);transition:transform 420ms cubic-bezier(.3,1.25,.5,1),width var(--dur-3) var(--ease)}
.tabbar a{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  font-size:10px;color:var(--text-3);transition:color var(--dur-2) var(--ease);-webkit-tap-highlight-color:transparent}
.tabbar a svg{width:22px;height:22px;transition:transform var(--dur-3) cubic-bezier(.3,1.4,.5,1)}
.tabbar a.on{color:var(--brand)}
.tabbar a.on svg{transform:translateY(-1px) scale(1.08)}
.tabbar{transition:transform var(--dur-3) var(--ease-out)}
@media (min-width:1024px){
  .tabbar{left:0;top:0;bottom:0;transform:none;width:84px;height:auto;flex-direction:column;justify-content:flex-start;
    padding:var(--sp-4) 0 0;border-radius:0;box-shadow:none;border-right:1px solid var(--line);background:var(--bg);
    -webkit-backdrop-filter:none;backdrop-filter:none}
  .tabbar .pill{display:none}
  .tabbar a{flex:0 0 auto;height:64px;font-size:11px}
}
/* 计划 6：老页面（guide / locked）也用 E 的 Tab 胶囊；内容底部留出胶囊高度。
   旧的图标侧栏不画了：平板上不留侧栏宽度，桌面上 Tab 变成 84px 的左侧竖栏，侧栏宽度跟它对齐 */
.main:not(.no-tab){padding-bottom:calc(96px + env(safe-area-inset-bottom))}
@media (min-width:768px){:root{--nav-w:0px}}
@media (min-width:1024px){:root{--nav-w:84px}.main:not(.no-tab){padding-bottom:0}}


/* 平板 / 桌面：侧栏 */
.side { display: none; }
@media (min-width: 768px) {
  .main, .main.no-tab { padding-bottom: var(--sp-6); }
  .side {
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; width: var(--nav-w); z-index: 40;
    padding: var(--sp-2) var(--sp-1) var(--sp-2); border-right: 1px solid var(--line); background: var(--bg);
  }
  .side .brand { display: flex; align-items: center; justify-content: center; height: 48px; margin-bottom: var(--sp-2); border-radius: var(--r-sm); }
  .side .brand img { width: 36px; height: 36px; border-radius: var(--r-sm); }
  .side .brand span, .side .sub, .side nav.units, .side .foot .t .m, .side nav a kbd { display: none; }
  .side nav.main-nav { display: flex; flex-direction: column; gap: var(--sp-h); }
  .side nav.main-nav a {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; border-radius: var(--r-sm);
    color: var(--text-2); font-size: 11px; line-height: 14px; font-weight: var(--fw-med);
    transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
  }
  .side nav.main-nav a .ti { display: flex; align-items: center; justify-content: center; width: 48px; height: 30px; border-radius: var(--r-full); transition: background var(--dur-2) var(--ease); }
  .side nav.main-nav a:hover { color: var(--text-1); }
  .side nav.main-nav a:hover .ti { background: var(--hover); }
  .side nav.main-nav a[aria-current="page"] { color: var(--brand); font-weight: var(--fw-semi); }
  .side nav.main-nav a[aria-current="page"] .ti { background: var(--brand-soft); }
  .side .foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); }
  .side .foot .t { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); color: var(--text-1); }
  .side .foot .t:hover { background: var(--hover); }
  .side .foot .kb { width: 44px; height: 44px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--text-2); }
  .side .foot .kb:hover { background: var(--hover); color: var(--text-1); }
}
@media (min-width: 1200px) {
  .side { padding: var(--sp-2) var(--sp-2) var(--sp-2); }
  .side .brand { justify-content: flex-start; gap: 10px; padding: 0 var(--sp-1); margin-bottom: var(--sp-2); font-weight: var(--fw-semi); font-size: 15px; color: var(--text-1); letter-spacing: .01em; }
  .side .brand img { width: 28px; height: 28px; border-radius: 8px; }
  .side .brand span { display: inline; }
  .side .brand:hover { background: var(--hover); }
  .side nav.main-nav { gap: 2px; }
  .side nav.main-nav a { flex-direction: row; justify-content: flex-start; gap: 10px; height: 36px; padding: 0 var(--sp-1); font-size: 14px; line-height: 20px; color: var(--text-1); }
  .side nav.main-nav a .ti { width: 20px; height: 20px; background: none !important; color: var(--text-2); }
  .side nav.main-nav a .ti svg.i { width: 20px; height: 20px; }
  .side nav.main-nav a:hover { background: var(--hover); }
  .side nav.main-nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
  .side nav.main-nav a[aria-current="page"] .ti { color: var(--brand); }
  .side .sub { display: none; justify-content: space-between; margin: var(--sp-3) var(--sp-1) var(--sp-h); font-size: 12px; line-height: 16px; font-weight: var(--fw-semi); color: var(--text-2); }
  .side .sub span { font-weight: var(--fw-reg); color: var(--text-3); font-family: var(--font-num); }
  .side nav.units { display: block; overflow: auto; min-height: 0; flex: 1; margin: 0 calc(var(--sp-1) * -1); padding: 0 var(--sp-1); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .side nav.units a { display: flex; align-items: center; gap: var(--sp-1); height: 32px; padding: 0 var(--sp-1); border-radius: var(--r-xs); font-size: 13px; color: var(--text-2); transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
  .side nav.units a:hover { background: var(--hover); color: var(--text-1); }
  .side nav.units a[aria-current="page"] { background: var(--surface); color: var(--text-1); font-weight: var(--fw-semi); box-shadow: var(--sh-1); }
  .side nav.units a .n { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 12px; color: var(--text-3); width: 26px; }
  .side nav.units a .d { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); flex: none; }
  .side nav.units a .d.doing { background: var(--accent); }
  .side nav.units a .d.done { background: var(--brand); }
  .side .foot { margin-top: auto; padding: var(--sp-1) 0 0; border-top: 1px solid var(--line); flex-direction: row; justify-content: space-between; align-items: center; gap: var(--sp-h); }
  /* 用户卡：头像 + 昵称，下一行卡种 · 到期；整块点进「我的」 */
  .side .foot .t { flex: 1; justify-content: flex-start; gap: 10px; width: auto; height: auto; min-width: 0; padding: var(--sp-1); margin-left: calc(var(--sp-h) * -1); font-size: 12px; line-height: 16px; color: var(--text-2); transition: background var(--dur-1) var(--ease); }
  .side .foot .t .m { display: block; min-width: 0; }
  .side .foot .t .m > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
  .side .foot .t b { display: block; color: var(--text-1); font-weight: var(--fw-semi); font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side .foot .kb { width: 32px; height: 32px; flex: none; position: absolute; top: calc(var(--sp-2) + 8px); right: var(--sp-2); }  /* 快捷键按钮挪到品牌行右侧，底部整行留给用户卡 */
  .side .foot .t { margin-left: 0; }
}

/* ── 顶栏：滚动后实底 + 分隔线 ── */
.navbar {
  position: sticky; top: 0; z-index: 25; padding-top: var(--safe-t);
  border-bottom: 1px solid transparent;
  transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease);
}
.navbar.stuck { background: var(--bg); border-bottom-color: var(--line); }  /* v2：实底，不再透出内容 */
.navbar.on-hero:not(.stuck) { color: var(--on-hero); }
.navbar.on-hero:not(.stuck) .nbtn { color: var(--on-hero); }
.navbar .in { position: relative; height: var(--navh); display: flex; align-items: center; justify-content: space-between; max-width: calc(var(--page-max) + var(--page-pad) * 2); margin: 0 auto; padding: 0 var(--sp-1); }
.navbar .t {
  position: absolute; left: 96px; right: 96px; text-align: center; font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-semi);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity var(--dur-2) var(--ease); pointer-events: none;
}
.navbar.stuck .t, .navbar.always .t { opacity: 1; }
.navbar .l, .navbar .r { display: flex; align-items: center; min-width: var(--tap); }
.navbar .r { justify-content: flex-end; }
.nbtn { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); min-width: var(--tap); padding: 0 var(--sp-1); color: var(--brand); font-size: var(--fs-head); border-radius: var(--r-sm); transition: background var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease); }
.nbtn:active { opacity: .6; }
.nbtn.back { padding-left: var(--sp-h); }
@media (hover: hover) { .nbtn:hover { background: var(--hover); } .navbar.on-hero:not(.stuck) .nbtn:hover { background: var(--hero-line); } }
@media (min-width: 768px) { .navbar .in { padding: 0 calc(var(--page-pad) - var(--sp-1)); } }
@media (min-width: 1200px) {
  :root { --navh: 56px; }
  .navbar .t { text-align: left; left: calc(var(--page-pad) + 96px); }
  .nbtn { min-height: 36px; min-width: 36px; font-size: 14px; }
}

/* 一级页（无返回键）在平板/桌面上：顶栏不占位，滚动后才浮出 */
@media (min-width: 768px) {
  .navbar.tl { position: fixed; top: 0; left: var(--nav-w); right: 0; }
  .navbar.tl:not(.stuck) { pointer-events: none; visibility: hidden; }
  .navbar.tl + .lt { padding-top: var(--sp-5); }
}

/* ── 大标题 ── */
.lt { max-width: calc(var(--page-max) + var(--page-pad) * 2); margin: 0 auto; padding: 0 var(--page-pad) var(--sp-1); }
.lt .eyebrow { font-size: var(--fs-sub); line-height: var(--lh-sub); font-weight: var(--fw-med); color: var(--text-2); }
.lt h1 { font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--fw-bold); letter-spacing: .01em; }
.lt p { margin-top: var(--sp-h); color: var(--text-2); font-size: var(--fs-sub); line-height: var(--lh-sub); }
@media (min-width: 1200px) {
  .lt { padding-top: var(--sp-1); padding-bottom: var(--sp-2); }
  .lt h1 { letter-spacing: 0; }
}

/* ── 分区 ── */
.sec { margin-top: var(--sp-4); }
.sec.tight { margin-top: var(--sp-3); }
.sh { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); padding: 0 var(--sp-h) var(--sp-1); }
.sh h2 { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-bold); }
.sh h3 { font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-semi); }
.sh .meta { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); white-space: nowrap; }
.sh .acc { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--brand); font-weight: var(--fw-med); white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; min-height: var(--tap); margin: calc(var(--sp-1) * -1) 0; padding: 0 var(--sp-h); border-radius: var(--r-xs); }
@media (hover: hover) { .sh .acc:hover { text-decoration: underline; text-underline-offset: 3px; } }
.sf { padding: var(--sp-1) var(--sp-h) 0; font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); }
@media (min-width: 1200px) {
  .sec { margin-top: var(--sp-5); }
  .sec.tight { margin-top: var(--sp-3); }
  .sh { padding-bottom: 10px; }
  .sh h3 { font-size: 13px; line-height: 20px; color: var(--text-2); letter-spacing: .02em; }
  .sh .acc { min-height: 32px; margin: -6px 0; }
}

/* ── 分组列表 ── */
.grp { background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-1); }
.row {
  position: relative; display: flex; align-items: center; gap: var(--sp-2); min-height: 56px; padding: var(--sp-1) var(--sp-2);
  color: var(--text-1); width: 100%; text-align: left;
  transition: background var(--dur-1) var(--ease);
}
.row + .row::before, .row + .xp::before { content: ""; position: absolute; top: 0; right: 0; left: var(--inset, var(--sp-2)); border-top: 1px solid var(--line); }
.grp.ic { --inset: 64px; }
a.row:active, button.row:active, .row.tap:active { background: var(--press); }
@media (hover: hover) { a.row:hover, button.row:hover, label.row:hover { background: var(--hover); } }
.ico {
  width: 32px; height: 32px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex: none;
  color: var(--text-2); background: var(--surface-2);
}
.ico svg.i { width: 18px; height: 18px; }
.ico.g { color: var(--brand); background: var(--brand-soft); }
.ico.y { color: var(--accent-ink); background: var(--accent); }
.row .m { flex: 1; min-width: 0; }
.row .t1 { display: block; font-size: var(--fs-head); line-height: var(--lh-head); }
.row .t2 { display: block; font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); }
.clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .v { color: var(--text-2); font-size: var(--fs-sub); line-height: var(--lh-sub); white-space: nowrap; flex: none; }
.row .chev { color: var(--text-3); flex: none; width: 16px; height: 16px; transition: transform var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
@media (hover: hover) { a.row:hover .chev, button.row:hover .chev { color: var(--text-2); transform: translateX(2px); } }
.row .no { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: var(--fs-sub); color: var(--text-2); width: 32px; flex: none; }
.row.act { justify-content: center; color: var(--brand); font-weight: var(--fw-semi); }
.row.danger { justify-content: center; color: var(--err); font-weight: var(--fw-semi); }
@media (min-width: 1200px) {
  .grp { border-radius: 12px; }
  .row { min-height: 48px; gap: 12px; padding: 6px var(--sp-2); }
  .grp.ic { --inset: 60px; }
  .ico { width: 28px; height: 28px; border-radius: 8px; }
  .ico svg.i { width: 16px; height: 16px; }
}

/* ── 按钮 ── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
  min-height: var(--tap); padding: 0 var(--sp-3); border-radius: var(--r-sm);
  font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-semi); white-space: nowrap;
  background: var(--brand); color: var(--brand-on);
  transition: transform var(--dur-1) var(--ease), background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}
.btn:active { transform: scale(.97); background: var(--brand-press); }
.btn.lg { min-height: 52px; border-radius: 14px; }
.btn.block { display: flex; width: 100%; }
.btn.tonal { background: var(--brand-soft); color: var(--brand); }
.btn.tonal:active { background: var(--brand-soft); opacity: .8; }
.btn.gray { background: var(--surface-2); color: var(--text-1); }
.btn.gray:active { background: var(--surface-3); }
.btn.yellow { background: var(--accent); color: var(--accent-ink); }
.btn.yellow:active { background: var(--accent-press); }
.btn.ghost-hero { background: transparent; color: var(--on-hero); box-shadow: inset 0 0 0 1px var(--hero-line); }
.btn.ghost-hero:active { background: var(--hero-line); }
.btn.danger { background: var(--err); color: var(--on-color); }
.btn.sm { min-height: 36px; padding: 0 var(--sp-2); font-size: var(--fs-sub); border-radius: var(--r-full); }
.btn.sm::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .kbd { margin-left: var(--sp-h); background: transparent; color: inherit; opacity: .7; box-shadow: inset 0 0 0 1px currentColor; display: none; }
@media (hover: hover) and (pointer: fine) { .btn .kbd { display: inline-flex; } }
@media (hover: hover) {
  .btn:hover { background: var(--brand-press); }
  .btn.tonal:hover { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
  .btn.gray:hover { background: var(--surface-3); }
  .btn.yellow:hover { background: var(--accent-press); }
  .btn.ghost-hero:hover { background: var(--hero-line); }
  .btn.danger:hover { opacity: .9; }
}
@media (min-width: 1200px) {
  .btn { min-height: 40px; font-size: 14px; padding: 0 var(--sp-2); }
  .btn.lg { min-height: 44px; border-radius: var(--r-sm); padding: 0 20px; }
  .btn.sm { min-height: 32px; font-size: 13px; }
}
.tbtn { padding: 0 var(--sp-1); margin: 0 calc(var(--sp-1) * -1); color: var(--brand); font-size: var(--fs-sub); font-weight: var(--fw-med); min-height: var(--tap); display: inline-flex; align-items: center; gap: var(--sp-h); border-radius: var(--r-xs); }
.tbtn:active { opacity: .6; }
@media (hover: hover) { .tbtn:hover { background: var(--hover); } }

/* ── 分段控件 ── */
.seg { display: flex; padding: 2px; border-radius: var(--r-sm); background: var(--surface-3); position: relative; }
.seg button, .seg a {
  flex: 1; min-width: 0; height: 36px; border-radius: calc(var(--r-sm) - 2px); font-size: var(--fs-sub); font-weight: var(--fw-med); color: var(--text-2);
  display: flex; align-items: center; justify-content: center; gap: var(--sp-h); position: relative; z-index: 1; white-space: nowrap;
  transition: color var(--dur-2) var(--ease);
}
@media (hover: hover) { .seg button:hover, .seg a:hover { color: var(--text-1); } }
.seg [aria-selected="true"], .seg [aria-current="page"] { font-weight: var(--fw-semi); color: var(--text-1); }
.seg button::after, .seg a::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; bottom: -2px; }
.seg.sm button::after { top: -6px; bottom: -6px; }
.seg .pill { position: absolute; top: 2px; bottom: 2px; left: 2px; border-radius: calc(var(--r-sm) - 2px); background: var(--pill); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 0 0 .5px rgba(0, 0, 0, .04); transition: transform var(--dur-2) var(--ease-out), width var(--dur-2) var(--ease-out); }
.seg.lg button, .seg.lg a { height: 40px; }
.seg .ck { width: 14px; height: 14px; color: var(--brand); stroke-width: 2.25; }
@media (min-width: 1200px) { .seg.lg button, .seg.lg a { height: 34px; } .seg button, .seg a { height: 30px; } }

/* ── 筛选胶囊 ── */
.chips { display: flex; gap: var(--sp-1); overflow-x: auto; scrollbar-width: none; padding: var(--sp-h) var(--gutter); margin: 0 calc(-1 * var(--gutter)); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none; height: 36px; padding: 0 14px; border-radius: var(--r-full); font-size: var(--fs-sub); color: var(--text-1);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: var(--sp-h); white-space: nowrap;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease);
}
.chip::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
@media (hover: hover) { .chip:hover { box-shadow: inset 0 0 0 1px var(--line-strong); } }
.chip[aria-pressed="true"] { background: var(--text-1); color: var(--bg); box-shadow: none; font-weight: var(--fw-semi); }
.chip .c { color: var(--text-2); font-size: var(--fs-cap); font-family: var(--font-num); }
.chip[aria-pressed="true"] .c { color: inherit; opacity: .72; }
@media (min-width: 768px) { .chips { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; overflow: visible; } }
@media (min-width: 1200px) { .chip { height: 32px; padding: 0 12px; } }

/* ── 标签 ── */
.tags { display: flex; flex-wrap: wrap; gap: var(--sp-h); }
.tag { display: inline-flex; align-items: center; gap: 2px; height: 22px; padding: 0 7px; border-radius: var(--r-xs); font-size: var(--fs-cap); line-height: var(--lh-cap); font-weight: var(--fw-med); background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.tag.g { background: var(--brand-soft); color: var(--brand); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.r { background: var(--err-soft); color: var(--err); }
.tag.y { background: var(--accent); color: var(--accent-ink); }
.tag.on-dark { background: var(--hero-line); color: var(--on-color); }
@media (min-width: 1200px) { .tag { height: 20px; font-size: 11px; } }

/* ── 进度 ── */
.pbar { height: 6px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.pbar i { display: block; height: 100%; background: var(--brand); border-radius: var(--r-full); transition: width var(--dur-3) var(--ease-out); }
.ring { width: 24px; height: 24px; transform: rotate(-90deg); flex: none; }
.ring circle { fill: none; stroke-width: 3; }
.ring .bg { stroke: var(--surface-3); }
.ring .fg { stroke: var(--brand); stroke-linecap: round; }

/* ── 开关 ── */
.toggle { position: relative; width: 52px; height: 32px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; border-radius: var(--r-full); background: var(--surface-3); transition: background var(--dur-2) var(--ease); }
.toggle i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); transition: transform var(--dur-2) var(--ease-out); }
.toggle input:checked + i { background: var(--brand); }
.toggle input:checked + i::after { transform: translateX(20px); }
.toggle input:focus-visible + i { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (min-width: 1200px) { .toggle { width: 40px; height: 24px; } .toggle i::after { width: 20px; height: 20px; } .toggle input:checked + i::after { transform: translateX(16px); } }

/* ── 搜索 ── */
.search { display: flex; align-items: center; gap: var(--sp-1); height: var(--tap); padding: 0 var(--sp-1) 0 var(--sp-2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px transparent; transition: box-shadow var(--dur-1) var(--ease), background var(--dur-1) var(--ease); }
.search:focus-within { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px var(--ring); }
.search input, .search input:focus, .search input:focus-visible { outline: none; box-shadow: none; border: 0; background: transparent; border-radius: 0; -webkit-appearance: none; appearance: none; }
.search input::-webkit-search-decoration, .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: var(--fs-body); color: var(--text-1); height: var(--tap); }
.search input::placeholder { color: var(--text-2); }
.search kbd { display: none; }
@media (hover: hover) and (pointer: fine) { .search kbd { display: inline-flex; } .search:focus-within kbd { display: none; } }
@media (min-width: 1200px) { .search { height: 40px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); } .search input { height: 40px; font-size: 14px; } }

/* ── 品牌时刻：hero（v2 收紧：编号 72→64，内边距与高度都更克制） ── */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--hero); color: var(--on-hero);
  padding: var(--sp-3);
}
.hero::before { content: ""; position: absolute; left: var(--sp-3); top: 0; width: var(--sp-5); height: var(--sp-h); background: var(--accent); border-radius: 0 0 2px 2px; }
.hero .k { font-size: var(--fs-cap); line-height: var(--lh-cap); font-weight: var(--fw-semi); letter-spacing: .08em; color: var(--on-hero-2); }
.hero .no { display: flex; align-items: flex-end; gap: var(--sp-1); margin-top: var(--sp-2); }
.hero .no small { font-family: var(--font-num); font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-bold); color: var(--accent); padding-bottom: 6px; }
.hero .no b { font-family: var(--font-num); font-size: var(--fs-hero); line-height: var(--lh-hero); font-weight: 800; color: var(--accent); letter-spacing: var(--track-display); font-variant-numeric: tabular-nums; }
.hero h2 { margin-top: var(--sp-2); font-size: var(--fs-display); line-height: var(--lh-display); font-weight: var(--fw-bold); }
.hero .sub { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--on-hero-2); }
.hero .pbar { background: var(--hero-line); }
.hero .pbar i { background: var(--accent); }
.hero .acts { display: flex; gap: var(--sp-1); margin-top: var(--sp-3); }
.hero .acts .btn { flex: 1; }

/* ── 卡片 ── */
.card { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: var(--sp-2); }
@media (min-width: 1200px) { .card { border-radius: 12px; } }
/* 可点卡片的悬停：轻抬起，不变色 */
.lift { transition: transform var(--dur-1) var(--ease), box-shadow var(--dur-2) var(--ease); }
@media (hover: hover) { .lift:hover { box-shadow: var(--sh-hover); transform: translateY(-1px); } }

/* ── 底部弹层 / 居中对话框 ── */
.scrim { position: fixed; inset: 0; z-index: 70; touch-action: none; background: var(--scrim); opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.scrim.on { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 88vh; overflow: auto; overscroll-behavior: contain;
  background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--sh-2);
  padding: var(--sp-1) var(--sp-3) calc(var(--sp-3) + var(--safe-b));
  transform: translateY(100%); transition: transform var(--dur-3) var(--ease-out);
}
.sheet.on { transform: none; }
.sheet:focus { outline: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: var(--r-full); background: var(--surface-3); margin: 0 auto var(--sp-2); }
.sheet .x { position: absolute; right: var(--sp-1); top: var(--sp-1); width: var(--tap); height: var(--tap); display: flex; align-items: center; justify-content: center; color: var(--text-2); border-radius: var(--r-full); transition: background var(--dur-1) var(--ease); }
.sheet .x:active { background: var(--press); }
@media (hover: hover) { .sheet .x:hover { background: var(--hover); color: var(--text-1); } }
.sheet h3 { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: var(--fw-bold); padding-right: var(--sp-5); }
.sheet .lead { margin-top: var(--sp-1); color: var(--text-2); font-size: var(--fs-body); line-height: var(--lh-body); }
.sheet .acts { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-3); }
@media (min-width: 768px) {
  .sheet { left: calc(50% + var(--nav-w) / 2); right: auto; top: 50%; bottom: auto; width: 480px; max-height: 84vh; border-radius: var(--r-lg); transform: translate(-50%, calc(-50% + 12px)) scale(.98); opacity: 0; padding: var(--sp-3);
    transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease); }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
  .sheet .grab { display: none; }
  .sheet .acts { flex-direction: row-reverse; }
  .sheet .acts .btn { flex: 1; }
}
@media (min-width: 1200px) { .sheet { border-radius: 16px; } }

/* 快捷键面板 */
.keys-sheet { margin-top: var(--sp-2); display: grid; gap: var(--sp-2); }
.keys-sheet h4 { margin: 0 0 var(--sp-h); font-size: var(--fs-cap); line-height: var(--lh-cap); font-weight: var(--fw-semi); color: var(--text-2); letter-spacing: .04em; }
.keys-sheet div div { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 32px; font-size: var(--fs-sub); border-bottom: 1px solid var(--line); }
.keys-sheet span.k { display: inline-flex; gap: 4px; }

/* ── 提示条 ── */
.banner { display: flex; align-items: flex-start; gap: var(--sp-1); padding: var(--sp-2); border-radius: var(--r-md); font-size: var(--fs-sub); line-height: var(--lh-sub); }
.banner svg.i { width: 20px; height: 20px; margin-top: 1px; }
.banner.w { background: var(--warn-soft); color: var(--warn); }
.banner.r { background: var(--err-soft); color: var(--err); }
.banner.g { background: var(--brand-soft); color: var(--brand); }
.banner .m { flex: 1; min-width: 0; }
.banner b { display: block; font-weight: var(--fw-semi); }
.banner .t2 { color: var(--text-1); }
.banner a, .banner button.link { color: inherit; font-weight: var(--fw-semi); text-decoration: underline; text-underline-offset: 3px; }

/* ── 骨架屏 ── */
.sk { background: var(--surface-2); border-radius: var(--r-xs); position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, var(--press), transparent); animation: sk 1.2s var(--ease) infinite; }
@keyframes sk { to { transform: translateX(100%); } }
.sk.line { height: 16px; margin-top: var(--sp-1); }
.sk.sk-hero { height: 280px; border-radius: var(--r-lg); }
.sk.blk { height: 72px; border-radius: var(--r-md); margin-top: var(--sp-2); }

/* ── 空状态 ── */
.empty { padding: var(--sp-5) var(--sp-3); text-align: center; color: var(--text-2); font-size: var(--fs-sub); line-height: var(--lh-sub); }
.empty .ei { width: 56px; height: 56px; margin: 0 auto var(--sp-2); border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); }
.empty b { display: block; color: var(--text-1); font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-semi); margin-bottom: var(--sp-h); }

/* ── 外部站徽标 ── */
.mono { width: 48px; height: 48px; border-radius: var(--r-sm); flex: none; display: flex; align-items: center; justify-content: center;
  color: var(--on-color); font-family: var(--font-num); font-weight: var(--fw-bold); font-size: var(--fs-head); letter-spacing: -.01em; }
.mono.sm { width: 40px; height: 40px; font-size: var(--fs-sub); }
.mono.lg { width: 64px; height: 64px; border-radius: var(--r-md); font-size: var(--fs-title); }
@media (min-width: 1200px) { .mono { width: 40px; height: 40px; font-size: 14px; } .mono.sm { width: 32px; height: 32px; font-size: 12px; border-radius: 8px; } .mono.lg { width: 56px; height: 56px; } }

/* ── 横滑 ── */
.rail { display: flex; gap: var(--sp-2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: var(--sp-h) var(--gutter) var(--sp-2); margin: 0 calc(-1 * var(--gutter)); scroll-padding: 0 var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: none; }

/* ── 浮层提示 ── */
.toast {
  position: fixed; left: calc(50% + var(--nav-w) / 2); bottom: calc(var(--tabh) + var(--safe-b) + var(--sp-2)); transform: translate(-50%, var(--sp-2)); opacity: 0;
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--text-1); color: var(--bg); font-size: var(--fs-sub); line-height: var(--lh-sub); padding: 10px var(--sp-2); border-radius: var(--r-sm); z-index: 80;
  transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out); pointer-events: none; max-width: calc(100vw - var(--sp-4)); box-shadow: var(--sh-2);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.has-act { pointer-events: auto; }
.toast button { color: var(--accent); font-weight: var(--fw-semi); min-height: 32px; }
.no-tab ~ .toast, body.no-tab .toast { bottom: calc(var(--safe-b) + 96px); }
@media (min-width: 768px) { .toast { bottom: var(--sp-4); } body.no-tab .toast { bottom: 104px; } }

/* ── 播放中波形 ── */
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 16px; }
.eq i { width: 3px; height: 4px; background: currentColor; border-radius: 2px; animation: eq .9s var(--ease) infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 16px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .eq i { height: 10px; }
}

/* ── 口音选择 ── */
.acc-list { display: flex; flex-direction: column; gap: var(--sp-1); margin-top: var(--sp-3); }
.acc-opt { display: flex; align-items: center; gap: var(--sp-2); width: 100%; min-height: 72px; padding: var(--sp-2); border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px transparent; text-align: left; transition: box-shadow var(--dur-2) var(--ease), background var(--dur-2) var(--ease), transform var(--dur-1) var(--ease); }
.acc-opt:active { transform: scale(.98); }
@media (hover: hover) { .acc-opt:hover { box-shadow: inset 0 0 0 1.5px var(--line-strong); } }
.acc-opt .m { flex: 1; min-width: 0; }
.acc-opt b { display: block; font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-semi); }
.acc-opt span span, .acc-opt .m > span { display: block; font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); }
.acc-opt .rd { width: 22px; height: 22px; border-radius: var(--r-full); box-shadow: inset 0 0 0 2px var(--line-strong); flex: none; transition: box-shadow var(--dur-2) var(--ease); }
.acc-opt[aria-pressed="true"] { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.acc-opt[aria-pressed="true"] .rd { box-shadow: inset 0 0 0 7px var(--brand); }
.acc-note { margin-top: var(--sp-2); font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); }

/* ── 资料页分段控件：桌面上收窄，不再拉满整行 ── */
@media (min-width: 768px) { .lt .seg.files { max-width: 420px; } }

@media (min-width: 768px) { .sh .meta.swipe { display: none; } }

/* ── 单元状态标签：文字 + 颜色（不靠小圆点） ── */
.stag { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: var(--r-xs); font-size: 12px; line-height: 16px; font-weight: var(--fw-semi); white-space: nowrap; flex: none; }
.stag svg.i { width: 12px; height: 12px; stroke-width: 2.5; }
.stag i { font-style: normal; font-weight: var(--fw-med); opacity: .8; margin-left: 2px; }
.stag.new { background: var(--surface-2); color: var(--text-2); }
.stag.doing { background: var(--warn-soft); color: var(--warn); }
.stag.done { background: var(--brand-soft); color: var(--brand); }
.stag.lk { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
@media (min-width: 1200px) { .stag { height: 20px; font-size: 11px; } }

/* ═════════ 新手指引（coach marks）：遮罩挖孔 + 气泡 ═════════ */
.coach { position: fixed; inset: 0; z-index: 90; opacity: 0; transition: opacity var(--dur-2) var(--ease); }
.coach.on { opacity: 1; }
.coach-block { position: absolute; inset: 0; touch-action: none; }
.coach-mask { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.coach-mask path { fill: var(--scrim-coach); }
.coach-hole { position: fixed; pointer-events: none; border-radius: 14px;
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--accent);
  transition: left var(--dur-3) var(--ease-out), top var(--dur-3) var(--ease-out), width var(--dur-3) var(--ease-out), height var(--dur-3) var(--ease-out), border-radius var(--dur-3) var(--ease-out); }
.coach[data-step="5"] .coach-block { cursor: default; }
.coach-pop { position: fixed; width: min(340px, calc(100vw - var(--sp-4))); padding: var(--sp-2) var(--sp-2) 12px; border-radius: var(--r-md); background: var(--surface); color: var(--text-1); box-shadow: var(--sh-2); outline: none;
  transition: left var(--dur-3) var(--ease-out), top var(--dur-3) var(--ease-out); }
.coach-pop.mv { animation: d-in var(--dur-3) var(--ease-out) both; }
.coach-arrow { position: absolute; width: 14px; height: 14px; background: var(--surface); transform: translate(-50%, 0) rotate(45deg); border-radius: 2px; }
.coach-pop[data-side="top"] .coach-arrow { bottom: -6px; }
.coach-pop[data-side="bottom"] .coach-arrow { top: -6px; }
.coach-pop[data-side="right"] .coach-arrow { left: -6px !important; transform: translate(0, -50%) rotate(45deg); }
.coach-pop[data-side="inside"] .coach-arrow { display: none; }
.coach-hd { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1); margin: -6px 0 2px; }
.coach-n { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: var(--fs-cap); line-height: var(--lh-cap); font-weight: var(--fw-semi); color: var(--brand); letter-spacing: .04em; }
.coach-skip { min-height: var(--tap); min-width: var(--tap); padding: 0 var(--sp-1); margin-right: calc(var(--sp-1) * -1); border-radius: var(--r-xs); color: var(--text-2); font-size: var(--fs-sub); }
@media (hover: hover) { .coach-skip:hover { color: var(--text-1); background: var(--hover); } }
.coach-pop h3 { font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-bold); }
.coach-pop p { margin-top: var(--sp-h); font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); }
.coach-ft { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1); margin-top: 12px; }
.coach-dots { display: flex; gap: 6px; }
.coach-dots i { width: 6px; height: 6px; border-radius: var(--r-full); background: var(--surface-3); transition: width var(--dur-2) var(--ease), background var(--dur-2) var(--ease); }
.coach-dots i.past { background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.coach-dots i.on { width: 18px; background: var(--brand); }
.coach-btns { display: flex; gap: var(--sp-1); }
.coach-btns .btn { min-height: var(--tap); padding: 0 14px; }
.coach-btns .btn::after { content: none; }
.coach-btns .btn[disabled] { opacity: .45; }
@media (min-width: 1200px) {
  .coach-pop { width: 320px; padding: var(--sp-2) var(--sp-2) 14px; border-radius: 12px; }
  .coach-skip { min-height: 32px; min-width: 32px; }
  .coach-btns .btn { min-height: 32px; }
}

/* ── 学习页：新手横幅「3 分钟看懂怎么学」 ── */
.gbn { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px var(--sp-1) 10px 10px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); }
.gbn .gi { width: 72px; flex: none; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.gbn .gi img { display: block; width: 100%; height: 100%; object-fit: cover; filter: var(--img-dim); }
.gbn a.m { flex: 1; min-width: 0; color: var(--text-1); border-radius: var(--r-xs); }
.gbn a.m::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.gbn b { display: block; font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-semi); }
.gbn .m span { display: block; font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); }
.gbn .x { position: relative; z-index: 1; width: var(--tap); height: var(--tap); flex: none; display: flex; align-items: center; justify-content: center; border-radius: var(--r-full); color: var(--text-2); }
.gbn .x:active { background: var(--press); }
@media (hover: hover) { .gbn:hover { box-shadow: var(--sh-hover); } .gbn .x:hover { background: var(--hover); color: var(--text-1); } }
@media (min-width: 1200px) { .gbn { border-radius: 12px; padding: 8px var(--sp-1) 8px 8px; } .gbn .gi { width: 64px; } .gbn .x { width: 32px; height: 32px; } }

/* ═════════ 双击查词（lookup.js）：桌面贴词弹出，手机底部 sheet ═════════ */
.lk-pop { position: fixed; z-index: 85; width: 340px; max-width: calc(100vw - 24px); padding: var(--sp-2); border-radius: 12px; background: var(--surface); color: var(--text-1); box-shadow: var(--sh-2), 0 0 0 1px var(--line); outline: none;
  opacity: 0; transform: translateY(4px); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease-out); }
.lk-pop.on { opacity: 1; transform: none; }
.lk-pop::before { content: ""; position: absolute; left: var(--ax, 50%); width: 12px; height: 12px; background: var(--surface); transform: translateX(-50%) rotate(45deg); box-shadow: -1px -1px 0 var(--line); }
.lk-pop[data-side="bottom"]::before { top: -6px; }
.lk-pop[data-side="top"]::before { bottom: -6px; box-shadow: 1px 1px 0 var(--line); }
.lk-x { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; color: var(--text-2); }
@media (hover: hover) { .lk-x:hover { background: var(--hover); color: var(--text-1); } }
.lk-card { min-height: 64px; }
.lk-card .sk.line { margin-top: 10px; }
.lk-hd { display: flex; align-items: center; gap: var(--sp-1); padding-right: var(--sp-5); }
.lk-w { font-family: var(--font-word); font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.005em; }
.lk-ph { display: flex; align-items: center; gap: var(--sp-1); margin-top: 6px; }
.lk-ipa { font-family: var(--font-ipa); font-size: var(--fs-body); color: var(--text-2); }
.lk-acc { font-size: 11px; line-height: 18px; padding: 0 5px; border-radius: 4px; background: var(--surface-2); color: var(--text-2); }
.lk-play { position: relative; width: 36px; height: 36px; border-radius: var(--r-full); display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--brand-soft); color: var(--brand); transition: background var(--dur-1) var(--ease); }
.lk-play.sm { width: 28px; height: 28px; margin-top: 1px; }
.lk-play.sm::after { content: ""; position: absolute; inset: -8px; }
.lk-play.on { background: var(--brand); color: var(--brand-on); }
.lk-play[disabled] { opacity: .4; cursor: default; }
.lk-zh { margin-top: var(--sp-1); font-size: var(--fs-body); line-height: var(--lh-body); }
.lk-zh i { font-style: normal; font-family: var(--font-num); color: var(--text-2); margin-right: 6px; font-size: var(--fs-sub); }
.lk-ex { display: flex; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lk-ex p { font-size: var(--fs-sub); line-height: var(--lh-sub); }
.lk-ex p.z { color: var(--text-2); margin-top: 2px; }
.lk-ex mark { background: var(--accent-soft); color: inherit; border-radius: 3px; padding: 0 2px; }
.lk-acts { display: flex; margin-top: 12px; }
.lk-acts .btn svg { width: 14px; height: 14px; stroke-width: 2.25; }
.lk-miss .lk-zh { color: var(--text-2); }
.lk-ext { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); font-size: var(--fs-sub); font-weight: var(--fw-semi); }
.lk-sheet .lk-w { font-size: 34px; line-height: 40px; }
.lk-sheet .lk-acts .btn { min-height: var(--tap); }
.lk-sheet .lk-play { width: var(--tap); height: var(--tap); }
.lk-sheet .lk-play.sm { width: 36px; height: 36px; }
[lang="en"] { -webkit-touch-callout: none; }

/* ── v4 「我的进度」小球：学习 / 课程 / 资料 / 单元页右下角，可拖动吸边 ── */
.fab {
  --fab-min: calc(var(--tabh) + var(--safe-b) + 16px);
  position: fixed; z-index: 50; right: 12px; bottom: clamp(var(--fab-min), var(--fab-b, 0px), calc(100vh - 140px));
  width: 56px; height: 56px; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text-1); box-shadow: var(--sh-2), 0 0 0 1px var(--line);
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  transition: transform var(--dur-2) var(--ease), opacity var(--dur-2) var(--ease), visibility var(--dur-2), box-shadow var(--dur-2) var(--ease);
}
.fab[data-side="l"] { right: auto; left: calc(var(--nav-w) + 12px); }
.fab.drag { cursor: grabbing; transition: none; transform: scale(1.06); }
.fab svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.fab svg circle, .pp-ring svg circle { fill: none; stroke-linecap: round; }
.fab svg .bg, .pp-ring svg .bg { stroke: var(--surface-3); }
.fab svg .fg, .pp-ring svg .fg { stroke: var(--brand); transition: stroke-dasharray var(--dur-3) var(--ease-out); }
.fab.full svg .fg { stroke: var(--accent); }
.fab-n { position: relative; font-family: var(--font-num); font-variant-numeric: tabular-nums; font-size: 11px; line-height: 1; color: var(--text-2); font-weight: var(--fw-semi); }
.fab-n b { font-size: 17px; color: var(--text-1); font-weight: 800; }
.fab:active:not(.drag) { transform: scale(.94); }
@media (hover: hover) { .fab:hover { box-shadow: var(--sh-2), 0 0 0 1px var(--line-strong); } }
body.no-tab .fab { --fab-min: calc(var(--safe-b) + 16px); }
body:has(.player:not([hidden])) .fab { --fab-min: calc(72px + var(--safe-b) + 16px); }
body.has-fab .main { padding-bottom: calc(var(--tabh) + var(--safe-b) + 88px); }
body.has-fab .main.no-tab { padding-bottom: calc(var(--safe-b) + 168px); }
.coach-on .fab { display: none; }
/* 默写 / 脱口而出答题中：手机隐藏，平板桌面缩小变淡 */
.quiz .fab { opacity: 0; visibility: hidden; transform: scale(.6); pointer-events: none; }
@media (min-width: 768px) {
  .fab { --fab-min: 24px; right: 24px; }
  .fab[data-side="l"] { left: calc(var(--nav-w) + 24px); }
  body.has-fab .main, body.has-fab .main.no-tab { padding-bottom: var(--sp-8); }
  body:has(.player:not([hidden])) .fab { --fab-min: 88px; }
}
/* 鼠标设备缩小变淡（悬停恢复）；触屏平板仍隐藏，避免出现小于 44px 的触控目标 */
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .quiz .fab { opacity: .5; visibility: visible; transform: scale(.72); pointer-events: auto; }
  .quiz .fab:hover, .quiz .fab:focus-visible { opacity: 1; transform: none; }
}

/* 面板：手机底部 sheet；平板桌面右侧抽屉 */
.sheet.pp { padding-top: var(--sp-1); }
.pp-tabs { margin-top: var(--sp-2); position: sticky; top: calc(-1 * var(--sp-1)); z-index: 2; box-shadow: 0 0 0 6px var(--surface); }
.pp-body { margin-top: var(--sp-2); outline: none; }
.pp-today { display: flex; align-items: center; gap: var(--sp-3); }
.pp-ring { position: relative; width: 88px; height: 88px; flex: none; }
.pp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pp-ring > span { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; align-items: baseline; gap: 2px; font-family: var(--font-num); }
.pp-ring b { font-size: 26px; line-height: 28px; font-weight: 800; letter-spacing: var(--track-display); }
.pp-ring i { font-style: normal; font-size: var(--fs-sub); color: var(--text-2); font-weight: var(--fw-semi); }
.pp-ring small { flex-basis: 100%; text-align: center; font-size: 11px; line-height: 14px; color: var(--text-2); font-family: var(--font); }
.pp-kv { flex: 1; min-width: 0; display: grid; gap: var(--sp-1); }
.pp-kv div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-1); }
.pp-kv dt { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); }
.pp-kv dd { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp-kv dd small { margin-left: 4px; font-size: var(--fs-cap); color: var(--text-2); font-weight: var(--fw-semi); }
.pp-sh { margin: var(--sp-3) 0 var(--sp-1); font-size: var(--fs-cap); line-height: var(--lh-cap); font-weight: var(--fw-semi); color: var(--text-2); letter-spacing: .04em; }
.pp-tiers { display: grid; gap: 12px; padding: var(--sp-2); border-radius: var(--r-md); background: var(--surface-2); }
.pp-tier { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.pp-tier b { font-size: var(--fs-head); font-weight: var(--fw-bold); }
.pp-tier .pbar { background: var(--surface-3); }
.pp-tier .num { font-size: var(--fs-sub); color: var(--text-2); font-variant-numeric: tabular-nums; min-width: 92px; text-align: right; }
.pp-go { margin-top: var(--sp-3); gap: var(--sp-1); }
.pp-week { display: grid; gap: var(--sp-1); }
.pp-day { padding: 10px 12px 6px; border-radius: var(--r-md); background: var(--surface-2); }
.pp-day.today { background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.pp-dh { display: flex; align-items: baseline; gap: var(--sp-1); min-height: 24px; }
.pp-dh b { font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-semi); }
.pp-day.today .pp-dh b { color: var(--brand); }
.pp-dh .num { font-size: var(--fs-sub); color: var(--text-2); }
.pp-rev { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--r-full); background: var(--accent); color: var(--accent-ink); font-size: var(--fs-cap); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; align-self: center; }
.pp-rev svg.i { width: 12px; height: 12px; stroke-width: 2.5; }
.pp-us a { display: flex; align-items: center; gap: var(--sp-1); min-height: var(--tap); color: var(--text-1); border-radius: var(--r-xs); }
.pp-us li + li a { border-top: 1px solid var(--line); }
.pp-us .no { width: 32px; flex: none; font-size: var(--fs-sub); color: var(--text-2); }
.pp-us .t { flex: 1; min-width: 0; font-size: var(--fs-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-us a.done .t { color: var(--text-2); }
.pp-us .ok { display: inline-flex; width: 22px; height: 22px; border-radius: var(--r-full); align-items: center; justify-content: center; background: var(--brand); color: var(--brand-on); flex: none; }
.pp-us .ok svg.i { width: 13px; height: 13px; stroke-width: 2.75; }
@media (hover: hover) { .pp-us a:hover .t { color: var(--brand); } }
.pp-none { min-height: var(--tap); display: flex; align-items: center; font-size: var(--fs-sub); color: var(--text-2); }
.pp-road { position: relative; display: grid; }
.pp-stg { position: relative; display: flex; gap: var(--sp-2); padding-bottom: var(--sp-3); }
.pp-stg::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--surface-3); }
.pp-stg:last-child::before { display: none; }
.pp-stg.past::before { background: var(--brand); }
.pp-stg .pt { width: 32px; height: 32px; flex: none; border-radius: var(--r-full); display: flex; align-items: center; justify-content: center; background: var(--surface); box-shadow: inset 0 0 0 2px var(--surface-3); font-family: var(--font-num); font-weight: var(--fw-bold); font-size: var(--fs-sub); color: var(--text-2); }
.pp-stg.past .pt { background: var(--brand-soft); box-shadow: none; color: var(--brand); }
.pp-stg.cur .pt { background: var(--brand); color: var(--brand-on); box-shadow: 0 0 0 4px var(--brand-soft); }
.pp-stg .m { flex: 1; min-width: 0; padding-top: 4px; }
.pp-stg .h { display: flex; align-items: center; gap: var(--sp-1); }
.pp-stg .h b { font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-semi); }
.pp-stg .now { height: 20px; padding: 0 6px; border-radius: var(--r-xs); background: var(--brand); color: var(--brand-on); font-size: 11px; line-height: 20px; font-weight: var(--fw-semi); }
.pp-stg .pbar { margin-top: var(--sp-1); height: 4px; }
.pp-meta { display: flex; flex-wrap: wrap; gap: 2px var(--sp-2); margin-top: 6px; font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); font-variant-numeric: tabular-nums; }
.pp-stg.cur .pp-meta span:last-child { color: var(--text-1); }
.pp-all { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); padding: 12px var(--sp-2); border-radius: var(--r-md); background: var(--surface-2); font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); }
.pp-all b { color: var(--text-1); font-weight: var(--fw-semi); }
@media (min-width: 768px) {
  .sheet.pp { left: auto; right: 0; top: 0; bottom: 0; width: 420px; max-height: none; border-radius: 16px 0 0 16px; padding: var(--sp-3); transform: translateX(32px); opacity: 0; }
  .sheet.pp.on { transform: none; opacity: 1; }
  .pp-tabs { top: calc(-1 * var(--sp-3)); }
}

/* ── v4 报错 ── */
.rp-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px var(--sp-1); margin-top: var(--sp-1); font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); }
.rp-meta b { font-family: var(--font-word); font-size: var(--fs-head); color: var(--text-1); font-weight: 600; }
.rp-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-1); margin-top: var(--sp-2); }
.rp-types button { min-height: var(--tap); padding: 0 var(--sp-1); border-radius: var(--r-sm); background: var(--surface-2); color: var(--text-1); font-size: var(--fs-sub); font-weight: var(--fw-med); transition: background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.rp-types button[aria-checked="true"] { background: var(--brand-soft); color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); font-weight: var(--fw-semi); }
@media (hover: hover) { .rp-types button:hover { background: var(--surface-3); } .rp-types button[aria-checked="true"]:hover { background: var(--brand-soft); } }
.rp-note { display: block; width: 100%; height: var(--tap); margin-top: var(--sp-2); padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-1); font: inherit; font-size: var(--fs-body); }
.rp-note::placeholder { color: var(--text-3); }
.rp-note:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.lk-acts { gap: var(--sp-1); align-items: center; }
.flagb { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 10px; margin-left: auto; border-radius: var(--r-full); color: var(--text-2); font-size: var(--fs-sub); position: relative; }
.flagb::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.flagb svg.i { width: 15px; height: 15px; }
@media (hover: hover) { .flagb:hover { background: var(--hover); color: var(--text-1); } }
.tag.rev { margin-left: var(--sp-1); vertical-align: middle; font-weight: var(--fw-med); color: var(--text-2); }
.rp-list .row { cursor: default; }
.stag.fixed { background: var(--brand-soft); color: var(--brand); }
.stag.recv { background: var(--surface-2); color: var(--text-2); }
.pp-stg .pbar, .pp-tier .pbar { display: block; }
.lk-img { display: block; width: 100%; max-width: 360px; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 12px; background: var(--surface-2); filter: var(--img-dim); }
.lk-sheet .lk-img { margin: var(--sp-1) auto var(--sp-2) 0; }

/* ── v4 全集地图：入口卡 + sheet（网页版，标出当前册） ── */
.mapc { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 8px 12px 8px 8px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-1); text-align: left; color: var(--text-1); }
.mapc .mi { width: 48px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.mapc .mi img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: var(--img-dim); }
.mapc .m { flex: 1; min-width: 0; }
.mapc .m b { display: block; font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-semi); }
.mapc .m span { display: block; font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapc .chev { width: 16px; height: 16px; color: var(--text-3); flex: none; }
@media (hover: hover) { .mapc:hover { box-shadow: var(--sh-hover); } }
.vm-data { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--sp-2); }
.vm-data span { padding: 2px 10px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: var(--fs-cap); font-weight: var(--fw-semi); }
.vm-data b { font-size: var(--fs-head); font-weight: 800; margin-right: 2px; }
.vm-part { margin-top: var(--sp-3); padding-left: 12px; border-left: 3px solid var(--brand); }
.vm-part h4 { font-size: var(--fs-head); line-height: var(--lh-head); font-weight: var(--fw-bold); }
.vm-part h4 span { font-family: var(--font-word); font-weight: 400; color: var(--text-2); font-size: var(--fs-sub); margin-left: 4px; }
.vm-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
.vm-bk { display: flex; flex-direction: column; gap: 2px; min-height: var(--tap); padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-1); }
.vm-bk .n { display: flex; align-items: center; gap: 6px; font-size: var(--fs-cap); font-weight: var(--fw-bold); color: var(--brand); }
.vm-bk .n i { font-style: normal; padding: 0 6px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); }
.vm-bk b { font-size: var(--fs-body); line-height: var(--lh-sub); font-weight: var(--fw-bold); }
.vm-bk .u { font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--text-2); }
.vm-bk.on { background: var(--brand); box-shadow: 0 0 0 2px var(--accent); color: var(--brand-on); }
.vm-bk.on .n, .vm-bk.on .u { color: var(--brand-on); opacity: .9; }
@media (hover: hover) { .vm-bk:not(.on):hover { box-shadow: inset 0 0 0 1px var(--line-strong); } }
.vm-png { display: inline-flex; align-items: center; gap: 4px; min-height: var(--tap); margin-top: var(--sp-2); color: var(--brand); font-weight: var(--fw-semi); font-size: var(--fs-sub); }
@media (min-width: 768px) { .sheet.mapsheet { width: min(760px, calc(100vw - var(--nav-w) - 64px)); } }

/* ── 头像（avatar.js）：预设库图片或文字头像，统一圆形 ── */
.xav { display: inline-grid; place-items: center; width: var(--av, 32px); height: var(--av, 32px); flex: none; border-radius: 50%; overflow: hidden; color: var(--on-color); font-weight: var(--fw-semi); font-size: calc(var(--av, 32px) * .44); line-height: 1; user-select: none; }
.xav img { display: block; width: 100%; height: 100%; }
.xav-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: var(--sp-1); }
.xav-pick button { display: grid; place-items: center; aspect-ratio: 1; min-height: var(--tap); padding: 0; border-radius: 50%; }
.xav-pick button .xav { width: 100%; height: 100%; max-width: 56px; max-height: 56px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--dur-1) var(--ease), transform var(--dur-1) var(--ease); }
.xav-pick button[aria-checked="true"] .xav { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.xav-pick button:focus-visible { outline: none; }
.xav-pick button:focus-visible .xav { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ring); }
@media (hover: hover) { .xav-pick button:hover .xav { transform: scale(1.05); } }

/* ── 英 / 美 音标发音按钮（XG.ipaBtns）：小标签外观，热区 ≥44px；英 = 品牌绿描边，美 = 琥珀描边 ── */
.ipb { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 24px; padding: 2px 6px 2px 3px; margin: 0; border-radius: var(--r-xs); color: var(--text-1); font: inherit; white-space: nowrap; cursor: pointer; transition: background var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); --ipc: var(--brand); }
.ipb.us { --ipc: var(--warn); }
.ipb::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 44px; transform: translateY(-50%); }
.ipb .ac { display: inline-flex; align-items: center; height: 16px; padding: 0 3px; border-radius: 3px; box-shadow: inset 0 0 0 1px var(--ipc); color: var(--ipc); font-size: 10px; line-height: 16px; font-weight: var(--fw-bold); transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); }
.ipb .ipa { font-family: var(--font-ipa); }
.ipb .wv { display: none; height: 12px; color: var(--ipc); }
.ipb .wv i { width: 2px; }
.ipb.on .wv { display: inline-flex; }
@media (hover: hover) { .ipb:hover { background: var(--hover); } .ipb:hover .ac { background: var(--ipc); color: var(--surface); } }
.ipb:active { background: var(--press); }
.ipb.on { background: color-mix(in srgb, var(--ipc) 12%, transparent); }
.ipb.on .ac { background: var(--ipc); color: var(--surface); }
.ipb:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
@keyframes ipw { 0%, 100% { height: 3px; } 50% { height: 12px; } }
.ipb .wv i { animation-name: ipw; }
.lk-ipas { display: inline-flex; flex-wrap: wrap; gap: 2px; margin-left: -3px; font-size: 14px; line-height: 20px; }
/* 热区只在触屏放大（鼠标下 32px）。触屏：英往上、美往下各多出 18px（26 + 18 = 44），长词音标换成两行时上下热区也不重叠 */
@media (pointer: fine) { .ipb::after { height: auto; transform: none; } .ipb.uk::after { top: -8px; bottom: 0; } .ipb.us::after { top: 0; bottom: -8px; } }  /* 鼠标：热区 32px，同样英往上、美往下 */
@media (pointer: coarse) {
  .ipb { min-height: 26px; }
  .w .wi { margin-top: 12px; }  /* 英的热区往上 18px，只压到词头底部的降部，不挡长按查词 */
  .ipb::after { height: auto; transform: none; }
  .ipb.uk::after { top: -18px; bottom: 0; }
  .ipb.us::after { top: 0; bottom: -18px; }
}

/* ICP 备案号（工信部要求挂在首页底部并链到 beian.miit.gov.cn）：兑换页、「学习」首页底部各一处，「我的 → 关于与来源」里也写。
   链接本身做足一个触控目标的高度（站内回归要求可点元素 ≥44px），视觉上只是一行小灰字。 */
.icpf { display: flex; justify-content: center; padding: var(--sp-3) var(--sp-2) var(--sp-2); }
.icp { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-1); font-size: var(--fs-cap); line-height: var(--lh-cap); color: var(--text-3); text-decoration: none; }
@media (hover: hover) { .icp:hover { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; } }
