/* =========================================================
   拾词 · SHICI VOCABULARY
   一个安静、专注的背单词空间
   ========================================================= */

:root {
  color-scheme: light;
  --paper: #f1ede3;
  --paper-deep: #e8e1d3;
  --card: #fbf8f1;
  --card-soft: #f6f1e6;
  --ink: #1a332d;
  --ink-soft: #40564e;
  --muted: #7b877f;
  --muted-light: #a1aaa4;
  --forest: #173b32;
  --forest-deep: #0e2a24;
  --forest-mid: #265446;
  --coral: #e77756;
  --coral-deep: #c95a39;
  --coral-soft: #f7e7de;
  --sand: #ddcfb5;
  --green-soft: #e7efe2;
  --green: #487158;
  --amber: #a46a23;
  --amber-soft: #f8ebd6;
  --line: rgba(26, 51, 45, 0.12);
  --line-strong: rgba(26, 51, 45, 0.22);
  --cream-line: rgba(247, 241, 227, 0.14);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --font-body: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 24px 60px -42px rgba(23, 59, 50, 0.55);
  --shadow-float: 0 18px 40px -30px rgba(23, 59, 50, 0.6);
  --sidebar-width: 250px;
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 4%, rgba(231, 119, 86, 0.08), transparent 28rem),
    radial-gradient(circle at 45% 100%, rgba(106, 139, 121, 0.1), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.dialog-open {
  overflow: hidden;
}

::selection {
  background: var(--coral);
  color: var(--forest);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 通用按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: transform 0.22s var(--ease), background 0.22s, border-color 0.22s, color 0.22s, box-shadow 0.22s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--coral);
  color: var(--forest-deep);
  box-shadow: 0 14px 30px -18px rgba(231, 119, 86, 0.9);
}

.btn--primary:hover {
  background: #ef8767;
  box-shadow: 0 18px 34px -18px rgba(231, 119, 86, 0.95);
}

.btn--ink {
  background: var(--forest);
  color: #f8f2e4;
}

.btn--ink:hover {
  background: var(--forest-mid);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background: rgba(26, 51, 45, 0.05);
}

.btn--cream {
  background: #f7f1e4;
  color: var(--forest);
}

.btn--cream:hover {
  background: #fffaf0;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.icon-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line-strong);
}

.icon-btn:active {
  transform: scale(0.94);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

/* =========================================================
   侧边栏
   ========================================================= */

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-width);
  padding: 30px 20px 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 115%, rgba(231, 119, 86, 0.14), transparent 17rem),
    linear-gradient(165deg, #1a4036 0%, #15372f 48%, #102c26 100%);
  color: #f7f1e3;
}

.sidebar::before {
  content: "";
  position: absolute;
  right: -132px;
  bottom: -122px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(247, 241, 227, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.sidebar::after {
  content: "";
  position: absolute;
  right: -68px;
  bottom: -64px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(247, 241, 227, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 6px;
  border-radius: 14px;
}

.brand__mark {
  display: block;
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  border-radius: 14px;
  box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.7);
}

.brand__mark svg {
  width: 100%;
  height: 100%;
}

.brand__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
}

.brand__text small {
  display: block;
  margin-top: 6px;
  color: rgba(247, 241, 227, 0.42);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.17em;
}

.nav-label {
  margin: 43px 13px 10px;
  color: rgba(247, 241, 227, 0.34);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: transparent;
  color: rgba(247, 241, 227, 0.6);
  font-size: 13.5px;
  letter-spacing: 0.015em;
  text-align: left;
  transition: color 0.25s, background 0.25s, transform 0.25s;
}

.nav-item .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.7;
}

.nav-item:hover {
  color: rgba(247, 241, 227, 0.94);
  background: rgba(247, 241, 227, 0.055);
}

.nav-item.is-active {
  background: #f6f0e3;
  color: var(--forest);
  box-shadow: 0 14px 30px -22px rgba(0, 0, 0, 0.9);
}

.nav-item.is-active .icon {
  color: var(--coral-deep);
}

.nav-item__dot {
  width: 5px;
  height: 5px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--coral);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.2s, transform 0.2s;
}

.nav-item.is-active .nav-item__dot {
  opacity: 1;
  transform: scale(1);
}

.sidebar__spacer {
  flex: 1;
  min-height: 34px;
}

.streak-card {
  position: relative;
  z-index: 1;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(247, 241, 227, 0.11);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(247, 241, 227, 0.085), rgba(247, 241, 227, 0.025));
}

.streak-card::after {
  content: "";
  position: absolute;
  top: -38px;
  right: -38px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(231, 119, 86, 0.12);
  filter: blur(10px);
  pointer-events: none;
}

.streak-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(247, 241, 227, 0.58);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}

.streak-card__flame {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: rgba(231, 119, 86, 0.15);
  color: #ef9274;
}

.streak-card__flame .icon {
  width: 14px;
  height: 14px;
}

.streak-card__number {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 10px 0 13px;
}

.streak-card__number strong {
  font-family: var(--font-display);
  font-size: 37px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.streak-card__number span {
  color: rgba(247, 241, 227, 0.48);
  font-size: 10px;
}

.streak-dots {
  display: flex;
  gap: 4px;
}

.streak-dots span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(247, 241, 227, 0.13);
  transition: background 0.3s;
}

.streak-dots span.is-on {
  background: var(--coral);
}

.streak-dots span.is-today {
  box-shadow: 0 0 0 2px rgba(231, 119, 86, 0.2);
}

.streak-card__note {
  margin-top: 9px;
  color: rgba(247, 241, 227, 0.4);
  font-size: 9.5px;
  line-height: 1.5;
}

.sidebar__foot {
  position: relative;
  z-index: 1;
  margin: 18px 4px 0;
  color: rgba(247, 241, 227, 0.27);
  font-family: var(--font-display);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

/* =========================================================
   主区域 / 顶栏
   ========================================================= */

.main {
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 max(44px, calc((100% - 1280px) / 2));
  border-bottom: 1px solid rgba(26, 51, 45, 0.075);
  background: rgba(241, 237, 227, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.mobile-brand {
  display: none;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.crumb i {
  color: var(--muted-light);
  font-style: normal;
}

.crumb strong {
  color: var(--ink);
  font-weight: 600;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(201, 90, 57, 0.15);
  border-radius: 999px;
  background: rgba(231, 119, 86, 0.09);
  color: var(--coral-deep);
  font-size: 10.5px;
  letter-spacing: 0.03em;
}

.streak-pill .icon {
  width: 14px;
  height: 14px;
}

.streak-pill strong {
  font-weight: 750;
}

.date-pill {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.03em;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest);
  color: #f7f1e3;
  font-family: var(--font-display);
  font-size: 15px;
  box-shadow: 0 10px 20px -14px rgba(23, 59, 50, 0.8);
}

.main__inner {
  width: min(1280px, calc(100% - 88px));
  margin: 0 auto;
  padding: 0 0 72px;
}

.view {
  animation: viewIn 0.5s var(--ease) both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow i {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--coral);
}

/* =========================================================
   今日学习 · 头部
   ========================================================= */

.today-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 38px;
  padding: 38px 0 30px;
}

.today-hero__copy h1 {
  max-width: 760px;
  margin: 10px 0 12px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(36px, 3.9vw, 53px);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.04em;
}

.today-hero__copy h1 em {
  position: relative;
  color: var(--coral-deep);
  font-style: normal;
  white-space: nowrap;
}

.today-hero__copy h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0.03em;
  left: 0;
  z-index: -1;
  height: 0.23em;
  border-radius: 99px;
  background: rgba(231, 119, 86, 0.14);
}

.hero-sub {
  max-width: 570px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 248, 241, 0.62);
  color: var(--muted);
  font-size: 10.5px;
}

.hero-tag b {
  color: var(--ink);
  font-weight: 700;
}

.hero-tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.hero-tag--learning .dot {
  background: var(--amber);
}

.hero-tag--streak .dot {
  background: var(--coral);
}

/* 今日目标圆盘 */

