/* =========================================================
   学习中心 · 真题卷库 · 冲鸭训练营
   依赖 app.css 的设计令牌；只新增，不覆盖基础组件
   ========================================================= */

/* ---------- 学习区布局：隐藏左右栏，给内容更多宽度 ---------- */
.ln-page [hidden] { display: none !important; }
body.learn-mode .shell {
  grid-template-columns: minmax(0, 1fr);
  max-width: 1200px;
  padding-top: 26px;
}
body.learn-mode .rail-left,
body.learn-mode .rail-right { display: none; }
body.cy-reader-mode .shell { grid-template-columns: minmax(0, 1fr); max-width: 1480px; padding-left: 20px; padding-right: 20px; }
body.cy-reader-mode .rail-left,
body.cy-reader-mode .rail-right { display: none; }

#view:not(.no-anim) .ln-page {
  --ln-radius: 16px;
  --ln-soft: rgb(var(--brand) / .06);
  --ln-line: rgb(var(--line));
  min-width: 0;
  animation: ln-in .34s cubic-bezier(.22, .8, .28, 1) both;
}
@keyframes ln-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ln-page h1, .ln-page h2, .ln-page h3 { letter-spacing: -.025em; }
.ln-kicker {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.ln-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgb(var(--brand-ink));
}
.ln-eyebrow .ic { width: 14px; height: 14px; }
.ln-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 10px;
}
.ln-back:hover { color: var(--text); }
.ln-back .ic { width: 14px; height: 14px; }

/* ---------- 学习导航 ---------- */
.ln-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin-bottom: 20px;
  border: 1px solid var(--line-c);
  border-radius: 14px;
  background: rgb(var(--card) / .7);
  overflow-x: auto;
  scrollbar-width: none;
}
.ln-nav::-webkit-scrollbar { display: none; }
.ln-nav-a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.ln-nav-a .ic { width: 15px; height: 15px; opacity: .8; }
.ln-nav-a:hover { background: var(--bg2); color: var(--text); }
.ln-nav-a.on { background: rgb(var(--card)); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.ln-nav-a.on .ic { opacity: 1; }

/* ---------- Hero ---------- */
.ln-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: 32px;
  padding: 34px 36px;
  border: 1px solid var(--line-c);
  border-radius: 22px;
  background:
    radial-gradient(900px 300px at 100% -10%, rgb(var(--brand) / .10), transparent 60%),
    rgb(var(--card));
  overflow: hidden;
}
.ln-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(var(--ink) / .055) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, transparent 30%, #000 100%);
  pointer-events: none;
}
.ln-hero-main { position: relative; z-index: 1; min-width: 0; }
.ln-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.18;
  font-weight: 780;
}
.ln-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.8;
}
.ln-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ln-hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-content: center;
}
.ln-stat {
  padding: 14px 16px;
  border: 1px solid var(--line-c);
  border-radius: 14px;
  background: rgb(var(--card) / .74);
  backdrop-filter: blur(8px);
}
.ln-stat b { display: block; font-size: 25px; line-height: 1.1; font-weight: 760; font-variant-numeric: tabular-nums; }
.ln-stat span { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.ln-stat em { display: block; margin-top: 2px; font-size: 10.5px; font-style: normal; color: var(--text-faint); }
.ln-stat-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 8px;
  border-radius: 9px; background: rgb(var(--brand) / .10); color: var(--brand-c);
}
.ln-stat-ic svg { width: 16px; height: 16px; }
.ln-hub-countdown {
  display: flex; align-items: center; gap: 10px; margin-top: 18px;
  padding: 11px 15px; border: 1px dashed var(--line-strong-c); border-radius: 12px;
  font-size: 12.5px; color: var(--text-muted);
}
.ln-hub-countdown b { color: var(--brand-ink, var(--brand-c)); font-size: 18px; font-variant-numeric: tabular-nums; }
.ln-hub-countdown a { margin-left: auto; color: var(--brand-c); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }

/* ---------- 首页内嵌背词组件 ---------- */
.cy-inline-words { margin-top: 22px; padding: 22px 24px; border: 1px solid var(--line-c); border-radius: 18px; background: rgb(var(--card)); }
.ciw-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.ciw-hd h2 { font-size: 18px; font-weight: 740; margin: 0; }
.ciw-progress { margin-left: auto; font-size: 12.5px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ciw-idle { text-align: center; padding: 14px 10px; color: var(--text-muted); }
.ciw-idle-ic { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 13px; background: rgb(var(--brand) / .10); color: var(--brand-c); margin-bottom: 10px; }
.ciw-idle p { max-width: 480px; margin: 0 auto 14px; font-size: 13.5px; line-height: 1.7; }
.ciw-idle-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.ciw-card { max-width: 560px; margin: 0 auto; text-align: center; }
.ciw-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.ciw-word { font-size: 30px; font-weight: 780; letter-spacing: -.02em; line-height: 1.1; color: var(--text); }
.ciw-pos { font-size: 13px; color: var(--text-muted); margin: 5px 0 14px; }
.ciw-mean { font-size: 16px; line-height: 1.7; margin-bottom: 8px; color: var(--text); }
.ciw-syn { font-size: 13px; color: var(--brand-c); margin-bottom: 14px; }
.ciw-reveal { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 18px; border: 1px dashed var(--line-strong-c); border-radius: 10px; background: var(--card-bg); color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer; }
.ciw-reveal:hover { border-color: var(--brand-c); color: var(--text); }
.ciw-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

/* ---------- 学习首页入口卡 ---------- */
.ln-entries {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.ln-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 18px 18px 15px;
  border: 1px solid var(--line-c);
  border-radius: var(--ln-radius);
  background: var(--card-bg);
  text-decoration: none;
  color: var(--text);
  transition: transform .22s cubic-bezier(.22, .8, .28, 1), box-shadow .22s, border-color .22s;
  overflow: hidden;
}
.ln-entry::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--entry-accent, rgb(var(--brand)));
  opacity: .85;
}
.ln-entry:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong-c); }
.ln-entry.tone-a { --entry-accent: #2563eb; }
.ln-entry.tone-b { --entry-accent: #0d9488; }
.ln-entry.tone-c { --entry-accent: #d97706; }
.ln-entry-ic {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--ln-soft);
  color: rgb(var(--brand-ink));
}
.ln-entry.tone-b .ln-entry-ic { background: var(--tint-green); color: #0f766e; }
.ln-entry.tone-c .ln-entry-ic { background: var(--tint-warm); color: var(--tint-warm-ink); }
.ln-entry-ic .ic { width: 19px; height: 19px; }
.ln-entry-kicker { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--text-faint); }
.ln-entry b { margin-top: 4px; font-size: 18px; letter-spacing: -.02em; }
.ln-entry em { margin-top: 7px; font-style: normal; font-size: 12.5px; line-height: 1.7; color: var(--text-muted); flex: 1; }
.ln-entry-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-c);
  font-size: 11.5px;
  color: var(--text-faint);
}
.ln-entry-foot .ic { width: 15px; height: 15px; transition: transform .2s; }
.ln-entry:hover .ln-entry-foot .ic { transform: translateX(3px); }

