/* ==========================================================================
   夸克影院 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base — 变量、重置、排版基础
   -------------------------------------------------------------------------- */

:root {
  --ink: #1c1a17;
  --ink-soft: #3a352e;
  --paper: #fbf7f1;
  --paper-alt: #f1eae0;
  --line: #e2d9cb;
  --line-strong: #cdc0ad;
  --red: #b8422d;
  --yellow: #d99a1f;
  --green: #2f6b4f;
  --blue: #33518f;
  --violet: #7a5a9c;
  --grey: #6b6257;
  --radius: 4px;
  --container: 1160px;
  --gutter: 24px;
  --serif: "Noto Serif SC", "Songti SC", SimSun, serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1.05rem;
}

h4 {
  font-size: 0.95rem;
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink-soft);
}

p {
  margin: 0 0 1em;
}

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child,
figure:last-child,
table:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

dl {
  margin: 0;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover {
  color: var(--red);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--grey);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.mono,
.log-date {
  font-family: var(--mono);
  font-size: 0.86rem;
  letter-spacing: 0;
}

.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;
}

/* --------------------------------------------------------------------------
   2. layout — 骨架：页头、主导航、主容器、页脚
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--grey);
  line-height: 1.3;
}

.brand:hover .brand-name {
  color: var(--red);
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-item > a,
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 0.93rem;
  color: var(--ink-soft);
  border-radius: var(--radius);
  white-space: nowrap;
}

.nav-item > a:hover,
.nav-dropdown-trigger:hover {
  color: var(--red);
  background: var(--paper-alt);
}

.nav-item > a.is-current {
  color: var(--red);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--red);
}

.nav-dropdown-trigger {
  gap: 4px;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-top: 1px;
  transition: transform 160ms ease;
}

.nav-dropdown-trigger[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 190px;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(28, 26, 23, 0.08);
  display: none;
  z-index: 50;
}

.nav-dropdown.is-open {
  display: block;
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 9px 12px;
  font-size: 0.9rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.nav-dropdown a:hover {
  background: var(--paper-alt);
  color: var(--red);
}

.lang-label {
  flex: 0 0 auto;
  font-size: 0.82rem;
  color: var(--grey);
  padding-left: 12px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-drawer {
  border-top: 1px solid var(--line);
  background: var(--paper);
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}

.drawer-list {
  list-style: none;
  margin: 0;
  padding: 8px var(--gutter) 20px;
}

.drawer-list > li {
  border-bottom: 1px solid var(--line);
}

.drawer-list > li:last-child {
  border-bottom: 0;
}

.drawer-list > li > a {
  display: block;
  padding: 13px 4px;
  font-size: 0.98rem;
  min-height: 44px;
}

.drawer-list > li > a.is-current {
  color: var(--red);
  font-weight: 600;
}

.drawer-group-title {
  display: block;
  padding: 13px 4px 6px;
  font-size: 0.98rem;
  color: var(--ink);
}

.drawer-sub {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 10px;
}

.drawer-sub a {
  display: block;
  padding: 9px 4px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  min-height: 40px;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.home-main,
.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.inner-main {
  padding-bottom: 56px;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0 4px;
  font-size: 0.83rem;
  color: var(--grey);
}

.breadcrumb a {
  color: var(--grey);
}

.breadcrumb a:hover {
  color: var(--red);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

/* 内页标题区 */

.page-header {
  padding: 6px 0 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}

.page-title {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
}

/* 通用双栏 */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.main-column {
  min-width: 0;
}

.aside-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 页脚 */

.site-footer {
  background: var(--paper-alt);
  border-top: 1px solid var(--line);
  margin-top: 56px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px var(--gutter) 28px;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr));
  gap: 32px 28px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-about p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--grey);
}

.footer-title {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin: 0 0 8px;
}

.footer-list a {
  font-size: 0.86rem;
  color: var(--grey);
  display: inline-block;
  padding: 2px 0;
}

.footer-list a:hover {
  color: var(--red);
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px var(--gutter) 28px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--grey);
  max-width: 720px;
}

