.page-home {
  --home-line: rgba(168, 179, 170, 0.22);
  --home-line-strong: rgba(168, 179, 170, 0.44);
  --home-gap: clamp(2.6rem, 6vw, 5rem);
  --home-radius: 14px;
  background: var(--fx-night);
  color: var(--fx-paper);
  overflow-x: clip;
}

.page-home .home-head {
  max-width: 64ch;
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
}

.page-home .home-head__title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.4vw, 2.35rem);
  line-height: 1.28;
  margin: 0.4rem 0 0.7rem;
  color: var(--fx-paper);
}

.page-home .home-head__text {
  font-size: 1rem;
  line-height: 1.85;
  color: #cfd6cf;
  margin: 0;
}

/* ---------- 首屏框景 ---------- */
.home-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(1.4rem, 3.4vw, 2.6rem) var(--pad-x) clamp(2.4rem, 6vw, 4.4rem);
  background:
    radial-gradient(120% 90% at 88% 6%, rgba(255, 90, 31, 0.16), transparent 62%),
    linear-gradient(180deg, var(--fx-night-deep), var(--fx-night) 70%);
}

.home-hero__bg {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(72%, 900px);
  height: 100%;
  opacity: 0.34;
  pointer-events: none;
  z-index: -1;
}

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: 100%;
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
}

.home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--fx-night) 6%, rgba(14, 23, 18, 0.2) 58%, transparent 100%),
    linear-gradient(0deg, var(--fx-night) 0%, transparent 62%);
}

.home-hero__frame {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  border: 1px solid var(--home-line-strong);
  border-radius: 4px;
  padding: clamp(1.1rem, 3vw, 2.4rem);
  background: linear-gradient(158deg, rgba(14, 23, 18, 0.95) 0%, rgba(20, 61, 43, 0.84) 58%, rgba(14, 23, 18, 0.94) 100%);
  box-shadow: var(--shadow-panel);
}

.home-hero__frame::before,
.home-hero__frame::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 3px;
  background: var(--fx-orange);
}

.home-hero__frame::before {
  top: -1px;
  left: -1px;
}

.home-hero__frame::after {
  bottom: -1px;
  right: -1px;
  background: var(--fx-sand);
}

.home-scale {
  height: 9px;
  margin-bottom: clamp(0.9rem, 2vw, 1.4rem);
  background-image: repeating-linear-gradient(90deg, var(--fx-orange) 0 2px, transparent 2px 16px);
  opacity: 0.75;
}

.home-context {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fx-cyan);
}

.home-hero__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.4rem);
}

.home-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 5.4vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: 0.005em;
  margin: 0.55rem 0 1rem;
  color: var(--fx-paper);
  text-wrap: balance;
}

.home-hero__text {
  max-width: 46ch;
  color: #d7ddd6;
  font-size: 1rem;
  line-height: 1.9;
  margin: 0;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.home-hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 1.7rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px dashed var(--home-line-strong);
}

.home-hero__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.2vw, 1.9rem);
  color: var(--fx-orange);
  letter-spacing: 0.02em;
}

.home-hero__unit {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--fx-stone);
}

.home-timeline {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0 0 0 1rem;
  border-left: 1px solid var(--home-line-strong);
}

.home-timeline__item {
  position: relative;
  padding: 0 0 0.85rem 0.15rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #cbd3cb;
}

.home-timeline__item:last-child {
  padding-bottom: 0;
}

.home-timeline__item::before {
  content: "";
  position: absolute;
  left: -1.32rem;
  top: 0.5rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fx-stone);
}

.home-timeline__item.is-live::before {
  background: var(--fx-orange);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.18);
  animation: home-pulse 2.4s ease-in-out infinite;
}

.home-timeline__day {
  display: inline-block;
  min-width: 2.9rem;
  margin-right: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--fx-sand);
}

.home-hero__stack {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.hero-card {
  background: rgba(10, 16, 12, 0.88);
  border: 1px solid var(--home-line);
  border-radius: var(--home-radius);
  padding: 0.95rem 1rem;
}

.hero-card--media {
  padding: 0;
  overflow: hidden;
}

.home-hero__media {
  border-radius: var(--home-radius);
}

.home-hero__media .media__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-card__label {
  margin: 0 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--fx-sand);
}

