/* ================= 首页 page-home ================= */
.page-home {
  --home-rhythm: clamp(56px, 8vw, 104px);
  --home-gap: clamp(16px, 2.4vw, 30px);
  --home-card: linear-gradient(155deg, rgba(22, 88, 63, .48), rgba(11, 13, 12, .92));
  position: relative;
  display: block;
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(22, 88, 63, .48), transparent 60%),
    var(--ink);
  color: var(--mist);
  overflow-x: clip;
}

.page-home [id] {
  scroll-margin-top: 96px;
}

/* ---------- 面包屑 ---------- */
.page-home .crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 22px 0;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--graphite);
}

.page-home .crumbs .index-num {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: .06em;
}

/* ---------- 首屏 ---------- */
.page-home .hero-dash {
  position: relative;
  padding-block: clamp(28px, 4vw, 52px) clamp(48px, 7vw, 96px);
  overflow: hidden;
  isolation: isolate;
}

.page-home .hero-dash::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -20%;
  right: -16%;
  width: min(1180px, 122%);
  height: 132%;
  background: linear-gradient(212deg, var(--emerald-mid) 0%, var(--emerald) 44%, transparent 84%);
  clip-path: polygon(17% 0, 100% 0, 100% 100%, 0 72%);
  opacity: .92;
  pointer-events: none;
}

.page-home .hero-dash::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: -6%;
  bottom: 6%;
  width: 56%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 227, 200, .6), transparent);
  transform: rotate(-10deg);
  transform-origin: left center;
  pointer-events: none;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: end;
}

.page-home .hero-copy h1 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .96;
  font-size: clamp(42px, 8.6vw, 108px);
  color: var(--mist);
}

.page-home .hero-copy .lede {
  margin-top: 20px;
  max-width: 46ch;
  color: rgba(233, 241, 236, .84);
}

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

.page-home .hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 26px;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--graphite);
}

.page-home .hero-status .sep {
  color: rgba(233, 241, 236, .28);
}

.page-home .pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  animation: home-pulse 1s ease-out infinite;
}

@keyframes home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 227, 200, .5); }
  100% { box-shadow: 0 0 0 12px rgba(43, 227, 200, 0); }
}

.page-home .hero-figure {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(.92) contrast(1.06);
}

.page-home .hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 12, 0) 38%, rgba(11, 13, 12, .78) 100%);
  pointer-events: none;
}

/* ---------- 通用区块节奏 ---------- */
.page-home .section {
  padding-block: var(--home-rhythm);
}

.page-home .section-head {
  max-width: 62ch;
}

.page-home .section-head .display-2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.04;
  font-size: clamp(28px, 4.6vw, 54px);
  color: var(--mist);
}

.page-home .section-head .lede {
  margin-top: 16px;
  color: rgba(233, 241, 236, .78);
}

/* ---------- 实时比分 ---------- */
.page-home .live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 44px);
}

.page-home .score-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.page-home .score-card {
  position: relative;
  padding: 16px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--home-card);
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.page-home .score-card:hover,
.page-home .score-card:focus-within {
  border-color: rgba(43, 227, 200, .45);
  transform: translateY(-3px);
}

.page-home .score-card--lead {
  background: linear-gradient(155deg, rgba(14, 59, 46, .95), rgba(11, 13, 12, .96));
  border-color: rgba(242, 178, 51, .38);
}

.page-home .score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-home .score-tag {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--graphite);
}

.page-home .live-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--cyan);
}

.page-home .live-tag--soon {
  color: var(--amber);
}

.page-home .live-tag--soon .pulse-dot {
  background: var(--amber);
  animation-name: home-pulse-amber;
}

@keyframes home-pulse-amber {
  0% { box-shadow: 0 0 0 0 rgba(242, 178, 51, .5); }
  100% { box-shadow: 0 0 0 12px rgba(242, 178, 51, 0); }
}

.page-home .score-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.page-home .team {
  font-size: 14px;
  color: var(--mist);
  overflow-wrap: anywhere;
}

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

.page-home .score-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 4.6vw, 42px);
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--amber);
}

.page-home .score-num .dash {
  margin-inline: .08em;
  font-weight: 400;
  color: var(--graphite);
}

.page-home .score-num--idle {
  color: var(--graphite);
}

