/* ==========================================================================
   西瓜视频内容导航站 - 全站样式表
   视觉方向：手工艺目录风 · 纸张底色 · 陶土橙与草木绿点缀
   ========================================================================== */

/* --------------------------------------------------------------------------
   Base / 基础
   -------------------------------------------------------------------------- */
:root {
  --paper: #f6f1e7;
  --ink: #2b2a26;
  --clay: #c4653a;
  --green: #5b7d5a;
  --sand: #ddd6c8;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(43, 42, 38, 0.08);
  --shadow-md: 0 4px 12px rgba(43, 42, 38, 0.1);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --font-body: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-head: Georgia, "Songti SC", SimSun, serif;
  --font-mono: SFMono-Regular, Consolas, monospace;
  --container-w: 1180px;
  --sidebar-w: 240px;
  --content-w: 760px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--clay);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #a34f2c;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 20px;
}

h3 {
  font-size: 16px;
}

p {
  margin-bottom: 0.8em;
}

/* --------------------------------------------------------------------------
   Layout / 布局骨架
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--sand);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-area {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand-tag {
  font-size: 12px;
  color: #8a8273;
  font-family: var(--font-mono);
}

.site-nav .nav-list {
  display: flex;
  gap: 4px;
}

.site-nav .nav-link {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.site-nav .nav-link:hover {
  background-color: rgba(196, 101, 58, 0.08);
  color: var(--clay);
}

.site-nav .nav-link.is-current {
  background-color: var(--clay);
  color: var(--white);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-footer {
  background-color: #f0ece3;
  border-top: 1px solid var(--sand);
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-brand-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.7;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-list a {
  font-size: 13px;
  color: #6b6457;
}

.footer-list a:hover {
  color: var(--clay);
}

.footer-bottom {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--sand);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-note {
  font-size: 12px;
  color: #8a8273;
}

.footer-copy {
  font-size: 12px;
  color: #8a8273;
  font-family: var(--font-mono);
}

/* 布局容器：侧栏 + 主内容 */
.site-home,
.site-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.page-layout,
.layout-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.page-layout.sidebar-left .site-main,
.layout-shell.sidebar-left .site-main {
  min-width: 0;
}

/* 侧栏 */
.left-dir,
.sidebar-filter,
.side-dir,
.page-sidebar,
.page-aside,
.sidebar {
  position: sticky;
  top: 88px;
}

.dir-panel,
.sidebar-inner,
.aside-inner {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 20px;
}

.dir-title,
.sidebar-title,
.side-title,
.aside-title {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--sand);
}

.dir-list li,
.filter-list li,
.side-list li,
.sidebar-list li,
.aside-list li {
  margin-bottom: 2px;
}

.dir-link,
.filter-list a,
.side-list a,
.sidebar-list a,
.aside-list a {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dir-link:hover,
.filter-list a:hover,
.side-list a:hover,
.sidebar-list a:hover,
.aside-list a:hover {
  background-color: rgba(91, 125, 90, 0.08);
  border-left-color: var(--green);
  color: var(--ink);
}

.side-note,
.sidebar-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--sand);
  font-size: 12px;
  color: #8a8273;
  line-height: 1.6;
}

/* 主内容 */
.site-main {
  min-width: 0;
}

.inner-main {
  max-width: var(--content-w);
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8a8273;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #8a8273;
}

.breadcrumb a:hover {
  color: var(--clay);
}

.breadcrumb-sep {
  color: var(--sand);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--sand);
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: #6b6457;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Components / 通用组件
   -------------------------------------------------------------------------- */
/* 区块标题 */
.section-heading {
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 4px;
  height: 1em;
  background-color: var(--clay);
  border-radius: 2px;
}

.section-intro,
.section-desc {
  font-size: 14px;
  color: #6b6457;
  line-height: 1.7;
}

/* 频道卡片 */
.channel-card {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.channel-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.card-media,
.channel-card .card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--sand);
}

.card-media img,
.channel-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body,
.card-content {
  padding: 16px 18px 18px;
}

.card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card-tags {
  font-size: 12px;
  color: var(--green);
  font-family: var(--font-mono);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.65;
  margin-bottom: 0;
}

