.page-home {
  --home-gap: clamp(12px, 1.8vw, 18px);
  --home-card: rgba(11, 44, 67, .86);
  --home-line: rgba(42, 111, 142, .45);
  --home-muted: rgba(234, 244, 255, .76);
  display: block;
  padding-bottom: clamp(48px, 8vw, 96px);
}

.page-home .section {
  padding-block: clamp(38px, 6vw, 76px);
}

/* ---------- 顶部上下文 ---------- */
.page-home .home-top {
  padding-top: clamp(14px, 3vw, 26px);
}

.page-home .home-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 6px 14px 6px 10px;
  border: 1px dashed var(--home-line);
  border-radius: var(--r-xl);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--steel);
}

.page-home .ctx-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(182, 255, 75, .18);
}

/* ---------- 首屏 ---------- */
.page-home .home-hero {
  display: grid;
  gap: clamp(22px, 3.4vw, 42px);
  align-items: stretch;
  padding-block: clamp(22px, 4vw, 42px) clamp(26px, 4vw, 46px);
}

.page-home .hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-home .eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--orange);
}

.page-home .hero-title {
  margin: 0 0 14px;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.14;
  letter-spacing: -.025em;
  font-weight: 800;
  color: var(--fog);
}

.page-home .hero-lead {
  margin: 0;
  max-width: 46ch;
  font-size: clamp(14.5px, 1.6vw, 16px);
  line-height: 1.8;
  color: var(--home-muted);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(20px, 3vw, 28px);
}

.page-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--home-line);
}

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

.page-home .hero-stats dt {
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--steel);
}

.page-home .hero-stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(15px, 2.2vw, 20px);
  color: var(--fog);
}

.page-home .stat-num {
  color: var(--orange);
}

.page-home .hero-visual {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  aspect-ratio: 5 / 6;
  border-radius: var(--r-l);
  overflow: hidden;
  border: 1px solid rgba(42, 111, 142, .6);
  background: linear-gradient(165deg, #0B2C43 0%, #061826 74%);
}

.page-home .hero-visual img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: .55;
}

.page-home .hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    repeating-linear-gradient(90deg, rgba(42, 111, 142, 0) 0 36px, rgba(42, 111, 142, .32) 36px 37px),
    radial-gradient(120% 78% at 22% 12%, rgba(182, 255, 75, .22), transparent 62%),
    radial-gradient(92% 70% at 82% 86%, rgba(255, 122, 47, .26), transparent 64%);
  mix-blend-mode: screen;
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(6, 24, 38, 0) 42%, rgba(6, 24, 38, .94) 100%);
}

.page-home .hero-panel {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(6, 24, 38, .84);
  border: 1px solid rgba(42, 111, 142, .65);
  backdrop-filter: blur(6px);
}

.page-home .readout {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--steel);
}

.page-home .readout b {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--lime);
  letter-spacing: .02em;
}

.page-home .readout .ro-orange { color: var(--orange); }
.page-home .readout .ro-coral { color: var(--coral); }

/* ---------- 快速跳转 ---------- */
.page-home .quick-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: clamp(6px, 2vw, 14px);
}

.page-home .quick-jump a {
  padding: 7px 15px;
  border: 1px dashed rgba(42, 111, 142, .75);
  border-radius: var(--r-xl);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--steel);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.page-home .quick-jump a:hover,
.page-home .quick-jump a:focus-visible {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
}

/* ---------- 章节通用 ---------- */
.page-home .section-head {
  max-width: 62ch;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.page-home .section-head h2,
.page-home .dist-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.28;
  letter-spacing: -.015em;
  font-weight: 800;
  color: var(--fog);
}

.page-home .lead {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--home-muted);
}

/* ---------- 服务清单 Bento ---------- */
.page-home .view-toggle {
  position: relative;
}

.page-home .view-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.page-home .view-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(14px, 2vw, 20px);
}

.page-home .chip {
  cursor: pointer;
  user-select: none;
  padding: 8px 17px;
  border-radius: var(--r-xl);
  border: 1px solid rgba(42, 111, 142, .7);
  background: rgba(11, 44, 67, .6);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--steel);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.page-home .chip:hover {
  color: var(--fog);
  border-color: var(--orange);
}

.page-home #v-all:checked ~ .view-chips label[for="v-all"],
.page-home #v-today:checked ~ .view-chips label[for="v-today"],
.page-home #v-week:checked ~ .view-chips label[for="v-week"],
.page-home #v-season:checked ~ .view-chips label[for="v-season"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

