/* ==========================================================================
   飘花电影在线播放 · 全站样式
   base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */

:root {
  --ink: #1a1a2e;
  --ink-soft: #2d2d2d;
  --accent: #e94560;
  --accent-dark: #c8324b;
  --blue: #0f3460;
  --blue-soft: #1d4f8c;
  --bg: #f7f7f9;
  --bg-alt: #ffffff;
  --line: #e2e2e8;
  --line-strong: #cfcfd8;
  --footer-bg: #16213e;
  --footer-text: #c7cede;
  --footer-dim: #8f9ab3;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(26, 26, 46, 0.06), 0 6px 18px rgba(26, 26, 46, 0.05);
  --wrap: 1160px;
  --font-sans: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.site-body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--blue-soft);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

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;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

.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: -60px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

/* ==========================================================================
   layout · 顶部线索条 / 页头 / 导航 / 页脚骨架
   ========================================================================== */

.site-notice {
  background: var(--ink);
  color: #d9dced;
}

.site-notice p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 9px 24px;
  font-size: 13px;
  line-height: 1.6;
}

.site-header {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
  white-space: nowrap;
}

.brand-logo:hover,
.brand-logo:focus-visible {
  color: var(--accent);
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  display: flex;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink-soft);
  font-size: 15px;
  border-radius: var(--radius-sm);
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: #f0f0f5;
  color: var(--accent);
}

.nav-list a.is-current {
  color: var(--accent);
  font-weight: 700;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.home-main {
  padding-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: #6b6b7b;
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--blue-soft);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: #6b6b7b;
}

.page-header {
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  line-height: 1.3;
  color: var(--ink);
}

.page-description {
  margin-top: 14px;
  max-width: 760px;
  font-size: 16px;
  color: #4a4a58;
}

/* 页脚 */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 0;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 32px 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.footer-slogan {
  margin-top: 8px;
  color: var(--accent);
  font-size: 14px;
}

.footer-text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--footer-dim);
  max-width: 320px;
}

.footer-title {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-list a {
  display: inline-block;
  min-height: 22px;
  color: var(--footer-text);
  font-size: 14px;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px 24px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--footer-dim);
  font-size: 13px;
}

/* ==========================================================================
   components · 通用按钮 / 区块标题 / 侧栏 / 表格 / 折叠问答
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: var(--blue);
  color: var(--blue);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--blue);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.section-head {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section-head h2 {
  font-size: 24px;
}

.section-desc {
  margin-top: 10px;
  max-width: 780px;
  color: #55556a;
  font-size: 15px;
}

.section-title {
  font-size: 24px;
}

.section-intro,
.section-lead {
  margin-top: 12px;
  max-width: 780px;
  color: #4a4a58;
}

.section-intro a,
.section-note a {
  color: var(--blue-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section-note {
  margin-top: 20px;
  font-size: 14px;
  color: #5c5c70;
}

/* 侧栏（技术文档式三栏） */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.page-sidebar {
  min-width: 0;
  font-size: 14px;
}

