.page-home {
  --ph-rail-w: 272px;
  --ph-tick: rgba(41, 240, 208, 0.35);
  display: block;
  position: relative;
  background: var(--kt-void);
  color: var(--kt-ice);
}

.page-home [id] {
  scroll-margin-top: 96px;
}

/* ---------- 首屏 ---------- */
.page-home .ph-hero {
  position: relative;
  padding-block: clamp(22px, 4.5vw, 52px) clamp(30px, 5vw, 64px);
  border-bottom: 2px solid var(--kt-line);
  isolation: isolate;
}

.page-home .ph-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(30, 58, 95, 0.6) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 95, 0.6) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(130% 95% at 18% 0%, #000 22%, transparent 76%);
  mask-image: radial-gradient(130% 95% at 18% 0%, #000 22%, transparent 76%);
  pointer-events: none;
}

.page-home .ph-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3.4vw, 40px);
}

.page-home .ph-hero__lead {
  max-width: 60ch;
}

.page-home .ph-hero__lead .kt-display {
  margin: 12px 0 0;
}

.page-home .ph-hero__lede {
  margin: 18px 0 0;
  font-size: clamp(0.98rem, 1.05vw + 0.72rem, 1.1rem);
  line-height: 1.75;
  color: var(--kt-ice);
  max-width: 46ch;
}

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

.page-home .ph-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--kt-line);
}

.page-home .ph-jump__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--kt-line);
  border-radius: 2px;
  background: rgba(16, 30, 56, 0.7);
  color: var(--kt-mute);
  font-size: 0.82rem;
  line-height: 1;
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.page-home .ph-jump__item .kt-mono {
  color: var(--kt-cyan);
  font-size: 0.72rem;
}

.page-home .ph-jump__item:hover,
.page-home .ph-jump__item:focus-visible {
  color: var(--kt-ice);
  border-color: var(--kt-cyan);
  transform: translateY(-2px);
}

.page-home .ph-jump__item:focus-visible {
  outline: 2px solid var(--kt-orange);
  outline-offset: 2px;
}

/* ---------- 实时数据窗口 ---------- */
.page-home .ph-live {
  position: relative;
  display: flex;
  min-height: 340px;
  border: 2px solid var(--kt-line);
  background: var(--kt-board);
  box-shadow: var(--kt-hard-lg);
  overflow: hidden;
}

.page-home .ph-live__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
  filter: saturate(0.9);
}

.page-home .ph-live__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: clamp(18px, 2.6vw, 28px);
  background: linear-gradient(165deg, rgba(10, 20, 40, 0.72) 0%, rgba(10, 20, 40, 0.94) 62%);
}

.page-home .ph-live__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--kt-line);
}

.page-home .ph-live__stamp {
  font-size: 0.76rem;
  color: var(--kt-mute);
  letter-spacing: 0.04em;
}

.page-home .ph-live__league {
  margin: 16px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--kt-orange-soft);
}

.page-home .ph-live__score {
  margin: 6px 0 0;
  font-size: clamp(3rem, 11vw, 4.6rem);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--kt-cyan);
  text-shadow: 0 0 24px rgba(41, 240, 208, 0.28);
}

.page-home .ph-live__score span {
  padding-inline: 0.12em;
  color: var(--kt-mute);
}

.page-home .ph-live__teams {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--kt-ice);
}

.page-home .ph-live__refresh {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
}

.page-home .ph-live__note {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.page-home .ph-live__note strong {
  font-size: 0.92rem;
  color: var(--kt-ice);
}

.page-home .ph-live__note span {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--kt-mute);
}

.page-home .ph-ring {
  position: relative;
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
}

.page-home .ph-ring svg {
  display: block;
  transform: rotate(-90deg);
}

.page-home .ph-ring__track {
  fill: none;
  stroke: var(--kt-line);
  stroke-width: 4;
}

