.page-home {
  --home-block: clamp(3rem, 7vw, 5rem);
  --home-gap: clamp(1.6rem, 4vw, 2.6rem);
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

/* ---------- 框景首屏 ---------- */

.page-home .hero {
  padding-block: clamp(1.4rem, 3.5vw, 2.6rem) clamp(1.8rem, 4vw, 3rem);
}

.page-home .hero__box {
  position: relative;
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 2.6rem);
  padding: clamp(1.5rem, 3.6vw, 3rem);
  border: 1px solid var(--c-line);
  background:
    radial-gradient(120% 95% at 88% -12%, rgba(59, 247, 203, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(14, 46, 37, 0.55), rgba(8, 34, 27, 0.2));
  overflow: hidden;
}

.page-home .hero__box::before,
.page-home .hero__box::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 7px;
  background-image: repeating-linear-gradient(90deg, var(--c-line) 0 1px, transparent 1px 28px);
  pointer-events: none;
}

.page-home .hero__box::before { top: 0; }
.page-home .hero__box::after { bottom: 0; }

.page-home .hero__kicker {
  margin: 0 0 1.1rem;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  color: var(--c-dim);
}

.page-home .hero__title {
  margin: 0 0 1.1rem;
  font-size: clamp(2.5rem, 9vw, 5.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
}

.page-home .hero__title-sub {
  display: block;
  margin-top: 0.75rem;
  font-size: clamp(1rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--c-cyan);
}

.page-home .hero__lede {
  max-width: 44ch;
  margin: 0 0 1.8rem;
  color: var(--c-muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.page-home .hero__media {
  position: relative;
  margin: 0;
  border: 1px solid var(--c-line);
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.page-home .hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.9);
}

.page-home .hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(205deg, rgba(59, 247, 203, 0.12), transparent 55%),
    linear-gradient(0deg, rgba(6, 26, 20, 0.88), rgba(6, 26, 20, 0.12));
  pointer-events: none;
}

@media (min-width: 900px) {
  .page-home .hero__box {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
  }
}

/* ---------- 章节头部 ---------- */

.page-home .section {
  padding-block: var(--home-block);
  border-top: 1px solid var(--c-line);
}

.page-home .section__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 1.1rem;
  align-items: start;
  margin-bottom: var(--home-gap);
}

.page-home .section__num {
  grid-row: span 2;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--c-cyan);
}

.page-home .section__title {
  margin: 0;
  font-size: clamp(1.45rem, 3.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.page-home .section__lede {
  margin: 0;
  max-width: 64ch;
  color: var(--c-muted);
  font-size: 0.98rem;
  line-height: 1.78;
}

/* ---------- 本周对阵墙 ---------- */

.page-home .league-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.3rem;
}

.page-home .lg-label {
  display: inline-block;
  padding: 0.42rem 0.95rem;
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.86rem;
  cursor: pointer;
  transition: color 0.12s var(--ease), border-color 0.12s var(--ease), background-color 0.12s var(--ease);
}

.page-home .lg-label:hover {
  border-color: var(--c-cyan);
  color: var(--c-white);
}

.page-home .lg-input:checked + .lg-label {
  border-color: var(--c-cyan);
  background: var(--c-cyan);
  color: var(--c-night);
}

.page-home .lg-input:focus-visible + .lg-label {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

.page-home .fixtures {
  display: grid;
  gap: 1px;
  border: 1px solid var(--c-line);
  background: var(--c-line);
}

.page-home .fixture {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem 1.15rem;
  background: var(--c-night);
  transition: background-color 0.12s var(--ease);
}

.page-home .fixture:hover {
  background: var(--c-stand);
}

.page-home .fixture__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.page-home .fixture__stage {
  font-size: 0.75rem;
  color: var(--c-dim);
  text-align: right;
}

.page-home .fixture__teams {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-home .fixture__team {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-white);
}

.page-home .fixture__vs {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--c-dim);
}

.page-home .fixture__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1rem;
  margin-top: auto;
  font-size: 0.81rem;
  color: var(--c-muted);
}

