/* ==========================================================================
   蜜柚影视 kebao.net — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --canvas: #FBF8F4;
  --ink: #1C1A17;
  --accent: #C1503C;
  --accent-deep: #99331F;
  --green: #2E5548;
  --gray: #6A6660;
  --line: #DED8CF;
  --line-soft: #EAE4DB;
  --tint: #F4EFE8;
  --mark-drama: #C1503C;
  --mark-doc: #2E5548;
  --mark-anime: #7A5A8C;
  --mark-variety: #B07A28;
  --mark-short: #3F6B8C;
  --radius: 2px;
  --shell: 1120px;
  --shell-pad: 24px;
  --font: system-ui, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-feature-settings: "tnum" 1;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  transition: color .15s ease, text-decoration-color .15s ease;
}

a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
}

strong {
  font-weight: 700;
}

time {
  font-variant-numeric: tabular-nums;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--ink);
  color: #FBF8F4;
  border-radius: var(--radius);
  transition: top .15s ease;
}

.skip-link:focus {
  top: 12px;
  color: #FBF8F4;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. layout — 页头 / 主容器 / 页脚 骨架
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--ink);
  color: #FBF8F4;
  border-bottom: 1px solid #2C2925;
}

.header-inner {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--shell-pad);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  height: 44px;
  font-size: 20px;
  font-weight: 700;
  color: #FBF8F4;
  white-space: nowrap;
}

.brand:hover {
  color: #FBF8F4;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item > a {
  display: inline-flex;
  align-items: center;
  height: 68px;
  padding: 0 12px;
  font-size: 15px;
  color: #E7E1D8;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-item > a:hover {
  color: #FBF8F4;
  text-decoration: none;
}

.nav-item.is-current > a {
  color: #FBF8F4;
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: -8px;
  color: #C9C2B8;
  font-size: 11px;
  line-height: 1;
}

.sub-toggle::after {
  content: "▾";
  display: block;
}

.sub-toggle[aria-expanded="true"]::after {
  content: "▴";
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 148px;
  padding: 6px 0;
  background: #FBF8F4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(28, 26, 23, .12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}

.nav-item.has-sub:hover .sub-menu,
.nav-item.has-sub:focus-within .sub-menu,
.sub-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}

.sub-menu li a:hover {
  background: var(--tint);
  color: var(--accent-deep);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #3A3630;
  border-radius: var(--radius);
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: #FBF8F4;
}

.site-main {
  display: block;
}

.home-main,
.inner-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--shell-pad) 56px;
}

.inner-main {
  padding-top: 20px;
}

/* 面包屑 */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--gray);
}

.breadcrumb a:hover {
  color: var(--accent-deep);
}

.breadcrumb-sep {
  color: #B4AEA4;
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 */

.page-header {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  max-width: 860px;
}

/* 页脚 */

.site-footer {
  background: #211E1A;
  color: #CFC8BD;
  border-top: 1px solid #2E2A25;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 40px var(--shell-pad) 24px;
}

.footer-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #35302A;
}

.footer-group h2 {
  font-size: 13px;
  font-weight: 700;
  color: #FBF8F4;
  margin-bottom: 12px;
  padding-left: 8px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul li:last-child {
  margin-bottom: 0;
}

.footer-group a {
  font-size: 14px;
  color: #C4BDB2;
  line-height: 1.6;
}

.footer-group a:hover {
  color: #FBF8F4;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 18px;
  font-size: 12px;
  color: #8E877C;
}

.footer-brand {
  margin: 0;
  color: #E7E1D8;
  font-weight: 600;
}

.footer-tagline {
  margin: 0;
}

/* --------------------------------------------------------------------------
   3. components — 通用模块
   -------------------------------------------------------------------------- */

.column-head {
  margin-bottom: 14px;
}

.column-head h2 {
  font-size: 22px;
  line-height: 1.35;
  padding-left: 9px;
  border-left: 3px solid var(--accent);
}

.column-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
}

/* 表格 */

.table-scroll,
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFDFA;
}

.data-table,
.field-table {
  min-width: 100%;
  font-size: 13px;
  line-height: 1.6;
}

.data-table caption,
.field-table caption {
  caption-side: top;
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  color: var(--gray);
  border-bottom: 1px solid var(--line-soft);
}

.data-table thead th,
.field-table thead th {
  background: var(--green);
  color: #F4F0E9;
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
  border-bottom: 1px solid #24443A;
}

