.page-home,
.page-home *,
.page-home *::before,
.page-home *::after {
  box-sizing: border-box;
}

.page-home {
  background: var(--ink);
  color: var(--on-dark);
  overflow-x: clip;
}

/* ============ 首屏分屏 ============ */
.page-home .home-hero {
  position: relative;
  padding-top: calc(var(--header-h) + var(--track-h) + clamp(20px, 3.5vw, 40px));
  padding-bottom: clamp(40px, 6vw, 76px);
  background:
    radial-gradient(90% 75% at 88% 2%, rgba(182, 255, 60, .15), transparent 62%),
    radial-gradient(70% 60% at 2% 100%, rgba(255, 185, 46, .09), transparent 64%),
    var(--ink);
}

.page-home .home-hero__grid {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
}

.page-home .home-hero__title {
  margin: 16px 0 0;
  font-size: clamp(32px, 5.4vw, 60px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.page-home .home-hero__title em {
  font-style: normal;
  color: var(--neon);
  text-shadow: 0 0 34px rgba(182, 255, 60, .32);
}

.page-home .home-hero__lead {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--on-dark-dim);
}

/* 比赛面板 */
.page-home .match-panel {
  margin-top: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 26, 21, .92), rgba(11, 15, 12, .94));
  box-shadow: var(--shadow-1);
  overflow: hidden;
}

.page-home .match-panel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 11px 16px;
  background: rgba(182, 255, 60, .07);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--on-dark-dim);
}

.page-home .match-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--neon);
  font-weight: 700;
}

.page-home .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 3px rgba(182, 255, 60, .2);
}

.page-home .match-panel__more {
  margin-left: auto;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 1px;
  transition: color var(--t);
}

.page-home .match-panel__more:hover,
.page-home .match-panel__more:focus-visible {
  color: var(--neon);
}

.page-home .match {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  transition: background var(--t);
}

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

.page-home .match:hover {
  background: rgba(182, 255, 60, .04);
}

.page-home .match__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 12px;
}

.page-home .match__side {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.page-home .match__side--away {
  justify-items: end;
  text-align: right;
}

.page-home .match__team {
  font-size: 15px;
  font-weight: 700;
  color: var(--on-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .match__sub {
  font-size: 12px;
  color: var(--on-dark-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .match__score {
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.6vw, 40px);
  font-weight: 800;
  line-height: 1;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.page-home .match__score--final {
  color: var(--on-dark);
}

.page-home .match__sep {
  color: var(--on-dark-dim);
  margin: 0 1px;
}

.page-home .match__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(36, 48, 42, .9);
}

.page-home .match__clock {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .match__clock--ended {
  color: var(--on-dark-dim);
}

.page-home .match__cards {
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: grid;
  gap: 5px;
  font-size: 12.5px;
  color: var(--on-dark-dim);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 240ms cubic-bezier(.2, .7, .3, 1), opacity 200ms linear;
}

.page-home .match:hover .match__cards,
.page-home .match:focus-within .match__cards {
  max-height: 140px;
  opacity: 1;
}

/* 记分牌视觉 */
.page-home .home-hero__board {
  position: relative;
  min-height: clamp(300px, 42vw, 520px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: var(--ink-2);
}

.page-home .home-hero__board-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}

.page-home .home-hero__board::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 12, .28) 0%, rgba(11, 15, 12, .72) 48%, rgba(11, 15, 12, .96) 100%);
}

.page-home .board {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(18px, 3vw, 28px);
}

.page-home .board__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--on-dark-dim);
}

.page-home .board__digits {
  margin: 10px 0 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  line-height: 1;
  letter-spacing: -.03em;
}

.page-home .board__now {
  font-size: clamp(38px, 6.4vw, 62px);
  font-weight: 800;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(182, 255, 60, .35);
}

.page-home .board__of {
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  color: var(--on-dark-dim);
  letter-spacing: 0;
}

.page-home .board__scale {
  position: relative;
  height: 30px;
  margin-top: 20px;
  background-image: repeating-linear-gradient(to right, var(--line) 0 1px, transparent 1px 100%);
  background-size: calc(100% / 30) 100%;
  background-repeat: repeat-x;
}

.page-home .board__scale::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(23 / 30 * 100%);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--neon-deep), var(--neon));
  box-shadow: 0 0 14px rgba(182, 255, 60, .55);
}

.page-home .board__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.page-home .board__facts > div {
  display: grid;
  gap: 3px;
}

.page-home .board__facts dt {
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--on-dark-dim);
}

.page-home .board__facts dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

