/* ==========================================================================
   糖心官方最新版 - 全站样式表
   版本：1.0.0
   说明：复古计算机风 + 视频内容站，深底荧光绿与琥珀色点缀
   ========================================================================== */

/* ==========================================================================
   Base - 基础样式
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: #f2f4f3;
  background-color: #0f1110;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #d8ff7f;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #edb458;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* 等宽字体用于标签、字段名、时间等 */
.tag-icon,
.card-duration,
.channel-summary,
.topic-count,
.step-num,
.breadcrumb,
.page-description,
.footer-site-name,
.footer-slogan,
.footer-copy,
.aside-title,
.side-title,
.clip-duration,
.publish-date,
.mini-date,
.aside-text,
.note-text,
.error-code,
.related-links-label,
code,
.section-lead,
.section-intro {
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", "JetBrains Mono", Consolas, monospace;
}

/* ==========================================================================
   Layout - 布局骨架
   ========================================================================== */

/* 全站容器宽度 */
.header-inner,
.footer-inner,
.hero-section,
.channel-tags,
.latest-videos,
.featured-topics,
.guide-entry,
.faq-preview,
.related-links,
.page-layout,
.layout-shell,
.inner-main,
.sidebar-left-aside,
.sidebar-right-aside,
.side-nav,
.side-mini,
.sidebar-left,
.sidebar-right,
.aside-left,
.aside-right,
.main-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Components - 页头
   ========================================================================== */
.site-header {
  background-color: #161917;
  border-bottom: 2px solid #2a2d2b;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  max-width: 1200px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #d8ff7f;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* 导航按钮（移动端） */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #2a2d2b;
  border-radius: 6px;
  color: #f2f4f3;
}

.nav-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #d8ff7f;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #d8ff7f;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle-text {
  font-size: 0.75rem;
  color: #f2f4f3;
}

/* 导航列表 */
.site-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9375rem;
  color: #b5b8b6;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-list a:hover {
  color: #d8ff7f;
  background-color: #1e221f;
}

.nav-list a.is-current {
  color: #d8ff7f;
  background-color: #1e221f;
  border-bottom: 2px solid #d8ff7f;
}

/* ==========================================================================
   Components - 按钮
   ========================================================================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background-color: #d8ff7f;
  color: #0f1110;
  border: 1px solid #d8ff7f;
}

.btn-primary:hover {
  background-color: #c6f06a;
  color: #0f1110;
  border-color: #c6f06a;
}

.btn-secondary {
  background-color: transparent;
  color: #d8ff7f;
  border: 1px solid #4a4d4c;
}

.btn-secondary:hover {
  border-color: #d8ff7f;
  color: #d8ff7f;
  background-color: rgba(216, 255, 127, 0.05);
}

/* ==========================================================================
   Components - 面包屑
   ========================================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: #4a4d4c;
  margin-bottom: 16px;
  padding: 0;
}

.breadcrumb a {
  color: #d8ff7f;
}

.breadcrumb a:hover {
  color: #edb458;
}

.breadcrumb-sep {
  color: #4a4d4c;
}

.breadcrumb-current {
  color: #b5b8b6;
}

/* ==========================================================================
   Components - 页面标题区
   ========================================================================== */
.page-header {
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid #2a2d2b;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #f2f4f3;
  line-height: 1.3;
  margin-bottom: 8px;
}

.page-description {
  font-size: 0.9375rem;
  color: #b5b8b6;
  line-height: 1.6;
}

/* ==========================================================================
   Components - 侧栏
   ========================================================================== */
.aside-title,
.side-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #d8ff7f;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2d2b;
  letter-spacing: 0.04em;
}

.sidebar-left-aside,
.sidebar-right-aside,
.side-nav,
.side-mini,
.sidebar-left,
.sidebar-right,
.aside-left,
.aside-right {
  background-color: #161917;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 20px 16px;
}

