/* ==========================================================================
   秋霞影视 · 全站样式
   分组：base / layout / components / pages / responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. base
   -------------------------------------------------------------------------- */

:root {
  --cream: #FFFDF7;
  --ink: #1B2A33;
  --coral: #E4572E;
  --teal: #177E89;
  --yellow: #FFB703;
  --sand: #F2E7D8;
  --ink-soft: #4A5A64;
  --line: #E4D8C8;
  --radius-card: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 0 rgba(27, 42, 51, 0.06);
  --container: 1120px;
  --container-wide: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.site-body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink);
  font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: tabular-nums;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   2. layout — 全站骨架
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--cream);
  border-bottom: 1px solid var(--line);
  transition: padding 0.2s ease;
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: padding 0.2s ease;
}

.site-header.is-scrolled .header-inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  color: var(--ink);
}

.brand:hover {
  text-decoration: none;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--coral);
  transition: font-size 0.2s ease;
}

.site-header.is-scrolled .brand-name {
  font-size: 19px;
}

.brand-tagline {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: inline-block;
  padding: 8px 12px;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 3px solid transparent;
  line-height: 1.5;
}

.nav-link:hover {
  color: var(--teal);
  text-decoration: none;
  border-bottom-color: var(--sand);
}

.nav-link.is-current {
  color: var(--coral);
  border-bottom-color: var(--coral);
  font-weight: 700;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background-color: var(--coral);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta:hover {
  background-color: #C7461F;
  text-decoration: none;
}

.nav-cta.is-current {
  background-color: var(--ink);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: #fff;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--ink);
  border-radius: 2px;
}

.site-main {
  display: block;
}

.inner-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 14px;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--teal);
}

.breadcrumb-sep {
  color: var(--line);
}

.breadcrumb-current {
  color: var(--ink-soft);
}

.page-header {
  padding: 20px 0 0;
}

.page-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.site-footer {
  background-color: var(--ink);
  color: #E9E2D6;
  margin-top: 48px;
}

.footer-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col {
  min-width: 0;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #C9C0B2;
}

.footer-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 12px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: #E9E2D6;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--yellow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 18px 24px;
}

.footer-slogan {
  font-size: 13px;
  color: #A9A093;
}

/* 内页通用两栏 */
.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  margin-top: 28px;
  align-items: start;
}

.page-layout--single {
  display: block;
  max-width: 100%;
}

.layout-shell {
  grid-template-columns: minmax(0, 1fr) 340px;
}

/* --------------------------------------------------------------------------
   3. components — 通用组件
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  border: 2px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background-color: var(--coral);
  color: #fff;
}

.btn-primary:hover {
  background-color: #C7461F;
}

.btn-ghost {
  background-color: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.btn-ghost:hover {
  background-color: var(--teal);
  color: #fff;
}

.btn-secondary {
  background-color: var(--sand);
  color: var(--ink);
}

.btn-secondary:hover {
  background-color: #E7D8C3;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 68ch;
}

.section-head {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-head .section-desc {
  max-width: 68ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

.link-arrow::after {
  content: "→";
  font-size: 15px;
}

.channel-badge,
.channel-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background-color: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.channel-badge--topic {
  background-color: var(--coral);
}

.badge-teal {
  background-color: var(--teal);
}

/* 提示条 */
.hero-note,
.step-note,
.section-note {
  background-color: #FFF4D6;
  border-left: 4px solid var(--yellow);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink);
  border-radius: 4px;
  margin-top: 14px;
}

/* 返回顶部 */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background-color: var(--teal);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(27, 42, 51, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-top::before {
  content: "↑";
}

/* --------------------------------------------------------------------------
   4. pages — 首页
   -------------------------------------------------------------------------- */

.hero {
  padding: 32px 0 16px;
}

.hero-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 40px;
  align-items: start;
}

.hero-media {
  min-width: 0;
}

.hero-figure {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background-color: var(--sand);
  margin-bottom: 20px;
}

.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-media h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 60ch;
}

.hero-facts {
  min-width: 0;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}

.fact-list {
  margin: 0 0 20px;
}

