/* 嘿莓酒桌游戏 — 静态官网样式（霓虹酒桌主题） */
:root {
  --bg-deep: #07040c;
  --bg-panel: rgba(18, 8, 28, 0.72);
  --neon-pink: #ff3cac;
  --neon-cyan: #2bd9fe;
  --neon-gold: #ffc857;
  --neon-purple: #a855f7;
  --text: #f4eef8;
  --text-muted: rgba(244, 238, 248, 0.72);
  --radius: 18px;
  --font-display: "Ma Shan Zheng", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 固定顶栏占位：与 .site-nav 实际高度对齐，避免内容被挡 + 锚点滚动偏移 */
  --site-header-offset: calc(68px + env(safe-area-inset-top, 0px));
}

@media (max-width: 640px) {
  :root {
    --site-header-offset: calc(120px + env(safe-area-inset-top, 0px));
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: var(--site-header-offset);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .gallery-item img {
    transition: none;
  }

  .feature-card:hover {
    transform: none;
  }
}

/* 背景：深色渐变 + 微弱星光 */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(168, 85, 247, 0.35), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 40%, rgba(255, 60, 172, 0.12), transparent 45%),
    radial-gradient(ellipse 70% 50% at 0% 80%, rgba(43, 217, 254, 0.1), transparent 45%),
    linear-gradient(180deg, #0a0512 0%, #07040c 40%, #0c0618 100%);
}

.bg-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

main {
  padding-top: var(--site-header-offset);
}

/* 导航（固定在视口顶部：Logo + 菜单始终可见） */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 4, 12, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  padding-bottom: 14px;
  gap: 14px 16px;
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(255, 60, 172, 0.35);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: flex-start;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  min-height: 40px;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(0.88rem, 3vw, 1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(252, 246, 255, 0.95);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 60, 172, 0.45);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.12),
    0 4px 18px rgba(0, 0, 0, 0.35),
    0 0 28px rgba(255, 60, 172, 0.18);
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}

.nav-links a:hover {
  color: #fff;
  border-color: rgba(43, 217, 254, 0.65);
  background: rgba(43, 217, 254, 0.14);
  box-shadow:
    0 0 0 1px rgba(43, 217, 254, 0.25),
    0 6px 22px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(43, 217, 254, 0.35);
  transform: translateY(-1px);
}

.nav-links a:active {
  transform: translateY(0);
}

/* Hero */
.hero {
  padding: clamp(48px, 10vw, 96px) 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
}

.neon-title {
  display: block;
  color: #fff;
  text-shadow:
    0 0 10px rgba(255, 60, 172, 0.85),
    0 0 28px rgba(43, 217, 254, 0.55);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-primary {
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: #220018;
  background: linear-gradient(180deg, #ffe566, #ff9f1c);
  box-shadow:
    0 4px 20px rgba(255, 159, 28, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s;
}

.btn-primary:hover {
  transform: scale(1.03);
}

.btn-ghost {
  padding: 14px 24px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--neon-cyan);
  background: rgba(43, 217, 254, 0.08);
}

.hero-visual {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.hero-visual img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  vertical-align: middle;
  border-radius: var(--radius);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 1px rgba(255, 60, 172, 0.15),
    0 24px 80px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(168, 85, 247, 0.25);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 60, 172, 0.22), transparent 62%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero-visual::before {
    inset: -6%;
    opacity: 0.75;
  }
}

/* 区块通用 */
section {
  padding: 56px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  color: #fff;
}

.section-head p {
  margin: 0 auto;
  max-width: 36em;
  color: var(--text-muted);
}

/* 简介卡片 */
.intro-card {
  background: var(--bg-panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.intro-card p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.intro-card strong {
  color: var(--neon-gold);
  font-weight: 600;
}

/* 亮点网格 */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 60, 172, 0.35);
  transform: translateY(-3px);
}

.feature-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(43, 217, 254, 0.45));
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  color: #fff;
}

.feature-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* 图廊 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  align-items: start;
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(14, 10, 22, 0.98);
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: start;
}

.gallery-thumb {
  flex-shrink: 0;
  overflow: hidden;
  background: #120818;
  text-align: center;
}

.gallery-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  vertical-align: middle;
  display: inline-block;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-caption {
  flex-shrink: 0;
  position: relative;
  margin: 0;
  padding: 14px 16px 16px;
  text-align: center;
  background: rgba(14, 10, 22, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gallery-caption h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
}

.gallery-caption p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
  word-break: break-word;
}

/* CTA */
.cta {
  text-align: center;
  padding: 72px 0 96px;
}

.cta-box {
  padding: clamp(32px, 5vw, 48px);
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 60, 172, 0.12), rgba(43, 217, 254, 0.08)),
    rgba(10, 6, 18, 0.85);
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.18);
}

.cta-box h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.cta-box > p {
  margin: 0 0 24px;
  color: var(--text-muted);
}

/* —— 移动端 —— */
@media (max-width: 720px) {
  section {
    padding: 40px 0;
  }

  .hero {
    padding: clamp(28px, 8vw, 48px) 0 36px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-card {
    min-height: 44px;
  }

  .gallery-caption {
    padding: 14px 12px 12px;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: auto;
    flex: 0 1 auto;
    min-height: 40px;
    padding: 9px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
  }

  .hero-actions .btn-primary {
    box-shadow:
      0 3px 14px rgba(255, 159, 28, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .hero-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 500;
  }

  .cta {
    padding: 48px 0 72px;
  }

  .cta-box .btn-primary {
    width: auto;
    max-width: min(100%, 260px);
    margin-left: auto;
    margin-right: auto;
    display: block;
    min-height: 40px;
    padding: 9px 22px;
    font-size: 0.875rem;
    font-weight: 600;
  }
}

@media (max-width: 640px) {
  .site-nav .inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .logo {
    text-align: center;
    width: 100%;
  }

  .nav-links {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    margin: 0 -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    padding: 7px 10px;
    min-height: 36px;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
    box-shadow:
      0 0 0 1px rgba(168, 85, 247, 0.12),
      0 3px 14px rgba(0, 0, 0, 0.32),
      0 0 22px rgba(255, 60, 172, 0.14);
  }

  .hero-actions {
    display: none !important;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 9vw, 2.6rem);
    text-align: center;
  }

  .hero-lead {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .section-head {
    margin-bottom: 28px;
  }

  .section-head h2 {
    line-height: 1.25;
  }

  .site-footer {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  }

  .site-footer p {
    word-break: break-word;
  }

  .intro-card p {
    font-size: 1rem;
    line-height: 1.75;
  }
}

/* 触控设备：避免 hover 放大残留在第一张图上 */
@media (hover: none) {
  .gallery-item:hover img {
    transform: none;
  }

  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }

  .nav-links a:hover {
    transform: none;
  }
}

/* 頁腳 */
.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--neon-cyan);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
