/* ========== 词树 · 森林绿视觉（按设计稿改版：首页/复习/阅读/我的 + 认证页） ==========
   仅作用于图片中出现的页面，避免影响其他既有页面：
   - 主页面通过 body.mode-rd 隔离
   - 认证页通过 body.rd-auth 隔离
   设计基调：奶油底色 #F7F6F1、森林绿 #1B6A4B、白色圆角卡片、低对比描边。 */

:root {
  /* 颜色 */
  --rd-green: #1b6a4b;
  --rd-green-deep: #14553c;
  --rd-green-soft: #eaf3ed;
  --rd-cream: #f7f6f1;
  --rd-ink: #17251f;
  --rd-muted: #7c8a82;
  --rd-faint: #a4b0a9;
  --rd-line: #e9ebe5;
  --rd-line-soft: #eef0ea;
  --rd-white: #fff;
  --rd-amber: #f0a63c;
  --rd-amber-soft: #fdf4e4;
  /* 间距（4 的倍数为主，10px 是设计稿里的半档） */
  --rd-space-1: 4px;
  --rd-space-2: 8px;
  --rd-space-25: 10px;
  --rd-space-3: 12px;
  --rd-space-4: 16px;
  --rd-space-5: 20px;
  --rd-space-6: 24px;
  /* 圆角 */
  --rd-radius-sm: 12px;
  --rd-radius-md: 14px;
  --rd-radius-lg: 18px;
  --rd-radius-xl: 20px;
  --rd-radius-pill: 999px;
  /* 阴影 */
  --rd-shadow-card: 0 2px 10px rgba(32, 53, 44, .04);
  --rd-shadow-float: 0 10px 30px rgba(23, 37, 31, .16);
}

/* ---------- 隔离：改版主页面隐藏旧顶栏，统一显示底部导航 ---------- */
body.mode-rd .app-header { display: none; }
body.mode-rd {
  background: var(--rd-cream);
}
body.mode-rd .page {
  padding: 10px 18px calc(92px + var(--safe-bottom));
}
body.mode-rd #nav-mobile {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 760px;
  margin: 0 auto;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rd-line-soft);
  border-radius: var(--rd-radius-lg) var(--rd-radius-lg) 0 0;
  padding: 6px 8px calc(6px + var(--safe-bottom));
  z-index: 60;
  justify-content: space-around;
}
body.mode-rd #nav-mobile .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: var(--rd-radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--rd-faint);
  letter-spacing: .02em;
}
body.mode-rd #nav-mobile .nav-item.active { color: var(--rd-green); }
body.mode-rd #nav-mobile .nav-svg { width: 21px; height: 21px; }
/* 词库页/单词本作为二级页面，不展示底部导航 */
body.mode-subpage #nav-mobile { display: none; }
body.mode-subpage .page { padding-bottom: calc(24px + var(--safe-bottom)); }

/* ---------- 通用小部件 ---------- */
.rd-topbar {
  display: flex;
  align-items: center;
  gap: var(--rd-space-25);
  min-height: 46px;
  padding: 4px 0 12px;
}
.rd-top-title { font-size: 26px; line-height: 39px; font-weight: 700; color: var(--rd-ink); }

.rd-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
  margin: 22px 2px 12px;
}
.rd-sec-head h2 { font-size: 15px; font-weight: 800; color: var(--rd-ink); letter-spacing: -.01em; }
.rd-sec-head > span { font-size: 11.5px; color: var(--rd-faint); }

.rd-main-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--rd-space-25);
  width: 100%;
  height: 54px;
  margin-top: 0;
  padding: 0 16px;
  border-radius: 16px;
  background: #348562;
  color: var(--rd-white);
  font-size: 16px;
  font-weight: 700;
  transition: transform .15s;
}
.rd-main-btn:active { transform: scale(.98); }
.rd-main-btn:disabled { background: #cfdcd4; }
.rd-main-btn svg { flex-shrink: 0; }

/* 首页：计划卡与主按钮之间的留白占位；同时吃掉剩余高度，
   把「继续学习 / 累计学习 / 品牌行」整体压到页面底部 */
.rd-home-sep { height: 16px; flex: 0 0 auto; margin-top: auto; }

/* ================= 首页（按 412px 设计稿 1:1 还原） ================= */
body.mode-rd #view-home {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  padding: 0 6px;
  /* 撑满可视区（减去 page 上下内边距与底部安全区），让品牌行始终贴底 */
  min-height: calc(100dvh - 102px - var(--safe-bottom));
}
.rd-home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-3);
  padding: 0;
}
.rd-home-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.rd-home-greet {
  margin: 0;
  font-size: 27px;
  line-height: 41px;
  font-weight: 700;
  letter-spacing: 0;
  color: #20352c;
}
.rd-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f4eddb;
  color: #b8873f;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-search {
  display: flex;
  align-items: center;
  gap: var(--rd-space-25);
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 16px;
  border-radius: 16px;
  background: var(--rd-white);
  border: 1px solid #e5ebe3;
  box-shadow: none;
  color: #829087;
}
.rd-search input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: #20352c;
}
.rd-search input::placeholder { color: #829087; font-size: 14px; }
.rd-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.rd-search-clear {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: #eef4ec;
  color: #627469;
}
.rd-search-clear:active { background: #e2ecdf; }

/* 今日目标 */
.rd-plan {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
  background: #22694b;
  color: var(--rd-white);
  box-shadow: none;
}
.rd-plan-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.rd-plan-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.rd-plan-label {
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
  color: var(--rd-white);
}
.rd-plan-count {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 42px;
  font-weight: 600;
  line-height: 63px;
  color: var(--rd-white);
  font-variant-numeric: tabular-nums;
}
.rd-plan-count small {
  font-size: 14px;
  font-weight: 400;
  line-height: 21px;
  color: #cfdfd2;
  margin: 0;
}
.rd-plan-note {
  font-size: 11px;
  font-weight: 400;
  line-height: 17px;
  color: #cfdfd2;
}
.rd-ring {
  --pct: 0;
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(#d9edb3 calc(var(--pct) * 1%), #487e62 0);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-ring::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #22694b;
}
.rd-ring svg {
  position: relative;
  width: 31px;
  height: 31px;
  color: #d9edb3;
}
.rd-ring-pct { display: none; }
.rd-plan-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
  margin: 0;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 11px;
  font-weight: 400;
  line-height: 17px;
  color: #e1ebdd;
}
.rd-plan-foot button {
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: 0;
  color: #d9edb3;
  font-size: 11px;
  font-weight: 400;
  font-family: inherit;
}

/* 今日任务 */
.rd-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
  margin: 0;
}
.rd-sec-head h2 {
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
  color: #20352c;
  letter-spacing: 0;
}

/* 连续学习 */
.rd-streak-bar {
  display: flex;
  align-items: center;
  gap: var(--rd-space-3);
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4eddb;
  border: 0;
}
.rd-streak-ic {
  display: flex;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: #b8873f;
  font-size: 0;
}
.rd-streak-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
  color: #20352c;
}
.rd-streak-text span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 17px;
  font-weight: 400;
  color: #627469;
}
.rd-streak-text b { font-weight: 700; }
.rd-week-dots {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.rd-week-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e2e2d6;
}
.rd-week-dot.on { background: #b8873f; }

.rd-brand-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding-bottom: 4px;
  font-size: 11px;
  line-height: normal;
  color: #829087;
}
.rd-brand-foot svg { flex-shrink: 0; }