.fact-row {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-row dt {
  color: var(--ink-soft);
  font-weight: 400;
}

.fact-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn {
  flex: 1 1 140px;
}

.hero-note {
  margin-top: 16px;
  font-size: 13px;
}

/* 频道标签条 */
.channel-strip {
  padding: 40px 0 8px;
}

.channel-chips {
  max-width: var(--container-wide);
  margin: 16px auto 0;
  padding: 0 24px 6px;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.channel-chips li {
  flex: 0 0 auto;
}

.channel-chip {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  background-color: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.channel-chip:hover {
  text-decoration: none;
  border-color: var(--teal);
  background-color: #F4FBFB;
}

.chip-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
}

.chip-scope {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* 本期专题节目单 */
.program-list {
  padding: 48px 0 8px;
}

.program-figure {
  max-width: var(--container-wide);
  margin: 16px auto 0;
  padding: 0 24px;
}

.program-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.program-figure figcaption,
.matrix-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.program-rows {
  max-width: var(--container-wide);
  margin: 20px auto 0;
  padding: 0 24px;
  border-top: 2px solid var(--sand);
}

.program-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 110px 96px;
  gap: 16px;
  align-items: center;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  background-color: #fff;
  transition: background-color 0.15s ease;
}

.program-row:nth-child(even) {
  background-color: #FBF5EC;
}

.program-row:hover {
  background-color: #F5EFE4;
}

.program-index {
  font-size: 20px;
  font-weight: 700;
  color: var(--coral);
  font-variant-numeric: tabular-nums;
}

.program-body {
  min-width: 0;
}

.program-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.program-name a {
  color: var(--ink);
}

.program-name a:hover {
  color: var(--teal);
}

.program-compose {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.program-duration {
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.program-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
  text-align: right;
  white-space: nowrap;
}

/* 频道分类矩阵 */
.channel-matrix {
  padding: 48px 0 8px;
}

.matrix-figure {
  max-width: var(--container-wide);
  margin: 16px auto 0;
  padding: 0 24px;
}

.matrix-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.matrix-grid {
  max-width: var(--container-wide);
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.matrix-block {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
  border-top: 4px solid var(--teal);
}

.matrix-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.matrix-name a {
  color: var(--teal);
}

.matrix-scope {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.7;
}

.matrix-form,
.matrix-scene {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 4px;
}

/* 观看流程四步 */
.flow-steps {
  padding: 48px 0 8px;
}

.step-track {
  max-width: var(--container-wide);
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-item {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-item .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--coral);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.step-item .step-title {
  font-size: 17px;
  font-weight: 700;
}

.step-item .step-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  flex-grow: 1;
}

.step-item .step-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

/* 内容范围与边界 */
.scope-split {
  padding: 48px 0 8px;
}

.scope-columns {
  max-width: var(--container-wide);
  margin: 24px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.scope-do,
.scope-dont {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 24px;
}

.scope-do {
  border-top: 4px solid var(--teal);
}

.scope-dont {
  border-top: 4px solid var(--coral);
}

.scope-do h3,
.scope-dont h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.scope-do ul,
.scope-dont ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scope-do li,
.scope-dont li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.scope-do li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.scope-dont li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--coral);
  font-weight: 700;
}

.scope-more {
  max-width: var(--container-wide);
  margin: 20px auto 0;
  padding: 0 24px;
  font-size: 15px;
}

/* 反馈入口条 */
.feedback-bar {
  padding: 48px 0 8px;
}

.feedback-bar-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 28px 32px;
  background-color: var(--teal);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.feedback-bar-text {
  min-width: 0;
  flex: 1 1 320px;
}

.feedback-bar-text h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.feedback-bar-text p {
  font-size: 14px;
  color: #DCEEF0;
  line-height: 1.7;
}

.feedback-bar .btn-primary {
  background-color: var(--yellow);
  color: var(--ink);
  flex-shrink: 0;
}

.feedback-bar .btn-primary:hover {
  background-color: #E6A400;
}

/* --------------------------------------------------------------------------
   5. pages — 内页共用标题区
   -------------------------------------------------------------------------- */

.page-title-block,
.page-title-section {
  margin-top: 16px;
}

.page-title-inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-bottom: 2px solid var(--sand);
}

.page-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 68ch;
  flex: 1 1 320px;
  min-width: 0;
}

.page-subtitle {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 68ch;
  margin-top: 8px;
}

.page-header-wrap {
  margin-top: 16px;
}

.page-header-wrap .page-title-block {
  margin-top: 0;
  border-bottom: 2px solid var(--sand);
  padding: 16px 0;
}

.page-header-wrap .page-lead {
  display: block;
  margin-bottom: 12px;
}

.page-hero {
  margin-top: 16px;
  border-bottom: 2px solid var(--sand);
  padding: 16px 0;
}

.page-hero-inner {
  max-width: 68ch;
}

.page-kicker {
  font-size: 13px;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0;
  margin-bottom: 6px;
}

.page-heading {
  margin-bottom: 24px;
}

/* 内页通用 section */
.section {
  margin-bottom: 56px;
}

.section-block {
  margin-bottom: 56px;
}

.section-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 12px;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
   6. pages — 频道索引
   -------------------------------------------------------------------------- */

.reading-guide p {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.75;
}

.channel-figure {
  margin: 20px 0 0;
}

.channel-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.channel-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.channel-rows {
  border-top: 2px solid var(--sand);
  padding-top: 12px;
}

.channel-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 100px;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.channel-row-main,
.channel-row-meta {
  min-width: 0;
}

.channel-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.channel-scope {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.channel-form,
.channel-scene {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.channel-row-link {
  text-align: right;
}

.jump-block {
  border-top: 2px solid var(--sand);
  padding-top: 20px;
}

.jump-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.jump-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
  min-height: 88px;
}

.jump-card:hover {
  text-decoration: none;
  border-color: var(--teal);
}

.jump-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
}

.jump-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* 频道索引侧栏 */
.side-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.side-panel {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.side-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}

.quick-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-list a {
  display: block;
  padding: 8px 0;
  font-size: 15px;
  color: var(--teal);
  border-bottom: 1px dashed var(--line);
}

.quick-list li:last-child a {
  border-bottom: none;
}

.side-tip {
  background-color: #FFF4D6;
  border-color: var(--yellow);
}

.side-tip p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 12px;
}