.page-home .fixture__time {
  font-family: var(--mono);
  font-size: 0.81rem;
  color: var(--c-orange);
}

.page-home .fixture-wall__note {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--c-dim);
}

.page-home .fixture-wall:has(#lg-fb:checked) .fixture:not([data-league="fb"]),
.page-home .fixture-wall:has(#lg-bk:checked) .fixture:not([data-league="bk"]),
.page-home .fixture-wall:has(#lg-bd:checked) .fixture:not([data-league="bd"]),
.page-home .fixture-wall:has(#lg-pp:checked) .fixture:not([data-league="pp"]) {
  display: none;
}

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

/* ---------- 集锦时间线 ---------- */

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

.page-home .timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  border-left: 1px solid var(--c-line);
}

.page-home .tl-item {
  position: relative;
  padding-bottom: 1.9rem;
}

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

.page-home .tl-item__node {
  position: absolute;
  left: calc(-1.5rem - 3px);
  top: 0.5rem;
  width: 7px;
  height: 7px;
  background: var(--c-cyan);
  box-shadow: 0 0 0 3px var(--c-night);
}

.page-home .tl-item__stamp {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  color: var(--c-orange);
}

.page-home .tl-item__title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .tl-item__meta {
  margin: 0 0 0.7rem;
  font-size: 0.81rem;
  color: var(--c-dim);
}

.page-home .tl-item__more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
  cursor: pointer;
  font-size: 0.84rem;
  color: var(--c-cyan);
}

.page-home .tl-item__more summary::-webkit-details-marker {
  display: none;
}

.page-home .tl-item__more summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 0.9rem;
  line-height: 1;
}

.page-home .tl-item__more[open] summary::before {
  content: "−";
}

.page-home .tl-item__list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  color: var(--c-muted);
  font-size: 0.87rem;
  line-height: 1.8;
}

.page-home .hl-aside {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.page-home .hl-aside__media {
  margin: 0;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--c-line);
  overflow: hidden;
}

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

.page-home .hl-aside__note {
  margin: 0;
  max-width: 34ch;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--c-muted);
}

@media (min-width: 960px) {
  .page-home .hl-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
  }
}

/* ---------- 同城约赛 ---------- */

.page-home .court-board {
  border: 1px solid var(--c-line);
}

.page-home .court-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--c-line);
  background: var(--c-stand);
}

.page-home .sport-chip {
  display: inline-block;
  padding: 0.38rem 0.9rem;
  border: 1px solid var(--c-line);
  color: var(--c-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.12s var(--ease), border-color 0.12s var(--ease), background-color 0.12s var(--ease);
}

.page-home .sport-chip:hover {
  border-color: var(--c-cyan);
  color: var(--c-white);
}

.page-home .sport-input:checked + .sport-chip {
  border-color: var(--c-cyan);
  background: var(--c-cyan);
  color: var(--c-night);
}

.page-home .sport-input:focus-visible + .sport-chip {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

.page-home .court-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .court-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.2rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--c-line);
}

.page-home .court-row:last-child {
  border-bottom: 0;
}

.page-home .court-row__name {
  margin: 0 0 0.25rem;
  font-size: 0.97rem;
  font-weight: 700;
}

.page-home .court-row__meta {
  margin: 0;
  font-size: 0.79rem;
  color: var(--c-dim);
}

.page-home .court-row__slot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.page-home .court-row__time {
  font-family: var(--mono);
  font-size: 0.81rem;
  color: var(--c-orange);
}

.page-home .court-row__left {
  padding: 0.18rem 0.55rem;
  border: 1px solid var(--c-line);
  font-size: 0.79rem;
  color: var(--c-cyan);
}

.page-home .court-board__note {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--c-muted);
}

