:root {
  --bg: #f7f4ee;
  --paper: #fffdf8;
  --ink: #202124;
  --muted: #74706a;
  --line: #e6ded2;
  --accent: #1f6f68;
  --accent-soft: #dcebe7;
  --warm: #9d6b1d;
  --shadow: 0 22px 70px rgba(75, 62, 45, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 6%, rgba(31, 111, 104, .12), transparent 34%),
    linear-gradient(180deg, #fbf8f2 0%, var(--bg) 64%, #f0e8dc 100%);
  font-family: "LXGW WenKai Screen", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

button, input {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

button:hover {
  transform: translateY(-1px);
  border-color: #cbbda8;
}

.page {
  width: min(1040px, calc(100vw - 30px));
  margin: 0 auto;
  padding: 34px 0 46px;
}

.hero {
  margin-bottom: 20px;
}

.back {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -.055em;
}

.lead {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.toolbar,
.stats,
.card,
.timerPanel,
.listPanel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 253, 248, .78);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  position: sticky;
  top: 10px;
  z-index: 5;
  backdrop-filter: blur(14px);
}

.filter.active,
.primary {
  border-color: transparent;
  background: var(--accent);
  color: white;
}

.search {
  flex: 1 1 220px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--ink);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 14px;
  overflow: hidden;
}

.stats div {
  padding: 16px;
}

.stats strong {
  display: block;
  font-size: 28px;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.card {
  margin-top: 14px;
  padding: clamp(18px, 4vw, 32px);
  box-shadow: var(--shadow);
}

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

.badge {
  display: inline-flex;
  margin-right: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.badge.muted {
  background: #f0eadf;
  color: var(--muted);
}

.iconBtn {
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 24px;
}

.iconBtn.on {
  color: var(--warm);
  background: #fff2d6;
}

.topic {
  margin: 28px 0 8px;
  color: var(--accent);
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.questionZh {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.bundle {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #f2ecdf;
  color: var(--warm);
}

.cueList,
.followBox ul {
  margin: 22px 0 0;
  padding-left: 22px;
  color: #3c3a36;
  line-height: 1.75;
}

.followBox,
.answerBox {
  margin-top: 22px;
  padding: 18px;
  border-radius: 22px;
  background: #f5efe5;
}

.followBox h3,
.answerBox h3,
.listHead h3 {
  margin: 0 0 10px;
}

.answerBox p {
  color: #3c3a36;
  line-height: 1.8;
  white-space: pre-wrap;
}

.actions,
.timerActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.timerPanel {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 18px;
}

.timer span {
  display: block;
  color: var(--muted);
}

.timer strong {
  display: block;
  margin-top: 4px;
  font-size: 36px;
  letter-spacing: -.04em;
}

.listPanel {
  margin-top: 14px;
  padding: 18px;
}

.listHead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
}

.miniList {
  display: grid;
  gap: 8px;
  max-height: 290px;
  overflow: auto;
}

.miniItem {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border-radius: 18px;
  padding: 12px;
}

.miniItem.current {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.miniItem small {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

@media (max-width: 720px) {
  .page { width: min(100vw - 22px, 1040px); padding-top: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .timerPanel { align-items: stretch; flex-direction: column; }
  .actions button, .timerActions button { flex: 1 1 140px; }
}
