/* =====================================================================
   精读 · Liquid Glass 设计系统（iPadOS 26 风格）
   ===================================================================== */

:root {
  color-scheme: light dark;
  --font-ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-read: ui-serif, "New York", "Iowan Old Style", "Charter", Georgia, "Songti SC", serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, sans-serif;

  --bg: #eef0f6;
  --label: #0b0b0f;
  --label-2: rgba(40, 40, 52, .62);
  --label-3: rgba(40, 40, 52, .36);
  --sep: rgba(60, 60, 80, .12);
  --fill: rgba(120, 120, 140, .12);
  --fill-2: rgba(120, 120, 140, .08);

  --tint: #0a84ff;
  --tint-soft: rgba(10, 132, 255, .14);

  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-paper: rgba(255, 255, 255, .80);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-edge-2: rgba(255, 255, 255, .18);
  --glass-shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 8px 24px rgba(30, 40, 80, .08), 0 24px 60px rgba(30, 40, 80, .08);
  --glass-blur: blur(28px) saturate(190%);

  /* 标注色 */
  --c-main: #ff375f;     /* 谓语 */
  --c-main-bg: rgba(255, 55, 95, .12);
  --c-sig: #0a84ff;      /* 连词 / 信号词 */
  --c-sig-bg: rgba(10, 132, 255, .12);
  --c-aside: #8e8e93;    /* 插入语 */

  /* 词汇分类色 */
  --v-required: #ff9f0a;
  --v-basic: #30d158;
  --v-extra: #bf5af2;
  --v-derived: #40c8e0;
  --v-contextual: #8e8e93;

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;

  --spring: cubic-bezier(.32, 1.28, .5, 1);
  --ease: cubic-bezier(.25, .8, .25, 1);

  --read-size: 21px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] {
  --bg: #050507;
  --label: #f5f5f7;
  --label-2: rgba(235, 235, 245, .62);
  --label-3: rgba(235, 235, 245, .32);
  --sep: rgba(255, 255, 255, .10);
  --fill: rgba(120, 120, 128, .24);
  --fill-2: rgba(120, 120, 128, .14);
  --tint-soft: rgba(10, 132, 255, .22);
  --glass: rgba(38, 38, 44, .46);
  --glass-strong: rgba(44, 44, 50, .70);
  --glass-paper: rgba(28, 28, 32, .78);
  --glass-edge: rgba(255, 255, 255, .26);
  --glass-edge-2: rgba(255, 255, 255, .04);
  --glass-shadow: 0 1px 1px rgba(0, 0, 0, .2), 0 10px 30px rgba(0, 0, 0, .35), 0 30px 80px rgba(0, 0, 0, .35);
  --c-main-bg: rgba(255, 55, 95, .20);
  --c-sig-bg: rgba(10, 132, 255, .22);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font-ui);
  color: var(--label);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
  transition: background .4s var(--ease), color .4s var(--ease);
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
svg { display: block; }

