/* 新东方 AI 英语阅读 · MVP Demo */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Noto Sans SC', 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-read: 'Newsreader', Georgia, 'Times New Roman', serif;
  --yueling-blue: #4A90E2;
  --yueling-pink: #FFB6C1;
  --yueling-gradient: linear-gradient(165deg, #4A90E2 0%, #7EB0EA 16%, #D8E6F8 34%, #F5F5F7 50%, #FFF5F7 68%, #FFD4DC 84%, #FFB6C1 100%);
  --yueling-gradient-soft: linear-gradient(135deg, rgba(74, 144, 226, .1) 0%, rgba(255, 255, 255, .92) 42%, rgba(255, 182, 193, .12) 100%);
  --bg: #eef2f8;
  --surface: rgba(255, 255, 255, 0.62);
  --surface-strong: rgba(255, 255, 255, 0.78);
  --text: #1d1d1f;
  --muted: #86868b;
  --tab-inactive: #d4d8de;
  --tab-inactive-sep: rgba(212, 216, 222, 0.65);
  --accent: var(--yueling-blue);
  --accent-soft: rgba(74, 144, 226, 0.12);
  --accent-dark: #2f6eb5;
  --success: #34c759;
  --warn: #ff9f0a;
  --border: rgba(74, 144, 226, 0.12);
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 14px 40px rgba(74, 144, 226, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --glass-blur: blur(24px) saturate(1.55);
  --page-x: 20px;
  --page-bottom: 20px;
  --status-h: 44px;
  --frame-w: 658;
  --frame-h: 1363;
  /* 模具图实测 Dynamic Island 椭圆（见 scripts/measure-island.js） */
  --island-w-px: 135;
  --island-h-px: 41;
  --island-left: 259;
  --island-cx: 326;
  --island-cy: 54;
  --content-top-y: 75;
  /* 桌面状态栏水平边距：模具像素写死，随 100cqw 等比缩放（见 phone-frame-metrics.json） */
  --status-pad-l-px: 64;
  --status-pad-r-px: 56;
  --nav-safe-b: 14px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --phone-w: 390px;
  --phone-aspect: 658 / 1363;
  /* 蒙版对齐黑边内缘；UI 内边距在桌面预览下微调（见 phone-frame-metrics.json） */
  --phone-mask: url('../assets/phone-screen-mask.png');
  --phone-safe-top: 0px;
  --phone-safe-bottom: 2.2%;
  --phone-safe-x: 5.5%;
  /* 底栏：图标区比内容区再多收，避开圆角黑边 */
  --nav-inset-x: calc(var(--phone-safe-x) + 3%);
  --nav-pad-top: 8px;
  --nav-pad-bottom-extra: 12px;
}

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ── 电脑端：手机边框壳 ── */
html.is-desktop,
html.is-desktop body {
  overflow: auto;
  background: #eef1f5;
}

.device-shell--desktop {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 80px;
  gap: 20px;
  background: #eef1f5;
  overflow: visible;
}

.desktop-hint {
  font-size: 13px;
  color: #5c6678;
  text-align: center;
  max-width: 420px;
  line-height: 1.5;
}

.demo-restart-btn,
.demo-quick-actions {
  display: none;
}

html.is-desktop .demo-quick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 10050;
}

html.is-desktop .demo-quick-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid rgba(74, 144, 226, 0.28);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: #2f6eb5;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  box-shadow:
    0 4px 18px rgba(74, 144, 226, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

html.is-desktop .demo-quick-btn--home {
  color: #fff;
  background: linear-gradient(135deg, #4A90E2 0%, #5a9eeb 100%);
  border-color: rgba(74, 144, 226, 0.45);
  box-shadow: 0 4px 18px rgba(74, 144, 226, 0.28);
}

html.is-desktop .demo-quick-btn:hover {
  background: #fff;
  box-shadow:
    0 6px 22px rgba(74, 144, 226, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

html.is-desktop .demo-quick-btn--home:hover {
  background: linear-gradient(135deg, #3d82d4 0%, #4A90E2 100%);
  box-shadow: 0 6px 22px rgba(74, 144, 226, 0.34);
}

html.is-desktop .demo-quick-btn:active {
  transform: scale(0.97);
}

/* 兼容旧类名 */
html.is-desktop .demo-restart-btn {
  display: inline-flex;
}

/* 桌面预览：柔光投影 + 立体悬浮（渐变漫射 + 大半径轮廓影） */
html.is-desktop .phone-stage {
  position: relative;
  flex-shrink: 0;
  transform: translateY(-6px);
  isolation: isolate;
}

/* 远层：环绕机身的均匀蓝色光晕 */
html.is-desktop .phone-stage::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: -5%;
  right: -5%;
  top: 4%;
  bottom: -10%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 90% at 50% 50%, rgba(74, 144, 226, 0.30) 0%, rgba(94, 130, 200, 0.14) 42%, rgba(126, 176, 234, 0.06) 64%, transparent 84%),
    radial-gradient(ellipse 72% 68% at 54% 54%, rgba(216, 230, 248, 0.14) 0%, transparent 72%);
  filter: blur(44px) saturate(1.1);
  transform: translate(4px, 4px) scale(1.04);
}

/* 近层：略偏光源方向，但四向更均衡 */
html.is-desktop .phone-stage::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0;
  right: -4%;
  top: 6%;
  bottom: -8%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 86% 92% at 52% 52%, rgba(36, 88, 168, 0.32) 0%, rgba(47, 110, 181, 0.20) 34%, rgba(74, 144, 226, 0.10) 56%, rgba(126, 176, 234, 0.04) 72%, transparent 88%);
  filter: blur(34px);
  transform: translate(6px, 6px);
}

html.is-desktop .phone-stage > .phone-frame {
  position: relative;
  z-index: 1;
  filter:
    drop-shadow(4px 6px 18px rgba(36, 88, 168, 0.30))
    drop-shadow(0 14px 36px rgba(74, 144, 226, 0.22))
    drop-shadow(0 26px 52px rgba(94, 130, 200, 0.12));
}

.phone-frame {
  position: relative;
  width: min(var(--phone-w), calc((100vh - 120px) * 658 / 1363));
  aspect-ratio: var(--phone-aspect);
  max-height: calc(100vh - 120px);
  background: url('../assets/phone-frame.png') center / 100% 100% no-repeat;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  flex-shrink: 0;
}

.phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--yueling-gradient);
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  -webkit-mask-image: var(--phone-mask);
  mask-image: var(--phone-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.phone-screen #app {
  flex: 1;
  min-height: 0;
}

html.is-desktop .phone-screen {
  --page-x: 20px;
  container-type: size;
  container-name: phone;
  --status-island-w: calc(100cqw * var(--island-w-px) / var(--frame-w));
  --island-cy-pos: calc(100cqh * var(--island-cy) / var(--frame-h));
  --content-top-pos: calc(100cqh * var(--content-top-y) / var(--frame-h));
  --status-pad-left: calc(100cqw * var(--status-pad-l-px) / var(--frame-w));
  --status-pad-right: calc(100cqw * var(--status-pad-r-px) / var(--frame-w));
  --sheet-inset-x: var(--page-x);
  --sheet-inset-bottom: calc(100cqh * 26 / var(--frame-h) + 10px);
  --sheet-max-h: min(58cqh, calc(100cqh - var(--content-top-pos) - 56px));
}

html.is-desktop .phone-screen #app {
  box-sizing: border-box;
  padding-top: var(--content-top-pos);
  padding-bottom: var(--phone-safe-bottom);
  padding-left: var(--phone-safe-x);
  padding-right: var(--phone-safe-x);
}

.phone-home-bar {
  display: none;
}

/* ── 手机真机：全屏无边框 ── */
html.is-mobile,
html.is-mobile body {
  overflow: hidden;
  background: var(--surface);
}

.device-shell--mobile {
  width: 100%;
  height: 100%;
  height: 100dvh;
}

.device-shell--mobile .phone-stage {
  width: 100%;
  height: 100%;
  height: 100dvh;
}

.device-shell--mobile .phone-frame {
  width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.device-shell--mobile .phone-frame-bezel,
.device-shell--mobile .phone-notch,
.device-shell--mobile .phone-home-bar,
.device-shell--mobile .desktop-hint {
  display: none;
}

.device-shell--mobile .phone-screen {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  height: 100dvh;
  border-radius: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

/* ── App 内布局 ── */
#app {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  background: var(--yueling-gradient);
  overflow: hidden;
}

#app::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 92% at 10% 12%, rgba(74, 144, 226, 0.18) 0%, transparent 54%),
    radial-gradient(110% 85% at 92% 14%, rgba(216, 230, 248, 0.7) 0%, transparent 58%),
    radial-gradient(90% 75% at 52% 100%, rgba(255, 255, 255, 0.35) 0%, transparent 60%);
}

#app > *:not(#ai-overlay):not(#toast):not(#sel-overlay):not(#ai-explain-overlay):not(.ios-status-bar) {
  position: relative;
}

/* 真机 App：触屏滑动，不显示滚动条滑块 */
#app,
#app * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#app *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* ── iOS 状态栏（时间 / 信号 / 电量）· 与刘海同一行 ── */
.ios-status-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  height: var(--status-h);
  padding: 0 var(--page-x);
  position: relative;
  z-index: 35;
  font-variant-numeric: tabular-nums;
}

html.is-mobile .ios-status-bar {
  height: max(var(--status-h), var(--safe-t));
  min-height: var(--status-h);
  padding-top: 0;
  padding-bottom: 0;
}

html.is-desktop .phone-screen > .ios-status-bar {
  /* 锚定 phone-screen；垂直/水平坐标写死，左右槽位绝对定位互不影响 */
  position: absolute;
  inset: var(--island-cy-pos) 0 auto 0;
  width: 100%;
  height: var(--status-h);
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  display: block;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 40;
  overflow: visible;
}

html.is-desktop .phone-screen > .ios-status-bar .ios-status-bar__left {
  position: absolute;
  left: var(--status-pad-left);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  flex: none;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  justify-content: flex-start;
}

html.is-desktop .phone-screen > .ios-status-bar .ios-status-bar__right {
  position: absolute;
  right: var(--status-pad-right);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  pointer-events: auto;
  justify-content: flex-end;
}

html.is-desktop .phone-screen > .ios-status-bar .ios-status-bar__center {
  display: none;
}

html.is-desktop .ios-status-time {
  font-size: 14px;
  white-space: nowrap;
}

.ios-status-bar__left,
.ios-status-bar__right {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 72px;
  flex: 1;
  height: 100%;
}

.ios-status-bar__left { justify-content: flex-start; }
.ios-status-bar__right { justify-content: flex-end; }

.ios-status-bar__center {
  flex: 0 0 var(--status-island-w, 118px);
  width: var(--status-island-w, 118px);
  min-width: var(--status-island-w, 118px);
  height: 0;
  pointer-events: none;
}

.ios-status-time {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.ios-status-bar__right svg { display: block; }
.ios-status-signal svg { width: 17px; height: 11px; }
.ios-status-wifi svg { width: 15px; height: 11px; }
.ios-status-battery svg { width: 27px; height: 13px; }

#app.app--no-nav .app-main {
  flex: 1;
  min-height: 0;
}

.app-main--secondary {
  overflow: hidden;
}

.app-header {
  flex-shrink: 0;
  padding: 14px 18px 10px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: var(--surface-strong);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px rgba(74, 144, 226, 0.1);
}

html.is-desktop .app-header {
  padding-top: 14px;
}

.app-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.header-ai {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  gap: 4px;
}

.ai-spark {
  color: var(--accent);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
}

.level-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-main::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.app-nav {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  margin-top: auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  padding-top: 4px;
  padding-bottom: max(var(--safe-b), 6px);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 -10px 24px rgba(74, 144, 226, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

html.is-desktop #app {
  position: relative;
}

html.is-desktop .app-nav {
  position: relative;
  /* 抵消 #app 左右/底部安全区内边距，底栏白底贴齐屏幕内缘 */
  margin-left: calc(-1 * var(--phone-safe-x));
  margin-right: calc(-1 * var(--phone-safe-x));
  margin-bottom: calc(-1 * var(--phone-safe-bottom));
  padding-top: var(--nav-pad-top);
  padding-left: var(--nav-inset-x);
  padding-right: var(--nav-inset-x);
  padding-bottom: calc(var(--phone-safe-bottom) + var(--nav-pad-bottom-extra));
  min-height: 54px;
}

html.is-desktop .app-nav::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(var(--phone-safe-bottom) + 5px);
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 99px;
  pointer-events: none;
}

.nav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 5px 2px 2px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 9px;
  font-family: var(--font);
  cursor: pointer;
  transition: color 0.2s;
  min-width: 0;
}

html.is-desktop .nav-btn {
  padding: 4px 2px 0;
}

.nav-btn svg {
  width: 20px;
  height: 20px;
}

/* iOS 风格：圆角端点、更细线条、更克制对比 */
.nav-btn svg * {
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.nav-btn:not(.active) svg {
  opacity: 0.78;
}

.nav-btn.active {
  color: var(--accent);
}

/* ── 页面视图 ── */
.view { display: none; padding: 12px var(--page-x) var(--page-bottom); }
.view.active { display: block; }

.sub-topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 4px;
  margin: -12px calc(-1 * var(--page-x)) 12px;
  padding: 4px var(--page-x);
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.top-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  justify-self: start;
}

.icon-chevron-left {
  width: 22px;
  height: 22px;
  display: block;
}

.sub-title {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  justify-self: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-ai {
  font-size: 11px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 2px 8px;
  justify-self: end;
  text-align: center;
}

.sub-ai-spacer {
  justify-self: end;
  width: 44px;
}

.hero-card {
  background: var(--yueling-gradient);
  color: #1d1d1f;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 16px 36px rgba(74, 144, 226, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.hero-label {
  font-size: 11px;
  opacity: 0.85;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-read);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-desc {
  font-size: 13px;
  opacity: 0.9;
  line-height: 1.5;
}

.home-brand-row--home {
  margin-bottom: 8px;
}

#view-home {
  padding-top: 4px;
}

.home-head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  min-height: 26px;
}

#view-home .home-head-row {
  --home-head-ctrl-h: 26px;
}

#view-home .home-head-row .home-xp-pill {
  min-height: var(--home-head-ctrl-h);
  height: var(--home-head-ctrl-h);
  padding: 0 10px;
  font-size: 12px;
}

#view-home .home-head-row .home-xp-star {
  font-size: 11px;
}

#view-home .home-head-row .home-xp-label {
  font-size: 11px;
}

.home-head-row .channel-tabs {
  flex: 1;
  min-width: 0;
  gap: 14px;
  padding: 0;
  margin-bottom: 0;
  align-items: center;
  height: var(--home-head-ctrl-h, 26px);
}

.home-head-row .channel-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 0;
  padding: 0;
  min-height: var(--home-head-ctrl-h, 26px);
  height: var(--home-head-ctrl-h, 26px);
  box-sizing: border-box;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: var(--tab-inactive);
  box-shadow: none;
  transition: color 0.15s ease, font-weight 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.home-head-row .channel-tab.active {
  padding: 0;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #1d1d1f;
  font-weight: 700;
  box-shadow: none;
}

/* 首页 · 阅历 XP（与频道 Tab 同行，勿放入状态栏） */
.home-xp-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  min-height: 22px;
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: #1a1c1e;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.12);
}

.home-xp-star {
  color: #e8a317;
  font-size: 10px;
}

.home-xp-lv {
  color: #4a90e2;
}

.home-xp-sep {
  opacity: 0.45;
  font-weight: 400;
}

.home-xp-label {
  color: #86868b;
  font-weight: 500;
  font-size: 10px;
}

.home-xp-num {
  color: #e8a317;
  font-variant-numeric: tabular-nums;
}

.home-xp-num.is-counting {
  animation: homeXpPop 0.45s ease;
}

.home-xp-pill:active {
  transform: scale(0.97);
}

@keyframes homeXpPop {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.14); color: #f59e0b; }
}

/* 状态栏内禁止出现阅历 XP */
.ios-status-bar .home-xp-pill,
.ios-status-bar .ios-status-xp-pill {
  display: none !important;
}

.goal-switcher--home-inline {
  flex-shrink: 0;
  padding: 5px 10px;
  gap: 5px;
}

.goal-switcher--home-inline .goal-switcher-label {
  font-size: 11px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-switcher--home-inline .goal-switcher-level {
  font-size: 10px;
  padding: 2px 6px;
}

.channel-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 10px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: default;
  align-items: center;
}

.channel-tabs::-webkit-scrollbar {
  display: none;
}

.channel-tab {
  flex-shrink: 0;
  white-space: nowrap;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--tab-inactive);
  cursor: pointer;
  transition: color 0.15s ease, font-weight 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.channel-tab.active {
  background: transparent;
  color: #1d1d1f;
  border: none;
  box-shadow: none;
  font-weight: 700;
}

.channel-tab:active {
  transform: scale(0.97);
}

/* 首页 · 短文 / 资讯分栏纵向排版 */
.home-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.home-section {
  padding-bottom: 4px;
}

.home-section-hd {
  margin-bottom: 10px;
  padding-left: 2px;
}

.home-section-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.home-section-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

.home-section-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-section-cards .rec-card {
  margin-bottom: 0;
}

