/* ===== 首页专属样式 ===== */
.page-home {
  --home-font-display: "Noto Sans SC SemiBold", "微软雅黑", sans-serif;
  --home-number-size: clamp(3rem, 8vw, 5.5rem);
  --home-slant-bg: linear-gradient(135deg, rgba(61,59,255,.08) 0%, rgba(255,106,0,.06) 100%);
  position: relative;
  overflow-x: hidden;
  background: var(--color-bg);
  color: var(--color-dark);
}

.page-home .page-container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding-inline: var(--space-md);
  position: relative;
  z-index: 2;
}

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

/* ============ 首屏 ============ */
.page-home .home-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
  isolation: isolate;
  padding-block: calc(var(--header-h) + 48px) 72px;
}

.page-home .hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

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

.page-home .home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(105deg, rgba(26,26,46,.96) 0%, rgba(26,26,46,.84) 42%, rgba(61,59,255,.35) 100%),
    radial-gradient(circle at 82% 18%, rgba(255,106,0,.32), transparent 42%);
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  z-index: 1;
  background: var(--color-bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.page-home .hero-decor {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.page-home .hero-decor .deco-dice {
  position: absolute;
  top: 18%;
  right: 6%;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255,106,0,.5);
  opacity: .5;
  box-shadow: 48px 56px 0 -18px rgba(61,59,255,.45);
}

.page-home .hero-decor .deco-dice::before,
.page-home .hero-decor .deco-dice::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-white);
  top: 12px;
  left: 14px;
  box-shadow: 22px 0 0 var(--color-white), 0 26px 0 var(--color-white), 22px 26px 0 var(--color-white);
}

.page-home .hero-decor .deco-orb {
  position: absolute;
  bottom: 16%;
  left: 4%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(61,59,255,.7), rgba(61,59,255,0) 70%);
}

.page-home .breadcrumb {
  margin-bottom: 40px;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .04em;
  opacity: .85;
}

.page-home .breadcrumb a {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s ease;
}

.page-home .breadcrumb a:hover {
  color: var(--color-accent);
}

.page-home .breadcrumb [aria-current="page"] {
  color: var(--color-white);
}

.page-home .hero-layout {
  display: grid;
  gap: 44px;
  align-items: start;
}

.page-home .hero-heading-group {
  max-width: 700px;
}

.page-home .hero-sup {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-accent);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
  background: rgba(255,255,255,.05);
}

.page-home #hero-title {
  font-family: var(--home-font-display);
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin: 0 0 20px;
  color: var(--color-white);
}

.page-home .hero-lead {
  font-size: 1.04rem;
  line-height: 1.85;
  color: rgba(255,255,255,.88);
  max-width: 640px;
  margin-bottom: 30px;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.page-home .btn-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
  padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease;
}

.page-home .btn-ghost-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.page-home .hero-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  perspective: 1200px;
}

.page-home .board-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 22px 18px;
  position: relative;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease;
}

.page-home .board-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.14);
  box-shadow: 0 20px 40px rgba(0,0,0,.3);
}

.page-home .board-card h2 {
  font-family: var(--home-font-display);
  font-size: 1.2rem;
  margin: 10px 0 8px;
  color: var(--color-white);
}

.page-home .board-card p {
  font-size: .86rem;
  line-height: 1.6;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
}

.page-home .board-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.14);
  border-radius: 4px;
  padding: 4px 10px;
  text-transform: uppercase;
}

.page-home .board-tag--accent {
  color: var(--color-white);
  background: var(--color-accent);
}

.page-home .board-tag--warm {
  background: var(--color-terracotta);
  color: var(--color-white);
}

.page-home .board-tag--green {
  background: var(--color-success);
  color: var(--color-white);
}

.page-home .board-vendor {
  transform: translateY(10px);
}

.page-home .board-update {
  transform: translateY(-8px);
}

.page-home .board-fav {
  transform: translateY(6px);
}

.page-home .board-vendor:hover,
.page-home .board-update:hover,
.page-home .board-fav:hover {
  transform: translateY(-3px);
}

.page-home .service-hover {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s ease, opacity .35s ease, margin .35s ease;
}

.page-home .service-hover ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
}

.page-home .service-hover li {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: rgba(255,255,255,.75);
  padding: 4px 0;
}

.page-home .board-support:hover .service-hover,
.page-home .board-support:focus-within .service-hover {
  max-height: 120px;
  opacity: 1;
  margin-top: 10px;
}

/* ============ 章节通用 ============ */
.page-home .section-v3,
.page-home .section-support,
.page-home .section-fav,
.page-home .section-archive,
.page-home .section-games,
.page-home .section-brand {
  position: relative;
  padding-block: var(--space-xl);
}