.page-home #v-all:focus-visible ~ .view-chips label[for="v-all"],
.page-home #v-today:focus-visible ~ .view-chips label[for="v-today"],
.page-home #v-week:focus-visible ~ .view-chips label[for="v-week"],
.page-home #v-season:focus-visible ~ .view-chips label[for="v-season"] {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.page-home #v-today:checked ~ .bento .pod:not([data-view="today"]):not([data-view="all"]),
.page-home #v-week:checked ~ .bento .pod:not([data-view="week"]):not([data-view="all"]),
.page-home #v-season:checked ~ .bento .pod:not([data-view="season"]):not([data-view="all"]) {
  display: none;
}

.page-home .bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--home-gap);
}

.page-home .pod {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: clamp(16px, 2.2vw, 22px);
  border-radius: var(--r-l);
  border: 1px solid var(--home-line);
  background: linear-gradient(160deg, rgba(16, 59, 87, .82), rgba(11, 44, 67, .94));
  overflow: hidden;
}

.page-home .pod h3 {
  margin: 0;
  font-size: clamp(16px, 1.9vw, 19px);
  line-height: 1.38;
  font-weight: 800;
  color: var(--fog);
}

.page-home .pod p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--home-muted);
}

.page-home .pod .tag {
  align-self: flex-start;
}

.page-home .pod-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-home .pod-rows li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(42, 111, 142, .4);
  font-size: 13px;
  color: var(--home-muted);
}

.page-home .pod-rows li .num {
  color: var(--lime);
  font-size: 13.5px;
}

.page-home .pod-media img {
  width: 100%;
  height: auto;
  margin-top: 2px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-m);
  border: 1px solid rgba(42, 111, 142, .5);
}

.page-home .pod-accent {
  background:
    radial-gradient(110% 90% at 100% 0%, rgba(182, 255, 75, .16), transparent 62%),
    linear-gradient(160deg, rgba(16, 59, 87, .9), rgba(11, 44, 67, .96));
  border-color: rgba(182, 255, 75, .35);
}

.page-home .pod-accent h3 .num {
  color: var(--lime);
  font-size: 1.15em;
}

.page-home .pod-sync {
  background: var(--paper);
  border-color: transparent;
  color: var(--ink);
}

.page-home .pod-sync h3 {
  color: #08202f;
}

.page-home .pod-sync p {
  color: rgba(6, 24, 38, .76);
}

.page-home .pod-sync .sync-num {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 20px;
  color: #A7460F;
}

.page-home .pod-sync .sync-num .num {
  color: #A7460F;
}

/* ---------- 进失球分布 ---------- */
.page-home .dist-grid {
  display: grid;
  gap: clamp(20px, 3vw, 38px);
  align-items: center;
}

.page-home .dist-copy {
  min-width: 0;
}

.page-home .dist-points {
  list-style: none;
  margin: clamp(16px, 2.4vw, 22px) 0 clamp(18px, 2.6vw, 26px);
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .dist-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--home-muted);
}

.page-home .dist-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--orange);
}

.page-home .dist-points li:nth-child(2)::before { background: var(--lime); }
.page-home .dist-points li:nth-child(3)::before { background: var(--line); }

.page-home .dist-points strong {
  color: var(--fog);
  font-weight: 700;
}

.page-home .dist-viz {
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 26px);
  border-radius: var(--r-l);
  border: 1px solid rgba(42, 111, 142, .55);
  background: linear-gradient(170deg, #0B2C43, #061826 82%);
  overflow: hidden;
}

.page-home .dist-viz > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: .2;
}

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

.page-home .viz-title {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--steel);
}

.page-home .dist-viz svg {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
}

.page-home .viz-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 4px;
}

.page-home .lg {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fog);
}

.page-home .lg::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.page-home .lg--orange::before { background: var(--orange); }
.page-home .lg--lime::before { background: var(--lime); }

.page-home .heat {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  height: 58px;
  margin-top: 16px;
}

.page-home .heat span {
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--lime), rgba(182, 255, 75, .18));
  height: 34%;
}

.page-home .heat span:nth-child(1) { height: 30%; }
.page-home .heat span:nth-child(2) { height: 46%; }
.page-home .heat span:nth-child(3) { height: 68%; }
.page-home .heat span:nth-child(4) { height: 100%; }
.page-home .heat span:nth-child(5) { height: 74%; }
.page-home .heat span:nth-child(6) { height: 52%; }
.page-home .heat span:nth-child(7) { height: 38%; }
.page-home .heat span:nth-child(8) { height: 22%; }

.page-home .viz-note {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--steel);
}

.page-home .viz-note .num {
  color: var(--orange);
}

/* ---------- 登录报错 ---------- */
.page-home .step-grid {
  display: grid;
  gap: var(--home-gap);
}

