/* ============================================
   泡泡挂机乐园 · 首页样式
   B&W 卡片 + 沉浸式 Hero
   ============================================ */
:root {
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e5e5e7;
  --bg: #fafafa;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ============ 顶部导航 ============ */
.home-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(10,10,10,.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.1);
  z-index: 100;
  display: flex; align-items: center;
}
.home-brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: -.01em;
}
.home-brand:hover { color: #fff; opacity: .9; }
.home-brand i { font-size: 1.4rem; }
.home-avatar-btn {
  display: block;
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.2);
  cursor: pointer;
  transition: all .2s ease;
}
.home-avatar-btn:hover { border-color: #fff; transform: scale(1.05); }
.home-avatar-sm {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
  padding: 80px 0 60px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(102,126,234,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(118,75,162,.15) 0%, transparent 50%);
  animation: heroFloat 20s ease-in-out infinite;
}
@keyframes heroFloat {
  0%, 100% { transform: translate(0,0); }
  50% { transform: translate(-3%, 3%); }
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, transparent 48%, rgba(255,255,255,.02) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(255,255,255,.02) 50%, transparent 52%);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 20px;
  animation: slideUp .6s var(--ease) both;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: 0 0 16px;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slideUp .6s var(--ease) .1s both;
}
.hero-slogan {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,.7);
  margin: 0 0 12px;
  font-weight: 500;
  animation: slideUp .6s var(--ease) .2s both;
}
.hero-desc {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
  margin: 0 0 32px;
  max-width: 540px;
  line-height: 1.7;
  animation: slideUp .6s var(--ease) .3s both;
}
.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 36px;
  animation: slideUp .6s var(--ease) .4s both;
}
.hero-cta .btn-lg { padding: 12px 24px; font-weight: 600; border-radius: 10px; }
.hero-cta .btn-light { background: #fff; color: #0a0a0a; border-color: #fff; }
.hero-cta .btn-light:hover { background: #f0f0f0; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.hero-cta .btn-outline-light { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.hero-cta .btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

.hero-trust {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.6);
  animation: slideUp .6s var(--ease) .5s both;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 4px; }
.hero-trust i { color: rgba(255,255,255,.5); }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero 浮动卡片堆 */
.hero-card-stack {
  position: relative;
  height: 400px;
  animation: slideUp .8s var(--ease) .3s both;
}
.hero-card {
  position: absolute;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  color: #fff;
  min-width: 220px;
  animation: cardFloat 4s ease-in-out infinite;
}
.hero-card i { font-size: 2rem; opacity: .9; }
.hero-card .hc-label { font-size: .8rem; color: rgba(255,255,255,.6); }
.hero-card .hc-val { font-size: 1.4rem; font-weight: 700; margin-top: 2px; }
.hc-1 { top: 20px; right: 30px; animation-delay: 0s; }
.hc-2 { top: 150px; left: 0; animation-delay: 1s; }
.hc-3 { top: 280px; right: 60px; animation-delay: 2s; }
@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ============ 通用区段 ============ */
section { padding: 80px 0; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.st-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--muted);
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-bottom: 12px;
}
.st-tag-dark {
  color: var(--ink);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.2);
}
.section-title h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}
.section-title p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ============ Features 卡片 ============ */
.features { background: #fff; }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 24px;
  height: 100%;
  transition: all .3s var(--ease);
  text-align: center;
}
.feature-card:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.fc-icon {
  width: 56px; height: 56px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  transition: all .3s var(--ease);
}
.feature-card:hover .fc-icon { transform: rotate(-5deg) scale(1.05); }
.feature-card h5 { font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .9rem; margin: 0; line-height: 1.6; }

/* ============ 精力系统区 ============ */
.energy-section {
  background: var(--bg);
  padding: 100px 0;
}
.es-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 12px 0 16px;
  letter-spacing: -.02em;
}
.es-desc {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 24px;
}
.es-list { list-style: none; padding: 0; margin: 0 0 32px; }
.es-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 0;
  font-size: .95rem;
}
.es-list i { color: var(--ink); font-size: 1.1rem; }

.energy-demo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 30px rgba(0,0,0,.04);
}
.ed-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.ed-header i { font-size: 2.4rem; color: var(--ink); }
.ed-name { font-weight: 700; font-size: 1.05rem; }
.ed-vip { font-size: .85rem; color: var(--muted); }
.ed-bar { margin-bottom: 20px; }
.ed-label { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.ed-label i { color: var(--ink); }
.ed-progress {
  height: 16px; background: #f0f0f2; border-radius: 8px; overflow: hidden;
  margin-bottom: 6px;
}
.ed-fill {
  height: 100%;
  background: linear-gradient(90deg, #0a0a0a 0%, #2a2a2a 100%);
  border-radius: 8px;
  animation: progressShine 3s ease-in-out infinite;
}
@keyframes progressShine {
  0%, 100% { opacity: 1; }
  50% { opacity: .8; }
}
.ed-text { font-size: .85rem; color: var(--muted); text-align: right; }

.ed-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ed-action {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 10px;
  font-size: .9rem;
}
.ed-action i { font-size: 1.1rem; color: var(--ink); }
.ed-action span { flex: 1; }
.ed-action b { font-size: .85rem; }
.ed-action.sleeping { background: #0a0a0a; color: #fff; }
.ed-action.sleeping i { color: #fff; }

/* ============ 一言 ============ */
.quote-section {
  background: #0a0a0a;
  color: #fff;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.05) 0%, transparent 70%);
}
.quote-mark {
  font-size: 4rem;
  opacity: .15;
  color: #fff;
}
.quote-text {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 16px;
  font-style: italic;
  position: relative;
  z-index: 1;
}
.quote-from {
  color: rgba(255,255,255,.6);
  font-size: 1rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ============ Stats 数据 ============ */
.stats { background: #fff; }
.stat-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: all .2s ease;
}
.stat-box:hover { border-color: var(--ink); transform: translateY(-3px); }
.stat-box i {
  font-size: 2rem;
  color: var(--ink);
  margin-bottom: 12px;
  display: block;
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-lbl {
  font-size: .85rem;
  color: var(--muted);
}

/* ============ CTA 底部 ============ */
.cta-section {
  background: #0a0a0a;
  color: #fff;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(102,126,234,.15) 0%, transparent 50%);
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: 0 0 12px;
  position: relative;
}
.cta-section p {
  position: relative;
  margin-bottom: 32px;
}
.cta-section .btn {
  position: relative;
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 10px;
}
.cta-section .btn-light { background: #fff; color: #0a0a0a; }
.cta-section .btn-light:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.cta-section .btn-outline-light { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-section .btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ============ Footer ============ */
.home-footer {
  background: #000;
  color: #fff;
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.home-footer a { color: rgba(255,255,255,.6); transition: color .2s; }
.home-footer a:hover { color: #fff; }

/* ============ 响应式 ============ */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero-card-stack { display: none; }
  .ed-actions { grid-template-columns: 1fr; }
}