/* ---------- 继续上次 ---------- */
.ln-continue {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 180px auto;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--line-c);
  border-radius: var(--ln-radius);
  background: linear-gradient(90deg, var(--ln-soft), transparent 55%), var(--card-bg);
}
.ln-continue-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--card-bg);
  border: 1px solid var(--line-c);
  color: rgb(var(--brand-ink));
}
.ln-continue-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ln-continue-tx span { font-size: 10.5px; font-weight: 650; letter-spacing: .07em; color: var(--text-faint); text-transform: uppercase; }
.ln-continue-tx b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ln-continue-tx em { font-style: normal; font-size: 11.5px; color: var(--text-muted); }
.ln-continue-bar { height: 6px; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.ln-continue-bar i { display: block; height: 100%; border-radius: inherit; background: rgb(var(--brand)); }

/* ---------- 今日 ---------- */
.ln-today { margin-top: 30px; }
.ln-today-hd, .ln-sec-hd {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.ln-today-hd h2, .ln-sec-hd h2 { margin: 2px 0 0; font-size: 20px; font-weight: 700; }
.ln-today-hd > a, .ln-sec-hd > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}
.ln-today-hd > a:hover, .ln-sec-hd > a:hover { color: var(--brand-ink); }
.ln-today-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ln-task {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid var(--line-c);
  border-radius: 14px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s, transform .18s;
}
.ln-task:hover { border-color: var(--line-strong-c); transform: translateY(-2px); }
.ln-task-ic { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--bg2); color: var(--text-muted); margin-bottom: 10px; }
.ln-task-ic .ic { width: 16px; height: 16px; }
.ln-task b { font-size: 14px; }
.ln-task em { margin-top: 3px; font-style: normal; font-size: 11.5px; color: var(--text-muted); }
.ln-task-state { margin-top: 12px; font-size: 11px; color: var(--text-faint); }
.ln-countdown {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 15px;
  border: 1px dashed var(--line-strong-c);
  border-radius: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.ln-countdown b { color: var(--brand-ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.ln-countdown a { margin-left: auto; color: var(--brand-ink); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }

/* ---------- 资源库 ---------- */
.ln-res-sec { margin-top: 34px; scroll-margin-top: 90px; }
.ln-sec-hd p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-muted); }
.ln-res-search, .cy-search, .pp-search, .cy-word-search {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-c);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-faint);
}
.ln-res-search .ic, .cy-search .ic, .pp-search .ic, .cy-word-search .ic { width: 15px; height: 15px; flex: none; }
.ln-res-search input, .cy-search input, .pp-search input, .cy-word-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}
.ln-res-cats { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.ln-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line-c);
  border-radius: 99px;
  background: var(--card-bg);
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all .16s;
  white-space: nowrap;
}
.ln-chip span { font-size: 10.5px; color: var(--text-faint); }
.ln-chip:hover { border-color: var(--line-strong-c); color: var(--text); }
.ln-chip.on { background: rgb(var(--ink)); border-color: rgb(var(--ink)); color: rgb(var(--card)); }
.ln-chip.on span { color: rgb(var(--card) / .62); }
.ln-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ln-res {
  display: flex;
  flex-direction: column;
  padding: 14px 15px;
  border: 1px solid var(--line-c);
  border-radius: 13px;
  background: var(--card-bg);
  transition: border-color .18s, box-shadow .18s;
}
.ln-res:hover { border-color: var(--line-strong-c); box-shadow: var(--shadow-sm); }
.ln-res-top { display: flex; align-items: flex-start; gap: 8px; }
.ln-res-title {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px;
  line-height: 1.45;
}
.ln-res-title b { font-weight: 600; }
.ln-res-title .ic { width: 12px; height: 12px; flex: none; color: var(--text-faint); }
.ln-res-star {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
}
.ln-res-star:hover { background: var(--bg2); color: var(--text); }
.ln-res-star.on { color: #d97706; }
.ln-res-star .ic { width: 15px; height: 15px; }
.ln-res-star.on .ic { fill: currentColor; }
.ln-res-src { margin-top: 5px; font-size: 11.5px; line-height: 1.6; color: var(--text-muted); text-decoration: none; }
.ln-res-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 10.5px; color: var(--text-faint); }
.ln-res-meta em { font-style: normal; padding: 2px 7px; border-radius: 99px; background: var(--bg2); }
.ln-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 200px;
  padding: 30px;
  border: 1px dashed var(--line-strong-c);
  border-radius: 16px;
  color: var(--text-muted);
  text-align: center;
}
.ln-empty .ic { width: 26px; height: 26px; opacity: .55; }
.ln-empty h2 { margin: 4px 0 0; font-size: 18px; color: var(--text); }
.ln-empty p { margin: 0; font-size: 12.5px; }

/* ---------- 真题卷库 ---------- */
.pp-sec { margin-top: 32px; }
.pp-sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.pp-sec-hd h2 { margin: 2px 0 0; font-size: 20px; }
.pp-sec-hd p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-muted); }
.pp-filters { display: flex; gap: 7px; margin-bottom: 14px; }
.pp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pp-card {
  display: flex;
  min-width: 0;
  border: 1px solid var(--line-c);
  border-radius: 15px;
  background: var(--card-bg);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong-c); }
