/* ==========================================================================
   樱花电视剧在线 · 全站样式
   基础 / 布局 / 组件 / 页面 / 响应式 五段组织
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base —— 变量、重置、排版、通用元素
   -------------------------------------------------------------------------- */

:root {
  --bg: #F7F8F7;
  --ink: #1C2422;
  --ink-soft: #5A6360;
  --accent: #2F6F5E;
  --accent-dark: #235546;
  --line: #DDE2DF;
  --card: #FFFFFF;
  --radius: 6px;
  --wrap: 1120px;
  --gap: 32px;
  --font-head: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
}

h1 {
  font-size: 34px;
  line-height: 1.25;
}

h2 {
  font-size: 24px;
  line-height: 1.3;
}

h3 {
  font-size: 18px;
  line-height: 1.4;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .18s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent-dark);
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

table {
  border-collapse: collapse;
  width: 100%;
}

figure {
  margin: 0;
}

figcaption {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.text-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(47, 111, 94, .35);
  padding-bottom: 1px;
}

.text-link:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   2. layout —— 页头、导航、主容器、页脚骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 页头 ---------------------------------------------------------------- */

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 0;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
}

.brand-slogan {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  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: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  line-height: 1.4;
}

.nav-link:hover {
  color: var(--accent);
  background: rgba(47, 111, 94, .06);
  text-decoration: none;
}

.nav-link.is-current {
  color: var(--accent);
  font-weight: 600;
  background: rgba(47, 111, 94, .08);
}

/* 主内容 -------------------------------------------------------------- */

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

.inner-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 28px 24px 72px;
}

.home-main {
  display: block;
}

/* 面包屑 -------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--ink-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink);
}

/* 页面标题区 ---------------------------------------------------------- */

.page-header {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 14px;
}

.page-description {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 780px;
  margin-bottom: 14px;
}

.page-lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
}

.page-lead a {
  font-weight: 600;
}

.page-media {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
}

.page-media img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.page-media figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

/* 页脚 ---------------------------------------------------------------- */

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--line);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px 28px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px 28px;
}

.footer-brand {
  min-width: 0;
}

.footer-site-name {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  color: var(--ink-soft);
  max-width: 320px;
  line-height: 1.7;
}

.footer-group {
  min-width: 0;
}

