/* ==========================================================================
   YY影院高清剧场 · 全站样式表
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base —— 变量、重置、排版、通用元素
   ========================================================================== */

:root {
  --c-primary: #E85D3A;
  --c-primary-dark: #C9451F;
  --c-accent: #2D7D8C;
  --c-accent-dark: #226270;
  --c-bg: #F9F7F4;
  --c-card: #FFFFFF;
  --c-title: #1A1A1A;
  --c-text: #333333;
  --c-muted: #666666;
  --c-border: #E5E0D8;
  --c-border-strong: #D3CCC0;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-card: 0 1px 2px rgba(26, 26, 26, 0.06);
  --shadow-hover: 0 4px 12px rgba(26, 26, 26, 0.10);
  --container: 1200px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text);
  background-color: var(--c-bg);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  color: var(--c-title);
  font-weight: 700;
  line-height: 1.35;
}

h1 {
  font-size: 32px;
}

h2 {
  font-size: 24px;
  font-weight: 600;
}

h3 {
  font-size: 18px;
  font-weight: 600;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover,
a:focus-visible {
  color: var(--c-primary);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}

.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;
}

/* ==========================================================================
   layout —— 骨架：页头 / 主导航 / 主容器 / 面包屑 / 页标题 / 页脚
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--c-card);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--c-title);
  font-weight: 700;
  flex-shrink: 0;
}

.brand:hover,
.brand:focus-visible {
  color: var(--c-primary);
}

.brand-mark {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background-color: var(--c-primary);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #FFFFFF;
}

.brand-name {
  font-size: 18px;
  line-height: 1.3;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--c-title);
  border-radius: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  display: block;
}

.nav-link {
  display: inline-block;
  padding: 10px 14px;
  min-height: 44px;
  line-height: 24px;
  color: var(--c-text);
  font-size: 15px;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--c-primary);
  background-color: #FBF1EC;
}

.nav-link.is-current {
  color: var(--c-primary);
  font-weight: 600;
  border-bottom-color: var(--c-primary);
}

.site-main {
  display: block;
  width: 100%;
}

.inner-main {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0 0;
  font-size: 14px;
  color: var(--c-muted);
}

.breadcrumb a {
  color: var(--c-muted);
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--c-primary);
}

.breadcrumb-sep {
  color: var(--c-border-strong);
}

.breadcrumb-current {
  color: var(--c-title);
}

.page-header {
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-title);
  margin-bottom: 12px;
}

.page-description {
  max-width: 860px;
  font-size: 16px;
  color: var(--c-muted);
  margin-bottom: 0;
}

.page-description a {
  color: var(--c-accent);
}

.page-lead {
  max-width: 860px;
  font-size: 16px;
  color: var(--c-muted);
  margin: 12px 0 0;
}

.site-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--c-border);
  margin-top: 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 28px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-size: 17px;
  font-weight: 700;
  color: var(--c-title);
  margin-bottom: 8px;
}

.footer-desc {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 0;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-title);
  margin-bottom: 12px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  color: var(--c-muted);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--c-primary);
}

.footer-bottom {
  border-top: 1px solid var(--c-border);
  background-color: #FCFAF7;
}

.footer-copy {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   components —— 按钮、标签、链接、卡片、列表、表格、FAQ
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--c-primary);
  color: #FFFFFF;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--c-primary-dark);
  color: #FFFFFF;
}

.btn-ghost {
  background-color: transparent;
  color: var(--c-accent);
  border-color: var(--c-accent);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: var(--c-accent);
  color: #FFFFFF;
}

.text-link {
  display: inline-block;
  color: var(--c-accent);
  font-weight: 600;
  border-bottom: 1px solid rgba(45, 125, 140, 0.35);
  padding-bottom: 1px;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--c-primary);
  border-bottom-color: rgba(232, 93, 58, 0.45);
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--c-title);
  margin-bottom: 10px;
}

.section-sub,
.section-intro {
  max-width: 820px;
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 24px;
}

.section-intro a {
  color: var(--c-accent);
}

.section-head {
  margin-bottom: 24px;
}

.section-head .section-sub {
  margin-bottom: 0;
}

.channel-media,
.topic-media,
.topic-figure,
.hero-figure,
.guide-media,
.boundary-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background-color: #EFEBE4;
}

.channel-media img,
.topic-media img,
.topic-figure img,
.hero-figure img,
.guide-media img,
.boundary-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-link,
.topic-link,
.advice-link,
.feedback-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent);
}

.channel-link::after,
.topic-link::after,
.advice-link::after,
.feedback-link::after {
  content: " →";
  font-weight: 400;
}

.channel-link:hover,
.topic-link:hover,
.advice-link:hover,
.feedback-link:hover,
.channel-link:focus-visible,
.topic-link:focus-visible,
.advice-link:focus-visible,
.feedback-link:focus-visible {
  color: var(--c-primary);
}

/* ==========================================================================
   pages —— 首页
   ========================================================================== */

