.page-home {
  --home-gap: 88px;
  --home-gap-lg: 120px;
  overflow-x: clip;
}

.page-home .chapter-block {
  position: relative;
  padding: 56px 20px;
}

.page-home .container {
  max-width: var(--container);
  margin: 0 auto;
}

.page-home .chapter-flag {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.page-home .chapter-id {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: var(--flame-orange);
  letter-spacing: -0.04em;
}

.page-home .chapter-intro {
  flex: 1;
}

.page-home .chapter-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-brown);
  margin-bottom: 4px;
}

.page-home .chapter-block h2 {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.22;
  color: var(--ink-text);
  margin: 0;
}

.page-home .chapter-block.is-night {
  background: var(--night-blue);
}

.page-home .chapter-block.is-night h2 {
  color: var(--paper-bg);
}

.page-home .chapter-block.is-night .chapter-kicker {
  color: rgba(245, 239, 227, 0.7);
}

.page-home .chapter-block.is-night p {
  color: rgba(245, 239, 227, 0.85);
}

.page-home .text-link {
  color: var(--grass-green);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid rgba(14, 124, 91, 0.3);
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}

.page-home .text-link:hover,
.page-home .text-link:focus-visible {
  border-color: var(--grass-green);
}

/* ===== 首屏 ===== */
.page-home .home-hero {
  position: relative;
  padding: 44px 20px 40px;
  background: linear-gradient(118deg, var(--night-blue) 0%, var(--night-blue) 56%, var(--grass-green) 56.5%, var(--grass-green) 57%, var(--flame-orange) 57%);
  overflow: hidden;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;
  height: 56px;
  background: var(--paper-bg);
  clip-path: polygon(0 0, 100% 72%, 100% 100%, 0 100%);
  pointer-events: none;
  z-index: 1;
}

.page-home .hero-inner {
  display: grid;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 2;
}

.page-home .breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: rgba(245, 239, 227, 0.8);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.page-home .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-right: 8px;
  color: rgba(245, 239, 227, 0.55);
}

.page-home .hero-kicker {
  margin: 22px 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--flame-orange);
  text-transform: uppercase;
}

.page-home .home-hero h1 {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper-bg);
  margin: 0 0 16px;
  max-width: 11em;
}

.page-home .hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245, 239, 227, 0.9);
  max-width: 56ch;
  margin-bottom: 24px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.page-home .hero-cta {
  display: inline-flex;
  align-items: center;
  background: var(--flame-orange);
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 16px;
  text-decoration: none;
}

.page-home .hero-link {
  color: var(--paper-bg);
  border-bottom: 1px solid rgba(245, 239, 227, 0.4);
  padding-bottom: 2px;
  text-decoration: none;
}

.page-home .hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: var(--shadow-float);
  object-fit: cover;
}

/* 弹幕 */
.page-home .hero-ticker-wrap {
  margin-top: 36px;
  background: var(--ink-text);
  border-radius: var(--radius-pill);
  padding: 12px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.page-home .ticker-track {
  display: flex;
  width: max-content;
  animation: home-ticker 36s linear infinite;
  will-change: transform;
}

.page-home .ticker-group {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
}

.page-home .ticker-item {
  color: var(--paper-bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.page-home .ticker-item::before {
  content: "✦";
  color: var(--flame-orange);
  margin-right: 12px;
}

@keyframes home-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* 数据统计 */
.page-home .home-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: var(--container);
  margin: 28px auto 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.page-home .stat-cell {
  background: rgba(245, 239, 227, 0.07);
  border: 1px solid rgba(245, 239, 227, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.page-home .stat-cell dt {
  font-size: 13px;
  color: rgba(245, 239, 227, 0.75);
}

.page-home .stat-cell dd {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  color: var(--flame-orange);
  margin: 8px 0 0;
}

/* 页面索引 */
.page-home .section-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

.page-home .section-index a {
  font-size: 13px;
  color: var(--paper-bg);
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.page-home .section-index a:hover,
.page-home .section-index a:focus-visible {
  background: var(--flame-orange);
}

/* 01 追比分 */
.page-home .home-timeline {
  background: var(--paper-bg);
  padding-top: var(--home-gap);
  padding-bottom: var(--home-gap);
}

.page-home .timeline-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .timeline-figure,
.page-home .rounds-figure {
  margin: 0;
}

.page-home .timeline-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: var(--shadow-card);
  object-fit: cover;
}

.page-home .timeline-figure figcaption,
.page-home .rounds-figure figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted-brown);
  text-align: center;
}

.page-home .timeline-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-text);
}

.page-home .timeline-steps {
  list-style: none;
  margin: 24px 0;
  padding: 0;
  border-left: 3px solid var(--grass-green);
}

.page-home .timeline-steps li {
  position: relative;
  padding: 0 0 20px 22px;
  font-weight: 600;
  color: var(--ink-text);
}

.page-home .timeline-steps li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--flame-orange);
  box-shadow: 0 0 0 4px var(--paper-deep);
}

