/* ==========================================================================
   午夜AV视频影院 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f6f7f9;
  color: #1f2430;
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: #12151c;
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: #2f6bd8;
  text-decoration: none;
}

a:hover {
  color: #1f4fa8;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #2f6bd8;
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

time {
  font-style: normal;
}

/* --------------------------------------------------------------------------
   layout · 骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  background: #f6f7f9;
  color: #1f2430;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 24px;
  background: #12151c;
  border-bottom: 1px solid #232833;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f2f4f8;
  font-weight: 700;
  white-space: nowrap;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  object-fit: contain;
  background: #1c2130;
}

.brand-name {
  font-size: 17px;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  color: #c9d0dc;
  font-size: 15px;
}

.nav-link:hover {
  background: #1c2130;
  color: #ffffff;
}

.nav-link.is-current {
  background: #2f6bd8;
  color: #ffffff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid #2c3342;
  border-radius: 6px;
  background: #1a1f2b;
  color: #e6eaf2;
  cursor: pointer;
}

.nav-toggle::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-main {
  display: block;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.inner-main {
  padding-top: 20px;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}

.page-layout.layout-shell {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.sidebar-left .page-layout {
  grid-template-columns: 210px minmax(0, 1fr);
}

.content-main,
.content-column {
  min-width: 0;
}

.content-aside {
  min-width: 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
  padding: 36px 24px 28px;
  background: #12151c;
  color: #aeb6c4;
  font-size: 14px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  color: #f2f4f8;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  color: #9aa3b2;
  line-height: 1.7;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  margin-bottom: 10px;
  color: #e6eaf2;
  font-size: 14px;
  font-weight: 600;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  color: #a9b2c1;
  font-size: 14px;
}

.footer-list a:hover {
  color: #ffffff;
}

.footer-copyright {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid #232833;
  color: #7d8697;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   components · 通用
   -------------------------------------------------------------------------- */

.section {
  margin-bottom: 40px;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-lead {
  color: #5b6473;
  font-size: 15px;
  line-height: 1.75;
}

.section-more {
  margin-top: 16px;
}

.section-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #ffffff;
  color: #2f6bd8;
  font-size: 15px;
  font-weight: 600;
}

.section-more a:hover {
  border-color: #2f6bd8;
  background: #eef3fd;
}

.section-note {
  margin-top: 16px;
  color: #5b6473;
  font-size: 15px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #5b6473;
  font-size: 14px;
}

.breadcrumb a {
  color: #2f6bd8;
}

.breadcrumb-sep {
  color: #9aa3b2;
}

.breadcrumb-current {
  color: #1f2430;
  font-weight: 600;
}

.page-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e6ee;
}

.page-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.page-description {
  max-width: 780px;
  color: #5b6473;
  font-size: 15px;
  line-height: 1.8;
}

/* 字段表：首页 / 专题 / 指南 / 边界共用 */
.field-table {
  width: 100%;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  font-size: 14px;
}

.field-table caption,
.field-table-caption,
.field-caption {
  padding: 10px 14px;
  color: #5b6473;
  font-size: 13px;
  text-align: left;
  caption-side: top;
}

.field-table th,
.field-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.field-table thead th {
  background: #f1f4f9;
  color: #12151c;
  font-weight: 600;
  white-space: nowrap;
}