.page-home .score-meta {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--graphite);
}

.page-home .h2h-panel {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--t-mid), opacity var(--t-mid), margin-top var(--t-mid);
}

.page-home .score-card:hover .h2h-panel,
.page-home .score-card:focus-within .h2h-panel {
  max-height: 200px;
  margin-top: 14px;
  opacity: 1;
}

.page-home .h2h-title {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--graphite);
}

.page-home .h2h-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.page-home .h2h-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(233, 241, 236, .72);
}

.page-home .h2h-list b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.page-home .live-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .live-figure {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .live-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  opacity: .82;
}

.page-home .live-note {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan-deep);
  border-radius: var(--r-sm);
  background: rgba(233, 241, 236, .035);
}

.page-home .live-note--amber {
  border-left-color: var(--amber);
}

.page-home .live-note-title {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
  margin-bottom: 6px;
}

.page-home .live-note--amber .live-note-title {
  color: var(--amber);
}

.page-home .live-note p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(233, 241, 236, .8);
}

/* ---------- 分类标签 ---------- */
.page-home .filter-bar {
  display: grid;
  gap: 4px;
  margin-top: 32px;
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(118deg, rgba(42, 44, 90, .36), rgba(11, 13, 12, .92) 68%);
}

.page-home .filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

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

.page-home .filter-row:first-child {
  padding-top: 0;
}

.page-home .filter-label {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--graphite);
}

.page-home .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .chip {
  appearance: none;
  padding: 7px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--mist);
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

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

.page-home .chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
  font-weight: 600;
}

.page-home .filter-foot {
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--graphite);
}

/* ---------- 轮次时间轴 ---------- */
.page-home .rounds-figure {
  margin: 30px 0 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.page-home .rounds-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  opacity: .7;
}

.page-home .round-track {
  list-style: none;
  margin: 36px 0 0;
  padding: 6px 0 6px 30px;
  border-left: 1px solid var(--line-strong);
  display: grid;
  gap: 16px;
}

.page-home .round-node {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: rgba(233, 241, 236, .035);
  transition: background var(--t-fast), border-color var(--t-fast);
}

.page-home .round-node:hover {
  background: rgba(43, 227, 200, .08);
  border-color: rgba(43, 227, 200, .28);
}

.page-home .round-node::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 19px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-sizing: border-box;
  background: var(--ink);
  border: 2px solid var(--cyan-deep);
}

.page-home .round-node.is-active::before {
  background: var(--amber);
  border-color: var(--amber);
  box-shadow: 0 0 0 5px rgba(242, 178, 51, .14);
}

.page-home .round-time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--amber);
}

.page-home .round-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(17px, 2.1vw, 21px);
  letter-spacing: -.012em;
  color: var(--mist);
}

.page-home .round-meta {
  font-size: 13px;
  color: var(--graphite);
}

/* ---------- 近期战绩 ---------- */
.page-home .results-wrap {
  position: relative;
  margin-top: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.page-home .results-bg {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}

.page-home .results-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .2;
}

.page-home .results-inner {
  position: relative;
  z-index: 1;
  padding: clamp(16px, 2.6vw, 30px);
  background: linear-gradient(180deg, rgba(11, 13, 12, .82), rgba(11, 13, 12, .95));
}

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

.page-home .result-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  min-height: 44px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
}

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

.page-home .result-round {
  flex: none;
  min-width: 74px;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
}

.page-home .result-match {
  flex: 1 1 180px;
  font-size: 14px;
  color: var(--mist);
}

.page-home .result-match b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  color: var(--amber);
}

.page-home .result-match .vs {
  margin-inline: .12em;
  color: var(--graphite);
}

.page-home .result-tags {
  flex: 1 1 100%;
  font-size: 12.5px;
  color: var(--graphite);
}

.page-home .results-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.page-home .results-hint {
  font-size: 12.5px;
  color: var(--graphite);
}

/* ---------- 数据服务能力 ---------- */
.page-home .cap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.page-home .cap-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color var(--t-fast), transform var(--t-fast);
}

.page-home .cap-card:hover {
  border-color: rgba(43, 227, 200, .4);
  transform: translateY(-3px);
}

.page-home .cap-card--emerald {
  background: linear-gradient(152deg, rgba(22, 88, 63, .55), rgba(11, 13, 12, .92));
}

