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

/* ===== Hero 首屏 ===== */
.page-home .ph-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--topline-h));
  min-height: calc(100svh - var(--topline-h));
  padding: calc(var(--topline-h) + 40px) 20px 60px;
  overflow: hidden;
}
.page-home .ph-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-home .ph-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-home .ph-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,16,.42) 0%, rgba(10,10,16,.3) 46%, rgba(10,10,16,.82) 100%);
}
.page-home .ph-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(123,47,255,.3) 0%, rgba(10,10,16,.08) 48%, rgba(0,229,255,.1) 100%);
}
.page-home .ph-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 7px 7px;
  mix-blend-mode: overlay;
}
.page-home .ph-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}
.page-home .ph-hero__kicker {
  margin: 0 0 16px;
  color: var(--accent-cyan);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
}
.page-home .ph-hero h1 {
  margin: 0 0 24px;
  font-family: var(--font-headline);
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: var(--text-title);
}
.page-home .ph-hero__lead {
  max-width: 34em;
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-body);
}
.page-home .ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.page-home .ph-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 36px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
  list-style: none;
}
.page-home .ph-hero__meta li {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.page-home .ph-hero__meta strong {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-title);
}
.page-home .ph-hero__meta span {
  font-size: 13px;
  color: var(--text-muted);
}
.page-home .ph-hero__panel {
  position: relative;
  min-height: 260px;
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(123,47,255,.42);
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.page-home .ph-hero__orb {
  position: absolute;
  right: -84px;
  bottom: -72px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,.34) 0%, rgba(123,47,255,.16) 48%, transparent 72%);
  filter: blur(2px);
}
.page-home .ph-hero__panel-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--text-muted);
}
.page-home .ph-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan);
  animation: ph-pulse 2s var(--ease-out) infinite;
}
.page-home .ph-hero__panel-title {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-title);
}
.page-home .ph-hero__panel-note {
  max-width: 260px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}
.page-home .ph-hero__pixel {
  position: absolute;
  left: 22px;
  bottom: 18px;
  font-size: 18px;
  color: var(--accent-cyan);
}
.page-home .ph-hero__scroll {
  position: absolute;
  left: 28px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
}
.page-home .ph-hero__mouse {
  position: relative;
  width: 20px;
  height: 32px;
  border: 2px solid var(--accent-cyan);
  border-radius: 999px;
}
.page-home .ph-hero__mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  width: 4px;
  height: 7px;
  border-radius: 4px;
  background: var(--accent-cyan);
  transform: translateX(-50%);
  animation: ph-mouse 1.8s var(--ease-out) infinite;
}

/* ===== 首页索引条 ===== */
.page-home .ph-index {
  position: relative;
  z-index: 3;
  border-block: 1px solid rgba(123,47,255,.22);
  background: rgba(18,18,29,.72);
  backdrop-filter: blur(10px);
}
.page-home .ph-index .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-block: 12px;
}
.page-home .ph-index__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--text-body);
  text-decoration: none;
  transition: background .3s var(--ease-out), color .3s var(--ease-out);
}
.page-home .ph-index__item:hover {
  background: rgba(123,47,255,.18);
  color: var(--text-title);
}
.page-home .ph-index__num {
  font-size: 12px;
  font-weight: 900;
  color: var(--accent-cyan);
}

/* ===== 分区头部 ===== */
.page-home .ph-section-head {
  margin-bottom: 36px;
}

/* ===== 版本对照 ===== */
.page-home .ph-compare {
  padding: 64px 0 48px;
}
.page-home .ph-compare__grid {
  position: relative;
  display: grid;
  gap: 28px;
}
.page-home .ph-compare__card {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,.08);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-glow);
  overflow: hidden;
  transition: transform .35s var(--ease-out), border-color .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.page-home .ph-compare__card:hover {
  transform: translateY(-5px);
}
.page-home .ph-compare__card--new {
  border-color: rgba(123,47,255,.6);
}
.page-home .ph-compare__card--old:hover {
  border-color: rgba(0,229,255,.45);
  box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 44px rgba(0,229,255,.12);
}
.page-home .ph-compare__media {
  position: relative;
  min-height: 180px;
}
.page-home .ph-compare__media img,
.page-home .ph-compare__oldbox {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.page-home .ph-compare__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gradient-neon);
  font-size: 13px;
  font-weight: 800;
  color: #0A0A10;
}
.page-home .ph-compare__oldbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    radial-gradient(circle at 28% 24%, rgba(142,142,184,.2) 0, transparent 44px),
    repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 10px, transparent 10px 20px),
    #16161F;
  color: var(--text-muted);
  font-size: 14px;
}
.page-home .ph-compare__oldicon {
  font-size: 42px;
  opacity: .6;
}
.page-home .ph-compare__body {
  padding: 22px;
}
.page-home .ph-compare__body h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--text-title);
}
.page-home .ph-compare__body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--text-body);
  font-size: 15px;
}
.page-home .ph-compare__tips {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,229,255,.22);
  background: rgba(0,229,255,.08);
  font-size: 14px;
  color: var(--text-body);
}
.page-home .ph-compare__vs {
  display: none;
}
.page-home .ph-compare__foot {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-top: 34px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}
.page-home .ph-compare__foot .status-dot {
  margin-right: 6px;
}

