.page-home {
  --home-grid: rgba(28, 71, 103, .38);
  --home-diag: linear-gradient(116deg, rgba(6, 26, 46, .98) 0 36%, rgba(6, 26, 46, .24) 58%, rgba(6, 26, 46, .88) 100%);
  display: block;
  background: var(--night);
  color: var(--score);
  overflow-x: clip;
}

/* ================= 首屏 ================= */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 15vw, 128px) 0 clamp(64px, 10vw, 116px);
  background:
    radial-gradient(120% 80% at 86% 10%, rgba(12, 42, 71, .95) 0%, rgba(6, 26, 46, 0) 62%),
    radial-gradient(90% 70% at 6% 92%, rgba(123, 91, 255, .22) 0%, rgba(6, 26, 46, 0) 62%),
    var(--night);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - clamp(26px, 5vw, 76px)), 0 100%);
}

.page-home .hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
  z-index: -2;
}

.page-home .hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 26, 46, .58) 0%, rgba(6, 26, 46, .18) 42%, rgba(6, 26, 46, .95) 100%),
    var(--home-diag);
}

.page-home .hero__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero__trail line {
  stroke: var(--green);
  stroke-width: 1;
  opacity: .24;
  stroke-dasharray: 5 15;
}

.page-home .hero__trail line:last-child {
  stroke: var(--purple);
  opacity: .18;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(34px, 6vw, 56px);
  align-items: center;
}

.page-home .hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 10.5vw, 92px);
  line-height: .96;
  letter-spacing: -.02em;
  color: var(--score);
  margin: 14px 0 18px;
}

.page-home .hero__lede {
  max-width: 34ch;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.75;
  color: var(--mist);
}

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

/* 比分牌 */
.page-home .score-card {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(158deg, rgba(12, 42, 71, .95), rgba(6, 26, 46, .97));
  box-shadow: 0 40px 90px -46px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(234, 246, 255, .06);
}

.page-home .score-card > *:not(.score-card__flow) {
  position: relative;
  z-index: 1;
}

.page-home .score-card__flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
  pointer-events: none;
}

.page-home .score-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--home-grid);
}

.page-home .score-views {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.page-home .score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(28, 71, 103, .24);
  transition: border-color var(--t), background var(--t);
}

.page-home .score-row:hover {
  border-color: var(--green);
  background: rgba(200, 255, 61, .07);
}

.page-home .score-row__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(200, 255, 61, .7);
  animation: home-pulse 1.8s ease-out infinite;
}

.page-home .score-row__dot--purple {
  background: var(--purple);
  box-shadow: none;
  animation: none;
}

.page-home .score-row__dot--mist {
  background: var(--mist);
  box-shadow: none;
  animation: none;
}

.page-home .score-row__league {
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--score);
}

.page-home .score-row__phase {
  margin-left: auto;
  font-size: 13px;
  color: var(--mist);
}

.page-home .score-card__note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--home-grid);
  font-size: 13px;
  line-height: 1.7;
  color: var(--mist);
}

@keyframes home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 61, .65); }
  70% { box-shadow: 0 0 0 9px rgba(200, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0); }
}

/* ================= 数据流横条 ================= */
.page-home .ticker {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(12, 42, 71, .9), rgba(123, 91, 255, .18), rgba(12, 42, 71, .9));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.page-home .ticker__track {
  display: flex;
  align-items: center;
  gap: clamp(26px, 5vw, 62px);
  width: max-content;
  animation: home-marquee 40s linear infinite;
}

.page-home .ticker:hover .ticker__track {
  animation-play-state: paused;
}

.page-home .ticker__item {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--mist);
  white-space: nowrap;
}

.page-home .ticker__item::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 10px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--green);
}

@keyframes home-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ================= 通用章节头 ================= */
.page-home .section-head {
  position: relative;
  margin-bottom: clamp(26px, 4vw, 48px);
}

.page-home .section-head__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(58px, 13vw, 126px);
  line-height: .78;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line);
  margin-bottom: -0.14em;
  user-select: none;
}

.page-home .section-title {
  margin: 8px 0 10px;
  font-family: var(--font-heading);
  font-size: clamp(25px, 4.4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--score);
}