/* 相关链接条 */
.related-links {
  margin-top: 40px;
  padding: 16px 20px;
  background-color: rgba(91, 125, 90, 0.06);
  border: 1px solid rgba(91, 125, 90, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}

.related-links-label {
  font-weight: 600;
  color: var(--ink);
}

.related-links-item {
  color: var(--clay);
  font-size: 14px;
}

.related-links-item:hover {
  color: #a34f2c;
}

/* 分隔线 */
.section-divider {
  border: none;
  border-top: 1px solid var(--sand);
  margin: 40px 0;
}

/* --------------------------------------------------------------------------
   Pages / 首页
   -------------------------------------------------------------------------- */
.home-main {
  max-width: var(--content-w);
}

/* 首屏 */
.hero-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 24px 0 40px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--clay);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 14px;
}

.hero-desc {
  font-size: 15px;
  color: #6b6457;
  line-height: 1.75;
  margin-bottom: 20px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  display: inline-block;
  padding: 10px 22px;
  font-size: 14px;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cta-primary {
  background-color: var(--clay);
  color: var(--white);
}

.cta-primary:hover {
  background-color: #a34f2c;
  color: var(--white);
}

.cta-secondary {
  border: 1px solid var(--sand);
  color: var(--ink);
  background-color: var(--white);
}

.cta-secondary:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-points li {
  font-size: 13px;
  color: #6b6457;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points li::before {
  content: "·";
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background-color: var(--sand);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 频道焦点画廊 */
.gallery-section {
  padding: 40px 0;
  border-top: 1px solid var(--sand);
}

.gallery-wrap {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  text-align: left;
}

.gallery-thumb:hover {
  border-color: var(--clay);
}

.gallery-thumb.is-active {
  background-color: var(--clay);
  border-color: var(--clay);
  transform: scale(1.02);
}

.thumb-index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--clay);
  flex-shrink: 0;
}

.gallery-thumb.is-active .thumb-index {
  color: var(--white);
}

.thumb-label {
  font-size: 14px;
  color: var(--ink);
}

.gallery-thumb.is-active .thumb-label {
  color: var(--white);
}

.gallery-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--sand);
  aspect-ratio: 16 / 9;
}

.gallery-panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.gallery-panel.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.gallery-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-panel figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background-color: rgba(43, 42, 38, 0.75);
  color: var(--white);
  font-size: 13px;
}

/* 频道分类索引 */
.channel-index {
  padding: 40px 0;
  border-top: 1px solid var(--sand);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.channel-more {
  margin-top: 20px;
  text-align: right;
  font-size: 14px;
}

.channel-more a {
  color: var(--clay);
}

/* 浏览路径 */
.path-section {
  padding: 40px 0;
  border-top: 1px solid var(--sand);
}

.path-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step-counter;
}

.path-step {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.path-step:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.step-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-color: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 28px;
  text-align: center;
  margin-bottom: 12px;
}

.step-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-title a {
  color: var(--ink);
}

.step-title a:hover {
  color: var(--clay);
}

.step-desc {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.6;
  margin-bottom: 0;
}

/* 专题片单预览 */
.topic-preview {
  padding: 40px 0;
  border-top: 1px solid var(--sand);
}

.topic-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.topic-card {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.topic-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--clay);
  background-color: rgba(196, 101, 58, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.topic-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.topic-desc {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.65;
  margin-bottom: 14px;
}

.topic-link {
  font-size: 13px;
  color: var(--clay);
  font-weight: 600;
}

.topic-link:hover {
  color: #a34f2c;
}

/* 常见误区澄清 */
.myth-section {
  padding: 40px 0;
  border-top: 1px solid var(--sand);
}

.myth-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.myth-item {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.myth-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 4px;
}

.myth-fact {
  font-size: 14px;
  color: #6b6457;
  line-height: 1.65;
  margin-bottom: 0;
}

.myth-fact a {
  color: var(--green);
  font-weight: 600;
}

.myth-fact a:hover {
  color: #4a6849;
}

/* --------------------------------------------------------------------------
   Pages / 内页
   -------------------------------------------------------------------------- */
/* 频道导览页 */
.lead-section {
  margin-bottom: 36px;
}

.lead-section .section-title {
  margin-bottom: 10px;
}

.lead-section p {
  font-size: 14px;
  color: #6b6457;
  line-height: 1.75;
}

.channel-group {
  margin-bottom: 40px;
}

.channel-group > .section-title {
  margin-bottom: 16px;
}

.channel-card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}