.page-home .court-board:has(#sp-fb:checked) .court-row:not([data-sport="fb"]),
.page-home .court-board:has(#sp-bk:checked) .court-row:not([data-sport="bk"]),
.page-home .court-board:has(#sp-bd:checked) .court-row:not([data-sport="bd"]),
.page-home .court-board:has(#sp-mix:checked) .court-row:not([data-sport="mix"]) {
  display: none;
}

.page-home .courts__media {
  margin: var(--home-gap) 0 0;
  border: 1px solid var(--c-line);
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

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

/* ---------- 覆盖城市 ---------- */

.page-home .city-grid {
  list-style: none;
  margin: 0 0 var(--home-gap);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--c-line);
  background: var(--c-line);
}

.page-home .city-cell {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 0.9rem 1rem;
  background: var(--c-night);
}

.page-home .city-cell--home {
  background: linear-gradient(160deg, rgba(59, 247, 203, 0.14), rgba(14, 46, 37, 0.92));
}

.page-home .city-cell--home .city-cell__name {
  color: var(--c-cyan);
}

.page-home .city-cell__no {
  font-family: var(--mono);
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  color: var(--c-dim);
}

.page-home .city-cell__name {
  font-size: 0.96rem;
  font-weight: 700;
}

.page-home .coop-stats {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--c-line);
  background: var(--c-line);
}

.page-home .coop-stats > div {
  padding: 1.05rem 1.15rem;
  background: var(--c-night);
}

.page-home .coop-stats dt {
  margin-bottom: 0.4rem;
  font-size: 0.79rem;
  color: var(--c-dim);
}

.page-home .coop-stats dd {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--c-white);
}

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

@media (min-width: 960px) {
  .page-home .city-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .page-home .coop-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 常见三问 ---------- */

.page-home .ask-list {
  border-top: 1px solid var(--c-line);
}

.page-home .ask-item {
  border-bottom: 1px solid var(--c-line);
}

.page-home .ask-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.1rem 0.15rem;
  list-style: none;
  cursor: pointer;
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  font-weight: 700;
}

.page-home .ask-item summary::-webkit-details-marker {
  display: none;
}

.page-home .ask-item summary:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 2px;
}

.page-home .ask-item__sign {
  position: relative;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
}

.page-home .ask-item__sign::before,
.page-home .ask-item__sign::after {
  content: "";
  position: absolute;
  background: var(--c-cyan);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.page-home .ask-item__sign::before {
  left: 0;
  top: 6px;
  width: 14px;
  height: 1px;
}

.page-home .ask-item__sign::after {
  left: 6px;
  top: 0;
  width: 1px;
  height: 14px;
}

.page-home .ask-item[open] .ask-item__sign::after {
  transform: scaleY(0);
  opacity: 0;
}

.page-home .ask-item__a {
  max-width: 62ch;
  padding: 0 0.15rem 1.3rem;
  color: var(--c-muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.page-home .ask-item__a p {
  margin: 0 0 0.7rem;
}

.page-home .ask-item__a p:last-child {
  margin-bottom: 0;
}

.page-home .ask-item__a a {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- 收尾入口 ---------- */

.page-home .final-cta {
  padding-block: var(--home-block) 0;
}

.page-home .final-cta__box {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 300px;
  border: 1px solid var(--c-line);
  overflow: hidden;
}

.page-home .final-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.48) saturate(0.85);
}

.page-home .final-cta__box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 20, 0.94), rgba(6, 26, 20, 0.34));
  pointer-events: none;
}

.page-home .final-cta__body {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  padding: clamp(1.6rem, 4vw, 2.8rem);
}

.page-home .final-cta__title {
  margin: 0 0 0.8rem;
  font-size: clamp(1.45rem, 3.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.page-home .final-cta__text {
  margin: 0 0 1.5rem;
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--c-muted);
}

.page-home .final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- 窄屏与偏好 ---------- */

@media (max-width: 420px) {
  .page-home .fixture__stage {
    display: none;
  }

  .page-home .court-row__slot {
    width: 100%;
    justify-content: space-between;
  }
}

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