/* =========================================================
   飘花午夜影院 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   base · 基础重置与排版
   --------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: #F7F6F3;
  color: #1F2421;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
  color: #1F2421;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

a {
  color: #2F6F5E;
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: #235546;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #2F6F5E;
  outline-offset: 2px;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

time {
  font-style: normal;
}

strong {
  font-weight: 600;
}

.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: #F7F6F3;
}

.site-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid #D8D5CE;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
}

.brand {
  flex: 0 0 auto;
  color: #1F2421;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.brand:hover {
  color: #2F6F5E;
}

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
}

.nav-link {
  display: inline-block;
  padding: 6px 0;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.6;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #1F2421;
  border-bottom-color: #D8D5CE;
}

.nav-link.is-current {
  color: #1F2421;
  font-weight: 600;
  border-bottom-color: #2F6F5E;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background-color: #1F2421;
}

.header-note {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 12px;
  color: #5A625E;
  font-size: 13px;
  line-height: 1.6;
}

.site-main {
  flex: 1 1 auto;
  width: 100%;
}

.inner-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  color: #5A625E;
  font-size: 14px;
  line-height: 1.6;
}

.breadcrumb a {
  color: #2F6F5E;
}

.breadcrumb-sep {
  color: #D8D5CE;
}

.breadcrumb-current {
  color: #5A625E;
}

.page-header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid #D8D5CE;
}

.page-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  color: #1F2421;
}

.page-description {
  max-width: 720px;
  margin-top: 14px;
  color: #5A625E;
  font-size: 16px;
  line-height: 1.75;
}

/* 页脚 */
.site-footer {
  margin-top: 48px;
  background-color: #FFFFFF;
  border-top: 1px solid #D8D5CE;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 24px 28px;
}

.footer-back {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid #D8D5CE;
  font-size: 14px;
}

.footer-back a {
  color: #2F6F5E;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 20px;
}

.footer-group {
  min-width: 0;
}

.footer-title {
  margin-bottom: 12px;
  color: #1F2421;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.footer-list li + li {
  margin-top: 8px;
}

.footer-list a {
  display: inline-block;
  color: #5A625E;
  font-size: 14px;
  line-height: 1.6;
}

.footer-list a:hover {
  color: #2F6F5E;
}

.footer-about {
  max-width: 720px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #D8D5CE;
  color: #5A625E;
  font-size: 13px;
  line-height: 1.7;
}

.footer-copy {
  margin-top: 12px;
  color: #5A625E;
  font-size: 13px;
  line-height: 1.7;
}

/* ---------------------------------------------------------
   components · 通用组件（按钮 / 表格 / 卡片 / 步骤 / 问答 / 链接组）
   --------------------------------------------------------- */

/* 按钮 */
.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #2F6F5E;
  border-color: #2F6F5E;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #235546;
  border-color: #235546;
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  border-color: #D8D5CE;
  color: #1F2421;
}

.btn-ghost:hover {
  border-color: #2F6F5E;
  color: #2F6F5E;
}

/* 表格 */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  line-height: 1.6;
  background-color: #FFFFFF;
}

.data-table caption {
  padding: 0 0 12px;
  color: #5A625E;
  font-size: 13px;
  text-align: left;
}

.data-table thead th {
  padding: 12px 14px;
  background-color: #F7F6F3;
  border-bottom: 1px solid #D8D5CE;
  color: #1F2421;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.data-table tbody th {
  padding: 14px;
  border-bottom: 1px solid #D8D5CE;
  color: #1F2421;
  font-weight: 600;
  text-align: left;
  vertical-align: top;
}

