/* ==========================================================================
   九九电影影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --color-bg: #ffffff;
  --color-text: #1f2328;
  --color-text-soft: #5b6470;
  --color-accent: #2f5d8a;
  --color-accent-soft: #eef3f8;
  --color-line: #e3e7ec;
  --color-surface: #f6f8fa;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 6px;
  --container: 1120px;
  --reading: 760px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-text);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dt,
dd,
figure,
figcaption {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: #1d3f60;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
}

button {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #ffffff;
  padding: 10px 16px;
  z-index: 60;
}

.skip-link:focus {
  left: 0;
  color: #ffffff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
}

.site-header {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: var(--color-text);
  flex: 0 0 auto;
  min-height: 44px;
}

.brand:hover {
  color: var(--color-text);
}

.brand-name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}

.brand-sub {
  font-size: 12px;
  color: var(--color-text-soft);
  line-height: 1.3;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: flex;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--color-text);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.nav-link.is-current {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--color-text-soft);
}

.breadcrumb a {
  color: var(--color-text-soft);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: #a9b1bb;
}

.breadcrumb-current {
  color: var(--color-text);
}

.page-header {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 40px;
}

.page-title {
  font-size: 32px;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-soft);
  max-width: var(--reading);
}

.section-title {
  font-size: 22px;
  font-weight: 500;
  color: var(--color-text);
}

.section-desc,
.section-intro {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
  max-width: var(--reading);
}

.subsection-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}

.inline-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 15px;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 2px;
}

.inline-link:hover {
  border-bottom-color: var(--color-accent);
}

/* 页脚 */

.site-footer {
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.footer-heading {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--color-text);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 1.6;
  padding: 2px 0;
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-link-strong {
  color: var(--color-accent);
}

.footer-update-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin-bottom: 10px;
}

.footer-bottom {
  border-top: 1px solid var(--color-line);
}

.footer-copy {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* --------------------------------------------------------------------------
   3. components · 通用模块
   -------------------------------------------------------------------------- */

/* 表格 */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--color-text-soft);
}

.channel-table,
.field-table {
  min-width: 680px;
  font-size: 15px;
}

.channel-table th,
.channel-table td,
.field-table th,
.field-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
  line-height: 1.7;
}

.channel-table thead th,
.field-table thead th {
  background: var(--color-surface);
  font-weight: 500;
  font-size: 14px;
  color: var(--color-text);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}

.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.cell-name {
  font-weight: 500;
  white-space: nowrap;
}

.field-table tbody th {
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
  width: 160px;
}

.table-link {
  color: var(--color-accent);
  white-space: nowrap;
}

/* 常见问题 */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.faq-question {
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  color: var(--color-accent);
  font-size: 16px;
}

.faq-item[open] .faq-question::before {
  content: "−";
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-answer {
  padding: 0 18px 16px 44px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.faq-answer p + p {
  margin-top: 10px;
}

/* 相关入口 */

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.related-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.related-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 16px;
  font-size: 15px;
  color: var(--color-text);
}

.related-link:hover {
  color: var(--color-accent);
}

.related-desc {
  padding: 0 16px 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

/* 说明块 */

.boundary-box {
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 20px 22px;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boundary-list li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

/* 图片容器 */

.hero-figure img,
.channel-figure img,
.collection-figure img,
.collection-media img,
.organize-media img,
.guide-figure img,
.field-figure img,
.record-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   4. pages · 首页
   -------------------------------------------------------------------------- */

.site-notice {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
}

.site-notice-text {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.home-main {
  display: block;
}

.hero {
  border-bottom: 1px solid var(--color-line);
}

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.hero-title {
  font-size: 34px;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-soft);
  max-width: 620px;
}

.hero-note {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 2px solid var(--color-line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.hero-entries {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-entry {
  display: block;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--color-bg);
  color: var(--color-text);
}

.hero-entry:hover {
  border-color: var(--color-accent);
  color: var(--color-text);
}

.hero-entry-label {
  display: block;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--color-accent);
  margin-bottom: 6px;
}

.hero-entry-title {
  display: block;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 6px;
}

.hero-entry-desc {
  display: block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.hero-figure {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 44px;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
}

.hero-figure-caption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-soft);
}

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.section + .section {
  border-top: 1px solid var(--color-line);
}

.section-head {
  margin-bottom: 28px;
}

/* 首页频道总表 */

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.channel-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
}

.channel-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 20px;
}

.channel-figure {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
}

.channel-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-name {
  font-size: 18px;
  font-weight: 500;
}

.channel-meta {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 14px;
  line-height: 1.7;
}

.channel-meta dt {
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 13px;
}

.channel-meta dd {
  color: var(--color-text);
}

.channel-link {
  align-self: flex-start;
  margin-top: auto;
  font-size: 15px;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 2px;
}

.channel-link:hover {
  border-bottom-color: var(--color-accent);
}

/* 首页专题片单 */

.collection-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.collection-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.collection-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.collection-name {
  font-size: 17px;
  font-weight: 500;
}

.collection-scope {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.collection-count {
  font-size: 13px;
  color: var(--color-text-soft);
}

.field-value {
  font-family: var(--font-mono);
  color: var(--color-text);
}

.collection-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 15px;
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-line);
  padding-bottom: 2px;
}

