.page-home {
  display: block;
  background: var(--abyss);
  color: var(--mist);
  overflow-x: hidden;
}

.page-home a:focus-visible,
.page-home button:focus-visible,
.page-home [tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---------- 首屏 ---------- */

.page-home .home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 104px 0 0;
  background: var(--abyss);
  border-bottom: 1px solid var(--line);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.page-home .home-hero__bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.3) brightness(0.34) contrast(1.04);
}

.page-home .home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5, 11, 24, 0.58) 0%, rgba(5, 11, 24, 0.88) 60%, var(--abyss) 100%);
}

.page-home .home-hero__frame {
  position: absolute;
  top: 88px;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 22px;
  z-index: 1;
  pointer-events: none;
}

.page-home .hframe-seg {
  position: absolute;
  display: block;
  background: var(--line);
}

.page-home .hframe-seg--t {
  top: 0;
  left: 0;
  width: 34%;
  height: 1px;
}

.page-home .hframe-seg--l {
  top: 0;
  left: 0;
  width: 1px;
  height: 46%;
}

.page-home .hframe-seg--b {
  bottom: 0;
  right: 0;
  width: 30%;
  height: 1px;
}

.page-home .hframe-seg--r {
  bottom: 0;
  right: 0;
  width: 1px;
  height: 40%;
}

.page-home .hframe-label {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--tide);
  white-space: nowrap;
}

.page-home .hframe-label--tl {
  top: -16px;
  left: 0;
}

.page-home .hframe-label--br {
  bottom: -16px;
  right: 0;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 34px;
  padding-bottom: 58px;
}

.page-home .home-hero__kicker {
  margin: 0;
  color: var(--cyan);
}

.page-home .home-hero__title {
  margin: 20px 0 0;
  max-width: 17ch;
  font-size: clamp(36px, 8.2vw, 112px);
  font-weight: 200;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.page-home .home-hero__lede {
  margin: 26px 0 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--mist);
}

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

.page-home .home-hero__stat dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--tide);
}

.page-home .home-hero__stat dd {
  margin: 9px 0 0;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

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

@media (min-width: 720px) {
  .page-home .home-hero {
    padding-top: 128px;
  }

  .page-home .home-hero__frame {
    top: 112px;
    bottom: 26px;
  }

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

@media (min-width: 1500px) {
  .page-home .home-hero__frame {
    left: calc((100% - var(--maxw)) / 2 + var(--gutter));
    right: calc((100% - var(--maxw)) / 2 + var(--gutter));
  }
}

/* ---------- 比分条 ---------- */

.page-home .home-instrip {
  background: var(--deepsea);
  border-bottom: 1px solid var(--line);
}

.page-home .home-instrip__inner {
  display: grid;
  gap: 14px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.page-home .home-instrip__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.page-home .home-instrip__track {
  display: flex;
  gap: 10px;
  min-width: max-content;
}

.page-home .home-instrip .scorechip {
  flex: 0 0 auto;
  min-width: 208px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(16, 35, 63, 0.7);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), transform 0.18s var(--ease);
}

.page-home .home-instrip .scorechip:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: rgba(16, 35, 63, 0.88);
}

.page-home .home-instrip .scorechip__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--tide);
}

.page-home .home-instrip .scorechip__teams {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--mist);
}

.page-home .home-instrip .scorechip__score {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .home-instrip__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.page-home .home-instrip__note {
  font-size: 13px;
  color: var(--archive);
}

@media (min-width: 900px) {
  .page-home .home-instrip__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
  }

  .page-home .home-instrip__cta {
    flex-wrap: nowrap;
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }
}

/* ---------- 赛程日历 ---------- */

.page-home .home-cal {
  padding: 76px 0 64px;
  background: var(--abyss);
}

.page-home .home-cal__head {
  display: grid;
  gap: 18px;
}

.page-home .home-cal__title {
  margin: 12px 0 0;
  max-width: 22ch;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-cal__views {
  display: flex;
  gap: 8px;
}

.page-home .home-cal__lede {
  max-width: 52ch;
  margin: 26px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .home-cal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
}

.page-home .calcell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 116px;
  padding: 14px 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(16, 35, 63, 0.62);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-home .calcell:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: rgba(16, 35, 63, 0.86);
}

.page-home .calcell--focus {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(255, 106, 43, 0.15) 0%, rgba(16, 35, 63, 0.9) 100%);
}

.page-home .calcell__dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: conic-gradient(from 40deg, var(--cyan), rgba(79, 227, 209, 0.16));
  animation: home-breath 2.4s var(--ease) infinite;
}

@keyframes home-breath {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.38;
  }
}

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

.page-home .calcell__day {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--tide);
}

.page-home .calcell__count {
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.page-home .calcell__unit {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--archive);
}

.page-home .calcell__flag {
  margin: auto 0 0;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--orange);
}

