/* ==========================================================================
   YY高清资源影院 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base · 变量与基础排版
   -------------------------------------------------------------------------- */
:root {
  --c-ink: #1f2a44;
  --c-ink-soft: #3a4763;
  --c-accent: #d9822b;
  --c-accent-deep: #b96a1d;
  --c-bg: #f6f7f9;
  --c-card: #ffffff;
  --c-text: #2b2f36;
  --c-text-muted: #5c6474;
  --c-line: #dfe3ea;
  --c-line-strong: #c8cfdb;
  --c-warn-bg: #fdf3e7;
  --c-warn-line: #f0d6b4;
  --c-ok-bg: #eef4ee;
  --c-ok-line: #cfe0d0;
  --c-focus: #2f6fb0;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-1: 0 1px 2px rgba(31, 42, 68, 0.06), 0 2px 8px rgba(31, 42, 68, 0.05);
  --shadow-2: 0 2px 4px rgba(31, 42, 68, 0.08), 0 10px 22px rgba(31, 42, 68, 0.09);
  --wrap: 1120px;
  --gap: 24px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  color: var(--c-ink);
  font-weight: 700;
  line-height: 1.35;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 17px;
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--c-ink-soft);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: var(--c-accent-deep);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--c-focus);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

dl {
  margin: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: 10px 16px;
  background-color: var(--c-ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}

/* --------------------------------------------------------------------------
   layout · 页头 / 导航 / 主容器 / 页脚骨架
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--c-card);
  border-bottom: 1px solid var(--c-line);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--c-ink);
  font-weight: 700;
}

.brand:hover {
  color: var(--c-ink);
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: var(--c-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-size: 17px;
  white-space: nowrap;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  color: var(--c-ink-soft);
  font-size: 15px;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover {
  background-color: #f0f2f6;
  color: var(--c-ink);
}

.nav-list a.is-current {
  color: var(--c-ink);
  font-weight: 700;
  border-bottom-color: var(--c-accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--c-card);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--c-ink);
  border-radius: 1px;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 22px 20px 56px;
}

.home-main {
  padding-bottom: 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--c-text-muted);
}

.breadcrumb a:hover {
  color: var(--c-accent-deep);
}

.breadcrumb-sep {
  color: var(--c-line-strong);
}

.breadcrumb-current {
  color: var(--c-ink);
  font-weight: 600;
}

.page-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--c-line);
  margin-bottom: 30px;
}

.page-title {
  font-size: 30px;
  margin-bottom: 10px;
}

.page-description {
  color: var(--c-text-muted);
  max-width: 860px;
  margin-bottom: 8px;
}

.page-meta {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-bottom: 0;
}

.page-meta-item {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 18px 0 0;
}

.page-meta-item dt {
  color: var(--c-text-muted);
  font-weight: 600;
}

.page-meta-item dd {
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.site-footer {
  background-color: var(--c-ink);
  color: #c9d0de;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 38px 20px 26px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(180px, 1fr) minmax(200px, 1.1fr);
  gap: 32px;
}

.footer-name {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #a9b3c6;
  margin-bottom: 0;
}

.footer-nav-title,
.footer-note-title {
  color: #fff;
  font-size: 15px;
  margin-bottom: 12px;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav-list li {
  margin-bottom: 8px;
}

.footer-nav-list a {
  color: #c9d0de;
  font-size: 14px;
}

.footer-nav-list a:hover {
  color: #fff;
}

.footer-note p {
  font-size: 14px;
  line-height: 1.7;
  color: #a9b3c6;
  margin-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px 18px;
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: #98a3b8;
}

.back-to-top {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm);
  color: #fff;
  flex: 0 0 auto;
}

.back-to-top:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.back-to-top-icon {
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(1px, 1px);
}

/* --------------------------------------------------------------------------
   components · 通用模块
   -------------------------------------------------------------------------- */
.section {
  margin-top: 44px;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2,
.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-lead,
.section-desc,
.section-intro {
  color: var(--c-text-muted);
  max-width: 820px;
  margin-bottom: 0;
}

.section-more,
.section-foot {
  margin: 18px 0 0;
}

.section-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--c-text-muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-accent-deep);
  border-bottom: 1px solid transparent;
}

.text-link::after {
  content: "›";
  font-size: 16px;
  line-height: 1;
}

.text-link:hover {
  border-bottom-color: var(--c-accent-deep);
}

/* 字段列表：频道卡 / 题材卡共用父级限定 */
.channel-card .channel-fields,
.genre-card .genre-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
  font-size: 13px;
}