/* ================= 复习绿色概览卡 ================= */
.rd-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(150deg, #1f7251 0%, #14563d 100%);
  color: var(--rd-white);
  box-shadow: 0 14px 30px rgba(20, 85, 61, .22);
  margin-bottom: 4px;
}
.rd-hero::after {
  content: '';
  position: absolute;
  right: -46px; bottom: -70px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 65%);
  pointer-events: none;
}
.rd-hero-label { font-size: 12px; color: rgba(255, 255, 255, .76); }
.rd-hero-num {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.rd-hero-num small {
  margin-left: 3px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .64);
}
.rd-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .74);
}
.rd-hero-meta b { color: var(--rd-white); font-weight: 700; }
.rd-hero-dot { color: rgba(255, 255, 255, .4); }
.rd-hero-ring {
  --pct: 0;
  position: relative;
  width: 72px; height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(rgba(255,255,255,.95) calc(var(--pct) * 1%), rgba(255,255,255,.16) 0);
  display: flex; align-items: center; justify-content: center;
}
.rd-hero-ring::before {
  content: '';
  position: absolute;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #185a41;
}
.rd-hero-ring span {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 复习方式列表 */
.rd-review-list { display: flex; flex-direction: column; gap: var(--rd-space-25); }
.rd-review-item {
  display: flex;
  align-items: center;
  gap: var(--rd-space-3);
  padding: 14px;
  border-radius: 16px;
  background: var(--rd-white);
  border: 1px solid var(--rd-line);
  cursor: pointer;
  transition: transform .15s;
}
.rd-review-item:active { transform: scale(.985); }
.rd-review-ic {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--rd-radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--rd-green-soft);
  color: var(--rd-green);
}
.rd-review-main { flex: 1; min-width: 0; }
.rd-review-title { font-size: 14px; font-weight: 700; color: var(--rd-ink); }
.rd-review-sub {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--rd-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rd-review-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rd-review-stats span {
  padding: 2px 7px;
  border-radius: var(--rd-radius-pill);
  background: #f5f8f5;
  color: var(--rd-muted);
  font-size: 10px;
  font-weight: 600;
}
.rd-review-stats span b { color: var(--rd-green); }
.rd-review-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.rd-review-hist {
  padding: 4px 9px;
  border-radius: var(--rd-radius-pill);
  background: var(--rd-green-soft);
  color: var(--rd-green);
  font-size: 10.5px;
  font-weight: 700;
}
.rd-review-arrow { color: #c5cec8; font-size: 17px; line-height: 1; }

/* ================= 阅读 ================= */
.rd-reading-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-3);
  margin: 6px 2px 6px;
}
.rd-reading-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--rd-ink); }
.rd-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  margin-bottom: 14px;
  scrollbar-width: none;
}
.rd-chips::-webkit-scrollbar { display: none; }
.rd-chip {
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: var(--rd-radius-pill);
  background: var(--rd-white);
  border: 1px solid var(--rd-line);
  color: var(--rd-muted);
  font-size: 12px;
  font-weight: 600;
}
.rd-chip.active {
  background: var(--rd-ink);
  border-color: var(--rd-ink);
  color: var(--rd-white);
}
.rd-reading-list { display: flex; flex-direction: column; gap: var(--rd-space-3); }
.rd-article-card {
  display: block;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--rd-white);
  border: 1px solid var(--rd-line);
  cursor: pointer;
  transition: transform .15s;
}
.rd-article-card:active { transform: scale(.985); }
.rd-article-cover {
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: linear-gradient(145deg, #d9ece1, #b7dcca);
  overflow: hidden;
}
.rd-article-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 32%;
}
.rd-article-cover.c1 { background: linear-gradient(145deg, #e4ecf7, #c3d5ec); }
.rd-article-cover.c2 { background: linear-gradient(145deg, #f3ecdf, #e2d3b6); }
.rd-article-cover.c3 { background: linear-gradient(145deg, #ece4f4, #d5c9e6); }
.rd-article-cover.c4 { background: linear-gradient(145deg, #f6e3dc, #ebc7ba); }
/* 非首篇：小图紧凑模式 */
.rd-article-card.is-compact { display: flex; align-items: stretch; height: 88px; }
.rd-article-card.is-compact .rd-article-cover {
  width: 88px;
  min-width: 88px;
  height: auto;
  aspect-ratio: auto;
  max-height: none;
  align-self: stretch;
}
.rd-article-card.is-compact .rd-article-cover img { object-position: center; }
.rd-article-card.is-compact .rd-article-main {
  flex: 1;
  min-width: 0;
  padding: 7px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.rd-article-card.is-compact .rd-article-kicker { display: none; }
.rd-article-card.is-compact .rd-article-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rd-article-card.is-compact .rd-article-sub { display: none; }
.rd-article-card.is-compact .rd-article-meta { margin-top: 0; font-size: 11px; }
.rd-article-card.is-compact .rd-article-compact-status {
  flex-shrink: 0;
  font-size: 10px;
  color: var(--rd-green);
}
.rd-article-card.is-compact .rd-article-words { display: none; }
.rd-article-main { padding: 10px 12px 12px; }
.rd-article-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}
.rd-article-flags { display: flex; gap: 6px; }
.rd-article-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--rd-ink);
}
.rd-article-sub {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--rd-muted);
}
.rd-article-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--rd-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rd-article-source {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-article-words {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.rd-article-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  background: none;
  color: var(--rd-green);
  font-size: 11px;
  font-weight: 600;
}
.rd-article-done,
.rd-article-fav {
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
}
.rd-article-done { background: #e8f2e8; color: #22694b; }
.rd-article-fav { background: #faf7ef; color: #8a6d3b; }

/* ================= 我的 ================= */
.rd-me-head {
  display: flex;
  align-items: center;
  gap: var(--rd-space-3);
  padding: 12px 2px 18px;
}
.rd-me-avatar {
  width: 54px; height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #e6f2ea, #cfe6da);
  color: var(--rd-green-deep);
  font-size: 19px;
  font-weight: 800;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(24, 60, 44, .10);
  user-select: none;
}
.rd-me-id { flex: 1; min-width: 0; }
.rd-me-name { display: block; font-size: 18px; font-weight: 800; color: var(--rd-ink); }
.rd-me-sub { display: block; margin-top: 2px; font-size: 11.5px; color: var(--rd-muted); }
.rd-me-edit {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: var(--rd-radius-pill);
  background: var(--rd-white);
  border: 1px solid var(--rd-line);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--rd-green);
}
.rd-role-chip {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--rd-green-soft);
  color: var(--rd-green);
  font-size: 10px;
  font-weight: 700;
  vertical-align: 2px;
}

.rd-card {
  padding: 16px 16px 6px;
  margin-bottom: 12px;
  border-radius: var(--rd-radius-lg);
  background: var(--rd-white);
  border: 1px solid var(--rd-line);
  box-shadow: 0 6px 18px rgba(24, 60, 44, .04);
}
.rd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
  margin-bottom: 6px;
}
.rd-card-head h2 { font-size: 14.5px; font-weight: 800; color: var(--rd-ink); }
.rd-card-head > span { font-size: 11px; color: var(--rd-faint); }

.rd-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px 0 16px;
  margin-top: 4px;
}
.rd-ov { text-align: center; }
.rd-ov b {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--rd-ink);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.rd-ov span { display: block; margin-top: 2px; font-size: 10.5px; color: var(--rd-faint); }

.rd-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 0;
  border-top: 1px solid #f1f3ee;
  background: none;
  font-family: inherit;
  text-align: left;
  color: var(--rd-ink);
}
.rd-row:first-of-type { border-top: none; }
.rd-row:active .rd-row-title { color: var(--rd-green); }
.rd-row-ic {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--rd-green-soft);
  color: var(--rd-green);
}
.rd-row-main { flex: 1; min-width: 0; }
.rd-row-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--rd-ink); }
.rd-row-desc { display: block; margin-top: 1px; font-size: 10.5px; color: var(--rd-faint); }
.rd-row-val {
  font-size: 12px;
  font-weight: 600;
  color: var(--rd-muted);
  max-width: 46%;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-row-arrow { color: #c5cec8; font-size: 17px; line-height: 1; }

.rd-toggle {
  position: relative;
  display: inline-block;
  width: 42px; height: 24px;
  flex-shrink: 0;
}
.rd-toggle input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.rd-toggle i {
  position: absolute; inset: 0;
  border-radius: var(--rd-radius-pill);
  background: #e2e8e2;
  transition: background .2s;
}
.rd-toggle i::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--rd-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
  transition: transform .2s;
}
.rd-toggle input:checked + i { background: var(--rd-green); }
.rd-toggle input:checked + i::after { transform: translateX(18px); }

.rd-me-foot {
  margin: 18px 0 6px;
  text-align: center;
  font-size: 11px;
  color: var(--rd-faint);
}

/* ================= 认证页（登录 / 注册 / 找回密码） ================= */
body.auth-body.rd-auth {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--rd-cream);
  padding: 0;
  min-height: 100vh;
}
body.auth-body.rd-auth .auth-card {
  width: 100%;
  max-width: 390px;
  flex: 1;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 38px 26px 20px;
}

.auth-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 26px;
}
.auth-brand-mark {
  width: 56px; height: 56px;
  border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  background: #eef4ee;
  border: 1px solid #e2ebe3;
  color: var(--rd-green);
  box-shadow: 0 6px 16px rgba(24, 60, 44, .06);
}
.auth-brand-name {
  margin-top: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--rd-ink);
}
.auth-brand-sub {
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--rd-faint);
}

body.rd-auth .auth-title {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--rd-ink);
  text-align: center;
}
body.rd-auth .auth-sub {
  margin: 8px 0 22px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--rd-muted);
  text-align: center;
}
body.rd-auth .auth-label {
  display: block;
  margin: 14px 0 7px;
  font-size: 12px;
  font-weight: 600;
  color: #44544c;
}
.auth-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 48px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--rd-white);
  border: 1px solid var(--rd-line);
  transition: border-color .15s, box-shadow .15s;
}
.auth-field:focus-within {
  border-color: var(--rd-green);
  box-shadow: 0 0 0 3px rgba(27, 106, 75, .10);
}
.auth-field-ic { color: #9aa7a0; flex-shrink: 0; display: flex; }
body.rd-auth .auth-field .auth-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 13.5px;
  color: var(--rd-ink);
  box-shadow: none;
}
body.rd-auth .auth-field .auth-input:focus { border: none; box-shadow: none; background: transparent; }
body.rd-auth .auth-field .auth-input::placeholder { color: #b3beb7; font-size: 12.5px; }
.auth-eye {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: #9aa7a0;
  flex-shrink: 0;
}
.auth-eye:active { color: var(--rd-green); }
.auth-eye .eye-open { display: none; }
.auth-eye.showing .eye-open { display: block; }
.auth-eye.showing .eye-off { display: none; }

body.rd-auth .auth-forgot {
  margin: 10px 2px 0;
  text-align: right;
  font-size: 11.5px;
}
body.rd-auth .auth-forgot a { color: var(--rd-green); font-weight: 600; text-decoration: none; }

body.rd-auth .auth-submit {
  height: 50px;
  margin-top: 22px;
  border-radius: var(--rd-radius-md);
  background: linear-gradient(135deg, #217a56, #17603f);
  box-shadow: 0 10px 24px rgba(27, 106, 75, .22);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
}
body.rd-auth .auth-submit:active { transform: scale(.985); }
body.rd-auth .auth-submit:disabled { opacity: .55; }

body.rd-auth .auth-switch {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--rd-muted);
}
body.rd-auth .auth-switch a { color: var(--rd-green); font-weight: 600; text-decoration: none; }

body.rd-auth .auth-error {
  margin: 12px 2px 0;
  font-size: 12px;
  color: #d4553f;
}

body.rd-auth .auth-hint {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--rd-muted);
}
body.rd-auth .auth-success { text-align: center; }
body.rd-auth .auth-success .emoji { font-size: 32px; }

.auth-consent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin: 16px 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--rd-muted);
}
.auth-check {
  width: 15px; height: 15px;
  margin: 0 2px 0 0;
  accent-color: var(--rd-green);
  cursor: pointer;
}
.auth-consent a { color: var(--rd-green); text-decoration: none; font-weight: 600; }