.anchor-nav,
.aside-nav,
.aside-nav-list,
.side-list,
.aside-links,
.related-links,
.history-mini-list,
.archive-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.anchor-nav a,
.aside-nav a,
.aside-nav-list a,
.side-list a,
.aside-links a,
.history-mini-list a,
.archive-list a {
  display: block;
  padding: 8px 10px;
  font-size: 0.875rem;
  color: #b5b8b6;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.anchor-nav a:hover,
.aside-nav a:hover,
.aside-nav-list a:hover,
.side-list a:hover,
.aside-links a:hover,
.history-mini-list a:hover,
.archive-list a:hover {
  color: #d8ff7f;
  background-color: #1e221f;
}

.aside-note,
.aside-text {
  font-size: 0.8125rem;
  color: #4a4d4c;
  margin-top: 16px;
  line-height: 1.6;
}

.page-toc {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-toc a {
  display: block;
  padding: 6px 10px;
  font-size: 0.8125rem;
  color: #b5b8b6;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.page-toc a:hover {
  color: #d8ff7f;
  background-color: #1e221f;
}

/* ==========================================================================
   Components - 页脚
   ========================================================================== */
.site-footer {
  background-color: #161917;
  border-top: 2px solid #2a2d2b;
  margin-top: 64px;
}

.footer-inner {
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-site-name {
  font-size: 1rem;
  font-weight: 700;
  color: #d8ff7f;
}

.footer-slogan {
  font-size: 0.8125rem;
  color: #4a4d4c;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #f2f4f3;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #b5b8b6;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #d8ff7f;
}

.footer-boundary {
  font-size: 0.8125rem;
  color: #4a4d4c;
  line-height: 1.6;
  border-left: 2px solid #2a2d2b;
  padding-left: 16px;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  color: #4a4d4c;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #2a2d2b;
  line-height: 1.5;
}

/* ==========================================================================
   Components - 相关链接
   ========================================================================== */
.related-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 24px;
  margin-top: 32px;
  border-top: 1px solid #2a2d2b;
  border-bottom: 1px solid #2a2d2b;
  max-width: 1200px;
}

.related-links-label {
  font-size: 0.8125rem;
  color: #4a4d4c;
}

.related-links-item {
  font-size: 0.875rem;
  color: #d8ff7f;
  padding: 4px 10px;
  border: 1px solid #2a2d2b;
  border-radius: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.related-links-item:hover {
  border-color: #d8ff7f;
  color: #d8ff7f;
}

/* ==========================================================================
   Components - FAQ 手风琴
   ========================================================================== */
.faq-item {
  border: 1px solid #2a2d2b;
  border-radius: 6px;
  margin-bottom: 8px;
  background-color: #161917;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f2f4f3;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: #d8ff7f;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  background-color: #1e221f;
}

.faq-answer {
  padding: 0 16px 16px;
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.7;
}

.faq-answer p {
  margin-bottom: 8px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Components - 图片与图文
   ========================================================================== */
figure {
  margin: 0;
}

.hero-figure,
.card-figure,
.topic-figure,
.topic-media,
.guide-figure,
.media-figure,
.content-media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background-color: #1e221f;
}

.hero-figure img,
.card-figure img,
.topic-figure img,
.topic-media img,
.guide-figure img,
.media-figure img,
.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 0.8125rem;
  color: #4a4d4c;
  padding: 8px 12px;
  background-color: #161917;
  border-top: 1px solid #2a2d2b;
  line-height: 1.5;
}

/* ==========================================================================
   Pages - 首页
   ========================================================================== */

/* Hero 区 */
.hero-section {
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #f2f4f3;
  line-height: 1.3;
}

.hero-title span {
  color: #d8ff7f;
}

.hero-intro {
  font-size: 1rem;
  color: #b5b8b6;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 服务式分组入口（hero 下方三列） */
.hero-service-entry {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.service-item {
  background-color: #161917;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.service-item:hover {
  border-color: #d8ff7f;
  transform: translateY(-2px);
}

.service-title {
  font-size: 1rem;
  font-weight: 700;
  color: #d8ff7f;
}

.service-desc {
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
}

.service-item a {
  font-size: 0.875rem;
  color: #d8ff7f;
  margin-top: auto;
  align-self: flex-start;
}

/* 频道标签带 */
.channel-tags {
  padding: 32px 24px;
}

.section-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #f2f4f3;
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.section-title::before {
  content: "▮";
  position: absolute;
  left: 0;
  color: #d8ff7f;
}

.section-lead {
  font-size: 0.9375rem;
  color: #4a4d4c;
  margin-bottom: 24px;
  line-height: 1.6;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #161917;
  border: 1px solid #2a2d2b;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #f2f4f3;
  min-height: 44px;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tag-item:hover {
  border-color: #d8ff7f;
  background-color: #1e221f;
  color: #d8ff7f;
}

.tag-icon {
  font-size: 1rem;
  color: #d8ff7f;
}

/* 最新视频卡片区 */
.latest-videos {
  padding: 32px 24px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.video-card {
  background-color: #161917;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover {
  border-color: #d8ff7f;
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(216, 255, 127, 0.08);
}

.card-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.card-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f2f4f3;
  line-height: 1.4;
}

.card-summary {
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
  flex: 1;
}

.card-duration {
  font-size: 0.8125rem;
  color: #4a4d4c;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-duration::before {
  content: "▶";
  font-size: 0.75rem;
  color: #d8ff7f;
}

/* 专题片单预览 */
.featured-topics {
  padding: 32px 24px;
}

.topic-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.topic-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  background-color: #161917;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 12px;
  transition: border-color 0.2s ease;
}

.topic-item:hover {
  border-color: #d8ff7f;
}

.topic-figure {
  width: 160px;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
}

.topic-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topic-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
}

.topic-name {
  font-size: 1rem;
  font-weight: 700;
  color: #f2f4f3;
}

.topic-desc {
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
}

.topic-count {
  font-size: 0.8125rem;
  color: #4a4d4c;
}

.topic-more {
  margin-top: 24px;
  text-align: right;
}

.topic-more a {
  font-size: 0.9375rem;
  color: #d8ff7f;
  border-bottom: 1px solid #d8ff7f;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.topic-more a:hover {
  color: #edb458;
  border-color: #edb458;
}

/* 观看指南入口 */
.guide-entry {
  padding: 32px 24px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.step-item {
  background-color: #161917;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.step-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d8ff7f;
  line-height: 1;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #f2f4f3;
}

.step-desc {
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
}

.guide-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* FAQ 摘选 */
.faq-preview {
  padding: 32px 24px;
}

.faq-preview .faq-item {
  max-width: 800px;
}

.faq-more {
  margin-top: 24px;
}

.faq-more a {
  font-size: 0.9375rem;
  color: #d8ff7f;
  border-bottom: 1px solid #d8ff7f;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.faq-more a:hover {
  color: #edb458;
  border-color: #edb458;
}

/* ==========================================================================
   Pages - 内页布局系统
   ========================================================================== */

/* 文档式三栏布局：左栏 + 主内容 + 右栏 */
.layout-shell,
.page-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 220px;
  gap: 24px;
  padding: 32px 24px;
  max-width: 1200px;
  align-items: start;
}

/* 两栏布局（无右栏时） */
.layout-shell:has(.sidebar-right) {
  grid-template-columns: 220px minmax(0, 1fr) 220px;
}

.layout-shell:not(:has(.sidebar-right)) {
  grid-template-columns: 220px minmax(0, 1fr);
}

/* 主内容区 */
.inner-main {
  min-width: 0;
  max-width: 100%;
}

/* 左栏 */
.sidebar-left-aside,
.side-nav,
.sidebar-left,
.aside-left {
  position: sticky;
  top: 80px;
  align-self: start;
}

/* 右栏 */
.sidebar-right-aside,
.side-mini,
.sidebar-right,
.aside-right {
  position: sticky;
  top: 80px;
  align-self: start;
}

/* ==========================================================================
   Pages - 频道页（channel.html）
   ========================================================================== */
.page-channel .main-content {
  min-width: 0;
}

.page-channel .channel-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-channel .section-intro {
  font-size: 0.9375rem;
  color: #4a4d4c;
  margin-bottom: 24px;
  line-height: 1.6;
}

.page-channel .channel-item {
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 24px;
  background-color: #161917;
  scroll-margin-top: 80px;
}

.page-channel .channel-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d8ff7f;
  margin-bottom: 8px;
}

.page-channel .channel-summary {
  font-size: 0.9375rem;
  color: #b5b8b6;
  margin-bottom: 16px;
  line-height: 1.6;
}

.page-channel .video-card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.page-channel .video-card {
  background-color: #0f1110;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-channel .video-card:hover {
  border-color: #d8ff7f;
  transform: translateY(-2px);
}

.page-channel .video-card .card-figure {
  aspect-ratio: 16 / 9;
  border-radius: 0;
}

.page-channel .video-card .card-body {
  padding: 12px;
  gap: 6px;
}

.page-channel .video-card .card-title {
  font-size: 0.9375rem;
}

.page-channel .video-card .card-summary {
  font-size: 0.8125rem;
}

.page-channel .video-card .card-meta {
  font-size: 0.75rem;
  color: #4a4d4c;
  font-family: ui-monospace, Consolas, monospace;
}

/* 相关专题 */
.page-channel .related-topics-inline {
  margin-top: 48px;
  border-top: 1px solid #2a2d2b;
  padding-top: 24px;
}

.page-channel .related-topics-inline h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f2f4f3;
  margin-bottom: 8px;
}

.page-channel .related-topic-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.page-channel .related-topic-list a {
  display: block;
  padding: 10px 14px;
  background-color: #161917;
  border: 1px solid #2a2d2b;
  border-radius: 6px;
  font-size: 0.9375rem;
  color: #f2f4f3;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.page-channel .related-topic-list a:hover {
  border-color: #d8ff7f;
  color: #d8ff7f;
}

.page-channel .more-tip {
  margin-top: 16px;
}

.page-channel .more-tip a {
  font-size: 0.875rem;
  color: #d8ff7f;
  border-bottom: 1px solid #d8ff7f;
  padding-bottom: 2px;
}

/* ==========================================================================
   Pages - 专题页（ztpd.html）
   ========================================================================== */
.page-ztpd .archive-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-ztpd .archive-list a {
  display: block;
  padding: 8px 10px;
  font-size: 0.875rem;
  color: #b5b8b6;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.page-ztpd .archive-list a:hover {
  color: #d8ff7f;
  background-color: #1e221f;
}

.page-ztpd .topic-collection {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-ztpd .section-intro {
  font-size: 0.9375rem;
  color: #4a4d4c;
  margin-bottom: 24px;
  line-height: 1.6;
}

.page-ztpd .topic-item {
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  overflow: hidden;
  background-color: #161917;
  scroll-margin-top: 80px;
}

.page-ztpd .topic-media {
  width: 100%;
  aspect-ratio: 21 / 9;
  border-radius: 0;
}

.page-ztpd .topic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-ztpd .topic-body {
  padding: 24px;
}

.page-ztpd .topic-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d8ff7f;
  margin-bottom: 8px;
}

.page-ztpd .topic-guide {
  font-size: 0.9375rem;
  color: #b5b8b6;
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-ztpd .topic-clip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.page-ztpd .clip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background-color: #0f1110;
  border: 1px solid #2a2d2b;
  border-radius: 6px;
  transition: border-color 0.2s ease;
}

.page-ztpd .clip-card:hover {
  border-color: #d8ff7f;
}

.page-ztpd .clip-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-ztpd .clip-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #f2f4f3;
}

