.page-home {
  --home-gap: 18px;
  --home-line: 1px solid var(--edge);
  background: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  overflow-x: clip;
}

/* ============ 首屏拼贴 ============ */

.page-home .hero-collage {
  position: relative;
  padding: 22px 0 52px;
  background:
    radial-gradient(115% 85% at 10% -10%, rgba(23, 89, 74, .62) 0%, rgba(8, 37, 31, 0) 60%),
    linear-gradient(158deg, var(--ink-900) 0%, var(--ink-700) 100%);
}

.page-home .hero-collage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, .055) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
  padding-top: 26px;
}

.page-home .hero-context {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--gold-soft);
}

.page-home .hero-title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 9.2vw, 4.35rem);
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--paper);
}

.page-home .hero-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 6px;
  margin-top: 20px;
  background: var(--gold);
}

.page-home .hero-lead {
  margin: 0 0 24px;
  max-width: 33em;
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(245, 241, 230, .82);
}

.page-home .hero-media {
  position: relative;
  margin: 0;
  border: var(--home-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: var(--shadow-float);
  aspect-ratio: 4 / 3;
}

.page-home .hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .hero-media .media-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 42px 16px 12px;
  font-size: .78rem;
  line-height: 1.55;
  color: var(--paper);
  background: linear-gradient(to top, rgba(8, 37, 31, .95), rgba(8, 37, 31, 0));
}

.page-home .hero-formula {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 18px;
  border: var(--home-line);
  border-radius: var(--radius-card);
  background: linear-gradient(150deg, rgba(14, 58, 49, .96), rgba(8, 37, 31, .96));
  box-shadow: var(--shadow-card);
}

.page-home .hero-formula-label {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--mist);
}

.page-home .hero-formula .formula {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .92rem;
  line-height: 1.7;
  color: var(--gold-soft);
  overflow-x: auto;
  white-space: nowrap;
}

.page-home .hero-formula .num--gold {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

.page-home .hero-formula-note {
  margin: 10px 0 0;
  font-size: .8rem;
  color: var(--mist);
}

.page-home .chip-angle {
  position: absolute;
  top: -26px;
  right: -26px;
  width: 96px;
  height: 96px;
  background: var(--gold);
  opacity: .09;
  transform: rotate(45deg);
  pointer-events: none;
}

.page-home .hero-timeline {
  padding: 18px 20px 20px;
  border: var(--home-line);
  border-radius: var(--radius-card);
  background: rgba(8, 37, 31, .55);
}

.page-home .hero-timeline-label {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--gold-soft);
}

.page-home .season-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .season-strip li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: .86rem;
  line-height: 1.6;
  color: rgba(245, 241, 230, .78);
}

/* ============ 章节抬头通用 ============ */

.page-home .section-head {
  position: relative;
  margin-bottom: 30px;
  max-width: 62rem;
}

.page-home .section-num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 8vw, 3.9rem);
  font-weight: 700;
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--gold);
  opacity: .3;
}

@supports (-webkit-text-stroke: 1px black) {
  .page-home .section-num {
    color: transparent;
    -webkit-text-stroke: 1px var(--gold);
    opacity: 1;
  }
}

.page-home .section-title {
  margin: 6px 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.6vw, 2.5rem);
  line-height: 1.25;
}

.page-home .section--paper .section-title {
  color: var(--charcoal);
}

.page-home .section--paper .eyebrow {
  color: var(--ink-500);
}

.page-home .section .lead {
  margin: 0;
  max-width: 42em;
  font-size: 1rem;
  line-height: 1.9;
}

.page-home .section--paper .lead {
  color: rgba(20, 23, 26, .78);
}

.page-home .section--dark .lead,
.page-home .section--mid .lead {
  color: rgba(245, 241, 230, .78);
}

/* ============ 01 残局练习切换 ============ */

.page-home .drill-switch {
  position: relative;
  margin-top: 6px;
}

.page-home .drill-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.page-home .drill-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-paper);
}

.page-home .drill-label {
  cursor: pointer;
  padding: 9px 22px;
  border: 1px solid rgba(20, 23, 26, .18);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .1em;
  color: var(--charcoal);
  background: transparent;
  transition: background-color .2s ease-out, color .2s ease-out, border-color .2s ease-out;
}

.page-home .drill-label:hover {
  border-color: var(--gold);
}

