/* =========================================================
   高考化学真题分类 · 样式
   浅色阅读界面，独立于主站，可直接作为子域名站点使用
   ========================================================= */

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

:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #172033;
  --ink-2: #3d4a63;
  --muted: #6b7890;
  --line: #e6e9f2;
  --line-2: #d6dce8;
  --accent: #4f46e5;
  --accent-2: #6366f1;
  --accent-soft: #eef0ff;
  --warm: #b45309;
  --shadow: 0 18px 46px -32px rgba(23, 32, 51, .45);
  --radius: 20px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --watermark: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NjAiIGhlaWdodD0iMjgwIj48ZyB0cmFuc2Zvcm09InJvdGF0ZSgtMjQgMjMwIDE0MCkiIGZvbnQtZmFtaWx5PSJQaW5nRmFuZyBTQyxNaWNyb3NvZnQgWWFIZWksTm90byBTYW5zIFNDLHNhbnMtc2VyaWYiIGZpbGw9IiMxZjJhM2QiIG9wYWNpdHk9IjAuMTAiPjx0ZXh0IHg9IjgiIHk9IjEyMCIgZm9udC1zaXplPSIxNyI+5pys56uZ5LuF5o+Q5L6b5Lqk5rWB5LiO56CU56m2PC90ZXh0Pjx0ZXh0IHg9Ii0yNCIgeT0iMTQ4IiBmb250LXNpemU9IjEyIj7popjnm67niYjmnYPlvZLljp/lkb3popjljZXkvY3miYDmnIk8L3RleHQ+PC9nPjwvc3ZnPg==");
  --watermark-print: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0NjAiIGhlaWdodD0iMjgwIj48ZyB0cmFuc2Zvcm09InJvdGF0ZSgtMjQgMjMwIDE0MCkiIGZvbnQtZmFtaWx5PSJQaW5nRmFuZyBTQyxNaWNyb3NvZnQgWWFIZWksTm90byBTYW5zIFNDLHNhbnMtc2VyaWYiIGZpbGw9IiMxZjJhM2QiIG9wYWNpdHk9IjAuMTgiPjx0ZXh0IHg9IjgiIHk9IjEyMCIgZm9udC1zaXplPSIxNyI+5pys56uZ5LuF5o+Q5L6b5Lqk5rWB5LiO56CU56m2PC90ZXh0Pjx0ZXh0IHg9Ii0yNCIgeT0iMTQ4IiBmb250LXNpemU9IjEyIj7popjnm67niYjmnYPlvZLljp/lkb3popjljZXkvY3miYDmnIk8L3RleHQ+PC9nPjwvc3ZnPg==");
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1000px 520px at 96% -10%, rgba(99, 102, 241, .10), transparent 62%),
    radial-gradient(820px 440px at -6% 0%, rgba(13, 148, 136, .08), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}

[hidden] { display: none !important; }
img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: #dbe0ff; color: #1e1b4b; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.sr-only, .skip {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip:focus {
  position: fixed;
  left: 16px; top: 12px;
  width: auto; height: auto;
  margin: 0; clip: auto;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  z-index: 200;
  font-size: 13px;
  text-decoration: none;
}

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

/* ---------------- 头部 ---------------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(23, 32, 51, .08);
}
.hdr-in {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
  text-decoration: none;
  color: var(--ink);
}
.logo {
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 19px; font-weight: 800;
  background: linear-gradient(140deg, #6366f1, #7c3aed);
  box-shadow: 0 10px 22px -10px rgba(91, 91, 214, .9);
}
.brand-tx b { display: block; font-size: 15px; line-height: 1.25; letter-spacing: .01em; }
.brand-tx small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; letter-spacing: .02em; }

.nav { display: flex; gap: 3px; flex: none; }
.nav a {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav a:hover { background: #eef1f8; color: var(--ink); }
.nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(420px, 40vw);
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #eef1f7;
  transition: background .18s, border-color .18s, box-shadow .18s;
}
.search:focus-within {
  background: #fff;
  border-color: #c7ccf8;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .10);
}
.search svg {
  width: 17px; height: 17px;
  flex: none;
  fill: none;
  stroke: #7c879b;
  stroke-width: 1.9;
  stroke-linecap: round;
}
.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}
.search input::placeholder { color: #98a2b6; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search kbd {
  flex: none;
  padding: 1px 6px;
  border: 1px solid #d6dce8;
  border-bottom-width: 2px;
  border-radius: 6px;
  background: #fff;
  color: #98a2b6;
  font: 11px/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace;
}

/* ---------------- 页面容器 ---------------- */
.home, .list-page, .detail-page, .tags-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

