/* ==========================================================================
   91泡芙 · 视频频道目录与观看说明站
   样式分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: #F6FAF9;
  color: #14312D;
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  letter-spacing: 0;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: #0F766E;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #0B5D57;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid #1B9E8F;
  outline-offset: 2px;
}

button {
  font-family: inherit;
  cursor: pointer;
}

table {
  border-collapse: collapse;
  width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   layout · 全站骨架
   -------------------------------------------------------------------------- */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1 0 auto;
  width: 100%;
}

/* 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #FFFFFF;
  border-bottom: 1px solid #DCE9E6;
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 44px;
  color: #14312D;
  line-height: 1.2;
}

.brand:hover,
.brand:focus {
  color: #14312D;
  text-decoration: none;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #0F766E;
}

.brand-tagline {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #5B7A76;
}

/* 主导航 */

.site-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav li {
  flex: 0 0 auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: #14312D;
  border-radius: 6px;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #0F766E;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-nav a.is-current {
  color: #0F766E;
  font-weight: 600;
  background-color: #F1F8F6;
}

.header-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background-color: #0F766E;
  border: 1px solid #0F766E;
  border-radius: 6px;
  white-space: nowrap;
}

.header-cta:hover,
.header-cta:focus {
  color: #FFFFFF;
  background-color: #0B5D57;
  border-color: #0B5D57;
  text-decoration: none;
}

/* 汉堡按钮（桌面隐藏） */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 6px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #14312D;
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms 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);
}

/* 页脚 */

.site-footer {
  flex-shrink: 0;
  margin-top: 56px;
  background-color: #FFFFFF;
  border-top: 1px solid #DCE9E6;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: 32px;
}

.footer-title {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  color: #5B7A76;
}

.footer-links a:hover,
.footer-links a:focus {
  color: #0F766E;
}

.footer-about p {
  font-size: 14px;
  color: #5B7A76;
  line-height: 1.75;
}

.footer-about p + p {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid #DCE9E6;
}

.footer-bottom p {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  font-size: 13px;
  color: #5B7A76;
}

/* 内页骨架 */

.inner-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 8px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 13px;
  color: #5B7A76;
}

.breadcrumb a {
  color: #5B7A76;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: #0F766E;
}

.breadcrumb-sep {
  color: #A9C2BD;
}

.breadcrumb-current {
  color: #14312D;
  font-weight: 500;
}

.page-header {
  padding: 16px 0 0;
}

.page-title {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  color: #14312D;
}

/* 内页正文列与侧栏 */

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.content-column {
  min-width: 0;
  max-width: 760px;
}

.sidebar,
.page-aside {
  min-width: 0;
  align-self: start;
}

/* 单列内页容器 */

.content-shell {
  max-width: 860px;
  margin: 0 auto;
}

.content-flow {
  max-width: 800px;
  margin: 0 auto;
}

.page-shell {
  max-width: 820px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   components · 通用元件
   -------------------------------------------------------------------------- */

/* 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn-primary {
  color: #FFFFFF;
  background-color: #0F766E;
  border-color: #0F766E;
}

.btn-primary:hover,
.btn-primary:focus {
  color: #FFFFFF;
  background-color: #0B5D57;
  border-color: #0B5D57;
}

.btn-ghost {
  color: #0F766E;
  background-color: #FFFFFF;
  border-color: #0F766E;
}

.btn-ghost:hover,
.btn-ghost:focus {
  color: #0B5D57;
  background-color: #F1F8F6;
  border-color: #0B5D57;
}

/* 区块标题（首页 section-head） */

.section {
  padding: 44px 0 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  position: relative;
  padding-left: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #14312D;
}

.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 18px;
  margin-top: -9px;
  background-color: #0F766E;
  border-radius: 2px;
}

.section-desc {
  margin-top: 8px;
  max-width: 760px;
  font-size: 14px;
  color: #5B7A76;
}

/* 内页区块标题 */

.section-block,
.content-block,
.section-precheck,
.section-conditions,
.section-entry-types,
.section-fallback,
.archive-index,
.recent-archive,
.archive-order,
.field-guide,
.channels-table,
.watch-order {
  padding-top: 36px;
}

.section-block h2,
.content-block h2,
.section-precheck h2,
.section-conditions h2,
.section-entry-types h2,
.section-fallback h2,
.archive-index h2,
.recent-archive h2,
.archive-order h2,
.field-guide h2,
.channels-table h2,
.watch-order h2,
.symptom-select h2,
.troubleshoot-tree h2,
.feedback-prep h2,
.self-check h2 {
  position: relative;
  padding-left: 14px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #14312D;
}