.page-home .timeline-note {
  background: rgba(14, 124, 91, 0.08);
  border-left: 4px solid var(--grass-green);
  padding: 14px 16px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink-text);
}

/* 02 轮次筛选 */
.page-home .rounds-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .round-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(245, 239, 227, 0.08);
  padding: 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.page-home .round-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.page-home .round-tabs label {
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: rgba(245, 239, 227, 0.75);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.page-home .round-tabs input:checked + label {
  background: var(--flame-orange);
  color: #fff;
}

.page-home .round-tabs input:focus-visible + label {
  outline: 3px solid var(--paper-bg);
  outline-offset: 2px;
}

.page-home .round-panel {
  display: none;
  background: rgba(245, 239, 227, 0.06);
  border: 1px solid rgba(245, 239, 227, 0.12);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.page-home .round-panel h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--paper-bg);
  margin: 0 0 12px;
}

.page-home .round-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .round-panel li {
  position: relative;
  padding: 10px 0 10px 18px;
  border-bottom: 1px solid rgba(245, 239, 227, 0.1);
  color: rgba(245, 239, 227, 0.9);
}

.page-home .round-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-mint);
}

.page-home .panel-total {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(245, 239, 227, 0.7);
}

.page-home .rounds-note {
  margin: 18px 0 0;
  font-size: 14px;
  color: rgba(245, 239, 227, 0.7);
  line-height: 1.7;
}

.page-home #round-3:checked ~ .round-panel[data-round="3"],
.page-home #round-4:checked ~ .round-panel[data-round="4"],
.page-home #round-5:checked ~ .round-panel[data-round="5"] {
  display: block;
}

.page-home .rounds-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 32px;
  box-shadow: var(--shadow-float);
  object-fit: cover;
}

/* 03 联赛矩阵 */
.page-home .home-leagues {
  background: var(--ink-text);
  color: var(--paper-bg);
  overflow: hidden;
}

.page-home .leagues-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
}

.page-home .home-leagues .container {
  position: relative;
  z-index: 2;
}

.page-home .home-leagues .chapter-kicker {
  color: rgba(245, 239, 227, 0.7);
}

.page-home .home-leagues h2 {
  color: var(--paper-bg);
}

.page-home .leagues-lead {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(245, 239, 227, 0.85);
  max-width: 60ch;
}

.page-home .league-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 28px 0;
}

.page-home .league-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 16px;
  background: rgba(245, 239, 227, 0.06);
  border: 1px solid rgba(245, 239, 227, 0.14);
  border-radius: var(--radius-md);
  color: var(--paper-bg);
  text-decoration: none;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.page-home .league-card span {
  font-weight: 800;
  font-size: 16px;
}

.page-home .league-card small {
  color: rgba(245, 239, 227, 0.65);
  font-size: 13px;
}

.page-home .league-card::after {
  content: "→";
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--flame-orange);
  opacity: 0.7;
}

.page-home .league-card:hover,
.page-home .league-card:focus-visible {
  border-color: var(--flame-orange);
  background: rgba(242, 92, 34, 0.12);
}

.page-home .league-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.page-home .league-foot p {
  font-size: 15px;
  margin: 0;
  color: rgba(245, 239, 227, 0.85);
}