.footer-copy {
  font-family: var(--mono);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   3. components — 通用组件
   -------------------------------------------------------------------------- */

/* 文本链接 */

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--red);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.text-link::after {
  content: "→";
  font-size: 0.9em;
}

.text-link:hover {
  border-bottom-color: var(--red);
}

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.93rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-primary:hover {
  background: #9d3724;
  border-color: #9d3724;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--paper-alt);
}

/* 区块标题 */

.section-head {
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0 0 6px;
}

.section-desc,
.section-note,
.section-intro {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--grey);
  margin: 0;
}

.section-note,
.section-intro {
  margin-bottom: 18px;
}

/* 锚点索引 */

.anchor-index {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.anchor-index a {
  display: inline-block;
  padding: 5px 11px;
  font-size: 0.83rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  min-height: 32px;
  line-height: 22px;
}

.anchor-index a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* 主视觉图 */

.lead-visual {
  margin: 0 0 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.lead-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.lead-visual figcaption {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

/* 侧栏卡片 */

.aside-card,
.side-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.aside-title,
.side-card-title {
  font-size: 1rem;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.aside-desc,
.aside-note,
.side-card-note {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--grey);
  margin: 0 0 12px;
}

.aside-card .text-link {
  margin-top: 12px;
}

/* 术语小抄 */

.glossary-mini {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  font-size: 0.84rem;
}

.glossary-mini dt {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.glossary-mini dd {
  margin: 0;
  color: var(--grey);
  line-height: 1.6;
}

/* 核验清单 */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.check-item {
  position: relative;
  padding-left: 26px;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper-alt);
}

.check-item::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 6px;
  height: 9px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(40deg);
}

/* FAQ 折叠 */

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  margin-bottom: 10px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item summary {
  position: relative;
  padding: 12px 40px 12px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.05rem;
  color: var(--grey);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--red);
}

.faq-body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
}

.faq-body p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* 信息表 */

.info-table {
  width: 100%;
  font-size: 0.87rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.info-table caption {
  text-align: left;
  font-size: 0.82rem;
  color: var(--grey);
  padding: 0 0 8px;
}

.info-table thead th {
  background: var(--paper-alt);
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
}

.info-table tbody th,
.info-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.65;
}

.info-table tbody th {
  font-weight: 600;
  color: var(--ink);
  background: rgba(241, 234, 224, 0.5);
  white-space: nowrap;
}

.info-table tbody tr:last-child th,
.info-table tbody tr:last-child td {
  border-bottom: 0;
}

.info-table tbody td {
  color: var(--ink-soft);
}

/* 相关入口条 */

.related-strip,
.back-link-strip {
  margin-top: 40px;
  padding: 20px 22px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-title {
  font-size: 0.95rem;
  margin: 0 0 12px;
}

.related-list,
.back-link-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-list li,
.back-link-strip li {
  margin: 0;
}

.related-list a,
.back-link-strip a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
  font-size: 0.87rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.related-list a:hover,
.back-link-strip a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* 侧栏链接列表 */

.aside-link-list,
.side-link-list,
.tag-list,
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-link-list li,
.side-link-list li,
.index-list li {
  border-bottom: 1px solid var(--line);
}

.aside-link-list li:last-child,
.side-link-list li:last-child,
.index-list li:last-child {
  border-bottom: 0;
}

.aside-link-list a,
.side-link-list a,
.index-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  min-height: 40px;
}

.aside-link-list a:hover,
.side-link-list a:hover,
.index-list a:hover {
  color: var(--red);
}

.index-count {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--grey);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 7px;
  line-height: 18px;
}

/* --------------------------------------------------------------------------
   4. pages — 首页
   -------------------------------------------------------------------------- */

.site-main.home-main {
  padding-top: 26px;
}

/* 首屏两列 */

.hero-columns {
  display: grid;
  grid-template-columns: 62fr 38fr;
  gap: 36px;
  align-items: start;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line);
}

.hero-visual {
  min-width: 0;
}

