/* ============================================================
   HHpoker / 德扑圈 - 清新自然绿意风 设计系统
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  /* Brand Colors - Emerald & Teal */
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-300: #5eead4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Semantic */
  --text-primary: var(--gray-800);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-400);
  --bg-primary: var(--white);
  --bg-secondary: var(--gray-50);
  --bg-tertiary: var(--emerald-50);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.08), 0 8px 10px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.1);
  --shadow-green: 0 4px 16px rgba(16, 185, 129, 0.12);
  --shadow-green-lg: 0 8px 32px rgba(16, 185, 129, 0.10);
  --shadow-teal: 0 4px 16px rgba(20, 184, 166, 0.12);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-sans: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Container */
  --container-max: 1200px;
  --header-height: 72px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
}

h1 {
  font-size: 3rem;
  letter-spacing: -0.025em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-600);
  background: var(--emerald-50);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-base);
  border-radius: inherit;
}

.btn:hover::after {
  background: rgba(255, 255, 255, 0.1);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--white);
  color: var(--emerald-600);
  border: 2px solid var(--emerald-200);
}

.btn-secondary:hover {
  background: var(--emerald-50);
  border-color: var(--emerald-400);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-full);
  padding: 0;
}

/* ---- Header / Navigation ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-base);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--emerald-100);
  box-shadow: 0 1px 8px rgba(16, 185, 129, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-900);
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.logo-text span {
  color: var(--emerald-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--emerald-500);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--emerald-600);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section ---- */
.hero {
  padding-top: calc(var(--header-height) + var(--space-4xl));
  padding-bottom: var(--space-4xl);
  background: linear-gradient(160deg, var(--emerald-500) 0%, var(--teal-600) 50%, var(--teal-700) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  padding: var(--space-xs) var(--space-lg);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.2;
}

.hero h1 .highlight {
  position: relative;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin-top: var(--space-xs);
}

/* ---- Features Section ---- */
.features {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.features .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-3xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-green);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-green-lg);
  border-color: var(--emerald-200);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  font-size: 2rem;
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--emerald-50), var(--teal-50));
  color: var(--emerald-600);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.10);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);
  transform: scale(1.05);
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Games Section ---- */
.games {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.games .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.game-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.game-card:hover {
  box-shadow: var(--shadow-green-lg);
  border-color: var(--emerald-200);
  transform: translateY(-4px);
}

.game-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: var(--emerald-50);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--emerald-600);
}

.game-card h4 {
  margin-bottom: var(--space-xs);
}

.game-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---- Stats Section ---- */
.stats-section {
  padding: var(--space-3xl) 0;
  background: linear-gradient(135deg, var(--emerald-600), var(--teal-700));
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.stat-item .stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-item .stat-name {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Testimonials ---- */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.testimonials .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.testimonial-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--emerald-100);
  border-radius: var(--radius-3xl);
  padding: var(--space-2xl);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-green);
}

/* Speech bubble tail */
.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 48px;
  width: 28px;
  height: 28px;
  background: var(--white);
  border-right: 2px solid var(--emerald-100);
  border-bottom: 2px solid var(--emerald-100);
  transform: rotate(45deg);
  border-radius: 0 0 6px 0;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-green-lg);
  border-color: var(--emerald-300);
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--emerald-300);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 4px;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-100);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--emerald-400), var(--teal-500));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-info h5 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.testimonial-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-top: 2px;
  letter-spacing: 2px;
}

/* ---- CTA Section ---- */
.cta {
  padding: var(--space-4xl) 0;
  background: linear-gradient(160deg, var(--emerald-500), var(--teal-600));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta .container {
  position: relative;
  z-index: 1;
}

.cta h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.cta p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ---- FAQ Section ---- */
.faq {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.faq .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.faq-item:hover {
  border-color: var(--emerald-200);
  box-shadow: var(--shadow-green);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
  gap: var(--space-md);
}

.faq-question:hover {
  color: var(--emerald-600);
}

.faq-arrow {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--emerald-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--emerald-600);
  transition: all var(--transition-base);
}

.faq-item.active .faq-arrow {
  transform: rotate(180deg);
  background: var(--emerald-500);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Download Page ---- */
.download-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: linear-gradient(160deg, var(--emerald-500) 0%, var(--teal-600) 50%, var(--teal-700) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.download-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  border-radius: 50%;
}

.download-hero .container {
  position: relative;
  z-index: 1;
}

.download-hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: var(--space-md);
}

.download-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.download-section {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

.download-card {
  background: var(--white);
  border: 2px solid var(--emerald-100);
  border-radius: var(--radius-3xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-green);
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-green-lg);
  border-color: var(--emerald-300);
}

.download-card.featured {
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-green-lg);
  position: relative;
}

.download-card.featured::before {
  content: '推荐';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.download-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: linear-gradient(135deg, var(--emerald-50), var(--teal-50));
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--emerald-600);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.10);
}

.download-card h3 {
  margin-bottom: var(--space-sm);
}

