/* ==========================================================================
   草莓视频 8f99.com — 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* ==========================================================================
   base
   ========================================================================== */
:root {
  --ink: #0B1F33;
  --ink-soft: #1B3247;
  --line-red: #D7263D;
  --line-yellow: #F4B400;
  --line-green: #1B9C85;
  --line-blue: #2D6CDF;
  --bg: #F5F7FA;
  --paper: #FFFFFF;
  --slate: #556575;
  --border: #D7DEE7;
  --border-strong: #B9C5D3;
  --mono: "SFMono-Regular", "Menlo", "Consolas", "Liberation Mono", monospace;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --radius: 6px;
  --wrap: 1180px;
  --shadow: 0 1px 2px rgba(11, 31, 51, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--line-blue);
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--line-red);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--line-blue);
  outline-offset: 2px;
}

.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;
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   layout — 全站骨架
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--line-red);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  color: #fff;
}

.brand:hover {
  color: #fff;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: #9FB3C8;
  line-height: 1.2;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 8px 12px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #D6E1EC;
  border-radius: var(--radius);
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.is-current {
  color: #fff;
  border-bottom-color: var(--line-red);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}

.site-main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.inner-main {
  padding-top: 24px;
}

.site-footer {
  background: var(--ink);
  color: #C3D2E0;
  margin-top: 24px;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 24px 32px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
  gap: 40px;
}

.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #9FB3C8;
  max-width: 26em;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-group-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  text-transform: none;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-group ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group a {
  font-size: 0.875rem;
  color: #C3D2E0;
}

.footer-group a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 0.8125rem;
  color: #8CA0B3;
}

/* 内页统一标题区 */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--slate);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--slate);
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--line-red);
}

.breadcrumb-sep {
  color: var(--border-strong);
}

.breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  max-width: 22em;
}

.page-head {
  margin-bottom: 24px;
}

.page-head-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.page-lead {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate);
  max-width: 42em;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 820px) 300px;
  gap: 32px;
  align-items: start;
}

.page-layout.single-column,
.page-layout.layout-single {
  grid-template-columns: minmax(0, 860px);
}

.main-content,
.page-content,
.content-main {
  min-width: 0;
}

.sidebar,
.page-aside,
.content-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-left .page-layout {
  grid-template-columns: 300px minmax(0, 820px);
}

.sidebar-left .sidebar,
.sidebar-left .page-aside,
.sidebar-left .content-side {
  order: -1;
}

/* ==========================================================================
   components — 通用
   ========================================================================== */
.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 0.9375rem;
  color: var(--slate);
  max-width: 46em;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.section-intro {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 18px;
  max-width: 46em;
}

.section-foot {
  margin-top: 16px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--line-blue);
}

.text-link::after {
  content: "→";
  font-size: 0.875em;
}

.text-link:hover {
  color: var(--line-red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn-primary {
  background: var(--line-red);
  color: #fff;
}

.btn-primary:hover {
  background: #B71C31;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* 线路标签 */
.line-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  color: #fff;
  background: var(--slate);
}

.line-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.line-tag-red {
  background: var(--line-red);
}

.line-tag-yellow {
  background: var(--line-yellow);
  color: var(--ink);
}

.line-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  color: #fff;
  background: var(--slate);
}

.line-chip--blue {
  background: var(--line-blue);
}

.section-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  color: #fff;
  background: var(--line-blue);
}

.section-tag--topic {
  background: var(--line-green);
}

.channel-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  color: #fff;
}

.tag-line-green {
  background: var(--line-green);
}

