/* =========================================================
   樱花免费播放剧场 · 全站样式
   base / layout / components / pages / responsive
   ========================================================= */

/* ---------------------------------------------------------
   1. base：变量、重置、排版基线
   --------------------------------------------------------- */
:root {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-alt: #FBFBFC;
  --text: #1F2328;
  --text-soft: #5C6570;
  --line: #E3E6EA;
  --line-strong: #D3D8DE;
  --accent: #D9527A;
  --accent-soft: #FDEEF3;
  --accent-line: #F1C9D6;
  --state: #2F7D6B;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-soft: 0 1px 2px rgba(31, 35, 40, 0.04);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC",
    Arial, 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(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #B83A61;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0 0 16px;
}

figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  color: var(--text);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  vertical-align: top;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  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: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------
   2. layout：页头 / 导航 / 主容器 / 页脚骨架
   --------------------------------------------------------- */

/* 页头 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 17px;
  flex: 0 0 auto;
}

.brand:hover {
  color: var(--text);
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--surface);
}

.brand-text {
  white-space: nowrap;
}

/* 主导航 */
.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li {
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text-soft);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
  color: var(--text);
}

.nav-link.is-current {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius);
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* 主内容容器 */
.site-main {
  display: block;
}

.inner-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-soft);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--line-strong);
}

.breadcrumb-current {
  color: var(--text);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-description {
  margin: 0;
  max-width: 720px;
  color: var(--text-soft);
  font-size: 15px;
}

/* 内页两栏布局：主内容在前，右侧栏在后 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 40px;
  align-items: start;
}

.main-column,
.layout-main,
.page-content {
  min-width: 0;
}

.page-aside,
.layout-aside {
  min-width: 0;
  position: sticky;
  top: 88px;
}

/* 页脚 */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 28px;
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  min-width: 0;
}

.footer-name {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}

.footer-desc {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-nav {
  min-width: 0;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 6px;
}

.footer-link {
  font-size: 14px;
  color: var(--text-soft);
}

.footer-link:hover {
  color: var(--accent);
}

.footer-link.is-current {
  color: var(--accent);
  font-weight: 600;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px 28px;
  border-top: 1px solid var(--line);
}

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

/* ---------------------------------------------------------
   3. components：通用模块（section、卡片、表格、清单、侧栏）
   --------------------------------------------------------- */

/* 通用 section（首页 / 内页） */
.section,
.content-section {
  margin-bottom: 44px;
}

.section:last-child,
.content-section:last-child {
  margin-bottom: 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 8px;
}

.section-desc,
.section-lead,
.section-intro {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  max-width: 720px;
}

.section-foot,
.section-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-soft);
}

.text-link {
  font-weight: 600;
}

.section-link {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
}

.section-text {
  max-width: 720px;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #B83A61;
  border-color: #B83A61;
  color: #FFFFFF;
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--text-soft);
}

