/* ==========================================================================
   天美在线观看 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --ink: #111315;
  --ink-soft: #2c3130;
  --paper: #f5f1e8;
  --paper-lift: #fffdf7;
  --orange: #f05a32;
  --teal: #1f4f4a;
  --sand: #e4c45a;
  --mist: #8a9491;
  --line: #d8d2c4;
  --line-soft: #e6e0d3;

  --font-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Roboto Mono", "SFMono-Regular", Consolas, "Courier New", monospace;

  --wrap: 1180px;
  --gutter: 24px;
  --radius: 6px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--orange);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

strong {
  font-weight: 500;
  color: var(--ink-soft);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 1px 5px;
  border-radius: 3px;
  background-color: #efe9db;
  color: var(--teal);
}

button {
  font-family: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   layout
   ========================================================================== */

.site-header {
  position: relative;
  z-index: 20;
  background-color: var(--paper-lift);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--wrap);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
}

.brand-name:hover {
  color: var(--orange);
}

.brand-slogan {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--mist);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list > li > a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 11px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-list > li > a:hover {
  color: var(--orange);
  background-color: #f2ecdf;
}

.nav-list > li > a.is-current {
  color: var(--paper-lift);
  background-color: var(--ink);
}

.nav-list > li > a.is-current:hover {
  color: var(--paper-lift);
  background-color: var(--teal);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper-lift);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.breadcrumb a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 18px 0 0;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.16;
  color: var(--ink);
  max-width: 22em;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.page-title .page-kicker,
.page-title .title-kicker {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
}

.page-kicker,
.title-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
}

