.page-home {
  --home-edge: clamp(1rem, 4vw, 2.5rem);
  --home-gap: clamp(0.9rem, 2vw, 1.4rem);
  --home-section: clamp(3rem, 7vw, 5.5rem);
  background: var(--ink-green);
  color: var(--mist);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.page-home .section-wrap,
.page-home .hero-shell {
  width: min(calc(100% - var(--home-edge) * 2), var(--max));
  margin-inline: auto;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(120% 85% at 80% 6%, rgba(77, 240, 208, 0.18), transparent 62%),
    linear-gradient(162deg, var(--ink-green) 0%, var(--night-blue) 58%, var(--ink-green) 100%);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  opacity: 0.4;
  z-index: 0;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(234, 246, 242, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(234, 246, 242, 0.07) 1px, transparent 1px);
  background-size: 68px 68px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 76%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 76%);
}

.page-home .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6, 37, 31, 0.58) 0%, rgba(6, 37, 31, 0.78) 46%, var(--ink-green) 100%);
  pointer-events: none;
}

.page-home .hero-shell {
  position: relative;
  z-index: 3;
}

.page-home .hero-kicker {
  margin: 0 0 clamp(0.9rem, 2.4vw, 1.6rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .hero-top {
  max-width: 62rem;
}

.page-home .hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 10.5vw, 6.2rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--mist);
  text-wrap: balance;
}

.page-home .hero-title em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 42px rgba(77, 240, 208, 0.32);
}

.page-home .hero-lede {
  max-width: 40ch;
  margin: clamp(1rem, 2.6vw, 1.6rem) 0 0;
  font-size: clamp(0.98rem, 2.3vw, 1.1rem);
  line-height: 1.8;
  color: rgba(234, 246, 242, 0.84);
}

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

.page-home .hero-grid {
  display: grid;
  gap: var(--home-gap);
  margin-top: clamp(1.6rem, 4vw, 2.8rem);
}

/* 筛选矩阵 */
.page-home .filter-matrix {
  position: relative;
  overflow: hidden;
  padding: clamp(1.1rem, 2.6vw, 1.6rem);
  border: 1px solid var(--line-cyan);
  border-radius: var(--radius-xl);
  background: linear-gradient(155deg, rgba(15, 46, 42, 0.96), rgba(10, 26, 47, 0.94));
  box-shadow: var(--shadow-panel);
}

.page-home .matrix-tex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  z-index: 0;
}

.page-home .matrix-head,
.page-home .matrix-list {
  position: relative;
  z-index: 1;
}

.page-home .matrix-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-home .matrix-note {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--slate);
}

.page-home .matrix-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 1rem;
}

.page-home .league-chip {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.62rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  background: rgba(6, 37, 31, 0.6);
  color: var(--mist);
  font: inherit;
  font-size: 0.93rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.page-home .league-chip:hover {
  transform: translateX(4px);
  border-color: var(--line-cyan);
}

.page-home .league-chip.is-active {
  border-color: var(--cyan);
  background: rgba(77, 240, 208, 0.15);
  box-shadow: inset 0 0 0 1px rgba(77, 240, 208, 0.34);
}

.page-home .chip-code {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .chip-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .chip-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--slate);
}

.page-home .league-chip.is-active .chip-meta {
  color: var(--cyan);
}

/* 首屏卡片流 */
.page-home .stream {
  display: grid;
  gap: var(--home-gap);
  align-content: start;
}

.page-home .stream-label {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
}

.page-home .match-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, rgba(15, 46, 42, 0.94), rgba(10, 26, 47, 0.96));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.page-home .match-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.05rem;
  width: 2.4rem;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  opacity: 0.75;
}

.page-home .match-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-cyan);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.page-home .match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.page-home .data-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .stage-pill {
  padding: 0.16rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--slate);
}

.page-home .match-teams {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.page-home .match-vs {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--orange);
  padding-inline: 0.15rem;
}

.page-home .match-meta {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--slate);
}

.page-home .match-card .link-arrow {
  margin-top: 0.25rem;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 240, 208, 0.4);
  padding-bottom: 1px;
}