/* 状态徽标 */
.status {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

.status-done {
  background: rgba(27, 156, 133, 0.14);
  color: #147A68;
}

.status-pending {
  background: rgba(244, 180, 0, 0.18);
  color: #8A6500;
}

.status-update {
  background: rgba(45, 108, 223, 0.14);
  color: #1F55B4;
}

.status-check {
  background: rgba(215, 38, 61, 0.12);
  color: #A81C30;
}

/* 站点编号徽标 */
.station-badge {
  display: inline-block;
  min-width: 2.4em;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* 表格 */
.table-wrap {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.schedule-table {
  font-size: 0.875rem;
}

.schedule-table th,
.schedule-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.schedule-table thead th {
  background: var(--bg);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
}

.schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.schedule-table tbody tr:hover td {
  background: #F9FBFD;
}

.compare-table {
  font-size: 0.875rem;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.compare-table thead th {
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.compare-table tbody th {
  background: var(--bg);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  width: 18%;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* 图片容器 */
.hero-figure,
.featured-figure,
.gallery-item,
.line-visual,
.topic-feature-media,
.media-figure,
.guide-figure,
.content-figure,
.feedback-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: #E4EAF1;
}

.hero-figure img,
.featured-figure img,
.gallery-item img,
.line-visual img,
.topic-feature-media img,
.media-figure img,
.guide-figure img,
.content-figure img,
.feedback-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--slate);
}

/* 步骤条 */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--ink);
  border-radius: 4px;
}

.step-body {
  min-width: 0;
  flex: 1;
}

.step-title {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--slate);
}

.step-check {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--line-green);
  font-weight: 600;
}

/* 相关内容 */
.related-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.related-links-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate);
}

.related-links-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.related-links-item:hover {
  color: #fff;
  background: var(--line-blue);
  border-color: var(--line-blue);
}

/* ==========================================================================
   pages — 首页
   ========================================================================== */
.home-main {
  padding-top: 28px;
}

.watch-center {
  margin-bottom: 48px;
}

.watch-center-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.watch-main {
  min-width: 0;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--line-red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.watch-main h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.22;
  margin-bottom: 12px;
}

.watch-lead {
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 18px;
  max-width: 34em;
}

.hero-figure {
  position: relative;
  margin-bottom: 18px;
  aspect-ratio: 16 / 9;
}

.hero-figure figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  color: #fff;
  background: rgba(11, 31, 51, 0.78);
  font-size: 0.8125rem;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.watch-task,
.watch-directory {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.aside-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.aside-subtitle {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--slate);
  margin: 16px 0 8px;
}

.task-card {
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius);
  border-left: 3px solid var(--line-red);
}

.task-card-title {
  font-size: 1rem;
  margin: 8px 0 6px;
}

.task-card-text {
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: 10px;
}

.start-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: start;
}

.start-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.start-list li::before {
  counter-increment: start;
  content: counter(start);
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: var(--line-blue);
  border-radius: 3px;
}

.dir-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dir-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: 4px;
}

.dir-link:hover {
  background: var(--bg);
  color: var(--line-red);
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-list li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.recent-list .mono {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--slate);
}

.watch-directory .text-link {
  margin-top: 14px;
  font-size: 0.875rem;
}

/* 频道线路图 */
.line-map {
  margin-bottom: 48px;
}