.page-ztpd .clip-duration {
  font-size: 0.75rem;
  color: #4a4d4c;
}

.page-ztpd .topic-view-tip {
  font-size: 0.875rem;
  color: #4a4d4c;
  line-height: 1.6;
}

.page-ztpd .topic-view-tip a {
  color: #d8ff7f;
  border-bottom: 1px solid #d8ff7f;
  padding-bottom: 1px;
}

.page-ztpd .topic-view-tip a:hover {
  color: #edb458;
  border-color: #edb458;
}

/* 历史归档 */
.page-ztpd .history-archive {
  margin-top: 48px;
  border-top: 1px solid #2a2d2b;
  padding-top: 24px;
}

.page-ztpd .history-archive h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f2f4f3;
  margin-bottom: 8px;
}

.page-ztpd .history-archive > p {
  font-size: 0.9375rem;
  color: #4a4d4c;
  margin-bottom: 16px;
}

.page-ztpd .history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-ztpd .history-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: #161917;
  border: 1px solid #2a2d2b;
  border-radius: 6px;
}

.page-ztpd .history-list a {
  font-size: 0.9375rem;
  color: #f2f4f3;
  transition: color 0.2s ease;
}

.page-ztpd .history-list a:hover {
  color: #d8ff7f;
}

.page-ztpd .publish-date {
  font-size: 0.8125rem;
  color: #4a4d4c;
}