.home-section + .home-section {
  border-top: 1px solid rgba(74, 144, 226, 0.08);
  padding-top: 18px;
}

/* 首页 · 名著网格（与书架一致的三列封面卡片） */
.classics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 10px;
}

.classics-item {
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.classics-item:active {
  opacity: 0.88;
}

.classics-item .shelf-cover-img,
.classics-item .rec-cover {
  box-shadow: 0 6px 18px rgba(74, 144, 226, 0.14);
}

.today-task-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 14px;
}

/* 统计 → 横幅 → 卡片；接缝规则见 .cursor/rules/xdf-today-task-ip.mdc */
.today-task-stats-panel {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: none;
  margin-bottom: 8px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* IP/计划横幅底边 = .today-task 顶边：见 .cursor/rules/xdf-today-task-ip.mdc */
.today-task-hero {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  z-index: 2;
  pointer-events: none;
}

.today-task-banner {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  -webkit-user-drag: none;
}

.today-task-stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 4px 18px rgba(74, 144, 226, 0.07);
  backdrop-filter: blur(20px) saturate(1.45);
  -webkit-backdrop-filter: blur(20px) saturate(1.45);
}

.today-task-stat + .today-task-stat {
  border-left: none;
  padding-left: 8px;
}

.today-task-stat-val {
  font-size: 16px;
  line-height: 1.1;
  color: var(--text);
  white-space: nowrap;
}

.today-task-stat-val strong {
  font-weight: 700;
}

.today-task-stat-unit {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.today-task-stat-label {
  font-size: 10px;
  color: rgba(100, 108, 118, 0.88);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.today-task {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  padding: 14px 16px 16px;
  margin-bottom: 0;
  font-family: var(--font);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 10px 28px rgba(74, 144, 226, 0.08);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  -webkit-tap-highlight-color: transparent;
}

.today-task-head {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-dark);
  margin: 0 0 8px;
  padding: 0;
}

.today-task-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 0;
}

.today-task-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(74, 144, 226, 0.88);
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(74, 144, 226, 0.1);
  box-shadow: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.today-task-book {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.today-task-cover {
  flex: 0 0 auto;
  width: 64px;
}

.today-task-cover-img,
.today-task-cover .rec-cover {
  width: 64px;
  height: 86px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.18);
}

.today-task-cover-img img,
.today-task-cover .rec-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.today-task-book-meta {
  flex: 1;
  min-width: 0;
  padding-top: 2px;
}

.today-task-book-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 4px;
}

.today-task-book-author {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.today-task-book-blurb {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.today-task-progress {
  width: 100%;
  margin-top: 12px;
  box-sizing: border-box;
}

.today-task-progress-label {
  display: block;
  width: 100%;
  font-size: 11px;
  color: var(--accent-dark);
  margin-bottom: 5px;
}

.today-task-progress-bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.12);
  overflow: hidden;
}

.today-task-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4A90E2, #6BA3E8);
}

.today-task:active {
  transform: scale(0.99);
}

.level-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.level-chip {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.level-chip.active {
  border-color: rgba(74, 144, 226, 0.45);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.challenge-banner--done {
  border-color: rgba(52, 199, 89, 0.35);
  background: rgba(52, 199, 89, 0.08);
}

.path-detail-hero {
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  margin-bottom: 14px;
  background-size: cover;
  background-position: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.path-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 35, 60, 0.2) 0%, rgba(20, 35, 60, 0.78) 100%);
}

.path-detail-hero > * {
  position: relative;
  z-index: 1;
}

.path-detail-title {
  font-size: 20px;
  font-weight: 700;
  margin: 6px 0 4px;
}

.path-detail-sub,
.path-detail-meta {
  font-size: 12px;
  opacity: 0.92;
  line-height: 1.4;
}

.path-article-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.path-article-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
}

.path-article-idx {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.path-article-title {
  font-size: 14px;
  font-weight: 600;
}

.path-article-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

#view-reader.reader-theme-sepia .reader-content {
  color: #3d3428;
}

#view-reader.reader-theme-sepia .reader-para-cn {
  background: rgba(235, 220, 190, 0.55);
}

.note-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.note-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.note-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.read-after-card {
  background: var(--yueling-gradient-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 12px 0;
}

.read-after-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.read-after-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.report-next-card {
  width: 100%;
  text-align: left;
  margin: 8px 0;
  cursor: pointer;
}

.continue-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(74, 144, 226, 0.28);
  background: var(--surface-strong);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 14px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(74, 144, 226, 0.1);
}

.continue-card:active { transform: scale(0.99); }

.continue-cover-img,
.continue-cover .rec-cover {
  width: 52px;
  height: 70px;
}

.continue-body { flex: 1; min-width: 0; }

.continue-label {
  font-size: 11px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-bottom: 2px;
}

.continue-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.continue-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.continue-bar {
  height: 4px;
  background: rgba(74, 144, 226, 0.15);
  border-radius: 2px;
  overflow: hidden;
}

.continue-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

.continue-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.challenge-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
}

.challenge-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.challenge-desc {
  font-size: 12px;
  color: var(--muted);
}

.challenge-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), rgba(74, 144, 226, 0.12) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.challenge-ring::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.challenge-ring span {
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-dark);
}

.path-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.path-scroll::-webkit-scrollbar { display: none; }

.path-card {
  flex: 0 0 220px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-strong);
  cursor: pointer;
}

.path-card:active { transform: scale(0.98); }

.path-cover {
  height: 72px;
  background-size: cover;
  background-position: center;
}

.path-body { padding: 10px 12px 12px; }

.path-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.path-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
  line-height: 1.3;
}

.path-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  line-height: 1.35;
}

.path-meta {
  font-size: 11px;
  color: var(--accent-dark);
}

.shelf-head {
  margin-bottom: 12px;
}

.shelf-head-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.shelf-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.shelf-tab {
  flex: 1;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.shelf-tab.active {
  border-color: rgba(74, 144, 226, 0.45);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 10px;
}

.shelf-item {
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.shelf-cover-img,
.shelf-item .rec-cover {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  margin-bottom: 6px;
  overflow: hidden;
}

.shelf-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.shelf-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.shelf-bottom-hint {
  text-align: center;
  font-size: 11px;
  color: #c5c5c7;
  padding: 24px 0 8px;
}

.profile-section-title {
  margin-top: 4px;
  margin-bottom: 8px;
}

.footprint-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.footprint-scroll::-webkit-scrollbar { display: none; }

.footprint-item {
  flex: 0 0 72px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  text-align: center;
}

.footprint-cover-img,
.footprint-item .rec-cover {
  width: 72px;
  height: 96px;
  border-radius: 8px;
  margin: 0 auto 4px;
}

.footprint-title {
  font-size: 10px;
  line-height: 1.25;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.entry-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 10px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
}

.entry-btn.active {
  border-color: rgba(74, 144, 226, 0.45);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.cat-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-tabs::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.cat-tab {
  white-space: nowrap;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
}

.cat-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.onboard-card {
  background: var(--surface-strong);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.goal-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.goal-grid--goals {
  grid-template-columns: 1fr 1fr;
}

.level-guide {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.level-guide-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(74, 144, 226, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.level-guide-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.level-guide-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.35;
}

.level-guide-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.level-guide-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 4px;
  padding: 0 2px;
}

.onboard-page {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 10px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

/* IP 形象 · 弹窗/卡片入场动效 */
.ip-reveal {
  opacity: 0;
  will-change: opacity, transform;
}

.ip-reveal--avatar {
  transform: scale(0.74) translateY(10px);
}

.ip-reveal--avatar.ip-reveal--shown {
  animation: ipAvatarIn 0.34s cubic-bezier(0.25, 1, 0.4, 1) both;
}

.ip-reveal--bubble {
  transform: translateX(-16px) scale(0.93);
  transform-origin: left center;
}

.ip-reveal--bubble.ip-reveal--shown {
  animation: ipBubbleIn 0.32s cubic-bezier(0.25, 1, 0.4, 1) 0.04s both;
}

.ip-reveal--panel {
  transform: translateY(24px) scale(0.95);
  transform-origin: center top;
}

.ip-reveal--panel.ip-reveal--shown {
  animation: ipPanelIn 0.34s cubic-bezier(0.25, 1, 0.4, 1) 0.08s both;
}

.ip-reveal-line {
  opacity: 0;
  transform: translateY(10px);
}

.onboard-page.ip-reveal--shown .ip-reveal-line,
.archive-page.ip-reveal--shown .ip-reveal-line {
  animation: ipLineIn 0.28s cubic-bezier(0.25, 1, 0.4, 1) both;
  animation-delay: calc(0.1s + var(--ip-i, 0) * 0.035s);
}

.ip-reveal-stagger:not(.ip-reveal--shown) .ip-reveal-item {
  opacity: 0;
  transform: translateY(14px) scale(0.97);
}

.ip-reveal-stagger.ip-reveal--shown .ip-reveal-item {
  animation: ipItemIn 0.3s cubic-bezier(0.25, 1, 0.4, 1) both;
  animation-delay: calc(0.12s + var(--ip-i, 0) * 0.045s);
}

.ip-reveal-block {
  opacity: 0;
  transform: translateY(16px);
}

.ip-reveal-block.ip-reveal--shown {
  animation: ipPanelIn 0.32s cubic-bezier(0.25, 1, 0.4, 1) 0.1s both;
}

.splash-bubble-wrap.ip-reveal-splash {
  opacity: 0;
  transform: translateY(20px) scale(0.94);
  transform-origin: center bottom;
}

.splash-bubble-wrap.ip-reveal-splash.ip-reveal--shown {
  animation: ipSplashBubbleIn 0.38s cubic-bezier(0.25, 1, 0.4, 1) 0.22s both;
}

.splash-start-btn.is-visible.is-entering {
  animation: ipItemIn 0.3s cubic-bezier(0.25, 1, 0.4, 1) both;
}

@keyframes ipAvatarIn {
  from { opacity: 0; transform: scale(0.74) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes ipBubbleIn {
  from { opacity: 0; transform: translateX(-16px) scale(0.93); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes ipPanelIn {
  from { opacity: 0; transform: translateY(24px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ipLineIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ipItemIn {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes ipSplashBubbleIn {
  from { opacity: 0; transform: translateY(20px) scale(0.94); }
  to { opacity: 1; transform: translateY(5%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ip-reveal,
  .ip-reveal-line,
  .ip-reveal-block,
  .ip-reveal-stagger .ip-reveal-item,
  .ip-reveal-stagger:not(.ip-reveal--shown) .ip-reveal-item,
  .splash-bubble-wrap.ip-reveal-splash {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

.onboard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.onboard-actions-spacer {
  flex: 1;
}

.onboard-back-btn {
  flex-shrink: 0;
}

.onboard-next-btn {
  flex-shrink: 0;
  min-width: 108px;
  margin-left: auto;
}

.ai-guide {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.ai-guide--onboard {
  flex-shrink: 0;
}

.ai-guide--static {
  flex-shrink: 0;
}

.ai-guide--static .ai-bubble,
.ai-guide--static .ai-avatar {
  opacity: 1;
  transform: none;
}

.ai-bubble-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.ai-bubble-title-row .ai-bubble-title-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1;
}

.onboard-voice-mute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: auto;
  height: auto;
  padding: 2px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #5c728a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.14s ease, opacity 0.14s ease, transform 0.14s ease;
}

/* 全局 · 小狸语音播报图标（无胶囊，仅矢量） */
.ari-voice-icon-btn {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: auto;
  height: auto;
  padding: 2px;
  margin: 0;
  border: none;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #86868b;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.14s ease, opacity 0.14s ease, transform 0.14s ease;
}

.ari-voice-icon-btn.is-on {
  color: #4a90e2;
}

.ari-voice-icon-btn.is-muted {
  color: #94a3b8;
  opacity: 0.72;
}

.ari-voice-icon-btn:active {
  transform: scale(0.92);
}

.ari-chat-hero-title-row .ari-voice-icon-btn {
  margin-top: 1px;
}

.ai-bubble-title-row .ari-voice-icon-btn {
  margin-left: 2px;
}

.onboard-voice-mute.is-muted {
  color: #94a3b8;
  opacity: 0.82;
}

.onboard-voice-mute__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.onboard-voice-mute:active {
  transform: scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
  .onboard-voice-mute {
    transition: none;
  }
}

.ip-reveal.ip-reveal--pinned {
  opacity: 1;
  transform: none;
  animation: none !important;
}

.onboard-page--path {
  margin-top: 0;
}

.onboard-path-swap {
  animation: onboardBodyIn 0.18s cubic-bezier(0.25, 1, 0.4, 1) both;
}

/* 宣传视频后 · 选择学习目标首次入场（逐行浮现） */
.onboard-page--path.onboard-path-entrance .onboard-path-reveal-line:not(.is-revealed),
.onboard-page--path.onboard-path-entrance .onboard-path-reveal-stagger .ip-reveal-item:not(.is-revealed) {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

.onboard-page--path.onboard-path-entrance .onboard-path-reveal-line.is-revealed {
  animation: ipLineIn 0.32s cubic-bezier(0.25, 1, 0.4, 1) both;
}

.onboard-page--path.onboard-path-entrance .onboard-path-reveal-stagger .ip-reveal-item.is-revealed {
  animation: ipPanelIn 0.3s cubic-bezier(0.25, 1, 0.4, 1) both;
  pointer-events: auto;
}

.onboard-page--path.onboard-path-entrance .ip-reveal-item.is-revealed .onboard-card-line {
  opacity: 0;
  animation: ipLineIn 0.26s cubic-bezier(0.25, 1, 0.4, 1) both;
}

.onboard-page--path.onboard-path-entrance .ip-reveal-item.is-revealed .goal-title.onboard-card-line {
  animation-delay: 0.03s;
}

.onboard-page--path.onboard-path-entrance .ip-reveal-item.is-revealed .goal-desc.onboard-card-line {
  animation-delay: 0.08s;
}

@keyframes onboardBodyIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .onboard-path-swap {
    animation: none;
  }
}

.ai-avatar {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  display: grid;
  place-items: center;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  flex-shrink: 0;
}

.ai-avatar--ip {
  padding: 0;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(214, 236, 255, 0.92), rgba(255, 255, 255, 0.88));
  box-shadow: 0 6px 16px rgba(74, 144, 226, 0.14);
}

.ai-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.ai-bubble {
  flex: 1;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 10px 12px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 26px rgba(74, 144, 226, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ai-guide--onboard .ai-avatar.ari-tts-speaking,
#onboard-ai-guide .ai-avatar.ari-tts-speaking {
  animation: ariTtsPulse 1.1s ease-in-out infinite;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.35);
}

@keyframes ariTtsPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.ai-bubble-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 4px;
}

.ai-bubble-text {
  font-size: 12px;
  color: rgba(29, 29, 31, 0.82);
  line-height: 1.5;
}

.pref-wrap {
  margin-top: 12px;
  margin-bottom: 12px;
}

.pref-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pref-chip {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
}

.pref-chip.active {
  background: var(--accent-soft);
  border-color: rgba(74, 144, 226, 0.45);
  color: var(--accent-dark);
}

.goal-card.active {
  border-color: rgba(74, 144, 226, 0.55);
  background: rgba(74, 144, 226, 0.1);
  box-shadow: 0 0 0 1px rgba(74, 144, 226, 0.18);
}

.onboard-time-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.onboard-time-slider-wrap {
  margin-top: 4px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.onboard-time-slider-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.onboard-time-slider-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(29, 29, 31, 0.82);
}

.onboard-time-slider-val {
  font-size: 13px;
  color: rgba(29, 29, 31, 0.68);
}

.onboard-time-slider-val strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-dark);
}

.onboard-time-slider {
  width: 100%;
  accent-color: var(--accent);
}

.onboard-time-slider-hints {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: rgba(29, 29, 31, 0.45);
}

.onboard-cet-exam {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onboard-cet-countdown {
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.14), rgba(74, 144, 226, 0.06));
  border: 1px solid rgba(74, 144, 226, 0.22);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1.45;
}

.onboard-cet-hint {
  margin: 4px 2px 0;
  font-size: 11px;
  line-height: 1.5;
  color: rgba(29, 29, 31, 0.48);
}

.onboard-cet-papers .pref-title {
  margin-bottom: 8px;
}

.diag-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.diag-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.diag-desc {
  font-size: 12px;
  color: rgba(29, 29, 31, 0.7);
  line-height: 1.5;
  margin-bottom: 10px;
}

.diag-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.diag-passage {
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.65;
  color: rgba(29, 29, 31, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.diag-q {
  margin-top: 12px;
}

.diag-q-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.diag-opts {
  display: grid;
  gap: 8px;
}

.diag-opt {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
}

.diag-opt.active {
  border-color: rgba(74, 144, 226, 0.55);
  background: rgba(74, 144, 226, 0.12);
  color: var(--accent-dark);
}

.goal-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(16px) saturate(1.45);
  -webkit-backdrop-filter: blur(16px) saturate(1.45);
}

.goal-card:active {
  transform: scale(0.99);
}

.goal-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.goal-desc {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}

.goal-level {
  font-size: 11px;
  color: var(--accent-dark);
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.rec-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 10px 28px rgba(74, 144, 226, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.rec-card:active { transform: scale(0.98); }
.rec-card.featured {
  border-color: rgba(74, 144, 226, 0.35);
  box-shadow: 0 10px 26px rgba(74, 144, 226, 0.15);
}

.status-spacer {
  display: none;
}

html.is-desktop .status-spacer {
  display: none;
}

.home-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

/* 首页顶栏：仅承载右上角学习目标胶囊，无整条底栏背景 */
.home-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 0;
  margin-bottom: 8px;
  position: relative;
  z-index: 25;
  padding: 0;
  pointer-events: none;
  background: transparent;
}

.home-topbar .goal-switcher {
  pointer-events: auto;
}

.home-topbar-spacer {
  flex: 1;
}

.goal-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 12px;
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  cursor: pointer;
  font-family: var(--font);
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  z-index: 26;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.goal-switcher:active {
  background: var(--accent-soft);
  border-color: rgba(74, 144, 226, 0.35);
}

.goal-switcher-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-dark);
}

.goal-switcher-level {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* 学习目标胶囊不再显示下拉箭头 */
.goal-switcher-chevron {
  display: none !important;
}

html.is-desktop .phone-notch {
  display: none;
}

html.is-desktop .device-shell--desktop {
  filter: none;
}

.ios-status-bar--interactive {
  z-index: 40;
}

.ios-status-bar__right .goal-switcher--status {
  max-width: min(168px, 46vw);
  padding: 4px 8px 4px 10px;
  margin-left: auto;
  flex-shrink: 1;
  min-width: 0;
}

.ios-status-bar__right .goal-switcher--status .goal-switcher-label {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 88px;
}

.ios-status-bar__right .goal-switcher--status .goal-switcher-level {
  font-size: 10px;
  padding: 1px 6px;
  flex-shrink: 0;
}

.ios-status-bar__right .goal-switcher--status .goal-switcher-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.ios-status-bar__right {
  justify-content: flex-end;
  min-width: 0;
}

/* 阅读档案页 */
.archive-page {
  padding-top: 4px;
}

.archive-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.archive-step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.18);
  transition: background 0.2s, transform 0.2s;
}

.archive-step-dot.done {
  background: rgba(74, 144, 226, 0.45);
}

.archive-step-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

.archive-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.08);
}

.archive-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(74, 144, 226, 0.08);
}

.archive-card-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.archive-label {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
}

.archive-val {
  font-size: 13px;
  font-weight: 600;
  text-align: right;
  color: var(--text);
}

.archive-choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}

.archive-choice-btn {
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  color: var(--text);
  transition: background 0.15s, border-color 0.15s;
}

.archive-choice-btn:active {
  background: #f0f4fa;
}

.archive-choice-btn--primary {
  background: var(--accent-soft);
  border-color: rgba(74, 144, 226, 0.35);
  color: var(--accent-dark);
}

.home-brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.rec-cover {
  width: 48px;
  height: 64px;
  border-radius: 8px;
  flex-shrink: 0;
  background-color: #d6dde8;
  overflow: hidden;
  position: relative;
}

.rec-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rec-cover-fallback {
  background: linear-gradient(145deg, #c5d4ea 0%, #8eb0dc 100%);
}

.rec-body { flex: 1; min-width: 0; }

.rec-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.rec-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.rec-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  background: #f0f0f2;
  color: #555;
}

.tag.ai {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.match-pill {
  font-size: 10px;
  color: var(--success);
  font-weight: 600;
}

.rec-reason {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.4;
}

/* ── 阅读页（全屏毛玻璃 · 扇贝 / 薄荷风格） ── */
#app.app--reader {
  --reader-inset-x: 28px;
  --reader-inset-x-right: 28px;
}

html.is-desktop #app.app--reader {
  padding: 0 !important;
  --reader-inset-x: var(--status-pad-left);
  --reader-inset-x-right: var(--status-pad-right);
}

html.is-desktop #app.app--intro {
  padding: 0 !important;
  --intro-content-x: var(--status-pad-left);
  --intro-content-x-right: var(--status-pad-right);
  background: linear-gradient(180deg, #5a9de8 0%, #7eb0ea 10%, #b8d4f2 22%, #d0e3f6 38%, #dceaf8 55%, #d4e6f8 78%, #c8dff5 100%);
}

html.is-mobile #app.app--intro {
  --intro-content-x: var(--page-x);
  --intro-content-x-right: var(--page-x);
  background: linear-gradient(180deg, #5a9de8 0%, #7eb0ea 10%, #b8d4f2 22%, #d0e3f6 38%, #dceaf8 55%, #d4e6f8 78%, #c8dff5 100%);
}

#app.app--intro::before {
  background:
    radial-gradient(120% 92% at 10% 12%, rgba(74, 144, 226, 0.24) 0%, transparent 54%),
    radial-gradient(110% 85% at 92% 14%, rgba(200, 225, 248, 0.72) 0%, transparent 58%),
    radial-gradient(95% 80% at 50% 100%, rgba(140, 185, 235, 0.38) 0%, rgba(200, 225, 248, 0.18) 45%, transparent 72%);
}

#app.app--intro .app-main {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

html.is-desktop #app.app--intro .app-main {
  padding-bottom: var(--sheet-inset-bottom);
}

html.is-mobile #app.app--intro .app-main {
  padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
}

#app.app--reader .app-main {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  --reader-inset-x: 28px;
  --reader-inset-x-right: 28px;
}

#view-reader {
  position: relative;
  --reader-inset-x: 28px;
  --reader-inset-x-right: 28px;
  background: transparent;
}