.collection-link:hover {
  border-bottom-color: var(--color-accent);
}

/* 首页字段说明与边界 */

.fields-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.fields-table-wrap {
  min-width: 0;
}

.fields-table {
  width: 100%;
  font-size: 15px;
}

.fields-table caption {
  caption-side: top;
  text-align: left;
  font-size: 14px;
  color: var(--color-text-soft);
  padding-bottom: 10px;
}

.fields-table th,
.fields-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-line);
  line-height: 1.7;
  vertical-align: top;
}

.fields-table thead th {
  background: var(--color-surface);
  font-size: 14px;
  font-weight: 500;
}

.fields-table tbody th {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  width: 130px;
}

.fields-table tbody tr:last-child th,
.fields-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 首页整理记录 */

.record-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.record-month {
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 4px;
}

.record-list {
  display: flex;
  flex-direction: column;
}

.record-item {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
  line-height: 1.7;
}

.record-item:last-child {
  border-bottom: 0;
}

.record-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-soft);
  flex: 0 0 auto;
}

.record-type {
  color: var(--color-accent);
  flex: 0 0 auto;
}

.record-scope,
.record-reason {
  color: var(--color-text-soft);
  flex: 1 1 200px;
  min-width: 0;
}

/* 首页页面索引 */

.index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.index-column {
  min-width: 0;
}

.index-heading {
  font-size: 15px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 12px;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index-link {
  display: inline-block;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.index-link:hover {
  color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   5. pages · 题材频道
   -------------------------------------------------------------------------- */

.channel-table-section,
.organize-section,
.path-section,
.faq-section,
.related-section {
  margin-bottom: 48px;
}

.channel-table-section > .section-title,
.organize-section > .section-title,
.path-section > .section-title,
.faq-section > .section-title,
.related-section > .section-title {
  margin-bottom: 8px;
}

.channel-table-section > .section-desc,
.organize-section > .section-desc,
.path-section > .section-desc {
  margin-bottom: 24px;
}

.organize-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.organize-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px 20px 20px;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.organize-name {
  font-size: 17px;
  font-weight: 500;
}

.organize-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
}

.organize-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  counter-reset: none;
}

.path-step {
  border-top: 2px solid var(--color-accent);
  padding-top: 16px;
  min-width: 0;
}

.path-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.path-name {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}

.path-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.related-section {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   6. pages · 专题片单
   -------------------------------------------------------------------------- */

.section-collections {
  margin-bottom: 48px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.collection-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.collection-meta {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 4px;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-soft);
}

.meta-value {
  color: var(--color-text);
}

.section-scope,
.section-order,
.section-faq,
.section-related {
  margin-bottom: 48px;
}

.section-scope > .section-title,
.section-order > .section-title,
.section-faq > .section-title,
.section-related > .section-title {
  margin-bottom: 8px;
}

.section-scope > .section-intro,
.section-order > .section-intro,
.section-faq > .section-intro {
  margin-bottom: 24px;
}

.scope-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.scope-item {
  border-left: 2px solid var(--color-line);
  padding: 4px 0 4px 16px;
  min-width: 0;
}

.scope-name {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}

.scope-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.order-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.order-block {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.order-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.order-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.section-related {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   7. pages · 观看指引
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.page-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: 48px;
}

.guide-section > .section-title {
  margin-bottom: 8px;
}

.guide-section > .section-intro {
  margin-bottom: 24px;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.goal-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.goal-card-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.goal-card-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.prepare-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-line);
}

.prepare-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-line);
  align-items: start;
}

.prepare-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-accent);
  line-height: 1.9;
}

.prepare-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
  min-width: 0;
}

.guide-figure {
  margin-bottom: 24px;
}

.guide-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
}

.guide-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-soft);
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.step-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
}

.step-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.step-result {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
}