/* 细线表格（首页字段摘要 / 内页关系表） */
.field-table,
.relation-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.field-table th,
.field-table td,
.relation-table th,
.relation-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.field-table thead th,
.relation-table thead th {
  background: var(--surface-alt);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.field-table tbody th,
.relation-table tbody th {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.field-table tbody tr:last-child th,
.field-table tbody tr:last-child td,
.relation-table tbody tr:last-child th,
.relation-table tbody tr:last-child td {
  border-bottom: none;
}

.field-table td,
.relation-table td {
  color: var(--text-soft);
}

.table-caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

/* 步骤清单（首页概览 / 查阅路径页） */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.step-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
}

.step-index {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-body {
  min-width: 0;
}

.step-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.step-text {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

.step-link {
  font-weight: 600;
}

/* 范围调整记录 */
.update-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.update-item {
  display: grid;
  grid-template-columns: 110px 160px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.update-date {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-soft);
}

.update-scope {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
}

.update-text {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

/* 侧栏通用 */
.aside-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.toc-nav,
.toc {
  margin-bottom: 20px;
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-item {
  margin-bottom: 4px;
}

.toc-link {
  display: block;
  padding: 6px 10px;
  font-size: 14px;
  color: var(--text-soft);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.toc-link:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.toc-link.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
}

.toc-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.aside-block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.aside-subtitle {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.aside-list,
.aside-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-item,
.aside-link-list li {
  margin-bottom: 6px;
}

.aside-link {
  font-size: 14px;
  color: var(--text-soft);
}

.aside-link:hover {
  color: var(--accent);
}

.aside-note {
  margin-top: 20px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-soft);
}

.aside-note-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

/* 图片容器通用 */
.hero-media,
.special-media,
.special-figure,
.channel-figure,
.content-figure,
.media-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-media img,
.special-media img,
.special-figure img,
.channel-figure img,
.content-figure img,
.media-figure img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ---------------------------------------------------------
   4. pages：首页
   --------------------------------------------------------- */

/* 首屏信息边界区 */
.hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 14px;
}

.hero-lead {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 20px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text);
  margin: 0;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  margin: 0;
}

.hero-media figcaption {
  padding: 12px 16px;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

/* 首页各模块通栏 */
.home-main .section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
}

.channels-overview {
  padding-top: 48px;
}

/* 题材频道方向总览 */
.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.channel-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1.4fr) minmax(0, 1fr) 140px;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.channel-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.channel-tone {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

.channel-for {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.channel-link {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* 本期专题片单速览 */
.special-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.special-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.special-card:hover {
  border-color: var(--accent-line);
  background: var(--surface-alt);
}

.special-media {
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
}

.special-name {
  font-size: 17px;
  margin: 16px 18px 8px;
}

.special-scope {
  margin: 0 18px 12px;
  font-size: 14px;
  color: var(--text-soft);
}

.special-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 18px 14px;
  padding: 0;
}

.special-tags li {
  margin: 0;
  padding: 3px 10px;
  font-size: 13px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}

.special-link {
  margin: auto 18px 18px;
  font-size: 14px;
  font-weight: 600;
}

/* 条目字段摘要（首页） */
.fields-summary .field-table {
  max-width: 100%;
}

/* 查阅路径三步概览 */
.guide-steps .step-list {
  max-width: 820px;
}

/* 站内范围调整记录 */
.updates .update-list {
  max-width: 900px;
}

/* ---------------------------------------------------------
   5. pages：内页（题材频道 / 专题片单 / 条目字段 / 查阅路径）
   --------------------------------------------------------- */

/* 题材频道页 */
.channel-article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.channel-article:last-of-type {
  border-bottom: none;
}

.channel-intro {
  max-width: 720px;
  color: var(--text-soft);
}

.channel-audience {
  font-size: 15px;
  color: var(--text-soft);
}

.channel-audience .label {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--state);
  background: #EAF4F1;
  border-radius: var(--radius-sm);
}

.channel-link {
  margin: 0;
}

.channel-figure {
  margin: 24px 0 0;
}

.figure-caption {
  padding: 12px 16px;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.relation-table {
  margin-top: 4px;
}

.advice-list {
  margin: 0;
  padding-left: 1.4em;
}

.advice-item {
  margin-bottom: 10px;
  color: var(--text-soft);
}

/* 专题片单页 */
.special-article {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.special-article:last-of-type {
  border-bottom: none;
}

.special-figure {
  margin: 12px 0 16px;
}

.special-scope {
  max-width: 720px;
  color: var(--text-soft);
}

.special-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip-link {
  display: inline-block;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
}

.chip-link:hover {
  color: #FFFFFF;
  background: var(--accent);
  border-color: var(--accent);
}

.special-order {
  font-size: 15px;
  color: var(--text-soft);
}

.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.order-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
}

.order-name {
  font-size: 16px;
  margin-bottom: 6px;
}

.order-desc {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

.next-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.next-item {
  margin: 0;
}

.next-link {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.next-link:hover {
  border-color: var(--accent-line);
  background: var(--surface-alt);
  color: var(--accent);
}

/* 条目字段页 */
.content-figure {
  margin: 0 0 24px;
}

.field-list {
  margin: 0;
}

.field-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.field-item:last-child {
  border-bottom: none;
}

.field-name {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.field-desc {
  margin: 0 0 8px;
  color: var(--text-soft);
}

.field-read {
  margin: 0;
  font-size: 14px;
  color: var(--text-soft);
}

.boundary-list {
  margin: 0;
  padding-left: 1.4em;
}

.boundary-item {
  margin-bottom: 10px;
  color: var(--text-soft);
}

.misread-list {
  display: grid;
  gap: 12px;
}

.misread-item {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.misread-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.misread-wrong {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--text-soft);
}

.misread-wrong::before {
  content: "误读　";
  font-weight: 600;
  color: var(--accent);
}

.misread-right {
  margin: 0;
  font-size: 15px;
  color: var(--text-soft);
}

.misread-right::before {
  content: "正解　";
  font-weight: 600;
  color: var(--state);
}

.related-section .related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-item {
  margin: 0;
}

.related-link {
  display: block;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.related-link:hover {
  border-color: var(--accent-line);
  background: var(--surface-alt);
  color: var(--accent);
}

/* 查阅路径页 */
.media-figure {
  margin: 0 0 20px;
}

.media-caption {
  padding: 12px 16px;
  margin: 0;
  border-top: 1px solid var(--line);
  background: var(--surface-alt);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "＋";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--text-soft);
}

.faq-item[open] .faq-question::after {
  content: "－";
  color: var(--accent);
}

.faq-answer {
  padding: 0 18px 16px;
  font-size: 15px;
  color: var(--text-soft);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.section-feedback .section-text {
  max-width: 720px;
  color: var(--text-soft);
}

/* ---------------------------------------------------------
   6. pages：404
   --------------------------------------------------------- */
.error-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.error-panel {
  max-width: 640px;
}

.error-code {
  font-family: var(--mono);
  font-size: 64px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 8px;
  line-height: 1;
}

.error-main h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.error-text {
  color: var(--text-soft);
  margin-bottom: 24px;
}

.error-actions {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-actions li {
  margin: 0;
}

.error-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #FFFFFF;
}

.error-actions .btn-primary:hover {
  background: #B83A61;
  border-color: #B83A61;
  color: #FFFFFF;
}

.error-actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
}

.error-actions .btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--text-soft);
  color: var(--text);
}

.error-hint {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.error-hint h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.error-hint-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.error-hint-list li {
  margin: 0;
}

.error-hint-list a {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.error-hint-list a:hover {
  border-color: var(--accent-line);
  color: var(--accent);
}

/* ---------------------------------------------------------
   7. responsive：1200 / 900 / 600 三档断点
   --------------------------------------------------------- */

@media (max-width: 1200px) {
  .header-inner,
  .hero-inner,
  .inner-main,
  .footer-inner,
  .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-main .section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 900px) {
  .header-inner {
    min-height: 60px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid var(--line);
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0 10px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
    padding: 12px 4px;
    border-bottom: none;
    border-left: 2px solid transparent;
  }

  .nav-link.is-current {
    border-bottom-color: transparent;
    border-left-color: var(--accent);
    padding-left: 10px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .page-aside,
  .layout-aside {
    position: static;
    order: -1;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px 20px;
  }

  .special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .next-list,
  .related-section .related-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  h1,
  .page-title,
  .hero-title {
    font-size: 24px;
  }

  h2,
  .section-title {
    font-size: 19px;
  }

  h3 {
    font-size: 17px;
  }

  .header-inner,
  .hero-inner,
  .inner-main,
  .footer-inner,
  .footer-bottom,
  .error-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .home-main .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand-text {
    font-size: 16px;
  }

  .hero-inner {
    padding-top: 28px;
    padding-bottom: 32px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .channel-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .special-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .next-list,
  .related-section .related-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .step-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .field-table,
  .relation-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .field-table th,
  .field-table td,
  .relation-table th,
  .relation-table td {
    padding: 10px 12px;
    font-size: 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .error-code {
    font-size: 52px;
  }

  .error-main {
    padding-top: 40px;
    padding-bottom: 56px;
  }
}