.field-table tbody th {
  width: 34%;
  color: #12151c;
  font-weight: 600;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

/* 侧栏 */
.aside-title {
  margin-bottom: 12px;
  font-size: 16px;
  color: #12151c;
}

.aside-block {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.aside-heading {
  margin-bottom: 10px;
  font-size: 15px;
  color: #12151c;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aside-list a {
  display: inline-block;
  color: #2f6bd8;
  font-size: 14px;
  line-height: 1.6;
}

.aside-text,
.aside-intro,
.aside-terms {
  margin-top: 10px;
  color: #5b6473;
  font-size: 14px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.site-notice {
  padding: 10px 24px;
  background: #eef3fd;
  border-bottom: 1px solid #dbe5f8;
  color: #3a4a63;
  font-size: 14px;
  text-align: center;
}

.site-notice p {
  max-width: 1180px;
  margin: 0 auto;
}

.home-main {
  padding-top: 28px;
}

.site-sidebar {
  position: sticky;
  top: 88px;
  padding: 18px 16px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.sidebar-title {
  margin-bottom: 12px;
  color: #5b6473;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  color: #3a4252;
  font-size: 15px;
}

.sidebar-link:hover {
  background: #f1f4f9;
  color: #2f6bd8;
}

.sidebar-link.is-current {
  background: #eef3fd;
  color: #2f6bd8;
  font-weight: 600;
}

/* 首屏焦点区 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 44px;
  padding: 28px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #fdf1e0;
  color: #b06a12;
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 14px;
}

.hero-summary {
  margin-bottom: 18px;
  color: #5b6473;
  font-size: 15px;
  line-height: 1.8;
}

.hero-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.hero-line {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
}

.hero-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #e08a2e;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 6px;
  background: #2f6bd8;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.hero-cta:hover {
  background: #1f4fa8;
  color: #ffffff;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  object-fit: cover;
  background: #e6eaf2;
}

.hero-caption {
  margin-top: 10px;
  color: #5b6473;
  font-size: 13px;
  line-height: 1.6;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.hero-tag {
  padding: 4px 10px;
  border: 1px solid #dbe5f8;
  border-radius: 4px;
  background: #f1f4f9;
  color: #3a4a63;
  font-size: 13px;
}

/* 频道分类总览 */
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-channels .channel-row {
  display: grid;
  grid-template-columns: 46px minmax(160px, 200px) minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.section-channels .channel-row:hover {
  border-color: #c3d3f2;
  box-shadow: 0 2px 10px rgba(47, 107, 216, 0.08);
}

.channel-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #eef3fd;
  color: #2f6bd8;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
}

.channel-name {
  font-size: 17px;
}

.channel-genre {
  color: #5b6473;
  font-size: 14px;
  line-height: 1.7;
}

.channel-org {
  color: #5b6473;
  font-size: 14px;
  line-height: 1.7;
}

.channel-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #ffffff;
  color: #2f6bd8;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.channel-entry:hover {
  border-color: #2f6bd8;
  background: #eef3fd;
}

/* 专题片单速览 */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.section-collections .collection-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.section-collections .collection-card:hover {
  border-color: #c3d3f2;
  box-shadow: 0 2px 10px rgba(47, 107, 216, 0.08);
}

.collection-media {
  margin-bottom: 14px;
}

.section-collections .collection-media img {
  width: 100%;
  height: 150px;
  border-radius: 6px;
  object-fit: cover;
  background: #e6eaf2;
}

.collection-name {
  margin-bottom: 8px;
  font-size: 17px;
}

.collection-theme {
  margin-bottom: 8px;
  color: #b06a12;
  font-size: 14px;
  font-weight: 600;
}

.collection-compose {
  color: #5b6473;
  font-size: 14px;
  line-height: 1.7;
}

/* 观看路径三步 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-path .step-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  grid-template-areas:
    "index name"
    "index text";
  gap: 4px 16px;
  padding: 16px 18px;
  border: 1px solid #e2e6ee;
  border-left: 4px solid #e08a2e;
  border-radius: 8px;
  background: #ffffff;
}

.section-path .step-index {
  grid-area: index;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: #fdf1e0;
  color: #b06a12;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 16px;
  font-weight: 700;
}

.section-path .step-name {
  grid-area: name;
  font-size: 16px;
}

.section-path .step-text {
  grid-area: text;
  color: #5b6473;
  font-size: 14px;
  line-height: 1.7;
}

/* 最近更新记录 */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.update-row {
  display: grid;
  grid-template-columns: 108px minmax(140px, 1fr) 130px minmax(0, 1.6fr);
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.update-date {
  color: #5b6473;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 13px;
}

.update-name {
  font-size: 15px;
}

.update-channel {
  color: #b06a12;
  font-size: 13px;
  font-weight: 600;
}

.update-field {
  color: #5b6473;
  font-size: 14px;
  line-height: 1.7;
}

/* 字段口径与收录边界摘要 */
.boundary-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}

.boundary-col {
  min-width: 0;
  padding: 18px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.boundary-subtitle {
  margin-bottom: 12px;
  font-size: 16px;
}

.boundary-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.boundary-point {
  position: relative;
  padding-left: 16px;
  color: #5b6473;
  font-size: 14px;
  line-height: 1.7;
}

.boundary-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f6bd8;
}

/* 站内栏目索引 */
.index-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.index-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
  color: #1f2430;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.index-item a:hover {
  border-color: #2f6bd8;
  background: #eef3fd;
  color: #2f6bd8;
}

/* --------------------------------------------------------------------------
   pages · 内页通用
   -------------------------------------------------------------------------- */

.content-main .section,
.content-column .content-section,
.guide-steps,
.field-reading,
.guide-faq,
.related-help {
  margin-bottom: 36px;
}

.content-main .section:last-child,
.content-column .content-section:last-child {
  margin-bottom: 0;
}

/* 频道分类页 */
.channel-list-section .channel-list {
  gap: 14px;
}

.channel-list-section .channel-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.channel-figure {
  min-width: 0;
}

.channel-figure img {
  width: 100%;
  height: 120px;
  border-radius: 6px;
  object-fit: cover;
  background: #e6eaf2;
}

.channel-body {
  min-width: 0;
}

.channel-body .channel-index {
  margin-bottom: 8px;
}

.channel-body .channel-name {
  margin-bottom: 8px;
  font-size: 17px;
}

.channel-topic,
.channel-organize {
  color: #5b6473;
  font-size: 14px;
  line-height: 1.7;
}

.channel-topic {
  margin-bottom: 6px;
}

.channel-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #ffffff;
  color: #2f6bd8;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  align-self: center;
}

.channel-enter:hover {
  border-color: #2f6bd8;
  background: #eef3fd;
}

.organize-section .organize-block {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.organize-section .organize-block:last-child {
  margin-bottom: 0;
}

.organize-title {
  margin-bottom: 8px;
  font-size: 16px;
}

.organize-text {
  color: #5b6473;
  font-size: 15px;
  line-height: 1.8;
}

.advice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.advice-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.advice-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #eef3fd;
  color: #2f6bd8;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
}

.advice-text {
  color: #3a4252;
  font-size: 15px;
  line-height: 1.75;
}

/* 专题片单页 */
.content-column .content-section {
  padding: 20px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.collection-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #eef1f6;
}

.collection-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.collection-card:first-of-type {
  padding-top: 0;
}

.content-column .collection-media {
  margin-bottom: 0;
}

.content-column .collection-media img {
  width: 100%;
  height: 130px;
  border-radius: 6px;
  object-fit: cover;
  background: #e6eaf2;
}

.collection-body {
  min-width: 0;
}

.content-column .collection-name {
  margin-bottom: 8px;
  font-size: 17px;
}

.content-column .collection-theme {
  margin-bottom: 8px;
  color: #b06a12;
  font-size: 14px;
  font-weight: 600;
}

.collection-note {
  margin-bottom: 10px;
  color: #5b6473;
  font-size: 14px;
  line-height: 1.75;
}

.collection-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #ffffff;
  color: #2f6bd8;
  font-size: 14px;
  font-weight: 600;
}