.page-home .section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: var(--space-md);
}

.page-home .section-num {
  font-family: var(--font-mono);
  font-size: var(--home-number-size);
  font-weight: 700;
  line-height: 1;
  color: var(--color-terracotta);
  letter-spacing: -.04em;
  opacity: .9;
}

.page-home .section-head h2 {
  font-family: var(--home-font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin: 0;
  border-left: 4px solid var(--color-primary);
  padding-left: 16px;
  line-height: 1.2;
}

/* ============ 01 V3帮助文档 ============ */
.page-home .section-v3 {
  background:
    var(--home-slant-bg),
    var(--color-bg);
}

.page-home .v3-layout {
  display: grid;
  gap: 28px;
  align-items: stretch;
}

.page-home .v3-copy {
  padding: 28px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.page-home .v3-copy .lead {
  font-family: var(--home-font-display);
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--color-dark);
}

.page-home .v3-copy p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--color-gray);
  margin-bottom: 16px;
}

.page-home .v3-copy .btn-ghost-link {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.page-home .v3-copy .btn-ghost-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.page-home .v3-route {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.page-home .v3-route::after {
  content: "V3";
  position: absolute;
  right: -12px;
  bottom: -18px;
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,.07);
  line-height: 1;
}

.page-home .v3-route ol {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.page-home .v3-route li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 14px;
  border-bottom: 1px dashed rgba(255,255,255,.16);
  font-size: .94rem;
}

.page-home .v3-route li:last-child {
  border-bottom: 0;
}

.page-home .v3-route li span {
  font-family: var(--font-mono);
  font-size: .86rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-home .route-note {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--color-accent);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ============ 02 客服与厂商 ============ */
.page-home .section-support {
  background: var(--color-bg);
}

.page-home .support-grid {
  display: grid;
  gap: 22px;
}

.page-home .support-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.page-home .support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.page-home .support-service {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr;
}

.page-home .support-media {
  overflow: hidden;
}

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

.page-home .support-body {
  padding: 24px;
}

.page-home .support-body h3 {
  font-family: var(--home-font-display);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.page-home .support-body p {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--color-gray);
  margin-bottom: 14px;
}

.page-home .support-contact-line {
  font-family: var(--font-mono);
  font-size: .86rem;
  color: var(--color-primary);
}

.page-home .support-partners {
  background: var(--color-dark);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  gap: 24px;
}

.page-home .support-partners .support-body h3 {
  color: var(--color-white);
}

.page-home .support-partners .support-body p {
  color: rgba(255,255,255,.75);
}

.page-home .partner-count-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.page-home .partner-count-grid li {
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.7);
}

.page-home .stat-num {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 700;
  display: block;
  color: var(--color-accent);
  letter-spacing: -.02em;
}

/* ============ 03 一键收藏 ============ */
.page-home .section-fav {
  background:
    radial-gradient(circle at 82% 28%, rgba(61,59,255,.06), transparent 38%),
    var(--color-white);
}

.page-home .fav-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .fav-demo {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-home .demo-panel {
  width: 100%;
  max-width: 320px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
}

.page-home .demo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--color-dark);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: .85rem;
}

.page-home .demo-close {
  color: rgba(255,255,255,.5);
  font-size: 1.2rem;
  line-height: 1;
}

.page-home .demo-panel ul {
  list-style: none;
  margin: 0;
  padding: 10px 16px 16px;
}

.page-home .demo-panel li {
  padding: 10px 0 10px 14px;
  font-size: .92rem;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.page-home .demo-panel li:last-child {
  border-bottom: 0;
}

.page-home .demo-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.page-home .demo-caption {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--color-gray);
  margin-top: 20px;
}

.page-home .fav-copy .lead {
  font-family: var(--home-font-display);
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.page-home .fav-copy p {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--color-gray);
  margin-bottom: 18px;
}

/* ============ 04 旧版本资料 ============ */
.page-home .section-archive {
  background: var(--color-bg);
}

.page-home .archive-layout {
  max-width: 760px;
}

.page-home .archive-intro {
  font-size: 1.06rem;
  line-height: 1.8;
  margin-bottom: 30px;
  padding: 20px 24px;
  background: rgba(61,59,255,.05);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.page-home .archive-timeline {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  position: relative;
}

.page-home .archive-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 4px 16px;
  padding: 0 0 28px 24px;
  border-left: 2px solid var(--color-border);
  margin-left: 10px;
}

.page-home .archive-timeline li:last-child {
  padding-bottom: 0;
}

