/* ===== 首页 page-home ===== */
.page-home {
  display: block;
  --home-card-width: 268px;
  --home-hairline: rgba(29, 49, 69, 0.9);
}

.page-home .wrap {
  width: 100%;
}

.page-home .breadcrumb {
  margin: 22px 0 0;
}

/* ---------- 左侧竖向章节刻度 ---------- */
.page-home .rail {
  display: none;
}

@media (min-width: 1420px) {
  .page-home .rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    left: calc((100vw - 1200px) / 2 - 44px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
  }

  .page-home .rail__tick {
    display: block;
    width: 2px;
    height: 22px;
    background: var(--line-700);
    transition: background var(--ease), height var(--ease);
  }

  .page-home .rail__tick:hover {
    background: var(--green-300);
  }

  .page-home .rail__tick[data-active] {
    height: 36px;
    background: var(--green-500);
  }
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  padding: 26px 0 0;
}

.page-home .home-hero__grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

@media (min-width: 1020px) {
  .page-home .home-hero__grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 52px;
  }
}

.page-home .home-hero__copy h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--white-100);
}

.page-home .home-hero__copy .lede {
  margin: 18px 0 0;
  max-width: 26em;
  font-size: 17px;
  line-height: 1.85;
  color: var(--silver-200);
}

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

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

/* ---------- 比分看板 ---------- */
.page-home .board {
  position: relative;
  overflow: hidden;
  padding: 16px 0 18px 18px;
  background: var(--ink-800);
  border: 1px solid var(--line-700);
}

.page-home .board::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-500) 0%, rgba(47, 191, 113, 0) 68%);
}

.page-home .board__pitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--line-700);
  opacity: 0.55;
  pointer-events: none;
}

.page-home .board__head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-right: 18px;
}

.page-home .board__hint {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--silver-500);
}

.page-home .board__list {
  position: relative;
  display: flex;
  gap: 14px;
  margin: 14px 0 0;
  padding: 0 18px 6px 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .board__list::-webkit-scrollbar {
  height: 4px;
}

.page-home .board__list::-webkit-scrollbar-thumb {
  background: var(--green-500);
}

.page-home .match {
  flex: 0 0 clamp(224px, 72vw, var(--home-card-width));
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 12px;
  background: var(--ink-900);
  border: 1px solid var(--line-700);
  border-top-color: var(--steel-700);
}

.page-home .match:focus {
  outline: none;
}

.page-home .match:focus-visible {
  outline: 2px solid var(--orange-500);
  outline-offset: 2px;
}

.page-home .match__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .match__round {
  font-size: 12px;
  color: var(--silver-500);
  letter-spacing: 0.02em;
}

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

.page-home .match__team {
  font-size: 14px;
  line-height: 1.4;
  color: var(--silver-200);
}

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

.page-home .match__score {
  font-size: 27px;
  font-weight: 700;
  color: var(--white-100);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.page-home .match__half {
  margin: 0;
  font-size: 12px;
  color: var(--silver-500);
}

.page-home .match__detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-700);
}

.page-home .match__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .match__row dt {
  font-size: 11px;
  color: var(--silver-500);
  letter-spacing: 0.02em;
}

.page-home .match__row dd {
  margin: 0;
  font-size: 13px;
  color: var(--silver-200);
}

@media (min-width: 1020px) {
  .page-home .match__detail {
    max-height: 0;
    padding-top: 0;
    opacity: 0;
    overflow: hidden;
    border-top-color: transparent;
    transition: max-height var(--ease), opacity var(--ease), padding-top var(--ease), border-color var(--ease);
  }

  .page-home .match:hover .match__detail,
  .page-home .match:focus .match__detail,
  .page-home .match:focus-within .match__detail {
    max-height: 180px;
    padding-top: 10px;
    opacity: 1;
    border-top-color: var(--line-700);
  }

  .page-home .match:hover {
    border-top-color: var(--green-500);
  }
}

/* ---------- 首屏配图 ---------- */
.page-home .home-hero__figure {
  margin: 22px 0 0;
}

.page-home .home-hero__figure .figure__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-700);
  aspect-ratio: 4 / 3;
}

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

@media (min-width: 1020px) {
  .page-home .home-hero__figure .figure__media {
    aspect-ratio: 16 / 9;
  }
}

/* ---------- 联赛覆盖 ---------- */
.page-home .section {
  margin-top: 74px;
}

@media (min-width: 1020px) {
  .page-home .section {
    margin-top: 104px;
  }
}

.page-home .section__title {
  margin: 10px 0 0;
  color: var(--white-100);
}

.page-home .section .lede {
  margin: 16px 0 0;
  max-width: 34em;
  color: var(--silver-200);
  font-size: 16.5px;
  line-height: 1.85;
}

.page-home .home-leagues__figure {
  margin: 24px 0 0;
}

.page-home .home-leagues__figure .figure__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-700);
  aspect-ratio: 16 / 6;
}

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

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

.page-home .league-group + .league-group {
  margin-top: 30px;
}

@media (min-width: 880px) {
  .page-home .home-leagues__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 52px;
  }

  .page-home .league-group + .league-group {
    margin-top: 0;
  }
}

.page-home .league-group__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--white-100);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--green-500);
}

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

.page-home .league-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2px;
  padding: 13px 6px 13px 0;
  border-bottom: 1px solid var(--line-700);
  text-decoration: none;
  transition: background var(--ease), padding-left var(--ease);
}

.page-home .league-row:hover,
.page-home .league-row:focus-visible {
  background: var(--steel-700);
  padding-left: 8px;
  outline: none;
}

.page-home .league-row__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--white-100);
}

.page-home .league-row__note {
  font-size: 13px;
  color: var(--silver-500);
}

