/* ==========================================================================
   糖心视频 — 整站样式表
   实验排版风 · 暖白基底 · 焦点橙点缀
   ========================================================================== */

/* ------------------------------------------
   Base — 变量、重置、全局基础
   ------------------------------------------ */
:root {
  --bg-warm: #F7F5F2;
  --ink-dark: #191714;
  --ink-muted: #6E675F;
  --accent-orange: #FF5A36;
  --accent-teal: #1FB9A8;
  --accent-blue: #2B4C7E;
  --footer-dark: #161311;
  --card-bg: #FFFFFF;
  --line-light: #E5E0DA;
  --max-width: 1200px;
  --radius: 8px;
  --font-stack: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --transition-fast: 0.2s ease;
  --transition-slow: 0.35s ease;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-dark);
  background-color: var(--bg-warm);
  font-weight: 400;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: #d8431f;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink-dark);
}

p {
  margin-bottom: 0.8em;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  background: #F0EDE8;
  padding: 0.2em 0.4em;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--accent-orange);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 12px;
}

/* ------------------------------------------
   Layout — 全站框架
   ------------------------------------------ */

/* 页头 */
.site-header {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--line-light);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-logo:hover {
  color: var(--accent-orange);
}

/* 目录按钮 — 桌面隐藏，移动显示 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--line-light);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-dark);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: background var(--transition-fast);
}

.nav-toggle-line:nth-child(1) {
  top: 17px;
}

.nav-toggle-line:nth-child(2) {
  bottom: 17px;
}

/* 全屏导航 */
.site-nav {
  position: fixed;
  inset: 0;
  background: rgba(22, 19, 17, 0.97);
  z-index: 1500;
  display: none;
  overflow-y: auto;
}

.site-nav.is-open {
  display: block;
}

.nav-list {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 96px 24px 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.nav-group-title {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-group ul li {
  margin-bottom: 14px;
}

.nav-group ul li a {
  color: #F7F5F2;
  font-size: 18px;
  font-weight: 500;
  display: inline-block;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav-group ul li a:hover,
.nav-group ul li a.is-current {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
}

/* 主容器 */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.home-main {
  padding-top: 0;
}

.inner-main {
  padding-top: 32px;
  padding-bottom: 72px;
}

/* 面包屑 */
.breadcrumb {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--accent-orange);
}

.breadcrumb-sep {
  color: #B5AFA7;
}

.breadcrumb-current {
  color: var(--ink-dark);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 44px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 720px;
  line-height: 1.75;
}

/* 页脚 */
.site-footer {
  background: var(--footer-dark);
  color: rgba(255, 255, 255, 0.75);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: var(--accent-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

/* ------------------------------------------
   Components — 通用组件
   ------------------------------------------ */

/* 按钮 */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.btn-primary {
  background: var(--accent-orange);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background: #e04a28;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 90, 54, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--ink-dark);
  border: 1px solid var(--line-light);
}

.btn-secondary:hover {
  border-color: var(--ink-dark);
  color: var(--ink-dark);
  transform: translateY(-2px);
}

/* 文本链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 0;
  min-height: 44px;
}

.text-link::after {
  content: "→";
  transition: transform var(--transition-fast);
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* 封面卡 hover 上移 */
.collection-card,
.sample-card,
.channel-card,
.issue-card,
.phenomenon-card,
.example-card {
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.collection-card:hover,
.sample-card:hover,
.channel-card:hover,
.issue-card:hover,
.phenomenon-card:hover,
.example-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(25, 23, 20, 0.08);
}

/* 滚动渐现 — 默认可见，仅增强 */
.reveal {
  opacity: 1;
  transform: none;
}

/* 表格通用 */
.param-table,
.error-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.param-table th,
.param-table td,
.error-table th,
.error-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-light);
  vertical-align: top;
}

.param-table th,
.error-table th {
  background: #F0EDE8;
  font-weight: 600;
  color: var(--ink-dark);
  white-space: nowrap;
}

.param-table tr:last-child td,
.error-table tr:last-child td {
  border-bottom: none;
}

/* ------------------------------------------
   Home — 首页模块
   ------------------------------------------ */

/* Hero 区 */
.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0 48px;
}

.hero-content h1 {
  font-size: 36px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 540px;
}

.hero-lead {
  font-size: 17px;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(25, 23, 20, 0.1);
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 频道标签带 */
.channel-strip {
  padding: 32px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  margin-bottom: 64px;
}

.tag-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px;
  scrollbar-width: thin;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dark);
  background: #fff;
  white-space: nowrap;
  min-height: 44px;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.tag-item:hover {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
}

/* 播放焦点区 */
.featured-collection {
  margin-bottom: 72px;
}

.featured-collection h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.featured-collection > p {
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.collection-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-light);
  display: flex;
  flex-direction: column;
}

