/* ==========================================================================
   被窝电视剧影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base：变量、重置、排版基准
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #f6f6f4;
  --bg-card: #ffffff;
  --ink-main: #2f3237;
  --ink-sub: #5b6169;
  --line-soft: #e2e2de;
  --line-strong: #cfcfc9;
  --tone-channel: #8a9aa8;
  --tone-collection: #a89a8c;
  --tone-updates: #8fa89a;
  --tone-fields: #9a8fa8;
  --footer-bg: #2f3237;
  --footer-ink: #d9dadd;
  --footer-sub: #a3a6ab;
  --radius-card: 8px;
  --radius-chip: 6px;
  --wrap: 1120px;
  --gap-section: 56px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink-main);
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-main);
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

a {
  color: #3d5a70;
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease;
}

a:hover {
  color: #1f3648;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #3d5a70;
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
}

button {
  font: inherit;
  color: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   layout：页头、导航、主容器、内页骨架、页脚
   -------------------------------------------------------------------------- */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line-soft);
}

.header-topbar {
  background: #eceae5;
  border-bottom: 1px solid var(--line-soft);
}

.header-topbar .topbar-note {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 8px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-sub);
}

.header-inner {
  position: relative;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink-main);
}

.brand-logo:hover {
  color: #1f3648;
  text-decoration: none;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-list > li > a {
  display: block;
  padding: 9px 13px;
  font-size: 15px;
  color: var(--ink-sub);
  border-bottom: 2px solid transparent;
}

.nav-list > li > a:hover {
  color: var(--ink-main);
  text-decoration: none;
}

.nav-list > li > a.is-current {
  color: var(--ink-main);
  font-weight: 600;
  border-bottom-color: var(--tone-channel);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-chip);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink-main);
  border-radius: 1px;
}

.site-main {
  display: block;
}

.home-main {
  padding-bottom: 8px;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-sub);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--ink-sub);
}

.page-header {
  margin: 18px 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink-main);
}

.page-description {
  margin-top: 10px;
  max-width: 820px;
  font-size: 15px;
  color: var(--ink-sub);
}

/* 页脚 */
.site-footer {
  margin-top: 24px;
  background: var(--footer-bg);
  color: var(--footer-ink);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 32px 28px;
}

.footer-brand .footer-logo {
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.footer-brand .footer-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--footer-sub);
}

.footer-title {
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  font-size: 14px;
  color: var(--footer-sub);
}

.footer-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 13px;
  color: var(--footer-sub);
}

.footer-copy {
  color: var(--footer-sub);
}

/* --------------------------------------------------------------------------
   components：通用区块、表格、卡片、标签、按钮、FAQ
   -------------------------------------------------------------------------- */
.section {
  margin-bottom: var(--gap-section);
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-title,
.updates-months h2,
.updates-legend h2,
.updates-fields h2,
.updates-links h2,
.guide-steps h2,
.guide-adjust h2,
.guide-faq h2,
.guide-related h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink-main);
}

.section-desc,
.section-intro,
.section-lead {
  margin-top: 8px;
  max-width: 860px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.section-more {
  margin-top: 16px;
  font-size: 14px;
}

.section-more a {
  color: #3d5a70;
}

.section-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-sub);
}

.col-title,
.sub-title {
  margin-bottom: 12px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-main);
}

/* 表格通用 */
.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.data-table,
.channel-table,
.record-fields-table {
  min-width: 620px;
  font-size: 14px;
}

.table-caption {
  padding: 12px 16px 0;
  font-size: 13px;
  color: var(--ink-sub);
  text-align: left;
}

.data-table thead th,
.channel-table thead th,
.record-fields-table thead th {
  padding: 12px 16px;
  background: #f1f1ee;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-sub);
  white-space: nowrap;
}

.data-table tbody td,
.data-table tbody th,
.channel-table tbody td,
.channel-table tbody th,
.record-fields-table tbody td,
.record-fields-table tbody th {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  line-height: 1.7;
  color: var(--ink-main);
}