.hero-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--home-line);
  font-size: 0.9rem;
  color: #dbe1d9;
}

.hero-card__row:last-child {
  border-bottom: none;
  padding-bottom: 0.1rem;
}

/* ---------- 比分轨道 ---------- */
.home-scores {
  padding: var(--home-gap) var(--pad-x);
  background: linear-gradient(180deg, var(--fx-night) 0%, var(--fx-archive) 14%, var(--fx-archive) 86%, var(--fx-night) 100%);
}

.home-scores .container,
.home-archive .container,
.home-path .container,
.home-press .container,
.home-service .container {
  max-width: var(--page-max);
  margin: 0 auto;
}

.rail-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
}

.rail-filters li {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  padding: 0.36rem 0.72rem;
  border: 1px solid var(--home-line-strong);
  border-radius: 999px;
  color: var(--fx-stone);
}

.rail-filters li.is-active {
  background: var(--fx-orange);
  border-color: var(--fx-orange);
  color: var(--fx-ink);
  font-weight: 700;
}

.score-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(228px, 82%);
  gap: 0.8rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.9rem;
  scrollbar-color: var(--fx-orange) rgba(14, 23, 18, 0.6);
}

.score-rail:focus-visible {
  outline: 2px solid var(--fx-cyan);
  outline-offset: 3px;
}

.score-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 168px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--home-line);
  border-left: 3px solid var(--fx-orange);
  border-radius: 10px;
  background: #0a100c;
}

.score-card--archive {
  border-left-color: var(--fx-sand);
}

.score-card--sync {
  border-left-color: var(--fx-amber);
}

.score-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.score-card__league {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #d5dcd4;
}

.score-card__score {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 5vw, 2.2rem);
  letter-spacing: 0.06em;
  color: var(--fx-paper);
}

.score-card__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--fx-stone);
}

.score-card__meta {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--home-line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--fx-cyan);
}

.home-scores__lower {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.sync-note {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.95rem 1rem;
  border: 1px dashed rgba(242, 169, 59, 0.5);
  border-radius: 10px;
  background: rgba(28, 42, 35, 0.72);
}

.sync-note p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: #d8dfd7;
}

.home-scores__media .media__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

/* ---------- 归档索引 ---------- */
.home-archive {
  padding: var(--home-gap) var(--pad-x);
  background: var(--fx-night);
}

.archive-layout {
  display: grid;
  gap: 1.6rem;
}

.archive-media .media__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.archive-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
}

.stat {
  border-top: 2px solid var(--fx-cyan);
  padding-top: 0.55rem;
}

.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  color: var(--fx-cyan);
  letter-spacing: 0.01em;
}

.stat__label {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--fx-stone);
}

.archive-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.season {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--home-line);
  border-radius: 8px;
  background: rgba(20, 61, 43, 0.46);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.season:hover {
  border-color: rgba(232, 184, 106, 0.6);
  background: rgba(20, 61, 43, 0.72);
}

.season__num {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--fx-sand);
  letter-spacing: 0.06em;
}

.season__meta {
  font-size: 0.72rem;
  color: var(--fx-stone);
}

.archive-right__label {
  margin: 1.2rem 0 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--fx-sand);
}

.dims {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dims li {
  font-size: 0.74rem;
  padding: 0.26rem 0.62rem;
  border: 1px solid var(--home-line-strong);
  border-radius: 999px;
  color: var(--fx-paper);
}

.archive-right__note {
  margin: 1.1rem 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.85;
  color: #ccd4cc;
}

.archive-right__link {
  display: inline-block;
  font-size: 0.86rem;
  color: var(--fx-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 230, 210, 0.4);
  padding-bottom: 2px;
}

.archive-right__link:hover,
.archive-right__link:focus-visible {
  color: var(--fx-paper);
  border-bottom-color: var(--fx-orange);
}

/* ---------- 三步回访 ---------- */
.home-path {
  padding: var(--home-gap) var(--pad-x);
  background:
    linear-gradient(118deg, var(--fx-night) 0%, var(--fx-archive) 52%, var(--fx-night) 100%);
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

.steps {
  display: grid;
  gap: 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  padding: 1.1rem 1.05rem 1.15rem;
  border: 1px solid var(--home-line-strong);
  border-radius: 12px;
  background: rgba(10, 16, 12, 0.62);
}

.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.2rem;
  line-height: 1;
  color: rgba(255, 90, 31, 0.92);
  letter-spacing: 0.04em;
}

.step__title {
  margin: 0.6rem 0 0.4rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--fx-paper);
}