.download-card .version {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.download-card .btn {
  width: 100%;
}

.download-steps {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.download-steps .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.steps-list {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  max-width: 900px;
  margin: 0 auto;
}

.step-item {
  text-align: center;
  flex: 1;
  position: relative;
}

.step-item + .step-item::before {
  content: '';
  position: absolute;
  top: 32px;
  left: -40px;
  width: 40px;
  height: 2px;
  background: var(--emerald-200);
  border-radius: var(--radius-full);
}

.step-number {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.step-item h4 {
  margin-bottom: var(--space-xs);
}

.step-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.system-req {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.system-req .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.req-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.req-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--emerald-50);
  border-radius: var(--radius-xl);
  border: 1px solid var(--emerald-100);
}

.req-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--emerald-600);
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.req-content h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.req-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---- Club Page ---- */
.club-hero {
  padding-top: calc(var(--header-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: linear-gradient(160deg, var(--emerald-500) 0%, var(--teal-600) 50%, var(--teal-700) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.club-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 70%);
  border-radius: 50%;
}

.club-hero .container {
  position: relative;
  z-index: 1;
}

.club-hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: var(--space-md);
}

.club-hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.club-benefits {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.club-benefits .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.benefit-card {
  background: var(--white);
  border: 1px solid var(--emerald-100);
  border-radius: var(--radius-3xl);
  padding: var(--space-2xl);
  text-align: center;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-green);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-green-lg);
  border-color: var(--emerald-200);
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  font-size: 1.75rem;
  border-radius: var(--radius-2xl);
  margin-bottom: var(--space-lg);
  background: linear-gradient(135deg, var(--emerald-50), var(--teal-50));
  color: var(--emerald-600);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.10);
}

.benefit-card h3 {
  margin-bottom: var(--space-sm);
}

.benefit-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.club-tables {
  padding: var(--space-4xl) 0;
  background: var(--bg-secondary);
}

.club-tables .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.tables-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.table-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.table-card:hover {
  box-shadow: var(--shadow-green-lg);
  border-color: var(--emerald-200);
  transform: translateY(-4px);
}

.table-card-header {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  padding: var(--space-lg) var(--space-xl);
  color: var(--white);
  text-align: center;
}

.table-card-header h3 {
  color: var(--white);
  margin-bottom: 4px;
}

.table-card-header p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.table-card-body {
  padding: var(--space-xl);
}

.table-card-body ul li {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.table-card-body ul li:last-child {
  border-bottom: none;
}

.table-card-body ul li strong {
  color: var(--text-primary);
}

.club-how {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.club-how .section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.how-card {
  text-align: center;
  padding: var(--space-xl);
}

.how-number {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-md);
  background: var(--emerald-50);
  color: var(--emerald-600);
  border: 2px solid var(--emerald-200);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
}

.how-card h4 {
  margin-bottom: var(--space-xs);
}

.how-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ---- Footer ---- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.footer-col ul li {
  margin-bottom: var(--space-sm);
}

.footer-col ul li a {
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: var(--emerald-400);
}

.footer-contact p {
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.footer-contact .kf-phone {
  color: var(--emerald-400);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: var(--space-xl);
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ---- Customer Service Widget ---- */
.cs-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
}

.cs-toggle {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.cs-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(16, 185, 129, 0.5);
}

.cs-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: var(--white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--emerald-100);
  overflow: hidden;
  display: none;
}

.cs-panel.active {
  display: block;
  animation: slideUp 0.3s ease;
}

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

.cs-panel-header {
  background: linear-gradient(135deg, var(--emerald-500), var(--teal-600));
  color: var(--white);
  padding: var(--space-lg) var(--space-xl);
  font-weight: 700;
  font-size: 1.05rem;
}

.cs-panel-body {
  padding: var(--space-xl);
}

.cs-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--emerald-50);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-md);
}

.cs-info .cs-avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--emerald-400), var(--teal-500));
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.cs-info-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cs-info-text strong {
  color: var(--emerald-700);
  font-size: 1.05rem;
}

.cs-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cs-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.7rem var(--space-md);
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  width: 100%;
}

.cs-btn-wechat {
  background: #07c160;
  color: var(--white);
}

.cs-btn-wechat:hover {
  background: #06ad56;
}

.cs-btn-phone {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
}

.cs-btn-phone:hover {
  background: var(--emerald-100);
}

/* ---- Toast / Notification ---- */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gray-900);
  color: var(--white);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  box-shadow: var(--shadow-xl);
}

.toast.show {
  opacity: 1;
}

/* ---- Animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.875rem; }

  .hero h1 { font-size: 2.75rem; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-list { flex-wrap: wrap; }
  .step-item + .step-item::before { display: none; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .tables-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; max-width: 400px; }
  .req-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .container {
    padding: 0 var(--space-lg);
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-md);
    border-bottom: 1px solid var(--emerald-100);
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform var(--transition-base);
    z-index: 999;
  }

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

  .hero {
    padding-top: calc(var(--header-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .hero-stats { flex-wrap: wrap; gap: var(--space-xl); }

  .features-grid,
  .games-grid,
  .testimonials-grid,
  .stats-grid,
  .benefits-grid,
  .tables-grid {
    grid-template-columns: 1fr;
  }

  .how-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-xl); }

  .cta h2 { font-size: 1.75rem; }

  .section-title { font-size: 1.5rem; }
  .section-desc { font-size: 1rem; }

  .download-hero h1,
  .club-hero h1 { font-size: 2rem; }

  .cs-panel {
    width: 280px;
    right: -10px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