.section-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.home-main {
  padding-bottom: 8px;
}

/* 首屏：频道列表 */
.hero-channels {
  padding: 36px 0 48px;
  background-color: #FFFDFA;
  border-bottom: 1px solid var(--c-border);
}

.hero-channels .section-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas:
    "lead figure"
    "strip strip"
    "list list";
  gap: 28px 36px;
}

.hero-lead {
  grid-area: lead;
  min-width: 0;
  align-self: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-accent-dark);
  background-color: #E4F0F2;
  border-radius: 999px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--c-title);
  margin-bottom: 14px;
}

.hero-text {
  font-size: 16px;
  color: var(--c-text);
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  grid-area: figure;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.hero-figure img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.hero-figure figcaption {
  padding: 10px 2px 0;
  font-size: 13px;
  color: var(--c-muted);
}

.channel-strip {
  grid-area: strip;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.channel-chip {
  display: block;
}

.channel-chip-link {
  display: inline-block;
  padding: 8px 16px;
  min-height: 40px;
  line-height: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent-dark);
  background-color: #E4F0F2;
  border: 1px solid #CFE2E5;
  border-radius: 999px;
}

.channel-chip-link:hover,
.channel-chip-link:focus-visible {
  color: #FFFFFF;
  background-color: var(--c-accent);
  border-color: var(--c-accent);
}

.channel-list {
  grid-area: list;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.channel-row {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.channel-row:hover,
.channel-row:focus-within {
  transform: translateY(-3px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-hover);
}

.channel-row .channel-media {
  border-radius: 0;
  height: 150px;
  flex-shrink: 0;
}

.channel-row .channel-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 18px;
}

.channel-row .channel-name {
  font-size: 18px;
  margin-bottom: 8px;
}

.channel-row .channel-desc {
  flex: 1;
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.channel-row-featured {
  grid-column: span 3;
  flex-direction: row;
  align-items: stretch;
}

.channel-row-featured .channel-media {
  width: 46%;
  height: auto;
  min-height: 260px;
  flex-shrink: 0;
}

.channel-row-featured .channel-body {
  flex: 1;
  justify-content: center;
  padding: 26px 30px;
}

.channel-row-featured .channel-name {
  font-size: 24px;
}

.channel-row-featured .channel-desc {
  font-size: 15px;
  max-width: 620px;
}

.channel-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--c-primary-dark);
  background-color: #FBE7E0;
  border-radius: var(--radius-sm);
}

/* 热门专题聚合区 */
.home-topics {
  padding: 48px 0;
  border-bottom: 1px solid var(--c-border);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.topic-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.topic-card:hover,
.topic-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-hover);
}

.topic-card .topic-media,
.topic-card .topic-figure {
  height: 140px;
  border-radius: 0;
  flex-shrink: 0;
}

