.page-home {
  --home-rail: 176px;
  --home-line: rgba(46, 107, 82, 0.55);
  overflow-x: clip;
}

.page-home .home-layout {
  display: block;
  padding-bottom: 72px;
}

.page-home .home-main {
  min-width: 0;
}

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

.page-home .section:first-child {
  border-top: 0;
  padding-top: 10px;
}

/* ---------- 左侧轮次索引 ---------- */
.page-home .rail {
  display: none;
}

/* ---------- 首屏 ---------- */
.page-home .hero__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: var(--deep);
}

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

.page-home .hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 34, 0) 34%, rgba(12, 31, 25, 0.9) 100%);
  pointer-events: none;
}

.page-home .hero__flag {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 2px;
  height: 28px;
  background: var(--edge);
  z-index: 1;
}

.page-home .hero__flag::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 0;
  width: 18px;
  height: 12px;
  background: var(--arc);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.page-home .hero__body {
  padding-top: 24px;
}

.page-home .hero__coord {
  margin: 10px 0 0;
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.page-home .hero__title {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 13vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hero__title em {
  display: block;
  font-style: normal;
  color: var(--fluo);
}

.page-home .hero__lead {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--edge);
}

.page-home .hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--home-line);
}

.page-home .hero__stats .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .stat__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--grey);
}

.page-home .stat__value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .hero__stats .numeral--fluo {
  color: var(--fluo);
}

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

/* ---------- 区块通用导语 ---------- */
.page-home .board__lead,
.page-home .corners__lead,
.page-home .stoppage__lead,
.page-home .day__lead {
  margin: 14px 0 0;
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--edge);
}

/* ---------- 本轮摘要 ---------- */
.page-home .board__grid {
  margin-top: 26px;
  row-gap: 16px;
}

.page-home .match {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--turf);
  border: 1px solid var(--turf-line);
}

.page-home .match::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 26px;
  height: 26px;
  border-top: 1px solid var(--arc);
  border-right: 1px solid var(--arc);
  border-top-right-radius: 26px;
  pointer-events: none;
}

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

.page-home .match__comp {
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

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

.page-home .match__team {
  font-size: 16px;
  line-height: 1.3;
  color: var(--paper);
}

.page-home .match__team:last-child {
  text-align: right;
}

.page-home .match__score {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fluo);
}

.page-home .match__dash {
  color: var(--turf-line);
  font-size: 0.7em;
}

.page-home .match__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--home-line);
}

.page-home .match__facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .match__k {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.page-home .match__v {
  font-family: var(--font-index);
  font-size: 15px;
  color: var(--edge);
}

.page-home .match__note {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--edge);
}

.page-home .match__link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--fluo);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(217, 255, 75, 0.45);
  transition: color 180ms ease, border-color 180ms ease;
}

.page-home .match__link:hover,
.page-home .match__link:focus-visible {
  color: var(--arc);
  border-color: var(--arc);
}

.page-home .board__more {
  margin: 26px 0 0;
}

/* ---------- 角球弧线 ---------- */
.page-home .corners__grid {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

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

.page-home .arc {
  display: grid;
  gap: 10px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--home-line);
  transition: background 180ms ease;
}

.page-home .arc:hover,
.page-home .arc:focus-within {
  background: rgba(217, 255, 75, 0.05);
}

.page-home .arc__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}

.page-home .arc__name {
  font-size: 15px;
  color: var(--paper);
}

.page-home .arc__nums {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.page-home .arc__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fluo);
}

.page-home .arc__share {
  font-size: 11px;
  color: var(--grey);
}

.page-home .arc__gauge {
  display: block;
  width: min(100%, 190px);
  height: auto;
}

.page-home .arc__track {
  fill: none;
  stroke: var(--turf-line);
  stroke-width: 6;
}

.page-home .arc__fill {
  fill: none;
  stroke: var(--fluo);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke 180ms ease;
}

.page-home .arc:hover .arc__fill {
  stroke: var(--arc);
}

.page-home .arc__half {
  font-size: 11px;
  color: var(--grey);
}

.page-home .rounds {
  margin-top: 30px;
}

.page-home .rounds__title {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

.page-home .rounds__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
}

.page-home .rounds__item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  background: var(--turf);
  border: 1px solid var(--turf-line);
}

.page-home .rounds__item--now {
  background: var(--fluo);
  border-color: var(--fluo);
}

.page-home .rounds__no,
.page-home .rounds__sub {
  font-family: var(--font-index);
  font-size: 11px;
  color: var(--grey);
}

