/* ==========================================================================
   九一视频 - 整站样式表
   公共交通风视觉：线路色识别、站点编号、高对比、紧凑信息
   ========================================================================== */

/* ==========================================================================
   Base 基础层
   ========================================================================== */

:root {
  --color-primary: #1a5aff;
  --color-red: #ff4d4f;
  --color-green: #00b578;
  --color-orange: #ff9f1c;
  --color-bg: #f5f6fa;
  --color-text: #1a1a2e;
  --color-text-light: #5a5f73;
  --color-text-lighter: #8a8fa3;
  --color-border: #e3e6ef;
  --color-white: #ffffff;
  --color-black: #000000;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Roboto Mono", "Courier New", monospace;
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --header-height: 64px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #0f3fbf;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p {
  margin-bottom: 12px;
}

/* 等宽字体用于数字和日期 */
time,
.timeline-date,
.entry-date,
.step-number,
.rule-frequency,
.rule-next,
.error-code {
  font-family: var(--font-mono);
}

/* ==========================================================================
   Layout 布局层
   ========================================================================== */

.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 首页主容器 */
.home-main {
  width: 100%;
}

/* 内页主容器 */
.inner-main {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px 48px;
}

.site-header {
  background-color: var(--color-white);
  border-bottom: 2px solid var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.brand-slogan {
  font-size: 13px;
  color: var(--color-text-light);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
  line-height: 28px;
}

.nav-list a:hover {
  background-color: rgba(26, 90, 255, 0.08);
  color: var(--color-primary);
}

.nav-list a.is-current {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 面包屑 */
.breadcrumb {
  padding: 16px 0 8px;
  font-size: 14px;
  color: var(--color-text-lighter);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.breadcrumb a {
  color: var(--color-text-lighter);
  transition: color 0.2s ease;
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

.breadcrumb-sep {
  color: var(--color-border);
  font-family: var(--font-mono);
}

.breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

/* 内页标题区 */
.page-header {
  padding: 20px 0 28px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.page-description {
  font-size: 14px;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.page-intro {
  font-size: 16px;
  color: var(--color-text-light);
  max-width: 720px;
  line-height: 1.7;
}

.page-code,
.page-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-primary);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

/* 页脚 */
.site-footer {
  background-color: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 40px 20px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h3 {
  font-size: 16px;
  color: var(--color-white);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer-about p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
  display: inline-block;
  padding: 2px 0;
}

.footer-col ul a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 20px;
  text-align: center;
}

.footer-bottom p {
  max-width: var(--container-width);
  margin: 0 auto;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Components 组件层
   ========================================================================== */

/* 区块标题 */
.section-heading {
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.section-heading p {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  max-width: 720px;
}

.section-intro {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 20px;
  max-width: 720px;
}

.section-lead {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
  max-width: 720px;
}

/* 首页 Hero */
.hero-section {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px 40px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero-copy p {
  font-size: 16px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.hero-cta {
  display: inline-block;
  margin-top: 12px;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
  min-height: 44px;
  line-height: 20px;
}

.hero-cta:hover {
  background-color: #0f3fbf;
  color: var(--color-white);
  transform: translateY(-2px);
}

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-figure {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
}

.hero-figure img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero-channel-list {
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  border-left: 4px solid var(--color-primary);
}

.hero-channel-list h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-channel-list h2::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.hero-channel-list ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-channel-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background-color: var(--color-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero-channel-list li:hover {
  border-color: var(--color-primary);
  transform: translateX(4px);
}

.hero-channel-list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

.hero-channel-list a:hover {
  color: var(--color-primary);
}

.hero-channel-list span {
  font-size: 13px;
  color: var(--color-text-lighter);
  flex-shrink: 0;
}

/* 频道卡片（首页） */
.channel-overview {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px;
}

.channel-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.channel-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.channel-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.channel-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-primary);
}

.channel-card h3 {
  font-size: 18px;
  font-weight: 600;
  padding: 16px 16px 4px;
  margin-bottom: 0;
}

.channel-card p {
  font-size: 14px;
  color: var(--color-text-light);
  padding: 0 16px;
  margin-bottom: 8px;
  line-height: 1.6;
  flex: 1;
}

.channel-card .update-badge {
  display: inline-block;
  margin: 0 16px 12px;
  font-size: 13px;
  color: var(--color-green);
  background-color: rgba(0, 181, 120, 0.1);
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.channel-card a {
  margin: 0 16px 16px;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
}

.section-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-primary);
  padding: 8px 0;
  min-height: 44px;
  line-height: 28px;
}

.section-link:hover {
  color: #0f3fbf;
}

/* 专题横卡（首页） */
.featured-features {
  background-color: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.featured-features > .section-heading {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px 0;
}

.feature-list {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card {
  display: flex;
  background-color: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-cover {
  flex: 0 0 220px;
  overflow: hidden;
}

.feature-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 140px;
}

.feature-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.feature-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-info p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 10px;
}

.feature-count {
  display: inline-block;
  font-size: 13px;
  color: var(--color-red);
  background-color: rgba(255, 77, 79, 0.08);
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-weight: 500;
  align-self: flex-start;
}

.feature-info a {
  font-size: 14px;
  font-weight: 500;
  align-self: flex-start;
}

/* 首页放映安排预览 */
.schedule-preview {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 48px 20px;
}

.schedule-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  overflow: hidden;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-item:hover {
  background-color: rgba(26, 90, 255, 0.03);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
  min-width: 90px;
}

.timeline-title {
  font-size: 15px;
  color: var(--color-text);
  flex: 1;
}

.timeline-tag {
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.tag-blue {
  background-color: rgba(26, 90, 255, 0.1);
  color: var(--color-primary);
}

.tag-red {
  background-color: rgba(255, 77, 79, 0.1);
  color: var(--color-red);
}

.tag-green {
  background-color: rgba(0, 181, 120, 0.1);
  color: var(--color-green);
}

.tag-orange {
  background-color: rgba(255, 159, 28, 0.1);
  color: var(--color-orange);
}

.tag-night {
  background-color: rgba(26, 26, 46, 0.08);
  color: var(--color-text);
}

.tag-nature {
  background-color: rgba(0, 181, 120, 0.1);
  color: var(--color-green);
}

.tag-vintage {
  background-color: rgba(255, 159, 28, 0.1);
  color: var(--color-orange);
}

.tag-feature {
  background-color: rgba(26, 90, 255, 0.1);
  color: var(--color-primary);
}

.tag-note {
  background-color: rgba(255, 77, 79, 0.1);
  color: var(--color-red);
}

.tag-update {
  background-color: rgba(0, 181, 120, 0.1);
  color: var(--color-green);
}

/* 首页使用手册引导 */
.guide-entry {
  background-color: var(--color-text);
  padding: 48px 20px;
}

.guide-entry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.guide-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.guide-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.guide-card h2 {
  font-size: 20px;
  color: var(--color-white);
  margin-bottom: 10px;
}

.guide-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 16px;
}

.guide-link {
  display: inline-block;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 4px;
  transition: border-color 0.2s ease;
}

.guide-link:hover {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

/* ==========================================================================
   内页组件
   ========================================================================== */

/* 频道导览页 */
.channel-list,
.channel-comparison {
  margin-bottom: 40px;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.channel-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.channel-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.channel-media {
  overflow: hidden;
}

.channel-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-primary);
}

.channel-content {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.channel-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.channel-desc {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
}

.channel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.channel-meta li {
  font-size: 13px;
  color: var(--color-text-light);
  background-color: var(--color-bg);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.channel-comparison {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--color-border);
}

.channel-comparison .section-title {
  margin-bottom: 4px;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.comparison-table thead th {
  background-color: var(--color-bg);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover td {
  background-color: rgba(26, 90, 255, 0.02);
}

.table-tip {
  font-size: 14px;
  color: var(--color-text-light);
  margin-top: 16px;
  margin-bottom: 0;
}

.table-tip a {
  font-weight: 500;
}

/* 相关导航 */
.related-links {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.related-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.related-pair {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 0.2s ease, background-color 0.2s ease;
  min-height: 44px;
}

.related-link:hover {
  border-color: var(--color-primary);
  background-color: rgba(26, 90, 255, 0.03);
  color: var(--color-primary);
}

.related-icon {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--color-primary);
  font-weight: 700;
}

/* 专题企划页 */
.feature-list {
  margin-bottom: 40px;
}

.feature-list .feature-card {
  display: flex;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-bottom: 20px;
}

.feature-media {
  flex: 0 0 240px;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
}

.feature-content {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.feature-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-content > p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 10px;
}

.feature-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.feature-meta .tag {
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.feature-meta .count {
  font-size: 13px;
  color: var(--color-text-lighter);
  font-family: var(--font-mono);
}

.text-link {
  font-size: 14px;
  font-weight: 500;
  align-self: flex-start;
}

/* 策划思路 */
.planning-notes {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.planning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.planning-item {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 3px solid var(--color-primary);
}

.planning-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.planning-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 放映安排页 */
.schedule-timeline {
  margin-bottom: 40px;
}

.content-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
}

.content-media-inline {
  max-width: 640px;
}

.content-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.content-media figcaption {
  font-size: 13px;
  color: var(--color-text-lighter);
  padding: 10px 16px;
  background-color: var(--color-white);
}

.schedule-timeline .timeline-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  align-items: flex-start;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  flex-shrink: 0;
  min-width: 80px;
  padding-top: 2px;
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 8px;
}

.timeline-tag {
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 500;
  display: inline-block;
}

/* 更新规则 */
.update-rules {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.update-rules-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.update-rule-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
}

.update-rule-item:last-child {
  border-bottom: none;
}

.rule-channel {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.rule-frequency {
  font-size: 14px;
  color: var(--color-green);
  font-family: var(--font-mono);
}

.rule-next {
  font-size: 14px;
  color: var(--color-text-light);
  font-family: var(--font-mono);
}

/* 相关链接列表 */
.related-links-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.related-links-list a {
  display: inline-block;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  transition: border-color 0.2s ease, color 0.2s ease;
  min-height: 44px;
  line-height: 24px;
}

.related-links-list a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.related-links-label {
  font-size: 14px;
  color: var(--color-text-lighter);
  margin-right: 12px;
}

.related-links-item {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
  margin-left: 12px;
}

/* 创作手记页 */
.production-list {
  margin-bottom: 40px;
}

.production-entry {
  margin-bottom: 12px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.production-entry details {
  width: 100%;
}

.production-entry summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.production-entry summary::-webkit-details-marker {
  display: none;
}

.production-entry summary:hover {
  background-color: rgba(26, 90, 255, 0.03);
}

.production-entry details[open] summary {
  background-color: rgba(26, 90, 255, 0.03);
  border-bottom: 1px solid var(--color-border);
}

.entry-version {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-white);
  background-color: var(--color-primary);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.entry-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
}

.entry-date {
  font-size: 14px;
  color: var(--color-text-lighter);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.entry-content {
  padding: 20px;
}

.entry-content p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 12px;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

/* 策划流程 */
.production-process {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.process-step {
  background-color: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
  border-top: 3px solid var(--color-primary);
}

.process-step .step-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.process-step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 使用手册页 */
.step-guide {
  margin-bottom: 40px;
}

.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.step-item {
  display: flex;
  gap: 20px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  align-items: flex-start;
}

.step-item .step-number {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-white);
  background-color: var(--color-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  flex-shrink: 0;
}

.step-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* 对比表 */
.comparison-table-section {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.comparison-table-section .comparison-table th,
.comparison-table-section .comparison-table td {
  padding: 14px 16px;
}

.comparison-table-section .comparison-table tbody th {
  font-weight: 600;
  color: var(--color-text);
  background-color: var(--color-bg);
  white-space: nowrap;
}

/* FAQ */
.faq-summary {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
  padding: 8px 0;
  transition: color 0.2s ease;
  padding-right: 24px;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 8px;
  font-size: 18px;
  color: var(--color-primary);
  font-weight: 400;
}

.faq-item details[open] summary::after {
  content: "−";
}

.faq-item summary:hover {
  color: var(--color-primary);
}

.faq-item p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
  padding: 8px 0 0;
  margin-bottom: 0;
}

/* 相关导航卡片 */
.related-link-card {
  display: block;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  flex: 1;
}

.related-link-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.related-link-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.related-link-desc {
  display: block;
  font-size: 13px;
  color: var(--color-text-lighter);
}

/* 问题反馈页 */
.problem-categories {
  margin-bottom: 40px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.category-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.category-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.category-media {
  overflow: hidden;
}

.category-media img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-bottom: 3px solid var(--color-orange);
}

.category-card h3 {
  font-size: 17px;
  font-weight: 600;
  padding: 16px 20px 4px;
  margin-bottom: 0;
}

.category-card > p {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  padding: 0 20px;
  margin-bottom: 8px;
  flex: 1;
}

.category-link {
  padding: 0 20px 16px;
  margin-bottom: 0;
}

.category-link a {
  font-size: 14px;
  font-weight: 500;
}

/* 反馈流程 */
.feedback-process {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.feedback-process ol.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.feedback-process .process-step {
  border-top-color: var(--color-orange);
}

.feedback-process .process-step .step-number {
  color: var(--color-orange);
}

/* 常见问题 */
.common-issues {
  margin-bottom: 40px;
}

.faq-accordion {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px 28px;
  border: 1px solid var(--color-border);
  margin-top: 20px;
}

/* 404 页面 */
.error-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 20px;
}

.error-section {
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  display: block;
  margin-bottom: 8px;
}

.error-section h1 {
  font-size: 24px;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 15px;
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.error-back {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
  min-height: 44px;
  line-height: 20px;
}

.error-back:hover {
  background-color: #0f3fbf;
  color: var(--color-white);
}

.error-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.error-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2px;
}

.error-links a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ==========================================================================
   Pages 页面级样式
   ========================================================================== */

/* 首页特有 */
.site-home .site-main {
  background-color: var(--color-bg);
}

/* 频道导览页 */
.page-channels .channel-list {
  margin-bottom: 40px;
}

/* 专题企划页 */
.page-features .feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 放映安排页 */
.page-schedule .schedule-timeline {
  background-color: transparent;
  border: none;
  border-radius: 0;
}

.page-schedule .timeline-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

/* 创作手记页 */
.page-production .production-list {
  margin-bottom: 40px;
}

/* 使用手册页 */
.page-guide .step-guide {
  margin-bottom: 40px;
}

/* 问题反馈页 */
.page-feedback .problem-categories {
  margin-bottom: 40px;
}

/* ==========================================================================
   Responsive 响应式
   ========================================================================== */

@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-figure img {
    height: 240px;
  }

  .channel-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .planning-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .feedback-process ol.process-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-media {
    flex-basis: 200px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    min-height: var(--header-height);
    padding: 8px 16px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .site-nav {
    order: 4;
    width: 100%;
    flex-basis: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 8px 0;
    gap: 2px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    width: 100%;
    text-align: left;
  }

  .brand-slogan {
    display: none;
  }

  .hero-section {
    padding: 32px 16px 28px;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-figure img {
    height: 200px;
  }

  .channel-overview,
  .schedule-preview {
    padding: 32px 16px;
  }

  .featured-features > .section-heading {
    padding: 32px 16px 0;
  }

  .feature-list {
    padding: 16px 16px 32px;
  }

  .guide-entry {
    grid-template-columns: 1fr;
    padding: 32px 16px;
  }

  .inner-main {
    padding: 0 16px 32px;
  }

  .breadcrumb {
    padding: 12px 0 4px;
    font-size: 13px;
  }

  .page-header {
    padding: 16px 0 20px;
    margin-bottom: 24px;
  }

  .page-title {
    font-size: 24px;
  }

  .channel-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feature-card {
    flex-direction: column;
  }

  .feature-cover,
  .feature-media {
    flex-basis: auto;
    width: 100%;
  }

  .feature-cover img,
  .feature-media img {
    width: 100%;
    height: 180px;
  }

  .feature-info,
  .feature-content {
    padding: 16px;
  }

  .timeline-item {
    flex-wrap: wrap;
    gap: 8px;
  }

  .timeline-date {
    min-width: auto;
  }

  .update-rule-item {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 12px 0;
  }

  .content-media img {
    height: 180px;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
  }

  .related-pair {
    flex-direction: column;
  }

  .related-links-list {
    flex-direction: column;
  }

  .related-link-card {
    width: 100%;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .planning-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .feedback-process ol.process-steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 16px;
  }

  .footer-bottom {
    padding: 12px 16px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-section h1 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-copy h1 {
    font-size: 22px;
  }

  .hero-cta {
    width: 100%;
    text-align: center;
  }

  .channel-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .channel-card img {
    height: 160px;
  }

  .channel-media img {
    height: 160px;
  }

  .feature-cover img,
  .feature-media img {
    height: 160px;
  }

  .hero-figure img {
    height: 180px;
  }

  .content-media img {
    height: 160px;
  }

  .category-media img {
    height: 140px;
  }

  .timeline-item {
    padding: 12px 16px;
  }

  .timeline-title {
    font-size: 14px;
  }

  .production-entry summary {
    flex-wrap: wrap;
    gap: 8px;
  }

  .entry-date {
    width: 100%;
    margin-left: 0;
  }

  .entry-version {
    font-size: 12px;
  }

  .entry-title {
    font-size: 15px;
  }

  .step-number {
    font-size: 18px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .channel-comparison,
  .planning-notes,
  .update-rules,
  .production-process,
  .comparison-table-section,
  .faq-summary,
  .feedback-process {
    padding: 20px 16px;
  }

  .faq-accordion {
    padding: 16px 20px;
  }

  .guide-card {
    padding: 20px;
  }

  .hero-channel-list {
    padding: 16px;
  }

  .hero-channel-list li {
    padding: 8px;
  }

  .hero-channel-list span {
    font-size: 12px;
  }
}
