.page-home {
  --home-gap: clamp(20px, 3.4vw, 44px);
  --home-card: linear-gradient(150deg, rgba(22, 36, 31, .88), rgba(12, 22, 19, .58));
  display: block;
  padding-bottom: 0;
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 54px);
  align-items: center;
  padding: clamp(30px, 6vw, 72px) var(--gutter) clamp(30px, 5vw, 62px);
}

.page-home .home-hero__copy {
  max-width: 40ch;
}

.page-home .home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
  background: rgba(22, 36, 31, .5);
}

.page-home .home-hero__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pitch-bright);
  box-shadow: 0 0 0 0 rgba(92, 201, 138, .55);
  animation: home-pulse 2.4s var(--ease) infinite;
}

@keyframes home-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92, 201, 138, .5); }
  55% { box-shadow: 0 0 0 9px rgba(92, 201, 138, 0); }
}

.page-home .home-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.95rem, 6vw, 3.9rem);
  line-height: 1.06;
  color: var(--warm);
}

.page-home .home-hero__lede {
  margin: 0 0 26px;
  font-size: clamp(1rem, 2.1vw, 1.14rem);
  line-height: 1.8;
  color: var(--muted);
  max-width: 32ch;
}

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

.page-home .home-hero__stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #12211b 0%, #0a1310 62%, #0e1c17 100%);
  aspect-ratio: 5 / 4;
  min-height: 288px;
}

.page-home .home-hero__stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .36;
  z-index: 0;
}

.page-home .hero-pitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-home .pitch-line {
  fill: none;
  stroke: rgba(92, 201, 138, .3);
  stroke-width: 1.6;
}

.page-home .pitch-line--dim {
  stroke: rgba(44, 63, 56, .95);
}

.page-home .pitch-trail {
  fill: none;
  stroke: var(--orange);
  stroke-width: 2.6;
  stroke-linecap: round;
  opacity: .82;
}

.page-home .pitch-node {
  fill: var(--orange);
}

.page-home .pitch-halo {
  fill: rgba(255, 138, 61, .3);
  transform-box: fill-box;
  transform-origin: center;
  animation: home-node-pulse 2.8s var(--ease) infinite;
}

@keyframes home-node-pulse {
  0%, 100% { transform: scale(1); opacity: .34; }
  55% { transform: scale(2.1); opacity: 0; }
}

.page-home .hero-rounds {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(12, 22, 19, .86);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.page-home .hero-rounds li {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
}

.page-home .hero-rounds__no {
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--pitch-bright);
}

.page-home .hero-rounds__vs {
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .hero-rounds__score {
  font-size: 15px;
  font-weight: 700;
  color: var(--orange);
}

/* ---------- 章节骨架 ---------- */
.page-home .home-section {
  position: relative;
  padding: clamp(42px, 6vw, 92px) var(--gutter);
}

.page-home .home-section + .home-section {
  border-top: 1px solid var(--line-soft);
}

.page-home .home-section .section-head {
  max-width: 58ch;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.page-home .sec-index {
  color: var(--pitch-bright);
}

.page-home .sec-title {
  color: var(--warm);
}

.page-home .sec-desc {
  color: var(--muted);
}

.page-home .text-link {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(53, 214, 232, .35);
  padding-bottom: 1px;
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}

.page-home .text-link:hover,
.page-home .text-link:focus-visible {
  color: var(--warm);
  border-bottom-color: var(--cyan);
}

/* ---------- 01 三步指引 ---------- */
.page-home .step-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .step {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--home-card);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .step::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 125, 79, .34), transparent 68%);
  pointer-events: none;
}

.page-home .step:hover {
  border-color: rgba(92, 201, 138, .5);
  transform: translateY(-4px);
}

.page-home .step__no {
  display: block;
  margin-bottom: 12px;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--pitch-bright);
}

.page-home .step__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: var(--warm);
}

.page-home .step__text {
  margin: 0;
  font-size: .96rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .home-steps__more {
  margin: 26px 0 0;
  font-size: .95rem;
}

/* ---------- 02 最近 6 轮 ---------- */
.page-home .round-track {
  position: relative;
  margin: 0;
  padding: 0 0 0 46px;
  list-style: none;
  display: grid;
  gap: 14px;
}

.page-home .round-track::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg, rgba(92, 201, 138, .5), rgba(44, 63, 56, .3) 20%, rgba(44, 63, 56, .3) 80%, rgba(92, 201, 138, .35));
}

.page-home .round {
  position: relative;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--home-card);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page-home .round::before {
  content: "";
  position: absolute;
  left: -41px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--pitch-bright);
}

.page-home .round:hover,
.page-home .round:focus-within {
  border-color: rgba(92, 201, 138, .55);
  transform: translateX(4px);
}

.page-home .round__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  font-size: 12.5px;
  letter-spacing: .1em;
  color: var(--muted);
}

.page-home .round__no {
  color: var(--pitch-bright);
}

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