.page-home .drill-input:focus-visible + .drill-labels .drill-label {
  outline: 2px solid var(--indigo);
  outline-offset: 2px;
}

.page-home #drill-entry:checked ~ .drill-labels .drill-label[for="drill-entry"],
.page-home #drill-familiar:checked ~ .drill-labels .drill-label[for="drill-familiar"],
.page-home #drill-advance:checked ~ .drill-labels .drill-label[for="drill-advance"] {
  background: var(--ink-700);
  border-color: var(--ink-700);
  color: var(--gold-soft);
}

.page-home .drill-panels {
  margin-top: 22px;
}

.page-home .drill-panel {
  display: none;
  padding: 24px 22px;
  border: 1px solid var(--line-paper);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: rgba(20, 23, 26, .035);
}

.page-home #drill-entry:checked ~ .drill-panels .drill-panel[data-level="entry"],
.page-home #drill-familiar:checked ~ .drill-panels .drill-panel[data-level="familiar"],
.page-home #drill-advance:checked ~ .drill-panels .drill-panel[data-level="advance"] {
  display: block;
}

.page-home .drill-panel-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.4;
  color: var(--charcoal);
}

.page-home .drill-panel p {
  margin: 0 0 18px;
  max-width: 40em;
  font-size: .95rem;
  line-height: 1.9;
  color: rgba(20, 23, 26, .78);
}

.page-home .drill-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .drill-points li {
  font-size: .84rem;
  line-height: 1.6;
  color: var(--ink-500);
}

.page-home .drill-points .num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold);
}

/* ============ 02 计分拆解 ============ */

.page-home .score-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 8px;
}

.page-home .accordion {
  border-top: var(--home-line);
}

.page-home .accordion-heading {
  margin: 0;
}

.page-home .accordion-item {
  border-bottom: var(--home-line);
}

.page-home .accordion-trigger {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  width: 100%;
  padding: 20px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--paper);
  font-family: var(--font-body);
}

.page-home .step-index {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  color: var(--mist);
}

.page-home .step-name {
  flex: 1 1 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--paper);
}

.page-home .accordion-trigger[aria-expanded="true"] .step-name {
  color: var(--gold-soft);
}

.page-home .step-sum {
  font-family: var(--font-mono);
  font-size: .9rem;
  font-weight: 700;
  color: var(--gold);
  padding: 3px 12px;
  border: 1px solid var(--edge);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.page-home .accordion-panel {
  padding: 0 0 22px;
}

.page-home .accordion-panel p {
  margin: 0;
  max-width: 38em;
  font-size: .95rem;
  line-height: 1.9;
  color: rgba(245, 241, 230, .78);
}

.page-home .score-media {
  position: relative;
  margin: 0;
  border: var(--home-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink-900);
  box-shadow: var(--shadow-float);
}

.page-home .score-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-home .score-media .media-caption {
  display: block;
  padding: 12px 16px 14px;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--mist);
  border-top: 1px solid var(--edge-soft);
  background: rgba(8, 37, 31, .7);
}

/* ============ 03 赛季档案 ============ */

.page-home .season-banner {
  margin: 0 0 34px;
  border: 1px solid var(--line-paper);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.page-home .season-banner img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .season-track {
  position: relative;
  margin: 0;
  padding: 0 0 0 26px;
  list-style: none;
  border-left: 2px solid rgba(47, 75, 124, .28);
}

.page-home .season-node {
  position: relative;
  padding: 0 0 30px 22px;
}

.page-home .season-node::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--indigo);
  transition: background-color .2s ease-out, border-color .2s ease-out, transform .2s ease-out;
}

.page-home .season-node:hover::before {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.25);
}

.page-home .season-when {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .14em;
  color: var(--indigo);
}

.page-home .season-node h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  line-height: 1.4;
  color: var(--charcoal);
}

.page-home .season-node p {
  margin: 0 0 10px;
  max-width: 44em;
  font-size: .93rem;
  line-height: 1.9;
  color: rgba(20, 23, 26, .76);
}

.page-home .season-date {
  display: inline-block;
  padding: 3px 12px;
  border: 1px solid rgba(20, 23, 26, .14);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--mist);
}

.page-home .season-outro {
  margin: 30px 0 0;
  padding: 20px 22px;
  max-width: 52em;
  border-left: 4px solid var(--gold);
  background: rgba(201, 162, 39, .08);
  font-size: .93rem;
  line-height: 1.9;
  color: rgba(20, 23, 26, .8);
}