.page-summary,
.title-summary {
  margin-top: 10px;
  max-width: 62em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.site-footer {
  background-color: var(--paper-lift);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  column-gap: 48px;
  row-gap: 24px;
}

.footer-brand {
  grid-column: 1;
  grid-row: 1;
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.footer-slogan {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.footer-nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}

.footer-group {
  min-width: 130px;
}

.footer-group-title {
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-group a {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.footer-group a:hover {
  color: var(--orange);
}

.footer-scope {
  grid-column: 1 / -1;
  grid-row: 2;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.footer-bottom {
  grid-column: 1 / -1;
  grid-row: 3;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--mist);
}


/* ==========================================================================
   components
   ========================================================================== */

/* 通用区块标题 */
.section-head {
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: end;
  gap: 10px 32px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.25;
}

.section-desc,
.section-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.section-title {
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.25;
}

.section-lead {
  margin-top: 10px;
  max-width: 60em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* 通用文字链接 */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  border-bottom: 1px solid transparent;
}

.link-more::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 13px;
}

.link-more:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* 标签 */
.tag,
.archive-tag a,
.archive-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 4px 11px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  color: var(--teal);
  background-color: #f0ebdd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.tag:hover,
.archive-tag a:hover,
.archive-tags a:hover {
  color: var(--paper-lift);
  background-color: var(--teal);
  border-color: var(--teal);
}

/* 阅读列表（首页与片单页共用） */
.reading-list {
  display: flex;
  flex-direction: column;
}

.reading-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.reading-list li:first-child {
  padding-top: 0;
}

.reading-list a,
.reading-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.reading-list a:hover,
.reading-link:hover {
  color: var(--orange);
}

.reading-list p,
.reading-item .reading-desc {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

/* 侧栏通用 */
.aside-title {
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: var(--teal);
  text-transform: uppercase;
}

.aside-block {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.aside-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.aside-anchor-list li,
.toc-list li,
.aside-toc li {
  border-bottom: 1px solid var(--line-soft);
}

.aside-anchor-list a,
.toc-list a,
.aside-toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.aside-anchor-list a:hover,
.toc-list a:hover,
.aside-toc a:hover {
  color: var(--orange);
}


/* ==========================================================================
   pages
   ========================================================================== */

/* ---------- 首页 ---------- */

.home-main {
  padding-bottom: 0;
}

.home-main > section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--gutter);
}

/* 首屏 */
.hero-program {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 40px;
  align-items: start;
  padding-top: 48px;
}

.hero-copy {
  min-width: 0;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--orange);
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 14px;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.14;
  color: var(--ink);
}

.hero-lead {
  margin-top: 18px;
  max-width: 30em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.btn-primary {
  color: var(--paper-lift);
  background-color: var(--orange);
  border-color: var(--orange);
}

.btn-primary:hover {
  color: var(--paper-lift);
  background-color: #d94a24;
  border-color: #d94a24;
}

.btn-ghost {
  color: var(--ink);
  background-color: transparent;
  border-color: var(--ink);
}

.btn-ghost:hover {
  color: var(--paper-lift);
  background-color: var(--ink);
}

/* 栏目站序索引 */
.program-index {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  counter-reset: idx;
}

.program-index-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 20px;
}

.program-index-list li {
  min-width: 0;
  border-bottom: 1px solid var(--line-soft);
  counter-increment: idx;
}

.program-index-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.program-index-list a::before {
  content: counter(idx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist);
}

.program-index-list a:hover {
  color: var(--orange);
}

.program-index-list a:hover::before {
  color: var(--orange);
}

/* 首屏主视觉 */
.hero-figure {
  min-width: 0;
  padding: 14px;
  background-color: var(--paper-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hero-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  background-color: #e8e2d4;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.hero-tags li {
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 3px;
  background-color: #f7f3e9;
}

.hero-figure figcaption {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

/* 频道刻度带 */
.channel-scale {
  border-top: 1px solid var(--line);
}

.channel-scale-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
}

.channel-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.channel-no {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  font-size: 26px;
  padding-top: 2px;
  color: var(--orange);
}

.channel-body {
  min-width: 0;
}

.channel-name {
  font-size: 17px;
  line-height: 1.4;
}

.channel-form {
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--teal);
}

.channel-scene {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.channel-link {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 44px;
  padding-left: 10px;
  font-size: 13px;
  color: var(--orange);
  white-space: nowrap;
}

.channel-link:hover {
  color: var(--teal);
}

.channel-row:hover {
  background-color: #f8f4ea;
}

.channel-row:hover .channel-no {
  color: var(--teal);
}

/* 主题片单索引 */
.feature-index {
  border-top: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 40px;
  align-items: start;
}

.feature-main {
  min-width: 0;
}

.feature-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e8e2d4;
}

.feature-figure figcaption {
  margin-top: 8px;
}

.feature-kicker {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.feature-title {
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.35;
}

.feature-summary {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.feature-items {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.feature-items li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.item-no {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  font-size: 13px;
  padding-top: 4px;
  color: var(--orange);
}

.feature-main .link-more {
  margin-top: 16px;
}

.feature-side {
  min-width: 0;
  padding: 20px;
  background-color: var(--paper-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-title {
  font-size: 16px;
  line-height: 1.4;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.archive-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

/* 观看准备检查表 */
.viewing-check {
  border-top: 1px solid var(--line);
}

.check-list {
  border-top: 1px solid var(--line-soft);
}

.check-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.check-row .check-no {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  font-size: 22px;
  padding-top: 2px;
  color: var(--orange);
}

.check-row .check-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 6px 24px;
  align-items: baseline;
}

.check-target {
  font-size: 16px;
  line-height: 1.5;
}

.check-row .check-point {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.check-record {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.check-more {
  margin-top: 18px;
  font-size: 14px;
}

.check-more a {
  color: var(--orange);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.check-more a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

/* 入口核对与编目说明双栏 */
.entry-catalog-duo {
  border-top: 1px solid var(--line);
}

.duo-title {
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.25;
}

.duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.duo-card {
  min-width: 0;
  padding: 24px;
  background-color: var(--paper-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.duo-heading {
  font-size: 19px;
  line-height: 1.4;
}

.duo-desc {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.entry-steps {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.entry-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.entry-steps .step-no {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  font-size: 13px;
  padding-top: 4px;
  color: var(--orange);
}

.catalog-rules {
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.catalog-rules li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.catalog-rules .rule-no {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  font-size: 13px;
  padding-top: 4px;
  color: var(--teal);
}

.duo-card .link-more {
  margin-top: 14px;
}

/* 问题分流路径 */
.issue-router {
  border-top: 1px solid var(--line);
  padding-bottom: 64px;
}

.issue-list {
  border-top: 1px solid var(--line-soft);
}

.issue-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) auto;
  gap: 6px 28px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.issue-type {
  font-size: 16px;
  line-height: 1.5;
}

.issue-basis {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.issue-next {
  grid-column: 2;
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.issue-link {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-left: 12px;
  font-size: 13px;
  color: var(--orange);
  white-space: nowrap;
}

.issue-link:hover {
  color: var(--teal);
}

.issue-row:hover {
  background-color: #f8f4ea;
}

/* ---------- 内页通用主体 ---------- */

.page-layout {
  margin-top: 36px;
}

.page-layout.channel-layout,
.page-layout.check-layout,
.page-layout.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 264px;
  gap: 48px;
  align-items: start;
}

.channel-main,
.check-main,
.catalog-article {
  min-width: 0;
}

.channel-aside,
.check-aside,
.article-aside {
  min-width: 0;
  padding-top: 4px;
  border-top: 2px solid var(--ink);
}

/* ---------- 频道总览 ---------- */

.channel-main > section {
  margin-bottom: 48px;
}

.channel-figure {
  margin-bottom: 24px;
}

.channel-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e8e2d4;
}

.channel-figure figcaption {
  margin-top: 8px;
}

.scale-list {
  border-top: 1px solid var(--line);
}

.scale-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.scale-num {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  font-size: 22px;
  padding-top: 2px;
  color: var(--orange);
}

.scale-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 4px 22px;
  align-items: baseline;
}

.scale-name {
  font-size: 16px;
  line-height: 1.5;
}

.scale-form {
  font-size: 13px;
  line-height: 1.7;
  color: var(--teal);
}

.scale-scene {
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

.scale-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--orange);
}

.scale-row:hover {
  background-color: #f8f4ea;
}

.choose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.choose-item {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-lift);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sand);
  border-radius: var(--radius);
}

.choose-item h3 {
  font-size: 16px;
  line-height: 1.45;
}

.choose-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.mapping-list {
  border-top: 1px solid var(--line);
}

.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) 32px minmax(0, 1.6fr);
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.7;
}

.mapping-from {
  font-weight: 500;
  color: var(--ink);
}

.mapping-arrow {
  font-family: var(--font-mono);
  color: var(--orange);
  text-align: center;
}

.mapping-to {
  color: var(--ink-soft);
}

.aside-toc {
  margin-bottom: 20px;
}

.aside-links li {
  border-bottom: 1px solid var(--line-soft);
}

.aside-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.aside-links a:hover {
  color: var(--orange);
}

/* ---------- 主题片单 ---------- */

.topic-nav {
  margin-top: 32px;
}

.topic-nav-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.topic-nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 96px;
  padding: 14px;
  background-color: var(--paper-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.topic-nav-link:hover {
  border-color: var(--orange);
  color: var(--ink);
}

.topic-nav-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.topic-nav-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.topic-nav-count {
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
}

.lineup-hero {
  margin-top: 32px;
}

.lineup-hero img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e8e2d4;
}

.lineup-hero-caption {
  margin-top: 8px;
}

.lineup-list {
  margin-top: 48px;
}

.lineup-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.lineup-item:first-of-type {
  border-top: 1px solid var(--line);
}

.lineup-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.lineup-index {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  font-size: 20px;
  color: #b08d1f;
}

.lineup-title {
  font-size: 21px;
  line-height: 1.35;
}

.lineup-tag {
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: 3px;
  background-color: #f0ebdd;
}

.lineup-summary {
  margin-top: 12px;
  max-width: 52em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.lineup-entries {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.lineup-entry {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.entry-no {
  font-family: var(--font-mono);
  font-size: 12px;
  padding-top: 4px;
  color: var(--mist);
}

.entry-desc {
  min-width: 0;
}

.lineup-more {
  margin-top: 12px;
  font-size: 14px;
}

.lineup-more a {
  color: var(--orange);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.lineup-more a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.reading-archive {
  margin-top: 48px;
}

.reading-archive-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.reading-column,
.archive-column {
  min-width: 0;
}

.column-title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
  line-height: 1.4;
}

.reading-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.reading-item:first-child {
  padding-top: 0;
}

.archive-lead {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.archive-column .archive-tags {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* ---------- 观看准备 ---------- */

.setup-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.setup-figure {
  min-width: 0;
}

.setup-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e8e2d4;
}

.setup-figure figcaption {
  margin-top: 8px;
}

.setup-intro-copy {
  min-width: 0;
}

.setup-intro-copy h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.35;
}

.setup-intro-copy p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.setup-scope-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.setup-scope-tags li {
  padding: 4px 11px;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--teal);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: #f0ebdd;
}

.setup-checklist {
  margin-top: 40px;
}

.check-item {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  margin-top: -1px;
}

.check-summary {
  display: grid;
  grid-template-columns: 48px minmax(0, 0.75fr) minmax(0, 1.3fr) 24px;
  gap: 6px 18px;
  align-items: baseline;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
}

.check-summary::-webkit-details-marker {
  display: none;
}

.check-summary::after {
  content: "+";
  grid-column: 4;
  justify-self: end;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--orange);
}

.check-item[open] .check-summary::after {
  content: "−";
}

.check-summary:hover {
  background-color: #f8f4ea;
}

.check-summary .check-no {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  font-size: 18px;
  color: var(--orange);
}

.check-name {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}

.check-summary .check-point {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.setup-checklist .check-body {
  display: block;
  padding: 0 0 18px 66px;
  max-width: 62em;
}

.setup-checklist .check-body p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.setup-checklist .check-body p strong {
  display: inline-block;
  min-width: 5.5em;
  margin-right: 6px;
  color: var(--teal);
}

.environment-diff {
  margin-top: 40px;
}

.diff-table {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.diff-row {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr);
  gap: 8px 28px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.diff-title {
  font-size: 16px;
  line-height: 1.5;
}

.diff-desc {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.next-step {
  margin-top: 40px;
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.next-step-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 44px;
  padding: 20px;
  background-color: var(--paper-lift);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.next-step-card:hover {
  border-color: var(--orange);
  color: var(--ink);
}

.next-step-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange);
}

.next-step-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.next-step-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--teal);
  border-bottom: 1px solid var(--line);
}

.related-links-item:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ---------- 入口核对 ---------- */

.check-main > section {
  margin-bottom: 44px;
}

.check-main h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.35;
}

.check-order .step-list {
  margin-top: 20px;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.step-item .step-number {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  font-size: 26px;
  padding-top: 2px;
  color: #b08d1f;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 16px;
  line-height: 1.5;
}

.step-observe,
.step-judge {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.step-judge {
  color: var(--mist);
}

.record-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

.record-table caption {
  text-align: left;
  font-size: 13px;
  color: var(--mist);
  padding-bottom: 8px;
}

.record-table th,
.record-table td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.record-table thead th {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--teal);
  background-color: #f0ebdd;
  border-bottom: 1px solid var(--line);
}

.record-table tbody th {
  width: 30%;
  font-weight: 500;
  color: var(--ink);
}

.record-table tbody td {
  color: var(--ink-soft);
}

.condition-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.condition-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.condition-item h3 {
  font-size: 16px;
  line-height: 1.5;
}

.condition-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.condition-item p a {
  color: var(--orange);
  border-bottom: 1px solid var(--line);
}

.condition-item p a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.check-figure figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e8e2d4;
}

.check-figure figcaption {
  margin-top: 8px;
}

.check-aside {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-note-block p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--mist);
}

/* ---------- 编目说明 ---------- */

.catalog-section {
  margin-bottom: 44px;
}

.catalog-section h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  line-height: 1.35;
}

.layer-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.layer-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.layer-item h3 {
  font-size: 16px;
  line-height: 1.5;
}

.layer-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.layer-item .layer-example {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--teal);
}

.catalog-figure {
  margin: 18px 0;
}

.catalog-figure img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e8e2d4;
}

.catalog-figure figcaption {
  margin-top: 8px;
}

.field-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

.field-table th,
.field-table td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.field-table thead th {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--teal);
  background-color: #f0ebdd;
  border-bottom: 1px solid var(--line);
}

.field-table tbody th {
  width: 26%;
  font-weight: 500;
  color: var(--ink);
}

.field-table tbody td {
  color: var(--ink-soft);
}

.quote-rule-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.catalog-section .quote-rule {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.catalog-section .quote-rule h3 {
  font-size: 16px;
  line-height: 1.5;
}

.catalog-section .quote-rule p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.quote-note {
  margin-top: 14px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--teal);
  background-color: #f0ebdd;
  border-left: 3px solid var(--sand);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.related-entry {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.related-list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}

.related-list li {
  border-bottom: 1px solid var(--line-soft);
}

.related-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--teal);
}

.related-list a:hover {
  color: var(--orange);
}

.article-aside {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* ---------- 问题分流 ---------- */

.problem-routes {
  margin-top: 32px;
}

.route-list {
  border-top: 1px solid var(--line);
}

.route-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr) minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 6px 26px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.route-type {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.route-num {
  font-family: var(--font-mono);
  font-weight: 500;
  line-height: 1;
  font-size: 18px;
  color: var(--orange);
}

.route-type h3 {
  font-size: 16px;
  line-height: 1.5;
}

.route-basis,
.route-first,
.route-next {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.route-first a {
  color: var(--orange);
  border-bottom: 1px solid var(--line);
}

.route-first a:hover {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.route-next {
  color: var(--mist);
}

.route-row:hover {
  background-color: #f8f4ea;
}

.info-checklist {
  margin-top: 48px;
}

.checklist-body {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.checklist-figure {
  min-width: 0;
}

.checklist-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: #e8e2d4;
}

.checklist-figure figcaption {
  margin-top: 8px;
}

.checklist-items {
  min-width: 0;
  counter-reset: chk;
  border-top: 1px solid var(--line);
}

.checklist-items li {
  counter-increment: chk;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.checklist-items h3 {
  font-size: 16px;
  line-height: 1.5;
}

.checklist-items h3::before {
  content: counter(chk, decimal-leading-zero) " ";
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--orange);
  margin-right: 8px;
}

.checklist-items p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.problem-routes .quote-rule {
  margin-top: 48px;
}

.rule-list {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.rule-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.rule-item h3 {
  font-size: 16px;
  line-height: 1.5;
}

.rule-item p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.quote-sample {
  margin-top: 18px;
  padding: 16px 18px;
  background-color: var(--paper-lift);
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius);
}

.quote-sample-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--teal);
}

.quote-sample-text {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
  word-break: break-word;
}

.self-check {
  margin-top: 48px;
}

.self-check-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.self-check-item {
  min-width: 0;
  padding: 18px;
  background-color: var(--paper-lift);
  border: 1px solid var(--line);
  border-top: 3px solid var(--sand);
  border-radius: var(--radius);
}

.self-check-item h3 {
  font-size: 16px;
  line-height: 1.45;
}

.self-check-item h3 a {
  color: var(--ink);
}

.self-check-item h3 a:hover {
  color: var(--orange);
}

.self-check-item p {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ---------- 404 ---------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.error-inner {
  max-width: 720px;
  padding: 72px 0 96px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--orange);
}

.error-title {
  margin-top: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.16;
}

.error-lead {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.error-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.error-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 14px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--paper-lift);
}

.error-nav a:hover {
  color: var(--paper-lift);
  background-color: var(--ink);
  border-color: var(--ink);
}

.error-nav .error-home {
  color: var(--paper-lift);
  background-color: var(--orange);
  border-color: var(--orange);
}

.error-nav .error-home:hover {
  background-color: #d94a24;
  border-color: #d94a24;
}

.error-tips {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.error-tips h2 {
  font-size: 1.4rem;
  line-height: 1.4;
}

.error-tips ul {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}

.error-tips li {
  padding: 9px 0 9px 18px;
  position: relative;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-soft);
}

.error-tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 6px;
  background-color: var(--orange);
  border-radius: 50%;
}

/* 滚动出现增强：仅在不支持时保持可见 */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal-in 0.2s ease-out both;
  }

  @keyframes reveal-in {
    from {
      transform: translateY(6px);
    }
    to {
      transform: translateY(0);
    }
  }
}


