.page-home {
  --home-cut: -6deg;
  padding-bottom: 56px;
}

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

.page-home .hero-home::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -34%;
  width: 88%;
  height: 138%;
  background:
    linear-gradient(135deg, rgba(255, 61, 154, 0.34), rgba(34, 230, 210, 0.26) 58%, rgba(6, 10, 24, 0) 82%);
  transform: skewX(-11deg) rotate(var(--home-cut));
  border-radius: 28px;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-home::after {
  content: "";
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: 6%;
  height: 3px;
  background: linear-gradient(90deg, rgba(34, 230, 210, 0), var(--cyan) 26%, var(--magenta) 68%, rgba(255, 61, 154, 0));
  transform: rotate(var(--home-cut));
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-home__stage {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 30px;
}

.page-home .hero-home__copy {
  padding: 26px 20px 28px;
  border: 2px solid rgba(34, 230, 210, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(152deg, rgba(6, 10, 24, 0.95), rgba(13, 21, 48, 0.86));
  box-shadow: var(--hard-lg);
}

.page-home .hero-home__title {
  margin: 14px 0 0;
  font-size: clamp(36px, 6.6vw, 76px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .hero-home__lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .hero-home__actions .btn--primary {
  animation: home-breathe 3s ease-in-out infinite;
  transition: transform 0.22s var(--ease);
}

.page-home .hero-home__actions .btn--primary:hover {
  transform: scale(1.03);
}

.page-home .hero-home__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}

.page-home .hero-home__facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-home .hero-home__facts li::before {
  content: "";
  width: 6px;
  height: 6px;
  transform: rotate(45deg);
  background: var(--gold);
  flex: none;
}

.page-home .hero-home__art {
  position: relative;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  border: 2px solid rgba(34, 230, 210, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 61, 154, 0.3), rgba(34, 230, 210, 0.22));
  overflow: hidden;
}

.page-home .hero-home__art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

@keyframes home-breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 230, 210, 0.4), var(--hard); }
  50% { box-shadow: 0 0 22px 4px rgba(34, 230, 210, 0.32), var(--hard); }
}

/* ---------- 实时房间速览 ---------- */
.page-home .stat-strip {
  display: grid;
  gap: 26px;
  padding: 24px 20px;
  border: 2px solid rgba(34, 230, 210, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 34, 74, 0.96), rgba(13, 21, 48, 0.96));
  box-shadow: var(--hard);
  position: relative;
}

.page-home .stat-strip::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--gold));
}

.page-home .stat-strip__nums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 18px 14px;
}

.page-home .home-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 194, 75, 0.34);
}

.page-home .home-stat:first-child {
  border-left: 0;
  padding-left: 0;
}

.page-home .home-stat__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(32px, 6.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.page-home .home-stat__unit {
  font-size: 0.42em;
  margin-left: 4px;
  color: var(--muted);
}

.page-home .home-stat__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
}

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

.page-home .stat-strip__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-home .stat-strip__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  object-fit: cover;
}

.page-home .stat-strip__cap {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .stat-strip__side .btn {
  align-self: flex-start;
}

/* ---------- 三张入口卡 ---------- */
.page-home .entry-grid {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.page-home .entry-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px 24px;
  border: 2px solid rgba(34, 230, 210, 0.2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--hard);
  color: inherit;
  text-decoration: none;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-home .entry-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--gold));
  opacity: 0.32;
  transition: opacity 0.24s var(--ease);
}

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

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

.page-home .entry-card__media {
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: var(--ink-2);
}

.page-home .entry-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-home .entry-card__tag {
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--magenta);
  border: 1px solid rgba(255, 61, 154, 0.5);
  border-radius: 999px;
}

.page-home .entry-card__title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.page-home .entry-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .entry-card__mini {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line-soft);
}

.page-home .entry-card__mini div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .entry-card__mini dt {
  font-size: 12px;
  color: var(--muted);
}

.page-home .entry-card__mini dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--cyan);
}

.page-home .entry-card__more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
}

.page-home .entry-card__more::after {
  content: " →";
}

.page-home .entry-card--accent {
  background: linear-gradient(168deg, rgba(255, 61, 154, 0.18), rgba(22, 34, 74, 0.98) 62%);
}