/* ===== 合作厂商 ===== */
.page-home .ph-partners {
  position: relative;
  isolation: isolate;
  padding: 64px 0 48px;
  overflow: hidden;
}
.page-home .ph-partners__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.page-home .ph-partners__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .3;
}
.page-home .ph-partners__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(10,10,16,.76) 40%, var(--bg-deep) 100%);
}
.page-home .ph-partners__hint {
  margin: 0 0 12px;
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
}
.page-home .ph-partners__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.page-home .ph-partners__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid rgba(123,47,255,.34);
  background: var(--surface-glass);
  backdrop-filter: blur(8px);
  scroll-snap-align: start;
  transition: transform .3s var(--ease-out), border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.page-home .ph-partners__item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 26px rgba(0,229,255,.16);
}
.page-home .ph-partners__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-title);
  white-space: nowrap;
}
.page-home .ph-partners__count {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,229,255,.1);
  font-size: 13px;
  color: var(--accent-cyan);
  white-space: nowrap;
}
.page-home .ph-partners__note {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(18,18,29,.8);
}
.page-home .ph-partners__note p {
  margin: 0;
  font-size: 15px;
  color: var(--text-body);
}

/* ===== 玩法合集 ===== */
.page-home .ph-games {
  padding: 64px 0 56px;
}
.page-home .ph-games__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.page-home .ph-filter {
  display: inline-block;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid rgba(142,142,184,.4);
  background: rgba(18,18,29,.5);
  font-size: 14px;
  color: var(--text-body);
  cursor: pointer;
  transition: all .3s var(--ease-out);
}
.page-home .ph-filter:hover {
  border-color: var(--accent-cyan);
  color: var(--text-title);
}
.page-home .ph-filter-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.page-home .ph-filter-input:checked + .ph-filter {
  background: var(--gradient-neon);
  border-color: transparent;
  font-weight: 700;
  color: #0A0A10;
}
.page-home .ph-games__grid {
  display: grid;
  gap: 22px;
}
.page-home .ph-game-card {
  display: none;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.page-home .ph-game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}
.page-home .ph-game-card__media img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.page-home .ph-game-card__body {
  padding: 18px;
}
.page-home .ph-game-card__body h3 {
  margin: 8px 0;
  font-size: 18px;
  color: var(--text-title);
}
.page-home .ph-game-card__body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}
.page-home #ph-filter-all:checked ~ .ph-games__grid .ph-game-card {
  display: block;
}
.page-home #ph-filter-arcade:checked ~ .ph-games__grid .ph-game-card[data-game-category="arcade"],
.page-home #ph-filter-board:checked ~ .ph-games__grid .ph-game-card[data-game-category="board"],
.page-home #ph-filter-esports:checked ~ .ph-games__grid .ph-game-card[data-game-category="esports"] {
  display: block;
}
.page-home #ph-filter-arcade:checked ~ .ph-games__grid .ph-game-card:not([data-game-category="arcade"]),
.page-home #ph-filter-board:checked ~ .ph-games__grid .ph-game-card:not([data-game-category="board"]),
.page-home #ph-filter-esports:checked ~ .ph-games__grid .ph-game-card:not([data-game-category="esports"]) {
  display: none;
}
.page-home .ph-games__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  text-align: center;
}

/* ===== 联系客服 ===== */
.page-home .ph-help {
  padding: 56px 0 72px;
}
.page-home .ph-help__inner {
  display: grid;
  gap: 28px;
  padding: 32px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(123,47,255,.34);
  background:
    radial-gradient(circle at 92% 8%, rgba(123,47,255,.22) 0, transparent 42%),
    var(--bg-elevated);
}
.page-home .ph-help__copy h2 {
  margin: 0 0 12px;
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--text-title);
}
.page-home .ph-help__copy p {
  margin: 0;
  color: var(--text-body);
}
.page-home .ph-help__steps {
  display: grid;
  gap: 14px;
}
.page-home .ph-help__step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,.08);
  background: var(--surface-glass);
}
.page-home .ph-help__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-neon);
  font-weight: 900;
  color: #0A0A10;
}
.page-home .ph-help__step-copy strong {
  display: block;
  font-size: 16px;
  color: var(--text-title);
}
.page-home .ph-help__step-copy em {
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
}
.page-home .ph-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== 动画 ===== */
@keyframes ph-mouse {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: .4;
    transform: translateX(-50%) translateY(4px);
  }
}
@keyframes ph-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .45;
  }
}

/* ===== 响应式 ===== */
@media (min-width: 640px) {
  .page-home .ph-games__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .ph-compare__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .ph-help__inner {
    padding: 36px 30px;
  }
}

@media (min-width: 1024px) {
  .page-home .ph-hero {
    padding-inline: 40px;
  }
  .page-home .ph-hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }
  .page-home .ph-hero__copy {
    flex: 1 1 60%;
  }
  .page-home .ph-hero__panel {
    flex: 0 0 34%;
    min-height: 320px;
    margin-left: auto;
  }
  .page-home .ph-compare,
  .page-home .ph-partners {
    padding-block: 80px 72px;
  }
  .page-home .ph-games {
    padding-block: 80px 64px;
  }
  .page-home .ph-help {
    padding-block: 72px 96px;
  }
  .page-home .ph-compare__grid {
    grid-template-columns: 1.12fr .88fr;
    align-items: stretch;
  }
  .page-home .ph-compare__media img,
  .page-home .ph-compare__oldbox {
    height: 260px;
  }
  .page-home .ph-compare__vs {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-neon);
    font-size: 15px;
    font-weight: 900;
    color: #0A0A10;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 32px rgba(123,47,255,.4);
  }
  .page-home .ph-games__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .ph-help__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 36px;
    padding: 48px;
  }
  .page-home .ph-help__actions {
    grid-column: 1 / -1;
  }
  .page-home .ph-partners__hint {
    display: none;
  }
}