.channel-card .channel-fields dt,
.genre-card .genre-fields dt {
  color: var(--c-text-muted);
  font-weight: 600;
}

.channel-card .channel-fields dd,
.genre-card .genre-fields dd {
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* 字段对比表 */
.field-table {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.field-table caption,
.table-caption,
.field-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--c-text-muted);
  border-bottom: 1px solid var(--c-line);
}

.field-table th,
.field-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--c-line);
}

.field-table thead th {
  background-color: #f0f2f6;
  color: var(--c-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.field-table tbody th {
  color: var(--c-ink);
  font-weight: 700;
  background-color: #fafbfc;
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

.table-wrap .field-table {
  min-width: 520px;
}

/* FAQ 折叠 */
.faq-list {
  border-top: 1px solid var(--c-line);
}

.faq-item {
  border-bottom: 1px solid var(--c-line);
  background-color: var(--c-card);
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 15px 44px 15px 18px;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  min-height: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid var(--c-text-muted);
  border-bottom: 2px solid var(--c-text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
  margin-top: -3px;
}

.faq-item[open] .faq-question {
  color: var(--c-accent-deep);
}

.faq-answer {
  padding: 0 18px 16px;
}

.faq-answer p {
  margin-bottom: 0;
  color: var(--c-text-muted);
  font-size: 15px;
}

/* 步骤列表（首页 / 观看指南共用，父级限定差异） */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.step-item {
  margin-bottom: 16px;
}

.watch-basics .step-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.watch-basics .step-index {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--c-ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.watch-basics .step-title {
  margin-bottom: 4px;
}

.watch-basics .step-desc {
  margin-bottom: 0;
  color: var(--c-text-muted);
  font-size: 15px;
}

/* 边界提示块 */
.boundary-block {
  background-color: var(--c-warn-bg);
  border: 1px solid var(--c-warn-line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.boundary-block h2 {
  margin-bottom: 8px;
}

.boundary-text {
  color: var(--c-text);
  max-width: 820px;
}

.boundary-links {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.boundary-links li {
  margin: 0;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--c-card);
  border-bottom: 1px solid var(--c-line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 36px 20px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  background-color: var(--c-warn-bg);
  border: 1px solid var(--c-warn-line);
  border-radius: var(--radius-sm);
  color: var(--c-accent-deep);
  font-size: 13px;
  font-weight: 600;
}

.hero-copy h1 {
  font-size: 30px;
  margin-bottom: 12px;
}

.hero-lead {
  color: var(--c-text-muted);
  max-width: 560px;
}

.hero-paths {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: 22px;
}

.path-group {
  min-width: 0;
}

.path-group-title {
  font-size: 15px;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--c-accent);
  line-height: 1.2;
}

.path-buttons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.path-buttons li {
  margin: 0;
}

.path-btn,
.path-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--c-card);
  color: var(--c-ink-soft);
  font-size: 14px;
}

.path-btn:hover,
.path-tag:hover {
  border-color: var(--c-accent);
  background-color: var(--c-warn-bg);
  color: var(--c-accent-deep);
}

.hero-media {
  min-width: 0;
}

.hero-media img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}

.hero-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-text-muted);
}

.channels-overview,
.collections-preview,
.watch-basics,
.boundary-entry {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.channel-card {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.channel-card:hover {
  border-color: var(--c-line-strong);
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.channel-name {
  margin-bottom: 6px;
}

.channel-desc {
  margin-bottom: 0;
  color: var(--c-text-muted);
  font-size: 15px;
}

.collection-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.collection-row .collection-card {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.collection-row .collection-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.collection-row .collection-media img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.collection-row .collection-card h3 {
  padding: 14px 16px 0;
  margin-bottom: 6px;
}

.collection-row .collection-scope {
  padding: 0 16px;
  margin-bottom: 6px;
  color: var(--c-text-muted);
  font-size: 14px;
}

.collection-row .collection-meta {
  padding: 0 16px 16px;
  margin-bottom: 0;
  font-size: 13px;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   pages · 频道分类
   -------------------------------------------------------------------------- */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: start;
}

.channel-audience,
.channel-genres,
.channel-fields {
  margin-bottom: 40px;
}

.channel-fields {
  margin-bottom: 0;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.audience-card {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 16px;
}

.audience-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.audience-desc {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 10px;
}

.audience-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent-deep);
  border-bottom: 1px solid transparent;
}

.audience-link:hover {
  border-bottom-color: var(--c-accent-deep);
}

.genre-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.genre-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow-1);
}

.genre-figure img {
  width: 100%;
  height: 100%;
  min-height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.genre-body {
  min-width: 0;
}

.genre-name {
  margin-bottom: 4px;
}

.genre-scope {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 0;
}

.fields-note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--c-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.page-aside {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 84px;
}

.aside-block {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.aside-title {
  font-size: 15px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}

.aside-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-list li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--c-text-muted);
}

.aside-list li:last-child {
  margin-bottom: 0;
}

.aside-list a {
  color: var(--c-ink-soft);
}

.aside-list a:hover {
  color: var(--c-accent-deep);
}

/* --------------------------------------------------------------------------
   pages · 专题片单
   -------------------------------------------------------------------------- */
.section-collection-list .collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.collection-grid .collection-card {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.collection-grid .collection-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.collection-grid .collection-media img {
  width: 100%;
  height: 168px;
  object-fit: cover;
}

.collection-body {
  padding: 16px 18px 18px;
}

.collection-title {
  margin-bottom: 8px;
}

.collection-scope {
  font-size: 15px;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}

.field-label {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 7px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: var(--c-ink-soft);
  background-color: #f0f2f6;
}

.collection-fields {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding-top: 12px;
  border-top: 1px dashed var(--c-line);
  font-size: 13px;
}

.collection-fields dt {
  color: var(--c-text-muted);
  font-weight: 600;
}

.collection-fields dd {
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 13px;
}

.collection-count {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
}

.scene-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.scene-group {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-ink);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.scene-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.scene-desc {
  font-size: 14px;
  color: var(--c-text-muted);
  margin-bottom: 10px;
}

.scene-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.scene-links li {
  margin-bottom: 8px;
}

.scene-links li:last-child {
  margin-bottom: 0;
}

.scene-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink-soft);
  border-bottom: 1px solid transparent;
}

.scene-links a:hover {
  color: var(--c-accent-deep);
  border-bottom-color: var(--c-accent-deep);
}

.note-block {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.note-block p {
  color: var(--c-text-muted);
  font-size: 15px;
}

.note-block p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   pages · 观看指南
   -------------------------------------------------------------------------- */
.guide-steps,
.quality-fit,
.guide-myths,
.guide-next {
  margin-bottom: 44px;
}

.guide-next {
  margin-bottom: 0;
}

.guide-steps .step-list {
  counter-reset: guide-step;
  border-left: 2px solid var(--c-line);
  padding-left: 0;
}

.guide-steps .step-item {
  position: relative;
  counter-increment: guide-step;
  padding-left: 30px;
  margin-left: 22px;
  margin-bottom: 22px;
}

.guide-steps .step-item::before {
  content: counter(guide-step);
  position: absolute;
  left: -16px;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--c-card);
  border: 2px solid var(--c-accent);
  color: var(--c-accent-deep);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-steps .step-item:last-child {
  margin-bottom: 0;
}

.guide-steps .step-item:nth-child(even) {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.guide-steps .step-item:nth-child(odd) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 20px;
  align-items: start;
}

.guide-steps .step-item:nth-child(odd) .step-media {
  order: 2;
}

.guide-steps .step-item:nth-child(even) .step-media {
  order: 0;
}

.guide-steps .step-media img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}

.guide-steps .step-body {
  min-width: 0;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.guide-steps .step-title {
  margin-bottom: 6px;
}

.guide-steps .step-body p {
  margin-bottom: 0;
  color: var(--c-text-muted);
  font-size: 15px;
}

.section-media {
  margin-bottom: 18px;
}

.section-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}

.next-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.next-link-item {
  margin: 0;
}

.next-link-item a {
  display: block;
  height: 100%;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-1);
}

.next-link-item a:hover {
  border-color: var(--c-accent);
  box-shadow: var(--shadow-2);
}

.next-link-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-ink);
  margin-bottom: 6px;
}