.hero-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.hero-figure figcaption {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.hero-intro {
  min-width: 0;
  padding-top: 4px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--red);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.hero-intro h1 {
  margin: 0 0 14px;
}

.hero-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.series-index {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.series-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.series-item {
  border-bottom: 1px dashed var(--line);
}

.series-item:last-child {
  border-bottom: 0;
}

.series-item a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  min-height: 40px;
  color: var(--ink-soft);
}

.series-name {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  min-width: 4.5em;
}

.series-note {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--grey);
}

.series-item a:hover .series-name {
  color: var(--red);
}

/* 题材索引带 */

.topic-index-strip {
  padding: 30px 0 8px;
}

.strip-heading {
  font-size: 1rem;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.strip-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.strip-cell {
  min-width: 0;
}

.strip-cell a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 12px 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left-width: 3px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.strip-cell a:hover {
  transform: translateX(2px);
  border-color: var(--line-strong);
}

.strip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.strip-name {
  font-family: var(--serif);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink);
}

.strip-hint {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--grey);
}

.strip-jq a {
  border-left-color: var(--red);
}

.strip-jq .strip-dot {
  background: var(--red);
}

.strip-jlp a {
  border-left-color: var(--yellow);
}

.strip-jlp .strip-dot {
  background: var(--yellow);
}

.strip-dh a {
  border-left-color: var(--green);
}

.strip-dh .strip-dot {
  background: var(--green);
}

.strip-zy a {
  border-left-color: var(--blue);
}

.strip-zy .strip-dot {
  background: var(--blue);
}

.strip-dp a {
  border-left-color: #4a6fa8;
}

.strip-dp .strip-dot {
  background: #4a6fa8;
}

.strip-js a {
  border-left-color: var(--violet);
}

.strip-js .strip-dot {
  background: var(--violet);
}

/* 首页主双栏 */

.home-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
  padding-top: 34px;
}

.home-section {
  margin-bottom: 38px;
}

.home-section:last-child {
  margin-bottom: 0;
}

/* 精选合集条目 */

.collection-entry {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.collection-entry:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.collection-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
  align-self: start;
}

.collection-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.collection-figure figcaption {
  margin: 0;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.78rem;
}

.collection-body {
  min-width: 0;
}

.collection-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.collection-reason {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.collection-order {
  margin: 0 0 12px;
  padding-left: 1.15em;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--grey);
}

.collection-order li {
  margin-bottom: 3px;
}

.collection-order li::marker {
  font-family: var(--mono);
  color: var(--red);
}

/* 题材分类速览 */

.channel-brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.channel-brief-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 0 11px 10px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  transition: border-color 180ms ease, transform 180ms ease;
}

.channel-brief-row:hover {
  transform: translateX(2px);
}

.channel-brief-name {
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.channel-brief-scope {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--grey);
}

.channel-brief-link {
  font-size: 0.82rem;
  color: var(--red);
  white-space: nowrap;
}

.channel-brief-link::after {
  content: "→";
  margin-left: 3px;
}

.channel-jq {
  border-left-color: var(--red);
}

.channel-jlp {
  border-left-color: var(--yellow);
}

.channel-dh {
  border-left-color: var(--green);
}

.channel-zy {
  border-left-color: var(--blue);
}

.channel-dp {
  border-left-color: #4a6fa8;
}

.channel-js {
  border-left-color: var(--violet);
}

/* 快速开始三步 */

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step-item {
  padding: 16px 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line-strong);
  border-radius: var(--radius);
  min-width: 0;
}

.step-number {
  display: block;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
  color: var(--red);
  margin-bottom: 8px;
}

.step-title {
  font-size: 0.94rem;
  margin: 0 0 6px;
}

.step-text {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--grey);
  margin: 0;
}

/* 更新记录摘录 */

.log-table-brief {
  width: 100%;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.log-table-brief caption {
  text-align: left;
  font-size: 0.8rem;
  color: var(--grey);
  padding-bottom: 6px;
}

.log-table-brief th,
.log-table-brief td {
  text-align: left;
  padding: 10px 10px 10px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.6;
}

.log-table-brief th {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.84rem;
}

.log-table-brief td {
  color: var(--ink-soft);
}

.log-table-brief .log-date {
  white-space: nowrap;
  color: var(--grey);
}

/* --------------------------------------------------------------------------
   5. pages — 内页通用标题区与正文块
   -------------------------------------------------------------------------- */

.page-title {
  margin-bottom: 4px;
}

.content-wrap > .page-title,
.inner-main > .page-title,
.container > .page-title-block,
.inner-main > .page-title-block {
  padding-top: 4px;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--red);
  margin: 0 0 8px;
}