.goal-disc {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 206px;
  height: 206px;
  flex: 0 0 auto;
  border: 1px solid rgba(26, 51, 45, 0.1);
  border-radius: 50%;
  background: linear-gradient(145deg, #fcf9f3 20%, #f2ecdf 100%);
  box-shadow: 0 28px 55px -38px rgba(23, 59, 50, 0.55);
}

.goal-disc::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(26, 51, 45, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.goal-disc__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.goal-disc__ring circle {
  fill: none;
  stroke-width: 3.5;
}

.goal-disc__ring .ring-track {
  stroke: rgba(26, 51, 45, 0.08);
}

.goal-disc__ring .ring-fill {
  stroke: var(--coral);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.7s var(--ease);
}

.goal-disc__label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
}

.goal-disc__number {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 2px 0 1px;
  line-height: 1;
}

.goal-disc__number strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 45px;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.goal-disc__number span {
  color: var(--muted-light);
  font-size: 12px;
}

.goal-disc__foot {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 10px;
}

.goal-disc.is-complete .goal-disc__ring .ring-fill {
  stroke: var(--green);
}

.goal-disc.is-complete .goal-disc__number strong {
  color: var(--green);
}

.goal-disc__star {
  position: absolute;
  top: 35px;
  right: 42px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(231, 119, 86, 0.1);
}

/* =========================================================
   今日学习 · 学习卡
   ========================================================= */

.study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  align-items: start;
  gap: 20px;
}

.study-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 552px;
  padding: 28px 34px 30px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 87% -4%, rgba(231, 119, 86, 0.22), transparent 24rem),
    linear-gradient(150deg, #1b4137 0%, #14362e 52%, #0e2a24 100%);
  color: #f8f2e5;
  box-shadow: 0 34px 70px -46px rgba(14, 42, 36, 0.85);
}

.study-card::before {
  content: "";
  position: absolute;
  right: -148px;
  bottom: -198px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(247, 241, 227, 0.09);
  border-radius: 50%;
  pointer-events: none;
}

.study-card::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -128px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(247, 241, 227, 0.055);
  border-radius: 50%;
  pointer-events: none;
}

.study-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}

.study-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.study-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  padding: 0 11px;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 999px;
  background: rgba(247, 241, 227, 0.045);
  color: rgba(247, 241, 227, 0.65);
  font-size: 9.5px;
  letter-spacing: 0.09em;
}

.study-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(231, 119, 86, 0.12);
}

.study-pill__sep {
  width: 1px;
  height: 10px;
  background: rgba(247, 241, 227, 0.14);
}

.study-card__count {
  color: rgba(247, 241, 227, 0.44);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.study-card__count b {
  color: rgba(247, 241, 227, 0.84);
  font-weight: 650;
}

.study-progress {
  height: 2px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(247, 241, 227, 0.09);
}

.study-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), #f0a48b);
  transition: width 0.45s var(--ease);
}

.word-stage {
  margin-top: clamp(38px, 5.2vh, 58px);
}

.word-stage__word {
  overflow-wrap: anywhere;
  color: #fbf7ec;
  font-family: var(--font-display);
  font-size: clamp(54px, 6.4vw, 86px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.word-stage__word.is-long {
  font-size: clamp(48px, 5.6vw, 76px);
}

.word-stage__word.is-xlong {
  font-size: clamp(40px, 4.9vw, 66px);
  letter-spacing: -0.05em;
}

.word-stage__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 17px;
}

.word-phonetic {
  color: rgba(247, 241, 227, 0.6);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.015em;
}

.word-stage .icon-btn {
  width: 35px;
  height: 35px;
  border-color: rgba(247, 241, 227, 0.17);
  color: rgba(247, 241, 227, 0.72);
}

.word-stage .icon-btn:hover {
  background: rgba(247, 241, 227, 0.1);
  color: #fff9ec;
  border-color: rgba(247, 241, 227, 0.3);
}

.level-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 6px;
  color: rgba(247, 241, 227, 0.45);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.07em;
}

.reveal-panel {
  margin-top: auto;
  padding-top: 30px;
}

.reveal-panel__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  padding-top: 25px;
  border-top: 1px dashed rgba(247, 241, 227, 0.16);
}

.reveal-panel__copy p {
  color: rgba(247, 241, 227, 0.72);
  font-family: var(--font-display);
  font-size: 15.5px;
  line-height: 1.55;
}

.reveal-panel__copy span {
  display: block;
  margin-top: 6px;
  color: rgba(247, 241, 227, 0.36);
  font-size: 10.5px;
}

.btn-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  min-width: 150px;
  padding: 0 22px;
  border-radius: 999px;
  background: #f7f1e4;
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), background 0.22s;
}

.btn-reveal:hover {
  transform: translateY(-2px);
  background: #fffaf0;
}

.btn-reveal kbd {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(23, 59, 50, 0.16);
  border-radius: 5px;
  color: rgba(23, 59, 50, 0.5);
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 600;
}

.study-card__foot-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 19px;
  color: rgba(247, 241, 227, 0.27);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.answer-zone {
  padding-top: 26px;
  animation: answerIn 0.4s var(--ease) both;
}

.answer-zone__rule {
  height: 1px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, rgba(247, 241, 227, 0.16), rgba(247, 241, 227, 0.02));
}

.answer-meaning {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.pos-chip {
  display: inline-flex;
  align-items: center;
  height: 25px;
  margin-top: 3px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(231, 119, 86, 0.16);
  color: #f2a085;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-style: italic;
  white-space: nowrap;
}

.answer-meaning p {
  color: #fbf7ec;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.15vw, 27px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.005em;
}

.example-box {
  margin-top: 17px;
  padding: 14px 17px;
  border-left: 2px solid var(--coral);
  border-radius: 0 12px 12px 0;
  background: rgba(247, 241, 227, 0.045);
}

.example-box .en {
  color: rgba(247, 241, 227, 0.8);
  font-family: var(--font-display);
  font-size: 14.5px;
  line-height: 1.6;
}

.example-box .cn {
  margin-top: 6px;
  color: rgba(247, 241, 227, 0.45);
  font-size: 10.5px;
  line-height: 1.6;
}

.collocation-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
}

.collocation-box__label {
  color: rgba(247, 241, 227, 0.36);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.collocation-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.collocation-list span {
  padding: 4px 8px;
  border: 1px solid rgba(247, 241, 227, 0.11);
  border-radius: 6px;
  background: rgba(247, 241, 227, 0.055);
  color: rgba(247, 241, 227, 0.68);
  font-family: var(--font-display);
  font-size: 10.5px;
  line-height: 1.2;
}

.confusable-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px dashed rgba(231, 119, 86, 0.24);
  border-radius: 8px;
  background: rgba(231, 119, 86, 0.07);
  color: rgba(247, 241, 227, 0.56);
  font-size: 9.5px;
  line-height: 1.6;
}

.confusable-note span {
  flex: 0 0 auto;
  color: #f2a085;
  font-weight: 700;
}

.collocation-box--light {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f2e8;
}

.collocation-box--light .collocation-box__label {
  flex: 0 0 auto;
  color: var(--muted-light);
}

.collocation-box--light .collocation-list span {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink-soft);
  font-size: 10px;
}

.confusable-note--light {
  border-color: rgba(231, 119, 86, 0.22);
  background: #fdf1eb;
  color: #745d53;
}

.confusable-note--light span {
  color: var(--coral-deep);
}

.memory-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  color: rgba(247, 241, 227, 0.47);
  font-size: 10.5px;
  line-height: 1.7;
}

.memory-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--coral);
}

.study-actions {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 11px;
  margin-top: 21px;
}

.btn-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 12.5px;
  font-weight: 650;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
}

.btn-answer:hover {
  transform: translateY(-2px);
}

.btn-answer .icon {
  width: 16px;
  height: 16px;
}

.btn-answer kbd {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 17px;
  margin-left: 2px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 8px;
  opacity: 0.42;
}