.line-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.line-card {
  position: relative;
  min-width: 0;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.line-bar {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 12px;
}

.line-card-red .line-bar { background: var(--line-red); }
.line-card-yellow .line-bar { background: var(--line-yellow); }
.line-card-green .line-bar { background: var(--line-green); }
.line-card-blue .line-bar { background: var(--line-blue); }

.line-card-title {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.line-card-title .mono {
  font-size: 0.75rem;
  color: var(--slate);
}

.line-card-text {
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: 14px;
}

.station-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.station-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* 专题片单主推 */
.featured-topic {
  margin-bottom: 48px;
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: start;
}

.featured-media {
  min-width: 0;
}

.featured-figure {
  aspect-ratio: 4 / 3;
  margin-bottom: 10px;
}

.featured-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.featured-body {
  min-width: 0;
}

.featured-subtitle {
  font-size: 1.0625rem;
  margin-bottom: 6px;
  padding-left: 10px;
  border-left: 3px solid var(--line-red);
}

.featured-body > p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.gallery-item {
  aspect-ratio: 16 / 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item figcaption {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--slate);
}

.featured-link {
  margin-top: 4px;
}

/* 更新时刻预览 */
.schedule-preview {
  margin-bottom: 48px;
}

/* 观看方式比较 */
.way-compare {
  margin-bottom: 48px;
}

/* 观看前核验与常见问题 */
.precheck-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.precheck-col,
.precheck-faq {
  min-width: 0;
}

.precheck-title {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-item {
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-green);
  border-radius: var(--radius);
}

.check-normal {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
}

.faq-item summary {
  padding: 12px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 26px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 1.125rem;
  color: var(--line-blue);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-title {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.faq-answer {
  font-size: 0.875rem;
  color: var(--ink-soft);
  padding-bottom: 12px;
  line-height: 1.7;
}

.faq-col {
  min-width: 0;
}

.faq-more {
  margin-top: 12px;
}

/* ==========================================================================
   pages — 频道线路
   ========================================================================== */
.page-title-block {
  margin-bottom: 24px;
}

.page-title-block .page-tag {
  margin-bottom: 10px;
}

.title-rule {
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 16px;
  border-radius: 2px;
  background: var(--line-blue);
}

.section {
  margin-bottom: 36px;
}

.line-visual {
  margin-bottom: 20px;
  aspect-ratio: 16 / 6;
}

.line-visual-caption {
  margin-top: 8px;
}

.line-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.line-item {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 16px 18px 16px 22px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.line-stripe {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}

.line-item--red .line-stripe { background: var(--line-red); }
.line-item--yellow .line-stripe { background: var(--line-yellow); }
.line-item--green .line-stripe { background: var(--line-green); }
.line-item--blue .line-stripe { background: var(--line-blue); }

.line-item-body {
  min-width: 0;
  flex: 1;
}

.line-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.line-code {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate);
}

.line-desc {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.line-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.station-groups {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.station-group {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.station-group-title {
  font-size: 1rem;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.station-group--red .station-group-title { border-bottom-color: var(--line-red); }
.station-group--yellow .station-group-title { border-bottom-color: var(--line-yellow); }
.station-group--green .station-group-title { border-bottom-color: var(--line-green); }
.station-group--blue .station-group-title { border-bottom-color: var(--line-blue); }

.station-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.station-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.station-code {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate);
}

.station-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

/* 线路适合内容：4 项用 4 列，窄屏自动降为 2 列后 1 列，不留孤项 */
.fit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fit-card {
  min-width: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  border-radius: var(--radius);
}

.fit-card--red { border-top-color: var(--line-red); }
.fit-card--yellow { border-top-color: var(--line-yellow); }
.fit-card--green { border-top-color: var(--line-green); }
.fit-card--blue { border-top-color: var(--line-blue); }

.fit-title {
  font-size: 1rem;
  margin-bottom: 10px;
}

.fit-sub {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--line-green);
  margin-bottom: 6px;
}

.fit-sub--muted {
  color: var(--slate);
  margin-top: 12px;
}

.fit-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fit-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.fit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-green);
}

.fit-list--muted li::before {
  background: var(--border-strong);
}

/* 侧栏 */
.aside-block {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.aside-block .aside-title {
  font-size: 0.9375rem;
}

.aside-text {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 10px;
}

.aside-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aside-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}

.aside-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.aside-item-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.aside-item-text {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.6;
}

.aside-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.aside-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.aside-link:hover {
  color: #fff;
  background: var(--line-blue);
  border-color: var(--line-blue);
}

/* ==========================================================================
   pages — 专题片单
   ========================================================================== */
.line-divider {
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 2px;
  background: var(--line-green);
}

.topic-feature {
  margin-bottom: 36px;
}

.topic-feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 26px;
  align-items: start;
}

.topic-feature-media {
  aspect-ratio: 4 / 3;
}

.topic-feature-caption {
  margin-top: 8px;
}

.topic-feature-body {
  min-width: 0;
}

.topic-feature-name {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.topic-feature-text {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.topic-feature-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fact-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fact-row dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate);
}

.fact-row dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink);
}

.topic-gallery {
  margin-bottom: 36px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.gallery-grid .gallery-item {
  aspect-ratio: 4 / 3;
}

.gallery-caption {
  margin-top: 8px;
}

.gallery-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
}

.gallery-order {
  font-size: 0.8125rem;
  color: var(--slate);
  margin-top: 2px;
}

.station-sequence {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sequence-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.sequence-num {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--line-green);
}

.sequence-item p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.topic-updates {
  margin-bottom: 36px;
}

.update-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.update-row {
  display: grid;
  grid-template-columns: 96px 90px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.update-date {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

.update-line {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate);
  padding: 1px 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  justify-self: start;
}

.update-text {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.topic-select {
  margin-bottom: 12px;
}

.select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.select-col {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.select-subtitle {
  font-size: 1rem;
  margin-bottom: 10px;
}

.select-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.select-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

.select-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-green);
}

.select-list--fit li::before {
  background: var(--line-blue);
}

.fit-yes,
.fit-no {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
  margin-right: 6px;
}

.fit-yes {
  color: #147A68;
  background: rgba(27, 156, 133, 0.14);
}

.fit-no {
  color: #A81C30;
  background: rgba(215, 38, 61, 0.12);
}

.aside-note {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.6;
  margin-bottom: 10px;
}

.aside-list--index li,
.aside-list--order li {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 8px;
}

.aside-list--index li:last-child,
.aside-list--order li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.aside-list--index a {
  display: block;
  min-height: 32px;
  padding: 4px 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.aside-list--index a:hover {
  color: var(--line-red);
}

.aside-list--order li {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ==========================================================================
   pages — 更新时刻
   ========================================================================== */
.content-block {
  margin-bottom: 32px;
}

.block-head {
  margin-bottom: 16px;
}

.block-head h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.block-desc {
  font-size: 0.9375rem;
  color: var(--slate);
  max-width: 46em;
}

.media-figure {
  margin-bottom: 18px;
  aspect-ratio: 16 / 7;
}

.media-figure figcaption {
  margin-top: 8px;
}

.block-note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.7;
}

.block-note a {
  font-weight: 600;
}

.line-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.line-group {
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.line-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.line-group-head h3 {
  font-size: 0.9375rem;
}

.line-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 1px 8px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  border-radius: 3px;
}

.line-badge.line-red { background: var(--line-red); }
.line-badge.line-yellow { background: var(--line-yellow); color: var(--ink); }
.line-badge.line-green { background: var(--line-green); }
.line-badge.line-blue { background: var(--line-blue); }

.line-time-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line-time-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.cell-date {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--slate);
}

.item-name {
  color: var(--ink);
  font-weight: 500;
}

.field-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.field-card {
  min-width: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--line-yellow);
  border-radius: var(--radius);
}

.field-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.field-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.step-index {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--line-yellow);
  border-radius: 4px;
}

