.page-home {
  --home-cyan-glow: 0 0 16px rgba(60, 242, 212, 0.4);
  --home-card-line: rgba(28, 41, 64, 0.9);
  background: var(--ink);
  color: var(--ice);
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

/* ---------- 首屏 ---------- */
.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 4vw, 40px) 0 clamp(84px, 15vw, 210px);
  border-bottom: 1px solid var(--home-card-line);
}

.page-home .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1000px 620px at 88% 6%, rgba(47, 123, 255, 0.28), transparent 64%),
    radial-gradient(760px 520px at 4% 94%, rgba(60, 242, 212, 0.12), transparent 68%),
    linear-gradient(158deg, #101A30 0%, var(--ink) 62%);
}

.page-home .hero-shard {
  position: absolute;
  z-index: 0;
  right: -18%;
  top: -32%;
  width: 74%;
  height: 148%;
  transform: rotate(-16deg);
  border-radius: 42% 10% 38% 6%;
  background: linear-gradient(208deg, rgba(47, 123, 255, 0.22), rgba(11, 59, 70, 0.42) 52%, transparent 74%);
  pointer-events: none;
}

.page-home .hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(28px, 5vw, 48px);
  grid-template-columns: 1fr;
  align-items: center;
}

.page-home .hero-kicker {
  margin: 0 0 clamp(14px, 2.4vw, 22px);
}

.page-home .hero-title {
  margin: 0 0 clamp(16px, 2.6vw, 26px);
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2.5rem, 10.5vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  transform: skewX(-3deg);
  transform-origin: left bottom;
  text-wrap: balance;
}

.page-home .hero-title-dim {
  display: inline-block;
  color: transparent;
  background: linear-gradient(96deg, var(--ice) 4%, var(--cyan) 50%, var(--blue) 96%);
  -webkit-background-clip: text;
  background-clip: text;
}

.page-home .hero-lede {
  max-width: 40ch;
  margin: 0 0 clamp(20px, 3vw, 30px);
  font-family: var(--font-body);
  font-size: clamp(15px, 2.4vw, 17px);
  line-height: 1.78;
  color: var(--mist);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: clamp(22px, 3.4vw, 34px);
}

.page-home .hero-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--mist);
}

.page-home .hero-index a {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .hero-index a:hover,
.page-home .hero-index a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .hero-visual {
  position: relative;
}

.page-home .hero-frame {
  border-radius: var(--radius-l);
  box-shadow: 0 30px 70px -40px rgba(47, 123, 255, 0.65);
}

.page-home .hero-curve {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  z-index: 0;
  opacity: 0.95;
  pointer-events: none;
}

.page-home .curve-svg {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .curve-area {
  opacity: 0.9;
}

.page-home .curve-line {
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(60, 242, 212, 0.5));
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: home-curve-draw 1.6s var(--ease) 0.25s forwards;
}

.page-home .curve-node {
  pointer-events: auto;
  outline: none;
}

.page-home .node-dot {
  fill: var(--magenta);
  stroke: var(--ink);
  stroke-width: 2;
  animation: home-node-pulse 2.4s ease-in-out infinite;
}

.page-home .node-tip {
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}

.page-home .curve-node:hover .node-tip,
.page-home .curve-node:focus .node-tip,
.page-home .curve-node:focus-visible .node-tip {
  opacity: 1;
}

.page-home .node-tip-box {
  fill: rgba(13, 20, 36, 0.96);
  stroke: var(--steel);
  stroke-width: 1;
}

.page-home .node-tip-text {
  fill: var(--ice);
  font-family: var(--font-mono);
  font-size: 12px;
  text-anchor: middle;
}

@keyframes home-curve-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes home-node-pulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.9);
    transform-box: fill-box;
    transform-origin: center;
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
    transform-box: fill-box;
    transform-origin: center;
  }
}