.btn-answer--again {
  border-color: rgba(247, 241, 227, 0.18);
  background: transparent;
  color: rgba(247, 241, 227, 0.7);
}

.btn-answer--again:hover {
  background: rgba(247, 241, 227, 0.07);
  color: #fbf7ec;
}

.btn-answer--known {
  background: #f7f1e4;
  color: var(--forest);
}

.btn-answer--known:hover {
  background: #fffaf0;
}

/* 学习完成 */

.finish-panel {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
  padding: 22px 0;
  text-align: center;
  animation: answerIn 0.5s var(--ease) both;
}

.finish-panel__icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 21px;
  border: 1px solid rgba(231, 119, 86, 0.26);
  border-radius: 50%;
  background: rgba(231, 119, 86, 0.13);
  color: #f0977a;
  box-shadow: 0 0 0 12px rgba(231, 119, 86, 0.045);
}

.finish-panel__icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.6;
}

.finish-panel h2 {
  color: #fbf7ec;
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.finish-panel > p {
  max-width: 360px;
  margin-top: 10px;
  color: rgba(247, 241, 227, 0.5);
  font-size: 12px;
  line-height: 1.8;
}

.finish-stats {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 25px 0 27px;
}

.finish-stat {
  text-align: center;
}

.finish-stat strong {
  display: block;
  color: #f7f1e4;
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 500;
  line-height: 1;
}

.finish-stat span {
  display: block;
  margin-top: 7px;
  color: rgba(247, 241, 227, 0.37);
  font-size: 9.5px;
  letter-spacing: 0.07em;
}

.finish-actions {
  display: flex;
  gap: 10px;
}

.finish-actions .btn {
  min-height: 46px;
  font-size: 12px;
}

.finish-actions .btn--outline-light {
  border-color: rgba(247, 241, 227, 0.2);
  background: transparent;
  color: rgba(247, 241, 227, 0.75);
}

.finish-actions .btn--outline-light:hover {
  background: rgba(247, 241, 227, 0.06);
  color: #fbf7ec;
}

/* 加载状态 */

.loading-state {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 480px;
  color: rgba(247, 241, 227, 0.45);
  font-size: 11px;
}

.loading-state__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(247, 241, 227, 0.16);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 21px;
  animation: breathe 1.8s ease-in-out infinite;
}

/* =========================================================
   今日学习 · 右侧栏
   ========================================================= */

.daily-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rail-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.86);
  box-shadow: var(--shadow-card);
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rail-head h2 {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.rail-head span {
  color: var(--muted-light);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.queue-list {
  margin-top: 13px;
}

.queue-item {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) 13px;
  align-items: center;
  gap: 9px;
  min-height: 47px;
  padding: 7px 9px 7px 4px;
  border-bottom: 1px solid rgba(26, 51, 45, 0.07);
  border-radius: 8px;
  transition: background 0.2s, padding 0.2s;
}

.queue-item:last-child {
  border-bottom: 0;
}

.queue-item.is-current {
  margin: 3px 0;
  padding: 9px 10px;
  border-bottom-color: transparent;
  background: var(--coral-soft);
}

.queue-index {
  color: var(--muted-light);
  font-family: var(--font-display);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.queue-item.is-current .queue-index {
  color: var(--coral-deep);
}

.queue-word {
  min-width: 0;
}

.queue-word strong {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-item.is-current .queue-word strong {
  color: var(--ink);
}

.queue-word span {
  display: block;
  margin-top: 1px;
  color: var(--muted-light);
  font-size: 8.5px;
  letter-spacing: 0.03em;
}

.queue-state {
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
}

.queue-state--learning {
  border-color: #c69043;
  background: #f2d9b4;
}

.queue-state--mastered {
  border-color: var(--green);
  background: var(--green);
}

.queue-state--current {
  border-color: var(--coral);
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(231, 119, 86, 0.14);
}

.queue-more {
  margin-top: 11px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 9.5px;
}

.queue-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  padding: 11px;
  border-radius: 10px;
  background: var(--card-soft);
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

.queue-hint .icon {
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: var(--coral-deep);
}

.queue-hint kbd {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 16px;
  margin: 0 2px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 8px;
}

.queue-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 27px 10px 24px;
  text-align: center;
}

.queue-done__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.queue-done__icon .icon {
  width: 17px;
  height: 17px;
}

.queue-done strong {
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 650;
}

.queue-done span {
  color: var(--muted-light);
  font-size: 9.5px;
  line-height: 1.6;
}

/* 本周节奏 */

.week-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  margin-top: 18px;
}

.week-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.week-day__label {
  color: var(--muted-light);
  font-size: 8.5px;
}

.week-day__dot {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  transition: background 0.2s, border-color 0.2s;
}

.week-day__dot.is-low {
  border-color: rgba(231, 119, 86, 0.22);
  background: rgba(231, 119, 86, 0.12);
  color: var(--coral-deep);
}

.week-day__dot.is-mid {
  border-color: rgba(231, 119, 86, 0.28);
  background: rgba(231, 119, 86, 0.32);
  color: var(--forest);
}

.week-day__dot.is-high {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--forest);
}

.week-day.is-today .week-day__label {
  color: var(--ink);
  font-weight: 700;
}

.week-day.is-today .week-day__dot {
  box-shadow: 0 0 0 3px rgba(231, 119, 86, 0.12);
}

.week-summary {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 9.5px;
}

.week-summary strong {
  color: var(--ink);
  font-weight: 700;
}

.rail-quote {
  position: relative;
  margin-top: 13px;
  padding: 12px 13px 12px 17px;
  border-radius: 11px;
  background: #f3eee2;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 10.5px;
  line-height: 1.65;
}

.rail-quote::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 8px;
  width: 1px;
  background: var(--coral);
}

/* =========================================================
   词库页
   ========================================================= */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 42px 0 27px;
}

.page-head h1 {
  margin: 9px 0 7px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(36px, 3.5vw, 48px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.page-head__sub {
  max-width: 650px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.library-meter {
  width: 190px;
  flex: 0 0 auto;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 248, 241, 0.8);
  box-shadow: var(--shadow-card);
}

.library-meter__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.library-meter__label > span {
  color: var(--muted);
  font-size: 9.5px;
}

.library-meter__label strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.library-meter__label strong small {
  color: var(--muted-light);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
}

.mini-track {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-deep);
}

.mini-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), #ee9a7d);
  transition: width 0.5s var(--ease);
}

.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(251, 248, 241, 0.82);
  box-shadow: var(--shadow-card);
}

.search-box {
  display: flex;
  flex: 1 1 240px;
  align-items: center;
  gap: 8px;
  height: 43px;
  min-width: 200px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: var(--card-soft);
  color: var(--muted);
  transition: background 0.2s, border-color 0.2s;
}

.search-box:focus-within {
  border-color: rgba(26, 51, 45, 0.3);
  background: #fffdf8;
}