html.is-desktop #view-reader {
  --reader-inset-x: var(--status-pad-left);
  --reader-inset-x-right: var(--status-pad-right);
}

#view-reader.view.active {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0 var(--reader-inset-x-right, var(--reader-inset-x)) 0 var(--reader-inset-x);
  height: auto;
  min-height: 0;
  overflow: hidden;
}

#view-reader.reader-theme-sepia {
  background: rgba(244, 236, 216, 0.28);
}

#view-reader.reader-theme-dark {
  background: rgba(28, 28, 30, 0.52);
  color: #e8e8ed;
}

.reader-chrome-top {
  flex-shrink: 0;
  background: transparent;
  border-bottom: 1px solid rgba(74, 144, 226, 0.1);
  z-index: 20;
  padding-top: max(var(--safe-t), 0px);
}

html.is-desktop #view-reader .reader-chrome-top {
  padding-top: var(--content-top-pos, var(--status-h));
}

#view-reader.reader-theme-dark .reader-chrome-top {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

#view-reader.reader-theme-sepia .reader-chrome-top {
  border-bottom-color: rgba(120, 100, 60, 0.12);
}

.reader-chrome-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0 4px;
  gap: 8px;
}

.reader-chrome-left {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  flex-shrink: 0;
}

#view-reader .reader-chrome-left .top-back {
  width: auto;
  height: 44px;
  min-width: 0;
  padding: 0;
  margin: 0;
  justify-content: flex-start;
}

#view-reader .reader-chrome-left .icon-chevron-left {
  width: 20px;
  height: 20px;
}

.reader-chrome-toc {
  display: inline-flex;
  align-items: center;
  border: none;
  background: none;
  margin-left: -2px;
  padding: 6px 8px 6px 2px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
}

.reader-chrome-toc.active {
  color: var(--accent-dark);
}

.reader-chrome-toc:active {
  background: rgba(0, 0, 0, 0.05);
}

#view-reader.reader-theme-dark .reader-chrome-toc {
  color: #e8e8ed;
}

.reader-chrome-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding-right: 0;
  flex-shrink: 0;
  margin-left: auto;
}

.reader-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: #3a3a3c;
  cursor: pointer;
  border-radius: 10px;
}

#view-reader.reader-theme-dark .reader-icon-btn {
  color: #d1d1d6;
}

.reader-icon-btn svg {
  width: 22px;
  height: 22px;
}

.reader-icon-btn.active {
  color: var(--accent);
}

.reader-icon-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 99px;
  background: #ff6b35;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}

.reader-progress {
  height: 2px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.reader-progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.2s;
}

.reader-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.reader-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.reader-article-head {
  padding: 0 0 8px;
}

.reader-title {
  font-family: var(--font-read);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: #1d1d1f;
  margin-bottom: 6px;
}

#view-reader.reader-theme-dark .reader-title {
  color: #f2f2f7;
}

.reader-title-cn {
  font-family: var(--font);
  font-size: 14px;
  color: #8e8e93;
  margin-bottom: 4px;
}

.reader-chapter-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.reader-vocab-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  font-size: 12px;
  color: #8e8e93;
  margin-top: 10px;
  padding: 8px 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  transition: opacity 0.15s;
}

.reader-vocab-hint:active {
  opacity: 0.72;
}

.reader-vocab-hint-icon {
  color: #c9a227;
  font-size: 13px;
  flex-shrink: 0;
}

.reader-vocab-hint-text strong {
  color: var(--accent-dark);
  font-weight: 700;
}

.reader-vocab-hint strong {
  color: var(--accent-dark);
  font-weight: 700;
}

/* ── 阅读页底部弹窗（对齐完成阅读 · reader-post-read-sheet 规范） ── */
.reader-bottom-sheet {
  position: absolute;
  inset: 0;
  z-index: 130;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
  background: transparent;
}

.reader-bottom-sheet.open {
  display: flex;
  pointer-events: auto;
}

.reader-bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: default;
  z-index: 0;
}

#view-reader .reader-bottom-sheet .sheet,
#view-reader #ai-overlay .sheet,
#view-reader .reader-sheet-card {
  position: relative;
  z-index: 1;
  width: calc(100% - 2 * var(--page-x));
  max-width: calc(100% - 2 * var(--page-x));
  margin: 0 auto;
  pointer-events: auto;
  height: auto;
  min-height: 0;
  max-height: min(78vh, 560px);
  padding-bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: none;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  animation: readerPostReadIn 0.28s cubic-bezier(0.25, 1, 0.4, 1) both;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-sizing: border-box;
}

#view-reader .reader-bottom-sheet-card--steady {
  animation: none;
}

#view-reader .reader-bottom-sheet .sheet-handle {
  display: none;
}

#view-reader .reader-bottom-sheet .sheet-scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

#view-reader .reader-bottom-sheet--scrollable .sheet-scroll {
  flex: 1 1 auto;
}

#view-reader .reader-bottom-sheet .sheet-scroll .sheet-header {
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 16px 16px 6px;
}

#view-reader .reader-bottom-sheet--two-thirds .sheet {
  height: auto;
  min-height: 0;
  max-height: min(78vh, 560px);
}

/* ── 完成阅读 · 读后选择弹窗 ── */
.reader-post-read-overlay {
  position: absolute;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: auto;
}

.reader-post-read-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  cursor: default;
  z-index: 0;
}

.reader-post-read-sheet {
  position: relative;
  z-index: 1;
  width: calc(100% - 2 * var(--page-x));
  max-width: calc(100% - 2 * var(--page-x));
  margin: 0 auto;
  max-height: min(78vh, 560px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  animation: readerPostReadIn 0.28s cubic-bezier(0.25, 1, 0.4, 1) both;
}

.reader-post-read-guide {
  margin-bottom: 14px;
}

.reader-post-read-guide .ai-bubble {
  flex: 1;
  min-width: 0;
}

.reader-post-read-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.reader-post-read-actions .btn {
  width: 100%;
}

.reader-post-read-sheet--practice {
  max-height: min(86vh, 640px);
}

.reader-practice-head {
  margin-bottom: 12px;
}

.reader-practice-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.reader-practice-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.reader-practice-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.reader-practice-passage {
  max-height: 28vh;
  overflow-y: auto;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(74, 144, 226, 0.06);
  border: 1px solid rgba(74, 144, 226, 0.12);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  white-space: pre-wrap;
}

.reader-practice-q {
  margin-bottom: 14px;
}

.reader-practice-q-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.45;
}

@keyframes readerPostReadIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 短文练习 · 二级页 ── */
#view-article-practice.view.active {
  padding-top: 0;
}

#view-article-practice .sub-topbar {
  margin-top: 0;
}

.article-practice-body {
  padding-top: 4px;
  padding-bottom: max(var(--safe-b), 12px);
}

.article-practice-head {
  margin-bottom: 14px;
}

.article-practice-kicker {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.article-practice-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  font-family: var(--font-read);
}

.article-practice-desc {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.article-practice-passage {
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: rgba(74, 144, 226, 0.06);
  border: 1px solid rgba(74, 144, 226, 0.12);
  font-size: 15px;
  line-height: 1.68;
  color: var(--text);
  white-space: pre-wrap;
  font-family: var(--font-read);
}

.article-practice-q {
  margin-bottom: 18px;
}

.article-practice-q-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.45;
}

.article-practice-opts {
  display: grid;
  gap: 8px;
}

.article-practice-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(74, 144, 226, 0.14);
  background: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.article-practice-opt.selected {
  border-color: var(--accent);
  background: rgba(74, 144, 226, 0.1);
  color: var(--accent-dark);
  font-weight: 600;
}

.article-practice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.article-practice-actions .btn {
  width: 100%;
}

.sheet-header--nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.sheet-header--nav .top-back {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  margin-left: -6px;
}

.sheet-header--nav .sheet-title {
  flex: 1;
  min-width: 0;
}

.reader-sheet-title-icon {
  color: #c9a227;
  font-size: 15px;
}

.reader-vocab-sheet-desc {
  margin: 0 0 10px;
  padding: 0 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.reader-vocab-sheet-sample {
  border-bottom: 1px dashed rgba(52, 168, 120, 0.55);
  padding: 0 1px;
}

.reader-vocab-sheet-preview {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 13px;
  color: var(--accent-dark);
}

.reader-vocab-sheet-preview strong {
  font-weight: 700;
}

.reader-vocab-level-list {
  padding: 0 18px 6px;
}

.reader-vocab-level-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: border-color 0.15s, background 0.15s;
}

.reader-vocab-level-opt.active {
  border-color: rgba(74, 144, 226, 0.45);
  background: var(--accent-soft);
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1);
}

.reader-vocab-level-opt-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.reader-vocab-level-opt-main strong {
  font-size: 15px;
  color: var(--text);
}

.reader-vocab-level-opt-sub {
  font-size: 12px;
  color: var(--muted);
}

.reader-vocab-level-opt-tag {
  flex-shrink: 0;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 99px;
  background: rgba(255, 182, 193, 0.35);
  color: #b85c6a;
  font-weight: 600;
}

.reader-vocab-level-check {
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
}

.reader-content {
  font-family: var(--font-read);
  font-size: 19px;
  line-height: 1.9;
  color: #2c2a26;
  padding: 4px 0 24px;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

.reader-content p {
  margin-bottom: 1.35em;
  text-indent: 0;
  -webkit-user-select: text;
  user-select: text;
}

#view-reader.reader-theme-dark .reader-content {
  color: #e5e5ea;
}

.reader-content.reader-font-s {
  font-size: 16px;
  line-height: 1.75;
}

.reader-content.reader-font-l {
  font-size: 22px;
  line-height: 2;
}

.reader-para {
  margin-bottom: 0.4em;
}

.reader-para-cn {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  color: #8e8e93;
  margin: -0.6em 0 1.2em;
  padding: 10px 12px;
  background: rgba(245, 235, 220, 0.55);
  border-radius: 8px;
}

#view-reader.reader-theme-dark .reader-para-cn {
  background: rgba(255, 255, 255, 0.08);
  color: #aeaeb2;
}

.reader-para-trans-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 5px;
  border: none;
  border-radius: 6px;
  background: rgba(74, 144, 226, 0.1);
  color: var(--accent-dark);
  vertical-align: middle;
  cursor: pointer;
  transform: translateY(-2px);
  flex-shrink: 0;
  font-family: var(--font);
}

.reader-para-trans-glyph {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.reader-para-trans-btn.active {
  background: rgba(74, 144, 226, 0.2);
  color: var(--accent-dark);
}

.reader-para-trans-btn.loading {
  pointer-events: none;
  opacity: 0.55;
}

.reader-para-trans-btn.loading .reader-para-trans-glyph {
  animation: readerTransPulse 0.9s ease-in-out infinite;
}

@keyframes readerTransPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

.reader-para-cn--loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.reader-para--tts-active {
  /* 朗读进度仅逐词改色，段落层不加底色/边距，避免布局跳动 */
}

.reader-content--rich .reader-chapter-num {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.reader-content--rich .reader-figure {
  margin: 16px 0 20px;
  text-align: center;
}

.reader-content--rich .reader-figure img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 52vh;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.12);
  display: inline-block;
}

.reader-word {
  border-bottom: 1px dashed rgba(52, 168, 120, 0.55);
  cursor: pointer;
  padding: 0 1px;
  border-radius: 2px;
  transition: background 0.15s;
}

.reader-word:hover,
.reader-word.tapped,
.reader-word--highlight {
  background: rgba(245, 235, 220, 0.75);
}

#view-reader.reader-theme-dark .reader-word:hover,
#view-reader.reader-theme-dark .reader-word.tapped,
#view-reader.reader-theme-dark .reader-word--highlight {
  background: rgba(255, 214, 102, 0.18);
}

