/* ============================================================
   红苹果短剧 · 全站样式表
   视觉方向：文化影像档案风
   ============================================================ */

/* ============================================================
   1. Base —— 变量 / 重置 / 全局基础
   ============================================================ */

:root {
  --wall: #f7f3ea;
  --apple-red: #a8322d;
  --deep-teal: #1f3a3d;
  --ink: #201a18;
  --muted: #8a7d70;
  --paper: #ffffff;
  --line: #e2dbcf;
  --line-strong: #cfc4b4;

  --font-serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --content-wide: 960px;
  --sidebar-w: 280px;

  --radius-sm: 4px;
  --radius-md: 8px;

  --shadow-soft: 0 4px 16px rgba(32, 26, 24, 0.06);
  --shadow-lift: 0 8px 24px rgba(32, 26, 24, 0.1);

  --header-h: 72px;
  --space-section: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--wall);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--apple-red);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--deep-teal);
}

ul,
ol {
  list-style: none;
}

figure {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  line-height: 1.35;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--apple-red);
  outline-offset: 2px;
}

/* 通用文本链接（带箭头） */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--apple-red);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.text-link::after {
  content: "→";
  font-weight: 400;
  transition: transform 0.2s ease;
}

.text-link:hover {
  color: var(--deep-teal);
  border-bottom-color: var(--deep-teal);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   2. Layout —— 页头 / 页脚 / 主容器 / 面包屑 / 页面标题
   ============================================================ */

/* ---------- 站点页头 ---------- */

.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--apple-red);
  letter-spacing: 1px;
}

.brand-tagline {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* 导航 */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list li a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list li a:hover {
  color: var(--apple-red);
  background-color: rgba(168, 50, 45, 0.06);
}

.nav-list li a.is-current {
  background-color: var(--deep-teal);
  color: #fff;
}

/* 移动端导航按钮（默认隐藏） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ---------- 站点页脚 ---------- */

.site-footer {
  background-color: var(--deep-teal);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.64);
  max-width: 380px;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links li a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 20px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.copyright,
.footer-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}

/* ---------- 主容器 ---------- */

.site-main {
  min-height: 60vh;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 36px 24px 64px;
}

/* ---------- 面包屑 ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--apple-red);
}

.breadcrumb a:hover {
  color: var(--deep-teal);
}

.breadcrumb-sep {
  color: var(--muted);
  opacity: 0.6;
}

.breadcrumb-current {
  color: var(--muted);
}

/* ---------- 页面标题区（内页共用） ---------- */

.page-header {
  margin-bottom: 44px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.page-description {
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.8;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-intro,
.section-note {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* 首页与内页通用 section-head */
.section-head {
  margin-bottom: 28px;
}

.section-head .section-title {
  margin-bottom: 8px;
}

.section-head .section-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  max-width: 640px;
}

/* ============================================================
   3. Components —— 通用组件
   ============================================================ */

/* ---------- 文本链接行（首页入口细带） ---------- */

.entry-strip-section {
  background-color: transparent;
}

.entry-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.entry-item {
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}

.entry-item:last-child {
  border-right: none;
}

.entry-title {
  font-size: 18px;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}

.entry-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

/* ---------- 频道目录行（首页与频道指南共用基类） ---------- */

.channel-item {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.channel-item:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

/* 首页频道导读 */
.channel-guide-section .channel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.channel-guide-section .channel-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.channel-no {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-teal);
  min-width: 48px;
  text-align: center;
  padding-right: 20px;
  border-right: 1px solid var(--line);
}

.channel-info {
  flex: 1;
}

.channel-name {
  font-size: 18px;
  font-family: var(--font-serif);
  margin-bottom: 4px;
}

.channel-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.channel-link {
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
  color: var(--apple-red);
}

.channel-link::after {
  content: "→";
  margin-left: 4px;
}

.channel-link:hover {
  color: var(--deep-teal);
}

/* 频道指南页频道列表 */
.channel-list-section .channel-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.channel-list-section .channel-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 24px 28px;
}

.channel-number {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--apple-red);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding-right: 24px;
}

.channel-body h3 {
  font-size: 20px;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}

