/* ==========================================================================
   秋霞电影网 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础重置
   -------------------------------------------------------------------------- */
:root {
  --ink: #1f2b45;
  --ink-soft: #33405c;
  --accent: #d97a2b;
  --accent-soft: #f0e0d0;
  --bg: #ffffff;
  --bg-tint: #f2f3f5;
  --line: #d9dde3;
  --text: #2a2f38;
  --text-mute: #5d6674;
  --radius: 8px;
  --shell: 1180px;
  --reading: 720px;
  --shadow: 0 1px 2px rgba(31, 43, 69, 0.06);
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.6;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

strong {
  color: var(--ink);
  font-weight: 700;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* --------------------------------------------------------------------------
   layout · 骨架：header / nav / main / breadcrumb / page-header / footer
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 20;
  background: var(--ink);
  color: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: #fff;
}

.brand:hover,
.brand:focus-visible {
  color: #fff;
}

.brand-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--accent);
  position: relative;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 9px 10px;
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.brand-slogan {
  font-size: 12px;
  color: #c3cad8;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: transparent;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: #dfe4ee;
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
  color: #fff;
  border-bottom-color: var(--accent);
}

.site-main {
  display: block;
  width: 100%;
}

.home-main {
  padding-bottom: 8px;
}

.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-mute);
}

.breadcrumb a {
  color: var(--text-mute);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

.page-header {
  max-width: var(--reading);
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.page-description {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.page-title {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.3;
  color: var(--ink);
}

.page-desc,
.page-intro,
.page-lead {
  margin: 0;
  max-width: var(--reading);
  color: var(--text-mute);
  font-size: 15px;
}

.site-footer {
  background: var(--ink);
  color: #c3cad8;
  font-size: 14px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.2fr;
  gap: 32px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px 32px;
}

.footer-brand-name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.footer-brand-desc {
  margin: 0;
  color: #a7b0c1;
  line-height: 1.7;
}

.footer-title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  color: #c3cad8;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--accent);
}

.footer-text {
  margin: 0;
  color: #a7b0c1;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copy {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px 24px 22px;
  color: #8e99ad;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   components · 通用组件（线索条 / 区块头 / 表格 / 卡片 / 链接）
   -------------------------------------------------------------------------- */
.clue-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--accent-soft);
  border-bottom: 1px solid #e3cdb4;
}

.clue-bar-text {
  flex: 1 1 auto;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px 24px;
  color: #6b4a24;
  font-size: 14px;
}

.clue-bar-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b4a24;
  font-size: 20px;
  line-height: 1;
}

.clue-bar-close:hover,
.clue-bar-close:focus-visible {
  background: rgba(217, 122, 43, 0.16);
}

.clue-bar.is-hidden {
  display: none;
}

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 44px 24px;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: var(--reading);
  margin-bottom: 24px;
}

.section-title {
  margin: 0 0 10px;
  font-size: 22px;
  color: var(--ink);
}

.section-desc,
.section-lead {
  margin: 0;
  color: var(--text-mute);
  font-size: 15px;
}

.section-lead a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.section-lead a:hover,
.section-lead a:focus-visible {
  border-bottom-color: var(--accent);
}

.sub-title,
.subsection-title {
  margin: 0 0 12px;
  font-size: 17px;
  color: var(--ink);
}

.section-more {
  margin: 20px 0 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--accent);
  font-size: 15px;
  border-bottom: 1px solid var(--accent-soft);
}

.text-link:hover,
.text-link:focus-visible {
  border-bottom-color: var(--accent);
}

.section-note,
.section-foot {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--text-mute);
}

.section-note a,
.section-foot a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.section-note a:hover,
.section-foot a:hover {
  border-bottom-color: var(--accent);
}