.page-home .step-card {
  position: relative;
  padding: clamp(18px, 2.2vw, 24px);
  border-radius: var(--r-l);
  border: 1px solid rgba(255, 107, 129, .34);
  background: linear-gradient(160deg, rgba(16, 59, 87, .7), rgba(11, 44, 67, .9));
}

.page-home .step-no {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 26px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--coral);
}

.page-home .step-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--fog);
}

.page-home .step-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--home-muted);
}

.page-home .step-more {
  margin-top: clamp(18px, 2.6vw, 26px);
}

/* ---------- 版本记录 ---------- */
.page-home .version-layout {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
}

.page-home .version-stack {
  display: grid;
  gap: clamp(14px, 2vw, 20px);
  align-content: start;
}

.page-home .v-card {
  padding: clamp(16px, 2vw, 22px);
  border-radius: 14px;
  background: var(--paper);
  color: #08202f;
  box-shadow:
    0 12px 0 -7px rgba(243, 233, 210, .38),
    0 24px 0 -15px rgba(243, 233, 210, .18);
}

.page-home .v-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border: 1px dashed rgba(11, 44, 67, .5);
  border-radius: var(--r-s);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: #A7460F;
}

.page-home .v-title {
  margin: 0 0 6px;
  font-size: 16.5px;
  line-height: 1.4;
  font-weight: 800;
  color: #08202f;
}

.page-home .v-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.72;
  color: rgba(6, 24, 38, .74);
}

.page-home .version-figure {
  margin: 0;
  min-width: 0;
  padding: clamp(12px, 2vw, 18px);
  border-radius: var(--r-l);
  border: 1px solid var(--home-line);
  background: rgba(11, 44, 67, .6);
}

.page-home .version-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-m);
  border: 1px solid rgba(42, 111, 142, .45);
}

.page-home .version-figure figcaption {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .versions > .btn {
  margin-top: clamp(20px, 3vw, 30px);
}

/* ---------- 运营与联系 ---------- */
.page-home .trust-grid {
  display: grid;
  gap: clamp(18px, 3vw, 32px);
}

.page-home .trust-main {
  min-width: 0;
}

.page-home .team-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-home .team-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: var(--r-m);
  border: 1px solid var(--home-line);
  background: rgba(16, 59, 87, .55);
}

.page-home .team-num {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--lime);
}

.page-home .team-label {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--steel);
}

.page-home .trust-facts {
  list-style: none;
  margin: clamp(16px, 2.4vw, 22px) 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .trust-facts li {
  position: relative;
  padding-left: 16px;
  font-size: 13.8px;
  line-height: 1.75;
  color: var(--home-muted);
}

.page-home .trust-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}

.page-home .trust-facts a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .trust-facts a:hover {
  color: var(--lime);
}

.page-home .contact-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(18px, 2.4vw, 26px);
  border-radius: var(--r-l);
  border: 1px solid rgba(42, 111, 142, .55);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 122, 47, .14), transparent 60%),
    linear-gradient(160deg, rgba(16, 59, 87, .85), rgba(11, 44, 67, .96));
}

.page-home .contact-kicker {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--steel);
}

.page-home .contact-card h3 {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.4;
  font-weight: 800;
  color: var(--fog);
}

.page-home .contact-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(42, 111, 142, .4);
}

.page-home .contact-line--stack {
  align-items: flex-start;
  flex-direction: column;
  gap: 4px;
}

.page-home .contact-line .contact-label {
  flex: 0 0 auto;
  font-size: 11.5px;
  letter-spacing: .05em;
  color: var(--steel);
}

.page-home .contact-line .contact-value {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-size: 13.2px;
  line-height: 1.6;
  color: var(--fog);
  word-break: break-word;
}

.page-home .contact-line--stack .contact-value {
  font-family: var(--font-sans);
  font-size: 13.5px;
}

.page-home .contact-hours {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--steel);
}

.page-home .contact-card .btn {
  justify-self: start;
}

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

  .page-home .pod[data-span="4"],
  .page-home .pod[data-span="5"] {
    grid-column: span 3;
  }

  .page-home .pod[data-span="6"],
  .page-home .pod[data-span="7"] {
    grid-column: span 6;
  }

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

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

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

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

  .page-home .hero-visual {
    min-height: 430px;
    height: 100%;
    aspect-ratio: auto;
  }

  .page-home .dist-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .page-home .version-layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-home .trust-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

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

  .page-home .pod[data-span="4"] { grid-column: span 4; }
  .page-home .pod[data-span="5"] { grid-column: span 5; }
  .page-home .pod[data-span="6"] { grid-column: span 6; }
  .page-home .pod[data-span="7"] { grid-column: span 7; }
}

@media (max-width: 380px) {
  .page-home .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .chip {
    padding: 7px 13px;
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .chip,
  .page-home .quick-jump a {
    transition: none;
  }
}