.page-ztpd .related-link {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.page-ztpd .related-link a {
  font-size: 0.875rem;
  color: #d8ff7f;
  border-bottom: 1px solid #d8ff7f;
  padding-bottom: 2px;
}

.page-ztpd .related-link a:hover {
  color: #edb458;
  border-color: #edb458;
}

.page-ztpd .history-mini-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-ztpd .history-mini-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid #2a2d2b;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

.page-ztpd .history-mini-list li:hover {
  border-color: #d8ff7f;
}

.page-ztpd .history-mini-list a {
  font-size: 0.875rem;
  color: #f2f4f3;
}

.page-ztpd .history-mini-list a:hover {
  color: #d8ff7f;
  background: none;
}

.page-ztpd .mini-date {
  font-size: 0.75rem;
  color: #4a4d4c;
}

/* ==========================================================================
   Pages - 观看指南页（guankan.html）
   ========================================================================== */
.page-guankan .guide-article {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-guankan .guide-block {
  scroll-margin-top: 80px;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 24px;
  background-color: #161917;
}

.page-guankan .guide-block h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d8ff7f;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2d2b;
}

.page-guankan .guide-block p {
  font-size: 0.9375rem;
  color: #b5b8b6;
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-guankan .guide-block p:last-child {
  margin-bottom: 0;
}

.page-guankan .guide-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  margin: 16px 0;
}

.page-guankan .guide-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-guankan .guide-figure figcaption {
  font-size: 0.8125rem;
  color: #4a4d4c;
  padding: 8px 12px;
  background-color: #0f1110;
}

.page-guankan .guide-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.page-guankan .guide-list li {
  padding: 10px 14px;
  background-color: #0f1110;
  border: 1px solid #2a2d2b;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
}

.page-guankan .guide-list strong {
  color: #d8ff7f;
  font-weight: 600;
  margin-right: 4px;
}

.page-guankan .guide-notes {
  border: 1px solid #edb458;
  border-radius: 8px;
  padding: 20px 24px;
  background-color: rgba(237, 180, 88, 0.05);
}

.page-guankan .guide-notes h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #edb458;
  margin-bottom: 12px;
}

