/* =========================================================
   91麻豆天美蜜桃 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. base —— 变量、重置、排版基调
   --------------------------------------------------------- */
:root {
  --paper: #F6F1E7;
  --paper-deep: #EFE8DA;
  --ink: #1F3A34;
  --ink-body: #2B2B28;
  --amber: #D9A05B;
  --teal: #5C8B84;
  --line: #E2D8C8;
  --wood: #8A5A3B;
  --muted: #6E6A61;
  --radius: 4px;
  --container: 1120px;
  --text-col: 720px;
  --serif: "Noto Serif SC", "Songti SC", "Source Han Serif SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  text-align: left;
}

h1 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.35;
  letter-spacing: 0.2px;
}

h2 {
  font-size: 22px;
  line-height: 1.45;
}

h3 {
  font-size: 17px;
  line-height: 1.5;
}

p {
  margin: 0 0 16px;
}

ul,
ol {
  margin: 0 0 16px;
  padding-left: 1.25em;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

strong {
  font-weight: 600;
  color: var(--ink);
}

button {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 60;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--paper);
  text-decoration: none;
}

/* ---------------------------------------------------------
   2. layout —— 页头、主容器、内页骨架、页脚
   --------------------------------------------------------- */

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--ink-body);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
  border-bottom-color: var(--line);
}

.site-nav a.is-current {
  color: var(--teal);
  border-bottom-color: var(--teal);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  position: relative;
}

.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle::before {
  top: 16px;
  box-shadow: 0 6px 0 var(--ink);
}

.menu-toggle::after {
  bottom: 16px;
}

.menu-toggle[aria-expanded="true"]::before {
  top: 21px;
  box-shadow: none;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"]::after {
  bottom: 21px;
  transform: rotate(-45deg);
}

/* 主容器 */
.site-main {
  display: block;
}

.home-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--muted);
}

/* 页面标题区 */
.page-header {
  padding-bottom: 22px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.2px;
  color: var(--ink);
  margin: 0;
}

.eyebrow,
.section-label,
.section-tag,
.period-mark {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--wood);
}

.page-head {
  margin-bottom: 36px;
}

.page-lead {
  max-width: var(--text-col);
  font-size: 16px;
  color: var(--ink-body);
}

/* 页脚 */
.site-footer {
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 32px 40px;
  align-items: start;
}

.footer-logo {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.footer-slogan {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-nav h2,
.footer-genres h2 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ink);
}

.footer-nav ul,
.footer-genres ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav li,
.footer-genres li {
  margin: 0 0 6px;
}

.footer-nav a,
.footer-genres a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--ink-body);
}

.footer-nav a:hover,
.footer-genres a:hover {
  color: var(--teal);
}

.footer-note p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-note .footer-copy {
  margin: 0;
  color: var(--muted);
}

/* ---------------------------------------------------------
   3. components —— 按钮、区块标题、条目行、卡片、FAQ 等
   --------------------------------------------------------- */

