.page-home {
  --home-line: rgba(36, 64, 106, .8);
  --home-panel: linear-gradient(158deg, var(--panel) 0%, var(--panel-2) 100%);
  --home-mirror-a: linear-gradient(200deg, rgba(47, 240, 214, .14), rgba(5, 11, 24, 0) 68%);
  --home-mirror-b: linear-gradient(160deg, rgba(255, 154, 60, .14), rgba(5, 11, 24, 0) 68%);
  --home-ticks: repeating-linear-gradient(90deg, rgba(47, 240, 214, .7) 0 1px, transparent 1px 28px);
  display: block;
  background: var(--deep);
  color: var(--text);
  overflow-x: hidden;
}

/* ---------- 首屏框景 ---------- */
.page-home .hero-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.2rem, 6vw, 3.4rem) 0 clamp(2.4rem, 6vw, 4rem);
  border-bottom: 1px solid var(--home-line);
  background:
    radial-gradient(130% 100% at 86% -12%, rgba(47, 240, 214, .12), transparent 60%),
    radial-gradient(95% 80% at -12% 112%, rgba(124, 92, 255, .13), transparent 62%),
    var(--deep);
}

.page-home .hero-frame::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  background-image: var(--home-ticks);
  opacity: .5;
  z-index: 3;
  pointer-events: none;
}

.page-home .hero-frame::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background-image: repeating-linear-gradient(180deg, rgba(36, 64, 106, .95) 0 1px, transparent 1px 22px);
  opacity: .8;
  pointer-events: none;
}

.page-home .hero-ambient {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .15;
  filter: saturate(.72) contrast(1.05);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  width: min(var(--shell), 100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  gap: clamp(1.6rem, 4vw, 2.4rem);
}

.page-home .hero-flow {
  min-width: 0;
}

.page-home .hero-context {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1rem;
  padding: .3rem .7rem .3rem .55rem;
  border: 1px solid rgba(47, 240, 214, .3);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--cyan);
  background: rgba(47, 240, 214, .06);
}

.page-home .hero-title {
  margin: 0 0 .9rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 5.4vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -.012em;
  max-width: 18ch;
}

.page-home .hero-lead {
  margin: 0;
  max-width: 46ch;
  font-size: 1rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .hero-cards {
  margin-top: clamp(1.3rem, 3vw, 1.9rem);
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
}

.page-home .score-card {
  padding: .85rem 1rem 0.75rem;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-b);
  background: var(--home-panel);
  box-shadow: inset 0 1px 0 rgba(234, 242, 255, .04);
  transition: transform .24s var(--ease), border-color .24s var(--ease);
}

.page-home .score-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 240, 214, .42);
}

.page-home .score-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin: 0 0 .6rem;
}

.page-home .score-time {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  letter-spacing: .06em;
}

.page-home .score-line {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .4rem;
  margin: 0;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(36, 64, 106, .7);
}

.page-home .score-team {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.page-home .score-num {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  padding: 0 .2rem;
  position: relative;
}

.page-home .score-num::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background-image: repeating-linear-gradient(90deg, rgba(255, 154, 60, .75) 0 1px, transparent 1px 5px);
  opacity: .65;
}

.page-home .score-num .stat-value {
  font-family: var(--font-mono);
  font-size: 1.42rem;
  font-weight: 700;
  line-height: 1;
  color: var(--amber);
}

.page-home .score-colon {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--muted);
}

.page-home .score-foot {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: .55rem 0 0;
  font-size: .74rem;
  font-family: var(--font-mono);
  color: var(--muted-dim);
}

/* ---------- 首屏左侧纵向时间轴 ---------- */
.page-home .hero-rail {
  position: relative;
  isolation: isolate;
  display: flex;
  gap: .9rem;
  padding: .4rem 0 .4rem 1.1rem;
  border-left: 1px solid var(--home-line);
}

.page-home .hero-rail-tex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .18;
  border-radius: var(--radius-b);
  z-index: -1;
  pointer-events: none;
}

.page-home .hero-rail .annotation--vertical {
  writing-mode: vertical-rl;
  letter-spacing: .24em;
  color: var(--cyan);
  font-family: var(--font-mono);
  flex: 0 0 auto;
}

.page-home .hero-rail-list {
  flex: 1 1 auto;
  min-width: 0;
  list-style: none;
  margin: 0;
  padding: 0 0 0 .95rem;
  border-left: 1px dashed rgba(36, 64, 106, .95);
  display: grid;
  gap: .1rem;
}

.page-home .hero-node {
  position: relative;
  padding: .42rem 0 .42rem .1rem;
  font-size: .82rem;
  line-height: 1.55;
  color: var(--muted);
}

.page-home .hero-node::before {
  content: "";
  position: absolute;
  left: -1.01rem;
  top: .98rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grid);
  box-shadow: 0 0 0 3px rgba(36, 64, 106, .32);
  transition: background .24s var(--ease), box-shadow .24s var(--ease);
}

