.page-home {
  --ph-line: 1px solid var(--rule-line);
  display: block;
  overflow-x: clip;
}

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

/* ============ 首屏 · 海报式分层 ============ */
.page-home .ph-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(112px, 20vh, 200px) 0 clamp(48px, 6vw, 78px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background:
    radial-gradient(120% 90% at 12% -10%, rgba(61, 240, 192, 0.18), transparent 58%),
    radial-gradient(90% 80% at 104% 26%, rgba(255, 138, 61, 0.16), transparent 56%),
    linear-gradient(180deg, var(--ink-deep) 0%, var(--carbon) 100%);
}

.page-home .ph-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.page-home .ph-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(0.65) contrast(1.08);
}

.page-home .ph-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 240, 192, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 240, 192, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 84%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 84%);
}

.page-home .ph-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  animation: ph-scan 9s linear infinite;
}

@keyframes ph-scan {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.55; }
  88% { opacity: 0.55; }
  100% { transform: translateY(90vh); opacity: 0; }
}

.page-home .ph-hero__inner {
  position: relative;
  z-index: 2;
}

.page-home .ph-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.page-home .ph-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
  animation: ph-pulse 2.6s var(--ease-out) infinite;
}

@keyframes ph-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0.55); }
  70% { box-shadow: 0 0 0 12px rgba(255, 138, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 138, 61, 0); }
}

.page-home .ph-hero__title {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.35rem, 8.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--score-white);
  max-width: 22ch;
}

.page-home .ph-hero__accent {
  display: block;
  color: var(--cyan);
}

.page-home .ph-hero__lead {
  margin-top: 22px;
  max-width: 64ch;
  color: var(--mist);
  font-size: clamp(0.97rem, 1.5vw, 1.1rem);
  line-height: 1.88;
}

.page-home .ph-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.page-home .ph-directory {
  margin-top: clamp(34px, 5vw, 58px);
  display: grid;
  gap: 1px;
  background: var(--rule-line);
  border: var(--ph-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .ph-directory__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 20px 24px;
  text-decoration: none;
  color: inherit;
  background: rgba(6, 30, 24, 0.86);
  transition: background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

.page-home .ph-directory__item:hover,
.page-home .ph-directory__item:focus-visible {
  background: rgba(11, 46, 38, 0.98);
  transform: translateY(-2px);
}

.page-home .ph-directory__idx {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  color: var(--cyan);
}

.page-home .ph-directory__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: 0.01em;
  color: var(--score-white);
}

.page-home .ph-directory__desc {
  font-size: 0.86rem;
  line-height: 1.72;
  color: var(--mist);
}

/* ============ 记分牌数据条 ============ */
.page-home .ph-live__head {
  max-width: 68ch;
  margin-bottom: clamp(24px, 3.4vw, 42px);
}

.page-home .ph-live__head .vsk-h2 {
  margin: 12px 0 16px;
}

.page-home .ph-live__body {
  display: grid;
  gap: 24px;
}

.page-home .ph-live__rail {
  list-style: none;
  margin: 0;
  padding: 4px 0 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}

.page-home .ph-live__item {
  position: relative;
  flex: 0 0 78%;
  max-width: 320px;
  scroll-snap-align: start;
  padding: 22px 18px 20px;
  border: var(--ph-line);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(11, 46, 38, 0.94), rgba(6, 30, 24, 0.78));
  box-shadow: var(--shadow-deep);
}

.page-home .ph-live__item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 10px;
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.page-home .ph-live__league {
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--score-white);
}

.page-home .ph-live__round {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}

.page-home .ph-live__round--big {
  font-size: 1.7rem;
  line-height: 1;
  color: var(--cyan);
}

.page-home .ph-live__stat {
  margin: 0 0 8px;
  font-size: 0.94rem;
  color: var(--score-white);
  line-height: 1.5;
}

.page-home .ph-live__num {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.page-home .ph-live__note {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--mist);
}

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

.page-home .vsk-media {
  overflow: hidden;
  border: var(--ph-line);
  border-radius: var(--radius-lg);
  background: var(--carbon);
}

.page-home .vsk-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .vsk-media__cap {
  padding: 12px 16px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--mist);
  border-top: var(--ph-line);
  background: rgba(2, 16, 12, 0.72);
}

/* ============ 场边手记 ============ */
.page-home .ph-columns__head {
  max-width: 66ch;
  margin-bottom: clamp(28px, 4vw, 46px);
}

.page-home .ph-columns__head .vsk-h2 {
  margin: 12px 0 16px;
  font-family: var(--font-serif);
  font-weight: 600;
}

.page-home .ph-columns__body {
  display: grid;
  gap: 28px;
}

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

.page-home .ph-notes {
  display: grid;
  gap: 12px;
}

.page-home .ph-note {
  border: var(--ph-line);
  border-radius: var(--radius-md);
  background: rgba(11, 46, 38, 0.52);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out);
}

.page-home .ph-note[open] {
  border-color: rgba(61, 240, 192, 0.4);
}

.page-home .ph-note__summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

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

.page-home .ph-note__meta {
  grid-column: 1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.page-home .ph-note__title {
  grid-column: 1;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.55;
  color: var(--score-white);
}

.page-home .ph-note__chev {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-line);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}

.page-home .ph-note[open] .ph-note__chev {
  transform: rotate(45deg);
  color: var(--orange);
  border-color: rgba(255, 138, 61, 0.45);
}

.page-home .ph-note__body {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.88;
}

