/* ============================================================
   午夜影视 · 全站样式表
   视觉方向：明亮家居选品风（米白 + 浅木 + 分类色标）
   ============================================================ */

/* ------------------------------------------------------------
   BASE — 基础变量、重置与全站骨架
   ------------------------------------------------------------ */
:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-primary: #22324c;
  --color-accent: #c77b3f;
  --color-text: #2a2a2a;
  --color-text-sub: #6b6b6b;
  --color-pagehead-bg: #faf6f0;
  --color-border: #e8e2da;
  --color-border-light: #f0ece6;

  --color-movie: #4a5a8a;
  --color-series: #c47a4a;
  --color-doc: #5a7d5a;
  --color-anime: #9d6b9d;
  --color-special: #a38b3f;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;

  --container-inner: 1200px;
  --container-main: 860px;
  --container-side: 300px;
  --gap-page: 32px;

  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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;
}

table {
  border-collapse: collapse;
  width: 100%;
}

h1,
h2,
h3,
h4 {
  line-height: 1.35;
  color: var(--color-primary);
  font-weight: 700;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 12px;
}

/* 数字与元数据对齐 */
.meta,
.channel-table,
.step-num,
.playlist-samples,
.tips-list {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------
   LAYOUT — 全站统一骨架（页头 / 页脚 / 主容器 / 面包屑）
   ------------------------------------------------------------ */
.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--color-text-sub);
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--header-h);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-list li a {
  display: inline-block;
  padding: 8px 18px;
  font-size: 15px;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: background 0.2s, color 0.2s;
}

.nav-list li a:hover {
  background: var(--color-bg);
  color: var(--color-primary);
}