/* ============ 04 两个功能 ============ */

.page-home .feature-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.page-home .feature-card {
  display: flex;
  flex-direction: column;
  border: var(--home-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(155deg, rgba(8, 37, 31, .92), rgba(14, 58, 49, .92));
  box-shadow: var(--shadow-card);
  transition: transform .22s ease-out, box-shadow .22s ease-out;
}

.page-home .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.page-home .feature-media {
  margin: 0;
  border-bottom: 1px solid var(--edge-soft);
}

.page-home .feature-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .feature-body {
  padding: 24px 22px 26px;
}

.page-home .feature-body h3 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--paper);
}

.page-home .feature-body p {
  margin: 0 0 16px;
  font-size: .94rem;
  line-height: 1.9;
  color: rgba(245, 241, 230, .78);
}

.page-home .feature-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.page-home .feature-list li {
  position: relative;
  padding: 5px 0 5px 20px;
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(245, 241, 230, .72);
}

.page-home .feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--gold);
  transform: rotate(45deg);
}

.page-home .text-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: .04em;
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--edge);
  padding-bottom: 2px;
  transition: color .2s ease-out, border-color .2s ease-out;
}

.page-home .text-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.page-home .text-link--gold {
  color: var(--gold);
}

/* ============ 05 三条通道 ============ */

.page-home .help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .help-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 24px;
  border: var(--home-line);
  border-radius: var(--radius-card);
  background: rgba(14, 58, 49, .55);
  text-decoration: none;
  color: inherit;
  transition: transform .22s ease-out, box-shadow .22s ease-out, background-color .22s ease-out;
}

.page-home a.help-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
  background: rgba(23, 89, 74, .68);
}

.page-home .help-index {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}

.page-home .help-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.16rem;
  color: var(--paper);
}

.page-home .help-card p {
  margin: 0 0 18px;
  font-size: .92rem;
  line-height: 1.85;
  color: rgba(245, 241, 230, .76);
}

.page-home .help-go {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--gold-soft);
}

.page-home .help-card--contact {
  background: rgba(8, 37, 31, .8);
  border-style: dashed;
}

.page-home .help-card--contact .num {
  font-family: var(--font-mono);
  font-size: .88rem;
  color: var(--gold);
  word-break: break-all;
}

.page-home .help-foot {
  margin: 26px 0 0;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .inline-link {
  color: var(--gold-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--edge);
}

.page-home .inline-link:hover {
  color: var(--gold);
}

/* ============ 响应式 ============ */

@media (min-width: 640px) {
  .page-home .drill-points {
    gap: 10px 34px;
  }

  .page-home .help-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .help-card--contact {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .page-home .hero-collage {
    padding: 30px 0 70px;
  }

  .page-home .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 22px;
    align-items: start;
  }

  .page-home .hero-title-block {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
    padding-right: 12px;
  }

  .page-home .hero-media {
    grid-column: 8 / 13;
    grid-row: 1 / 3;
    aspect-ratio: 5 / 4;
  }

  .page-home .hero-formula {
    grid-column: 1 / 6;
    grid-row: 3 / 4;
    margin-top: 6px;
  }

  .page-home .hero-timeline {
    grid-column: 6 / 13;
    grid-row: 3 / 4;
    margin-top: 6px;
  }

  .page-home .season-strip {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 30px;
  }

  .page-home .season-strip li {
    flex: 1 1 15rem;
  }

  .page-home .score-layout {
    grid-template-columns: 1.4fr .78fr;
    gap: 44px;
    align-items: start;
  }

  .page-home .score-media {
    position: sticky;
    top: 112px;
  }

  .page-home .season-track {
    padding-left: 34px;
  }

  .page-home .season-node {
    padding-left: 30px;
  }

  .page-home .season-node::before {
    left: -43px;
  }

  .page-home .feature-pair {
    grid-template-columns: 1.12fr .88fr;
    gap: 26px;
  }

  .page-home .feature-card {
    flex-direction: column;
  }
}

@media (min-width: 1080px) {
  .page-home .help-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .help-card--contact {
    grid-column: auto;
  }

  .page-home .hero-media {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .feature-card,
  .page-home .help-card,
  .page-home .season-node::before {
    transition: none;
  }

  .page-home .feature-card:hover,
  .page-home a.help-card:hover {
    transform: none;
  }

  .page-home .season-node:hover::before {
    transform: none;
  }
}