.reader-float-stack {
  position: absolute;
  right: 25px;
  bottom: calc(max(var(--safe-b), 0px) + 16px);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

html.is-desktop .reader-float-stack {
  bottom: calc(var(--nav-safe-b) + 16px);
}

.reader-float-stack > * {
  pointer-events: auto;
}

.reader-fab-trans {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  font-family: var(--font);
  flex-shrink: 0;
}

.reader-tts-disc {
  position: relative;
  width: 54px;
  height: 54px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
}

.reader-tts-disc-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.07);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
  pointer-events: none;
}

.reader-tts-disc-cover {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c5d4ea 0%, #8eb0dc 100%) center/cover no-repeat;
  transform-origin: center center;
}

.reader-tts-disc-cover.is-spinning {
  animation: reader-disc-spin 7s linear infinite;
}

.reader-tts-disc-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.45);
  border: 1.5px solid #fff;
  pointer-events: none;
}

.reader-tts-disc-badge--paused {
  background: #636366;
  font-size: 6px;
}

@keyframes reader-disc-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.reader-audio-float {
  width: min(220px, calc(100vw - 48px));
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
}

#view-reader.reader-theme-dark .reader-audio-float {
  background: rgba(28, 28, 30, 0.96);
  border-color: rgba(255, 255, 255, 0.1);
}

.reader-audio-float-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px 10px;
}

.reader-audio-float-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px 2px;
}

.reader-audio-float-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.reader-audio-collapse {
  border: none;
  background: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font);
  padding: 4px 0;
  flex-shrink: 0;
}

.reader-audio-bar--float {
  flex-shrink: unset;
  border-top: none;
  padding: 2px 8px 10px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#view-reader.reader-theme-dark .reader-audio-bar--float {
  background: transparent;
}

.reader-fab-en {
  font-size: 13px;
  font-weight: 700;
  color: #3a3a3c;
}

.reader-fab-cn {
  font-size: 12px;
  color: var(--accent-dark);
}

.reader-panel-body {
  padding: 0 16px 4px;
}

.reader-panel-body--more {
  padding-top: 0;
  padding-bottom: 8px;
}

.reader-panel-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.reader-panel-seg {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.reader-panel-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

.reader-level-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reader-level-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
}

.reader-level-opt.active {
  border-color: rgba(74, 144, 226, 0.45);
  background: var(--accent-soft);
}

.reader-level-opt-lv {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-dark);
  min-width: 32px;
}

.reader-level-opt-desc {
  font-size: 12px;
  color: var(--muted);
}

/* ── 阅读页 · 本书生词本（底部弹窗内） ── */
.reader-bottom-sheet .reader-book-wordbook-stats {
  padding: 0 16px 10px;
  font-size: 13px;
  color: var(--muted);
  background: transparent;
  border-bottom: none;
}

.reader-wordbook-sheet-body {
  padding: 0 16px 8px;
}

.reader-wordbook-sheet-body--detail {
  padding-top: 4px;
}

.reader-wordbook-sheet-body--detail .sheet-phonetics {
  margin: 8px 0 4px;
}

.reader-wordbook-dict {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 4px;
}

.reader-wordbook-dict-loading {
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-wordbook-sheet-body--detail .sheet-extras {
  margin: 8px 0 4px;
}

.word-scene-card--static {
  cursor: default;
}

.word-scene-card--static:active {
  transform: none;
}

.reader-word-locate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
}

.reader-word-locate-btn:active {
  transform: scale(0.99);
}

.reader-word-locate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f2f2f7;
  color: #007aff;
}

.reader-word-locate-icon svg {
  width: 16px;
  height: 16px;
}

.reader-book-wordbook-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 36vh;
  padding: 24px 0;
  text-align: center;
  color: #c7c7cc;
}

.reader-book-wordbook-stats strong {
  color: #3cb371;
  font-weight: 700;
}

.reader-book-wordbook-book {
  color: #aeaeb2;
  font-size: 12px;
}

.reader-book-wordbook-empty-icon {
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
  color: #d1d1d6;
}

.reader-book-wordbook-empty-icon svg {
  width: 100%;
  height: 100%;
}

.reader-book-wordbook-empty-text {
  font-size: 14px;
  color: #c7c7cc;
}

.reader-book-wordbook-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reader-book-word-item {
  width: 100%;
  text-align: left;
  border: none;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  cursor: pointer;
  font-family: var(--font);
}

.reader-book-word-item:active {
  transform: scale(0.99);
}

.reader-book-word-item-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.reader-book-word-item-sent {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 8px;
}

.reader-book-word-item-sent strong {
  color: var(--accent-dark);
}

.reader-more-item {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  border-radius: 10px;
  color: var(--text);
}

.reader-more-item:active {
  background: rgba(0, 0, 0, 0.04);
}

.reader-more-item--primary {
  color: var(--accent-dark);
  font-weight: 600;
}

.reader-more-divider {
  height: 1px;
  margin: 4px 0;
  background: rgba(0, 0, 0, 0.06);
}

#view-reader.reader-theme-dark .reader-more-divider {
  background: rgba(255, 255, 255, 0.08);
}

.reader-chapter-end {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  justify-content: center;
  padding: 32px 16px 48px;
  margin-top: 8px;
}

.reader-chapter-end .reader-narrate-capsule-wrap {
  width: 100%;
  margin-bottom: 0;
}

.reader-chapter-end-btn {
  align-self: center;
  border: none;
  background: transparent;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 10px;
  transition: background 0.15s;
  white-space: nowrap;
}

.reader-chapter-end-btn:active {
  background: rgba(74, 144, 226, 0.1);
}

#view-reader.reader-theme-dark .reader-chapter-end-btn {
  color: #6eb3ff;
}

#view-reader.reader-theme-dark .reader-chapter-end-btn:active {
  background: rgba(110, 179, 255, 0.12);
}

.reader-chapter-end--dock {
  padding-top: 20px;
}

.reader-post-read-dock {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.reader-post-read-dock-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.reader-post-read-dock-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 16px rgba(74, 144, 226, 0.08);
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}

.reader-post-read-dock-card:active {
  transform: scale(0.99);
}

.reader-post-read-dock-card .icon-chevron-right {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #c7c7cc;
}

.reader-post-read-dock-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.reader-post-read-dock-icon svg {
  width: 22px;
  height: 22px;
}

.reader-post-read-dock-icon--practice {
  color: #0d9488;
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.16), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(13, 148, 136, 0.18);
}

.reader-post-read-dock-icon--report {
  color: #2563eb;
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.16), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.reader-post-read-dock-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.reader-post-read-dock-title {
  font-size: 15px;
  font-weight: 700;
  color: #1d1d1f;
  line-height: 1.25;
}

.reader-post-read-dock-sub {
  font-size: 12px;
  color: #86868b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#view-reader.reader-theme-dark .reader-post-read-dock-card {
  background: rgba(28, 28, 30, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.24);
}

#view-reader.reader-theme-dark .reader-post-read-dock-title {
  color: #f5f5f7;
}

#view-reader.reader-theme-dark .reader-post-read-dock-sub {
  color: #98989d;
}

#view-reader.reader-theme-dark .reader-post-read-dock-card .icon-chevron-right {
  color: #636366;
}

#view-reader.reader-theme-dark .reader-narrate-ai-badge {
  color: #c4b5fd;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.28), rgba(37, 99, 235, 0.2));
  border-color: rgba(167, 139, 250, 0.35);
}

.reader-audio-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px var(--page-x);
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#view-reader.reader-theme-dark .reader-audio-bar {
  background: #1c1c1e;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.reader-audio-vip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #3a3a3c;
  cursor: pointer;
}

.reader-audio-vip svg {
  width: 22px;
  height: 22px;
}

.reader-audio-vip-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e8b84a, #d4a017);
  color: #fff;
}

.reader-audio-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.reader-audio-skip {
  border: none;
  background: none;
  font-size: 16px;
  color: #3a3a3c;
  cursor: pointer;
  padding: 4px;
}

.reader-audio-skip.is-disabled,
.reader-audio-skip:disabled {
  color: #c7c7cc;
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.reader-audio-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #1d1d1f;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

#view-reader.reader-theme-dark .reader-audio-play {
  background: #f2f2f7;
  color: #1d1d1f;
}

.reader-audio-speed {
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  color: #3a3a3c;
}

.reader-bottom-bar {
  display: none;
}

html.is-desktop #view-reader .reader-bottom-bar {
  display: none;
}

#view-reader.reader-theme-dark .reader-bottom-bar {
  background: #1c1c1e;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.reader-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 6px;
  border: none;
  background: none;
  color: #636366;
  font-size: 10px;
  font-family: var(--font);
  cursor: pointer;
  min-width: 0;
}

#view-reader.reader-theme-dark .reader-bar-btn {
  color: #aeaeb2;
}

.reader-bar-btn svg {
  width: 20px;
  height: 20px;
}

.reader-bar-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.reader-bar-btn.active {
  color: var(--accent-dark);
}

.reader-icon-aa,
.reader-icon-ci {
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
}

.reader-icon-aa {
  font-family: Georgia, serif;
}

.reader-icon-ci {
  font-family: var(--font);
}

.top-toc {
  border: 1px solid rgba(74, 144, 226, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-family: var(--font);
  justify-self: end;
}

#view-path.view.active,
#view-report.view.active {
  padding-top: 0;
}

#view-path .sub-topbar,
#view-report .sub-topbar {
  margin-top: 0;
}

.reader-toc-panel {
  position: absolute;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  padding: 0 0 max(var(--safe-b), 14px);
  box-sizing: border-box;
}

.reader-toc-panel.open {
  display: flex;
  pointer-events: auto;
}

.reader-toc-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 0;
}

.reader-toc-card {
  position: relative;
  z-index: 1;
  width: 100%;
  height: min(66.67vh, calc(100% - 40px));
  max-height: min(66.67vh, calc(100% - 40px));
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-radius: 18px;
  box-shadow: 0 -10px 28px rgba(74, 144, 226, 0.14), 0 8px 24px rgba(74, 144, 226, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  animation: tocSlideUp 0.28s ease;
}

html.is-desktop #view-reader .reader-toc-panel {
  padding: 0 0 var(--sheet-inset-bottom);
}

html.is-desktop #view-reader .reader-toc-card {
  height: auto;
  min-height: 0;
  max-height: min(66.67vh, var(--sheet-max-h));
  flex: 0 1 min(66.67vh, var(--sheet-max-h));
}

.reader-toc-head,
.reader-toc-search-wrap,
.reader-toc-list {
  padding-left: 16px;
  padding-right: 16px;
}

.reader-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
  padding-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.reader-toc-close {
  border: none;
  background: #f0f0f2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
}

.reader-toc-search-wrap {
  flex-shrink: 0;
  padding-top: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.reader-toc-search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(74, 144, 226, 0.18);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-family: var(--font);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}

.reader-toc-search:focus {
  outline: none;
  border-color: rgba(74, 144, 226, 0.45);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
}

.reader-toc-empty {
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@keyframes tocSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.reader-toc-list {
  flex: 1;
  overflow-y: auto;
  padding-top: 8px;
  padding-bottom: 16px;
}

.reader-toc-item {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 10px 0;
  font-size: 14px;
  line-height: 1.45;
  color: #2c2a26;
  cursor: pointer;
  font-family: var(--font-read);
}

.reader-toc-item.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.reader-toc-item:active {
  background: rgba(74, 144, 226, 0.12);
}

.reader-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.reader-actions .btn-primary {
  grid-column: 1 / -1;
}

.btn {
  flex: 1;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.15s;
}

.btn:active { opacity: 0.85; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid rgba(74, 144, 226, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

/* ── AI 弹窗（覆盖底栏，不参与 flex 布局） ── */
#ai-overlay.overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 300;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  pointer-events: none;
}

#ai-overlay.overlay.open {
  display: flex;
  pointer-events: auto;
}

#ai-overlay .sheet {
  pointer-events: auto;
}

/* 阅读页 · 查词弹窗在 #view-reader 内，宽度见 .reader-sheet-card */
#view-reader #ai-overlay.overlay {
  z-index: 300;
}

.sheet {
  width: 100%;
  height: min(78vh, 540px);
  max-height: min(78vh, 540px);
  min-height: min(78vh, 540px);
  background: rgba(255, 255, 255, 0.97);
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.28s ease;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 -2px 6px rgba(0, 0, 0, 0.05),
    0 -12px 32px rgba(74, 144, 226, 0.14),
    0 -24px 52px rgba(36, 88, 168, 0.1);
  box-sizing: border-box;
  overflow: hidden;
}

/* 桌面预览：查词弹窗左右留白、底边贴齐屏幕内缘 */
html.is-desktop #ai-overlay.overlay {
  align-items: flex-end;
  padding: 0 var(--sheet-inset-x) 0;
  box-sizing: border-box;
}

html.is-desktop #view-reader #ai-overlay.overlay {
  padding: 0;
}

html.is-desktop #view-reader #ai-overlay .sheet,
html.is-desktop #view-reader .reader-sheet-card {
  height: auto;
  min-height: 0;
  max-height: min(78vh, 560px);
  border-radius: 20px 20px 0 0;
  border: none;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

html.is-desktop #ai-overlay .sheet:not(.reader-sheet-card) {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: var(--sheet-max-h);
  border-radius: 18px 18px 0 0;
  border: 1px solid rgba(74, 144, 226, 0.1);
  border-bottom: none;
  box-shadow:
    0 -3px 8px rgba(0, 0, 0, 0.06),
    0 -14px 36px rgba(74, 144, 226, 0.16),
    0 -28px 56px rgba(36, 88, 168, 0.12);
}

html.is-desktop #ai-overlay .sheet.sheet--loading {
  min-height: min(240px, 36vh);
}

#ai-overlay .sheet.sheet--height-anim {
  transition: height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

html.is-desktop #ai-overlay .sheet-scroll .sheet-word-row,
html.is-desktop #ai-overlay .sheet-scroll .sheet-header,
html.is-desktop #ai-overlay .sheet-scroll .sheet-panel-tabs,
html.is-desktop #ai-overlay .sheet-scroll .sheet-dict-tabs,
html.is-desktop #ai-overlay .sheet-scroll .sheet-phrase-tabs,
html.is-desktop #ai-overlay .sheet-scroll .sheet-body {
  padding-left: 16px;
  padding-right: 16px;
}

html.is-desktop #ai-overlay .sheet-scroll .sheet-actions--inline {
  padding-left: 16px;
  padding-right: 16px;
}

html.is-desktop #ai-overlay #sheet-actions-wrap .sheet-actions--inline {
  padding-left: 16px;
  padding-right: 16px;
}

html.is-desktop #view-reader .reader-bottom-sheet {
  align-items: flex-end;
  padding: 0;
  box-sizing: border-box;
}

html.is-desktop #view-reader .reader-bottom-sheet .sheet,
html.is-desktop #view-reader .reader-sheet-card {
  height: auto;
  min-height: 0;
  max-height: min(78vh, 560px);
  border-radius: 20px 20px 0 0;
  border: none;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}

html.is-desktop #view-reader .reader-bottom-sheet .sheet-scroll .sheet-header,
html.is-desktop #view-reader .reader-bottom-sheet .sheet-scroll .reader-panel-body,
html.is-desktop #view-reader .reader-bottom-sheet .sheet-scroll .reader-vocab-sheet-desc,
html.is-desktop #view-reader .reader-bottom-sheet .sheet-scroll .reader-vocab-sheet-preview,
html.is-desktop #view-reader .reader-bottom-sheet .sheet-scroll .reader-vocab-level-list,
html.is-desktop #view-reader .reader-bottom-sheet .sheet-scroll .reader-book-wordbook-stats,
html.is-desktop #view-reader .reader-bottom-sheet .sheet-scroll .reader-wordbook-sheet-body {
  padding-left: 16px;
  padding-right: 16px;
}

html.is-desktop #view-reader .reader-bottom-sheet--scrollable .sheet,
html.is-desktop #view-reader .reader-bottom-sheet--two-thirds .sheet {
  height: auto;
  min-height: 0;
  max-height: min(78vh, 560px);
}

html.is-desktop .sel-dock {
  left: var(--sheet-inset-x);
  right: var(--sheet-inset-x);
  bottom: var(--sheet-inset-bottom);
  max-height: min(46cqh, 360px);
}

html.is-desktop .ai-explain-overlay {
  padding: calc(var(--content-top-pos) + 8px) var(--sheet-inset-x) var(--sheet-inset-bottom);
  box-sizing: border-box;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  background: #d1d1d6;
  border-radius: 99px;
  margin: 10px auto 0;
}

.sheet-header {
  padding: 4px 18px 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#ai-overlay .sheet-scroll .sheet-header {
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.sheet-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: max(8px, var(--safe-b));
}

.sheet-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

#ai-overlay .sheet-scroll .sheet-body {
  flex: none;
  min-height: 0;
  overflow: visible;
}

.sheet-title {
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.sheet-close {
  border: none;
  background: #f0f0f2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  color: var(--muted);
}

.sheet-word-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 2px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.sheet-word-row #sheet-word-head-wrap {
  width: 100%;
  flex: none;
  min-width: 0;
}

.sheet-word-row #sheet-phonetics-wrap {
  width: 100%;
  flex: none;
}

.sheet-word-row #sheet-phonetics-wrap:not(.is-filled) {
  display: none;
}

.sheet-word-row .sheet-word-head {
  padding: 0;
}

.sheet-word-row .sheet-phonetics {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0;
  border-bottom: none;
  flex-wrap: wrap;
  width: 100%;
}