.nav-list li a.is-current {
  background: var(--color-primary);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  position: absolute;
  right: 16px;
  z-index: 3;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* 页脚 */
.site-footer {
  background: var(--color-primary);
  color: #d8dee8;
  margin-top: auto;
}

.footer-grid {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-brand .footer-logo {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: #b9c2d0;
}

.footer-links h3,
.footer-tags h3,
.footer-legal h3 {
  font-size: 15px;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-links ul li,
.footer-tags ul li {
  margin-bottom: 8px;
}

.footer-links ul li a,
.footer-tags ul li a {
  font-size: 14px;
  color: #b9c2d0;
  transition: color 0.2s;
}

.footer-links ul li a:hover,
.footer-tags ul li a:hover {
  color: #fff;
}

.footer-legal p {
  font-size: 13px;
  color: #9aa5b5;
  margin-bottom: 8px;
}

.footer-legal .copyright {
  margin-top: 16px;
}

/* 主容器 */
.site-main {
  flex: 1;
  width: 100%;
}

/* 内页统一骨架 */
.site-inner {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 0 24px;
}

.inner-main {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 0 24px 56px;
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  padding: 20px 0 16px;
  font-size: 14px;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--color-text-sub);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb-sep {
  color: #c9c2b8;
  margin: 0 2px;
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* 页面标题区 */
.page-header {
  background: var(--color-pagehead-bg);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin-bottom: 36px;
  border: 1px solid var(--color-border-light);
}

.page-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-description {
  font-size: 15px;
  color: var(--color-text-sub);
  max-width: 720px;
  line-height: 1.7;
}

/* 通用区块标题 */
.section-title {
  font-size: 24px;
  margin-bottom: 8px;
}

/* 相关链接条 */
.related-links {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid var(--color-border-light);
}

.related-links-label {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-right: 6px;
}

.related-links-item {
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-primary);
  transition: border-color 0.2s, background 0.2s;
}

.related-links-item:hover {
  border-color: var(--color-accent);
  background: var(--color-pagehead-bg);
}

/* ------------------------------------------------------------
   COMPONENTS — 通用组件
   ------------------------------------------------------------ */
/* 按钮 */
.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 15px;
  border: 1px solid var(--color-primary);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn:hover {
  background: #2d4160;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 50, 76, 0.18);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 15px;
  border: 1px solid var(--color-primary);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.btn-primary:hover {
  background: #2d4160;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(34, 50, 76, 0.18);
}

/* 分类色标 */
.type-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.type-movie {
  background: var(--color-movie);
}

.type-drama {
  background: var(--color-series);
}

.type-doc {
  background: var(--color-doc);
}

.type-anime {
  background: var(--color-anime);
}

.type-special {
  background: var(--color-special);
}

/* 图片容器统一约束 */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 页面侧栏布局 */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-page);
}

.page-layout.sidebar-left {
  grid-template-columns: var(--container-side) minmax(0, 1fr);
}

.page-layout.sidebar-left > .channel-index,
.page-layout.sidebar-left > .guide-help {
  grid-column: 1;
}

.page-layout.sidebar-left > .site-main,
.page-layout.sidebar-left > .guide-steps,
.page-layout.sidebar-left > .check-methods,
.page-layout.sidebar-left > .safety-tips {
  grid-column: 2;
}

/* 滚动出现动画（仅增强） */
.revealed {
  animation: fadeUp 0.5s ease-out both;
}

@keyframes fadeUp {
  from {
    opacity: 0.6;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------
   PAGES — 首页
   ------------------------------------------------------------ */
.home-main {
  max-width: var(--container-inner);
  margin: 0 auto;
  padding: 0 24px 48px;
}

/* Hero：左图右索引 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 32px;
  padding: 36px 0 44px;
  align-items: stretch;
}

.hero-media {
  min-height: 420px;
}

.hero-figure {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-border-light);
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-index {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.hero-title {
  font-size: 28px;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 24px;
  line-height: 1.7;
}

.index-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.index-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-bg);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.index-link:hover {
  border-color: var(--color-border);
  background: var(--color-pagehead-bg);
  transform: translateX(4px);
}

.index-link span {
  margin-left: 8px;
  font-size: 14px;
  color: var(--color-text-sub);
  font-weight: 400;
}

/* 核心事实 */
.facts {
  padding: 40px 0;
  border-top: 1px solid var(--color-border-light);
}

.facts .section-title {
  margin-bottom: 20px;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.facts-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text);
}

/* 分类入口 */
.entries {
  padding: 40px 0;
}

.entries .section-title {
  margin-bottom: 20px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.entry-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.entry-card:hover {
  box-shadow: 0 6px 18px rgba(34, 50, 76, 0.08);
  transform: translateY(-2px);
}

.entry-card img {
  width: 140px;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}

.entry-content {
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.entry-content h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.entry-content p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-bottom: 12px;
}

.entry-content a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
}

/* 内容预览 */
.preview {
  padding: 40px 0;
}

.preview-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.tag-index {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.tag-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tag-list li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.tag-list li a:hover {
  background: var(--color-bg);
  border-left-color: var(--color-accent);
}

.preview-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}

.preview-group {
  min-width: 0;
}

.group-title {
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
}

.content-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-snap-align: start;
  transition: box-shadow 0.2s, transform 0.2s;
}

.content-card:hover {
  box-shadow: 0 4px 14px rgba(34, 50, 76, 0.08);
  transform: translateY(-2px);
}

.content-card .meta {
  font-size: 13px;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.content-card .desc {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.6;
}

/* 下一屏预告 */
.next {
  padding: 24px 0 8px;
}

.next-banner {
  background: var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  text-align: center;
}

.next-banner h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.next-banner p {
  color: #c3ccda;
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 24px;
}

.next-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.next-banner .btn {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}

.next-banner .btn:hover {
  background: var(--color-pagehead-bg);
  color: var(--color-primary);
}

.next-banner .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #8fa0b8;
}

.next-banner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ------------------------------------------------------------
   PAGES — 频道分类页
   ------------------------------------------------------------ */
.channel-index {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  align-self: start;
}

.channel-index h2 {
  font-size: 18px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-light);
}

.channel-index ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.channel-index ul li a {
  display: block;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.channel-index ul li a:hover {
  background: var(--color-bg);
  border-left-color: var(--color-accent);
}

.channel-index p {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.6;
  padding: 0 4px;
}

.channel-endpoint {
  margin-bottom: 36px;
}

.channel-endpoint h2 {
  margin-bottom: 12px;
}

.channel-endpoint p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.75;
  max-width: 780px;
}

.channel-table-section {
  margin-bottom: 36px;
}

.channel-table-section h2 {
  margin-bottom: 16px;
}

.channel-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.channel-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
}