.channel-body > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.channel-tags span {
  font-size: 13px;
  color: var(--deep-teal);
  background-color: rgba(31, 58, 61, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ---------- 步骤窄带（首页观前） ---------- */

.step-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.25s ease;
}

.step-card:hover {
  box-shadow: var(--shadow-soft);
}

.step-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background-color: var(--deep-teal);
  padding: 2px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.step-title {
  font-size: 18px;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.step-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-red);
}

.step-link::after {
  content: "→";
  margin-left: 4px;
}

.step-link:hover {
  color: var(--deep-teal);
}

/* ---------- 题材标签带（首页） ---------- */

.genre-tag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.genre-tag-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.genre-tag-item:last-child {
  border-bottom: none;
}

.genre-tag-name {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--deep-teal);
  min-width: 68px;
}

.genre-tag-note {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 归档步骤（首页与专区页共用） ---------- */

.archive-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.archive-step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.archive-step-item .step-label {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--apple-red);
  background-color: rgba(168, 50, 45, 0.08);
  padding: 2px 12px;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 4px;
}

.archive-step-item .step-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
}

/* ---------- 图文容器通用 ---------- */

.archive-figure,
.genre-figure,
.hero-figure,
.scene-figure,
.check-figure,
.glossary-hero-figure,
.qa-media-figure,
.intro-figure,
.archive-figure,
.process-figure {
  margin: 0;
}

.archive-figure img,
.genre-figure img,
.hero-figure img,
.scene-figure img,
.check-figure img,
.glossary-hero-figure img,
.qa-media-figure img,
.intro-figure img,
.archive-figure img,
.process-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0 0;
  line-height: 1.6;
  font-style: normal;
}

/* ============================================================
   4. Home —— 首页专属样式
   ============================================================ */

.home-main {
  overflow: hidden;
}

.home-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px;
}

/* ---------- 首屏主视觉 ---------- */

.hero-section {
  background-color: var(--wall);
  padding: 64px 24px 48px;
}

.hero-content {
  max-width: var(--content-wide);
  margin: 0 auto 36px;
  text-align: center;
}

.hero-title {
  font-size: 44px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.3;
}

.hero-lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-figure {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.hero-figure figcaption {
  text-align: center;
  margin-top: 10px;
}

/* ---------- 首页题材预告区 ---------- */

.genre-preview-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.genre-column .section-head {
  margin-bottom: 20px;
}

.genre-column .text-link {
  margin-top: 20px;
}

.genre-entry {
  display: flex;
  flex-direction: column;
}

.genre-figure img {
  aspect-ratio: 4 / 3;
}

.genre-entry-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 12px;
}

/* ---------- 首页专区归档引子 ---------- */

.archive-preview-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.archive-content .section-head {
  margin-bottom: 20px;
}

.archive-content .text-link {
  margin-top: 20px;
}

.archive-figure img {
  aspect-ratio: 4 / 3;
}

/* ---------- 首页折叠问答条 ---------- */

.faq-item {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--apple-red);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-content {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* ============================================================
   5. Inner Pages —— 内页通用骨架与业务模块
   ============================================================ */

/* ---------- 频道指南 pindao ---------- */

.channel-list-section h2,
.scene-gallery-section h2,
.watch-tip-section h2 {
  font-size: 26px;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}

.scene-gallery-section {
  margin-top: 48px;
}

.scene-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.scene-figure {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 8px 8px 14px;
}

.scene-figure img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.scene-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 4px 0;
  text-align: center;
}

.watch-tip-section {
  margin-top: 48px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px;
}

.watch-tip-section p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
}

.tip-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tip-link {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background-color: var(--deep-teal);
  color: #fff;
  transition: background-color 0.2s ease;
}

.tip-link:hover {
  background-color: var(--apple-red);
  color: #fff;
}

/* ---------- 题材索引 ticai ---------- */

.intro-section p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 760px;
}

.tag-strip-section {
  margin-top: 32px;
}