.topic-card .topic-name {
  margin: 16px 18px 8px;
  font-size: 17px;
  color: var(--c-title);
}

.topic-card .topic-name a {
  color: var(--c-title);
}

.topic-card .topic-name a:hover,
.topic-card .topic-name a:focus-visible {
  color: var(--c-primary);
}

.topic-card .topic-idea {
  flex: 1;
  margin: 0 18px 12px;
  font-size: 14px;
  color: var(--c-muted);
}

.topic-card .topic-link {
  margin: 0 18px 18px;
}

.topic-card .topic-meta {
  margin: 0 18px 18px;
  font-size: 13px;
  color: var(--c-muted);
}

/* 频道选择建议 */
.home-advice {
  padding: 48px 0;
  background-color: #FFFDFA;
  border-bottom: 1px solid var(--c-border);
}

.advice-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.home-advice .advice-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 22px 20px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--radius);
}

.home-advice .advice-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.home-advice .advice-text {
  flex: 1;
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

/* 播放说明速览 */
.home-guide {
  padding: 48px 0;
  border-bottom: 1px solid var(--c-border);
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.guide-item {
  min-width: 0;
  padding: 20px 22px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.guide-name {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--c-title);
}

.guide-name::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 2px;
  background-color: var(--c-primary);
  vertical-align: middle;
}

.guide-text {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 0;
}

.guide-more {
  margin: 24px 0 0;
}

/* 内容边界与反馈入口 */
.home-boundary {
  padding: 48px 0 56px;
  background-color: #F3F0EA;
}

.home-boundary .section-title {
  margin-bottom: 14px;
}

.boundary-text {
  max-width: 900px;
  font-size: 15px;
  color: var(--c-text);
  margin-bottom: 20px;
}

.boundary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 0;
}

/* ==========================================================================
   pages —— 频道页
   ========================================================================== */

.channel-overview {
  margin-bottom: 48px;
}

.channel-entry {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 20px;
  margin-bottom: 18px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.channel-entry:hover,
.channel-entry:focus-within {
  transform: translateY(-2px);
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-hover);
}

.channel-entry .channel-media {
  height: 170px;
}

.channel-entry .channel-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
}

.channel-entry .channel-name {
  font-size: 19px;
  margin-bottom: 8px;
}

.channel-entry .channel-scope {
  font-size: 15px;
  color: var(--c-text);
  margin-bottom: 8px;
}