/* ---------- 通用章节微调 ---------- */
.page-home .section {
  position: relative;
  padding-top: clamp(52px, 8vw, 104px);
  padding-bottom: clamp(52px, 8vw, 104px);
}

.page-home .eyebrow {
  margin-bottom: 14px;
}

.page-home .section-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.7rem, 5.4vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ice);
}

.page-home .section-lede {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(15px, 2.2vw, 17px);
  line-height: 1.8;
  color: var(--mist);
}

.page-home .section-head {
  margin-bottom: clamp(26px, 4vw, 44px);
}

/* ---------- 时间轴补看 ---------- */
.page-home .replay-grid {
  align-items: start;
  row-gap: clamp(26px, 4vw, 44px);
}

.page-home .replay-media {
  transform: translateY(0);
}

.page-home .replay-copy .section-lede {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.page-home .node-list {
  margin: 0 0 clamp(22px, 3.2vw, 30px);
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--home-card-line);
}

.page-home .node-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--home-card-line);
}

.page-home .node-time {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

.page-home .node-text {
  flex: 1 1 12rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ice);
}

.page-home .replay-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 26px);
  padding: 18px 4px;
  border-top: 1px solid var(--home-card-line);
  border-bottom: 1px solid var(--home-card-line);
}

.page-home .replay-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .replay-stat .stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 3.4vw, 1.6rem);
  color: var(--ice);
  letter-spacing: -0.01em;
}

.page-home .replay-stat .stat-label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
}

.page-home .replay-cta {
  margin: 0;
}

/* ---------- BP 与阵容 ---------- */
.page-home .bp-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .bp-card {
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--home-card-line);
}

.page-home .bp-card--wide {
  background:
    linear-gradient(138deg, rgba(47, 123, 255, 0.2), rgba(13, 20, 36, 0.9) 68%),
    var(--ink-panel);
}

.page-home .bp-card--tall {
  background:
    linear-gradient(168deg, rgba(255, 62, 157, 0.16), rgba(60, 242, 212, 0.08) 58%, rgba(13, 20, 36, 0.94)),
    var(--ink-panel);
}

.page-home .bp-card--note {
  background:
    linear-gradient(120deg, rgba(60, 242, 212, 0.13), rgba(13, 20, 36, 0.94) 62%),
    var(--ink-panel);
}

.page-home .bp-card .panel-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.6vw, 1.3rem);
  color: var(--ice);
}

.page-home .bp-card .panel-meta {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.04em;
}

.page-home .bp-text {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .bp-stats-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--home-card-line);
}

.page-home .bp-stats-row .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .bp-stats-row .stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  color: var(--cyan);
}

.page-home .bp-stats-row .stat-label {
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
}

.page-home .bp-pos-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .bp-pos {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--home-card-line);
}

.page-home .bp-pos:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-home .pos-name {
  flex: 0 0 3.2rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--ice);
}

.page-home .pos-tags {
  flex: 1 1 10rem;
  font-size: 13px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .bp-flow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: flow;
}

.page-home .flow-step {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--home-card-line);
}

.page-home .flow-step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-home .flow-num {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--blue);
  letter-spacing: 0.08em;
}

.page-home .flow-step p {
  flex: 1 1 12rem;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
}

/* ---------- 版本曲线 ---------- */
.page-home .curve-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: clamp(24px, 4vw, 40px);
  align-items: end;
}

.page-home .curve-figure {
  border-radius: var(--radius-l);
}

.page-home .curve-notes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: clamp(22px, 3.4vw, 34px);
}

.page-home .curve-note {
  padding: 18px 0 0;
  border-top: 2px solid rgba(60, 242, 212, 0.42);
}

.page-home .curve-note-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(0.98rem, 2.4vw, 1.1rem);
  font-weight: 600;
  color: var(--cyan);
}

.page-home .curve-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .curve-cta {
  margin: clamp(24px, 3.6vw, 34px) 0 0;
}