.auth-foot {
  width: 100%;
  max-width: 390px;
  margin: 0 auto;
  padding: 10px 26px calc(20px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.auth-foot p {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--rd-faint);
}
.auth-foot a { color: #6c8276; text-decoration: none; }
.auth-foot-brand {
  margin-top: 8px !important;
  letter-spacing: .02em;
}

/* 注册/找回页的验证码行沿用字段外观 */
body.rd-auth .auth-code-row { display: flex; gap: 8px; align-items: stretch; }
body.rd-auth .auth-code-row .auth-field { flex: 1; min-width: 0; }
body.rd-auth .auth-code-row .btn {
  flex-shrink: 0;
  height: 48px;
  padding: 0 14px;
  border-radius: 13px;
  background: var(--rd-white);
  border: 1px solid var(--rd-line);
  color: var(--rd-green);
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}
body.rd-auth .auth-code-row .btn:disabled { opacity: .5; }

/* ================= 修改密码 / 注销账号 弹层 ================= */
.rd-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(24, 44, 34, .38);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 110;
  padding: var(--rd-space-4);
}
@media (min-width: 640px) {
  .rd-modal-mask { align-items: center; }
}
.rd-modal {
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--rd-cream);
  border-radius: 22px;
  padding: 22px 20px 20px;
  box-shadow: 0 24px 60px rgba(15, 40, 28, .28);
  animation: rd-pop .22s ease;
}
@keyframes rd-pop {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.rd-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--rd-space-3);
}
.rd-modal h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--rd-ink);
}
.rd-modal-sub {
  margin: 8px 0 4px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--rd-muted);
}
.rd-modal-close {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #93a29a;
  font-size: 18px;
  background: var(--rd-white);
}
.rd-modal label {
  display: block;
  margin: 14px 0 7px;
  font-size: 12px;
  font-weight: 600;
  color: #44544c;
}
.rd-modal .rd-field {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 47px;
  padding: 0 13px;
  border-radius: 13px;
  background: var(--rd-white);
  border: 1px solid var(--rd-line);
}
.rd-modal .rd-field:focus-within { border-color: var(--rd-green); box-shadow: 0 0 0 3px rgba(27, 106, 75, .10); }
.rd-modal .rd-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--rd-ink);
}
.rd-modal .rd-field input::placeholder { color: #b3beb7; font-size: 12.5px; }
.rd-modal .modal-err { margin: 10px 2px 0; font-size: 12px; color: #d4553f; }
.rd-modal .rd-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 49px;
  margin-top: 18px;
  border-radius: var(--rd-radius-md);
  background: linear-gradient(135deg, #217a56, #17603f);
  color: var(--rd-white);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(27, 106, 75, .22);
}
.rd-modal .rd-btn-primary:disabled { opacity: .6; }
.rd-modal-actions { display: flex; gap: var(--rd-space-25); margin-top: 18px; }
.rd-modal-actions > button {
  flex: 1;
  height: 47px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
}
.rd-btn-cancel { background: var(--rd-white); border: 1px solid var(--rd-line); color: var(--rd-muted); }
.rd-btn-danger { background: #1b6a4b; color: var(--rd-white); }

/* 注销确认 */
.rd-warn-icon {
  width: 44px; height: 44px;
  margin: 4px auto 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #eef4ee;
  color: var(--rd-green);
  font-size: 20px;
  font-weight: 800;
}
.rd-modal-danger h3 { text-align: center; }
.rd-modal-danger .rd-modal-sub { text-align: center; }
.rd-warn-list {
  margin: 12px 0 4px;
  padding: 12px 14px 12px 30px;
  border-radius: 13px;
  background: var(--rd-white);
  border: 1px solid var(--rd-line);
  list-style: disc;
  font-size: 12px;
  line-height: 1.9;
  color: #44544c;
}
.rd-warn-list li::marker { color: var(--rd-green); }

/* 小屏时认证页布局更紧凑 */
@media (max-width: 380px) {
  body.auth-body.rd-auth .auth-card { padding: 26px 18px 16px; }
  .auth-foot { padding: 8px 18px 18px; }
}

/* ================= 我的（按 412px 设计稿 1:1 还原） ================= */
body.mode-rd #view-me {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 6px 22px;
}
.rd-me-title {
  margin: 0;
  font-size: 26px;
  line-height: 39px;
  font-weight: 700;
  color: #20352c;
}
.rd-me-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rd-me-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 100px;
  background: #f4eddb;
  color: #b8873f;
  font-size: 26px;
  font-weight: 700;
  line-height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-touch-callout: none;
}
/* 上传头像后：圆形裁切、去掉首字内边距 */
.rd-me-avatar.has-img,
.rd-avatar.has-img {
  padding: 0;
  overflow: hidden;
  background: transparent;
  font-size: 0;
}
.rd-me-avatar img,
.rd-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 长按头像菜单 / 查看头像 */
.avatar-actions {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
}
.avatar-action {
  padding: 14px 16px;
  border: 0;
  border-radius: var(--rd-radius-sm);
  background: #f6f8f4;
  color: #20352c;
  font-family: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
}
.avatar-action:active { background: #e8f2e8; }
.avatar-preview {
  display: flex;
  justify-content: center;
  padding: 6px 0 18px;
}
.avatar-img-lg {
  display: block;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-initial-lg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #f4eddb;
  color: #b8873f;
  font-size: 64px;
  font-weight: 700;
}

/* 更换头像 · 裁剪取景（拖动 / 缩放后确定） */
.crop-overlay {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--rd-space-5);
  background: rgba(16, 34, 26, 0.55);
  animation: cropFade 0.16s ease-out;
}
@keyframes cropFade { from { opacity: 0; } to { opacity: 1; } }
.crop-dialog {
  width: 100%;
  max-width: 360px;
  padding: var(--rd-space-4);
  border-radius: var(--rd-radius-xl);
  background: var(--rd-white);
  box-shadow: 0 18px 48px rgba(16, 40, 30, 0.28);
  animation: cropPop 0.18s ease-out;
}
@keyframes cropPop {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.crop-head {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 22px;
  font-weight: 700;
  color: #20352c;
}
.crop-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  /* 取景区域与头像展示一致：圆形（内切于方形，裁剪换算仍按方形边界） */
  border-radius: 50%;
  background: #eef2ee;
  box-shadow: inset 0 0 0 1px rgba(32, 53, 44, 0.08);
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.crop-stage:active { cursor: grabbing; }
.crop-img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}
.crop-tip {
  margin: 8px 2px 0;
  font-size: 12px;
  line-height: 18px;
  color: #829087;
}
.crop-zoom-row {
  display: flex;
  align-items: center;
  gap: var(--rd-space-25);
  margin: 10px 2px 14px;
  color: #627469;
}
.crop-zoom {
  flex: 1;
  min-width: 0;
  accent-color: #348562;
}
.crop-actions {
  display: flex;
  gap: var(--rd-space-25);
}
.crop-btn {
  flex: 1;
  height: 44px;
  border: 0;
  border-radius: var(--rd-radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
}
.crop-btn-cancel { background: #eef2ee; color: #627469; }
.crop-btn-cancel:active { background: #e2e8e2; }
.crop-btn-ok { background: #348562; color: var(--rd-white); }
.crop-btn-ok:active { background: #22694b; }
.rd-me-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rd-me-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  line-height: 33px;
  font-weight: 700;
  color: #20352c;
}
.rd-me-name #me-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-me-sub {
  font-size: 11px;
  line-height: 17px;
  font-weight: 400;
  color: #627469;
}

/* ========== 学习页 · 复习测验（按设计稿） ========== */
.st-page {
  width: 100%;
  max-width: 760px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 6px 8px calc(12px + var(--safe-bottom));
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}
.st-nav {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  height: 40px;
}
.st-nav-btn {
  width: 36px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #20352c;
}
.st-nav-btn:active { opacity: 0.6; }
.st-nav-more { justify-self: end; }
.st-title {
  text-align: center;
  font-size: 17px;
  line-height: 26px;
  font-weight: 700;
  color: #20352c;
}
.st-progress {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.st-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
}
.st-hint {
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}
.st-side {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  line-height: 17px;
  font-weight: 600;
  color: #348562;
  white-space: nowrap;
}
.st-side em { font-style: normal; }
.is-quiz .st-hint { font-size: 12px; line-height: 18px; }
/* 详解页：只留单词释义内容，不显示学习页顶栏与进度 */
.st-page.is-detail .st-nav,
.st-page.is-detail .st-progress { display: none; }
.st-page.is-detail .st-body { padding-top: 6px; overflow: hidden; }
/* 详解页与查词详情页同宽：抵消 .st-page 的左右内边距，只保留 .page 的 16px */
.st-page.is-detail { padding-left: 0; padding-right: 0; }
/* 详解/反馈页与查词详情页同构：内容区滚动，操作区固定在底部 */
.st-detail-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding-top: 44px;   /* 给左上角返回按钮留出占位，避免压住词头 */
}
.st-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
/* 详解页左上角返回按钮：固定在内容区左上角，直接回首页 */
.st-detail-back {
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  color: #20352c;
  background: #f6f8f4;
}
.st-detail-back:active { opacity: 0.6; }
/* 详解页右上角显示设置：与返回按钮同尺寸，固定在内容区右上角 */
.st-detail-settings {
  position: absolute;
  top: 2px;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  color: #20352c;
  background: #f6f8f4;
}
.st-detail-settings:active { opacity: 0.6; }
/* 详解页右上角收藏：紧邻显示设置左侧，点击加入生词本 */
.st-detail-save {
  position: absolute;
  top: 2px;
  right: 44px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  color: #20352c;
  background: #f6f8f4;
  touch-action: manipulation;
}
.st-detail-save:active { opacity: 0.6; }
.st-detail-save.is-saved { color: var(--rd-green); }
.st-detail-save.is-saved svg { fill: currentColor; }
/* 查词详情页右上角收藏：与显示设置同尺寸，点击加入生词本 */
.word-topbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
:is(#view-word, .word-scope) .word-topbar .word-save-btn {
  width: 32px;
  height: 32px;
  touch-action: manipulation;
}
:is(#view-word, .word-scope) .word-topbar .word-save-btn svg {
  width: 17px;
  height: 17px;
}
.word-save-btn.is-saved { color: var(--rd-green); }
.word-save-btn.is-saved svg { fill: currentColor; }
/* 「下一个」下方的弱操作：居中的下划线文字链接 */
.st-detail-top {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}
.st-detail-top .btn-ghost {
  background: none;
  padding: 2px 18px 4px;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 500;
  color: #348562;
  text-decoration: none;
}
.st-detail-top .btn-fuzzy,
.st-detail-top .btn-easy { color: #348562; }
.st-detail-top .fuzzy-note,
.st-detail-top .easy-note {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #348562;
}
.st-detail-foot {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0 4px;
}
.st-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.st-detail-foot .st-btn-main { width: 100%; }
.st-track {
  height: 6px;
  border-radius: 100px;
  background: #e5ebe3;
  overflow: hidden;
}
.st-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 100px;
  background: #348562;
  transition: width 0.35s ease;
}
.st-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* 单词学习卡 */
.st-learn {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 35px;
}
.st-card {
  width: 100%;
  max-width: 355px;
  min-height: 201px;
  margin: 0 auto;
  padding: var(--rd-space-5);
  border-radius: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.st-word {
  font-size: clamp(30px, 11vw, 44px);
  line-height: 1.28;
  font-weight: 400;
  color: #20352c;
  text-align: center;
  word-break: break-word;
}
.st-phon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--rd-space-3);
}
.st-phonetic {
  font-size: 14px;
  line-height: 21px;
  color: #627469;
}
.st-speak {
  width: 30px;
  height: 30px;
  border-radius: 100px;
  background: #e8f2e8;
  color: #348562;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.st-speak:active { background: #d8e8d8; }
.st-accent {
  font-size: 11px;
  line-height: 17px;
  color: #829087;
}
.st-actions {
  margin-top: auto;
  padding: 20px 0 12px;
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
}
.st-btn-again {
  height: 50px;
  border-radius: 16px;
  border: 1px solid #e5ebe3;
  background: var(--rd-white);
  color: #22694b;
  font-size: 14px;
  line-height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.st-btn-again:active { background: #f2f6f1; }
.st-btn-main {
  width: 100%;
  height: 53px;
  border-radius: 16px;
  background: #348562;
  color: var(--rd-white);
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--rd-space-25);
}
.st-btn-main:active { background: #22694b; }
.st-btn-main:disabled { opacity: 0.55; }

/* 场景载体开场卡 */
.st-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 0 12px;
}
.st-intro-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf4ed;
  color: #22694b;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}
.st-intro-title {
  margin: 14px 0 6px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 800;
  color: #16241c;
}
.st-intro-desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #627469;
}
.st-intro-map {
  flex: 1;
  box-sizing: border-box;
  border: 1px solid #e5ebe3;
  border-radius: 16px;
  padding: 16px;
  background: var(--rd-white);
  overflow-y: auto;
  margin-bottom: 18px;
}
.st-intro-map.is-flow { display: flex; flex-direction: column; }
.st-intro-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
}
.st-intro-step + .st-intro-step::before {
  content: '';
  position: absolute;
  left: 13px;
  top: -2px;
  width: 1px;
  height: 9px;
  background: #d7e2d8;
}
.st-intro-num {
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  background: #eaf4ed;
  color: #22694b;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-intro-word {
  font-size: 15.5px;
  font-weight: 600;
  color: #16241c;
  word-break: break-word;
}
.st-intro-step-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.st-intro-step-label { font-size: 12px; line-height: 18px; color: #22694b; font-weight: 600; }
.st-intro-step-words {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: #16241c;
  word-break: break-word;
}
.st-intro-group { border-bottom: 1px solid #eef2ea; padding: 10px 0; }
.st-intro-group:first-child { padding-top: 0; }
.st-intro-group:last-child { border-bottom: none; padding-bottom: 0; }
.st-intro-group-label { font-size: 12px; font-weight: 600; color: #22694b; margin-bottom: 8px; }
.st-intro-group-words { display: flex; flex-wrap: wrap; gap: 6px; }
.st-intro-map.is-visual .st-intro-chip { background: #fff; }
.st-intro-relations {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e3eadf;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.st-intro-rel {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: #34483e;
}
.st-intro-rel i { font-style: normal; font-size: 11.5px; color: #7a8a82; }
.st-intro-map.is-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}
.st-intro-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border: 1px solid #dbe4dc;
  border-radius: 999px;
  background: #fafbf6;
  font-size: 13.5px;
  font-weight: 600;
  color: #34483e;
}
.st-intro-chip.is-missing {
  border-style: dashed;
  background: transparent;
  color: #a4b0a9;
  font-weight: 500;
}
.st-intro-chip.is-missing i { background: #eef0ea; color: #a4b0a9; }
.st-intro-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: #a4b0a9;
}
.st-intro-chip i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: #22694b;
  background: #eaf4ed;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.st-intro-actions {
  margin-top: auto;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 场景插画开场卡 */
.st-illu {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 0 12px;
}
.st-illu-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf4ed;
  color: #22694b;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}
.st-illu-title {
  margin: 12px 0 5px;
  font-size: 23px;
  line-height: 31px;
  font-weight: 800;
  color: #16241c;
}
.st-illu-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
  color: #627469;
}
.st-illu-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1px 2px 2px;
  margin-bottom: 12px;
}
.st-illu-frame {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  aspect-ratio: var(--illu-ratio, 650 / 500);
  border: 1px solid #dfe9e1;
  border-radius: 16px;
  overflow: hidden;
  background: #eaf4ef;
}
.st-illu-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.st-illu-spot {
  position: absolute;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.st-illu-spot span {
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #fff;
  border-radius: 50%;
  background: #348562;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  box-shadow: 0 2px 7px rgba(31, 45, 39, 0.3);
  transition: transform 0.15s ease, background 0.15s ease;
}
.st-illu-spot.is-selected span {
  background: #246b4e;
  transform: scale(1.14);
}
.st-illu-spot:focus-visible { outline: none; }
.st-illu-spot:focus-visible span {
  box-shadow: 0 0 0 3px rgba(52, 133, 98, 0.3), 0 2px 7px rgba(31, 45, 39, 0.3);
}
.st-illu-legend {
  margin: 11px auto 0;
  max-width: 560px;
  padding: 6px 8px;
  border: 1px solid #e2ebe4;
  border-radius: 14px;
  background: #fff;
}
.st-illu-section {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 7px 5px;
  font-size: 11.5px;
  line-height: 17px;
  color: #77887f;
}
.st-illu-pill {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: #eaf4ed;
  color: #22694b;
  font-size: 11px;
  font-weight: 700;
}
.st-illu-row {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 7px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.st-illu-row.is-selected { background: #eef7f1; }
.st-illu-num {
  flex: none;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eaf4ed;
  color: #22694b;
  font-size: 10.5px;
  font-weight: 700;
}
.st-illu-row.is-selected .st-illu-num { background: #348562; color: #fff; }
.st-illu-word {
  min-width: 0;
  font-size: 13.5px;
  line-height: 19px;
  font-weight: 700;
  color: #16241c;
  overflow-wrap: anywhere;
}
.st-illu-role {
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f0f6f2;
  color: #348562;
  font-size: 10.5px;
  line-height: 16px;
  white-space: nowrap;
}
.st-illu-meaning {
  margin-left: auto;
  flex: none;
  font-size: 12px;
  line-height: 18px;
  color: #627469;
}
.st-illu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 6px;
}
@media (max-width: 420px) {
  .st-illu-row { flex-wrap: wrap; }
  .st-illu-meaning {
    width: 100%;
    margin-left: 0;
    padding-left: 30px;
  }
}

/* 复习测验 */
.st-quiz {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 22px;
}
.st-quiz-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--rd-space-3);
}
.st-quiz-badge {
  padding: 4px 10px;
  border-radius: 100px;
  background: #e8f2e8;
  color: #348562;
  font-size: 11px;
  line-height: 17px;
  font-weight: 500;
  white-space: nowrap;
}
.st-quiz-word {
  font-size: 38px;
  line-height: 57px;
  color: #20352c;
  text-align: center;
  word-break: break-word;
}
.st-quiz-phon {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #627469;
  font-size: 14px;
  line-height: 21px;
}
.st-quiz-speak {
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #348562;
}
.st-quiz-prompt {
  font-size: 13px;
  line-height: 20px;
  color: #627469;
  text-align: center;
}
/* 听音辨词：题面是一个可重复点击的大喇叭按钮 */
.st-quiz-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-top: 4px;
  border: none;
  border-radius: 50%;
  background: #348562;
  color: #fff;
  box-shadow: 0 12px 26px rgba(52, 133, 98, .26);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.st-quiz-play:active {
  transform: scale(.94);
  box-shadow: 0 6px 16px rgba(52, 133, 98, .22);
}
.st-quiz-play svg {
  width: 36px;
  height: 36px;
}
.st-listen-answer {
  margin-top: 20px;
  text-align: center;
}
.st-listen-word {
  font-size: 22px;
  line-height: 32px;
  font-weight: 700;
  color: #20352c;
  word-break: break-word;
}
.st-listen-word span {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #627469;
}
.st-listen-meaning {
  margin-top: 2px;
  font-size: 13.5px;
  line-height: 21px;
  color: #627469;
}
.st-options {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
}
.st-option {
  width: 100%;
  height: 58px;
  padding: 0 15px;
  border-radius: 16px;
  border: 1px solid #e5ebe3;
  background: var(--rd-white);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.st-option:active { background: #f7faf5; }
.st-opt-num {
  width: 27px;
  height: 27px;
  border-radius: 100px;
  background: #f0f4ee;
  color: #627469;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.st-opt-text {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  line-height: 23px;
  color: #20352c;
}
.st-opt-check {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  color: #348562;
  display: flex;
  align-items: center;
  justify-content: center;
}
.st-option.is-correct {
  background: #e8f2e8;
  border: 1.5px solid #348562;
}
.st-option.is-correct .st-opt-num { background: #348562; color: var(--rd-white); }
.st-option.is-correct .st-opt-text { color: #22694b; font-weight: 700; }
.st-option.is-wrong {
  background: #fdf2f1;
  border: 1.5px solid #e2b4b1;
}
.st-option.is-wrong .st-opt-num { background: #c9605a; color: var(--rd-white); }
.st-option.is-wrong .st-opt-text { color: #9c3c37; font-weight: 700; }
.st-options.is-answered .st-option:not(.is-correct):not(.is-wrong) { opacity: 0.7; }
/* 场景题作答后：场景义 / 词书释义 / 语境提示 */
.st-scene-reveal {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f5f9f2;
  border: 1px solid #e3ece0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.st-scene-reveal span {
  display: inline-block;
  margin-right: 8px;
  font-size: 11px;
  line-height: 17px;
  color: #7b8d80;
}
.st-scene-meaning {
  font-size: 15px;
  line-height: 23px;
  font-weight: 700;
  color: #22694b;
}
.st-scene-primary {
  font-size: 13px;
  line-height: 21px;
  color: #59695f;
}
.st-scene-hint {
  font-size: 12.5px;
  line-height: 20px;
  color: #7b8d80;
}
/* 场景学习轮：自评揭晓页顶部的场景义提示 */
.st-scene-reveal.st-scene-learn {
  margin: 0 0 16px;
}
.st-quiz-foot {
  margin-top: auto;
  padding: 20px 0 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* 作答后的次级操作：查看详解（主按钮仍为继续下一题） */
.st-quiz-detail {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  border: 1px solid #d7e2d8;
  background: var(--rd-white);
  color: #22694b;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.st-quiz-detail:active { background: #f2f7f1; }
.rd-me-edit {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin-left: auto;
  padding: 0;
  background: none;
  border: 0;
  color: #348562;
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
}
.rd-me-card {
  background: var(--rd-white);
  border-radius: 16px;
  padding: 0 16px;
}
.rd-me-overview {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
}
/* 邀请新用户：浅绿提示卡 + 右侧主按钮 */
.rd-me-invite {
  display: flex;
  align-items: center;
  gap: var(--rd-space-3);
  padding: 14px 16px;
  border-radius: var(--rd-radius-xl);
  background: #e8f2e8;
}
.rd-me-invite-ic {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--rd-radius-sm);
  background: var(--rd-white);
  color: #348562;
}
.rd-me-invite-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rd-me-invite-title {
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  color: #20352c;
}
.rd-me-invite-desc {
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}
.rd-me-invite-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: var(--rd-radius-sm);
  background: #348562;
  color: var(--rd-white);
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}
.rd-me-invite-btn:active { background: #22694b; }

/* 邀请弹层：邀请码、链接与邀请记录 */
.inv-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-3);
  padding: 14px 16px;
  border-radius: var(--rd-radius-md);
  background: #e8f2e8;
}
.inv-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #22694b;
}
.inv-copy {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: #348562;
  color: var(--rd-white);
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
}
.inv-copy:active { background: #22694b; }
.inv-link {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--rd-radius-sm);
  background: #f6f8f4;
  color: #627469;
  font-size: 11px;
  line-height: 18px;
  word-break: break-all;
}
.inv-actions {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
  margin-top: 14px;
}
/* 按钮统一到森林绿主色：实心绿 + 白底绿字，替换全局亮薄荷渐变胶囊 */
.inv-actions .btn {
  width: 100%;
  height: 48px;
  padding: 0;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: 0.2px;
  transition: background .18s, box-shadow .18s;
}
.inv-actions .btn-primary {
  background: #348562;
  color: var(--rd-white);
  box-shadow: 0 6px 16px rgba(52, 133, 98, 0.22);
}
.inv-actions .btn-primary:active {
  background: #22694b;
  box-shadow: none;
  transform: none;
}
.inv-actions .btn-ghost {
  background: var(--rd-white);
  color: #348562;
  border: 1px solid #d7e4db;
  box-shadow: none;
}
.inv-actions .btn-ghost:active { background: #f2f7f3; }
.inv-records {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
}
.inv-record {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  line-height: 18px;
  color: #627469;
}
.rd-me-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
}
.rd-me-card-head h2 {
  margin: 0;
  font-size: 15px;
  line-height: 23px;
  font-weight: 700;
  color: #20352c;
}
.rd-me-link {
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: 0;
  color: #348562;
  font-family: inherit;
  font-size: 11px;
  line-height: 17px;
}
.rd-me-stats {
  display: flex;
  align-items: center;
}
.rd-me-stat {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.rd-me-stat-val {
  display: flex;
  align-items: flex-end;
  gap: 3px;
}
.rd-me-stat-val b {
  font-size: 25px;
  line-height: 38px;
  font-weight: 400;
  color: #20352c;
  font-variant-numeric: tabular-nums;
}
.rd-me-stat-val i {
  padding-bottom: 3px;
  font-style: normal;
  font-size: 10px;
  line-height: 15px;
  color: #627469;
}
.rd-me-stat > span {
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}
.rd-me-div {
  width: 1px;
  height: 44px;
  flex-shrink: 0;
  background: #e5ebe3;
}
.rd-week-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
  padding: 9px 12px;
  border-radius: var(--rd-radius-sm);
  background: #e8f2e8;
  font-size: 11px;
  line-height: 17px;
}
.rd-week-strip span:first-child { color: #22694b; }
.rd-week-strip span:last-child { color: #627469; }
.rd-me-group {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
}
.rd-me-group-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #20352c;
}
.rd-me-list {
  display: flex;
  flex-direction: column;
}
.rd-me-list > * + * { border-top: 1px solid #f0f3ee; }
.rd-me-row {
  display: flex;
  align-items: center;
  gap: var(--rd-space-3);
  width: 100%;
  padding: 11px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
}
.rd-me-row-ic {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #e8f2e8;
  color: #348562;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-me-row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rd-me-row-name {
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  color: #20352c;
}
.rd-me-row-desc {
  font-size: 10px;
  line-height: 15px;
  color: #627469;
}
.rd-me-row-val {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}
.rd-me-row-arrow {
  flex-shrink: 0;
  display: flex;
  color: #829087;
}
.rd-me-list .rd-toggle {
  width: 38px;
  height: 23px;
}
.rd-me-list .rd-toggle i { border-radius: 100px; }
.rd-me-list .rd-toggle i::after {
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
}
.rd-me-list .rd-toggle input:checked + i { background: #348562; }
.rd-me-list .rd-toggle input:checked + i::after { transform: translateX(15px); }
.rd-me-foot {
  margin: 0;
  padding: 0 0 4px;
  text-align: center;
  font-size: 11px;
  line-height: 17px;
  color: #829087;
}

/* ================= 阅读文章详情（按 412px 设计稿 1:1 还原） ================= */
body.rd-reader-open #nav-mobile { display: none !important; }
.rd-reader {
  --rd-reader-fs: 17px;
  display: flex;
  flex-direction: column;
  padding: 0 0 96px;
}
.rd-reader-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
  padding: 6px 0 8px;
}
.rd-reader-back {
  display: flex;
  padding: 0;
  background: none;
  border: 0;
  color: #20352c;
}
.rd-reader-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.rd-reader-actions button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: #348562;
}
.rd-reader-actions button.active svg { fill: currentColor; }
.rd-reader-title {
  margin: 12px 0 0;
  font-size: 29px;
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #20352c;
}
.rd-reader-sub {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: #627469;
}
.rd-reader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
  margin: 12px 0 0;
}
.rd-reader-chip {
  padding: 3px 9px;
  border-radius: 8px;
  background: #e8f2e8;
  color: #22694b;
  font-size: 11px;
  line-height: 17px;
  font-weight: 500;
}
.rd-reader-time {
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}
.rd-reader-cover {
  display: block;
  width: 100%;
  height: 178px;
  margin-top: 12px;
  border-radius: 16px;
  object-fit: cover;
  background: #e8f2e8;
}
.rd-reader-note {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}
.rd-reader-note svg { flex-shrink: 0; color: #627469; }
.rd-reader-source {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: #627469;
}
.rd-reader-source a {
  color: #348562;
  text-decoration: none;
  border-bottom: 1px solid #cfe0d5;
}
.rd-reader-credit {
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.5;
  color: #8a9a90;
  text-align: right;
}
.rd-reader-body {
  margin-top: 10px;
  font-size: var(--rd-reader-fs);
  line-height: 1.72;
  color: #20352c;
}
.rd-reader-body p {
  margin: 0;
  text-indent: 2em;
}
.rd-reader-body p + p {
  margin-top: 16px;
}
.rd-reader-body .rc-word {
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: #2f7d57;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #9dc9b0;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}
/* 精读讲义：长难句 / 词汇 / 句式 / 事实来源 */
.rd-study {
  margin-top: 26px;
  padding-top: 4px;
  border-top: 1px solid #e6ece5;
}
.rd-study-sec { margin-top: 22px; }
.rd-study-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rd-study-num {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  color: #348562;
}
.rd-study-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #20352c;
}
.rd-study-en {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa8a0;
}
.rd-sent {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #ecefe9;
  border-radius: 10px;
  background: #f7f9f5;
}
.rd-sent-en {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.68;
  color: #20352c;
}
.rd-sent-en b {
  display: inline-block;
  min-width: 16px;
  margin-right: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #348562;
}
.rd-sent-tree {
  margin: 9px 0 0;
  padding: 9px 11px;
  overflow-x: auto;
  border-radius: 8px;
  background: #eef2eb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.75;
  color: #4f6156;
  white-space: pre;
}
.rd-sent-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #7b8b81;
}
.rd-vocab {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 20px;
  margin-top: 4px;
}
@media (min-width: 640px) {
  .rd-vocab { grid-template-columns: 1fr 1fr; }
}
.rd-vocab-item {
  padding: 10px 0;
  border-bottom: 1px dashed #e3e9e0;
}
.rd-vocab-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.rd-vocab-top b {
  font-size: 14px;
  color: #20352c;
}
.rd-vocab-pos {
  padding: 1px 5px;
  border-radius: 4px;
  background: #e8f2e8;
  color: #22694b;
  font-size: 10px;
  font-style: italic;
}
.rd-vocab-mean {
  font-size: 12.5px;
  color: #4f6156;
}
.rd-vocab-coll {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #7b8b81;
}
.rd-pattern {
  margin-top: 10px;
  padding: 12px 14px;
  border-left: 2px solid #2f7a56;
  border-radius: 0 8px 8px 0;
  background: #f7f9f5;
}
.rd-pattern-en {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #20352c;
}
.rd-pattern-use {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #7b8b81;
}
.rd-vocab-item.is-link {
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px dashed #e3e9e0;
  background: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.rd-vocab-item.is-link .rd-vocab-top b { color: #2f7d57; }
/* 读后检验 */
.rd-quiz {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid #e6ece5;
  border-radius: 12px;
  background: #fbfcf7;
}
.rd-quiz-tip {
  margin: 6px 0 0;
  font-size: 11px;
  color: #7b8b81;
}
.rd-q { margin-top: 14px; }
.rd-q-title {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #20352c;
}
.rd-q-title b {
  display: inline-block;
  min-width: 16px;
  margin-right: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #348562;
}
.rd-q-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}
.rd-q-opt {
  padding: 9px 11px;
  border: 1px solid #e3e9e0;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.55;
  color: #4f6156;
  text-align: left;
  cursor: pointer;
}
.rd-q-opt:disabled { cursor: default; opacity: 1; }
.rd-q-opt.correct { border-color: #9dc9b0; background: #eef7f0; color: #22694b; }
.rd-q-opt.wrong { border-color: #e2b8b0; background: #fbf0ee; color: #a3453a; }
.rd-q-exp {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f3f6f0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #627469;
}
.rd-retell {
  margin-top: 14px;
  padding: 11px 12px;
  border-left: 2px solid #2f7a56;
  border-radius: 0 8px 8px 0;
  background: #f3f7f2;
}
.rd-retell b {
  font-size: 11px;
  color: #22694b;
}
.rd-retell p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #4f6156;
}
.rd-reader-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rd-line-soft);
}
.rd-reader-foot button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: #348562;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
}
.rd-reader-foot .rd-reader-trans-toggle {
  color: #627469;
  font-size: 12px;
}
.rd-reader-trans {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--rd-radius-sm);
  background: #f7f9f5;
  font-size: 13.5px;
  line-height: 1.85;
  color: #627469;
}
.rd-reader-trans p {
  margin: 0;
  text-indent: 2em;
}
.rd-reader-trans p + p {
  margin-top: 8px;
}
body.rd-night .rd-reader-trans { background: #18231d; color: #b6c4bb; }
.rd-reader-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: var(--rd-radius-sm);
  background: #2f7a56;
  color: var(--rd-white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
}
.rd-reader-done:active { transform: scale(.99); }
.rd-reader-tools {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  max-width: 760px;
  margin: 0 auto;
  padding: 11px 16px calc(11px + var(--safe-bottom, 0px));
  background: var(--rd-white);
  border-top: 1px solid #ecefe9;
}
.rd-reader-tools button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  color: #20352c;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
}
.rd-reader-tools button b {
  font-size: 15px;
  font-weight: 500;
}
.rd-reader-tools .rd-tool-font { color: #348562; }

/* 夜间模式（仅阅读详情页） */
body.rd-night,
body.rd-night .page { background: #101713; }
body.rd-night .rd-reader-title,
body.rd-night .rd-reader-body,
body.rd-night .rd-reader-back,
body.rd-night .rd-reader-tools button { color: #e6ece7; }
body.rd-night .rd-reader-body .rc-word {
  color: #8fd3a9;
  text-decoration-color: #3f6b53;
}
body.rd-night .rd-reader-time,
body.rd-night .rd-reader-note,
body.rd-night .rd-reader-note svg { color: #9fb0a6; }
body.rd-night .rd-reader-chip { background: #1e332a; color: #a9d7bd; }
body.rd-night .rd-reader-foot { border-top-color: #23352c; }
body.rd-night .rd-reader-tools { background: #18231d; border-top-color: #243b30; }
body.rd-night .rd-reader-tools { color: #e6ece7; }
body.rd-night .rd-reader-source,
body.rd-night .rd-reader-credit { color: #9fb0a6; }
body.rd-night .rd-reader-source a { color: #8fd3a9; border-bottom-color: #3f6b53; }
body.rd-night .rd-study { border-top-color: #23352c; }
body.rd-night .rd-study-head h2,
body.rd-night .rd-sent-en,
body.rd-night .rd-vocab-top b,
body.rd-night .rd-pattern-en { color: #e6ece7; }
body.rd-night .rd-study-en,
body.rd-night .rd-sent-note,
body.rd-night .rd-pattern-use,
body.rd-night .rd-vocab-coll,
body.rd-night .rd-vocab-mean { color: #9fb0a6; }
body.rd-night .rd-sent,
body.rd-night .rd-pattern { background: #18231d; border-color: #243b30; }
body.rd-night .rd-sent-tree { background: #101713; color: #b6c4bb; }
body.rd-night .rd-vocab-item { border-bottom-color: #243b30; }
body.rd-night .rd-vocab-pos { background: #1e332a; color: #a9d7bd; }
body.rd-night .rd-quiz { background: #18231d; border-color: #243b30; }
body.rd-night .rd-q-title,
body.rd-night .rd-retell p { color: #e6ece7; }
body.rd-night .rd-q-opt {
  background: #111a15;
  border-color: #2a3d32;
  color: #b6c4bb;
}
body.rd-night .rd-q-opt.correct { background: #1b2f24; border-color: #3f6b53; color: #a9d7bd; }
body.rd-night .rd-q-opt.wrong { background: #2e1f1d; border-color: #5a3a36; color: #e0a79e; }
body.rd-night .rd-q-exp { background: #15201a; color: #9fb0a6; }
body.rd-night .rd-retell { background: #15201a; }
body.rd-night .rd-retell b { color: #a9d7bd; }

/* 本篇词汇弹层 */
.rd-glossary {
  width: min(680px, calc(100% - 32px));
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  background: var(--rd-white);
  border-radius: var(--rd-radius-xl);
  overflow: hidden;
}
.rd-glossary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--rd-line-soft);
  font-size: 14px;
  font-weight: 700;
  color: #20352c;
}
.rd-glossary-head button {
  display: flex;
  padding: 0;
  background: none;
  border: 0;
  color: #627469;
}
.rd-glossary-list {
  overflow-y: auto;
  padding: 6px 8px 12px;
}
.rd-glossary-item {
  display: flex;
  align-items: baseline;
  gap: var(--rd-space-25);
  width: 100%;
  padding: 11px 8px;
  background: none;
  border: 0;
  border-bottom: 1px solid #f3f5f1;
  text-align: left;
  font-family: inherit;
}
.rd-glossary-word {
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 700;
  color: #2f7d57;
}
.rd-glossary-mean {
  font-size: 12px;
  line-height: 18px;
  color: #627469;
}
.rd-glossary-empty {
  margin: 16px 8px;
  font-size: 12px;
  color: #829087;
}

/* ================= 设置页（按 412px 设计稿 1:1 还原） ================= */
body.mode-settings {
  background: #f6f8f4;
  color: #20352c;
}
body.mode-settings .page {
  padding: 6px 16px 40px;
}
#view-settings {
  display: flex;
  flex-direction: column;
  padding-bottom: 8px;
}
.rd-set-back {
  display: flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  min-height: 40px;
  padding: 6px 0;
  background: none;
  border: 0;
  color: #348562;
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
}
.rd-set-back svg { width: 19px; height: 19px; }
.rd-set-back:active { opacity: .7; }
.rd-set-title {
  margin: 4px 0 18px;
  font-size: 26px;
  line-height: 39px;
  font-weight: 700;
  color: #20352c;
}
.rd-set-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.rd-set-group-title {
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: #20352c;
}
.rd-set-card {
  display: flex;
  flex-direction: column;
  padding: 6px 14px;
  background: var(--rd-white);
  border-radius: 16px;
  box-shadow: var(--rd-shadow-card);
}
.rd-set-card > * + * { border-top: 1px solid #f0f3ee; }
.rd-set-row {
  display: flex;
  align-items: center;
  gap: var(--rd-space-25);
  width: 100%;
  padding: 12px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
.rd-set-row:active { opacity: .72; }
.rd-set-ic {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eaf3ea;
  color: #3d8a68;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-set-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rd-set-name {
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  color: #20352c;
}
.rd-set-desc {
  font-size: 10px;
  line-height: 15px;
  color: #829087;
}
.rd-set-val {
  flex-shrink: 0;
  max-width: 44%;
  font-size: 11px;
  line-height: 17px;
  color: #627469;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-set-arrow {
  flex-shrink: 0;
  display: flex;
  color: #829087;
}
.rd-set-toggle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
}
.rd-set-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.rd-set-toggle i {
  position: absolute;
  inset: 0;
  border-radius: var(--rd-radius-pill);
  background: #e3e9e3;
  transition: background .2s;
}
.rd-set-toggle i::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rd-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .16);
  transition: transform .2s;
}
.rd-set-toggle input:checked + i { background: #348562; }
.rd-set-toggle input:checked + i::after { transform: translateX(18px); }
.rd-set-logout {
  width: 100%;
  margin-top: 4px;
  padding: 15px;
  background: var(--rd-white);
  border: 0;
  border-radius: var(--rd-radius-md);
  color: #cf5a52;
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
  font-weight: 600;
  box-shadow: var(--rd-shadow-card);
}
.rd-set-logout:active { opacity: .75; }
.rd-set-logout-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 15px;
  color: #9aa69e;
}
.rd-set-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 16px 0 0;
  font-size: 11px;
  line-height: 17px;
  color: #829087;
}

/* ================= 词库 · 学习进度页（按 412px 设计稿还原） ================= */
#view-books {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 6px; /* page 左右 18 + 6 = 设计稿 24 */
}
.rd-bk-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.rd-bk-headtext {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
/* 左上角返回按钮：回首页 */
.rd-bk-back {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--rd-white);
  color: #20352c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-bk-back:active { opacity: .75; }
.rd-bk-title {
  margin: 0;
  font-size: 26px;
  line-height: 39px;
  font-weight: 700;
  color: #20352c;
  letter-spacing: 0;
}
.rd-bk-sub {
  font-size: 12px;
  line-height: 18px;
  color: #627469;
}
.rd-bk-cal {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 100px;
  background: var(--rd-white);
  color: #20352c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-bk-cal:active { opacity: .75; }

.rd-bk-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  background: var(--rd-white);
  border-radius: 24px;
}
.rd-bk-stats {
  display: flex;
  align-items: flex-start;
}
.rd-bk-stat {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.rd-bk-stat-val {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
}
.rd-bk-stat-val b {
  font-size: 25px;
  line-height: 38px;
  font-weight: 400;
  color: #20352c;
  letter-spacing: 0;
}
.rd-bk-stat-val i {
  font-style: normal;
  font-size: 10px;
  line-height: 15px;
  color: #627469;
}
.rd-bk-stat > span {
  display: block;
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}
.rd-bk-div {
  width: 1px;
  height: 44px;
  flex-shrink: 0;
  background: #e5ebe3;
}
.rd-bk-week-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rd-bk-week-head > span:first-child {
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: #20352c;
}
.rd-bk-week-total {
  font-size: 11px;
  line-height: 17px;
  color: #348562;
}
.rd-bk-chart {
  display: flex;
  align-items: flex-end;
  gap: 17px;
}
.rd-bk-bar {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.rd-bk-bar-val {
  font-size: 9px;
  line-height: 14px;
  color: #829087;
}
.rd-bk-bar-track {
  width: 19px;
  height: 56px;
  display: flex;
  align-items: flex-end;
}
.rd-bk-bar-fill {
  display: block;
  width: 100%;
  min-height: 4px;
  border-radius: 6px;
  background: #d9edb3;
}
.rd-bk-bar.today .rd-bk-bar-fill { background: #348562; }
.rd-bk-bar.today .rd-bk-bar-val { color: #348562; }
.rd-bk-bar-label {
  font-size: 10px;
  line-height: 15px;
  color: #829087;
}
.rd-bk-bar.today .rd-bk-bar-label { color: #348562; }
.rd-bk-goal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
  padding-top: 10px;
  border-top: 1px solid #e5ebe3;
}
.rd-bk-goal-text {
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}
.rd-bk-goal-text b {
  font-weight: 400;
  color: #627469;
}
.rd-bk-goal-pct {
  font-size: 11px;
  line-height: 17px;
  color: #348562;
}
.rd-bk-goal-pct b {
  font-weight: 400;
  color: #348562;
}
.rd-bk-cursec {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-3);
}
.rd-bk-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
}
.rd-bk-sec-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 27px;
  font-weight: 700;
  color: #20352c;
}
.rd-bk-switch {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 15px;
  line-height: 24px;
  color: #348562;
}
.rd-bk-switch:active { opacity: .7; }

.rd-bk-curcard {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #e8f2e8;
  border-radius: 16px;
}
.rd-bk-curcover {
  flex-shrink: 0;
  width: 55px;
  height: 70px;
  padding: 8px;
  border-radius: 8px;
  background: #22694b;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow: hidden;
}
.rd-bk-curcover span {
  font-size: 15px;
  line-height: 18px;
  font-weight: 700;
  color: #d9edb3;
  white-space: nowrap;
}
.rd-bk-curline {
  flex-shrink: 0;
  width: 21px;
  height: 2px;
  background: #d9edb3;
}
.rd-bk-curmain {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.rd-bk-curtop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.rd-bk-curname {
  min-width: 0;
  font-size: 15px;
  line-height: 23px;
  font-weight: 700;
  color: #20352c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-bk-curpct {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 17px;
  font-weight: 700;
  color: #348562;
}
.rd-bk-curdesc {
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}
.rd-bk-curbar {
  height: 6px;
  border-radius: 100px;
  background: #e5ebe3;
  overflow: hidden;
}
.rd-bk-curfill {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: #348562;
}

.rd-bk-goalset {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-3);
}
.rd-bk-goalcard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: var(--rd-white);
  border-radius: 24px;
}
.rd-bk-goalhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
}
.rd-bk-goalhead > span:first-child {
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: #20352c;
}
.rd-bk-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-3);
}
.rd-bk-step {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #e8f2e8;
  color: #348562;
  font-family: inherit;
  font-size: 20px;
  line-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-bk-step:active { opacity: .75; }
.rd-bk-steplabel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.rd-bk-steplabel b {
  font-size: 30px;
  line-height: 36px;
  font-weight: 700;
  color: #20352c;
}
.rd-bk-steplabel span {
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}

.rd-bk-testcard {
  width: 100%;
  height: 70px;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--rd-radius-xl);
  background: var(--rd-white);
  font-family: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: var(--rd-space-25);
}
.rd-bk-testcard:active { opacity: .8; }
.rd-bk-tool-ic {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e8f2e8;
  color: #348562;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-bk-tool-main {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rd-bk-tool-name {
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: #20352c;
}
.rd-bk-tool-desc {
  font-size: 10px;
  line-height: 15px;
  color: #627469;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-bk-testbtn {
  flex-shrink: 0;
  width: 68px;
  height: 34px;
  border-radius: 10px;
  background: #348562;
  color: var(--rd-white);
  font-size: 11px;
  line-height: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rd-bk-picker {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
  padding: var(--rd-space-4);
  background: var(--rd-white);
  border-radius: 24px;
  scroll-margin-top: 12px;
}
.rd-bk-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--rd-space-25);
}
.rd-bk-picker-head > span:first-child {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #20352c;
}
.rd-bk-picker-head > span:last-child {
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}
.rd-bk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--rd-space-25);
}
.rd-bk-bookcard {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 100px;
  padding: 6px 8px;
  border: 0;
  border-radius: 16px;
  background: var(--rd-white);
  font-family: inherit;
  text-align: left;
}
.rd-bk-bookcard.current { background: #e8f2e8; }
.rd-bk-bookcard:active { opacity: .8; }
.rd-bk-pickcover {
  flex-shrink: 0;
  width: 40px;
  height: 38px;
  padding: 5px 3px;
  border-radius: 8px;
  background: #22694b;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}
.rd-bk-pickcover span {
  font-size: 10px;
  line-height: 13px;
  font-weight: 700;
  color: #d9edb3;
  white-space: nowrap;
}
.rd-bk-pickline {
  flex-shrink: 0;
  width: 22px;
  height: 2px;
  background: #d9edb3;
}
.rd-bk-bookmain {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rd-bk-booktop {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.rd-bk-bookname {
  max-width: 100%;
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
  color: #20352c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-bk-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  border-radius: 100px;
  background: #f6f8f4;
  font-size: 10px;
  line-height: 15px;
  font-weight: 700;
  color: #627469;
}
.rd-bk-status.current {
  background: var(--rd-white);
  color: #348562;
}
.rd-bk-bookdesc {
  max-width: 100%;
  font-size: 11px;
  line-height: 17px;
  color: #627469;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rd-bk-empty {
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: #829087;
}

/* 学习日历弹层 */
.rd-bk-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 6px 0 4px;
}
.rd-bk-cal-day {
  padding: 8px 0;
  border-radius: 10px;
  background: #f4f7f2;
  text-align: center;
}
.rd-bk-cal-day span {
  display: block;
  font-size: 9px;
  line-height: 14px;
  color: #829087;
}
.rd-bk-cal-day b {
  display: block;
  font-size: 13px;
  line-height: 19px;
  color: #20352c;
}
.rd-bk-cal-day.on { background: #e9f3e9; }

/* ---------- 帮助与反馈（我的 → 帮助与反馈） ---------- */
body.mode-help { background: #f6f8f4; }
body.mode-help .page { padding: 10px 18px 24px; }

#view-help,
#view-about,
#view-profile {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 6px; /* page 左右 18 + 6 = 设计稿 24 */
}
/* 档案页：收紧「我的身份」与「我的目标」两组之间的纵向间距 */
#view-profile {
  gap: 14px;
}
.rd-hp-top {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-3);
}
.rd-hp-back {
  width: fit-content;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  line-height: 21px;
  color: #348562;
}
.rd-hp-back svg { width: 20px; height: 20px; }
.rd-hp-back:active { opacity: .7; }
.rd-hp-title {
  margin: 0;
  font-size: 26px;
  line-height: 39px;
  font-weight: 700;
  color: #20352c;
}

.rd-hp-intro {
  display: flex;
  align-items: center;
  gap: var(--rd-space-3);
  padding: var(--rd-space-4);
  background: #e8f2e8;
  border-radius: 16px;
}
.rd-hp-intro-ic {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: #348562;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-hp-intro-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rd-hp-intro-title {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #20352c;
}
.rd-hp-intro-desc {
  font-size: 11px;
  line-height: 17px;
  color: #627469;
}

.rd-hp-group {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
}
.rd-hp-group-title {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #20352c;
}
.rd-hp-card {
  padding: 0 16px;
  background: var(--rd-white);
  border-radius: 16px;
}
.rd-hp-faq {
  padding: 11px 0;
  border-bottom: 1px solid #e5ebe3;
}
.rd-hp-faq:last-child { border-bottom: 0; }
.rd-hp-faq.open {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
  padding: 16px 0;
}
.rd-hp-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--rd-space-3);
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
}
.rd-hp-q > span {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 21px;
  color: #20352c;
}
.rd-hp-faq.open .rd-hp-q > span { color: #22694b; }
.rd-hp-chev {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #829087;
  transition: transform .18s ease;
}
.rd-hp-faq:not(.open) .rd-hp-chev { transform: rotate(90deg); }
.rd-hp-a {
  font-size: 12px;
  line-height: 22px;
  color: #627469;
}
.rd-hp-faq:not(.open) .rd-hp-a { display: none; }

.rd-hp-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: var(--rd-space-4);
  background: var(--rd-white);
  border-radius: 16px;
}
.rd-hp-field {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
}
.rd-hp-label {
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: #20352c;
}
.rd-hp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.rd-hp-hint {
  font-size: 11px;
  line-height: 17px;
  color: #829087;
}
.rd-hp-kinds {
  display: flex;
  gap: 8px;
}
.rd-hp-kind {
  flex: 1 1 0;
  min-width: 0;
  height: 34px;
  padding: 0 4px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #f6f8f4;
  font-family: inherit;
  font-size: 11px;
  line-height: 17px;
  color: #627469;
  white-space: nowrap;
}
.rd-hp-kind.active {
  background: #e8f2e8;
  border-color: #348562;
  color: #348562;
  font-weight: 500;
}
.rd-hp-textbox {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 12px;
  background: #f6f8f4;
  border-radius: var(--rd-radius-sm);
}
.rd-hp-textarea {
  width: 100%;
  min-height: 46px;
  padding: 0;
  border: 0;
  outline: none;
  resize: vertical;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  line-height: 23px;
  color: #20352c;
}
.rd-hp-textarea::placeholder { color: #829087; }
.rd-hp-count {
  align-self: flex-end;
  font-size: 11px;
  line-height: 17px;
  color: #829087;
}
.rd-hp-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.rd-hp-shot {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: var(--rd-radius-sm);
  overflow: hidden;
  background: #f6f8f4;
}
.rd-hp-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rd-hp-shot-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(32, 53, 44, .65);
  color: var(--rd-white);
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-hp-add {
  width: 76px;
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid #e5ebe3;
  border-radius: var(--rd-radius-sm);
  background: #f6f8f4;
  font-family: inherit;
  font-size: 10px;
  line-height: 15px;
  color: #829087;
}
.rd-hp-add:active { opacity: .75; }
.rd-hp-note {
  margin: 0;
  font-size: 11px;
  line-height: 18px;
  color: #829087;
}
.rd-hp-input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 0;
  outline: none;
  border-radius: var(--rd-radius-sm);
  background: #f6f8f4;
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
  color: #20352c;
}
.rd-hp-input::placeholder { color: #829087; }

.rd-hp-submit {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
}
.rd-hp-btn {
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 16px;
  background: #348562;
  color: var(--rd-white);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
}
.rd-hp-btn:active { opacity: .85; }
.rd-hp-btn:disabled { opacity: .6; }
.rd-hp-subnote {
  margin: 0;
  text-align: center;
  font-size: 11px;
  line-height: 19px;
  color: #829087;
}
.rd-hp-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  line-height: 17px;
  color: #829087;
}

/* ---------- 关于词树页（我的 → 关于词树） ---------- */
.rd-ab-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #e8f2e8;
  border-radius: 20px;
}
.rd-ab-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #348562;
  color: #fff;
}
.rd-ab-brand-main { flex: 1; min-width: 0; }
.rd-ab-name {
  font-size: 19px;
  line-height: 28px;
  font-weight: 700;
  color: #20352c;
}
.rd-ab-ver {
  margin-top: 2px;
  font-size: 12px;
  line-height: 18px;
  color: #627469;
}

.rd-ab-text {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  color: #627469;
}
.rd-ab-text + .rd-ab-text { margin-top: -8px; }

.rd-ab-card {
  padding: 0 16px;
  background: var(--rd-white);
  border-radius: 16px;
}
.rd-ab-feature {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #eff3ee;
}
.rd-ab-feature:last-child { border-bottom: 0; }
.rd-ab-feature-ic {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e8f2e8;
  color: #348562;
}
.rd-ab-feature-main { flex: 1; min-width: 0; }
.rd-ab-feature-name {
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: #20352c;
}
.rd-ab-feature-desc {
  margin-top: 2px;
  font-size: 12px;
  line-height: 18px;
  color: #627469;
}

.rd-ab-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #eff3ee;
  background: none;
  font-family: inherit;
  font-size: 13px;
  line-height: 20px;
  text-align: left;
  color: #627469;
}
.rd-ab-info:last-child { border-bottom: 0; }
.rd-ab-info b { font-weight: 600; color: #20352c; }
.rd-ab-link { cursor: pointer; text-decoration: none; }
.rd-ab-link b { color: #348562; }
.rd-ab-link:active { opacity: .7; }

.rd-ab-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rd-ab-legal {
  margin: 2px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 18px;
  color: #829087;
}
.rd-ab-legal a {
  color: #627469;
  text-decoration: none;
}
.rd-ab-legal a:active { color: #348562; }
.rd-ab-legal i {
  margin: 0 6px;
  font-style: normal;
  color: #b9c4bb;
}
.rd-ab-icp {
  margin: 0;
  text-align: center;
  font-size: 11px;
  line-height: 17px;
  color: #829087;
}
.rd-ab-icp a {
  color: #829087;
  text-decoration: none;
}
.rd-ab-btn {
  height: 50px;
  border: 0;
  border-radius: 16px;
  background: #348562;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
}
.rd-ab-btn:active { background: #2c7355; }
.rd-ab-foot {
  margin: 0;
  text-align: center;
  font-size: 11px;
  line-height: 17px;
  color: #829087;
}

/* ---------- 我的档案（我的 → 我的档案） ---------- */
.rd-pf-tip {
  margin: 0 2px;
  font-size: 12.5px;
  line-height: 20px;
  color: #627469;
}
.rd-pf-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rd-pf-title {
  margin: 0 2px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #20352c;
}
/* 选项按宽度铺成多列：手机 2 列、宽屏 3 列（卡片竖排，勾选角标固定右上） */
.rd-pf-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}
@media (min-width: 640px) {
  .rd-pf-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rd-pf-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-height: 86px;
  padding: 14px 34px 13px 13px;
  border: 1px solid #e5ebe3;
  border-radius: 16px;
  background: var(--rd-white);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.rd-pf-opt-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.rd-pf-opt-label {
  font-size: 14.5px;
  line-height: 21px;
  font-weight: 600;
  color: #20352c;
}
.rd-pf-opt-desc {
  font-size: 11.5px;
  line-height: 17px;
  color: #627469;
}
.rd-pf-opt-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe5dd;
  border-radius: 50%;
  color: transparent;
  transition: background .15s, border-color .15s, color .15s;
}
.rd-pf-opt.is-on { border-color: #348562; background: #eef6ef; }
.rd-pf-opt.is-on .rd-pf-opt-check {
  border-color: #348562;
  background: #348562;
  color: #fff;
}
.rd-pf-opt:active { background: #f3f7f4; }

/* ---------- 查词搜索页 ---------- */
body.mode-search { background: #f6f8f4; }
body.mode-search .nav-desktop { display: none; }
body.mode-search .page { padding: 10px 18px 28px; }
body.mode-search .app-header { background: #f6f8f4; }
body.mode-search .search-bar {
  background: var(--rd-white);
  border: 1px solid #e5ebe3;
  border-radius: 16px;
  box-shadow: none;
}
body.mode-search .header-icon-btn { color: #627469; }
body.mode-search .nav-item { color: #627469; }
body.mode-search .nav-item.active { color: #348562; }

#view-search {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 6px; /* page 左右 18 + 6 = 设计稿 24 */
}
.rd-sr-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rd-sr-eyebrow {
  font-size: 11px;
  line-height: 17px;
  font-weight: 600;
  color: #348562;
  letter-spacing: .03em;
}
.rd-sr-title {
  margin: 0;
  font-size: 24px;
  line-height: 34px;
  font-weight: 700;
  color: #20352c;
  word-break: break-word;
}
.rd-sr-meta {
  font-size: 12px;
  line-height: 18px;
  color: #627469;
}
.rd-sr-list {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
}
.rd-sr-item {
  display: flex;
  align-items: center;
  gap: var(--rd-space-3);
  padding: 14px 16px;
  background: var(--rd-white);
  border-radius: 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .12s ease;
}
/* 按下时用底色反馈，避免缩放导致列表轻微跳动 */
.rd-sr-item:active { background: #f4f8f1; }
.rd-sr-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rd-sr-wordline {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rd-sr-word {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: #20352c;
}
.rd-sr-badge {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 100px;
  font-size: 10px;
  line-height: 15px;
  font-weight: 600;
}
.rd-sr-badge.learned { color: #348562; background: #e8f2e8; }
.rd-sr-badge.new { color: #829087; background: #f6f8f4; }
.rd-sr-badge.cat { color: #9a6a2f; background: #fff4e8; }
.rd-sr-def {
  font-size: 12px;
  line-height: 18px;
  color: #627469;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.rd-sr-side {
  flex-shrink: 0;
  max-width: 36%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.rd-sr-arrow {
  font-size: 11px;
  line-height: 16px;
  font-weight: 500;
  color: #348562;
}

.rd-sr-skel {
  display: flex;
  flex-direction: column;
  gap: var(--rd-space-25);
  padding: 18px 16px;
  background: var(--rd-white);
  border-radius: 16px;
}
.rd-sr-skel-line {
  display: block;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f4ee 25%, #e8f0e6 37%, #f0f4ee 63%);
  background-size: 400% 100%;
  animation: rd-sr-shimmer 1.4s ease infinite;
}
.rd-sr-skel-line.w40 { width: 40%; }
.rd-sr-skel-line.w80 { width: 78%; height: 9px; }
@keyframes rd-sr-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

.rd-sr-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 36px 20px;
  background: var(--rd-white);
  border-radius: var(--rd-radius-xl);
  text-align: center;
}
.rd-sr-empty-ic {
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: #e8f2e8;
  color: #348562;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-sr-empty b {
  font-size: 14px;
  line-height: 21px;
  font-weight: 700;
  color: #20352c;
}
.rd-sr-empty > span:last-child {
  font-size: 11px;
  line-height: 18px;
  color: #829087;
}
.rd-bk-cal-day.on b { color: #22694b; }

@media (prefers-reduced-motion: reduce) {
  .st-illu-spot span { transition: none; }
  .st-illu-spot.is-selected span { transform: none; }
}

/* ================= 首页 · 单词本入口 ================= */
.rd-nb-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--rd-radius-md);
  background: var(--rd-white);
  text-align: left;
}
.rd-nb-entry:active { opacity: .8; }
.rd-nb-entry-ic {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--rd-green-soft);
  color: var(--rd-green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-nb-entry-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rd-nb-entry-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-ink);
}
.rd-nb-entry-desc {
  font-size: 11px;
  line-height: 16px;
  color: var(--rd-muted);
}
.rd-nb-entry-arrow { flex-shrink: 0; color: var(--rd-faint); }

/* ================= 单词本页 ================= */
#view-notebook {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 6px;
}
.rd-nb-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.rd-nb-nav {
  display: flex;
  align-items: center;
  width: 100%;
}
/* 返回按钮与页面底色融为一体 */
.rd-nb-nav .rd-bk-back { background: transparent; }
/* 标题与导出按钮同一行，按钮靠右 */
.rd-nb-headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.rd-nb-headrow .rd-nb-headtext {
  flex: 1;
  min-width: 0;
}
.rd-nb-export {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--rd-cream);
  color: #20352c;
  font-size: 13px;
  font-weight: 600;
}
.rd-nb-export:active { opacity: .75; }
.nb-exp-group { margin-bottom: 16px; }
.nb-exp-label {
  margin-bottom: 8px;
  font-size: 12px;
  color: #627469;
}
.nb-exp-opts { display: flex; gap: 8px; }
.nb-exp-opt {
  flex: 1;
  height: 40px;
  border: 1px solid var(--rd-line);
  border-radius: 12px;
  background: var(--rd-white);
  font-size: 13px;
  font-weight: 600;
  color: var(--rd-muted);
}
.nb-exp-opt.is-on {
  border-color: var(--rd-green);
  background: var(--rd-green-soft);
  color: var(--rd-green);
}
.rd-nb-title {
  margin: 0;
  font-size: 26px;
  line-height: 39px;
  font-weight: 700;
  color: #20352c;
}
.rd-nb-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--rd-line-soft);
}
.rd-nb-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 38px;
  padding: 0 1px;
  border: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--rd-muted);
}
.rd-nb-tab.is-on { color: var(--rd-ink); }
.rd-nb-tab.is-on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--rd-green);
}
.rd-nb-tab-num {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--rd-faint);
}
.rd-nb-tab.is-on .rd-nb-tab-num { color: var(--rd-green); }
/* 单词本列表：平铺文档式，无外层圆角卡片 */
.rd-nb-list {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}
.rd-nb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--rd-line-soft);
}
.rd-nb-item:last-child { border-bottom: 0; }
.rd-nb-open {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border: 0;
  background: transparent;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: pan-y;
}
/* 长按中的视觉反馈：单词转为品牌绿 */
.rd-nb-open.is-pressing .rd-nb-word { color: var(--rd-green); }
.rd-nb-word {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--rd-ink);
}
.rd-nb-word small {
  font-size: 11px;
  font-weight: 400;
  color: var(--rd-faint);
}
.rd-nb-def {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  line-height: 18px;
  color: var(--rd-muted);
}
/* 长按提示：可关闭，长按成功一次后自动消失 */
.rd-nb-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  line-height: 18px;
  color: var(--rd-muted);
}
.rd-nb-hint button {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rd-faint);
  font-size: 18px;
  line-height: 1;
}
/* 今日所学汇总 */
.rd-nb-sum {
  margin-top: 8px;
  font-size: 12px;
  line-height: 18px;
  color: var(--rd-muted);
}
/* 列表加载更多 */
.rd-nb-more {
  align-self: center;
  margin: 16px 0 4px;
  padding: 0 16px;
  height: 40px;
  border: 1px solid var(--rd-line);
  border-radius: 8px;
  background: transparent;
  color: var(--rd-muted);
  font-size: 12px;
  font-weight: 600;
}
.rd-nb-more:active { opacity: .7; }
.rd-nb-del {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--rd-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rd-nb-del:active { background: #f2f4ef; color: #c0563f; }
.rd-nb-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 40px 0 36px;
  text-align: center;
}
.rd-nb-empty-ic { color: var(--rd-faint); }
.rd-nb-empty b {
  font-size: 13px;
  font-weight: 600;
  color: var(--rd-ink);
}
.rd-nb-empty > span:last-child {
  font-size: 11px;
  line-height: 17px;
  color: var(--rd-muted);
}
.rd-nb-loading {
  padding: 40px 0;
  text-align: center;
  font-size: 12px;
  color: var(--rd-faint);
}