.channel-table thead th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: 0.3px;
}

.channel-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: top;
  line-height: 1.6;
}

.channel-table tbody tr:last-child td {
  border-bottom: none;
}

.channel-table tbody tr:nth-child(even) {
  background: var(--color-bg);
}

.channel-table .channel-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.channel-table .dot-movie {
  background: var(--color-movie);
}

.channel-table .dot-series {
  background: var(--color-series);
}

.channel-table .dot-doc {
  background: var(--color-doc);
}

.channel-table .dot-animation {
  background: var(--color-anime);
}

.table-note {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-top: 10px;
  line-height: 1.6;
}

.channel-example {
  margin-bottom: 36px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px;
}

.channel-example h2 {
  margin-bottom: 12px;
}

.channel-example p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.example-steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
  padding: 0;
}

.example-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
  padding: 12px 16px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.example-steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
}

.channel-misunderstand {
  margin-bottom: 36px;
}

.channel-misunderstand h2 {
  margin-bottom: 8px;
}

.channel-misunderstand > p {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 20px;
  max-width: 780px;
}

.misunderstand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.misunderstand-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.misunderstand-card:hover {
  box-shadow: 0 4px 14px rgba(34, 50, 76, 0.08);
  transform: translateY(-2px);
}

.misunderstand-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border-light);
}

.misunderstand-card p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.65;
  margin-bottom: 0;
}

.channel-visual {
  margin-bottom: 8px;
}

.channel-visual h2 {
  margin-bottom: 14px;
}

.channel-figure {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-border-light);
}

.channel-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.channel-figure figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-text-sub);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ------------------------------------------------------------
   PAGES — 主题片单页
   ------------------------------------------------------------ */
.tag-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.filter-label {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-right: 6px;
}

.filter-tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  color: var(--color-primary);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-tag:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.playlist-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.playlist-card:hover {
  box-shadow: 0 6px 18px rgba(34, 50, 76, 0.08);
  transform: translateY(-2px);
}

.playlist-media {
  width: 100%;
  height: 180px;
  background: var(--color-border-light);
  overflow: hidden;
}

.playlist-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.playlist-card:hover .playlist-media img {
  transform: scale(1.03);
}

.playlist-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.playlist-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.playlist-desc {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.playlist-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.playlist-samples li {
  display: inline-block;
}

.sample-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--color-text-sub);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
}

.playlist-note {
  font-size: 13px;
  color: var(--color-text-sub);
  border-top: 1px solid var(--color-border-light);
  padding-top: 12px;
  margin-bottom: 0;
}

.playlist-note a {
  font-weight: 500;
  color: var(--color-accent);
}

.playlist-relation {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 8px;
}

.playlist-relation h2 {
  margin-bottom: 12px;
}

.playlist-relation p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.75;
  max-width: 780px;
}

/* ------------------------------------------------------------
   PAGES — 观看指南页
   ------------------------------------------------------------ */
.guide-steps {
  margin-bottom: 36px;
}

.guide-steps > h2 {
  margin-bottom: 20px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.step-card:hover {
  box-shadow: 0 4px 14px rgba(34, 50, 76, 0.08);
  transform: translateY(-2px);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
}

.responsibility-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 999px;
  font-weight: 500;
}

.tag-site {
  background: #eef1f7;
  color: var(--color-primary);
  border: 1px solid #d5dce8;
}

.tag-user {
  background: #fbf3ec;
  color: var(--color-accent);
  border: 1px solid #ecdac8;
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 10px;
}

.step-card p a {
  font-weight: 500;
  color: var(--color-accent);
  font-size: 14px;
}

.check-methods {
  margin-bottom: 36px;
}

.check-methods > h2 {
  margin-bottom: 8px;
}

.section-lead {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 20px;
  max-width: 780px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.check-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px 22px;
}

.check-card h3 {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-border-light);
}

