.page-home {
  --ph-cut: 16px;
  --ph-edge: rgba(34, 245, 230, 0.22);
  --ph-edge-soft: rgba(34, 245, 230, 0.1);
  --ph-surface: linear-gradient(155deg, rgba(21, 29, 51, 0.92), rgba(13, 18, 32, 0.96));
  --ph-surface-2: linear-gradient(200deg, rgba(139, 92, 255, 0.16), rgba(7, 10, 18, 0.4));
  background: var(--ink-950);
  color: var(--cold-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  padding-bottom: 72px;
}

.page-home a {
  color: var(--neon-cyan);
}

.page-home :focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

/* ---------- 首屏 ---------- */

.page-home .ph-hero {
  position: relative;
  padding: 32px 0 56px;
  isolation: isolate;
}

.page-home .ph-hero::before {
  content: "";
  position: absolute;
  inset: -180px -20% auto -20%;
  height: 720px;
  background:
    radial-gradient(55% 60% at 76% 22%, rgba(139, 92, 255, 0.3), transparent 72%),
    radial-gradient(48% 55% at 10% 0%, rgba(34, 245, 230, 0.16), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.page-home .ph-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(34, 245, 230, 0.05) 0 1px,
    transparent 1px 96px
  );
  pointer-events: none;
  z-index: -1;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 78%);
}

.page-home .ph-hero__grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.page-home .breadcrumb .mono[aria-current="page"] {
  color: var(--neon-cyan);
}

.page-home .ph-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 7.2vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--cold-white);
  text-wrap: balance;
}

.page-home .ph-hero__lede {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(234, 246, 255, 0.82);
  max-width: 58ch;
  margin: 0 0 28px;
}

.page-home .ph-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.page-home .ph-action {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "k t"
    "d d";
  align-items: baseline;
  gap: 4px 12px;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--cold-white);
  border: 1px solid var(--ph-edge);
  border-left: 2px solid var(--neon-cyan);
  background: var(--ph-surface);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), background 240ms var(--ease-out);
  overflow: hidden;
}

.page-home .ph-action::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(34, 245, 230, 0.16) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 460ms var(--ease-out);
  pointer-events: none;
}

.page-home .ph-action:hover::after,
.page-home .ph-action:focus-visible::after {
  transform: translateX(120%);
}

.page-home .ph-action:hover,
.page-home .ph-action:focus-visible {
  transform: translateX(4px);
  border-color: rgba(34, 245, 230, 0.55);
}

.page-home .ph-action--alert {
  border-left-color: var(--orange);
}

.page-home .ph-action__k {
  grid-area: k;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.page-home .ph-action--alert .ph-action__k {
  color: var(--orange);
}

.page-home .ph-action__t {
  grid-area: t;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.page-home .ph-action__d {
  grid-area: d;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.page-home .ph-hero__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0;
}

.page-home .ph-field {
  position: relative;
}

.page-home .ph-field__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ph-edge);
  background: linear-gradient(180deg, rgba(139, 92, 255, 0.14), rgba(7, 10, 18, 0.9));
  clip-path: polygon(0 26px, 26px 0, 100% 0, 100% 100%, 0 100%);
}

.page-home .ph-field__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(34, 245, 230, 0.12) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(90deg, rgba(61, 123, 255, 0.1) 0 1px, transparent 1px 34px);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
  opacity: 0.7;
  animation: ph-grid 14s linear infinite;
}

.page-home .ph-field__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7, 10, 18, 0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

.page-home .ph-field__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  filter: saturate(1.1) contrast(1.05);
}

.page-home .ph-field__scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  top: 0;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  z-index: 3;
  opacity: 0.7;
  animation: ph-scan 7s linear infinite;
}

.page-home .ph-field__cap {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

@keyframes ph-grid {
  from { transform: translateY(0); }
  to { transform: translateY(34px); }
}

@keyframes ph-scan {
  0% { top: 4%; opacity: 0; }
  12% { opacity: 0.8; }
  88% { opacity: 0.8; }
  100% { top: 96%; opacity: 0; }
}

/* ---------- 主体骨架 ---------- */

.page-home .ph-body {
  display: grid;
  gap: 32px;
  padding-top: 8px;
}

.page-home .ph-toc {
  border-top: 1px solid var(--ph-edge-soft);
  border-bottom: 1px solid var(--ph-edge-soft);
  padding: 14px 0;
}

.page-home .ph-toc__title {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 10px;
}

.page-home .ph-toc__list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.page-home .ph-toc__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 7px 12px;
  font-size: 12px;
  text-decoration: none;
  color: rgba(234, 246, 255, 0.78);
  border: 1px solid var(--ph-edge-soft);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.page-home .ph-toc__link .mono {
  color: var(--neon-cyan);
  font-size: 10px;
}

.page-home .ph-toc__link:hover,
.page-home .ph-toc__link:focus-visible {
  color: var(--cold-white);
  border-color: rgba(34, 245, 230, 0.5);
}

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

/* ---------- 章节通用 ---------- */

.page-home .ph-sec {
  padding: 52px 0;
  border-bottom: 1px solid rgba(34, 245, 230, 0.08);
  scroll-margin-top: 84px;
}

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

.page-home .ph-sec__head {
  max-width: 64ch;
  margin-bottom: 28px;
}

.page-home .ph-sec__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
  color: var(--cold-white);
  text-wrap: balance;
}