/* 按钮 */
.btn-primary,
.btn-ghost {
  display: inline-block;
  padding: 11px 20px;
  font-size: 15px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  min-height: 44px;
  line-height: 1.4;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #162C27;
  color: var(--paper);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* 区块通用标题与导语 */
.section-lead,
.section-summary,
.section-intro {
  max-width: var(--text-col);
  margin: 8px 0 24px;
  color: var(--ink-body);
}

.home-main section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.home-main section:last-of-type {
  border-bottom: 0;
}

.home-main h2 {
  margin-bottom: 4px;
}

/* 首页：归档期首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
}

.hero-text {
  min-width: 0;
}

.hero-lead {
  max-width: 520px;
  margin: 18px 0 26px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-body);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* 首页：历史归档跳转条 */
.archive-nodes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.archive-node {
  margin: 0;
  padding: 16px 16px 16px 0;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.archive-node:last-child {
  border-right: 0;
}

.archive-node a {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  padding: 4px 0;
}

.archive-node.is-current {
  border-left: 3px solid var(--amber);
  padding-left: 14px;
}

.archive-node.is-current a {
  font-weight: 600;
  color: var(--wood);
}

.node-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* 首页：题材筛选条 */
.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.filter-tags li {
  margin: 0;
}

.filter-tags .tag {
  display: inline-block;
  padding: 8px 16px;
  min-height: 44px;
  line-height: 28px;
  font-size: 14px;
  color: var(--ink-body);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-tags .tag:hover {
  border-color: var(--teal);
  color: var(--ink);
  text-decoration: none;
}

.filter-tags .tag.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #FFFFFF;
}

.filter-tags .tag.is-active:hover {
  color: #FFFFFF;
}

.filter-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* 首页：统一字段条目行列表 */
.entries {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.entry-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 108px 132px 88px;
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.entry-row .entry-genre {
  font-size: 13px;
  color: var(--wood);
  letter-spacing: 0.5px;
  padding-top: 2px;
}

.entry-main {
  min-width: 0;
}

.entry-title {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.entry-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.entry-row .entry-period {
  font-size: 13px;
  color: var(--muted);
  padding-top: 2px;
}

.entry-row .entry-topic {
  font-size: 13px;
  color: var(--ink-body);
  padding-top: 2px;
}

.entry-link {
  font-size: 14px;
  color: var(--teal);
  padding-top: 2px;
  white-space: nowrap;
}

.entry-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

/* 首页：专题拆解摘要 */
.topic-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.topic-card {
  min-width: 0;
  padding: 20px;
  background: var(--paper-deep);
  border-radius: var(--radius);
  border-top: 3px solid var(--amber);
}

.topic-card h3 {
  margin-bottom: 10px;
}

.topic-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.topic-card a {
  font-size: 14px;
  color: var(--teal);
}

/* 首页：观看准备三步 */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  min-width: 0;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--amber);
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.step a {
  font-size: 14px;
  color: var(--teal);
}

/* 首页：收录口径双栏 */
.scope-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.scope-col {
  min-width: 0;
}

.scope-col h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.scope-col ul {
  margin: 0;
  padding-left: 1.15em;
}

.scope-col li {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.scope-in h3 {
  border-bottom-color: var(--teal);
}

.scope-out h3 {
  border-bottom-color: var(--amber);
}

/* FAQ 折叠项（首页与帮助页共用） */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 0;
  min-height: 44px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "＋";
  margin-left: auto;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--teal);
}

.faq-item[open] summary::after {
  content: "－";
}

.faq-item summary:hover {
  color: var(--teal);
}

.faq-item > p,
.faq-item .faq-answer {
  padding: 0 0 16px;
  max-width: var(--text-col);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-body);
}

.faq-no {
  flex: none;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--amber);
}

/* 首页：反馈引导条 */
.feedback-cta {
  padding: 36px 0 8px;
}

.feedback-cta p {
  max-width: var(--text-col);
}

/* 首页：相关内容导航 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
}

.related-links-label {
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--wood);
}

.related-links-item {
  font-size: 14px;
  color: var(--teal);
}

/* ---------------------------------------------------------
   4. pages —— 各内页专属模块
   --------------------------------------------------------- */

/* 双栏骨架：主内容在前，侧栏在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

.page-content,
.content-main {
  min-width: 0;
}

.page-aside,
.content-aside {
  min-width: 0;
}

.aside-box {
  padding: 20px;
  background: var(--paper-deep);
  border-radius: var(--radius);
  margin-bottom: 24px;
}

.aside-box h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.aside-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.rule-list,
.aside-link-list {
  margin: 0;
  padding-left: 1.1em;
}

.rule-list li,
.aside-link-list li {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}

/* 归档期页 */
.section {
  margin-bottom: 48px;
}

.archive-basis {
  max-width: var(--text-col);
}

.basis-list {
  margin: 0;
  padding-left: 1.15em;
}

.basis-list li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.archive-group {
  padding-top: 8px;
}

.group-head {
  margin-bottom: 16px;
}

.group-head h2 {
  margin-bottom: 6px;
}

.group-head p {
  max-width: var(--text-col);
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.archive-current .group-head h2 {
  padding-left: 12px;
  border-left: 3px solid var(--amber);
}

.archive-group .entry-list,
.entry-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.entry-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) 96px 120px 84px;
  gap: 16px;
  align-items: start;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.entry-item .entry-genre {
  font-size: 13px;
  color: var(--wood);
  letter-spacing: 0.5px;
}

.entry-body {
  min-width: 0;
}

.entry-body h3 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.entry-body h3 a {
  color: var(--ink);
}

.entry-body h3 a:hover {
  color: var(--teal);
}

.entry-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.entry-item .entry-period {
  font-size: 13px;
  color: var(--muted);
}

.entry-item .entry-topic {
  font-size: 13px;
  color: var(--ink-body);
}

.media-figure {
  margin: 0 0 48px;
}