.search-box .icon {
  width: 16px;
  height: 16px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-box input::placeholder {
  color: var(--muted-light);
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  padding: 0;
  border-radius: 50%;
  background: rgba(26, 51, 45, 0.07);
  color: var(--muted);
}

.search-clear:hover {
  color: var(--ink);
  background: rgba(26, 51, 45, 0.12);
}

.search-clear .icon {
  width: 12px;
  height: 12px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.filter-tab {
  height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.filter-tab:hover {
  background: rgba(26, 51, 45, 0.05);
  color: var(--ink);
}

.filter-tab.is-active {
  background: var(--forest);
  color: #f8f2e5;
}

.filter-tab b {
  margin-left: 3px;
  font-size: 9px;
  font-weight: 500;
  opacity: 0.62;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.select-wrap select {
  height: 38px;
  padding: 0 31px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  appearance: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10.5px;
  cursor: pointer;
}

.select-wrap .icon {
  position: absolute;
  right: 9px;
  width: 13px;
  height: 13px;
  color: var(--muted);
  pointer-events: none;
}

.select-wrap--theme select {
  padding-right: 28px;
}

/* ---------- 场景词包 ---------- */

.theme-dock {
  position: relative;
  margin-bottom: 18px;
}

.theme-dock__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
}

.theme-dock__intro .eyebrow {
  font-size: 8.5px;
}

.theme-dock__intro h2 {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.theme-dock__tools {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 2px;
}

.theme-dock__tools p {
  max-width: 300px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
  text-align: right;
}

.theme-dock__arrows {
  display: flex;
  gap: 5px;
}

.theme-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251, 248, 241, 0.8);
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.theme-arrow:hover {
  border-color: rgba(26, 51, 45, 0.22);
  background: #fffdf8;
  color: var(--ink);
}

.theme-arrow .icon {
  width: 13px;
  height: 13px;
}

.theme-strip {
  display: flex;
  gap: 11px;
  padding: 2px 1px 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.theme-strip::-webkit-scrollbar {
  display: none;
}

.theme-card {
  position: relative;
  display: flex;
  flex: 0 0 244px;
  flex-direction: column;
  min-height: 178px;
  padding: 15px 16px 13px;
  overflow: hidden;
  border: 1px solid rgba(26, 51, 45, 0.1);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.58), transparent 8rem),
    linear-gradient(150deg, var(--theme-tint), rgba(251, 248, 241, 0.88));
  color: var(--ink);
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  animation: cardIn 0.5s var(--ease) both;
  animation-delay: var(--delay, 0ms);
  transition: transform 0.26s var(--ease), border-color 0.26s, box-shadow 0.26s;
}

.theme-card::after {
  content: "";
  position: absolute;
  right: -38px;
  bottom: -58px;
  width: 126px;
  height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
}

.theme-card:hover {
  transform: translateY(-3px);
  border-color: var(--theme-accent);
  box-shadow: 0 20px 34px -28px rgba(23, 59, 50, 0.46);
}

.theme-card.is-active {
  border-color: var(--theme-accent);
  box-shadow: inset 0 0 0 1px var(--theme-accent);
}

.theme-card__top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.theme-card__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--theme-accent);
}

.theme-card__icon .icon {
  width: 16px;
  height: 16px;
}

.theme-card__en {
  margin-left: auto;
  color: var(--theme-accent);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.72;
}

.theme-card__title {
  margin-top: 11px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.theme-card__desc {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #5e6b62;
  font-size: 9.5px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.theme-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

.theme-card__count {
  color: #6c776f;
  font-size: 8px;
  white-space: nowrap;
}

.theme-card__count b {
  color: var(--ink);
  font-weight: 700;
}

.theme-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--theme-accent);
  font-size: 8.5px;
  font-weight: 700;
  white-space: nowrap;
}

.theme-card__cta .icon {
  width: 11px;
  height: 11px;
  transition: transform 0.2s;
}

.theme-card:hover .theme-card__cta .icon {
  transform: translateX(2px);
}

.theme-card__bar {
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(26, 51, 45, 0.09);
}

.theme-card__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--theme-accent);
  opacity: 0.55;
  transition: width 0.4s var(--ease);
}

/* ---------- 词库分页 ---------- */

.library-pager {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 0 8px;
}

.library-pager p {
  color: var(--muted-light);
  font-size: 9.5px;
}

.library-pager p b {
  color: var(--ink);
  font-weight: 700;
}

.library-pager .btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 10.5px;
}

.library-pager .btn .icon {
  width: 13px;
  height: 13px;
}

.word-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.word-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 228px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(251, 248, 241, 0.9);
  cursor: pointer;
  animation: cardIn 0.5s var(--ease) both;
  animation-delay: var(--delay, 0ms);
  transition: transform 0.28s var(--ease), border-color 0.28s, box-shadow 0.28s;
}

.word-card:hover {
  transform: translateY(-4px);
  border-color: rgba(26, 51, 45, 0.25);
  box-shadow: 0 22px 42px -32px rgba(23, 59, 50, 0.55);
}

.word-card::before {
  content: "";
  position: absolute;
  top: -38px;
  right: -38px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(231, 119, 86, 0.06);
  opacity: 0;
  transition: opacity 0.28s;
}

.word-card:hover::before {
  opacity: 1;
}

.word-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.word-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
}

.word-card__cat::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--coral);
}

.word-card__cat em {
  color: var(--muted-light);
  font-style: normal;
}

.word-card .icon-btn {
  width: 30px;
  height: 30px;
  border-color: transparent;
  background: rgba(26, 51, 45, 0.04);
}

.word-card .icon-btn .icon {
  width: 14px;
  height: 14px;
}

.word-card__word {
  margin-top: 23px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.word-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.word-card__phonetic {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 11px;
}

.word-card__level {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted-light);
  font-size: 7.5px;
  letter-spacing: 0.04em;
}

.word-card__meaning {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.word-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(26, 51, 45, 0.08);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.status-pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill--new {
  background: #efebe2;
  color: #7f857c;
}

.status-pill--learning {
  background: var(--amber-soft);
  color: var(--amber);
}

.status-pill--mastered {
  background: var(--green-soft);
  color: var(--green);
}

.word-card__more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted-light);
  font: inherit;
  font-size: 9px;
  cursor: pointer;
  transition: color 0.2s;
}

.word-card__more:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

.word-card__more .icon {
  width: 11px;
  height: 11px;
}

.word-card:hover .word-card__more {
  color: var(--coral-deep);
}

.word-card--mastered {
  background: linear-gradient(145deg, rgba(251, 248, 241, 0.94), rgba(240, 246, 237, 0.92));
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 20px 82px;
  text-align: center;
}

.empty-state__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 17px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251, 248, 241, 0.8);
  color: var(--muted);
}

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

.empty-state p {
  margin: 7px 0 20px;
  color: var(--muted);
  font-size: 11.5px;
}

/* =========================================================
   词义挑战
   ========================================================= */

.quiz-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  min-height: 420px;
  margin-top: 12px;
  padding: 46px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 15%, rgba(231, 119, 86, 0.2), transparent 20rem),
    linear-gradient(135deg, #1a4036, #102e27 65%, #0d2822);
  color: #f8f2e5;
  box-shadow: 0 34px 75px -50px rgba(14, 42, 36, 0.9);
}