#reading-method .step-body h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

#reading-method .step-body p {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ==========================================================================
   pages — 观看指南
   ========================================================================== */
.guide-prep,
.guide-methods,
.guide-access,
.guide-faq {
  margin-bottom: 34px;
}

.guide-prep h2,
.guide-methods h2,
.guide-access h2,
.guide-faq h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.guide-prep > p,
.guide-methods > p,
.guide-access > p,
.guide-faq > p {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 16px;
  max-width: 46em;
}

.prep-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.prep-item {
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prep-item h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.prep-item p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.guide-figure {
  margin-bottom: 20px;
  aspect-ratio: 16 / 7;
}

.guide-figure figcaption {
  margin-top: 8px;
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.path-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.methods-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.method-col {
  min-width: 0;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.method-col h3 {
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.method-intro {
  font-size: 0.875rem;
  color: var(--slate);
  margin-bottom: 12px;
}

.method-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: method;
}

.method-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.method-list li::before {
  counter-increment: method;
  content: counter(method);
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: var(--line-blue);
  border-radius: 3px;
}

.access-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.access-step {
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-green);
  border-radius: var(--radius);
}

.access-step h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.access-step p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.faq-extra {
  font-size: 0.8125rem;
  color: var(--slate);
  padding-top: 6px;
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  display: block;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  border-left: 2px solid var(--border);
  border-radius: 0 4px 4px 0;
}

.toc-list a:hover {
  color: var(--line-blue);
  border-left-color: var(--line-blue);
  background: var(--bg);
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-list a {
  display: block;
  min-height: 36px;
  padding: 6px 0;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ==========================================================================
   pages — 入口核验
   ========================================================================== */
.module {
  margin-bottom: 34px;
}

.module h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.module-desc {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 16px;
  max-width: 46em;
}

.page-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  color: #fff;
  background: var(--line-blue);
}

.page-tag--blue {
  background: var(--line-blue);
}

.page-meta {
  font-size: 0.8125rem;
  color: var(--slate);
  font-family: var(--mono);
}

.content-figure {
  margin-bottom: 18px;
  aspect-ratio: 16 / 7;
}

.content-figure figcaption {
  margin-top: 8px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-item {
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.checklist-item h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.checklist-normal,
.checklist-abnormal {
  font-size: 0.875rem;
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
}

.checklist-normal {
  color: #147A68;
  margin-bottom: 4px;
}

.checklist-normal::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.checklist-abnormal {
  color: #A81C30;
}

.checklist-abnormal::before {
  content: "!";
  position: absolute;
  left: 4px;
  font-weight: 700;
}

/* 3 项判断依据：3 列，移动端降为 1 列 */
.judge-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.judge-col {
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--line-blue);
  border-radius: var(--radius);
}

.judge-col h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.judge-col p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 8px;
}

.judge-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.judge-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.6;
}

.judge-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-blue);
}

