/* ============================================================
   精东影视 · 全站样式表
   地图色系：深蓝 #2C5F8A / 青绿 #3A9D8C / 沙橙 #E9A04B
   ============================================================ */

/* ------------------------------------------------------------
   Base · 基础重置与全局变量
   ------------------------------------------------------------ */
:root {
  --color-primary: #2C5F8A;
  --color-secondary: #3A9D8C;
  --color-accent: #E9A04B;
  --color-cream: #F5F1E8;
  --color-ink: #2D2D2D;
  --color-white: #FFFFFF;
  --color-border: #E3DDD1;
  --color-muted: #6B7280;
  --color-bg-soft: #F8F6F1;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 2px 8px rgba(45, 45, 45, 0.06);
  --shadow-hover: 0 6px 18px rgba(44, 95, 138, 0.12);
  --header-h: 64px;
  --transition-speed: 0.2s;
}

*,
*::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.7;
  color: var(--color-ink);
  background-color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

a:hover {
  color: var(--color-secondary);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-ink);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 1em;
}

/* 辅助类 */
.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;
}

/* ------------------------------------------------------------
   Layout · 全站骨架
   ------------------------------------------------------------ */

/* 页头 */
.site-header {
  background-color: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.brand-logo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  color: var(--color-white);
}

.brand-logo:hover {
  color: var(--color-white);
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.5px;
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.5;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.nav-list li a:hover {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.12);
}

.nav-list li a.is-current {
  color: var(--color-white);
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* 移动端导航按钮 */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-icon {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-white);
  position: relative;
  transition: background-color var(--transition-speed) ease;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background-color: var(--color-white);
  transition: transform var(--transition-speed) ease;
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  top: 7px;
}

/* 页脚 */
.site-footer {
  background-color: #243B4F;
  color: rgba(255, 255, 255, 0.8);
  margin-top: auto;
}

.footer-columns {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
}

.footer-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 14px;
}

.footer-about p,
.footer-tips p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0;
}

.footer-nav-list li {
  margin-bottom: 8px;
}

.footer-nav-list li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.footer-nav-list li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

/* 主内容容器 */
.site-main {
  flex: 1;
  width: 100%;
}

.inner-main {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 20px 60px;
  width: 100%;
}

/* 面包屑 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--color-primary);
}

.breadcrumb a:hover {
  color: var(--color-secondary);
}

.breadcrumb-sep {
  color: var(--color-muted);
}

.breadcrumb-current {
  color: var(--color-muted);
}

/* 页面标题区 */
.page-header {
  margin-bottom: 32px;
}

.page-header .page-title {
  margin-bottom: 10px;
}

.page-description {
  font-size: 16px;
  color: var(--color-muted);
  max-width: 720px;
  margin-bottom: 0;
  line-height: 1.7;
}

/* 区块标题 */
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc,
.section-intro,
.section-lead {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   Components · 通用组件
   ------------------------------------------------------------ */

/* 文本链接 */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
}

.text-link::after {
  content: "→";
  font-size: 14px;
  transition: transform var(--transition-speed) ease;
}

