.page-home {
  --home-gap: clamp(2rem, 4.5vw, 4rem);
  --home-card-gap: clamp(.85rem, 1.8vw, 1.25rem);
  display: block;
}

.page-home .shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(1rem, 2.5vw, 1.75rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

.page-home .content {
  min-width: 0;
}

/* ---------- 左侧窄索引栏 ---------- */
.page-home .rail-title {
  margin: 0 0 .7rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  color: var(--muted);
}

.page-home .rail-list {
  display: flex;
  gap: .4rem;
  margin: 0;
  padding: 0 0 .4rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.page-home .rail-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  white-space: nowrap;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--muted);
  font-size: .82rem;
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.page-home .rail-link:hover,
.page-home .rail-link:focus-visible {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-deep);
}

.page-home .rail-num {
  font-family: var(--font-mono);
  font-size: .66rem;
  color: var(--cyan);
}

/* ---------- 首屏分屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  padding-block: clamp(.5rem, 2vw, 1.25rem) clamp(1.5rem, 4vw, 3rem);
  scroll-margin-top: 1.5rem;
}

.page-home .hero-trace {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: .5;
  pointer-events: none;
}

.page-home .hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.page-home .hero-copy .badge-index {
  align-self: flex-start;
}

.page-home .hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
}

.page-home .hero-lede {
  max-width: 38em;
  margin: 0;
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  line-height: 1.8;
  color: var(--muted);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .2rem;
}

.page-home .hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: .5rem 0 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
}

.page-home .hero-facts > div {
  background: var(--bg-2);
  padding: .8rem .95rem;
}

.page-home .hero-facts dt {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  color: var(--muted);
}

.page-home .hero-facts dd {
  margin: .3rem 0 0;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.page-home .num {
  font-variant-numeric: tabular-nums;
}

/* ---------- 记分牌视觉 ---------- */
.page-home .hero-board {
  position: relative;
}

.page-home .board-visual {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: var(--bg-2);
}

.page-home .board-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.page-home .board-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 22, .1), rgba(6, 10, 22, .82));
  pointer-events: none;
}

.page-home .board-panel {
  position: relative;
  margin: -3.25rem .75rem 0;
  padding: 1rem 1.15rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: linear-gradient(165deg, rgba(11, 59, 69, .94), rgba(14, 23, 48, .97));
  box-shadow: 0 26px 60px -34px rgba(34, 230, 216, .7);
  backdrop-filter: blur(10px);
}

.page-home .board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding-bottom: .7rem;
  border-bottom: 1px solid var(--line);
  font-size: .72rem;
  color: var(--muted);
}

.page-home .board-live {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--orange);
  letter-spacing: .04em;
}

.page-home .pulse {
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 92, 43, .6);
  animation: home-pulse 2s var(--ease) infinite;
}

@keyframes home-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 43, .6); }
  70% { box-shadow: 0 0 0 .65rem rgba(255, 92, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 43, 0); }
}

.page-home .board-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: .5rem;
  padding: .95rem 0 .35rem;
}

.page-home .side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.page-home .side--away {
  align-items: flex-end;
  text-align: right;
}

.page-home .side-label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--muted);
}

.page-home .side-num {
  font-family: var(--font-mono);
  font-size: clamp(2.3rem, 9vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 30px rgba(34, 230, 216, .45);
}

.page-home .side--away .side-num {
  color: var(--ink);
  text-shadow: none;
}

.page-home .side-sub {
  font-size: .72rem;
  line-height: 1.5;
  color: var(--muted);
}

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

.page-home .board-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .5rem;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
}

.page-home .metric {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.page-home .metric-label {
  font-size: .68rem;
  color: var(--muted);
}

.page-home .metric-value {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* ---------- 通用区块节奏 ---------- */
.page-home .section {
  position: relative;
  padding-block: var(--home-gap);
  scroll-margin-top: 1.5rem;
}

.page-home .section-head {
  margin-bottom: clamp(1.1rem, 2.5vw, 1.75rem);
}

.page-home .section-title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.018em;
  line-height: 1.15;
}

/* ---------- 积分榜 ---------- */
.page-home .standings-board {
  position: relative;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--bg-2);
  overflow: hidden;
}