.data-table tbody th,
.field-table tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink);
  background: var(--tint);
  padding: 11px 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-soft);
}

.data-table tbody td,
.field-table tbody td {
  padding: 11px 14px;
  color: #3B3732;
  vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td,
.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover th,
.data-table tbody tr:hover td {
  background: #F7F2EA;
}

/* 要点摘要框 */

.key-points,
.key-summary,
.summary-box {
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 26px;
}

.key-points-title,
.summary-title,
.key-summary h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--green);
}

.key-points-list li,
.summary-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #3B3732;
}

.key-points-list li:last-child,
.summary-list li:last-child {
  margin-bottom: 0;
}

.key-points-list li::before,
.summary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

/* 目录 / 锚点条 */

.anchor-bar,
.toc-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--canvas);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  padding: 0;
}

.anchor-list,
.toc-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.anchor-list li,
.toc-list li {
  flex: 0 0 auto;
}

.anchor-list a,
.toc-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--gray);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.anchor-list a:hover,
.toc-list a:hover {
  color: var(--accent-deep);
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.toc-bar {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.toc-label {
  display: inline-flex;
  align-items: center;
  padding: 0 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

/* 规则列表 / 普通列表 */

.rule-list li,
.plain-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.75;
  color: #3B3732;
}

.rule-list li:last-child,
.plain-list li:last-child {
  margin-bottom: 0;
}

.rule-list li::before,
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 1px;
}

.rule-list li strong,
.plain-list li strong {
  color: var(--ink);
}

/* 来源说明 */

.source-note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.source-note h2 {
  font-size: 17px;
  margin-bottom: 8px;
}

.source-note p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.75;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 14px;
}

/* 相关内容 */

.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 32px 0 0;
  padding: 16px 18px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.related-links-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.related-links-item {
  font-size: 14px;
}

/* 折叠问答（首页） */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  padding: 14px 2px;
  text-align: left;
}

.faq-question {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}

.faq-sign {
  flex: 0 0 auto;
  width: 22px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  color: var(--accent);
}

.faq-toggle[aria-expanded="true"] .faq-sign::before {
  content: "−";
}

.faq-toggle[aria-expanded="false"] .faq-sign::before {
  content: "+";
}

.faq-answer {
  padding: 0 2px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #3B3732;
}

.faq-answer[hidden] {
  display: none;
}

.faq-more {
  margin-top: 14px;
  font-size: 14px;
}

/* 图片容器通用约束 */

.channel-figure,
.collection-figure,
.guide-figure,
.content-figure,
.entry-figure,
.faq-figure,
.photo-figure {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFDFA;
  overflow: hidden;
}

.channel-figure img,
.collection-figure img,
.guide-figure img,
.content-figure img,
.entry-figure img,
.faq-figure img,
.photo-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.channel-figure figcaption,
.collection-figure figcaption,
.guide-figure figcaption,
.content-figure figcaption,
.entry-figure figcaption,
.faq-figure figcaption,
.photo-caption {
  padding: 10px 14px;
  background: #FFFDFA;
  border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------------------
   4. pages — 首页
   -------------------------------------------------------------------------- */

.home-main {
  padding-top: 0;
}

/* 焦点区 */

.hero {
  margin: 0 calc(var(--shell-pad) * -1) 0;
  background: #17150F;
}

.hero-figure {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  aspect-ratio: 16 / 7;
}

.hero-caption {
  position: relative;
  margin-top: -1px;
  padding: 20px 24px 22px;
  background: #17150F;
  color: #FBF8F4;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
  color: #FBF8F4;
  background: var(--accent);
  border-radius: var(--radius);
}

.hero-caption h1 {
  font-size: 34px;
  line-height: 1.3;
  color: #FBF8F4;
  max-width: 800px;
}

.hero-lead {
  margin: 10px 0 0;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.75;
  color: #D7D0C5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px 24px 14px;
  font-size: 12px;
  color: #A9A298;
  border-bottom: 1px solid #2C2925;
}

.hero-meta .meta-channel {
  color: #E7E1D8;
}

.hero-meta .meta-dot {
  width: 3px;
  height: 3px;
  background: #6A6660;
  border-radius: 50%;
}

/* 快速入口条 */

.quick-entry {
  margin: 24px 0 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFDFA;
}

.quick-entry-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-entry-item {
  border-right: 1px solid var(--line);
}

.quick-entry-item:last-child {
  border-right: 0;
}

.quick-entry-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  color: var(--ink);
}