.topic-tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.topic-tag {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
  background-color: var(--paper);
  border: 1px solid var(--line-strong);
  color: var(--deep-teal);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.topic-tag:hover {
  background-color: var(--deep-teal);
  color: #fff;
  border-color: var(--deep-teal);
}

.topic-entry-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.topic-entry-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.topic-entry-card:nth-child(even) {
  direction: rtl;
}

.topic-entry-card:nth-child(even) > * {
  direction: ltr;
}

.topic-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.topic-name {
  font-size: 22px;
  font-family: var(--font-serif);
  margin-bottom: 10px;
}

.topic-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.topic-points {
  list-style: none;
}

.topic-points li {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
  padding-left: 18px;
  position: relative;
}

.topic-points li::before {
  content: "·";
  color: var(--apple-red);
  font-weight: 700;
  position: absolute;
  left: 4px;
}

.related-tips-section {
  margin-top: 48px;
}

.tip-link-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.tip-item {
  font-size: 15px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
}

.tip-item a {
  font-weight: 600;
}

/* ---------- 观前检查 guanqian ---------- */

.layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: 40px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.check-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  margin-bottom: 36px;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.step-number {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--apple-red);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
}

.step-title {
  font-size: 20px;
  font-family: var(--font-serif);
  margin-bottom: 6px;
}

.step-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.step-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 10px;
}

.step-tip {
  font-size: 14px;
  color: var(--muted);
  background-color: rgba(168, 50, 45, 0.05);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  display: inline-block;
}

.step-tip a {
  font-weight: 600;
}

.check-figure {
  margin-top: 20px;
}

.check-figure img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

/* 侧栏 */
.sidebar {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.side-block {
  margin-bottom: 24px;
}

.side-block:last-child {
  margin-bottom: 0;
}

.side-title {
  font-size: 16px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--deep-teal);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-list li {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.check-list li::before {
  content: "□";
  color: var(--apple-red);
  font-size: 13px;
  position: absolute;
  left: 0;
  top: 1px;
}

.material-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.material-list li {
  font-size: 13px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.material-list li::before {
  content: "—";
  color: var(--apple-red);
  position: absolute;
  left: 0;
}

.side-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

.side-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-red);
}

.side-link:hover {
  color: var(--deep-teal);
}

/* 相关栏目 */
.related-links {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-item {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}

.related-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.related-item a {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-serif);
}

/* ---------- 专区归档 zhuanqu ---------- */

.archive-intro {
  margin-bottom: 48px;
}

.archive-intro p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 12px;
  max-width: 760px;
}

.archive-intro .archive-steps {
  margin-top: 20px;
}

.archive-intro .archive-step-item {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}

.archive-example {
  margin-bottom: 48px;
}

.archive-example-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}

.archive-media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.archive-caption h3 {
  font-size: 20px;
  font-family: var(--font-serif);
  margin-bottom: 16px;
}

.archive-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meta-row {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.meta-row dt {
  color: var(--muted);
  min-width: 64px;
  flex-shrink: 0;
}

.meta-row dd {
  color: var(--ink);
  line-height: 1.6;
}

.archive-process {
  margin-bottom: 48px;
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.process-media img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.process-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

.process-links {
  margin-top: 16px;
}

.process-links li {
  margin-bottom: 6px;
}

.process-links a {
  font-weight: 600;
}

.archive-nav {
  margin-top: 48px;
  background-color: var(--deep-teal);
  border-radius: var(--radius-md);
  padding: 28px 32px;
}

.archive-nav-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.archive-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.archive-nav-list a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.archive-nav-list a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ---------- 短剧词语 ciyu ---------- */

.glossary-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.glossary-hero-figure img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.glossary-hero-text p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}

.glossary-group {
  margin-bottom: 44px;
}

.section-heading-wrap {
  margin-bottom: 20px;
}

.glossary-group-title {
  font-size: 22px;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--deep-teal);
  margin-bottom: 6px;
}

.glossary-group-desc {
  font-size: 14px;
  color: var(--muted);
}

.glossary-list {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.glossary-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line);
}

.glossary-item:last-child {
  border-bottom: none;
}

.glossary-term {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--apple-red);
  padding: 16px 20px;
  background-color: rgba(168, 50, 45, 0.03);
  border-right: 1px solid var(--line);
}

.glossary-def {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.7;
  padding: 16px 20px;
}

.glossary-relation {
  margin-bottom: 44px;
}

.relation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.relation-item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
}

.relation-label {
  font-size: 13px;
  color: var(--muted);
  min-width: 80px;
}

.relation-link {
  font-weight: 600;
}

.related-reading {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
}

.related-reading-title {
  font-size: 20px;
  font-family: var(--font-serif);
  margin-bottom: 20px;
}