.quiz-intro::before {
  content: "";
  position: absolute;
  top: -210px;
  right: -120px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(247, 241, 227, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.quiz-intro::after {
  content: "";
  position: absolute;
  right: -15px;
  bottom: -275px;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(247, 241, 227, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.quiz-intro__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.eyebrow--light {
  color: rgba(247, 241, 227, 0.48);
}

.quiz-intro h2 {
  margin: 14px 0 15px;
  color: #fbf7ec;
  font-family: var(--font-display);
  font-size: clamp(42px, 4.5vw, 62px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.quiz-intro h2 em {
  color: #ef9274;
  font-style: normal;
}

.quiz-intro__lead {
  max-width: 460px;
  color: rgba(247, 241, 227, 0.52);
  font-size: 12.5px;
  line-height: 1.9;
}

.quiz-intro__stats {
  display: flex;
  gap: 32px;
  margin: 25px 0 28px;
}

.quiz-stat {
  min-width: 62px;
}

.quiz-stat b {
  display: block;
  color: #f8f2e5;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 500;
  line-height: 1;
}

.quiz-stat span {
  display: block;
  margin-top: 6px;
  color: rgba(247, 241, 227, 0.38);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.quiz-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-intro__actions .btn--ghost {
  border-color: rgba(247, 241, 227, 0.2);
  color: rgba(247, 241, 227, 0.78);
}

.quiz-intro__actions .btn--ghost:hover {
  background: rgba(247, 241, 227, 0.06);
}

.quiz-visual {
  position: relative;
  z-index: 1;
  min-height: 300px;
}

.quiz-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 290px;
  border: 1px dashed rgba(247, 241, 227, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.quiz-orbit::before {
  content: "";
  position: absolute;
  top: 27px;
  right: 26px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(231, 119, 86, 0.12);
}

.quiz-orbit::after {
  content: "";
  position: absolute;
  bottom: 37px;
  left: 24px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(247, 241, 227, 0.3);
}

.quiz-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 158px;
  height: 186px;
  border: 1px solid rgba(247, 241, 227, 0.14);
  border-radius: 26px;
  background: rgba(247, 241, 227, 0.065);
  color: #f8f2e5;
  font-family: var(--font-display);
  font-size: 86px;
  line-height: 1;
  transform: translate(-50%, -50%) rotate(5deg);
  box-shadow: 0 30px 60px -35px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.quiz-mark::after {
  content: "choose one";
  position: absolute;
  bottom: 17px;
  color: rgba(247, 241, 227, 0.32);
  font-family: var(--font-body);
  font-size: 7px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.quiz-float {
  position: absolute;
  padding: 9px 13px;
  border: 1px solid rgba(247, 241, 227, 0.14);
  border-radius: 11px;
  background: rgba(247, 241, 227, 0.08);
  color: rgba(247, 241, 227, 0.65);
  font-family: var(--font-display);
  font-size: 13px;
  backdrop-filter: blur(4px);
}

.quiz-float small {
  display: block;
  margin-top: 2px;
  color: rgba(247, 241, 227, 0.28);
  font-family: var(--font-body);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.quiz-float--one {
  top: 32px;
  left: 6%;
  transform: rotate(-8deg);
}

.quiz-float--two {
  right: 1%;
  bottom: 37px;
  transform: rotate(6deg);
}

.quiz-float--three {
  bottom: 63px;
  left: 2%;
  transform: rotate(-4deg);
}

.quiz-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-top: 17px;
}

.quiz-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(251, 248, 241, 0.72);
}

.quiz-note__icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.quiz-note__icon .icon {
  width: 15px;
  height: 15px;
}

.quiz-note strong {
  display: block;
  margin: 1px 0 3px;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
}

.quiz-note p {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.6;
}

/* 答题进行中 */

.quiz-shell {
  width: min(960px, 100%);
  margin: 12px auto 0;
}

.quiz-active {
  padding: 26px 38px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(251, 248, 241, 0.9);
  box-shadow: var(--shadow-card);
  animation: viewIn 0.4s var(--ease) both;
}

.quiz-active__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.quiz-active__labels {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.08em;
}

.quiz-active__labels b {
  color: var(--ink);
  font-weight: 700;
}

.quiz-score {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 29px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--forest);
  color: #f7f1e4;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.quiz-score b {
  font-size: 11px;
  font-weight: 700;
}

.quiz-progress {
  height: 3px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-deep);
}

.quiz-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), #ee9c80);
  transition: width 0.4s var(--ease);
}

.quiz-question-head {
  margin-top: 33px;
  text-align: center;
}

.quiz-question-head h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(44px, 5.2vw, 61px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.quiz-question-head h2.is-long {
  font-size: clamp(38px, 4.7vw, 56px);
}

.quiz-question-head h2.is-xlong {
  font-size: clamp(34px, 4.2vw, 50px);
  letter-spacing: -0.05em;
}

.quiz-question-head .word-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 7px;
}

.quiz-question-head .word-phonetic {
  color: var(--muted);
  font-size: 13px;
}

.quiz-question-head .icon-btn {
  width: 30px;
  height: 30px;
  background: var(--card-soft);
}

.quiz-prompt {
  margin: 19px 0 18px;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-align: center;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fffdf8;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.quiz-option:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(26, 51, 45, 0.32);
  box-shadow: 0 12px 26px -24px rgba(23, 59, 50, 0.6);
}

.quiz-option:disabled {
  cursor: default;
}

.option-letter {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card-soft);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 10px;
}

.quiz-option.is-correct {
  border-color: rgba(72, 113, 88, 0.55);
  background: #edf5e8;
  color: #365842;
}

.quiz-option.is-correct .option-letter {
  border-color: rgba(72, 113, 88, 0.28);
  background: rgba(72, 113, 88, 0.12);
  color: #365842;
}

.quiz-option.is-wrong {
  border-color: rgba(201, 90, 57, 0.48);
  background: #fbede7;
  color: #87422f;
  animation: shake 0.38s var(--ease);
}

.quiz-option.is-wrong .option-letter {
  border-color: rgba(201, 90, 57, 0.2);
  background: rgba(201, 90, 57, 0.1);
  color: #87422f;
}

.quiz-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 17px;
  padding: 13px 15px;
  border: 1px solid rgba(72, 113, 88, 0.18);
  border-radius: 13px;
  background: #f2f7ee;
  animation: answerIn 0.35s var(--ease) both;
}

.quiz-feedback.is-wrong {
  border-color: rgba(201, 90, 57, 0.17);
  background: #fcf1ec;
}

.quiz-feedback__main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.feedback-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(72, 113, 88, 0.12);
  color: var(--green);
}

.quiz-feedback.is-wrong .feedback-icon {
  background: rgba(201, 90, 57, 0.1);
  color: var(--coral-deep);
}

.feedback-icon .icon {
  width: 14px;
  height: 14px;
}

.quiz-feedback__text {
  min-width: 0;
}

.quiz-feedback__text strong {
  display: block;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
}

.quiz-feedback__text span {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-feedback .btn {
  min-height: 38px;
  padding: 0 16px;
  flex: 0 0 auto;
  font-size: 10.5px;
}

.quiz-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  color: var(--muted-light);
  font-size: 9px;
}

.quiz-foot kbd {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 16px;
  margin: 0 2px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 7.5px;
}

.quiz-exit {
  padding: 0;
  background: transparent;
  color: var(--muted-light);
  font-size: 9px;
  transition: color 0.2s;
}

.quiz-exit:hover {
  color: var(--coral-deep);
}

/* 测试结果 */

.quiz-result-hero {
  position: relative;
  padding: 44px 34px 38px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 80% 0%, rgba(231, 119, 86, 0.2), transparent 20rem),
    linear-gradient(140deg, #1a4036, #0e2a24);
  color: #f8f2e5;
  text-align: center;
  box-shadow: 0 34px 70px -48px rgba(14, 42, 36, 0.9);
}

.quiz-result-hero::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -230px;
  width: 450px;
  height: 450px;
  border: 1px solid rgba(247, 241, 227, 0.08);
  border-radius: 50%;
}

.result-eyebrow {
  position: relative;
  z-index: 1;
  color: rgba(247, 241, 227, 0.42);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.result-score {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  margin: 10px 0 9px;
  line-height: 1;
}

.result-score strong {
  color: #fbf7ec;
  font-family: var(--font-display);
  font-size: clamp(80px, 10vw, 114px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.result-score span {
  color: rgba(247, 241, 227, 0.35);
  font-family: var(--font-display);
  font-size: 25px;
}

.result-message {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 auto;
  color: rgba(247, 241, 227, 0.58);
  font-size: 12px;
  line-height: 1.8;
}

.result-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 11px;
  border: 1px solid rgba(231, 119, 86, 0.22);
  border-radius: 999px;
  background: rgba(231, 119, 86, 0.12);
  color: #f0a086;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.result-badge .icon {
  width: 12px;
  height: 12px;
}

.result-stats {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 38px;
  margin: 27px 0 25px;
}

.result-stat {
  min-width: 62px;
}

.result-stat b {
  display: block;
  color: #f8f2e5;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}

.result-stat span {
  display: block;
  margin-top: 6px;
  color: rgba(247, 241, 227, 0.36);
  font-size: 8.5px;
  letter-spacing: 0.06em;
}

.result-actions {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-review {
  margin-top: 17px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.86);
  box-shadow: var(--shadow-card);
}

.quiz-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.quiz-review__head h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
}

.quiz-review__head span {
  color: var(--muted-light);
  font-size: 9px;
}

.review-row {
  display: grid;
  grid-template-columns: 22px minmax(125px, 0.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px 5px;
  border-bottom: 1px solid rgba(26, 51, 45, 0.07);
}

.review-row:last-child {
  border-bottom: 0;
}

.review-mark {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
}

.review-mark .icon {
  width: 11px;
  height: 11px;
}

.review-mark.is-correct {
  background: var(--green-soft);
  color: var(--green);
}

.review-mark.is-wrong {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.review-word strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.review-word span {
  margin-left: 6px;
  color: var(--muted-light);
  font-family: var(--font-display);
  font-size: 9px;
}

.review-answer {
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.55;
}

.review-answer small {
  display: block;
  margin-top: 2px;
  color: var(--coral-deep);
  font-size: 9px;
}

/* =========================================================
   学习统计
   ========================================================= */

.page-head--stats {
  align-items: center;
}

.paper-tag {
  padding: 8px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.15em;
  white-space: nowrap;
}

.stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}

.kpi-card {
  position: relative;
  padding: 19px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(251, 248, 241, 0.88);
  box-shadow: var(--shadow-card);
}

.kpi-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kpi-card__label {
  color: var(--muted);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

.kpi-card__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(231, 119, 86, 0.1);
  color: var(--coral-deep);
}

.kpi-card:nth-child(2) .kpi-card__icon {
  background: var(--amber-soft);
  color: var(--amber);
}

.kpi-card:nth-child(3) .kpi-card__icon {
  background: #f8e8e1;
  color: var(--coral-deep);
}

.kpi-card:nth-child(4) .kpi-card__icon {
  background: var(--green-soft);
  color: var(--green);
}

.kpi-card__icon .icon {
  width: 14px;
  height: 14px;
}

.kpi-card__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.kpi-card__value small {
  color: var(--muted-light);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 400;
}

.kpi-card__note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 8.5px;
}

.stats-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 17px;
  margin-bottom: 17px;
}

.stats-card {
  padding: 22px 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.88);
  box-shadow: var(--shadow-card);
}

