.page-home {
  --season: var(--autumn);
  --season-soft: var(--autumn-soft);
  --home-gap: clamp(18px, 3vw, 32px);
  overflow-x: clip;
  display: block;
}

.page-home .section {
  padding-block: clamp(46px, 7vw, 88px);
}

.page-home .section-head {
  max-width: 68ch;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.page-home .section-title {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--ink);
}

.page-home .eyebrow {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

/* ---------- 首屏封面 ---------- */

.page-home .home-hero {
  position: relative;
  padding-block: clamp(34px, 6vw, 76px) clamp(36px, 5vw, 64px);
}

.page-home .home-hero__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 5vw, 54px);
  align-items: center;
}

.page-home .home-hero__context {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.page-home .home-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--pill);
  background: var(--season);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--season) 18%, transparent);
}

.page-home .home-hero__title {
  margin: 0 0 clamp(16px, 2.4vw, 26px);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.03em;
  color: var(--ink);
  max-width: 15ch;
}

.page-home .home-hero__lede {
  max-width: 46ch;
  margin: 0;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(22px, 3vw, 32px);
}

.page-home .home-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3.4vw, 44px);
  list-style: none;
  margin: clamp(26px, 3.6vw, 40px) 0 0;
  padding: clamp(18px, 2.6vw, 26px) 0 0;
  border-top: 1px solid var(--line);
}

.page-home .home-hero__facts li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .home-hero__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  letter-spacing: 0.01em;
}

.page-home .home-hero__fact-label {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.page-home .home-hero__visual {
  margin: 0;
}

.page-home .home-hero__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-raised);
  box-shadow: 0 22px 48px -32px rgba(21, 18, 14, 0.45);
}

.page-home .home-hero__frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: linear-gradient(90deg, var(--autumn) 0%, var(--autumn-soft) 48%, var(--spring) 100%);
}

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

.page-home .home-hero__caption {
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* ---------- 四季索引条 ---------- */

.page-home .home-seasons__intro {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.page-home .home-seasons__railwrap {
  margin-top: clamp(8px, 1.6vw, 16px);
}

.page-home .home-seasons__rail {
  display: flex;
  gap: var(--home-gap);
  list-style: none;
  margin: 0;
  padding: 6px 0 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .home-seasons__rail > li {
  flex: 0 0 min(300px, 76vw);
  scroll-snap-align: start;
}

.page-home .home-season-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding: 26px 24px 24px;
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .home-season-card:hover,
.page-home .home-season-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.page-home .home-season-card__band {
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-soft) 100%);
}

.page-home .home-season-card--spring {
  --accent: var(--spring);
  --accent-soft: var(--spring-soft);
}

.page-home .home-season-card--summer {
  --accent: var(--summer);
  --accent-soft: var(--summer-soft);
}

.page-home .home-season-card--autumn {
  --accent: var(--autumn);
  --accent-soft: var(--autumn-soft);
}

.page-home .home-season-card--winter {
  --accent: var(--winter);
  --accent-soft: var(--winter-soft);
}

.page-home .home-season-card__season {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.page-home .home-season-card__name {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .home-season-card__desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-season-card__meta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  border-top: 1px dashed var(--line-strong);
}

/* ---------- 判罚速览 ---------- */

.page-home .home-records__intro {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.page-home .home-records__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 40px);
}

.page-home .home-records__switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--pill);
  background: var(--paper-raised);
  border: 1px solid var(--line);
}

.page-home .home-records__switch button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 9px 20px;
  border-radius: var(--pill);
  background: transparent;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .home-records__switch button[aria-selected="true"] {
  background: var(--brand);
  color: var(--paper);
}

.page-home .home-records__panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(18px, 2.6vw, 26px);
}

.page-home .home-record-panel {
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  border: 1px solid var(--line);
}

.page-home .home-record-panel--prev {
  background: color-mix(in srgb, var(--paper-raised) 70%, var(--winter-soft) 30%);
}

.page-home .home-record-panel__label {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.page-home .home-record-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.page-home .home-record-table th {
  text-align: left;
  padding: 0 10px 10px 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}

.page-home .home-record-table td {
  padding: 12px 10px 12px 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.page-home .home-record-table th:last-child,
.page-home .home-record-table td:last-child {
  padding-right: 0;
}

.page-home .home-record-table tr:last-child td {
  border-bottom: 0;
}

.page-home .home-records__side {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 24px);
}

.page-home .home-records__legend {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line-strong);
}

.page-home .home-records__legend-title {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.page-home .home-records__legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.page-home .home-records__legend-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .home-legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  flex: 0 0 auto;
}