.related-links-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-link-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.related-link-card:hover {
  border-color: var(--apple-red);
  box-shadow: var(--shadow-soft);
}

.related-link-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 4px;
}

.related-link-card span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 问答中心 wenda ---------- */

.qa-intro-media {
  margin-bottom: 32px;
}

.qa-media-figure img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.page-layout.wenda-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-w);
  gap: 40px;
  align-items: start;
}

.content-primary {
  min-width: 0;
}

.faq-section {
  margin-bottom: 40px;
}

.faq-section h2,
.low-frequency-guide h2 {
  font-size: 24px;
  font-family: var(--font-serif);
  margin-bottom: 8px;
}

.faq-list {
  margin-top: 20px;
}

.faq-content p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.8;
  margin-bottom: 10px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.low-frequency-guide {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.low-frequency-guide p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 8px;
}

.guide-link {
  margin-top: 12px;
}

.guide-link a {
  font-weight: 600;
}

.content-side {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.side-nav-block {
  margin-bottom: 28px;
}

.side-nav-block h2 {
  font-size: 16px;
  font-family: var(--font-serif);
  color: var(--deep-teal);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.side-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav-list a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line);
}

.side-nav-list a:hover {
  color: var(--apple-red);
  padding-left: 6px;
}

.side-tip-block h2 {
  font-size: 16px;
  font-family: var(--font-serif);
  color: var(--deep-teal);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.side-tip-block p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ---------- 使用边界 bianjie ---------- */

.page-intro-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 48px;
}

.intro-figure img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.intro-copy p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 10px;
}

.boundary-section {
  margin-bottom: 48px;
}

.boundary-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.boundary-col {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px 28px;
}

.boundary-col-title {
  font-size: 18px;
  font-family: var(--font-serif);
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.boundary-col:first-child .boundary-col-title {
  color: var(--deep-teal);
}

.boundary-col:last-child .boundary-col-title {
  color: var(--apple-red);
}

.boundary-list li {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.8;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.boundary-col:first-child .boundary-list li::before {
  content: "✓";
  color: var(--deep-teal);
  font-size: 13px;
  position: absolute;
  left: 0;
}

.boundary-col:last-child .boundary-list li::before {
  content: "×";
  color: var(--apple-red);
  font-size: 14px;
  font-weight: 700;
  position: absolute;
  left: 0;
}

.principle-section {
  margin-bottom: 48px;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
}

.principle-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background-color: var(--paper);
  border-left: 3px solid var(--deep-teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 20px;
  font-size: 15px;
  line-height: 1.7;
}

.principle-index {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--apple-red);
  min-width: 24px;
}

.principle-tip {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}

.principle-tip a {
  font-weight: 600;
}

.feedback-section {
  margin-bottom: 48px;
}

.feedback-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feedback-card {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}

.feedback-card-title {
  font-size: 18px;
  font-family: var(--font-serif);
  margin-bottom: 10px;
}

.feedback-card-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.feedback-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}

.help-nav-section {
  margin-bottom: 24px;
}

.help-nav-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.help-nav-item {
  display: block;
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.help-nav-item:hover {
  border-color: var(--apple-red);
  box-shadow: var(--shadow-soft);
}

.help-nav-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.help-nav-desc {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- 404 ---------- */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 24px;
}

.error-panel {
  background-color: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 56px 48px;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 700;
  color: var(--apple-red);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 16px;
  color: var(--ink);
  margin-bottom: 8px;
}

.error-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 24px;
}

.error-back {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--deep-teal);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 24px;
}

.error-back:hover {
  background-color: var(--apple-red);
  color: #fff;
}