.stats-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.stats-card__head h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.stats-card__head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.chart-tag {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.chart {
  display: flex;
  align-items: stretch;
  gap: clamp(7px, 1.7vw, 18px);
  height: 218px;
  margin-top: 20px;
  padding: 0 4px;
  background-image: repeating-linear-gradient(to top, rgba(26, 51, 45, 0.065) 0, rgba(26, 51, 45, 0.065) 1px, transparent 1px, transparent 25%);
}

.chart-col {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.chart-value {
  height: 13px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 600;
  line-height: 1;
}

.chart-bar-wrap {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
}

.chart-bar {
  width: min(36px, 76%);
  min-height: 3px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, #a8c0b2, #6f8c7b);
  transition: height 0.6s var(--ease);
}

.chart-col.is-today .chart-bar {
  background: linear-gradient(180deg, #f1a186, var(--coral));
  box-shadow: 0 8px 18px -12px rgba(231, 119, 86, 0.8);
}

.chart-col.is-today .chart-value {
  color: var(--coral-deep);
  font-weight: 750;
}

.chart-empty-note {
  margin-top: 12px;
  color: var(--muted-light);
  font-size: 10.5px;
  text-align: center;
}

.chart-day {
  color: var(--ink-soft);
  font-size: 8.5px;
}

.chart-date {
  color: var(--muted-light);
  font-size: 7.5px;
}

.donut-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 13px;
}

.donut {
  position: relative;
  display: grid;
  place-items: center;
  width: 157px;
  height: 157px;
  border-radius: 50%;
  background: conic-gradient(var(--coral) 0 var(--p, 0%), #e9e2d5 var(--p, 0%) 100%);
  box-shadow: inset 0 0 0 1px rgba(26, 51, 45, 0.04);
}

.donut::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--card);
}

.donut__center {
  position: relative;
  z-index: 1;
  text-align: center;
}

.donut__center strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.donut__center span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.donut-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 8.5px;
}

.legend-item i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
}

.legend-item:nth-child(2) i {
  background: var(--amber);
}

.legend-item:nth-child(3) i {
  background: var(--muted-light);
}

.legend-item b {
  color: var(--ink);
  font-weight: 650;
}

.stats-grid--bottom {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  margin-bottom: 0;
}

.category-list {
  margin-top: 18px;
}

.category-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(26, 51, 45, 0.06);
}

.category-row:last-child {
  border-bottom: 0;
}

.category-name {
  color: var(--ink-soft);
  font-size: 9.5px;
}

.category-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--paper-deep);
}

.category-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a8c0b2, var(--green));
  transition: width 0.5s var(--ease);
}

.category-count {
  color: var(--muted);
  font-size: 8.5px;
  text-align: right;
  white-space: nowrap;
}

.category-count b {
  color: var(--ink);
  font-weight: 650;
}

.theme-stats-card {
  margin-bottom: 17px;
}

.theme-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 17px;
}

.theme-stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(26, 51, 45, 0.09);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--theme-tint), rgba(251, 248, 241, 0.9));
  color: var(--ink);
  text-align: left;
  transition: transform 0.22s var(--ease), border-color 0.22s, box-shadow 0.22s;
}

.theme-stat:hover {
  transform: translateY(-2px);
  border-color: var(--theme-accent);
  box-shadow: 0 14px 24px -22px rgba(23, 59, 50, 0.5);
}

.theme-stat__top {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.theme-stat__icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--theme-accent);
}

.theme-stat__icon .icon {
  width: 14px;
  height: 14px;
}

.theme-stat__name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.theme-stat__name strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-stat__name span {
  margin-top: 1px;
  overflow: hidden;
  color: var(--theme-accent);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.72;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.theme-stat__score {
  margin-left: auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1;
}

.theme-stat__score small {
  color: var(--muted-light);
  font-family: var(--font-body);
  font-size: 7.5px;
}

.theme-stat__bar {
  display: block;
  height: 3px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(26, 51, 45, 0.09);
}

.theme-stat__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--theme-accent);
  opacity: 0.62;
}

.theme-stat__meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 6px;
  color: #6f7a72;
  font-size: 7.5px;
  white-space: nowrap;
}

.weak-list {
  margin-top: 12px;
}

.weak-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(26, 51, 45, 0.06);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.weak-item:hover {
  background: rgba(26, 51, 45, 0.035);
}

.weak-item:last-child {
  border-bottom: 0;
}

.weak-word {
  min-width: 0;
}

.weak-word strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
}

.weak-word span {
  display: block;
  margin-top: 1px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weak-count {
  min-width: 36px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--coral-deep);
  font-size: 8px;
  text-align: center;
}

.weak-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 29px 12px 22px;
  text-align: center;
}

.weak-empty__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
}

.weak-empty strong {
  color: var(--ink-soft);
  font-size: 10.5px;
}

.weak-empty p {
  color: var(--muted-light);
  font-size: 8.5px;
  line-height: 1.6;
}

.stats-review-button {
  width: 100%;
  margin-top: 13px;
  min-height: 40px;
  font-size: 10px;
}

.stats-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 17px;
  padding: 0 4px;
  color: var(--muted-light);
  font-size: 9px;
}

.text-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  transition: color 0.2s;
}

.text-btn:hover {
  color: var(--coral-deep);
}

.text-btn .icon {
  width: 12px;
  height: 12px;
}

/* =========================================================
   单词详情弹窗
   ========================================================= */

.word-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100vh - 38px);
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--ink);
}

.word-dialog::backdrop {
  background: rgba(12, 31, 26, 0.62);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.dialog-shell {
  position: relative;
  max-height: calc(100vh - 38px);
  padding: 31px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 26px;
  background:
    radial-gradient(circle at 95% 0%, rgba(231, 119, 86, 0.12), transparent 16rem),
    #fbf8f1;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.55);
  animation: dialogIn 0.3s var(--ease) both;
}

.dialog-close {
  position: absolute;
  top: 17px;
  right: 17px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(251, 248, 241, 0.8);
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--card-soft);
}

.dialog-close .icon {
  width: 15px;
  height: 15px;
}

.dialog-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding-right: 36px;
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 650;
  letter-spacing: 0.1em;
}

.dialog-topline i {
  width: 17px;
  height: 1px;
  background: var(--coral);
}

