.page-home {
  --ph-purple-light: #B49BFF;
  position: relative;
  color: var(--im-text);
  background: var(--im-ink);
}

.page-home h1,
.page-home h2,
.page-home h3 {
  margin: 0;
}

.page-home .ph-h2 {
  font-size: clamp(23px, 5vw, 40px);
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 900;
  color: #fff;
  max-width: 24ch;
}

.page-home .ph-slant {
  display: inline-block;
  transform: rotate(-6deg);
  color: var(--im-cyan);
  text-shadow: 0 0 28px rgba(34, 224, 255, .45);
}

/* ---------- 首屏 ---------- */
.page-home .ph-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 30px 0 46px;
}

.page-home .ph-hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -12%;
  bottom: -14%;
  width: 128%;
  height: 68%;
  background: linear-gradient(140deg, rgba(14, 20, 48, .98) 0%, rgba(6, 43, 42, .94) 48%, rgba(58, 15, 34, .94) 100%);
  clip-path: polygon(0 26%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.page-home .ph-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(138, 147, 178, .09) 0 1px, transparent 1px 7px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0) 76%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0) 76%);
}

.page-home .ph-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

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

.page-home .ph-hero__crumbs {
  margin-bottom: 2px;
}

.page-home .ph-hero__title {
  font-size: clamp(34px, 9.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 900;
  color: #fff;
}

.page-home .ph-hero__lede {
  font-size: var(--im-fs-17);
  color: #C9CFE2;
  line-height: 1.75;
  max-width: 46ch;
}

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

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

.page-home .ph-hero__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 224, 255, .32);
  background: linear-gradient(150deg, rgba(34, 224, 255, .1), rgba(139, 92, 255, .16));
  clip-path: polygon(0 0, 100% 7%, 100% 100%, 0 93%);
}

.page-home .ph-hero__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(0deg, rgba(5, 6, 11, .34) 0 1px, transparent 1px 4px);
}

.page-home .ph-hero__frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-home .ph-hero__card {
  position: relative;
  margin: -26px 14px 0 0;
  padding: 16px 18px;
  background: rgba(5, 6, 11, .92);
  border: 1px solid rgba(34, 224, 255, .4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(34, 224, 255, .16);
}

.page-home .ph-hero__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--im-cyan), rgba(34, 224, 255, 0));
}

.page-home .ph-hero__round {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  margin: 10px 0 0;
}

.page-home .ph-hero__round-no {
  font-size: var(--im-fs-28);
  color: var(--im-orange);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}

.page-home .ph-hero__state {
  font-size: var(--im-fs-13);
  color: var(--im-muted);
}

.page-home .ph-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--im-line-2);
}

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

.page-home .ph-stats dt {
  font-size: var(--im-fs-12);
  color: var(--im-muted);
  letter-spacing: .02em;
}

.page-home .ph-stats dd {
  margin: 4px 0 0;
  font-size: var(--im-fs-17);
  color: var(--im-cyan);
  font-variant-numeric: tabular-nums;
}

/* ---------- 三入口命令区 ---------- */
.page-home .ph-entries {
  padding: 6px 0 10px;
}

.page-home .ph-entries__title {
  font-size: clamp(21px, 4.6vw, 28px);
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 16px;
}

.page-home .ph-entries__list {
  display: grid;
  gap: 10px;
  max-width: 980px;
}

.page-home .ph-entry {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(118deg, rgba(14, 20, 48, .94), rgba(6, 43, 42, .66));
  border: 1px solid var(--im-line);
  transition: transform .28s var(--im-ease), border-color .28s var(--im-ease), box-shadow .28s var(--im-ease);
}

.page-home .ph-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(118deg, rgba(34, 224, 255, .16), rgba(139, 92, 255, .14) 52%, rgba(255, 138, 61, .14));
  transition: opacity .28s var(--im-ease);
}

.page-home .ph-entry:hover,
.page-home .ph-entry:focus-visible {
  transform: translateX(4px);
  border-color: rgba(34, 224, 255, .55);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 0 32px rgba(34, 224, 255, .16);
}

.page-home .ph-entry:hover::before,
.page-home .ph-entry:focus-visible::before {
  opacity: 1;
}

