/* ==========================================================================
   秋霞理论电影 · 全站样式表
   结构分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 基础重置与全局排版
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #F5F4F1;
  color: #23262B;
  font-family: Georgia, "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 18px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: #1F3552;
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

dl,
dd,
dt {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

a {
  color: #2A4C7D;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #2A4C7D;
  outline-offset: 2px;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架：页头、导航、主容器、页脚
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: relative;
  z-index: 20;
  background-color: #FFFFFF;
  border-bottom: 1px solid #D8D5CE;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: #1F3552;
  text-decoration: none;
  margin-right: auto;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-name {
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: #1F3552;
}

.brand-slogan {
  font-size: 14px;
  line-height: 1.4;
  color: #8C6A3F;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  border: 1px solid #D8D5CE;
  border-radius: 4px;
  background-color: #FFFFFF;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background-color: #1F3552;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-list li {
  display: block;
}

.nav-list a {
  display: block;
  padding: 10px 12px;
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  color: #23262B;
  border-radius: 4px;
  text-decoration: none;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background-color: #EFEDE8;
  text-decoration: underline;
}

.nav-list a.is-current {
  color: #1F3552;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.header-home {
  display: block;
  padding: 10px 16px;
  min-height: 44px;
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 15px;
  color: #1F3552;
  border: 1px solid #D8D5CE;
  border-radius: 4px;
  text-decoration: none;
}

.header-home:hover,
.header-home:focus-visible {
  background-color: #EFEDE8;
  text-decoration: none;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.home-main {
  padding: 0 0 56px;
}

.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.home-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-column {
  min-width: 0;
}

.side-column {
  min-width: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #5A5F66;
  padding: 4px 0 0;
}

.breadcrumb a {
  color: #2A4C7D;
}

.breadcrumb-sep {
  color: #8C8A84;
}

.breadcrumb-current {
  color: #5A5F66;
}

.page-header {
  padding: 20px 0 28px;
  border-bottom: 1px solid #D8D5CE;
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 12px;
}

.page-description {
  font-size: 17px;
  line-height: 1.75;
  color: #40454C;
  max-width: 780px;
}

.page-description a {
  color: #2A4C7D;
}

.section {
  margin-bottom: 44px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 12px;
}

.section-intro,
.section-lead {
  font-size: 16px;
  line-height: 1.75;
  color: #40454C;
  margin-bottom: 20px;
  max-width: 780px;
}

.section-intro a,
.section-lead a {
  color: #2A4C7D;
}

/* --------------------------------------------------------------------------
   components · 全站复用组件
   -------------------------------------------------------------------------- */

/* 顶部线索说明条 */
.lead-note {
  background-color: #EFEDE8;
  border-bottom: 1px solid #D8D5CE;
  padding: 10px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: #40454C;
  text-align: center;
}

/* 表格容器与数据表 */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  background-color: #FFFFFF;
}

.channel-table,
.data-table {
  min-width: 720px;
  font-size: 15px;
  line-height: 1.6;
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.channel-table caption,
.data-table .table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px 10px;
  font-size: 14px;
  color: #5A5F66;
  border-bottom: 1px solid #D8D5CE;
}

.channel-table thead th,
.data-table thead th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: #1F3552;
  background-color: #EFEDE8;
  border-bottom: 1px solid #D8D5CE;
  white-space: nowrap;
}

.channel-table tbody th,
.data-table tbody th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: #1F3552;
  border-bottom: 1px solid #E4E1DA;
  white-space: nowrap;
}

.channel-table tbody td,
.data-table tbody td {
  padding: 12px 16px;
  color: #40454C;
  border-bottom: 1px solid #E4E1DA;
  vertical-align: top;
}

.channel-table tbody tr:last-child th,
.channel-table tbody tr:last-child td,
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-table tbody tr:hover,
.data-table tbody tr:hover {
  background-color: #FAF9F7;
}

/* 图片容器与图片 */
.hero-media,
.topic-media,
.topic-cover,
.section-figure,
.guide-figure,
.type-figure {
  overflow: hidden;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  background-color: #EFEDE8;
}