.quick-entry-item a:hover {
  background: var(--tint);
  text-decoration: none;
}

.entry-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  padding-left: 8px;
  border-left: 3px solid var(--accent);
  line-height: 1.4;
}

.entry-desc {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--gray);
}

/* 三栏总览 */

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 536fr) minmax(0, 268fr) minmax(0, 268fr);
  gap: 24px;
  margin-bottom: 44px;
}

.overview-main,
.overview-side {
  min-width: 0;
}

.overview-main .column-head h2 {
  font-size: 22px;
}

/* 本期专题片单 */

.featured-list {
  border-top: 1px solid var(--line);
}

.featured-item {
  border-bottom: 1px solid var(--line);
}

.featured-link {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  color: var(--ink);
}

.featured-link:hover {
  text-decoration: none;
}

.featured-link:hover .entry-name {
  color: var(--accent-deep);
}

.featured-thumb {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #EFE9E0;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.featured-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.featured-body .entry-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  padding-left: 0;
  border-left: 0;
}

.featured-order {
  font-size: 12px;
  color: var(--accent-deep);
  font-weight: 600;
}

.featured-body .entry-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--gray);
}

.featured-body .featured-enter {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-deep);
}

/* 频道速览 */

.channel-brief-list {
  border-top: 1px solid var(--line);
}

.channel-brief-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.channel-mark {
  flex: 0 0 auto;
  width: 3px;
  align-self: stretch;
  min-height: 34px;
  border-radius: 1px;
}

.mark-drama { background: var(--mark-drama); }
.mark-doc { background: var(--mark-doc); }
.mark-anime { background: var(--mark-anime); }
.mark-variety { background: var(--mark-variety); }
.mark-short { background: var(--mark-short); }

.channel-brief-item a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: var(--ink);
}

.channel-brief-item a:hover {
  text-decoration: none;
}

.channel-brief-item a:hover .channel-name {
  color: var(--accent-deep);
}

.channel-name {
  font-size: 14.5px;
  font-weight: 700;
}

.channel-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--gray);
}

/* 最近修订 */

.revision-list {
  border-top: 1px solid var(--line);
}

.revision-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 52px;
  gap: 8px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
}

.revision-date {
  color: var(--gray);
  font-variant-numeric: tabular-nums;
}

.revision-name {
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.revision-type {
  text-align: right;
  color: var(--accent-deep);
}

.revision-more {
  margin-top: 12px;
  font-size: 13px;
}

/* 主推作品摄影区 */

.photo-feature {
  margin-bottom: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.photo-feature-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
}

.photo-index {
  min-width: 0;
}

.photo-index-list {
  border-left: 1px solid var(--line);
}

.photo-index-list li a {
  display: block;
  padding: 9px 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--gray);
  border-left: 3px solid transparent;
  margin-left: -1px;
}

.photo-index-list li a:hover {
  color: var(--accent-deep);
  border-left-color: var(--accent);
  background: var(--tint);
  text-decoration: none;
}

.photo-figure img {
  aspect-ratio: 3 / 2;
}

.meta-table {
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFDFA;
}

.meta-table-caption {
  caption-side: top;
  padding: 10px 12px;
  text-align: left;
  font-size: 12px;
  color: var(--gray);
  border-bottom: 1px solid var(--line-soft);
}

.meta-table tbody th {
  text-align: left;
  width: 82px;
  padding: 9px 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--tint);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