.page-home .ph-entry__id {
  position: relative;
  font-size: var(--im-fs-17);
  color: var(--im-cyan);
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

.page-home .ph-entry__text {
  position: relative;
  min-width: 0;
}

.page-home .ph-entry__name {
  display: block;
  font-size: var(--im-fs-17);
  font-weight: 700;
  color: #fff;
}

.page-home .ph-entry__desc {
  display: block;
  margin-top: 4px;
  font-size: var(--im-fs-15);
  line-height: 1.6;
  color: var(--im-muted);
}

.page-home .ph-entry__go {
  position: relative;
  font-size: var(--im-fs-17);
  color: var(--im-orange);
}

/* ---------- 轮次轴 ---------- */
.page-home .ph-rounds {
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  padding: 42px 0 38px;
  background: var(--im-indigo);
  border-top: 1px solid var(--im-line-2);
  border-bottom: 1px solid var(--im-line-2);
}

.page-home .ph-rounds__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .26;
}

.page-home .ph-rounds::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 11, .88), rgba(6, 43, 42, .72) 50%, rgba(5, 6, 11, .92));
}

.page-home .ph-rounds__inner {
  position: relative;
  z-index: 1;
}

.page-home .ph-track {
  display: flex;
  margin: 26px 0 0;
  padding: 0 0 14px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.page-home .ph-track__node {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 200px;
  padding: 26px 20px 18px 18px;
  border-left: 1px solid var(--im-line);
}

.page-home .ph-track__node::before {
  content: "";
  position: absolute;
  top: 16px;
  left: -1px;
  width: 34px;
  height: 1px;
  background: var(--im-cyan);
  opacity: .55;
}

.page-home .ph-track__no {
  display: block;
  font-size: var(--im-fs-28);
  color: var(--im-muted);
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}

.page-home .ph-track__name {
  display: block;
  margin-top: 8px;
  font-size: var(--im-fs-17);
  font-weight: 700;
  color: #fff;
}

.page-home .ph-track__desc {
  display: block;
  margin-top: 6px;
  font-size: var(--im-fs-13);
  line-height: 1.6;
  color: var(--im-muted);
  max-width: 30ch;
}

.page-home .ph-track__node.is-current {
  background: linear-gradient(160deg, rgba(58, 15, 34, .86), rgba(58, 15, 34, .2));
  border-left-color: var(--im-orange);
}

.page-home .ph-track__node.is-current::before {
  width: 60px;
  height: 2px;
  background: var(--im-orange);
  opacity: 1;
}

.page-home .ph-track__node.is-current::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 56px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--im-orange);
  animation: ph-pulse 2.2s var(--im-ease) infinite;
}

.page-home .ph-track__node.is-current .ph-track__no {
  color: var(--im-orange);
}

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

/* ---------- 对局卡池 ---------- */
.page-home .ph-matches {
  padding: 52px 0 48px;
}

.page-home .ph-matches__head {
  display: grid;
  gap: 20px;
  margin-bottom: 22px;
}

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

.page-home .ph-matches__lede,
.page-home .ph-return__lede,
.page-home .ph-arena__lede {
  font-size: var(--im-fs-15);
  line-height: 1.75;
  color: var(--im-muted);
  max-width: 52ch;
}

.page-home .ph-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--im-line);
  background: linear-gradient(140deg, rgba(14, 20, 48, .9), rgba(6, 43, 42, .72));
}

.page-home .ph-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .ph-shot__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 10px;
  background: var(--im-paper);
  color: #0A0C14;
  font-family: var(--im-font-mono);
  font-size: var(--im-fs-12);
  letter-spacing: .04em;
}

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

.page-home .ph-match {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  transition: transform .3s var(--im-ease), border-color .3s var(--im-ease), box-shadow .3s var(--im-ease);
}

.page-home .ph-match:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 224, 255, .5);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .5), 0 0 30px rgba(34, 224, 255, .14);
}

.page-home .ph-match__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.page-home .ph-match__result {
  padding: 3px 8px;
  border: 1px solid rgba(255, 138, 61, .5);
  background: var(--im-orange-soft);
  color: var(--im-orange);
  font-size: var(--im-fs-13);
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.page-home .ph-match__title {
  font-size: var(--im-fs-17);
  line-height: 1.45;
  font-weight: 700;
  color: #fff;
}

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

.page-home .ph-match__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  font-size: var(--im-fs-13);
  line-height: 1.6;
  color: var(--im-muted);
}

.page-home .ph-match__key {
  font-family: var(--im-font-mono);
  color: var(--ph-purple-light);
  letter-spacing: .02em;
}

.page-home .ph-match__link {
  margin-top: auto;
  align-self: flex-start;
  padding-bottom: 2px;
  font-size: var(--im-fs-13);
  color: var(--im-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 224, 255, .35);
}