.page-home .standings-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .16;
  pointer-events: none;
}

.page-home .standings-inner {
  position: relative;
  z-index: 1;
}

.page-home .tab-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.page-home .tab-btn {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .05em;
  padding: .45rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 10, 22, .6);
  color: var(--muted);
  cursor: pointer;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.page-home .tab-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.page-home .tab-btn[aria-selected="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg);
}

.page-home .table-scroll {
  overflow-x: auto;
}

.page-home .standings-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
}

.page-home .standings-table th {
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
}

.page-home .standings-table td {
  padding: .72rem .75rem;
  border-bottom: 1px solid rgba(29, 42, 74, .6);
  font-size: .9rem;
  color: var(--ink);
  white-space: nowrap;
}

.page-home .standings-table tbody tr:last-child td {
  border-bottom: 0;
}

.page-home .standings-table tbody tr:hover td {
  background: rgba(34, 230, 216, .06);
}

.page-home .rank-cell {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cyan);
}

.page-home .move {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.page-home .move-bar {
  display: block;
  height: 6px;
  width: calc(var(--pct, 30) * 1%);
  max-width: 72px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 92, 43, .25));
}

.page-home .move--down .move-bar {
  background: linear-gradient(90deg, var(--blue-mid), rgba(29, 42, 74, .5));
  border: 1px solid var(--line);
}

.page-home .move--flat .move-bar {
  background: var(--line);
}

.page-home .move-text {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--orange);
}

.page-home .move--down .move-text {
  color: var(--muted);
}

.page-home .move--flat .move-text {
  color: var(--muted);
}

/* ---------- 战报专栏 ---------- */
.page-home .reports-figure {
  margin: 0 0 clamp(1.1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  overflow: hidden;
  position: relative;
}

.page-home .reports-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .reports-grid {
  gap: var(--home-card-gap);
}

.page-home .card {
  transition: transform .24s var(--ease), border-color .24s var(--ease);
}

.page-home .card:hover {
  transform: translateY(-4px);
  border-color: var(--cyan);
}

.page-home .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .6rem;
}

.page-home .card-title {
  font-size: 1.02rem;
  line-height: 1.5;
}

.page-home .card-foot {
  margin-top: .85rem;
  padding-top: .7rem;
  border-top: 1px solid var(--line);
  font-size: .72rem;
  color: var(--muted);
}

/* ---------- 新版位置 ---------- */
.page-home .layout-grid {
  gap: var(--home-card-gap);
}

.page-home .layout-panel {
  position: relative;
  padding: clamp(1.2rem, 2.5vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: linear-gradient(150deg, var(--bg-2), rgba(22, 41, 92, .5));
  overflow: hidden;
}

.page-home .layout-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), transparent);
}

.page-home .layout-grid > .layout-panel:nth-child(2)::before {
  background: linear-gradient(180deg, var(--orange), transparent);
}

.page-home .layout-panel h3 {
  margin: 0 0 .55rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--ink);
}

