/* ==========================================================================
   糖心vlog视频在线 · 整站样式表
   视觉方向：会员中心风 + 媒体导航站
   ========================================================================== */

/* ==========================================================================
   Base — 变量、重置、全局基础
   ========================================================================== */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #1f2937;
  --primary: #223a5e;
  --primary-light: #2c4a78;
  --accent: #d99a3d;
  --accent-light: #e8b45e;
  --line: #e5e7eb;
  --success: #2f855a;
  --muted: #6b7280;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(31, 41, 55, 0.06);
  --shadow-md: 0 4px 12px rgba(31, 41, 55, 0.08);
  --container: 1200px;
  --header-h: 64px;
  --font-stack: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-num: "DIN Alternate", "PingFang SC", "Microsoft YaHei", sans-serif;
  --transition: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-stack);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.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;
}

/* ==========================================================================
   Layout — 全站骨架容器
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.brand-link:hover {
  color: var(--primary);
}

.brand-name {
  letter-spacing: 0.02em;
}

.site-nav .nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav .nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.site-nav .nav-list a:hover {
  color: var(--primary);
  background: #eef1f5;
}

.site-nav .nav-list a.is-current {
  color: var(--primary);
  font-weight: 600;
  background: #e8edf3;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius-sm);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.site-main {
  flex: 1;
  width: 100%;
}

.home-main {
  padding-bottom: 0;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 24px 20px 60px;
  width: 100%;
}

.site-footer {
  background: var(--primary);
  color: #cbd5e0;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px 24px;
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}

.footer-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 14px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: #aab8c8;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--accent-light);
}

.footer-about .footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-about p {
  font-size: 14px;
  color: #aab8c8;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: #8fa0b3;
}

/* 移动端底部快捷导航 */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 6px 4px;
}

.mobile-bottom-nav a.is-active {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Components — 面包屑、页头、卡片、列表、FAQ、标签
   ========================================================================== */

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  color: #9ca3af;
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 8px;
}

.page-description {
  font-size: 15px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.7;
}

/* 区块通用 */
.section-block {
  padding: 48px 0;
}

.section-head {
  max-width: var(--container);
  margin: 0 auto 28px;
  padding: 0 20px;
}

.section-head h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.section-desc {
  font-size: 14px;
  color: var(--muted);
}

.section-footer-link {
  max-width: var(--container);
  margin: 24px auto 0;
  padding: 0 20px;
  text-align: center;
}

.section-footer-link a {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--primary);
  background: var(--surface);
  transition: border-color var(--transition), color var(--transition);
}

.section-footer-link a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 状态标签 */
.status-badge,
.status-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #e6f4ea;
  color: var(--success);
  white-space: nowrap;
}

/* FAQ 折叠 */
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 16px 20px;
}

.faq-answer p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

/* ==========================================================================
   Pages — 首页
   ========================================================================== */

/* 顶部工具条 */
.top-toolbar {
  background: var(--primary);
  color: #cbd5e0;
  font-size: 13px;
}

.toolbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.toolbar-slogan {
  color: #aab8c8;
}

.toolbar-link {
  color: var(--accent-light);
  font-weight: 500;
}

.toolbar-link:hover {
  color: #ffffff;
}

/* 首屏焦点区 */
.hero-focus {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.hero-choices h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 480px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.choice-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.choice-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.choice-icon {
  font-size: 24px;
  line-height: 1;
}

.choice-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.choice-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* 频道分类速览 */
.channel-overview {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.channel-layout {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 32px;
}

.channel-layout.sidebar-left {
  grid-template-columns: 260px 1fr;
  align-items: start;
}

.channel-tree {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.tree-list li {
  margin-bottom: 2px;
}

.tree-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.tree-list a:hover {
  background: var(--surface);
  color: var(--primary);
}

.channel-panel .panel-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.panel-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.panel-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #eef1f5;
  border-radius: 999px;
  font-size: 13px;
  color: var(--primary);
}

.panel-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

.panel-link:hover {
  color: var(--accent);
}

/* 专题片单预览 */
.topic-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.topic-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.topic-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 16px 6px;
}

.topic-card p {
  font-size: 13px;
  color: var(--muted);
  padding: 0 16px;
  line-height: 1.6;
}

.topic-card .status-badge {
  margin: 12px 16px 16px;
}

/* 人气榜单摘要 */
.top-rank-preview {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.rank-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  transition: box-shadow var(--transition);
}

.rank-item:hover {
  box-shadow: var(--shadow-sm);
}

.rank-num {
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  min-width: 40px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rank-content {
  flex: 1;
  min-width: 0;
}

.rank-content h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.rank-content p {
  font-size: 13px;
  color: var(--muted);
}

.rank-link {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--primary);
  font-weight: 500;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), color var(--transition);
}