.page-home .hero-node.is-active {
  color: var(--text);
}

.page-home .hero-node.is-active::before {
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(47, 240, 214, .2), 0 0 14px rgba(47, 240, 214, .55);
}

.page-home .hn-time {
  display: inline-block;
  min-width: 4.6rem;
  margin-right: .45rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--cyan);
}

/* ---------- 通用章节 ---------- */
.page-home .home-section {
  padding: clamp(2.6rem, 7vw, 4.4rem) 0;
  border-bottom: 1px solid rgba(36, 64, 106, .45);
}

.page-home .home-section:last-of-type {
  border-bottom: 0;
}

.page-home .section-index {
  font-family: var(--font-mono);
  color: var(--cyan);
  letter-spacing: .18em;
  margin: 0 0 .6rem;
}

.page-home .section-title {
  margin: 0 0 .7rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.6vw, 2.05rem);
  line-height: 1.28;
  letter-spacing: -.008em;
}

.page-home .section-desc {
  margin: 0;
  max-width: 62ch;
  font-size: .96rem;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .section-head {
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}

.page-home .section-foot {
  margin: clamp(1.6rem, 4vw, 2.2rem) 0 0;
}

/* ---------- 01 时间轴 ---------- */
.page-home .home-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.1rem;
  border-left: 1px solid var(--home-line);
}

.page-home .home-timeline .timeline-item {
  position: relative;
  padding: 0 0 clamp(1.3rem, 3.4vw, 1.9rem) .2rem;
}

.page-home .home-timeline .timeline-item::before {
  content: "";
  position: absolute;
  left: -1.42rem;
  top: .55rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--grid);
}

.page-home .home-timeline .timeline-item.is-active::before {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 240, 214, .16), 0 0 16px rgba(47, 240, 214, .5);
}

.page-home .home-timeline .timeline-item.is-past::before {
  border-color: rgba(36, 64, 106, .9);
  background: var(--deep);
}

.page-home .tl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  margin: 0 0 .35rem;
}

.page-home .tl-time {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .06em;
  color: var(--text);
}

.page-home .tl-title {
  margin: 0 0 .3rem;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}

.page-home .tl-title .stat-value {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--amber);
  padding: 0 .1rem;
}

.page-home .tl-sep {
  font-family: var(--font-mono);
  color: var(--muted-dim);
  padding: 0 .12rem;
}

.page-home .tl-note {
  margin: 0 0 .35rem;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .tl-stamp {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  color: var(--muted-dim);
}

/* ---------- 02 关注球队 ---------- */
.page-home .team-archive {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.2rem);
}

.page-home .team-visual {
  margin: 0;
  border-radius: 120px 18px 120px 18px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: var(--panel-2);
}

.page-home .team-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .92;
}

.page-home .team-list {
  min-width: 0;
}

.page-home .team-card {
  border: 1px solid var(--home-line);
  border-radius: var(--radius-b);
  background: var(--home-panel);
  overflow: hidden;
  transition: border-color .24s var(--ease);
}

.page-home .team-card + .team-card {
  margin-top: .7rem;
}

.page-home .team-card[open] {
  border-color: rgba(47, 240, 214, .34);
}

.page-home .team-card > summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: .9rem 2.4rem .9rem 1rem;
  display: grid;
  gap: .18rem;
}

.page-home .team-card > summary::-webkit-details-marker {
  display: none;
}

.page-home .team-card > summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--cyan);
  line-height: 1;
}

.page-home .team-card[open] > summary::after {
  content: "–";
}

.page-home .team-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.page-home .team-meta {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--muted-dim);
}

.page-home .team-body {
  padding: 0 1rem 1rem;
}

.page-home .team-stats {
  margin: 0;
  display: grid;
  gap: .45rem;
}

.page-home .team-stats > div {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  justify-content: space-between;
  padding-bottom: .4rem;
  border-bottom: 1px dashed rgba(36, 64, 106, .6);
  font-size: .86rem;
}

.page-home .team-stats dt {
  color: var(--muted);
}

.page-home .team-stats dd {
  margin: 0;
  color: var(--text);
}

.page-home .team-stats .stat-value {
  font-family: var(--font-mono);
  color: var(--amber);
}

.page-home .team-note {
  margin: 1rem 0 0;
  font-size: .86rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .team-note a,
.page-home .archive-cta a,
.page-home .client-link a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 240, 214, .4);
}

.page-home .team-note a:hover,
.page-home .archive-cta a:hover,
.page-home .client-link a:hover {
  color: var(--cyan-deep);
  border-bottom-color: var(--cyan-deep);
}