.page-home .layout-panel p {
  margin: 0 0 .8rem;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .layout-list {
  margin: 0;
  padding-left: 1.05rem;
  font-size: .88rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .layout-list li::marker {
  color: var(--cyan);
}

.page-home .layout-cta {
  margin-top: clamp(1.1rem, 2.5vw, 1.6rem);
}

/* ---------- 阵容时间轴 ---------- */
.page-home .squad-timeline {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: .25rem 0 .85rem;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.page-home .squad-timeline .timeline-item {
  position: relative;
  flex: 0 0 min(258px, 76vw);
  scroll-snap-align: start;
  margin-top: 2.4rem;
  padding: 1.15rem 1.25rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background: var(--bg-2);
  transition: transform .24s var(--ease), border-color .24s var(--ease);
}

.page-home .squad-timeline .timeline-item:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
}

.page-home .squad-timeline .timeline-item::before {
  content: "";
  position: absolute;
  top: -1.85rem;
  left: 1.25rem;
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgba(198, 255, 74, .14);
}

.page-home .squad-timeline .timeline-item::after {
  content: "";
  position: absolute;
  top: -1.32rem;
  left: 1.25rem;
  width: calc(100% + .45rem);
  height: 2px;
  background: rgba(29, 42, 74, .95);
  pointer-events: none;
}

.page-home .squad-timeline .timeline-item:last-child::after {
  display: none;
}

.page-home .squad-timeline .timeline-item[data-tone="orange"]::before {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 92, 43, .16);
}

.page-home .squad-timeline .timeline-item[data-tone="cyan"]::before {
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 230, 216, .16);
}

.page-home .timeline-time {
  margin: 0 0 .4rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.page-home .squad-timeline .timeline-item h3 {
  margin: 0 0 .5rem;
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--ink);
}

.page-home .squad-timeline .timeline-item p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .squad-cta {
  margin-top: clamp(.9rem, 2vw, 1.4rem);
}

/* ---------- 平台能力 ---------- */
.page-home .cap-split {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.page-home .cap-list {
  display: grid;
  gap: .8rem;
  margin: .5rem 0 0;
  padding: 0;
  list-style: none;
}

.page-home .cap-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .92rem;
  line-height: 1.75;
  color: var(--muted);
}

.page-home .cap-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62rem;
  width: .75rem;
  height: 2px;
  background: var(--cyan);
}

.page-home .cap-visual {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  overflow: hidden;
}

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

.page-home .stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  overflow: hidden;
  background: var(--line);
}

.page-home .stat-row .stat {
  min-width: 0;
  padding: 1.05rem 1.15rem;
  background: var(--bg-2);
}

.page-home .stat-row .stat-value {
  font-variant-numeric: tabular-nums;
}

/* ---------- 收尾行动区 ---------- */
.page-home .cta-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-soft);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 92, 43, .22), transparent 55%),
    radial-gradient(110% 130% at 0% 100%, rgba(34, 230, 216, .2), transparent 62%),
    linear-gradient(160deg, var(--bg-2), var(--blue-mid));
}

.page-home .cta-panel h2 {
  margin: 0 0 .75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  letter-spacing: -.018em;
  line-height: 1.15;
  color: var(--ink);
}

.page-home .cta-panel p {
  max-width: 44em;
  margin: 0 0 1.25rem;
  font-size: .94rem;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-bottom: 1.1rem;
}

.page-home .cta-panel .cta-note {
  margin: 0;
  font-size: .8rem;
  color: var(--muted);
}

/* ---------- 平板及以上 ---------- */
@media (min-width: 700px) {
  .page-home .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .page-home .board-panel {
    margin: -3.5rem 1.25rem 0;
  }
}

@media (min-width: 900px) {
  .page-home .shell {
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr);
  }

  .page-home .rail {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
  }

  .page-home .rail-list {
    flex-direction: column;
    gap: .3rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .rail-link {
    width: 100%;
    justify-content: flex-start;
    padding: .5rem .7rem;
    border-radius: 12px;
    border-color: transparent;
    background: transparent;
  }

  .page-home .rail-link:hover,
  .page-home .rail-link:focus-visible {
    background: var(--bg-2);
  }

  .page-home .cap-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, .88fr);
  }
}

@media (min-width: 1040px) {
  .page-home .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
  }

  .page-home .board-panel {
    margin: -3.75rem 1.5rem 0;
  }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  .page-home .pulse {
    animation: none;
  }

  .page-home .card,
  .page-home .squad-timeline .timeline-item,
  .page-home .rail-link,
  .page-home .tab-btn {
    transition: none;
  }

  .page-home .card:hover,
  .page-home .squad-timeline .timeline-item:hover {
    transform: none;
  }
}

.page-home {
  --pct: 1rem;
}