.related-section .section-title {
  margin-bottom: 10px;
}

.related-section p {
  font-size: 14px;
  color: #6b6457;
}

.related-section a {
  font-weight: 600;
}

/* 专题片单页 */
.topic-card-list {
  margin-bottom: 48px;
}

.topic-card-list > .section-title {
  margin-bottom: 20px;
}

.topic-card {
  margin-bottom: 28px;
}

.topic-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.topic-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  background-color: var(--clay);
  padding: 2px 12px;
  border-radius: 12px;
}

.topic-name {
  font-size: 18px;
  font-weight: 600;
}

.topic-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  aspect-ratio: 16 / 9;
  background-color: var(--sand);
}

.topic-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-detail {
  margin-bottom: 14px;
}

.detail-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--sand);
}

.detail-row dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

.detail-row dd {
  font-size: 14px;
  color: #6b6457;
  line-height: 1.65;
}

.topic-related {
  font-size: 13px;
}

.topic-related a {
  margin-right: 16px;
  font-weight: 600;
}

.structure-note {
  margin-bottom: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}

.structure-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.structure-item {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 16px;
}

.structure-item h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.structure-item p {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.6;
  margin-bottom: 0;
}

.related-entry {
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}

.entry-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.entry-link {
  display: inline-block;
  padding: 8px 20px;
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.entry-link:hover {
  border-color: var(--clay);
  color: var(--clay);
}

/* 观看指南页 */
.guide-version {
  margin-bottom: 16px;
}

.version-block {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.version-code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--clay);
  margin-bottom: 6px;
}

.version-desc {
  font-size: 13px;
  color: #6b6457;
}

.version-desc a {
  margin-right: 12px;
  font-weight: 600;
}

.guide-steps {
  margin-bottom: 8px;
}

.step-block {
  margin-bottom: 32px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-no {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 30px;
  text-align: center;
  flex-shrink: 0;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
}

.step-body p {
  font-size: 14px;
  color: #6b6457;
  line-height: 1.7;
  margin-bottom: 8px;
}

.step-body a {
  font-weight: 600;
}

.step-result {
  margin-top: 8px;
  padding: 10px 14px;
  background-color: rgba(91, 125, 90, 0.06);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: #6b6457;
}

.step-result strong {
  color: var(--green);
}

.guide-figure {
  margin-top: 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background-color: var(--sand);
}

.guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: #8a8273;
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.tip-card {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 20px;
}

.tip-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--clay);
}

.tip-card p {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.65;
  margin-bottom: 6px;
}

/* 服务政策页 */
.policy-intro {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 36px;
  padding: 20px 0;
  border-bottom: 1px solid var(--sand);
}

.policy-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--sand);
}

.policy-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.policy-intro p {
  font-size: 14px;
  color: #6b6457;
  line-height: 1.75;
}

.policy-section {
  margin-bottom: 40px;
}

.policy-section .section-desc {
  margin-bottom: 16px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.policy-card {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
}

.policy-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clay);
  background-color: rgba(196, 101, 58, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.policy-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.policy-card p {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.6;
  margin-bottom: 0;
}

.section-note {
  margin-top: 16px;
  font-size: 13px;
  color: #8a8273;
  background-color: rgba(221, 214, 200, 0.3);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.section-note a {
  font-weight: 600;
}

.boundary-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.boundary-item {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.boundary-item h3 {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--clay);
}

.boundary-item p {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.6;
  margin-bottom: 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-step {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
}

.step-number {
  display: inline-block;
  width: 26px;
  height: 26px;
  background-color: var(--clay);
  color: var(--white);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 26px;
  text-align: center;
  margin-bottom: 10px;
}

.step-content h3 {
  font-size: 14px;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 12px;
  color: #6b6457;
  line-height: 1.6;
  margin-bottom: 0;
}

.order-list {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-list li {
  font-size: 14px;
  color: #6b6457;
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.order-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--green);
}

/* 问题处理页 */
.faq-figure {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 32px;
  aspect-ratio: 16 / 6;
  background-color: var(--sand);
}

.faq-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: #8a8273;
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-top: none;
}

.faq-group {
  margin-bottom: 36px;
}

.faq-group > .section-title {
  margin-bottom: 16px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--clay);
  transition: transform 0.2s ease;
}

.faq-item[open] summary {
  background-color: rgba(196, 101, 58, 0.04);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background-color: rgba(196, 101, 58, 0.04);
}

.faq-answer {
  padding: 4px 18px 16px;
  border-top: 1px dashed var(--sand);
}

.faq-answer p {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.65;
  margin-bottom: 6px;
  padding-left: 14px;
  position: relative;
}

.faq-answer p::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--green);
  font-weight: 700;
}

