.page-home {
  --home-gap: clamp(16px, 2.4vw, 26px);
  --home-grid-line: rgba(36, 70, 95, 0.42);
  position: relative;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, var(--home-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--home-grid-line) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  overflow-x: hidden;
}

.page-home .seg-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding-block: clamp(20px, 3vw, 34px) clamp(40px, 6vw, 78px);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 auto 0;
  height: 70%;
  background: linear-gradient(155deg, rgba(42, 20, 84, 0.72), rgba(75, 29, 122, 0.28) 42%, transparent 78%);
  pointer-events: none;
}

.page-home .home-hero__grid {
  position: relative;
  display: grid;
  gap: var(--home-gap);
}

.page-home .home-hero__lead h1 {
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(34px, 7.4vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.page-home .home-hero__desc {
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .hero-device {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(12, 35, 56, 0.78);
  width: fit-content;
}

.page-home .hero-device__label {
  padding-inline: 10px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-home .hero-device label {
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}

.page-home .hero-device label:hover {
  color: var(--ink);
  border-color: var(--line);
}

.page-home #hero-dev-tablet:checked ~ .home-hero__grid .hero-device label[for="hero-dev-tablet"],
.page-home #hero-dev-desktop:checked ~ .home-hero__grid .hero-device label[for="hero-dev-desktop"],
.page-home #hero-dev-mobile:checked ~ .home-hero__grid .hero-device label[for="hero-dev-mobile"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #05202a;
  font-weight: 600;
}

.page-home #hero-dev-tablet:focus-visible ~ .home-hero__grid label[for="hero-dev-tablet"],
.page-home #hero-dev-desktop:focus-visible ~ .home-hero__grid label[for="hero-dev-desktop"],
.page-home #hero-dev-mobile:focus-visible ~ .home-hero__grid label[for="hero-dev-mobile"] {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.page-home .hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 24px 0 0;
  padding: 16px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.page-home .hero-notes .num {
  color: var(--cyan);
  font-size: 15px;
  margin-right: 4px;
}

.page-home .hero-stage {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: linear-gradient(180deg, rgba(16, 43, 68, 0.9), rgba(7, 24, 38, 0.92));
  overflow: hidden;
}

.page-home .hero-stage::after {
  content: "";
  position: absolute;
  inset: auto -30% -55% auto;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 242, 210, 0.16), transparent 68%);
  pointer-events: none;
}

.page-home .hero-stage__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  object-fit: cover;
  aspect-ratio: 16 / 10;
  filter: saturate(0.92) brightness(0.9);
}

.page-home .hero-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  justify-self: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(10, 30, 48, 0.94);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
  transition: max-width 220ms var(--ease);
}

.page-home #hero-dev-tablet:checked ~ .home-hero__grid .hero-card { max-width: 460px; }
.page-home #hero-dev-desktop:checked ~ .home-hero__grid .hero-card { max-width: 100%; }
.page-home #hero-dev-mobile:checked ~ .home-hero__grid .hero-card { max-width: 300px; }

.page-home .hero-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-home .hero-card__range {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .hero-card__days {
  display: flex;
  gap: 6px;
  margin: 14px 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.page-home .day-chip {
  flex: 0 0 auto;
  display: grid;
  gap: 2px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  color: var(--muted);
}

.page-home .day-chip b { font-size: 15px; color: var(--ink); }
.page-home .day-chip i { font-size: 11px; font-style: normal; }

.page-home .day-chip.is-on {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.page-home .day-chip.is-on b { color: var(--cyan); }

.page-home .hero-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.page-home .hero-card__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-left: 2px solid var(--line);
  background: rgba(12, 35, 56, 0.6);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.page-home .hero-card__list li:hover {
  border-left-color: var(--cyan);
  background: rgba(16, 43, 68, 0.92);
}

.page-home .hero-card__list .num {
  font-size: 13px;
  color: var(--electric);
}

.page-home .hero-card__name {
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}

.page-home .hero-card__foot {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 设备视图 ---------- */
.page-home .home-devices__intro {
  max-width: 58ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .device-banner {
  margin: 0 0 var(--home-gap);
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.page-home .device-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  opacity: 0.9;
}

.page-home .device-banner figcaption {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--ink);
  background: rgba(7, 24, 38, 0.82);
  border-left: 2px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-home .device-card {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.page-home .device-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.page-home .device-card__index {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  margin-bottom: 10px;
}

.page-home .device-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--ink);
}

.page-home .device-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 日期区间 ---------- */
.page-home .home-calendar {
  position: relative;
}

.page-home .home-calendar__grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .home-calendar__lead h2 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 4.6vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.015em;
}

.page-home .home-calendar__lead p {
  max-width: 52ch;
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .cal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.page-home .cal-chips label {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease);
}

.page-home .cal-chips label:hover {
  color: var(--ink);
  border-color: var(--cyan);
}

.page-home #range-today:checked ~ .home-calendar__grid .cal-chips label[for="range-today"],
.page-home #range-week:checked ~ .home-calendar__grid .cal-chips label[for="range-week"],
.page-home #range-custom:checked ~ .home-calendar__grid .cal-chips label[for="range-custom"] {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange);
  font-weight: 600;
}

.page-home #range-today:focus-visible ~ .home-calendar__grid label[for="range-today"],
.page-home #range-week:focus-visible ~ .home-calendar__grid label[for="range-week"],
.page-home #range-custom:focus-visible ~ .home-calendar__grid label[for="range-custom"] {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.page-home .cal-body {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(16, 43, 68, 0.92), rgba(12, 35, 56, 0.86));
  padding: 6px;
}

.page-home .fixture-group {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  gap: 4px;
}

.page-home #range-today:checked ~ .home-calendar__grid .fixture-group--today,
.page-home #range-week:checked ~ .home-calendar__grid .fixture-group--week,
.page-home #range-custom:checked ~ .home-calendar__grid .fixture-group--custom {
  display: grid;
}