.page-home .match-card .link-arrow:hover {
  color: var(--mist);
  border-color: var(--mist);
}

.page-home .hero-cta {
  margin-top: clamp(1.4rem, 3.5vw, 2.2rem);
  gap: 0.7rem;
}

.page-home .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.4rem;
  border-radius: var(--pill);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .button:hover {
  transform: translateY(-2px);
}

.page-home .button--accent {
  background: var(--orange);
  color: #1a0c05;
}

.page-home .button--cyan {
  background: var(--cyan);
  color: #032b25;
}

.page-home .button--ghost {
  border-color: var(--line);
  color: var(--mist);
  background: rgba(234, 246, 242, 0.04);
}

.page-home .button--ghost:hover {
  border-color: var(--line-cyan);
}

/* ---------- 通用章节 ---------- */
.page-home .section {
  padding: var(--home-section) 0;
}

.page-home .section--alt {
  background: linear-gradient(180deg, var(--night-blue) 0%, var(--ink-green) 100%);
}

.page-home .section-head {
  max-width: 46rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.4rem);
}

.page-home .section-eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--orange);
}

.page-home .section-title {
  margin: 0;
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-home .section-lede {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(234, 246, 242, 0.78);
}

.page-home .match-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .schedule-cta {
  margin-top: clamp(1.4rem, 3.5vw, 2rem);
  gap: 0.7rem;
}

/* ---------- 面板能力 ---------- */
.page-home .panel-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .feature-card {
  position: relative;
  padding: clamp(1.15rem, 2.6vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, rgba(15, 46, 42, 0.95), rgba(10, 26, 47, 0.9));
}

.page-home .feature-no {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.page-home .feature-title {
  margin: 0.7rem 0 0.5rem;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .feature-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(234, 246, 242, 0.76);
}

.page-home .panel-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--line);
}

.page-home .stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  background: rgba(10, 26, 47, 0.9);
}

.page-home .stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  font-weight: 600;
  color: var(--cyan);
  line-height: 1;
}

.page-home .stat-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--slate);
}

/* ---------- 路径分叉 ---------- */
.page-home .fork {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .fork-branch {
  position: relative;
  padding: clamp(1.2rem, 3vw, 1.8rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(15, 46, 42, 0.94), rgba(10, 26, 47, 0.94));
  overflow: hidden;
}

.page-home .fork-branch::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
}

.page-home .fork-branch--orange::before {
  background: linear-gradient(90deg, var(--orange), rgba(255, 106, 42, 0));
}

.page-home .fork-branch--cyan::before {
  background: linear-gradient(90deg, var(--cyan), rgba(77, 240, 208, 0));
}

.page-home .fork-flag {
  display: inline-block;
  padding: 0.26rem 0.8rem;
  border-radius: var(--pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.page-home .fork-branch--orange .fork-flag {
  color: var(--orange);
  background: rgba(255, 106, 42, 0.14);
  border: 1px solid var(--line-orange);
}

.page-home .fork-branch--cyan .fork-flag {
  color: var(--cyan);
  background: rgba(77, 240, 208, 0.13);
  border: 1px solid var(--line-cyan);
}

.page-home .fork-title {
  margin: 1rem 0 0.6rem;
  font-size: clamp(1.2rem, 3.4vw, 1.6rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.page-home .fork-text {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.85;
  color: rgba(234, 246, 242, 0.78);
}

.page-home .fork-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.page-home .fork-list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(234, 246, 242, 0.72);
}

.page-home .fork-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
}

.page-home .fork-branch--orange .fork-list li::before {
  background: var(--orange);
}

.page-home .fork-branch--cyan .fork-list li::before {
  background: var(--cyan);
}

.page-home .fork-media {
  margin: 1.2rem 0 0;
}

.page-home .fork-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: cover;
}

.page-home .media-caption {
  margin-top: 0.6rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--slate);
}