.page-home .cap-card--indigo {
  background: linear-gradient(152deg, rgba(42, 44, 90, .62), rgba(11, 13, 12, .92));
}

.page-home .cap-card--wine {
  background: linear-gradient(152deg, rgba(90, 31, 46, .6), rgba(11, 13, 12, .92));
}

.page-home .cap-card .index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--amber);
}

.page-home .cap-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--mist);
}

.page-home .cap-card p {
  font-size: 14.5px;
  line-height: 1.78;
  color: rgba(233, 241, 236, .8);
}

.page-home .cap-link {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13.5px;
  letter-spacing: .04em;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(43, 227, 200, .35);
  align-self: flex-start;
  transition: color var(--t-fast), border-color var(--t-fast);
}

.page-home .cap-link:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

.page-home .cap-foot {
  margin-top: 22px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--graphite);
}

/* ---------- 赛事专栏 ---------- */
.page-home .column-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .column-item {
  display: grid;
  gap: 8px;
  padding: 22px 0 22px 20px;
  border-left: 2px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  transition: border-left-color var(--t-fast), padding-left var(--t-fast);
}

.page-home .column-item:hover {
  border-left-color: var(--amber);
  padding-left: 26px;
}

.page-home .column-cat {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
}

.page-home .column-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.015em;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.35;
}

.page-home .column-title a {
  color: var(--mist);
  text-decoration: none;
}

.page-home .column-title a:hover {
  color: var(--amber);
}

.page-home .column-time {
  font-size: 12.5px;
  color: var(--graphite);
}

/* ---------- 关注与提醒 ---------- */
.page-home .follow-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3.6vw, 44px);
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(43, 227, 200, .26);
  border-radius: var(--r-lg);
  background: linear-gradient(128deg, rgba(14, 59, 46, .95), rgba(11, 13, 12, .98) 58%, rgba(42, 44, 90, .62));
  overflow: hidden;
}

.page-home .follow-panel::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 60%;
  height: 130%;
  background: linear-gradient(200deg, rgba(43, 227, 200, .16), transparent 66%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 82%);
  pointer-events: none;
}

.page-home .follow-copy {
  position: relative;
  z-index: 1;
}

.page-home .follow-copy .display-2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.028em;
  line-height: 1.04;
  font-size: clamp(28px, 4.4vw, 50px);
  color: var(--mist);
}

.page-home .follow-copy .lede {
  margin-top: 18px;
  max-width: 48ch;
  color: rgba(233, 241, 236, .82);
}

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

.page-home .follow-list {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  align-content: start;
  gap: 2px;
}

.page-home .follow-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.page-home .follow-list li:last-child {
  border-bottom: 0;
}

.page-home .follow-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--amber);
}

.page-home .follow-label {
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(233, 241, 236, .78);
}

.page-home .start-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(24px, 3.6vw, 40px);
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(233, 241, 236, .035);
}

.page-home .start-lead {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(233, 241, 236, .8);
  max-width: 52ch;
}

.page-home .start-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- 断点 ---------- */
@media (min-width: 720px) {
  .page-home .filter-row {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  .page-home .filter-label {
    padding-top: 2px;
  }

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

  .page-home .score-card--lead {
    grid-column: span 2;
  }

  .page-home .result-tags {
    flex: 0 1 auto;
  }
}

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    align-items: end;
  }

  .page-home .hero-figure {
    clip-path: polygon(0 9%, 100% 0, 100% 100%, 0 91%);
    border-radius: 0;
  }

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

  .page-home .column-item {
    grid-template-columns: 120px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding-block: 20px;
  }

  .page-home .column-cat {
    align-self: center;
  }

  .page-home .column-title {
    margin: 0;
  }

  .page-home .column-time {
    text-align: right;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .page-home .live-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  }

  .page-home .follow-panel {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
    align-items: start;
  }

  .page-home .round-track {
    padding-left: 38px;
  }

  .page-home .round-node::before {
    left: -45px;
  }

  .page-home .start-strip {
    padding: 22px 34px;
  }
}

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

  .page-home .score-card,
  .page-home .cap-card,
  .page-home .round-node,
  .page-home .column-item {
    transition: none;
  }
}