.page-guankan .guide-notes-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-guankan .guide-notes-list li {
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
  padding-left: 16px;
  position: relative;
}

.page-guankan .guide-notes-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: #edb458;
  font-weight: 700;
}

.page-guankan .guide-notes-list strong {
  color: #edb458;
  font-weight: 600;
}

/* ==========================================================================
   Pages - 入口核验页（rkhy.html）
   ========================================================================== */
.page-rkhy .content-section {
  scroll-margin-top: 80px;
  margin-bottom: 40px;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 24px;
  background-color: #161917;
}

.page-rkhy .content-section .section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d8ff7f;
  margin-bottom: 8px;
  padding-left: 0;
}

.page-rkhy .content-section .section-title::before {
  display: none;
}

.page-rkhy .content-section .section-intro {
  font-size: 0.9375rem;
  color: #b5b8b6;
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-rkhy .check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.page-rkhy .check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background-color: #0f1110;
  border: 1px solid #2a2d2b;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
}

.page-rkhy .check-item::before {
  content: "▢";
  color: #d8ff7f;
  font-size: 1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.page-rkhy .check-item code {
  background-color: #1e221f;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.8125rem;
  color: #d8ff7f;
}

.page-rkhy .media-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  margin: 16px 0;
}

.page-rkhy .media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-rkhy .media-figure figcaption {
  font-size: 0.8125rem;
  color: #4a4d4c;
  padding: 8px 12px;
  background-color: #0f1110;
}

.page-rkhy .step-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.page-rkhy .step-list .step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
  background-color: #0f1110;
  border: 1px solid #2a2d2b;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
}

.page-rkhy .step-list .step-item::before {
  content: attr(data-step);
  color: #d8ff7f;
  font-weight: 700;
  font-family: ui-monospace, Consolas, monospace;
  flex-shrink: 0;
}

.page-rkhy .section-note {
  font-size: 0.875rem;
  color: #edb458;
  line-height: 1.6;
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid #edb458;
  background-color: rgba(237, 180, 88, 0.05);
}