.page-home .home-legend-swatch--new {
  background: var(--card-yellow);
}

.page-home .home-legend-swatch--drop {
  background: var(--card-red);
}

.page-home .home-legend-swatch--fix {
  background: var(--autumn);
}

.page-home .home-records__figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper-raised);
  aspect-ratio: 3 / 2;
}

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

.page-home .home-records__more {
  align-self: flex-start;
}

/* ---------- 开球时间轴 ---------- */

.page-home .home-kickoff {
  background: var(--paper-raised);
  border-radius: var(--radius-lg);
  margin-inline: clamp(0px, 1vw, 14px);
}

.page-home .home-kickoff__intro {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.page-home .home-kickoff__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
}

.page-home .home-kickoff__axis {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .home-kickoff__svg {
  display: block;
  width: 100%;
  min-width: 620px;
  height: auto;
}

.page-home .kick-axis {
  stroke: var(--line-strong);
  stroke-width: 2;
}

.page-home .kick-tick {
  stroke: var(--season);
  stroke-width: 2;
  stroke-dasharray: 4 5;
}

.page-home .kick-dot {
  fill: var(--paper);
  stroke: var(--season);
  stroke-width: 4;
}

.page-home .kick-label {
  fill: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .kick-sub {
  fill: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 15px;
}

.page-home .home-kickoff__figure {
  margin: 0;
}

.page-home .home-kickoff__figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.page-home .home-kickoff__figure figcaption {
  margin-top: 12px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.page-home .home-kickoff__notes {
  list-style: none;
  margin: clamp(26px, 3.6vw, 40px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}

.page-home .home-kickoff__note {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--line);
}

.page-home .home-kickoff__note h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
}

.page-home .home-kickoff__note p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- 手机端目录 ---------- */

.page-home .home-drawer__shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: center;
}

.page-home .home-drawer__lead {
  margin: 0 0 18px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 46ch;
}

.page-home .home-drawer__list {
  list-style: none;
  margin: 0 0 clamp(20px, 2.6vw, 28px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .home-drawer__list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-drawer__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  background: var(--season);
  border-radius: var(--pill);
}

.page-home .home-drawer__cta {
  align-self: flex-start;
}

.page-home .home-drawer__visual {
  margin: 0;
}

.page-home .home-drawer__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-raised);
  box-shadow: 0 24px 50px -34px rgba(21, 18, 14, 0.42);
}

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

.page-home .home-drawer__visual figcaption {
  margin-top: 14px;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---------- 更新记录 ---------- */

.page-home .home-log__intro {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.page-home .home-log__list {
  position: relative;
  list-style: none;
  margin: 0 0 clamp(26px, 3.4vw, 38px);
  padding: 0 0 0 26px;
  border-left: 2px solid var(--line-strong);
}

.page-home .home-log__item {
  position: relative;
  padding-bottom: clamp(22px, 3vw, 32px);
}

.page-home .home-log__item:last-child {
  padding-bottom: 0;
}

.page-home .home-log__marker {
  position: absolute;
  left: -33px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: var(--pill);
  background: var(--paper);
  border: 3px solid var(--season);
}

.page-home .home-log__phase {
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.page-home .home-log__title {
  margin: 0 0 6px;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .home-log__body p:last-child {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-log__more {
  align-self: flex-start;
}

/* ---------- 起始入口 ---------- */

.page-home .home-start__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
}

.page-home .home-start__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(22px, 2.8vw, 30px);
  border-radius: var(--radius-md);
  background: var(--paper-raised);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .home-start__card:hover,
.page-home .home-start__card:focus-visible {
  border-color: var(--brand);
  transform: translateY(-4px);
}

.page-home .home-start__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
}

.page-home .home-start__card h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .home-start__card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .home-start__go {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--brand);
}

.page-home .home-start__go::after {
  content: " →";
}

/* ---------- 焦点可见性 ---------- */

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home [tabindex="0"]:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- 断点 ---------- */

@media (min-width: 640px) {
  .page-home .home-kickoff__notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 900px) {
  .page-home .home-hero__shell {
    grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  }

  .page-home .home-records__layout {
    grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  }

  .page-home .home-kickoff__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  }

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

  .page-home .home-drawer__shell {
    grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  }

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

@media (min-width: 1100px) {
  .page-home .home-seasons__rail > li {
    flex: 0 0 min(340px, 26vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .page-home .home-season-card:hover,
  .page-home .home-season-card:focus-visible,
  .page-home .home-start__card:hover,
  .page-home .home-start__card:focus-visible {
    transform: none;
  }
}