/* ============ 赛季进度 ============ */
.page-home .home-progress {
  position: relative;
  padding: clamp(52px, 7.5vw, 96px) 0;
  background: var(--ink-2);
  clip-path: polygon(0 3.2vw, 100% 0, 100% 100%, 0 100%);
}

.page-home .home-progress__grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.page-home .home-progress__ring {
  display: flex;
  justify-content: center;
}

.page-home .ring {
  --done: 76.7%;
  position: relative;
  width: clamp(180px, 34vw, 248px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from -90deg, var(--neon) 0 var(--done), var(--ink-3) var(--done) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px var(--line), 0 26px 60px -34px rgba(182, 255, 60, .55);
}

.page-home .ring__hole {
  width: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 4px;
}

.page-home .ring__value {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(38px, 5.6vw, 54px);
  font-weight: 800;
  line-height: 1;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.page-home .ring__unit {
  display: block;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--on-dark-dim);
}

.page-home .home-progress__body h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.page-home .home-progress__body p {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--on-dark-dim);
}

.page-home .progress-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .progress-list li {
  display: grid;
  gap: 5px;
  padding-left: 12px;
  border-left: 2px solid var(--line-soft);
}

.page-home .progress-list__k {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .progress-list__v {
  font-size: 13px;
  line-height: 1.6;
  color: var(--on-dark-dim);
}

.page-home .home-progress__body .btn {
  margin-top: 26px;
}

/* ============ 积分榜 ============ */
.page-home .home-standings {
  padding: clamp(52px, 7.5vw, 96px) 0;
  background: var(--ink);
}

.page-home .home-standings__hint {
  margin: 18px 0 24px;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--on-dark-dim);
}

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

.page-home .st-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  grid-template-areas:
    "rank team gd pts"
    "rank form form form";
  align-items: center;
  gap: 8px 12px;
  padding: 14px 6px;
  border-bottom: 1px solid var(--line);
  transition: background var(--t);
}

.page-home .st-row:hover {
  background: rgba(182, 255, 60, .05);
}

.page-home .st-row__rank {
  grid-area: rank;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  color: var(--on-dark-dim);
  font-variant-numeric: tabular-nums;
}

.page-home .st-row:first-child .st-row__rank {
  color: var(--neon);
}

.page-home .st-row__team {
  grid-area: team;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--on-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .st-row__form {
  grid-area: form;
  display: flex;
  gap: 3px;
  max-width: 132px;
}

.page-home .form-pip {
  flex: 1 1 0;
  max-width: 22px;
  height: 6px;
  border-radius: 1px;
  background: var(--ink-3);
}

.page-home .form-pip--w {
  background: var(--neon);
}

.page-home .form-pip--d {
  background: var(--amber);
}

.page-home .form-pip--l {
  background: var(--red);
  opacity: .62;
}

.page-home .st-row__gd {
  grid-area: gd;
  font-family: var(--font-mono);
  font-size: 14px;
  text-align: right;
  color: var(--on-dark-dim);
  font-variant-numeric: tabular-nums;
}

.page-home .st-row__pts {
  grid-area: pts;
  min-width: 2.2em;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  text-align: right;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

/* ============ 轮次轨道 ============ */
.page-home .home-rounds {
  position: relative;
  padding: clamp(52px, 7.5vw, 92px) 0 clamp(32px, 4vw, 48px);
  background: var(--ink-2);
  overflow: hidden;
}

.page-home .home-rounds__bg {
  position: absolute;
  inset: 0;
}

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

.page-home .home-rounds__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 12, .92), rgba(20, 26, 21, .88) 58%, rgba(11, 15, 12, .96));
}

.page-home .home-rounds .shell,
.page-home .rd-track {
  position: relative;
  z-index: 1;
}

.page-home .rd-track {
  margin-top: clamp(20px, 3vw, 30px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.page-home .rd-track::-webkit-scrollbar {
  display: none;
}

.page-home .rd-track:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: -2px;
}

.page-home .rd-list {
  list-style: none;
  margin: 0;
  padding-inline: max(var(--gutter), calc((100vw - var(--shell)) / 2));
  display: flex;
  gap: 10px;
  width: max-content;
}

.page-home .rd-chip {
  scroll-snap-align: start;
  display: grid;
  gap: 6px;
  min-width: 86px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 15, 12, .7);
  color: var(--on-dark-dim);
  text-decoration: none;
  transition: border-color var(--t), color var(--t), background var(--t), transform var(--t);
}

.page-home .rd-chip:hover,
.page-home .rd-chip:focus-visible {
  border-color: var(--neon);
  color: var(--on-dark);
  transform: translateY(-2px);
}

.page-home .rd-chip__no {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  color: var(--on-dark);
  font-variant-numeric: tabular-nums;
}