/* ---------- 单场 / 赛季对照 ---------- */
.page-home .span-compare {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

@media (min-width: 880px) {
  .page-home .span-compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.page-home .span-card {
  padding: 22px 20px 24px;
  background: var(--ink-800);
  border: 1px solid var(--line-700);
  border-top: 2px solid var(--silver-500);
}

.page-home .span-card--season {
  background: var(--green-900);
  border-top-color: var(--green-500);
}

.page-home .span-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--white-100);
}

.page-home .span-card__use {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--silver-200);
}

.page-home .span-card__rows {
  margin: 18px 0 0;
}

.page-home .span-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(195, 208, 222, 0.14);
}

.page-home .span-row dt {
  font-size: 14px;
  color: var(--silver-200);
}

.page-home .span-row dd {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--white-100);
  white-space: nowrap;
}

.page-home .span-card--season .span-row dd {
  color: var(--green-300);
}

.page-home .home-spans__more {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--silver-500);
}

.page-home .home-spans__link {
  margin-left: 6px;
  color: var(--green-500);
  text-decoration: none;
  border-bottom: 1px solid var(--green-500);
  padding-bottom: 1px;
}

.page-home .home-spans__link:hover {
  color: var(--green-300);
  border-bottom-color: var(--green-300);
}

/* ---------- 伤停与看台 ---------- */
.page-home .home-absences__grid {
  display: grid;
  gap: 28px;
  margin-top: 26px;
}

@media (min-width: 940px) {
  .page-home .home-absences__grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: start;
  }
}

.page-home .sub-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white-100);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-700);
}

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

.page-home .absence-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  grid-template-areas:
    "pos reason out"
    "pos tag tag";
  align-items: center;
  gap: 4px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-700);
}

.page-home .absence-row__pos {
  grid-area: pos;
  align-self: start;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green-500);
}

.page-home .absence-row__reason {
  grid-area: reason;
  font-size: 15px;
  color: var(--silver-200);
}

.page-home .absence-row__out {
  grid-area: out;
  font-size: 14px;
  color: var(--amber-500);
  white-space: nowrap;
}

.page-home .absence-row .tag {
  grid-area: tag;
  justify-self: start;
}

@media (min-width: 640px) {
  .page-home .absence-row {
    grid-template-columns: 62px minmax(0, 1fr) 150px 130px;
    grid-template-areas: "pos reason out tag";
    gap: 14px;
  }

  .page-home .absence-row__pos,
  .page-home .absence-row .tag {
    align-self: center;
  }

  .page-home .absence-row .tag {
    justify-self: end;
  }
}

.page-home .home-absences__figure {
  margin: 0;
}

.page-home .home-absences__figure .figure__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-700);
  aspect-ratio: 3 / 4;
}

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

.page-home .fan-track {
  margin-top: 34px;
}

.page-home .fan-list {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 16px 0 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.page-home .fan-list::-webkit-scrollbar {
  height: 4px;
}

.page-home .fan-list::-webkit-scrollbar-thumb {
  background: var(--line-700);
}

.page-home .fan-item {
  flex: 0 0 260px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--ink-800);
  border-left: 2px solid var(--green-500);
}

.page-home .fan-item__time {
  font-size: 13px;
  color: var(--green-300);
  letter-spacing: 0.04em;
}

.page-home .fan-item__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--silver-200);
}

/* ---------- 核校节奏 ---------- */
.page-home .home-verify__grid {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .page-home .home-verify__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 52px;
  }
}

.page-home .home-verify__figure {
  margin: 0;
}

.page-home .home-verify__figure .figure__media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-700);
  aspect-ratio: 25 / 18;
}

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

.page-home .timeline {
  position: relative;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-700);
}

.page-home .timeline__step {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 15px 0 15px 14px;
  border-bottom: 1px solid var(--line-700);
}

.page-home .timeline__step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 6px;
  height: 6px;
  background: var(--orange-500);
}

.page-home .timeline__time {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-500);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.page-home .timeline__text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver-200);
}

@media (max-width: 560px) {
  .page-home .timeline__step {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- 三种进入方式 ---------- */
.page-home .start-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

@media (min-width: 900px) {
  .page-home .start-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
  }

  .page-home .start-card:nth-child(1) {
    grid-column: span 5;
  }

  .page-home .start-card:nth-child(2) {
    grid-column: span 4;
  }

  .page-home .start-card:nth-child(3) {
    grid-column: span 3;
  }
}

.page-home .start-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 24px;
  background: var(--ink-800);
  border: 1px solid var(--line-700);
  text-decoration: none;
  transition: border-color var(--ease), background var(--ease), transform var(--ease);
}

.page-home .start-card:hover,
.page-home .start-card:focus-visible {
  background: var(--ink-900);
  border-color: var(--green-500);
  transform: translateY(-2px);
  outline: none;
}

.page-home .start-card__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--orange-500);
}

.page-home .start-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--white-100);
}

.page-home .start-card__text {
  margin: 0;
  flex: 1 1 auto;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--silver-200);
}

.page-home .start-card__go {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green-500);
  letter-spacing: 0.02em;
}

.page-home .start-card:hover .start-card__go,
.page-home .start-card:focus-visible .start-card__go {
  color: var(--green-300);
}

.page-home .home-start__tail {
  margin: 26px 0 40px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--silver-500);
}

.page-home .home-start__link {
  color: var(--green-500);
  text-decoration: none;
  border-bottom: 1px solid var(--line-700);
}

.page-home .home-start__link:hover {
  color: var(--green-300);
  border-bottom-color: var(--green-300);
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .rail__tick,
  .page-home .match__detail,
  .page-home .league-row,
  .page-home .start-card {
    transition: none;
  }

  .page-home .start-card:hover,
  .page-home .start-card:focus-visible {
    transform: none;
  }
}