/* ---------- 玩法速览 ---------- */
.page-home .play-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 76%);
  gap: 16px;
  margin-top: 26px;
  padding-bottom: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--cyan) rgba(148, 163, 198, 0.2);
}

.page-home .play-scroll > * {
  scroll-snap-align: start;
}

.page-home .play-scroll:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-home .play-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 20px;
  border: 2px solid rgba(148, 163, 198, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(22, 34, 74, 0.96), rgba(13, 21, 48, 0.96));
  box-shadow: var(--hard);
}

.page-home .play-card__tag {
  align-self: flex-start;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 4px;
  background: rgba(34, 230, 210, 0.14);
  color: var(--cyan);
}

.page-home .play-card--poker .play-card__tag {
  background: rgba(255, 61, 154, 0.16);
  color: var(--magenta);
}

.page-home .play-card--arcade .play-card__tag {
  background: rgba(255, 194, 75, 0.16);
  color: var(--gold);
}

.page-home .play-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.page-home .play-card__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.78;
  color: var(--muted);
}

.page-home .play-card__meta {
  margin: auto 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.page-home .play-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- 公平环境 ---------- */
.page-home .fair-band {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 26px;
  padding: 28px 20px 30px;
  border: 2px solid rgba(34, 230, 210, 0.26);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(34, 230, 210, 0.16), transparent 58%),
    linear-gradient(190deg, rgba(22, 34, 74, 0.96), rgba(6, 10, 24, 0.98));
  box-shadow: var(--hard-lg);
}

.page-home .fair-band__title {
  margin: 12px 0 0;
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .fair-band__text {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.page-home .fair-band__list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .fair-band__list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-left: 3px solid var(--cyan);
  background: rgba(6, 10, 24, 0.55);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-home .fair-band__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 26px;
  line-height: 1;
  color: var(--cyan);
}

.page-home .fair-band__label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.page-home .fair-band__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.page-home .fair-band__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 194, 75, 0.45);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.page-home .fair-band__link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ---------- 结尾横幅 ---------- */
.page-home .home-cta {
  margin-top: 44px;
}

.page-home .home-cta__panel {
  display: grid;
  gap: 22px;
  padding: 30px 22px;
  border: 2px solid rgba(255, 194, 75, 0.34);
  border-radius: var(--radius);
  background: linear-gradient(105deg, rgba(13, 21, 48, 0.98) 40%, rgba(255, 61, 154, 0.22) 100%);
  box-shadow: var(--hard-lg);
  transform: skewY(-1.5deg);
}

.page-home .home-cta__panel > * {
  transform: skewY(1.5deg);
}

.page-home .home-cta__title {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-home .home-cta__text {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}

.page-home .home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

  .page-home .home-cta__panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 36px 32px;
  }
}

@media (min-width: 960px) {
  .page-home .hero-home {
    padding: 32px 0 36px;
  }

  .page-home .hero-home__stage {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.86fr);
    align-items: center;
    gap: 44px;
    padding-top: 16px;
  }

  .page-home .hero-home__copy {
    padding: 40px 38px 42px;
  }

  .page-home .hero-home__art {
    min-height: 380px;
    margin-top: -22px;
  }

  .page-home .stat-strip {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: center;
    gap: 34px;
    padding: 32px 32px;
  }

  .page-home .entry-grid {
    grid-template-columns: 1.12fr 0.9fr 0.94fr;
    align-items: start;
  }

  .page-home .entry-grid > .entry-card:nth-child(2) {
    margin-top: 20px;
  }

  .page-home .entry-grid > .entry-card:nth-child(3) {
    margin-top: -14px;
  }

  .page-home .play-scroll {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow: visible;
    padding-bottom: 0;
  }

  .page-home .fair-band {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 36px;
    padding: 40px 38px;
  }

  .page-home .fair-band__links {
    grid-column: 1 / -1;
    padding-top: 6px;
    border-top: 1px solid var(--line-soft);
  }
}

@media (min-width: 1200px) {
  .page-home .hero-home__stage {
    gap: 56px;
  }

  .page-home .hero-home__art {
    min-height: 440px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-home__actions .btn--primary {
    animation: none;
  }

  .page-home .entry-card,
  .page-home .hero-home__actions .btn--primary,
  .page-home .fair-band__link {
    transition: none;
  }
}