.side-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   7. pages — 专题片单
   -------------------------------------------------------------------------- */

.page-layout--single .section-block {
  max-width: 100%;
}

.section-intro {
  border-bottom: 2px solid var(--sand);
  padding-bottom: 16px;
}

.section-intro h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.section-intro p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.topic-unit {
  margin-bottom: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: #fff;
  overflow: hidden;
}

.topic-unit-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  background-color: #FBF5EC;
  border-bottom: 1px solid var(--line);
}

.topic-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background-color: var(--coral);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.topic-unit-head h2 {
  font-size: 22px;
}

.topic-unit-body {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 28px;
  padding: 24px;
}

.topic-visual {
  min-width: 0;
}

.topic-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.topic-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.topic-composition {
  margin-top: 18px;
}

.topic-composition h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.composition-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.composition-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink);
}

.composition-list li::before {
  content: "·";
  position: absolute;
  left: 6px;
  color: var(--teal);
  font-weight: 700;
}

.topic-context {
  min-width: 0;
  background-color: #FBF5EC;
  border-radius: var(--radius-card);
  padding: 20px 22px;
  align-self: start;
}

.topic-context h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.topic-context p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  margin-bottom: 10px;
}

.topic-gallery {
  padding: 0 24px 24px;
}

.topic-gallery h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-item {
  min-width: 0;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.gallery-item figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 8px;
}

.section-order {
  border-top: 2px solid var(--sand);
  padding-top: 24px;
}

.section-order h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.section-order > p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: order;
  margin-bottom: 16px;
}

.order-list li {
  position: relative;
  padding-left: 40px;
  counter-increment: order;
}

.order-list li::before {
  content: counter(order);
  position: absolute;
  left: 0;
  top: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-list strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.order-list p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   8. pages — 观看指南
   -------------------------------------------------------------------------- */

.section-overview {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px;
}

.overview-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.overview-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.overview-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--sand);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.overview-text {
  min-width: 0;
}

.step-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-head .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--coral);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.step-block .step-title {
  font-size: 22px;
}

.step-body {
  padding-left: 48px;
  min-width: 0;
}

.step-body p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.step-figure {
  margin: 0 0 16px;
}

.step-figure img {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.step-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.section-next {
  border-top: 2px solid var(--sand);
  padding-top: 24px;
}

.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* 观看指南侧栏 */
.layout-aside {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.aside-block {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.aside-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.aside-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.65;
}

.check-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--teal);
  border-radius: 4px;
  margin-top: 2px;
}