/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav-list > li > a {
    padding: 0 9px;
    font-size: 13px;
  }

  .brand-slogan {
    display: none;
  }

  .header-inner {
    gap: 16px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-end;
    order: 2;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line-soft);
    margin-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li > a {
    min-height: 44px;
    padding: 0 12px;
    font-size: 15px;
    border-radius: var(--radius);
  }

  .hero-program {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 36px;
  }

  .hero-figure {
    order: 2;
  }

  .program-index {
    order: 3;
    margin-top: 8px;
  }

  .hero-figure img {
    height: 260px;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .channel-scale-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .check-row .check-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .duo-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .issue-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .issue-next {
    grid-column: 1;
  }

  .issue-link {
    grid-column: 1;
    grid-row: auto;
    padding-left: 0;
  }

  .page-layout.channel-layout,
  .page-layout.check-layout,
  .page-layout.article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .channel-aside,
  .check-aside,
  .article-aside {
    padding-top: 16px;
  }

  .scale-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .choose-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .topic-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .reading-archive-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .setup-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .check-summary {
    grid-template-columns: 40px minmax(0, 1fr) 24px;
  }

  .check-summary .check-point {
    grid-column: 2 / -1;
  }

  .check-summary::after {
    grid-column: 3;
    grid-row: 1;
  }

  .setup-checklist .check-body {
    padding-left: 40px;
  }

  .diff-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .next-step-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .route-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .checklist-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .self-check-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }

  .footer-brand,
  .footer-nav,
  .footer-scope,
  .footer-bottom {
    grid-column: 1;
    grid-row: auto;
  }

  .footer-nav {
    gap: 16px 32px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body.site-body {
    font-size: 15px;
  }

  .brand-name {
    font-size: 19px;
  }

  .page-title {
    padding-bottom: 14px;
  }

  .inner-main {
    padding-bottom: 56px;
  }

  .home-main > section {
    padding: 40px var(--gutter);
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 8vw, 2.6rem);
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .program-index-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-figure img {
    height: 210px;
  }

  .channel-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .channel-no {
    font-size: 22px;
  }

  .channel-link {
    grid-column: 2;
    padding-left: 0;
    justify-self: start;
  }

  .feature-figure img {
    height: 190px;
  }

  .check-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .check-row .check-no {
    font-size: 18px;
  }

  .duo-card {
    padding: 18px;
  }

  .scale-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .scale-num {
    font-size: 18px;
  }

  .mapping-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .mapping-arrow {
    text-align: left;
  }

  .topic-nav-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .lineup-hero img {
    height: 190px;
  }

  .lineup-title {
    font-size: 19px;
  }

  .lineup-entry {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 8px;
  }

  .setup-figure img,
  .catalog-figure img,
  .check-figure figure img,
  .channel-figure img {
    height: 190px;
  }

  .checklist-figure img {
    height: 200px;
  }

  .setup-checklist .check-body {
    padding-left: 0;
  }

  .setup-checklist .check-body p strong {
    display: block;
    min-width: 0;
    margin-right: 0;
  }

  .step-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .step-item .step-number {
    font-size: 20px;
  }

  .record-table,
  .field-table {
    display: block;
    overflow-x: auto;
  }

  .record-table thead th,
  .record-table tbody th,
  .record-table tbody td,
  .field-table thead th,
  .field-table tbody th,
  .field-table tbody td {
    min-width: 120px;
  }

  .record-table tbody th,
  .field-table tbody th {
    min-width: 96px;
  }

  .footer-inner {
    padding: 32px var(--gutter) 24px;
  }

  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }

  .error-inner {
    padding: 48px 0 64px;
  }

  .error-nav a {
    flex: 1 1 auto;
    justify-content: center;
  }
}
