/* ============================================================
   BOB赛事 · 首页
   作用域：.page-home
   ============================================================ */

.page-home {
  display: block;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  position: relative;
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 76px);
  overflow: hidden;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line-faint) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-faint) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 84%);
          mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 84%);
}

.page-home .home-hero .container {
  position: relative;
  z-index: 1;
}

.page-home .home-hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  margin-top: 22px;
}

.page-home .home-hero h1 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 5.4vw, 4.1rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.page-home .home-hero .lead {
  margin: 20px 0 0;
  max-width: 46ch;
  color: var(--text-2);
}

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

.page-home .home-hero__note {
  margin: 18px 0 0;
  max-width: 44ch;
  font-size: .8125rem;
  line-height: 1.75;
  color: var(--text-3);
}

.page-home .home-hero__visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ink-800);
  border: 1px solid var(--line-soft);
}

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

.page-home .home-hero__trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-home .home-hero__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(8, 26, 23, .74);
  border-top: 1px solid var(--line-faint);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--text-2);
}

.page-home .home-hero__caption-v {
  color: var(--signal);
  letter-spacing: .2em;
}

@media (min-width: 960px) {
  .page-home .home-hero__split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 4vw, 68px);
  }
}

/* ---------- 联赛筛选 ---------- */
.page-home .home-filter {
  padding: clamp(40px, 6vw, 72px) 0 0;
}

.page-home .home-filter__rows {
  margin-top: 28px;
  border-bottom: 1px solid var(--line-faint);
}

.page-home .home-filter__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line-faint);
}

.page-home .home-filter__label {
  flex: 0 0 100%;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (min-width: 720px) {
  .page-home .home-filter__label {
    flex: 0 0 104px;
  }
}

/* ---------- 赛程卡片流 ---------- */
.page-home .home-fixtures {
  padding: clamp(40px, 6vw, 76px) 0;
}

.page-home .fixtures {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.page-home .fixture {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: var(--ink-800);
  border: 1px solid var(--line-faint);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .fixture:hover {
  border-color: var(--line-soft);
  background: var(--ink-700);
}

.page-home .fixture__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-faint);
}

.page-home .fixture__league {
  font-size: .8125rem;
  letter-spacing: .04em;
  color: var(--text-2);
}

.page-home .fixture__status {
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .16em;
  color: var(--signal);
  white-space: nowrap;
}

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

.page-home .fixture__team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.page-home .fixture__team--away {
  justify-content: flex-end;
  text-align: right;
}

.page-home .fixture__name {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .fixture__score {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-home .fixture__colon {
  margin: 0 .12em;
  color: var(--text-3);
}

.page-home .fixture__poss {
  display: grid;
  gap: 8px;
}

.page-home .fixture__poss-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.page-home .fixture__poss .possession {
  height: 6px;
}

.page-home .fixture__poss-nums {
  display: flex;
  justify-content: space-between;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  opacity: .72;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}

.page-home .fixture__poss:hover .fixture__poss-nums {
  opacity: 1;
  color: var(--text);
}

.page-home .home-fixtures__more {
  margin: 32px 0 0;
}

@media (min-width: 680px) {
  .page-home .fixtures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* ---------- 当季索引 ---------- */
.page-home .home-season {
  padding: clamp(44px, 6vw, 84px) 0;
  background: var(--wine);
  border-top: 1px solid var(--line-faint);
  border-bottom: 1px solid var(--line-faint);
}

.page-home .home-season .section__head .lead {
  color: rgba(230, 237, 236, .78);
}

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

.page-home .home-season__col-title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(230, 237, 236, .6);
}

.page-home .archive-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(230, 237, 236, .18);
}

.page-home .archive-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(230, 237, 236, .14);
}

.page-home .archive-item__year {
  font-family: var(--font-mono);
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--text);
}

.page-home .archive-item__meta {
  font-size: .75rem;
  letter-spacing: .14em;
  color: rgba(230, 237, 236, .56);
}

.page-home .home-season__figure {
  margin: 40px 0 0;
}

@media (min-width: 900px) {
  .page-home .home-season__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 72px);
  }
}

/* ---------- 赛后刷新 ---------- */
.page-home .home-refresh {
  padding: clamp(44px, 6vw, 84px) 0;
}