.section-block h2::before,
.content-block h2::before,
.section-precheck h2::before,
.section-conditions h2::before,
.section-entry-types h2::before,
.section-fallback h2::before,
.archive-index h2::before,
.recent-archive h2::before,
.archive-order h2::before,
.field-guide h2::before,
.channels-table h2::before,
.watch-order h2::before,
.symptom-select h2::before,
.troubleshoot-tree h2::before,
.feedback-prep h2::before,
.self-check h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 18px;
  margin-top: -9px;
  background-color: #0F766E;
  border-radius: 2px;
}

.section-intro,
.block-intro {
  margin-top: 8px;
  margin-bottom: 18px;
  max-width: 760px;
  font-size: 15px;
  color: #5B7A76;
}

.section-note {
  margin-top: 14px;
  font-size: 14px;
  color: #5B7A76;
}

.section-tail {
  margin-top: 16px;
  font-size: 14px;
}

/* 表格 */

.table-wrap {
  width: 100%;
  overflow-x: auto;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
}

.data-table {
  width: 100%;
  min-width: 640px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.data-table thead th {
  padding: 12px 14px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: #14312D;
  background-color: #F1F8F6;
  border-bottom: 1px solid #DCE9E6;
  white-space: nowrap;
}

.data-table tbody th,
.data-table tbody td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #DCE9E6;
  color: #14312D;
  line-height: 1.65;
}

.data-table tbody th {
  font-weight: 600;
  color: #0F766E;
  white-space: nowrap;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background-color: #F1F8F6;
}

.data-table tbody tr:hover .archive-link {
  text-decoration: underline;
}

/* 提示块 */

.notice-block {
  padding: 16px 18px;
  background-color: #F1F8F6;
  border-left: 3px solid #1B9E8F;
  border-radius: 0 6px 6px 0;
}

.notice-line {
  font-size: 14px;
  color: #14312D;
  line-height: 1.75;
}

.notice-line + .notice-line {
  margin-top: 8px;
}

.notice {
  padding: 14px 16px;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.75;
}

.notice-info {
  background-color: #F1F8F6;
  border-left: 3px solid #1B9E8F;
  color: #14312D;
}

.notice-warning {
  background-color: #FFF6E8;
  border-left: 3px solid #C08A2E;
  color: #14312D;
}

.notice-warning + .notice-warning {
  margin-top: 10px;
}

.alert-block {
  padding: 16px 18px;
  background-color: #FFF6E8;
  border-left: 3px solid #C08A2E;
  border-radius: 0 6px 6px 0;
}

.alert-item {
  font-size: 14px;
  color: #14312D;
  line-height: 1.75;
}

.alert-item + .alert-item {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #EBD9B6;
}

.alert-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #8A5D14;
  background-color: #FBEBCF;
  border-radius: 4px;
}

.note-line {
  margin-top: 14px;
  font-size: 14px;
  color: #5B7A76;
}

/* 步骤列表（首页 / 频道 / 归档 / 来源 / 观看说明） */

.step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
}

.step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background-color: #1B9E8F;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.step-index {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  font-weight: 600;
  color: #0F766E;
  background-color: #F1F8F6;
  border: 1px solid #DCE9E6;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.step-body {
  min-width: 0;
  flex: 1 1 auto;
}

.step-body h3,
.step-title {
  font-size: 16px;
  font-weight: 600;
  color: #14312D;
  line-height: 1.5;
}

.step-body p {
  margin-top: 4px;
  font-size: 14px;
  color: #5B7A76;
  line-height: 1.75;
}

.step-body p.step-link {
  margin-top: 8px;
  font-size: 14px;
}

/* 定义列表（字段读法） */

.field-list,
.definition-list {
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
  overflow: hidden;
}

.field-row,
.definition-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #DCE9E6;
  font-size: 14px;
}

.field-row:last-child,
.definition-row:last-child {
  border-bottom: 0;
}

.field-row dt,
.definition-row dt {
  font-weight: 600;
  color: #0F766E;
  line-height: 1.65;
}

.field-row dd,
.definition-row dd {
  margin: 0;
  min-width: 0;
  color: #14312D;
  line-height: 1.75;
}

/* 侧栏 */

.aside-block + .aside-block {
  margin-top: 20px;
}

.aside-title {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
}

.aside-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
}

.aside-links li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.aside-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 500;
}

.aside-desc,
.aside-links span {
  font-size: 13px;
  color: #5B7A76;
  line-height: 1.65;
}

