/* ============================================================
   base
   ============================================================ */
:root {
  --color-primary: #1a2e44;
  --color-accent: #c9922e;
  --color-bg: #f5f6f8;
  --color-text: #2b2b2b;
  --color-text-light: #5f6b7a;
  --color-border: #dfe3e8;
  --color-card-bg: #ffffff;
  --color-success: #2e7d32;
  --color-warning: #f9a825;
  --color-limit: #c62828;
  --font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --container-width: 1200px;
  --header-height: 72px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 1px 3px rgba(26, 46, 68, 0.08);
  --shadow-hover: 0 4px 14px rgba(26, 46, 68, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: var(--font-family);
  border: none;
  background: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================================
   layout
   ============================================================ */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.main-content {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* 首页主内容 */
.home-main {
  width: 100%;
}

/* 内页统一外壳 */
.inner-main {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px 56px;
}

/* 首页 content-wrapper 双列布局 */
.content-wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 40px;
  align-items: start;
}

/* 内页 sidebar-left 双列布局 */
.sidebar-left {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sidebar-left .page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sidebar-left .layout-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* 文档页 layout-shell 无侧栏时的单列 */
.layout-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  display: block;
}

.layout-shell.sidebar-left {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

/* ============================================================
   components
   ============================================================ */

/* --- header --- */
.site-header {
  background-color: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.brand-slogan {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, color 0.2s;
}

.nav-list li a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-list li a.is-current {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.16);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

/* --- 面包屑 --- */
.breadcrumb {
  padding: 16px 0 4px;
  font-size: 14px;
  color: var(--color-text-light);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-item a {
  color: var(--color-text-light);
}

.breadcrumb-item a:hover {
  color: var(--color-accent);
}

.breadcrumb-item.is-current {
  color: var(--color-text);
}

.breadcrumb-sep {
  color: var(--color-text-light);
  margin: 0 4px;
}

.breadcrumb-current {
  color: var(--color-text);
}

/* --- 页面标题区 --- */
.page-header {
  padding: 20px 0 24px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-light);
  max-width: 720px;
}

/* --- 按钮 --- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #b07d1f;
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* --- 首页 hero --- */
.hero-section {
  position: relative;
  background-color: var(--color-primary);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 96px 24px;
  text-align: center;
}

.hero-content h1 {
  font-size: 38px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.hero-actions .btn-primary {
  background-color: var(--color-accent);
}

.hero-actions .btn-secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

.hero-actions .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* --- 首页核心事实 --- */
.core-facts {
  padding: 56px 0 8px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fact-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.fact-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.fact-icon {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--color-accent);
}

.fact-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.fact-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text-light);
}

/* --- 首页频道分类入口 --- */
.channel-index {
  padding: 40px 0 8px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.channel-card {
  display: block;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.channel-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.channel-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.channel-desc {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* --- 首页观看指南入口 --- */
.guide-entry {
  padding: 40px 0 8px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.step-item {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}

.step-num {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 32px;
  margin-bottom: 12px;
}

.step-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.step-item p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.text-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-accent);
}

.text-link:hover {
  color: var(--color-primary);
}

/* --- 首页侧栏 --- */
.sidebar {
  padding-top: 56px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.topic-preview {
  margin-bottom: 40px;
}

.topic-card {
  display: flex;
  gap: 16px;
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.topic-card img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.topic-card h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.topic-card h3 a {
  color: var(--color-primary);
}

.topic-card h3 a:hover {
  color: var(--color-accent);
}

.topic-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.faq-preview .faq-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.faq-preview .faq-list li:last-child {
  border-bottom: none;
}

.faq-preview .faq-list a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-primary);
}

.faq-preview .faq-list a:hover {
  color: var(--color-accent);
}

/* --- 频道页 --- */
.index-sidebar {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.index-sidebar .sidebar-title {
  font-size: 16px;
  margin-bottom: 16px;
}

.index-list {
  margin-bottom: 16px;
}

.index-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s, color 0.2s;
}

.index-list li a:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
}

.index-tip {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.channel-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.channel-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-card);
}

.channel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.channel-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
}

.status-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-active {
  background-color: rgba(46, 125, 50, 0.1);
  color: var(--color-success);
}

.channel-figure {
  margin-bottom: 16px;
}

.channel-figure img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.channel-figure figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  padding-top: 8px;
}

.channel-summary {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.channel-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.channel-items {
  margin-bottom: 16px;
}

.channel-items li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  line-height: 1.6;
}

.channel-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.channel-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.prev-next-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.prev-link,
.next-link {
  font-size: 14px;
}

.prev-link a,
.next-link a {
  color: var(--color-primary);
}

.prev-link a:hover,
.next-link a:hover {
  color: var(--color-accent);
}

/* --- 相关推荐（频道页/指南页/FAQ页） --- */
.related-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.related-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-card {
  display: block;
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.related-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.related-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}

.related-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.related-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* --- 专题页 --- */
.quarter-index {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.index-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.quarter-index .index-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
}

.quarter-index .index-list li a:hover {
  background-color: var(--color-bg);
  color: var(--color-accent);
}

.topic-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.topic-group {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.group-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.topic-card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.topic-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.topic-card-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.topic-card-body {
  padding: 20px 20px 24px;
}

.topic-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.topic-card-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.topic-list {
  margin-bottom: 12px;
}

.topic-list li {
  position: relative;
  padding: 4px 0 4px 18px;
  font-size: 14px;
  line-height: 1.6;
}

.topic-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.topic-reason {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
  padding: 12px;
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
}

.related-links {
  margin-top: 8px;
}

.related-links .related-title {
  font-size: 18px;
}

.related-desc {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.related-list li {
  padding: 4px 0;
}

.related-list a {
  font-size: 14px;
  color: var(--color-primary);
}

.related-list a:hover {
  color: var(--color-accent);
}

/* --- 指南页 --- */
.guide-hero {
  margin-bottom: 32px;
}

.guide-hero img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.guide-hero figcaption {
  font-size: 13px;
  color: var(--color-text-light);
  padding-top: 8px;
}

.audience-section,
.scope-section,
.workflow-section,
.verify-section,
.boundary-section {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.audience-section h2,
.scope-section h2,
.workflow-section h2,
.verify-section h2,
.boundary-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.audience-section p,
.scope-section p,
.workflow-section p,
.verify-section p,
.boundary-section p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.audience-list {
  margin-bottom: 16px;
}

.audience-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  line-height: 1.6;
}

.audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

.scope-list {
  margin-bottom: 16px;
}

.scope-list li {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.6;
}

.scope-list strong {
  color: var(--color-primary);
}

.workflow-intro {
  margin-bottom: 20px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.workflow-step {
  display: flex;
  gap: 16px;
  padding: 20px;
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  line-height: 32px;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.step-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.verify-table {
  margin-bottom: 12px;
}

.verify-table th,
.verify-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

.verify-table th {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
}

.verify-table tr:last-child td {
  border-bottom: none;
}

.verify-note {
  font-size: 13px;
  color: var(--color-text-light);
}

.boundary-list {
  margin-bottom: 16px;
}

.boundary-list li {
  position: relative;
  padding: 8px 0 8px 22px;
  font-size: 14px;
  line-height: 1.6;
}

.boundary-list li::before {
  content: '!';
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--color-limit);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 16px;
}

/* --- FAQ 页 --- */
.page-hero-media {
  margin-bottom: 32px;
}

.page-hero-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.faq-group-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.faq-item {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* --- 文档页（隐私/条款/无障碍） --- */
.privacy-content,
.terms-content,
.accessibility-content {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.privacy-section,
.terms-section,
.accessibility-section {
  margin-bottom: 32px;
}

.privacy-section:last-child,
.terms-section:last-child,
.accessibility-section:last-child {
  margin-bottom: 0;
}

.privacy-section h2,
.terms-section h2,
.accessibility-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.privacy-section p,
.terms-section p,
.accessibility-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 12px;
}

.privacy-list,
.terms-list {
  margin-bottom: 12px;
}

.privacy-list li,
.terms-list li {
  position: relative;
  padding: 6px 0 6px 18px;
  font-size: 14px;
  line-height: 1.6;
}

.privacy-list li::before,
.terms-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-accent);
}

/* 相关帮助（文档页） */
.related-help {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
}

.related-help .related-title {
  font-size: 16px;
  margin-bottom: 16px;
}

.help-card {
  margin-bottom: 20px;
}

.help-card:last-child {
  margin-bottom: 0;
}

.help-card img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.help-card h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.help-card h3 a {
  color: var(--color-primary);
}

.help-card h3 a:hover {
  color: var(--color-accent);
}

.help-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

.help-figure img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

/* 无障碍页 */
.accessibility-hero {
  margin-bottom: 32px;
}

.accessibility-hero img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

/* --- 404 页 --- */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 240px);
  padding: 56px 24px;
}

.error-panel {
  text-align: center;
  max-width: 560px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.error-btn {
  display: inline-block;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
}

.error-btn.primary {
  background-color: var(--color-accent);
  color: #ffffff;
}

.error-btn.primary:hover {
  background-color: #b07d1f;
  color: #ffffff;
}

.error-btn {
  background-color: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
}

.error-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.error-help {
  font-size: 14px;
  color: var(--color-text-light);
}

.error-help a {
  color: var(--color-primary);
  margin: 0 6px;
}

.error-help a:hover {
  color: var(--color-accent);
}

/* --- footer --- */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255, 255, 255, 0.75);
  margin-top: 56px;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-slogan {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-links ul li,
.footer-legal ul li {
  padding: 4px 0;
}

.footer-links ul li a,
.footer-legal ul li a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-links ul li a:hover,
.footer-legal ul li a:hover {
  color: var(--color-accent);
}

.copyright {
  grid-column: 1 / -1;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 8px;
}

/* ============================================================
   pages
   ============================================================ */

/* 首页专用 */
.site-home .home-main {
  background-color: var(--color-bg);
}

/* 频道页 */
.page-channel .channel-list .channel-card:first-child {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

/* 专题页 */
.page-topic .topic-group {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

/* 指南页 */
.page-guide .workflow-steps {
  counter-reset: step;
}

/* FAQ 页 */
.page-faq .faq-item summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: -2px;
}

/* 文档页布局 */
.page-privacy .layout-shell,
.page-terms .layout-shell,
.page-accessibility .layout-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.page-accessibility .layout-shell.sidebar-left {
  grid-template-columns: 280px minmax(0, 1fr);
}

.page-privacy .layout-shell .privacy-content,
.page-terms .layout-shell .terms-content,
.page-accessibility .layout-shell .accessibility-content {
  min-width: 0;
}

/* 无障碍页侧栏在左 */
.page-accessibility .layout-shell.sidebar-left .related-help {
  order: 0;
}

.page-accessibility .layout-shell.sidebar-left .accessibility-content {
  order: 1;
}

/* ============================================================
   responsive
   ============================================================ */

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
  }

  .sidebar-left,
  .sidebar-left .page-layout,
  .sidebar-left .layout-shell,
  .layout-shell.sidebar-left {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 28px;
  }

  .page-privacy .layout-shell,
  .page-terms .layout-shell,
  .page-accessibility .layout-shell {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 28px;
  }

  .page-accessibility .layout-shell.sidebar-left {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .facts-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .brand-slogan {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 12px 16px;
    gap: 0;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 12px 16px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  .content-wrapper {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .sidebar {
    padding-top: 8px;
  }

  .inner-main {
    padding: 0 16px 40px;
  }

  .sidebar-left,
  .sidebar-left .page-layout,
  .sidebar-left .layout-shell,
  .layout-shell.sidebar-left {
    display: block;
  }

  .page-privacy .layout-shell,
  .page-terms .layout-shell,
  .page-accessibility .layout-shell {
    display: block;
  }

  .index-sidebar,
  .quarter-index {
    position: static;
    margin-bottom: 24px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .workflow-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 20px;
  }

  .copyright {
    grid-column: 1;
  }

  .hero-content {
    padding: 64px 16px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .page-title {
    font-size: 24px;
  }

  .page-description {
    font-size: 15px;
  }

  .privacy-content,
  .terms-content,
  .accessibility-content {
    padding: 24px 20px;
  }

  .channel-card {
    padding: 20px 16px;
  }

  .channel-card-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .topic-card {
    flex-direction: column;
  }

  .topic-card img {
    width: 100%;
    height: 120px;
  }

  .prev-next-nav {
    flex-direction: column;
    gap: 8px;
  }

  .error-code {
    font-size: 52px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .error-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .verify-table {
    display: block;
    overflow-x: auto;
  }

  .guide-hero img {
    height: 160px;
  }

  .page-hero-media img {
    height: 140px;
  }

  .accessibility-hero img {
    height: 150px;
  }

  .channel-figure img {
    height: 160px;
  }

  .topic-card-media img {
    height: 140px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 18px;
  }

  .hero-content h1 {
    font-size: 24px;
  }

  .section-title {
    font-size: 20px;
  }

  .channel-name {
    font-size: 15px;
  }

  .faq-item summary {
    font-size: 15px;
    padding: 16px 44px 16px 16px;
  }

  .faq-answer {
    padding: 0 16px 16px;
  }

  .faq-answer p {
    font-size: 14px;
  }

  .workflow-step {
    padding: 16px;
  }

  .topic-card-body {
    padding: 16px;
  }

  .topic-card-title {
    font-size: 16px;
  }

  .topic-card-summary {
    font-size: 13px;
  }

  .topic-list li {
    font-size: 13px;
  }

  .topic-reason {
    font-size: 13px;
  }

  .audience-section,
  .scope-section,
  .workflow-section,
  .verify-section,
  .boundary-section {
    padding: 20px 16px;
  }

  .audience-section h2,
  .scope-section h2,
  .workflow-section h2,
  .verify-section h2,
  .boundary-section h2 {
    font-size: 18px;
  }

  .privacy-section h2,
  .terms-section h2,
  .accessibility-section h2 {
    font-size: 18px;
  }

  .privacy-section p,
  .terms-section p,
  .accessibility-section p {
    font-size: 14px;
  }

  .privacy-list li,
  .terms-list li {
    font-size: 13px;
  }

  .help-card img,
  .help-figure img {
    height: 80px;
  }

  .related-card img {
    height: 120px;
  }

  .related-card h3 {
    font-size: 15px;
  }

  .related-card p {
    font-size: 13px;
  }

  .related-title {
    font-size: 18px;
  }

  .footer-title {
    font-size: 14px;
  }

  .footer-links ul li a,
  .footer-legal ul li a {
    font-size: 13px;
  }

  .footer-desc {
    font-size: 13px;
  }

  .copyright {
    font-size: 12px;
  }

  .verify-table th,
  .verify-table td {
    padding: 10px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .step-num {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 14px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    line-height: 28px;
    font-size: 14px;
  }
}