.step__text {
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #ccd4cc;
}

.home-path__foot {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--fx-stone);
}

.home-path__foot a {
  color: var(--fx-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 230, 210, 0.4);
}

.home-path__foot a:hover,
.home-path__foot a:focus-visible {
  color: var(--fx-paper);
  border-bottom-color: var(--fx-orange);
}

/* ---------- 专栏 ---------- */
.home-press {
  padding: var(--home-gap) var(--pad-x);
  background: var(--fx-night-deep);
}

.home-press__layout {
  display: grid;
  gap: 1.6rem;
}

.home-press__intro .btn {
  margin-top: 0.4rem;
}

.press-list {
  display: grid;
  gap: 0.65rem;
}

.press-item {
  border: 1px solid var(--home-line);
  border-left: 3px solid var(--fx-cyan);
  border-radius: 10px;
  background: rgba(20, 61, 43, 0.36);
  padding: 0.85rem 1rem;
}

.press-item summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--fx-paper);
  list-style: none;
}

.press-item summary::-webkit-details-marker {
  display: none;
}

.press-item summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  color: var(--fx-cyan);
}

.press-item[open] summary::after {
  content: "–";
}

.press-item summary:focus-visible {
  outline: 2px solid var(--fx-cyan);
  outline-offset: 3px;
}

.press-item__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--fx-sand);
  font-weight: 400;
}

.press-item__body {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #ccd4cc;
}

/* ---------- 服务与协作 ---------- */
.home-service {
  padding: var(--home-gap) var(--pad-x) calc(var(--home-gap) * 1.1);
  background: linear-gradient(180deg, var(--fx-night-deep), var(--fx-night));
}

.service-grid {
  display: grid;
  gap: 0.9rem;
}

.service-card {
  padding: 1.05rem 1.05rem 1.15rem;
  border-radius: 0 0 10px 10px;
  border-top: 3px solid var(--fx-orange);
  background: rgba(20, 61, 43, 0.44);
}

.service-card__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--fx-paper);
}

.service-card__text {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.85;
  color: #ccd4cc;
}

.service-card__link {
  font-size: 0.84rem;
  color: var(--fx-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(57, 230, 210, 0.4);
  padding-bottom: 2px;
}

.service-card__link:hover,
.service-card__link:focus-visible {
  color: var(--fx-paper);
  border-bottom-color: var(--fx-orange);
}

.home-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 1.6rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--home-line-strong);
  border-radius: var(--home-radius);
  background:
    repeating-linear-gradient(135deg, rgba(255, 90, 31, 0.08) 0 2px, transparent 2px 12px),
    rgba(10, 16, 12, 0.8);
}

.home-strip__text {
  margin: 0;
  flex: 1 1 260px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #d3dad2;
}

@keyframes home-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 90, 31, 0.2); }
  50% { box-shadow: 0 0 0 7px rgba(255, 90, 31, 0.05); }
}

@media (min-width: 560px) {
  .archive-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .score-rail {
    grid-auto-columns: minmax(232px, 46%);
  }
}

@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .home-scores__lower {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
  }

  .home-hero__facts {
    max-width: 520px;
  }
}

@media (min-width: 920px) {
  .home-hero__grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: start;
  }

  .archive-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 2rem;
    align-items: start;
  }

  .home-press__layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 2.2rem;
    align-items: start;
  }

  .home-press__intro {
    position: sticky;
    top: calc(var(--bar-h) + 1.4rem);
  }

  .score-rail {
    grid-auto-columns: minmax(250px, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-timeline__item.is-live::before {
    animation: none;
  }

  .season,
  .press-item summary {
    transition: none;
  }
}