.check-text {
  min-width: 0;
}

.aside-tip {
  background-color: #FFF4D6;
  border-color: var(--yellow);
}

/* --------------------------------------------------------------------------
   9. pages — 入口核验
   -------------------------------------------------------------------------- */

.check-intro {
  margin-top: 32px;
}

.check-intro-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 16px;
}

.check-intro-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.check-intro-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.check-intro-text p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.check-table-section {
  margin-top: 48px;
}

.check-table-section .section-desc {
  margin-bottom: 16px;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: #fff;
  -webkit-overflow-scrolling: touch;
}

.check-table {
  min-width: 720px;
  font-size: 15px;
}

.check-table-caption {
  text-align: left;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  caption-side: top;
}

.check-table thead th {
  background-color: var(--teal);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  white-space: nowrap;
}

.check-table tbody th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--ink);
  background-color: #FBF5EC;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  width: 22%;
}

.check-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.65;
  vertical-align: top;
}

.check-table tbody tr:nth-child(even) td {
  background-color: #FDFAF4;
}

.check-table tbody tr:hover th,
.check-table tbody tr:hover td {
  background-color: #F5EFE4;
}

.check-table .col-rule {
  width: 34%;
}

.check-table .col-unit {
  width: 12%;
  white-space: nowrap;
}

.check-table .col-note {
  width: 32%;
}

.check-stepper-section {
  margin-top: 48px;
}

.stepper-block {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  max-width: 520px;
}

.stepper {
  display: inline-flex;
  align-items: stretch;
  border: 2px solid var(--teal);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.stepper-btn {
  width: 48px;
  height: 48px;
  border: none;
  background-color: #F4FBFB;
  color: var(--teal);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-btn:hover:not(:disabled) {
  background-color: var(--teal);
  color: #fff;
}

.stepper-btn:disabled {
  color: #B9C4C7;
  background-color: #F2F2F2;
  cursor: not-allowed;
}

.stepper-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  background-color: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.stepper-note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-top: 12px;
}

.mismatch-section {
  margin-top: 48px;
}

.mismatch-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.mismatch-item {
  background-color: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  border-radius: var(--radius-card);
  padding: 18px 22px;
}

.mismatch-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.mismatch-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.mismatch-footer {
  font-size: 15px;
  margin-top: 16px;
  color: var(--ink-soft);
}

.mismatch-footer a {
  font-weight: 700;
}

.related-section {
  margin-top: 48px;
  border-top: 2px solid var(--sand);
  padding-top: 24px;
}

.related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.related-item a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--ink);
  min-height: 76px;
}

.related-item a:hover {
  text-decoration: none;
  border-color: var(--teal);
}

.related-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal);
}

.related-desc {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   10. pages — 问题反馈
   -------------------------------------------------------------------------- */

.feedback-intro {
  margin-top: 32px;
}

.feedback-intro p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
  max-width: 68ch;
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 40px;
  margin-top: 32px;
  align-items: start;
}

.feedback-cases {
  min-width: 0;
}

.feedback-figure {
  margin: 16px 0 20px;
}

.feedback-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.feedback-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-item {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 22px;
}

.case-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--ink);
}

.case-judge,
.case-need {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.case-need {
  margin-bottom: 0;
  color: var(--ink);
}

.feedback-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feedback-points,
.feedback-path {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.feedback-points > p,
.feedback-path > p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.points-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: point;
}

.points-item {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  counter-increment: point;
}

.points-item::before {
  content: counter(point);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--sand);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: path;
}

.path-step {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  line-height: 1.7;
  counter-increment: path;
}

.path-step::before {
  content: counter(path);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--teal);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-step a {
  font-weight: 700;
}

.path-note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.feedback-faq {
  margin-top: 48px;
  border-top: 2px solid var(--sand);
  padding-top: 24px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background-color: #fff;
  margin-top: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  min-height: 48px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 22px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] .faq-question::after {
  content: "−";
}

.faq-item[open] .faq-question {
  border-bottom: 1px solid var(--line);
}

.faq-answer {
  padding: 16px 20px;
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   11. pages — 站点说明
   -------------------------------------------------------------------------- */

.about-layout {
  display: block;
  max-width: 900px;
  margin: 28px auto 0;
}

.about-layout > section {
  margin-bottom: 48px;
}

.about-layout h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.about-layout section > p {
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 12px;
}

.about-figure {
  margin: 20px 0;
}

.about-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
}

