/* ==========================================================================
   午夜看片 aduda.cn — 全站样式表
   base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

:root {
  --ink: #22262b;
  --navy: #1b2a41;
  --navy-soft: #2c3e59;
  --warm-gray: #8c8f94;
  --paper: #f7f5f1;
  --paper-deep: #efece5;
  --gold: #a98b4b;
  --line: #dcd7cd;
  --line-soft: #e7e2d9;
  --white: #ffffff;
  --radius: 6px;
  --shadow-soft: 0 1px 2px rgba(27, 42, 65, 0.06), 0 8px 20px rgba(27, 42, 65, 0.05);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--paper);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 12px;
  color: var(--warm-gray);
  line-height: 1.5;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
  color: var(--navy-soft);
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--navy);
  background-color: var(--paper-deep);
}

.nav-link.is-current {
  color: var(--navy);
  font-weight: 600;
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--navy);
  border-radius: 2px;
}

.page-layout {
  width: 100%;
}

.site-main {
  display: block;
  width: 100%;
  flex: 1 0 auto;
}

.inner-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0 4px;
  font-size: 13px;
  color: var(--warm-gray);
}

.breadcrumb a {
  color: var(--warm-gray);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--gold);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--navy);
}

.page-header {
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.page-description {
  margin-top: 12px;
  max-width: 760px;
  font-size: 16px;
  color: var(--navy-soft);
}

.page-description a {
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.page-description a:hover,
.page-description a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* --------------------------------------------------------------------------
   components — 通用元件
   -------------------------------------------------------------------------- */

.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section:last-of-type {
  border-bottom: 0;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-head {
  margin-bottom: 26px;
}

.section-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.section-desc,
.section-intro {
  margin-top: 10px;
  max-width: 760px;
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.75;
}

.section-foot {
  margin-top: 22px;
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link::after {
  content: "→";
  font-size: 13px;
  color: var(--gold);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background-color: var(--navy);
  color: var(--paper);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--navy-soft);
  color: var(--white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

/* 表格通用 */
.field-table,
.mapping-table,
.data-table,
.path-table {
  width: 100%;
  font-size: 14.5px;
  border-top: 1px solid var(--line);
}

.field-table caption,
.mapping-caption,
.table-caption,
.field-table-caption {
  text-align: left;
  font-size: 13px;
  color: var(--warm-gray);
  padding-bottom: 10px;
}

.field-table th,
.field-table td,
.mapping-table th,
.mapping-table td,
.data-table th,
.data-table td,
.path-table th,
.path-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  line-height: 1.7;
}

.field-table thead th,
.mapping-table thead th,
.data-table thead th,
.path-table thead th {
  font-weight: 600;
  color: var(--navy);
  background-color: var(--paper-deep);
  border-bottom: 1px solid var(--line);
}

.field-table tbody th,
.mapping-table tbody th,
.data-table tbody th,
.path-table tbody th {
  color: var(--navy);
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody tr:hover,
.mapping-table tbody tr:hover,
.data-table tbody tr:hover,
.path-table tbody tr:hover {
  background-color: rgba(169, 139, 75, 0.05);
}

.mapping-note,
.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--warm-gray);
}

.mapping-note a,
.section-note a {
  color: var(--navy);
  margin-right: 14px;
  border-bottom: 1px solid var(--line);
}

.mapping-note a:hover,
.section-note a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* 图片容器通用 */
.media-figure,
.hero-media,
.feature-media,
.channel-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--paper-deep);
}

.media-caption,
.hero-caption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.6;
}

.media-figure img,
.hero-media img,
.feature-media img,
.channel-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--navy);
  color: #c7cbd3;
  margin-top: auto;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 24px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(0, 1fr)) minmax(200px, 1.2fr);
  gap: 32px;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.75;
  color: #9aa1ad;
}

.footer-group-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-list li {
  margin-bottom: 8px;
}

.footer-list a {
  font-size: 13.5px;
  color: #b6bcc6;
  transition: color 0.18s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--gold);
}

.footer-note {
  font-size: 13px;
  line-height: 1.75;
  color: #9aa1ad;
}

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-copy {
  font-size: 13px;
  color: #8d94a0;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13.5px;
  color: #b6bcc6;
}