.hero-media img,
.topic-media img,
.topic-cover img,
.section-figure img,
.guide-figure img,
.type-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.hero-media figcaption,
.section-figure figcaption,
.guide-figure figcaption {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #5A5F66;
  border-top: 1px solid #D8D5CE;
  background-color: #FFFFFF;
}

/* 区块尾部链接 */
.section-foot {
  margin-top: 16px;
  font-size: 15px;
}

.section-foot a {
  color: #2A4C7D;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 侧栏区块 */
.side-block {
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.side-block h2 {
  font-size: 18px;
  font-weight: 600;
  color: #1F3552;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #D8D5CE;
}

.field-list dt {
  font-size: 15px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 2px;
}

.field-list dd {
  font-size: 14px;
  line-height: 1.7;
  color: #40454C;
  margin-bottom: 14px;
}

.field-list dd:last-child {
  margin-bottom: 0;
}

.boundary-block {
  background-color: #FAF9F7;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: #40454C;
  margin-bottom: 10px;
}

.boundary-list li:last-child {
  margin-bottom: 0;
}

.boundary-list li::before {
  content: "·";
  position: absolute;
  left: 4px;
  top: 0;
  color: #8C6A3F;
  font-weight: 700;
}

.sitemap-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.sitemap-list li {
  min-width: 0;
}

.sitemap-list a {
  display: block;
  padding: 6px 0;
  font-size: 15px;
  color: #2A4C7D;
}

/* 页脚 */
.site-footer {
  flex-shrink: 0;
  background-color: #1F3552;
  color: #D9DDE3;
  margin-top: auto;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #B9C0CB;
  max-width: 320px;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul li:last-child {
  margin-bottom: 0;
}

.footer-group a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #C7CEDA;
}

.footer-group a:hover,
.footer-group a:focus-visible {
  color: #FFFFFF;
}

.footer-copy {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  font-size: 13px;
  line-height: 1.6;
  color: #9AA3B0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  padding: 40px 0 8px;
  align-items: start;
}

.hero-text {
  min-width: 0;
  padding-top: 4px;
}

.hero-title {
  font-size: 30px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: #40454C;
  max-width: 560px;
}

.hero-entries {
  grid-column: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.entry-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  min-height: 96px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  text-decoration: none;
}

.entry-card:hover,
.entry-card:focus-visible {
  background-color: #EFEDE8;
  text-decoration: none;
}

.entry-label {
  font-size: 13px;
  color: #8C6A3F;
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
}

.entry-name {
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #1F3552;
}

.entry-note {
  font-size: 14px;
  line-height: 1.6;
  color: #5A5F66;
}

.hero-media {
  grid-column: 2;
  grid-row: 1 / span 2;
}

.overview-section,
.topics-section,
.records-section {
  padding-top: 44px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 10px;
}

.section-note {
  font-size: 16px;
  line-height: 1.75;
  color: #40454C;
  max-width: 720px;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  padding: 16px;
}

.topic-card .topic-media img,
.topic-card .topic-cover img {
  aspect-ratio: 16 / 9;
  height: auto;
}

.topic-card .topic-media,
.topic-card .topic-cover {
  margin-bottom: 14px;
}

.topic-name {
  font-size: 18px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 8px;
}

.topic-desc,
.topic-reason {
  font-size: 15px;
  line-height: 1.7;
  color: #40454C;
  margin-bottom: 10px;
}

.topic-meta {
  font-size: 14px;
  line-height: 1.7;
  color: #5A5F66;
  margin-top: auto;
}

.topic-meta dt {
  display: inline;
  font-weight: 600;
  color: #1F3552;
}

.topic-meta dd {
  display: inline;
  margin-right: 12px;
}

.topic-meta dd:last-child {
  margin-right: 0;
}

.record-months {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.record-month {
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  padding: 18px 20px;
}

.month-title {
  font-size: 16px;
  font-weight: 600;
  color: #1F3552;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid #D8D5CE;
}

.record-list .record-item {
  padding: 10px 0;
  border-bottom: 1px dashed #E4E1DA;
}

.record-list .record-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.record-target {
  font-size: 15px;
  font-weight: 600;
  color: #1F3552;
}

.record-type {
  font-size: 14px;
  color: #8C6A3F;
}

/* --------------------------------------------------------------------------
   pages · 题材频道
   -------------------------------------------------------------------------- */

.channel-table-section {
  margin-bottom: 44px;
}

.channel-table-section .section-figure {
  margin-top: 24px;
  max-width: 720px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.choice-item {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  padding: 18px 20px;
}

.choice-title {
  font-size: 17px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 8px;
}

.choice-text {
  font-size: 15px;
  line-height: 1.7;
  color: #40454C;
  margin-bottom: 12px;
}

.choice-list {
  margin-top: auto;
}

.choice-list li {
  margin-bottom: 6px;
}

.choice-list li:last-child {
  margin-bottom: 0;
}

.choice-list a {
  font-size: 15px;
  color: #2A4C7D;
}

.relation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin-bottom: 20px;
}

.relation-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  min-width: 0;
}

.relation-channel {
  font-size: 15px;
  font-weight: 600;
  color: #1F3552;
  white-space: nowrap;
}

.relation-arrow {
  color: #8C6A3F;
}

.relation-topic {
  font-size: 15px;
  color: #2A4C7D;
  min-width: 0;
}

.relation-note {
  padding: 16px 18px;
  background-color: #FAF9F7;
  border-left: 3px solid #8C6A3F;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  line-height: 1.7;
  color: #40454C;
}

/* --------------------------------------------------------------------------
   pages · 专题索引
   -------------------------------------------------------------------------- */

.page-topics .topics-section {
  margin-bottom: 44px;
}

.page-topics .topics-section .topic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-topics .topic-meta {
  margin-top: 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
}

.page-topics .topic-meta dt {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1F3552;
}

.page-topics .topic-meta dd {
  display: block;
  font-size: 14px;
  margin-right: 0;
  color: #5A5F66;
}

.page-topics .order-group {
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.page-topics .order-note {
  font-size: 15px;
  line-height: 1.7;
  color: #40454C;
}

.page-topics .cross-table {
  min-width: 560px;
}

/* --------------------------------------------------------------------------
   pages · 浏览指引
   -------------------------------------------------------------------------- */

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.guide-steps {
  grid-column: 1 / -1;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-top: 3px solid #1F3552;
  border-radius: 6px;
  padding: 18px 18px 20px;
  min-width: 0;
}

.step-index {
  display: inline-block;
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #8C6A3F;
  margin-bottom: 8px;
}

.step-name {
  font-size: 17px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 8px;
}

.step-page {
  font-size: 14px;
  margin-bottom: 10px;
}

.step-page a {
  color: #2A4C7D;
}

.step-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #40454C;
}

.guide-figure {
  grid-column: 1 / -1;
  max-width: 720px;
}

.guide-checklist {
  grid-column: 1 / -1;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.checklist-item {
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  padding: 18px 20px;
  min-width: 0;
}

.checklist-name {
  font-size: 17px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 10px;
}

.checklist-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #40454C;
  margin-bottom: 8px;
}

.checklist-points li:last-child {
  margin-bottom: 0;
}

.checklist-points li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: #8C6A3F;
}

.guide-fallback {
  grid-column: 1 / -1;
}

.fallback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.fallback-item {
  background-color: #FAF9F7;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  padding: 18px 20px;
  min-width: 0;
}

.fallback-name {
  font-size: 16px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 8px;
}

.fallback-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #40454C;
}