.media-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.reading-path {
  max-width: 100%;
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.path-step {
  min-width: 0;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.step-index {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1;
  color: var(--amber);
}

.path-step h3 {
  margin-bottom: 8px;
}

.path-step p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.next-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.next-links li {
  margin: 0;
}

.next-links a {
  font-size: 14px;
  color: var(--teal);
}

.next-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.next-list li {
  margin: 0;
}

.next-list a {
  font-size: 14px;
  color: var(--teal);
}

/* 题材索引页 */
.page-hero {
  margin-bottom: 32px;
}

.genre-compare {
  margin-bottom: 48px;
}

.genre-visual {
  margin: 0 0 28px;
}

.genre-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.genre-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.genre-block-head {
  margin-bottom: 12px;
}

.genre-block-head h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.genre-definition {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.genre-body p {
  font-size: 15px;
  line-height: 1.8;
}

.genre-structure {
  margin: 0;
  padding-left: 1.15em;
}

.genre-structure li {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 8px;
}

.genre-cross {
  margin-bottom: 32px;
}

.genre-cross-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.cross-column {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-deep);
  border-radius: var(--radius);
}

.cross-column h3 {
  margin-bottom: 10px;
}

.cross-column ul {
  margin: 0;
  padding-left: 1.1em;
}

.cross-column li {
  font-size: 14px;
  line-height: 1.7;
}

/* 专题拆解页 */
.article-body {
  min-width: 0;
  max-width: var(--text-col);
}

.narrative-block {
  margin-bottom: 40px;
}

.narrative-block h2 {
  margin-bottom: 14px;
}

.narrative-block p {
  font-size: 16px;
  line-height: 1.85;
}

.article-figure {
  margin: 0 0 40px;
}

.article-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.segment-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.segment-list li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.7;
}

.segment-no {
  flex: none;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--amber);
}

.reading-list {
  margin-bottom: 40px;
  padding-top: 8px;
}

.reading-list h2 {
  margin-bottom: 8px;
}

.reading-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.reading-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  align-items: baseline;
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.reading-list a {
  font-size: 15px;
  color: var(--teal);
}