.pp-card-body { display: flex; flex-direction: column; width: 100%; padding: 15px 16px 13px; min-width: 0; }
.pp-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.pp-tag { font-size: 10px; font-weight: 650; letter-spacing: .03em; padding: 2px 8px; border-radius: 99px; background: var(--tint-blue); color: #1d4ed8; }
.pp-tag.online { background: var(--tint-purple); color: #6d28d9; }
.pp-year { font-size: 10.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.pp-card h3 { margin: 0; font-size: 15px; line-height: 1.45; font-weight: 650; }
.pp-org { margin: 4px 0 0; font-size: 11px; color: var(--text-faint); }
.pp-desc { margin: 8px 0 0; font-size: 12px; line-height: 1.65; color: var(--text-muted); flex: 1; }
.pp-card-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 13px; padding-top: 11px; border-top: 1px dashed var(--line-c); }
.pp-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--brand-ink);
  text-decoration: none;
}
.pp-link .ic { width: 12px; height: 12px; }
.pp-link:hover { text-decoration: underline; }
.pp-star { display: grid; place-items: center; width: 26px; height: 26px; border: 0; background: none; border-radius: 8px; color: var(--text-faint); cursor: pointer; }
.pp-star.on { color: #d97706; }
.pp-star .ic { width: 15px; height: 15px; }
.pp-star.on .ic { fill: currentColor; }

.pp-books { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pp-book { align-items: stretch; }
.pp-book-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  flex: none;
  gap: 3px;
  background: linear-gradient(160deg, #1e3a8a, #172554);
  color: #dbeafe;
}
.pp-book-spine span { font-size: 30px; font-weight: 760; line-height: 1; font-variant-numeric: tabular-nums; }
.pp-book-spine em { font-size: 8px; letter-spacing: .16em; font-style: normal; opacity: .7; writing-mode: vertical-rl; }
.pp-book .pp-card-body { padding: 14px 16px; }
.pp-book h3 { font-size: 15.5px; }

.pp-tools { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; margin-top: 32px; }
.pp-tool-card {
  padding: 16px;
  border: 1px solid var(--line-c);
  border-radius: 15px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}
.pp-tool-hd { display: flex; align-items: center; gap: 10px; }
.pp-tool-hd > .ic { width: 20px; height: 20px; color: var(--brand-ink); flex: none; }
.pp-tool-hd div { display: flex; flex-direction: column; gap: 1px; }
.pp-tool-hd b { font-size: 13.5px; }
.pp-tool-hd span { font-size: 11px; color: var(--text-muted); }
.pp-code-row { display: flex; gap: 7px; margin-top: 13px; }
.pp-code-row input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-c);
  border-radius: 9px;
  background: var(--bg2);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  outline: none;
}
.pp-code-row input:focus { border-color: rgb(var(--brand) / .5); background: var(--card-bg); }
.pp-code-out { margin-top: 11px; font-size: 11.5px; color: var(--text-muted); line-height: 1.6; }
.pp-code-res { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.pp-code-res div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line-c); }
.pp-code-res span { color: var(--text-faint); }
.pp-code-res b { font-weight: 600; text-align: right; }
.pp-tool-link { display: flex; flex-direction: column; justify-content: space-between; transition: border-color .18s, transform .18s; }
.pp-tool-link:hover { border-color: var(--line-strong-c); transform: translateY(-2px); }
.pp-tool-go { display: inline-flex; align-items: center; gap: 3px; margin-top: 14px; font-size: 11.5px; color: var(--brand-ink); }
.pp-mini-link { font-size: 11.5px; color: var(--text-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.pp-mini-link:hover { color: var(--brand-ink); }

/* ---------- 答题卡 ---------- */
.ps-page { max-width: 980px; margin: 0 auto; }
.ps-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 14px 0 18px; }
.ps-head h1 { margin: 4px 0 6px; font-size: 28px; }
.ps-head p { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--text-muted); max-width: 560px; }
.ps-sheet { padding: 26px 28px; border: 1px solid var(--line-c); border-radius: 16px; background: var(--card-bg); }
.ps-sheet-hd { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 2px solid rgb(var(--ink)); }
.ps-sheet-hd div:first-child { display: flex; flex-direction: column; }
.ps-sheet-hd b { font-size: 18px; letter-spacing: -.01em; }
.ps-sheet-hd span { font-size: 10.5px; color: var(--text-faint); letter-spacing: .06em; text-transform: uppercase; }
.ps-name { font-size: 11px; color: var(--text-muted); }
.ps-block { margin-top: 22px; }
.ps-block h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px; font-size: 14px; }
.ps-block h2 em { font-style: normal; font-size: 10.5px; font-weight: 400; color: var(--text-faint); }
.ps-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.ps-box { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 2px; border: 1px solid var(--line-c); border-radius: 5px; }
.ps-box i { font-style: normal; font-size: 9px; color: var(--text-faint); }
.ps-box b { display: block; width: 100%; height: 18px; border-bottom: 1px dashed var(--line-strong-c); }
.ps-lines { display: flex; flex-direction: column; gap: 13px; }
.ps-lines span { display: block; border-bottom: 1px solid var(--line-c); height: 1px; }
.ps-note { margin-top: 12px; font-size: 11px; color: var(--text-faint); }

/* =========================================================
   冲鸭
   ========================================================= */
.cy-page { --cy-yellow: #f5b301; --cy-yellow-deep: #b45309; --cy-yellow-soft: #fff8e1; --cy-ink: #2b2410; }
html.dark .cy-page { --cy-yellow: #fbbf24; --cy-yellow-deep: #fcd34d; --cy-yellow-soft: #2d2613; --cy-ink: #f8f3df; }

.cy-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr);
  gap: 24px;
  padding: 34px 36px;
  border: 1px solid var(--line-c);
  border-radius: 24px;
  background:
    radial-gradient(600px 260px at 88% 14%, rgb(245 179 1 / .18), transparent 70%),
    linear-gradient(120deg, rgb(var(--card)), rgb(var(--card) / .82));
  overflow: hidden;
}
.cy-hero-text { position: relative; z-index: 1; }
.cy-hero-text .ln-eyebrow { color: var(--cy-yellow-deep); }
.cy-hero h1 { margin: 12px 0 12px; font-size: clamp(30px, 4vw, 46px); line-height: 1.16; font-weight: 800; }
.cy-hero p { max-width: 620px; margin: 0; font-size: 13.5px; line-height: 1.85; color: var(--text-muted); }
.cy-hero-acts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.cy-hero-mini { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 11.5px; color: var(--text-muted); }
.cy-hero-mini b { color: var(--text); font-size: 15px; font-variant-numeric: tabular-nums; }
.cy-mascot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 210px; }
.cy-duck {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(160deg, #ffe082, #f5b301 70%);
  box-shadow: inset -8px -10px 0 rgb(180 83 9 / .16), 0 18px 34px -16px rgb(180 83 9 / .55);
}
.cy-duck::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 26px;
  height: 18px;
  border-radius: 50% 50% 0 0;
  background: #f5b301;
  transform: translateX(-50%) rotate(-8deg);
}
.cy-duck-eye {
  position: absolute;
  left: 30px;
  top: 38px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b2410;
  box-shadow: 28px 0 0 #2b2410;
}
.cy-duck-beak {
  position: absolute;
  left: 50%;
  top: 60px;
  width: 34px;
  height: 18px;
  border-radius: 6px 6px 14px 14px;
  background: #ea7a1c;
  transform: translateX(-50%);
}
.cy-mascot-word { margin-top: 14px; font-size: 30px; font-weight: 800; letter-spacing: .04em; color: var(--cy-ink); line-height: 1; }
.cy-mascot-sub { margin-top: 5px; font-size: 8.5px; font-weight: 700; letter-spacing: .28em; color: var(--text-faint); }