.meta-table tbody td {
  padding: 9px 12px;
  color: #3B3732;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.meta-table tbody tr:last-child th,
.meta-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 字段字典摘录 */

.field-digest {
  margin-bottom: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.field-digest-more {
  margin-top: 12px;
  font-size: 14px;
}

/* 观看准备三步 */

.prep-steps {
  margin-bottom: 44px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.prep-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.prep-item {
  position: relative;
  padding: 18px 18px 20px;
  background: #FFFDFA;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  min-width: 0;
}

.prep-num {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.prep-item h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.prep-item p {
  font-size: 14px;
  line-height: 1.75;
  color: #46413B;
}

.prep-more {
  margin-top: 14px;
  font-size: 14px;
}

/* 首页常见问题 */

.home-faq {
  margin-bottom: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

/* 反馈引导条 */

.feedback-strip {
  padding: 24px 26px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  margin-bottom: 8px;
}

.feedback-strip h2 {
  font-size: 19px;
  margin-bottom: 8px;
}

.feedback-strip p {
  font-size: 14.5px;
  line-height: 1.75;
  color: #3B3732;
  max-width: 780px;
}

.feedback-strip-link {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   5. pages — 内页通用标题区与区块
   -------------------------------------------------------------------------- */

.page-head {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title-block {
  min-width: 0;
}

.page-label,
.section-label,
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  line-height: 1.6;
}

.label-bar {
  display: inline-block;
  width: 3px;
  height: 14px;
  background: var(--accent);
  border-radius: 1px;
}

.page-lead,
.lede {
  max-width: 720px;
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.8;
  color: #3B3732;
}

.page-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
}

.meta-item,
.meta-date,
.meta-cat {
  font-variant-numeric: tabular-nums;
}

.meta-sep {
  color: #B4AEA4;
}

.container {
  min-width: 0;
}

.section-block {
  margin-bottom: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.section-block > .container > h2,
.section-block > h2,
.content-section > h2,
.guide-section > h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 12px;
  padding-left: 9px;
  border-left: 3px solid var(--accent);
}

.section-block > .container > p,
.section-block > p,
.content-section > p,
.guide-section > p {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: #3B3732;
  margin-bottom: 14px;
}

.section-intro {
  max-width: 760px;
}

.content-section {
  margin-bottom: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.content-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

/* --------------------------------------------------------------------------
   6. pages — 频道图谱
   -------------------------------------------------------------------------- */

.section-channels .channel-block {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.section-channels .channel-block:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.channel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.channel-bar {
  display: inline-block;
  width: 3px;
  height: 22px;
  border-radius: 1px;
}

.channel-bar-drama { background: var(--mark-drama); }
.channel-bar-doc { background: var(--mark-doc); }
.channel-bar-anime { background: var(--mark-anime); }
.channel-bar-variety { background: var(--mark-variety); }
.channel-bar-short { background: var(--mark-short); }

.channel-head h3 {
  font-size: 19px;
}

.channel-block > .channel-desc {
  max-width: 760px;
  font-size: 15px;
  line-height: 1.8;
  color: #3B3732;
  margin-bottom: 16px;
}

.channel-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.channel-forms {
  min-width: 0;
}

.channel-forms h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: var(--green);
}

.form-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.75;
  color: #3B3732;
}

.form-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 1px;
}

.channel-link {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

.cross-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.cross-item {
  padding: 16px 18px;
  background: #FFFDFA;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
}

.cross-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.cross-item p {
  font-size: 14px;
  line-height: 1.75;
  color: #46413B;
}

/* --------------------------------------------------------------------------
   7. pages — 专题片单
   -------------------------------------------------------------------------- */

.page-container {
  min-width: 0;
}

.page-container .page-title {
  margin-bottom: 0;
}

.page-container > .page-title {
  font-size: 34px;
}

.page-container > .section-block {
  margin-bottom: 30px;
}

.collection-item {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.collection-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.collection-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
}

.collection-seq {
  min-width: 0;
}

.collection-seq ol {
  border-left: 1px solid var(--line);
}

.collection-seq ol li a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--gray);
  border-left: 3px solid transparent;
  margin-left: -1px;
}

.collection-seq ol li a:hover {
  color: var(--accent-deep);
  border-left-color: var(--accent);
  background: var(--tint);
  text-decoration: none;
}

.collection-figure {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   8. pages — 观看准备
   -------------------------------------------------------------------------- */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

.page-content {
  min-width: 0;
  max-width: 760px;
}

.page-aside {
  min-width: 0;
  padding: 20px;
  background: #FFFDFA;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: var(--radius);
}

.page-aside > h2 {
  font-size: 17px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.scope-group {
  margin-bottom: 18px;
}

.scope-group h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--green);
}

.scope-group ul li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 7px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #3B3732;
}

.scope-group ul li:last-child {
  margin-bottom: 0;
}

.scope-provide ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.scope-cannot ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gray);
}

.aside-links {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aside-links h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--green);
}

.aside-links ul li {
  margin-bottom: 7px;
}

.aside-links ul li a {
  font-size: 13.5px;
}