.about-figure figcaption {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.column-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.column-item {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}

.column-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--teal);
}

.column-item p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.term-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  font-size: 15px;
  margin-top: 16px;
}

.term-table caption {
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  caption-side: top;
}

.term-table thead th {
  background-color: var(--teal);
  color: #fff;
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
}

.term-table tbody th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--ink);
  background-color: #FBF5EC;
  border-bottom: 1px solid var(--line);
  width: 30%;
  vertical-align: top;
}

.term-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  line-height: 1.7;
  vertical-align: top;
}

.term-table tbody tr:last-child th,
.term-table tbody tr:last-child td {
  border-bottom: none;
}

.boundary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.boundary-col {
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 18px 20px;
}

.boundary-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
}

.boundary-col--none {
  border-top: 4px solid var(--coral);
}

.boundary-col--wording {
  border-top: 4px solid var(--yellow);
}

.boundary-col--data {
  border-top: 4px solid var(--teal);
}

.boundary-col ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.boundary-col li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.boundary-col li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--teal);
  font-weight: 700;
}

.update-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.update-links a {
  font-weight: 700;
  font-size: 15px;
}

.about-related {
  border-top: 2px solid var(--sand);
  padding-top: 24px;
}

.about-related h2 {
  font-size: 22px;
  margin-bottom: 12px;
}

.about-related .related-list {
  margin-top: 0;
}

.about-related .related-list a {
  display: block;
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
}

.about-related .related-list a:hover {
  text-decoration: none;
  border-color: var(--teal);
}

/* --------------------------------------------------------------------------
   12. pages — 404
   -------------------------------------------------------------------------- */

.error-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 48px;
}

.error-panel {
  text-align: left;
  padding: 32px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--coral);
  border-radius: var(--radius-card);
}

.error-code {
  font-size: 64px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.error-panel h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.error-home {
  display: inline-flex;
}

.error-links {
  margin-top: 32px;
}

.error-links h2 {
  font-size: 20px;
  margin-bottom: 12px;
}

.error-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.error-link-list a {
  display: block;
  padding: 12px 16px;
  background-color: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--teal);
  font-weight: 700;
  font-size: 15px;
}

.error-link-list a:hover {
  text-decoration: none;
  border-color: var(--teal);
}