/* ---------------- 首页 Hero ---------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 22px;
  margin-top: 28px;
}
.hero-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 350px;
  padding: 44px 46px;
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(700px 340px at 88% -6%, rgba(129, 140, 248, .35), transparent 60%),
    linear-gradient(135deg, #111c33 0%, #1b2c4e 58%, #22385f 100%);
  box-shadow: 0 34px 70px -38px rgba(17, 28, 51, .85);
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(620px 420px at 75% 15%, #000, transparent 78%);
  mask-image: radial-gradient(620px 420px at 75% 15%, #000, transparent 78%);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card .formula {
  position: absolute;
  z-index: 0;
  color: rgba(255, 255, 255, .07);
  font-weight: 800;
  letter-spacing: -.03em;
  user-select: none;
}
.hero-card .f1 { right: 30px; top: 22px; font-size: 72px; }
.hero-card .f2 { right: 64px; bottom: 28px; font-size: 54px; }
.hero-card .f3 { right: 168px; top: 104px; font-size: 44px; }
.eyebrow {
  margin: 0 0 14px;
  font-size: 12.5px;
  letter-spacing: .14em;
  color: #a5b4fc;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--accent); }
.hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.22;
  letter-spacing: -.02em;
  font-weight: 800;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #c7d2fe, #a5b4fc 45%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 34em;
  margin: 16px 0 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: #c3cde3;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

/* ---------------- 首页：可视化系统 Banner ---------------- */
.hero-visual-card {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(190px, .88fr);
  align-items: center;
  gap: 10px;
  min-height: 430px;
  padding: 38px 34px;
  border: 1px solid rgba(103, 232, 249, .17);
  border-radius: 30px;
  color: #fff;
  text-decoration: none;
  background:
    radial-gradient(560px 320px at 92% 4%, rgba(34, 211, 238, .23), transparent 62%),
    radial-gradient(360px 280px at 74% 96%, rgba(251, 146, 60, .11), transparent 64%),
    linear-gradient(135deg, #07131f 0%, #0a2136 55%, #0d2b45 100%);
  box-shadow: 0 34px 70px -38px rgba(6, 20, 34, .9);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hero-visual-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 232, 249, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(520px 360px at 78% 18%, #000, transparent 78%);
  mask-image: radial-gradient(520px 360px at 78% 18%, #000, transparent 78%);
}
.hero-visual-card > * { position: relative; z-index: 1; }
.hero-visual-card:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 232, 249, .4);
  box-shadow: 0 40px 76px -36px rgba(6, 20, 34, .95);
}
.hero-visual-card:focus-visible { outline: 2px solid #67e8f9; outline-offset: 4px; }
.hv-copy { min-width: 0; width: 100%; max-width: 100%; }
.hv-copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: #8fe9ff;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: none;
}
.hv-live {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #67e8f9;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .09), 0 0 13px rgba(34, 211, 238, .9);
  animation: hvPulse 2.4s ease-in-out infinite;
}
.hv-copy h1 {
  margin: 0;
  font-size: clamp(28px, 2.9vw, 40px);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 800;
  color: #f4fcff;
}
.hv-copy h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #e8fdff 0%, #9beeff 42%, #52d4f2 78%, #8fe9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hv-copy .lede {
  max-width: 31em;
  margin: 15px 0 0;
  color: #a7c4db;
  font-size: 13.5px;
  line-height: 1.75;
}
.hv-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.hv-chips span {
  padding: 5px 9px;
  border: 1px solid rgba(103, 232, 249, .14);
  border-radius: 999px;
  color: #9bdff2;
  background: rgba(103, 232, 249, .055);
  font-size: 10.5px;
  letter-spacing: .03em;
}
.hv-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 17px;
  border-radius: 999px;
  color: #04141f;
  background: linear-gradient(135deg, #8ff0ff, #37c8e8 58%, #2aa8d4);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 14px 28px -16px rgba(34, 211, 238, .9);
}
.hv-cta b { font-size: 14px; transition: transform .18s ease; }
.hero-visual-card:hover .hv-cta b { transform: translate(2px, -2px); }
.hv-visual {
  position: relative;
  align-self: stretch;
  min-height: 320px;
}
.hv-visual::before {
  content: "";
  position: absolute;
  inset: 9% 1% 5% 6%;
  border: 1px solid rgba(103, 232, 249, .13);
  border-radius: 50%;
  transform: rotate(-14deg) scaleY(.72);
  opacity: .7;
  pointer-events: none;
}
.hv-crystal {
  position: absolute;
  z-index: 1;
  top: 3%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: .96;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .38));
  -webkit-mask-image: radial-gradient(ellipse at 50% 52%, #000 53%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 52%, #000 53%, transparent 78%);
  transition: transform .25s ease;
}
.hv-orbital {
  position: absolute;
  z-index: 2;
  right: -5%;
  bottom: 5%;
  width: 43%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: .92;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 42%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 42%, transparent 76%);
  transition: transform .25s ease;
}
.hv-orbital img { display: block; width: 100%; height: auto; }
.hero-visual-card:hover .hv-crystal { transform: scale(1.025); }
.hero-visual-card:hover .hv-orbital { transform: translateY(-3px) scale(1.035); }
.hv-hud {
  position: absolute;
  z-index: 3;
  top: 2%;
  right: 0;
  display: flex;
  gap: 9px;
  color: #6cc8dc;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .16em;
}
.hv-hud span:last-child { color: #f3ad63; }
.hv-tag {
  position: absolute;
  z-index: 3;
  padding: 4px 8px;
  border: 1px solid rgba(103, 232, 249, .15);
  border-radius: 5px;
  color: #8bd8ea;
  background: rgba(7, 20, 33, .68);
  font-size: 9px;
  letter-spacing: .08em;
  backdrop-filter: blur(6px);
}
.hv-tag-a { left: 1%; bottom: 10%; }
.hv-tag-b { right: 2%; bottom: 1%; color: #f3b56c; border-color: rgba(251, 146, 60, .2); }
@keyframes hvPulse { 0%, 100% { opacity: .5; transform: scale(.8); } 50% { opacity: 1; transform: scale(1); } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s, background .16s, border-color .16s;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  box-shadow: 0 14px 28px -14px rgba(79, 70, 229, .95);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 18px 32px -14px rgba(79, 70, 229, .95); }
.btn.ghost {
  color: #e8edff;
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .07);
}
.btn.ghost:hover { background: rgba(255, 255, 255, .13); }
.empty .btn.ghost { color: var(--ink-2); border-color: var(--line); background: #fff; }
.empty .btn.ghost:hover { background: #f7f9fd; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 18px;
  align-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stat { padding: 12px 6px; }
.stat b {
  display: block;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.stat-year {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ---------------- 年份条 ---------------- */
.year-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ys-label { margin: 0 4px 0 2px; font-size: 12px; color: var(--muted); }
.ys {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #f6f8fc;
  text-decoration: none;
  color: var(--ink);
  transition: .16s;
}
.ys:hover { background: var(--accent-soft); border-color: #dfe2ff; }
.ys b { font-size: 14.5px; font-variant-numeric: tabular-nums; }
.ys i { font-style: normal; font-size: 10.5px; color: var(--muted); }

/* ---------------- 提示条 ---------------- */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid #fde68a;
  border-radius: 14px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12.5px;
  line-height: 1.7;
}
.notice-b {
  flex: none;
  margin-top: 1px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #fde68a;
  color: #92400e;
  font-size: 11px;
  font-weight: 600;
}
.notice code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(146, 64, 14, .09);
  font: 11.5px/1.5 ui-monospace, Consolas, monospace;
}

/* ---------------- 区块 ---------------- */
.block { margin-top: 44px; }
.block-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.block-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.block-head h2 span { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.block-head p { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.more { flex: none; font-size: 13.5px; color: var(--accent); text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------------- 分类卡片 ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cat-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.cat-card:hover {
  transform: translateY(-2px);
  border-color: #cdd3ff;
  box-shadow: 0 16px 32px -22px rgba(79, 70, 229, .55);
}
.cat-card.is-empty { opacity: .62; }
.cat-abbr {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--tone-bg);
  color: var(--tone);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
}
.cat-main { flex: 1; min-width: 0; }
.cat-main b { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.cat-main small {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-n {
  flex: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.cat-n i { margin-left: 1px; font-style: normal; font-size: 10px; font-weight: 400; color: var(--muted); }

/* ---------------- 大题卡片 ---------------- */
.big-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.big-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  padding: 24px 26px;
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--g1, #4338ca), var(--g2, #312e81));
  box-shadow: 0 24px 48px -30px rgba(15, 23, 42, .7);
  transition: transform .18s, box-shadow .18s;
}
.big-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(460px 220px at 100% 0, rgba(255, 255, 255, .20), transparent 68%);
  pointer-events: none;
}
.big-card:hover { transform: translateY(-3px); box-shadow: 0 30px 54px -30px rgba(15, 23, 42, .8); }
.big-card > * { position: relative; z-index: 1; }
.big-process { --g1: #0f766e; --g2: #134e4a; }
.big-lab { --g1: #b45309; --g2: #7c2d12; }
.big-principle { --g1: #4338ca; --g2: #312e81; }
.big-organic { --g1: #be185d; --g2: #831843; }
.big-mark {
  position: absolute;
  right: 6px;
  bottom: -26px;
  z-index: 0;
  font-size: 104px;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, .10);
  letter-spacing: -.05em;
  user-select: none;
}
.big-body { display: flex; flex-direction: column; gap: 5px; }
.big-body small { font-size: 10.5px; letter-spacing: .16em; color: rgba(255, 255, 255, .66); }
.big-body b { font-size: 24px; letter-spacing: -.01em; }
.big-body span { max-width: 30em; font-size: 12.5px; line-height: 1.7; color: rgba(255, 255, 255, .78); }
.big-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255, 255, 255, .8);
}
.big-foot i {
  font-style: normal;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  font-size: 14px;
}

/* ---------------- 标签 ---------------- */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f2f4fa;
  color: #4a5876;
  font-size: 12.5px;
  line-height: 1.6;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.tag:hover { background: #e9ecff; color: var(--accent); }
.tag i { font-style: normal; font-size: 10px; color: #9aa4b8; font-variant-numeric: tabular-nums; }
.tag-l1 { font-size: 13.5px; }
.tag-l2 { font-size: 15px; }
.tag-l3 { font-size: 16.5px; }
.tag-lg {
  padding: 8px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13.5px;
}
.tag-lg:hover { border-color: #cdd3ff; background: var(--accent-soft); }

/* ---------------- 列表页 ---------------- */
.list-page { padding-top: 26px; }
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.list-title { min-width: 0; }
.list-head h1 { margin: 12px 0 0; font-size: 32px; letter-spacing: -.025em; line-height: 1.25; }
.list-sub { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.list-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.print-btn { padding: 9px 17px; font-size: 13px; }
.print-hint { color: var(--muted); font-size: 11px; }

.qlist { display: flex; flex-direction: column; gap: 8px; }
.qrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: transform .16s, border-color .16s, box-shadow .16s;
}
.qrow:hover {
  transform: translateX(2px);
  border-color: #cdd3ff;
  box-shadow: 0 12px 26px -20px rgba(79, 70, 229, .45);
}
.qrow-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.qrow-meta { font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.qrow-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.qrow-tag { padding: 2px 7px; border-radius: 999px; background: #f2f4fa; color: #5b6780; font-size: 11px; }
.qrow-tag.on { background: #eef0ff; color: var(--accent); font-weight: 600; }
.qrow-more { align-self: center; padding: 2px; color: var(--muted); font-size: 10px; }
.qrow-cat {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--tone);
  font-size: 11px;
  white-space: nowrap;
}
.qrow-arrow { color: var(--accent); font-size: 12px; white-space: nowrap; }

.tag-panel {
  margin-top: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tag-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tag-panel-head b { font-size: 13px; color: var(--ink); }
.tag-panel-head span { margin-left: 8px; color: var(--muted); font-size: 11.5px; }
.clear-tags { color: var(--muted); font-size: 11.5px; text-decoration: none; }
.clear-tags:hover { color: var(--accent); }
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 148px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f2f4fa;
  color: #5b6780;
  font-size: 11.5px;
  line-height: 1.5;
  text-decoration: none;
}
.tag-chip i { color: #9aa4b8; font-style: normal; }
.tag-chip b { margin-left: 4px; color: #9aa4b8; font-size: 10px; font-weight: 500; }
.tag-chip:hover { background: #e9ecff; color: var(--accent); }
.tag-chip.on { border-color: #c7ccf8; background: #eef0ff; color: var(--accent); font-weight: 600; }
.tag-chip.on b { color: var(--accent); }
.tag-check { margin-left: 2px; font-size: 10px; }

.filters {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.frow { display: flex; align-items: center; gap: 12px; }
.flabel { flex: none; width: 32px; font-size: 12px; color: var(--muted); }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 11px;
  border-radius: 10px;
  background: #f5f7fb;
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: .15s;
}
.fchip i { font-style: normal; font-size: 10.5px; color: #98a2b6; }
.fchip:hover { background: #eef1f8; }
.fchip.on { background: var(--accent); color: #fff; }
.fchip.on i { color: rgba(255, 255, 255, .72); }

.cat-select {
  max-width: 260px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--muted);
}
.af {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}
.af i {
  display: grid; place-items: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(79, 70, 229, .12);
  font-style: normal;
  font-size: 11px;
}
.clear-all { margin-left: auto; color: var(--muted); font-size: 12px; text-decoration: none; }
.clear-all:hover { color: var(--accent); }

.result-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 4px 10px;
  font-size: 13px;
  color: var(--ink-2);
}
.result-bar > span:first-child { font-weight: 600; }
.result-hint { font-size: 12px; color: var(--muted); }

/* ---------------- 题目卡片 ---------------- */
.q {
  padding: 22px 24px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 18px 44px -36px rgba(23, 32, 51, .5);
  transition: border-color .16s, box-shadow .16s;
}
.q:hover { border-color: #dbe0ec; }
.q + .q { margin-top: 14px; }
.q-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.q-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.q-meta i { font-style: normal; color: #c3cada; }
.q-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1f4fa;
  color: #5b6780;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.badge.choice { background: #eef2ff; color: #4f46e5; }
.badge.big { background: #fff1f2; color: #e11d48; }
.badge.cat { background: var(--tone-bg, #f1f4fa); color: var(--tone, #5b6780); }
.badge.demo { background: #fef3c7; color: #b45309; }
.q-link {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: #b6bfd0;
  font-size: 15px;
  text-decoration: none;
}
.q-link:hover { background: #eef1f8; color: var(--accent); }

.q-stem { font-size: 16px; line-height: 1.9; color: #1f2a3d; }
.q-stem strong { color: #111827; font-weight: 700; }
.q-stem p { margin: .4em 0; }
.q-imgs { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.img-tip { color: var(--muted); font-size: 12px; }
.q-imgs img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: zoom-in;
  transition: border-color .16s;
}
.q-imgs img:hover { border-color: #cdd3ff; }
.q-imgs img:focus-visible,
.ans-imgs img:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.q-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin: 14px 0 4px;
  padding: 0;
  list-style: none;
}
.q-opts li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #2b3750;
}
.q-opts li:hover { background: #f7f9fd; }
.opt-k {
  flex: none;
  width: 22px; height: 22px;
  margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #f1f4fa;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
}
.opt-t { min-width: 0; }

.q-parts { display: flex; flex-direction: column; gap: 10px; margin: 14px 0 4px; }
.part { font-size: 15px; line-height: 1.9; color: #2b3750; }
.part b { margin-right: 4px; color: var(--accent); font-weight: 600; }

.q-ans { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); }
.q-ans summary {
  width: max-content;
  padding: 2px 0;
  color: var(--accent);
  font-size: 13.5px;
  cursor: pointer;
  user-select: none;
}
.q-ans summary:hover { text-decoration: underline; }
.ans-body {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid #eceeff;
  border-radius: 14px;
  background: #f8f9ff;
  color: #33405a;
  font-size: 14px;
  line-height: 1.85;
}
.ans-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 6px; }
.ans-line b {
  flex: none;
  padding: 1px 7px;
  border-radius: 6px;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 12px;
}
.ans-analysis { color: #3d4a63; }
.ans-parts { display: flex; flex-direction: column; gap: 4px; margin-bottom: 6px; }
.ans-part { padding: 4px 0; }
.ans-part b { margin-right: 6px; color: #0f766e; }
.ans-imgs { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.ans-imgs img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #e3e7f2;
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}
.ans-note { margin-bottom: 2px; color: var(--muted); font-size: 11.5px; }

/* 题目图片上的版权水印：屏幕与打印共用 */
.q-imgs, .ans-imgs { position: relative; }
.q-imgs::after, .ans-imgs::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: var(--watermark);
  background-repeat: repeat;
}

.copyright-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #f3e3c3;
  border-radius: 12px;
  background: #fffbf2;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.7;
}
.copyright-note b { flex: none; color: #9a6700; }

.q-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #f1f3f8;
}
.q-tags-label { margin-right: 2px; font-size: 11px; color: #9aa4b8; }

.q-foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.mini {
  padding: 2px 0;
  border: 0;
  background: none;
  color: #7c879b;
  font: inherit;
  font-size: 11.5px;
  text-decoration: none;
  cursor: pointer;
}
.mini:hover { color: var(--accent); }
.q-id {
  margin-left: auto;
  color: #b3bbc9;
  font: 10.5px/1.6 ui-monospace, Consolas, monospace;
}

.morerow { margin-top: 22px; text-align: center; }
.more-btn {
  padding: 10px 24px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.more-btn:hover { border-color: #c7ccf8; color: var(--accent); }

/* ---------------- 单题页 ---------------- */
.detail-page { max-width: 960px; padding-top: 26px; }
.detail-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 0; }
.back { color: var(--accent); font-size: 13.5px; text-decoration: none; }
.detail-pos { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-detail { padding: 28px 30px 18px; }
.q-detail .q-stem { font-size: 16.5px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pager.one { grid-template-columns: 1fr; }
.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .16s, background .16s;
}
.pager-link small { font-size: 11px; color: var(--muted); }
.pager-link span { font-size: 13.5px; }
.pager-link.next { align-items: flex-end; text-align: right; }
.pager-link:hover { border-color: #cdd3ff; background: #fbfbff; }
.pager-link.is-empty { display: none; }

.related { margin-top: 40px; }
.rel-list { display: flex; flex-direction: column; gap: 8px; }
.rel-item {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color .16s, background .16s;
}
.rel-item:hover { border-color: #cdd3ff; background: #fbfbff; }
.rel-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rel-stem { overflow: hidden; font-size: 13.5px; color: #2b3750; text-overflow: ellipsis; white-space: nowrap; }
.rel-tags { font-size: 11.5px; color: var(--accent); white-space: nowrap; }

/* ---------------- 标签总览 ---------------- */
.tags-page { padding-top: 34px; }
.page-head h1 { margin: 6px 0 0; font-size: 34px; letter-spacing: -.03em; }
.page-head p { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.tag-tools { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; }
.tag-tools input {
  flex: 1;
  max-width: 380px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  outline: none;
}
.tag-tools input:focus { border-color: #c7ccf8; box-shadow: 0 0 0 4px rgba(99, 102, 241, .1); }
.tag-tools span { font-size: 12.5px; color: var(--muted); }
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

/* ---------------- 空状态 / 页脚 / 提示 ---------------- */
.empty {
  padding: 60px 20px;
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  background: #fff;
  text-align: center;
}
.empty-icon { font-size: 30px; color: #c3cada; }
.empty h3 { margin: 10px 0 6px; font-size: 17px; }
.empty p { margin: 0; font-size: 13.5px; color: var(--muted); }
.empty-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 44px auto 0;
  padding: 26px 24px 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  justify-content: safe center;
  overflow: auto;
  padding: 24px;
  background: rgba(9, 14, 24, .93);
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  margin: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
}
.lb-close {
  position: fixed;
  right: 20px;
  top: 16px;
  z-index: 301;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .78);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.lb-close:hover { background: rgba(15, 23, 42, .92); }
.lb-hint {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .66);
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  white-space: nowrap;
  pointer-events: none;
}
.lb-copyright {
  position: fixed;
  left: 20px;
  top: 18px;
  z-index: 302;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
  pointer-events: none;
}
body.lb-open { overflow: hidden; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: #172033;
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: opacity .22s, transform .22s;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.noscript {
  margin: 40px auto;
  padding: 18px;
  max-width: 640px;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  text-align: center;
}

mark { padding: 0 1px; border-radius: 3px; background: #fde68a; color: inherit; }

/* ---------------- 主题色 ---------------- */
.tone-blue { --tone: #2563eb; --tone-bg: #eff6ff; }
.tone-indigo { --tone: #4f46e5; --tone-bg: #eef2ff; }
.tone-violet { --tone: #7c3aed; --tone-bg: #f5f3ff; }
.tone-teal { --tone: #0d9488; --tone-bg: #f0fdfa; }
.tone-cyan { --tone: #0891b2; --tone-bg: #ecfeff; }
.tone-rose { --tone: #e11d48; --tone-bg: #fff1f2; }
.tone-amber { --tone: #b45309; --tone-bg: #fffbeb; }
.tone-green { --tone: #15803d; --tone-bg: #f0fdf4; }
.tone-orange { --tone: #ea580c; --tone-bg: #fff7ed; }
.tone-sky { --tone: #0284c7; --tone-bg: #f0f9ff; }
.tone-fuchsia { --tone: #c026d3; --tone-bg: #fdf4ff; }
.tone-lime { --tone: #65a30d; --tone-bg: #f7fee7; }
.tone-pink { --tone: #db2777; --tone-bg: #fdf2f8; }
.tone-red { --tone: #dc2626; --tone-bg: #fef2f2; }
.tone-slate { --tone: #475569; --tone-bg: #f1f5f9; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual-card { min-height: 400px; }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
  .stat-year { grid-column: 1 / -1; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .hdr-in { flex-wrap: wrap; gap: 10px 14px; padding: 10px 14px; }
  .brand { order: 1; }
  .nav { order: 2; margin-left: auto; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .search { order: 3; width: 100%; flex: 1 1 100%; }
}

@media (max-width: 760px) {
  .home, .list-page, .detail-page, .tags-page { padding: 0 14px 48px; }
  .hero { margin-top: 18px; }
  .hero-card { min-height: 0; padding: 30px 24px; border-radius: 24px; }
  .hero h1 { font-size: 31px; }
  .hero-card .f1 { font-size: 54px; right: 18px; }
  .hero-card .f2, .hero-card .f3 { display: none; }
  .hero-visual-card {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 28px 22px 18px;
    border-radius: 24px;
  }
  .hv-copy h1 { font-size: 31px; }
  .hv-copy .lede { max-width: 100%; font-size: 13px; }
  .hv-visual { width: 100%; min-height: 230px; margin-top: 2px; }
  .hv-crystal { width: 100%; left: 0; }
  .hv-orbital { width: 39%; right: -2%; bottom: 3%; }
  .hero-stats { grid-template-columns: 1fr 1fr; padding: 20px; border-radius: 24px; }
  .stat b { font-size: 27px; }
  .big-grid { grid-template-columns: 1fr; }
  .big-card { min-height: 176px; }
  .list-head h1 { font-size: 26px; }
  .list-head { align-items: flex-start; }
  .list-actions { align-items: flex-start; }
  .print-hint { white-space: normal; }
  .qrow { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px 14px; }
  .qrow-cat { display: none; }
  .tag-panel { padding: 12px 14px; }
  .tag-chips { max-height: 180px; }
  .lb-copyright { left: 10px; top: 12px; }

  .q { padding: 18px 16px 14px; border-radius: 16px; }
  .q-detail { padding: 20px 16px 14px; }
  .q-badges { margin-left: 0; }
  .q-link { display: none; }
  .q-imgs img { border-radius: 8px; }
  .ans-body { padding: 10px; }
  .lightbox { padding: 10px; }
  .q-opts { grid-template-columns: 1fr; }
  .q-stem { font-size: 15px; }
  .q-detail .q-stem { font-size: 15.5px; }
  .frow { gap: 8px; }
  .rel-item { grid-template-columns: 1fr; gap: 4px; }
  .rel-stem { white-space: normal; }
  .rel-tags { white-space: normal; }
  .detail-page { padding-top: 18px; }
}

@media (max-width: 560px) {
  .brand-tx small { display: none; }
  .brand { gap: 8px; }
  .logo { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
  .brand-tx b { font-size: 14px; }
  .nav a { padding: 7px 9px; font-size: 13px; }
  .cat-grid { grid-template-columns: 1fr; }
  .year-strip { padding: 10px 12px; }
  .ys { flex: 1 1 30%; align-items: center; padding: 6px 8px; }
  .filters { padding: 14px; }
  .frow { flex-direction: column; align-items: flex-start; gap: 6px; }
  .flabel { width: auto; }
  .cat-select { max-width: 100%; width: 100%; }
  .pager { grid-template-columns: 1fr; }
  .pager-link.is-empty { display: none; }
  .tag-tools { flex-direction: column; align-items: stretch; gap: 10px; }
  .tag-tools input { max-width: none; }
  .q-foot { flex-wrap: wrap; }
  .q-id { display: none; }
  .hero-visual-card { padding: 24px 18px 14px; }
  .hv-copy h1 { font-size: 28px; }
  .hv-copy .lede { font-size: 12.5px; line-height: 1.7; }
  .hv-chips { gap: 5px; }
  .hv-chips span { padding: 4px 7px; font-size: 9.5px; }
  .hv-visual { min-height: 205px; }
  .hv-hud { font-size: 7.5px; gap: 7px; }
  .hv-tag { font-size: 8px; padding: 3px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------- 打印 ---------------- */
#print-root { display: none; }
@page { size: A4; margin: 10mm 9mm 12mm; }

@media print {
  html, body { background: #fff !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .hdr, .footer, .filters, .result-bar, .morerow, .q-foot, .detail-tools, .pager,
  .related, .notice, .hero-actions, .year-strip, .tag-tools, .toast, .skip, .crumb,
  .lightbox, .list-actions { display: none !important; }
  .home, .list-page, .detail-page, .tags-page { max-width: none; padding: 0; }
  .hero { display: none; }
  .q { border: 1px solid #ddd; box-shadow: none; }
  .q + .q { margin-top: 10px; }
  .q-ans { display: block; }
  .q-ans[open] .ans-body { display: block; }

  body:not(.print-mode)::before {
    content: "高考化学真题分类 · 本站仅提供交流与研究 · 题目版权归原命题单位所有";
    display: block;
    margin-bottom: 6mm;
    padding-bottom: 2mm;
    border-bottom: 1px solid #bbb;
    color: #555;
    font-size: 9pt;
  }

  body.print-mode > *:not(#print-root) { display: none !important; }
  body.print-mode #print-root { display: block !important; }

  .print-doc { color: #111; font-size: 9.5pt; }
  .print-head {
    padding-bottom: 3mm;
    margin: 0 0 4mm;
    border-bottom: 2px solid #111;
    break-after: auto;
  }
  .print-eyebrow { margin: 0 0 1.5mm; color: #555; font-size: 8.5pt; letter-spacing: .12em; }
  .print-head h1 { margin: 0 0 1.5mm; font-size: 17pt; line-height: 1.3; }
  .print-sub { margin: 0 0 2mm; color: #444; font-size: 8.5pt; }
  .print-selected-tags { margin: 0 0 2mm; color: #333; font-size: 8.5pt; line-height: 1.6; }
  .print-selected-tags b { color: #7a4b00; }
  .print-notice {
    margin: 0;
    padding: 2mm 2.5mm;
    border: 1px solid #e8c98f;
    border-radius: 1.5mm;
    background: #fff7e6;
    color: #7a4b00;
    font-size: 8.5pt;
    line-height: 1.6;
  }
  .print-page {
    break-after: page;
    page-break-after: always;
  }
  .print-page.last {
    break-after: auto;
    page-break-after: auto;
  }
  .print-q {
    padding: 2mm 0 0;
    margin: 0;
    border-top: 1px dashed #bbb;
    break-before: auto;
    break-inside: avoid-page;
    page-break-inside: avoid;
  }
  .print-q:first-of-type { padding-top: 0; border-top: 0; }
  .print-q.tall {
    break-inside: auto;
    page-break-inside: auto;
  }
  .print-q.tall .print-imgs {
    break-inside: auto;
    page-break-inside: auto;
  }
  .print-q-head {
    break-after: avoid;
    page-break-after: avoid;
  }
  .print-q-head {
    display: flex;
    justify-content: space-between;
    gap: 3mm;
    padding-bottom: 1mm;
    margin-bottom: 1.5mm;
    border-bottom: 1px solid #333;
    font-size: 8.5pt;
    font-weight: 600;
  }
  .print-q-head span:last-child { color: #555; font-weight: 400; }
  .print-copyright { display: none; }
  .print-imgs { display: block; gap: 2mm; margin-top: 0; break-inside: avoid-page; }
  .print-imgs::after { content: none; }
  .print-img-wrap {
    position: relative;
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 1.5mm;
    break-inside: avoid-page;
  }
  .print-img-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--watermark-print);
    background-repeat: repeat;
    pointer-events: none;
  }
  .print-img-wrap img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 180mm;
    height: auto;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
  }
  .print-tags {
    margin-top: 1mm;
    padding-top: 1mm;
    border-top: 1px dashed #bbb;
    color: #444;
    font-size: 7.5pt;
    line-height: 1.6;
  }
  .print-tag { display: inline-block; margin-right: .8mm; }
  .print-tag.on {
    padding: 0 1.5mm;
    border: 1px solid #e8c98f;
    border-radius: 1mm;
    background: #fff3cd;
    color: #7a4b00;
    font-weight: 600;
  }
  .print-text { color: #111; font-size: 9.5pt; line-height: 1.75; }
  .print-text .q-opts { grid-template-columns: 1fr 1fr; gap: 1mm 4mm; }
  .print-text .q-parts { gap: 2mm; }
}

.footer-admin { color: var(--accent); text-decoration: none; }
.footer-admin:hover { text-decoration: underline; }

/* ---------------- 重点专题 / 标签分组 ---------------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.topic-card {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.topic-card:hover { border-color: #cdd3ff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(43,55,80,.06); }
.topic-abbr {
  width: 46px; height: 46px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px; background: var(--tone-bg); color: var(--tone);
  font-size: 12px; font-weight: 800; letter-spacing: -.02em;
}
.topic-main { min-width: 0; flex: 1; }
.topic-main b { display: block; font-size: 14.5px; color: var(--ink); }
.topic-main small { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-n { flex: none; font-size: 18px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.topic-n i { margin-left: 2px; font-size: 10px; font-style: normal; font-weight: 500; color: var(--muted); }

.tag-group-nav { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.tag-group-btn {
  padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: #4a5876; font: inherit; font-size: 12px; cursor: pointer;
}
.tag-group-btn b { margin-left: 3px; color: #9aa4b8; font-weight: 500; }
.tag-group-btn:hover { border-color: #cdd3ff; color: var(--accent); }
.tag-group-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.tag-group-wrap { display: flex; flex-direction: column; gap: 14px; }
.tag-group { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 18px 20px 20px; }
.tag-group-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.tag-group-head h2 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.tag-group-head span { color: var(--muted); font-size: 11.5px; }
.tag-group .tag-grid { padding: 0; border: 0; border-radius: 0; background: transparent; }

.tag-more { margin-top: 12px; }
.tag-more summary { cursor: pointer; color: var(--accent); font-size: 12px; list-style: none; }
.tag-more summary::-webkit-details-marker { display: none; }
.tag-more summary::before { content: '＋ '; }
.tag-more[open] summary::before { content: '－ '; }
.tag-more .tag-chips { margin-top: 10px; }

@media (max-width: 980px) {
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topic-grid { grid-template-columns: 1fr; }
  .tag-group { padding: 14px 14px 16px; }
  .tag-group-nav { gap: 5px; }
  .tag-group-btn { padding: 5px 9px; font-size: 11.5px; }
}

/* ---------------- 配套站点入口 ---------------- */
.nav a.ext {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  border: 1px solid transparent;
}
.nav a.ext span { font-size: 10.5px; opacity: .8; }
.nav a.ext.viz { color: #5b5bd6; background: #eef0ff; border-color: #e0e3ff; }
.nav a.ext.viz:hover { background: #e3e6ff; color: #4338ca; }
.nav a.ext.map { color: #0f766e; background: #e8f7f4; border-color: #d2efea; }
.nav a.ext.map:hover { background: #d9f2ee; color: #0b5f59; }

.xsite {
  background: linear-gradient(90deg, #f5f6ff, #f2fbf8 70%, #f5f6ff);
  border-bottom: 1px solid var(--line);
}
.xsite-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.xsite-k {
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  font-weight: 600;
}
.xs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  text-decoration: none;
  box-shadow: 0 6px 16px -14px rgba(23, 32, 51, .45);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.xs:hover {
  transform: translateY(-1px);
  border-color: #c7ccf8;
  box-shadow: 0 14px 26px -18px rgba(91, 91, 214, .55);
}
.xs i {
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  font-style: normal; font-weight: 800; font-size: 14px; color: #fff;
  background: linear-gradient(140deg, #6366f1, #7c3aed);
  flex: none;
}
.xs.mind i { background: linear-gradient(140deg, #14b8a6, #0ea5e9); }
.xs b { display: block; font-size: 13px; color: var(--ink); line-height: 1.3; }
.xs small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.xs em { font-style: normal; color: #5b5bd6; margin-left: 4px; }
.xs.mind em { color: #0f766e; }

.footer-xsite a { color: var(--accent); text-decoration: none; }
.footer-xsite a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .xsite-in { padding: 8px 14px; gap: 8px; }
  .xs { padding: 7px 10px; }
  .xs small { display: none; }
  .xsite-k { display: none; }
  .nav a.ext { padding: 7px 10px; font-size: 13px; }
}

