/* ============ 嘎嘎鸭-青禾 · 初中英语单词 ============ */
:root {
  --paper: #F4EFE3;
  --paper-deep: #EAE2D1;
  --card: #FFFCF5;
  --ink: #1E2B24;
  --ink-soft: #55635B;
  --ink-mute: #8A938C;
  --green: #175C46;
  --green-deep: #0F3D2F;
  --green-soft: #DDE9DF;
  --green-tint: #EDF4EE;
  --amber: #C97C25;
  --amber-soft: #F7E8CF;
  --line: rgba(30, 43, 36, .10);
  --line-strong: rgba(30, 43, 36, .18);
  --shadow-card: 0 1px 2px rgba(30, 43, 36, .05), 0 18px 32px -26px rgba(30, 43, 36, .5);
  --font-en: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 26px;
  --r-md: 18px;
  --r-sm: 12px;
  --nav-h: 78px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 520px at 92% -8%, rgba(201, 124, 37, .14), transparent 70%),
    radial-gradient(760px 480px at -10% 8%, rgba(23, 92, 70, .13), transparent 68%),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .14 0 0 0 0 .12 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 12px; }

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ambient__orb { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; }
.ambient__orb--one { width: 320px; height: 320px; top: -120px; right: -80px; background: rgba(201, 124, 37, .18); }
.ambient__orb--two { width: 280px; height: 280px; bottom: 10%; left: -140px; background: rgba(23, 92, 70, .16); }

.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 18px);
}

.view {
  padding: 22px 18px 8px;
  outline: none;
  animation: viewIn .32s ease both;
}
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 通用 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--amber);
}

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.page-head h1 { font-size: 27px; line-height: 1.2; letter-spacing: -.02em; font-weight: 650; margin-top: 6px; }
.page-head p { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 15px; font-weight: 650; letter-spacing: .04em; }
.section-nav { display: flex; align-items: center; gap: 6px; }
.section-nav__pos { font-size: 12px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.round-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); transition: opacity .15s ease, transform .15s ease; }
.round-btn svg { width: 15px; height: 15px; }
.round-btn:active { transform: scale(.94); }
.round-btn[disabled] { opacity: .35; }