.collection-link:hover {
  border-color: #2f6bd8;
  background: #eef3fd;
}

.theme-block {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-left: 4px solid #2f6bd8;
  border-radius: 6px;
  background: #f6f8fc;
}

.theme-block:last-child {
  margin-bottom: 0;
}

.theme-name {
  margin-bottom: 6px;
  font-size: 15px;
}

.theme-text {
  color: #5b6473;
  font-size: 14px;
  line-height: 1.75;
}

.field-key,
.field-name {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
}

.field-desc,
.field-value {
  color: #3a4252;
}

/* 观看指南页 */
.guide-steps .step-list {
  gap: 16px;
}

.guide-steps .step-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
  padding: 18px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.step-body {
  min-width: 0;
}

.guide-steps .step-name {
  margin-bottom: 8px;
  font-size: 17px;
}

.guide-steps .step-text {
  color: #5b6473;
  font-size: 15px;
  line-height: 1.8;
}

.step-figure {
  min-width: 0;
}

.step-figure img {
  width: 100%;
  height: 140px;
  border-radius: 6px;
  object-fit: cover;
  background: #e6eaf2;
}

.step-figure figcaption {
  margin-top: 8px;
  color: #5b6473;
  font-size: 13px;
  line-height: 1.6;
}

.field-reading .field-table {
  margin-top: 4px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 18px;
  color: #12151c;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before {
  content: "+";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: #eef3fd;
  color: #2f6bd8;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.faq-item[open] .faq-question::before {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid #eef1f6;
}

.faq-answer {
  padding: 14px 18px 18px 50px;
}

.faq-answer p {
  color: #5b6473;
  font-size: 15px;
  line-height: 1.8;
}

