/* ============================================================
   greengrand.cn — 麻豆影视传媒官网
   全站样式表
   分组：base / layout / components / pages / responsive
   ============================================================ */

/* ------------------------------------------------------------
   Base — 基础变量、重置、字体、颜色、通用元素
   ------------------------------------------------------------ */
:root {
  --color-header-bg: #1c1c1e;
  --color-header-text: #f7f5f0;
  --color-paper: #f7f5f0;
  --color-card-bg: #ffffff;
  --color-text: #222222;
  --color-text-light: #555555;
  --color-text-muted: #777777;
  --color-border: #e0ddd5;
  --color-red: #c0392b;
  --color-blue: #2c3e50;
  --color-orange: #e67e22;
  --color-green: #16a085;
  --color-link: #2c3e50;
  --color-link-hover: #c0392b;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --container-width: 1120px;
  --content-width: 720px;
  --sidebar-width: 320px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text);
  background-color: var(--color-paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
}

p {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ------------------------------------------------------------
   Layout — 全站骨架：页头、导航、主容器、页脚
   ------------------------------------------------------------ */

/* 站点页头 */
.site-header {
  background-color: var(--color-header-bg);
  color: var(--color-header-text);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--color-red);
}

.header-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 16px;
}

/* 品牌区 */
.brand-block {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-header-text);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.brand-slogan {
  font-size: 12px;
  color: rgba(247, 245, 240, 0.65);
  line-height: 1.4;
  margin-top: 2px;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-list li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  color: rgba(247, 245, 240, 0.85);
  font-size: 15px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-list a.is-current {
  color: #ffffff;
  font-weight: 600;
  background-color: rgba(192, 57, 43, 0.55);
}

/* 移动端菜单按钮（默认隐藏） */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(247, 245, 240, 0.4);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  color: var(--color-header-text);
  min-height: 44px;
  font-family: var(--font-sans);
  font-size: 14px;
}

.nav-toggle-icon {
  display: inline-block;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  position: relative;
  transition: background-color 0.2s ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-toggle-text {
  font-size: 14px;
}

/* 站点主内容 */
.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-header-bg);
  color: rgba(247, 245, 240, 0.8);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px 24px;
}

.footer-brand {
  margin-bottom: 24px;
}

.footer-site-name {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(247, 245, 240, 0.6);
  max-width: 560px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-group-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
}

.footer-group ul {
  list-style: none;
}

.footer-group ul li {
  margin-bottom: 8px;
}

.footer-group ul a {
  color: rgba(247, 245, 240, 0.7);
  font-size: 14px;
  line-height: 1.5;
}

.footer-group ul a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copyright {
  font-size: 13px;
  color: rgba(247, 245, 240, 0.5);
}

.boundary-note {
  font-size: 13px;
  color: rgba(247, 245, 240, 0.5);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Components — 通用模块组件
   ------------------------------------------------------------ */

/* 面包屑 */
.breadcrumb {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--color-link);
}

.breadcrumb a:hover {
  color: var(--color-link-hover);
}

.breadcrumb-sep {
  color: var(--color-border);
  font-size: 12px;
}

.breadcrumb-current {
  color: var(--color-text-muted);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  color: var(--color-text);
}

.page-description {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 680px;
}

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
  position: relative;
  padding-left: 14px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--color-red);
  border-radius: 2px;
}

/* 侧栏标题 */
.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--color-text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

/* 文本链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.text-link:hover::after {
  transform: translateX(4px);
}

/* 内容配图 */
.content-media {
  margin: 0;
}

.content-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.content-media figcaption {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
  line-height: 1.5;
}

.content-media-primary {
  margin-top: 24px;
}

.content-media-inline {
  margin: 20px 0;
}

/* 表格容器 */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-card-bg);
}

.compare-table {
  width: 100%;
  font-size: 14px;
  line-height: 1.6;
}

.compare-table thead th {
  background-color: var(--color-header-bg);
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.compare-table tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  vertical-align: top;
}

.compare-table tbody tr:nth-child(even) {
  background-color: #faf9f5;
}

/* 频道色标 */
.tag-red {
  --tag-color: var(--color-red);
}
.tag-blue {
  --tag-color: var(--color-blue);
}
.tag-orange {
  --tag-color: var(--color-orange);
}
.tag-green {
  --tag-color: var(--color-green);
}

/* 卡片 */
.playlist-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.playlist-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.playlist-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.playlist-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.playlist-directions {
  list-style: none;
  margin-bottom: 16px;
}

.playlist-directions li {
  font-size: 14px;
  color: var(--color-text-light);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.playlist-directions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-red);
}