.section-head .link {
  border: 0; background: none; padding: 4px 2px;
  color: var(--green); font-size: 12.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; flex: 0 0 auto;
}
.section-head .link svg { width: 14px; height: 14px; flex: 0 0 14px; }
.section-head .link:active { opacity: .6; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 245, .7);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.pill--live { border-color: rgba(23, 92, 70, .3); background: var(--green-tint); color: var(--green); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--green);
  color: #F7F3E8;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: transform .15s ease, background .2s ease, box-shadow .2s;
}
.btn:hover { background: var(--green-deep); }
.btn:active { transform: scale(.97); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: rgba(23, 92, 70, .06); }
.btn--amber { background: var(--amber); color: #241505; }
.btn--amber:hover { background: #B36A18; }
.btn--block { width: 100%; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--green);
  transition: background .18s, transform .18s, color .18s;
}
.icon-btn:hover { background: var(--green-tint); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.is-playing { background: var(--green); color: #F7F3E8; border-color: var(--green); }

svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab svg { fill: none; }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 100;
  width: min(100%, 800px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 252, 245, .94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}
.tab {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 58px;
  border-radius: 16px;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: .06em;
  transition: color .18s, background .18s;
}
.tab svg { width: 22px; height: 22px; }
.tab.is-active { color: var(--green); background: var(--green-tint); font-weight: 600; }
.tab:active { background: rgba(23, 92, 70, .1); }

/* ---------- 首页 ---------- */
.greeting { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 6px 0 20px; }
.greeting h1 { font-family: var(--font-en); font-size: 28px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.greeting h1 em { font-style: normal; color: var(--green); }
.greeting p { font-size: 12.5px; color: var(--ink-mute); margin-top: 6px; letter-spacing: .02em; }
.brand-mark {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--green), var(--green-deep));
  color: #F3EDDD;
  font-family: var(--font-en);
  font-size: 25px;
  box-shadow: 0 10px 18px -12px rgba(15, 61, 47, .9);
}

.status-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(148deg, #1C624B 0%, #104434 62%, #0C3327 100%);
  color: #F2EBDC;
  box-shadow: 0 22px 40px -28px rgba(15, 61, 47, .95);
}
.status-card::after {
  content: "";
  position: absolute;
  width: 190px; height: 190px;
  right: -70px; top: -80px;
  border-radius: 50%;
  border: 1px solid rgba(242, 235, 220, .22);
  box-shadow: 0 0 0 28px rgba(242, 235, 220, .05), 0 0 0 56px rgba(242, 235, 220, .04);
}
.status-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.status-card__label { font-size: 11.5px; letter-spacing: .16em; opacity: .72; }
.status-card .pill { background: rgba(242, 235, 220, .12); border-color: rgba(242, 235, 220, .26); color: #F2EBDC; }
.status-card .pill .dot { background: #E7B36B; }
.status-card__main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 16px 0 14px; position: relative; z-index: 1; }
.minutes { display: flex; align-items: baseline; gap: 6px; }
.minutes strong { font-family: var(--font-en); font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.minutes span { font-size: 13px; opacity: .72; }
.status-card__goal { font-size: 12px; opacity: .7; text-align: right; padding-bottom: 4px; }
.status-card__goal b { display: block; font-size: 15px; opacity: .95; font-weight: 600; }

.meter { height: 7px; border-radius: 99px; background: rgba(242, 235, 220, .18); overflow: hidden; position: relative; z-index: 1; }
.meter > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #E9C48C, #E7A956); transition: width .5s ease; }

.status-card__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(242, 235, 220, .16);
  position: relative;
  z-index: 1;
}
.status-card__stats div { font-size: 11px; letter-spacing: .04em; opacity: .65; }
.status-card__stats b { display: block; font-size: 18px; font-family: var(--font-en); opacity: 1; font-weight: 600; margin-bottom: 2px; }

.word-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -18px;
  padding: 2px 18px 10px;
  scrollbar-width: none;
}
.word-scroller::-webkit-scrollbar { display: none; }
.word-scroller.word-scroller--page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: visible;
  margin: 0;
  padding: 2px 0 10px;
  scroll-snap-type: none;
}
.word-scroller--page .word-tile { flex: none; min-width: 0; }
@media (max-width: 560px) {
  .word-scroller--page { grid-template-columns: 1fr; }
}

.word-tile {
  scroll-snap-align: start;
  flex: 0 0 214px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 168px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
}
.word-tile__from { font-size: 10.5px; letter-spacing: .08em; color: var(--ink-mute); }
.word-tile__en { font-family: var(--font-en); font-size: 27px; line-height: 1.15; letter-spacing: -.015em; margin-top: 2px; word-break: break-word; }
.word-tile__ipa { font-size: 11.5px; color: var(--green); }
.word-tile__cn { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.word-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.word-tile__tag { font-size: 10.5px; color: var(--ink-mute); }
.word-tile .icon-btn { width: 36px; height: 36px; flex-basis: 36px; }

.quote-card {
  position: relative;
  padding: 22px 22px 18px;
  border-radius: var(--r-lg);
  background: #FBF3E3;
  border: 1px solid rgba(201, 124, 37, .22);
  overflow: hidden;
}
.quote-card::before {
  content: "“";
  position: absolute;
  right: 16px; top: -14px;
  font-family: var(--font-en);
  font-size: 92px;
  color: rgba(201, 124, 37, .18);
  line-height: 1;
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--font-en);
  font-size: 18px;
  line-height: 1.58;
  letter-spacing: -.01em;
  max-width: 32ch;
  position: relative;
  z-index: 1;
}
.quote-card__cn { margin-top: 10px; font-size: 12.5px; color: #7A6448; line-height: 1.6; }
.quote-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.quote-card__actions { display: flex; align-items: center; gap: 8px; }
.quote-card__by { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #A08356; }
.quote-card .icon-btn { width: 36px; height: 36px; flex-basis: 36px; border-color: rgba(201, 124, 37, .25); color: var(--amber); background: transparent; }

.continue-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
  width: 100%;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform .18s;
}
.continue-card:active { transform: scale(.985); }
.continue-card__badge {
  width: 46px; height: 46px; flex: 0 0 46px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--green-tint);
  color: var(--green);
  font-family: var(--font-en);
  font-size: 15px;
  line-height: 1.05;
  text-align: center;
}
.continue-card__badge--long {
  width: auto; min-width: 50px; max-width: 74px; height: auto; min-height: 46px;
  padding: 7px 8px; flex: 0 0 auto;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.25;
  word-break: break-word;
}
.continue-card__body { flex: 1; min-width: 0; }
.continue-card__body strong { display: block; font-size: 14.5px; font-weight: 650; }
.continue-card__body span { display: block; font-size: 12px; color: var(--ink-mute); margin-top: 3px; }
.continue-card__arrow { color: var(--green); font-size: 18px; display: inline-flex; flex: 0 0 auto; }
.continue-card__arrow svg { width: 18px; height: 18px; }

/* ---------- 分类 ---------- */
.segmented {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -18px;
  padding: 4px 18px 8px;
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented--wrap {
  flex-wrap: wrap;
  overflow-x: visible;
  row-gap: 6px;
}
.wl-list { list-style: none; margin: 6px 0 4px; padding: 0; max-height: 30vh; overflow-y: auto; }
.wl-group { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 0; font-size: 13px; letter-spacing: .08em; color: var(--ink-mute); }
.wl-group b { font-size: 12px; font-weight: 600; }
.pick-panel { margin: 18px 0 40px; padding: 14px; border-radius: 18px; background: var(--green-tint); border: 1px solid var(--line); }
.pick-head { display: flex; align-items: center; gap: 8px; }
.pick-head strong { flex: 1; font-size: 14px; }
.pick-count { font-size: 12px; color: var(--ink-mute); }
.pick-list { list-style: none; margin: 10px 0; padding: 0; max-height: 46vh; overflow-y: auto; }
.pick-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 2px; }
.pick-tab { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(30, 43, 36, .14); background: rgba(255, 255, 255, .7); color: var(--ink-mute); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .16s ease, color .16s ease, border-color .16s ease; }
.pick-tab b { font-size: 11px; font-weight: 700; color: var(--ink-mute); }
.pick-tab:hover { border-color: rgba(23, 92, 70, .35); color: var(--green); }
.pick-tab.is-active { background: var(--green); border-color: transparent; color: #fff; box-shadow: 0 4px 10px rgba(23, 92, 70, .18); }
.pick-tab.is-active b { color: #eaf6f0; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pick-row:last-child { border-bottom: 0; }
.pick-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(30, 43, 36, .25); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; color: #fff; }
.pick-box svg { width: 12px; height: 12px; }
.pick-row.is-on .pick-box { background: var(--green); border-color: transparent; }
.pick-row.is-now { background: rgba(245, 158, 11, .12); border-radius: 8px; box-shadow: inset 3px 0 0 var(--amber); }
.pick-en { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pick-en em { font-style: normal; font-size: 12px; color: var(--ink-mute); }
.pick-idx { font-size: 12px; color: var(--ink-mute); }
.pick-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  padding: 9px 10px 9px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
}
.play-status {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.play-status b { color: var(--green); font-weight: 600; }
.pick-play {
  flex: 0 0 auto;
  width: auto;
  min-width: 118px;
  min-height: 36px;
  padding: 0 16px;
  margin: 0;
  gap: 6px;
  font-size: 13px;
  box-shadow: 0 8px 18px -14px rgba(23, 92, 70, .8);
}
.pick-play svg { width: 14px; height: 14px; }
.pick-play.is-active {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 8px 18px -14px rgba(201, 124, 37, .85);
}
.pick-play.is-active:hover { background: #B36A18; }
@media (max-width: 560px) {
  .pick-actions { flex-wrap: wrap; }
  .pick-play { width: 100%; }
}
.wl-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.wl-row:last-child { border-bottom: 0; }
.wl-no { flex: 0 0 22px; font-size: 12px; color: var(--ink-mute); text-align: right; }
.wl-main { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wl-main strong { font-size: 16px; }
.wl-main em { font-style: normal; font-size: 12px; color: var(--ink-mute); }
.wl-main small { font-size: 13px; color: var(--ink-soft, var(--ink-mute)); }
.segmented.seg--sm { margin-bottom: 10px; }
.segmented.seg--sm .seg { min-height: 34px; padding: 0 12px; font-size: 13px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 10px 0 4px; }
.pager span { font-size: 12.5px; color: var(--ink-mute); }
.pick-empty { padding: 18px 4px; text-align: center; font-size: 13px; color: var(--ink-mute); list-style: none; }
.seg {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 245, .6);
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.seg b { font-family: var(--font-en); font-size: 12px; font-weight: 600; margin-left: 4px; opacity: .55; }
.seg.is-active { background: var(--green); border-color: var(--green); color: #F6F1E5; }
.seg.is-active b { opacity: .8; }

.book-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 2px 12px;
  font-size: 12px;
  color: var(--ink-mute);
}
.book-meta strong { color: var(--ink); font-size: 13.5px; font-weight: 650; }

.unit-grid { display: grid; gap: 10px; }
.unit-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px 14px;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 1px 1px rgba(30, 43, 36, .03);
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.unit-card:hover { border-color: rgba(23, 92, 70, .28); box-shadow: var(--shadow-card); }
.unit-card.is-playing {
  border-color: rgba(23, 92, 70, .55);
  background: #EAF4EE;
  box-shadow: 0 8px 22px rgba(23, 92, 70, .14);
}
.unit-card.is-playing .unit-no { background: var(--green); color: #F7F3E8; }
.playing-tag { color: var(--green); font-style: normal; font-weight: 700; }
.seg.is-playing { border-color: rgba(23, 92, 70, .5); }
.playing-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: playingPulse 1.2s ease-in-out infinite;
}
@keyframes playingPulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.playing-dot.is-paused { animation: none; background: var(--ink-mute); }
.unit-card:active { transform: scale(.985); }
.unit-no {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-tint);
  color: var(--green);
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 600;
}
.unit-no.is-done { background: var(--green); color: #F7F3E8; }
.unit-body { flex: 1; min-width: 0; }
.unit-body strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit-body span { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 3px; }
.ring {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) calc(var(--p) * 1%), var(--paper-deep) 0);
  position: relative;
}
.ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--card);
}
.ring span { position: relative; z-index: 1; font-size: 9.5px; font-weight: 600; color: var(--ink-soft); }

/* ---------- 单词学习 ---------- */
.study-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.study-top .study-title { flex: 1; min-width: 0; text-align: center; }
.study-title strong { display: block; font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.study-title span { display: block; font-size: 11px; color: var(--ink-mute); margin-top: 2px; }
.back-btn { width: 40px; height: 40px; flex-basis: 40px; }
.stage-switch { display: flex; gap: 8px; }
.stage-opt { flex: 1; height: 44px; border-radius: 12px; border: 1px solid var(--paper-deep); background: var(--card); color: var(--ink-soft); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .18s ease, color .18s ease, box-shadow .18s ease; }
.stage-opt.is-active { background: var(--green); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(23, 92, 70, .22); }
.total-badge { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-size: 12px; font-weight: 600; vertical-align: middle; }
.pill--tune { padding: 0 9px; }
.pill--tune svg { width: 17px; height: 17px; }

.progress-dots { display: flex; gap: 4px; margin: 4px 2px 16px; }
.progress-dots button {
  position: relative;
  flex: 1;
  height: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.progress-dots button::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 99px;
  background: rgba(30, 43, 36, .18);
  transition: background .25s, transform .15s;
}
.progress-dots button.is-on::before { background: var(--green); }
.progress-dots button.is-now::before { background: var(--amber); }
.progress-dots button:hover::before { transform: scaleY(1.9); }
.progress-dots button:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; border-radius: 4px; }

.flashcard {
  padding: 26px 22px 20px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.flashcard__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flashcard__label span { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.learned-flag { font-size: 11px; color: var(--green); background: var(--green-tint); padding: 4px 10px; border-radius: 99px; }
.word-main {
  font-family: var(--font-en);
  font-size: clamp(31px, 9vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-top: 14px;
  word-break: break-word;
}
.word-ipa-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.word-ipa { font-size: 14px; color: var(--green); letter-spacing: .01em; }
.word-ipa-row .icon-btn { width: 32px; height: 32px; flex-basis: 32px; border: 0; background: var(--green-tint); }
.word-ipa-row .icon-btn svg { width: 15px; height: 15px; }

.rule { height: 1px; background: var(--line); margin: 20px 0 18px; }
.meaning { font-size: 18px; font-weight: 600; line-height: 1.5; }
.meaning small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .16em; color: var(--ink-mute); margin-bottom: 5px; text-transform: uppercase; }

.example {
  margin-top: 18px;
  padding: 15px 16px 14px;
  border-radius: 16px;
  background: #F8F2E4;
  border-left: 3px solid var(--amber);
}
.example__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.example__head .example__tag { margin-bottom: 0; }
.icon-btn--sm { width: 26px; height: 26px; flex-basis: 26px; border: 0; background: rgba(201, 124, 37, .12); color: var(--amber); }
.icon-btn--sm svg { width: 14px; height: 14px; }
.example__tag { display: inline-block; margin-bottom: 6px; padding: 1px 8px; border-radius: 999px; background: var(--green-tint-2, rgba(47, 106, 79, .1)); color: var(--green); font-size: 11px; letter-spacing: .02em; }
.example__en { font-family: var(--font-en); font-size: 17px; line-height: 1.45; letter-spacing: -.005em; }
.example__cn { font-size: 12.5px; color: #6F604A; margin-top: 7px; line-height: 1.6; }
.example__bar { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mini-play {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(201, 124, 37, .3);
  background: rgba(255, 252, 245, .8);
  color: #8F5A15;
  font-size: 11.5px;
  font-weight: 600;
}
.mini-play svg { width: 13px; height: 13px; }
.mini-play:active { transform: scale(.96); }

/* 单词拓展：常见组合短语 / 近义词 / 反义词 */
.word-extra { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.word-extra__group {
  padding: 12px 14px 10px;
  border-radius: 14px;
  background: #FBF6EA;
  border: 1px solid var(--line);
}
.word-extra__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--amber);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.word-extra__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.word-extra__list li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.word-extra__play {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(201, 124, 37, .12);
  color: var(--amber);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
  transform: translateY(2px);
}
.word-extra__play svg { width: 12px; height: 12px; }
.word-extra__play:active { transform: translateY(2px) scale(.92); }
.word-extra__en { font-family: var(--font-en); font-weight: 600; color: var(--ink); font-size: 14.5px; }
.word-extra__cn { color: #6F604A; font-size: 12.5px; }

.flashcard__foot { margin-top: auto; padding-top: 20px; display: grid; gap: 10px; }
.main-play { width: 100%; min-height: 52px; border-radius: 16px; font-size: 14.5px; }
.main-play svg { width: 18px; height: 18px; }
.flashcard__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.learn-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.learn-toggle svg { width: 16px; height: 16px; }
.learn-toggle.is-on { background: var(--green-tint); border-color: rgba(23, 92, 70, .35); color: var(--green); font-weight: 600; }
.step-btns { display: flex; gap: 8px; }
.step-btns .icon-btn { width: 42px; height: 42px; }
.step-btns .icon-btn:disabled { opacity: .35; }
.card-player {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 2px;
  padding: 7px 9px 7px 12px;
  border-radius: 12px;
  background: var(--paper-deep);
}
.card-player__status {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.card-player__status b { color: var(--green); font-weight: 600; }
.card-player__btn { flex: 0 0 auto; min-width: 78px; height: 34px; justify-content: center; }
.card-player__btn.is-active { background: var(--amber); border-color: var(--amber); color: #FFFDF8; }

.channel-note {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
}
.channel-note b { color: var(--ink-soft); font-weight: 600; }

/* ---------- 历程 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  padding: 15px 16px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
}
.stat b { display: block; font-family: var(--font-en); font-size: 27px; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.stat b i { font-style: normal; font-size: 13px; color: var(--ink-mute); margin-left: 2px; }
.stat span { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 5px; letter-spacing: .04em; }
.stat--accent { background: var(--green); border-color: var(--green); }
.stat--accent b { color: #F4EDDD; }
.stat--accent span { color: rgba(244, 237, 221, .68); }

.week-card { padding: 18px 16px 12px; margin-top: 12px; }
.week-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.week-head h3 { font-size: 13px; font-weight: 650; }
.week-head span { font-size: 11px; color: var(--ink-mute); }
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 104px; }
.week-col { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.week-col i {
  width: 100%;
  max-width: 26px;
  border-radius: 7px 7px 3px 3px;
  background: var(--paper-deep);
  min-height: 4px;
  transition: height .4s ease, background .2s;
}
.week-col.is-today i { background: var(--amber); }
.week-col.is-has i { background: var(--green); }
.week-col.is-today.is-has i { background: var(--amber); }
.week-col span { font-size: 10px; color: var(--ink-mute); }
.week-col b { font-size: 10px; color: var(--ink-soft); font-weight: 600; }
.week-empty { margin: 8px 0 2px; text-align: center; font-size: 11.5px; color: var(--ink-mute); }

.book-progress { margin-top: 12px; overflow: hidden; }
.book-progress__row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.book-progress__row:last-child { border-bottom: 0; }
.book-progress__name { width: 92px; flex: 0 0 92px; font-size: 12.5px; font-weight: 600; }
.book-progress__name small { display: block; font-size: 10.5px; color: var(--ink-mute); font-weight: 400; margin-top: 1px; }
.book-progress__bar { flex: 1; height: 6px; border-radius: 99px; background: var(--paper-deep); overflow: hidden; }
.book-progress__bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.book-progress__num { font-size: 11px; color: var(--ink-mute); font-variant-numeric: tabular-nums; width: 52px; text-align: right; }
.book-progress__go { flex: 0 0 auto; min-height: 30px; padding: 0 12px; font-size: 12px; }
.book-progress__go.is-playing { background: #0E4A37; }

.chip-row { display: flex; gap: 8px; margin: 14px 0 12px; flex-wrap: wrap; }
.chip {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 12px;
  color: var(--ink-soft);
}
.chip.is-active { background: var(--green); border-color: var(--green); color: #F5EFE2; font-weight: 600; }

.word-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.word-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); }
.word-row__en { flex: 1; min-width: 0; }
.word-row__en strong { display: block; font-family: var(--font-en); font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.word-row__en span { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.word-row__status { font-size: 10.5px; padding: 4px 9px; border-radius: 99px; background: var(--paper-deep); color: var(--ink-mute); white-space: nowrap; }
.word-row__status.is-done { background: var(--green-tint); color: var(--green); }
.word-row .icon-btn { width: 34px; height: 34px; flex-basis: 34px; border: 0; background: var(--green-tint); }
.word-row .icon-btn svg { width: 15px; height: 15px; }

.empty {
  padding: 34px 20px;
  text-align: center;
  border-radius: var(--r-md);
  border: 1px dashed var(--line-strong);
  color: var(--ink-mute);
  font-size: 12.5px;
  line-height: 1.7;
}
.empty b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }

/* ---------- 我的 ---------- */
.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.avatar {
  width: 58px; height: 58px; flex: 0 0 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(150deg, #22664F, #0F3D2F);
  color: #F4EDDD;
  font-family: var(--font-en);
  font-size: 25px;
  font-weight: 600;
}
.profile__body { flex: 1; min-width: 0; }
.profile__body strong { font-size: 16.5px; font-weight: 650; }
.profile__body span { display: block; font-size: 12px; color: var(--ink-mute); margin-top: 3px; letter-spacing: .02em; }
.profile .btn { min-height: 36px; padding: 0 13px; font-size: 12px; }

.group { margin-top: 22px; }
.group-title { font-size: 12px; letter-spacing: .14em; color: var(--ink-mute); margin: 0 2px 10px; text-transform: uppercase; }
.panel { border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  min-height: 58px;
}
button.row {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.row:last-child { border-bottom: 0; }
.row.is-locked { opacity: .62; }
.row__arrow { flex: 0 0 18px; color: var(--ink-mute); }
.row__arrow svg { width: 18px; height: 18px; }
.lock-tag {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: var(--ink-mute);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.row__body { flex: 1; min-width: 0; }
.row__body strong { display: block; font-size: 13.5px; font-weight: 600; }
.row__body span { display: block; font-size: 11.5px; color: var(--ink-mute); margin-top: 2px; line-height: 1.5; }

.switch {
  position: relative;
  width: 46px; height: 28px;
  flex: 0 0 46px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: var(--paper-deep);
  transition: background .2s, border-color .2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #FFFDF7;
  box-shadow: 0 1px 3px rgba(30, 43, 36, .25);
  transition: transform .2s ease;
}
.switch[aria-checked="true"] { background: var(--green); border-color: var(--green); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px; }
.stepper button {
  width: 34px; height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}
.stepper button:hover { background: var(--green-tint); }
.stepper button:disabled { opacity: .3; }
.stepper output { min-width: 30px; text-align: center; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }

.range-wrap { display: flex; align-items: center; gap: 10px; width: 150px; }
.range-wrap--stepped { width: 186px; gap: 6px; }
.range-btn {
  flex: 0 0 26px;
  width: 26px; height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--green);
  font-size: 17px;
  line-height: 1;
}
.range-btn:hover { background: var(--green-tint); }
.range-btn:disabled { opacity: .3; }
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 99px;
  background: var(--paper-deep);
  accent-color: var(--green);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--card);
  box-shadow: 0 1px 4px rgba(30, 43, 36, .3);
  cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--card);
  cursor: grab;
}
.range-val { font-size: 11.5px; color: var(--ink-mute); width: 38px; text-align: right; font-variant-numeric: tabular-nums; }

select.select {
  max-width: 170px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--card);
  font-size: 12px;
}

.channel-list { display: grid; gap: 10px; }
.channel {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--card);
  transition: border-color .2s, background .2s;
}
.channel.is-active { border-color: rgba(23, 92, 70, .4); background: #FBFDF9; box-shadow: inset 0 0 0 1px rgba(23, 92, 70, .1); }
.channel__radio {
  width: 20px; height: 20px; flex: 0 0 20px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
}
.channel.is-active .channel__radio { border-color: var(--green); }
.channel.is-active .channel__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.channel__body { flex: 1; min-width: 0; }
.channel__body strong { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 650; }
.channel__body strong em {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .06em;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--amber-soft);
  color: #8F5A15;
  font-weight: 600;
}
.channel__body p { font-size: 11.5px; color: var(--ink-mute); margin-top: 3px; line-height: 1.55; }
.channel__usage { margin-top: 9px; }
.channel__usage .meter { height: 5px; background: var(--paper-deep); }
.channel__usage .meter > i { background: var(--green); }
.channel.is-full .channel__usage .meter > i { background: var(--amber); }
.channel__usage span { display: block; font-size: 10.5px; color: var(--ink-mute); margin-top: 5px; }
.channel__usage span b { color: var(--ink-soft); font-weight: 600; }

.danger-zone { margin-top: 22px; }

.footnote { margin: 24px 4px 8px; font-size: 10.5px; line-height: 1.7; color: var(--ink-mute); text-align: center; }

/* ---------- 底部弹层 ---------- */
.sheet {
  width: min(100% - 32px, 480px);
  max-height: 84vh;
  margin: auto;
  padding: 12px 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(30, 43, 36, .65);
  overflow-y: auto;
}
.sheet::backdrop { background: rgba(20, 32, 26, .42); backdrop-filter: blur(2px); }
.sheet[open] { animation: sheetIn .24s cubic-bezier(.22, .9, .28, 1) both; }
@keyframes sheetIn { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.sheet h2 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.sheet .sub { font-size: 12px; color: var(--ink-mute); margin-top: 4px; }

.field { margin-top: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #FFFDF8;
  font-size: 14px;
}
.field input:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(23, 92, 70, .12); }
.field input::placeholder { color: #B3B7B1; }

.sheet__actions { display: flex; gap: 10px; margin-top: 22px; }
.sheet__actions .btn { flex: 1; }

/* ---------- 提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 12px);
  z-index: 300;
  max-width: min(88vw, 400px);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(23, 43, 34, .94);
  color: #F4EFE3;
  font-size: 12.5px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 每日滚屏 ---------- */
.daily-scroll {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  background: rgba(23, 43, 34, .58);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  animation: dailyFadeIn .35s ease both;
}
.daily-scroll[hidden] { display: none; }
.daily-scroll.is-out { animation: dailyFadeOut .32s ease both; }
.daily-scroll__panel {
  width: min(100%, 460px);
  height: min(444px, 70vh);
  overflow: hidden;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 30px 70px rgba(16, 32, 24, .32);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
}
.daily-scroll__track.is-syncing .daily-scroll__line { opacity: .3; border-radius: 12px; transition: opacity .25s ease, background-color .25s ease; }
.daily-scroll__track.is-syncing .daily-scroll__line.is-active { opacity: 1; background: rgba(47, 106, 79, .09); }
.daily-scroll__track.is-syncing .daily-scroll__line.is-active .daily-scroll__en { font-weight: 600; }
.daily-scroll__track.is-syncing .daily-scroll__line.is-active .daily-scroll__cn { color: var(--ink); }
.daily-scroll__line { height: 70px; display: flex; flex-direction: column; justify-content: center; padding: 0 4px; }
.daily-scroll__en { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 19px; line-height: 1.35; color: var(--green); }
.daily-scroll__cn { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-mute); }
.daily-scroll__hint { font-size: 11.5px; letter-spacing: .12em; color: rgba(244, 239, 227, .72); }
@keyframes dailyFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dailyFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ---------- 大屏 ---------- */
@media (min-width: 560px) {
  .unit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .word-tile { flex-basis: 236px; }
  .view { padding: 26px 26px 8px; }
  .word-scroller, .segmented { margin: 0 -26px; padding-left: 26px; padding-right: 26px; }
}

/* 高中版分类：窗口较窄时右侧进度环易被挤压/掩盖，提前切回单列（初中版保持 560 断点不变） */
@media (max-width: 679px) {
  html[data-stage="senior"] .unit-grid { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .view { padding: 34px 34px 120px; }
  .word-scroller, .segmented { margin: 0 -34px; padding-left: 34px; padding-right: 34px; }
  .tabbar {
    bottom: 18px;
    width: 540px;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 8px;
    box-shadow: 0 22px 48px -26px rgba(30, 43, 36, .6);
  }
  .tab { min-height: 54px; }
  .greeting h1 { font-size: 32px; }
  .status-card { padding: 24px 26px; }
  .flashcard { padding: 32px 30px 26px; min-height: 440px; }
  .toast { bottom: 112px; }
  body::after { opacity: .28; }
}

@media (min-width: 1180px) {
  .shell::before {
    content: "嘎嘎鸭-青禾 · 初中英语 QINGHE";
    position: fixed;
    left: max(24px, calc(50vw - 570px));
    bottom: 40px;
    writing-mode: vertical-rl;
    font-size: 10px;
    letter-spacing: .34em;
    color: rgba(30, 43, 36, .3);
    z-index: 2;
  }
}

@media (max-width: 400px) {
  .row { flex-wrap: wrap; }
  .row__body { flex: 1 1 150px; }
  .row select.select { max-width: 100%; width: 100%; }
  .row .range-wrap { width: 100%; max-width: 220px; }
}

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

/* 触摸设备的按压反馈 */
@media (hover: none) {
  .btn:hover { background: var(--green); }
  .btn--ghost:hover { background: transparent; }
  .icon-btn:hover { background: var(--card); }
  .unit-card:hover { box-shadow: none; border-color: var(--line); }
}

/* ---------- 角色与账号 ---------- */
.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid transparent;
  vertical-align: middle;
}
.role-badge--guest { color: #6C5A3E; background: #F2E9D8; border-color: rgba(201, 124, 37, .28); }
.role-badge--normal { color: var(--green); background: var(--green-tint); border-color: rgba(23, 92, 70, .22); }
.role-badge--vip { color: #7A4A12; background: linear-gradient(135deg, #F8E7C6, #F2D49A); border-color: rgba(201, 124, 37, .45); }
.role-badge--admin { color: #F4EDDD; background: var(--green); border-color: var(--green-deep); }

.device-line {
  margin-top: 6px !important;
  font-size: 11.5px !important;
  color: var(--ink-mute) !important;
}
.device-line a { color: var(--green); font-weight: 600; text-decoration: none; }
.device-line a:hover { text-decoration: underline; }

.account-card {
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--line);
}
.account-card__head { display: flex; align-items: center; gap: 9px; }
.account-card__head strong { font-size: 14.5px; font-weight: 650; }
.account-card__offline { margin-left: auto; font-size: 10.5px; color: var(--ink-mute); }
.account-card__rows { margin-top: 13px; display: grid; gap: 8px; }
.account-card__rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}
.account-card__rows span { color: var(--ink-mute); }
.account-card__rows b { font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.account-card__actions { display: flex; gap: 8px; margin-top: 14px; }
.account-card__actions [data-act="logout"] { margin-left: auto; }
.account-card__actions .btn { text-decoration: none; }

.channel.is-locked { opacity: .62; background: var(--paper-deep); }
.channel.is-locked .channel__radio { opacity: .4; }
.channel.is-locked .channel__body strong em { display: none; }

/* 朗读高亮：秒变出现 + 渐隐（进入无过渡，退出 0.6s 淡出） */
mark.wx { background: rgba(255, 198, 26, 0); color: inherit; font-weight: 700; border-radius: 6px; padding: 0 5px; transition: background-color .6s ease, color .6s ease, box-shadow .6s ease; }
.word-main { transition: color .6s ease, text-decoration-color .6s ease; }
.word-main.is-reading { color: #0B4231; text-decoration: underline 5px rgba(255, 198, 26, .95); text-underline-offset: 7px; transition: none; }
.meaning { border-radius: 10px; padding: 3px 10px; transition: background-color .6s ease, color .6s ease, box-shadow .6s ease; }
.meaning.is-reading { background: #FFDE6A; color: #3D2600; box-shadow: 0 2px 0 rgba(240, 180, 0, .45); transition: none; }
.meaning.is-reading small { color: #6B4E00; }
.example__en, .example__cn { border-radius: 10px; padding: 4px 12px; margin-left: -12px; transition: background-color .6s ease, box-shadow .6s ease; }
.example__en.is-reading, .example__cn.is-reading { background: #FFF1BD; box-shadow: inset 5px 0 0 #F0B400; transition: none; }
.example__en.is-reading mark.wx, .example__cn.is-reading mark.wx { background: #FFC61A; color: #33220A; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); transition: none; }

/* 重点单词：年级-单元 / 单词 / 音标 / 释义 各占一行，超长自动缩小字号 */
.word-tile__from, .word-tile__en, .word-tile__ipa, .word-tile__cn {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}
.word-tile__en { line-height: 1.2; }
.word-tile__ipa { line-height: 1.3; }
.word-tile__cn { line-height: 1.25; }

/* 会员权益：身份分级美化 */
.tier-table { width:100%; border-collapse:collapse; font-size:13.5px; }
.tier-table th { font-weight:500; color:#8a8a8a; padding:8px 10px; border-bottom:1px solid #E7E2D6; text-align:center; }
.tier-table th:first-child, .tier-table td:first-child { text-align:left; }
.tier-table td { padding:10px; border-bottom:1px solid #F1EDE2; text-align:center; color:#3b3b3b; }
.tier-table tbody tr:last-child td { border-bottom:0; }
.tier-table tr.is-current td { background:#F6F3E8; }
.tier-table tr.is-current td:first-child { box-shadow: inset 3px 0 0 #0B4231; }
.tier-badge { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; line-height:19px; font-weight:600; }
.tier-guest { background:#EFEDE6; color:#6b6459; }
.tier-normal { background:#E3EEF9; color:#25608f; }
.tier-vip { background:#FBEBC8; color:#8a5a00; }
.tier-cur { display:inline-block; margin-left:6px; font-size:11px; color:#0B4231; background:#DCEFE6; border-radius:999px; padding:1px 8px; }
.plan-card { border:1px solid #E7E2D6; border-radius:14px; padding:12px 14px 8px; margin:12px 0; background:#fff; }
.plan-card.is-current { border-color:#0B4231; box-shadow:0 0 0 1px #0B4231 inset; }
.plan-card__head { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.plan-card__row { display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px dashed #EFEBE0; font-size:13.5px; }
.plan-card__row:last-child { border-bottom:0; }
.plan-card__label { color:#8a8a8a; flex:0 0 84px; }
.plan-card__value { color:#333; text-align:right; flex:1; }

/* 会员权益：只显示分级标签 */
.tier-chips { display:flex; flex-wrap:wrap; gap:6px; padding:2px 0; }
.tier-chip { display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:999px; font-size:13px; font-weight:600; letter-spacing:.2px; white-space:nowrap; }
.tier-chip.tier-guest { background:#EFEDE6; color:#6b6459; }
.tier-chip.tier-normal { background:#E3EEF9; color:#25608f; }
.tier-chip.tier-vip { background:#FBEBC8; color:#8a5a00; }
.tier-chip.is-current { background:#0B4231; color:#fff; box-shadow:0 3px 10px rgba(11,66,49,.22); }
.tier-chip.is-current i { font-style:normal; font-size:11px; line-height:16px; padding:0 7px; border-radius:999px; background:rgba(255,255,255,.26); color:#fff; }

/* 会员权益：分级标签横向铺满 */
.tier-chips { display:flex; flex-wrap:nowrap; gap:8px; padding:2px 0; width:100%; }
.tier-chip { flex:1 1 0; min-width:0; justify-content:center; text-align:center; padding:10px 6px; font-size:13px; white-space:nowrap; }

/* 权益说明弹窗：底部按钮常驻 */
.sheet__actions--sticky {
  position: sticky;
  bottom: 0;
  margin: 16px -20px 0;
  padding: 12px 20px 14px;
  background: #FFFCF5;
  border-top: 1px solid #EFE9DA;
  box-shadow: 0 -6px 12px -8px rgba(0,0,0,.16);
  z-index: 5;
}
.sheet__actions--sticky .btn { width: 100%; }

/* 分类页顶部：进度与统计各自一行 */
.page-head > div { min-width: 0; flex: 1 1 auto; }
.page-head .pill { white-space: nowrap; flex: 0 0 auto; }
.page-head p.page-head__meta {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  font-size: 12.5px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.page-head p.page-head__meta::-webkit-scrollbar { display: none; }

@media (max-width: 350px) {
  .page-head p.page-head__meta { font-size: 11px; }
}

/* 我的 · 词汇库选择：六档网格 */
.stage-switch--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stage-switch--grid .stage-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; line-height: 1.25; }
.stage-switch--grid .stage-opt strong { font-size: 14.5px; font-weight: 650; }
.stage-switch--grid .stage-opt span { font-size: 11px; opacity: .68; }
.stage-switch--grid .stage-opt.is-active span { opacity: .85; }

/* 播放页：正在播放 与 单词同一行 */
.word-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.word-main__now { font-size: 13px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0; white-space: nowrap; }

/* 本单元单词：按钮上方显示正在播放的单词 */
.pick-now { display: flex; align-items: baseline; gap: 7px; margin: 12px 2px 0; font-size: 13px; color: var(--ink-soft); }
.pick-now b { font-size: 18px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }

/* 本单元单词：正在播放的单词跟在“共 N 个 · 已播放 M 个”右侧 */
.play-now { white-space: nowrap; }
.play-now b { font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }

/* 选词弹层：三按钮（关闭 / 继续上次学习 / 开始学习） */
.sheet__actions--three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sheet__actions--three .btn { width: 100%; padding: 0 6px; font-size: 13px; white-space: nowrap; }

/* 本单元单词：整份词表全部展开，不再用内部滚动（中间位置的单词始终可见） */
.pick-list { max-height: none; overflow-y: visible; }

/* 选词弹层：固定完整显示 5 个单词（第 5 个不再截断） */
.wl-list { max-height: 312px; overflow-y: auto; }
/* 播放页「本单元单词」恢复内部滚动：换单词时页面位置不动 */
.pick-list { max-height: 46vh; overflow-y: auto; }

/* 本单元单词翻页条 */
.pick-pager { margin: 12px 0 4px; }

/* 本单元单词：每页 10 个，整页展开（不再内部滚动） */
.pick-list { max-height: none; overflow-y: visible; }

/* 单词搜索框 */
.search-box { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; padding: 0 12px; min-height: 42px; border-radius: 13px; background: var(--card); border: 1px solid var(--line-strong); }
.search-box svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--ink-mute); stroke-width: 1.8; }
.search-box input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--ink); outline: none; padding: 10px 0; -webkit-appearance: none; }
.search-box input::placeholder { color: var(--ink-mute); }
.search-clear { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--paper-deep); color: var(--ink-soft); font-size: 15px; line-height: 1; cursor: pointer; }
.search-results { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.search-hit { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 11px; background: var(--card); text-align: left; cursor: pointer; }
.search-hit:active { background: var(--paper-deep); }
.search-hit__en { font-weight: 650; font-size: 14.5px; color: var(--ink); }
.search-hit__cn { font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-hit__from { font-size: 11px; color: var(--ink-mute); white-space: nowrap; }
.search-empty { margin: 8px 2px; font-size: 12.5px; color: var(--ink-mute); }

/* 分类页统计行：强制一行，超宽缩字号（fitText） */
.page-head__meta { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.page-head > div { min-width: 0; flex: 1 1 auto; }

/* 历程里“旧记录”标记 */
.word-row__from { font-size: 11px; color: var(--ink-mute); padding: 0 6px; }

/* 历程旧记录标记 */
.word-row__old { font-style: normal; font-size: 11px; color: var(--ink-mute); margin-left: 2px; }

/* 历程列表：行宽不溢出，右侧小喇叭不被裁掉 */
.word-row { box-sizing: border-box; width: 100%; min-width: 0; }
.word-row .icon-btn { flex: 0 0 auto; }
.word-row__status { flex: 0 0 auto; }
.word-row__en { min-width: 0; }
.word-row__en strong, .word-row__en span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 会员权益：身份切换标签 + 单卡片 */
.tier-chips--tabs { margin: 10px 0 2px; }
.tier-chips--tabs .tier-chip { appearance:none; -webkit-appearance:none; border:0; cursor:pointer; font:inherit; font-size:13px; font-weight:600; transition: box-shadow .18s ease, transform .18s ease; }
.tier-chips--tabs .tier-chip.is-active { background:#0B4231; color:#fff; box-shadow:0 3px 10px rgba(11,66,49,.22); }
.tier-chips--tabs .tier-chip:active { transform: scale(.985); }
.plan-card--single { margin: 12px 0 4px; }
.plan-single { min-height: 292px; }

/* 反馈/客服 */
.mini-play--fb { background:#FFF3D6 !important; color:#8a5a00 !important; border:1px solid #EFD9A3 !important; }
.fb-opts { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 6px; }
.fb-opt { display:inline-flex; align-items:center; gap:6px; padding:8px 12px; border:1px solid #E7E2D6; border-radius:999px; font-size:13px; background:#FFFDF8; cursor:pointer; }
.fb-opt input { width:15px; height:15px; accent-color:#0B4231; }
.sheet textarea#fbText { width:100%; box-sizing:border-box; min-height:86px; padding:10px 12px; border-radius:12px; border:1px solid #E7E2D6; background:#FFFDF8; font-size:14px; line-height:1.5; resize:vertical; }

/* 我的留言与客服回复 */
.fb-badge { display:inline-block; margin-left:6px; min-width:18px; height:18px; line-height:18px; padding:0 5px; border-radius:9px; background:#D9534F; color:#fff; font-size:11px; text-align:center; vertical-align:middle; }
.fb-card { border:1px solid #EFE9DA; border-radius:14px; padding:12px 14px; margin:10px 0; background:#FFFDF8; }
.fb-card__head { display:flex; align-items:baseline; justify-content:space-between; gap:8px; font-size:13.5px; }
.fb-card__head b { font-weight:600; }
.fb-card__time { color:#9b9689; font-size:11.5px; white-space:nowrap; }
.fb-card__text { margin:8px 0 0; font-size:13.5px; line-height:1.6; color:#4a4a44; white-space:pre-wrap; word-break:break-word; }
.fb-card__reply { margin-top:10px; padding:10px 12px; border-radius:12px; background:#EAF4EE; border-left:3px solid #0B4231; }
.fb-card__label { display:block; font-size:11.5px; color:#0B4231; font-weight:600; margin-bottom:4px; }
.fb-card__replytext { font-size:13.5px; line-height:1.6; color:#1f2a24; white-space:pre-wrap; word-break:break-word; }
.fb-card__wait { margin:8px 0 0; font-size:12.5px; color:#9b9689; }

/* 站内客服会话 */
.chat-box { height:300px; overflow-y:auto; padding:10px 6px; background:#FAF8F2; border:1px solid #EFE9DA; border-radius:14px; margin:10px 0; }
.chat-empty { color:#9b9689; font-size:13px; text-align:center; padding:60px 10px; line-height:1.7; }
.chat-msg { display:flex; flex-direction:column; margin-bottom:10px; }
.chat-msg.me { align-items:flex-end; }
.chat-msg.them { align-items:flex-start; }
.chat-msg__bubble { max-width:80%; padding:9px 12px; border-radius:12px; font-size:13.5px; line-height:1.6; white-space:pre-wrap; word-break:break-word; }
.chat-msg.me .chat-msg__bubble { background:#0B4231; color:#fff; border-bottom-right-radius:4px; }
.chat-msg.them .chat-msg__bubble { background:#fff; border:1px solid #EFE9DA; color:#1f2a24; border-bottom-left-radius:4px; }
.chat-msg__meta { font-size:11px; color:#a9a396; margin-top:4px; }
.chat-input { display:flex; gap:8px; align-items:center; }
.chat-input input { flex:1; min-width:0; height:42px; padding:0 12px; border-radius:12px; border:1px solid #E7E2D6; background:#FFFDF8; font-size:14px; }
.chat-send { flex:0 0 auto; height:42px; padding:0 18px; }

/* 消息中心 Tab / 同学私聊 / 安装引导 */
.chat-tabs { display:flex; gap:8px; margin:8px 0 10px; }
.chat-tab { flex:1 1 0; min-width:0; height:38px; border-radius:12px; border:1px solid #E7E2D6; background:#FFFDF8; color:#4a4a44; font-size:14px; font-family:inherit; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; gap:4px; }
.chat-tab.is-active { background:#0B4231; border-color:#0B4231; color:#fff; }
.chat-tab .fb-badge { background:#D9534F; color:#fff; }
.peer-search { display:flex; gap:8px; margin-bottom:10px; }
.peer-search input { flex:1; min-width:0; height:40px; padding:0 12px; border-radius:12px; border:1px solid #E7E2D6; background:#FFFDF8; font-size:14px; }
.peer-search .btn { flex:0 0 auto; height:40px; padding:0 16px; }
.peer-row { display:flex; align-items:center; justify-content:space-between; gap:10px; width:100%; text-align:left; padding:11px 12px; border:1px solid #EFE9DA; border-radius:12px; background:#FFFDF8; margin-bottom:8px; font-family:inherit; font-size:13.5px; color:inherit; cursor:pointer; }
.peer-row__main { min-width:0; flex:1 1 auto; display:flex; flex-direction:column; gap:3px; }
.peer-row__main b { font-weight:600; display:flex; align-items:center; gap:6px; }
.peer-row__main span { color:#8d8879; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.peer-row__time { flex:0 0 auto; color:#a9a396; font-size:11.5px; }
.peer-empty { color:#9b9689; font-size:13px; text-align:center; padding:26px 8px; }
.peer-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.peer-back { border:0; background:none; color:#0B4231; font-size:14px; font-family:inherit; cursor:pointer; padding:4px 2px; }
.btn--mini { height:32px; padding:0 12px; font-size:13px; }
.install-steps { font-size:13.5px; line-height:1.9; color:#4a4a44; background:#FAF8F2; border:1px solid #EFE9DA; border-radius:12px; padding:12px 14px; }
.chat-actions { flex-wrap:wrap; gap:8px; }
.chat-actions .btn { flex:1 1 30%; min-width:96px; }

/* 安装引导补充 */
.install-url { margin:10px 0 0; padding:10px 12px; border-radius:12px; background:#F3EFE3; border:1px dashed #DCD3BE; font-size:12.5px; color:#6b6656; word-break:break-all; }
.install-actions { gap:8px; }
.install-actions .btn { flex:1 1 0; }

/* 历程分页 */
.journey-pager { margin-top:14px; }
.journey-pager span { font-size:12.5px; color:#6b6656; }
.journey-total { margin:12px 0 0; font-size:12.5px; color:#8d8879; text-align:center; }

/* 消息弹层底部入口卡片 */
.chat-quick { display:flex; gap:10px; margin:14px 0 0; }
.quick-card { flex:1 1 0; min-width:0; display:flex; align-items:center; gap:9px; padding:11px 12px; border-radius:14px; border:1px solid #E7E2D6; background:linear-gradient(180deg,#FFFDF8,#F7F3E8); text-align:left; font-family:inherit; cursor:pointer; transition:transform .12s ease, box-shadow .12s ease; }
.quick-card:active { transform:scale(.985); }
.quick-card__icon { flex:0 0 34px; width:34px; height:34px; border-radius:11px; background:#0B4231; color:#fff; display:inline-flex; align-items:center; justify-content:center; }
.quick-card__icon svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.quick-card--alt .quick-card__icon { background:#C2851B; }
.quick-card__body { min-width:0; display:flex; flex-direction:column; gap:2px; }
.quick-card__body b { font-size:13.5px; color:#1f2a24; font-weight:600; white-space:nowrap; }
.quick-card__body small { font-size:11.5px; color:#8d8879; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sheet__actions .btn--block { width:100%; }

/* 入口卡片竖排（窄屏更宽松） */
.quick-card { flex-direction:column; align-items:flex-start; gap:8px; padding:12px; }
.quick-card__body { width:100%; gap:3px; }
.quick-card__body b { font-size:13px; }
.quick-card__body small { font-size:10.5px; overflow:visible; text-overflow:clip; }

/* 入口卡片·极简版 */
.chat-quick { display:flex; gap:10px; margin:12px 0 0; }
.quick-card { flex:1 1 0; min-width:0; height:46px; display:flex; flex-direction:row; align-items:center; justify-content:center; gap:7px; padding:0 10px; border-radius:12px; border:1px solid #E7E2D6; background:#FFFDF8; font-size:13px; font-weight:600; color:#1f2a24; font-family:inherit; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.quick-card:active { background:#F4EFE2; }
.quick-card svg { width:17px; height:17px; flex:0 0 17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.quick-card span { white-space:nowrap; }
.quick-card--alt { color:#8a5a00; border-color:#EBD9AE; background:#FFFAF0; }
.quick-card--alt:active { background:#FBF1DC; }

/* 网址可长按全选 */
.install-url span { user-select: all; -webkit-user-select: all; }
.install-url { cursor: text; }

/* 手动复制输入框 */
.copy-input { width:100%; box-sizing:border-box; margin-top:6px; padding:12px; border-radius:12px; border:1px solid #E7E2D6; background:#FFFDF8; font-size:13px; color:#0B4231; }
.install-url a { color:#0B4231; text-decoration:underline; word-break:break-all; }

/* 例句赏析 */
.mini-play--an { background:var(--green) !important; color:#FFFCF5 !important; border:1px solid var(--green) !important; }
.mini-play--an svg { width:12px; height:12px; }
.an-card { background:var(--card); border:1px solid var(--line); border-radius:18px; padding:18px 14px 16px; box-shadow:0 1px 2px rgba(30,43,36,.04); }
.an-line-wrap { display:flex; flex-wrap:wrap; gap:16px 18px; justify-content:center; align-items:flex-end; }
.an-word { display:flex; flex-direction:column; align-items:center; gap:6px; max-width:100%; }
.an-ipa { font-style:normal; font-size:11.5px; color:var(--ink-mute); letter-spacing:.2px; white-space:nowrap; font-weight:500; }
.an-en { font-size:22px; font-weight:700; color:var(--ink); line-height:1.16; font-family:var(--font-en); }
.an-line { display:block; width:100%; min-width:34px; height:4px; border-radius:2px; background:var(--rc,#8A938C); opacity:.8; }
.an-role { font-style:normal; background:var(--rbg,rgba(138,147,140,.10)); color:var(--rc,#55635B); font-size:12px; font-weight:700; padding:3px 9px; border-radius:8px; line-height:1.3; }
.an-cn { margin:16px 0 0; text-align:center; color:var(--ink-soft); font-size:14.5px; line-height:1.6; }
.an-sec { margin-top:16px; }
.an-sec h3 { font-size:13px; margin:0 0 8px; color:var(--green); font-weight:700; letter-spacing:.4px; }
.an-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.an-list li { background:#FFFDF8; border:1px solid var(--line); border-radius:12px; padding:10px 12px; font-size:13.5px; line-height:1.6; }
.an-list li b { color:var(--green); }
.an-list li span { display:block; color:var(--ink-soft); margin-top:3px; }
.an-list--phrase li b { color:var(--amber); }
.an-card--empty .an-empty-en { margin:0; font-size:15px; font-weight:700; color:var(--ink); line-height:1.5; }
.an-card--empty .an-empty-cn { margin:6px 0 0; color:var(--ink-soft); font-size:13px; line-height:1.6; }
.an-card--empty .an-empty-tip { margin:12px 0 0; color:var(--ink-mute); font-size:12.5px; line-height:1.7; }
.an-note { margin:0 0 10px; font-size:12.5px; color:#8a5a00; background:#FFF3D6; border:1px solid #EFD9A3; border-radius:10px; padding:8px 10px; line-height:1.5; }