.check-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-card ul li {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-text);
  padding-left: 18px;
  position: relative;
}

.check-card ul li::before {
  content: "·";
  position: absolute;
  left: 4px;
  font-weight: 700;
  color: var(--color-accent);
}

.guide-media {
  margin-bottom: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-border-light);
}

.guide-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.guide-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-text-sub);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-top: none;
}

.safety-tips {
  margin-bottom: 36px;
}

.safety-tips > h2 {
  margin-bottom: 16px;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tips-list li {
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
}

.tips-list li:last-child {
  border-bottom: none;
}

.tips-list li strong {
  color: var(--color-primary);
  font-weight: 600;
  margin-right: 6px;
}

.guide-help {
  align-self: start;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}

.help-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}

.help-box h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.help-box p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin-bottom: 12px;
}

.help-box p a {
  display: inline-block;
  margin-right: 12px;
  font-weight: 500;
  color: var(--color-accent);
}

/* ------------------------------------------------------------
   PAGES — 常见问题页
   ------------------------------------------------------------ */
.faq-list {
  margin-bottom: 36px;
}

.faq-list .section-title {
  margin-bottom: 20px;
}

.content-media-inline {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--color-border-light);
}

.content-media-inline img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.content-media-inline figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: var(--color-text-sub);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-top: none;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--color-border);
}

.faq-item summary {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s;
}

.faq-item summary:hover {
  background: var(--color-bg);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px solid var(--color-border-light);
}

.faq-answer p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 8px;
  padding-top: 14px;
}

.faq-help {
  margin-bottom: 36px;
}

.help-card {
  background: var(--color-pagehead-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.help-card h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.help-card > p {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 14px;
}

.help-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.help-card ul li a {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-accent);
  padding: 6px 0;
}

.help-card ul li a:hover {
  color: var(--color-primary);
}

.faq-legal {
  margin-bottom: 8px;
}

.faq-legal > h2 {
  margin-bottom: 16px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.legal-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}

.legal-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.legal-item p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   PAGES — 关于本站页
   ------------------------------------------------------------ */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.about-intro h2 {
  font-size: 22px;
  margin-bottom: 14px;
  grid-column: 1;
}

.about-intro-copy {
  grid-column: 1;
}

.about-intro-copy p {
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 10px;
}

.about-figure {
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-border-light);
}

.about-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.about-figure figcaption {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--color-text-sub);
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-top: none;
}

.about-content {
  margin-bottom: 44px;
}

.about-content > h2 {
  margin-bottom: 8px;
}

.section-note {
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 20px;
  max-width: 780px;
}

.about-column-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.about-column-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.about-column-item:hover {
  box-shadow: 0 4px 14px rgba(34, 50, 76, 0.08);
  transform: translateY(-2px);
}

.about-column-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border-light);
}

.about-column-item p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.65;
  margin-bottom: 0;
}

.about-disclaimer {
  background: var(--color-pagehead-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 8px;
}

.about-disclaimer > h2 {
  font-size: 22px;
  margin-bottom: 20px;
}

.disclaimer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.disclaimer-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.disclaimer-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.disclaimer-item p {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.65;
  margin-bottom: 0;
}

.disclaimer-more {
  margin-top: 20px;
  font-size: 14px;
  color: var(--color-text-sub);
}

.disclaimer-more a {
  font-weight: 500;
  color: var(--color-accent);
  margin-right: 12px;
}

/* ------------------------------------------------------------
   PAGES — 404
   ------------------------------------------------------------ */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  min-height: 60vh;
}

.error-panel {
  text-align: center;
  max-width: 520px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
}

.error-code {
  font-size: 64px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 12px;
}

.error-panel h1 {
  font-size: 24px;
  margin-bottom: 14px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.error-panel .btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: background 0.2s, color 0.2s;
}

.error-panel .btn-secondary:hover {
  background: var(--color-primary);
  color: #fff;
}