.page-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 720px;
  margin: 0 0 16px;
}

.page-title .anchor-index,
.page-title-block .anchor-index {
  margin-top: 4px;
}

/* 内页各业务 section 统一间距 */

.channel-list,
.topic-map,
.browse-advice,
.collection-entries,
.editorial-standard,
.path-steps,
.check-list,
.exception-table,
.habits,
.change-type-legend,
.log-section,
.verify-old-notes,
.glossary-section,
.misread-section,
.entry-map-section,
.help-faq,
.help-abnormal,
.help-followup {
  margin-bottom: 38px;
}

.channel-list h2,
.topic-map h2,
.browse-advice h2,
.collection-entries h2,
.editorial-standard h2,
.path-steps h2,
.check-list h2,
.exception-table h2,
.habits h2,
.change-type-legend h2,
.log-section h2,
.verify-old-notes h2,
.glossary-section h2,
.misread-section h2,
.entry-map-section h2,
.help-faq h2,
.help-abnormal h2,
.help-followup h2 {
  margin: 0 0 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   6. pages — 题材分类（channels）
   -------------------------------------------------------------------------- */

.layout-with-aside {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.channel-entry {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 18px 0 18px 14px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  transition: transform 180ms ease;
}

.channel-entry:hover {
  transform: translateX(2px);
}

.channel-entry-head {
  grid-row: span 3;
  min-width: 0;
}

.channel-entry-head h3 {
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.topic-dot-jq {
  background: var(--red);
}

.topic-dot-jlp {
  background: var(--yellow);
}

.topic-dot-dh {
  background: var(--green);
}

.topic-dot-zy {
  background: var(--blue);
}

.topic-dot-dp {
  background: #4a6fa8;
}

.topic-dot-js {
  background: var(--violet);
}

#ch-jq {
  border-left-color: var(--red);
}

#ch-jlp {
  border-left-color: var(--yellow);
}

#ch-dh {
  border-left-color: var(--green);
}

#ch-zy {
  border-left-color: var(--blue);
}

#ch-dp {
  border-left-color: #4a6fa8;
}

#ch-js {
  border-left-color: var(--violet);
}

.channel-entry-body {
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--ink-soft);
}

.channel-entry-body p {
  margin: 0 0 8px;
}

.channel-figure {
  grid-column: 2;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
  margin: 4px 0 10px;
}

.channel-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.channel-figure figcaption {
  margin: 0;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.78rem;
}

.channel-entry-link {
  grid-column: 2;
  font-size: 0.84rem;
  color: var(--red);
  align-self: start;
}

.channel-entry-link::after {
  content: "→";
  margin-left: 3px;
}

/* 对应表 */

.topic-map .info-table tbody th {
  font-family: var(--serif);
  font-weight: 600;
}

/* 浏览顺序建议 */

.advice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: advice;
  display: grid;
  gap: 12px;
}

.advice-list li {
  position: relative;
  padding: 12px 14px 12px 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-soft);
  counter-increment: advice;
}

.advice-list li::before {
  content: counter(advice, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 12px;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--red);
}

/* 标签速查 */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-list li {
  margin: 0;
}

.tag-list a {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  line-height: 1.5;
  min-height: 32px;
}

.tag-list a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* --------------------------------------------------------------------------
   7. pages — 精选合集（collections）
   -------------------------------------------------------------------------- */

.collection-entries {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.collection-entries > h2 {
  margin-bottom: 20px;
}

.collection-entries .collection-entry {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  padding: 24px 0;
  align-items: start;
}

.entry-media {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
  align-self: start;
}

.entry-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.entry-media figcaption {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.78rem;
}

.entry-body {
  min-width: 0;
}

.entry-body h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
}

.entry-body h4 {
  margin: 12px 0 6px;
}

.entry-reason {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.entry-scope {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--grey);
  padding-left: 10px;
  border-left: 2px solid var(--line-strong);
  margin-bottom: 4px;
}