.page-home .ph-ring__bar {
  fill: none;
  stroke: var(--kt-cyan);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  animation: ph-ring-drain 30s linear infinite, ph-ring-pulse 1s ease-in-out infinite;
}

.page-home .ph-ring__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.02rem;
  color: var(--kt-cyan);
}

@keyframes ph-ring-drain {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: 188.5; }
}

@keyframes ph-ring-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (min-width: 1024px) {
  .page-home .ph-hero__inner {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    align-items: stretch;
  }
  .page-home .ph-live {
    min-height: 100%;
  }
}

/* ---------- 筛选轨道 + 战报卡片流 ---------- */
.page-home .ph-stream {
  border-bottom: 2px solid var(--kt-line);
}

.page-home .ph-stream__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(22px, 3vw, 34px);
  padding-block: clamp(28px, 5vw, 60px);
}

.page-home .ph-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  min-width: 0;
}

.page-home .ph-rail__figure {
  margin: 0;
  border: 2px solid var(--kt-line);
  background: var(--kt-board);
  overflow: hidden;
  max-height: 190px;
}

.page-home .ph-rail__figure img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  opacity: 0.62;
}

.page-home .ph-rail__title {
  margin: 4px 0 0;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--kt-ice);
}

.page-home .ph-rail__note {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--kt-mute);
}

.page-home .ph-rail__group {
  margin: 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--kt-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .ph-rail__group legend {
  float: left;
  width: 100%;
  padding: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--kt-mute);
}

.page-home .ph-count {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 4px 10px;
  padding: 14px 16px;
}

.page-home .ph-count__num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--kt-orange);
  line-height: 1;
}

.page-home .ph-count__hint {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  color: var(--kt-mute);
}

.page-home .ph-feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.page-home .ph-card {
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.page-home .ph-card:hover,
.page-home .ph-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--kt-cyan);
}

.page-home .ph-card:focus-visible {
  outline: 2px solid var(--kt-orange);
  outline-offset: 3px;
}

.page-home .ph-card__score {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--kt-cyan);
  padding-inline: 0.18em;
}

.page-home .ph-card__figure {
  margin: 0;
  border-bottom: 2px solid var(--kt-line);
}

.page-home .ph-card__img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.8;
}

.page-home .ph-card__cap {
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--kt-mute);
  background: rgba(6, 12, 22, 0.6);
}

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

.page-home .ph-card--wide .ph-card__title {
  margin-top: 10px;
}

@media (min-width: 760px) {
  .page-home .ph-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .page-home .ph-card--offset {
    margin-top: 34px;
  }
  .page-home .ph-card--wide {
    grid-column: 1 / -1;
  }
  .page-home .ph-card--wide {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
  }
  .page-home .ph-card--wide .ph-card__figure {
    border-bottom: 0;
    border-right: 2px solid var(--kt-line);
    height: 100%;
  }
  .page-home .ph-card--wide .ph-card__img {
    height: 100%;
    aspect-ratio: auto;
  }
  .page-home .ph-card--wide .ph-card__cap {
    border-top: 1px solid var(--kt-line);
  }
}

@media (min-width: 1000px) {
  .page-home .ph-stream__grid {
    grid-template-columns: var(--ph-rail-w) minmax(0, 1fr);
    gap: 36px;
  }
  .page-home .ph-rail {
    position: relative;
    padding-right: 26px;
    border-right: 1px solid var(--kt-line);
  }
}

/* ---------- 快速通道路径 ---------- */
.page-home .ph-path {
  border-bottom: 2px solid var(--kt-line);
  padding-block: clamp(30px, 5.5vw, 68px);
}

.page-home .ph-steps {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 26px 0 0;
  padding: 0;
}

.page-home .ph-step {
  position: relative;
  padding: 20px 18px 20px 22px;
  border: 2px solid var(--kt-line);
  border-left-width: 5px;
  background: var(--kt-board);
  box-shadow: var(--kt-hard);
}