.rank-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* 观看指南三步 */
.steps-flow {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
}

.step-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.step-item p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.step-item a {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.step-item a:hover {
  color: var(--accent);
}

/* FAQ 精选 */
.faq-preview .faq-item {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.faq-preview .faq-item p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}

.faq-preview .faq-item a {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

/* ==========================================================================
   Pages — 频道分类页 (pindao)
   ========================================================================== */

.page-layout.sidebar-left {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.channel-tree-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.aside-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.channel-tree li {
  margin-bottom: 2px;
}

.channel-tree a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.channel-tree a:hover {
  background: #eef1f5;
  color: var(--primary);
}

.channel-panels {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.channel-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow var(--transition);
}

.channel-card:hover {
  box-shadow: var(--shadow-sm);
}

.channel-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.channel-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.channel-info > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.tag-list li {
  padding: 4px 12px;
  background: #eef1f5;
  border-radius: 999px;
  font-size: 13px;
  color: var(--primary);
}

.audience {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}

.audience strong {
  color: var(--ink);
  font-weight: 600;
}

.related-topics {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.related-topics span {
  font-size: 13px;
  color: var(--muted);
}

.related-topics a {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), color var(--transition);
}

.related-topics a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Pages — 专题片单页 (zhuanti)
   ========================================================================== */

.layout-shell.sidebar-right {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: start;
}

.zhuan-main {
  min-width: 0;
}

/* 专题主题目录 */
.topic-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.topic-toc h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.topic-toc ul li {
  margin-bottom: 2px;
}

.topic-toc ul a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.topic-toc ul a:hover {
  background: #eef1f5;
  color: var(--primary);
}

.toc-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}

/* 专题列表 */
.topic-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.topic-list > h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.topic-list > p {
  font-size: 14px;
  color: var(--muted);
}

.topic-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.topic-media img {
  width: 100%;
  aspect-ratio: 16 / 6;
  object-fit: cover;
}

.topic-body {
  padding: 20px 24px 24px;
}

.topic-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.topic-scope {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.topic-body > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.topic-items {
  counter-reset: topic-item;
  margin-bottom: 14px;
}

.topic-items li {
  counter-increment: topic-item;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.topic-items li::before {
  content: counter(topic-item);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.topic-items li:last-child {
  border-bottom: none;
}

.topic-related {
  font-size: 13px;
  color: var(--muted);
}

.topic-related a {
  color: var(--primary);
  font-weight: 500;
}

.topic-related a:hover {
  color: var(--accent);
}

/* 相关链接 */
.related-links {
  margin-top: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.related-links h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.related-links > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}

.related-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-nav a {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--primary);
  transition: border-color var(--transition), color var(--transition);
}

.related-nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ==========================================================================
   Pages — 人气榜单页 (bangdan)
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.rank-main {
  min-width: 0;
}

.rank-section {
  margin-bottom: 32px;
}

.rank-section-head {
  margin-bottom: 16px;
}

.rank-section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.rank-section-head p {
  font-size: 14px;
  color: var(--muted);
}

.rank-list-channels .rank-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.rank-no {
  font-family: var(--font-num);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  min-width: 36px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.rank-media {
  width: 64px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #eef1f5;
}

.rank-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.rank-desc {
  font-size: 13px;
  color: var(--muted);
}

.rank-body {
  font-size: 13px;
  color: var(--muted);
}

/* 更新列表 */
.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.update-tag {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: #e6f4ea;
  color: var(--success);
}

.update-body {
  min-width: 0;
}

.update-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.update-desc {
  font-size: 13px;
  color: var(--muted);
}

/* 榜单相关导航 */
.rank-links {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.rank-links p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
}

.rank-links a {
  display: inline-block;
  margin-right: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
}

.rank-links a:hover {
  color: var(--accent);
}

/* 榜单侧栏说明 */
.rank-aside {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.aside-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.aside-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 10px;
}

/* ==========================================================================
   Pages — 观看指南页 (guankan)
   ========================================================================== */

.guide-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.guide-section > p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

/* 检查列表 */
.check-list {
  margin-bottom: 16px;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink);
}

.check-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list strong {
  font-weight: 600;
  color: var(--ink);
  min-width: 80px;
  flex-shrink: 0;
}

/* 示意图 */
.guide-figure {
  margin: 20px 0;
}

.guide-figure img {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.guide-figure figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  text-align: center;
}

/* 步骤列表 */
.step-list {
  counter-reset: guide-step;
  margin-bottom: 16px;
}

.step-list li {
  counter-increment: guide-step;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink);
}

.step-list li::before {
  content: counter(guide-step);
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  min-width: 24px;
}

.step-list li:last-child {
  border-bottom: none;
}

.step-list strong {
  font-weight: 600;
  color: var(--ink);
}

/* 问题列表 */
.trouble-list {
  margin-bottom: 16px;
}

.trouble-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink);
}

.trouble-list li:last-child {
  border-bottom: none;
}

.trouble-list strong {
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

/* 更多帮助 */
.guide-more {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.guide-more p {
  font-size: 14px;
  color: var(--muted);
}

.guide-more a {
  display: inline-block;
  margin-right: 12px;
  font-weight: 500;
  color: var(--primary);
}

.guide-more a:hover {
  color: var(--accent);
}

/* 章节目录 */
.chapter-toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.toc-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.chapter-toc ul li {
  margin-bottom: 2px;
}

.chapter-toc ul a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.chapter-toc ul a:hover {
  background: #eef1f5;
  color: var(--primary);
}

/* ==========================================================================
   Pages — 常见问题页 (wenti)
   ========================================================================== */

.faq-main {
  min-width: 0;
}

.faq-group {
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.faq-group > h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.group-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

.content-media {
  margin-bottom: 16px;
}

.content-media-inline img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.content-media-inline figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
}

.faq-guide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.faq-guide h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.faq-guide p {
  font-size: 14px;
  color: var(--muted);
}

.faq-guide a {
  display: inline-block;
  margin-right: 12px;
  font-weight: 500;
  color: var(--primary);
}

.faq-guide a:hover {
  color: var(--accent);
}

/* FAQ 侧栏 */
.faq-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.sidebar-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 16px;
}

.sidebar-inner h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.topic-list li {
  margin-bottom: 2px;
}

.topic-list a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--ink);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.topic-list a:hover {
  background: #eef1f5;
  color: var(--primary);
}

.sidebar-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.sidebar-note a {
  color: var(--primary);
  font-weight: 500;
}

/* ==========================================================================
   Pages — 404
   ========================================================================== */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  flex: 1;
}

