.page-home {
  --home-pad: clamp(16px, 4vw, 40px);
  overflow-x: clip;
}

.page-home .section {
  padding-block: clamp(56px, 8vw, 112px);
}

.page-home .chapter {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.page-home .chapter-num {
  flex: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  padding: 6px 13px;
  line-height: 1;
}

.page-home .chapter-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.4vw, 2.45rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--white);
}

.page-home .lede {
  max-width: 34em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
  margin: 0 0 32px;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) var(--home-pad) clamp(32px, 5vw, 56px);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(200, 255, 61, 0.16) 1px, transparent 0);
  background-size: 24px 24px;
  opacity: 0.45;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 72% 18%, #000 0%, transparent 68%);
  mask-image: radial-gradient(ellipse at 72% 18%, #000 0%, transparent 68%);
}

.page-home .hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 1180px;
  margin-inline: auto;
}

.page-home .hero-flag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(18px, 3vw, 30px);
}

.page-home .hero-flag-text {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.page-home .hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 8.4vw, 5.4rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  transform: skewX(-2deg);
  transform-origin: left bottom;
  overflow-wrap: anywhere;
}

.page-home .hero h1 em {
  font-style: normal;
  color: var(--lime);
  display: inline-block;
}

.page-home .hero-lede {
  max-width: 30em;
  margin: clamp(18px, 2.6vw, 26px) 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

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

.page-home .hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: clamp(26px, 3.6vw, 40px) 0 0;
  padding: 0;
}

.page-home .hero-facts li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 14px 16px;
}

.page-home .hero-fact-num {
  display: block;
  font-family: var(--mono);
  font-size: clamp(1.15rem, 3.4vw, 1.7rem);
  font-weight: 700;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.page-home .hero-fact-label {
  display: block;
  margin-top: 6px;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--muted);
}

.page-home .hero-visual {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: linear-gradient(160deg, var(--step), var(--ink));
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}

.page-home .hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.72) contrast(1.12);
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 15, 0.2) 0%, rgba(6, 17, 15, 0.86) 100%);
  pointer-events: none;
}

.page-home .scoreboard {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: clamp(14px, 2.4vw, 22px);
  padding: clamp(14px, 2.2vw, 20px);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: rgba(6, 17, 15, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-home .scoreboard-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--muted);
}

.page-home .scoreboard-head .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}

.page-home .scoreboard-head .live-text {
  letter-spacing: 0.04em;
}

.page-home .scoreboard-head .live-time {
  margin-left: auto;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ice);
  font-size: 0.72rem;
}

.page-home .score-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(30, 74, 63, 0.85);
}

.page-home .score-row:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.page-home .score-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 4px 0;
  border-radius: 999px;
  background: rgba(200, 255, 61, 0.16);
  color: var(--lime);
}

.page-home .score-tag--orange {
  background: rgba(255, 106, 31, 0.16);
  color: var(--orange);
}

.page-home .score-tag--ice {
  background: rgba(95, 216, 245, 0.16);
  color: var(--ice);
}

.page-home .score-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.page-home .score-team {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-home .score-team--end {
  text-align: right;
}

.page-home .score-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  animation: home-score-pulse 15s ease-in-out infinite;
}

.page-home .score-slash {
  width: 2px;
  height: 22px;
  background: var(--line);
  transform: skewX(-18deg);
  flex: none;
}

.page-home .score-stage {
  font-size: 0.68rem;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
}

@keyframes home-score-pulse {
  0%, 84%, 100% { color: var(--white); }
  88%, 93% { color: var(--lime); }
}

/* ---------- 路径条带 ---------- */
.page-home .pathways {
  padding-bottom: clamp(48px, 7vw, 96px);
}

.page-home .pathways-wrap {
  margin-top: 8px;
  background: var(--step);
  padding-block: clamp(28px, 4vw, 46px);
  clip-path: polygon(0 26px, 100% 0, 100% calc(100% - 26px), 0 100%);
}

.page-home .pathways-band {
  position: relative;
}

.page-home .pathways-track {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 6px var(--home-pad) 14px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.page-home .pathways-track::-webkit-scrollbar {
  height: 6px;
}

.page-home .pathways-track::-webkit-scrollbar-track {
  background: var(--track);
  border-radius: 999px;
}

.page-home .pathways-track::-webkit-scrollbar-thumb {
  background: var(--lime);
  border-radius: 999px;
}

.page-home .pathways-track > li {
  flex: 0 0 min(80vw, 360px);
  scroll-snap-align: start;
}

.page-home .path-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.page-home .path-card:hover,
.page-home .path-card:focus-within {
  transform: translateY(-3px);
  border-color: var(--lime);
}

.page-home .path-card .chip {
  align-self: flex-start;
}

.page-home .path-card-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.4;
  font-weight: 700;
  color: var(--white);
}

.page-home .path-card-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .path-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--lime);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  padding-bottom: 2px;
}