.page-home .archive-timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.page-home .archive-timeline li:first-child::before {
  background: var(--color-accent);
  box-shadow: 0 0 0 2px var(--color-accent);
}

.page-home .timeline-version {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-primary);
  line-height: 1.4;
}

.page-home .timeline-time {
  font-family: var(--font-mono);
  font-size: .82rem;
  color: var(--color-gray);
  line-height: 1.4;
}

.page-home .timeline-desc {
  grid-column: 2;
  font-size: .95rem;
  color: var(--color-gray);
}

/* ============ 05 游戏分类与玩法 ============ */
.page-home .section-games {
  background: var(--color-white);
}

.page-home .games-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.page-home .games-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  order: 2;
}

.page-home .games-media img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.page-home .games-list {
  display: grid;
  gap: 14px;
  order: 1;
}

.page-home .game-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  text-decoration: none;
  color: var(--color-dark);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.page-home .game-entry:hover,
.page-home .game-entry:focus-visible {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-soft);
  transform: translateX(8px);
  outline: none;
}

.page-home .game-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--color-bg);
  flex-shrink: 0;
}

.page-home .game-icon--poker {
  background: rgba(201,117,90,.12);
}

.page-home .game-icon--faq {
  background: rgba(78,159,122,.12);
}

.page-home .game-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .game-text strong {
  font-family: var(--home-font-display);
  font-size: 1.05rem;
}

.page-home .game-text small {
  font-size: .82rem;
  color: var(--color-gray);
}

/* ============ 06 品牌理念 ============ */
.page-home .section-brand {
  background:
    linear-gradient(180deg, var(--color-bg) 0%, rgba(61,59,255,.04) 100%);
}

.page-home .brand-layout {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .brand-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.page-home .brand-media img {
  width: 100%;
  display: block;
}

.page-home .brand-copy .section-head {
  margin-bottom: 18px;
}

.page-home .brand-slogan {
  font-family: var(--home-font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--color-primary);
}

.page-home .brand-copy p {
  font-size: .95rem;
  line-height: 1.85;
  color: var(--color-gray);
  margin-bottom: 18px;
  max-width: 560px;
}

.page-home .brand-copy .btn-ghost-link {
  color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: 600;
}

.page-home .brand-copy .btn-ghost-link:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ============ 响应式增强 ============ */
@media (min-width: 768px) {
  .page-home .hero-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 36px;
    align-items: center;
  }

  .page-home .hero-board {
    gap: 18px;
  }

  .page-home .board-card {
    padding: 26px 24px;
  }

  .page-home .section-v3,
  .page-home .section-support,
  .page-home .section-fav,
  .page-home .section-archive,
  .page-home .section-games,
  .page-home .section-brand {
    padding-block: calc(var(--space-xl) + 16px);
  }

  .page-home .v3-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 24px;
  }

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

  .page-home .support-service {
    grid-template-columns: 1fr;
  }

  .page-home .support-media img {
    min-height: 260px;
  }

  .page-home .fav-layout {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 44px;
  }

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

  .page-home .games-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    order: 1;
  }

  .page-home .games-media {
    order: 1;
  }

  .page-home .games-list {
    order: 2;
  }

  .page-home .brand-layout {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: 52px;
  }

  .page-home .archive-layout {
    margin-left: 40px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .page-home .board-card {
    padding: 30px 26px;
  }

  .page-home .board-card h2 {
    font-size: 1.35rem;
  }

  .page-home .board-support {
    margin-top: 0;
  }

  .page-home .board-fav {
    margin-top: 0;
  }

  .page-home .board-support {
    transform: translateY(0);
  }

  .page-home .board-update {
    transform: translateY(-14px);
  }

  .page-home .board-vendor {
    transform: translateY(12px);
  }

  .page-home .board-fav {
    transform: translateY(8px);
  }

  .page-home .board-support:hover {
    transform: translateY(-4px);
  }

  .page-home .board-update:hover,
  .page-home .board-vendor:hover,
  .page-home .board-fav:hover {
    transform: translateY(-6px);
  }

  .page-home .support-card {
    flex-direction: row;
  }

  .page-home .support-media img {
    min-height: 320px;
  }

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

  .page-home .stat-num {
    font-size: 2.2rem;
  }

  .page-home .section-v3 .page-container,
  .page-home .section-games .page-container,
  .page-home .section-brand .page-container {
    max-width: calc(var(--container-w) + 80px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .board-card,
  .page-home .support-card,
  .page-home .game-entry {
    transition: none;
  }

  .page-home .hero-media img {
    transform: none;
  }

  .page-home .fav-demo {
    position: static;
  }
}