.page-home .ph-sec__lede {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(234, 246, 255, 0.74);
  margin: 0;
}

.page-home .ph-sec__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 26px 0 0;
}

.page-home .ph-sec__meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-home .ph-split {
  display: grid;
  gap: 26px;
}

.page-home .ph-figure {
  margin: 0;
}

.page-home .ph-figure .media-frame {
  border: 1px solid var(--ph-edge-soft);
}

/* ---------- 版本时间轴 ---------- */

.page-home .ph-tl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .ph-tl__item {
  position: relative;
  padding: 12px 14px 14px 18px;
  border-left: 2px solid rgba(34, 245, 230, 0.24);
  background: var(--ph-surface);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: border-color 240ms var(--ease-out), transform 240ms var(--ease-out);
}

.page-home .ph-tl__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-950);
  border: 2px solid var(--laser);
}

.page-home .ph-tl__item--now {
  border-left-color: var(--orange);
  background: var(--ph-surface-2);
}

.page-home .ph-tl__item--now::before {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.16);
}

.page-home .ph-tl__item:hover,
.page-home .ph-tl__item:focus-within {
  border-left-color: var(--neon-cyan);
  transform: translateX(3px);
}

.page-home .ph-tl__v {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
}

.page-home .ph-tl__item--now .ph-tl__v {
  color: var(--orange);
}

.page-home .ph-tl__stage {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 2px 0 8px;
}

.page-home .ph-tl__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.68;
  color: rgba(234, 246, 255, 0.72);
}

/* ---------- 赛区 ---------- */

.page-home .ph-zones {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.page-home .ph-zone {
  border: 1px solid var(--ph-edge-soft);
  background: var(--ph-surface);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.page-home .ph-zone__sum {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
}

.page-home .ph-zone__sum::-webkit-details-marker {
  display: none;
}

.page-home .ph-zone__code {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--neon-cyan);
}

.page-home .ph-zone__name {
  font-size: 14px;
  color: var(--cold-white);
}

.page-home .ph-zone__arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
  transition: transform 300ms var(--ease-out), color 300ms var(--ease-out);
}

.page-home .ph-zone[open] .ph-zone__arrow {
  transform: rotate(45deg);
  color: var(--orange);
}

.page-home .ph-zone[open] {
  border-color: rgba(34, 245, 230, 0.45);
}

.page-home .ph-zone__body {
  padding: 0 15px 14px;
  border-top: 1px solid rgba(34, 245, 230, 0.1);
  margin-top: 2px;
  padding-top: 12px;
}

.page-home .ph-zone__body p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.72;
  color: rgba(234, 246, 255, 0.72);
}

.page-home .ph-zone__foot {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0;
}

/* ---------- 回放 ---------- */

.page-home .ph-replay-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--ph-edge-soft);
  padding: 18px 14px;
  background: var(--ink-900);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

.page-home .ph-replay-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: grayscale(0.35) contrast(1.1);
  pointer-events: none;
}

.page-home .ph-replay-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 10, 18, 0.92) 12%, rgba(7, 10, 18, 0.6) 60%, rgba(139, 92, 255, 0.2) 100%);
  pointer-events: none;
}

.page-home .ph-replay {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.page-home .ph-replay__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-left: 2px solid rgba(255, 122, 26, 0.5);
  background: rgba(13, 18, 32, 0.6);
  transition: background 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.page-home .ph-replay__row:hover {
  background: rgba(21, 29, 51, 0.9);
  border-left-color: var(--orange);
}

.page-home .ph-replay__time {
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.04em;
}

.page-home .ph-replay__stage {
  font-size: 13px;
  color: rgba(234, 246, 255, 0.86);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-home .ph-replay__zone {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  text-align: right;
}

.page-home .ph-replay__id {
  display: none;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: right;
}

/* ---------- 数据 ---------- */

.page-home .ph-stats {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(34, 245, 230, 0.14);
  border: 1px solid var(--ph-edge-soft);
}

.page-home .ph-stats__item {
  background: var(--ink-950);
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-home .ph-stats__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.7rem, 6vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--neon-cyan);
}

.page-home .ph-stats__plus {
  font-size: 0.44em;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--violet);
  margin-left: 2px;
}