.toc {
  margin-bottom: 26px;
  padding: 14px 18px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
}

.toc ul li {
  margin-bottom: 6px;
}

.toc ul li:last-child {
  margin-bottom: 0;
}

.toc ul li a {
  font-size: 14px;
}

.guide-section {
  margin-bottom: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.check-item {
  min-width: 0;
  padding: 16px 18px 18px;
  background: #FFFDFA;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.check-num {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.check-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.check-item > p {
  font-size: 14px;
  line-height: 1.75;
  color: #46413B;
  margin-bottom: 8px;
}

.check-note {
  margin: 0;
  padding-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--green);
  border-top: 1px dashed var(--line);
}

.guide-figure {
  margin: 16px 0 20px;
}

.table-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--gray);
}

/* --------------------------------------------------------------------------
   9. pages — 编目说明
   -------------------------------------------------------------------------- */

.field-table tbody th {
  width: 96px;
  position: sticky;
  left: 0;
  z-index: 1;
}

.missing-list {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

.missing-list li {
  padding: 16px 18px;
  background: #FFFDFA;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  min-width: 0;
}

.missing-list li h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.missing-list li p {
  font-size: 14px;
  line-height: 1.75;
  color: #46413B;
}

.entry-figure {
  margin: 16px 0 20px;
}

.entry-breakdown {
  border-top: 1px solid var(--line);
}

.entry-breakdown li {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
  color: #3B3732;
}

.field-key {
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   10. pages — 常见问答
   -------------------------------------------------------------------------- */

.faq-group {
  margin-bottom: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.faq-group-title {
  font-size: 22px;
  margin-bottom: 12px;
  padding-left: 9px;
  border-left: 3px solid var(--accent);
}

.faq-group details.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-group details.faq-item:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-group details.faq-item summary {
  position: relative;
  display: block;
  padding: 14px 34px 14px 2px;
  min-height: 52px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-group details.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-group details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--accent);
}

.faq-group details.faq-item[open] summary::after {
  content: "−";
}

.faq-group details.faq-item summary:hover {
  color: var(--accent-deep);
}

.faq-group details.faq-item .faq-answer {
  padding: 0 2px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: #3B3732;
}

.faq-group details.faq-item .faq-answer p {
  margin-bottom: 8px;
}

.faq-group details.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-figure {
  margin: 8px 0 30px;
}

/* --------------------------------------------------------------------------
   11. pages — 纠错反馈
   -------------------------------------------------------------------------- */

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.step-card {
  min-width: 0;
  padding: 16px 18px 18px;
  background: #FFFDFA;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.step-num {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.step-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-card > p {
  font-size: 14px;
  line-height: 1.75;
  color: #46413B;
  margin-bottom: 8px;
}

.step-note {
  margin: 0;
  padding-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--green);
  border-top: 1px dashed var(--line);
}

.content-figure {
  margin: 24px 0;
}

.process-list {
  counter-reset: proc;
  margin-top: 8px;
}

.process-list li {
  position: relative;
  padding: 0 0 14px 34px;
  font-size: 15px;
  line-height: 1.8;
  color: #3B3732;
  border-left: 1px solid var(--line);
  margin-left: 11px;
}

.process-list li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.process-list li::before {
  counter-increment: proc;
  content: counter(proc);
  position: absolute;
  left: -11px;
  top: 2px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #FBF8F4;
  background: var(--green);
  border-radius: 50%;
}

.process-list li strong {
  color: var(--ink);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   12. pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 64px var(--shell-pad) 88px;
}

.error-inner {
  max-width: 640px;
  padding: 32px 30px;
  background: #FFFDFA;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.error-code {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.error-inner h1 {
  font-size: 30px;
  line-height: 1.35;
  margin-bottom: 12px;
}

.error-lead {
  font-size: 15px;
  line-height: 1.8;
  color: #3B3732;
  margin-bottom: 8px;
}

.error-hint {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray);
  margin-bottom: 20px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.error-links li a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--accent-deep);
}