.sheet-word-row .sheet-phonetic-btn {
  max-width: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.sheet-word-row--sentence {
  align-items: flex-start;
}

.sheet-word-head {
  padding: 0 18px 4px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-read);
  line-height: 1.35;
}

.sheet-word-head--sentence {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.sheet-phonetics {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 6px 18px 12px;
  border-bottom: 1px solid var(--border);
}

.sel-trans .sheet-phonetics {
  padding: 8px 0 0;
  border-bottom: none;
  margin-top: 4px;
}

.sheet-phonetic-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 4px 0;
  cursor: pointer;
  font-family: var(--font);
  color: #2a9d8f;
  max-width: none;
}

.sheet-phonetic-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sheet-phonetic-btn:active {
  opacity: 0.7;
}

.sheet-phonetic-label {
  font-size: 13px;
  font-weight: 600;
  color: #2a9d8f;
}

.sheet-phonetic-ipa {
  font-size: 13px;
  color: #3d5a56;
  font-family: var(--font-read);
}

.sheet-phonetic-ipa--muted {
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
}

.sheet-slot {
  flex-shrink: 0;
}

.sheet-word-row .sheet-slot--phon.is-filled {
  min-height: 0;
}

.sheet-slot--phon.is-filled {
  min-height: 52px;
}

.sheet-slot--subtabs.is-filled,
.sheet-slot--subtabs.is-ghost {
  min-height: 42px;
}

.sheet-subtabs--ghost {
  visibility: hidden;
  pointer-events: none;
}

.sheet-body {
  padding: 8px 18px 12px;
  font-size: 14px;
  line-height: 1.65;
}

.sheet-body.loading {
  color: var(--muted);
  min-height: 120px;
  padding-top: 14px;
}

#ai-overlay .sheet-body.sheet-body--reveal:not(.loading) {
  animation: sheetContentRise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#ai-overlay .sheet-slot--reveal {
  animation: sheetSlotRise 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes sheetContentRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheetSlotRise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sheet-body strong { font-weight: 600; }

.sheet-actions--inline {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 0 18px max(20px, calc(var(--safe-b) + 16px));
  border-top: none;
  flex-shrink: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#sheet-actions-wrap {
  flex-shrink: 0;
}

#sheet-actions-wrap:empty {
  display: none;
}

.sheet-actions--inline .btn {
  flex: 1;
  font-size: 13px;
  padding: 10px;
}

.sheet-dict-tabs {
  display: flex;
  gap: 6px;
  padding: 0 18px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sheet-dict-tabs::-webkit-scrollbar { display: none; }

.sheet-dict-tab {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  cursor: pointer;
  font-family: var(--font);
}

.sheet-dict-tab.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: rgba(74, 144, 226, 0.35);
  font-weight: 600;
}

.sheet-phrase-tabs {
  display: flex;
  gap: 8px;
  padding: 0 18px 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.sheet-phrase-tabs::-webkit-scrollbar { display: none; }

.sheet-phrase-tab {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: var(--font);
  color: var(--muted);
  cursor: pointer;
}

.sheet-phrase-tab.active {
  border-color: rgba(42, 157, 143, 0.45);
  background: rgba(42, 157, 143, 0.1);
  color: #1f7a6e;
  font-weight: 600;
}

.sheet-panel-tabs {
  display: flex;
  gap: 6px;
  padding: 4px 16px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sheet-panel-tab {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-panel-tab.active {
  background: rgba(74, 144, 226, 0.12);
  color: var(--accent);
  font-weight: 600;
}

.sheet-extras {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.sheet-extra-block + .sheet-extra-block {
  margin-top: 12px;
}

.sheet-extra-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}

.sheet-extra-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sheet-extra-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(74, 144, 226, 0.1);
  color: #2a6cb8;
  font-size: 13px;
}

.sheet-extra-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.sheet-extra-forms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}

.sheet-extra-forms span {
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
}

.sheet-trans-block {
  padding: 4px 0;
}

.sheet-trans-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.sheet-trans-cn {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: var(--text);
}

.sheet-trans-en {
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  color: var(--muted);
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
}

.sheet-mark-block {
  padding: 4px 0;
}

.sheet-mark-lead {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.sheet-mark-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.sheet-mark-en {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--text);
  font-family: var(--font-read);
  padding: 12px;
  background: rgba(255, 193, 7, 0.12);
  border-left: 3px solid #ffc107;
  border-radius: 0 10px 10px 0;
}

.sheet-mark-actions {
  display: flex;
  gap: 8px;
}

.sheet-mark-actions .btn {
  flex: 1;
  font-size: 13px;
  padding: 10px;
}

.sheet-mark-hint {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.sheet-body--hiai.sheet-body--scroll-footer {
  display: block;
  overflow: visible;
  padding: 0;
}

.sheet-body--hiai {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.sheet-body--sentence-panel {
  min-height: 132px;
}

#ai-sheet.sheet--sentence {
  min-height: min(360px, 54vh);
}

html.is-desktop #ai-overlay .sheet.sheet--sentence {
  min-height: min(360px, 54vh);
}

#ai-sheet.sheet--hiai .sheet-scroll {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
}

.sheet-hiai {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.sheet-hiai-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 8px;
}

.sheet-hiai-head-label {
  font-size: 13px;
  font-weight: 600;
  color: #5c728a;
}

.sheet-hiai-ctx {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(74, 144, 226, 0.06);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.sheet-hiai-ctx-label {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(74, 144, 226, 0.15);
  color: var(--accent);
  font-weight: 600;
}

.sheet-hiai-ctx-text {
  line-height: 1.45;
  color: var(--muted);
}

.sheet-hiai-msgs {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 16px;
}

.sheet-hiai-empty {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}

.sheet-ai-msg {
  margin-bottom: 10px;
}

.sheet-ai-msg--user {
  display: flex;
  justify-content: flex-end;
}

.sheet-ai-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.sheet-ai-msg--user .sheet-ai-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.sheet-ai-msg--assistant .sheet-ai-bubble {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.sheet-hiai-suggestions {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 16px 6px;
  border-top: 1px solid var(--border);
  overflow: visible;
}

.sheet-ai-chip {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
}

.sheet-ai-chip:active {
  background: rgba(74, 144, 226, 0.08);
  border-color: rgba(74, 144, 226, 0.35);
}

.sheet-hiai-input-row.chat-compose-foot {
  flex-shrink: 0;
  padding: 6px 16px 10px;
  margin-top: auto;
  border-top: none;
  background: #fff;
  box-sizing: border-box;
}

html.is-desktop #ai-overlay .sheet-hiai-input-row.chat-compose-foot {
  padding-bottom: max(10px, var(--sheet-inset-bottom, 14px));
}

.sheet-hiai-input-row .chat-compose-bar {
  width: 100%;
  margin: 0;
  padding: 4px 8px 4px 10px;
}

.sheet-hiai-input-row .chat-compose-field .sheet-hiai-input,
.sheet-hiai-input-row .chat-compose-field .chat-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 32px;
  min-height: 32px;
  max-height: 32px;
  border: none;
  background: transparent;
  padding: 0 4px;
  margin: 0;
  font-size: 15px;
  line-height: 32px;
  font-family: var(--font);
  color: #1a1c1e;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
}

.sheet-hiai-input-row .chat-compose-field .sheet-hiai-input::placeholder,
.sheet-hiai-input-row .chat-compose-field .chat-input::placeholder {
  color: #a0a4ab;
}

.sheet-hiai-input-row .chat-compose-field .sheet-hiai-input:focus {
  border: none;
  box-shadow: none;
}

#ai-sheet.sheet {
  animation: none;
}

#ai-overlay.open #ai-sheet {
  animation: slideUp 0.28s ease;
}

.reader-loading {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.reader-loading .ai-dot {
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── 生词本 ── */
.word-item {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  cursor: pointer;
}

.word-item[role="button"]:active {
  background: rgba(245, 245, 247, 0.95);
}

.word-item-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.word-speak-btn {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(74, 144, 226, 0.2);
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.08);
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.word-speak-btn svg {
  width: 15px;
  height: 15px;
}

.word-context-book {
  color: var(--accent-dark);
  font-weight: 600;
}

.word-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.word-en {
  font-size: 16px;
  font-weight: 600;
}

.word-pos {
  font-size: 12px;
  color: var(--muted);
}

.word-cn {
  font-size: 13px;
  color: #444;
  margin-bottom: 8px;
}

.word-context-card,
.word-scene-card {
  display: block;
  width: 100%;
  text-align: left;
  background: rgba(245, 247, 250, 0.95);
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(74, 144, 226, 0.1);
  margin-top: 4px;
}

.word-scene-card {
  cursor: pointer;
  transition: background 0.15s;
}

.word-scene-card:active {
  background: rgba(74, 144, 226, 0.08);
}

.word-context-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 6px;
}

.word-date-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.word-context-sent {
  font-size: 13px;
  line-height: 1.55;
  color: #333;
  margin-bottom: 8px;
}

.word-context-sent strong {
  color: var(--text);
  font-weight: 700;
}

.word-context-src {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.word-context-arrow {
  font-size: 16px;
  color: #c5c5c7;
}

.wordbook-detail {
  padding: 0 0 24px;
}

.word-detail-head {
  padding: 8px 18px 16px;
}

.word-detail-en {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.word-detail-meta {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.wordbook-detail .section-title {
  padding: 0 18px;
}

.wordbook-detail .word-scene-card {
  margin: 0 18px 8px;
}

.wordbook-detail .sub-hint {
  padding: 0 18px;
}

.wordbook-detail .sheet-phonetics {
  margin: 0 18px;
}

.wb-detail-tabs {
  display: flex;
  gap: 6px;
  margin: 12px 18px 10px;
}

.wb-detail-tab {
  flex: 1;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font);
}

.wb-detail-tab.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: rgba(74, 144, 226, 0.35);
}

.wb-detail-panel {
  margin: 0 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px;
  line-height: 1.65;
  min-height: 120px;
}

.wb-detail-loading {
  color: var(--muted);
  font-size: 13px;
  padding: 24px 8px;
  text-align: center;
}

.reader-word--highlight {
  background: rgba(255, 214, 102, 0.55) !important;
  border-bottom-color: #e6a800 !important;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.35);
  border-radius: 3px;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
}

.empty-state p { font-size: 14px; line-height: 1.6; }

/* ── 学习报告 ── */
.report-duration-hero {
  text-align: center;
  padding: 28px 20px 24px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: var(--radius);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.report-duration-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.report-duration-val {
  margin-top: 8px;
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.report-duration-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.report-practice-card {
  padding: 18px 16px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius);
  margin-bottom: 14px;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.report-practice-card--skipped {
  background: rgba(255, 255, 255, 0.78);
}

.report-practice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.report-practice-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.report-practice-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.report-practice-badge--good {
  color: #15803d;
  background: rgba(34, 197, 94, 0.14);
}

.report-practice-badge--mid {
  color: #b45309;
  background: rgba(245, 158, 11, 0.16);
}

.report-practice-badge--low {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
}

.report-practice-badge--muted {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
}

.report-practice-desc {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.report-practice-score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.report-practice-score-val {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.report-practice-score-unit {
  font-size: 18px;
  font-weight: 700;
}

.report-practice-score-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.report-practice-score-meta {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: #3a3a3c;
}

.report-practice-score-meta strong {
  font-size: 18px;
  color: var(--accent);
}

.report-practice-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--muted);
}

.report-practice-qs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-practice-q {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.03);
}

.report-practice-q.is-correct {
  background: rgba(34, 197, 94, 0.08);
}

.report-practice-q.is-wrong {
  background: rgba(239, 68, 68, 0.07);
}

.report-practice-q-mark {
  flex-shrink: 0;
  width: 20px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.4;
}

.report-practice-q.is-correct .report-practice-q-mark {
  color: #15803d;
}

.report-practice-q.is-wrong .report-practice-q-mark {
  color: #b91c1c;
}

.report-practice-q-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: #1d1d1f;
}

.report-practice-q-ans {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.reader-brief-float {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(232, 163, 23, 0.35);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(232, 163, 23, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.reader-brief-float svg {
  width: 24px;
  height: 24px;
  color: #e8a317;
}

.reader-brief-float:active {
  transform: scale(0.96);
}

#view-report.report-entrance [data-report-reveal] {
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
}

#view-report.report-entrance [data-report-reveal].is-revealed {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  animation: reportCardIn 0.34s cubic-bezier(0.25, 1, 0.4, 1) both;
  animation-delay: calc(var(--report-i, 0) * 0.04s);
}

@keyframes reportCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.report-list--notes {
  margin-bottom: 14px;
}

.report-home-btn {
  width: 100%;
  margin-top: 4px;
}

.report-hero {
  text-align: center;
  padding: 24px 16px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.report-score {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.report-score-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.report-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
  text-align: center;
}

.stat-val {
  font-size: 20px;
  font-weight: 700;
}

.stat-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.report-list {
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.report-list h3 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.report-list li {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
  margin-left: 18px;
  color: #444;
}

/* ── 视图：堆叠布局（对话练习贴底输入） ── */
.app-main.app-main--stack {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.view-stack {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  padding: 0;
}

.view-stack.active {
  display: flex;
}

/* 防止子类选择器误覆盖隐藏态（如 reader-narrate-view） */
.view.view-stack:not(.active) {
  display: none !important;
}

.view-stack .meet-top {
  flex-shrink: 0;
  padding: 12px var(--page-x) 0;
}

.view-stack .meet-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 var(--page-x);
  scrollbar-width: none;
}

.view-stack .meet-scroll::-webkit-scrollbar {
  display: none;
}

.view-stack .meet-footer {
  flex-shrink: 0;
  padding: 8px var(--page-x) 10px;
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

html.is-desktop .view-stack .meet-footer {
  padding-bottom: var(--nav-safe-b);
}

.view-stack .meet-chat-nav {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px var(--page-x) 10px;
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* —— 对话窗口（Study Buddy 风格） —— */
.meet-chat-view {
  background: transparent;
}

.chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--page-x) 12px;
  background: transparent;
  position: relative;
  z-index: 5;
}

.chat-header .top-back {
  flex-shrink: 0;
}

.chat-header-profile {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header-avatar {
  width: 36px !important;
  height: 36px !important;
  font-size: 12px !important;
}

.chat-header-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #1A1C1E;
}

.chat-header-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chat-header-title-row .chat-header-title {
  min-width: 0;
}

.chat-header-voice-mute {
  flex-shrink: 0;
}

.chat-header-sub {
  font-size: 12px;
  color: #8E9299;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-header-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.03);
  color: #1A1C1E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-header-icon:active {
  background: rgba(0, 0, 0, 0.06);
}

.chat-header-segments {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 var(--page-x) 14px;
}

.chat-segment-control {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #fff;
  padding: 4px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.chat-segment-control::-webkit-scrollbar {
  display: none;
}

.chat-segment-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #8E9299;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s ease;
}

.chat-segment-btn.active {
  background: #F2F4F7;
  color: #1A1C1E;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.04);
}

.chat-segment-more {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.03);
  color: #1A1C1E;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.chat-segment-more:active {
  transform: scale(0.96);
}

.chat-feed-scroll {
  padding: 0 10px 8px !important;
}

.meet-chat-view .chat-feed {
  padding-left: 0;
  padding-right: 0;
  gap: 12px;
}

.meet-chat-view .chat-row {
  gap: 8px;
}

.meet-chat-view .chat-row--peer {
  padding-right: 28px;
}

.meet-chat-view .chat-row--user {
  padding-left: 28px;
}

.meet-chat-view .chat-bubble {
  max-width: min(calc(100% - 48px), 340px);
}

.chat-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0 24px;
  min-height: 200px;
}

.chat-feed > .chat-msg--stack {
  position: relative;
  margin-top: -18px;
}

.chat-feed > .chat-msg--stack:first-child {
  margin-top: 0;
}

.chat-msg--ai {
  align-self: flex-start;
  max-width: 92%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg--user {
  align-self: flex-end;
  max-width: 82%;
}

.chat-msg-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #8E9299;
  margin-left: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-msg-label svg {
  flex-shrink: 0;
  color: #8E9299;
}

.chat-rich-card {
  border-radius: 28px;
  padding: 20px;
  position: relative;
  box-shadow: 0 -8px 24px -8px rgba(0, 0, 0, 0.06), 0 12px 24px -4px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.chat-rich-card--yellow {
  background: #FCE19B;
  color: #5C4B1A;
}

.chat-rich-card--pink {
  background: #FFC4CC;
  color: #6B2934;
}

.chat-rich-card--white {
  background: #fff;
  color: #1A1C1E;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.chat-rich-card--typing .chat-rich-body {
  opacity: 0.75;
  font-style: italic;
}

.chat-rich-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}

.chat-rich-body {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.95;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-rich-body--lead {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.chat-bubble-user {
  background: #121212;
  color: #fff;
  padding: 16px 20px;
  border-radius: 20px 20px 4px 20px;
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-suggest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-suggest-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: #F2F4F7;
  color: #5C6678;
  cursor: pointer;
  font-family: var(--font);
}

.chat-suggest-tag:active {
  background: #e8eaee;
}

.meet-chat-view .meet-footer,
.meet-chat-view .chat-bottom-dock,
.meet-chat-view .chat-compose-foot {
  flex-shrink: 0;
  padding: 8px var(--page-x) 14px;
  background: transparent;
  border-top: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 对齐 AI 学习空间站 chat-compose-bar */
.chat-compose-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(74, 144, 226, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(74, 144, 226, 0.08);
}

.chat-compose-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  position: relative;
}

.chat-compose-icon,
.chat-voice-btn.chat-compose-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #8b95a5;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.chat-compose-icon svg,
.chat-voice-btn svg {
  display: block;
}

.chat-compose-icon:hover,
.chat-voice-btn.chat-compose-icon:hover {
  color: var(--accent);
  background: rgba(74, 144, 226, 0.08);
}

.chat-compose-icon.is-recording,
.chat-voice-btn.chat-compose-icon.is-recording {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  animation: chat-voice-pulse 1.2s ease-in-out infinite;
}

.chat-compose-send,
.meet-chat-view .chat-compose-send.chat-send {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  min-width: 34px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(74, 144, 226, 0.32);
  transition: transform 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.chat-compose-send svg {
  display: block;
}

.chat-compose-send:hover {
  filter: brightness(1.05);
}

.chat-compose-send:active,
.chat-compose-icon:active {
  transform: scale(0.96);
}

@keyframes chat-voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.28); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.meet-chat-view .chat-compose-field .chat-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0 4px;
  margin: 0;
  font-size: 15px;
  line-height: 32px;
  font-family: var(--font);
  color: #1A1C1E;
  outline: none;
}

.meet-chat-view .chat-compose-field .chat-input::placeholder {
  color: #A0A4AB;
}

html.is-desktop .meet-chat-view .chat-bottom-dock {
  padding-bottom: var(--nav-safe-b);
}

.meet-chat-nav-center {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.meet-chat-nav-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.meet-chat-nav-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.meet-chat-nav-spacer,
.meet-sub-spacer {
  width: 36px;
  flex-shrink: 0;
}

/* —— 对话列表（微信会话列表风格） —— */
.meet-list-view,
.meet-contacts-view {
  min-height: 100%;
  background: transparent;
}

.meet-river-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0 var(--page-x) 12px;
  flex-wrap: wrap;
}

.meet-river-tabs--segment {
  gap: 3px;
  padding: 3px;
  flex-wrap: nowrap;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(74, 144, 226, 0.06);
}

.meet-river-tab {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.45);
  font-family: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.meet-river-tabs--segment .meet-river-tab {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #86868b;
  text-align: center;
}

.meet-river-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.meet-river-tabs--segment .meet-river-tab.active {
  background: rgba(255, 255, 255, 0.68);
  border: none;
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.meet-ari-scroll {
  padding: 0 0 24px;
}

.meet-ari-pin--hero {
  padding: 18px 16px;
  margin-bottom: 16px;
}

.meet-ari-pin--hero.meet-ari-hero-card {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(74, 144, 226, 0.26);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 244, 255, 0.9) 52%, rgba(255, 255, 255, 0.94) 100%);
  box-shadow:
    0 12px 34px rgba(74, 144, 226, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  position: relative;
}

.meet-ari-hero-glow {
  position: absolute;
  right: -18px;
  top: -24px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.22) 0%, rgba(74, 144, 226, 0) 72%);
  pointer-events: none;
}

.meet-ari-hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px 0;
}

.meet-ari-hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(74, 144, 226, 0.18), rgba(110, 184, 240, 0.12));
  border: 1px solid rgba(74, 144, 226, 0.22);
  color: #4a90e2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.meet-ari-hero-chip {
  font-size: 11px;
  font-weight: 600;
  color: #7eb8f0;
}