.fallback-desc a {
  color: #2A4C7D;
}

.guide-faq {
  grid-column: 1 / -1;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1F3552;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "＋";
  display: inline-block;
  width: 20px;
  color: #8C6A3F;
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: "－";
}

.faq-item summary:hover {
  background-color: #FAF9F7;
}

.faq-item p {
  padding: 0 18px 16px 38px;
  font-size: 15px;
  line-height: 1.75;
  color: #40454C;
}

/* --------------------------------------------------------------------------
   pages · 整理记录
   -------------------------------------------------------------------------- */

.records-timeline {
  margin-bottom: 44px;
}

.records-timeline .record-month {
  margin-bottom: 24px;
}

.records-timeline .record-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed #E4E1DA;
}

.records-timeline .record-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.record-date {
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  color: #8C6A3F;
  white-space: nowrap;
}

.record-body {
  min-width: 0;
}

.record-reason {
  font-size: 14px;
  line-height: 1.7;
  color: #5A5F66;
}

.adjust-types {
  margin-bottom: 44px;
}

.type-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.type-card {
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  padding: 16px;
  min-width: 0;
}

.type-figure {
  margin-bottom: 12px;
}

.type-figure img {
  aspect-ratio: 4 / 3;
}

.type-name {
  font-size: 16px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 8px;
}