.faq-answer .faq-phenomenon {
  color: var(--ink);
  font-weight: 600;
}

.faq-feedback {
  margin-top: 40px;
  padding: 24px;
  background-color: rgba(91, 125, 90, 0.06);
  border: 1px solid rgba(91, 125, 90, 0.2);
  border-radius: var(--radius-md);
}

.feedback-content p {
  font-size: 14px;
  color: #6b6457;
  line-height: 1.7;
}

/* 术语索引页 */
.term-section {
  margin-bottom: 40px;
}

.term-section > .section-title {
  margin-bottom: 16px;
}

.term-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.term-card {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.term-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.term-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.term-name {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
}

.term-badge {
  font-size: 11px;
  color: var(--green);
  background-color: rgba(91, 125, 90, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--font-mono);
}

.term-meaning,
.term-usage {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.65;
  margin-bottom: 8px;
}

.term-meaning strong,
.term-usage strong {
  color: var(--ink);
  font-weight: 600;
  margin-right: 4px;
}

.term-link {
  font-size: 12px;
  color: var(--clay);
  font-weight: 600;
}

.related-terms {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--sand);
}

.confusion-pair {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.confusion-item {
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.confusion-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--clay);
  margin-bottom: 6px;
}

.confusion-desc {
  font-size: 13px;
  color: #6b6457;
  line-height: 1.6;
  margin-bottom: 0;
}

.related-terms .related-links {
  margin-top: 20px;
}

.term-figure {
  margin-top: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 5;
  background-color: var(--sand);
}

.term-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.term-figure figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: #8a8273;
  background-color: var(--white);
  border: 1px solid var(--sand);
  border-top: none;
}