.error-content {
  text-align: center;
  max-width: 480px;
}

.error-code {
  font-family: var(--font-num);
  font-size: 72px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.error-content h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

.error-back {
  display: inline-block;
  padding: 10px 28px;
  background: var(--primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  transition: background var(--transition);
}

.error-back:hover {
  background: var(--primary-light);
  color: #ffffff;
}

/* ==========================================================================
   Responsive — 响应式断点
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }

  .footer-about {
    grid-column: span 3;
  }

  .channel-card {
    grid-template-columns: 220px 1fr;
  }
}

@media (max-width: 768px) {
  /* 页头 */
  .header-inner {
    height: 56px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav .nav-list {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }

  .site-nav .nav-list.is-open {
    display: flex;
  }

  .site-nav .nav-list a {
    padding: 12px 14px;
    font-size: 15px;
  }

  /* 顶部工具条 */
  .toolbar-inner {
    padding: 6px 16px;
    font-size: 12px;
  }

  .toolbar-slogan {
    display: none;
  }

  /* 首页 */
  .hero-focus {
    grid-template-columns: 1fr;
    padding: 24px 16px;
    gap: 20px;
  }

  .hero-media img {
    aspect-ratio: 16 / 9;
  }

  .hero-choices h1 {
    font-size: 24px;
  }

  .choice-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .choice-card {
    flex-direction: row;
    align-items: center;
    padding: 14px 16px;
  }

  .choice-icon {
    font-size: 20px;
  }

  .choice-text {
    font-size: 15px;
    min-width: 80px;
  }

  .choice-sub {
    font-size: 13px;
  }

  .section-block {
    padding: 32px 0;
  }

  .section-head {
    padding: 0 16px;
    margin-bottom: 20px;
  }

  .channel-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .channel-tree {
    display: flex;
    overflow-x: auto;
    padding: 8px;
    gap: 4px;
  }

  .tree-list {
    display: flex;
    gap: 4px;
    flex-wrap: nowrap;
  }

  .tree-list li {
    flex-shrink: 0;
  }

  .tree-list a {
    white-space: nowrap;
  }

  .topic-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 16px;
  }

  .rank-list {
    padding: 0 16px;
  }

  .rank-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .rank-link {
    margin-left: auto;
  }

  .steps-flow {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 0 16px;
  }

  .step-item {
    padding: 16px;
  }

  .faq-preview .faq-item {
    margin-left: 16px;
    margin-right: 16px;
  }

  .section-footer-link {
    padding: 0 16px;
  }

  /* 内页通用 */
  .inner-main {
    padding: 16px 16px 80px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-header {
    margin-bottom: 20px;
  }

  /* 频道页 */
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .channel-tree-wrap {
    position: static;
    padding: 12px;
  }

  .channel-tree {
    display: flex;
    overflow-x: auto;
    padding: 4px;
    gap: 4px;
  }

  .channel-tree li {
    flex-shrink: 0;
  }

  .channel-tree a {
    white-space: nowrap;
  }

  .channel-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .channel-media img {
    aspect-ratio: 16 / 9;
  }

  /* 专题页 */
  .layout-shell.sidebar-right {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .topic-toc {
    position: static;
    padding: 12px;
  }

  .topic-toc ul {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
  }

  .topic-toc ul li {
    flex-shrink: 0;
  }

  .topic-toc ul a {
    white-space: nowrap;
  }

  .toc-note {
    display: none;
  }

  .topic-media img {
    aspect-ratio: 16 / 9;
  }

  .topic-body {
    padding: 16px;
  }

  /* 榜单页 */
  .page-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .rank-aside {
    position: static;
  }

  .rank-media {
    width: 56px;
    height: 42px;
  }

  /* 观看指南 */
  .guide-section {
    padding: 20px 16px;
  }

  .chapter-toc {
    position: static;
    padding: 12px;
  }

  .chapter-toc ul {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
  }

  .chapter-toc ul li {
    flex-shrink: 0;
  }

  .chapter-toc ul a {
    white-space: nowrap;
  }

  .guide-figure img {
    aspect-ratio: 16 / 9;
  }

  /* FAQ 页 */
  .faq-sidebar {
    position: static;
  }

  .sidebar-inner {
    padding: 12px;
  }

  .sidebar-inner .topic-list {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
  }

  .sidebar-inner .topic-list li {
    flex-shrink: 0;
  }

  .sidebar-inner .topic-list a {
    white-space: nowrap;
  }

  .sidebar-note {
    display: none;
  }

  .faq-group {
    padding: 16px;
  }

  /* 页脚 */
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 32px 16px 16px;
  }

  .footer-about {
    grid-column: span 2;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  /* 移动端底部导航 */
  .mobile-bottom-nav {
    display: flex;
  }

  .site-body {
    padding-bottom: 52px;
  }

  .site-footer {
    margin-bottom: 52px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .footer-about {
    grid-column: span 2;
  }

  .check-list strong {
    min-width: 60px;
  }

  .rank-item {
    padding: 12px;
  }

  .rank-num {
    font-size: 20px;
    min-width: 32px;
  }

  .rank-link {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