/* --------------------------------------------------------------------------
   13. responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .header-inner {
    padding: 12px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;
    font-size: 16px;
  }

  .nav-link.is-current {
    border-bottom-color: var(--line);
    border-left-color: var(--coral);
    padding-left: 12px;
  }

  .nav-cta {
    display: none;
    margin-top: 12px;
    width: 100%;
    min-height: 48px;
  }

  .nav-list.is-open ~ .nav-cta {
    display: inline-flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 20px;
  }

  .hero-media h1 {
    font-size: 28px;
  }

  .section-head,
  .channel-chips,
  .program-figure,
  .program-rows,
  .matrix-figure,
  .matrix-grid,
  .step-track,
  .scope-columns,
  .scope-more,
  .feedback-bar-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .program-row {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 16px 12px;
  }

  .program-index {
    grid-row: span 2;
    font-size: 18px;
  }

  .program-duration {
    grid-column: 2;
  }

  .program-link {
    grid-column: 2;
    text-align: left;
  }

  .scope-columns {
    grid-template-columns: 1fr;
  }

  .feedback-bar-inner {
    padding: 24px 20px;
  }

  .inner-main {
    padding: 0 20px 48px;
  }

  .page-layout,
  .layout-shell,
  .feedback-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .main-column,
  .layout-main,
  .feedback-cases {
    min-width: 0;
  }

  .side-column,
  .layout-aside,
  .feedback-side {
    order: 2;
  }

  .channel-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .channel-row-link {
    text-align: left;
  }

  .topic-unit-body {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }

  .topic-gallery {
    padding: 0 20px 20px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .check-intro-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 40px 20px 28px;
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding: 16px 20px;
  }
}

@media (max-width: 640px) {
  body.site-body {
    font-size: 15px;
  }

  .header-inner {
    padding: 10px 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .site-header.is-scrolled .brand-name {
    font-size: 17px;
  }

  .hero {
    padding: 20px 0 8px;
  }

  .hero-inner {
    padding: 0 16px;
    gap: 20px;
  }

  .hero-media h1 {
    font-size: 26px;
  }

  .hero-lead {
    font-size: 15px;
  }

  .hero-facts {
    padding: 18px 16px;
  }

  .fact-row {
    grid-template-columns: 84px minmax(0, 1fr);
    font-size: 14px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .section-head,
  .channel-chips,
  .program-figure,
  .program-rows,
  .matrix-figure,
  .matrix-grid,
  .step-track,
  .scope-columns,
  .scope-more,
  .feedback-bar-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head h2 {
    font-size: 21px;
  }

  .channel-chip {
    min-width: 160px;
    padding: 12px 16px;
  }

  .program-row {
    padding: 14px 10px;
  }

  .program-name {
    font-size: 16px;
  }

  .program-compose {
    font-size: 13px;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .step-track {
    grid-template-columns: 1fr;
  }

  .feedback-bar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 22px 16px;
  }

  .feedback-bar .btn-primary {
    width: 100%;
  }

  .inner-main {
    padding: 0 16px 40px;
  }

  .breadcrumb {
    padding-top: 14px;
    font-size: 13px;
  }

  .page-header {
    padding-top: 14px;
  }

  .page-title {
    font-size: 26px;
  }

  .page-lead,
  .page-subtitle {
    font-size: 15px;
  }

  .section {
    margin-bottom: 40px;
  }

  .section-block {
    margin-bottom: 40px;
  }

  .section-title {
    font-size: 20px;
  }

  .section-overview {
    padding: 18px 16px;
  }

  .step-head {
    gap: 10px;
  }

  .step-block .step-title {
    font-size: 19px;
  }

  .step-body {
    padding-left: 0;
  }

  .step-body p {
    font-size: 15px;
  }

  .aside-block,
  .side-panel {
    padding: 18px 16px;
  }

  .topic-unit-head {
    padding: 14px 16px;
  }

  .topic-unit-head h2 {
    font-size: 19px;
  }

  .topic-index {
    min-width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .topic-unit-body {
    padding: 16px;
  }

  .topic-context {
    padding: 16px;
  }

  .topic-gallery {
    padding: 0 16px 16px;
  }

  .topic-unit {
    margin-bottom: 40px;
  }

  .topic-gallery h3 {
    font-size: 15px;
  }

  .section-order h2 {
    font-size: 20px;
  }

  .check-intro {
    margin-top: 24px;
  }

  .check-table-section,
  .check-stepper-section,
  .mismatch-section,
  .related-section {
    margin-top: 36px;
  }

  .stepper-block {
    padding: 18px 16px;
  }

  .stepper-btn {
    width: 48px;
    height: 48px;
  }

  .check-table {
    min-width: 640px;
    font-size: 14px;
  }

  .check-table thead th,
  .check-table tbody th,
  .check-table tbody td {
    padding: 10px 12px;
  }

  .mismatch-item {
    padding: 16px;
  }

  .feedback-layout {
    margin-top: 24px;
  }

  .feedback-points,
  .feedback-path {
    padding: 18px 16px;
  }

  .case-item {
    padding: 16px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 15px;
  }

  .faq-answer {
    padding: 14px 16px;
  }

  .about-layout {
    margin-top: 20px;
  }

  .about-layout h2 {
    font-size: 20px;
  }

  .term-table thead {
    display: none;
  }

  .term-table,
  .term-table tbody,
  .term-table tr,
  .term-table th,
  .term-table td {
    display: block;
    width: 100%;
  }

  .term-table tbody th {
    border-bottom: none;
    background-color: #FBF5EC;
    padding-bottom: 4px;
  }

  .term-table tbody td {
    padding-top: 0;
  }

  .column-list,
  .boundary-grid {
    grid-template-columns: 1fr;
  }

  .error-main {
    padding: 40px 16px 32px;
  }

  .error-panel {
    padding: 24px 20px;
  }

  .error-code {
    font-size: 52px;
  }

  .error-panel h1 {
    font-size: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 24px;
  }

  .footer-about {
    grid-column: auto;
  }

  .footer-bottom {
    padding: 14px 16px;
  }

  .back-top {
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header,
  .header-inner,
  .brand-name,
  .back-top,
  .btn {
    transition: none;
  }
}