.aside-links p {
  font-size: 13px;
  color: #5B7A76;
  line-height: 1.65;
}

/* 内页导语与元信息 */

.page-intro,
.page-head,
.page-hero,
.page-title-block {
  padding-top: 12px;
}

.page-lead {
  max-width: 760px;
  font-size: 15px;
  color: #14312D;
  line-height: 1.8;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  color: #5B7A76;
}

.meta-label,
.label {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  color: #0F766E;
  background-color: #F1F8F6;
  border: 1px solid #DCE9E6;
  border-radius: 4px;
}

.meta-sep {
  color: #A9C2BD;
}

/* figure 与图片 */

.page-banner,
.page-figure,
.page-media {
  margin-top: 20px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
  overflow: hidden;
}

.page-banner img,
.page-figure img,
.page-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background-color: #F1F8F6;
}

.page-banner figcaption,
.page-figure figcaption,
.page-media figcaption {
  padding: 10px 16px;
  font-size: 13px;
  color: #5B7A76;
  line-height: 1.65;
  border-top: 1px solid #DCE9E6;
}

/* 简短页面向导关系表 */

.relation-table {
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
  overflow: hidden;
}

.relation-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #DCE9E6;
  font-size: 14px;
}

.relation-row:last-child {
  border-bottom: 0;
}

.relation-key {
  font-weight: 600;
  color: #0F766E;
}

.relation-value {
  min-width: 0;
  color: #14312D;
}

/* --------------------------------------------------------------------------
   pages · 首页
   -------------------------------------------------------------------------- */

.home-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 首屏 */

.hero {
  padding: 40px 0 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  align-items: center;
}

.hero-text {
  min-width: 0;
}

.hero-text h1 {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.35;
  color: #14312D;
}

.hero-lead {
  margin-top: 14px;
  max-width: 560px;
  font-size: 15px;
  color: #5B7A76;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-figure {
  min-width: 0;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-color: #F1F8F6;
}

.hero-figure figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: #5B7A76;
  line-height: 1.65;
  border-top: 1px solid #DCE9E6;
}

/* 频道索引表 */

.channel-index .data-table tbody th {
  font-weight: 600;
}

.channel-index .data-table td:last-child {
  white-space: nowrap;
}

/* 问题现象选择 */

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.symptom-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
  color: #14312D;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.symptom-card:hover,
.symptom-card:focus {
  color: #14312D;
  text-decoration: none;
  border-color: #1B9E8F;
  background-color: #F1F8F6;
}

.symptom-name {
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
}

.symptom-desc {
  font-size: 13px;
  color: #5B7A76;
  line-height: 1.7;
}

.symptom-arrow {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: #0F766E;
}

/* 编排摘要 */

.schedule-list {
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #DCE9E6;
  font-size: 14px;
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 26px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: #0F766E;
  background-color: #F1F8F6;
  border: 1px solid #DCE9E6;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.schedule-body {
  min-width: 0;
  color: #14312D;
  line-height: 1.7;
}

/* 专题画廊 */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
  overflow: hidden;
}

.gallery-figure {
  margin: 0;
}

.gallery-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background-color: #F1F8F6;
}

.gallery-tag {
  align-self: flex-start;
  margin: 12px 14px 0;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0F766E;
  background-color: #F1F8F6;
  border-radius: 4px;
}

.gallery-note {
  padding: 8px 14px 16px;
  font-size: 14px;
  color: #5B7A76;
  line-height: 1.7;
}

/* 往期回看精选 */

.archive-list {
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
  overflow: hidden;
}

.archive-item {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #DCE9E6;
  font-size: 14px;
}

.archive-item:last-child {
  border-bottom: 0;
}

.archive-title {
  min-width: 0;
  font-weight: 600;
  color: #14312D;
}

.archive-channel,
.archive-form {
  min-width: 0;
  font-size: 13px;
  color: #5B7A76;
}

.archive-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* 观看前核验三步（首页） */

.precheck .step-list {
  gap: 12px;
}

/* --------------------------------------------------------------------------
   pages · 频道目录
   -------------------------------------------------------------------------- */

.channels-table .data-table td:last-child {
  white-space: nowrap;
}

