/* ========== HHPOKER 德扑圈官网 - 主样式表 ========== */

:root {
  --primary: #4338ca;
  --primary-dark: #312e81;
  --primary-light: #6366f1;
  --primary-soft: #e0e7ff;
  --accent: #f97316;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
}

/* ========== Navbar ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(67,56,202,0.08);
  transition: box-shadow 0.3s;
}
.navbar.shadow { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-dark);
}
.nav-brand i { color: var(--accent); font-size: 1.5rem; }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 36px;
  align-items: center;
}
.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--primary); }

.nav-btn {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  box-shadow: 0 4px 16px rgba(67,56,202,0.3);
  transition: all 0.3s !important;
}
.nav-btn:hover { box-shadow: 0 6px 24px rgba(67,56,202,0.45); transform: translateY(-1px); }

.nav-toggler { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; }

@media (max-width: 768px) {
  .nav-toggler { display: block; }
  .nav-menu {
    position: fixed; top: 72px; left: 0; width: 100%;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px);
    flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
    transition: max-height 0.4s, padding 0.4s;
  }
  .nav-menu.show { max-height: 400px; padding: 12px 0; }
  .nav-menu li { width: 100%; text-align: center; padding: 14px 0; }
  .nav-menu li a { display: block; }
}

/* ========== Hero ========== */
.hero {
  padding: 130px 24px 90px;
  background: linear-gradient(160deg, #eef2ff 0%, #e0e7ff 30%, #f8fafc 60%, #fff7ed 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; gap: 56px;
  position: relative; z-index: 1;
}
.hero-text { flex: 1; }
.hero-pill {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 20px;
}
.hero-text h1 span { color: var(--primary); }
.hero-text p {
  font-size: 1.1rem; color: var(--text-muted);
  margin-bottom: 32px; max-width: 520px; line-height: 1.8;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-fill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff;
  padding: 14px 32px; border-radius: 50px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 8px 28px rgba(67,56,202,0.35);
  transition: all 0.3s; border: none; cursor: pointer;
}
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(67,56,202,0.5); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--primary);
  padding: 13px 30px; border-radius: 50px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 2px solid var(--primary-soft);
  transition: all 0.3s; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-soft); }

.hero-visual { flex: 0 0 440px; }
.hero-visual img {
  width: 100%; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(67,56,202,0.18);
}

@media (max-width: 968px) {
  .hero-inner { flex-direction: column; gap: 36px; }
  .hero-text h1 { font-size: 2.1rem; }
  .hero-visual { flex: 0 0 auto; max-width: 440px; width: 100%; }
}

/* ========== Features ========== */
.features {
  padding: 100px 24px;
  background: #fff;
}
.sec-head {
  text-align: center; margin-bottom: 60px;
}
.sec-tag {
  display: inline-block;
  background: var(--primary-soft); color: var(--primary);
  padding: 5px 16px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 14px;
}
.sec-head h2 { font-size: 2.4rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.sec-head p { font-size: 1.05rem; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

.feat-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.feat-box {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 28px;
  transition: all 0.3s; box-shadow: var(--shadow-sm);
}
.feat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c7d2fe;
}
.feat-ico {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 18px;
}
.feat-ico.a { background: #eef2ff; color: #6366f1; }
.feat-ico.b { background: #fff7ed; color: #f97316; }
.feat-ico.c { background: #ecfdf5; color: #10b981; }

.feat-box h3 { font-size: 1.15rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; }
.feat-box p { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; }

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

/* ========== Stats ========== */
.stats {
  padding: 80px 24px;
  background: linear-gradient(135deg, #312e81 0%, #4338ca 60%, #6366f1 100%);
}
.stats-row {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: center;
}
.stat-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px; padding: 28px 16px;
  backdrop-filter: blur(6px);
}
.stat-big {
  font-size: 2.6rem; font-weight: 800; color: #fff;
  display: block; line-height: 1.2;
}
.stat-sub { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-top: 6px; font-weight: 500; }

@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stat-big { font-size: 2rem; }
}

/* ========== Testimonials ========== */
.testimonials {
  padding: 100px 24px; background: var(--bg);
}
.testi-grid {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.testi-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
}
.testi-card:hover { box-shadow: var(--shadow-md); }
.testi-stars { color: #f59e0b; margin-bottom: 12px; font-size: 0.85rem; }
.testi-body { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.testi-user { display: flex; align-items: center; gap: 12px; }
.testi-user img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.testi-user h4 { font-size: 0.93rem; font-weight: 700; color: var(--text-main); }
.testi-user small { font-size: 0.78rem; color: var(--text-muted); }

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

/* ========== FAQ ========== */
.faq {
  padding: 100px 24px; background: #fff;
}
.faq-wrap {
  max-width: 780px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq-block {
  border: 1px solid var(--border); border-radius: 14px;
  background: #fff; transition: border-color 0.3s;
}
.faq-block:hover { border-color: #c7d2fe; }
.faq-q {
  width: 100%; background: none; border: none;
  color: var(--text-main); font-size: 1.02rem; font-weight: 600;
  padding: 20px 24px; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q i { color: var(--primary); font-size: 0.8rem; transition: transform 0.3s; }
.faq-block.open .faq-q i { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s, padding 0.4s;
}
.faq-block.open .faq-a { max-height: 180px; padding: 0 24px 20px; }
.faq-a p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }

/* ========== CTA ========== */
.cta {
  padding: 100px 24px;
  background: linear-gradient(150deg, #eef2ff 0%, #e0e7ff 30%, #f8fafc 100%);
  text-align: center;
}
.cta-wrap { max-width: 640px; margin: 0 auto; }
.cta-wrap h2 { font-size: 2.4rem; font-weight: 800; color: var(--text-main); margin-bottom: 18px; }
.cta-wrap p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 32px; line-height: 1.7; }

/* ========== Footer ========== */
.footer {
  background: #0f172a; padding: 56px 24px 28px; color: #94a3b8;
}
.foot-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 36px;
}
.foot-col h5 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.foot-col p, .foot-col a {
  font-size: 0.88rem; color: #94a3b8; text-decoration: none;
  display: block; margin-bottom: 8px; line-height: 1.6; transition: color 0.2s;
}
.foot-col a:hover { color: #a5b4fc; }
.foot-bar {
  max-width: 1140px; margin: 36px auto 0; padding-top: 24px;
  border-top: 1px solid #1e293b; text-align: center; font-size: 0.82rem;
}

@media (max-width: 768px) { .foot-inner { flex-direction: column; gap: 24px; } }

/* Animations */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s, transform 0.7s;
}
.fade-in.on { opacity: 1; transform: translateY(0); }