.error-links li a:hover {
  background: #EFE7DC;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   13. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .overview-main {
    grid-column: 1 / -1;
  }

  .photo-feature-grid {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .photo-feature-grid .meta-table {
    grid-column: 1 / -1;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 288px;
    gap: 32px;
  }

  .collection-grid {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .collection-grid .meta-table {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 50;
    display: block;
    background: #211E1A;
    border-bottom: 1px solid #35302A;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    flex-wrap: wrap;
    border-bottom: 1px solid #2E2A25;
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-item > a {
    flex: 1 1 auto;
    height: 48px;
    padding: 0 20px;
    border-bottom: 0;
    border-left: 3px solid transparent;
  }

  .nav-item.is-current > a {
    border-left-color: var(--accent);
    border-bottom-color: transparent;
    background: #272320;
  }

  .sub-toggle {
    width: 48px;
    height: 48px;
    margin-left: 0;
    border-left: 1px solid #2E2A25;
  }

  .sub-menu {
    position: static;
    width: 100%;
    min-width: 0;
    padding: 0;
    background: #1B1915;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .sub-menu.is-open {
    display: block;
  }

  .sub-menu li a {
    padding: 11px 20px 11px 36px;
    color: #C9C2B8;
    font-size: 14px;
  }

  .sub-menu li a:hover {
    background: #272320;
    color: #FBF8F4;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-content {
    max-width: 100%;
  }

  .page-aside {
    order: 2;
  }

  .cross-grid,
  .prep-list,
  .check-grid,
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .footer-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 720px) {
  :root {
    --shell-pad: 16px;
  }

  .header-inner {
    height: 56px;
  }

  .site-nav {
    top: 56px;
  }

  .brand {
    font-size: 18px;
  }

  .page-title,
  .hero-caption h1,
  .error-inner h1 {
    font-size: 26px;
  }

  .page-container > .page-title {
    font-size: 26px;
  }

  .hero {
    margin-left: calc(var(--shell-pad) * -1);
    margin-right: calc(var(--shell-pad) * -1);
  }

  .hero-figure img {
    aspect-ratio: 16 / 10;
    max-height: 300px;
  }

  .hero-caption {
    padding: 16px var(--shell-pad) 18px;
  }

  .hero-meta {
    padding: 10px var(--shell-pad) 14px;
  }

  .quick-entry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-entry-item {
    border-bottom: 1px solid var(--line);
  }

  .quick-entry-item:nth-child(2n) {
    border-right: 0;
  }

  .quick-entry-item:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .overview-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .overview-main {
    grid-column: auto;
  }

  .featured-link {
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 12px;
  }

  .photo-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .photo-figure {
    order: 1;
  }

  .photo-index {
    order: 2;
  }

  .photo-feature-grid .meta-table {
    order: 3;
    grid-column: auto;
  }

  .photo-index-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .photo-index-list li {
    flex: 0 0 auto;
  }

  .photo-index-list li a {
    margin-left: 0;
    border-left: 0;
    border-bottom: 3px solid transparent;
    padding: 8px 10px;
  }

  .photo-index-list li a:hover {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .prep-list,
  .cross-grid,
  .check-grid,
  .step-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .collection-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .collection-figure {
    order: 1;
  }

  .collection-grid .meta-table {
    order: 2;
    grid-column: auto;
  }

  .collection-seq {
    order: 3;
  }

  .collection-seq ol {
    display: flex;
    flex-wrap: wrap;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .collection-seq ol li {
    flex: 0 0 auto;
  }

  .collection-seq ol li a {
    margin-left: 0;
    border-left: 0;
    border-bottom: 3px solid transparent;
    padding: 8px 10px;
  }

  .collection-seq ol li a:hover {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  .section-block > .container > h2,
  .section-block > h2,
  .content-section > h2,
  .guide-section > h2,
  .faq-group-title,
  .column-head h2 {
    font-size: 19px;
  }

  .channel-head h3 {
    font-size: 17px;
  }

  .entry-breakdown li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .error-main {
    padding: 40px var(--shell-pad) 56px;
  }

  .error-inner {
    padding: 24px 20px;
  }

  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    padding: 30px var(--shell-pad) 20px;
  }

  .footer-groups {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .footer-group h2 {
    margin-bottom: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .toc-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .toc-label {
    padding: 10px 4px 0;
  }

  .feedback-strip {
    padding: 20px 18px;
  }
}

@media (max-width: 480px) {
  .featured-link {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-thumb img {
    aspect-ratio: 16 / 9;
  }

  .revision-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .revision-type {
    grid-column: 2;
    text-align: left;
  }

  .meta-table tbody th {
    width: 74px;
  }

  .anchor-list a,
  .toc-list a {
    padding: 0 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
