/* ================= 首页 · 看台总览 ================= */
.page-home {
  --home-tick: rgba(201, 209, 220, 0.26);
  --home-surface: rgba(7, 16, 31, 0.55);
  overflow-x: clip;
}

/* ---------- 框景首屏 ---------- */
.page-home .hero {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(1rem, 2.6vw, 1.8rem) var(--gutter) 0;
}

.page-home .hero__frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3.2rem);
  background:
    radial-gradient(120% 90% at 8% -12%, rgba(57, 217, 208, 0.16), transparent 58%),
    radial-gradient(100% 80% at 104% 4%, rgba(255, 107, 44, 0.16), transparent 62%),
    linear-gradient(158deg, #07101f 0%, #0d1b2e 48%, #2a1b4a 100%);
  box-shadow: var(--shadow-lift);
}

.page-home .hero__frame::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 14px;
  background-image: repeating-linear-gradient(90deg, var(--home-tick) 0 1px, transparent 1px 42px);
  opacity: 0.75;
  pointer-events: none;
  z-index: 3;
}

.page-home .hero__frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57, 217, 208, 0.55), transparent);
  z-index: 3;
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
  opacity: 0.32;
  pointer-events: none;
}

.page-home .hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.page-home .hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 31, 0.4) 0%, rgba(7, 16, 31, 0.86) 58%, #07101f 100%);
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.5rem, 3.4vw, 2.8rem);
  grid-template-columns: 1fr;
}

.page-home .hero__lead {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  min-width: 0;
}

.page-home .hero__crumb {
  margin-bottom: 0.2rem;
}

.page-home .hero__title {
  margin: 0;
  color: var(--m-mist);
  font-size: clamp(1.95rem, 4.6vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  font-weight: 900;
}

.page-home .hero__lede {
  margin: 0;
  max-width: 64ch;
  color: var(--m-silver);
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.82;
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.page-home .hero__note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(201, 209, 220, 0.78);
  padding-left: 0.85rem;
  border-left: 2px solid var(--m-cyan);
}

.page-home .hero__stats {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.page-home .hero__stat-num {
  display: block;
  font-family: var(--font-data);
  font-size: clamp(1.35rem, 2.6vw, 1.95rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--m-orange);
}

.page-home .hero__stat-label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: var(--m-silver);
  letter-spacing: 0.01em;
}

/* 联赛索引竖排 */
.page-home .hero__rail {
  min-width: 0;
  padding: 0.85rem 0.75rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(7, 16, 31, 0.6);
}

.page-home .hero__rail-title {
  margin: 0 0 0.6rem;
  padding-left: 0.55rem;
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: var(--m-cyan);
  text-transform: uppercase;
}

.page-home .league-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.page-home .league-list__link {
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.55rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--m-mist);
  font-size: 0.94rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .league-list__link:hover,
.page-home .league-list__link:focus-visible {
  background: rgba(57, 217, 208, 0.13);
  color: #fff;
}

.page-home .league-list__num {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--m-cyan);
}

.page-home .league-list__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .league-list__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m-cyan);
  box-shadow: 0 0 0 3px rgba(57, 217, 208, 0.14);
}

@media (min-width: 900px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(200px, 0.58fr) minmax(0, 1.42fr);
    grid-template-areas: "rail lead";
    align-items: start;
  }

  .page-home .hero__rail {
    grid-area: rail;
  }

  .page-home .hero__lead {
    grid-area: lead;
  }
}

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

/* ---------- 赛事推荐 ---------- */
.page-home .matches {
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.page-home .matches__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.3rem 0 clamp(1.4rem, 3vw, 2.1rem);
}

.page-home .matches__filters .filter-btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
}

.page-home .match-run {
  display: grid;
  gap: var(--gap);
  grid-template-columns: 1fr;
}

.page-home .match-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(13, 27, 46, 0.94) 0%, rgba(7, 16, 31, 0.96) 100%);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .match-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-cyan);
  box-shadow: var(--shadow-lift);
}

.page-home .match-card[hidden] {
  display: none;
}

.page-home .match-card__media {
  margin: 0;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  background: #0d1b2e;
}

.page-home .match-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.page-home .match-card:hover .match-card__media img {
  transform: scale(1.04);
}

.page-home .match-card__body {
  flex: 1;
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 1.05rem 1.1rem 1.2rem;
}

.page-home .match-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.page-home .match-card__slot {
  font-family: var(--font-data);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  color: var(--m-silver);
  opacity: 0.82;
}

.page-home .match-card__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.48;
  color: var(--m-mist);
  font-weight: 800;
}

.page-home .match-card__lede {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.72;
  color: var(--m-silver);
}

.page-home .match-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin: 0;
  padding-top: 0.72rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-data);
  font-size: 0.76rem;
}

.page-home .match-card__meta div {
  display: grid;
  gap: 0.15rem;
}

.page-home .match-card__meta dt {
  color: var(--m-silver);
  opacity: 0.75;
}

.page-home .match-card__meta dd {
  margin: 0;
  color: var(--m-cyan);
}

.page-home .match-card__more {
  font-size: 0.86rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.5rem;
}