.page-home .ph-match__link:hover {
  border-bottom-color: var(--im-cyan);
}

/* ---------- 回访快捷区 ---------- */
.page-home .ph-return {
  padding: 46px 0 52px;
  background: linear-gradient(180deg, rgba(14, 20, 48, .72), rgba(5, 6, 11, 0));
}

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

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

.page-home .ph-return__list {
  display: grid;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--im-line-2);
  max-width: 620px;
}

.page-home .ph-return__item {
  border-bottom: 1px solid var(--im-line-2);
}

.page-home .ph-return__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  grid-template-areas:
    "label arrow"
    "hint arrow";
  gap: 2px 10px;
  padding: 13px 2px;
  text-decoration: none;
  color: inherit;
  transition: padding-left .24s var(--im-ease), color .24s var(--im-ease);
}

.page-home .ph-return__link::after {
  grid-area: arrow;
  align-self: center;
  content: "→";
  font-family: var(--im-font-mono);
  font-size: var(--im-fs-17);
  color: var(--im-orange);
}

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

.page-home .ph-return__label {
  grid-area: label;
  font-size: var(--im-fs-17);
  font-weight: 700;
  color: #fff;
}

.page-home .ph-return__hint {
  grid-area: hint;
  font-size: var(--im-fs-13);
  line-height: 1.6;
  color: var(--im-muted);
}

/* ---------- 观赛体验 ---------- */
.page-home .ph-arena {
  padding: 8px 0 54px;
}

.page-home .ph-arena__lede {
  margin-top: 12px;
}

.page-home .ph-arena__grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.page-home .ph-arena__item {
  position: relative;
  padding: 18px 16px 18px;
  background: linear-gradient(160deg, rgba(14, 20, 48, .88), rgba(6, 43, 42, .5));
  border: 1px solid var(--im-line-2);
  border-top: 2px solid var(--im-cyan);
}

.page-home .ph-arena__item:nth-child(2) {
  border-top-color: var(--im-purple);
}

.page-home .ph-arena__item:nth-child(3) {
  border-top-color: var(--im-orange);
}

.page-home .ph-arena__name {
  font-size: var(--im-fs-17);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}

.page-home .ph-arena__text {
  margin: 10px 0 0;
  font-size: var(--im-fs-15);
  line-height: 1.75;
  color: var(--im-muted);
}

/* ---------- 更新提示带 ---------- */
.page-home .ph-update {
  padding: 0 0 40px;
}

.page-home .ph-update__inner {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(120deg, rgba(58, 15, 34, .92), rgba(14, 20, 48, .92));
  border: 1px solid var(--im-line);
}

.page-home .ph-update__text {
  font-size: var(--im-fs-15);
  font-weight: 500;
  line-height: 1.7;
  color: var(--im-text);
  margin: 0;
}

.page-home .ph-update .im-btn {
  justify-self: start;
}

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

  .page-home .ph-arena__item:nth-child(2) {
    margin-top: 22px;
  }

  .page-home .ph-arena__item:nth-child(3) {
    margin-top: 44px;
  }

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

  .page-home .ph-update__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
  }

  .page-home .ph-update .im-btn {
    justify-self: end;
  }
}

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

  .page-home .ph-hero::before {
    left: auto;
    bottom: auto;
    top: -22%;
    right: -16%;
    width: 112%;
    height: 144%;
    clip-path: polygon(26% 0, 100% 0, 100% 100%, 0 100%);
  }

  .page-home .ph-hero__inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 40px;
    align-items: start;
    padding-top: 18px;
  }

  .page-home .ph-hero__title {
    font-size: var(--im-fs-64);
  }

  .page-home .ph-hero__card {
    position: absolute;
    left: -36px;
    bottom: -26px;
    width: min(320px, 74%);
    margin: 0;
  }

  .page-home .ph-entries {
    padding: 20px 0 12px;
  }

  .page-home .ph-entry {
    grid-template-columns: 56px minmax(0, 1fr) 20px;
    gap: 18px;
    padding: 18px 22px;
  }

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

  .page-home .ph-matches__head {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: end;
  }

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

  .page-home .ph-return__media {
    order: 2;
  }

  .page-home .ph-arena {
    padding: 12px 0 68px;
  }
}

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

  .page-home .ph-match:nth-child(3n+2) {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-entry,
  .page-home .ph-match,
  .page-home .ph-return__link {
    transition: none;
  }

  .page-home .ph-track__node.is-current::after {
    animation: none;
  }
}
