:root {
  --red: #8b1a1a;
  --red2: #a61b29;
  --gold: #c4a35a;
  --bg: #f6f5f3;
  --card: #ffffff;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e8e4df;
  --ok: #2f6b3a;
  --bad: #a61b29;
  --blue: #2a6f97;
  --radius: 10px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --num: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(108px + var(--safe-bottom));
}
body.quiz-page { padding-bottom: calc(72px + var(--safe-bottom)); }
h1, h2, h3 {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
}
h2, h3 { color: var(--text); }
.site-banner {
  background: linear-gradient(135deg, #b22234 0%, #8b1a1a 55%, #6b1414 100%);
  color: #fff;
  padding: 18px 16px 0;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}
.site-banner::after {
  content: "";
  position: absolute; right: -20px; bottom: 8px;
  width: 180px; height: 110px;
  background:
    repeating-linear-gradient(-32deg, rgba(255,255,255,.07) 0 2px, transparent 2px 8px);
  opacity: .7;
  pointer-events: none;
}
.site-banner::before {
  content: "";
  position: absolute; right: 36px; top: -30px;
  width: 120px; height: 120px; border-radius: 50%;
  background: rgba(255,255,255,.1);
}
.banner-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.banner-inner { align-items: center; }
.banner-card {
  flex-shrink: 0;
  min-width: 114px;
  max-width: 44%;
  text-decoration: none;
  color: #b22234;
  text-align: right;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.16);
  position: relative;
  z-index: 2;
}
.bc-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: .16em;
  color: #8f959e;
  margin-bottom: 2px;
}
.banner-card strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: #b22234;
}
.bc-theme {
  display: block;
  font-size: 11px;
  color: #646a73;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-status {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fdf6f6;
  color: #b22234;
}
.bc-status.run { background: #b22234; color: #fff; }
.bc-status.end { background: #f3f3f3; color: #646a73; }
.bc-dots {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
}
.bc-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: #ead9d9;
}
.bc-dots i.on { background: #c4a35a; }
.bc-dots i.now { background: #b22234; }
.banner-wave {
  display: block;
  width: 100%;
  height: 26px;
  position: relative;
  z-index: 1;
  margin-top: 10px;
}
.desk-pet {
  position: fixed;
  right: 8px;
  bottom: calc(62px + var(--safe-bottom));
  z-index: 34;
  width: 92px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: 70% 90%;
  animation: desk-idle 3.4s ease-in-out infinite;
}
.desk-pet img {
  width: 92px;
  height: auto;
  display: block;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
  /* 不再使用 mix-blend-mode: screen —— 素材本身已是透明 PNG，
     加了之后动画结束（元素不再是合成层）会被浅色背景"洗白"，看起来像消失 */
  opacity: 1;
  visibility: visible;
}
.desk-pet-bubble {
  position: absolute;
  right: 78px;
  bottom: 48px;
  max-width: 140px;
  padding: 6px 10px;
  border-radius: 12px 12px 4px 12px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 6px 16px rgba(43,43,43,.12);
  white-space: nowrap;
}
.desk-pet-bubble[hidden] { display: none; }
.desk-pet.wave { animation: desk-wave .9s ease-in-out; }
.desk-pet.smile { animation: desk-smile .7s ease; }
.desk-pet.study { animation: desk-nod 1s ease-in-out; }
@keyframes desk-idle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes desk-wave {
  0% { transform: rotate(0); }
  20% { transform: rotate(-16deg) translateY(-4px); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(6deg); }
  100% { transform: rotate(0); }
}
@keyframes desk-smile {
  0% { transform: scale(1); }
  35% { transform: scale(1.12) translateY(-6px); }
  100% { transform: scale(1); }
}
@keyframes desk-nod {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(5px) rotate(-4deg); }
  60% { transform: translateY(-3px) rotate(3deg); }
}
@media (max-width: 480px) {
  .desk-pet, .desk-pet img { width: 72px; }
  .desk-pet-bubble { right: 62px; bottom: 38px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .desk-pet, .desk-pet.wave, .desk-pet.smile, .desk-pet.study, .wrap { animation: none; }
}
.logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  box-sizing: content-box;
}
.header-text { min-width: 0; text-align: left; }
.site-banner h1 {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.2;
}
.site-banner p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .16em;
  color: rgba(255,255,255,.88);
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 12px 72px;
  color: var(--muted);
  font-size: 12px;
}
.footer-logo {
  height: 24px;
  width: auto;
  background: #fff;
  border-radius: 50%;
  padding: 1px;
  border: 1px solid var(--line);
}
@media (max-width: 480px) {
  .logo { height: 36px; }
  .site-banner h1 { font-size: 20px; letter-spacing: .12em; }
  .site-banner p { font-size: 11px; letter-spacing: .08em; }
  .banner-card { min-width: 92px; padding: 6px 10px; }
  .banner-card strong { font-size: 13px; }
  .bc-kicker { display: none; }
}
.wrap {
  width: min(720px, 100%); margin: 0 auto; padding: 16px 16px 8px;
  animation: page-in .35s ease both;
}
@keyframes page-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(43,43,43,.05);
  border: 1px solid var(--line);
}
.sec-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .02em;
  line-height: 1.2;
}
.muted { color: var(--muted); font-size: 13px; line-height: 1.7; }
.link-more { color: var(--muted); font-size: 13px; text-decoration: none; font-weight: 700; }
.link-more:hover { color: #b22234; }
label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; color: #444; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d9d9d9;
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 16px;
  outline: none;
  background: #fff;
}
input:focus, select:focus { border-color: var(--red); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  font-size: 15px; font-weight: 700; cursor: pointer; text-decoration: none;
  color: #fff; background: var(--red2);
}
.btn:hover { background: var(--red); }
.btn:active { opacity: .92; transform: scale(.98); }
.btn.block { width: 100%; }
.btn.ghost {
  background: #fff; color: var(--red); border: 1px solid var(--red);
}
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; margin-top: 12px; }
.btn-row .btn { flex: 1; }
.info-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.info-table th, .info-table td {
  padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left;
}
.info-table th { width: 96px; color: var(--muted); font-weight: 500; }
.info-table td { color: var(--text); font-weight: 600; }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.notice-item {
  display: flex; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 13px; line-height: 1.7;
}
.notice-item:last-child { border-bottom: 0; }
.notice-item::before {
  content: "";
  width: 3px; background: var(--red); flex-shrink: 0; border-radius: 1px;
}
.notice-item strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 10px 16px;
}
.progress-meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--muted); margin-bottom: 8px;
}
.timer { font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.timer.warn { color: var(--bad); }
.bar { height: 4px; background: #ececec; overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }
.q-type {
  display: inline-block; border: 1px solid var(--red); color: var(--red);
  font-size: 12px; padding: 1px 6px; border-radius: 2px; margin-bottom: 8px;
}
.q-text { font-size: 17px; line-height: 1.65; margin: 0 0 14px; font-weight: 700; }
.q-media { display: block; width: 100%; max-height: 240px; object-fit: contain; background: #111; margin: 0 0 12px; border: 1px solid var(--line); }
img.q-media { background: #fff; }
.q-player { margin: 0 0 12px; background: #111; border: 1px solid var(--line); }
.q-player .q-media { margin: 0; border: 0; max-height: 280px; }
.q-player-bar { background: var(--red); color: #fff; font-size: 12px; padding: 6px 10px; }
.essay-box { min-height: 140px; width: 100%; font-size: 16px; line-height: 1.6; }
.opt {
  width: 100%; text-align: left; background: #fff;
  border: 1px solid #dcdcdc; border-radius: var(--radius);
  padding: 12px; margin-bottom: 8px; font-size: 15px; cursor: pointer; min-height: 48px;
}
.opt .k {
  display: inline-flex; width: 22px; height: 22px; margin-right: 8px;
  align-items: center; justify-content: center;
  border: 1px solid #cfcfcf; font-size: 12px; font-weight: 700;
}
.opt.on { border-color: var(--red); background: #faf6f6; }
.opt.on .k { background: var(--red); color: #fff; border-color: var(--red); }
.judge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.judge-row .opt { text-align: center; font-weight: 700; }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: 8px;
  padding: 8px 16px calc(8px + var(--safe-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.sheet { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.sheet button {
  height: 32px; border-radius: 2px; border: 1px solid var(--line);
  background: #fff; color: var(--muted); font-size: 13px; cursor: pointer;
}
.sheet button.done { background: #f3f7f3; color: var(--ok); border-color: #cfe0d2; }
.sheet button.cur { background: var(--red); color: #fff; border-color: var(--red); }
.result-score { text-align: center; padding: 8px 0; }
.result-score .num { font-family: var(--num); font-size: 48px; color: var(--red); line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.ring-wrap { display: flex; justify-content: center; margin: 8px 0; }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.stat { padding: 12px 6px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat span { color: var(--muted); font-size: 12px; }
.stat b { display: block; font-size: 16px; color: var(--text); margin-top: 4px; }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.badge-ok { color: var(--ok); font-weight: 700; font-size: 13px; }
.badge-bad { color: var(--bad); font-weight: 700; font-size: 13px; }
.ans-line { font-size: 14px; margin: 6px 0; }
.explain { background: #fafafa; border: 1px solid var(--line); padding: 10px; font-size: 13px; color: #555; }
.rank-item {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 10px;
  align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line);
}
.rank-item.me { background: #faf6f6; margin: 0 -8px; padding: 10px 8px; }
.rank-no {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); font-size: 13px; font-weight: 700;
  font-family: var(--num); font-variant-numeric: tabular-nums;
}
.rank-item.gold .rank-no { background: #f3ead0; border-color: var(--gold); color: #7a5b16; }
.rank-item.silver .rank-no { background: #eee; color: #555; }
.rank-item.bronze .rank-no { background: #f3e6dc; color: #7a4a28; }
.score { font-weight: 800; color: var(--red); font-family: var(--num); font-variant-numeric: tabular-nums; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  height: calc(62px + var(--safe-bottom));
  padding: 6px 8px calc(6px + var(--safe-bottom));
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-decoration: none; color: #8a8a8a; font-size: 11px; gap: 3px;
  border-radius: 10px; font-weight: 600;
}
.tabbar a.on { color: var(--red); background: #f8ecec; font-weight: 800; }
.tabbar svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.toast {
  position: fixed; left: 50%; bottom: calc(72px + var(--safe-bottom)); transform: translateX(-50%);
  background: rgba(43,43,43,.9); color: #fff; padding: 8px 14px;
  border-radius: var(--radius); font-size: 13px; display: none; z-index: 60;
}
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px;
}
.modal.show { display: flex; }
.modal .box { background: #fff; border: 1px solid var(--line); padding: 20px; width: min(420px, 100%); max-height: 86vh; overflow: auto; }
.modal h3 { margin: 0 0 8px; }
.rules-list { margin: 0 0 16px; padding-left: 18px; color: var(--text); font-size: 14px; line-height: 1.75; }
.rules-list li { margin-bottom: 6px; }
.notice-item { cursor: pointer; }
.notice-preview { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.notice-full { font-size: 14px; line-height: 1.8; color: var(--text); white-space: pre-wrap; margin: 8px 0 16px; }
.deadline { color: var(--red); font-weight: 700; }
.deadline.ok { color: var(--text); font-weight: 600; }
.empty { text-align: center; color: var(--muted); padding: 28px 8px; }
.his-item {
  display: flex; justify-content: space-between; gap: 10px; padding: 12px 0;
  border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.his-item:last-child { border-bottom: 0; }
#shareCanvas { display: none; }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.level {
  border: 1px solid var(--line); padding: 12px 6px; text-align: center; background: #fff;
}
.level.on { border-color: var(--red); }
.level.lock { opacity: .45; }
.level .lv { font-size: 12px; color: var(--red); letter-spacing: .1em; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal i {
  display: block; height: 26px; background: #eee; font-style: normal;
  font-size: 11px; text-align: center; line-height: 26px; color: var(--muted);
}
.cal i.on { background: var(--red); color: #fff; }
.medal {
  display: inline-block; margin: 4px 4px 0 0; padding: 4px 8px;
  border: 1px solid var(--gold); color: #7a5b16; font-size: 12px;
}
.learn-body { white-space: pre-wrap; line-height: 1.85; font-size: 15px; }
.progress-text { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.kv { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.kv b { color: var(--text); font-weight: 600; }
.kv:last-child { border-bottom: 0; }

.hero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.2); color: #fff;
  border-radius: 999px; padding: 4px 10px; font-size: 12px; margin-top: 8px;
}
.quiz-banner {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: #fffdf8;
  border: 1px solid #ead9b2;
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.quiz-banner b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--red); }
.quiz-stamp {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px dashed var(--gold);
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  transform: rotate(-12deg);
  background: #fff;
}
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi {
  background: #faf7f2; border-radius: 10px; padding: 10px 6px; text-align: center;
}
.kpi span { display: block; font-size: 11px; color: var(--muted); }
.kpi b { display: block; margin-top: 4px; font-size: 20px; color: var(--red); font-family: var(--num); font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline { position: relative; padding-left: 16px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px;
  width: 2px; background: #ead9b2;
}
.tl-item { position: relative; padding: 0 0 14px 12px; }
.tl-item::before {
  content: ""; position: absolute; left: -13px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red2); border: 2px solid #fff; box-shadow: 0 0 0 2px #ead9b2;
}
.tl-item .when { font-size: 12px; color: var(--blue); font-weight: 700; }
.pill {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: #f4efe4; color: var(--red); margin-left: 6px;
}
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.res-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff;
  border-radius: 12px; padding: 12px 12px 12px 16px; min-height: 108px;
  border: 1px solid var(--line);
  position: relative;
}
.res-bar {
  position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px;
  background: var(--blue);
}
.res-card.t-video .res-bar { background: var(--ok); }
.res-card.t-file .res-bar { background: var(--gold); }
.res-card .cat, .article-card .cat {
  display: inline-block; font-size: 11px; color: var(--blue); font-weight: 700;
  background: #eef4f8; border-radius: 999px; padding: 1px 8px;
}
.res-card strong { display: block; margin: 6px 0 4px; font-size: 15px; font-weight: 800; }
.go-link { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--red); }
.article-body p { line-height: 1.75; margin: 0 0 12px; font-size: 15px; }
.article-card .btn { margin-top: 8px; display: inline-block; text-align: center; }
.mini-rank { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.mini-rank .no {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f4efe4; font-size: 12px; font-weight: 800; color: var(--red);
}
.mini-rank:nth-child(1) .no { background: #ffd166; color: #7a4e00; }
.mini-rank:nth-child(2) .no { background: #e9ecef; color: #495057; }
.mini-rank:nth-child(3) .no { background: #f4c9a8; color: #7a3e12; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips button, .chips a {
  border: 0; background: #fff; color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font-size: 13px; cursor: pointer;
  box-shadow: 0 4px 12px rgba(15,23,42,.06); text-decoration: none;
}
.chips button.on, .chips a.on { background: var(--red); color: #fff; }
.chart-box { height: 260px; width: 100%; }
.branch-card {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.branch-card:last-child { border-bottom: 0; }
.meter { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; margin-top: 6px; width: 120px; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--red)); }
.shortcut { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shortcut a {
  display: flex; gap: 10px; align-items: center;
  text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 12px 12px 10px;
  border-left-width: 3px;
}
.shortcut a strong { display: block; color: var(--text); margin-bottom: 2px; font-size: 15px; font-weight: 800; }
.sc-ico {
  width: 28px; height: 28px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--muted);
}
.sc-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.sc-rank { border-left-color: #c47a2c; }
.sc-rank .sc-ico { color: #c47a2c; }
.sc-res { border-left-color: #2a6f97; }
.sc-res .sc-ico { color: #2a6f97; }
.sc-stats { border-left-color: #2f6b3a; }
.sc-stats .sc-ico { color: #2f6b3a; }
.sc-branch { border-left-color: #c4a35a; }
.sc-branch .sc-ico { color: #c4a35a; }
.feed { display: grid; gap: 8px; margin-bottom: 12px; }
.read-card, .week-card {
  display: flex; gap: 12px; align-items: center;
  text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px;
}
.read-cover {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px;
  background: #8b1a1a; color: #fff; font-size: 14px; font-weight: 800;
  display: grid; place-items: center;
}
.week-card { flex-direction: column; align-items: flex-start; gap: 4px; }
.podium-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  align-items: stretch;
  gap: 10px;
  margin: 8px 0 16px;
}
.pd {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-height: 228px; padding: 20px 10px 14px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  animation: rise-in .45s ease;
  transition: transform .2s, box-shadow .2s;
  z-index: 0;
}
.pd::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,0) 42%);
  pointer-events: none;
}
.pd > * { position: relative; z-index: 1; }
.pd:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.pd.p1 {
  animation-delay: .08s;
  background: linear-gradient(165deg, #F2C94C 0%, #F2994A 100%);
  border: 2px solid #E8B63A;
  box-shadow: 0 8px 28px rgba(242,153,74,.28);
  z-index: 1;
}
.pd.p1:hover { transform: translateY(-6px); }
.pd.p2 {
  animation-delay: .02s;
  background: linear-gradient(165deg, #D9D9D9 0%, #BFBFBF 100%);
  border: 2px solid #AFAFAF;
}
.pd.p3 {
  animation-delay: .14s;
  background: linear-gradient(165deg, #E8A87C 0%, #C97B4A 100%);
  border: 2px solid #B36A3D;
}
.pd.p1 .pd-av { box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 2px 8px rgba(0,0,0,.12); }
.pd.empty-pd { visibility: hidden; }
.pd-ico { height: 40px; margin-bottom: 8px; display: grid; place-items: center; }
.pd-ico svg { width: 40px; height: 40px; }
.pd.p1 .pd-ico svg { width: 44px; height: 44px; }
.pd-av {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: #fff;
  margin: 4px 0 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pd-name { font-size: 18px; font-weight: 800; color: #1f2329; line-height: 1.2; }
.pd-cls { font-size: 13px; color: #4a4a4a; margin: 4px 0 10px; }
.pd.p1 .pd-cls, .pd.p3 .pd-cls { color: #5c3a22; }
.pd.p2 .pd-cls { color: #5a5a5a; }
.pd-score {
  margin-top: auto;
  font-size: 28px; font-weight: 800; font-family: var(--num);
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #d13a4c, #6b1414);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.podium-row.mini .pd { min-height: 180px; padding: 12px 8px; }
.podium-row.mini .pd-name { font-size: 15px; }
.podium-row.mini .pd-score { font-size: 22px; }
.podium-row.mini .pd-av { width: 44px; height: 44px; font-size: 18px; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.rank-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px; margin-bottom: 10px;
}
.rank-links { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding-top: 4px; }
.rank-title { margin: 0; font-size: 20px; font-weight: 800; color: #1f2329; }
.rank-sub { margin: 4px 0 0; font-size: 13px; color: #8f959e; }
.rank-tabs { background: transparent; box-shadow: none; }
.rank-tabs button {
  color: #8f959e; background: transparent; box-shadow: none;
  border-radius: 999px; font-weight: 700;
}
.rank-tabs button.on { background: #b22234; color: #fff; }
.rank-page { background: transparent; }
body.rank-has-bar {
  background: linear-gradient(180deg, #faf6f0 0%, #f3eee6 55%, #f6f5f3 100%);
}
.rank-list.fade, .podium.fade, .board.fade { animation: fade-swap .35s ease; }
@keyframes fade-swap { from { opacity: .35; } to { opacity: 1; } }
.board {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 32px rgba(31,35,41,.08);
  overflow: hidden;
}
.board-cap {
  display: flex;
  justify-content: center;
  padding: 16px 16px 8px;
}
.board-tag {
  display: inline-block;
  background: linear-gradient(90deg, #F2C94C, #F2994A);
  color: #5c3d00;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  padding: 5px 18px;
  border-radius: 8px;
}
.board-cols,
.board-row {
  display: grid;
  grid-template-columns: 76px 1fr 88px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
}
.board-cols {
  min-height: 36px;
  font-size: 12px;
  font-weight: 700;
  color: #8f959e;
  border-bottom: 1px solid #f0ece6;
}
.board-cols span:last-child,
.board-score { text-align: right; }
.board-row {
  min-height: 68px;
  border-bottom: 1px solid #f3f0eb;
  animation: rise-in .4s ease both;
  transition: background .2s;
}
.board-row:last-child { border-bottom: 0; }
.board-row:hover { background: #faf8f4; }
.board-row.t1 { background: linear-gradient(90deg, #fff8e6 0%, #fff 72%); }
.board-row.t2 { background: linear-gradient(90deg, #f5f5f5 0%, #fff 72%); }
.board-row.t3 { background: linear-gradient(90deg, #fbf1e8 0%, #fff 72%); }
.board-row.t1:hover, .board-row.t2:hover, .board-row.t3:hover { filter: brightness(.99); }
.board-rank {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}
.board-rank .crown { width: 22px; height: 22px; flex-shrink: 0; }
.board-rank .rn { font-size: 15px; font-weight: 800; color: #1f2329; }
.board-rank .rn.dim { color: #8f959e; width: 100%; text-align: center; font-size: 16px; }
.board-row.t1 .rn { color: #C48A12; }
.board-row.t2 .rn { color: #6e6e6e; }
.board-row.t3 .rn { color: #A05A2C; }
.board-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board-user .meta { min-width: 0; }
.board-user strong {
  display: block; font-size: 15px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-user .cls { font-size: 12px; color: #8f959e; margin-top: 2px; }
.board-score {
  font-size: 18px; font-weight: 800; color: #b22234;
  font-family: var(--num); font-variant-numeric: tabular-nums;
}
.board.board-embed { box-shadow: none; border: 0; border-radius: 12px; }
.board.board-embed .board-cap { padding-top: 4px; }
.period-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.period-strip a, .period-strip .p {
  display: block; text-align: center; padding: 8px 2px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font-size: 11px; text-decoration: none; color: inherit;
}
.period-strip .on { border-color: var(--red); background: #faf6f6; color: var(--red); font-weight: 700; }
.period-strip .done { border-color: #d5e4d8; background: #f5faf6; }
.roadmap {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  padding: 8px 2px 4px;
}
.roadmap::before {
  content: "";
  position: absolute; left: 8%; right: 8%; top: 18px;
  border-top: 1.5px dashed #d9d4cc;
}
.rm {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; color: #8f959e; font-size: 11px; gap: 6px;
}
.rm-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: #d0d0d0; border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d0d0d0;
}
.rm.wait .rm-lab { color: #8f959e; }
.rm.done .rm-dot {
  background: #2e7d5b; box-shadow: 0 0 0 1px #2e7d5b;
  display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 800;
}
.rm.done .rm-dot::after { content: "✓"; }
.rm.done .rm-lab { color: #8f959e; }
.rm.on { color: #fff; transform: scale(1.08); }
.rm.on .rm-dot {
  width: 18px; height: 18px; background: #b22234;
  box-shadow: 0 0 0 3px rgba(178,34,52,.25);
}
.rm.on .rm-lab {
  color: #fff; background: #b22234; border-radius: 999px;
  padding: 1px 7px; font-weight: 800;
}
.news-tl { position: relative; padding-left: 14px; }
.news-tl::before {
  content: ""; position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 2px; background: #f3d4d7;
}
.tn { position: relative; padding: 0 0 14px 8px; }
.tn:last-child { padding-bottom: 0; }
.tn::before {
  content: ""; position: absolute; left: -13px; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: #b22234;
  border: 2px solid #fff; box-shadow: 0 0 0 2px #f3d4d7;
}
.tn-time {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: #b22234; background: #fdf6f6; border-radius: 999px;
  padding: 1px 8px; margin-bottom: 4px;
}
.must-read {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; margin-bottom: 12px;
}
.mr-ico {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, #b22234 0%, #8b1a1a 60%, #c4a35a 100%);
  display: grid; place-items: center; color: #fff;
}
.mr-ico svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.7; }
.must-read strong { display: block; font-size: 15px; font-weight: 800; margin: 2px 0 4px; }
.must-read .btn { min-height: 34px; padding: 0 14px; font-size: 13px; margin-top: 8px; }
.chart-empty { height: 220px; display: grid; place-items: center; color: var(--muted); }
.rank-row {
  display: flex; align-items: center; gap: 10px;
  min-height: 68px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; margin-bottom: 8px;
  transition: transform .2s, box-shadow .2s, background .2s;
  animation: rise-in .4s ease both;
}
.rank-row:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,.08); background: #fdfaf6; }
.av {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 15px;
}
.rank-row .rank-no {
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #f3f4f6; font-family: var(--num);
  display: grid; place-items: center; flex-shrink: 0;
}
.rank-row .rank-no svg { width: 28px; height: 28px; }
.rank-row .rank-no:has(svg) { background: transparent; }
.rank-row .meta { flex: 1; min-width: 0; }
.rank-row .meta strong { display: block; font-size: 15px; font-weight: 800; }
.rank-row .cls { font-size: 13px; color: #8f959e; margin-top: 2px; }
.rank-row .score {
  margin-left: auto; font-size: 20px; font-weight: 800;
  color: #b22234; font-family: var(--num); text-align: right;
  font-variant-numeric: tabular-nums;
}
body.rank-has-bar .btn { border-radius: 20px; }
.st { font-size: 11px; padding: 1px 6px; border-radius: 4px; }
.st-run { color: var(--red); background: #f8ecec; }
.st-end { color: var(--ok); background: #f3f7f3; }
.st-wait { color: var(--muted); background: #f3f3f3; }
.search-row { display: flex; gap: 8px; margin-bottom: 12px; }
.my-rank {
  position: fixed;
  left: 12px; right: 96px;
  bottom: calc(70px + var(--safe-bottom));
  z-index: 33;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  padding: 10px 14px;
  text-decoration: none; color: inherit;
  min-height: 56px;
}
.my-rank .meta { flex: 1; min-width: 0; }
.my-rank strong { display: block; font-size: 14px; }
.my-rank .cls { font-size: 12px; color: #8f959e; }
.my-rank .right { text-align: right; flex-shrink: 0; }
.my-rank .right b {
  display: block; font-size: 18px; color: #b22234;
  font-family: var(--num); font-weight: 800;
}
.my-rank .right span { font-size: 12px; color: #8f959e; }
body.rank-has-bar { padding-bottom: calc(168px + var(--safe-bottom)); }
@media (max-width: 480px) {
  .my-rank { right: 80px; left: 8px; padding: 8px 10px; }
}
.search-row input { flex: 1; }
.dash-page {
  background: #f4f5f7;
}
.dash-page .banner-wave path { fill: #f4f5f7; }
.dash-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.dash-kpi {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 14px 14px 12px;
  min-height: 96px;
  box-shadow: 0 8px 22px rgba(31,35,41,.06);
  animation: rise-in .45s ease both;
}
.dash-kpi:nth-child(2) { animation-delay: .05s; }
.dash-kpi:nth-child(3) { animation-delay: .1s; }
.dash-kpi:nth-child(4) { animation-delay: .15s; }
.dash-kpi span:not(.dash-kpi-ico) {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.78);
  font-weight: 700;
}
.dash-kpi b {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  line-height: 1;
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: #fff;
}
.dash-kpi em {
  position: absolute;
  right: 14px; bottom: 12px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.7);
}
.dash-kpi-ico {
  width: 28px; height: 28px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.18);
  margin-bottom: 10px;
}
.dash-kpi-ico svg {
  width: 16px; height: 16px;
  stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dash-kpi.k-red { background: linear-gradient(145deg, #c43a48 0%, #8b1a1a 100%); }
.dash-kpi.k-gold { background: linear-gradient(145deg, #e2b03a 0%, #c47a2c 100%); }
.dash-kpi.k-teal { background: linear-gradient(145deg, #3a9a90 0%, #2b7a78 100%); }
.dash-kpi.k-ink { background: linear-gradient(145deg, #4a5560 0%, #2b3036 100%); }
.dash-card {
  background: #fff;
  border-radius: 16px;
  padding: 16px 14px 10px;
  margin-bottom: 12px;
  border: 1px solid #eceef1;
  box-shadow: 0 8px 24px rgba(31,35,41,.04);
}
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.dash-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #1f2329;
}
.dash-head p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #8f959e;
}
.dash-chart { height: 220px; }
.dash-cls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid #eef0f3;
}
.dash-cls:last-child { border-bottom: 0; }
.dash-cls-main { flex: 1; min-width: 0; }
.dash-cls-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.dash-cls-top strong {
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-cls-top b {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  color: #b22234;
  font-size: 15px;
  flex-shrink: 0;
}
.dash-bar {
  height: 6px;
  border-radius: 999px;
  background: #eef0f3;
  overflow: hidden;
  margin: 6px 0 4px;
}
.dash-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #d9a3a8;
}
.dash-cls.t1 .dash-bar i { background: #b22234; }
.dash-cls.t2 .dash-bar i { background: #d46a6a; }
.dash-cls.t3 .dash-bar i { background: #e29a9a; }
.dash-cls.t1 { background: transparent; }
@media (min-width: 560px) {
  .dash-kpis { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .rm-lab { font-size: 10px; }
  .pd-score { font-size: 24px; }
  .pd { min-height: 210px; padding: 16px 6px 12px; }
  .pd-name { font-size: 15px; }
  .rank-title { font-size: 20px; }
  .must-read { padding: 12px; }
  .podium-row { gap: 8px; }
  .board-cols, .board-row { grid-template-columns: 64px 1fr 72px; padding: 0 12px; }
  .board-score { font-size: 16px; }
  .board-rank .crown { width: 20px; height: 20px; }
}

/* ==========================================================
   主题刷新 · 轻量化（保留党建红）
   2026-10 · 追加式覆盖：删掉本段即可完全还原旧样式
   ========================================================== */
:root {
  --radius: 16px;
  --bg: #f8f7f5;
  --line: #ece8e3;
}

/* 标题：字重变轻，留白更松 */
h1, h2, h3 { font-weight: 600; letter-spacing: .005em; }
.sec-title { font-size: 17px; font-weight: 600; margin-bottom: 14px; letter-spacing: 0; }
.rank-title { font-size: 19px; font-weight: 600; }
.dash-head h2 { font-weight: 600; }
.site-banner h1 { font-weight: 700; letter-spacing: .14em; }

/* 顶部横幅：红色提亮、去掉近黑压边、装饰减淡 */
.site-banner {
  background: linear-gradient(135deg, #c33a4a 0%, #9c2233 52%, #7e1a26 100%);
  padding: 22px 16px 0;
}
.site-banner::after { opacity: .28; }
.site-banner::before { right: 20px; top: -40px; width: 140px; height: 140px; background: rgba(255,255,255,.12); }
.banner-wave { height: 22px; }
.banner-card { border-radius: 16px; padding: 11px 13px; box-shadow: 0 10px 26px rgba(80,10,20,.18); }
.banner-card strong { font-weight: 700; }

/* 卡片：去掉厚重阴影，改为发丝描边 + 更大圆角 + 更多内边距 */
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  margin-bottom: 14px;
  box-shadow: none;
}
.board { border: 1px solid var(--line); border-radius: 20px; box-shadow: none; }
.board.board-embed { border: 0; }
.dash-card { border-radius: 18px; box-shadow: none; }
.rank-row { border-radius: 16px; box-shadow: none; }
.rank-row:hover { box-shadow: none; background: #fbf9f7; }
.res-card { border-radius: 16px; }
.shortcut a { border-radius: 14px; }
.must-read { border-radius: 16px; }
.my-rank { border-radius: 18px; box-shadow: 0 4px 18px rgba(31,35,41,.08); }
.modal .box { border: 0; border-radius: 18px; }
.pd { border-radius: 18px; box-shadow: 0 4px 18px rgba(31,35,41,.08); }

/* 文字：列表与标题字重收轻，数字仍保留力量感 */
.board-user strong, .rank-row .meta strong, .res-card strong,
.shortcut a strong, .must-read strong, .dash-cls-top strong,
.read-card strong, .week-card strong, .my-rank strong,
.level .lv, .notice-item strong { font-weight: 600; }
.link-more, .go-link { font-weight: 600; }
.kpi b { font-weight: 700; font-size: 19px; }
.score, .board-score, .rank-row .score, .dash-cls-top b,
.my-rank .right b, .result-score .num { font-weight: 700; }

/* 胶囊筛选：更圆润、更通透 */
.chips button, .chips a {
  border: 1px solid var(--line);
  box-shadow: none;
  padding: 7px 14px;
  font-weight: 500;
  color: #6f6a66;
}
.chips button.on, .chips a.on {
  background: var(--red); border-color: var(--red); color: #fff; font-weight: 600;
}
.rank-tabs button { font-weight: 500; color: #8f959e; border: 1px solid transparent; }
.rank-tabs button.on { background: var(--red); color: #fff; font-weight: 600; }
.bc-status, .pill, .st, .board-tag { font-weight: 600; }

/* 输入与按钮 */
input, select, textarea { border-color: var(--line); border-radius: 14px; }
input:focus, select:focus { box-shadow: 0 0 0 3px rgba(139,26,26,.08); }
.btn { font-weight: 600; }

/* 首页 KPI 小卡 */
.kpi { background: #faf7f3; border-radius: 14px; }

/* 底部导航：更轻更圆 */
.tabbar { background: rgba(255,255,255,.96); }
.tabbar a { border-radius: 14px; font-weight: 500; gap: 2px; }
.tabbar a.on { background: #fbeff0; font-weight: 600; }
.tabbar svg { stroke-width: 1.6; }

/* 排名元素 */
.rank-no { border-radius: 10px; font-weight: 600; }
.rank-row .rank-no { border-radius: 50%; }
.board-tag { border-radius: 999px; padding: 5px 16px; letter-spacing: .12em; }
.board-cols { font-weight: 500; }
.board-rank .rn { font-weight: 700; }
.mini-rank .no { font-weight: 700; }
.tl-item .when { font-weight: 600; }
.period-strip .on { font-weight: 600; }
.quiz-banner { border-radius: var(--radius); }

/* 移动端留白微调 */
@media (max-width: 480px) {
  .site-banner { padding: 18px 14px 0; }
  .card { padding: 16px 14px 14px; }
  .board { border-radius: 18px; }
}

/* ==========================================================
   首页 · 答题入口大板块（占手机屏约一半高度）
   三态由 static/js/period.js 控制
   ========================================================== */
.entry-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px 18px;
  margin-bottom: 14px;
  min-height: 46vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, #c33a4a 0%, #9c2233 55%, #7e1a26 100%);
  box-shadow: 0 10px 30px rgba(120, 20, 35, .18);
}
.entry-hero::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .10);
  pointer-events: none;
}
.entry-hero > * { position: relative; z-index: 1; }
.eh-kicker {
  font-size: 12px;
  letter-spacing: .22em;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
}
.eh-title {
  margin: 10px 0 0;
  font-size: 34px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.eh-theme {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
}
.eh-theme:empty { display: none; }
.eh-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .32);
  color: #fff;
}
.eh-badge.b-run { background: #fff; border-color: #fff; color: #9c2233; }
.eh-badge.b-end { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .82); }
.eh-meta {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: rgba(255, 255, 255, .78);
}
.eh-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.eh-btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.entry-hero .btn { background: #fff; color: #9c2233; }
.entry-hero .btn:hover { background: #fff3f3; color: #7e1a26; }
.entry-hero .btn.ghost {
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
}
.entry-hero .btn.ghost:hover { background: rgba(255, 255, 255, .24); }
.eh-pending {
  display: inline-block;
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .14);
  color: rgba(255, 255, 255, .84);
}
.eh-tip { margin: 14px 0 0; font-size: 12px; color: rgba(255, 255, 255, .66); }
.eh-tip:empty { display: none; }
@media (max-width: 480px) {
  .entry-hero { min-height: 44vh; padding: 18px 14px; border-radius: 18px; }
  .eh-title { font-size: 28px; }
}

/* ==========================================================
   学习资源页：说明块 + 更长的列表
   ========================================================== */
.res-intro {
  margin: 0 0 12px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.res-card { min-height: 118px; }
.res-card .cat { background: #f3f0ec; color: #8a6a4a; }

/* 首页三个快捷入口：最后一张占满整行，避免半行留白 */
.shortcut a:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ==========================================================
   学习资源：改为横向单列卡片（一行一条，左右分栏）
   ========================================================== */
.res-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}
.res-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 14px 16px 14px 20px;
}
.res-main { flex: 1; min-width: 0; }
.res-main strong { margin: 0 0 4px; font-size: 15px; }
.res-main .muted { line-height: 1.6; }
.res-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.res-side .go-link { margin-top: 0; white-space: nowrap; }
@media (max-width: 480px) {
  .res-card { padding: 13px 12px 13px 16px; gap: 10px; }
  .res-side .cat { font-size: 10px; padding: 1px 6px; }
  .res-side .go-link { font-size: 11px; }
}