.page-home .match-card__more summary {
  cursor: pointer;
  color: var(--m-cyan);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.page-home .match-card__more summary::marker {
  color: var(--m-orange);
}

.page-home .match-card__more p {
  margin: 0.5rem 0 0;
  color: var(--m-silver);
  line-height: 1.72;
  font-size: 0.86rem;
}

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

@media (min-width: 1024px) {
  .page-home .match-run {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- 珠宝色分区底色 ---------- */
.page-home .home-band {
  position: relative;
  margin-top: clamp(2.4rem, 6vw, 5rem);
  padding: clamp(2.2rem, 5.4vw, 4.4rem) 0;
}

.page-home .home-band--teal {
  background: linear-gradient(180deg, rgba(11, 58, 58, 0) 0%, rgba(11, 58, 58, 0.66) 18%, rgba(11, 58, 58, 0.66) 82%, rgba(11, 58, 58, 0) 100%);
}

.page-home .home-band--wine {
  background: linear-gradient(180deg, rgba(74, 18, 32, 0) 0%, rgba(74, 18, 32, 0.66) 18%, rgba(74, 18, 32, 0.66) 82%, rgba(74, 18, 32, 0) 100%);
}

.page-home .home-band--indigo {
  background: linear-gradient(180deg, rgba(42, 27, 74, 0) 0%, rgba(42, 27, 74, 0.72) 18%, rgba(42, 27, 74, 0.72) 82%, rgba(42, 27, 74, 0) 100%);
}

/* ---------- 球队资料库 ---------- */
.page-home .squad-grid {
  display: grid;
  gap: clamp(1.4rem, 3.4vw, 2.8rem);
  grid-template-columns: 1fr;
  align-items: center;
}

.page-home .squad-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #04121a;
}

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

.page-home .squad-copy {
  min-width: 0;
  display: grid;
  gap: 0.85rem;
}

.page-home .squad-copy .section__title {
  margin: 0;
}

.page-home .squad-copy .section__lede {
  margin: 0;
}

.page-home .field-list {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
}

.page-home .field-list li {
  padding: 0.72rem 0.9rem;
  border-left: 2px solid var(--m-cyan);
  border-radius: 0 12px 12px 0;
  background: rgba(7, 16, 31, 0.5);
  color: var(--m-mist);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-home .field-list strong {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--m-orange);
  font-weight: 800;
}

.page-home .squad-note {
  margin: 0.2rem 0 0;
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.78;
  color: var(--m-silver);
}

.page-home .squad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.3rem;
}

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

@media (min-width: 900px) {
  .page-home .squad-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

/* ---------- 比分评测 ---------- */
.page-home .metric-strip {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  padding: 0.4rem 0 1.1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(57, 217, 208, 0.45) transparent;
}

.page-home .metric-strip::-webkit-scrollbar {
  height: 6px;
}

.page-home .metric-strip::-webkit-scrollbar-track {
  background: rgba(201, 209, 220, 0.08);
  border-radius: var(--radius-pill);
}

.page-home .metric-strip::-webkit-scrollbar-thumb {
  background: rgba(57, 217, 208, 0.45);
  border-radius: var(--radius-pill);
}

.page-home .metric {
  flex: 0 0 clamp(152px, 42vw, 192px);
  scroll-snap-align: start;
  display: grid;
  gap: 0.32rem;
  align-content: start;
  padding: 0.9rem 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 16, 31, 0.58);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.page-home .metric:hover {
  border-color: var(--line-cyan);
  background: rgba(7, 16, 31, 0.78);
}

.page-home .metric__idx {
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--m-cyan);
}

.page-home .metric__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--m-mist);
}

.page-home .metric__note {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--m-silver);
}

.page-home .review-figure {
  margin: clamp(1rem, 3vw, 1.8rem) 0 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #07101f;
}

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

.page-home .review-figure figcaption {
  padding: 0.72rem 1rem;
  background: rgba(7, 16, 31, 0.78);
  font-size: 0.83rem;
  line-height: 1.7;
  color: var(--m-silver);
  border-top: 1px solid var(--line);
}

/* ---------- 收藏与继续阅读 ---------- */
.page-home .keep-grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.6rem);
  grid-template-columns: 1fr;
  align-items: start;
}

.page-home .keep-copy {
  min-width: 0;
  display: grid;
  gap: 0.85rem;
}

.page-home .keep-copy .section__title {
  margin: 0;
}

.page-home .keep-copy .section__lede {
  margin: 0;
}

.page-home .keep-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-home .keep-links a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: baseline;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7, 16, 31, 0.5);
  color: var(--m-mist);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .keep-links a:hover,
.page-home .keep-links a:focus-visible {
  border-color: var(--line-cyan);
  background: rgba(59, 35, 92, 0.55);
  transform: translateX(3px);
}

.page-home .keep-links__idx {
  font-family: var(--font-data);
  font-size: 0.76rem;
  color: var(--m-cyan);
}

.page-home .keep-links__title {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--m-mist);
}

.page-home .keep-links__desc {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.86rem;
  line-height: 1.68;
  color: var(--m-silver);
}

@media (min-width: 880px) {
  .page-home .keep-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}

/* ---------- 窄屏保护 ---------- */
@media (max-width: 480px) {
  .page-home .hero__frame {
    padding: 1.3rem 1.05rem 1.5rem;
    border-radius: var(--radius-md);
  }

  .page-home .hero__actions .btn,
  .page-home .squad-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .page-home .match-card__meta {
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .match-card,
  .page-home .match-card__media img,
  .page-home .keep-links a,
  .page-home .metric {
    transition: none;
  }

  .page-home .match-card:hover {
    transform: none;
  }

  .page-home .match-card:hover .match-card__media img {
    transform: none;
  }

  .page-home .keep-links a:hover,
  .page-home .keep-links a:focus-visible {
    transform: none;
  }
}