.collection-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.collection-card h3 {
  font-size: 18px;
  font-weight: 700;
  padding: 18px 18px 6px;
}

.collection-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  padding: 0 18px 14px;
  flex-grow: 1;
}

.collection-card a {
  margin: 0 18px 18px;
  font-size: 14px;
  font-weight: 600;
}

/* 观看路径速览 */
.path-overview {
  margin-bottom: 72px;
  padding: 48px 0;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}

.path-overview h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.path-overview > p {
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 24px;
}

.step-item {
  position: relative;
  padding-left: 56px;
}

.step-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* 问题自查入口区 */
.check-entry {
  margin-bottom: 72px;
}

.check-entry h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.check-entry > p {
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.issue-card {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.issue-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.issue-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex-grow: 1;
}

.issue-card a {
  font-size: 14px;
  font-weight: 600;
}

/* 频道内容样本区 */
.channel-samples {
  margin-bottom: 72px;
}

.channel-samples h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.channel-samples > p {
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.sample-card {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.sample-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.sample-card h3 {
  font-size: 16px;
  font-weight: 700;
  padding: 14px 16px 4px;
}

.sample-card p {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.6;
  padding: 0 16px 16px;
  margin-bottom: 0;
}

/* 内容边界摘要 */
.scope-summary {
  margin-bottom: 72px;
  padding: 40px;
  background: var(--ink-dark);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.85);
}

.scope-summary h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.scope-summary p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 8px;
  max-width: 720px;
}

.scope-summary a {
  color: var(--accent-orange);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

.scope-summary a::after {
  content: "→";
}

/* 帮助入口区 */
.help-preview {
  margin-bottom: 72px;
}

.help-preview h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.help-preview > p {
  color: var(--ink-muted);
  margin-bottom: 28px;
}

.faq-preview-list {
  margin-bottom: 20px;
}

.faq-preview-item {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-preview-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-preview-item summary::-webkit-details-marker {
  display: none;
}

.faq-preview-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--accent-orange);
  transition: transform var(--transition-fast);
}

.faq-preview-item[open] summary::after {
  content: "−";
}

.faq-preview-item p {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ------------------------------------------
   Channels — 频道分类页
   ------------------------------------------ */

.channel-index-section,
.channel-detail-section,
.structure-reference-section {
  margin-bottom: 56px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--ink-muted);
  margin-bottom: 24px;
  max-width: 720px;
}

.channel-index-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  counter-reset: channel-index;
}

.channel-index-list li {
  counter-increment: channel-index;
}

.channel-index-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-dark);
  min-height: 44px;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.channel-index-list li a::before {
  content: counter(channel-index, decimal-leading-zero);
  font-size: 13px;
  color: var(--accent-orange);
  font-weight: 700;
}