/* 数据表格 */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.data-table {
  min-width: 640px;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.table-caption {
  padding: 12px 16px;
  text-align: left;
  color: var(--text-mute);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}

.data-table th,
.data-table td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  background: var(--bg-tint);
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th {
  color: var(--ink);
  font-weight: 700;
}

.cell-code {
  color: var(--accent);
  font-weight: 700;
}

.field-name {
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

/* 图片容器 */
.hero-media,
.topic-media,
.topic-cover,
.channel-intro-figure,
.section-figure,
.guide-figure,
.field-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.hero-media img,
.topic-media img,
.topic-cover img,
.channel-intro-figure img,
.section-figure img,
.guide-figure img,
.field-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.hero {
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 40px;
  align-items: center;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 48px 24px;
}

.hero-text {
  min-width: 0;
}

.hero-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.hero-title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.28;
  color: var(--ink);
}

.hero-desc {
  margin: 0 0 20px;
  color: var(--text-mute);
  font-size: 16px;
}

.hero-clues {
  display: grid;
  gap: 10px;
}

.hero-clue {
  border-left: 3px solid var(--accent);
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}

.hero-clue-link {
  display: block;
  padding: 10px 14px;
}

.hero-clue-name {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.hero-clue-note {
  display: block;
  color: var(--text-mute);
  font-size: 13px;
}

.hero-clue-link:hover .hero-clue-name,
.hero-clue-link:focus-visible .hero-clue-name {
  color: var(--accent);
}

.hero-media {
  aspect-ratio: 16 / 10;
}

.hero-caption {
  padding: 8px 2px 0;
}

/* 频道总览 */
.channel-overview .channel-table {
  min-width: 720px;
}

/* 专题入口 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.topic-card:hover {
  border-color: var(--accent);
  box-shadow: 0 3px 10px rgba(31, 43, 69, 0.1);
}

.topic-media {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.topic-body {
  padding: 16px;
}

.topic-name {
  margin: 0 0 8px;
  font-size: 17px;
}

.topic-note,
.topic-desc {
  margin: 0 0 8px;
  color: var(--text-mute);
  font-size: 14px;
}

.topic-channels {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
}

/* 整理记录速览 */
.log-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.log-group {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.log-month {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 16px;
  border-bottom: 2px solid var(--accent);
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.log-item {
  display: grid;
  gap: 2px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.log-date {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.log-target {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.log-result {
  color: var(--text-mute);
  font-size: 14px;
}

/* 字段说明与收录边界摘要 */
.field-summary-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 28px;
  align-items: start;
}

.field-table-wrap,
.boundary-wrap {
  min-width: 0;
}

.field-table-wrap .field-table {
  min-width: 0;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-tint);
  color: var(--ink-soft);
  font-size: 14px;
}

/* 站内页面索引 */
.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.index-col {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.index-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.index-note {
  margin: 0 0 12px;
  color: var(--text-mute);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 频道分类
   -------------------------------------------------------------------------- */
.channel-intro-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 28px;
  align-items: start;
}

.channel-intro-figure {
  aspect-ratio: 4 / 3;
}

.channel-intro-figure figcaption {
  padding: 8px 2px 0;
}

.field-meaning {
  min-width: 0;
}

.field-meaning .field-table {
  min-width: 0;
}

.section-channel-table .channel-table {
  min-width: 720px;
}

.advice-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.advice-column {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.advice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.advice-item {
  padding-left: 12px;
  border-left: 2px solid var(--accent);
}

.advice-name {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.advice-desc {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */
.page-layout {
  display: block;
}

.section-topic-intro .rule-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: var(--reading);
  margin-bottom: 20px;
}

.rule-item {
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg-tint);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.section-figure {
  max-width: 640px;
  aspect-ratio: 16 / 9;
}

.section-figure figcaption {
  padding: 8px 2px 0;
}

.section-topic-list .topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-cover {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.section-topic-list .topic-name,
.section-topic-list .topic-desc,
.section-topic-list .topic-channels {
  padding: 0 16px;
}

.section-topic-list .topic-name {
  padding-top: 16px;
}

.section-topic-list .topic-channels {
  padding-bottom: 16px;
}

.section-topic-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}

.section-topic-map > .section-title,
.section-topic-map > .section-lead {
  grid-column: 1 / -1;
}

.topic-map-table {
  min-width: 0;
}

.topic-aside {
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--bg-tint);
}

.aside-title {
  margin: 0 0 10px;
  font-size: 16px;
}

.aside-text {
  margin: 0 0 10px;
  color: var(--text-mute);
  font-size: 14px;
}

.tips-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.tips-column {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.tips-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.tips-text {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages · 浏览指引
   -------------------------------------------------------------------------- */
.guide-prepare,
.guide-steps,
.guide-adjust,
.guide-related {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px 24px;
}

.guide-prepare + .guide-steps,
.guide-steps + .guide-adjust,
.guide-adjust + .guide-related {
  border-top: 1px solid var(--line);
}

.prepare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.prepare-col {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.prepare-subtitle {
  margin: 0 0 12px;
  font-size: 17px;
}

.prepare-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prepare-list li {
  padding-left: 12px;
  border-left: 2px solid var(--accent);
  color: var(--text-mute);
  font-size: 14px;
}

.guide-figure {
  max-width: 720px;
  margin-top: 24px;
  aspect-ratio: 16 / 9;
}

.guide-figure figcaption {
  padding: 8px 2px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-block {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.steps-grid .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  margin: 0 0 12px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.steps-grid .step-title {
  margin: 0 0 8px;
  font-size: 17px;
}

.steps-grid .step-text {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
}

.steps-grid .step-text a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "＋";
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] .faq-question::before {
  content: "－";
}

.faq-question:hover {
  background: var(--bg-tint);
}

.faq-answer {
  padding: 0 16px 16px 42px;
  color: var(--text-mute);
  font-size: 14px;
}

.faq-answer a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-soft);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.related-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.related-title {
  margin: 0 0 8px;
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   pages · 字段说明与整理记录
   -------------------------------------------------------------------------- */
.field-figure {
  max-width: var(--shell);
  margin: 0 auto 32px;
  padding: 0 24px;
  background: none;
  border-radius: 0;
}

.field-figure img {
  border-radius: var(--radius);
  aspect-ratio: 16 / 7;
}

.field-figure figcaption {
  padding: 8px 0 0;
}

.field-table-section,
.boundary-section,
.record-section,
.related-section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 36px 24px;
}

.field-table-section + .boundary-section,
.boundary-section + .record-section,
.record-section + .related-section {
  border-top: 1px solid var(--line);
}

.field-table-section .field-table {
  min-width: 0;
}

.boundary-section .boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.boundary-section .boundary-item {
  background: #fff;
  padding: 16px 18px;
}

.boundary-name {
  margin: 0 0 6px;
  font-size: 16px;
}

.boundary-text {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
}

.record-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.record-section > .section-title,
.record-section > .section-lead {
  margin: 0;
}

.record-group {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.record-month {
  margin: 0 0 14px;
  padding-bottom: 8px;
  font-size: 17px;
  border-bottom: 2px solid var(--accent);
}

.record-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.record-item {
  display: grid;
  gap: 3px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
}

.record-date {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.record-target {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.record-result {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.related-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid transparent;
}

.related-link:hover,
.related-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px 24px 64px;
}

.error-hero {
  max-width: var(--reading);
  margin-bottom: 44px;
}

.error-code {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 700;
}

.error-title {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.3;
}

.error-text {
  margin: 0 0 22px;
  color: var(--text-mute);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #c06a22;
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.error-help .section-title {
  margin-bottom: 8px;
}

.error-help .section-desc {
  margin-bottom: 22px;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.error-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.error-item-title {
  margin: 0 0 8px;
  font-size: 16px;
}

.error-item-title a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.error-item-title a:hover,
.error-item-title a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.error-item-desc {
  margin: 0;
  color: var(--text-mute);
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   responsive · 900px 与 600px 两档
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    flex: 1 1 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 0 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-link.is-current {
    border-bottom-color: var(--accent);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 36px 18px;
  }

  .hero-media {
    order: 2;
  }

  .section {
    padding: 36px 18px;
  }

  .inner-main {
    padding: 20px 18px 44px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 28px;
  }

  .log-groups,
  .field-summary-grid,
  .index-grid,
  .topic-grid,
  .section-topic-list .topic-grid,
  .channel-intro-grid,
  .advice-columns,
  .tips-columns,
  .prepare-grid,
  .steps-grid,
  .related-grid,
  .boundary-section .boundary-list,
  .related-list,
  .error-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-topic-map {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-topic-map > .section-title,
  .section-topic-map > .section-lead {
    grid-column: auto;
  }

  .guide-prepare,
  .guide-steps,
  .guide-adjust,
  .guide-related,
  .field-table-section,
  .boundary-section,
  .record-section,
  .related-section {
    padding: 32px 18px;
  }

  .field-figure {
    padding: 0 18px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding: 36px 18px 26px;
  }

  .footer-copy {
    padding: 16px 18px 20px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .clue-bar {
    gap: 8px;
  }

  .clue-bar-text {
    padding: 10px 16px;
    font-size: 13px;
  }

  .clue-bar-close {
    margin-right: 6px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  .hero-title,
  .page-title,
  .error-title {
    font-size: 26px;
  }

  .section-title {
    font-size: 20px;
  }

  .hero-inner {
    padding: 30px 16px;
  }

  .section {
    padding: 30px 16px;
  }

  .inner-main {
    padding: 18px 16px 40px;
  }

  .log-groups,
  .field-summary-grid,
  .index-grid,
  .topic-grid,
  .section-topic-list .topic-grid,
  .channel-intro-grid,
  .advice-columns,
  .tips-columns,
  .prepare-grid,
  .steps-grid,
  .related-grid,
  .boundary-section .boundary-list,
  .related-list,
  .error-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-prepare,
  .guide-steps,
  .guide-adjust,
  .guide-related,
  .field-table-section,
  .boundary-section,
  .record-section,
  .related-section {
    padding: 28px 16px;
  }

  .field-figure {
    padding: 0 16px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .faq-answer {
    padding: 0 14px 14px 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 32px 16px 24px;
  }

  .footer-copy {
    padding: 14px 16px 18px;
  }
}

/* 尊重用户的减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