.page-home .home-leagues .text-link {
  color: var(--flame-orange);
  border-bottom-color: rgba(242, 92, 34, 0.35);
}

.page-home .home-leagues .text-link:hover,
.page-home .home-leagues .text-link:focus-visible {
  border-color: var(--flame-orange);
}

/* 04 检索调优 */
.page-home .home-search {
  background: var(--paper-deep);
  padding-top: var(--home-gap);
  padding-bottom: var(--home-gap);
}

.page-home .search-layout {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
  align-items: start;
}

.page-home .search-copy p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-text);
}

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

.page-home .benefit-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line-tan);
  color: var(--ink-text);
}

.page-home .benefit-list li::before {
  content: "✓";
  font-weight: 900;
  color: var(--grass-green);
}

.page-home .search-card {
  background: var(--night-blue);
  color: var(--paper-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-float);
}

.page-home .search-card span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(245, 239, 227, 0.7);
}

.page-home .search-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 42px;
  line-height: 1.1;
  color: var(--flame-orange);
  margin: 12px 0 6px;
}

.page-home .search-card p {
  margin: 0;
  font-size: 14px;
  color: rgba(245, 239, 227, 0.85);
}

/* 05 多端访问 */
.page-home .home-download {
  padding-top: var(--home-gap);
  padding-bottom: var(--home-gap);
}

.page-home .access-grid {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

.page-home .access-card {
  background: rgba(245, 239, 227, 0.06);
  border: 1px solid rgba(245, 239, 227, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--paper-bg);
}

.page-home .access-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--paper-bg);
}

.page-home .access-card p {
  color: rgba(245, 239, 227, 0.85);
  margin: 0 0 16px;
  line-height: 1.7;
  font-size: 15px;
}

.page-home .access-card a {
  color: var(--flame-orange);
  font-weight: 700;
  text-decoration: none;
}

.page-home .download-meta {
  border-top: 1px solid rgba(245, 239, 227, 0.14);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.page-home .download-meta p {
  margin: 0;
  max-width: 70ch;
  font-size: 15px;
  color: rgba(245, 239, 227, 0.8);
}

.page-home .download-meta .text-link {
  color: var(--flame-orange);
  border-bottom-color: rgba(242, 92, 34, 0.35);
}

.page-home .download-meta .text-link:hover,
.page-home .download-meta .text-link:focus-visible {
  border-color: var(--flame-orange);
}

/* 继续探索 */
.page-home .home-explore {
  background: var(--paper-bg);
  padding: 36px 20px;
}

.page-home .explore-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.page-home .explore-link {
  background: var(--paper-deep);
  color: var(--ink-text);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line-tan);
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.page-home .explore-link:hover,
.page-home .explore-link:focus-visible {
  border-color: var(--grass-green);
  color: var(--grass-green);
  box-shadow: 0 0 0 2px rgba(14, 124, 91, 0.2);
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-home .home-stats {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

@media (min-width: 900px) {
  .page-home .chapter-block {
    padding-top: var(--home-gap-lg);
    padding-bottom: var(--home-gap-lg);
  }

  .page-home .chapter-flag {
    gap: 28px;
    margin-bottom: 40px;
  }

  .page-home .chapter-id {
    font-size: 68px;
  }

  .page-home .chapter-block h2 {
    font-size: 40px;
  }

  .page-home .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .page-home .hero-media {
    order: 2;
  }

  .page-home .home-hero h1 {
    font-size: 56px;
  }

  .page-home .timeline-layout {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .rounds-layout {
    grid-template-columns: 1fr 0.8fr;
  }

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

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

  .page-home .search-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (min-width: 1100px) {
  .page-home .section-index {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    flex-direction: column;
    margin: 0;
    background: rgba(245, 239, 227, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--line-tan);
    border-radius: var(--radius-pill);
    padding: 10px;
    box-shadow: var(--shadow-float);
  }

  .page-home .section-index a {
    color: var(--ink-text);
    background: transparent;
  }

  .page-home .section-index a:hover,
  .page-home .section-index a:focus-visible {
    background: var(--flame-orange);
    color: #fff;
  }
}