.channel-index-list li a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.channel-card {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.channel-figure {
  overflow: hidden;
}

.channel-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.channel-body {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.channel-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.channel-scope {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.channel-structure {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: auto;
}

.structure-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.structure-tags span {
  background: #F0EDE8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-dark);
}

/* 相关入口 */
.related-links {
  padding: 32px;
  background: #F0EDE8;
  border-radius: var(--radius);
  margin-top: 56px;
}

.related-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-links ul li {
  margin-bottom: 10px;
}

.related-links ul li a {
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* ------------------------------------------
   Collection — 专题解读页
   ------------------------------------------ */

.collection-list,
.collection-details {
  margin-bottom: 56px;
}

.collection-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.collection-cards .collection-card {
  flex-direction: row;
  align-items: stretch;
}

.collection-cards .collection-card a {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  color: inherit;
}

.collection-cards .card-media {
  flex: 0 0 280px;
  overflow: hidden;
}

.collection-cards .card-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.collection-cards .card-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.collection-cards .card-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0;
}

.collection-cards .card-body p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
  padding: 0;
  margin-bottom: 0;
}

/* 专题解读 */
.feature-item {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--line-light);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item:nth-child(even) .feature-media {
  order: -1;
}

.feature-text h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
}

.feature-text p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.feature-text p strong {
  color: var(--ink-dark);
  font-weight: 600;
}

.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* 相关专题链接 */
.related-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-list li a {
  display: inline-block;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-dark);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.related-list li a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* ------------------------------------------
   Guide — 观看指南页（API 文档式）
   ------------------------------------------ */

.guide-section {
  margin-bottom: 56px;
}

.guide-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.guide-section > p {
  color: var(--ink-muted);
  margin-bottom: 24px;
  max-width: 720px;
}

.endpoint-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.endpoint-item {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 20px;
}

.endpoint-method {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-teal);
  background: rgba(31, 185, 168, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.endpoint-path {
  display: block;
  font-size: 14px;
  margin-bottom: 10px;
  background: transparent;
  padding: 0;
}

.endpoint-item p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.guide-figure {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 16px;
  background: #F0EDE8;
  font-size: 13px;
  color: var(--ink-muted);
}

.param-table-wrap,
.error-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  overflow-x: auto;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.example-card {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.example-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.example-goal {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.example-steps {
  margin-bottom: 12px;
  flex-grow: 1;
}

.example-steps li {
  font-size: 14px;
  color: var(--ink-dark);
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.example-steps li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent-orange);
  border-radius: 50%;
}

.example-result {
  font-size: 13px;
  color: var(--accent-teal);
  font-weight: 600;
}

.guide-related {
  background: #F0EDE8;
  padding: 32px;
  border-radius: var(--radius);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dark);
}

.related-links a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* ------------------------------------------
   Check — 问题自查页（决策树）
   ------------------------------------------ */

.check-diagram {
  margin-bottom: 40px;
  border-radius: var(--radius);
  overflow: hidden;
}

.check-diagram img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.check-diagram figcaption {
  padding: 10px 16px;
  background: #F0EDE8;
  font-size: 13px;
  color: var(--ink-muted);
}

.check-section {
  margin-bottom: 56px;
}

.phenomenon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.phenomenon-card {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
}

.phenomenon-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.phenomenon-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.phenomenon-hint {
  font-size: 13px;
  color: var(--accent-teal);
  font-weight: 500;
  margin-bottom: 0;
}

.tree-branch {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.tree-branch h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-light);
}

.tree-level {
  margin-bottom: 20px;
}

.tree-level:last-child {
  margin-bottom: 0;
}

.tree-level h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-orange);
  margin-bottom: 10px;
}

.tree-level ul li {
  font-size: 14px;
  color: var(--ink-muted);
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.6;
}

.tree-level ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--accent-orange);
  border-radius: 50%;
}

.tips-list {
  margin-bottom: 20px;
}

.tips-list li {
  font-size: 14px;
  color: var(--ink-muted);
  padding-left: 24px;
  position: relative;
  margin-bottom: 8px;
  line-height: 1.7;
}