.channel-entry .channel-fit {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.channel-advice {
  margin-bottom: 24px;
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.channel-advice .advice-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-top: 4px solid var(--c-primary);
  border-radius: var(--radius);
}

.channel-advice .advice-scene {
  font-size: 17px;
  margin-bottom: 8px;
}

.channel-advice .advice-text {
  flex: 1;
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.advice-note {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 24px 0 0;
  padding: 16px 20px;
  font-size: 14px;
  background-color: #F3F0EA;
  border-radius: var(--radius);
}

/* ==========================================================================
   pages —— 专题页
   ========================================================================== */

.topics-section {
  margin-bottom: 48px;
}

.topics-section .topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topics-section .topic-card {
  min-height: 100%;
}

.topics-section .topic-figure {
  height: 160px;
}

.topic-advice {
  margin-bottom: 48px;
}

.topic-advice .advice-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic-advice .advice-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  border-left: 4px solid var(--c-accent);
}

.topic-advice .advice-title {
  font-size: 17px;
  margin-bottom: 8px;
}

.topic-advice .advice-text {
  flex: 1;
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.topic-advice .advice-link {
  margin-bottom: 0;
}

.topic-notes {
  margin-bottom: 24px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.note-card {
  min-width: 0;
  padding: 22px;
  background-color: #F3F0EA;
  border-radius: var(--radius);
}

.note-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.note-text {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   pages —— 播放说明页
   ========================================================================== */

.content-section {
  margin-bottom: 48px;
}

.guide-quality .guide-media {
  margin-bottom: 24px;
  max-width: 900px;
}

.guide-quality .guide-media img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.guide-media figcaption {
  padding: 10px 2px 0;
  font-size: 13px;
  color: var(--c-muted);
}

.quality-table-wrap {
  overflow-x: auto;
  margin-bottom: 28px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.quality-table {
  min-width: 640px;
  font-size: 15px;
}

.quality-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--c-title);
  background-color: #F3F0EA;
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}

.quality-table tbody td {
  padding: 14px 18px;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.quality-table tbody tr:last-child td {
  border-bottom: 0;
}

.quality-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.quality-note {
  min-width: 0;
  padding: 20px 22px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.quality-note-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.quality-note p {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item[open] {
  border-color: var(--c-border-strong);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-title);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  line-height: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  color: var(--c-primary);
  border: 1px solid var(--c-border-strong);
  border-radius: 50%;
}

.faq-item[open] .faq-question::after {
  content: "−";
  color: #FFFFFF;
  background-color: var(--c-primary);
  border-color: var(--c-primary);
}

.faq-question:hover {
  color: var(--c-primary);
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px solid var(--c-border);
}

.faq-answer p {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--c-text);
}

.prepare-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.prepare-item {
  min-width: 0;
  padding: 20px 22px;
  background-color: #F3F0EA;
  border-radius: var(--radius);
}

.prepare-item-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.prepare-item p {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 0;
}

.prepare-more {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0 0;
}

/* ==========================================================================
   pages —— 反馈与内容边界页
   ========================================================================== */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  align-items: start;
}

.layout-main {
  min-width: 0;
}

.layout-aside {
  min-width: 0;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.boundary-item {
  min-width: 0;
  padding: 20px 22px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.boundary-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.boundary-desc {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 0;
}

.boundary-figure {
  max-width: 720px;
}

.boundary-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.boundary-figure figcaption {
  padding: 10px 2px 0;
  font-size: 13px;
  color: var(--c-muted);
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feedback-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.feedback-name {
  font-size: 17px;
  margin-bottom: 8px;
}

.feedback-desc {
  flex: 1;
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: process;
}

.process-step {
  position: relative;
  min-width: 0;
  padding: 22px 20px 20px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.process-step::before {
  counter-increment: process;
  content: counter(process);
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  line-height: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  background-color: var(--c-accent);
  border-radius: 50%;
}

.process-name {
  font-size: 16px;
  margin-bottom: 8px;
}

.process-desc {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 0;
}

.scene-table {
  font-size: 15px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.scene-table caption {
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  color: var(--c-muted);
  background-color: #F3F0EA;
  border-bottom: 1px solid var(--c-border);
}

.scene-table thead th {
  padding: 13px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--c-title);
  background-color: #F3F0EA;
  border-bottom: 1px solid var(--c-border);
}

.scene-table tbody td {
  padding: 13px 18px;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
}

.scene-table tbody tr:last-child td {
  border-bottom: 0;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 16px 20px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.entry-item a {
  font-size: 16px;
  font-weight: 600;
  color: var(--c-accent);
}

.entry-item a:hover,
.entry-item a:focus-visible {
  color: var(--c-primary);
}

.entry-desc {
  font-size: 14px;
  color: var(--c-muted);
}

.aside-block {
  padding: 20px 22px;
  margin-bottom: 20px;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.aside-title {
  font-size: 16px;
  margin-bottom: 12px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-list li {
  font-size: 14px;
  color: var(--c-muted);
  padding-left: 14px;
  position: relative;
}

.aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-primary);
}

.aside-list a {
  color: var(--c-accent);
}

.aside-list a:hover,
.aside-list a:focus-visible {
  color: var(--c-primary);
}

.aside-note {
  background-color: #F3F0EA;
}

.aside-note p {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   pages —— 404
   ========================================================================== */

.error-main {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 20px 80px;
}

.error-panel {
  width: 100%;
  max-width: 720px;
  padding: 40px 36px;
  text-align: center;
  background-color: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.error-code {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-primary);
  margin-bottom: 12px;
}

.error-title {
  font-size: 26px;
  margin-bottom: 12px;
}

.error-text {
  font-size: 15px;
  color: var(--c-muted);
  margin-bottom: 24px;
}

.error-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.error-item {
  min-width: 0;
}

.error-link {
  display: inline-block;
  padding: 10px 18px;
  min-height: 44px;
  line-height: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-accent-dark);
  background-color: #E4F0F2;
  border: 1px solid #CFE2E5;
  border-radius: var(--radius-sm);
}

.error-link:hover,
.error-link:focus-visible {
  color: #FFFFFF;
  background-color: var(--c-accent);
  border-color: var(--c-accent);
}

.error-note {
  font-size: 14px;
  color: var(--c-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   responsive —— 断点 1024 / 768 / 480
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-channels .section-inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "lead"
      "figure"
      "strip"
      "list";
    gap: 24px;
  }

  .hero-figure img {
    height: 260px;
  }

  .channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-row-featured {
    grid-column: span 2;
  }

  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topics-section .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advice-list,
  .guide-list,
  .advice-grid,
  .topic-advice .advice-list,
  .quality-notes,
  .prepare-list,
  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  h1,
  .hero-title,
  .page-title {
    font-size: 26px;
  }

  h2,
  .section-title {
    font-size: 21px;
  }

  h3 {
    font-size: 17px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .nav-toggle {
    display: flex;
    order: 2;
  }

  .site-nav {
    order: 3;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 8px 0 4px;
    border-top: 1px solid var(--c-border);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 12px 8px;
    min-height: 44px;
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
  }

  .nav-link.is-current {
    border-bottom-color: var(--c-border);
    background-color: #FBF1EC;
  }

  .inner-main {
    padding: 0 16px 40px;
  }

  .section-inner {
    padding: 0 16px;
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 13px;
  }

  .page-header {
    padding: 16px 0 22px;
    margin-bottom: 24px;
  }

  .page-description,
  .page-lead {
    font-size: 15px;
  }

  .hero-channels {
    padding: 24px 0 32px;
  }

  .hero-figure img {
    height: 200px;
  }

  .channel-list,
  .topic-grid,
  .topics-section .topic-grid,
  .advice-list,
  .guide-list,
  .advice-grid,
  .topic-advice .advice-list,
  .quality-notes,
  .prepare-list,
  .feedback-grid,
  .notes-grid,
  .process-list,
  .boundary-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .channel-row-featured {
    grid-column: span 1;
    flex-direction: column;
  }

  .channel-row-featured .channel-media {
    width: 100%;
    min-height: 0;
    height: 200px;
  }

  .channel-row-featured .channel-body {
    padding: 20px 20px 22px;
  }

  .channel-row-featured .channel-name {
    font-size: 20px;
  }

  .channel-row .channel-media {
    height: 170px;
  }

  .home-topics,
  .home-advice,
  .home-guide {
    padding: 32px 0;
  }

  .home-boundary {
    padding: 32px 0 40px;
  }

  .channel-overview,
  .topics-section,
  .topic-advice,
  .content-section {
    margin-bottom: 32px;
  }

  .channel-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .channel-entry .channel-media {
    height: 180px;
  }

  .guide-quality .guide-media img,
  .boundary-figure img {
    height: 200px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .layout-aside {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .aside-block {
    margin-bottom: 0;
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-about {
    grid-column: span 2;
  }

  .footer-copy {
    padding: 14px 16px;
  }

  .error-main {
    padding: 40px 16px 56px;
  }

  .error-panel {
    padding: 28px 20px;
  }

  .error-code {
    font-size: 44px;
  }

  .error-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .boundary-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-about {
    grid-column: span 1;
  }

  .error-list {
    flex-direction: column;
    align-items: stretch;
  }

  .error-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