.page-home .fork-branch .link-arrow {
  display: inline-block;
  margin-top: 1.1rem;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.page-home .fork-branch--orange .link-arrow {
  color: var(--orange);
}

.page-home .fork-branch--cyan .link-arrow {
  color: var(--cyan);
}

/* ---------- 浏览器与会员 ---------- */
.page-home .browser-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3.5vw, 2.6rem);
  align-items: start;
}

.page-home .browser-media {
  margin: 0;
  order: -1;
}

.page-home .browser-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line-cyan);
  object-fit: cover;
}

.page-home .member-panel {
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
  padding: clamp(1rem, 2.6vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(15, 46, 42, 0.72);
}

.page-home .member-panel-title {
  margin: 0 0 0.8rem;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}

.page-home .member-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.page-home .member-list li {
  display: grid;
  gap: 0.2rem;
  padding: 0.7rem 0.85rem;
  border-left: 2px solid var(--cyan);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(6, 37, 31, 0.6);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.page-home .member-list li:hover {
  transform: translateX(4px);
  background: rgba(77, 240, 208, 0.1);
}

.page-home .member-key {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--mist);
}

.page-home .member-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--slate);
}

.page-home .member-foot {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  color: rgba(234, 246, 242, 0.7);
}

.page-home .browser-copy .cta-row {
  margin-top: 1.3rem;
}

/* ---------- 信任数据 ---------- */
.page-home .proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--line);
}

.page-home .proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(0.95rem, 2.4vw, 1.4rem);
  background: linear-gradient(165deg, rgba(15, 46, 42, 0.9), rgba(10, 26, 47, 0.92));
}

.page-home .proof-num {
  font-family: var(--font-mono);
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  font-weight: 600;
  line-height: 1;
  color: var(--amber);
}

.page-home .proof-label {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--slate);
}

.page-home .proof-note {
  margin-top: clamp(1.2rem, 3vw, 1.8rem);
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
}

.page-home .proof-note p {
  margin: 0;
  max-width: 62ch;
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(234, 246, 242, 0.76);
}

.page-home .proof-note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(77, 240, 208, 0.45);
}

.page-home .proof-note a:hover {
  color: var(--mist);
  border-color: var(--mist);
}

/* ---------- 收尾 ---------- */
.page-home .closing {
  background:
    radial-gradient(90% 120% at 20% 0%, rgba(124, 92, 255, 0.16), transparent 60%),
    radial-gradient(80% 110% at 88% 100%, rgba(255, 106, 42, 0.16), transparent 62%),
    var(--ink-green);
  border-top: 1px solid var(--line);
}

.page-home .closing-inner {
  text-align: left;
}

.page-home .closing-eyebrow {
  margin: 0 0 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-home .closing-title {
  margin: 0;
  font-size: clamp(2rem, 7vw, 3.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

.page-home .closing-text {
  max-width: 46ch;
  margin: 1rem 0 0;
  font-size: 0.96rem;
  line-height: 1.8;
  color: rgba(234, 246, 242, 0.78);
}

.page-home .closing-cta {
  margin-top: 1.4rem;
  gap: 0.7rem;
}

.page-home .cta-row {
  display: flex;
  flex-wrap: wrap;
}

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

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

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

  .page-home .stream-label {
    grid-column: 1 / -1;
  }

  .page-home .browser-band {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .page-home .browser-media {
    order: 0;
  }

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

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

@media (min-width: 900px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(1.2rem, 2.4vw, 2.2rem);
    align-items: start;
  }

  .page-home .hero-rail {
    display: block;
    position: absolute;
    top: 0.4rem;
    right: -0.2rem;
    writing-mode: vertical-rl;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: rgba(143, 166, 160, 0.75);
    pointer-events: none;
  }

  .page-home .fork {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
  }

  .page-home .section-head {
    max-width: 52rem;
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .page-home .match-card,
  .page-home .league-chip,
  .page-home .member-list li,
  .page-home .button {
    transition: none;
  }

  .page-home .match-card:hover,
  .page-home .league-chip:hover,
  .page-home .member-list li:hover,
  .page-home .button:hover {
    transform: none;
  }
}