.tips-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.related-footer {
  margin-top: 56px;
  padding: 32px;
  background: #F0EDE8;
  border-radius: var(--radius);
}

.related-footer .related-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dark);
}

.related-link:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* ------------------------------------------
   Scope — 内容边界页
   ------------------------------------------ */

.coverage-section,
.non-coverage-section,
.role-section {
  margin-bottom: 56px;
}

.coverage-section h2,
.non-coverage-section h2,
.role-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.coverage-section > p,
.non-coverage-section > p {
  color: var(--ink-muted);
  margin-bottom: 24px;
}

.coverage-list,
.non-coverage-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.coverage-list li,
.non-coverage-list li {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
}

.coverage-list h3,
.non-coverage-list h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.coverage-list h3::before {
  content: "✓";
  color: var(--accent-teal);
  font-weight: 700;
}

.non-coverage-list h3::before {
  content: "×";
  color: var(--accent-orange);
  font-weight: 700;
}

.coverage-list p,
.non-coverage-list p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

.role-layout {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.role-text p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.role-figure {
  border-radius: var(--radius);
  overflow: hidden;
}

.role-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.role-figure figcaption {
  padding: 10px 14px;
  background: #F0EDE8;
  font-size: 13px;
  color: var(--ink-muted);
}

.related-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.related-link-list li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dark);
}

.related-link-list li a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* ------------------------------------------
   Help — 帮助中心页
   ------------------------------------------ */

.faq-section,
.feedback-section,
.checklist-section {
  margin-bottom: 56px;
}

.faq-list {
  border-top: 1px solid var(--line-light);
}

.faq-item {
  border-bottom: 1px solid var(--line-light);
  background: var(--card-bg);
}

.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--accent-orange);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item[open] summary {
  color: var(--accent-orange);
}

.faq-answer {
  padding: 0 20px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 0;
  max-width: 720px;
}

.feedback-section {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.feedback-text p {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.feedback-figure {
  border-radius: var(--radius);
  overflow: hidden;
}

.feedback-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feedback-figure figcaption {
  padding: 10px 14px;
  background: #F0EDE8;
  font-size: 13px;
  color: var(--ink-muted);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checklist li {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-dark);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
}

.checklist li::before {
  content: "□";
  font-size: 16px;
  color: var(--accent-orange);
  flex-shrink: 0;
}

.help-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.link-card {
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.link-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.link-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.link-card p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.65;
  margin-bottom: 14px;
  flex-grow: 1;
}

.link-card a {
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links-label {
  font-size: 14px;
  color: var(--ink-muted);
  margin-right: 4px;
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 16px;
  background: var(--card-bg);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dark);
}

.related-links-item:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* ------------------------------------------
   404 — 错误页
   ------------------------------------------ */

.error-main {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
}

.error-content {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 72px;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--ink-muted);
  margin-bottom: 32px;
}

.error-actions {
  margin-bottom: 32px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  background: var(--accent-orange);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
}

.error-btn:hover {
  background: #e04a28;
  color: #fff;
}

.error-links p {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}

.error-links ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.error-links ul li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 14px;
  font-size: 14px;
  color: var(--ink-dark);
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: #fff;
}