.watch-order .section-note a {
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   pages · 编排预告
   -------------------------------------------------------------------------- */

.schedule-table td {
  white-space: normal;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.rule-list li {
  min-width: 0;
  padding: 16px 18px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
}

.rule-list h3 {
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
  line-height: 1.5;
}

.rule-list p {
  margin-top: 6px;
  font-size: 14px;
  color: #5B7A76;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 往期回看
   -------------------------------------------------------------------------- */

.record-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.record-card {
  min-width: 0;
  padding: 16px 18px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
}

.record-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #14312D;
  line-height: 1.5;
}

.record-fields {
  margin-top: 6px;
  font-size: 13px;
  color: #0F766E;
  font-variant-numeric: tabular-nums;
}

.record-desc {
  margin-top: 6px;
  font-size: 14px;
  color: #5B7A76;
  line-height: 1.75;
}

.record-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   pages · 观看说明
   -------------------------------------------------------------------------- */

.conditions-table td {
  white-space: normal;
}

.entry-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.entry-col {
  min-width: 0;
  padding: 16px 18px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
}

.entry-col h3 {
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
  line-height: 1.5;
}

.entry-col-internal h3 {
  color: #0F766E;
}

.entry-col-external h3 {
  color: #8A5D14;
}

.feature-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: #5B7A76;
  line-height: 1.75;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: #1B9E8F;
  border-radius: 50%;
}

.section-entry-types .notice {
  margin-top: 16px;
}

.fallback-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fallback-item {
  min-width: 0;
  padding: 14px 16px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-left: 3px solid #DCE9E6;
  border-radius: 0 8px 8px 0;
}

.fallback-symptom {
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
  line-height: 1.6;
}

.fallback-action {
  margin-top: 4px;
  font-size: 14px;
  color: #5B7A76;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 问题反馈
   -------------------------------------------------------------------------- */

.symptom-select .symptom-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.symptom-select .symptom-card {
  padding: 0;
  border: 0;
  background: none;
}

.symptom-select .symptom-card a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 16px 18px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
  color: #14312D;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.symptom-select .symptom-card a:hover,
.symptom-select .symptom-card a:focus {
  color: #14312D;
  text-decoration: none;
  border-color: #1B9E8F;
  background-color: #F1F8F6;
}

/* 排查决策树 */

.troubleshoot-tree .section-intro a {
  font-weight: 500;
}

.tree-branch {
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-left: 3px solid #DCE9E6;
  border-radius: 0 8px 8px 0;
  scroll-margin-top: 80px;
}

.tree-branch + .tree-branch {
  margin-top: 12px;
}

.tree-branch[open] {
  border-left-color: #0F766E;
}

.tree-branch:target {
  border-left-color: #1B9E8F;
  background-color: #F1F8F6;
}

.tree-branch summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 16px 12px 40px;
  position: relative;
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
  cursor: pointer;
  list-style: none;
  line-height: 1.6;
}

.tree-branch summary::-webkit-details-marker {
  display: none;
}

.tree-branch summary::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid #1B9E8F;
  border-bottom: 2px solid #1B9E8F;
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}

.tree-branch[open] summary::before {
  margin-top: -2px;
  transform: rotate(45deg);
}

.branch-body {
  padding: 0 16px 16px 40px;
  border-top: 1px solid #DCE9E6;
  padding-top: 12px;
}

.branch-premise {
  font-size: 14px;
  color: #5B7A76;
  line-height: 1.75;
}

.branch-steps {
  margin-top: 10px;
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.branch-steps li {
  font-size: 14px;
  color: #14312D;
  line-height: 1.75;
}

.branch-link {
  margin-top: 10px;
  font-size: 14px;
}

/* 反馈前准备 */

.prep-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prep-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
  padding: 14px 16px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
}

.prep-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  accent-color: #0F766E;
}

.prep-item label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  cursor: pointer;
}

.prep-name {
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
  line-height: 1.6;
}

.prep-desc {
  font-size: 13px;
  color: #5B7A76;
  line-height: 1.7;
}

/* 站内可自行核对的信息 */

.self-check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.self-check-list li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 16px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
  font-size: 14px;
}

.self-check-page {
  font-weight: 600;
  color: #0F766E;
  min-width: 0;
}

.self-check-reason {
  min-width: 0;
  color: #5B7A76;
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   pages · 来源说明
   -------------------------------------------------------------------------- */

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.source-card {
  min-width: 0;
  padding: 16px 18px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
}

.source-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
  line-height: 1.5;
}

.source-def {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #0F766E;
  line-height: 1.7;
}

.source-card p:last-child {
  margin-top: 8px;
  font-size: 14px;
  color: #5B7A76;
  line-height: 1.75;
}

.principle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.principle-list li {
  min-width: 0;
  padding: 14px 16px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
}

.principle-list h3 {
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
  line-height: 1.5;
}

.principle-list p {
  margin-top: 4px;
  font-size: 14px;
  color: #5B7A76;
  line-height: 1.75;
}

