/* ============================================================
   BASE — reset, variables, typography, global tokens
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #222936;
  background-color: #151b26;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #c9184a;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
table {
  margin: 0 0 1rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  font-weight: 700;
}

ul,
ol {
  padding-left: 1.4rem;
}

button {
  font-family: inherit;
}

.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 — shared shell, header, footer, containers
   ============================================================ */
.site-header {
  background-color: #151b26;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 100;
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.brand-link:hover {
  text-decoration: none;
  color: #ff4d6d;
}

.brand-name {
  color: inherit;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  line-height: 1.6;
  font-weight: 500;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-list a:hover {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.nav-list a.is-current {
  color: #fff;
  background-color: rgba(255, 77, 109, 0.16);
  font-weight: 700;
}

.site-main {
  flex: 1 0 auto;
}

.site-footer {
  background-color: #0f141d;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0;
}

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px 32px;
}

.footer-brand {
  margin-bottom: 32px;
}

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand p:last-child {
  margin-bottom: 0;
  max-width: 720px;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.footer-col h2 {
  font-size: 0.9375rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.7;
}

.footer-col a:hover {
  color: #ff4d6d;
  text-decoration: none;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0;
}

/* ============================================================
   COMPONENTS — buttons, links, cards, tables, FAQ, figures
   ============================================================ */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background-color: #ff4d6d;
  color: #fff;
  border: 1px solid #ff4d6d;
}

.btn-primary:hover {
  background-color: #e63956;
  border-color: #e63956;
  text-decoration: none;
}

.btn-secondary {
  background-color: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  border-color: #ff4d6d;
  color: #ff4d6d;
  text-decoration: none;
}

.btn-text-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c9184a;
  font-weight: 600;
  font-size: 0.9375rem;
  min-height: 44px;
}

.btn-text-arrow::after {
  content: "→";
  font-size: 1.1rem;
  line-height: 1;
}

.btn-text-arrow:hover {
  color: #e63956;
  text-decoration: none;
}

.text-link {
  color: #c9184a;
  font-weight: 600;
  font-size: 0.9375rem;
}

.text-link:hover {
  color: #e63956;
}

/* Figures and images */
figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figcaption {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.6;
  padding-top: 8px;
}

/* ============================================================
   PAGES — home
   ============================================================ */
.site-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-home {
  background-color: #151b26;
}

.home-main {
  flex: 1 0 auto;
}

.home-main section {
  scroll-margin-top: 80px;
}

/* Hero */
.hero-panel {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.5rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figure {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #1e2633;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Preference track */
.preference-track {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px;
}

.preference-track h2,
.update-timeline h2,
.quick-guide h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.section-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 760px;
}

.preference-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pref-card {
  background-color: #1e2633;
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.pref-card h3 {
  color: #fff;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.pref-card p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pref-card a {
  color: #ff4d6d;
  font-weight: 600;
  font-size: 0.9375rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.pref-card a:hover {
  color: #ff8aa0;
  text-decoration: none;
}

/* Timeline */
.update-timeline {
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px;
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  max-width: 820px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item time {
  color: #ff9a56;
  font-family: "SF Mono", "Consolas", "Menlo", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
}

.timeline-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Channel preview */
.channel-preview {
  background-color: #f7f2e8;
  border-radius: 8px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 48px 24px;
}

.section-head {
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 1.5rem;
  color: #222936;
  margin-bottom: 8px;
}

.section-head p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 0;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.channel-item {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px 20px 16px;
  display: grid;
  grid-template-columns: 44px 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: start;
}

.channel-no {
  grid-row: 1 / 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: #1e2633;
  color: #ff4d6d;
  font-family: "SF Mono", "Consolas", "Menlo", monospace;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 4px;
}

.channel-item h3 {
  font-size: 1rem;
  color: #222936;
  margin-bottom: 4px;
  line-height: 1.5;
}

.channel-item p {
  font-size: 0.875rem;
  color: #5f6672;
  line-height: 1.6;
  margin-bottom: 0;
}

.channel-item a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #c9184a;
  align-self: end;
}

/* Scene preview */
.scene-preview {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.scene-copy h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.scene-copy p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.scene-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 8px;
}

.scene-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 12px;
  background-color: rgba(255, 77, 109, 0.14);
  color: #ff8aa0;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.scene-figure {
  border-radius: 8px;
  overflow: hidden;
  background-color: #1e2633;
  aspect-ratio: 4 / 3;
}

.scene-figure figcaption {
  color: rgba(255, 255, 255, 0.5);
  padding: 10px 4px 0;
}

/* Quick guide */
.quick-guide {
  background-color: #1e2633;
  padding: 48px 0;
}

.quick-guide .section-desc,
.quick-guide h2 {
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
}

.quick-guide h2 {
  padding: 0 24px;
  margin-bottom: 8px;
}

.quick-guide .section-desc {
  padding: 0 24px;
  margin-bottom: 32px;
}

.guide-steps {
  list-style: none;
  margin: 0 auto 32px;
  padding: 0 24px;
  max-width: 1160px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.guide-step {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 20px;
}

.guide-step .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #ff4d6d;
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 4px;
  margin-bottom: 12px;
}

.guide-step h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}

.guide-step p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.quick-guide .btn-primary {
  display: inline-flex;
  margin: 0 24px;
}

/* Reading card */
.reading-card {
  max-width: 1160px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.reading-media {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #1e2633;
}

.reading-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reading-content .article-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  background-color: rgba(255, 154, 86, 0.16);
  color: #ff9a56;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.reading-content h2 {
  color: #fff;
  font-size: 1.375rem;
  margin-bottom: 10px;
}

.reading-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

/* Related links */
.related-links {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
}

.related-links-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.related-links-item {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

.related-links-item:hover {
  color: #ff4d6d;
  text-decoration: none;
}

/* ============================================================
   PAGES — inner shared
   ============================================================ */
.inner-main {
  background-color: #f7f2e8;
  flex: 1 0 auto;
  padding-bottom: 56px;
}

.breadcrumb {
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 24px 0;
  font-size: 0.8125rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumb a {
  color: #6b7280;
}

.breadcrumb a:hover {
  color: #c9184a;
}

.breadcrumb-sep {
  color: #9ca3af;
}

.breadcrumb-current {
  color: #222936;
  font-weight: 500;
}

.page-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 32px 24px 24px;
}

.page-title {
  font-size: 2rem;
  line-height: 1.25;
  color: #222936;
  margin-bottom: 8px;
}

.page-description {
  font-size: 1rem;
  color: #5f6672;
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 840px;
}

/* ============================================================
   PAGES — pindao (channel archive)
   ============================================================ */
.archive-cover {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
  aspect-ratio: 21 / 9;
  border-radius: 8px;
  overflow: hidden;
}

.archive-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-table-section,
.how-to-read-section,
.archive-nav-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.channel-table-section h2,
.how-to-read-section h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.section-note {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 840px;
}

.channel-table-wrap {
  overflow-x: auto;
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #e5e0d6;
}

.channel-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 760px;
}

.channel-table th {
  background-color: #1e2633;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}

.channel-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e0d6;
  vertical-align: top;
  line-height: 1.6;
  color: #222936;
}

.channel-table tbody tr:last-child td {
  border-bottom: 0;
}

.channel-table tbody tr:hover {
  background-color: #faf7f1;
}

.channel-no {
  font-family: "SF Mono", "Consolas", "Menlo", monospace;
  color: #c9184a;
  font-weight: 700;
  white-space: nowrap;
}

.channel-name {
  font-weight: 700;
  white-space: nowrap;
}

.read-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.read-guide-card {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px;
}

.read-guide-card h3 {
  font-size: 0.9375rem;
  color: #222936;
  margin-bottom: 6px;
}

.read-guide-card p {
  font-size: 0.8125rem;
  color: #5f6672;
  line-height: 1.7;
  margin-bottom: 0;
}

.archive-nav-section p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.archive-entry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.entry-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.5;
}

.entry-link-primary {
  background-color: #ff4d6d;
  color: #fff;
  border: 1px solid #ff4d6d;
}

.entry-link-primary:hover {
  background-color: #e63956;
  text-decoration: none;
}

.entry-link-secondary {
  background-color: transparent;
  color: #c9184a;
  border: 1px solid #c9184a;
}

.entry-link-secondary:hover {
  background-color: rgba(201, 24, 74, 0.06);
  text-decoration: none;
}

/* ============================================================
   PAGES — piandan (scene list)
   ============================================================ */
.section-intro {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.intro-copy h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.intro-copy p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 0;
  max-width: 840px;
}

.section-scenario-table {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.section-scenario-table h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.table-intro {
  color: #5f6672;
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.table-scroll {
  overflow-x: auto;
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #e5e0d6;
}

.scenario-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 720px;
}

.scenario-table th {
  background-color: #1e2633;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}

.scenario-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e0d6;
  vertical-align: top;
  line-height: 1.6;
  color: #222936;
}

.scenario-table tbody tr:last-child td {
  border-bottom: 0;
}

.scenario-table tbody tr:hover {
  background-color: #faf7f1;
}

.section-four-steps {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.section-four-steps h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.step-intro {
  color: #5f6672;
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.step-item {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px;
}

.step-item h3 {
  font-size: 0.9375rem;
  color: #222936;
  margin-bottom: 6px;
}

.step-item p {
  font-size: 0.8125rem;
  color: #5f6672;
  line-height: 1.7;
  margin-bottom: 0;
}

.section-avoid-label {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.avoid-text h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.avoid-text p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 0;
}

.avoid-figure {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #e5e0d6;
}

.avoid-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avoid-figure figcaption {
  color: #6b7280;
}

.section-next-links {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.next-link-card {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.next-link-card h3 {
  font-size: 1rem;
  color: #222936;
  margin-bottom: 6px;
}

.next-link-card p {
  font-size: 0.875rem;
  color: #5f6672;
  line-height: 1.7;
  margin-bottom: 12px;
  flex-grow: 1;
}

.next-link-card .text-link {
  align-self: flex-start;
}

/* ============================================================
   PAGES — zhinan (guide)
   ============================================================ */
.guide-step {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.guide-step .step-copy {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 8px;
  padding: 28px;
}

.guide-step .step-marker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  background-color: #ff4d6d;
  color: #fff;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-step .step-copy h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.guide-step .step-copy > p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.option-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.option-list li {
  background-color: #f7f2e8;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.option-name {
  display: block;
  font-weight: 700;
  font-size: 0.9375rem;
  color: #222936;
  margin-bottom: 4px;
}

.option-desc {
  display: block;
  font-size: 0.8125rem;
  color: #5f6672;
  line-height: 1.7;
}

.step-visual {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background-color: #e5e0d6;
}

.step-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guide-outro {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.guide-outro h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.guide-outro > p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.outro-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.outro-card {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px;
  display: block;
}

.outro-card:hover {
  border-color: #ff4d6d;
  text-decoration: none;
}

.outro-card h3 {
  font-size: 1rem;
  color: #222936;
  margin-bottom: 4px;
}

.outro-card p {
  font-size: 0.875rem;
  color: #5f6672;
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   PAGES — duanju-zhuanlan (article)
   ============================================================ */
.article-summary {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

.article-summary h2,
.analysis-block h2,
.rhythm-comparison h2,
.reading-path h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.article-summary p,
.analysis-block p,
.rhythm-comparison p,
.reading-path p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.note-text {
  color: #6b7280;
  font-size: 0.875rem;
  border-left: 3px solid #ff9a56;
  padding-left: 12px;
}

.article-media {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 32px;
  aspect-ratio: 21 / 9;
  border-radius: 8px;
  overflow: hidden;
}

.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.analysis-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.analysis-block {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px;
}

.rhythm-comparison {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 24px;
}

.table-wrapper {
  overflow-x: auto;
  background-color: #fff;
  border-radius: 6px;
  border: 1px solid #e5e0d6;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 640px;
}

.comparison-table th {
  background-color: #1e2633;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
}

.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #e5e0d6;
  vertical-align: top;
  line-height: 1.7;
  color: #222936;
}

.comparison-table tbody th {
  background-color: #f7f2e8;
  color: #222936;
  font-weight: 700;
  white-space: nowrap;
}

.comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.reading-path {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 32px;
}

.path-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.text-link-card {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px;
  display: block;
  color: #222936;
}

.text-link-card:hover {
  border-color: #ff4d6d;
  text-decoration: none;
}

.article-footer-nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-footer-nav p {
  color: #5f6672;
  font-size: 0.9375rem;
  margin-bottom: 0;
}

.article-footer-nav a {
  color: #c9184a;
  font-weight: 600;
  margin-right: 16px;
}

/* ============================================================
   PAGES — wenti (FAQ)
   ============================================================ */
.qa-intro {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  gap: 40px;
  align-items: center;
}

.qa-intro-text h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.qa-intro-text p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.qa-intro-figure {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #e5e0d6;
}

.qa-intro-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qa-list-section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.qa-list-section h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 16px;
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-item {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  overflow: hidden;
}

.qa-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #222936;
  cursor: pointer;
  list-style: none;
  line-height: 1.6;
}

.qa-item summary::-webkit-details-marker {
  display: none;
}

.qa-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: #c9184a;
  flex-shrink: 0;
}

.qa-item[open] summary::after {
  content: "−";
}

.qa-item summary:hover {
  background-color: #faf7f1;
}

.qa-answer {
  padding: 0 20px 16px;
  border-top: 1px solid #f0ece4;
}

.qa-answer p {
  font-size: 0.875rem;
  color: #5f6672;
  line-height: 1.8;
  margin-bottom: 8px;
}

.qa-answer p:first-child {
  margin-top: 16px;
}

.qa-answer p:last-child {
  margin-bottom: 0;
}

.qa-next-steps {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.qa-next-steps h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 16px;
}

.next-step-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.next-step-card {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px;
}

.next-step-card h3 {
  font-size: 1rem;
  color: #222936;
  margin-bottom: 6px;
}

.next-step-card p {
  font-size: 0.875rem;
  color: #5f6672;
  line-height: 1.7;
  margin-bottom: 12px;
}

.next-step-card a {
  color: #c9184a;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ============================================================
   PAGES — bianjie (boundary)
   ============================================================ */
.boundary-intro {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.intro-container {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  align-items: center;
}

.intro-text h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.intro-text p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.intro-figure {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #e5e0d6;
}

.intro-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scope-section,
.exclude-section,
.revision-flow {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.section-heading h2 {
  font-size: 1.375rem;
  color: #222936;
  margin-bottom: 8px;
}

.section-heading p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 840px;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.scope-card {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px;
}

.scope-card h3 {
  font-size: 0.9375rem;
  color: #222936;
  margin-bottom: 6px;
}

.scope-card p {
  font-size: 0.8125rem;
  color: #5f6672;
  line-height: 1.7;
  margin-bottom: 0;
}

.exclude-inner {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 8px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 32px;
  align-items: center;
}

.exclude-content h2 {
  font-size: 1.25rem;
  color: #222936;
  margin-bottom: 8px;
}

.exclude-content > p {
  color: #5f6672;
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.exclude-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exclude-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.875rem;
  color: #222936;
  line-height: 1.7;
  margin-bottom: 8px;
}

.exclude-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #ff4d6d;
  font-weight: 700;
}

.exclude-figure {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #e5e0d6;
}

.exclude-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flow-step {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #ff4d6d;
  color: #fff;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 700;
}

.step-text h3 {
  font-size: 0.9375rem;
  color: #222936;
  margin-bottom: 4px;
}

.step-text p {
  font-size: 0.8125rem;
  color: #5f6672;
  line-height: 1.7;
  margin-bottom: 0;
}

.flow-note {
  margin-top: 16px;
  color: #5f6672;
  font-size: 0.9375rem;
}

.flow-note a {
  color: #c9184a;
  font-weight: 600;
  margin-right: 12px;
}

.boundary-exits {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.exit-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.exit-link {
  background-color: #fff;
  border: 1px solid #e5e0d6;
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exit-link:hover {
  border-color: #ff4d6d;
  text-decoration: none;
}

.exit-label {
  font-weight: 700;
  font-size: 1rem;
  color: #222936;
}

.exit-desc {
  font-size: 0.8125rem;
  color: #5f6672;
  line-height: 1.6;
}

/* ============================================================
   PAGES — 404
   ============================================================ */
.error-main {
  background-color: #151b26;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.error-code {
  font-family: "SF Mono", "Consolas", "Menlo", monospace;
  font-size: 4rem;
  font-weight: 700;
  color: #ff4d6d;
  line-height: 1;
  margin-bottom: 16px;
}

.error-panel h1 {
  color: #fff;
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.error-lead {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.error-tip {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ============================================================
   RESPONSIVE — breakpoints
   ============================================================ */
@media (max-width: 1024px) {
  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .read-guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .scope-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analysis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .analysis-block:last-child {
    grid-column: 1 / -1;
  }

  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    padding: 0 16px;
    min-height: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #151b26;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 16px;
    display: block;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list li {
    margin: 0;
  }

  .nav-list a {
    display: block;
    padding: 12px 8px;
    border-radius: 4px;
    font-size: 1rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 16px 32px;
  }

  .hero-figure {
    order: 2;
    aspect-ratio: 16 / 10;
  }

  .hero-copy h1 {
    font-size: 1.875rem;
  }

  .preference-track,
  .update-timeline,
  .channel-preview,
  .scene-preview,
  .quick-guide,
  .reading-card,
  .related-links {
    padding-left: 16px;
    padding-right: 16px;
  }

  .preference-cards {
    grid-template-columns: 1fr;
  }

  .channel-grid {
    grid-template-columns: 1fr;
  }

  .scene-preview {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .scene-figure {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .guide-steps {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
  }

  .quick-guide h2,
  .quick-guide .section-desc {
    padding-left: 16px;
    padding-right: 16px;
  }

  .quick-guide .btn-primary {
    margin-left: 16px;
    margin-right: 16px;
  }

  .reading-card {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .reading-media {
    order: -1;
  }

  .footer-inner {
    padding: 32px 16px 24px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Inner pages */
  .breadcrumb {
    padding: 12px 16px 0;
  }

  .page-header {
    padding: 24px 16px 20px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .archive-cover,
  .channel-table-section,
  .how-to-read-section,
  .archive-nav-section,
  .section-intro,
  .section-scenario-table,
  .section-four-steps,
  .section-avoid-label,
  .section-next-links,
  .guide-step,
  .guide-outro,
  .article-summary,
  .article-media,
  .analysis-grid,
  .rhythm-comparison,
  .reading-path,
  .article-footer-nav,
  .qa-intro,
  .qa-list-section,
  .qa-next-steps,
  .boundary-intro,
  .scope-section,
  .exclude-section,
  .revision-flow,
  .boundary-exits {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-avoid-label {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .avoid-figure {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .step-list {
    grid-template-columns: 1fr;
  }

  .step-list .step-item {
    display: flex;
    flex-direction: column;
  }

  .option-list {
    grid-template-columns: 1fr;
  }

  .outro-links {
    grid-template-columns: 1fr;
  }

  .path-links {
    grid-template-columns: 1fr;
  }

  .qa-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .qa-intro-figure {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .next-step-cards {
    grid-template-columns: 1fr;
  }

  .intro-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .intro-figure {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .exclude-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .exclude-figure {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .exit-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-copy h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .channel-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .channel-no {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
  }

  .read-guide-grid {
    grid-template-columns: 1fr;
  }

  .scope-grid {
    grid-template-columns: 1fr;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-block:last-child {
    grid-column: auto;
  }

  .flow-steps {
    grid-template-columns: 1fr;
  }

  .flow-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .entry-link {
    width: 100%;
  }

  .error-code {
    font-size: 3rem;
  }
}

/* ============================================================
   MOTION — reduced motion support
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 程序验收反馈：移动端防溢出 */
@media (max-width: 768px) {
  .site-main,
  .site-main * {
    min-width: 0;
    max-width: 100%;
  }

  .site-main :is(h1, h2, h3, h4, p, a, span) {
    overflow-wrap: anywhere;
  }
}