.meet-ari-hero-main {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 12px;
}

.meet-ari-hero-avatar-wrap {
  flex-shrink: 0;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7eb8f0, #4a90e2);
  box-shadow: 0 6px 18px rgba(74, 144, 226, 0.28);
}

.meet-ari-hero-avatar-wrap .meet-ari-pin-avatar,
.meet-ari-hero-avatar-wrap .meet-avatar {
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  overflow: hidden;
}

.meet-ari-hero-card .meet-ari-pin-title {
  font-size: 18px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.meet-ari-hero-card .meet-ari-pin-sub {
  font-size: 13px;
  line-height: 1.55;
  color: #5c6678;
}

/* 渐变 CTA：开始对话 / 继续阅读 等共用 */
.gradient-cta-surface {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: linear-gradient(
    105deg,
    rgba(74, 144, 226, 0.34) 0%,
    rgba(126, 184, 240, 0.3) 28%,
    rgba(167, 139, 250, 0.26) 52%,
    rgba(251, 182, 206, 0.22) 76%,
    rgba(253, 186, 116, 0.2) 100%
  );
  background-size: 220% 100%;
  animation: gradientCtaSweep 5s ease-in-out infinite;
  color: #4a90e2;
  box-shadow: 0 4px 14px rgba(74, 144, 226, 0.1);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gradient-cta-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.42) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: gradientCtaShine 3.2s ease-in-out infinite;
  pointer-events: none;
}

.gradient-cta-label {
  position: relative;
  z-index: 1;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.gradient-cta-arrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #4a90e2;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.gradient-cta-arrow .icon-chevron-right {
  width: 12px;
  height: 12px;
  display: block;
  flex-shrink: 0;
}

@keyframes gradientCtaSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes gradientCtaShine {
  0%, 58%, 100% { transform: translateX(-120%); }
  72% { transform: translateX(120%); }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-cta-surface {
    animation: none;
    background-size: 100% 100%;
  }

  .gradient-cta-surface::before {
    animation: none;
    display: none;
  }
}

.meet-ari-hero-cta {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 10px 14px;
  border-radius: 12px;
}

.meet-ari-hero-cta-text {
  font-size: 14px;
}

.meet-ari-pin--hero.meet-ari-hero-card:active {
  transform: scale(0.985);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(220, 236, 255, 0.92) 52%, rgba(255, 255, 255, 0.92) 100%);
}

.meet-ari-pin--hero.meet-ari-hero-card:active .meet-ari-hero-cta {
  box-shadow: 0 3px 10px rgba(74, 144, 226, 0.08);
}

.meet-ari-pin--hero .meet-ari-pin-avatar {
  width: 56px;
  height: 56px;
}

.meet-ari-pin--hero .meet-ari-pin-title {
  font-size: 17px;
  margin-bottom: 6px;
}

.meet-ari-pin--hero .meet-ari-pin-sub {
  font-size: 13px;
  line-height: 1.5;
}

.meet-ari-pin,
.meet-ari-book-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid rgba(74, 144, 226, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.meet-ari-pin {
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.12), rgba(255, 255, 255, 0.9));
}

.meet-ari-pin:active,
.meet-ari-book-row:active {
  background: var(--accent-soft);
}

.meet-ari-pin-avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.meet-ari-pin-body,
.meet-ari-book-body {
  flex: 1;
  min-width: 0;
}

.meet-ari-pin-title,
.meet-ari-book-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.meet-ari-pin-sub,
.meet-ari-book-sub,
.meet-ari-book-preview {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.meet-ari-book-preview {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meet-catalog-toggle {
  display: block;
  width: 100%;
  margin: 8px 0 20px;
  padding: 12px 16px;
  border: 1px dashed rgba(74, 144, 226, 0.35);
  border-radius: 12px;
  background: rgba(74, 144, 226, 0.06);
  color: #4A90E2;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
}

.meet-catalog-toggle:active {
  opacity: 0.85;
}

.meet-ari-book-list--more {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(0, 0, 0, 0.06);
}

.meet-ari-section-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 4px 0 10px;
}

.meet-ari-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 10px;
}

.meet-ari-section-head .meet-ari-section-label {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.meet-ari-books-entry {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent-dark, #4a90e2);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  box-shadow: 0 1px 4px rgba(74, 144, 226, 0.1);
  transition: background 0.15s ease, transform 0.12s ease;
}

.meet-ari-books-entry:active {
  transform: scale(0.94);
  background: rgba(232, 241, 251, 0.95);
}

.meet-ari-books-entry .icon-book {
  display: block;
}

.meet-ari-books-view {
  background: transparent;
}

.meet-ari-books-scroll {
  padding: 0 0 24px;
}

.meet-ari-books-view .meet-search-wrap {
  margin: 10px 0;
}

.meet-ari-books-view .meet-contacts-hint {
  margin: 4px 0 10px;
}

.meet-ari-books-sort {
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
}

.meet-ari-books-sort-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 144, 226, 0.12);
  background: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.meet-ari-books-sort-btn.active {
  background: rgba(74, 144, 226, 0.12);
  border-color: rgba(74, 144, 226, 0.28);
  color: var(--accent-dark, #4a90e2);
}

.meet-ari-books-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.meet-ari-books-list .meet-ari-book-row {
  width: 100%;
}

.meet-ari-book-cover {
  width: 44px;
  flex-shrink: 0;
}

.meet-ari-book-cover .rec-cover {
  width: 44px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
}

.meet-list-nav,
.meet-sub-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 10px;
  background: transparent;
  border-bottom: none;
}

.meet-list-title,
.meet-sub-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.meet-sub-nav .meet-sub-title {
  flex: 1;
  text-align: center;
  margin-right: 36px;
}

.meet-contacts-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  padding: 6px 4px;
}

.meet-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
}

.meet-search-icon {
  color: var(--muted);
  font-size: 15px;
}

.meet-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  color: var(--text);
}

.meet-search-input::placeholder {
  color: #a0a4ab;
}

.meet-session-list {
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.meet-session-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.meet-session-item:active {
  background: #f0f1f3;
}

.meet-session-avatar {
  width: 48px;
  height: 48px;
  font-size: 15px;
}

.meet-session-body {
  flex: 1;
  min-width: 0;
}

.meet-session-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.meet-session-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.meet-session-book {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meet-session-preview {
  font-size: 13px;
  color: #8a8f98;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meet-session-meta {
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(74, 144, 226, 0.12);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.meet-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.meet-empty p {
  margin-bottom: 14px;
}

/* —— 通讯录 —— */
.meet-contacts-scroll {
  padding: 0 0 24px;
}

.meet-contacts-view .meet-search-wrap {
  margin: 10px 0;
}

.meet-contacts-view .meet-contacts-hint {
  margin: 4px 0 10px;
}

.meet-contacts-view .meet-contacts-char-list,
.meet-contacts-view .meet-contacts-book-list {
  margin: 0;
  width: 100%;
}

.meet-contacts-tabs {
  display: flex;
  gap: 8px;
  margin: 0 var(--page-x) 10px;
}

.meet-contacts-tab {
  flex: 1;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.meet-contacts-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.meet-contacts-book-list,
.meet-contacts-char-list {
  margin: 0 var(--page-x);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(74, 144, 226, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-subtle);
}

.meet-contact-book-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.meet-contact-book-row:last-child,
.meet-contacts-char-list .meet-contact-row:last-child {
  border-bottom: none;
}

.meet-contact-book-row:active,
.meet-contacts-char-list .meet-contact-row:active {
  background: rgba(232, 241, 251, 0.9);
}

.meet-contact-book-cover {
  width: 40px;
  flex-shrink: 0;
}

.meet-contact-book-cover .rec-cover {
  width: 40px;
  height: 54px;
  border-radius: 6px;
  overflow: hidden;
}

.meet-contact-book-title {
  font-size: 15px;
  font-weight: 600;
}

.meet-contact-book-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.meet-contacts-hint {
  margin: 4px var(--page-x) 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.meet-contacts-group {
  margin-bottom: 14px;
}

.meet-contacts-group-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--page-x);
  background: transparent;
  font-size: 12px;
}

.meet-contacts-group-hd .rec-cover {
  width: 36px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.meet-contacts-group-hd .rec-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.meet-contacts-group-title {
  font-size: 14px;
  font-weight: 600;
}

.meet-contacts-group-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.meet-contacts-rows {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.meet-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px var(--page-x);
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.meet-contact-row:active {
  background: #f0f1f3;
}

.meet-contact-avatar {
  width: 42px;
  height: 42px;
  font-size: 14px;
}

.meet-contact-body {
  flex: 1;
  min-width: 0;
}

.meet-contact-name {
  font-size: 15px;
  font-weight: 600;
}

.meet-contact-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.meet-contact-arrow {
  color: #c4c8ce;
  font-size: 18px;
}

.meet-pickers {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.picker-btn--ghost {
  background: rgba(255, 255, 255, 0.55);
}

.picker-empty {
  padding: 16px 14px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.picker-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 12px;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.picker-btn-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
}

.picker-btn-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.picker-panel {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.picker-title-bar {
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.picker-item {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.picker-item:last-child { border-bottom: none; }
.picker-item.active { background: var(--accent-soft); }

.picker-item .rec-cover {
  width: 36px;
  height: 48px;
}

.picker-avatar {
  width: 40px !important;
  height: 40px !important;
  font-size: 13px !important;
}

.picker-item-body { flex: 1; min-width: 0; }
.picker-title { font-size: 13px; font-weight: 600; }
.picker-sub { font-size: 11px; color: var(--muted); }

.view-stack .chat-msgs,
.view-stack .chat-card-feed {
  margin-bottom: 12px;
  min-height: 120px;
}

.view-stack .chat-input-row {
  border-top: none;
  padding-top: 0;
}

/* ── 生词本 Tab / 练习 ── */
/* ── 生词本 · 工具切换（对齐学习空间站 kb-view-switch） ── */
.wb-tool-switch {
  display: flex;
  gap: 2px;
  margin: 0 var(--page-x) 12px;
  padding: 3px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(74, 144, 226, 0.06);
}

.wb-tool-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 6px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: #86868b;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.wb-tool-icon {
  display: grid;
  place-items: center;
  line-height: 0;
}

.wb-tool-label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.wb-tool-btn.active {
  background: rgba(255, 255, 255, 0.72);
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.1);
}

.wb-tool-btn.active .wb-tool-icon {
  color: #2563eb;
}

/* legacy wb-tabs kept for reader sheet */
.wb-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.wb-tab {
  flex: 1;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 99px;
  padding: 8px;
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
}

.wb-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

button.word-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
  border: 1px solid var(--border);
}

button.word-item:active {
  transform: scale(0.99);
}

.word-from {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.practice-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.practice-progress {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}

.practice-word {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.practice-pos {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.practice-answer {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.practice-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.practice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── 我的：二级页 ── */
.profile-page-head {
  padding: 12px var(--page-x) 0;
}

.profile-sub {
  padding: 0 var(--page-x) var(--page-bottom);
}

.profile-sub .sub-topbar {
  margin: 0 calc(-1 * var(--page-x)) 12px;
  padding: 4px var(--page-x);
}

.sub-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 12px;
}

.about-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--border);
  line-height: 1.6;
  font-size: 13px;
}

.settings-group {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 14px;
}

.settings-row:last-child { border-bottom: none; }

.seg-btns {
  display: flex;
  gap: 6px;
}

.seg-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font);
}

.seg-btn.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: rgba(74, 144, 226, 0.35);
}

button.menu-item {
  width: 100%;
  border: none;
  background: transparent;
  font-family: var(--font);
  cursor: pointer;
}

.goal-card.active {
  border-color: rgba(74, 144, 226, 0.55);
  background: rgba(74, 144, 226, 0.08);
}

#view-profile.view.active {
  padding: 0;
}

#view-profile .profile-data-grid,
#view-profile .menu-list,
#view-profile .profile-footer,
#view-profile .profile-section-head,
#view-profile .profile-quick-grid,
#view-profile .footprint-scroll {
  margin-left: var(--page-x);
  margin-right: var(--page-x);
}

#view-profile .profile-data-grid {
  margin-top: 12px;
}

.profile-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px var(--page-x) 4px;
}

.profile-toolbar-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-toolbar-actions {
  display: flex;
  gap: 4px;
}

.profile-toolbar-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-card-body {
  flex: 1;
  min-width: 0;
}

.profile-id {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.profile-streak-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text);
  margin-bottom: 8px;
}

.profile-streak-row strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-dark);
}

.profile-streak-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
}

.profile-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-badge-chip {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(74, 144, 226, 0.1);
  color: var(--accent-dark);
  font-weight: 600;
}

.profile-badge-chip--muted {
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  font-weight: 500;
}

.profile-member-banner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 0;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 58, 92, 0.88) 0%, rgba(45, 90, 142, 0.82) 55%, rgba(74, 144, 226, 0.76) 100%);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.profile-member-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.profile-member-text {
  flex: 1;
  min-width: 0;
}

.profile-member-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.profile-member-sub {
  font-size: 11px;
  opacity: 0.82;
  line-height: 1.4;
}

.profile-member-arrow {
  font-size: 20px;
  opacity: 0.7;
}

.profile-section-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 16px 0 10px;
  letter-spacing: 0.02em;
}

.profile-quick-grid {
  display: block;
  margin-bottom: 8px;
}

.profile-quick-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 2px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--font);
}

.profile-quick-item--wide {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 24px rgba(74, 144, 226, 0.06);
  gap: 12px;
  box-sizing: border-box;
}

.profile-quick-item--wide:active {
  opacity: 0.92;
}

.profile-quick-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.profile-quick-item--wide .profile-quick-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
}

.profile-quick-label {
  font-size: 11px;
  color: var(--text);
  line-height: 1.2;
  text-align: center;
}