.page-rkhy .section-note a {
  color: #d8ff7f;
  border-bottom: 1px solid #d8ff7f;
  padding-bottom: 1px;
  margin: 0 4px;
}

.page-rkhy .section-note a:hover {
  color: #edb458;
  border-color: #edb458;
}

.page-rkhy .inner-links {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid #2a2d2b;
}

.page-rkhy .inner-links p {
  font-size: 0.875rem;
  color: #4a4d4c;
  line-height: 1.6;
}

.page-rkhy .inner-links a {
  color: #d8ff7f;
  border-bottom: 1px solid #d8ff7f;
  padding-bottom: 1px;
  margin: 0 4px;
}

.page-rkhy .inner-links a:hover {
  color: #edb458;
  border-color: #edb458;
}

/* ==========================================================================
   Pages - 下载说明页（xiazai.html）
   ========================================================================== */
.page-xiazai .main-content {
  min-width: 0;
}

.page-xiazai .content-section {
  margin-bottom: 40px;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 24px;
  background-color: #161917;
  scroll-margin-top: 80px;
}

.page-xiazai .content-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d8ff7f;
  margin-bottom: 8px;
}

.page-xiazai .content-section > p {
  font-size: 0.9375rem;
  color: #b5b8b6;
  line-height: 1.7;
  margin-bottom: 16px;
}

.page-xiazai .channel-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.page-xiazai .channel-card {
  background-color: #0f1110;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 20px;
  transition: border-color 0.2s ease;
}

.page-xiazai .channel-card:hover {
  border-color: #d8ff7f;
}

.page-xiazai .channel-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #f2f4f3;
  margin-bottom: 8px;
}

.page-xiazai .channel-card h3::before {
  content: "▸ ";
  color: #d8ff7f;
}

.page-xiazai .channel-card p {
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
}

.page-xiazai .note-text {
  font-size: 0.8125rem;
  color: #4a4d4c;
  line-height: 1.6;
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 3px solid #4a4d4c;
  background-color: #0f1110;
}

.page-xiazai .note-text a {
  color: #d8ff7f;
  border-bottom: 1px solid #d8ff7f;
  padding-bottom: 1px;
  margin: 0 4px;
}

.page-xiazai .note-text a:hover {
  color: #edb458;
  border-color: #edb458;
}

.page-xiazai .check-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  counter-reset: check-counter;
}

.page-xiazai .check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background-color: #0f1110;
  border: 1px solid #2a2d2b;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
  counter-increment: check-counter;
}

.page-xiazai .check-list li::before {
  content: counter(check-counter, decimal-leading-zero);
  color: #d8ff7f;
  font-family: ui-monospace, Consolas, monospace;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.page-xiazai .check-list strong {
  color: #f2f4f3;
  font-weight: 600;
}

.page-xiazai .media-figure {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  margin: 16px 0;
}

.page-xiazai .media-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-xiazai .media-figure figcaption {
  font-size: 0.8125rem;
  color: #4a4d4c;
  padding: 8px 12px;
  background-color: #0f1110;
}

.page-xiazai .permission-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.page-xiazai .permission-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background-color: #0f1110;
  border: 1px solid #2a2d2b;
  border-radius: 6px;
  font-size: 0.875rem;
  color: #b5b8b6;
  line-height: 1.6;
}

.page-xiazai .permission-list li::before {
  content: "◈";
  color: #edb458;
  flex-shrink: 0;
}

.page-xiazai .permission-list strong {
  color: #f2f4f3;
  font-weight: 600;
}

.page-xiazai .risk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.page-xiazai .risk-item {
  background-color: #0f1110;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 16px;
  transition: border-color 0.2s ease;
}

.page-xiazai .risk-item:hover {
  border-color: #edb458;
}

.page-xiazai .risk-item h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #edb458;
  margin-bottom: 6px;
}

.page-xiazai .risk-item h3::before {
  content: "⚠ ";
}

.page-xiazai .risk-item p {
  font-size: 0.8125rem;
  color: #b5b8b6;
  line-height: 1.6;
}

/* ==========================================================================
   Pages - 常见问题页（wenti.html）
   ========================================================================== */
.page-wenti .faq-group {
  margin-bottom: 40px;
  scroll-margin-top: 80px;
}

.page-wenti .faq-group-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #d8ff7f;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #2a2d2b;
}