.page-home .ph-step__no {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--kt-cyan);
}

.page-home .ph-step__title {
  margin: 10px 0 8px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--kt-ice);
}

.page-home .ph-step__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--kt-mute);
}

.page-home .ph-step__time {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border: 1px solid var(--kt-orange);
  border-radius: 2px;
  font-size: 0.74rem;
  color: var(--kt-orange-soft);
  background: rgba(255, 107, 44, 0.1);
}

.page-home .ph-path__figure {
  margin: 28px 0 0;
}

.page-home .ph-path__figure .kt-figure__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.7;
}

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

/* ---------- 栏目索引带 ---------- */
.page-home .ph-index {
  padding-block: clamp(26px, 4vw, 48px);
  border-bottom: 2px solid var(--kt-line);
  background: linear-gradient(180deg, rgba(16, 30, 56, 0) 0%, rgba(16, 30, 56, 0.55) 100%);
}

.page-home .ph-index__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.page-home .ph-chan {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 14px;
  padding: 14px 16px;
  border: 2px solid var(--kt-line);
  border-radius: 2px;
  background: var(--kt-board);
  color: var(--kt-ice);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.page-home .ph-chan__no {
  grid-row: 1 / 3;
  font-size: 0.86rem;
  color: var(--kt-cyan);
}

.page-home .ph-chan__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.page-home .ph-chan__state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: var(--kt-mute);
}

.page-home .ph-chan__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--kt-cyan);
  box-shadow: 0 0 8px rgba(41, 240, 208, 0.8);
  animation: ph-ring-pulse 2s ease-in-out infinite;
}

.page-home .ph-chan:hover,
.page-home .ph-chan:focus-visible {
  border-color: var(--kt-cyan);
  background: rgba(16, 30, 56, 0.95);
  transform: translateY(-2px);
}

.page-home .ph-chan:focus-visible {
  outline: 2px solid var(--kt-orange);
  outline-offset: 2px;
}

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

@media (min-width: 1080px) {
  .page-home .ph-index__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
  }
  .page-home .ph-chan {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px 14px;
  }
  .page-home .ph-chan__no {
    grid-row: auto;
    grid-column: 1 / -1;
  }
  .page-home .ph-chan__name {
    grid-column: 1 / -1;
  }
  .page-home .ph-chan__state {
    grid-column: 1 / -1;
  }
}

/* ---------- 多联赛动线 ---------- */
.page-home .ph-rhythm {
  padding-block: clamp(30px, 5.5vw, 70px) clamp(34px, 6vw, 80px);
}

.page-home .ph-rhythm__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 24px;
  border-top: 2px solid var(--kt-line);
}

.page-home .ph-scene {
  padding: 24px 0;
  border-bottom: 1px solid var(--kt-line);
}

.page-home .ph-scene__no {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--kt-orange-soft);
}

.page-home .ph-scene__title {
  margin: 12px 0 10px;
  font-size: clamp(1.15rem, 1.6vw + 0.8rem, 1.6rem);
  font-weight: 700;
  color: var(--kt-ice);
}

.page-home .ph-scene__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.75;
  color: var(--kt-mute);
  max-width: 48ch;
}

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

@media (min-width: 860px) {
  .page-home .ph-rhythm__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    border-top: 0;
  }
  .page-home .ph-scene {
    padding: 0 0 0 22px;
    border-bottom: 0;
    border-left: 2px solid var(--kt-line);
  }
  .page-home .ph-scene:nth-child(2) {
    border-left-color: var(--kt-cyan);
  }
  .page-home .ph-scene:nth-child(3) {
    border-left-color: var(--kt-orange);
  }
}

/* ---------- 状态面板微调 ---------- */
.page-home .kt-status {
  max-width: calc(100% - 24px);
}

@media (min-width: 700px) {
  .page-home .kt-status {
    max-width: 300px;
  }
}