/* 404 页 */
.error-main {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 80px 24px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-section {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 64px;
  font-weight: 700;
  color: var(--clay);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 22px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 14px;
  color: #6b6457;
  margin-bottom: 8px;
}

.error-suggest {
  font-size: 13px;
  color: #8a8273;
  margin-bottom: 24px;
}

.error-btn {
  display: inline-block;
  padding: 10px 28px;
  background-color: var(--clay);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: background-color 0.2s ease;
}

.error-btn:hover {
  background-color: #a34f2c;
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Responsive / 响应式
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-layout,
  .layout-shell {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }

  .channel-card-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .term-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .path-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .structure-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-media {
    aspect-ratio: 16 / 9;
    max-width: 560px;
  }

  .gallery-wrap {
    grid-template-columns: 1fr;
  }

  .gallery-thumbs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .gallery-thumb {
    flex: 1;
    min-width: 140px;
  }

  .policy-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .policy-figure {
    max-width: 360px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 56px;
    padding: 0 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--sand);
    box-shadow: var(--shadow-md);
  }

  .site-nav .nav-list {
    display: none;
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 2px;
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-link {
    padding: 10px 14px;
    font-size: 15px;
  }

  /* 布局切换：主内容在前，侧栏在后 */
  .page-layout,
  .layout-shell {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
  }

  .page-layout .site-main,
  .layout-shell .site-main {
    order: 1;
  }

  .page-layout aside,
  .layout-shell aside {
    order: 2;
    position: static;
    width: 100%;
  }

  .dir-panel,
  .sidebar-inner,
  .aside-inner {
    padding: 14px;
  }

  .dir-list,
  .filter-list,
  .side-list,
  .sidebar-list,
  .aside-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .dir-list li,
  .filter-list li,
  .side-list li,
  .sidebar-list li,
  .aside-list li {
    margin-bottom: 0;
  }

  .dir-link,
  .filter-list a,
  .side-list a,
  .sidebar-list a,
  .aside-list a {
    padding: 6px 12px;
    border-left: none;
    border-bottom: 2px solid transparent;
  }

  .dir-link:hover,
  .filter-list a:hover,
  .side-list a:hover,
  .sidebar-list a:hover,
  .aside-list a:hover {
    border-left-color: transparent;
    border-bottom-color: var(--green);
  }

  .site-main {
    width: 100%;
    max-width: 100%;
  }

  .inner-main {
    max-width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px 20px;
  }

  /* 首页 */
  .home-main {
    padding: 0;
  }

  .hero-section {
    padding: 16px 0 32px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .cta-primary,
  .cta-secondary {
    text-align: center;
  }

  .hero-points {
    gap: 4px;
  }

  .channel-grid,
  .topic-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .path-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .path-step {
    padding: 16px;
  }

  .gallery-wrap {
    gap: 12px;
  }

  .gallery-thumbs {
    flex-direction: column;
  }

  .gallery-thumb {
    min-width: 0;
  }

  .gallery-stage {
    aspect-ratio: 16 / 10;
  }

  /* 内页 */
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
  }

  .page-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
  }

  .page-title {
    font-size: 22px;
  }

  .page-description {
    font-size: 14px;
  }

  .channel-card-list {
    grid-template-columns: 1fr;
  }

  .term-card-grid {
    grid-template-columns: 1fr;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .structure-list {
    grid-template-columns: 1fr;
  }

  .tip-grid {
    grid-template-columns: 1fr;
  }

  .confusion-pair {
    grid-template-columns: 1fr;
  }

  .detail-row {
    grid-template-columns: 60px 1fr;
    gap: 8px;
  }

  .topic-card-head {
    flex-wrap: wrap;
  }

  .entry-links {
    flex-direction: column;
  }

  .entry-link {
    text-align: center;
  }

  .step-head {
    align-items: flex-start;
  }

  .step-no {
    width: 26px;
    height: 26px;
    font-size: 13px;
    line-height: 26px;
  }

  .policy-intro {
    grid-template-columns: 1fr;
  }

  .policy-figure {
    max-width: 100%;
  }

  .faq-figure {
    aspect-ratio: 16 / 8;
  }

  .faq-item summary {
    padding: 12px 14px;
    font-size: 13px;
  }

  .faq-answer {
    padding: 2px 14px 14px;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .error-main {
    padding: 48px 16px;
    min-height: 50vh;
  }

  .error-code {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .brand-tag {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .section-title {
    font-size: 18px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-desc {
    font-size: 14px;
  }

  .card-body,
  .card-content {
    padding: 14px;
  }

  .topic-card {
    padding: 18px;
  }

  .myth-item {
    padding: 14px;
  }

  .gallery-panel figcaption {
    padding: 8px 12px;
    font-size: 12px;
  }

  .step-num {
    width: 24px;
    height: 24px;
    font-size: 13px;
    line-height: 24px;
  }

  .version-block {
    padding: 14px;
  }

  .tip-card {
    padding: 16px;
  }

  .policy-card {
    padding: 14px;
  }

  .boundary-item {
    padding: 12px 14px;
  }

  .process-step {
    padding: 14px;
  }

  .order-list {
    padding: 16px;
  }

  .term-card {
    padding: 14px;
  }

  .confusion-item {
    padding: 14px;
  }

  .feedback-content {
    padding: 0;
  }

  .faq-feedback {
    padding: 18px;
  }
}

/* --------------------------------------------------------------------------
   Accessibility / 可访问性
   -------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* 程序验收反馈：移动端正文优先 */
@media (max-width: 768px) {
  .site-main :is(.page-content, .main-content, .content-main) {
    order: 1;
  }

  .site-main :is(aside, .sidebar) {
    order: 2;
  }
}