.page-home .ph-stats__label {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .ph-trust {
  display: grid;
  gap: 18px;
}

.page-home .ph-trust__h {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--cold-white);
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 2px solid var(--violet);
}

.page-home .ph-trust__col p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(234, 246, 255, 0.72);
}

/* ---------- 移动端 ---------- */

.page-home .ph-mobile {
  display: grid;
  gap: 22px;
}

.page-home .ph-mobile__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .ph-mobile__list li {
  position: relative;
  padding: 12px 14px 12px 16px;
  font-size: 13.5px;
  line-height: 1.75;
  color: rgba(234, 246, 255, 0.76);
  background: linear-gradient(160deg, rgba(61, 123, 255, 0.12), rgba(13, 18, 32, 0.9));
  border-left: 2px solid var(--laser);
}

.page-home .ph-mobile__list .mono {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--neon-cyan);
  margin-bottom: 5px;
}

.page-home .ph-mobile__side {
  padding: 18px;
  border: 1px solid var(--ph-edge);
  background: var(--ph-surface-2);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

.page-home .ph-mobile__side p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.78;
  color: rgba(234, 246, 255, 0.8);
}

/* ---------- 结尾 ---------- */

.page-home .ph-cta {
  margin-top: 44px;
  padding: 30px 20px 32px;
  border: 1px solid rgba(255, 122, 26, 0.34);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(255, 122, 26, 0.16), transparent 62%),
    linear-gradient(160deg, rgba(21, 29, 51, 0.95), rgba(7, 10, 18, 0.96));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%);
}

.page-home .ph-cta__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 4.4vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--cold-white);
}

.page-home .ph-cta__text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(234, 246, 255, 0.78);
  max-width: 60ch;
}

.page-home .ph-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .ph-cta__meta {
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--muted);
  word-break: break-word;
}

/* ---------- 断点 ---------- */

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

  .page-home .ph-action {
    grid-template-columns: 1fr;
    grid-template-areas:
      "k"
      "t"
      "d";
    align-content: start;
    padding: 16px 14px 18px;
  }

  .page-home .ph-action__d {
    margin-top: 6px;
  }

  .page-home .ph-zone__sum {
    padding: 14px 16px;
  }

  .page-home .ph-replay__row {
    grid-template-columns: 62px minmax(0, 1fr) 52px 64px;
    padding: 11px 14px;
  }

  .page-home .ph-replay__id {
    display: block;
  }

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

  .page-home .ph-cta {
    padding: 38px 30px 40px;
  }
}

@media (min-width: 900px) {
  .page-home .ph-hero {
    padding: 56px 0 80px;
  }

  .page-home .ph-hero__grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 54px;
  }

  .page-home .ph-hero__lede {
    font-size: 17px;
  }

  .page-home .ph-field__frame {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 60px);
  }

  .page-home .ph-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    gap: 34px;
    align-items: start;
  }

  .page-home .ph-split--flip {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  }

  .page-home .ph-tl {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .page-home .ph-tl__item {
    padding: 14px 11px 16px;
    border-left: 0;
    border-top: 2px solid rgba(34, 245, 230, 0.24);
  }

  .page-home .ph-tl__item::before {
    left: 11px;
    top: -5px;
  }

  .page-home .ph-tl__item:hover,
  .page-home .ph-tl__item:focus-within {
    transform: translateY(-3px);
  }

  .page-home .ph-tl__item--now {
    border-top-color: var(--orange);
  }

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

  .page-home .ph-trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
  }

  .page-home .ph-mobile {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 30px;
    align-items: start;
  }
}

@media (min-width: 1080px) {
  .page-home .ph-body {
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    padding-top: 24px;
  }

  .page-home .ph-toc {
    position: sticky;
    top: 84px;
    border-top: 0;
    border-bottom: 0;
    border-left: 1px solid var(--ph-edge-soft);
    padding: 6px 0 6px 14px;
  }

  .page-home .ph-toc__list {
    flex-direction: column;
    overflow: visible;
    gap: 4px;
  }

  .page-home .ph-toc__link {
    border: 0;
    padding: 7px 0;
    clip-path: none;
    font-size: 12.5px;
  }

  .page-home .ph-toc__link:hover,
  .page-home .ph-toc__link:focus-visible {
    padding-left: 6px;
  }

  .page-home .ph-sec {
    padding: 64px 0;
  }

  .page-home .ph-tl {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

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

  .page-home .ph-cta {
    margin-top: 56px;
    padding: 46px 44px 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-field__frame::before,
  .page-home .ph-field__scan {
    animation: none;
  }

  .page-home .ph-action::after {
    display: none;
  }

  .page-home .ph-action,
  .page-home .ph-tl__item,
  .page-home .ph-zone__arrow {
    transition: none;
  }
}