.entry-order {
  margin: 0;
  padding-left: 1.2em;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.entry-order li {
  margin-bottom: 4px;
}

.entry-order li::marker {
  font-family: var(--mono);
  color: var(--red);
}

/* 图文左右交替 */

.collection-entry.entry-media-left .entry-media {
  order: 1;
}

.collection-entry.entry-media-left .entry-body {
  order: 2;
}

.collection-entry.entry-media-right .entry-media {
  order: 2;
}

.collection-entry.entry-media-right .entry-body {
  order: 1;
}

/* 编选标准 */

.editorial-standard {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 8px;
}

.standard-lead {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.standard-items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.standard-item {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.standard-item h3 {
  font-size: 0.94rem;
  margin: 0 0 6px;
}

.standard-item p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--grey);
  margin: 0;
}

.standard-exclude {
  padding: 16px 18px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
}

.standard-exclude h3 {
  font-size: 0.94rem;
  margin: 0 0 6px;
}

.standard-exclude p {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.back-link-strip {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------------
   8. pages — 快速开始（start-here）
   -------------------------------------------------------------------------- */

.path-steps,
.check-list,
.exception-table,
.habits {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.path-steps .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  counter-reset: pathstep;
}

.path-steps .step-item {
  border-top-color: var(--red);
}

.path-steps .step-item h3 {
  font-size: 0.94rem;
  margin: 0 0 6px;
}

.path-steps .step-item p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--grey);
  margin: 0 0 6px;
}

.path-steps .step-item p:last-child {
  margin-bottom: 0;
}

/* 核验清单与异常表 */

.check-list .info-table tbody th {
  font-family: var(--serif);
  white-space: normal;
}

.exception-table .info-table tbody th {
  font-family: var(--serif);
  white-space: normal;
}

/* 浏览习惯 */

.habit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.habit-item {
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
}

.habit-item h3 {
  font-size: 0.92rem;
  margin: 0 0 4px;
}

.habit-item p {
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--grey);
  margin: 0;
}

/* --------------------------------------------------------------------------
   9. pages — 更新记录（updates）
   -------------------------------------------------------------------------- */

.change-type-legend,
.log-section,
.verify-old-notes {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.legend-item {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.legend-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 10px;
  margin-bottom: 6px;
  line-height: 1.6;
}

.legend-add .legend-tag {
  color: var(--green);
  background: rgba(47, 107, 79, 0.1);
  border: 1px solid rgba(47, 107, 79, 0.3);
}

.legend-adjust .legend-tag {
  color: var(--yellow);
  background: rgba(217, 154, 31, 0.12);
  border: 1px solid rgba(217, 154, 31, 0.35);
}

.legend-revise .legend-tag {
  color: var(--violet);
  background: rgba(122, 90, 156, 0.1);
  border: 1px solid rgba(122, 90, 156, 0.3);
}

.legend-item p {
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--grey);
  margin: 0;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.log-table {
  width: 100%;
  min-width: 620px;
  font-size: 0.86rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.table-caption {
  text-align: left;
  font-size: 0.8rem;
  color: var(--grey);
  padding: 0 0 8px;
}

.log-table thead th {
  position: sticky;
  top: 68px;
  background: var(--paper-alt);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  z-index: 1;
}

.log-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
  color: var(--ink-soft);
}

.log-table tbody tr:last-child td {
  border-bottom: 0;
}

.log-table .log-date {
  white-space: nowrap;
  color: var(--grey);
}

.type-badge {
  display: inline-block;
  font-size: 0.76rem;
  padding: 1px 8px;
  border-radius: 10px;
  line-height: 1.7;
  white-space: nowrap;
}

.type-add {
  color: var(--green);
  background: rgba(47, 107, 79, 0.1);
  border: 1px solid rgba(47, 107, 79, 0.3);
}

.type-adjust {
  color: var(--yellow);
  background: rgba(217, 154, 31, 0.12);
  border: 1px solid rgba(217, 154, 31, 0.35);
}

.type-revise {
  color: var(--violet);
  background: rgba(122, 90, 156, 0.1);
  border: 1px solid rgba(122, 90, 156, 0.3);
}

/* 核对旧说明 */

.structure-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
  margin-bottom: 18px;
}