.error-links {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.error-links a {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   6. Responsive —— 响应式规则
   ============================================================ */

/* ---------- 1100px 以下：导航栏压缩 ---------- */

@media (max-width: 1100px) {
  .nav-list li a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .brand-tagline {
    display: none;
  }
}

/* ---------- 980px 以下：平板 ---------- */

@media (max-width: 980px) {
  :root {
    --space-section: 48px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .nav-list li a {
    padding: 8px 8px;
    font-size: 13px;
  }

  /* 首页模块降为单列 */
  .genre-preview-section,
  .archive-preview-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .genre-entry {
    order: -1;
  }

  /* 观前检查主侧布局 */
  .layout-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    margin-top: 24px;
  }

  /* 问答布局 */
  .page-layout.wenda-layout {
    grid-template-columns: 1fr;
  }

  .content-side {
    margin-top: 24px;
  }

  /* 题材图文 */
  .topic-entry-card {
    grid-template-columns: 1fr;
  }

  .topic-entry-card:nth-child(even) {
    direction: ltr;
  }

  /* 专区布局 */
  .archive-example-layout,
  .process-layout {
    grid-template-columns: 1fr;
  }

  /* 词语页 */
  .glossary-hero {
    grid-template-columns: 1fr;
  }

  /* 边界页 */
  .page-intro-media {
    grid-template-columns: 1fr;
  }

  .help-nav-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    grid-column: 1;
  }
}

/* ---------- 768px 以下：移动端 ---------- */

@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    padding: 0 16px;
  }

  /* 移动端导航按钮显示 */
  .nav-toggle {
    display: flex;
  }

  .nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* 导航列表默认收起 */
  .nav-list {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    z-index: 99;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    display: block;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
  }

  .nav-list li a.is-current {
    background-color: var(--deep-teal);
    color: #fff;
  }

  /* 首页主视觉 */
  .hero-section {
    padding: 40px 16px 32px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  .home-section {
    padding: 40px 16px;
  }

  /* 首页频道条目 */
  .channel-guide-section .channel-item {
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
  }

  .channel-no {
    min-width: auto;
    padding-right: 12px;
    font-size: 20px;
  }

  .channel-info {
    flex-basis: calc(100% - 80px);
  }

  .channel-link {
    margin-left: 0;
  }

  /* 步骤窄带 */
  .step-strip {
    grid-template-columns: 1fr;
  }

  /* 入口细带 */
  .entry-strip {
    grid-template-columns: 1fr;
  }

  .entry-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .entry-item:last-child {
    border-bottom: none;
  }

  /* 内页 */
  .inner-main {
    padding: 24px 16px 48px;
  }

  .page-header {
    margin-bottom: 32px;
  }

  .page-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 22px;
  }

  /* 频道指南 */
  .channel-list-section .channel-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .channel-number {
    border-right: none;
    border-bottom: 1px solid var(--line);
    justify-content: flex-start;
    padding-bottom: 8px;
    padding-right: 0;
  }

  .scene-gallery {
    grid-template-columns: 1fr;
  }

  .watch-tip-section {
    padding: 20px;
  }

  .tip-links {
    flex-direction: column;
  }

  .tip-link {
    text-align: center;
  }

  /* 观前检查 */
  .check-step {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .step-number {
    justify-content: flex-start;
    font-size: 26px;
  }

  .related-links {
    grid-template-columns: 1fr;
  }

  /* 专区 */
  .archive-intro .archive-step-item {
    flex-direction: column;
    gap: 6px;
  }

  .archive-nav-list {
    flex-direction: column;
    gap: 10px;
  }

  /* 词语 */
  .glossary-item {
    grid-template-columns: 1fr;
  }

  .glossary-term {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px;
  }

  .glossary-def {
    padding: 12px 16px;
  }

  .related-links-row {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .faq-item summary {
    font-size: 15px;
    padding: 16px 44px 16px 16px;
  }

  .faq-content {
    padding: 0 16px 16px;
  }

  /* 边界 */
  .boundary-columns {
    grid-template-columns: 1fr;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
  }

  .help-nav-list {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-inner {
    padding: 40px 16px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 4px;
  }

  /* 404 */
  .error-panel {
    padding: 40px 24px;
  }

  .error-code {
    font-size: 56px;
  }
}

/* ---------- 390px 极小屏修正 ---------- */

@media (max-width: 390px) {
  .brand-name {
    font-size: 20px;
  }

  .brand-tagline {
    display: none;
  }

  .home-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .inner-main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .channel-guide-section .channel-info {
    flex-basis: 100%;
  }

  .channel-no {
    min-width: 36px;
  }

  .topic-tag-strip {
    gap: 8px;
  }

  .topic-tag {
    padding: 6px 14px;
    font-size: 13px;
  }

  .glossary-item {
    grid-template-columns: 1fr;
  }

  .error-links {
    flex-direction: column;
    gap: 8px;
  }
}
