:root {
  --night: #0c0817;
  --night-soft: #15102a;
  --night-card: #1c1538;
  --primary: #ec4899;
  --primary-deep: #db2777;
  --purple: #8b5cf6;
  --purple-deep: #7c3aed;
  --gold: #fbbf24;
  --cyan: #22d3ee;
  --bg: #faf7fd;
  --bg-soft: #f3ecfb;
  --card: #ffffff;
  --text: #241a38;
  --text-soft: #6b5f85;
  --text-light: #a79bc4;
  --line: rgba(139, 92, 246, 0.14);
  --radius: 20px;
  --radius-lg: 30px;
  --radius-sm: 14px;
  --shadow: 0 16px 40px -18px rgba(36, 26, 56, 0.22), 0 5px 16px -8px rgba(36, 26, 56, 0.1);
  --shadow-lg: 0 28px 64px -24px rgba(36, 26, 56, 0.34), 0 10px 26px -12px rgba(36, 26, 56, 0.16);
  --glow: 0 0 36px rgba(236, 72, 153, 0.35);
  --width: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(var(--width), 92%); margin-inline: auto; }

.section { padding: 88px 0; position: relative; }

.section-head { max-width: 720px; margin-bottom: 50px; }

.section-head h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-head h2 .hl {
  background: linear-gradient(120deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-head p { color: var(--text-soft); font-size: 1rem; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 16px;
  font-size: 0.98rem;
  font-weight: 700;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--purple));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(236, 72, 153, 0.5);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -10px rgba(236, 72, 153, 0.6); }

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(236, 72, 153, 0.45);
}

.btn-outline:hover { background: rgba(236, 72, 153, 0.16); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.btn-ghost:hover { background: rgba(251, 191, 36, 0.1); transform: translateY(-2px); }

/* ---------- 固定顶栏 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(12, 8, 23, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.14);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled { background: rgba(12, 8, 23, 0.94); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(120deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: 28px; }

.main-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  font-weight: 500;
  position: relative;
  transition: color 0.25s;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--purple));
  transition: width 0.25s;
}

.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { width: 100%; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: 130px 0 90px;
  background:
    radial-gradient(ellipse 55% 60% at 16% 20%, rgba(236, 72, 153, 0.2), transparent 60%),
    radial-gradient(ellipse 50% 55% at 84% 74%, rgba(139, 92, 246, 0.24), transparent 60%),
    linear-gradient(160deg, #0c0817 0%, #180f33 48%, #220f3a 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(236, 72, 153, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 72, 153, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 35%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 35%, transparent 82%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.14);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #f9a8d4;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.22;
  color: #fff;
  margin-bottom: 18px;
}

.hero-copy h1 .accent {
  background: linear-gradient(120deg, var(--primary), var(--purple-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.03rem;
  max-width: 530px;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.25);
  box-shadow: var(--shadow-lg), var(--glow);
}

.hero-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- 数据统计 ---------- */
.stats-band {
  background: var(--night);
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.stat-item { text-align: center; }

.stat-num {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  margin-bottom: 6px;
}

.stat-label { color: rgba(255, 255, 255, 0.62); font-size: 0.9rem; }

/* ---------- 热门直播间：大卡 + 列表 ---------- */
.live-section { background: var(--bg); }

.live-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.feature-cover { position: relative; }

.feature-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.live-badge {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(219, 39, 119, 0.92);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.live-badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.feature-info { padding: 26px 28px 28px; }

.feature-info h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }

.feature-info p { color: var(--text-soft); font-size: 0.94rem; margin-bottom: 16px; }

.feature-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.12);
  color: var(--purple-deep);
}

.tag.pink { background: rgba(236, 72, 153, 0.12); color: var(--primary-deep); }

.online-count {
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-deep);
}

.room-list { display: grid; gap: 18px; }

.room-item {
  display: flex;
  gap: 18px;
  padding: 16px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  align-items: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.room-item:hover { transform: translateX(5px); box-shadow: var(--shadow-lg); }

.room-thumb { position: relative; flex: 0 0 108px; }

.room-thumb img { width: 108px; height: 132px; object-fit: cover; border-radius: var(--radius-sm); }

.room-thumb .dot {
  position: absolute;
  top: 8px; left: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.25);
}

.room-body { flex: 1; min-width: 0; }

.room-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.room-body p {
  color: var(--text-soft);
  font-size: 0.83rem;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.room-body .room-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.room-body .room-meta .online-count { margin-left: 0; font-size: 0.76rem; }

/* ---------- 核心玩法 ---------- */
.play-section { background: var(--bg-soft); }

.play-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.play-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.28s, box-shadow 0.28s;
}

.play-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.play-icon {
  width: 62px; height: 62px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(139, 92, 246, 0.18));
}

.play-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }

.play-card p { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- 精彩瞬间 ---------- */
.moment-section { background: var(--bg); }

.moment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.moment-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: transform 0.28s, box-shadow 0.28s;
}

.moment-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.moment-card img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }

.moment-body { padding: 24px 26px 26px; }

.moment-body h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; }

.moment-body p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- 用户评价 ---------- */
.review-section { background: var(--bg-soft); }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.review-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.review-stars { color: var(--gold); font-size: 0.95rem; letter-spacing: 3px; margin-bottom: 14px; }

.review-text { color: var(--text); font-size: 0.93rem; margin-bottom: 20px; }

.review-user { display: flex; align-items: center; gap: 12px; }

.review-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--primary), var(--purple));
}

.review-user .name { font-weight: 700; font-size: 0.92rem; }
.review-user .role { color: var(--text-soft); font-size: 0.8rem; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--bg); }

.faq-list { display: grid; gap: 14px; max-width: 860px; margin-inline: auto; }

.faq-item {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 26px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.25s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--primary-deep);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item[open] summary { color: var(--primary-deep); }
.faq-item[open] summary::after { content: "−"; }

.faq-content { padding: 0 26px 22px; color: var(--text-soft); font-size: 0.93rem; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--night);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 34px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--purple), transparent);
  opacity: 0.65;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 46px;
  margin-bottom: 40px;
}

.footer-brand .logo-text { display: inline-block; margin-bottom: 16px; }

.footer-brand p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.55); max-width: 380px; }

.footer-col h4 { color: #fff; font-size: 0.98rem; margin-bottom: 18px; }

.footer-col a, .footer-col li {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.89rem;
  margin-bottom: 12px;
  transition: color 0.25s;
}

.footer-col a:hover { color: #f9a8d4; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.38);
}

/* ---------- 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: 24px; bottom: 26px;
  z-index: 95;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 10px 26px -6px rgba(236, 72, 153, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}

.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- 滚动淡入 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .live-layout { grid-template-columns: 1fr; }
  .play-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(12, 8, 23, 0.97);
    padding: 26px 6%;
    gap: 22px;
    border-bottom: 1px solid rgba(236, 72, 153, 0.16);
  }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 768px) {
  .section { padding: 66px 0; }
  .hero { padding: 110px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 38px; text-align: center; }
  .hero-tag { margin-inline: auto; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .moment-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin-inline: auto; }
}

@media (max-width: 520px) {
  .play-grid { grid-template-columns: 1fr; }
  .room-item { gap: 14px; padding: 14px; }
  .room-thumb { flex: 0 0 92px; }
  .room-thumb img { width: 92px; height: 112px; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .back-to-top { right: 18px; bottom: 20px; width: 44px; height: 44px; }
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}