.next-link-desc {
  display: block;
  font-size: 14px;
  color: var(--c-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   pages · 边界与反馈
   -------------------------------------------------------------------------- */
.boundary-scope,
.boundary-exclude,
.boundary-faq {
  margin-bottom: 44px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.scope-card {
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.scope-card-yes {
  border-top: 3px solid #4c7a52;
  background-color: var(--c-ok-bg);
  border-color: var(--c-ok-line);
}

.scope-card-part {
  border-top: 3px solid var(--c-accent);
  background-color: var(--c-warn-bg);
  border-color: var(--c-warn-line);
}

.scope-card h3 {
  margin-bottom: 12px;
}

.scope-list {
  margin: 0;
  padding-left: 20px;
}

.scope-list li {
  font-size: 15px;
  color: var(--c-text);
  margin-bottom: 8px;
}

.scope-list li:last-child {
  margin-bottom: 0;
}

.exclude-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.exclude-item {
  margin: 0;
  background-color: var(--c-warn-bg);
  border: 1px solid var(--c-warn-line);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.exclude-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 1px 8px;
  background-color: var(--c-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

.exclude-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.exclude-item p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--c-text-muted);
}

.feedback-panel {
  margin-top: 26px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-left: 3px solid var(--c-ink);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.feedback-panel h3 {
  margin-bottom: 8px;
}

.feedback-panel > p {
  color: var(--c-text-muted);
  font-size: 15px;
}

.feedback-steps {
  margin: 0 0 14px;
  padding-left: 20px;
}

.feedback-steps li {
  font-size: 15px;
  margin-bottom: 8px;
}

.path-inline {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 1px 6px;
  background-color: #f0f2f6;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-sm);
  color: var(--c-ink);
}

.feedback-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 0;
}

.boundary-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--c-line);
}

.boundary-media figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */
.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 20px 72px;
}

.error-panel {
  max-width: 720px;
  background-color: var(--c-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 32px 34px;
  box-shadow: var(--shadow-1);
}

.error-code {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  color: var(--c-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.error-title {
  font-size: 26px;
  margin-bottom: 10px;
}

.error-lead {
  color: var(--c-text-muted);
  margin-bottom: 22px;
}

.error-actions {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-actions li {
  margin: 0;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-sm);
  background-color: var(--c-card);
  color: var(--c-ink-soft);
  font-size: 15px;
  font-weight: 600;
}

.error-btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent-deep);
}

.error-btn-primary {
  background-color: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}

.error-btn-primary:hover {
  background-color: #16203a;
  border-color: #16203a;
  color: #fff;
}

.error-hint {
  border-top: 1px solid var(--c-line);
  padding-top: 18px;
}

.error-hint-title {
  font-size: 16px;
  margin-bottom: 6px;
}

.error-hint p {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   responsive · 断点 1024 / 768 / 480
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 26px;
  }

  .channel-grid,
  .scene-groups,
  .next-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 26px;
  }

  .footer-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 58px;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-left: 0;
    background-color: var(--c-card);
    border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-2);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 14px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    min-height: 44px;
    padding: 0 10px;
    border-bottom: 1px solid var(--c-line);
    border-left: 3px solid transparent;
    border-radius: 0;
    font-size: 15px;
  }

  .nav-list a.is-current {
    border-bottom-color: var(--c-line);
    border-left-color: var(--c-accent);
    background-color: #f0f2f6;
  }

  .nav-list li:last-child a {
    border-bottom: 0;
  }

  .inner-main {
    padding: 18px 16px 44px;
  }

  .page-title,
  .hero-copy h1,
  h1 {
    font-size: 24px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 24px 16px 30px;
  }

  .hero-media img {
    height: 220px;
  }

  .hero-paths {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .channels-overview,
  .collections-preview,
  .watch-basics,
  .boundary-entry {
    padding: 0 16px;
  }

  .section {
    margin-top: 34px;
  }

  .channel-grid,
  .collection-row,
  .audience-grid,
  .genre-list,
  .collection-grid,
  .scene-groups,
  .scope-grid,
  .exclude-list,
  .next-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .page-aside {
    position: static;
  }

  .genre-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .guide-steps .step-item:nth-child(odd),
  .guide-steps .step-item:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-steps .step-item:nth-child(odd) .step-media,
  .guide-steps .step-item:nth-child(even) .step-media {
    order: 0;
  }

  .guide-steps .step-media img {
    height: 180px;
  }

  .section-media img,
  .boundary-media img {
    height: 180px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 16px 20px;
    gap: 24px;
  }

  .footer-note {
    grid-column: auto;
  }

  .footer-bottom {
    padding: 12px 16px 16px;
  }

  .error-main {
    padding: 36px 16px 56px;
  }

  .error-panel {
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .brand-text {
    font-size: 15px;
  }

  .page-title,
  .hero-copy h1,
  h1 {
    font-size: 22px;
  }

  .section-head h2,
  .section-title,
  h2 {
    font-size: 19px;
  }

  .hero-media img {
    height: 180px;
  }

  .collection-row .collection-media img,
  .collection-grid .collection-media img {
    height: 150px;
  }

  .watch-basics .step-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .field-table th,
  .field-table td {
    padding: 10px 12px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .error-btn {
    justify-content: center;
  }
}