.data-table tbody tr:last-child td,
.channel-table tbody tr:last-child td,
.channel-table tbody tr:last-child th,
.record-fields-table tbody tr:last-child td,
.record-fields-table tbody tr:last-child th {
  border-bottom: none;
}

.data-table tbody tr:hover,
.channel-table tbody tr:hover,
.record-fields-table tbody tr:hover {
  background: #fafaf8;
}

.cell-num,
.channel-code {
  font-weight: 600;
  color: var(--ink-sub);
  white-space: nowrap;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-chip);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink-main);
  color: #ffffff;
}

.btn-primary:hover {
  background: #1f2226;
  color: #ffffff;
  text-decoration: none;
}

.btn-ghost {
  background: var(--bg-card);
  border-color: var(--line-strong);
  color: var(--ink-main);
}

.btn-ghost:hover {
  border-color: var(--ink-sub);
  color: var(--ink-main);
  text-decoration: none;
}

/* 记录行 */
.record-list {
  display: block;
}

.record-row {
  display: grid;
  grid-template-columns: 92px 140px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 14px;
  align-items: baseline;
}

.record-row:last-child {
  border-bottom: none;
}

.record-date {
  color: var(--ink-sub);
  font-size: 13px;
  white-space: nowrap;
}

.record-channel {
  color: var(--ink-main);
  font-weight: 600;
}

.record-note {
  color: var(--ink-sub);
  line-height: 1.7;
}

/* 标签 */
.legend-tag {
  display: inline-block;
  min-width: 86px;
  padding: 2px 10px;
  border-radius: var(--radius-chip);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
  color: #ffffff;
}

.tag-channel {
  background: var(--tone-channel);
}

.tag-collection {
  background: var(--tone-collection);
}

.tag-site {
  background: var(--tone-fields);
}

/* --------------------------------------------------------------------------
   pages：首页
   -------------------------------------------------------------------------- */
.hero-section {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  background: #eceae5;
  border-radius: var(--radius-chip);
  font-size: 13px;
  color: var(--ink-sub);
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-main);
}

.hero-lead {
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-sub);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-media figcaption {
  padding: 12px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-sub);
  border-top: 1px solid var(--line-soft);
}

.channel-overview,
.collection-entry,
.updates-glance,
.fields-summary,
.page-index {
  max-width: var(--wrap);
  margin: 0 auto var(--gap-section);
  padding: 0 24px;
}

.collection-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.collection-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 2px 10px rgba(47, 50, 55, 0.07);
}

.collection-card .card-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.collection-card .card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.collection-card .card-title {
  font-size: 17px;
  font-weight: 600;
}

.collection-card .card-range {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.collection-card .card-channel {
  margin-top: auto;
  font-size: 13px;
  color: var(--ink-sub);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.month-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.month-group {
  padding: 18px 20px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--tone-updates);
  border-radius: var(--radius-card);
}

.month-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.month-group .record-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
}

.fields-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.fields-col .section-more {
  margin-top: 14px;
}

.bounds-list {
  display: grid;
  gap: 10px;
}

.bounds-list li {
  position: relative;
  padding: 11px 14px 11px 32px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.bounds-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tone-fields);
}

.index-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.index-col {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--tone-channel);
  border-radius: var(--radius-card);
}

.index-list {
  display: grid;
  gap: 8px;
}

.index-list a {
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   pages：内页共用布局
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  gap: 32px;
  align-items: start;
}