.sidebar-block {
  padding: 18px 18px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.sidebar-block:last-child {
  margin-bottom: 0;
}

.sidebar-title {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 12px;
}

.sidebar-list,
.sidebar-toc,
.sidebar-links,
.side-link-list,
.aside-list {
  display: grid;
  gap: 9px;
}

.sidebar-list a,
.sidebar-toc a,
.sidebar-links a,
.side-link-list a,
.aside-list a {
  display: inline-block;
  min-height: 24px;
  color: var(--blue-soft);
}

.sidebar-list a:hover,
.sidebar-toc a:hover,
.sidebar-links a:hover,
.side-link-list a:hover,
.aside-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.sidebar-note,
.sidebar-text,
.sidebar-meta {
  color: #5c5c70;
  font-size: 13px;
  line-height: 1.7;
}

.sidebar-meta + .sidebar-meta,
.sidebar-note + .sidebar-note {
  margin-top: 6px;
}

.version-list {
  margin: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 12px;
  font-size: 13px;
}

.version-list dt {
  color: #7a7a8c;
}

.version-list dd {
  margin: 0;
  color: var(--ink-soft);
  min-width: 0;
}

.content-section + .content-section {
  margin-top: 44px;
}

.content-section .section-intro {
  max-width: 720px;
}

/* 表格 */

.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.data-table {
  min-width: 660px;
  font-size: 15px;
}

.data-table caption {
  text-align: left;
}

.data-table thead th {
  background: #f0f0f5;
  color: var(--ink);
  font-size: 14px;
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.data-table tbody td,
.data-table tbody th {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: #4a4a58;
}

.data-table tbody tr:last-child td,
.data-table tbody tr:last-child th {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fafafd;
}

.logic-table {
  margin-top: 22px;
  font-size: 15px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-caption {
  text-align: left;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}

.logic-table thead th {
  background: #f0f0f5;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.logic-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: #4a4a58;
  vertical-align: top;
}

.logic-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 折叠问答 */

.faq-list {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-question {
  cursor: pointer;
  padding: 16px 46px 16px 18px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.faq-item[open] .faq-question::after {
  content: "–";
}

.faq-item[open] .faq-question {
  color: var(--accent);
}

.faq-answer {
  padding: 0 18px 18px;
  color: #4a4a58;
  font-size: 15px;
}

/* 图片容器通用约束 */

.section-media,
.section-figure,
.content-figure,
.hero-media,
.collection-media,
.video-media,
.theme-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: #ececf2;
}

.section-media img,
.section-figure img,
.content-figure img,
.hero-media img,
.collection-media img,
.video-media img,
.theme-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-media figcaption,
.section-figure figcaption,
.content-figure figcaption,
.hero-media figcaption {
  padding: 10px 14px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  color: #62627a;
  font-size: 13px;
  line-height: 1.65;
}

.section-media,
.section-figure,
.content-figure {
  margin-top: 22px;
}

.section-media img,
.section-figure img,
.content-figure img {
  aspect-ratio: 16 / 7;
}

/* ==========================================================================
   pages · 首页
   ========================================================================== */

/* 首屏焦点区 */

.hero-section {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-areas:
    "copy media"
    "tags tags";
  gap: 32px 40px;
  align-items: start;
}

.hero-copy {
  grid-area: copy;
  min-width: 0;
}

.hero-kicker {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: rgba(233, 69, 96, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.hero-title {
  margin-top: 18px;
  font-size: 34px;
  line-height: 1.28;
  color: var(--ink);
}

.hero-text {
  margin-top: 16px;
  max-width: 560px;
  color: #4a4a58;
  font-size: 16px;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  grid-area: media;
  min-width: 0;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.hero-media img {
  aspect-ratio: 4 / 3;
}

.hero-tags {
  grid-area: tags;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-tags a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--blue);
  font-size: 14px;
  background: var(--bg-alt);
}

.hero-tags a:hover,
.hero-tags a:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* 频道分类总览 */

.channel-overview,
.collection-entry,
.video-cards,
.guide-steps,
.boundary-summary,
.site-index {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.site-index {
  border-bottom: 0;
}

.channel-list {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  gap: 0;
}

.channel-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 12px;
  border-top: 1px solid var(--line);
  transition: background-color 0.18s ease;
}

.channel-row:last-child {
  border-bottom: 1px solid var(--line);
}

.channel-row:hover {
  background: #f0f0f5;
}

.channel-no {
  font-size: 22px;
  font-weight: 700;
  color: var(--line-strong);
}

.channel-row:hover .channel-no {
  color: var(--accent);
}

.channel-body {
  min-width: 0;
}

.channel-name {
  font-size: 18px;
}

.channel-focus {
  margin-top: 6px;
  font-size: 14px;
  color: #5c5c70;
}

.channel-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.channel-link:hover,
.channel-link:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* 专题片单入口 */

.collection-grid {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.collection-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.collection-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.collection-card .collection-media {
  border-radius: 0;
}

.collection-media img {
  aspect-ratio: 16 / 9;
  transition: transform 0.35s ease;
}

.collection-card:hover .collection-media img {
  transform: scale(1.04);
}

.collection-name {
  padding: 18px 20px 0;
  font-size: 18px;
}

.collection-brief {
  padding: 10px 20px 0;
  font-size: 14px;
  color: #4a4a58;
}

.collection-meta {
  padding: 10px 20px 0;
  font-size: 13px;
  color: #7a7a8c;
}

.collection-link {
  margin: 16px 20px 20px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  align-self: flex-start;
  padding: 0 16px;
  border-radius: var(--radius);
  background: rgba(15, 52, 96, 0.07);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.collection-link:hover,
.collection-link:focus-visible {
  background: var(--accent);
  color: #fff;
}

/* 视频卡片区 */

.video-grid {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  grid-template-areas:
    "media name"
    "media channel"
    "media brief";
  align-content: start;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.video-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.video-card .video-media {
  grid-area: media;
  border-radius: 0;
  height: 100%;
}

.video-media img {
  aspect-ratio: 3 / 4;
  height: 100%;
}

.video-name {
  grid-area: name;
  padding: 18px 20px 0;
  font-size: 17px;
}

.video-channel {
  grid-area: channel;
  padding: 8px 20px 0;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}

.video-brief {
  grid-area: brief;
  padding: 8px 20px 20px;
  font-size: 14px;
  color: #4a4a58;
}

/* 浏览指南四步 */

.step-list {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 20px 24px;
  min-width: 0;
}

.step-item .step-no {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.step-item .step-name {
  margin-top: 10px;
  font-size: 17px;
}

.step-item .step-desc {
  margin-top: 10px;
  font-size: 14px;
  color: #4a4a58;
}

.step-item .step-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  color: #6b6b7b;
}

.guide-more,
.boundary-more {
  max-width: var(--wrap);
  margin: 22px auto 0;
  padding: 0 24px;
  font-size: 15px;
}

.guide-more a,
.boundary-more a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue);
  font-weight: 700;
}

.guide-more a:hover,
.boundary-more a:hover {
  color: var(--accent);
}

/* 收录边界摘要 */

.boundary-columns {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.boundary-col {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  min-width: 0;
}

.boundary-subtitle {
  font-size: 17px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.boundary-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.boundary-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #4a4a58;
}

.boundary-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 站内栏目索引 */

.index-grid {
  max-width: var(--wrap);
  margin: 26px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.index-cell {
  min-width: 0;
}

.index-cell a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 108px;
  padding: 18px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.index-cell a:hover,
.index-cell a:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.index-name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
}

.index-cell a:hover .index-name {
  color: var(--accent);
}

.index-desc {
  color: #5c5c70;
  font-size: 13px;
  line-height: 1.65;
}

/* ==========================================================================
   pages · 频道分类
   ========================================================================== */

.page-channels .page-layout {
  grid-template-columns: 232px minmax(0, 1fr) 232px;
}

.page-channels .page-content {
  min-width: 0;
}

.channel-detail {
  margin-top: 24px;
  padding: 22px 22px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
}

.detail-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 18px;
}

.detail-no {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.detail-text {
  margin-top: 12px;
  font-size: 15px;
  color: #4a4a58;
}

.detail-fit {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 14px;
  color: #5c5c70;
}

.advice-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.advice-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  min-width: 0;
}

.advice-title {
  font-size: 17px;
}

.advice-channel {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.advice-reason {
  margin-top: 10px;
  font-size: 14px;
  color: #4a4a58;
}

.topic-link-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}

.topic-link-item {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}

.topic-channel {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.topic-link-item a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--blue-soft);
  font-size: 14px;
}

.topic-link-item a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ==========================================================================
   pages · 专题片单
   ========================================================================== */

.page-collections .page-layout.layout-shell.sidebar-left {
  grid-template-columns: 232px minmax(0, 1fr);
}

.page-collections .page-content {
  min-width: 0;
}

.theme-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.theme-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.theme-card .theme-figure {
  border-radius: 0;
}

.theme-figure img {
  aspect-ratio: 16 / 9;
}

.theme-body {
  padding: 18px 20px 22px;
  display: grid;
  gap: 10px;
}

.theme-name {
  font-size: 17px;
}

.theme-direction {
  font-size: 14px;
  color: #4a4a58;
}

.theme-audience {
  font-size: 13px;
  color: #6b6b7b;
}

.order-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.order-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  min-width: 0;
}

.order-name {
  font-size: 17px;
}

.order-step {
  margin-top: 10px;
  font-size: 14px;
  color: #4a4a58;
}

.order-tip {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  color: #6b6b7b;
}

.mapping-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.mapping-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mapping-name {
  font-size: 17px;
}

.mapping-desc {
  margin-top: 10px;
  font-size: 14px;
  color: #4a4a58;
}

.mapping-link {
  margin-top: 16px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.mapping-link:hover,
.mapping-link:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* ==========================================================================
   pages · 浏览指南
   ========================================================================== */

.page-guide .page-layout {
  grid-template-columns: 232px minmax(0, 1fr) 232px;
}

.page-guide .content-column {
  min-width: 0;
}

.page-guide .section + .section {
  margin-top: 44px;
}

.step-flow {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.step-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 20px 18px 22px;
  min-width: 0;
}

.step-block .step-index {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.step-block .step-name {
  margin-top: 10px;
  font-size: 17px;
}

.step-block .step-desc {
  margin-top: 10px;
  font-size: 14px;
  color: #4a4a58;
}

.step-block .step-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  color: #6b6b7b;
}

.basis-list {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.basis-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
}

.basis-name {
  font-size: 17px;
}

.basis-text {
  margin-top: 10px;
  font-size: 15px;
  color: #4a4a58;
}

.basis-pitfall {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(233, 69, 96, 0.07);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #6a3340;
}

.notes-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.note-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 20px;
}

.note-name {
  font-size: 16px;
}

.note-text {
  margin-top: 8px;
  font-size: 14px;
  color: #4a4a58;
}

/* ==========================================================================
   pages · 收录边界
   ========================================================================== */

.page-boundary .page-layout {
  grid-template-columns: 232px minmax(0, 1fr) 232px;
}

.page-boundary .content-main {
  min-width: 0;
}

.field-table {
  margin-top: 24px;
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
  overflow: hidden;
}

.field-row {
  padding: 18px 22px 20px;
  border-bottom: 1px solid var(--line);
}

.field-row:last-child {
  border-bottom: 0;
}

.field-name {
  font-size: 16px;
  color: var(--blue);
}

.field-desc {
  margin-top: 8px;
  font-size: 15px;
  color: #4a4a58;
}

.field-limit {
  margin-top: 10px;
  font-size: 13px;
  color: #6b6b7b;
}

.scope-list,
.exclude-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.scope-item,
.exclude-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 20px;
}

.scope-item {
  border-left: 3px solid var(--blue);
}

.exclude-item {
  border-left: 3px solid var(--accent);
}

.scope-name,
.exclude-name {
  font-size: 16px;
}

.scope-text,
.exclude-text {
  margin-top: 8px;
  font-size: 14px;
  color: #4a4a58;
}

.record-list {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.record-item {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px 20px;
}

.record-name {
  font-size: 16px;
  color: var(--ink);
}

.record-text {
  margin-top: 8px;
  font-size: 14px;
  color: #4a4a58;
}

.feedback-panel {
  margin-top: 28px;
  padding: 24px 24px 26px;
  background: #f0f0f5;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.feedback-title {
  font-size: 17px;
}

.feedback-text {
  margin-top: 10px;
  font-size: 14px;
  color: #4a4a58;
}

.feedback-text a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feedback-text a:hover {
  color: var(--accent);
}

.aside-block {
  padding: 18px 18px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.aside-block:last-child {
  margin-bottom: 0;
}

.aside-title {
  font-size: 15px;
  margin-bottom: 12px;
}

.aside-text {
  font-size: 13px;
  color: #5c5c70;
}

/* ==========================================================================
   pages · 404
   ========================================================================== */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.error-hero {
  max-width: 720px;
}

.error-code {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
}

.error-title {
  margin-top: 12px;
  font-size: 32px;
}

.error-text {
  margin-top: 16px;
  font-size: 16px;
  color: #4a4a58;
}

.error-actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-hints {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.error-list {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.error-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 22px;
  min-width: 0;
}

.error-item-title {
  font-size: 16px;
}

.error-item-text {
  margin-top: 10px;
  font-size: 14px;
  color: #4a4a58;
}

/* ==========================================================================
   responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .page-channels .page-layout,
  .page-guide .page-layout,
  .page-boundary .page-layout {
    grid-template-columns: 212px minmax(0, 1fr);
  }

  .page-channels .sidebar-aside,
  .page-guide .sidebar-right-panel,
  .page-boundary .page-aside {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .page-channels .sidebar-aside .sidebar-block,
  .page-guide .sidebar-right-panel .sidebar-block,
  .page-boundary .page-aside .aside-block {
    margin-bottom: 0;
  }

  .page-collections .page-layout.layout-shell.sidebar-left {
    grid-template-columns: 212px minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .step-list,
  .step-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-notice p {
    padding: 8px 16px;
    font-size: 12px;
  }

  .header-inner {
    padding: 0 16px;
    min-height: 60px;
    gap: 12px;
  }

  .brand-logo {
    font-size: 17px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 14px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    display: block;
  }

  .nav-list a {
    display: flex;
    width: 100%;
    min-height: 48px;
    padding: 0 6px;
    font-size: 16px;
    border-radius: 0;
  }

  .nav-list a.is-current {
    box-shadow: inset 3px 0 0 var(--accent);
    padding-left: 14px;
  }

  .inner-main {
    padding: 20px 16px 48px;
  }

  .breadcrumb {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .page-header {
    padding-bottom: 18px;
    margin-bottom: 24px;
  }

  .page-title,
  .error-title {
    font-size: 25px;
  }

  .page-description {
    margin-top: 12px;
    font-size: 15px;
  }

  .section-title,
  .section-head h2 {
    font-size: 21px;
  }

  .section-head {
    padding: 0 16px;
  }

  .channel-overview,
  .collection-entry,
  .video-cards,
  .guide-steps,
  .boundary-summary,
  .site-index {
    padding: 40px 0;
  }

  .hero-inner {
    padding: 30px 16px 32px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "media"
      "tags";
    gap: 26px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-tags {
    padding-top: 18px;
  }

  .channel-list,
  .collection-grid,
  .video-grid,
  .step-list,
  .boundary-columns,
  .index-grid,
  .guide-more,
  .boundary-more {
    padding: 0 16px;
  }

  .channel-row {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "no body"
      "link link";
    gap: 12px 14px;
    padding: 18px 8px;
  }

  .channel-no {
    grid-area: no;
    font-size: 18px;
  }

  .channel-body {
    grid-area: body;
  }

  .channel-link {
    grid-area: link;
    justify-self: start;
  }

  .collection-grid,
  .video-grid,
  .boundary-columns,
  .advice-grid,
  .theme-grid,
  .order-list,
  .mapping-grid,
  .error-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .video-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "media"
      "name"
      "channel"
      "brief";
  }

  .video-media img {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  .step-list,
  .step-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .index-cell a {
    min-height: 96px;
    padding: 16px 14px;
  }

  .page-layout,
  .page-channels .page-layout,
  .page-guide .page-layout,
  .page-boundary .page-layout,
  .page-collections .page-layout.layout-shell.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .page-channels .page-sidebar,
  .page-guide .sidebar-left-panel,
  .page-boundary .page-sidebar,
  .page-collections .page-sidebar {
    order: 2;
  }

  .page-channels .page-content,
  .page-guide .content-column,
  .page-boundary .content-main,
  .page-collections .page-content {
    order: 1;
  }

  .page-channels .sidebar-aside,
  .page-guide .sidebar-right-panel,
  .page-boundary .page-aside {
    order: 3;
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-link-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .data-table {
    min-width: 560px;
  }

  .footer-inner {
    padding: 36px 16px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 20px;
  }

  .footer-copy {
    padding: 16px 16px 26px;
  }

  .error-main {
    padding: 44px 16px 52px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 23px;
  }

  .page-title,
  .error-title {
    font-size: 22px;
  }

  .index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .channel-link,
  .collection-link,
  .mapping-link {
    min-height: 44px;
  }
}