.page-home .section-lede {
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.8;
  color: var(--mist);
}

/* ================= 今日赛场 ================= */
.page-home .fixtures {
  padding: clamp(52px, 9vw, 104px) 0;
  background:
    repeating-linear-gradient(90deg, var(--home-grid) 0 1px, transparent 1px 96px),
    var(--night);
  background-size: 96px 100%, auto;
}

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

.page-home .fixture {
  display: grid;
  gap: 10px;
  padding: clamp(16px, 2.6vw, 24px);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 42, 71, .55);
  transition: border-color var(--t), background var(--t);
}

.page-home .fixture:hover {
  background: rgba(12, 42, 71, .8);
}

.page-home .fixture--live {
  border-left-color: var(--green);
}

.page-home .fixture--soon {
  border-left-color: var(--orange);
}

.page-home .fixture--done {
  border-left-color: var(--purple);
}

.page-home .fixture--next {
  border-left-color: var(--mist);
}

.page-home .fixture__key {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--score);
}

.page-home .fixture__body {
  display: grid;
  gap: 6px;
}

.page-home .fixture__body strong {
  font-family: var(--font-heading);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  color: var(--score);
}

.page-home .fixture__body span {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mist);
}

/* ================= 入口矩阵 ================= */
.page-home .matrix {
  padding: clamp(52px, 9vw, 104px) 0 clamp(60px, 10vw, 120px);
  background: var(--night);
}

.page-home .matrix__grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 26px);
}

.page-home .mate {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(12, 42, 71, .82), rgba(6, 26, 46, .92));
  transition: border-color var(--t), box-shadow var(--t), transform var(--t);
}

.page-home .mate:hover {
  border-color: var(--green);
  box-shadow: 0 0 0 1px rgba(200, 255, 61, .22), 0 26px 60px -34px rgba(200, 255, 61, .35);
  transform: translateY(-4px);
}

.page-home .mate__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.page-home .mate p {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .mate .link-sweep {
  margin-top: auto;
  align-self: flex-start;
}

/* ================= 联赛筛选 ================= */
.page-home .finder {
  padding-bottom: clamp(52px, 9vw, 104px);
  background: var(--night);
}

.page-home .finder__panel {
  position: relative;
  display: grid;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(24px, 4.4vw, 52px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 88% 8%, rgba(123, 91, 255, .22) 0%, rgba(6, 26, 46, 0) 58%),
    linear-gradient(150deg, rgba(12, 42, 71, .92), rgba(6, 26, 46, .96));
  overflow: hidden;
}

.page-home .finder__copy p {
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.82;
  color: var(--mist);
}

.page-home .finder__tools {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .finder__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(6, 26, 46, .78);
  transition: border-color var(--t), box-shadow var(--t);
}

.page-home .finder__bar:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, .16);
}

.page-home .finder__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

.page-home .finder__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.page-home .finder__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--score);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}

.page-home .finder__input::placeholder {
  color: rgba(159, 179, 200, .78);
}

.page-home .finder__hint {
  flex: 0 0 auto;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--green);
}

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

.page-home .finder__more {
  font-size: 13.5px;
}

/* ================= 移动端 ================= */
.page-home .mobile {
  padding: clamp(52px, 9vw, 104px) 0;
  background:
    linear-gradient(200deg, rgba(255, 106, 26, .1) 0%, rgba(6, 26, 46, 0) 46%),
    linear-gradient(0deg, rgba(12, 42, 71, .7), rgba(6, 26, 46, .95));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .mobile__inner {
  display: grid;
  gap: clamp(34px, 6vw, 60px);
  align-items: center;
}

.page-home .mobile__copy p {
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.82;
  color: var(--mist);
}

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

.page-home .mobile__points li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--score);
}

.page-home .mobile__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
}

.page-home .mobile__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

.page-home .mobile__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  opacity: .28;
}

.page-home .phone {
  position: relative;
  width: min(268px, 78vw);
  padding: 18px 16px 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(170deg, rgba(12, 42, 71, .97), rgba(6, 26, 46, .99));
  box-shadow: 0 44px 90px -40px rgba(0, 0, 0, .95);
  transform: rotate(2.4deg);
  overflow: hidden;
}

.page-home .phone__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--home-grid);
}