.layout-main-aside,
.layout-shell {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.layout-main {
  min-width: 0;
}

.layout-aside,
.layout-side {
  min-width: 0;
  position: sticky;
  top: 20px;
}

.layout-main .section:last-child,
.layout-aside .aside-block:last-child,
.layout-side .side-block:last-child {
  margin-bottom: 0;
}

/* 题材频道页 */
.channel-table-section,
.channel-detail-section,
.channel-fields-section,
.related-entry-section {
  margin-bottom: var(--gap-section);
}

.channel-table-section .channel-table {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.channel-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}

.channel-detail:last-child {
  border-bottom: none;
}

.channel-detail-body {
  min-width: 0;
}

.channel-detail-name {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.channel-detail-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-sub);
}

.channel-points {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.channel-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.channel-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tone-channel);
}

.channel-detail-media {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.channel-detail-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.channel-detail-media figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-sub);
  border-top: 1px solid var(--line-soft);
}

.channel-fields-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.channel-fields-col {
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.field-brief-list {
  display: grid;
  gap: 4px;
}

.field-brief-name {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-main);
}

.field-brief-list .field-brief-name:first-of-type {
  margin-top: 0;
}

.field-brief-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.related-entry-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.related-entry-item a {
  display: block;
  padding: 14px 16px;
  min-height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  font-size: 14px;
  color: var(--ink-main);
}

.related-entry-item a:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

/* 专题片单页 */
.topic-section,
.topic-channel-section,
.topic-order-section {
  margin-bottom: var(--gap-section);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.topic-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 2px 10px rgba(47, 50, 55, 0.07);
}

.topic-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}

.topic-name {
  font-size: 17px;
  font-weight: 600;
}

.topic-scope {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.topic-meta {
  margin-top: auto;
  font-size: 13px;
  color: var(--ink-sub);
}

.topic-channel-table {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.section-media {
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.section-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.media-caption {
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-sub);
  border-top: 1px solid var(--line-soft);
}

.order-list {
  display: grid;
  gap: 14px;
  counter-reset: order;
}

.order-item {
  padding: 16px 20px 16px 54px;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  counter-increment: order;
}

.order-item::before {
  content: counter(order);
  position: absolute;
  left: 18px;
  top: 17px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--tone-collection);
  color: #ffffff;
  font-size: 13px;
  line-height: 24px;
  text-align: center;
}

.order-title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.order-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.aside-block,
.side-block {
  margin-bottom: 20px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.aside-title,
.side-title {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.aside-text {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.aside-list,
.side-links,
.side-list {
  display: grid;
  gap: 8px;
}

.aside-list a,
.side-links a {
  font-size: 14px;
}

.side-list li {
  position: relative;
  padding-left: 14px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.side-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tone-fields);
}

/* 更新线索页 */
.updates-visual {
  margin-bottom: 32px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.updates-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.updates-visual figcaption {
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-sub);
  border-top: 1px solid var(--line-soft);
}

.updates-months,
.updates-legend,
.updates-fields,
.updates-links {
  margin-bottom: var(--gap-section);
}

.updates-months .month-group {
  margin-bottom: 16px;
}

.month-heading {
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: 600;
}

.legend-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.legend-column {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.legend-heading {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.legend-list {
  display: grid;
  gap: 10px;
}

.legend-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-sub);
}

.record-fields-table {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.record-fields-table caption {
  padding: 12px 16px 0;
  font-size: 13px;
  color: var(--ink-sub);
  text-align: left;
}

.entry-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.entry-item {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.entry-item a {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
  min-height: 24px;
}

.entry-item p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

/* 字段说明页 */
.field-table-section,
.field-rule-section,
.boundary-section {
  margin-bottom: var(--gap-section);
}

.field-figure {
  margin-top: 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.field-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.field-figure figcaption {
  padding: 11px 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-sub);
  border-top: 1px solid var(--line-soft);
}

.rule-list {
  display: grid;
  gap: 16px;
}

.rule-item {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--tone-fields);
  border-radius: var(--radius-card);
}

.rule-title {
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 600;
}

.rule-desc {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.rule-points {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.rule-points li {
  position: relative;
  padding-left: 15px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.rule-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.boundary-item {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.boundary-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-sub);
}

/* 浏览指引页 */
.guide-steps,
.guide-adjust,
.guide-faq,
.guide-related {
  margin-bottom: var(--gap-section);
}

.step-list {
  display: grid;
  gap: 20px;
}

.step-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 24px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  align-items: start;
}

.step-body {
  min-width: 0;
}

.step-title {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
}

.step-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-sub);
}

.step-points {
  margin-top: 12px;
  display: grid;
  gap: 6px;
}

.step-points li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.step-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tone-updates);
}

.step-figure {
  background: var(--bg-page);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.step-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.step-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-sub);
  border-top: 1px solid var(--line-soft);
}