/* 4 项异常分类：2×2 网格，避免最后一行孤项 */
.anomaly-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.anomaly-card {
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-red);
  border-radius: var(--radius);
}

.anomaly-card h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.anomaly-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.anomaly-basis {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  font-size: 0.8125rem;
  color: var(--slate);
}

.module-note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.7;
}

.step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-flow .step-item {
  display: block;
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-flow .step-num {
  margin-bottom: 10px;
}

.step-flow h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.step-flow p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.module-link {
  margin-top: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.side-block {
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.side-block h2 {
  font-size: 0.9375rem;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.side-memo-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.side-memo-list li {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.6;
  padding-left: 12px;
  border-left: 2px solid var(--line-yellow);
}

.side-memo-list strong {
  display: block;
  color: var(--ink);
  font-size: 0.8125rem;
  margin-bottom: 2px;
}

.side-desc {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.65;
  margin-bottom: 10px;
}

.side-link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.side-link-list a {
  display: block;
  min-height: 34px;
  padding: 5px 0;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ==========================================================================
   pages — 反馈说明
   ========================================================================== */
.page-title-bar {
  margin-bottom: 24px;
}

.page-title-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.feedback-types,
.feedback-template,
.feedback-flow,
.feedback-boundary {
  margin-bottom: 34px;
}

.feedback-types h2,
.feedback-template h2,
.feedback-flow h2,
.feedback-boundary h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.feedback-types > p,
.feedback-template > p,
.feedback-flow > p,
.feedback-boundary > p {
  font-size: 0.9375rem;
  color: var(--slate);
  margin-bottom: 16px;
  max-width: 46em;
}

.feedback-figure {
  margin-bottom: 18px;
  aspect-ratio: 16 / 6;
}

.feedback-figure figcaption {
  margin-top: 8px;
}

/* 4 类问题：2×2，避免孤项 */
.feedback-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feedback-type-card {
  min-width: 0;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  border-radius: var(--radius);
}

.feedback-type-card.type-red { border-top-color: var(--line-red); }
.feedback-type-card.type-yellow { border-top-color: var(--line-yellow); }
.feedback-type-card.type-green { border-top-color: var(--line-green); }
.feedback-type-card.type-blue { border-top-color: var(--line-blue); }

.feedback-type-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feedback-type-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 10px;
}

.feedback-type-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feedback-type-list li {
  position: relative;
  padding-left: 14px;
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.6;
}

.feedback-type-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
}

.feedback-template-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.template-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.template-item dt {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
}

.template-item dd {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.feedback-flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.flow-step {
  min-width: 0;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.flow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  background: var(--line-green);
  border-radius: 4px;
}

.flow-step h3 {
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.feedback-boundary-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feedback-boundary-list li {
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--line-red);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.feedback-boundary-list strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ==========================================================================
   pages — 404
   ========================================================================== */
.error-main {
  padding-top: 56px;
  padding-bottom: 64px;
}

.error-inner {
  max-width: 720px;
}

.error-code {
  font-family: var(--mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--line-red);
  line-height: 1;
  margin-bottom: 10px;
}

.error-inner h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.error-lead {
  font-size: 1rem;
  color: var(--slate);
  margin-bottom: 22px;
  max-width: 36em;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.error-btn:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.error-btn-primary {
  color: #fff;
  background: var(--line-red);
  border-color: var(--line-red);
}

.error-btn-primary:hover {
  background: #B71C31;
  border-color: #B71C31;
}

.error-tips {
  margin-bottom: 24px;
}

.error-tips h2 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.error-tip-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.error-tip-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.error-tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-blue);
}

.error-back {
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .watch-center-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .watch-directory {
    grid-column: 1 / -1;
  }

  .watch-directory .dir-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .watch-directory .dir-list li {
    flex: 1 1 180px;
  }

  .line-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-flow-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .page-layout,
  .sidebar-left .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .sidebar-left .sidebar,
  .sidebar-left .page-aside,
  .sidebar-left .content-side {
    order: 0;
  }

  .sidebar,
  .page-aside,
  .content-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .featured-grid,
  .topic-feature-grid,
  .precheck-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .station-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prep-list,
  .access-steps,
  .judge-grid,
  .field-cards,
  .step-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 18px;
    gap: 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-basis: 100%;
    margin-left: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 4px;
  }

  .nav-link.is-current {
    border-left-color: var(--line-red);
    background: rgba(255, 255, 255, 0.07);
  }
}

@media (max-width: 680px) {
  body.site-body {
    font-size: 15px;
  }

  .site-main {
    padding: 20px 16px 40px;
  }

  .inner-main {
    padding-top: 16px;
  }

  .page-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .watch-main h1 {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
  }

  .watch-center-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .watch-directory {
    grid-column: auto;
  }

  .watch-directory .dir-list {
    flex-direction: column;
    gap: 2px;
  }

  .watch-directory .dir-list li {
    flex: none;
  }

  .line-grid,
  .fit-grid,
  .station-grid,
  .gallery-grid,
  .select-grid,
  .line-groups,
  .field-cards,
  .prep-list,
  .access-steps,
  .judge-grid,
  .anomaly-grid,
  .step-flow,
  .feedback-type-grid,
  .feedback-flow-steps,
  .methods-columns,
  .sidebar,
  .page-aside,
  .content-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-feature-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .update-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .update-line {
    justify-self: start;
  }

  .template-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .footer-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .hero-figure {
    aspect-ratio: 16 / 10;
  }

  .line-visual,
  .media-figure,
  .guide-figure,
  .content-figure,
  .feedback-figure {
    aspect-ratio: 16 / 9;
  }

  /* 表格转逐条定义列表 */
  .table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .schedule-table,
  .schedule-table tbody,
  .schedule-table tr,
  .schedule-table td,
  .compare-table,
  .compare-table tbody,
  .compare-table tr,
  .compare-table th,
  .compare-table td {
    display: block;
    width: 100%;
  }

  .schedule-table thead,
  .compare-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .schedule-table tbody tr {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .schedule-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .schedule-table td {
    padding: 4px 0;
    border-bottom: 0;
    font-size: 0.875rem;
  }

  .schedule-table tbody tr:hover td {
    background: transparent;
  }

  .compare-table tbody tr {
    margin-bottom: 12px;
    padding: 10px 14px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .compare-table tbody th {
    width: auto;
    padding: 0 0 6px;
    background: transparent;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
    font-size: 0.9375rem;
  }

  .compare-table td {
    padding: 4px 0;
    border-bottom: 0;
    font-size: 0.875rem;
  }

  .compare-table tbody tr:last-child th,
  .compare-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .error-code {
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* 程序验收反馈：修复网格孤项 */
@media (min-width: 769px) {
  .fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