.page-home .refresh-panel {
  padding: clamp(24px, 4vw, 48px);
  background: var(--ink-800);
  border: 1px solid var(--line-soft);
  border-left: 2px solid var(--signal);
}

.page-home .refresh-panel .lead {
  margin: 16px 0 0;
  max-width: 62ch;
  color: var(--text-2);
}

.page-home .refresh-track {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
}

.page-home .refresh-track__item {
  position: relative;
  display: grid;
  gap: 6px;
  padding-left: 18px;
  border-left: 1px solid var(--line-soft);
}

.page-home .refresh-track__time {
  font-size: .75rem;
  letter-spacing: .14em;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}

.page-home .refresh-track__desc {
  font-size: .875rem;
  line-height: 1.72;
  color: var(--text-2);
}

.page-home .refresh-track__dot {
  display: none;
}

.page-home .refresh-panel__foot {
  margin: 32px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-faint);
  font-size: .875rem;
  line-height: 1.8;
  color: var(--text-2);
}

.page-home .refresh-panel__foot .t-mono {
  color: var(--signal);
}

@media (min-width: 780px) {
  .page-home .refresh-track {
    position: relative;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-top: 34px;
  }

  .page-home .refresh-track::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--signal) 0%, rgba(59, 240, 220, .08) 100%);
  }

  .page-home .refresh-track__item {
    padding: 0 24px 0 0;
    border-left: 0;
  }

  .page-home .refresh-track__dot {
    display: block;
    position: absolute;
    top: -34px;
    left: 0;
    width: 10px;
    height: 10px;
    background: var(--signal);
  }
}

/* ---------- 客户端三端 ---------- */
.page-home .home-apps {
  padding: clamp(40px, 6vw, 84px) 0;
  border-top: 1px solid var(--line-faint);
}

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

.page-home .home-apps__copy .lead {
  margin: 18px 0 0;
  max-width: 48ch;
  color: var(--text-2);
}

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

.page-home .home-apps__list li {
  position: relative;
  padding-left: 20px;
  font-size: .9375rem;
  line-height: 1.72;
  color: var(--text-2);
}

.page-home .home-apps__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .74em;
  width: 9px;
  height: 1px;
  background: var(--signal);
}

.page-home .home-apps__copy .btn {
  margin-top: 28px;
}

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

.page-home .app-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: clamp(32px, 5vw, 56px);
}

.page-home .app-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 20px;
  background: var(--ink-800);
  border: 1px solid var(--line-faint);
  border-top: 2px solid var(--signal);
}

.page-home .app-card:nth-child(2) {
  border-top-color: var(--text-3);
}

.page-home .app-card:nth-child(3) {
  border-top-color: var(--line-soft);
}

.page-home .app-card__index {
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--signal);
}

.page-home .app-card:nth-child(2) .app-card__index,
.page-home .app-card:nth-child(3) .app-card__index {
  color: var(--text-3);
}

.page-home .app-card h3 {
  margin: 0;
  color: var(--text);
}

.page-home .app-card p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.75;
  color: var(--text-2);
}

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

@media (min-width: 900px) {
  .page-home .home-apps__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(32px, 5vw, 64px);
  }
}

/* ---------- 数据概览 ---------- */
.page-home .home-stats {
  padding: clamp(40px, 6vw, 84px) 0;
  border-top: 1px solid var(--line-faint);
}

.page-home .home-stats__figure {
  margin: 32px 0 0;
  border: 1px solid var(--line-faint);
  overflow: hidden;
  background: var(--ink-800);
}

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

.page-home .home-stats__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .stat-cell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-faint);
}

.page-home .stat-cell__label {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.page-home .stat-cell__value {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-home .stat-cell__unit {
  margin-left: .34em;
  font-size: .8125rem;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--text-2);
}

.page-home .home-stats__link {
  margin: 32px 0 0;
}

@media (min-width: 700px) {
  .page-home .home-stats__grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

  .page-home .stat-cell {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 24px 20px;
    border-bottom: 0;
    border-right: 1px solid var(--line-faint);
  }

  .page-home .stat-cell:last-child {
    border-right: 0;
  }
}

/* ---------- 通用收尾 ---------- */
.page-home img {
  max-width: 100%;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .fixture,
  .page-home .fixture__poss-nums {
    transition: none;
  }
}