.page-home .rd-chip__meta {
  font-size: 11.5px;
  letter-spacing: .08em;
}

.page-home .rd-chip--current {
  border-color: var(--neon);
  background: linear-gradient(160deg, rgba(182, 255, 60, .22), rgba(182, 255, 60, .04));
  color: var(--on-dark);
}

.page-home .rd-chip--current .rd-chip__no {
  color: var(--neon);
}

/* ============ 球队与名额 ============ */
.page-home .home-entries {
  padding: clamp(52px, 7.5vw, 96px) 0;
  background: var(--ink);
}

.page-home .home-entries__grid {
  display: grid;
  gap: clamp(26px, 4vw, 48px);
}

.page-home .home-entries__media {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 26px));
}

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

.page-home .home-entries__body h2 {
  margin: 12px 0 0;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.page-home .home-entries__body p {
  margin: 16px 0 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.8;
  color: var(--on-dark-dim);
}

.page-home .entry-cards {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.page-home .entry-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(20, 26, 21, .92), rgba(11, 15, 12, .9));
  text-decoration: none;
  transition: transform var(--t), border-color var(--t), background var(--t);
}

.page-home .entry-card:hover,
.page-home .entry-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--neon);
  background: linear-gradient(180deg, rgba(182, 255, 60, .12), rgba(11, 15, 12, .92));
}

.page-home .entry-card__kicker {
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--amber);
}

.page-home .entry-card__title {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--on-dark);
}

.page-home .entry-card__go {
  font-size: 13px;
  color: var(--neon);
  padding-top: 2px;
}

.page-home .home-entries__trust {
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--on-dark-dim);
}

.page-home .home-entries__trust a {
  color: var(--neon);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}

.page-home .home-entries__trust a:hover,
.page-home .home-entries__trust a:focus-visible {
  color: var(--neon-deep);
}

/* ============ 赛季笔记 ============ */
.page-home .home-notes {
  clip-path: polygon(0 46px, 100% 0, 100% 100%, 0 100%);
  padding-top: calc(clamp(52px, 7vw, 88px) + 46px);
  padding-bottom: clamp(52px, 7vw, 88px);
}

.page-home .home-notes h2 {
  color: var(--ink);
}

.page-home .home-notes__grid {
  display: grid;
  gap: clamp(26px, 4vw, 44px);
  margin-top: clamp(18px, 3vw, 30px);
}

.page-home .note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(36, 48, 42, .22);
}

.page-home .note-item {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(36, 48, 42, .22);
}

.page-home .note-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .note-item__title {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--t);
}

.page-home .note-item__title:hover,
.page-home .note-item__title:focus-visible {
  color: var(--neon-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.page-home .home-notes__figure {
  margin: 0;
  border: 1px solid rgba(36, 48, 42, .18);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

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

/* ============ 收尾提示 ============ */
.page-home .home-signoff {
  padding: clamp(30px, 4.5vw, 52px) 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(182, 255, 60, .1), rgba(11, 15, 12, 0) 58%), var(--ink-2);
}

.page-home .home-signoff__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.page-home .home-signoff p {
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.75;
  color: var(--on-dark-dim);
}

.page-home .home-signoff strong {
  color: var(--on-dark);
}

/* ============ 响应式 ============ */
@media (hover: none), (pointer: coarse) {
  .page-home .match__cards {
    max-height: none;
    opacity: 1;
  }
}

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

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

@media (min-width: 760px) {
  .page-home .st-row {
    grid-template-columns: 34px minmax(0, 1fr) 132px 78px 74px;
    grid-template-areas: "rank team form gd pts";
    gap: 0 16px;
    padding: 13px 10px;
  }

  .page-home .st-row__form {
    max-width: none;
  }

  .page-home .st-row__gd {
    text-align: center;
  }
}

@media (min-width: 860px) {
  .page-home .home-progress__grid {
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(36px, 5vw, 72px);
  }

  .page-home .home-progress__ring {
    justify-content: flex-start;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero__grid {
    grid-template-columns: 58fr 42fr;
    align-items: stretch;
    gap: clamp(32px, 3.6vw, 52px);
  }

  .page-home .home-hero__board {
    min-height: 100%;
  }

  .page-home .home-entries__grid {
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
  }

  .page-home .home-notes__grid {
    grid-template-columns: 1.15fr .85fr;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .page-home .home-hero__grid {
    grid-template-columns: 58fr 42fr;
  }
}

@media (max-width: 720px) {
  .page-home .home-notes {
    clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
    padding-top: calc(clamp(44px, 8vw, 64px) + 26px);
  }

  .page-home .home-progress {
    clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);
  }
}