.structure-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.structure-figure figcaption {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.verify-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: verify;
  display: grid;
  gap: 12px;
}

.verify-item {
  position: relative;
  padding: 13px 16px 13px 46px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: verify;
}

.verify-item::before {
  content: counter(verify, decimal-leading-zero);
  position: absolute;
  left: 15px;
  top: 13px;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--violet);
}

.verify-item h3 {
  font-size: 0.92rem;
  margin: 0 0 4px;
}

.verify-item p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--grey);
  margin: 0;
}

/* --------------------------------------------------------------------------
   10. pages — 术语对照（glossary）
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 0 8px;
}

.page-title-block {
  padding-top: 2px;
  margin-bottom: 24px;
}

.page-title-block .page-lead {
  margin-bottom: 0;
}

.sidebar-left .page-layout {
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
}

.sidebar-left .aside-column {
  order: 1;
}

.sidebar-left .main-column {
  order: 2;
}

.sidebar-left .main-column .lead-visual {
  margin-bottom: 28px;
}

.glossary-section {
  margin-bottom: 34px;
}

.glossary-section .section-intro {
  margin-bottom: 14px;
}

.term-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.term-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 13px 0 13px 12px;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
}

.term-item:hover {
  border-left-color: var(--violet);
}

.term-item dt {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

.term-mean {
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.term-not {
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--grey);
  margin: 0;
  padding-left: 10px;
  border-left: 2px solid var(--line);
}

.term-not::before {
  content: "不代表：";
  color: var(--violet);
}

/* 容易误解的说法 */

.compare-table,
.entry-table {
  width: 100%;
  font-size: 0.87rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.compare-table thead th,
.entry-table thead th {
  background: var(--paper-alt);
  font-family: var(--sans);
  font-size: 0.83rem;
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
}

.compare-table tbody td,
.entry-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.7;
  color: var(--ink-soft);
}

.compare-table tbody tr:last-child td,
.entry-table tbody tr:last-child td {
  border-bottom: 0;
}

.compare-table tbody td:first-child {
  color: var(--grey);
  font-family: var(--serif);
}

.entry-table tbody td:first-child {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* 侧栏索引 */

.index-list a {
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   11. pages — 帮助问答（help）
   -------------------------------------------------------------------------- */

.layout-main-aside {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.help-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-alt);
  margin-bottom: 18px;
}

.help-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.help-figure figcaption {
  margin: 0;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.help-faq .faq-item {
  margin-bottom: 12px;
}

.help-faq .faq-item summary {
  font-size: 0.94rem;
  padding-top: 14px;
  padding-bottom: 14px;
}

.help-faq .faq-body p {
  font-size: 0.88rem;
}

.help-faq .faq-body p:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* 异常判断 */

.abnormal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.abnormal-item {
  padding: 13px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yellow);
  border-radius: var(--radius);
}

.abnormal-item h3 {
  font-size: 0.92rem;
  margin: 0 0 4px;
}

.abnormal-item p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--grey);
  margin: 0;
}

/* 后续核对 */

.followup-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: followup;
  display: grid;
  gap: 12px;
}

.followup-step {
  position: relative;
  padding: 13px 16px 13px 52px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: followup;
}

.followup-step .step-num {
  position: absolute;
  left: 16px;
  top: 13px;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green);
  line-height: 1.3;
}

.followup-step h3 {
  font-size: 0.92rem;
  margin: 0 0 4px;
}

.followup-step p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--grey);
  margin: 0;
}

/* 侧栏 */

.side-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--red);
}

.side-card-link::after {
  content: "→";
}

.side-link-list a {
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   12. pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.error-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 0 40px;
  text-align: center;
}

.error-code {
  font-family: var(--mono);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--line-strong);
  margin: 0 0 12px;
}

.error-inner h1 {
  margin: 0 0 12px;
}

.error-lead {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 auto 32px;
  max-width: 560px;
}

