.page-home {
  --home-rule: var(--cyan-line);
  --home-gap: clamp(20px, 3vw, 36px);
  display: block;
  background: var(--abyss);
  color: var(--mist);
  font-family: var(--font-body);
}

.page-home .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}

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

.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 5vw, 60px) 0 clamp(34px, 6vw, 76px);
  border-bottom: 1px solid var(--home-rule);
}

.page-home .hero__bg {
  position: absolute;
  top: -6%;
  right: -14%;
  width: min(1080px, 92%);
  height: auto;
  opacity: .26;
  object-fit: cover;
  pointer-events: none;
  z-index: -1;
  -webkit-mask-image: linear-gradient(205deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 80%);
  mask-image: linear-gradient(205deg, #000 0%, rgba(0,0,0,.35) 55%, transparent 80%);
}

.page-home .hero__ctx {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 clamp(18px, 3vw, 30px);
  padding: 7px 15px;
  border: 1px solid var(--home-rule);
  border-radius: var(--radius-pill);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--steel);
}

.page-home .hero__ctx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}

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

.page-home .hero__rail {
  border-left: 1px solid var(--home-rule);
  padding-left: 14px;
}

.page-home .hero__rail-title {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--steel);
}

.page-home .hero__rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.page-home .hero__rail-list::-webkit-scrollbar { display: none; }

.page-home .hero__rail-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--steel);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .hero__rail-list a:hover,
.page-home .hero__rail-list a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .hero__rail-list .num {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cyan);
}

.page-home .hero__title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(34px, 6.2vw, 62px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--mist);
}

.page-home .hero__title-line { display: block; }
.page-home .hero__title-line--accent { color: var(--cyan); }

.page-home .hero__lead {
  max-width: 60ch;
  margin: 0 0 22px;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.78;
  color: var(--mist-soft);
}

.page-home .hero__entries {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 clamp(24px, 4vw, 38px);
  padding: 0;
}

.page-home .hero__entries a {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--home-rule);
  border-radius: var(--radius-pill);
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  background: rgba(13, 43, 74, .5);
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.page-home .hero__entries a:hover,
.page-home .hero__entries a:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(61, 242, 210, .1);
}

/* ---------- 比分带 ---------- */

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

.page-home .score-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--steel-line);
  background: linear-gradient(158deg, rgba(13, 43, 74, .95), rgba(6, 26, 46, .92));
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}

.page-home .score-card:hover,
.page-home .score-card:focus-within {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.page-home .score-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.page-home .score-card__round {
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--amber);
  white-space: nowrap;
}

.page-home .score-card__match {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--mist);
}

.page-home .score-card__time {
  margin: 0;
  font-size: 13px;
  color: var(--steel);
}

.page-home .score-card__time .num {
  color: var(--mist);
  font-size: 14px;
}

.page-home .score-card__nodes-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}

.page-home .score-card__nodes-inner { overflow: hidden; }

.page-home .score-card__nodes {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px dashed var(--steel-line);
  font-size: 13px;
  line-height: 1.72;
  color: var(--steel);
  opacity: 0;
  transition: opacity .25s var(--ease) .06s;
}

.page-home .score-card:hover .score-card__nodes-wrap,
.page-home .score-card:focus-within .score-card__nodes-wrap {
  grid-template-rows: 1fr;
}

.page-home .score-card:hover .score-card__nodes,
.page-home .score-card:focus-within .score-card__nodes {
  opacity: 1;
}

@media (hover: none) {
  .page-home .score-card__nodes-wrap { grid-template-rows: 1fr; }
  .page-home .score-card__nodes { opacity: 1; }
}

/* ---------- 区块头 ---------- */

.page-home .sec-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 4px;
  align-items: baseline;
  padding-top: 14px;
  margin-bottom: clamp(20px, 3.2vw, 34px);
  border-top: 1px solid var(--home-rule);
}

.page-home .sec-head__idx {
  grid-row: 1 / span 2;
  margin: 0;
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--cyan);
}

.page-home .sec-head__title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(23px, 3.2vw, 34px);
  line-height: 1.2;
  color: var(--mist);
}

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

/* ---------- 对照区 ---------- */

.page-home .compare {
  padding: clamp(38px, 6vw, 88px) 0;
}

.page-home .tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  margin-bottom: 22px;
  border: 1px solid var(--steel-line);
  border-radius: var(--radius-pill);
}

.page-home .tabs__btn {
  border: 0;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.page-home .tabs__btn:hover { color: var(--mist); }

.page-home .tabs__btn[aria-selected="true"] {
  background: var(--cyan-soft);
  color: var(--cyan);
}

.page-home .tab-panel[hidden] { display: none; }

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

.page-home .pair__side {
  padding: 22px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--steel-line);
  background: var(--abyss-2);
}

.page-home .pair__side + .pair__side {
  background: linear-gradient(160deg, rgba(27, 76, 99, .55), rgba(13, 43, 74, .9));
}

.page-home .pair__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 15px;
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--cyan);
}

.page-home .pair__label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

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

.page-home .pair__list li {
  position: relative;
  padding-left: 17px;
  font-size: 15px;
  line-height: 1.72;
  color: var(--mist-soft);
}

.page-home .pair__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: .85;
}

/* ---------- 联赛与档案 ---------- */

.page-home .leagues {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 92px) 0;
  border-top: 1px solid var(--home-rule);
  border-bottom: 1px solid var(--home-rule);
}