.page-aside {
  margin-top: 32px;
}

.page-aside > h2 {
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #14312D;
}

/* --------------------------------------------------------------------------
   pages · 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 24px 0;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 28px;
  text-align: center;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 8px;
}

.error-code {
  font-size: 40px;
  font-weight: 700;
  color: #1B9E8F;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.error-panel h1 {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 600;
  color: #14312D;
  line-height: 1.4;
}

.error-lead {
  margin-top: 10px;
  font-size: 15px;
  color: #5B7A76;
  line-height: 1.8;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.error-links {
  max-width: 640px;
  margin: 32px auto 0;
}

.error-links h2 {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #14312D;
  text-align: center;
}

.error-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.error-link-list a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  background-color: #FFFFFF;
  border: 1px solid #DCE9E6;
  border-radius: 6px;
}

.error-link-list a:hover,
.error-link-list a:focus {
  border-color: #1B9E8F;
  background-color: #F1F8F6;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 16px;
    min-height: 64px;
    position: relative;
  }

  .brand {
    flex: 1 1 auto;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    order: 3;
    flex: 1 1 100%;
    min-height: 44px;
  }

  .site-nav {
    order: 4;
    flex: 1 1 100%;
    display: block;
    min-width: 0;
  }

  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    padding: 6px 0 4px;
    border-top: 1px solid #DCE9E6;
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav li {
    width: 100%;
  }

  .site-nav a {
    width: 100%;
    min-height: 48px;
    padding: 0 8px;
    border-radius: 4px;
  }

  .page-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .content-column {
    max-width: none;
  }

  .sidebar,
  .page-aside {
    width: 100%;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .hero-figure {
    max-width: 560px;
  }

  .symptom-grid,
  .symptom-select .symptom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-bottom p {
    padding: 14px 16px;
  }

  .inner-main {
    padding: 0 16px 8px;
  }

  .home-main {
    padding: 0 16px;
  }

  .error-main {
    padding: 40px 16px 0;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-text h1 {
    font-size: 24px;
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .section {
    padding-top: 34px;
  }

  .section-head h2,
  .section-block h2,
  .content-block h2,
  .section-precheck h2,
  .section-conditions h2,
  .section-entry-types h2,
  .section-fallback h2,
  .archive-index h2,
  .recent-archive h2,
  .archive-order h2,
  .field-guide h2,
  .channels-table h2,
  .watch-order h2,
  .symptom-select h2,
  .troubleshoot-tree h2,
  .feedback-prep h2,
  .self-check h2 {
    font-size: 17px;
  }

  .page-title {
    font-size: 24px;
  }

  .page-meta {
    font-size: 12px;
  }

  /* 表格改为两列对照列表 */

  .table-wrap {
    overflow: visible;
    border: 0;
    background: none;
    border-radius: 0;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .data-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 110px) minmax(0, 1fr);
    gap: 4px 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background-color: #FFFFFF;
    border: 1px solid #DCE9E6;
    border-radius: 8px;
  }

  .data-table tbody tr:last-child {
    margin-bottom: 0;
  }

  .data-table tbody th,
  .data-table tbody td {
    padding: 4px 0;
    border: 0;
    font-size: 14px;
    white-space: normal;
  }

  .data-table tbody th {
    color: #0F766E;
  }

  .data-table tbody td::before {
    display: none;
  }

  /* 首页频道索引表 → 卡片化 */

  .channel-index .data-table tbody tr {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .channel-index .data-table tbody th {
    font-size: 15px;
    padding-bottom: 4px;
  }

  .channel-index .data-table tbody td {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
    font-size: 13px;
  }

  .channel-index .data-table tbody td::before {
    display: block;
    content: attr(data-label);
    color: #5B7A76;
    font-size: 12px;
  }

  .schedule-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }

  .archive-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    align-items: start;
  }

  .archive-link {
    margin-top: 4px;
  }

  .symptom-grid,
  .symptom-select .symptom-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .source-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rule-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry-compare {
    grid-template-columns: minmax(0, 1fr);
  }

  .field-row,
  .definition-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .relation-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .self-check-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .step-item {
    padding: 14px;
    gap: 12px;
  }

  .branch-body {
    padding-left: 16px;
  }

  .tree-branch summary {
    padding-left: 36px;
  }

  .tree-branch summary::before {
    left: 16px;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .error-panel {
    padding: 24px 18px;
  }

  .error-code {
    font-size: 32px;
  }

  .error-panel h1 {
    font-size: 20px;
  }

  .error-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