.page-home .home-cal__note {
  margin: 22px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--archive);
}

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

@media (min-width: 860px) {
  .page-home .home-cal__head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 24px;
  }
}

@media (min-width: 980px) {
  .page-home .home-cal {
    padding: 96px 0 80px;
  }

  .page-home .home-cal__grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
  }
}

/* ---------- 四类模块 ---------- */

.page-home .home-modules {
  padding: 76px 0;
  background: var(--deepsea);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-modules__title {
  margin: 12px 0 0;
  max-width: 26ch;
  font-size: clamp(26px, 3.6vw, 44px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-modules__lede {
  max-width: 54ch;
  margin: 20px 0 0;
  font-size: 16px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .home-modules__visual {
  margin: 30px 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--abyss);
}

.page-home .home-modules__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 520;
  object-fit: cover;
  filter: saturate(0.62) brightness(0.86);
}

.page-home .home-modules__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.page-home .home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(16, 35, 63, 0.66);
  text-decoration: none;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-home .home-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: rgba(16, 35, 63, 0.88);
}

.page-home .home-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 22px;
  width: 44px;
  height: 2px;
  background: var(--orange);
}

.page-home .home-card--odds::before {
  background: var(--cyan);
}

.page-home .home-card--draw::before {
  background: var(--valid);
}

.page-home .home-card--rank::before {
  background: var(--alert);
}

.page-home .home-card .card__index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--tide);
}

.page-home .home-card .card__value {
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}

.page-home .home-card .card__title {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.page-home .home-card .card__foot {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.72;
  color: var(--mist);
}

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

  .page-home .home-card--sched {
    grid-column: span 5;
  }

  .page-home .home-card--odds {
    grid-column: span 7;
  }

  .page-home .home-card--draw {
    grid-column: span 7;
  }

  .page-home .home-card--rank {
    grid-column: span 5;
  }
}

@media (min-width: 980px) {
  .page-home .home-modules {
    padding: 96px 0;
  }
}

/* ---------- 刷新与存档 ---------- */

.page-home .home-refresh {
  padding: 76px 0;
  background: var(--abyss);
}

.page-home .home-refresh__inner {
  display: grid;
  gap: 34px;
}

.page-home .home-refresh__title {
  margin: 12px 0 0;
  max-width: 24ch;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.page-home .home-refresh__prose {
  max-width: 50ch;
  margin: 20px 0 0;
}

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

.page-home .home-refresh__list li {
  display: grid;
  gap: 6px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .home-refresh__key {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

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

.page-home .home-archive .panel__trigger {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}

.page-home .home-archive .panel__trigger:hover {
  color: var(--orange);
}

.page-home .home-archive .panel__body {
  padding-top: 16px;
}

.page-home .home-archive__list {
  margin: 14px 0 0;
  padding: 0 0 0 18px;
  list-style: none;
}

.page-home .home-archive__list li {
  position: relative;
  padding: 8px 0 8px 16px;
  font-size: 14px;
  line-height: 1.72;
  color: var(--archive);
}

.page-home .home-archive__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 6px;
  height: 1px;
  background: var(--tide);
}

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

.page-home .home-refresh__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--deepsea);
  filter: saturate(0.5) brightness(0.8);
}

.page-home .home-refresh__caption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--archive);
}

@media (min-width: 560px) {
  .page-home .home-refresh__list li {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 4px 18px;
    align-items: baseline;
  }
}

@media (min-width: 900px) {
  .page-home .home-refresh {
    padding: 96px 0;
  }

  .page-home .home-refresh__inner {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
    gap: 52px;
    align-items: start;
  }
}

/* ---------- 版本说明与分流 ---------- */

.page-home .home-upgrade {
  padding: 76px 0 88px;
  background: var(--deepsea);
  border-top: 1px solid var(--line);
}

.page-home .home-upgrade__inner {
  display: grid;
  gap: 34px;
}

.page-home .home-upgrade__fig {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--abyss);
}

.page-home .home-upgrade__fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.42) brightness(0.76);
}

.page-home .home-upgrade__title {
  margin: 12px 0 0;
  max-width: 24ch;
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 300;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--paper);
}

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

.page-home .home-upgrade__diffs li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .home-upgrade__diffs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 12px;
  height: 2px;
  background: var(--orange);
}

.page-home .home-upgrade__team {
  max-width: 56ch;
  margin: 24px 0 0;
}

.page-home .home-upgrade__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-upgrade__links a {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.page-home .home-upgrade__links a:hover {
  border-color: var(--cyan);
  color: var(--paper);
  background: rgba(79, 227, 209, 0.08);
}

@media (min-width: 900px) {
  .page-home .home-upgrade {
    padding: 96px 0 104px;
  }

  .page-home .home-upgrade__inner {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 56px;
    align-items: start;
  }
}