.page-home .path-card-link:hover,
.page-home .path-card-link:focus-visible {
  border-bottom-color: var(--lime-2);
}

.page-home .path-card-link span {
  transition: transform 0.2s ease;
}

.page-home .path-card:hover .path-card-link span {
  transform: translateX(4px);
}

.page-home .path-card--photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  justify-content: flex-end;
  min-height: 240px;
  border-color: var(--line);
}

.page-home .path-card--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.page-home .path-card--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 15, 0.1), rgba(6, 17, 15, 0.9));
}

.page-home .path-card-caption {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 20px;
  font-size: 0.86rem;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ---------- 赛程列表 ---------- */
.page-home .fixture-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .fixture-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "when proj"
    "match match"
    "state state";
  gap: 8px 14px;
  align-items: center;
  padding: 16px 12px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-s);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-home .fixture-row:hover {
  background: var(--panel);
}

.page-home .fixture-when {
  grid-area: when;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  color: var(--ice);
}

.page-home .fixture-proj {
  grid-area: proj;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}

.page-home .fixture-match {
  grid-area: match;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.page-home .fixture-team {
  font-size: 0.92rem;
  color: var(--white);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .fixture-team--end {
  text-align: right;
}

.page-home .fixture-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}

.page-home .fixture-score i {
  font-style: normal;
  color: var(--line);
  font-size: 1rem;
}

.page-home .fixture-state {
  grid-area: state;
  font-size: 0.74rem;
  color: var(--orange);
  font-family: var(--mono);
}

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

.page-home .fixture-note {
  margin: 0;
  max-width: 30em;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- V4 升级 ---------- */
.page-home .upgrade {
  background: linear-gradient(180deg, transparent, rgba(12, 33, 28, 0.9) 22%, rgba(12, 33, 28, 0.9) 78%, transparent);
}

.page-home .upgrade-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

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

.page-home .upgrade-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.page-home .upgrade-key {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--lime);
  font-weight: 600;
  padding-top: 3px;
}

.page-home .upgrade-list p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .upgrade-media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

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

.page-home .upgrade-media figcaption,
.page-home .scale-media figcaption {
  padding: 14px 18px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ---------- 运营规模 ---------- */
.page-home .scale-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.page-home .scale-media {
  margin: 0;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-home .scale-media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 14 / 9;
}

.page-home .scale-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 26px;
  padding: 0;
}

.page-home .scale-stat {
  padding: 18px 20px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .scale-stat:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}

.page-home .scale-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  font-weight: 700;
  color: var(--lime);
  line-height: 1.1;
}

.page-home .scale-stat dd {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 客服卡 ---------- */
.page-home .support {
  padding-bottom: clamp(64px, 9vw, 120px);
}

.page-home .support-card {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(26px, 5vw, 48px);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 1px 1px, rgba(200, 255, 61, 0.12) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(150deg, var(--step), var(--panel));
}

.page-home .support-title {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 4vw, 1.95rem);
  line-height: 1.3;
  font-weight: 800;
  color: var(--white);
}

.page-home .support-text {
  margin: 0 0 24px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .support-mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: rgba(6, 17, 15, 0.7);
}

.page-home .support-key {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.page-home .support-val {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--white);
  word-break: break-all;
}

.page-home .support-mail .copy-btn {
  margin-left: auto;
  border: 1px solid var(--lime);
  background: transparent;
  color: var(--lime);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-home .support-mail .copy-btn:hover,
.page-home .support-mail .copy-btn:focus-visible {
  background: var(--lime);
  color: var(--ink);
}

.page-home .support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .scale-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .fixture-row {
    grid-template-columns: 108px 66px minmax(0, 1fr) 132px;
    grid-template-areas: "when proj match state";
    gap: 14px;
    padding: 14px 14px;
  }

  .page-home .fixture-match {
    justify-content: flex-start;
    gap: 16px;
  }

  .page-home .fixture-team {
    flex: 1 1 0;
  }

  .page-home .fixture-state {
    text-align: right;
  }
}

@media (min-width: 900px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: clamp(28px, 4vw, 52px);
  }

  .page-home .hero-visual {
    min-height: 520px;
  }

  .page-home .upgrade-inner,
  .page-home .scale-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    gap: clamp(36px, 5vw, 72px);
  }

  .page-home .scale-inner {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  }

  .page-home .pathways-track > li {
    flex: 0 0 360px;
  }
}

@media (min-width: 1180px) {
  .page-home .hero-facts {
    max-width: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .score-num {
    animation: none;
  }

  .page-home .path-card,
  .page-home .scale-stat,
  .page-home .path-card-link span {
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  .page-home .path-card:hover,
  .page-home .path-card:focus-within,
  .page-home .scale-stat:hover {
    transform: none;
  }

  .page-home .path-card:hover .path-card-link span {
    transform: none;
  }
}