/* ---------- 03 横向对照带 ---------- */
.page-home .compare-section {
  background:
    linear-gradient(180deg, rgba(11, 24, 48, 0) 0%, rgba(11, 24, 48, .72) 45%, rgba(11, 24, 48, 0) 100%);
}

.page-home .compare-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .4rem var(--gutter) 1.4rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--grid) transparent;
}

.page-home .compare-rail:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.page-home .home-compare {
  flex: 0 0 auto;
  width: min(560px, 84vw);
  scroll-snap-align: center;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-a);
  overflow: hidden;
  background: var(--panel-2);
}

.page-home .compare-side {
  padding: 1rem 1.1rem 1.15rem;
}

.page-home .compare-side--pre {
  background: var(--home-mirror-a);
}

.page-home .compare-side--post {
  background: var(--home-mirror-b);
  border-top: 1px solid rgba(36, 64, 106, .85);
}

.page-home .compare-kicker {
  margin: 0 0 .45rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--muted-dim);
}

.page-home .compare-side--post .compare-kicker {
  color: var(--amber);
}

.page-home .compare-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.page-home .compare-side--post .compare-title {
  font-family: var(--font-mono);
  color: var(--amber);
  letter-spacing: .02em;
}

.page-home .compare-fields {
  margin: .85rem 0 0;
  display: grid;
  gap: .45rem;
}

.page-home .compare-fields > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .35rem;
  border-bottom: 1px dashed rgba(36, 64, 106, .55);
  font-size: .84rem;
}

.page-home .compare-fields dt {
  color: var(--muted);
}

.page-home .compare-fields dd {
  margin: 0;
  font-family: var(--font-mono);
  color: var(--text);
}

.page-home .compare-tip {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .8rem;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .compare-tip .annotation {
  padding: .18rem .5rem;
  border: 1px solid rgba(124, 92, 255, .4);
  border-radius: 999px;
  color: var(--violet-soft);
  font-family: var(--font-mono);
}

/* ---------- 04 历史检索 ---------- */
.page-home .archive-wrap {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.2rem);
}

.page-home .archive-levels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: none;
}

.page-home .archive-level {
  position: relative;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-c);
  background: var(--home-panel);
  transition: transform .24s var(--ease), border-color .24s var(--ease);
}

.page-home .archive-level:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 240, 214, .4);
}

.page-home .archive-num {
  margin: 0 0 .5rem;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .04em;
  background: linear-gradient(120deg, var(--cyan), var(--violet-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .archive-level h3 {
  margin: 0 0 .4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .archive-level p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.72;
  color: var(--muted);
}

.page-home .archive-cta {
  margin: 0;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- 05 客户端 ---------- */
.page-home .client-wrap {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.4rem);
}

.page-home .client-points {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: .7rem;
}

.page-home .client-points li {
  display: grid;
  gap: .35rem;
  padding: .8rem 1rem;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-b);
  background: rgba(20, 36, 63, .55);
  font-size: .88rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .client-points .tag {
  justify-self: start;
  font-family: var(--font-mono);
}

.page-home .client-link {
  margin: 1.1rem 0 0;
  font-size: .88rem;
  line-height: 1.7;
  color: var(--muted);
}

.page-home .client-visual {
  margin: 0;
  border-radius: 16px 96px 16px 96px;
  overflow: hidden;
  border: 1px solid var(--home-line);
  background: var(--panel-2);
}

.page-home .client-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- 06 咨询与纠错 ---------- */
.page-home .help-grid {
  display: grid;
  gap: 1rem;
}

.page-home .help-card {
  padding: 1.15rem 1.2rem 1.3rem;
  border: 1px solid var(--home-line);
  border-radius: var(--radius-b);
  background: var(--home-panel);
  display: grid;
  gap: .6rem;
  align-content: start;
}

.page-home .help-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.page-home .help-card p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .help-card .btn {
  justify-self: start;
  margin-top: .2rem;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .hero-cards {
    grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  }

  .page-home .home-compare {
    grid-template-columns: 1fr 1fr;
    width: min(700px, 66vw);
  }

  .page-home .compare-side--post {
    border-top: 0;
    border-left: 1px solid rgba(36, 64, 106, .85);
  }

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

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

  .page-home .help-card--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.6fr);
    align-items: start;
    gap: clamp(2rem, 4vw, 3.2rem);
  }

  .page-home .hero-rail {
    grid-column: 1;
    grid-row: 1;
  }

  .page-home .hero-flow {
    grid-column: 2;
    grid-row: 1;
  }

  .page-home .team-archive {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr);
    align-items: start;
  }

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

  .page-home .archive-wrap {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1.5fr);
    align-items: start;
  }

  .page-home .archive-head {
    position: sticky;
    top: 6rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .score-card,
  .page-home .archive-level,
  .page-home .hero-node::before {
    transition: none;
  }

  .page-home .score-card:hover,
  .page-home .archive-level:hover {
    transform: none;
  }
}