.dialog-word-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.dialog-word {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(39px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.dialog-phonetic {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12.5px;
}

.dialog-word-row .icon-btn {
  width: 41px;
  height: 41px;
  margin-top: 2px;
  background: var(--card-soft);
}

.dialog-word-row .icon-btn .icon {
  width: 17px;
  height: 17px;
}

.dialog-meaning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.dialog-meaning .pos-chip {
  margin-top: 3px;
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.dialog-meaning p {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.45;
}

.dialog-example {
  margin-top: 19px;
  padding: 15px 17px;
  border-left: 2px solid var(--coral);
  border-radius: 0 11px 11px 0;
  background: var(--card-soft);
}

.dialog-example .en {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.65;
}

.dialog-example .cn {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.6;
}

.dialog-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(231, 119, 86, 0.065);
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.dialog-note .icon {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: var(--coral-deep);
}

.dialog-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.dialog-bottom__status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
}

.dialog-bottom .btn {
  min-height: 41px;
  padding: 0 16px;
  font-size: 10.5px;
}

/* =========================================================
   提示与动效
   ========================================================= */

.toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  z-index: 1200;
  max-width: min(430px, calc(100% - 32px));
  padding: 11px 18px;
  border: 1px solid rgba(247, 241, 227, 0.12);
  border-radius: 999px;
  background: var(--forest);
  color: #f8f2e5;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  box-shadow: 0 18px 40px -20px rgba(14, 42, 36, 0.8);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-warm {
  background: var(--coral);
  color: var(--forest-deep);
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 1300;
  overflow: hidden;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -16px;
  left: var(--x);
  width: 7px;
  height: 11px;
  border-radius: 2px;
  background: var(--c);
  opacity: 0.9;
  animation: confettiFall var(--d) cubic-bezier(0.22, 0.7, 0.3, 1) var(--delay) forwards;
}

.noscript {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1400;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--forest);
  color: #f8f2e5;
  font-size: 12px;
}

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

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

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

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

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

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  55% {
    transform: translateX(3px);
  }
  80% {
    transform: translateX(-2px);
  }
}

@keyframes confettiFall {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  8% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), 105vh, 0) rotate(720deg);
  }
}

/* =========================================================
   响应式
   ========================================================= */

@media (max-width: 1180px) {
  .main__inner {
    width: calc(100% - 64px);
  }

  .topbar {
    padding: 0 32px;
  }

  .study-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .word-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .theme-dock__tools p {
    max-width: 230px;
  }

  .quiz-intro {
    padding: 38px 34px;
  }

  .quiz-mark {
    width: 142px;
    height: 170px;
  }
}