.adjust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.adjust-item {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--tone-collection);
  border-radius: var(--radius-card);
}

.adjust-title {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 600;
}

.adjust-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-question {
  padding: 15px 44px 15px 18px;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-main);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 400;
  color: var(--ink-sub);
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line-soft);
}

.faq-answer p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-sub);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.related-item {
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-title {
  font-size: 16px;
  font-weight: 600;
}

.related-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-sub);
}

.related-link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
}

/* 404 */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.error-panel {
  max-width: 640px;
  padding: 32px 30px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
}

.error-code {
  font-size: 14px;
  font-weight: 600;
  color: var(--tone-fields);
}

.error-panel h1 {
  margin: 10px 0 12px;
  font-size: 26px;
}

.error-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-sub);
}

.error-links {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.error-links a {
  display: block;
  padding: 12px 14px;
  min-height: 44px;
  background: var(--bg-page);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-card);
  font-size: 14px;
  color: var(--ink-main);
}

.error-links a:hover {
  border-color: var(--line-strong);
  text-decoration: none;
}

.error-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-sub);
}

/* --------------------------------------------------------------------------
   responsive：900px 与 600px 两档
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 20;
    display: block;
    background: var(--bg-card);
    border-bottom: 1px solid var(--line-soft);
    box-shadow: 0 6px 16px rgba(47, 50, 55, 0.08);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list > li > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 24px;
    border-bottom: 1px solid var(--line-soft);
    border-left: 3px solid transparent;
  }

  .nav-list > li > a.is-current {
    border-bottom-color: var(--line-soft);
    border-left-color: var(--tone-channel);
  }

  .hero-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 32px 24px 30px;
  }

  .hero-title {
    font-size: 26px;
  }

  .collection-cards,
  .month-groups,
  .index-columns,
  .related-entry-list,
  .adjust-grid,
  .related-grid,
  .entry-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fields-summary-grid,
  .channel-fields-layout,
  .legend-columns,
  .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-main-aside,
  .layout-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .layout-aside,
  .layout-side {
    position: static;
  }

  .channel-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .step-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 24px;
    padding: 36px 24px 24px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .header-topbar .topbar-note,
  .header-inner,
  .inner-main,
  .hero-section,
  .channel-overview,
  .collection-entry,
  .updates-glance,
  .fields-summary,
  .page-index,
  .footer-inner,
  .footer-bottom,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-logo {
    font-size: 18px;
  }

  .page-title {
    font-size: 24px;
  }

  .section-head h2,
  .section-title,
  .updates-months h2,
  .updates-legend h2,
  .updates-fields h2,
  .updates-links h2,
  .guide-steps h2,
  .guide-adjust h2,
  .guide-faq h2,
  .guide-related h2 {
    font-size: 19px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 160px;
  }

  .collection-cards,
  .month-groups,
  .index-columns,
  .related-entry-list,
  .adjust-grid,
  .related-grid,
  .entry-links,
  .topic-grid,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .channel-detail,
  .step-item {
    padding-left: 0;
    padding-right: 0;
  }

  .step-item {
    padding: 18px 16px;
  }

  .order-item {
    padding: 14px 16px 14px 46px;
  }

  .order-item::before {
    left: 14px;
    top: 15px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-bottom {
    flex-direction: column;
  }
}