/* 步骤卡片 */
.step-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.step-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ------------------------------------------------------------
   Pages — 首页
   ------------------------------------------------------------ */

/* 首屏作品档案焦点区 */
.hero-archive {
  background-color: var(--color-paper);
  padding: 40px 0 32px;
}

.hero-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.hero-visual {
  min-width: 0;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero-entries {
  min-width: 0;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-intro {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 24px;
}

.entry-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.entry-card {
  display: block;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-red);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.entry-card:nth-child(2) {
  border-left-color: var(--color-blue);
}

.entry-card:nth-child(3) {
  border-left-color: var(--color-orange);
}

.entry-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateX(4px);
}

.entry-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.entry-desc {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 频道标签带 */
.channel-strip {
  padding: 40px 0;
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.strip-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.tag-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}

.tag-item {
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--tag-color, var(--color-red));
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: box-shadow 0.2s ease;
}

.tag-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.tag-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.tag-note {
  display: block;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* 专题片单预览 */
.featured-lists {
  padding: 48px 0;
}

.featured-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.list-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* 频道对比速览 */
.channel-compare {
  padding: 48px 0;
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.compare-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.more-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
}

.more-link::after {
  content: " →";
  transition: transform 0.2s ease;
}

.more-link:hover::after {
  transform: translateX(4px);
}

/* 观看指南摘要 */
.guide-summary {
  padding: 48px 0;
}

.guide-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 常见疑问摘选 */
.faq-preview {
  padding: 48px 0 56px;
  background-color: var(--color-card-bg);
  border-top: 1px solid var(--color-border);
}

.faq-shell {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.faq-short-list {
  list-style: none;
}

.faq-short-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  line-height: 1.5;
  position: relative;
  padding-left: 20px;
}

.faq-short-list li::before {
  content: "Q";
  position: absolute;
  left: 0;
  top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-red);
}

.faq-short-list a {
  color: var(--color-text);
}

.faq-short-list a:hover {
  color: var(--color-link-hover);
}

.faq-entry-col {
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.faq-entry-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
}

.entry-card-link {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 2px solid var(--color-red);
  padding-bottom: 2px;
}

.entry-card-link:hover {
  color: var(--color-link-hover);
}

/* 首页底部相关链接 */
.related-links {
  background-color: var(--color-paper);
  border-top: 1px solid var(--color-border);
  padding: 24px 0;
}

.related-links-label {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.related-links-item {
  display: block;
  text-align: center;
  font-size: 14px;
  color: var(--color-link);
  text-decoration: none;
}

.related-links-item:hover {
  color: var(--color-link-hover);
}

/* ------------------------------------------------------------
   Pages — 内页通用
   ------------------------------------------------------------ */

.inner-main {
  width: 100%;
}

/* 内页布局：主内容 + 侧栏 */
.page-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 20px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 40px;
  align-items: start;
}

.page-layout .main-content {
  min-width: 0;
}

/* 侧栏 */
.sidebar-content {
  min-width: 0;
}

/* 侧栏卡片 */
.scene-card,
.side-card,
.topic-card,
.aside-card,
.archive-block {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

/* 相关页面链接 */
.inner-links {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 48px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.inner-links a {
  display: inline-block;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.inner-links a:hover {
  background-color: var(--color-link);
  color: #ffffff;
}

/* ------------------------------------------------------------
   Pages — 频道看点 pindao
   ------------------------------------------------------------ */

.channel-catalog {
  margin-bottom: 40px;
}

.channel-item-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.channel-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-blue);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  transition: box-shadow 0.2s ease;
}

.channel-item:nth-child(2) {
  border-left-color: var(--color-red);
}

.channel-item:nth-child(3) {
  border-left-color: var(--color-orange);
}

.channel-item:nth-child(4) {
  border-left-color: var(--color-green);
}

.channel-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.channel-item-head {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.channel-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.channel-direction {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.section-note {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 16px 0;
}

/* 场景卡片 */
.scene-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scene-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.scene-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 选择指南链接 */
.guide-links ul {
  list-style: none;
}

.guide-links ul li {
  margin-bottom: 10px;
}

.guide-links ul a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guide-links ul a::before {
  content: "›";
  font-size: 18px;
  color: var(--color-red);
}

.guide-links ul a:hover {
  color: var(--color-link-hover);
}

/* ------------------------------------------------------------
   Pages — 作品档案 zuopin
   ------------------------------------------------------------ */

.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 40px;
}

/* 画廊 */
.gallery-module {
  margin-bottom: 32px;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.gallery-thumb {
  position: relative;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  transition: border-color 0.2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb.is-active {
  border-color: var(--color-red);
}

.thumb-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-red);
  color: #ffffff;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  display: none;
}

.gallery-thumb.is-active .thumb-check {
  display: block;
}

.gallery-main {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
}

.gallery-main img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.gallery-main figcaption {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
}

/* 作品信息 */
.work-info-module {
  margin-bottom: 32px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.info-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.info-item dt {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.info-item dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

/* 关联片单 */
.related-playlists {
  margin-top: 40px;
}

.playlist-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.playlist-cards .playlist-card {
  display: block;
  text-decoration: none;
  color: var(--color-text);
}

.playlist-cards .playlist-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.playlist-cards .playlist-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* 归档侧栏 */
.archive-block {
  margin-bottom: 24px;
}

.archive-list {
  list-style: none;
}

.archive-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.archive-list li:last-child {
  border-bottom: none;
}

.archive-list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
  display: block;
  margin-bottom: 2px;
}

.archive-list a:hover {
  color: var(--color-link-hover);
}

.archive-list p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* 题材标签 */
.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.genre-tags a {
  display: inline-block;
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.genre-tags a:hover {
  background-color: var(--color-link);
  color: #ffffff;
}

/* ------------------------------------------------------------
   Pages — 观看指南 guankan
   ------------------------------------------------------------ */

.guide-layout {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}

.guide-content {
  min-width: 0;
}

.guide-section {
  margin-bottom: 40px;
}

.guide-section h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 14px;
  position: relative;
}

.guide-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--color-red);
  border-radius: 2px;
}

.section-lead {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-card {
  display: flex;
  gap: 20px;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-red);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-card:nth-child(2) .step-number {
  background-color: var(--color-blue);
}

.step-card:nth-child(3) .step-number {
  background-color: var(--color-green);
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

.step-body a {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
}

.step-body a:hover {
  color: var(--color-link-hover);
}

/* 边界提示 */
.boundary-section {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.boundary-section > p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.boundary-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.boundary-item {
  background-color: var(--color-paper);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.boundary-item h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.boundary-item p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.guide-figure {
  margin-top: 20px;
}

.guide-figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.guide-figure figcaption {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

/* 侧栏 */
.guide-aside {
  min-width: 0;
}

.aside-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.aside-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.toc-list {
  list-style: none;
}

.toc-list li {
  margin-bottom: 10px;
}

.toc-list a {
  font-size: 14px;
  color: var(--color-link);
  text-decoration: none;
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease;
}

.toc-list a:hover {
  background-color: var(--color-paper);
  color: var(--color-link-hover);
}

.note-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 相关指南 */
.related-guides {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.related-guides h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-card {
  display: block;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.related-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.related-desc {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Pages — 常见疑问 wenti
   ------------------------------------------------------------ */

.faq-main {
  min-width: 0;
}

.faq-group {
  margin-bottom: 40px;
}

.faq-group-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-left: 14px;
  position: relative;
}

.faq-group-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--color-red);
  border-radius: 2px;
}

.faq-item {
  margin-bottom: 12px;
}

.faq-details {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-summary {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
  transition: background-color 0.2s ease;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.faq-details[open] .faq-summary {
  background-color: var(--color-paper);
}

.faq-details[open] .faq-summary::after {
  content: "−";
}

.faq-summary:hover {
  background-color: var(--color-paper);
}

.faq-answer {
  padding: 0 20px 16px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
}

/* FAQ 侧栏 */
.faq-sidebar {
  min-width: 0;
}

.sidebar-inner {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.topic-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.topic-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.topic-card-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.topic-card-link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
}

.topic-card-link::after {
  content: " →";
}

.topic-card-link:hover {
  color: var(--color-link-hover);
}

/* 反馈说明 */
.feedback-note {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 56px;
}

.feedback-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feedback-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 720px;
}

/* ------------------------------------------------------------
   Pages — 更新说明 dongtai
   ------------------------------------------------------------ */

.update-media {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 20px 0;
}

.update-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.update-media figcaption {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.sidebar-right {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 40px;
  align-items: start;
}

.update-section {
  margin-bottom: 40px;
}

.update-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-left: 14px;
  position: relative;
}

.update-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background-color: var(--color-red);
  border-radius: 2px;
}

.section-desc {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  padding-left: 14px;
}

.batch-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.batch-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.batch-number {
  display: inline-block;
  background-color: var(--color-red);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
}

.batch-date {
  font-size: 13px;
  color: var(--color-text-muted);
}

.batch-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}

.batch-item > p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.batch-pages {
  font-size: 13px;
  color: var(--color-text-muted);
}

.batch-pages a {
  color: var(--color-link);
  text-decoration: none;
  margin-right: 12px;
}

.batch-pages a:hover {
  color: var(--color-link-hover);
}

/* 维护方向卡片 */
.side-card-group {
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.side-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}

.side-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.side-card-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.side-card p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* 相关页面链接 */
.related-links-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.related-link-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.related-link {
  display: block;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-link);
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  color: var(--color-link-hover);
}

/* ------------------------------------------------------------
   Pages — 404
   ------------------------------------------------------------ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  flex: 1;
}

.error-panel {
  text-align: center;
  max-width: 560px;
  width: 100%;
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 48px 40px;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--color-red);
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background-color: var(--color-red);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #a93226;
  color: #ffffff;
}

.btn-secondary {
  background-color: var(--color-paper);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-border);
}

.error-help {
  font-size: 14px;
  color: var(--color-text-muted);
}

.error-help a {
  color: var(--color-link);
  text-decoration: none;
  margin: 0 8px;
}

.error-help a:hover {
  color: var(--color-link-hover);
}

/* ------------------------------------------------------------
   Responsive — 响应式适配
   ------------------------------------------------------------ */

/* 平板 */
@media (max-width: 1024px) {
  .page-layout,
  .layout-with-sidebar,
  .sidebar-right {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }

  .guide-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .hero-shell {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-figure img {
    height: 280px;
  }
}

/* 手机 */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .header-shell {
    padding: 0 16px;
    min-height: var(--header-height);
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-slogan {
    font-size: 11px;
  }

  /* 显示菜单按钮，隐藏横向导航 */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-header-bg);
    border-bottom: 3px solid var(--color-red);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 99;
  }

  .site-nav.is-open {
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    padding: 14px 12px;
    font-size: 16px;
    border-radius: var(--radius-sm);
  }

  /* 首页布局 */
  .hero-archive {
    padding: 24px 0;
  }

  .hero-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }

  .hero-figure img {
    height: 220px;
  }

  .hero-title {
    font-size: 24px;
  }

  .tag-list {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .list-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .steps-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* 内页布局 */
  .page-layout,
  .layout-with-sidebar,
  .sidebar-right {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 16px 40px;
  }

  .guide-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px 40px;
  }

  .guide-aside {
    order: 2;
  }

  .sidebar-content {
    order: 2;
  }

  .faq-sidebar {
    order: 2;
  }

  .sidebar-inner,
  .side-card-group {
    position: static;
  }

  /* 页面标题 */
  .page-title {
    font-size: 24px;
  }

  /* 画廊 */
  .gallery-thumbnails {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }

  .gallery-main img {
    height: 240px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }

  .playlist-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 步骤 */
  .step-card {
    flex-direction: column;
    gap: 12px;
  }

  .boundary-list {
    grid-template-columns: 1fr;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-link-list {
    grid-template-columns: 1fr;
  }

  /* FAQ */
  .faq-group {
    margin-bottom: 32px;
  }

  /* 页脚 */
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-shell {
    padding: 32px 16px 20px;
  }

  /* 404 */
  .error-panel {
    padding: 32px 20px;
  }

  .error-code {
    font-size: 56px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 240px;
  }

  /* 相关链接 */
  .related-links {
    padding: 16px 0;
  }

  .inner-links {
    padding: 0 16px 32px;
  }

  .related-guides {
    padding: 0 16px 40px;
  }

  .feedback-note {
    padding: 0 16px 40px;
  }

  .update-media {
    padding: 16px 16px 0;
  }

  .update-media img {
    height: 180px;
  }

  /* 表格横向滚动 */
  .table-wrap {
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  .compare-table {
    min-width: 560px;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .tag-list {
    grid-template-columns: 1fr;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(3, 1fr);
  }

  .entry-list {
    gap: 10px;
  }

  .entry-card {
    padding: 14px 16px;
  }

  .channel-item {
    padding: 16px 18px;
  }

  .playlist-card {
    padding: 18px;
  }
}

/* ------------------------------------------------------------
   滚动渐显动画 — 仅作为增强，不影响初始可见性
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .site-main .section-title,
  .site-main .playlist-card,
  .site-main .step-item,
  .site-main .channel-item,
  .site-main .entry-card {
    animation: fadeInUp 0.5s ease both;
  }

  .site-main .section-title:nth-child(2),
  .site-main .playlist-card:nth-child(2),
  .site-main .step-item:nth-child(2),
  .site-main .channel-item:nth-child(2),
  .site-main .entry-card:nth-child(2) {
    animation-delay: 0.1s;
  }

  .site-main .section-title:nth-child(3),
  .site-main .playlist-card:nth-child(3),
  .site-main .step-item:nth-child(3),
  .site-main .channel-item:nth-child(3),
  .site-main .entry-card:nth-child(3) {
    animation-delay: 0.2s;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0.6;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