.footer-group-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copyright {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   3. components —— 按钮、区块标题、列表行、卡片、表格、FAQ
   -------------------------------------------------------------------------- */

/* 按钮 ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #FFFFFF;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* 区块标题 ------------------------------------------------------------ */

.section-head {
  margin-bottom: 28px;
}

.section-title {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-desc,
.section-intro,
.section-lead {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
}

.section-more {
  margin-top: 24px;
}

/* 题材频道列表行 ------------------------------------------------------ */

.channel-list {
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(220px, 1.6fr) 130px;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
  transition: background .18s ease;
}

.channel-row:hover {
  background: rgba(47, 111, 94, .04);
}

.channel-main,
.channel-head {
  min-width: 0;
}

.channel-name {
  font-size: 18px;
  margin-bottom: 6px;
}

.channel-tone,
.channel-desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.channel-audience {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  min-width: 0;
}

.channel-link {
  justify-self: end;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.channel-tag {
  display: inline-block;
  font-size: 13px;
  color: var(--accent);
  background: rgba(47, 111, 94, .08);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

/* 专题片单卡片 -------------------------------------------------------- */

.collection-grid,
.slate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.collection-card,
.slate-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.collection-media,
.slate-media {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.collection-media img,
.slate-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.collection-name,
.slate-name {
  font-size: 18px;
  margin: 18px 20px 10px;
}

.slate-name a {
  color: var(--ink);
}

.slate-name a:hover {
  color: var(--accent);
  text-decoration: none;
}

.collection-scope,
.slate-scope {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 20px 12px;
  flex: 1 1 auto;
}

.collection-count,
.slate-count {
  font-size: 13px;
  color: var(--accent);
  margin: 0 20px 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* 字段对照表 ---------------------------------------------------------- */

.field-table {
  font-size: 15px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-caption,
.field-table-caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.field-table thead th {
  text-align: left;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: rgba(47, 111, 94, .05);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.field-table tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: top;
}

.field-table tbody td {
  padding: 14px 18px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td {
  border-bottom: none;
}

/* 查阅路径步骤条 ------------------------------------------------------ */

.path-list {
  counter-reset: path;
  border-top: 1px solid var(--line);
}

.path-step {
  counter-increment: path;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  gap: 24px;
  padding: 22px 4px 22px 52px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.path-step::before {
  content: counter(path, decimal-leading-zero);
  position: absolute;
  left: 4px;
  top: 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.path-step-body {
  min-width: 0;
}

.path-step-name {
  font-size: 18px;
  margin-bottom: 6px;
}

.path-step-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

.path-step-link {
  justify-self: end;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

/* 更新记录 ------------------------------------------------------------ */

.update-list {
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 120px 110px minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.update-date {
  font-size: 14px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.update-type {
  font-size: 13px;
  color: var(--accent);
  background: rgba(47, 111, 94, .08);
  border-radius: 4px;
  padding: 2px 10px;
  justify-self: start;
  white-space: nowrap;
}

.update-desc {
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  min-width: 0;
}

.feedback-note {
  margin-top: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}

.feedback-note .text-link {
  margin-right: 18px;
}

/* 相关推荐 ------------------------------------------------------------ */

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.related-item {
  min-width: 0;
}

.related-item a {
  display: block;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  height: 100%;
}

.related-item a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   4. pages —— 首页与各内页业务模块
   -------------------------------------------------------------------------- */

/* 首页 · 首屏定位区 --------------------------------------------------- */

.hero-section {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.hero-desc {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.hero-fact {
  font-size: 14px;
  color: var(--ink-soft);
  min-width: 0;
}

.hero-media {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-caption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

/* 首页 · 通用区块容器 -------------------------------------------------- */

.section-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px 24px;
}

.channels-section,
.collections-section,
.fields-section,
.path-section,
.updates-section {
  border-bottom: 1px solid var(--line);
}

/* 内页 · 通用 section -------------------------------------------------- */

.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.section .section-title {
  margin-bottom: 12px;
}

.section .section-intro,
.section .section-lead {
  margin-bottom: 28px;
}

/* 题材频道页 · 双栏布局 ------------------------------------------------ */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.sidebar-left .page-layout,
.page-layout.sidebar-left {
  grid-template-columns: 240px minmax(0, 1fr);
}

.pindao-aside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  min-width: 0;
}

.aside-title {
  font-size: 16px;
  margin-bottom: 14px;
}

.aside-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.aside-nav-item {
  min-width: 0;
}

.aside-nav-item a {
  display: block;
  padding: 9px 10px;
  font-size: 15px;
  color: var(--ink);
  border-radius: var(--radius);
  line-height: 1.5;
}

.aside-nav-item a:hover {
  color: var(--accent);
  background: rgba(47, 111, 94, .06);
  text-decoration: none;
}

.aside-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}

.pindao-content {
  min-width: 0;
}

.pindao-content .section {
  padding: 0 0 44px;
  margin-bottom: 44px;
}

.pindao-content .section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
}

/* 题材频道页 · 频道列表行 ---------------------------------------------- */

.section-channels .channel-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 120px;
}

.channel-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* 题材频道页 · 条目分组 ------------------------------------------------ */

.entry-group {
  margin-bottom: 36px;
}

.entry-group:last-child {
  margin-bottom: 0;
}

.entry-group-head {
  margin-bottom: 14px;
}

.entry-group-title,
.entry-group-name {
  font-size: 18px;
  margin-bottom: 6px;
}

.entry-group-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.entry-list {
  border-top: 1px solid var(--line);
}

.entry-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 100px 100px 100px;
  align-items: center;
  gap: 16px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.entry-name,
.entry-title {
  min-width: 0;
  color: var(--ink);
}

.entry-year,
.entry-region,
.entry-episodes,
.entry-meta {
  font-size: 14px;
  color: var(--ink-soft);
  min-width: 0;
}

/* 题材频道页 · 选题说明 ------------------------------------------------ */

.guide-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.guide-figure {
  min-width: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
}

.guide-figure img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.guide-figure figcaption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

.guide-text {
  min-width: 0;
}

.guide-text p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* 专题片单页 · 收录范围 ------------------------------------------------ */

.scope-block {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.scope-block:last-child {
  border-bottom: 1px solid var(--line);
}

.scope-name {
  font-size: 18px;
  margin-bottom: 8px;
}

.scope-text {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
  margin-bottom: 10px;
}

.scope-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

/* 专题片单页 · 关联条目列表 -------------------------------------------- */

.section-slate-entries .entry-row {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.section-slate-entries .entry-group {
  margin-bottom: 32px;
}

/* 专题片单页 · 说明段落 ------------------------------------------------ */

.section-slate-note .section-text {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
  margin-bottom: 14px;
}

/* 字段说明页 · 收录边界 ------------------------------------------------ */

.boundary-body {
  max-width: 780px;
}

.boundary-body p {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

/* 字段说明页 · 使用示例 ------------------------------------------------ */

.example-list {
  counter-reset: example;
  border-top: 1px solid var(--line);
}

.example-item {
  counter-increment: example;
  position: relative;
  padding: 22px 0 22px 52px;
  border-bottom: 1px solid var(--line);
}

.example-item::before {
  content: counter(example, decimal-leading-zero);
  position: absolute;
  left: 4px;
  top: 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.example-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.example-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 780px;
}

/* 观看指引页 · 步骤条 -------------------------------------------------- */

.step-list {
  counter-reset: step;
  border-top: 1px solid var(--line);
}

.step-item {
  counter-increment: step;
  position: relative;
  padding: 22px 0 22px 52px;
  border-bottom: 1px solid var(--line);
}

.step-index {
  position: absolute;
  left: 4px;
  top: 24px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
}

.step-name {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-name a {
  color: var(--ink);
}

.step-name a:hover {
  color: var(--accent);
  text-decoration: none;
}

.step-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 780px;
}

/* 观看指引页 · 每步操作说明 -------------------------------------------- */

.guide-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.guide-block:last-child {
  border-bottom: 1px solid var(--line);
}

.guide-block-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.guide-block-text {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 780px;
  margin-bottom: 12px;
}

.guide-points {
  display: grid;
  gap: 8px;
  max-width: 780px;
}

.guide-points li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--ink-soft);
}

.guide-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* 观看指引页 · 常见问题 ------------------------------------------------ */

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: block;
  position: relative;
  padding: 18px 44px 18px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 26px;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(-135deg);
}

.faq-question:hover {
  color: var(--accent);
}

.faq-answer {
  padding: 0 44px 20px 4px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--ink-soft);
}

/* 404 ----------------------------------------------------------------- */

.error-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 72px 24px 80px;
}

.error-block {
  max-width: 620px;
  margin-bottom: 48px;
}

.error-code {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.error-title {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.error-desc {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 26px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-guide {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.error-guide .section-title {
  margin-bottom: 20px;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.error-links a {
  display: block;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
}

.error-links a:hover {
  color: var(--accent);
  border-color: var(--accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. responsive —— 1024px / 768px / 480px 断点
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-inner {
    gap: 40px;
    padding: 52px 24px 48px;
  }

  .hero-title {
    font-size: 34px;
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 26px;
  }

  .header-inner {
    padding: 0 18px;
    min-height: 62px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    order: 3;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 14px;
    border-top: 1px solid var(--line);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    padding: 13px 4px;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  .inner-main {
    padding: 22px 18px 56px;
  }

  .page-header {
    padding-bottom: 22px;
    margin-bottom: 28px;
  }

  .page-title {
    font-size: 26px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 40px 18px 40px;
  }

  .hero-title {
    font-size: 28px;
  }

  .hero-desc {
    max-width: none;
  }

  .section-inner {
    padding: 40px 18px;
  }

  .section {
    padding: 34px 0;
  }

  .collection-grid,
  .slate-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .channel-row,
  .section-channels .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 18px 4px;
  }

  .channel-link {
    justify-self: start;
    margin-top: 4px;
  }

  .path-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .path-step-link {
    justify-self: start;
  }

  .update-item {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 16px;
  }

  .update-desc {
    grid-column: 1 / -1;
  }

  .page-layout,
  .sidebar-left .page-layout,
  .page-layout.sidebar-left {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .pindao-aside {
    order: 2;
  }

  .pindao-content {
    order: 1;
  }

  .guide-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .entry-row,
  .section-slate-entries .entry-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
  }

  .entry-year,
  .entry-region,
  .entry-episodes {
    font-size: 13px;
  }

  .entry-meta {
    grid-column: 1 / -1;
  }

  .field-table {
    font-size: 14px;
  }

  .field-table thead th,
  .field-table tbody th,
  .field-table tbody td {
    padding: 11px 12px;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 40px 18px 24px;
    gap: 28px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .error-main {
    padding: 48px 18px 64px;
  }

  .error-title {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 17px;
  }

  .brand-slogan {
    display: none;
  }

  .hero-title {
    font-size: 25px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-facts {
    gap: 8px 18px;
  }

  .section-title {
    font-size: 21px;
  }

  .collection-name,
  .slate-name {
    margin: 16px 16px 8px;
  }

  .collection-scope,
  .slate-scope {
    margin: 0 16px 10px;
  }

  .collection-count,
  .slate-count {
    margin: 0 16px 16px;
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-type {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-copyright {
    grid-column: 1;
  }

  .related-list,
  .error-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-question {
    padding-right: 36px;
  }

  .faq-answer {
    padding-right: 20px;
  }
}