.reading-list span {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.adjacent-topics {
  margin-bottom: 24px;
}

.adjacent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.adjacent-item {
  min-width: 0;
  padding: 18px 20px;
  background: var(--paper-deep);
  border-radius: var(--radius);
  border-left: 3px solid var(--teal);
}

.adjacent-item h3 {
  margin-bottom: 8px;
}

.adjacent-item p {
  font-size: 14px;
  line-height: 1.7;
}

.adjacent-item a {
  font-size: 14px;
  color: var(--teal);
}

/* 观看准备页 */
.page-title-block {
  margin-bottom: 36px;
}

.setup-checklist,
.setup-display,
.setup-scenes,
.setup-next {
  margin-bottom: 48px;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  border-top: 1px solid var(--line);
}

.check-list li {
  min-width: 0;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.check-list h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.check-list p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.setup-figure {
  margin: 0 0 28px;
}

.setup-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.display-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.display-note {
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.display-note h3 {
  margin-bottom: 8px;
}

.display-note p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.scene-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.scene-column {
  min-width: 0;
  padding: 20px;
  background: var(--paper-deep);
  border-radius: var(--radius);
}

.scene-column h3 {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.scene-column ul {
  margin: 0;
  padding-left: 1.15em;
}

.scene-column li {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 10px;
}

.scene-footnote {
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* 使用帮助页 */
.faq-group {
  margin-bottom: 40px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.faq-group h2 {
  margin-bottom: 6px;
}

.faq-answer p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.8;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.help-guide {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--paper-deep);
  border-radius: var(--radius);
}

.help-guide h2 {
  margin-bottom: 10px;
}

.help-guide p {
  max-width: var(--text-col);
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-links li {
  margin: 0;
}

.guide-links a {
  font-size: 15px;
  color: var(--teal);
}

/* 内容反馈页 */
.feedback-types {
  margin-bottom: 40px;
}

.feedback-type {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.feedback-type h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.feedback-type p {
  font-size: 15px;
  line-height: 1.8;
}

.feedback-example {
  margin: 0;
  padding: 10px 14px;
  background: var(--paper-deep);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.scene-figure {
  margin: 0 0 40px;
}

.scene-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.feedback-process {
  margin-bottom: 40px;
}

.process-steps {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.step-no {
  grid-row: span 2;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.3;
  color: var(--amber);
}

.process-steps h3 {
  margin: 0;
  font-size: 16px;
}

.process-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-body);
}

.process-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
}

.process-links a {
  font-size: 14px;
  color: var(--teal);
}

.feedback-scope {
  margin-bottom: 24px;
}

.scope-list {
  margin: 0;
  padding-left: 1.15em;
}

.scope-list li {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.7;
}

.box-mark {
  flex: none;
  width: 14px;
  height: 14px;
  border: 1px solid var(--teal);
  border-radius: 2px;
  transform: translateY(2px);
}

.aside-note p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.aside-note p:last-child {
  margin-bottom: 0;
}

/* 404 页 */
.error-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px 24px 88px;
}

.error-inner {
  max-width: 640px;
}

.error-lead {
  margin: 18px 0 26px;
  font-size: 16px;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.error-paths {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.error-paths h2 {
  font-size: 18px;
  margin-bottom: 14px;
}

.error-paths ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.error-paths li {
  margin: 0;
}

.error-paths a {
  font-size: 15px;
  color: var(--teal);
}

.error-note {
  margin: 28px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------------------------------------------------------
   5. responsive —— 1024px 与 720px 断点
   --------------------------------------------------------- */
@media (max-width: 1024px) {
  .header-inner {
    min-height: 62px;
  }

  .hero {
    gap: 32px;
    padding: 40px 0 36px;
  }

  .archive-nodes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .archive-node:nth-child(3n) {
    border-right: 0;
  }

  .archive-node {
    padding: 14px 14px 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .archive-node.is-current {
    padding-left: 12px;
  }

  .entry-row {
    grid-template-columns: 84px minmax(0, 1fr) 96px 84px;
  }

  .entry-row .entry-topic {
    display: none;
  }

  .entry-item {
    grid-template-columns: 76px minmax(0, 1fr) 88px 84px;
  }

  .entry-item .entry-topic {
    display: none;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 40px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-note {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 58px;
    flex-wrap: wrap;
    row-gap: 0;
  }

  .brand {
    font-size: 17px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: block;
    order: 3;
    width: 100%;
    margin: 0 -16px;
    padding: 0 16px;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 12px;
    border-top: 1px solid var(--line);
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav li {
    width: 100%;
    border-bottom: 1px solid var(--line);
  }

  .site-nav li:last-child {
    border-bottom: 0;
  }

  .site-nav a {
    padding: 13px 4px;
    min-height: 44px;
    font-size: 15px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .site-nav a.is-current {
    border-bottom: 0;
    border-left-color: var(--teal);
    padding-left: 12px;
  }

  .home-main,
  .inner-main {
    padding: 20px 16px 56px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 28px 0 32px;
  }

  .hero-lead {
    margin: 14px 0 22px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    text-align: center;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .home-main section {
    padding: 32px 0;
  }

  .archive-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-node:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .archive-node:nth-child(2n) {
    border-right: 0;
  }

  .entry-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .entry-row .entry-genre {
    padding-top: 0;
  }

  .entry-row .entry-period,
  .entry-row .entry-topic {
    padding-top: 0;
    font-size: 13px;
  }

  .entry-link {
    padding-top: 4px;
    white-space: normal;
  }

  .topic-columns,
  .steps,
  .scope-columns,
  .path-steps,
  .display-notes,
  .scene-columns,
  .genre-cross-columns,
  .adjacent-grid,
  .check-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .check-list {
    gap: 0;
  }

  .entry-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 16px 0;
  }

  .entry-item .entry-topic {
    display: block;
  }

  .entry-link {
    font-size: 14px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .page-header {
    padding-bottom: 16px;
    margin-bottom: 24px;
  }

  .page-hero {
    margin-bottom: 24px;
  }

  .section,
  .genre-compare,
  .genre-cross,
  .narrative-block,
  .reading-list,
  .adjacent-topics,
  .setup-checklist,
  .setup-display,
  .setup-scenes,
  .setup-next,
  .feedback-types,
  .feedback-process,
  .feedback-scope,
  .faq-group {
    margin-bottom: 32px;
  }

  .article-body {
    max-width: 100%;
  }

  .reading-list li {
    flex-direction: column;
    gap: 4px;
  }

  .process-steps li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 2px 10px;
  }

  .step-no {
    font-size: 19px;
  }

  .media-figure img,
  .genre-visual img,
  .setup-figure img,
  .scene-figure img,
  .article-figure img {
    aspect-ratio: 16 / 10;
  }

  .error-main {
    padding: 48px 16px 64px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 32px;
  }

  .error-actions .btn-primary,
  .error-actions .btn-ghost {
    text-align: center;
  }

  .error-paths ul {
    flex-direction: column;
    gap: 4px;
  }

  .error-paths a {
    display: inline-block;
    padding: 8px 0;
    min-height: 44px;
    line-height: 28px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 0 16px;
  }

  .footer-note {
    grid-column: auto;
    padding-top: 16px;
  }

  .footer-nav a,
  .footer-genres a {
    padding: 8px 0;
    min-height: 40px;
  }

  .site-footer {
    padding: 36px 0 28px;
  }

  .related-links,
  .next-links,
  .next-list,
  .guide-links,
  .process-links {
    gap: 8px 16px;
  }

  .related-links-item,
  .next-links a,
  .next-list a,
  .guide-links a,
  .process-links a {
    display: inline-block;
    padding: 6px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