.profile-quick-label--wide {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  color: var(--text);
}

.profile-quick-arrow {
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1;
  color: #86868b;
}

.profile-quick-badge {
  position: absolute;
  top: 0;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-reading-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-reading-item {
  display: flex;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
}

.profile-reading-cover .rec-cover {
  width: 48px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
}

.profile-reading-body {
  flex: 1;
  min-width: 0;
}

.profile-reading-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.profile-reading-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}

.profile-reading-bar {
  height: 4px;
  border-radius: 99px;
  background: rgba(74, 144, 226, 0.12);
  overflow: hidden;
  margin-bottom: 4px;
}

.profile-reading-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--accent);
}

.profile-reading-pct {
  font-size: 11px;
  color: var(--accent-dark);
  font-weight: 600;
}

.note-card--highlight .note-card-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-item {
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.help-q {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.help-a {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.vocab-setting-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.vocab-setting-card {
  position: relative;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.vocab-setting-card.active {
  border-color: rgba(74, 144, 226, 0.55);
  background: rgba(74, 144, 226, 0.08);
}

.vocab-setting-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.vocab-setting-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.vocab-setting-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(74, 144, 226, 0.12);
  color: var(--accent-dark);
  font-weight: 600;
}

.ari-voice-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.ari-voice-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}

.ari-voice-row.active {
  border-color: rgba(74, 144, 226, 0.55);
  background: rgba(74, 144, 226, 0.06);
}

.ari-voice-pick {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}

.ari-voice-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.ari-voice-sub {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.ari-voice-preview {
  flex-shrink: 0;
  align-self: center;
  margin-right: 8px;
  padding: 6px 10px;
  border-radius: 99px;
  border: 1px solid rgba(74, 144, 226, 0.35);
  background: rgba(74, 144, 226, 0.08);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
}

.ari-voice-preview:active {
  transform: scale(0.97);
}

.meet-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.meet-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.meet-avatar--img {
  background: #e8ecf0;
}

.meet-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meet-info h2 {
  font-size: 17px;
  font-weight: 600;
}

.meet-info p {
  font-size: 12px;
  color: var(--muted);
}

.chat-msgs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
  min-height: 200px;
}

/* 旧气泡样式保留给非卡片场景（若有） */
.chat-bubble {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.typing {
  color: var(--muted);
  font-style: italic;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
}

.chat-input:focus {
  border-color: var(--accent);
}

.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.suggest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.chip {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent-dark);
  cursor: pointer;
}

.chip:active { background: var(--accent-soft); }

.toast {
  position: absolute;
  top: 66.666%;
  left: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 12px;
  padding: 8px 16px;
  border-radius: 99px;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  will-change: opacity;
}

.toast.show {
  opacity: 1;
}

/* ── 我的 / 个人中心 ── */
.profile-card {
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a90e2, #1a3a5c);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-avatar--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 4px;
}

.profile-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.menu-list {
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 14px;
}

.menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.menu-item:last-child { border-bottom: none; }

.menu-item:active { background: #f5f5f7; }

.menu-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-item-val {
  font-size: 12px;
  color: var(--muted);
}

.profile-footer {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 16px 8px 8px;
  line-height: 1.6;
}

.profile-data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.data-box {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 8px;
  text-align: center;
}

.data-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-dark);
}

.data-label {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

/* 复用 AI 学习空间站的按压反馈手感 */
button:not(:disabled),
.rec-card,
.goal-card,
.menu-item,
.cat-tab,
.entry-btn {
  transition: transform 120ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease, border-color .15s ease;
}
button:active:not(:disabled),
.rec-card:active,
.goal-card:active,
.menu-item:active,
.cat-tab:active,
.entry-btn:active {
  transform: scale(0.97);
}

/* ── 句子选中 · 翻译浮层 ── */
.reader-sentence-mark {
  background: linear-gradient(180deg, transparent 58%, rgba(255, 214, 102, 0.55) 58%);
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.sel-overlay {
  position: absolute;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}

.sel-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  cursor: default;
}

.sel-dock {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(max(var(--safe-b), 0px) + 10px);
  pointer-events: auto;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(74, 144, 226, 0.14);
  box-shadow: 0 12px 40px rgba(74, 144, 226, 0.16), 0 2px 8px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 14px 14px;
  max-height: 52vh;
  overflow-y: auto;
}

.sel-dock-handle {
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.1);
  margin: 0 auto 10px;
}

.sel-trans-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.sel-trans-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
}

.sel-sticker-badge {
  font-size: 18px;
  line-height: 1;
}

.sel-trans-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 4px;
}

.sel-trans-text.loading {
  color: var(--muted);
}

.sel-trans-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
}

.sel-source {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--accent-soft);
}

.sel-actions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.sel-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 2px;
  border: none;
  background: transparent;
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font);
}

.sel-action.active {
  background: var(--accent-soft);
}

.sel-action-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sel-action-icon svg {
  width: 20px;
  height: 20px;
}

.sel-action-label {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.sel-action--ai .sel-action-label {
  color: #c47a12;
  font-weight: 600;
}

.sel-ai-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #f5c842 0%, #e8a020 100%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sel-sub-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}

.sel-sub-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.sel-sticker-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.sel-sticker-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  font-size: 20px;
  padding: 6px 0;
  cursor: pointer;
}

.sel-sticker-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sel-share-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sel-share-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}

.sel-share-icon {
  font-size: 18px;
}

/* ── AI 解析全屏面板 ── */
.ai-explain-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  padding: 12px 12px calc(max(var(--safe-b), 0px) + 56px);
}

.ai-explain-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}

.ai-explain-scroll::-webkit-scrollbar {
  display: none;
}

.ai-explain-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(74, 144, 226, 0.12);
  box-shadow: 0 8px 28px rgba(74, 144, 226, 0.1);
  padding: 14px 16px;
}

.ai-explain-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ai-explain-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-explain-avatar {
  font-size: 22px;
  line-height: 1;
}

.ai-explain-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.ai-explain-trial {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.ai-explain-source {
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 12px;
}

.ai-explain-tabs {
  display: flex;
  gap: 6px;
}

.ai-explain-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border: none;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
  font-family: var(--font);
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}

.ai-explain-tab.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.ai-tab-icon {
  font-size: 14px;
  line-height: 1;
}

.ai-explain-loading {
  text-align: center;
  padding: 28px 12px;
  color: var(--muted);
  font-size: 14px;
}

.ai-struct-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 12px;
}

.ai-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}

.ai-legend-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.ai-legend--main i { background: #f4a4b8; }
.ai-legend--nonfinite i { background: #f5d76e; }
.ai-legend--phrase i { background: #7dcea0; }
.ai-legend--clause i { background: #b39ddb; }

.ai-struct-line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 2px;
  margin-bottom: 10px;
}

.ai-struct-seg {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.ai-struct-role {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 2px;
  padding: 0 4px;
}

.ai-struct-text {
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.45;
  padding: 4px 8px;
  border-radius: 8px;
}

.ai-struct--main .ai-struct-text { background: rgba(244, 164, 184, 0.35); }
.ai-struct--clause .ai-struct-text { background: rgba(179, 157, 219, 0.35); }
.ai-struct--phrase .ai-struct-text { background: rgba(125, 206, 160, 0.35); }
.ai-struct--nonfinite .ai-struct-text { background: rgba(245, 215, 110, 0.4); }

.ai-struct-slash {
  color: var(--muted);
  font-size: 12px;
  align-self: center;
  padding: 0 2px;
}

.ai-struct-cn {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.03);
}

.ai-block-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-block-card {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.ai-block--main { border-left: 3px solid #f4a4b8; }
.ai-block--clause { border-left: 3px solid #b39ddb; }
.ai-block--phrase { border-left: 3px solid #7dcea0; }
.ai-block--nonfinite { border-left: 3px solid #f5d76e; }

.ai-block-label {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.ai-block--main .ai-block-label { color: #d46888; }
.ai-block--clause .ai-block-label { color: #8e6bbf; }

.ai-block-text {
  font-family: var(--font-serif);
  font-size: 13px;
  margin-bottom: 6px;
}

.ai-block-explain {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.ai-vocab-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ai-vocab-card {
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--accent-soft);
}

.ai-vocab-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.ai-vocab-head strong {
  font-size: 16px;
  color: var(--accent-dark);
}

.ai-vocab-pos {
  font-size: 12px;
  color: var(--muted);
}

.ai-vocab-cn {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.ai-vocab-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.ai-insight-card {
  border-radius: 12px;
  padding: 12px;
  background: var(--yueling-gradient-soft);
  margin-bottom: 10px;
}

.ai-insight-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 6px;
}

.ai-insight-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.ai-insight-points {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.ai-insight-points li + li {
  margin-top: 6px;
}

.ai-empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
  margin: 0;
}

.ai-explain-close {
  position: absolute;
  left: 50%;
  bottom: calc(max(var(--safe-b), 0px) + 12px);
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #f5a623 0%, #e8871a 100%);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 135, 26, 0.35);
  z-index: 2;
}

html.is-desktop .ai-explain-close {
  bottom: calc(var(--nav-safe-b) + 12px);
}

/* ── 文章简介页 ── */
#view-article-intro.view.active {
  position: absolute;
  inset: 0;
  z-index: 11;
  display: flex;
  flex-direction: column;
  padding: 0;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: transparent;
  --intro-content-x: var(--page-x);
  --intro-content-x-right: var(--page-x);
}

html.is-desktop #view-article-intro.view.active {
  --intro-content-x: var(--status-pad-left);
  --intro-content-x-right: var(--status-pad-right);
}

#view-article-intro.view.active::after {
  content: none;
  display: none;
}

html.is-desktop #view-article-intro.view.active {
  top: calc(-1 * var(--content-top-pos, var(--status-h)));
  height: calc(100% + var(--content-top-pos, var(--status-h)));
}

html.is-mobile #view-article-intro.view.active {
  top: calc(-1 * max(var(--safe-t), var(--status-h)));
  height: calc(100% + max(var(--safe-t), var(--status-h)));
}

.intro-hero {
  position: relative;
  z-index: 1;
  flex: 0 0 30%;
  max-height: 30%;
  min-height: 172px;
  padding: 0 var(--intro-content-x, var(--page-x)) 14px;
  padding-right: var(--intro-content-x-right, var(--page-x));
  color: #fff;
  overflow: hidden;
}

html.is-desktop #view-article-intro .intro-hero {
  flex: 0 0 30%;
  max-height: 30%;
  min-height: 0;
  padding-top: calc(var(--content-top-pos, var(--status-h)) + 30px);
}

html.is-desktop .intro-hero {
  flex: 0 0 30%;
  max-height: 30%;
  min-height: 0;
  padding-top: calc(var(--content-top-pos, var(--status-h)) + 30px);
}

html.is-mobile .intro-hero {
  padding-top: calc(max(var(--safe-t), var(--status-h)) + 30px);
}

.intro-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.12);
  filter: blur(24px) brightness(0.92);
}

.intro-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(30, 45, 62, 0.62) 0%, rgba(74, 144, 226, 0.48) 55%, rgba(20, 28, 38, 0.78) 100%);
  backdrop-filter: blur(12px) saturate(1.25);
  -webkit-backdrop-filter: blur(12px) saturate(1.25);
}

.intro-topbar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 0 10px;
}

#view-article-intro .intro-topbar .top-back {
  grid-column: 1;
  width: auto;
  height: 36px;
  min-width: 0;
  padding: 0;
  margin: 0;
  color: #fff;
  justify-self: start;
  justify-content: flex-start;
}

#view-article-intro .intro-topbar .icon-chevron-left {
  width: 20px;
  height: 20px;
}

.intro-topbar-title {
  grid-column: 2;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.intro-topbar-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.intro-action-btn {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.intro-action-btn:active {
  transform: scale(0.92);
  opacity: 0.82;
}

.intro-action-btn--desk.is-active {
  color: #fff;
}

.intro-action-btn--save.is-active {
  color: #ffb8c6;
}

.intro-action-svg {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

.intro-hero-card {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 4px;
}

.intro-cover {
  width: 64px;
  height: 86px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  background: rgba(255, 255, 255, 0.15);
}

.intro-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-cover--fallback {
  background: linear-gradient(145deg, #8eb0dc, #4a90e2);
}

.intro-hero-text {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

.intro-title {
  font-family: var(--font-read);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 2px;
}

.intro-title-cn {
  font-size: 11px;
  opacity: 0.88;
  margin-bottom: 2px;
}

.intro-subtitle {
  font-size: 10px;
  opacity: 0.82;
  margin-bottom: 3px;
}

.intro-author {
  font-size: 10px;
  opacity: 0.75;
}

.intro-channel {
  font-size: 10px;
  opacity: 0.65;
  margin-top: 4px;
}

.intro-stats {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  margin: -8px var(--intro-content-x, var(--page-x)) 0;
  margin-right: var(--intro-content-x-right, var(--page-x));
  padding: 10px 6px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(74, 144, 226, 0.12);
}

.intro-stat {
  flex: 1;
  text-align: center;
  padding: 0 4px;
}

.intro-stat-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 3px;
}

.intro-stat strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.intro-stat-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 4px 0;
}

.intro-body {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px var(--intro-content-x, var(--page-x)) 24px;
  padding-right: var(--intro-content-x-right, var(--page-x));
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.intro-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(74, 144, 226, 0.1);
  color: var(--accent-dark);
}

.intro-section-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.intro-blurb {
  font-size: 13px;
  line-height: 1.65;
  color: #3a3a3c;
}

.intro-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px var(--intro-content-x, var(--page-x)) max(26px, calc(env(safe-area-inset-bottom, 0px) + 20px));
  padding-right: var(--intro-content-x-right, var(--page-x));
  background: transparent;
  border-top: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

html.is-desktop .intro-footer {
  padding-bottom: calc(var(--sheet-inset-bottom, 14px) * 0.55 + 18px);
}

.intro-start-btn {
  width: min(60%, calc(336px * 3 / 5));
  max-width: calc(336px * 3 / 5);
  min-height: 52px;
  margin: 0 auto;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.intro-start-btn.gradient-cta-surface {
  border-color: rgba(255, 255, 255, 0.2);
}

.intro-start-btn__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 52px;
  padding: 0 14px;
  box-sizing: border-box;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.intro-start-btn__label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.intro-start-btn:active .intro-start-btn__content {
  opacity: 0.92;
  transform: scale(0.985);
}

.intro-start-btn:active {
  transform: scale(0.985);
  box-shadow: 0 3px 10px rgba(74, 144, 226, 0.08);
}

.intro-tag--channel {
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-dark);
  border: 1px solid rgba(74, 144, 226, 0.16);
}

.intro-tagline {
  font-size: 12px;
  line-height: 1.55;
  color: #5c5c60;
  margin: -4px 0 12px;
}

.intro-content-tabs {
  display: flex;
  gap: 20px;
  margin: 0 0 14px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.intro-content-tab {
  border: none;
  background: none;
  padding: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  font-family: var(--font);
}

.intro-content-tab.active {
  color: var(--text);
}

.intro-content-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
  border-radius: 99px;
}

.intro-blurb-wrap {
  margin-bottom: 14px;
}

.intro-blurb-toggle {
  border: none;
  background: none;
  padding: 6px 0 0;
  font-size: 12px;
  color: var(--accent-dark);
  cursor: pointer;
  font-family: var(--font);
}

.intro-perks {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(74, 144, 226, 0.06);
  border: 1px solid rgba(74, 144, 226, 0.1);
}

.intro-perks-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.intro-perks-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.intro-perk {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.88);
  color: #3a3a3c;
  border: 1px solid rgba(74, 144, 226, 0.12);
}

.intro-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
}

.intro-toc-meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.intro-toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.intro-toc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 11px 8px;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font);
}

.intro-toc-item:active,
.intro-toc-item.active {
  background: var(--accent-soft);
}

.intro-toc-index {
  flex-shrink: 0;
  width: 28px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.intro-toc-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.intro-section-title--chars {
  margin-top: 16px;
}

.intro-characters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 10px;
  margin-bottom: 4px;
}

.intro-character {
  width: calc(25% - 8px);
  min-width: 60px;
  max-width: 76px;
  text-align: center;
}

.intro-character-avatar {
  width: 46px;
  height: 46px;
  margin: 0 auto 4px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(74, 144, 226, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.85);
}

.intro-character-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intro-character-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.intro-character-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.intro-character-name-en {
  font-size: 9px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.2;
  word-break: break-word;
}

/* ── 两阶段诊断（单词 + 可选阅读）── */
.diag-flow {
  margin-top: 8px;
}

.diag-flow-hero {
  text-align: center;
  padding: 8px 4px 16px;
}

.diag-flow-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(74, 144, 226, 0.22), rgba(255, 182, 193, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: grid;
  place-items: center;
  font-size: 28px;
  box-shadow: 0 12px 32px rgba(74, 144, 226, 0.12);
}

.diag-flow-steps {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.diag-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(74, 144, 226, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.diag-flow-step-num {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.diag-flow-step.optional .diag-flow-step-num {
  background: rgba(255, 182, 193, 0.2);
  color: #b85c72;
}

.diag-flow-step-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 3px;
}

.diag-flow-step-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.diag-word-view {
  margin-top: 4px;
}

.diag-word-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.diag-word-timer {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-dark);
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.1);
  font-variant-numeric: tabular-nums;
}