.cy-mods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.cy-mod {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  border: 1px solid var(--line-c);
  border-radius: 15px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cy-mod:hover { transform: translateY(-2px); border-color: var(--line-strong-c); box-shadow: var(--shadow-sm); }
.cy-mod-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--bg2); color: var(--text-muted); }
.cy-mod.tone-a .cy-mod-ic { background: var(--tint-blue); color: #1d4ed8; }
.cy-mod.tone-b .cy-mod-ic { background: var(--tint-green); color: #0f766e; }
.cy-mod.tone-c .cy-mod-ic { background: var(--tint-warm); color: var(--tint-warm-ink); }
.cy-mod.tone-d .cy-mod-ic { background: var(--tint-purple); color: #6d28d9; }
.cy-mod-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cy-mod-tx b { font-size: 14.5px; }
.cy-mod-tx em { font-style: normal; font-size: 11.5px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-mod-num { text-align: right; }
.cy-mod-num b { display: block; font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cy-mod-num span { font-size: 10px; color: var(--text-faint); }
.cy-mod-go { color: var(--text-faint); }
.cy-mod:hover .cy-mod-go { color: var(--brand-ink); }

.cy-recent { margin-top: 30px; }
.cy-sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.cy-sec-hd h2 { margin: 2px 0 0; font-size: 20px; }
.cy-sec-hd > a { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--text-muted); text-decoration: none; }
.cy-recent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cy-recent-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 15px;
  border: 1px solid var(--line-c);
  border-radius: 13px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color .18s;
}
.cy-recent-card:hover { border-color: var(--line-strong-c); }
.cy-rc-cat { align-self: flex-start; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--bg2); color: var(--text-muted); }
.cy-rc-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cy-rc-tx b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-rc-tx em { font-style: normal; font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-rc-bar { height: 4px; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.cy-rc-bar i { display: block; height: 100%; background: var(--cy-yellow); border-radius: inherit; }
.cy-rc-score { font-size: 10.5px; color: var(--text-faint); }

.cy-how { margin-top: 32px; }
.cy-how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cy-how-step { padding: 17px; border: 1px solid var(--line-c); border-radius: 14px; background: var(--card-bg); }
.cy-how-step span { font-size: 11px; font-weight: 700; color: var(--cy-yellow-deep); font-variant-numeric: tabular-nums; }
.cy-how-step b { display: block; margin-top: 5px; font-size: 14px; }
.cy-how-step p { margin: 6px 0 0; font-size: 12px; line-height: 1.7; color: var(--text-muted); }
.cy-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line-c);
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-faint);
}
.cy-note .ic { width: 13px; height: 13px; flex: none; margin-top: 2px; }

/* ---------- 冲鸭子页头 ---------- */
.cy-subhero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border: 1px solid var(--line-c);
  border-radius: 18px;
  background: linear-gradient(100deg, rgb(245 179 1 / .10), transparent 52%), var(--card-bg);
}
.cy-subhero h1 { margin: 2px 0 7px; font-size: clamp(24px, 3vw, 32px); }
.cy-subhero p { max-width: 640px; margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--text-muted); }
.cy-substats { display: flex; gap: 22px; flex: none; }
.cy-substats div { display: flex; flex-direction: column; align-items: flex-end; }
.cy-substats b { font-size: 23px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cy-substats span { font-size: 10.5px; color: var(--text-faint); margin-top: 2px; }

/* ---------- 题库工具栏 ---------- */
.cy-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid var(--line-c);
  border-radius: 14px;
  background: var(--card-bg);
}
.cy-toolbar .cy-search { flex: 1 1 260px; height: 34px; background: var(--bg2); }
.cy-filter-row { display: flex; align-items: center; gap: 8px; }
.cy-filter-row > span { font-size: 11px; color: var(--text-faint); }
.cy-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.cy-chips .ln-chip { height: 27px; padding: 0 9px; font-size: 11.5px; }
.cy-toolbar-r { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.cy-toolbar-r > span { font-size: 11px; color: var(--text-faint); }
.cy-sel {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-c);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font: inherit;
  font-size: 11.5px;
}
.cy-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.cy-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 150px 20px;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line-c);
  border-radius: 13px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color .16s, transform .16s;
}
.cy-row:hover { border-color: var(--line-strong-c); transform: translateX(2px); }
.cy-row-cat, .cy-pill {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 23px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .03em;
}
.cat-P1 { background: #ecfdf5; color: #047857; }
.cat-P2 { background: #eff6ff; color: #1d4ed8; }
.cat-P3 { background: #f5f3ff; color: #6d28d9; }
html.dark .cat-P1 { background: #122e26; color: #6ee7b7; }
html.dark .cat-P2 { background: #172554; color: #93c5fd; }
html.dark .cat-P3 { background: #2e1e4d; color: #c4b5fd; }
.cy-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cy-row-main b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-row-main em { font-style: normal; font-size: 11px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-row-tags { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.cy-row-tags span { font-size: 9.5px; padding: 2px 6px; border-radius: 99px; background: var(--bg2); color: var(--text-faint); white-space: nowrap; }
.cy-row-tags .fq-h { background: var(--tint-warm); color: var(--tint-warm-ink); }
.cy-row-tags .fq-m { background: var(--tint-purple); color: #6d28d9; }
.cy-row-prog { display: flex; flex-direction: column; gap: 4px; }
.cy-row-prog > span { font-size: 9.5px; color: var(--text-faint); }
.cy-mini-bar { height: 4px; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.cy-mini-bar i { display: block; height: 100%; border-radius: inherit; background: var(--cy-yellow); }
.cy-row-go { color: var(--text-faint); display: grid; place-items: center; }
.cy-row-go .ic { width: 15px; height: 15px; }
.cy-more { display: flex; justify-content: center; margin-top: 14px; }

/* =========================================================
   阅读器
   ========================================================= */
#view:not(.no-anim) .cy-reader { animation: ln-in .3s cubic-bezier(.22, .8, .28, 1) both; }
.cy-reader-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line-c);
}
.cy-rt-side { display: flex; align-items: center; gap: 6px; }
.cy-rt-side .ln-back { margin: 0 6px 0 0; }
.cy-pill { background: var(--bg2); color: var(--text-muted); font-weight: 600; }
.cy-rt-title { min-width: 0; }
.cy-rt-title h1 { margin: 0; font-size: 20px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-rt-title p { margin: 2px 0 0; font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-rt-acts { display: flex; align-items: center; gap: 10px; }
.cy-timer { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); letter-spacing: .02em; }
.cy-reader-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 11px;
  color: var(--text-faint);
}
.cy-reader-bar > span + span::before { content: "·"; margin-right: 10px; color: var(--line-strong-c); }
.cy-bar-sp { flex: 1; }
.cy-textbtn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  padding: 4px 6px;
  border-radius: 6px;
  font: inherit;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
}
.cy-textbtn:hover { background: var(--bg2); color: var(--text); }
.cy-textbtn .ic { width: 12px; height: 12px; }
.cy-reader-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
  gap: 18px;
  align-items: start;
  margin-top: 12px;
}
.cy-doc {
  border: 1px solid var(--line-c);
  border-radius: 15px;
  background: var(--card-bg);
  overflow: hidden;
}
.cy-doc-hd {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line-c);
  background: var(--bg2);
}
.cy-doc-hd span { font-size: 9.5px; font-weight: 700; letter-spacing: .14em; color: var(--text-faint); }
.cy-doc-hd em { font-style: normal; font-size: 10.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-doc-body {
  padding: 24px 30px 28px;
  max-height: calc(100vh - 220px);
  overflow: auto;
  scroll-behavior: smooth;
}
.cy-doc-body::-webkit-scrollbar { width: 8px; }
.cy-doc-body::-webkit-scrollbar-thumb { background: var(--line-strong-c); border-radius: 99px; }
.cy-doc-sec + .cy-doc-sec { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--line-c); }
.cy-p {
  margin: 0 0 15px;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  letter-spacing: .002em;
}
.cy-p:last-child { margin-bottom: 0; }
.cy-label {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-right: 8px;
  border-radius: 5px;
  background: var(--bg2);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 750;
  vertical-align: 2px;
}
.cy-doc-sub {
  margin: 18px 0 12px;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cy-notes { border-top: 1px solid var(--line-c); }
.cy-notes summary { display: flex; align-items: center; gap: 6px; padding: 12px 30px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.cy-notes summary .ic { width: 14px; height: 14px; }
.cy-notes-body { padding: 0 30px 18px; }
.cy-para-note { padding: 9px 0; border-top: 1px dashed var(--line-c); }
.cy-para-note b { font-size: 11px; color: var(--text-faint); }
.cy-para-note p { margin: 3px 0 0; font-size: 12px; line-height: 1.75; color: var(--text-muted); }

.cy-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cy-score {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 11px 14px;
  border: 1px solid var(--line-c);
  border-radius: 12px;
  background: var(--card-bg);
}
.cy-score b { font-size: 19px; line-height: 1; font-variant-numeric: tabular-nums; }
.cy-score span { font-size: 10px; color: var(--text-faint); }
.cy-score span:not(:last-of-type) { margin-right: 4px; }
.cy-score em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 650; color: var(--cy-yellow-deep); }
.cy-qlist { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 230px); overflow: auto; padding-right: 2px; }
.cy-qlist::-webkit-scrollbar { width: 7px; }
.cy-qlist::-webkit-scrollbar-thumb { background: var(--line-strong-c); border-radius: 99px; }
.cy-group { flex: 0 0 auto; border: 1px solid var(--line-c); border-radius: 13px; background: var(--card-bg); overflow: hidden; }
.cy-group-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-c);
  background: var(--bg2);
}
.cy-group-hd span { font-size: 9.5px; font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cy-group-hd b { font-size: 11.5px; font-weight: 650; }
.cy-q { padding: 13px 15px; border-bottom: 1px solid var(--line-c); }
.cy-q:last-child { border-bottom: 0; }
.cy-q.is-ok { background: linear-gradient(90deg, rgb(16 185 129 / .05), transparent 60%); }
.cy-q.is-bad { background: linear-gradient(90deg, rgb(239 68 68 / .045), transparent 60%); }
.cy-q-head { display: flex; gap: 9px; align-items: flex-start; }
.cy-q-n {
  display: grid;
  place-items: center;
  flex: none;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: var(--bg3);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.cy-q.is-ok .cy-q-n { background: #d1fae5; color: #047857; }
.cy-q.is-bad .cy-q-n { background: #fee2e2; color: #b91c1c; }
html.dark .cy-q.is-ok .cy-q-n { background: #064e3b; color: #6ee7b7; }
html.dark .cy-q.is-bad .cy-q-n { background: #4c1d1d; color: #fca5a5; }
.cy-q-prompt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cy-q-prompt b { font-size: 12.5px; line-height: 1.6; font-weight: 550; }
.cy-q-prompt em { font-style: normal; font-size: 10.5px; color: var(--text-faint); }
.cy-q-body { margin-top: 8px; padding-left: 32px; }
.cy-opts { display: flex; flex-wrap: wrap; gap: 5px; }
.cy-opt {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 3px 10px;
  border: 1px solid var(--line-c);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text-muted);
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  transition: all .14s;
}
.cy-opt:hover { border-color: var(--line-strong-c); color: var(--text); }
.cy-opt.sel { border-color: rgb(var(--brand) / .55); background: var(--brand-soft-c); color: var(--brand-ink); }
.cy-opt.right { border-color: #10b981; background: #ecfdf5; color: #047857; }
html.dark .cy-opt.right { background: #064e3b; color: #6ee7b7; }
.cy-opt b { font-size: 11px; }
.cy-opts-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.cy-opts-head .cy-opt { justify-content: flex-start; text-align: left; }
.cy-opts-head .cy-opt span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-head-pick { position: relative; }
.cy-select {
  width: 100%;
  height: 34px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line-c);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 14px) 14px, calc(100% - 9px) 14px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.cy-select:focus { border-color: rgb(var(--brand) / .55); }
.cy-select:disabled { opacity: .75; cursor: default; }
.cy-opts-text { display: grid; grid-template-columns: 1fr; gap: 4px; }
.cy-opts-text .cy-opt { width: 100%; justify-content: flex-start; text-align: left; padding: 6px 10px; line-height: 1.5; }
.cy-opts-text .cy-opt b { flex: 0 0 16px; text-align: center; }
.cy-opts-text .cy-opt span { white-space: normal; }
.cy-opts-judge .cy-opt { flex-direction: column; gap: 0; min-width: 64px; padding: 5px 9px; }
.cy-opts-judge .cy-opt b { font-size: 10px; letter-spacing: .02em; }
.cy-opts-judge .cy-opt span { font-size: 9px; color: var(--text-faint); }
.cy-fill { display: flex; gap: 6px; }
.cy-input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line-c);
  border-radius: 8px;
  background: var(--bg2);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  outline: none;
}
.cy-input:focus { border-color: rgb(var(--brand) / .55); background: var(--card-bg); }
.cy-qres { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: var(--bg2); }
.cy-qres.ok { background: #ecfdf5; }
.cy-qres.bad { background: #fef2f2; }
html.dark .cy-qres.ok { background: #0b2d24; }
html.dark .cy-qres.bad { background: #2d1616; }
.cy-qres-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.cy-qres-top .ic { width: 14px; height: 14px; }
.cy-qres.ok .cy-qres-top { color: #047857; }
.cy-qres.bad .cy-qres-top { color: #b91c1c; }
html.dark .cy-qres.ok .cy-qres-top { color: #6ee7b7; }
html.dark .cy-qres.bad .cy-qres-top { color: #fca5a5; }
.cy-qres-top b { font-size: 11.5px; }
.cy-qres-top span { font-size: 10px; color: var(--text-faint); margin-left: auto; }
.cy-qres p { margin: 6px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--text-muted); }
.cy-self { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding-top: 7px; border-top: 1px dashed var(--line-c); }
.cy-self span { font-size: 10px; color: var(--text-faint); }
.cy-self button { border: 0; background: none; font: inherit; font-size: 10.5px; color: var(--brand-ink); cursor: pointer; padding: 2px 0; }
.cy-self button:hover { text-decoration: underline; }
.cy-side-foot { display: flex; flex-direction: column; gap: 5px; padding: 4px 0 11px; }
.cy-side-foot span { font-size: 9.5px; color: var(--text-faint); text-align: center; }

.cy-extra-mask {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(8 12 20 / .45);
  backdrop-filter: blur(3px);
}
.cy-extra-mask[hidden] { display: none; }
.cy-extra-panel {
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(80vh, 720px);
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cy-extra-hd { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line-c); }
.cy-extra-hd b { font-size: 14px; }
.cy-extra-hd button { border: 0; background: none; color: var(--text-muted); cursor: pointer; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; }
.cy-extra-hd button:hover { background: var(--bg2); }
.cy-extra-body { padding: 18px 22px 24px; overflow: auto; }
.cy-extra-body .cy-p { font-size: 12.5px; line-height: 1.7; }
.cy-extra-body .cy-doc-sub { margin-top: 12px; }
.cy-muted { color: var(--text-faint); font-size: 12px; }

/* ---------- 词卡 ---------- */
.cy-word-layout { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 16px; align-items: start; margin-top: 16px; }
.cy-word-stage {
  min-height: 430px;
  border: 1px solid var(--line-c);
  border-radius: 18px;
  background:
    radial-gradient(500px 240px at 50% 0%, rgb(245 179 1 / .10), transparent 70%),
    var(--card-bg);
  overflow: hidden;
}
.cy-word-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 430px; padding: 30px 28px; text-align: center; }
.cy-word-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: auto; font-size: 10.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cy-word-word { margin-top: 18px; font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--text); }
.cy-word-pos { margin-top: 6px; font-size: 12px; color: var(--text-faint); font-style: italic; }
.cy-word-mean { margin-top: 22px; max-width: 520px; font-size: 18px; line-height: 1.6; color: var(--text); }
.cy-word-syn { margin-top: 12px; max-width: 560px; font-size: 12px; line-height: 1.7; color: var(--text-muted); padding: 8px 13px; border-radius: 9px; background: var(--bg2); }
.cy-word-syn span { display: block; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 2px; }
.cy-reveal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  padding: 10px 18px;
  border: 1px dashed var(--line-strong-c);
  border-radius: 10px;
  background: var(--card-bg);
  color: var(--text-muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.cy-reveal:hover { border-color: var(--cy-yellow); color: var(--text); }
kbd {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--line-strong-c);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg2);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-faint);
}
.cy-word-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.cy-word-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 430px; padding: 34px 30px; text-align: center; }
.cy-word-badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--cy-yellow-soft); color: var(--cy-yellow-deep); }
.cy-word-badge .ic { width: 25px; height: 25px; }
.cy-word-empty h2 { margin: 13px 0 7px; font-size: 22px; }
.cy-word-empty > p { max-width: 480px; margin: 0; font-size: 12.5px; line-height: 1.8; color: var(--text-muted); }
.cy-word-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.cy-check { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-muted); cursor: pointer; }
.cy-check input { accent-color: var(--cy-yellow); }
.cy-word-mini { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 20px; font-size: 11px; color: var(--text-faint); }
.cy-word-mini b { color: var(--text); font-size: 14px; }
.cy-word-side { display: flex; flex-direction: column; gap: 10px; }
.cy-side-card { padding: 13px 14px; border: 1px solid var(--line-c); border-radius: 13px; background: var(--card-bg); }
.cy-side-card .cy-score { border: 0; padding: 0; background: none; }
.cy-side-bar { height: 5px; margin-top: 10px; border-radius: 99px; background: var(--bg3); overflow: hidden; }
.cy-side-bar i { display: block; height: 100%; background: var(--cy-yellow); border-radius: inherit; }
.cy-side-card p { margin: 8px 0 0; font-size: 10.5px; line-height: 1.6; color: var(--text-faint); }
.cy-side-t { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 650; }
.cy-chips-col { flex-direction: column; }
.cy-chips-col .ln-chip { justify-content: flex-start; width: 100%; }
.cy-side-tip { display: flex; gap: 7px; background: var(--cy-yellow-soft); border-color: var(--tint-warm-line); }
.cy-side-tip .ic { width: 14px; height: 14px; color: var(--cy-yellow-deep); flex: none; margin-top: 1px; }
.cy-side-tip p { margin: 0; color: var(--cy-yellow-deep); }
.cy-word-all { margin-top: 26px; }
.cy-word-search { max-width: 380px; margin-bottom: 12px; }
.cy-word-list-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cy-word-list-hd h2 { margin: 0; font-size: 16px; }
.cy-word-list-hd em { font-style: normal; font-size: 11px; color: var(--text-faint); margin-left: 4px; }
.cy-word-legend { display: flex; gap: 10px; font-size: 10px; color: var(--text-faint); }
.cy-word-legend .st-know::before, .cy-word-legend .st-review::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 4px; }
.cy-word-legend .st-know::before { background: #10b981; }
.cy-word-legend .st-review::before { background: #f59e0b; }
.cy-word-table { border: 1px solid var(--line-c); border-radius: 12px; overflow: hidden; background: var(--card-bg); }
.cy-wrow { display: grid; grid-template-columns: 40px 150px minmax(0, 1fr) minmax(0, 1.2fr) 130px; align-items: center; gap: 10px; padding: 8px 13px; border-bottom: 1px solid var(--line-c); }
.cy-wrow:last-child { border-bottom: 0; }
.cy-wrow.st-know { background: rgb(16 185 129 / .035); }
.cy-wrow.st-review { background: rgb(245 158 11 / .04); }
.cy-wrow-no { font-size: 10px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cy-wrow-w { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.cy-wrow-w b { font-size: 13px; }
.cy-wrow-w em { font-style: italic; font-size: 10px; color: var(--text-faint); }
.cy-wrow-m { font-size: 11.5px; color: var(--text-muted); }
.cy-wrow-y { font-size: 10.5px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cy-wrow-st { display: flex; gap: 4px; justify-content: flex-end; }
.cy-wrow-st button { border: 1px solid var(--line-c); background: var(--card-bg); border-radius: 6px; padding: 3px 7px; font: inherit; font-size: 9.5px; color: var(--text-faint); cursor: pointer; }
.cy-wrow-st button.on { background: var(--bg3); color: var(--text); border-color: var(--line-strong-c); }

/* ---------- 写作题库 / 编辑器 ---------- */
.cy-wtabs { display: flex; gap: 4px; margin-top: 16px; padding: 4px; border: 1px solid var(--line-c); border-radius: 12px; background: var(--card-bg); width: fit-content; }
.cy-wtab { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font: inherit; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.cy-wtab span { font-size: 10px; color: var(--text-faint); }
.cy-wtab.on { background: rgb(var(--ink)); color: rgb(var(--card)); }
.cy-wtab.on span { color: rgb(var(--card) / .6); }
.cy-wtoolbar { margin-top: 12px; }
.cy-wlist { display: flex; flex-direction: column; gap: 8px; margin-top: 13px; }
.cy-wcard {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 120px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line-c);
  border-radius: 13px;
  background: var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color .16s, transform .16s;
}
.cy-wcard:hover { border-color: var(--line-strong-c); transform: translateX(2px); }
.cy-wc-no { font-size: 13px; font-weight: 700; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cy-wc-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cy-wc-tags { display: flex; gap: 5px; }
.cy-wc-tags span { font-size: 9px; padding: 1px 6px; border-radius: 99px; background: var(--bg2); color: var(--text-faint); }
.cy-wc-main b { font-size: 12.5px; line-height: 1.6; font-weight: 550; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cy-wc-main em { font-style: normal; font-size: 10.5px; color: var(--text-faint); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.cy-wc-side { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.cy-wc-side span { font-size: 10px; color: var(--text-faint); white-space: nowrap; }
.cy-wc-done { color: #047857 !important; display: inline-flex; align-items: center; gap: 2px; }
.cy-wc-done .ic { width: 12px; height: 12px; }
.cy-wc-draft { color: var(--cy-yellow-deep) !important; }
.cy-wc-go { color: var(--text-faint); }
.cy-t1grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.cy-t1card { display: flex; flex-direction: column; border: 1px solid var(--line-c); border-radius: 12px; overflow: hidden; background: var(--card-bg); color: var(--text); text-decoration: none; transition: transform .18s, border-color .18s; }
.cy-t1card:hover { transform: translateY(-2px); border-color: var(--line-strong-c); }
.cy-t1card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; background: var(--bg2); }
.cy-t1card-b { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 10px; }
.cy-t1card-b b { font-size: 11px; }
.cy-t1card-b span { font-size: 9.5px; color: var(--text-faint); }

#view:not(.no-anim) .cy-write { animation: ln-in .3s ease both; }
.cy-write-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0 12px; border-bottom: 1px solid var(--line-c); }
.cy-wt-l, .cy-wt-r { display: flex; align-items: center; gap: 8px; }
.cy-wt-l .ln-back { margin: 0; }
.cy-wtimer { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cy-wsave { font-size: 10px; color: var(--text-faint); }
.cy-write-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 18px; align-items: start; margin-top: 16px; }
.cy-prompt { padding: 22px 24px; border: 1px solid var(--line-c); border-radius: 16px; background: var(--card-bg); position: sticky; top: calc(var(--hdr-h) + 16px); }
.cy-prompt h1 { margin: 8px 0 10px; font-size: 19px; line-height: 1.55; font-weight: 650; }
.cy-prompt-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.cy-prompt-meta span { font-size: 10px; padding: 2px 7px; border-radius: 99px; background: var(--bg2); color: var(--text-faint); }
.cy-prompt-cn { margin-top: 13px; }
.cy-prompt-cn summary { font-size: 11.5px; color: var(--text-muted); cursor: pointer; }
.cy-prompt-cn p { margin: 7px 0 0; font-size: 12px; line-height: 1.8; color: var(--text-muted); }
.cy-prompt-text { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: var(--text-muted); }
.cy-t1img { display: block; margin-top: 13px; border: 1px solid var(--line-c); border-radius: 9px; overflow: hidden; }
.cy-t1img img { display: block; width: 100%; height: auto; }
.cy-checklist { margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--line-c); }
.cy-checklist > b { display: block; font-size: 11.5px; margin-bottom: 7px; }
.cy-checklist label { display: flex; align-items: flex-start; gap: 7px; padding: 5px 0; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); cursor: pointer; }
.cy-checklist input { margin-top: 2px; accent-color: var(--cy-yellow); }
.cy-editor { display: flex; flex-direction: column; border: 1px solid var(--line-c); border-radius: 16px; background: var(--card-bg); overflow: hidden; }
.cy-editor-bar { display: flex; align-items: center; gap: 14px; padding: 9px 15px; border-bottom: 1px solid var(--line-c); background: var(--bg2); font-size: 10.5px; color: var(--text-faint); }
.cy-editor-bar span:first-child { color: var(--text); font-weight: 650; font-size: 11px; }
.cy-editor-tip { margin-left: auto; }
.cy-textarea {
  width: 100%;
  min-height: 560px;
  padding: 22px 24px;
  border: 0;
  outline: 0;
  resize: vertical;
  background: var(--card-bg);
  color: var(--text);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 16px;
  line-height: 1.85;
}
.cy-textarea::placeholder { color: var(--text-faint); font-family: var(--font); font-size: 13px; line-height: 1.8; }
.cy-editor-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 15px; border-top: 1px solid var(--line-c); font-size: 10px; color: var(--text-faint); }
.cy-editor-status { color: var(--cy-yellow-deep); }

/* ---------- 备考计划 ---------- */
.cy-plan-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 26px 28px;
  border: 1px solid var(--line-c);
  border-radius: 18px;
  background: linear-gradient(110deg, rgb(245 179 1 / .12), transparent 55%), var(--card-bg);
}
.cy-plan-count .ln-eyebrow { color: var(--cy-yellow-deep); }
.cy-plan-count b { display: block; margin-top: 6px; font-size: 54px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.cy-plan-count span { font-size: 12px; color: var(--text-muted); }
.cy-plan-count p { margin: 7px 0 0; font-size: 11.5px; color: var(--text-faint); }
.cy-plan-set { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 9px; }
.cy-plan-set label { display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: var(--text-faint); }
.cy-plan-set input, .cy-plan-set select { height: 34px; padding: 0 9px; border: 1px solid var(--line-c); border-radius: 8px; background: var(--bg2); color: var(--text); font: inherit; font-size: 12px; }
.cy-plan-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.cy-plan-stats div { padding: 13px 15px; border: 1px solid var(--line-c); border-radius: 12px; background: var(--card-bg); }
.cy-plan-stats b { display: block; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cy-plan-stats span { font-size: 10.5px; color: var(--text-faint); }
.cy-plan-today { margin-top: 28px; }
.cy-plan-date { font-size: 11px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.cy-ptasks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cy-ptask {
  display: grid;
  grid-template-columns: 20px 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 13px 14px;
  border: 1px solid var(--line-c);
  border-radius: 12px;
  background: var(--card-bg);
  cursor: pointer;
  transition: border-color .16s, background .16s;
}
.cy-ptask input { accent-color: var(--cy-yellow); }
.cy-ptask.on { border-color: rgb(245 179 1 / .45); background: var(--cy-yellow-soft); }
.cy-ptask-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--bg2); color: var(--text-muted); }
.cy-ptask.on .cy-ptask-ic { background: var(--card-bg); color: var(--cy-yellow-deep); }
.cy-ptask-ic .ic { width: 16px; height: 16px; }
.cy-ptask-tx { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cy-ptask-tx b { font-size: 12.5px; }
.cy-ptask-tx em { font-style: normal; font-size: 10px; color: var(--text-faint); }
.cy-ptask-go { color: var(--text-faint); display: grid; place-items: center; }
.cy-ptask-go:hover { color: var(--brand-ink); }
.cy-plan-note { display: flex; align-items: center; gap: 5px; margin: 10px 0 0; font-size: 10.5px; color: var(--text-faint); }
.cy-plan-note .ic { width: 12px; height: 12px; }
.cy-plan-phases { margin-top: 32px; }
.cy-phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cy-phase { padding: 15px 15px 17px; border: 1px solid var(--line-c); border-radius: 13px; background: var(--card-bg); }
.cy-phase-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cy-phase-top span { font-size: 10px; font-weight: 750; color: var(--cy-yellow-deep); font-variant-numeric: tabular-nums; }
.cy-phase-top em { font-style: normal; font-size: 9.5px; color: var(--text-faint); }
.cy-phase h3 { margin: 6px 0 8px; font-size: 14px; }
.cy-phase ul { margin: 0; padding-left: 15px; }
.cy-phase li { margin: 5px 0; font-size: 11px; line-height: 1.6; color: var(--text-muted); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .ln-hero { grid-template-columns: 1fr; padding: 28px; }
  .ln-hero-stats { grid-template-columns: repeat(4, 1fr); }
  .ln-entries { grid-template-columns: 1fr 1fr; }
  .ln-entries .ln-entry:first-child { grid-column: span 2; min-height: 160px; }
  .pp-grid { grid-template-columns: 1fr 1fr; }
  .pp-tools { grid-template-columns: 1fr 1fr; }
  .pp-tool-card:first-child { grid-column: span 2; }
  .cy-reader-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); }
  .cy-wrow { grid-template-columns: 34px 130px minmax(0, 1fr) 110px; }
  .cy-wrow-y { display: none; }
  .cy-phases { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body.learn-mode .shell { padding-left: 18px; padding-right: 18px; }
  .ln-nav { border-radius: 12px; }
  .ln-hero { padding: 24px 22px; border-radius: 18px; }
  .ln-hero-stats { grid-template-columns: 1fr 1fr; }
  .ln-stat b { font-size: 21px; }
  .ln-entries, .ln-today-grid, .cy-mods, .cy-recent-grid, .cy-how-grid { grid-template-columns: 1fr; }
  .ln-entries .ln-entry:first-child { grid-column: auto; }
  .ln-continue { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .ln-continue-bar { display: none; }
  .ln-res-grid { grid-template-columns: 1fr; }
  .pp-grid, .pp-books, .pp-tools { grid-template-columns: 1fr; }
  .pp-tool-card:first-child { grid-column: auto; }
  .pp-sec-hd { flex-direction: column; align-items: stretch; }
  .pp-search { width: 100%; }
  .ps-head { flex-direction: column; }
  .ps-sheet { padding: 18px 14px; }
  .ps-grid { grid-template-columns: repeat(5, 1fr); }
  .cy-hero { grid-template-columns: 1fr; padding: 24px 22px; }
  .cy-mascot { display: none; }
  .cy-subhero { flex-direction: column; align-items: stretch; gap: 14px; }
  .cy-substats { justify-content: flex-start; }
  .cy-substats div { align-items: flex-start; }
  .cy-toolbar-r { margin-left: 0; width: 100%; justify-content: space-between; }
  .cy-row { grid-template-columns: 38px minmax(0, 1fr) 18px; }
  .cy-row-tags, .cy-row-prog { display: none; }
  .cy-reader-grid { grid-template-columns: 1fr; }
  .cy-doc-body { max-height: none; }
  .cy-qlist { max-height: none; }
  .cy-reader-top { grid-template-columns: 1fr auto; }
  .cy-rt-title { grid-column: 1 / -1; grid-row: 2; }
  .cy-rt-title h1 { white-space: normal; font-size: 18px; }
  .cy-reader-bar { flex-wrap: wrap; }
  .cy-word-layout { grid-template-columns: 1fr; }
  .cy-word-side { flex-direction: row; flex-wrap: wrap; }
  .cy-side-card { flex: 1 1 180px; }
  .cy-word-stage, .cy-word-card, .cy-word-empty { min-height: 380px; }
  .cy-wrow { grid-template-columns: 30px 110px minmax(0, 1fr); }
  .cy-wrow-y, .cy-wrow-st { display: none; }
  .cy-write-grid { grid-template-columns: 1fr; }
  .cy-prompt { position: static; }
  .cy-textarea { min-height: 420px; }
  .cy-t1grid { grid-template-columns: 1fr 1fr; }
  .cy-plan-hero { grid-template-columns: 1fr; }
  .cy-plan-set { width: 100%; }
  .cy-plan-stats { grid-template-columns: 1fr 1fr; }
  .cy-ptasks { grid-template-columns: 1fr; }
  .cy-phases { grid-template-columns: 1fr; }
  .cy-wcard { grid-template-columns: 34px minmax(0, 1fr); }
  .cy-wc-side { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ln-hero h1 { font-size: 28px; }
  .ln-hero-stats { grid-template-columns: 1fr 1fr; }
  .ln-stat { padding: 11px 12px; }
  .ln-stat b { font-size: 19px; }
  .ln-nav-a { height: 31px; padding: 0 10px; font-size: 12px; }
  .ln-nav-a .ic { display: none; }
  .ln-today-hd h2, .ln-sec-hd h2 { font-size: 17px; }
  .ln-res-search { width: 100%; }
  .ln-res-cats { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .pp-code-res { grid-template-columns: 1fr; }
  .ps-name { display: none; }
  .cy-subhero { padding: 18px; }
  .cy-substats { gap: 14px; }
  .cy-rt-acts .cy-timer { font-size: 15px; }
  .cy-timer { font-size: 15px; }
  .cy-reader-bar > span:nth-child(2) { display: none; }
  .cy-q-body { padding-left: 0; }
  .cy-opts-head { grid-template-columns: 1fr; }
  .cy-wrow { grid-template-columns: 26px minmax(0, 1fr); }
  .cy-wrow-m { grid-column: 2; }
  .cy-wrow-st { display: flex; grid-column: 2; justify-content: flex-start; }
  .cy-t1grid { grid-template-columns: 1fr; }
  .cy-wt-r .cy-wsave { display: none; }
  .cy-write-top { flex-wrap: wrap; }
  .cy-editor-tip { display: none; }
  .cy-textarea { min-height: 360px; padding: 16px; font-size: 15px; }
}

/* ---------- 打印答题卡 ---------- */
@media print {
  header, footer, .tabbar, .drawer, .ln-nav, .ps-head .btn, .ln-page > .ln-back, #toastRoot, #modalRoot { display: none !important; }
  body, html { background: #fff !important; }
  .shell { display: block !important; padding: 0 !important; max-width: none !important; }
  .rail-left, .rail-right { display: none !important; }
  .ps-page { max-width: none; }
  .ps-sheet { border: 0; padding: 0; }
  .ps-block { break-inside: avoid; }
  .ps-grid { gap: 3px; }
  .ps-box { border-color: #999; }
  .ps-lines span { border-color: #bbb; }
  .ps-note { display: none; }
}

/* 学习/冲鸭页面的轻量入场：只动 transform/opacity */
@keyframes lnRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lnPop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
#view:not(.no-anim) .ln-page .ln-hero, #view:not(.no-anim) .ln-page .pp-hero, #view:not(.no-anim) .ln-page .cy-hero, #view:not(.no-anim) .ln-page .ps-head { animation: lnPop .5s var(--ease-page, cubic-bezier(.22,1,.36,1)) both; }
#view:not(.no-anim) .ln-page .ln-entries .ln-entry, #view:not(.no-anim) .ln-page .ln-res-grid .ln-res, #view:not(.no-anim) .ln-page .pp-grid > *, #view:not(.no-anim) .ln-page .cy-word, #view:not(.no-anim) .ln-page .cy-wcard { animation: lnRise .46s var(--ease-page, cubic-bezier(.22,1,.36,1)) both; }
.ln-page .ln-entries .ln-entry:nth-child(2) { animation-delay: 50ms; }
.ln-page .ln-entries .ln-entry:nth-child(3) { animation-delay: 100ms; }
.ln-page .ln-entries .ln-entry:nth-child(4) { animation-delay: 150ms; }
.ln-page .ln-res-grid .ln-res:nth-child(2n), .ln-page .pp-grid > *:nth-child(2n) { animation-delay: 60ms; }
.ln-page .ln-res-grid .ln-res:nth-child(3n), .ln-page .pp-grid > *:nth-child(3n) { animation-delay: 120ms; }
@media (prefers-reduced-motion: reduce) { .ln-page .ln-hero, .ln-page .pp-hero, .ln-page .cy-hero, .ln-page .ps-head, .ln-page .ln-entries .ln-entry, .ln-page .ln-res-grid .ln-res, .ln-page .pp-grid > *, .ln-page .cy-word, .ln-page .cy-wcard { animation: none !important; } }