.footer-top:hover,
.footer-top:focus-visible {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   pages — 首页
   -------------------------------------------------------------------------- */

/* 通知横幅 */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 24px;
  font-size: 13.5px;
  color: var(--navy-soft);
}

.notice-text {
  flex: 1 1 auto;
  min-width: 0;
}

.notice-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--warm-gray);
  font-size: 16px;
  line-height: 1;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.notice-close:hover,
.notice-close:focus-visible {
  color: var(--navy);
  border-color: var(--gold);
}

.notice-bar.is-hidden {
  display: none;
}

/* 首屏 */
.hero-section {
  border-bottom: 1px solid var(--line-soft);
  background-color: var(--paper-deep);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 24px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "copy media"
    "channels channels";
  gap: 32px 40px;
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.hero-lede {
  margin-top: 16px;
  font-size: 16px;
  color: var(--navy-soft);
  line-height: 1.8;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  grid-area: media;
  aspect-ratio: 16 / 10;
}

.hero-channels {
  grid-area: channels;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-channel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  min-height: 44px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-channel:hover,
.hero-channel:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-channel-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.hero-channel-note {
  font-size: 13px;
  color: var(--warm-gray);
  line-height: 1.6;
}

/* 首页频道方向总览 */
.channel-overview {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 56px minmax(120px, 0.7fr) minmax(0, 2fr) minmax(160px, 0.9fr);
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.channel-index {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.channel-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.channel-desc {
  font-size: 14.5px;
  color: var(--navy-soft);
  line-height: 1.75;
  min-width: 220px;
}

.channel-link {
  font-size: 13.5px;
  color: var(--warm-gray);
  text-align: right;
}

/* 首页专题片单速览 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-soft);
}

.feature-media {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.feature-card .feature-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  padding: 18px 20px 0;
}

.feature-card .feature-scope {
  padding: 8px 20px 0;
  font-size: 14px;
  color: var(--navy-soft);
  line-height: 1.75;
}

.feature-card .feature-channels {
  padding: 10px 20px 20px;
  margin-top: auto;
  font-size: 13px;
  color: var(--warm-gray);
}

.feature-channels a {
  color: var(--navy);
  margin-right: 10px;
  border-bottom: 1px solid var(--line);
}

.feature-channels a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* 首页字段摘要表列宽 */
.section-fields .field-table th:nth-child(1) {
  width: 20%;
}

.section-fields .field-table th:nth-child(2) {
  width: 38%;
}

.section-fields .field-table th:nth-child(3) {
  width: 42%;
}

/* 首页查阅路径三步 */
.path-steps {
  border-top: 1px solid var(--line);
}

.path-step {
  display: grid;
  grid-template-columns: 56px minmax(140px, 0.7fr) minmax(0, 2.3fr);
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.path-step-index {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.path-step-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.path-step-text {
  font-size: 14.5px;
  color: var(--navy-soft);
  line-height: 1.75;
  min-width: 220px;
}

/* 首页收录边界 */
.boundary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.boundary-block {
  padding: 22px 24px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.boundary-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.boundary-list {
  padding-left: 0;
}

.boundary-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--navy-soft);
  line-height: 1.75;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background-color: var(--gold);
  border-radius: 50%;
}

.boundary-text {
  font-size: 14px;
  color: var(--navy-soft);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages — 题材频道
   -------------------------------------------------------------------------- */

.channel-directions .channel-row {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
}

.channel-directions .channel-row:first-of-type {
  border-top: 1px solid var(--line);
}

.channel-figure {
  aspect-ratio: 16 / 10;
}

.channel-body {
  min-width: 0;
}

.channel-body .channel-name {
  font-size: 18px;
  margin-bottom: 10px;
}

.channel-body .channel-desc {
  font-size: 15px;
  color: var(--navy-soft);
  line-height: 1.8;
  min-width: 220px;
}

.channel-range {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--warm-gray);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.audience-item {
  padding: 20px 22px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.audience-item:hover {
  border-color: var(--gold);
}

.audience-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.audience-text {
  font-size: 14px;
  color: var(--navy-soft);
  line-height: 1.75;
}

.channel-mapping .mapping-table th:nth-child(1) {
  width: 22%;
}

.channel-mapping .mapping-table th:nth-child(2) {
  width: 34%;
}

.channel-mapping .mapping-table th:nth-child(3) {
  width: 44%;
}

/* --------------------------------------------------------------------------
   pages — 专题片单
   -------------------------------------------------------------------------- */

.section-feature-list .feature-card {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 26px 0;
  background-color: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.section-feature-list .feature-card:first-of-type {
  border-top: 1px solid var(--line);
}

.section-feature-list .feature-card:hover {
  border-color: transparent;
  box-shadow: none;
}

.section-feature-list .feature-media {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
}

.feature-body {
  min-width: 0;
}

.feature-index {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 6px;
}

.feature-body .feature-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.feature-body .feature-scope {
  font-size: 15px;
  color: var(--navy-soft);
  line-height: 1.8;
  min-width: 220px;
}

.feature-body .feature-channels {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--warm-gray);
}

.feature-label {
  display: inline-block;
  margin-right: 8px;
  color: var(--gold);
  font-size: 13px;
}

.intent-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.intent-item {
  padding: 22px 24px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.intent-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.intent-idea,
.intent-rule {
  font-size: 14px;
  color: var(--navy-soft);
  line-height: 1.75;
}

.intent-rule {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.section-feature-channel-map .data-table th:nth-child(1) {
  width: 22%;
}

.section-feature-channel-map .data-table th:nth-child(2) {
  width: 39%;
}

.section-feature-channel-map .data-table th:nth-child(3) {
  width: 39%;
}

.data-table td a {
  color: var(--navy);
  margin-right: 10px;
  border-bottom: 1px solid var(--line);
}

.data-table td a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.next-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.next-item a {
  display: block;
  padding: 16px 18px;
  min-height: 44px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--navy);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.next-item a:hover,
.next-item a:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   pages — 条目字段说明
   -------------------------------------------------------------------------- */

.media-figure-wide {
  aspect-ratio: 21 / 9;
  margin-bottom: 8px;
}

.section-field-meaning .field-table th:nth-child(1) {
  width: 24%;
}

.section-field-meaning .field-table th:nth-child(2) {
  width: 76%;
}

.section-field-rule .field-table th:nth-child(1) {
  width: 18%;
}

.section-field-rule .field-table th:nth-child(2) {
  width: 44%;
}

.section-field-rule .field-table th:nth-child(3) {
  width: 38%;
}

.field-table-rule td {
  font-size: 14px;
}

.relation-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.relation-item {
  display: grid;
  grid-template-columns: 56px minmax(140px, 0.7fr) minmax(0, 2.3fr);
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.relation-index {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.relation-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.relation-desc {
  font-size: 14.5px;
  color: var(--navy-soft);
  line-height: 1.75;
  min-width: 220px;
}

.relation-desc a {
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.relation-desc a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* --------------------------------------------------------------------------
   pages — 查阅路径
   -------------------------------------------------------------------------- */

.path-figure {
  aspect-ratio: 21 / 9;
  margin-bottom: 32px;
}

.path-overview,
.path-detail,
.path-boundary,
.path-faq {
  padding: 36px 0;
  border-bottom: 1px solid var(--line-soft);
}

.path-overview h2,
.path-detail h2,
.path-boundary h2,
.path-faq h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.path-overview .section-intro,
.path-detail .section-intro,
.path-boundary .section-intro,
.path-faq .section-intro {
  margin-top: 10px;
  max-width: 760px;
  font-size: 15px;
  color: var(--warm-gray);
  line-height: 1.75;
}

.step-list {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.step-item {
  display: grid;
  grid-template-columns: 56px minmax(140px, 0.7fr) minmax(0, 2.3fr);
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

.step-index {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.step-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.step-desc {
  font-size: 14.5px;
  color: var(--navy-soft);
  line-height: 1.75;
  min-width: 220px;
}

.path-table {
  margin-top: 22px;
}

.path-table th:nth-child(1) {
  width: 20%;
}

.path-table th:nth-child(2) {
  width: 40%;
}

.path-table th:nth-child(3) {
  width: 40%;
}

.path-boundary .boundary-list {
  margin-top: 20px;
  padding-left: 0;
}

.path-boundary .boundary-item {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--navy-soft);
  line-height: 1.75;
}

.path-boundary .boundary-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 5px;
  background-color: var(--gold);
  border-radius: 50%;
}

.feedback-block {
  margin-top: 26px;
  padding: 22px 24px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.feedback-block h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.feedback-block p {
  font-size: 14px;
  color: var(--navy-soft);
  line-height: 1.75;
  margin-bottom: 8px;
}

.feedback-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.feedback-list a {
  font-size: 14px;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}

.feedback-list a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.path-faq {
  border-bottom: 0;
}

.faq-item {
  margin-top: 14px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  display: block;
  padding: 16px 48px 16px 20px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--gold);
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-question:hover {
  color: var(--gold);
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px solid var(--line-soft);
}

.faq-answer p {
  padding-top: 14px;
  font-size: 14.5px;
  color: var(--navy-soft);
  line-height: 1.8;
}

/* --------------------------------------------------------------------------
   pages — 404
   -------------------------------------------------------------------------- */

.site-error .error-main {
  flex: 1 0 auto;
}

.error-hero {
  border-bottom: 1px solid var(--line-soft);
  background-color: var(--paper-deep);
}

.error-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 56px;
}

.error-code {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 14px;
}

.error-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
}

.error-desc {
  margin-top: 14px;
  max-width: 620px;
  font-size: 16px;
  color: var(--navy-soft);
  line-height: 1.8;
}

.error-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 26px;
  padding: 0 22px;
  background-color: var(--navy);
  color: var(--paper);
  border-radius: var(--radius);
  transition: background-color 0.18s ease;
}

.error-action:hover,
.error-action:focus-visible {
  background-color: var(--navy-soft);
  color: var(--white);
}

.error-routes {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 24px 64px;
}

.error-route-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.error-route-item {
  padding: 20px 22px;
  background-color: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.error-route-item:hover {
  border-color: var(--gold);
}

.error-route-link {
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.error-route-link:hover {
  color: var(--gold);
}

.error-route-desc {
  font-size: 14px;
  color: var(--warm-gray);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-group-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 12px 18px;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 0 8px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .nav-link.is-current {
    border-bottom-color: var(--gold);
  }

  .inner-main {
    padding: 0 18px 48px;
  }

  .breadcrumb {
    padding-top: 16px;
  }

  .page-header {
    padding: 10px 0 22px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .section {
    padding: 34px 0;
  }

  .section-inner {
    padding: 0 18px;
  }

  .section-title {
    font-size: 20px;
  }

  .notice-bar {
    padding: 10px 18px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "media"
      "channels";
    padding: 36px 18px 32px;
    gap: 26px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-lede {
    font-size: 15px;
  }

  .hero-media {
    aspect-ratio: 16 / 9;
  }

  .hero-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 22px;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 18px 0;
  }

  .channel-index {
    display: none;
  }

  .channel-link {
    text-align: left;
  }

  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .path-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 18px 0;
  }

  .path-step-index {
    display: none;
  }

  .boundary-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .channel-directions .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
  }

  .channel-figure {
    aspect-ratio: 16 / 9;
  }

  .section-feature-list .feature-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px 0;
  }

  .section-feature-list .feature-media {
    aspect-ratio: 16 / 9;
  }

  .media-figure-wide,
  .path-figure {
    aspect-ratio: 16 / 9;
  }

  .relation-item,
  .step-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 18px 0;
  }

  .relation-index,
  .step-index {
    display: none;
  }

  .field-table,
  .mapping-table,
  .data-table,
  .path-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .field-table thead,
  .mapping-table thead,
  .data-table thead,
  .path-table thead {
    display: table-header-group;
  }

  .field-table tbody th,
  .mapping-table tbody th,
  .data-table tbody th,
  .path-table tbody th {
    white-space: normal;
  }

  .footer-inner {
    padding: 34px 18px 22px;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .footer-bottom {
    padding: 16px 18px 22px;
  }

  .error-inner {
    padding: 48px 18px 42px;
  }

  .error-title {
    font-size: 24px;
  }

  .error-routes {
    padding: 34px 18px 48px;
  }
}

@media (max-width: 420px) {
  .hero-channels {
    grid-template-columns: minmax(0, 1fr);
  }

  .audience-list,
  .intent-list,
  .next-list,
  .error-route-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