.page-home .ph-notes__more {
  margin: 8px 0 0;
}

/* ============ 看台双栏 ============ */
.page-home .ph-desk {
  background: linear-gradient(180deg, var(--ink-panel), var(--ink-deep));
  border-top: var(--ph-line);
  border-bottom: var(--ph-line);
}

.page-home .ph-desk__head {
  max-width: 70ch;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.page-home .ph-desk__head .vsk-h2 {
  margin: 12px 0 16px;
}

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

.page-home .ph-desk__side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.page-home .ph-side-card {
  border: var(--ph-line);
  border-radius: var(--radius-lg);
  background: rgba(6, 30, 24, 0.74);
  padding: 22px 20px;
}

.page-home .ph-side-card__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: var(--score-white);
}

.page-home .ph-side-card__text {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .ph-fixtures {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .ph-fixture {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--rule-line);
}

.page-home .ph-fixture:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.page-home .ph-fixture__time {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}

.page-home .ph-fixture__name {
  display: block;
  font-size: 0.92rem;
  color: var(--score-white);
}

.page-home .ph-fixture__meta {
  display: block;
  margin-top: 3px;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--mist);
}

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

.page-home .ph-side-links a {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--cyan-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(157, 255, 226, 0.32);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.page-home .ph-side-links a:hover,
.page-home .ph-side-links a:focus-visible {
  color: var(--orange-soft);
  border-color: rgba(255, 196, 138, 0.55);
}

.page-home .ph-flow {
  display: grid;
  gap: 24px;
}

.page-home .ph-flow__block {
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  background: rgba(11, 46, 38, 0.5);
  border: var(--ph-line);
}

.page-home .ph-flow__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--score-white);
}

.page-home .ph-flow__text {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .ph-dims {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .ph-dim {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(61, 240, 192, 0.22);
  background: rgba(61, 240, 192, 0.06);
  color: var(--score-white);
}

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

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

/* ============ 排查指引 ============ */
.page-home .ph-rescue {
  position: relative;
  padding: clamp(46px, 6.4vw, 84px) 0;
  border-top: 1px solid rgba(255, 138, 61, 0.32);
  border-bottom: 1px solid rgba(255, 138, 61, 0.32);
  background:
    radial-gradient(90% 130% at 88% 0%, rgba(255, 138, 61, 0.22), transparent 62%),
    linear-gradient(135deg, rgba(255, 138, 61, 0.14), rgba(6, 30, 24, 0.62));
}

.page-home .ph-rescue__inner {
  display: grid;
  gap: 24px;
}

.page-home .ph-rescue__eyebrow {
  color: var(--orange-soft);
}

.page-home .ph-rescue__title {
  margin: 14px 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 4.4vw, 2.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--score-white);
}

.page-home .ph-rescue__text {
  margin: 0;
  max-width: 62ch;
  font-size: 0.94rem;
  line-height: 1.85;
  color: rgba(234, 247, 242, 0.86);
}

.page-home .ph-rescue__steps {
  counter-reset: phstep;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 66ch;
}

.page-home .ph-rescue__steps li {
  position: relative;
  padding-left: 38px;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--score-white);
}

.page-home .ph-rescue__steps li::before {
  counter-increment: phstep;
  content: "0" counter(phstep);
  position: absolute;
  left: 0;
  top: 1px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 138, 61, 0.5);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--orange);
}

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

/* ============ 持续更新信号 ============ */
.page-home .ph-signal__head {
  max-width: 68ch;
}

.page-home .ph-signal__head .vsk-h2 {
  margin: 12px 0 16px;
}

.page-home .ph-signal__grid {
  list-style: none;
  margin: clamp(26px, 4vw, 40px) 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--rule-line);
  border: var(--ph-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .ph-signal__item {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 24px 22px 26px;
  background: rgba(6, 30, 24, 0.88);
}

.page-home .ph-signal__num {
  font-family: var(--font-mono);
  font-size: clamp(1.7rem, 4.6vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
}

.page-home .ph-signal__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--score-white);
}

.page-home .ph-signal__desc {
  font-size: 0.83rem;
  line-height: 1.72;
  color: var(--mist);
}

.page-home .ph-signal__foot {
  margin: 24px 0 0;
  max-width: 70ch;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--mist);
}

/* ============ 尾部收束 ============ */
.page-home .ph-tail__inner {
  display: grid;
  gap: 22px;
  padding: clamp(26px, 4vw, 44px);
  border: var(--ph-line);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgba(61, 240, 192, 0.12), rgba(255, 138, 61, 0.1));
}

.page-home .ph-tail__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--score-white);
}

.page-home .ph-tail__text {
  margin: 0;
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .ph-tail__action {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

  .page-home .ph-live__rail {
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .ph-live__item {
    flex: 1 1 240px;
    max-width: none;
  }

  .page-home .ph-rescue__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
  }
}

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

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

  .page-home .ph-columns__body {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 40px;
  }

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

  .page-home .ph-tail__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 1020px) {
  .page-home .ph-desk__grid {
    grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .page-home .ph-desk__side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    align-self: start;
  }
}

@media (max-width: 559px) {
  .page-home .ph-live__item {
    flex: 0 0 84%;
  }

  .page-home .ph-rescue__steps li {
    padding-left: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-hero::after {
    animation: none;
    opacity: 0.25;
  }

  .page-home .ph-pulse {
    animation: none;
  }

  .page-home .ph-directory__item,
  .page-home .ph-note__chev,
  .page-home .ph-side-links a {
    transition: none;
  }
}