.page-home .round__team {
  font-size: 1rem;
  font-weight: 700;
  color: var(--warm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.page-home .round__score {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--orange);
}

.page-home .round__detail {
  overflow: hidden;
  max-height: 300px;
  opacity: 1;
  margin-top: 14px;
  transition: max-height 280ms var(--ease), opacity 200ms linear, margin-top 220ms var(--ease);
}

.page-home .goal-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px dashed var(--line);
  list-style: none;
}

.page-home .goal-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: .93rem;
  color: var(--muted);
}

.page-home .goal-list .mono {
  min-width: 40px;
  color: var(--orange);
  font-size: .9rem;
}

/* ---------- 03 进球时间轴 ---------- */
.page-home .home-goals__figure {
  margin: 0 0 clamp(24px, 3.4vw, 40px);
}

.page-home .goal-axis__scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}

.page-home .goal-axis {
  position: relative;
  min-width: 640px;
  height: 208px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(22, 36, 31, .82), rgba(12, 22, 19, .42));
  overflow: hidden;
}

.page-home .goal-axis__baseline {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(92, 201, 138, .34), rgba(53, 214, 232, .38), rgba(255, 138, 61, .55));
}

.page-home .goal-node {
  position: absolute;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
}

.page-home .goal-node__time {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--orange);
}

.page-home .goal-node__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 138, 61, .16);
  animation: home-node-glow 2.6s var(--ease) infinite;
}

@keyframes home-node-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 138, 61, .18); }
  55% { box-shadow: 0 0 0 11px rgba(255, 138, 61, 0); }
}

.page-home .goal-node__label {
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
  max-width: 104px;
}

.page-home .goal-node--a { left: 20.1%; }
.page-home .goal-node--b { left: 29.4%; }
.page-home .goal-node--c { left: 42.9%; }
.page-home .goal-node--d { left: 53.1%; }
.page-home .goal-node--e { left: 66.6%; }
.page-home .goal-node--f { left: 80.9%; }

.page-home .goal-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted);
  opacity: .75;
}

/* ---------- 04 换设备 ---------- */
.page-home .device-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

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

.page-home .device-list li {
  position: relative;
  padding-left: 22px;
  font-size: .96rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .device-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .72em;
  width: 9px;
  height: 2px;
  background: var(--pitch-bright);
  border-radius: 2px;
}

.page-home .device-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0;
  font-size: .95rem;
}

.page-home .device-shot {
  margin: 0 auto;
  max-width: 360px;
  width: 100%;
}

/* ---------- 05 筛选 ---------- */
.page-home .home-find .filter-bar {
  margin-bottom: 22px;
}

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

.page-home .result {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  padding: 13px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(22, 36, 31, .58);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.page-home .result:hover,
.page-home .result:focus-within {
  border-color: rgba(53, 214, 232, .6);
  background: rgba(22, 36, 31, .92);
}

.page-home .result__no {
  grid-row: 1 / span 2;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--pitch-bright);
}

.page-home .result__body {
  display: grid;
  gap: 5px;
  grid-column: 2;
}

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

.page-home .result__team {
  font-size: .96rem;
  font-weight: 700;
  color: var(--warm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.page-home .result__score {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: .04em;
}

.page-home .result__meta {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}

.page-home .home-find__more {
  margin: 26px 0 0;
  font-size: .95rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- 收束 ---------- */
.page-home .home-finale {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: 220px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.page-home .home-finale > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}

.page-home .home-finale__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding: clamp(34px, 5vw, 58px) var(--gutter);
  background: linear-gradient(90deg, rgba(12, 22, 19, .88) 0%, rgba(12, 22, 19, .42) 70%, rgba(12, 22, 19, .2) 100%);
}

.page-home .home-finale__title {
  margin: 6px 0 0;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  color: var(--warm);
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .step:nth-child(2) {
    transform: translateY(16px);
  }

  .page-home .step:nth-child(2):hover {
    transform: translateY(12px);
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    min-height: calc(100vh - var(--topbar-h) - 24px);
  }

  .page-home .home-hero__stage {
    aspect-ratio: auto;
    min-height: clamp(380px, 58vh, 560px);
  }

  .page-home .device-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  }

  .page-home .device-shot {
    margin: 0;
  }

  .page-home .round-track {
    padding-left: 58px;
  }

  .page-home .round::before {
    left: -53px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .page-home .round__detail {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
  }

  .page-home .round:hover .round__detail,
  .page-home .round:focus-within .round__detail {
    max-height: 300px;
    opacity: 1;
    margin-top: 14px;
  }
}

@media (max-width: 560px) {
  .page-home .hero-rounds li {
    padding: 10px 10px;
  }

  .page-home .hero-rounds__vs {
    display: none;
  }

  .page-home .result {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 12px 14px;
  }

  .page-home .result__no {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__pulse,
  .page-home .pitch-halo,
  .page-home .goal-node__dot {
    animation: none;
  }

  .page-home .step,
  .page-home .round {
    transition: none;
  }

  .page-home .step:hover,
  .page-home .round:hover {
    transform: none;
  }
}