@media (max-width: 1020px) {
  .study-layout {
    grid-template-columns: 1fr;
  }

  .daily-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .study-card {
    min-height: 520px;
  }

  .word-stage {
    margin-top: 44px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid--bottom {
    grid-template-columns: 1fr;
  }

  .donut-area {
    padding: 10px 0 4px;
  }

  .quiz-intro {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quiz-visual {
    display: none;
  }

  .quiz-intro__copy {
    max-width: 620px;
  }
}

@media (max-width: 860px) {
  :root {
    --sidebar-width: 0px;
  }

  .sidebar {
    inset: auto 0 0;
    z-index: 60;
    width: 100%;
    height: 69px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(247, 241, 227, 0.09);
    background: rgba(18, 48, 41, 0.98);
    backdrop-filter: blur(16px);
  }

  .sidebar::before,
  .sidebar::after,
  .brand,
  .nav-label,
  .sidebar__spacer,
  .streak-card,
  .sidebar__foot {
    display: none;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    flex: 1;
    gap: 3px;
    margin: 0;
  }

  .nav-item {
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    height: 54px;
    padding: 4px;
    border-radius: 12px;
    font-size: 9px;
    text-align: center;
  }

  .nav-item .icon {
    width: 18px;
    height: 18px;
  }

  .nav-item__dot {
    display: none;
  }

  .nav-item.is-active {
    background: rgba(247, 241, 227, 0.11);
    color: #f7f1e3;
    box-shadow: none;
  }

  .nav-item.is-active .icon {
    color: var(--coral);
  }

  .main {
    margin-left: 0;
    padding-bottom: 78px;
  }

  .topbar {
    height: 65px;
    padding: 0 20px;
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-brand__mark {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: var(--coral);
    color: var(--forest);
    font-family: var(--font-display);
    font-size: 14px;
  }

  .mobile-brand strong {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .crumb,
  .date-pill {
    display: none;
  }

  .topbar__right {
    gap: 9px;
  }

  .avatar {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .main__inner {
    width: calc(100% - 40px);
    padding-bottom: 34px;
  }

  .today-hero {
    padding: 28px 0 24px;
    gap: 24px;
  }

  .study-card {
    padding: 25px 26px 27px;
  }

  .page-head {
    padding-top: 32px;
  }

  .quiz-intro {
    margin-top: 8px;
    padding: 34px 28px;
  }

  .quiz-notes {
    grid-template-columns: 1fr;
  }

  .stats-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-dock__tools p {
    display: none;
  }

  .word-dialog {
    width: calc(100% - 26px);
  }
}

@media (max-width: 700px) {
  .main__inner {
    width: calc(100% - 30px);
  }

  .topbar {
    padding: 0 15px;
  }

  .theme-dock {
    margin-bottom: 14px;
  }

  .theme-dock__head {
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 10px;
  }

  .theme-dock__intro h2 {
    font-size: 22px;
  }

  .theme-card {
    flex-basis: 232px;
    min-height: 170px;
    padding: 14px;
  }

  .theme-card__title {
    font-size: 20px;
  }

  .theme-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  .theme-stat {
    padding: 10px;
  }

  .theme-stat__score {
    font-size: 15px;
  }

  .theme-stat__meta {
    font-size: 7px;
  }

  .library-pager {
    padding-top: 20px;
  }

  .library-pager .btn {
    width: 100%;
  }

  .collocation-box--light {
    flex-wrap: wrap;
    gap: 7px;
  }

  .today-hero {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .today-hero__copy h1 {
    margin-top: 8px;
    font-size: clamp(33px, 8.7vw, 43px);
  }

  .hero-sub {
    font-size: 12px;
  }

  .goal-disc {
    width: 100%;
    height: 86px;
    align-self: stretch;
    margin-top: 0;
    border-radius: 19px;
  }

  .goal-disc::before {
    display: none;
  }

  .goal-disc::after {
    content: "";
    position: absolute;
    top: 40px;
    left: 43px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--coral);
    opacity: 0.8;
  }

  .goal-disc__ring {
    inset: auto;
    top: 9px;
    left: 12px;
    width: 68px;
    height: 68px;
  }

  .goal-disc__ring circle {
    stroke-width: 6;
  }

  .goal-disc__label {
    position: absolute;
    top: 20px;
    left: 96px;
    font-size: 8.5px;
    letter-spacing: 0.12em;
  }

  .goal-disc__number {
    position: absolute;
    top: 33px;
    left: 94px;
    margin: 0;
  }

  .goal-disc__number strong {
    font-size: 27px;
  }

  .goal-disc__number span {
    font-size: 9.5px;
  }

  .goal-disc__foot {
    position: absolute;
    top: 50%;
    right: 18px;
    max-width: 120px;
    font-size: 9.5px;
    text-align: right;
    transform: translateY(-50%);
  }

  .goal-disc__star {
    top: 15px;
    right: 17px;
  }

  .study-card {
    min-height: 520px;
    padding: 23px 21px 23px;
    border-radius: 25px;
  }

  .word-stage {
    margin-top: 37px;
  }

  .word-stage__word {
    font-size: clamp(40px, 12vw, 68px);
  }

  .word-stage__word.is-long {
    font-size: clamp(38px, 10.5vw, 56px);
  }

  .word-stage__word.is-xlong {
    font-size: clamp(32px, 9vw, 48px);
  }

  .reveal-panel {
    padding-top: 25px;
  }

  .reveal-panel__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    padding-top: 21px;
  }

  .reveal-panel__copy p {
    font-size: 14px;
  }

  .btn-reveal {
    width: 100%;
    min-height: 46px;
  }

  .study-actions {
    grid-template-columns: 1fr;
  }

  .btn-answer {
    height: 48px;
  }

  .btn-answer kbd {
    display: none;
  }

  .answer-meaning p {
    font-size: 20px;
  }

  .example-box .en {
    font-size: 13.5px;
  }

  .finish-actions {
    flex-direction: column;
    width: 100%;
  }

  .finish-actions .btn {
    width: 100%;
  }

  .daily-rail {
    grid-template-columns: 1fr;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 29px 0 22px;
  }

  .page-head h1 {
    font-size: 37px;
  }

  .library-meter {
    width: 100%;
  }

  .library-toolbar {
    align-items: stretch;
  }

  .search-box {
    flex-basis: 100%;
  }

  .filter-tabs {
    flex: 1 1 100%;
  }

  .filter-tab {
    padding: 0 8px;
  }

  .select-wrap,
  .select-wrap--theme {
    flex: 1 1 0;
    margin-left: 0;
  }

  .select-wrap select {
    width: 100%;
  }

  .word-grid {
    grid-template-columns: 1fr;
  }

  .word-card {
    min-height: 206px;
  }

  .quiz-intro {
    padding: 30px 22px;
    border-radius: 25px;
  }

  .quiz-intro h2 {
    font-size: 40px;
  }

  .quiz-intro__stats {
    gap: 24px;
  }

  .quiz-active {
    padding: 21px 18px 22px;
    border-radius: 24px;
  }

  .quiz-active__labels {
    gap: 7px;
    font-size: 8.5px;
  }

  .quiz-question-head {
    margin-top: 27px;
  }

  .quiz-question-head h2 {
    font-size: 45px;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-option {
    min-height: 55px;
  }

  .quiz-feedback {
    align-items: stretch;
    flex-direction: column;
    gap: 11px;
  }

  .quiz-feedback .btn {
    width: 100%;
  }

  .quiz-feedback__text span {
    white-space: normal;
  }

  .quiz-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .review-row {
    grid-template-columns: 21px 1fr;
    gap: 8px 10px;
  }

  .review-answer {
    grid-column: 2;
    margin-top: -3px;
  }

  .quiz-result-hero {
    padding: 35px 20px 31px;
  }

  .result-stats {
    gap: 25px;
  }

  .result-actions {
    flex-direction: column;
  }

  .result-actions .btn {
    width: 100%;
  }

  .quiz-review {
    padding: 19px 16px;
  }

  .paper-tag {
    display: none;
  }

  .stats-kpis {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .kpi-card {
    padding: 15px;
  }

  .kpi-card__value {
    font-size: 30px;
  }

  .stats-card {
    padding: 18px 16px;
  }

  .chart {
    height: 190px;
    gap: 5px;
    padding: 0 1px;
  }

  .chart-date {
    display: none;
  }

  .chart-bar {
    width: min(25px, 78%);
  }

  .category-row {
    grid-template-columns: 64px minmax(0, 1fr) 37px;
    gap: 9px;
  }

  .stats-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .dialog-shell {
    padding: 25px 20px;
  }

  .dialog-word {
    font-size: 38px;
  }

  .dialog-meaning p {
    font-size: 21px;
  }

  .dialog-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-bottom .btn {
    width: 100%;
  }

  .toast {
    bottom: 84px;
  }
}

@media (max-width: 390px) {
  .topbar__right {
    gap: 7px;
  }

  .streak-pill {
    padding: 0 9px;
  }

  .today-hero__copy h1 {
    font-size: 33px;
  }

  .hero-tags {
    gap: 6px;
  }

  .filter-tab {
    font-size: 9.5px;
    padding: 0 6px;
  }

  .filter-tab b {
    display: none;
  }

  .stats-kpis {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* =========================================================
   多页面框架 · 跳转、页脚、学习方法
   ========================================================= */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--forest);
  color: #f7f1e3;
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: #f7f1e3;
}

.main:focus {
  outline: none;
}

.main:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}

.site-footer strong {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.site-footer a:hover {
  color: var(--coral-deep);
  text-decoration-color: currentColor;
}

.site-footer__note {
  color: var(--muted-light);
  font-size: 9.5px;
}

.about-lede {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: end;
  gap: 32px;
  margin-top: 8px;
  padding: clamp(28px, 4.6vw, 54px);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 94% 6%, rgba(231, 119, 86, 0.18), transparent 15rem),
    var(--forest);
  color: #f7f1e3;
  box-shadow: var(--shadow-card);
}

.about-lede h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.7vw, 48px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.about-lede p {
  color: rgba(247, 241, 227, 0.62);
  font-size: 12.5px;
  line-height: 1.95;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.about-card {
  position: relative;
  min-height: 220px;
  padding: 24px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(251, 248, 241, 0.86);
  box-shadow: var(--shadow-card);
}

.about-card::after {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -62px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(26, 51, 45, 0.08);
  border-radius: 50%;
}

.about-card__index {
  display: block;
  color: var(--coral-deep);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.about-card h2 {
  margin: 20px 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.about-card p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
}

.about-section {
  margin-top: 54px;
}

.about-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}

.about-section h2 {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.about-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

.about-steps li {
  padding: 20px 0 22px;
  border-bottom: 1px solid var(--line);
}

.about-steps strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.about-steps span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
}

.about-section--split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: start;
  gap: 38px;
}

.about-section--split h2 {
  margin-bottom: 14px;
}

.about-section--split p {
  max-width: 640px;
  margin-bottom: 11px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.95;
}

.text-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--coral-deep);
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.about-note {
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  background: var(--forest);
  color: #f7f1e3;
}

.about-note h3 {
  color: #f7f1e3;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
}

.about-note ul {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.about-note li {
  position: relative;
  padding-left: 15px;
  color: rgba(247, 241, 227, 0.62);
  font-size: 10.5px;
  line-height: 1.8;
}

.about-note li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.about-note code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(247, 241, 227, 0.1);
  color: #f0c9b8;
  font-size: 9.5px;
}

.about-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 54px;
  padding: 28px 30px;
  border: 1px solid rgba(201, 90, 57, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(231, 119, 86, 0.12), rgba(251, 248, 241, 0.4));
}

.about-cta h2 {
  margin-top: 7px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(23px, 2.7vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em;
}

@media (max-width: 980px) {
  .about-lede {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: 0;
  }

  .about-section--split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .about-steps {
    grid-template-columns: 1fr;
  }

  .about-cta {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 20px;
  }

  .about-cta .btn {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 40px;
  }

  .site-footer nav {
    gap: 16px;
  }

  .site-footer__note {
    display: none;
  }
}

/* =========================================================
   404
   ========================================================= */

.not-found {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: 66vh;
  padding: clamp(42px, 7vw, 92px) 0 36px;
}

.not-found__code {
  margin: 16px 0 0;
  color: rgba(231, 119, 86, 0.24);
  font-family: var(--font-display);
  font-size: clamp(116px, 17vw, 218px);
  font-weight: 500;
  line-height: 0.78;
  letter-spacing: -0.09em;
}

.not-found h1 {
  margin: 16px 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.not-found__text {
  max-width: 480px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.95;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.not-found__note {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 320px;
  padding: 30px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 88% 10%, rgba(231, 119, 86, 0.2), transparent 13rem),
    var(--forest);
  color: #f7f1e3;
  box-shadow: var(--shadow-card);
}

.not-found__mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(247, 241, 227, 0.24);
  border-radius: 16px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 25px;
}

.not-found__note p {
  color: rgba(247, 241, 227, 0.64);
  font-family: var(--font-display);
  font-size: clamp(23px, 2.4vw, 31px);
  line-height: 1.5;
}

@media (max-width: 860px) {
  .not-found {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 34px;
  }

  .not-found__note {
    min-height: 210px;
  }
}

@media (max-width: 480px) {
  .not-found__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .not-found__actions .btn {
    width: 100%;
  }
}