.page-home .fixture {
  display: grid;
  grid-template-columns: minmax(64px, auto) 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}

.page-home .fixture:hover {
  background: rgba(7, 24, 38, 0.72);
  border-left-color: var(--cyan);
}

.page-home .fixture__time {
  font-size: 13px;
  color: var(--cyan);
  white-space: nowrap;
}

.page-home .fixture__body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.page-home .fixture__body b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .fixture__body em {
  font-style: normal;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 220ms var(--ease), opacity 220ms var(--ease);
}

.page-home .fixture:hover .fixture__body em,
.page-home .fixture:focus-within .fixture__body em {
  max-height: 4em;
  opacity: 1;
}

.page-home .cal-shot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

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

.page-home .cal-shot figcaption {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ---------- 排名 ---------- */
.page-home .home-standings__grid {
  display: grid;
  gap: var(--home-gap);
  align-items: start;
}

.page-home .home-standings__lead h2 {
  margin: 10px 0 14px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(26px, 4.6vw, 44px);
  line-height: 1.16;
}

.page-home .home-standings__lead p {
  max-width: 46ch;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .legend {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}

.page-home .legend li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.page-home .legend__dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 1px;
}

.page-home .legend__dot--cyan { background: var(--cyan); }
.page-home .legend__dot--orange { background: var(--orange); }
.page-home .legend__dot--muted { background: var(--muted); }

.page-home .home-standings__panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.page-home .standings {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.page-home .standings th {
  text-align: left;
  padding: 12px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 24, 38, 0.6);
}

.page-home .standings td {
  padding: 12px;
  color: var(--ink);
  border-bottom: 1px solid rgba(36, 70, 95, 0.5);
}

.page-home .standings tbody tr:hover td {
  background: rgba(7, 24, 38, 0.6);
}

.page-home .standings tr.is-cyan td:first-child { box-shadow: inset 2px 0 0 var(--cyan); }
.page-home .standings tr.is-orange td:first-child { box-shadow: inset 2px 0 0 var(--orange); }

.page-home .standings .num {
  font-size: 13px;
  color: var(--electric);
}

.page-home .standings tr.is-cyan .num:first-child { color: var(--cyan); }
.page-home .standings tr.is-orange .num:first-child { color: var(--orange); }

.page-home .standings-shot {
  margin: 0;
  border-top: 1px solid var(--line);
}

.page-home .standings-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.88;
}

/* ---------- 四步 ---------- */
.page-home .steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.page-home .step {
  position: relative;
  padding: 18px 16px 16px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 35, 56, 0.55), transparent);
}

.page-home .step::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 16px;
  width: 8px;
  height: 8px;
  background: var(--cyan);
}

.page-home .step__num {
  display: block;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 8px;
}

.page-home .step h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--ink);
}

.page-home .step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 探索 ---------- */
.page-home .explore-grid {
  display: grid;
  gap: 12px;
}

.page-home .explore-card {
  position: relative;
  display: block;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 35, 56, 0.72);
  text-decoration: none;
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}

.page-home .explore-card:hover,
.page-home .explore-card:focus-visible {
  border-color: var(--cyan);
  background: rgba(16, 43, 68, 0.94);
  transform: translateY(-2px);
}

.page-home .explore-card__index {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 10px;
}

.page-home .explore-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--ink);
}

.page-home .explore-card p {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .explore-card__go {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan-soft);
  padding-bottom: 2px;
}

.page-home .explore-card--wide {
  background: linear-gradient(140deg, rgba(42, 20, 84, 0.86), rgba(12, 35, 56, 0.9));
}

/* ---------- 响应式 ---------- */
@media (min-width: 760px) {
  .page-home .hero-stage {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .page-home .hero-card {
    justify-self: end;
  }

  .page-home .home-calendar__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .page-home .cal-shot {
    grid-column: 1 / -1;
  }

  .page-home .home-standings__grid {
    grid-template-columns: 1fr 1.1fr;
  }

  .page-home .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
  }

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

  .page-home .explore-card--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: 34px;
  }

  .page-home .hero-stage {
    min-height: 520px;
    align-content: end;
  }

  .page-home .hero-stage__img {
    position: absolute;
    inset: 16px 16px 120px 16px;
    width: calc(100% - 32px);
    height: calc(100% - 136px);
    aspect-ratio: auto;
    object-fit: cover;
  }

  .page-home .hero-card {
    margin-top: auto;
    margin-left: auto;
  }

  .page-home .home-calendar__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr);
    gap: 24px;
  }

  .page-home .cal-shot {
    grid-column: auto;
  }

  .page-home .cal-shot img {
    aspect-ratio: 3 / 4;
  }

  .page-home .home-standings__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 36px;
  }

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

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

  .page-home .explore-card--wide {
    grid-column: span 4;
    grid-row: span 2;
  }

  .page-home .explore-card--small {
    grid-column: span 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-card,
  .page-home .fixture__body em,
  .page-home .explore-card,
  .page-home .device-card,
  .page-home .hero-device label,
  .page-home .cal-chips label {
    transition: none;
  }

  .page-home .explore-card:hover,
  .page-home .device-card:hover {
    transform: none;
  }
}
<<<END>>>