.step-warn {
  margin-top: 8px;
  padding-left: 12px;
  border-left: 2px solid var(--color-line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.check-block {
  min-width: 0;
}

.check-block-title {
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 12px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.check-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

.guide-faq {
  margin-bottom: 48px;
}

.related-entry {
  border-top: 1px solid var(--color-line);
  padding-top: 28px;
}

.related-entry > .section-title {
  margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   8. pages · 字段说明
   -------------------------------------------------------------------------- */

.content-section {
  margin-bottom: 48px;
}

.content-section > .section-title {
  margin-bottom: 8px;
}

.content-section > .section-intro {
  margin-bottom: 24px;
}

.field-figure {
  margin-bottom: 24px;
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
}

.field-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-soft);
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.rule-item {
  border-left: 2px solid var(--color-line);
  padding: 4px 0 4px 16px;
  min-width: 0;
}

.rule-title {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
}

.rule-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.boundary-item + .boundary-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-line);
}

.boundary-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.boundary-item p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.section-related {
  margin-bottom: 0;
}

.section-related .related-list {
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   9. pages · 整理记录
   -------------------------------------------------------------------------- */

.record-visual {
  margin-bottom: 48px;
}

.record-visual > .section-title {
  margin-bottom: 16px;
}

.record-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
}

.record-figure-cap {
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-text-soft);
}

.record-months {
  margin-bottom: 48px;
}

.record-months > .section-title,
.change-reasons > .section-title,
.record-howto > .section-title,
.faq-section > .section-title {
  margin-bottom: 8px;
}

.record-months > .section-desc,
.change-reasons > .section-desc,
.record-howto > .section-desc {
  margin-bottom: 24px;
}

.month-group {
  margin-bottom: 32px;
}

.month-group:last-child {
  margin-bottom: 0;
}

.month-heading {
  font-size: 17px;
  font-weight: 500;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 4px;
}

.record-months .record-item {
  display: grid;
  grid-template-columns: 110px 130px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-line);
  align-items: start;
}

.record-months .record-item:last-child {
  border-bottom: 0;
}

.record-months .record-date {
  font-size: 13px;
}

.record-months .record-type {
  font-size: 14px;
}

.record-months .record-scope {
  font-size: 14px;
  color: var(--color-text);
}

.record-months .record-reason {
  grid-column: 3 / -1;
  font-size: 14px;
  color: var(--color-text-soft);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.reason-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 18px 20px;
  min-width: 0;
}

.reason-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.reason-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.reason-impact {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-line);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.howto-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  counter-reset: howto;
}

.howto-step {
  border-top: 2px solid var(--color-accent);
  padding-top: 16px;
  min-width: 0;
  counter-increment: howto;
}

.howto-step .step-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.howto-step .step-title::before {
  content: counter(howto) ". ";
  font-family: var(--font-mono);
  color: var(--color-accent);
}

.howto-step .step-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.record-note {
  margin-top: 24px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.record-note a {
  margin-right: 12px;
  color: var(--color-accent);
}

.faq-section {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   10. pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}

.error-inner {
  max-width: 560px;
  text-align: left;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.error-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 14px;
}

.error-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text-soft);
}

.error-hint {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.error-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--color-text);
}

.error-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.error-link-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.error-link-primary:hover {
  background: #1d3f60;
  border-color: #1d3f60;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   11. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 40px;
  }

  .hero-title {
    font-size: 30px;
  }

  .channel-card-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fields-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .path-list,
  .goal-grid,
  .howto-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-months .record-item {
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .record-months .record-scope {
    grid-column: 2 / -1;
  }

  .record-months .record-reason {
    grid-column: 2 / -1;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    padding: 8px 16px 16px;
    z-index: 40;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    min-height: 48px;
    padding: 0 8px;
    border-bottom: 1px solid var(--color-line);
  }

  .nav-link.is-current {
    border-bottom-color: var(--color-accent);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 60px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-sub {
    font-size: 11px;
  }

  .site-notice-text {
    padding: 10px 16px;
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .section {
    padding: 32px 16px;
  }

  .hero-inner {
    padding: 32px 16px 24px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-figure {
    padding: 0 16px 32px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .page-header {
    padding: 14px 0 22px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-title {
    font-size: 19px;
  }

  .subsection-title {
    font-size: 17px;
  }

  .channel-grid,
  .collection-row,
  .record-groups,
  .index-grid,
  .path-list,
  .goal-grid,
  .check-grid,
  .howto-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-card-featured {
    padding: 16px;
    gap: 16px;
  }

  .channel-meta,
  .collection-meta {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .fields-table tbody th {
    width: 96px;
  }

  .record-months .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .record-months .record-scope,
  .record-months .record-reason {
    grid-column: 1 / -1;
  }

  .prepare-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .faq-answer {
    padding-left: 18px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 16px 24px;
    gap: 24px;
  }

  .footer-copy {
    padding: 14px 16px;
  }

  .error-main {
    padding: 40px 16px;
  }

  .error-title {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