.type-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #40454C;
}

.record-links {
  margin-bottom: 12px;
}

.record-link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
}

.record-link-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  min-width: 0;
}

.record-link-target {
  font-size: 15px;
  font-weight: 600;
  color: #1F3552;
  white-space: nowrap;
}

.record-link-item a {
  font-size: 15px;
  color: #2A4C7D;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: flex;
  justify-content: center;
}

.error-panel {
  max-width: 640px;
  width: 100%;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
  padding: 40px 32px;
  text-align: left;
}

.error-code {
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #8C6A3F;
  margin-bottom: 10px;
}

.error-panel h1 {
  font-size: 30px;
  font-weight: 600;
  color: #1F3552;
  margin-bottom: 14px;
}

.error-text {
  font-size: 17px;
  line-height: 1.75;
  color: #40454C;
  margin-bottom: 22px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  margin-bottom: 22px;
}

.error-links a {
  display: block;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 15px;
  color: #2A4C7D;
  background-color: #FAF9F7;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  text-decoration: none;
}

.error-links a:hover,
.error-links a:focus-visible {
  background-color: #EFEDE8;
  text-decoration: none;
}

.error-note {
  font-size: 14px;
  line-height: 1.7;
  color: #5A5F66;
  margin-bottom: 22px;
}

.error-home {
  display: inline-block;
  padding: 12px 22px;
  min-height: 44px;
  font-family: system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
  font-size: 16px;
  color: #FFFFFF;
  background-color: #1F3552;
  border-radius: 6px;
  text-decoration: none;
}

.error-home:hover,
.error-home:focus-visible {
  background-color: #2A4C7D;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive · 断点适配
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .header-inner {
    padding: 12px 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .site-nav {
    order: 4;
    width: 100%;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #D8D5CE;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 12px 8px;
  }

  .header-home {
    order: 3;
    margin-left: auto;
  }

  .page-layout,
  .home-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .home-layout {
    padding: 0 18px;
  }

  .inner-main {
    padding: 20px 18px 48px;
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 28px;
  }

  .hero-media {
    grid-column: 1;
    grid-row: auto;
  }

  .hero-entries {
    grid-column: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .choice-grid,
  .fallback-grid,
  .type-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
    padding: 32px 18px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-copy {
    padding: 14px 18px 24px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .lead-note {
    padding: 10px 18px;
    font-size: 14px;
    text-align: left;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 13px;
  }

  .page-title,
  .hero-title,
  .error-panel h1 {
    font-size: 24px;
  }

  .section-title,
  .section-head h2 {
    font-size: 20px;
  }

  .hero-entries {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-grid,
  .page-topics .topics-section .topic-grid,
  .record-months,
  .choice-grid,
  .checklist-grid,
  .fallback-grid,
  .type-grid,
  .relation-list,
  .record-link-list,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .sitemap-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .records-timeline .record-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .relation-item,
  .record-link-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-desc {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
/* 轻量淡入增强：默认可见，仅在支持脚本标记时叠加动效 */
.js-fade-ready .hero-section,
.js-fade-ready .overview-section,
.js-fade-ready .topics-section,
.js-fade-ready .records-section {
  animation: softFadeIn 0.5s ease-out both;
}

@keyframes softFadeIn {
  from {
    transform: translateY(6px);
  }
  to {
    transform: translateY(0);
  }
}