.text-link:hover::after {
  transform: translateX(3px);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  min-height: 44px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #24507A;
  color: var(--color-white);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* 侧栏通用 */
.sidebar-area {
  min-width: 0;
}

.sidebar-block {
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

/* ------------------------------------------------------------
   Pages · 首页 (index.html)
   ------------------------------------------------------------ */

.home-main {
  background-color: var(--color-white);
}

/* Hero 区 */
.hero-section {
  background-color: var(--color-cream);
  padding: 48px 0;
}

.hero-section > div {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-media {
  min-width: 0;
}

.hero-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hero-figure img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.hero-caption {
  padding: 10px 14px;
  background-color: var(--color-white);
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
}

.hero-content .page-title {
  margin-bottom: 14px;
}

.hero-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-ink);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* 频道导航区 */
.channel-nav-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px;
}

.section-header {
  margin-bottom: 28px;
}

.section-header .section-title {
  margin-bottom: 6px;
}

.section-header .section-intro {
  margin-bottom: 0;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.channel-card {
  display: block;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.channel-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-cream);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 20px;
}

.channel-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.channel-desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.channel-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* 精选专题区 */
.featured-collection-section {
  background-color: var(--color-bg-soft);
  padding: 48px 0;
}

.featured-collection-section > div {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.collection-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.collection-item {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.collection-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.collection-image {
  overflow: hidden;
}

.collection-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.collection-info {
  padding: 16px 16px 20px;
}

.collection-year {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  background-color: rgba(233, 160, 75, 0.12);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.collection-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.collection-reason {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* 指南入口区 */
.guide-entry-section {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.guide-step {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  position: relative;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.guide-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-secondary);
  border-radius: 50%;
  margin-bottom: 14px;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

/* 更新日历区 */
.update-calendar-section {
  background-color: var(--color-cream);
  padding: 48px 0;
}

.update-calendar-section > div {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.calendar-month {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background-color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

.calendar-month:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.calendar-month.muted {
  background-color: transparent;
  border-color: transparent;
  color: var(--color-muted);
  cursor: default;
}

/* 首页底部相关链接 */
.related-links {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 32px 20px 48px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.related-links-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-muted);
}

.related-links-item {
  font-size: 14px;
  color: var(--color-primary);
  background-color: var(--color-bg-soft);
  padding: 6px 14px;
  border-radius: 20px;
  transition: background-color var(--transition-speed) ease;
}

.related-links-item:hover {
  background-color: var(--color-cream);
}

/* ------------------------------------------------------------
   Pages · 频道页 (jdys/channels.html)
   ------------------------------------------------------------ */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

/* 频道地图 */
.channel-map-section {
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
}

.channel-map-section .section-title {
  margin-bottom: 6px;
}

.channel-map-section .section-desc {
  margin-bottom: 20px;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.map-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.map-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.map-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.map-item:nth-child(even) .map-number {
  background-color: var(--color-secondary);
}

.map-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-ink);
}

/* 频道列表 */
.channel-list-section {
  margin-bottom: 40px;
}

.channel-list-section .section-title {
  margin-bottom: 6px;
}

.channel-list-section .section-desc {
  margin-bottom: 24px;
}

.channel-item {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.channel-item:last-child {
  border-bottom: none;
}

.channel-info {
  min-width: 0;
}

.channel-info .channel-name {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.channel-info .channel-desc {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.channel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.channel-tags li {
  font-size: 13px;
  color: var(--color-primary);
  background-color: rgba(44, 95, 138, 0.08);
  padding: 3px 12px;
  border-radius: 20px;
}

.channel-fit {
  font-size: 14px;
  color: var(--color-ink);
  margin-bottom: 0;
}

.channel-figure {
  margin: 0;
}

.channel-figure img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.channel-figure figcaption {
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  padding-top: 6px;
}

/* 跨页链接 */
.cross-links {
  background-color: var(--color-cream);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-top: 40px;
}

.cross-links p {
  font-size: 14px;
  margin-bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cross-links a {
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 14px;
  transition: background-color var(--transition-speed) ease;
}

.cross-links a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* 侧栏：热门标签 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud li a {
  display: inline-block;
  font-size: 13px;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 4px 12px;
  border-radius: 20px;
  transition: all var(--transition-speed) ease;
}

.tag-cloud li a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* 侧栏：推荐频道 */
.recommend-list li {
  margin-bottom: 12px;
}

.recommend-list li:last-child {
  margin-bottom: 0;
}

.recommend-item a {
  display: block;
  background-color: var(--color-white);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.recommend-item a:hover {
  transform: translateX(3px);
  box-shadow: var(--shadow-card);
}

.recommend-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-ink);
  margin-bottom: 4px;
}

.recommend-note {
  display: block;
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   Pages · 专题片单页 (jdys/collection.html)
   ------------------------------------------------------------ */

/* 年份导航 */
.year-nav-section {
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 40px;
}

.year-nav-section .section-title {
  margin-bottom: 6px;
}

.year-nav-section .section-lead {
  margin-bottom: 16px;
  font-size: 14px;
}

.year-nav-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.year-nav-item a {
  display: inline-block;
  padding: 8px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-speed) ease;
}

.year-nav-item a:hover {
  border-color: var(--color-primary);
}

.year-nav-item a.is-current {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* 年度专题区块 */
.year-block {
  margin-bottom: 48px;
}

.year-block-head {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--color-accent);
}

.year-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
}

.year-desc {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 0;
}

/* 专题卡片 */
.year-block .collection-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.collection-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  display: flex;
  flex-direction: column;
}

.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.collection-media {
  overflow: hidden;
}

.collection-figure {
  margin: 0;
}

.collection-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.collection-body {
  padding: 16px 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.collection-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.collection-meta .collection-year {
  margin-bottom: 0;
}

.collection-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-secondary);
  background-color: rgba(58, 157, 140, 0.12);
  padding: 2px 10px;
  border-radius: 20px;
}

.collection-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.collection-reason {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.collection-titles {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.collection-titles li {
  font-size: 13px;
  color: var(--color-ink);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.collection-titles li::before {
  content: "";
  width: 4px;
  height: 4px;
  background-color: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* 底部相关链接 */
.related-links {
  margin-top: 16px;
}

.related-links .section-title {
  margin-bottom: 6px;
}

.related-links .section-lead {
  margin-bottom: 20px;
}

.related-link-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-link-list li a {
  display: block;
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  transition: background-color var(--transition-speed) ease;
}

.related-link-list li a:hover {
  background-color: var(--color-cream);
}

/* ------------------------------------------------------------
   Pages · 观看指南页 (jdys/guide.html)
   ------------------------------------------------------------ */

.layout-shell {
  width: 100%;
}

.guide-main {
  min-width: 0;
}

.guide-main .guide-steps {
  display: block;
  max-width: 100%;
}

.guide-steps-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.guide-step-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-border);
}

.guide-step-item:last-child {
  border-bottom: none;
}

.step-number-wrap {
  display: flex;
  justify-content: center;
}

.guide-step-item .step-number {
  width: 44px;
  height: 44px;
  font-size: 20px;
  background-color: var(--color-primary);
  flex-shrink: 0;
}

.guide-step-item:nth-child(even) .step-number {
  background-color: var(--color-secondary);
}

.step-content {
  min-width: 0;
}

.step-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-ink);
  margin-bottom: 12px;
}

.guide-figure {
  margin: 16px 0 0;
}

.guide-figure img {
  width: 100%;
  max-width: 480px;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.guide-figure figcaption {
  font-size: 13px;
  color: var(--color-muted);
  margin-top: 6px;
}

.guide-tip {
  background-color: rgba(233, 160, 75, 0.1);
  border-left: 3px solid var(--color-accent);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 侧栏 */
.guide-aside {
  min-width: 0;
}

.aside-module {
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

.aside-module h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.quick-tips-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 14px;
  line-height: 1.6;
}

.quick-tips-list li:last-child {
  border-bottom: none;
}

.quick-tips-list li::before {
  content: "◆";
  color: var(--color-secondary);
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ------------------------------------------------------------
   Pages · 服务支持页 (jdys/service.html)
   ------------------------------------------------------------ */

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.main-content-area {
  min-width: 0;
}

.content-section {
  margin-bottom: 48px;
}

.content-section > h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.content-section > p {
  font-size: 15px;
  color: var(--color-muted);
  margin-bottom: 20px;
}

/* FAQ */
.faq-group {
  margin-bottom: 28px;
}

.faq-group-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 3px solid var(--color-primary);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background-color: var(--color-white);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background-color var(--transition-speed) ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform var(--transition-speed) ease;
}

.faq-item[open] summary {
  background-color: var(--color-bg-soft);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 18px 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-ink);
  margin-bottom: 0;
}

/* 服务边界 */
.boundary-section .boundary-list li {
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 12px;
}

.boundary-list li h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.boundary-list li p {
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* 内容收录原则 */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.principle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.principle-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary);
}

.principle-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 侧栏卡片 */
.sidebar-card {
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links li a {
  font-size: 14px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sidebar-links li a::before {
  content: "›";
  color: var(--color-accent);
  font-size: 16px;
}

.sidebar-links li a:hover {
  color: var(--color-secondary);
}

.sidebar-figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.sidebar-figure img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.sidebar-figure figcaption {
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  padding: 8px 10px;
  background-color: var(--color-bg-soft);
}

/* ------------------------------------------------------------
   Pages · 404 页面
   ------------------------------------------------------------ */

.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 60px 20px;
}

.error-section {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.error-code {
  font-size: 72px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: var(--color-muted);
  margin-bottom: 28px;
}

.btn-back-home {
  display: inline-block;
  padding: 10px 32px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-speed) ease;
}

.btn-back-home:hover {
  background-color: #24507A;
  color: var(--color-white);
}

.error-suggest {
  margin-top: 48px;
  text-align: left;
}

.suggest-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.suggest-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.suggest-list li a {
  display: block;
  background-color: var(--color-bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  text-align: center;
  transition: background-color var(--transition-speed) ease;
}

.suggest-list li a:hover {
  background-color: var(--color-cream);
}

/* ------------------------------------------------------------
   Responsive · 响应式规则
   ------------------------------------------------------------ */

/* 平板 */
@media (max-width: 1024px) {
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .collection-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .map-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .year-block .collection-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-link-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-step:last-child {
    grid-column: 1 / -1;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .service-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
  }

  .channel-item {
    grid-template-columns: 1fr 180px;
    gap: 16px;
  }
}

/* 手机端 */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 56px;
  }

  .brand-name {
    font-size: 20px;
  }

  .brand-tagline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
    z-index: 99;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    padding: 8px 0;
    gap: 0;
    max-height: 80vh;
    overflow-y: auto;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    width: 100%;
  }

  .nav-list li a {
    padding: 12px 20px;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* 页脚 */
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 20px 20px;
  }

  /* 首页 */
  .hero-section {
    padding: 32px 0;
  }

  .hero-section > div {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px;
  }

  .hero-figure img {
    height: 200px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .channel-nav-section,
  .guide-entry-section,
  .update-calendar-section,
  .related-links {
    padding-left: 16px;
    padding-right: 16px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .featured-collection-section > div {
    padding: 0 16px;
  }

  .collection-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .guide-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .calendar-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .related-links {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 内页通用 */
  .inner-main {
    padding: 16px 16px 40px;
  }

  .breadcrumb {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .page-header {
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  /* 频道页 */
  .page-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .main-content {
    order: 1;
  }

  .sidebar-area {
    order: 2;
  }

  .map-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .channel-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .channel-figure img {
    height: 160px;
  }

  .channel-map-section {
    padding: 16px;
  }

  .cross-links p {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 专题页 */
  .year-nav-section {
    padding: 16px;
  }

  .year-nav-list {
    gap: 8px;
  }

  .year-nav-item a {
    padding: 8px 18px;
    font-size: 14px;
  }

  .year-block .collection-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .related-link-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* 指南页 */
  .guide-step-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0;
  }

  .step-number-wrap {
    justify-content: flex-start;
  }

  .guide-step-item .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .step-content h3 {
    font-size: 17px;
  }

  .guide-figure img {
    height: 160px;
  }

  .guide-aside {
    order: 2;
  }

  /* 服务页 */
  .service-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .main-content-area {
    order: 1;
  }

  .sidebar-area {
    order: 2;
  }

  .principle-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-item summary {
    padding: 12px 14px;
    font-size: 14px;
  }

  .faq-item p {
    padding: 0 14px 14px;
    font-size: 14px;
  }

  /* 404 */
  .error-code {
    font-size: 56px;
  }

  .suggest-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* 小屏手机 */
@media (max-width: 390px) {
  .brand-name {
    font-size: 18px;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .map-grid {
    grid-template-columns: 1fr;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-title {
    font-size: 20px;
  }

  .collection-image img {
    height: 140px;
  }

  .collection-figure img {
    height: 140px;
  }

  .channel-card img {
    height: 120px;
  }
}