.error-help {
  font-size: 13px;
  color: var(--color-text-sub);
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   RESPONSIVE — 断点：1024px / 768px / 390px
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr);
  }

  .facts-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .playlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .misunderstand-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .legal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout.sidebar-left {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
  }

  .preview-layout {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    justify-content: space-between;
    padding: 0 16px;
  }

  .brand-logo {
    position: static;
    transform: none;
    align-items: flex-start;
    padding: 10px 0;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 8px 16px rgba(34, 50, 76, 0.06);
    min-height: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    width: 100%;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li a {
    display: block;
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

  .inner-main {
    padding: 0 16px 48px;
  }

  .page-header {
    padding: 24px 20px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 26px;
  }

  .breadcrumb {
    padding: 14px 0 12px;
  }

  /* 首页 */
  .home-main {
    padding: 0 16px 40px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0 32px;
  }

  .hero-media,
  .hero-figure {
    min-height: 280px;
  }

  .hero-index {
    padding: 24px 20px;
  }

  .hero-title {
    font-size: 24px;
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .entry-card {
    grid-template-columns: 120px 1fr;
  }

  .entry-card img {
    width: 120px;
  }

  .preview-layout {
    grid-template-columns: 1fr;
  }

  .tag-index {
    position: static;
    padding: 16px;
  }

  .tag-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .tag-list li a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 12px;
    font-size: 13px;
  }

  .tag-list li a:hover {
    border-bottom-color: var(--color-accent);
  }

  .card-scroll {
    grid-auto-columns: minmax(200px, 85%);
  }

  .next-banner {
    padding: 32px 24px;
  }

  /* 内页侧栏 */
  .page-layout.sidebar-left {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-layout.sidebar-left > .channel-index,
  .page-layout.sidebar-left > .guide-help {
    grid-column: 1;
    position: static;
    order: -1;
  }

  .page-layout.sidebar-left > .site-main,
  .page-layout.sidebar-left > .guide-steps,
  .page-layout.sidebar-left > .check-methods,
  .page-layout.sidebar-left > .safety-tips {
    grid-column: 1;
  }

  /* 频道页 */
  .channel-index ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .channel-index ul li a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 12px;
    font-size: 13px;
  }

  .channel-index p {
    display: none;
  }

  .channel-table thead th,
  .channel-table tbody td {
    padding: 10px 12px;
  }

  .misunderstand-grid {
    grid-template-columns: 1fr;
  }

  .channel-figure img {
    height: 220px;
  }

  /* 片单页 */
  .playlist-grid {
    grid-template-columns: 1fr;
  }

  .playlist-media {
    height: 160px;
  }

  /* 指南页 */
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .check-grid {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .content-media-inline img {
    height: 200px;
  }

  /* 关于 */
  .about-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  .about-intro h2,
  .about-intro-copy,
  .about-figure {
    grid-column: 1;
    grid-row: auto;
  }

  .about-figure img {
    height: 200px;
  }

  .about-column-list {
    grid-template-columns: 1fr;
  }

  .about-disclaimer {
    padding: 24px 20px;
  }

  /* 页脚 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 16px 24px;
  }

  /* 404 */
  .error-panel {
    padding: 32px 24px;
  }

  .error-code {
    font-size: 48px;
  }
}

@media (max-width: 390px) {
  .header-inner {
    padding: 0 12px;
  }

  .brand-name {
    font-size: 17px;
  }

  .brand-tagline {
    font-size: 10px;
  }

  .hero-media,
  .hero-figure {
    min-height: 220px;
  }

  .hero-title {
    font-size: 22px;
  }

  .index-link {
    padding: 10px 12px;
    font-size: 14px;
  }

  .entry-card {
    grid-template-columns: 1fr;
  }

  .entry-card img {
    width: 100%;
    height: 140px;
  }

  .card-scroll {
    grid-auto-columns: minmax(180px, 88%);
  }

  .next-banner {
    padding: 28px 16px;
  }

  .page-header {
    padding: 20px 16px;
  }

  .page-title {
    font-size: 22px;
  }

  .about-figure img {
    height: 160px;
  }

  .channel-figure img {
    height: 180px;
  }

  .guide-media img {
    height: 200px;
  }

  .content-media-inline img {
    height: 160px;
  }

  .error-panel {
    padding: 24px 16px;
  }
}