.page-wenti .content-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  margin-bottom: 16px;
}

.page-wenti .content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-wenti .content-media figcaption {
  font-size: 0.8125rem;
  color: #4a4d4c;
  padding: 8px 12px;
  background-color: #0f1110;
}

.page-wenti .faq-group > p {
  font-size: 0.9375rem;
  color: #b5b8b6;
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-wenti .faq-answer a {
  color: #d8ff7f;
  border-bottom: 1px solid #d8ff7f;
  padding-bottom: 1px;
}

.page-wenti .faq-answer a:hover {
  color: #edb458;
  border-color: #edb458;
}

.page-wenti .aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-wenti .aside-links a {
  display: block;
  padding: 8px 10px;
  font-size: 0.875rem;
  color: #b5b8b6;
  border-radius: 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.page-wenti .aside-links a:hover {
  color: #d8ff7f;
  background-color: #1e221f;
}

/* ==========================================================================
   Pages - 404 页
   ========================================================================== */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
}

.error-panel {
  max-width: 560px;
  text-align: center;
  background-color: #161917;
  border: 1px solid #2a2d2b;
  border-radius: 8px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.error-code {
  font-size: 4rem;
  font-weight: 700;
  color: #d8ff7f;
  line-height: 1;
}

.error-panel h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f2f4f3;
}

.error-desc {
  font-size: 0.9375rem;
  color: #b5b8b6;
  line-height: 1.7;
}

.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.error-tip {
  font-size: 0.8125rem;
  color: #4a4d4c;
  line-height: 1.6;
}

/* ==========================================================================
   Responsive - 响应式
   ========================================================================== */

/* 平板：900px 以下 */
@media (max-width: 900px) {
  .layout-shell,
  .page-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 16px;
  }

  .layout-shell:has(.sidebar-right),
  .page-layout:has(.sidebar-right) {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .layout-shell .sidebar-right-aside,
  .layout-shell .sidebar-right,
  .layout-shell .side-mini,
  .page-layout .sidebar-right-aside,
  .page-layout .sidebar-right,
  .page-layout .aside-right {
    display: none;
  }

  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-channel .video-card-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 手机：768px 以下 */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #161917;
    border-bottom: 2px solid #2a2d2b;
    z-index: 99;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 4px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 14px;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* 首页布局 */
  .hero-section {
    grid-template-columns: 1fr;
    padding: 32px 16px 24px;
    gap: 24px;
  }

  .hero-service-entry {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .channel-tags,
  .latest-videos,
  .featured-topics,
  .guide-entry,
  .faq-preview {
    padding: 24px 16px;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .topic-item {
    grid-template-columns: 1fr;
  }

  .topic-figure {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  /* 内页布局 */
  .layout-shell,
  .page-layout {
    display: block;
    padding: 24px 16px;
  }

  .layout-shell .sidebar-left-aside,
  .layout-shell .sidebar-left,
  .layout-shell .side-nav,
  .page-layout .sidebar-left-aside,
  .page-layout .sidebar-left,
  .page-layout .aside-left {
    display: none;
  }

  .layout-shell .inner-main,
  .page-layout .main-content {
    width: 100%;
    max-width: 100%;
  }

  .breadcrumb {
    margin-bottom: 12px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 1.375rem;
  }

  /* 频道页 */
  .page-channel .channel-item {
    padding: 16px;
  }

  .page-channel .video-card-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* 专题页 */
  .page-ztpd .topic-body {
    padding: 16px;
  }

  .page-ztpd .topic-media {
    aspect-ratio: 16 / 9;
  }

  /* 下载页 */
  .page-xiazai .channel-cards {
    grid-template-columns: 1fr;
  }

  .page-xiazai .risk-grid {
    grid-template-columns: 1fr;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-boundary {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #2a2d2b;
    padding-top: 16px;
  }

  .footer-copy {
    grid-column: 1;
  }

  /* 404 */
  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 3rem;
  }

  /* 相关链接 */
  .related-links {
    padding: 12px 16px;
  }
}

/* 小屏手机：390px 以下 */
@media (max-width: 390px) {
  .hero-actions,
  .guide-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
  }

  .tag-list {
    flex-direction: column;
    align-items: stretch;
  }

  .tag-item {
    justify-content: flex-start;
  }
}