/* ---------- 批次存档 ---------- */
.page-home .archive {
  background:
    radial-gradient(760px 460px at 92% 10%, rgba(215, 162, 76, 0.14), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, #0A0E18 100%);
  border-top: 1px solid rgba(215, 162, 76, 0.24);
}

.page-home .archive-grid {
  row-gap: clamp(26px, 4vw, 42px);
  align-items: start;
}

.page-home .archive .section-title {
  color: var(--ice);
}

.page-home .archive-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: clamp(20px, 3vw, 28px) 0 0;
  padding: 0;
  list-style: none;
}

.page-home .archive-step {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 12px 16px;
  border-radius: var(--radius-m);
  background: rgba(215, 162, 76, 0.07);
  border-left: 2px solid rgba(215, 162, 76, 0.6);
}

.page-home .archive-step-key {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.page-home .archive-step-text {
  font-size: 14px;
  color: var(--ice);
}

.page-home .archive-meta {
  margin: 18px 0 0;
  font-size: 12px;
  color: var(--mist);
  letter-spacing: 0.03em;
}

.page-home .archive-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(18px, 3vw, 26px);
}

.page-home .archive-tip {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .archive-frame {
  border-radius: var(--radius-l);
  border: 1px solid rgba(215, 162, 76, 0.35);
  background:
    repeating-linear-gradient(135deg, rgba(215, 162, 76, 0.06) 0 2px, transparent 2px 6px),
    var(--ink-panel);
}

/* ---------- 赛场观察 ---------- */
.page-home .observe-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.page-home .observe-item {
  padding: clamp(18px, 3vw, 24px) 0;
  border-top: 1px solid var(--home-card-line);
}

.page-home .observe-item:last-child {
  border-bottom: 1px solid var(--home-card-line);
}

.page-home .observe-time {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--magenta);
  letter-spacing: 0.06em;
}

.page-home .observe-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 2.9vw, 1.28rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--ice);
}

.page-home .observe-text {
  margin: 0;
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .observe-cta {
  margin: clamp(22px, 3.4vw, 32px) 0 0;
}

.page-home .trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: clamp(30px, 5vw, 52px);
  padding: clamp(20px, 3vw, 30px);
  border-radius: var(--radius-l);
  background:
    linear-gradient(140deg, rgba(47, 123, 255, 0.14), rgba(13, 20, 36, 0.96) 62%),
    var(--ink-panel);
  border: 1px solid var(--home-card-line);
}

.page-home .trust-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.page-home .trust-item .stat-value {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 3.2vw, 1.5rem);
  color: var(--cyan);
  letter-spacing: -0.01em;
}

.page-home .trust-item .stat-label {
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .story-line {
  margin: clamp(22px, 3.4vw, 30px) 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .story-line a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 123, 255, 0.5);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .story-line a:hover,
.page-home .story-line a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.page-home .trust-legal {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--mist);
  letter-spacing: 0.04em;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .curve-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }

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

  .page-home .observe-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .page-home .observe-item:nth-child(even) {
    margin-top: 28px;
  }

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

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

  .page-home .hero-curve {
    display: block;
  }

  .page-home .hero-frame {
    transform: rotate(-1.4deg);
  }

  .page-home .replay-media {
    transform: translateY(24px);
  }

  .page-home .replay-media {
    padding-right: 12px;
  }

  .page-home .curve-head {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 40px;
  }

  .page-home .bp-matrix {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    grid-template-areas:
      "wide tall"
      "note tall";
    gap: 18px;
  }

  .page-home .bp-card--wide {
    grid-area: wide;
  }

  .page-home .bp-card--tall {
    grid-area: tall;
  }

  .page-home .bp-card--note {
    grid-area: note;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .curve-line {
    animation: none;
    stroke-dashoffset: 0;
  }

  .page-home .node-dot {
    animation: none;
    opacity: 1;
  }

  .page-home .node-tip {
    transition: none;
  }

  .page-home .hero-frame,
  .page-home .replay-media {
    transform: none;
  }
}