/* ---------------------------------------------------------------- 背景 */
.backdrop { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.b1 { width: 60vmax; height: 60vmax; left: -18vmax; top: -22vmax; background: radial-gradient(circle, #8ec5ff 0%, transparent 65%); animation: drift1 38s ease-in-out infinite alternate; }
.b2 { width: 55vmax; height: 55vmax; right: -20vmax; top: 10vh; background: radial-gradient(circle, #ffb3d1 0%, transparent 65%); animation: drift2 44s ease-in-out infinite alternate; }
.b3 { width: 50vmax; height: 50vmax; left: 10vw; bottom: -25vmax; background: radial-gradient(circle, #b5f5d8 0%, transparent 65%); animation: drift3 50s ease-in-out infinite alternate; }
.b4 { width: 36vmax; height: 36vmax; right: 18vw; bottom: 8vh; background: radial-gradient(circle, #d9c6ff 0%, transparent 65%); animation: drift1 56s ease-in-out infinite alternate-reverse; }
[data-theme="dark"] .blob { opacity: .32; }
[data-theme="dark"] .b1 { background: radial-gradient(circle, #1d5cff 0%, transparent 65%); }
[data-theme="dark"] .b2 { background: radial-gradient(circle, #c2185b 0%, transparent 65%); }
[data-theme="dark"] .b3 { background: radial-gradient(circle, #00897b 0%, transparent 65%); }
[data-theme="dark"] .b4 { background: radial-gradient(circle, #6a1b9a 0%, transparent 65%); }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-6vw, 10vh) scale(.94); } }
@keyframes drift3 { to { transform: translate(6vw, -8vh) scale(1.1); } }
body.reading .blob { animation-play-state: paused; }

#app { position: relative; min-height: 100%; }

/* ---------------------------------------------------------------- Liquid Glass 基础材质 */
.glass {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge), inset 0 -1px 0 var(--glass-edge-2);
  isolation: isolate;
}
/* 边缘高光（镜面反射环） */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, var(--glass-edge) 0%, transparent 32%, transparent 64%, var(--glass-edge) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* 顶部柔光 */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 46%);
}
[data-theme="dark"] .glass::after { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 46%); }
.glass.strong { background: var(--glass-strong); }
.glass.paper { background: var(--glass-paper); }

.pressable { transition: transform .45s var(--spring), background .25s, box-shadow .3s; }
.pressable:active { transform: scale(.955); transition-duration: .12s; }

/* ---------------------------------------------------------------- 顶部浮动栏 */
.topbar {
  position: fixed; z-index: 50; left: 0; right: 0;
  top: calc(var(--safe-t) + 14px);
  padding: 0 18px;
  display: flex; align-items: center; gap: 12px;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar .spacer { flex: 1; pointer-events: none; }
.topbar .title-pill {
  height: 48px; padding: 0 20px; border-radius: 24px; display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px; max-width: 34vw; min-width: 0;
}
.topbar .title-pill span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .title-pill small { color: var(--label-2); font-weight: 500; font-size: 13px; white-space: nowrap; }

.circle-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none;
}
.circle-btn svg { width: 22px; height: 22px; }
.circle-btn.on { color: var(--tint); }

.capsule { display: flex; align-items: center; border-radius: 24px; height: 48px; padding: 4px; gap: 2px; }
.capsule .cbtn { height: 40px; min-width: 40px; padding: 0 12px; border-radius: 20px; display: grid; place-items: center; }
.capsule .cbtn svg { width: 21px; height: 21px; }
.capsule .cbtn.on { color: var(--tint); }

/* ---------------------------------------------------------------- 分段控件（玻璃滑块） */
.segmented {
  position: relative; display: inline-flex; align-items: center; padding: 4px; border-radius: 24px; height: 48px;
}
.segmented .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 0; border-radius: 20px; z-index: 0;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .10), inset 0 1px 0 #fff, inset 0 0 0 .5px rgba(0, 0, 0, .04);
  transition: transform .5s var(--spring), width .5s var(--spring);
}
[data-theme="dark"] .segmented .thumb { background: rgba(255, 255, 255, .18); box-shadow: 0 2px 10px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .22); }
.segmented button {
  position: relative; z-index: 1; height: 40px; padding: 0 18px; border-radius: 20px;
  font-size: 15px; font-weight: 600; color: var(--label-2); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; transition: color .25s;
}
.segmented button svg { width: 17px; height: 17px; }
.segmented button.on { color: var(--label); }

/* ---------------------------------------------------------------- 首页 */
.page { padding: calc(var(--safe-t) + 92px) 40px calc(var(--safe-b) + 60px); max-width: 1180px; margin: 0 auto; }
.large-title { font-size: 40px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.subtitle { color: var(--label-2); font-size: 16px; margin: 0 0 26px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 4px 14px; }
.section-h h2 { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.section-h span { color: var(--label-2); font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { border-radius: var(--r-lg); padding: 18px 20px; }
.stat .k { font-size: 13px; color: var(--label-2); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .k svg { width: 15px; height: 15px; }
.stat .v { font-family: var(--font-round); font-size: 32px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.stat .v small { font-size: 15px; color: var(--label-3); font-weight: 600; margin-left: 2px; }

.continue { margin-top: 14px; border-radius: var(--r-xl); padding: 22px 26px; display: flex; gap: 22px; align-items: center; cursor: pointer; }
.continue .ring { flex: none; width: 74px; height: 74px; }
.continue .meta { flex: 1; min-width: 0; }
.continue .eyebrow { font-size: 13px; color: var(--tint); font-weight: 700; letter-spacing: .02em; }
.continue h3 { margin: 4px 0 4px; font-size: 21px; letter-spacing: -.01em; }
.continue p { margin: 0; color: var(--label-2); font-family: var(--font-read); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue .go { flex: none; height: 44px; padding: 0 20px; border-radius: 22px; background: var(--tint); color: #fff; font-weight: 600; display: flex; align-items: center; gap: 6px; box-shadow: 0 6px 18px rgba(10, 132, 255, .35); }
.continue .go svg { width: 16px; height: 16px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tcard { border-radius: var(--r-xl); padding: 22px 24px 20px; cursor: pointer; display: flex; flex-direction: column; min-height: 220px; }
.tcard .top { display: flex; align-items: center; gap: 8px; }
.chip { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--fill); color: var(--label-2); letter-spacing: .02em; }
.chip.tint { background: var(--tint-soft); color: var(--tint); }
.chip.done { background: rgba(48, 209, 88, .16); color: #1f9d48; }
.tcard h3 { font-size: 21px; margin: 14px 0 8px; letter-spacing: -.01em; line-height: 1.3; }
.tcard .excerpt { font-family: var(--font-read); color: var(--label-2); font-size: 16px; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcard .foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 14px; color: var(--label-2); font-size: 13px; font-weight: 500; }
.bar { flex: 1; height: 6px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #5ac8fa, var(--tint)); transition: width .8s var(--ease); }
.tcard.ghost { background: transparent; box-shadow: none; border: 1.5px dashed var(--sep); -webkit-backdrop-filter: none; backdrop-filter: none; cursor: default; min-height: 140px; justify-content: center; align-items: center; color: var(--label-3); text-align: center; font-weight: 600; }
.tcard.ghost::before, .tcard.ghost::after { display: none; }

/* ---------------------------------------------------------------- 阅读页布局 */
.reader { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; max-width: 1340px; margin: 0 auto; padding: calc(var(--safe-t) + 84px) 24px 0; }
.reader.no-side { grid-template-columns: minmax(0, 1fr); max-width: 900px; }
.article {
  border-radius: var(--r-xl); padding: 46px 56px 60px; margin-bottom: calc(var(--safe-b) + 110px);
}
.article .eyebrow { font-size: 13px; font-weight: 700; color: var(--tint); letter-spacing: .04em; text-transform: uppercase; }
.article h1 { font-size: 30px; margin: 8px 0 16px; letter-spacing: -.015em; line-height: 1.25; }
.orient { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--tint-soft); color: var(--label); font-size: 15px; line-height: 1.65; margin-bottom: 30px; }
.orient svg { flex: none; width: 20px; height: 20px; color: var(--tint); margin-top: 2px; }

.para { position: relative; margin: 0 0 1.25em; }
.para-role { display: none; font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--label-2); margin-bottom: 8px; align-items: center; gap: 8px; }
.para-role b { font-family: var(--font-round); color: #fff; background: var(--label-3); border-radius: 7px; padding: 2px 7px; font-size: 12px; }
.bridge { display: none; font-size: 14px; color: var(--label-2); line-height: 1.6; padding: 10px 14px; border-left: 3px solid var(--sep); margin: 12px 0 0; border-radius: 0 10px 10px 0; background: var(--fill-2); }
.mode-parse .para-role, .mode-parse .bridge { display: flex; }
.mode-parse .bridge { display: block; }

.ptext { font-family: var(--font-read); font-size: var(--read-size); line-height: 1.78; text-align: left; hyphens: manual; color: var(--label); }
.s { border-radius: 6px; transition: background .25s, opacity .35s, color .35s; cursor: pointer; padding: 2px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (hover: hover) { .s:hover { background: var(--fill-2); } }
.s.sel { background: var(--tint-soft); box-shadow: 0 0 0 3px var(--tint-soft); }
.s.read-done::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #30d158; margin: 0 2px 0 4px; vertical-align: .3em; opacity: .8; }
.mode-quiz .s.read-done::after { display: none; }
.w { border-radius: 4px; transition: background .2s; }
@media (hover: hover) { .s.sel .w:hover { background: var(--tint-soft); } }

/* 词汇下划线 */
.w.v { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--vc, var(--v-required)); text-decoration-style: dotted; }
.w.v[data-cls="required"] { --vc: var(--v-required); }
.w.v[data-cls="basic"] { --vc: var(--v-basic); }
.w.v[data-cls="extra"] { --vc: var(--v-extra); }
.w.v[data-cls="derived"] { --vc: var(--v-derived); }
.w.v[data-cls="contextual"] { --vc: var(--v-contextual); }
.hide-vocab .w.v { text-decoration: none; }

/* 拆句标注 */
.mode-parse .m-main { color: var(--c-main); font-weight: 700; background: var(--c-main-bg); border-radius: 5px; padding: 1px 2px; }
.mode-parse .m-signals { color: var(--c-sig); font-weight: 700; border-bottom: 2.5px solid var(--c-sig); }
.mode-parse .m-aside { color: var(--c-aside); font-style: italic; }
.mode-parse .m-aside::before { content: "〔"; font-style: normal; opacity: .7; }
.mode-parse .m-aside::after { content: "〕"; font-style: normal; opacity: .7; }
.mode-parse.off-main .m-main, .mode-parse.off-signals .m-signals { color: inherit; font-weight: inherit; background: none; border: 0; }
.mode-parse.off-aside .m-aside { color: inherit; font-style: inherit; }
.mode-parse.off-aside .m-aside::before, .mode-parse.off-aside .m-aside::after { content: none; }

/* 意群 */
.ck { transition: opacity .35s var(--ease), color .35s, background .35s; border-radius: 6px; }
.mode-chunk .ck + .ck::before { content: "/"; color: var(--tint); font-family: var(--font-ui); font-weight: 300; margin: 0 .38em 0 .1em; opacity: .65; }
.mode-chunk.drill .s .ck { opacity: .16; }
.mode-chunk.drill .s .ck.past { opacity: .42; }
.mode-chunk.drill .s .ck.cur { opacity: 1; background: var(--tint-soft); box-shadow: 0 0 0 4px var(--tint-soft); }
.mode-chunk.drill .s:hover { background: none; }
.mode-chunk.drill .orient, .mode-chunk.drill .tail { opacity: .3; }

/* 底部浮动工具条 */
.dock {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-b) + 18px);
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 30px; height: 60px;
  width: max-content; max-width: calc(100vw - 24px); white-space: nowrap;
  transition: transform .5s var(--spring), opacity .3s;
}
.dock.hidden { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.toggle-pill { height: 48px; padding: 0 16px; border-radius: 24px; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--label-2); transition: background .25s, color .25s; }
.toggle-pill svg { width: 20px; height: 20px; flex: none; }
.toggle-pill i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .35; transition: opacity .25s, transform .4s var(--spring); }
.toggle-pill.on { background: var(--fill); color: var(--label); }
.toggle-pill.on i { opacity: 1; transform: scale(1.15); }
.toggle-pill[data-k="main"].on i { background: var(--c-main); }
.toggle-pill[data-k="signals"].on i { background: var(--c-sig); }
.toggle-pill[data-k="aside"].on i { background: var(--c-aside); }
.dock .sep { width: 1px; height: 26px; background: var(--sep); margin: 0 4px; }
.dock .primary { height: 48px; padding: 0 20px; border-radius: 24px; background: var(--tint); color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; box-shadow: 0 6px 18px rgba(10, 132, 255, .35); }
.dock .primary svg { width: 18px; height: 18px; }
.dock .progress { font-family: var(--font-round); font-size: 15px; font-weight: 600; color: var(--label-2); padding: 0 12px; min-width: 90px; text-align: center; }

/* ---------------------------------------------------------------- 侧边检视器 */
.side { position: sticky; top: calc(var(--safe-t) + 84px); height: calc(100vh - var(--safe-t) - 84px - 24px); height: calc(100dvh - var(--safe-t) - 84px - 24px); }
.inspector {
  height: 100%; border-radius: var(--r-xl); overflow: hidden; display: flex; flex-direction: column;
}
.insp-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 16px 16px 12px 22px; border-bottom: .5px solid var(--sep); }
.insp-head h4 { flex: 1; margin: 0; font-size: 17px; font-weight: 700; }
.insp-head h4 small { display: block; font-size: 12px; color: var(--label-2); font-weight: 600; margin-bottom: 1px; letter-spacing: .02em; }
.mini-btn { width: 36px; height: 36px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; transition: transform .4s var(--spring), background .2s; }
.mini-btn:active { transform: scale(.88); }
.mini-btn svg { width: 17px; height: 17px; }
.mini-btn[disabled] { opacity: .3; pointer-events: none; }
.insp-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 22px 40px; overscroll-behavior: contain; }
.insp-body::-webkit-scrollbar { display: none; }

.blk { margin-bottom: 22px; animation: rise .5s var(--spring) both; }
.blk:nth-child(2) { animation-delay: .03s; } .blk:nth-child(3) { animation-delay: .06s; } .blk:nth-child(4) { animation-delay: .09s; } .blk:nth-child(5) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.blk-h { font-size: 12px; font-weight: 700; color: var(--label-2); letter-spacing: .06em; margin: 0 0 8px; display: flex; align-items: center; gap: 6px; text-transform: uppercase; }
.blk-h svg { width: 14px; height: 14px; }
.blk-h .r { margin-left: auto; text-transform: none; letter-spacing: 0; color: var(--tint); font-weight: 600; cursor: pointer; }
.sent-view { font-family: var(--font-read); font-size: 18px; line-height: 1.7; padding: 14px 16px; border-radius: var(--r-md); background: var(--fill-2); }
.sent-view .m-main { color: var(--c-main); font-weight: 700; background: var(--c-main-bg); border-radius: 4px; padding: 0 2px; }
.sent-view .m-signals { color: var(--c-sig); font-weight: 700; border-bottom: 2px solid var(--c-sig); }
.sent-view .m-aside { color: var(--c-aside); font-style: italic; }
.sent-view .w { cursor: pointer; }
@media (hover: hover) { .sent-view .w:hover { background: var(--tint-soft); } }
.legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--label-2); font-weight: 600; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }

.chunks { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.chunks li { counter-increment: c; display: flex; gap: 10px; align-items: baseline; font-family: var(--font-read); font-size: 16.5px; line-height: 1.5; padding: 7px 0; border-bottom: .5px solid var(--sep); }
.chunks li:last-child { border-bottom: 0; }
.chunks li::before { content: counter(c); flex: none; font-family: var(--font-round); font-size: 12px; font-weight: 700; color: var(--tint); background: var(--tint-soft); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; transform: translateY(-1px); }

.note { font-size: 15.5px; line-height: 1.75; color: var(--label); }
.trans { position: relative; font-size: 16px; line-height: 1.75; padding: 14px 16px; border-radius: var(--r-md); background: var(--fill-2); cursor: pointer; overflow: hidden; }
.trans .t { transition: filter .45s var(--ease), opacity .45s; }
.trans.masked .t { filter: blur(7px); opacity: .55; user-select: none; }
.trans .hint { position: absolute; inset: 0; display: none; place-items: center; font-size: 14px; font-weight: 600; color: var(--label-2); }
.trans.masked .hint { display: grid; }
.trans.masked .hint span { padding: 8px 16px; border-radius: 18px; background: var(--glass-strong); box-shadow: var(--glass-shadow); }

.deep { border-radius: var(--r-lg); padding: 18px; background: linear-gradient(160deg, rgba(191, 90, 242, .12), rgba(10, 132, 255, .10)); }
.deep h5 { margin: 0 0 12px; font-size: 16px; }
.steps { position: relative; margin: 0 0 12px; padding: 0 0 0 18px; list-style: none; }
.steps::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: linear-gradient(var(--v-extra), var(--tint)); opacity: .45; }
.steps li { position: relative; padding: 0 0 12px; }
.steps li::before { content: ""; position: absolute; left: -17px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--glass-strong); border: 2px solid var(--tint); }
.steps .en { font-family: var(--font-read); font-size: 16px; line-height: 1.45; }
.steps .zh { font-size: 14px; color: var(--label-2); margin-top: 2px; }
.steps .lk { display: inline-block; font-size: 12px; font-weight: 600; color: var(--v-extra); margin-top: 4px; padding: 2px 8px; border-radius: 8px; background: rgba(191, 90, 242, .12); }
.deep .ex { font-size: 14.5px; line-height: 1.7; color: var(--label); margin: 0; }

.overview p { font-size: 15px; line-height: 1.75; margin: 0; }
.roles { list-style: none; padding: 0; margin: 0; }
.roles li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; margin: 0 -12px; border-radius: 14px; cursor: pointer; font-size: 15px; line-height: 1.5; transition: background .2s; }
@media (hover: hover) { .roles li:hover { background: var(--fill-2); } }
.roles li b { flex: none; font-family: var(--font-round); font-size: 12px; color: var(--tint); background: var(--tint-soft); padding: 3px 8px; border-radius: 8px; margin-top: 1px; }
.tip-card { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--fill-2); font-size: 14px; line-height: 1.6; color: var(--label-2); }
.tip-card svg { flex: none; width: 20px; height: 20px; color: var(--tint); }
.kbd { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--fill); color: var(--label); }

/* ---------------------------------------------------------------- 做题 */
.q { padding: 16px 0 6px; border-bottom: .5px solid var(--sep); }
.q:last-child { border-bottom: 0; }
.q-stem { font-family: var(--font-read); font-size: 17px; line-height: 1.55; margin-bottom: 12px; }
.q-stem b { font-family: var(--font-round); color: var(--tint); margin-right: 6px; }
.opt { width: 100%; text-align: left; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; margin-bottom: 8px; background: var(--fill-2); font-family: var(--font-read); font-size: 15.5px; line-height: 1.45; transition: background .25s, transform .4s var(--spring), box-shadow .25s; }
.opt:active { transform: scale(.97); }
.opt .k { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-round); font-weight: 700; font-size: 13px; background: var(--fill); }
.opt.picked { box-shadow: inset 0 0 0 2px var(--tint); }
.opt.picked .k { background: var(--tint); color: #fff; }
.opt.right { background: rgba(48, 209, 88, .16); box-shadow: inset 0 0 0 2px rgba(48, 209, 88, .7); }
.opt.right .k { background: #30d158; color: #fff; }
.opt.wrong { background: rgba(255, 69, 58, .12); box-shadow: inset 0 0 0 2px rgba(255, 69, 58, .6); }
.opt.wrong .k { background: #ff453a; color: #fff; }
.q-res { font-size: 13px; font-weight: 600; margin: 4px 2px 10px; color: var(--label-2); }
.q-res.ok { color: #1f9d48; } .q-res.bad { color: #e0352b; }
.score { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--fill-2); margin-bottom: 8px; }
.score .num { font-family: var(--font-round); font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.score .txt { font-size: 14px; color: var(--label-2); line-height: 1.5; }
.link-btn { color: var(--tint); font-weight: 600; font-size: 14px; }

/* ---------------------------------------------------------------- 文末区块 */
.tail { margin-top: 46px; padding-top: 30px; border-top: .5px solid var(--sep); }
.tail h2 { font-size: 22px; margin: 0 0 6px; letter-spacing: -.01em; }
.tail .desc { color: var(--label-2); font-size: 14px; margin: 0 0 18px; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.vcard { position: relative; border-radius: var(--r-md); padding: 14px 16px; background: var(--fill-2); cursor: pointer; transition: transform .4s var(--spring), background .2s; }
.vcard:active { transform: scale(.97); }
.vcard .wd { font-family: var(--font-read); font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.vcard .wd i { width: 8px; height: 8px; border-radius: 50%; background: var(--vc); flex: none; }
.vcard .ss { font-size: 14px; color: var(--label-2); margin-top: 4px; line-height: 1.45; }
.vcard .star { position: absolute; top: 12px; right: 12px; color: var(--label-3); }
.vcard .star.on { color: #ffcc00; }
.vcard .star svg { width: 18px; height: 18px; }
.practice { border-radius: var(--r-lg); padding: 20px 22px; background: linear-gradient(160deg, rgba(48, 209, 88, .12), rgba(64, 200, 224, .10)); margin-top: 26px; }
.practice .en { font-family: var(--font-read); font-size: 19px; line-height: 1.6; margin: 8px 0 10px; }
.practice .pr { font-size: 15px; color: var(--label-2); line-height: 1.65; }
.practice .ans { margin-top: 12px; }

/* ---------------------------------------------------------------- 查词弹层 */
.pop-scrim { position: fixed; inset: 0; z-index: 90; }
.popover {
  position: fixed; z-index: 91; width: 380px; max-width: calc(100vw - 32px); max-height: min(560px, 70vh);
  border-radius: var(--r-lg); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: var(--ox, 50%) var(--oy, 0%);
  animation: pop .5s var(--spring) both;
}
.popover.out { animation: popout .22s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: scale(.6); } }
@keyframes popout { to { opacity: 0; transform: scale(.85); } }
.pop-head { padding: 18px 18px 12px 20px; display: flex; gap: 10px; align-items: flex-start; }
.pop-head .wd { flex: 1; min-width: 0; }
.pop-head h3 { margin: 0; font-family: var(--font-read); font-size: 28px; letter-spacing: -.01em; }
.pop-head .ipa { color: var(--label-2); font-size: 14px; margin-top: 3px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cat { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 7px; color: #fff; background: var(--vc, var(--label-3)); letter-spacing: .03em; }
.pop-body { overflow-y: auto; padding: 0 20px 18px; overscroll-behavior: contain; }
.ctx { border-radius: 14px; padding: 12px 14px; background: var(--tint-soft); margin-bottom: 12px; font-size: 14.5px; line-height: 1.6; }
.ctx b { color: var(--tint); }
.ctx .tp { color: var(--label-2); margin-top: 4px; font-size: 13.5px; }
.def { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; }
.def .k { display: inline-block; font-size: 11px; font-weight: 700; color: var(--label-2); background: var(--fill); padding: 1px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.pop-empty { color: var(--label-2); font-size: 14px; padding: 6px 0 4px; }
.pop-foot { flex: none; padding: 10px 14px 14px; display: flex; gap: 8px; border-top: .5px solid var(--sep); }
.btn { flex: 1; height: 44px; border-radius: 22px; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; background: var(--fill); transition: transform .4s var(--spring), background .2s; }
.btn:active { transform: scale(.95); }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--tint); color: #fff; box-shadow: 0 6px 16px rgba(10, 132, 255, .3); }
.btn.saved { background: rgba(255, 204, 0, .2); color: #b38600; }
[data-theme="dark"] .btn.saved { color: #ffd60a; }

/* 设置弹层 */
.settings { width: 340px; }
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: .5px solid var(--sep); font-size: 15px; font-weight: 500; gap: 12px; }
.set-row:last-child { border-bottom: 0; }
.set-row .seg-mini { display: flex; background: var(--fill); border-radius: 10px; padding: 2px; }
.set-row .seg-mini button { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--label-2); }
.set-row .seg-mini button.on { background: var(--glass-strong); color: var(--label); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.switch { width: 51px; height: 31px; border-radius: 16px; background: var(--fill); position: relative; transition: background .3s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 1px 1px rgba(0, 0, 0, .1); transition: transform .45s var(--spring), width .2s; }
.switch.on { background: #34c759; }
.switch.on::after { transform: translateX(20px); }
.switch:active::after { width: 33px; }
.switch.on:active::after { transform: translateX(14px); }
.fs-ctrl { display: flex; align-items: center; gap: 4px; }
.fs-ctrl button { width: 40px; height: 32px; border-radius: 10px; background: var(--fill); font-weight: 600; font-family: var(--font-read); }
.fs-ctrl span { font-family: var(--font-round); font-size: 14px; color: var(--label-2); width: 34px; text-align: center; }

/* ---------------------------------------------------------------- 生词本 */
.words-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.wcard { border-radius: var(--r-lg); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; }
.wcard .row { display: flex; align-items: center; gap: 10px; }
.wcard h3 { margin: 0; font-family: var(--font-read); font-size: 24px; flex: 1; }
.wcard .ss { font-size: 15px; color: var(--label); }
.wcard .cx { font-family: var(--font-read); font-size: 14.5px; color: var(--label-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wcard .cx mark { background: none; color: var(--tint); font-weight: 600; }
.wcard .mt { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--label-3); font-weight: 600; margin-top: 4px; }
.lvl { display: flex; gap: 3px; }
.lvl i { width: 14px; height: 4px; border-radius: 2px; background: var(--fill); }
.lvl i.on { background: #30d158; }
.empty { text-align: center; padding: 80px 20px; color: var(--label-2); }
.empty svg { width: 54px; height: 54px; margin: 0 auto 16px; color: var(--label-3); }
.empty h3 { color: var(--label); margin: 0 0 6px; font-size: 20px; }
.review-cta { display: flex; align-items: center; gap: 18px; border-radius: var(--r-xl); padding: 22px 26px; margin-bottom: 8px; }
.review-cta .big { font-family: var(--font-round); font-size: 44px; font-weight: 800; letter-spacing: -.03em; }
.review-cta .txt { flex: 1; color: var(--label-2); font-size: 15px; line-height: 1.5; }
.review-cta .txt b { color: var(--label); font-size: 18px; display: block; }

/* 复习卡片 */
.modal-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .18); -webkit-backdrop-filter: blur(12px) saturate(140%); backdrop-filter: blur(12px) saturate(140%); animation: fade .3s both; display: grid; place-items: center; padding: 24px; }
@keyframes fade { from { opacity: 0; } }
.review { width: min(620px, 100%); display: flex; flex-direction: column; gap: 16px; animation: rise .55s var(--spring) both; }
.review .top { display: flex; align-items: center; gap: 12px; }
.review .top .bar { height: 8px; }
.flash { border-radius: var(--r-xl); min-height: 380px; padding: 34px 36px; display: flex; flex-direction: column; cursor: pointer; perspective: 1000px; }
.flash .wd { font-family: var(--font-read); font-size: 46px; font-weight: 600; letter-spacing: -.01em; text-align: center; margin-top: 30px; }
.flash .ipa { text-align: center; color: var(--label-2); margin-top: 6px; }
.flash .cx { font-family: var(--font-read); font-size: 18px; line-height: 1.65; color: var(--label-2); margin-top: 28px; text-align: center; }
.flash .cx mark { background: var(--tint-soft); color: var(--tint); border-radius: 5px; padding: 0 3px; font-weight: 600; }
.flash .back { margin-top: 24px; padding-top: 22px; border-top: .5px solid var(--sep); animation: rise .45s var(--spring) both; }
.flash .back .ss { font-size: 20px; font-weight: 600; text-align: center; }
.flash .back .tp { font-size: 15px; color: var(--label-2); text-align: center; margin-top: 8px; line-height: 1.6; }
.flash .tap { margin-top: auto; text-align: center; color: var(--label-3); font-size: 14px; font-weight: 600; padding-top: 20px; }
.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grade .btn { height: 56px; border-radius: 28px; font-size: 16px; flex-direction: column; gap: 0; line-height: 1.2; }
.grade .btn small { font-size: 11px; opacity: .7; font-weight: 600; }
.grade .again { background: rgba(255, 69, 58, .16); color: #e0352b; }
.grade .hard { background: rgba(255, 159, 10, .18); color: #c77700; }
.grade .good { background: rgba(48, 209, 88, .18); color: #1f9d48; }

/* toast */
.toast { position: fixed; z-index: 200; left: 50%; top: calc(var(--safe-t) + 18px); transform: translateX(-50%); padding: 12px 20px; border-radius: 22px; font-weight: 600; font-size: 15px; display: flex; gap: 8px; align-items: center; animation: toastin .5s var(--spring) both; }
.toast svg { width: 18px; height: 18px; color: #30d158; }
.toast.out { animation: toastout .3s var(--ease) both; }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, -30px) scale(.9); } }
@keyframes toastout { to { opacity: 0; transform: translate(-50%, -20px) scale(.95); } }

/* 视图切换动画 */
.view-enter { animation: viewin .55s var(--spring) backwards; }
@keyframes viewin { from { opacity: 0; transform: translateY(14px) scale(.99); } }

/* ---------------------------------------------------------------- 竖屏 / 窄屏：检视器变底部抽屉 */
@media (max-width: 1023px) {
  .reader { grid-template-columns: minmax(0, 1fr); padding-left: 18px; padding-right: 18px; }
  .article { padding: 36px 36px 50px; }
  .side { position: fixed; z-index: 60; top: auto; left: 12px; right: 12px; bottom: calc(var(--safe-b) + 12px); height: auto; max-height: 56vh; transform: translateY(calc(100% + 40px)); transition: transform .55s var(--spring); }
  .side.open { transform: none; }
  .side .inspector { max-height: 56vh; }
  .side .inspector::before { }
  .grab { display: block !important; }
  .dock.lift { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
  .topbar .title-pill { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .page { padding-left: 26px; padding-right: 26px; }
}
@media (max-width: 720px) {
  .grid, .words-list { grid-template-columns: 1fr; }
  .article { padding: 28px 22px 40px; }
  .segmented button { padding: 0 12px; }
  .segmented button .lbl { display: none; }
}
.grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: var(--label-3); margin: 8px auto 0; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* iOS 26 滚动边缘效果：顶部渐隐模糊，内容滚到浮动栏下方时不杂乱 */
.edge-top {
  position: fixed; z-index: 45; left: 0; right: 0; top: 0; height: calc(var(--safe-t) + 96px); pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  background: linear-gradient(var(--bg) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, transparent 100%);
  -webkit-mask: linear-gradient(#000 45%, transparent); mask: linear-gradient(#000 45%, transparent);
}
.dock { background: color-mix(in srgb, var(--glass-paper) 100%, transparent); }
[data-theme="light"] .dock { background: rgba(255, 255, 255, .86); }
[data-theme="dark"] .dock { background: rgba(36, 36, 40, .86); }
/* 弹层需要更高不透明度以保证可读 */
[data-theme="light"] .popover { background: rgba(255, 255, 255, .9); }
[data-theme="dark"] .popover { background: rgba(38, 38, 44, .9); }
[data-theme="light"] .side .inspector { background: rgba(255, 255, 255, .82); }

/* 题目解析 */
.q-ana { margin: 2px 0 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--fill-2); animation: rise .45s var(--spring) both; }
.q-ana-h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.q-ana-h .link-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 14px; background: var(--tint-soft); }
.q-ana-h .link-btn svg { width: 14px; height: 14px; }
.q-ana p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.7; }
.why { list-style: none; margin: 0; padding: 0; }
.why li { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.6; color: var(--label-2); padding: 5px 0; border-top: .5px solid var(--sep); }
.why li b { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-round); font-size: 11px; background: var(--fill); color: var(--label-2); margin-top: 1px; }
.why li.ok { color: var(--label); }
.why li.ok b { background: #30d158; color: #fff; }
/* 定位原文高亮 */
.s.ev { animation: evflash 2.6s var(--ease) both; }
@keyframes evflash { 0%, 70% { background: rgba(255, 204, 0, .38); box-shadow: 0 0 0 4px rgba(255, 204, 0, .38); } 100% { background: rgba(255, 204, 0, .14); box-shadow: 0 0 0 3px rgba(255, 204, 0, .14); } }
/* 概览：主旨与结构 */
.summary-card { font-size: 15.5px; line-height: 1.7; padding: 14px 16px; border-radius: var(--r-md); background: linear-gradient(160deg, rgba(10, 132, 255, .12), rgba(191, 90, 242, .10)); font-weight: 500; }
.struct { list-style: none; margin: 0; padding: 0 0 0 14px; position: relative; }
.struct::before { content: ""; position: absolute; left: 3px; top: 10px; bottom: 10px; width: 2px; border-radius: 1px; background: linear-gradient(var(--tint), var(--v-extra)); opacity: .4; }
.struct li { position: relative; display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 14.5px; line-height: 1.5; }
.struct li::before { content: ""; position: absolute; left: -15px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--glass-strong); border: 2px solid var(--tint); }
.struct li b { flex: none; font-family: var(--font-round); font-size: 12px; color: var(--tint); min-width: 46px; }
/* 首页年份导航 */
.year-nav { display: flex; gap: 8px; margin: 30px 0 -10px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.year-nav::-webkit-scrollbar { display: none; }
.year-nav button { flex: none; height: 40px; padding: 0 18px; border-radius: 20px; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.year-nav button small { font-family: var(--font-round); font-size: 12px; color: var(--label-2); font-weight: 700; }

/* ---------------------------------------------------------------- 手机（≤600px） */
@media (max-width: 600px) {
  /* 首页 */
  .page { padding-left: 16px; padding-right: 16px; padding-top: calc(var(--safe-t) + 80px); }
  .large-title { font-size: 30px; }
  .subtitle { font-size: 15px; margin-bottom: 20px; }
  .segmented[data-tabs] button .lbl { display: inline; }
  .stats { gap: 10px; }
  .stat { padding: 14px 16px; border-radius: 22px; }
  .stat .v { font-size: 28px; }
  .continue { flex-wrap: wrap; gap: 14px 16px; padding: 18px; border-radius: 28px; }
  .continue .ring { width: 56px; height: 56px; }
  .continue h3 { font-size: 18px; line-height: 1.35; }
  .continue p { font-size: 15px; }
  .continue .go { flex: 1 1 100%; justify-content: center; }
  .year-nav { margin-top: 22px; }
  .section-h { margin: 28px 4px 12px; }
  .section-h h2 { font-size: 20px; }
  .grid { gap: 12px; }
  .tcard { min-height: 0; padding: 18px 18px 16px; border-radius: 28px; }
  .tcard h3 { font-size: 19px; margin: 12px 0 6px; }
  .tcard .excerpt { font-size: 15px; }

  /* 顶栏：收紧，保证 360px 宽放得下 */
  .topbar { padding: 0 12px; gap: 8px; top: calc(var(--safe-t) + 10px); }
  .circle-btn { width: 44px; height: 44px; }
  .segmented { height: 44px; }
  .segmented button { height: 36px; padding: 0 10px; }
  .segmented[data-tabs] button { padding: 0 14px; }
  .capsule { height: 44px; }
  .capsule .cbtn { height: 36px; min-width: 36px; padding: 0 9px; }
  .topbar .circle-btn[data-set] { right: 12px !important; }

  /* 正文 */
  .reader { padding: calc(var(--safe-t) + 70px) 10px 0; }
  .article { padding: 24px 18px 40px; border-radius: 28px; }
  .article h1 { font-size: 24px; margin: 6px 0 14px; }
  .orient { font-size: 14.5px; padding: 14px; gap: 10px; margin-bottom: 24px; }
  .ptext { font-size: calc(var(--read-size) * .86); line-height: 1.72; }
  .mode-chunk .ck + .ck::before { margin: 0 .3em 0 .06em; }
  .bridge { font-size: 13.5px; }
  .tail { margin-top: 36px; padding-top: 24px; }
  .tail h2 { font-size: 20px; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vcard { padding: 12px 34px 12px 14px; }
  .vcard .wd { font-size: 17px; overflow-wrap: anywhere; }
  .vcard .ss { font-size: 13px; }
  .vcard .star { top: 10px; right: 10px; }
  .practice { padding: 18px 16px; }
  .practice .en { font-size: 17px; }

  /* 浮条 */
  .dock { height: 54px; padding: 5px; bottom: calc(var(--safe-b) + 12px); }
  .toggle-pill, .dock .primary { height: 44px; padding: 0 14px; font-size: 14.5px; }
  .dock .progress { font-size: 14px; min-width: 0; padding: 0 10px; }

  /* 底部抽屉：更高、更不透明 */
  .side { left: 8px; right: 8px; bottom: calc(var(--safe-b) + 8px); max-height: 64vh; max-height: 64dvh; }
  .side .inspector { max-height: 64vh; max-height: 64dvh; border-radius: 28px; }
  [data-theme="light"] .side .inspector { background: rgba(255, 255, 255, .95); }
  [data-theme="dark"] .side .inspector { background: rgba(30, 30, 34, .95); }
  .insp-head { padding: 10px 12px 10px 18px; }
  .insp-body { padding: 14px 16px 28px; }
  .sent-view { font-size: 17px; padding: 12px 14px; }
  .chunks li { font-size: 16px; }
  .note { font-size: 15px; }
  .trans { font-size: 15.5px; }
  .deep { padding: 16px 14px; }
  .q-stem { font-size: 16.5px; }
  .opt { font-size: 15px; padding: 11px 12px; }

  /* 查词 / 设置：改为底部面板 */
  .popover { left: 8px !important; right: 8px !important; top: auto !important; bottom: calc(var(--safe-b) + 8px) !important; width: auto; max-width: none; max-height: 72vh; max-height: 72dvh; border-radius: 28px; transform-origin: 50% 100%; }
  .settings { width: auto; }
  [data-theme="light"] .popover { background: rgba(255, 255, 255, .96); }
  [data-theme="dark"] .popover { background: rgba(38, 38, 44, .96); }

  /* 生词本 / 复习卡 */
  .review-cta { padding: 18px; gap: 14px; border-radius: 28px; }
  .review-cta { flex-wrap: wrap; }
  .review-cta .txt { flex: 1 1 0; min-width: 0; }
  .review-cta .btn { flex: 1 1 100% !important; }
  .review-cta .big { font-size: 36px; }
  .wcard { padding: 16px 18px; }
  .modal-scrim { padding: 12px; }
  .flash { min-height: 340px; padding: 26px 20px; }
  .flash .wd { font-size: 38px; margin-top: 18px; }
  .flash .cx { font-size: 16.5px; margin-top: 20px; }
}