.data-table tbody td {
  padding: 14px;
  border-bottom: 1px solid #D8D5CE;
  color: #5A625E;
  vertical-align: top;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover th,
.data-table tbody tr:hover td {
  background-color: #FBFAF8;
}

.data-table a {
  color: #2F6F5E;
  font-weight: 600;
}

.table-caption {
  color: #5A625E;
}

.table-footnote,
.table-note {
  margin-top: 14px;
  color: #5A625E;
  font-size: 13px;
  line-height: 1.7;
}

.table-footnote a,
.table-note a {
  color: #2F6F5E;
}

/* 通用 section 与标题 */
.section {
  margin-bottom: 56px;
}

.section-head {
  margin-bottom: 24px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #1F2421;
}

.section-lead,
.section-intro {
  max-width: 720px;
  margin-top: 10px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.section-text {
  max-width: 720px;
  margin-top: 12px;
  color: #5A625E;
  font-size: 16px;
  line-height: 1.75;
}

.section-note {
  margin-top: 14px;
  color: #5A625E;
  font-size: 13px;
  line-height: 1.7;
}

.section-more {
  margin-top: 20px;
  font-size: 15px;
}

.link-more,
.text-link {
  display: inline-block;
  padding-bottom: 2px;
  color: #2F6F5E;
  font-weight: 600;
  border-bottom: 1px solid #D8D5CE;
}

.link-more:hover,
.text-link:hover {
  border-bottom-color: #2F6F5E;
}

/* 图片容器 */
.hero-figure,
.card-figure,
.section-media,
.media-figure,
.playlist-media,
.guide-figure {
  overflow: hidden;
  background-color: #EFEDE8;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.hero-figure img,
.card-figure img,
.section-media img,
.media-figure img,
.playlist-media img,
.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-figure figcaption,
.section-media figcaption,
.media-caption,
.guide-figure-caption {
  padding: 10px 14px;
  background-color: #FFFFFF;
  border-top: 1px solid #D8D5CE;
  color: #5A625E;
  font-size: 13px;
  line-height: 1.6;
}

/* 步骤清单 */
.step-list {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step-item {
  padding: 18px 20px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.step-item h3 {
  font-size: 18px;
  line-height: 1.5;
}

.step-item p {
  margin-top: 8px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.faq-question {
  padding: 16px 20px;
  color: #1F2421;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "＋";
  float: right;
  margin-left: 16px;
  color: #2F6F5E;
  font-weight: 600;
}

.faq-item[open] .faq-question::after {
  content: "－";
}

.faq-answer {
  padding: 0 20px 18px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.faq-answer p + p {
  margin-top: 10px;
}

/* 延伸入口链接组 */
.related-list,
.more-list {
  display: grid;
  gap: 10px;
}

.related-list a,
.more-list a {
  display: block;
  padding: 12px 16px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  color: #2F6F5E;
  font-size: 15px;
  line-height: 1.6;
}

.related-list a:hover,
.more-list a:hover {
  border-color: #2F6F5E;
}

/* 时间记录 */
.log-list {
  display: grid;
  gap: 14px;
}

.log-item {
  padding: 16px 18px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-left: 3px solid #8A5A2B;
  border-radius: 6px;
}

.log-time,
.log-date {
  display: inline-block;
  margin-right: 10px;
  color: #5A625E;
  font-size: 13px;
  line-height: 1.6;
}

.log-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
}

.log-tag-in,
.log-tag-add {
  background-color: #EAF1EE;
  color: #2F6F5E;
}

.log-tag-narrow {
  background-color: #F3EDE6;
  color: #8A5A2B;
}

.log-tag-widen {
  background-color: #EAF1EE;
  color: #2F6F5E;
}

.log-item p {
  margin-top: 8px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

/* ---------------------------------------------------------
   pages · 首页
   --------------------------------------------------------- */
.home-main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 40px;
  margin-bottom: 64px;
  padding-bottom: 40px;
  border-bottom: 1px solid #D8D5CE;
}

.hero-intro {
  min-width: 0;
}

.hero-eyebrow {
  color: #8A5A2B;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.hero-title {
  margin-top: 10px;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.35;
  color: #1F2421;
}

.hero-text {
  max-width: 620px;
  margin-top: 16px;
  color: #5A625E;
  font-size: 16px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-figure {
  margin-top: 28px;
}

.hero-figure img {
  aspect-ratio: 16 / 9;
}

.hero-table-wrap {
  min-width: 0;
  padding: 22px 22px 18px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.hero-table-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.hero-table {
  min-width: 520px;
}

.hero-table thead th {
  white-space: normal;
}

/* 题材频道方向总览 */
.channels-table {
  min-width: 720px;
}

/* 片单速览 */
.playlists-preview .playlist-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.playlist-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.playlist-card:hover {
  border-color: #2F6F5E;
}

.playlist-card .card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.playlist-card .card-figure {
  margin-top: 14px;
}

.playlist-card .card-figure img {
  aspect-ratio: 3 / 2;
}

.playlist-card .card-fields {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.playlist-card .card-fields dt {
  margin-top: 10px;
  color: #1F2421;
  font-weight: 600;
}

.playlist-card .card-fields dd {
  margin: 4px 0 0;
  color: #5A625E;
}

.playlist-card .card-link {
  margin-top: auto;
  padding-top: 16px;
  font-size: 15px;
}

.playlist-card .card-link a {
  font-weight: 600;
}

/* 字段与收录边界摘要 */
.fields-scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 32px;
}

.fields-col,
.scope-col {
  min-width: 0;
}

.col-title {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.scope-col > p {
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.scope-list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.scope-list li {
  position: relative;
  padding-left: 18px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.scope-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: #2F6F5E;
  border-radius: 50%;
}

.col-more {
  margin-top: 16px;
  font-size: 15px;
}

.col-more a {
  font-weight: 600;
}

/* 查阅路径三步概览 */
.guide-preview .step-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 站内页面索引 */
.index-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.index-col {
  min-width: 0;
  padding: 18px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.index-col-title {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.index-list li + li {
  margin-top: 8px;
}

.index-list a {
  display: block;
  padding: 6px 0;
  color: #2F6F5E;
  font-size: 15px;
  line-height: 1.6;
}

.index-list a:hover {
  color: #235546;
}

/* ---------------------------------------------------------
   pages · 内页通用模块
   --------------------------------------------------------- */

/* 频道比较维度 */
.dimension-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.dimension-item {
  min-width: 0;
  padding: 18px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.dimension-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.dimension-desc {
  margin-top: 8px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.section-dimension .section-media {
  margin-top: 24px;
}

.section-dimension .section-media img {
  aspect-ratio: 21 / 9;
}

/* 频道对照表 */
.channel-table {
  min-width: 760px;
}

/* 频道选择指南 */
.choose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.choose-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.choose-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.choose-desc {
  margin-top: 10px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.choose-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: auto;
  padding-top: 16px;
  font-size: 15px;
}

.choose-links a {
  font-weight: 600;
}

/* 片单目录 */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.playlist-grid .playlist-card {
  padding: 0;
  overflow: hidden;
}

.playlist-media {
  border: 0;
  border-bottom: 1px solid #D8D5CE;
  border-radius: 0;
}

.playlist-media img {
  aspect-ratio: 16 / 9;
}

.playlist-name {
  padding: 18px 20px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.playlist-meta {
  padding: 12px 20px 0;
  font-size: 14px;
  line-height: 1.7;
}

.playlist-meta dt {
  margin-top: 10px;
  color: #1F2421;
  font-weight: 600;
}

.playlist-meta dd {
  margin: 4px 0 0;
  color: #5A625E;
}

.playlist-card .text-link {
  margin: 16px 20px 20px;
  align-self: flex-start;
}

/* 字段页 */
.media-figure-wide img {
  aspect-ratio: 21 / 9;
}

.fields-table {
  min-width: 720px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 32px;
  margin-top: 20px;
}

.col {
  min-width: 0;
}

.col-main p + p {
  margin-top: 12px;
}

.col-main p {
  color: #5A625E;
  font-size: 16px;
  line-height: 1.75;
}

.subsection-title {
  margin-bottom: 14px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: #2F6F5E;
  font-weight: 600;
}

.section-reading-order .step-list {
  margin-top: 22px;
}

.step-index {
  display: inline-block;
  margin-bottom: 6px;
  color: #8A5A2B;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.step-text {
  margin-top: 8px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

/* 查阅路径页 */
.page-layout {
  width: 100%;
}

.guide-figure {
  margin-bottom: 40px;
}

.guide-figure img {
  aspect-ratio: 21 / 9;
}

.guide-steps,
.guide-scenes,
.guide-limits,
.guide-faq {
  margin-bottom: 48px;
}

.guide-steps .step-list {
  margin-top: 22px;
}

.guide-steps .step-name {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.guide-steps .step-body {
  margin-top: 8px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.guide-steps .step-basis {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #D8D5CE;
  color: #5A625E;
  font-size: 14px;
  line-height: 1.7;
}

.guide-steps .step-basis strong {
  color: #1F2421;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 22px;
}

.scene-card {
  min-width: 0;
  padding: 20px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.scene-name {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}

.scene-desc {
  margin-top: 10px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.scene-path {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #D8D5CE;
  display: grid;
  gap: 8px;
}

.scene-path li {
  position: relative;
  padding-left: 16px;
  color: #5A625E;
  font-size: 14px;
  line-height: 1.7;
}

.scene-path li::before {
  content: "→";
  position: absolute;
  top: 0;
  left: 0;
  color: #2F6F5E;
}

.limit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.limit-item {
  min-width: 0;
  padding: 18px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-left: 3px solid #8A5A2B;
  border-radius: 6px;
}

.limit-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.limit-body {
  margin-top: 8px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.related-links {
  margin-top: 8px;
  padding: 24px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.related-title {
  margin-bottom: 16px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.related-links .related-list {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 收录范围页 */
.criteria-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.criteria-column {
  min-width: 0;
  padding: 20px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.criteria-include {
  border-top: 3px solid #2F6F5E;
}

.criteria-exclude {
  border-top: 3px solid #8A5A2B;
}

.criteria-list {
  display: grid;
  gap: 10px;
}

.criteria-item {
  position: relative;
  padding-left: 18px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.criteria-item::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 6px;
  height: 6px;
  background-color: #D8D5CE;
  border-radius: 50%;
}

.criteria-include .criteria-item::before {
  background-color: #2F6F5E;
}

.criteria-exclude .criteria-item::before {
  background-color: #8A5A2B;
}

.exclude-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.exclude-item {
  min-width: 0;
  padding: 18px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.exclude-name {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.exclude-desc {
  margin-top: 8px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.related-aside {
  margin-top: 8px;
  padding: 24px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.aside-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.aside-lead {
  margin: 10px 0 16px;
  color: #5A625E;
  font-size: 15px;
  line-height: 1.75;
}

.related-aside .related-list {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 内页延伸入口（通用） */
.section-related {
  margin-top: 8px;
  padding: 24px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 8px;
}

.section-related .related-list {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* 404 页 */
.error-main {
  display: flex;
  justify-content: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 96px;
}

.error-block {
  max-width: 720px;
  text-align: center;
}

.error-code {
  color: #8A5A2B;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.error-block h1 {
  margin-top: 12px;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
}

.error-text {
  margin-top: 14px;
  color: #5A625E;
  font-size: 16px;
  line-height: 1.75;
}

.error-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 32px;
  text-align: left;
}

.error-list a {
  display: block;
  padding: 14px 16px;
  background-color: #FFFFFF;
  border: 1px solid #D8D5CE;
  border-radius: 6px;
  color: #2F6F5E;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.error-list a:hover {
  border-color: #2F6F5E;
}

.error-action {
  margin-top: 28px;
}

.error-home {
  display: inline-block;
  padding: 11px 24px;
  background-color: #2F6F5E;
  border: 1px solid #2F6F5E;
  border-radius: 6px;
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.error-home:hover {
  background-color: #235546;
  border-color: #235546;
  color: #FFFFFF;
}

/* ---------------------------------------------------------
   responsive · 断点 960px / 640px
   --------------------------------------------------------- */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
    justify-content: flex-start;
  }

  .nav-list {
    gap: 4px 18px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-title {
    font-size: 30px;
  }

  .playlists-preview .playlist-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fields-scope-grid,
  .two-col,
  .criteria-columns {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-preview .step-list,
  .choose-grid,
  .scene-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .index-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    padding: 12px 16px;
  }

  .brand {
    font-size: 18px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    flex: 1 1 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 4px;
    border-top: 1px solid #D8D5CE;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 2px;
    border-bottom: 1px solid #F0EEE9;
  }

  .nav-link.is-current {
    border-bottom-color: #2F6F5E;
  }

  .header-note {
    padding: 0 16px 10px;
    font-size: 12px;
  }

  .inner-main,
  .home-main {
    padding: 24px 16px 48px;
  }

  .page-title,
  .error-block h1 {
    font-size: 24px;
  }

  .page-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
  }

  .hero {
    gap: 24px;
    margin-bottom: 48px;
    padding-bottom: 32px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-cta {
    gap: 10px;
  }

  .btn-primary,
  .btn-ghost {
    flex: 1 1 auto;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .section {
    margin-bottom: 44px;
  }

  .section-title {
    font-size: 20px;
  }

  .playlists-preview .playlist-cards,
  .guide-preview .step-list,
  .choose-grid,
  .scene-grid,
  .index-columns,
  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-table-wrap,
  .col,
  .fields-col,
  .scope-col,
  .criteria-column,
  .related-links,
  .related-aside,
  .section-related {
    padding: 18px;
  }

  .footer-inner {
    padding: 28px 16px 24px;
  }

  .footer-back {
    font-size: 14px;
  }

  .error-main {
    padding: 48px 16px 64px;
  }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  a,
  .btn-primary,
  .btn-ghost {
    transition: none;
  }
}
