/* ==========================================================
   淘论文网 · skill 站
   纸白 / 深靛 / 赭石；衬线标题 + 无衬线正文 + 等宽元信息
   ========================================================== */

:root {
  --paper: #f4f1ea;
  --paper-2: #ece8dd;
  --surface: #fbf9f4;
  --ink: #12171b;
  --ink-soft: #3d464d;
  --muted: #6c747a;
  --line: #d9d3c5;
  --line-strong: #b6ae9d;
  --brand: #153b4d;
  --brand-2: #0d2733;
  --deep: #0b161c;
  --deep-2: #101f27;
  --accent: #b0522b;
  --accent-dark: #94401f;
  --accent-ink: #fff8f2;
  --tint: #e7eef0;
  --serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", SimSun, serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 1280px;
  --gutter: 32px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; }
::selection { background: var(--brand); color: var(--paper); }

.wrap {
  width: min(var(--wrap), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.mono {
  font-family: var(--mono);
  font-size: 0.76em;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-size: 14px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 顶部细条 ---------- */
.topbar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 34px;
}
.topbar__right { color: #b9c2c7; white-space: nowrap; }

/* ---------- 报头 ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  background: var(--brand-2);
  color: var(--paper);
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1;
  padding-top: 2px;
}
.brand__text { display: flex; flex-direction: column; gap: 2px; }
.brand__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.masthead__side {
  display: flex;
  align-items: center;
  gap: 24px;
}
.masthead__note {
  max-width: 340px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
}
.masthead__qq {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.masthead__qq:hover { border-color: var(--ink); }

/* ---------- 主导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 26px;
  min-height: 56px;
}
.nav__link {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding-block: 16px;
  border-bottom: 2px solid transparent;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-current {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.nav__meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- 通用 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--light { color: #93a3ab; }
.eyebrow__dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
}
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.textlink:hover { color: var(--accent); border-color: var(--accent); }
.textlink--light { color: var(--paper); border-color: rgba(255, 255, 255, 0.3); }
.textlink--light:hover { color: #fff; border-color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.is-copied {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  line-height: 1.6;
  white-space: nowrap;
}
.tag--基础 { color: #3d6a52; border-color: #a9c3b3; }
.tag--中等 { color: #7a5a1f; border-color: #cbb78a; }
.tag--较高 { color: #8a3f2a; border-color: #cca593; }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px) clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(400px, 0.86fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.hero__copy { padding-top: 6px; }
.hero h1 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(2.9rem, 6.4vw, 5.45rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  position: relative;
}
.hero__lede {
  margin-top: 28px;
  max-width: 46ch;
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.hero__note {
  margin-top: 16px;
  max-width: 46ch;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.hero__invoke { margin-top: clamp(38px, 5vw, 62px); }
.hero__index {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
  padding-top: 8px;
}
.hero__index-title { font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.hero__index ol { flex: 1; margin-top: 4px; list-style: none; }
.hero__index li { border-bottom: 1px solid var(--line); }
.hero__index a {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  transition: color 0.18s ease;
}
.hero__index-num { font-size: 10px; color: var(--muted); }
.hero__index-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.1;
}
.hero__index-en {
  margin-left: auto;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.hero__index a:hover .hero__index-name { color: var(--brand); }
.hero__index-meta {
  padding-top: 14px;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 通用表单 ---------- */
.field {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  background: #0f1f27;
  border: 1px solid #2b4049;
  color: var(--paper);
  font-size: 14px;
  border-radius: 0;
  appearance: none;
}
select.field {
  background-image: linear-gradient(45deg, transparent 50%, #8ea0a8 50%),
                    linear-gradient(135deg, #8ea0a8 50%, transparent 50%);
  background-position: calc(100% - 16px) 20px, calc(100% - 11px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 30px;
}
.field:focus { outline: 1px solid var(--paper); outline-offset: 0; }

/* ---------- 区块骨架 ---------- */
.section { padding-block: clamp(56px, 7vw, 88px); }
.section--paper { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--skills { background: var(--surface); border-bottom: 1px solid var(--line); }
.section--deep { background: var(--deep); color: var(--paper); }
.section--list { padding-top: clamp(36px, 4vw, 52px); }
.section__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section__headline {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}
.section__head h2,
.about__title {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3.15rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.section__desc {
  max-width: 48ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  padding-bottom: 4px;
}
.section__head--compact { gap: 10px; margin-bottom: 22px; }
.section__head--compact h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.section__head--deep { flex-direction: row; align-items: end; justify-content: space-between; gap: 32px; }
.section__head--deep h2 { color: var(--paper); }
.section__foot {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11.5px;
  color: var(--muted);
}
.section__foot--deep { color: #8b9ba3; border-top: 1px solid rgba(255, 255, 255, 0.12); padding-top: 18px; }
.section__note {
  margin-top: 26px;
  max-width: 72ch;
  font-size: 12.5px;
  color: var(--muted);
}
.section__note a { border-bottom: 1px solid var(--line-strong); }

/* ---------- 六个 skill 轨道 ---------- */
.skill-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}
.skill-rail__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 148px;
  padding: 22px 22px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background 0.2s ease;
}
.skill-rail__item:hover { background: var(--paper); }
.skill-rail__top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  letter-spacing: 0.14em;
}
.skill-rail__name {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
}
.skill-rail__more {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--brand);
}
.skill-rail__item:hover .skill-rail__more { color: var(--accent); }

/* ---------- 题目行 ---------- */
.topic-list { border-top: 1px solid var(--line-strong); }
.topic-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 22px;
  padding: 17px 6px 17px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s ease, padding-left 0.18s ease;
}
.topic-row:hover { background: var(--surface); padding-left: 8px; }
.topic-row__id {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.topic-row__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.topic-row__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.topic-row__stack {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-row__meta {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.topic-row__date { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.topic-row__arrow { font-size: 18px; color: var(--line-strong); transition: color 0.18s ease, transform 0.18s ease; }
.topic-row:hover .topic-row__arrow { color: var(--accent); transform: translateX(3px); }

.topic-list--invert { border-top-color: rgba(255, 255, 255, 0.28); }
.topic-row--invert { border-bottom-color: rgba(255, 255, 255, 0.12); color: var(--paper); }
.topic-row--invert:hover { background: rgba(255, 255, 255, 0.045); }
.topic-row--invert .topic-row__id,
.topic-row--invert .topic-row__date { color: #8b9ba3; }
.topic-row--invert .topic-row__stack { color: #97a6ad; }
.topic-row--invert .topic-row__meta { color: #c2ccd0; }
.topic-row--invert .topic-row__arrow { color: #5c6c74; }
.topic-row--invert .tag { color: #d9e1e4; border-color: #4b5d66; }
.topic-row--invert:hover .topic-row__arrow { color: #e8b49c; }

/* ---------- 今日 ---------- */
.today__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-size: 12px;
  color: #97a6ad;
}
.today__meta .mono { font-size: 22px; color: var(--paper); letter-spacing: 0.04em; }

/* ---------- 各专业最新 ---------- */
.latest-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.latest-group {
  padding: 22px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.latest-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.latest-group__head a {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--paper);
  transition: color 0.18s ease;
}
.latest-group__head a:hover { color: var(--accent); }
.latest-group__meta { font-size: 10px; color: #7e9098; letter-spacing: 0.08em; white-space: nowrap; }
.latest-group ul { margin-top: 12px; list-style: none; display: grid; gap: 9px; }
.latest-group li a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  color: #c9d6da;
  font-size: 12.5px;
  transition: color 0.18s ease;
}
.latest-group li a:hover { color: var(--paper); }
.latest-group li .mono { color: #7e9098; font-size: 10px; }
.latest-group__title {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------- 专业列表 ---------- */
.major-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 56px;
  border-top: 1px solid var(--line-strong);
}
.major-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.18s ease, background 0.18s ease;
}
.major-row:hover { padding-left: 6px; }
.major-row__num { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.major-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.major-row__name { font-family: var(--serif); font-size: 21px; font-weight: 700; line-height: 1.3; }
.major-row__tag { font-size: 12px; color: var(--muted); }
.major-row__meta { font-family: var(--mono); font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.major-row__meta b { color: var(--ink); font-weight: 600; }
.major-row__arrow { color: var(--line-strong); font-size: 17px; transition: color 0.18s ease, transform 0.18s ease; }
.major-row:hover .major-row__arrow { color: var(--accent); transform: translateX(3px); }

/* ---------- 步骤 ---------- */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  border-top: 1px solid var(--line-strong);
}
.step { padding-top: 22px; }
.step__num {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.12em;
}
.step h3 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
}
.step p {
  margin-top: 8px;
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 问答 ---------- */
.faq-list { border-top: 1px solid var(--line-strong); }
.qa {
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 56px);
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
.qa__q {
  display: flex;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}
.qa__q .mono { color: var(--accent); padding-top: 4px; flex: none; }
.qa__a { color: var(--ink-soft); }
.qa__a p { font-size: 14.5px; line-height: 1.8; }
.qa__a p + p { margin-top: 8px; }
.faq-list--tight .qa { padding-block: 18px; }
.faq-list--tight .qa__q { font-size: 15px; }

/* ---------- 关于 ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 6vw, 88px);
}
.about__grid p { margin-top: 14px; max-width: 60ch; font-size: 15px; color: var(--ink-soft); }
.facts { border-top: 1px solid var(--line-strong); }
.facts > div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 2px;
}
.facts dd { font-size: 13.5px; line-height: 1.7; }
.facts dd a { border-bottom: 1px solid var(--line-strong); }
.facts--stack > div { grid-template-columns: 64px minmax(0, 1fr); }
.facts--stack dd { font-size: 12.5px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--deep);
  color: #c8d1d5;
  padding-block: 58px 26px;
  border-top: 1px solid var(--deep-2);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.85fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 40px;
}
.footer__brand {
  font-family: var(--serif);
  font-size: 27px;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.footer__text {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.8;
  color: #98a6ad;
}
.footer__mono {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #6f8088;
}
.footer__heading {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7e9098;
}
.footer__links { list-style: none; margin-top: 14px; }
.footer__links li + li { margin-top: 7px; }
.footer__links a {
  font-size: 13px;
  color: #c8d1d5;
  transition: color 0.18s ease;
}
.footer__links a:hover { color: var(--paper); }
.footer__contact {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--paper);
  border-bottom: 1px solid #3c4e57;
}
.footer__small { margin-top: 10px; font-size: 11.5px; line-height: 1.7; color: #83949c; }
.footer__small a { border-bottom: 1px solid #3c4e57; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid #24343c;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: #71838b;
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #1a2a32;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: #62747c;
}
.footer__legal a { color: inherit; transition: color 0.18s ease; }
.footer__legal a:hover { color: var(--accent); }
.footer__licenses { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- 声明页 ---------- */
.legal { padding: clamp(44px, 7vw, 88px) 0 clamp(64px, 9vw, 112px); }
.legal__inner { max-width: 780px; }
.legal h1 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.legal__meta { margin-top: 10px; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.legal__body { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.legal__body h2 {
  margin: 28px 0 8px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p,
.legal__body li { font-size: 14px; line-height: 1.95; color: var(--ink-soft); }
.legal__body p { margin: 0 0 12px; }
.legal__body ul { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 6px; }
.legal__body a { color: var(--brand); border-bottom: 1px solid var(--line-strong); }
.legal__body a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- 面包屑 ---------- */
.crumbs { border-bottom: 1px solid var(--line); background: var(--paper); }
.crumbs__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: var(--line-strong); }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ---------- 专业页头部 ---------- */
.major-hero { padding-block: clamp(38px, 5vw, 62px) clamp(34px, 4vw, 48px); }
.major-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.major-hero h1 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
.major-hero__tagline {
  margin-top: 14px;
  font-size: 16px;
  color: var(--brand);
  letter-spacing: 0.01em;
}
.major-hero .lede { margin-top: 18px; font-size: 15.5px; max-width: 56ch; }
.major-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}
.major-hero__facts > div { padding-top: 12px; }
.major-hero__facts dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.major-hero__facts dd {
  margin-top: 2px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.2;
}
.major-hero__facts dd.mono { font-size: 20px; padding-top: 6px; }

/* ---------- 筛选条 ---------- */
.toolbar {
  position: sticky;
  top: 56px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  background: var(--paper);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.toolbar__search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
}
.toolbar__search input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.toolbar__search input::placeholder { color: var(--muted); }
.toolbar__select {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
}
.toolbar__select select {
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  outline: none;
  max-width: 118px;
}
.toolbar__count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.empty-state {
  padding: 42px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- 相邻 / 翻页 ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid var(--line-strong);
}
.related {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 18px;
  transition: color 0.18s ease;
}
.related .mono { color: var(--muted); }
.related:hover { color: var(--accent); }
.pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}
.pager__link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}
.pager__link .mono { color: var(--muted); font-size: 10px; }
.pager__link:hover { color: var(--accent); }
.pager__link--next { text-align: right; align-items: flex-end; }
.pager--topic { border-top: 1px solid var(--line); background: var(--surface); }
.pager__inner { display: grid; grid-template-columns: 1fr 1fr; }
.pager__inner .pager__link { padding: 20px 0; }

/* ---------- 题目页头部 ---------- */
.topic-hero { padding-block: clamp(36px, 4.5vw, 54px) clamp(30px, 4vw, 44px); }
.topic-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.topic-hero h1 {
  margin-top: 15px;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.1vw, 3.45rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.topic-hero .lede { margin-top: 18px; font-size: 16px; max-width: 58ch; }
.tagrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.tagrow .mono { font-size: 11px; color: var(--muted); }
.topic-hero__meta {
  border-left: 1px solid var(--line-strong);
  padding-left: 20px;
}
.topic-hero__meta > div {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.topic-hero__meta > div:first-child { border-top: 1px solid var(--line); }
.topic-hero__meta dt {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 2px;
}
.topic-hero__meta dd { font-size: 12.5px; line-height: 1.65; }

/* ---------- 列表页最新题目 ---------- */
.featured-topic {
  margin-top: 28px;
  padding-block: clamp(30px, 4vw, 46px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.featured-topic__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.featured-topic h2 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.featured-topic h2 a { transition: color 0.18s ease; }
.featured-topic h2 a:hover { color: var(--brand); }
.featured-topic .lede { margin-top: 16px; max-width: 56ch; font-size: 15px; }
.featured-topic__cta { display: inline-flex; margin-top: 20px; }
.featured-topic .topic-hero__meta { margin-top: 4px; }

/* ---------- 提示语深色区 ---------- */
.prompt-section {
  background: var(--deep);
  color: var(--paper);
  padding-block: clamp(34px, 4.5vw, 52px);
}
.promptbox { max-width: 100%; }
.promptbox__head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 22px;
}
.promptbox__head h2 {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
  color: var(--paper);
  font-weight: 700;
}
.promptbox__head > p {
  max-width: 46ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: #9caab1;
  padding-bottom: 3px;
}
.chips--dark { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.promptbox__text {
  width: 100%;
  margin-top: 14px;
  padding: 17px 18px;
  min-height: 120px;
  resize: vertical;
  background: #0f1f27;
  border: 1px solid #2b4049;
  color: #eef2f3;
  font-size: 15px;
  line-height: 1.85;
}
.promptbox__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 16px;
}
.promptbox__sentence {
  margin-top: 16px;
  padding: 18px 20px;
  background: #0f1f27;
  border: 1px solid #2b4049;
  border-left: 3px solid var(--accent);
  color: #eef2f3;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.promptbox__sentence .masked {
  color: var(--accent);
  font-family: var(--mono);
  letter-spacing: 0.14em;
}
.promptbox__hint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #8b9ba3;
}

/* ---------- 技能调用面板（始终绑定具体题目） ---------- */
.invoke-section {
  background: var(--deep);
  color: var(--paper);
  padding-block: clamp(30px, 4vw, 46px);
}
.invoke {
  background: var(--deep);
  color: var(--paper);
  border: 1px solid #20343e;
  padding: clamp(20px, 2.4vw, 28px);
  box-shadow: 0 36px 70px -48px rgba(11, 22, 28, 0.85);
}
.invoke--inset {
  margin-top: 34px;
  padding: 30px 0 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.invoke__head { display: grid; gap: 8px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.invoke__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  line-height: 1.22;
  font-weight: 700;
  color: var(--paper);
}
.invoke__desc { max-width: 58ch; font-size: 12.5px; line-height: 1.75; color: #9caab1; }
.invoke__body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
  margin-top: 20px;
}
.invoke__controls { min-width: 0; }
.invoke__stage { margin-top: 0; }
.invoke__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: #a9b6bc;
}
.invoke__label .mono { color: var(--accent); }
.stage-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.stage-tab {
  min-height: 44px;
  padding: 5px 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #d3dcdf;
  font-size: 12.5px;
  line-height: 1.25;
  text-align: left;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.stage-tab .mono { display: block; font-size: 9px; letter-spacing: 0.12em; color: #7e9098; }
.stage-tab:hover { border-color: rgba(255, 255, 255, 0.55); }
.stage-tab[aria-pressed="true"] { background: var(--paper); border-color: var(--paper); color: var(--ink); font-weight: 600; }
.stage-tab[aria-pressed="true"] .mono { color: var(--accent); }
.invoke__fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 18px;
}
.invoke__field { display: block; }
.invoke__field > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #a9b6bc;
}
.invoke__field > span b { color: var(--accent); font-weight: 400; }
.invoke__bound {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 13px;
  color: #c6d0d5;
}
.invoke__bound b { font-weight: 600; color: var(--paper); }
.invoke__bound .mono { color: #8ea0a8; }
.invoke__out { display: flex; flex-direction: column; min-width: 0; }
.invoke__outhead {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: #8ea0a8;
  letter-spacing: 0.1em;
}
.invoke__preview {
  width: 100%;
  min-height: 118px;
  padding: 15px 16px;
  resize: vertical;
  background: #0f1f27;
  border: 1px solid #2b4049;
  border-left: 3px solid var(--accent);
  color: #eef2f3;
  font-size: 13.5px;
  line-height: 1.8;
}
.invoke__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}
.invoke__actions--end { justify-content: flex-end; }


/* ---------- 正文与侧栏 ---------- */
.topic-body,
.skill-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: clamp(36px, 6vw, 84px);
  align-items: start;
}
.prose section + section { margin-top: clamp(46px, 5vw, 64px); }
.prose__num {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 16px;
}
.prose p {
  max-width: 66ch;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}
.prose p + p { margin-top: 12px; }
.prose__list { margin-top: 14px; list-style: none; max-width: 66ch; }
.prose__list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.prose__list li + li { margin-top: 9px; }
.prose__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 6px;
  height: 1px;
  background: var(--accent);
}
.prose__list b { color: var(--ink); }
.prose__list--check li::before { content: "✓"; background: none; width: auto; height: auto; top: 0; font-size: 11px; color: var(--accent); }
.prose__note {
  margin-top: 14px;
  padding: 12px 14px;
  border-left: 2px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px !important;
  color: var(--muted) !important;
}

.route { margin-top: 18px; list-style: none; border-top: 1px solid var(--line-strong); }
.route li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.route__step { padding-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.route h3 { font-size: 16px; font-weight: 600; }
.route p { margin-top: 4px; font-size: 13.5px; line-height: 1.75; color: var(--muted); max-width: 60ch; }

.io-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 16px;
}
.io-grid h3 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}

.skill-steps { margin-top: 18px; list-style: none; border-top: 1px solid var(--line-strong); }
.skill-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.skill-steps .mono { color: var(--accent); font-size: 11px; padding-top: 3px; }
.skill-steps p { font-size: 14.5px; line-height: 1.7; color: var(--ink-soft); }

.topic-side { position: sticky; top: 80px; }
.side-block { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.side-block:last-child { border-bottom: 0; margin-bottom: 0; }
.side-block__title {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 10px;
}
.side-block__text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.side-block__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.side-block__links .textlink { font-size: 13px; }
.side-block--link .textlink { font-size: 13px; }
.topic-mini-list { display: flex; flex-direction: column; }
.topic-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.55;
  transition: color 0.18s ease;
}
.topic-mini:last-child { border-bottom: 1px solid var(--line); }
.topic-mini .mono { font-size: 9.5px; color: var(--muted); }
.topic-mini:hover { color: var(--accent); }

/* ---------- 技能库 ---------- */
.skills-hero { padding-block: clamp(46px, 6vw, 76px) clamp(36px, 4vw, 50px); }
.skills-hero h1 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.skills-hero .lede { margin-top: 20px; max-width: 58ch; }
.skill-rows { border-top: 1px solid var(--line-strong); }
.skill-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 360px 20px;
  gap: 26px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.18s ease;
}
.skill-row:hover { padding-left: 6px; }
.skill-row__num { color: var(--muted); font-size: 12px; }
.skill-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.skill-row__name { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.3; }
.skill-row__name .mono { font-size: 10px; letter-spacing: 0.12em; color: var(--muted); margin-left: 6px; }
.skill-row__def { font-size: 12.5px; line-height: 1.7; color: var(--muted); max-width: 62ch; }
.skill-row__io { display: flex; flex-direction: column; gap: 5px; font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.skill-row__io b {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-right: 7px;
  font-weight: 400;
}
.skill-row__arrow { color: var(--line-strong); transition: color 0.18s ease, transform 0.18s ease; }
.skill-row:hover .skill-row__arrow { color: var(--accent); transform: translateX(3px); }

/* ---------- 技能详情 ---------- */
.skill-hero { padding-block: clamp(38px, 5vw, 58px) clamp(32px, 4vw, 44px); }
.skill-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.skill-hero h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.8vw, 4rem);
  line-height: 1.1;
}
.skill-hero h1 span {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--muted);
  vertical-align: middle;
  margin-left: 8px;
  font-weight: 400;
}
.skill-hero .lede { margin-top: 18px; }
.skill-hero__io { border-top: 1px solid var(--line-strong); }
.skill-hero__io > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.skill-hero__io dt {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding-top: 2px;
}
.skill-hero__io dd { font-size: 12.5px; line-height: 1.65; }
.skill-hero__io dd a { border-bottom: 1px solid var(--line-strong); }
.skill-hero__io dd a:hover { color: var(--brand); border-color: var(--brand); }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .nav__inner { column-gap: 20px; }
  .nav__link { font-size: 12px; }
  .nav__meta { display: none; }
  .hero::before { display: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr); gap: 40px; }
  .skill-row { grid-template-columns: 46px minmax(0, 1fr) 300px 20px; gap: 18px; }
  .major-list { column-gap: 40px; }
  .topic-row { grid-template-columns: 82px minmax(0, 1fr) auto 20px; gap: 16px; }
}

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 br { display: none; }
  .hero h1 { max-width: 15ch; }
  .section__headline { grid-template-columns: 1fr; gap: 12px; }
  .section__desc { max-width: 62ch; }
  .skill-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .major-list { grid-template-columns: 1fr; }
  .topic-body,
  .skill-body { grid-template-columns: 1fr; gap: 48px; }
  .topic-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .side-block { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
  .topic-hero__grid,
  .skill-hero__grid,
  .major-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .topic-hero__meta { border-left: 0; padding-left: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .major-hero__facts { max-width: 420px; }
  .skill-row { grid-template-columns: 40px minmax(0, 1fr) 20px; }
  .skill-row__io { display: none; }
  .promptbox__head { grid-template-columns: 1fr; gap: 10px; }
  .toolbar { position: static; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .topbar__right { display: none; }
  .masthead__inner { padding-block: 18px; }
  .masthead__note { display: none; }
  .masthead__qq { padding: 7px 10px; font-size: 11px; }
  .brand__mark { width: 40px; height: 40px; font-size: 23px; }
  .brand__name { font-size: 19px; }
  .brand__sub { font-size: 9px; letter-spacing: 0.1em; }
  .nav__inner {
    flex-wrap: nowrap;
    gap: 22px;
    min-height: 52px;
    padding-right: 34px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-inline: 20px;
  }
  .nav__inner::-webkit-scrollbar { display: none; }
  .nav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 1px;
    width: 30px;
    background: linear-gradient(90deg, rgba(244, 241, 234, 0), var(--paper));
    pointer-events: none;
  }
  .nav__meta { display: none; }
  .nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 12px;
    padding-block: 14px;
  }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(2.3rem, 10.5vw, 3.2rem); max-width: none; }
  .hero__lede { font-size: 15px; }
  .btn { min-height: 48px; width: 100%; }
  .section__head h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .section__head--deep { flex-direction: column; align-items: flex-start; gap: 14px; }
  .today__meta { text-align: left; }
  .skill-rail { grid-template-columns: 1fr; }
  .skill-rail__item { min-height: 0; padding: 18px; }
  .topic-row {
    grid-template-columns: minmax(0, 1fr) 22px;
    gap: 4px 12px;
    padding-block: 14px;
  }
  .topic-row__id { grid-column: 1; grid-row: 1; font-size: 10px; }
  .topic-row__main { grid-column: 1; grid-row: 2; }
  .topic-row__meta { grid-column: 1; grid-row: 3; flex-wrap: wrap; gap: 8px; font-size: 11px; }
  .topic-row__arrow { grid-column: 2; grid-row: 1 / 4; align-self: center; }
  .topic-row__title { font-size: 16px; }
  .topic-row:hover { padding-left: 0; }
  .major-row { grid-template-columns: 28px minmax(0, 1fr) 18px; gap: 10px; }
  .major-row__meta { grid-column: 2; grid-row: 2; }
  .major-row__arrow { grid-column: 3; grid-row: 1 / 3; }
  .major-row__body { gap: 1px; }
  .major-row__name { font-size: 19px; }
  .step-grid { grid-template-columns: 1fr; gap: 24px; }
  .step { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .qa { grid-template-columns: 1fr; gap: 8px; padding-block: 18px; }
  .about__grid { grid-template-columns: 1fr; gap: 30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__lead { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 6px; }
  .footer__legal { flex-direction: column; gap: 6px; }
  .related-grid { grid-template-columns: 1fr; }
  .topic-hero__meta { grid-template-columns: 1fr; }
  .topic-hero__meta > div:first-child { border-top: 1px solid var(--line); }
  .tagrow { gap: 10px; }
  .promptbox__text { font-size: 14px; min-height: 150px; }
  .promptbox__foot { flex-direction: column; align-items: stretch; }
  .promptbox__foot .textlink { align-self: flex-start; }
  .toolbar { gap: 8px; }
  .toolbar__search { flex-basis: 100%; }
  .toolbar__count { margin-left: 0; flex-basis: 100%; }
  .io-grid { grid-template-columns: 1fr; gap: 20px; }
  .topic-side { grid-template-columns: 1fr; gap: 26px; }
  .related { font-size: 16px; }
  .pager__inner { grid-template-columns: 1fr; }
  .pager__link--next { text-align: left; align-items: flex-start; border-top: 1px solid var(--line); }
  .skill-row { grid-template-columns: 30px minmax(0, 1fr) 18px; gap: 12px; padding-block: 18px; }
  .skill-row__name { font-size: 20px; }
  .skills-hero h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
  .skill-hero h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  .skill-hero__io > div { grid-template-columns: 56px minmax(0, 1fr); }
  .route li { grid-template-columns: 54px minmax(0, 1fr); gap: 12px; }
  .prose p { font-size: 15px; }
  .prose__list li { font-size: 14px; }
  .field,
  .toolbar__search input,
  .toolbar__select select { font-size: 16px; }
  .toolbar__select { min-height: 46px; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
  .skill-rail__item { padding: 16px; }
}

@media (max-width: 860px) {
  .stage-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .invoke__body { grid-template-columns: 1fr; gap: 24px; }
  .featured-topic__grid { grid-template-columns: 1fr; gap: 24px; }
  .latest-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .stage-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .latest-groups { grid-template-columns: 1fr; }
  .invoke { padding: 18px; }
  .invoke--inset { padding: 24px 0 0; }
  .invoke__preview { font-size: 14px; }
  .invoke__actions { align-items: stretch; }
  .invoke__actions .btn { width: 100%; }
}

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