.diag-word-progress {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.1);
  overflow: hidden;
}

.diag-word-progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yueling-blue), #7EB0EA);
  transition: width 0.25s ease;
}

.diag-word-card {
  padding: 28px 16px 22px;
  border-radius: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 36px rgba(74, 144, 226, 0.1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  margin-bottom: 14px;
}

.diag-word-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.diag-word-text {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  font-family: var(--font-read);
}

.diag-word-phonetic {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.diag-word-opts {
  display: grid;
  gap: 10px;
}

.diag-word-opt {
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(74, 144, 226, 0.1);
  background: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.diag-word-opt:active {
  transform: scale(0.98);
}

.diag-word-opt.is-unknown {
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.55);
}

.diag-word-opt.selected {
  border-color: rgba(74, 144, 226, 0.5);
  background: rgba(74, 144, 226, 0.12);
  color: var(--accent-dark);
}

.diag-report-card {
  margin-top: 8px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88) 0%, rgba(232, 241, 251, 0.75) 100%);
  border: 1px solid rgba(74, 144, 226, 0.12);
  box-shadow: 0 16px 40px rgba(74, 144, 226, 0.1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.diag-report-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.diag-report-vocab {
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--yueling-blue) 0%, #5a9de8 45%, #7EB0EA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 4px 0 2px;
}

.diag-report-vocab-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.diag-report-level {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(74, 144, 226, 0.1);
  border: 1px solid rgba(74, 144, 226, 0.15);
  margin-bottom: 16px;
}

.diag-report-level-bar {
  width: 4px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--yueling-blue), var(--yueling-pink));
}

.diag-report-level-text strong {
  display: block;
  font-size: 18px;
  color: var(--text);
}

.diag-report-level-text span {
  font-size: 12px;
  color: var(--muted);
}

.diag-scale {
  position: relative;
  height: 88px;
  margin: 8px 0 16px;
  padding: 0 4px;
}

.diag-scale-track {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(74, 144, 226, 0.12);
}

.diag-scale-track-fill {
  position: absolute;
  left: 8%;
  top: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--yueling-blue), #7EB0EA);
}

.diag-scale-mark {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.diag-scale-mark i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(74, 144, 226, 0.2);
  margin: 18px auto 4px;
}

.diag-scale-mark.active i {
  width: 12px;
  height: 12px;
  margin-top: 16px;
  background: var(--yueling-blue);
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.18);
}

.diag-scale-mark.active {
  color: var(--accent-dark);
  font-weight: 600;
}

.diag-report-bullets {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.diag-report-bullet {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(29, 29, 31, 0.82);
}

.diag-report-bullet::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yueling-blue);
  margin-top: 7px;
  flex-shrink: 0;
}

.diag-report-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.diag-report-actions--pending {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}

.diag-report-actions.is-revealed {
  animation: ipPanelIn 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn-diag-finish-highlight {
  width: 100%;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow:
    0 10px 28px rgba(74, 144, 226, 0.38),
    0 2px 8px rgba(74, 144, 226, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: diagFinishGlow 2.4s ease-in-out infinite;
}

@keyframes diagFinishGlow {
  0%, 100% { box-shadow: 0 10px 28px rgba(74, 144, 226, 0.34), 0 2px 8px rgba(74, 144, 226, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
  50% { box-shadow: 0 12px 32px rgba(74, 144, 226, 0.48), 0 4px 12px rgba(74, 144, 226, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.42); }
}

.diag-report-line:not(.is-revealed) {
  opacity: 0;
  transform: translateY(12px);
  max-height: 0;
  overflow: hidden;
  margin: 0 !important;
  padding: 0;
  pointer-events: none;
}

.diag-report-line.is-revealed {
  animation: diagReportLineIn 0.3s cubic-bezier(0.25, 1, 0.4, 1) both;
  max-height: 800px;
  overflow: visible;
  margin-bottom: 10px !important;
}

.diag-report-line--kicker.is-revealed,
.diag-report-line--title.is-revealed {
  margin-bottom: 12px;
}

.diag-report-line--scale.is-revealed {
  margin: 12px 0 14px;
}

.diag-report-line--bullet.is-revealed {
  margin-bottom: 6px;
}

.diag-report-line--method.is-revealed {
  margin-bottom: 8px;
}

@keyframes diagReportLineIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.diag-report-section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 14px 0 8px;
}

.diag-report-section-label--muted {
  color: var(--muted);
}

.diag-report-read-score {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.diag-report-read-insight {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--accent-dark);
  margin: 0 0 4px;
}

.diag-report-read-detail,
.diag-report-summary,
.diag-report-method,
.diag-report-confidence {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(29, 29, 31, 0.78);
  margin: 0 0 6px;
}

.diag-report-summary strong {
  color: var(--accent-dark);
}

.diag-report-confidence {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.diag-report-unverified {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 182, 193, 0.12);
  border: 1px solid rgba(255, 182, 193, 0.28);
  margin-bottom: 4px;
}

.diag-report-bullet--goal {
  opacity: 0.55;
}

.diag-report-prompt {
  padding: 14px;
  border-radius: 16px;
  background: rgba(74, 144, 226, 0.06);
  border: 1px dashed rgba(74, 144, 226, 0.2);
  margin-top: 12px;
}

.diag-report-prompt-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.diag-report-prompt-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.diag-read-prompt-card {
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  text-align: center;
}

.diag-read-prompt-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #2d6a4f;
  background: rgba(45, 106, 79, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.diag-read-prompt-vocab {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--accent-dark, #1a3a5c);
  letter-spacing: -0.02em;
}

.diag-read-prompt-vocab-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.diag-read-prompt-desc {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(29, 29, 31, 0.78);
  margin: 0 0 4px;
  text-align: left;
}

#app.app--no-nav .app-main:has(.view--diag-recommend.active) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* 诊断后推荐过渡：全屏贴边，与开屏 splash 同层 */
html.diag-recommend-active #app {
  visibility: hidden;
  pointer-events: none;
}

html.diag-recommend-active .desktop-hint {
  opacity: 0;
  pointer-events: none;
}

.diag-recommend-overlay-root {
  position: absolute;
  inset: 0;
  z-index: 4500;
  overflow: hidden;
  background: var(--yueling-gradient, linear-gradient(165deg, #4A90E2 0%, #7EB0EA 16%, #D8E6F8 34%, #F5F5F7 50%, #FFF5F7 68%, #FFD4DC 84%, #FFB6C1 100%));
}

.diag-recommend-overlay-root .diag-recommend-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.diag-recommend-chrome {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.diag-recommend-caption {
  padding: 24px max(var(--page-x, 16px), 20px) max(32px, calc(var(--safe-b, 0px) + 24px));
  background: linear-gradient(180deg, transparent 0%, rgba(8, 18, 36, 0.45) 32%, rgba(8, 18, 36, 0.82) 100%);
}

.diag-recommend-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  margin-bottom: 16px;
  transform: translateZ(0);
}

.diag-recommend-progress-fill {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, #4A90E2 0%, #7EB0EA 100%);
  will-change: transform;
  border: none;
  box-shadow: none;
}

.diag-recommend-progress i {
  display: none;
}

.diag-recommend-text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
  text-align: center;
  letter-spacing: 0.01em;
}

/* 首页 · 诊断后首次入场 */
.view.home-entrance .ip-reveal-stagger:not(.ip-reveal--shown) .ip-reveal-item,
.view.home-entrance .ip-reveal-block:not(.ip-reveal--shown),
.view.home-entrance .ip-reveal-line:not(.ip-reveal--shown) {
  opacity: 0;
}

.view.home-entrance .ip-reveal-block:not(.ip-reveal--shown) {
  transform: translateY(16px);
}

.view.home-entrance .ip-reveal-line:not(.ip-reveal--shown) {
  transform: translateY(10px);
}

.view.home-entrance .ip-reveal-block.ip-reveal--shown {
  animation: ipPanelIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.08s + var(--ip-i, 0) * 0.06s);
}

.view.home-entrance .ip-reveal-line.ip-reveal--shown {
  animation: ipLineIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.1s + var(--ip-i, 0) * 0.06s);
}

.view.home-entrance .ip-reveal-stagger.ip-reveal--shown .ip-reveal-item {
  animation: ipItemIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.12s + var(--ip-i, 0) * 0.055s);
}

.app-nav.home-entrance-nav:not(.ip-reveal--shown) .ip-reveal-item {
  opacity: 0;
  transform: translateY(14px);
}

.app-nav.home-entrance-nav.ip-reveal--shown .ip-reveal-item {
  animation: ipItemIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(0.42s + var(--ip-i, 0) * 0.07s);
}

.view--diag-recommend {
  padding: 0 !important;
  margin: -12px calc(-1 * var(--page-x)) calc(-1 * var(--page-bottom));
  flex: 1;
  min-height: 0;
  display: none;
}

.view--diag-recommend.active {
  display: flex;
  flex-direction: column;
}

.diag-recommend-stage {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  background: linear-gradient(165deg, #0d1f38 0%, #1a3a5c 100%);
}

.diag-recommend-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  min-width: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
}

.diag-recommend-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 20px 32px;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 18, 36, 0.55) 38%, rgba(8, 18, 36, 0.88) 100%);
}

.diag-read-passage {
  margin: 12px 0;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(74, 144, 226, 0.08);
  font-family: var(--font-read);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(29, 29, 31, 0.85);
}

.diag-round-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 182, 193, 0.2);
  color: #9a4d62;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── 冷启动 IP 视频连播（独立遮罩，不占用 #app） ── */
/* ── 冷启动：品牌开屏 + IP 视频 ── */
.splash-brand {
  position: absolute;
  inset: 0;
  z-index: 5002;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #fff;
  transition: opacity 0.52s ease;
  cursor: pointer;
}

.splash-brand__enter-cta {
  margin: 4px 0 0;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  color: var(--yueling-blue, #4A90E2);
  letter-spacing: 0.02em;
}

.splash-brand__tap-hint {
  margin: -6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(74, 144, 226, 0.88);
  letter-spacing: 0.02em;
}

.splash-brand.is-exiting {
  opacity: 0;
  pointer-events: none;
}

.splash-brand__icon-wrap {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 10px 28px rgba(74, 144, 226, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.04);
  background: #fff;
}

.splash-brand__icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash-brand__name {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  font-family: Inter, 'Noto Sans SC', system-ui, sans-serif;
}

.splash-overlay {
  position: absolute;
  inset: 0;
  z-index: 5000;
  background: transparent;
  overflow: hidden;
  opacity: 1;
  visibility: hidden;
}

.splash-overlay.is-active {
  visibility: visible;
}

html.splash-active .desktop-hint {
  opacity: 0;
  pointer-events: none;
}

html.splash-active #app {
  visibility: hidden;
  pointer-events: none;
}

.splash-overlay.is-active .splash-video-stage {
  background: var(--yueling-gradient, linear-gradient(165deg, #4A90E2 0%, #7EB0EA 16%, #D8E6F8 34%, #F5F5F7 50%, #FFF5F7 68%, #FFD4DC 84%, #FFB6C1 100%));
}

.splash-chrome {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

.splash-chrome > * {
  pointer-events: auto;
}

.splash-glass-pill {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 4px 18px rgba(74, 144, 226, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.splash-skip {
  position: absolute;
  top: calc(max(var(--status-h), var(--safe-t, 0px), env(safe-area-inset-top, 0px)) * 0.5);
  right: max(var(--page-x, 16px), calc(env(safe-area-inset-right, 0px) + 22px));
  z-index: 4;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  letter-spacing: 0.01em;
  transform: translateY(-50%);
}

.splash-skip.splash-glass-pill {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(1.35);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
  box-shadow: 0 2px 10px rgba(74, 144, 226, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html.is-desktop .splash-skip {
  top: var(--island-cy-pos);
  right: calc(var(--status-pad-right) + 10px);
}

.splash-skip:active {
  transform: translateY(-50%) scale(0.97);
}

.splash-unmute-hint {
  position: absolute;
  top: calc(max(var(--status-h), var(--safe-t, 0px), env(safe-area-inset-top, 0px)) * 0.5);
  left: 50%;
  z-index: 4;
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  letter-spacing: 0.02em;
  transform: translate(-50%, -50%);
  animation: splash-unmute-pulse 2s ease-in-out infinite;
}

html.is-desktop .splash-unmute-hint {
  top: var(--island-cy-pos);
}

.splash-play-gate {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 6;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.splash-play-gate[hidden] {
  display: none;
}

.splash-play-gate__ring {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 88px;
  height: 88px;
  margin-left: -44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 32px rgba(74, 144, 226, 0.22);
  animation: splash-play-pulse 1.8s ease-in-out infinite;
}

.splash-play-gate__icon {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 2px 12px rgba(0, 24, 56, 0.35);
  padding-left: 4px;
}

.splash-play-gate__label {
  position: relative;
  z-index: 1;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0, 18, 48, 0.45);
}

.splash-play-gate__sub {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(244, 250, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 16, 40, 0.4);
}

@keyframes splash-play-pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.06); opacity: 1; }
}

.splash-unmute-hint[hidden] {
  display: none !important;
}

@keyframes splash-unmute-pulse {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}

.splash-floating-tags,
.splash-float-tag,
.splash-tag {
  display: none !important;
}

.splash-bubble-wrap {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 67%;
  bottom: auto;
  margin-top: 0;
  padding: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transform: translateY(5%);
  isolation: isolate;
}

.splash-bubble-wrap::before {
  display: block;
  content: "";
  position: absolute;
  inset: -10px -6px -14px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(22px) saturate(1.45);
  -webkit-backdrop-filter: blur(22px) saturate(1.45);
  z-index: -1;
  pointer-events: none;
}

.splash-bubble--tech {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  padding: 14px 16px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.06) 52%, rgba(230, 242, 255, 0.08) 100%);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 4px 18px rgba(0, 0, 0, 0.08);
}

.splash-bubble--glass {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
  max-width: 100%;
  min-height: 92px;
  padding: 14px 16px 15px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.72) 48%, rgba(242, 248, 255, 0.78) 100%);
  backdrop-filter: blur(32px) saturate(1.75);
  -webkit-backdrop-filter: blur(32px) saturate(1.75);
  box-shadow:
    0 16px 44px rgba(74, 144, 226, 0.2),
    0 6px 18px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.splash-bubble-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.06) 40%, transparent 78%) top left / 100% 1px no-repeat,
    radial-gradient(90% 80% at 0% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 58%);
}

.splash-bubble-speaker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(220, 238, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 24, 56, 0.45);
}

.splash-bubble-speaker-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(140, 210, 255, 0.95);
  box-shadow: 0 0 8px rgba(96, 180, 255, 0.75);
  animation: splash-speaker-pulse 1.6s ease-in-out infinite;
}

@keyframes splash-speaker-pulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.splash-bubble--glass .splash-bubble-speaker {
  color: var(--accent-dark, #2f6fae);
  text-shadow: none;
}

.splash-bubble.splash-tts-speaking .splash-bubble-speaker-dot {
  animation: splash-speaker-talk 0.55s ease-in-out infinite;
  opacity: 1;
  transform: scale(1.08);
}

@keyframes splash-speaker-talk {
  0%, 100% { transform: scale(0.95); opacity: 0.75; }
  50% { transform: scale(1.18); opacity: 1; }
}

.splash-bubble--glass .splash-bubble-speaker-dot {
  background: var(--yueling-blue, #4A90E2);
  box-shadow: 0 0 8px rgba(74, 144, 226, 0.45);
}

.splash-bubble--glass .splash-bubble-title {
  color: #1d1d1f;
  text-shadow: none;
}

.splash-bubble--glass .splash-bubble-body {
  color: rgba(29, 29, 31, 0.84);
  text-shadow: none;
}

.splash-bubble-panel-hint {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.splash-bubble--glass .splash-bubble-panel-hint {
  color: rgba(29, 29, 31, 0.42);
}

.splash-bubble-title {
  position: relative;
  z-index: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
  text-shadow:
    0 1px 10px rgba(0, 18, 48, 0.55),
    0 0 24px rgba(0, 28, 72, 0.28);
}

.splash-bubble-body {
  position: relative;
  z-index: 1;
  font-size: 13px;
  line-height: 1.62;
  color: rgba(244, 250, 255, 0.94);
  text-shadow: 0 1px 8px rgba(0, 16, 40, 0.5);
}

.splash-start-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-self: center;
  gap: 4px;
  margin-top: 8px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.splash-start-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.splash-bubble--glass .splash-start-label,
.splash-bubble--glass .splash-start-arrow {
  color: var(--yueling-blue, #4A90E2);
  text-shadow: none;
}

.splash-start-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(244, 250, 255, 0.96);
  letter-spacing: 0.04em;
}

.splash-start-arrow {
  font-size: 14px;
  line-height: 1;
  font-weight: 600;
  color: rgba(244, 250, 255, 0.96);
}

.splash-start-btn:active {
  opacity: 0.72;
}

.splash-start-btn:active .splash-start-arrow {
  transform: translateX(3px);
  transition: transform 0.14s ease;
}

.splash-video-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent;
}

.splash-video {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: auto;
  max-height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center center;
  background: transparent;
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
}