.error-block {
  text-align: left;
  padding: 20px 22px;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.error-block h2 {
  font-size: 1rem;
  margin: 0 0 12px;
}

.error-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.error-links a {
  display: block;
  padding: 10px 12px;
  min-height: 44px;
  font-size: 0.88rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.error-links a:hover {
  border-color: var(--red);
  color: var(--red);
}

.error-more {
  font-size: 0.85rem;
  color: var(--grey);
  margin: 0;
}

.error-more a {
  color: var(--red);
}

/* --------------------------------------------------------------------------
   13. responsive — 断点
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .header-inner {
    gap: 16px;
  }

  .nav-item > a,
  .nav-dropdown-trigger {
    padding: 0 8px;
    font-size: 0.88rem;
  }

  .hero-columns {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .hero-visual {
    order: 2;
  }

  .hero-intro {
    order: 1;
  }

  .strip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-layout,
  .home-layout,
  .layout-with-aside,
  .layout-main-aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .sidebar-left .aside-column {
    order: 2;
  }

  .sidebar-left .main-column {
    order: 1;
  }

  .aside-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }

  .header-inner {
    min-height: 60px;
    flex-wrap: nowrap;
  }

  .brand-sub {
    display: none;
  }

  .site-nav {
    flex: 0 1 auto;
    margin-left: auto;
  }

  .nav-list {
    display: none;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .lang-label {
    display: none;
  }

  .mobile-drawer {
    max-height: calc(100vh - 60px);
  }

  .home-main,
  .inner-main,
  .error-main {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .site-main.home-main {
    padding-top: 18px;
  }

  .breadcrumb {
    padding-top: 12px;
    font-size: 0.78rem;
  }

  .page-header {
    padding-bottom: 16px;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    padding: 0 14px;
  }

  .series-item a {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .series-name {
    min-width: 0;
  }

  .strip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-entry,
  .collection-entries .collection-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .collection-entry.entry-media-left .entry-media,
  .collection-entry.entry-media-right .entry-media {
    order: 1;
  }

  .collection-entry.entry-media-left .entry-body,
  .collection-entry.entry-media-right .entry-body {
    order: 2;
  }

  .channel-brief-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding-left: 8px;
  }

  .channel-brief-name {
    grid-column: 1;
    grid-row: 1;
  }

  .channel-brief-scope {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .channel-brief-link {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .step-list,
  .path-steps .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .standard-items,
  .legend-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-left: 12px;
  }

  .channel-entry-head {
    grid-row: auto;
  }

  .channel-figure,
  .channel-entry-link {
    grid-column: 1;
  }

  .aside-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .error-code {
    font-size: 2.6rem;
  }

  .error-inner {
    padding-top: 40px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 20px;
    padding-top: 30px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
    padding-bottom: 24px;
  }

  .footer-copy {
    white-space: normal;
  }

  .log-table thead th {
    position: static;
  }

  .table-scroll {
    overflow-x: visible;
  }

  .log-table {
    min-width: 0;
    border: 0;
    background: transparent;
  }

  .log-table thead {
    display: none;
  }

  .log-table tbody tr {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .log-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .log-table tbody td {
    display: block;
    border-bottom: 0;
    padding: 3px 0;
    font-size: 0.85rem;
  }

  .log-table tbody td:first-child {
    font-weight: 600;
    color: var(--ink);
  }

  .info-table {
    font-size: 0.83rem;
  }

  .info-table thead th,
  .info-table tbody th,
  .info-table tbody td {
    padding: 9px 9px;
  }

  .info-table tbody th {
    white-space: normal;
  }

  .compare-table,
  .entry-table {
    font-size: 0.83rem;
  }

  .compare-table thead th,
  .compare-table tbody td,
  .entry-table thead th,
  .entry-table tbody td {
    padding: 9px 9px;
  }

  .entry-table tbody td:first-child {
    white-space: normal;
  }

  .term-item {
    padding-left: 10px;
  }

  .related-strip,
  .back-link-strip {
    padding: 16px;
    margin-top: 30px;
  }

  .related-list,
  .back-link-strip ul {
    flex-direction: column;
    gap: 8px;
  }

  .related-list a,
  .back-link-strip a {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .strip-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .drawer-sub {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