.page-home .rounds__val {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  color: var(--paper);
}

.page-home .rounds__item--now .rounds__no,
.page-home .rounds__item--now .rounds__sub,
.page-home .rounds__item--now .rounds__val {
  color: var(--night);
}

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

/* ---------- 补时话题 ---------- */
.page-home .stoppage {
  position: relative;
  overflow: hidden;
  background: var(--deep);
}

.page-home .stoppage__bg {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  pointer-events: none;
}

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

.page-home .stoppage > *:not(.stoppage__bg) {
  position: relative;
  z-index: 1;
}

.page-home .topics {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .topic {
  background: var(--paper);
  border-left: 4px solid var(--arc);
}

.page-home .topic__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
}

.page-home .topic__head::-webkit-details-marker {
  display: none;
}

.page-home .topic__title {
  flex: 1 1 auto;
  min-width: 200px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--night);
}

.page-home .topic__count {
  flex: 0 0 auto;
  font-family: var(--font-index);
  font-size: 12px;
  color: var(--turf);
}

.page-home .topic[open] .topic__head {
  border-bottom: 1px solid rgba(23, 64, 47, 0.22);
}

.page-home .topic__body {
  display: grid;
  gap: 12px;
  padding: 16px 18px 20px;
}

.page-home .topic__quote {
  margin: 0;
  padding-left: 14px;
  border-left: 3px solid var(--arc);
  font-family: var(--font-note);
  font-size: 18px;
  line-height: 1.65;
  letter-spacing: 0.02em;
  color: var(--turf);
}

.page-home .topic__more {
  justify-self: start;
  font-family: var(--font-index);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--turf);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 比赛日流程 ---------- */
.page-home .day__layout {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

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

.page-home .timeline {
  list-style: none;
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--turf-line);
}

.page-home .timeline__item {
  position: relative;
}

.page-home .timeline__item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--night);
  border: 1px solid var(--turf-line);
}

.page-home .timeline__item--now::before {
  background: var(--fluo);
  border-color: var(--fluo);
  box-shadow: 0 0 0 4px rgba(217, 255, 75, 0.16);
}

.page-home .timeline__time {
  font-family: var(--font-index);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--arc);
}

.page-home .timeline__title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.4;
  color: var(--paper);
}

.page-home .timeline__text {
  margin: 8px 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--edge);
}

.page-home .day__foot {
  margin: 28px 0 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey);
}

.page-home .day__foot a {
  color: var(--fluo);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 组织登记 ---------- */
.page-home .join__layout {
  display: grid;
  gap: 24px;
  margin-top: 26px;
}

.page-home .join__lead {
  margin: 0;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.75;
  color: var(--edge);
}

.page-home .join__sub {
  margin: 22px 0 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--grey);
}

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

.page-home .join__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--edge);
}

.page-home .join__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 6px;
  border-left: 1px solid var(--arc);
  border-bottom: 1px solid var(--arc);
  border-radius: 0 0 0 10px;
}

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

.page-home .join__plate {
  padding: 22px;
}

.page-home .join__plate .plate__title {
  margin: 0 0 10px;
}

.page-home .join__plate .plate__body {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 回到顶部 ---------- */
.page-home .to-top {
  margin-top: 36px;
}

/* ---------- 桌面栅格 ---------- */
@media (min-width: 620px) {
  .page-home .route {
    display: block;
  }
}

@media (min-width: 720px) {
  .page-home .hero__img {
    aspect-ratio: 16 / 7;
  }

  .page-home .hero__body {
    padding-top: 30px;
  }

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

@media (min-width: 900px) {
  .page-home .corners__grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
    align-items: start;
  }

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

  .page-home .day__layout {
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .page-home .join__layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
  }
}

@media (min-width: 1000px) {
  .page-home .home-layout {
    display: grid;
    grid-template-columns: var(--home-rail) minmax(0, 1fr);
    gap: 56px;
    align-items: start;
  }

  .page-home .rail {
    display: block;
    position: sticky;
    top: calc(var(--header-h) + 28px);
    padding-left: 18px;
    border-left: 1px solid var(--turf-line);
  }

  .page-home .rail__title {
    margin: 0 0 14px;
    font-family: var(--font-index);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--grey);
  }

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

  .page-home .rail__link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--grey);
    text-decoration: none;
    transition: color 200ms ease;
  }

  .page-home .rail__link:hover,
  .page-home .rail__link[data-active] {
    color: var(--fluo);
  }

  .page-home .rail__no {
    font-family: var(--font-index);
    font-size: 11px;
    color: var(--turf-line);
  }

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

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