.related-help {
  padding: 20px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.help-nav {
  margin-top: 12px;
}

.help-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.help-item {
  padding-bottom: 14px;
  border-bottom: 1px solid #eef1f6;
}

.help-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.help-item a {
  display: inline-block;
  min-height: 24px;
  font-size: 15px;
  font-weight: 600;
}

.help-desc {
  margin-top: 6px;
  color: #5b6473;
  font-size: 14px;
  line-height: 1.7;
}

/* 字段与边界页 */
.section-fields .section-lead,
.section-scope .section-lead,
.section-help .section-lead {
  margin-bottom: 16px;
}

.field-figure {
  margin-bottom: 18px;
}

.field-figure img {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  object-fit: cover;
  background: #e6eaf2;
}

.field-figure figcaption {
  margin-top: 8px;
  color: #5b6473;
  font-size: 13px;
  line-height: 1.6;
}

.scope-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scope-item {
  padding: 16px 18px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.scope-title {
  margin-bottom: 8px;
  font-size: 16px;
}

.scope-text {
  color: #3a4252;
  font-size: 15px;
  line-height: 1.8;
}

.scope-log {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e2e6ee;
  color: #5b6473;
  font-size: 13px;
  line-height: 1.7;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.help-card {
  display: flex;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
}

.help-card-title {
  margin-bottom: 8px;
  font-size: 16px;
}

.help-card-text {
  flex: 1 1 auto;
  margin-bottom: 14px;
  color: #5b6473;
  font-size: 14px;
  line-height: 1.75;
}

.help-card-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #ffffff;
  color: #2f6bd8;
  font-size: 14px;
  font-weight: 600;
}

.help-card-link:hover {
  border-color: #2f6bd8;
  background: #eef3fd;
}

/* 404 */
.error-main {
  display: flex;
  justify-content: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.error-panel {
  width: 100%;
  max-width: 640px;
  padding: 32px 28px;
  border: 1px solid #e2e6ee;
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
}

.error-code {
  margin-bottom: 10px;
  color: #e08a2e;
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.error-panel h1 {
  margin-bottom: 12px;
  font-size: 24px;
}

.error-text {
  margin-bottom: 20px;
  color: #5b6473;
  font-size: 15px;
  line-height: 1.8;
}

.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.error-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #cfd6e2;
  border-radius: 6px;
  background: #ffffff;
  color: #2f6bd8;
  font-size: 14px;
  font-weight: 600;
}

.error-links a:hover {
  border-color: #2f6bd8;
  background: #eef3fd;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-media img {
    height: 260px;
  }

  .section-channels .channel-row {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    grid-template-areas:
      "index name entry"
      "index genre genre"
      "index org org";
    gap: 8px 16px;
  }

  .section-channels .channel-index {
    grid-area: index;
    align-self: start;
  }

  .section-channels .channel-name {
    grid-area: name;
  }

  .section-channels .channel-genre {
    grid-area: genre;
  }

  .section-channels .channel-org {
    grid-area: org;
  }

  .section-channels .channel-entry {
    grid-area: entry;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex: 1 0 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid #232833;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    padding: 0 12px;
  }

  .site-main {
    padding: 18px 16px 40px;
  }

  .page-layout,
  .page-layout.layout-shell,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .sidebar-left .site-sidebar {
    order: 2;
  }

  .sidebar-left .home-main {
    order: 1;
  }

  .site-sidebar {
    position: static;
  }

  .sidebar-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar-link {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #e2e6ee;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .boundary-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .index-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .update-row {
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-areas:
      "date name"
      "channel field";
    gap: 6px 16px;
  }

  .update-date {
    grid-area: date;
  }

  .update-name {
    grid-area: name;
  }

  .update-channel {
    grid-area: channel;
  }

  .update-field {
    grid-area: field;
  }

  .channel-list-section .channel-row {
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-areas:
      "figure body"
      "figure enter";
    gap: 12px 16px;
  }

  .channel-figure {
    grid-area: figure;
  }

  .channel-body {
    grid-area: body;
  }

  .channel-enter {
    grid-area: enter;
    justify-self: start;
    align-self: start;
  }

  .collection-card {
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .guide-steps .step-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-figure img {
    height: 180px;
  }

  .help-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 28px 16px 22px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .site-notice {
    padding: 10px 16px;
    text-align: left;
    font-size: 13px;
  }

  .brand-name {
    font-size: 16px;
  }

  .hero {
    padding: 20px 16px;
    margin-bottom: 32px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-media img {
    height: 200px;
  }

  .section {
    margin-bottom: 32px;
  }

  .section-title {
    font-size: 19px;
  }

  .page-title {
    font-size: 22px;
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-collections .collection-media img {
    height: 180px;
  }

  .index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "date"
      "name"
      "channel"
      "field";
    gap: 4px;
  }

  .channel-list-section .channel-row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "figure"
      "body"
      "enter";
    gap: 12px;
  }

  .channel-figure img {
    height: 160px;
  }

  .channel-enter {
    justify-self: stretch;
    text-align: center;
  }

  .collection-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .content-column .collection-media img {
    height: 170px;
  }

  .content-column .content-section {
    padding: 16px;
  }

  .field-table {
    font-size: 13px;
  }

  .field-table th,
  .field-table td {
    padding: 8px 10px;
  }

  .field-table tbody th {
    width: 38%;
    font-size: 12px;
  }

  .faq-question {
    font-size: 15px;
    padding: 12px 14px;
  }

  .faq-answer {
    padding: 12px 14px 16px 46px;
  }

  .field-figure img {
    height: 170px;
  }

  .step-figure img {
    height: 160px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-panel h1 {
    font-size: 20px;
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .section-channels .channel-row,
  .section-collections .collection-card {
    transition: none;
  }
}