.page-home .phone__brand {
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--score);
}

.page-home .phone__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--green);
}

.page-home .phone__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: home-pulse 1.8s ease-out infinite;
}

.page-home .phone__rows {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.page-home .phone__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(28, 71, 103, .7);
  border-radius: var(--radius-md);
  background: rgba(28, 71, 103, .22);
}

.page-home .phone__row b {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--score);
}

.page-home .phone__row em {
  font-style: normal;
  font-size: 12px;
  color: var(--green);
}

.page-home .phone__row--dim em {
  color: var(--mist);
}

.page-home .phone__pulse {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--purple), var(--orange));
  transform-origin: left center;
  animation: home-sweep 3.4s cubic-bezier(.4, 0, .2, 1) infinite;
}

@keyframes home-sweep {
  0% { transform: scaleX(.06); opacity: .9; }
  55% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: .35; }
}

/* ================= 反馈 ================= */
.page-home .feedback {
  padding: clamp(52px, 9vw, 104px) 0 clamp(60px, 10vw, 116px);
  background: var(--night);
}

.page-home .feedback__grid {
  display: grid;
  gap: 12px;
}

.page-home .fb {
  position: relative;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(12, 42, 71, .5);
  transition: border-color var(--t), background var(--t);
}

.page-home .fb:hover {
  border-color: var(--purple);
  background: rgba(123, 91, 255, .1);
}

.page-home .fb .card-title {
  margin-bottom: 8px;
}

.page-home .fb p {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mist);
}

.page-home .feedback__foot {
  display: grid;
  gap: 20px;
  align-items: center;
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--home-grid);
}

.page-home .feedback__stat {
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .feedback__stat .mono {
  font-family: var(--font-mono);
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--green);
  margin-right: 4px;
}

/* ================= 结尾 ================= */
.page-home .closing {
  padding: clamp(46px, 8vw, 96px) 0 clamp(60px, 9vw, 108px);
  background: var(--paper);
  color: var(--ink);
  clip-path: polygon(0 0, 100% clamp(18px, 3vw, 44px), 100% 100%, 0 100%);
}

.page-home .closing__inner {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  align-items: end;
}

.page-home .closing__copy .section-title {
  color: var(--ink);
}

.page-home .closing__copy p:last-child {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.85;
  color: #2c3a49;
}

.page-home .closing__links {
  display: grid;
  gap: 10px;
}

.page-home .closing__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid rgba(8, 13, 20, .18);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: border-color var(--t), background var(--t), transform var(--t);
}

.page-home .closing__link .mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: #4a5a6b;
}

.page-home .closing__link:hover {
  border-color: var(--ink);
  background: rgba(8, 13, 20, .06);
  transform: translateX(4px);
}

/* ================= 响应式 ================= */
@media (min-width: 640px) {
  .page-home .fixture {
    grid-template-columns: minmax(0, 132px) minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

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

@media (min-width: 900px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .86fr);
    gap: clamp(36px, 5vw, 72px);
  }

  .page-home .hero__board {
    justify-self: end;
    width: 100%;
    max-width: 460px;
  }

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

  .page-home .mate--feature {
    grid-column: span 2;
  }

  .page-home .mate--feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 22px;
    align-items: start;
  }

  .page-home .mate--feature .mate__img {
    grid-row: 1 / span 3;
    height: 100%;
    aspect-ratio: auto;
    min-height: 210px;
  }

  .page-home .finder__panel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
  }

  .page-home .mobile__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, .82fr);
  }

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

  .page-home .feedback__foot {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .page-home .closing__inner {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  }
}

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

  .page-home .mate--feature {
    grid-column: span 2;
  }

  .page-home .mate:nth-child(2) {
    margin-top: 30px;
    rotate: .7deg;
  }

  .page-home .mate:nth-child(3) {
    margin-top: 6px;
    rotate: -.5deg;
  }

  .page-home .mate:nth-child(4) {
    margin-top: 38px;
    rotate: 1.1deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ticker__track,
  .page-home .score-row__dot,
  .page-home .phone__live i,
  .page-home .phone__pulse {
    animation: none;
  }

  .page-home .mate:hover,
  .page-home .closing__link:hover {
    transform: none;
  }
}