.page-home .leagues__band {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-home .leagues__band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
  animation: page-home-drift 24s ease-in-out infinite;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.page-home .leagues .shell {
  position: relative;
  z-index: 1;
}

.page-home .leagues__intro {
  max-width: 62ch;
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--mist-soft);
}

.page-home .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 10px;
}

.page-home .chip {
  border: 1px solid var(--steel-line);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  background: transparent;
  color: var(--steel);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.page-home .chip:hover {
  color: var(--mist);
  border-color: var(--cyan-line);
}

.page-home .chip[aria-pressed="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--abyss);
}

.page-home .chip--orange[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #240d00;
}

.page-home .leagues__count {
  margin: 0;
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--steel);
}

.page-home .league-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.page-home .league-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--steel-line);
  background: rgba(13, 43, 74, .74);
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-home .league-item:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.page-home [data-filter-item][hidden] { display: none; }

.page-home .league-item__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--mist);
}

.page-home .league-item__meta {
  margin: 0;
  font-size: 13px;
  color: var(--steel);
}

.page-home .filter-empty {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--steel);
}

.page-home .archive {
  margin-top: 28px;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--home-rule);
  background: linear-gradient(120deg, rgba(27, 76, 99, .45), rgba(6, 26, 46, .2));
}

.page-home .archive__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 800;
  color: var(--mist);
}

.page-home .archive__note {
  max-width: 64ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--mist-soft);
}

.page-home .archive__rounds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.page-home .archive__rounds li {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--steel-line);
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--steel);
}

/* ---------- 季票对照 ---------- */

.page-home .season-pass {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 8vw, 110px) 0;
  background: linear-gradient(180deg, var(--abyss) 0%, #08203a 52%, var(--abyss) 100%);
  border-bottom: 1px solid var(--home-rule);
}

.page-home .season-pass__scan {
  position: absolute;
  top: 0;
  left: 0;
  width: 32%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: page-home-scan 11s linear infinite;
}

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

.page-home .season-pass__figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-home .season-pass__num {
  display: block;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: clamp(78px, 15vw, 96px);
  line-height: .86;
  letter-spacing: -.05em;
  color: var(--orange);
}

.page-home .season-pass__figure-note {
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--steel);
}

.page-home .season-pass__title {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(23px, 3.2vw, 34px);
  line-height: 1.22;
  color: var(--mist);
}

.page-home .season-pass__text {
  max-width: 60ch;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist-soft);
}

.page-home .season-pass__stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--amber);
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--amber);
}

/* ---------- 客厅平板 ---------- */

.page-home .living-room {
  padding: clamp(38px, 6vw, 96px) 0;
}

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

.page-home .living-room__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--home-rule);
}

.page-home .living-room__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.page-home .living-room__title {
  margin: 10px 0 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(23px, 3.2vw, 32px);
  line-height: 1.24;
  color: var(--mist);
}

.page-home .living-room__text {
  max-width: 56ch;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--mist-soft);
}

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

.page-home .living-room__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--mist-soft);
}

.page-home .living-room__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 9px;
  height: 9px;
  border: 1px solid var(--cyan);
  border-radius: 2px;
}

.page-home .living-room .sec-head__idx {
  display: block;
  margin: 0;
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--cyan);
}

/* ---------- 新手入口 ---------- */

.page-home .starter {
  padding: clamp(38px, 6vw, 92px) 0 clamp(46px, 7vw, 104px);
}

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

.page-home .starter__q {
  display: block;
  padding: 22px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--steel-line);
  background: var(--abyss-2);
  color: var(--mist);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}

.page-home .starter__q:hover,
.page-home .starter__q:focus-visible {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.page-home .starter__q::after {
  content: "→";
  display: block;
  margin-top: 14px;
  font-family: var(--font-num);
  color: var(--cyan);
}

.page-home .starter__more {
  max-width: 66ch;
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--steel);
}

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

/* ---------- 水纹收束 ---------- */

.page-home .home-ripple {
  position: relative;
  height: clamp(88px, 13vw, 170px);
  overflow: hidden;
  border-top: 1px solid var(--home-rule);
}

.page-home .home-ripple img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .24;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}

@keyframes page-home-scan {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(330%); }
}

@keyframes page-home-drift {
  0% { transform: translate3d(0, 0, 0) scale(1.04); }
  50% { transform: translate3d(-1.6%, -1%, 0) scale(1.07); }
  100% { transform: translate3d(0, 0, 0) scale(1.04); }
}

/* ---------- 断点 ---------- */

@media (min-width: 640px) {
  .page-home .league-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-home .pair { gap: 18px; }
}

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

@media (min-width: 860px) {
  .page-home .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .page-home .pair__side { padding: 26px 24px; }
}

@media (min-width: 900px) {
  .page-home .living-room__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
  }
}

@media (min-width: 960px) {
  .page-home .hero__grid {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
  }

  .page-home .hero__rail {
    position: sticky;
    top: 96px;
    align-self: start;
  }

  .page-home .hero__rail-list {
    flex-direction: column;
    gap: 10px;
    overflow: visible;
  }

  .page-home .hero__rail-list a { white-space: normal; }
}

@media (min-width: 1024px) {
  .page-home .league-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-home .starter__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .page-home .season-pass__grid {
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 60px;
  }
}

@media (max-width: 700px) {
  .page-home .hero__bg {
    right: -38%;
    width: 150%;
    opacity: .16;
  }

  .page-home .sec-head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }

  .page-home .sec-head__idx { grid-row: auto; }
}

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