.error-links ul li a:hover {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

/* ------------------------------------------
   Responsive — 响应式
   ------------------------------------------ */

/* 平板及以下 */
@media (max-width: 1024px) {
  .hero-section {
    gap: 32px;
    padding: 48px 0 40px;
  }

  .hero-content h1 {
    font-size: 30px;
  }

  .sample-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-cards .card-media {
    flex-basis: 220px;
  }

  .feature-item {
    gap: 24px;
  }

  .role-layout {
    gap: 24px;
  }

  .feedback-section {
    gap: 24px;
  }
}

/* 移动端 */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: 60px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 80px 20px 40px;
  }

  .nav-group-title {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .nav-group ul li {
    margin-bottom: 10px;
  }

  .nav-group ul li a {
    font-size: 16px;
  }

  .site-main {
    padding: 0 16px;
  }

  .inner-main {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .page-header {
    margin-bottom: 32px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-description {
    font-size: 15px;
  }

  /* Hero */
  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 0 32px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100%;
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
  }

  /* 频道标签带 */
  .channel-strip {
    margin-bottom: 48px;
    padding: 24px 0;
  }

  .tag-list {
    gap: 8px;
  }

  .tag-item {
    padding: 8px 14px;
    font-size: 13px;
  }

  /* 播放焦点 */
  .featured-collection {
    margin-bottom: 48px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .collection-card img {
    aspect-ratio: 16 / 9;
  }

  /* 路径速览 */
  .path-overview {
    margin-bottom: 48px;
    padding: 32px 0;
  }

  .steps-wrapper {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-item {
    padding-left: 0;
    padding-top: 52px;
  }

  .step-num {
    top: 0;
  }

  /* 问题自查 */
  .check-entry {
    margin-bottom: 48px;
  }

  .issue-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 样本区 */
  .channel-samples {
    margin-bottom: 48px;
  }

  .sample-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .sample-card h3 {
    font-size: 14px;
    padding: 10px 12px 4px;
  }

  .sample-card p {
    font-size: 12px;
    padding: 0 12px 12px;
  }

  /* 边界摘要 */
  .scope-summary {
    margin-bottom: 48px;
    padding: 24px;
  }

  .scope-summary p {
    font-size: 14px;
  }

  /* 帮助预览 */
  .help-preview {
    margin-bottom: 48px;
  }

  .faq-preview-item summary {
    font-size: 14px;
    padding: 14px 40px 14px 16px;
  }

  .faq-preview-item p {
    padding: 0 16px 14px;
    font-size: 13px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 16px 24px;
  }

  .footer-bottom {
    padding: 16px;
  }

  /* 频道页 */
  .channel-index-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .channel-body {
    padding: 16px;
  }

  /* 专题页 */
  .collection-cards .collection-card a {
    flex-direction: column;
  }

  .collection-cards .card-media {
    flex-basis: auto;
  }

  .collection-cards .card-media img {
    aspect-ratio: 16 / 9;
  }

  .collection-cards .card-body {
    padding: 16px;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .feature-item:nth-child(even) .feature-media {
    order: 0;
  }

  .feature-text h3 {
    font-size: 19px;
  }

  .related-list {
    flex-direction: column;
  }

  .related-list li a {
    width: 100%;
    justify-content: center;
  }

  /* 指南页 */
  .endpoint-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-figure img {
    aspect-ratio: 16 / 9;
  }

  .example-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .param-table th,
  .param-table td,
  .error-table th,
  .error-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .guide-related {
    padding: 24px;
  }

  .related-links {
    flex-direction: column;
    align-items: stretch;
  }

  .related-links a {
    justify-content: center;
  }

  /* 自查页 */
  .check-diagram img {
    aspect-ratio: 16 / 9;
  }

  .phenomenon-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tree-branch {
    padding: 20px;
  }

  .related-footer {
    padding: 24px;
  }

  .related-links .related-link {
    justify-content: center;
  }

  /* 边界页 */
  .coverage-list,
  .non-coverage-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .role-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 帮助页 */
  .feedback-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .checklist {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .checklist li {
    padding: 12px 14px;
    font-size: 13px;
  }

  .help-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .related-links-item {
    width: 100%;
    justify-content: center;
  }

  /* 404 */
  .error-main {
    padding: 48px 16px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-content h1 {
    font-size: 24px;
  }
}

/* 小屏手机 */
@media (max-width: 420px) {
  .sample-grid {
    grid-template-columns: 1fr;
  }

  .sample-card img {
    aspect-ratio: 16 / 9;
  }

  .hero-content h1 {
    font-size: 24px;
  }
}

/* 动效减弱偏好 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
