/* =====================================================
   CallGuard 卫士家族 · 统一设计系统 v1.0
   科技化 | 创新化 | 美观大气 | 移动优先
   ===================================================== */

/* ====== Root Variables ====== */
:root {
  /* Brand Palette */
  --cg-primary: #2563EB;
  --cg-primary-600: #1D4ED8;
  --cg-primary-700: #1E40AF;
  --cg-primary-50: #EFF6FF;
  --cg-accent: #06B6D4;
  --cg-accent-600: #0891B2;
  --cg-success: #10B981;
  --cg-warn: #F59E0B;
  --cg-danger: #EF4444;

  /* Neutral */
  --cg-white: #FFFFFF;
  --cg-slate-50: #F8FAFC;
  --cg-slate-100: #F1F5F9;
  --cg-slate-200: #E2E8F0;
  --cg-slate-300: #CBD5E1;
  --cg-slate-400: #94A3B8;
  --cg-slate-500: #64748B;
  --cg-slate-600: #475569;
  --cg-slate-700: #334155;
  --cg-slate-800: #1E293B;
  --cg-slate-900: #0F172A;
  --cg-black: #020617;

  /* Semantic */
  --text-primary: var(--cg-slate-900);
  --text-secondary: var(--cg-slate-600);
  --text-muted: var(--cg-slate-400);
  --text-on-dark: var(--cg-white);
  --bg-body: var(--cg-white);
  --bg-surface: var(--cg-slate-50);
  --bg-card: var(--cg-white);
  --border-color: var(--cg-slate-200);

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;
  --text-6xl: 60px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
  --shadow-glow-accent: 0 0 40px rgba(6, 182, 212, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 960px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-body);
}

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ====== Utility Classes ====== */
.cg-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.cg-container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.cg-section {
  padding: var(--space-20) 0;
}

.cg-section-sm { padding: var(--space-16) 0; }
.cg-section-xs { padding: var(--space-10) 0; }

.cg-text-gradient {
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cg-text-gradient-hero {
  background: linear-gradient(135deg, #60A5FA 0%, #22D3EE 50%, #818CF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cg-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--cg-primary-50);
  color: var(--cg-primary-700);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.cg-label-dark {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cg-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-accent));
  color: var(--cg-white);
  box-shadow: var(--shadow-md);
}

.cg-icon-box-light {
  background: var(--cg-primary-50);
  color: var(--cg-primary);
}

/* ====== Buttons ====== */
.cg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}

.cg-btn:hover { transform: translateY(-1px); }
.cg-btn:active { transform: translateY(0); }

.cg-btn-primary {
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-primary-600));
  color: var(--cg-white);
  box-shadow: var(--shadow-md);
}
.cg-btn-primary:hover {
  background: linear-gradient(135deg, var(--cg-primary-600), var(--cg-primary-700));
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.cg-btn-accent {
  background: linear-gradient(135deg, var(--cg-accent), var(--cg-accent-600));
  color: var(--cg-white);
  box-shadow: var(--shadow-md);
}
.cg-btn-accent:hover {
  box-shadow: var(--shadow-lg), var(--shadow-glow-accent);
}

.cg-btn-outline {
  background: transparent;
  color: var(--cg-primary);
  border-color: var(--cg-primary);
}
.cg-btn-outline:hover {
  background: var(--cg-primary-50);
}

.cg-btn-outline-dark {
  background: transparent;
  color: var(--cg-white);
  border-color: rgba(255, 255, 255, 0.3);
}
.cg-btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.cg-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.cg-btn-ghost:hover {
  background: var(--cg-slate-100);
  color: var(--text-primary);
}

.cg-btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.cg-btn-lg { padding: var(--space-4) var(--space-6); font-size: var(--text-base); border-radius: var(--radius-lg); }
.cg-btn-xl { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); border-radius: var(--radius-lg); }
.cg-btn-block { width: 100%; }
.cg-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ====== Navbar ====== */
.cg-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-base);
}

.cg-navbar-dark {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cg-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

.cg-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 800;
  font-size: var(--text-xl);
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.cg-navbar-dark .cg-brand { color: var(--cg-white); }

.cg-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-accent));
  color: var(--cg-white);
  box-shadow: var(--shadow-md);
}

.cg-brand-text-gradient {
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cg-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.cg-nav-menu a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.cg-navbar-dark .cg-nav-menu a { color: rgba(255, 255, 255, 0.7); }

.cg-nav-menu a:hover { color: var(--cg-primary); }
.cg-navbar-dark .cg-nav-menu a:hover { color: var(--cg-white); }

.cg-nav-actions { display: flex; align-items: center; gap: var(--space-3); }

.cg-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--text-primary);
}

.cg-navbar-dark .cg-mobile-menu-btn { color: var(--cg-white); }

/* ====== Hero ====== */
.cg-hero {
  position: relative;
  padding: calc(var(--nav-height) + var(--space-24)) 0 var(--space-24);
  background: linear-gradient(135deg, var(--cg-slate-900) 0%, #1e293b 50%, #0f172a 100%);
  color: var(--cg-white);
  overflow: hidden;
}

.cg-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 45%);
  pointer-events: none;
}

.cg-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  pointer-events: none;
}

.cg-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 var(--space-5);
}

.cg-hero h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-6);
}

.cg-hero-subtitle {
  font-size: var(--text-xl);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-8);
}

.cg-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

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

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

.cg-hero-stat-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  background: linear-gradient(135deg, #60A5FA, #22D3EE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cg-hero-stat-label {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.55);
  margin-top: var(--space-1);
}

/* ====== Hero Product Gallery (9 products scrolling) ====== */
.cg-hero-gallery {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: var(--space-12);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.cg-hero-gallery-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  animation: cg-hero-gallery-scroll 35s linear infinite;
  will-change: transform;
}

.cg-hero-gallery:hover .cg-hero-gallery-track {
  animation-play-state: paused;
}

@keyframes cg-hero-gallery-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cg-hero-gallery-card {
  flex: 0 0 240px;
  height: 150px;
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  color: var(--cg-white);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(6, 182, 212, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.cg-hero-gallery-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}

.cg-hero-gallery-card .gallery-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  background: rgba(255,255,255,0.15);
  margin-bottom: var(--space-3);
}

.cg-hero-gallery-card .gallery-name {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.cg-hero-gallery-card .gallery-tagline {
  font-size: var(--text-xs);
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.4;
}

.cg-hero-gallery-card.cg-gallery-callguard { background: linear-gradient(135deg, #2563EB, #06B6D4); }
.cg-hero-gallery-card.cg-gallery-timeguard { background: linear-gradient(135deg, #7C3AED, #EC4899); }
.cg-hero-gallery-card.cg-gallery-accguard { background: linear-gradient(135deg, #059669, #10B981); }
.cg-hero-gallery-card.cg-gallery-kezong { background: linear-gradient(135deg, #EA580C, #F59E0B); }
.cg-hero-gallery-card.cg-gallery-diskchannel { background: linear-gradient(135deg, #0891B2, #22D3EE); }
.cg-hero-gallery-card.cg-gallery-inkextract { background: linear-gradient(135deg, #4338CA, #6366F1); }
.cg-hero-gallery-card.cg-gallery-smartclean { background: linear-gradient(135deg, #16A34A, #84CC16); }
.cg-hero-gallery-card.cg-gallery-startpath { background: linear-gradient(135deg, #2563EB, #8B5CF6); }
.cg-hero-gallery-card.cg-gallery-repair { background: linear-gradient(135deg, #DC2626, #F97316); }
.cg-hero-gallery-card.cg-gallery-tifen { background: linear-gradient(135deg, #2563EB, #06B6D4); }
.cg-hero-gallery-card.cg-gallery-create { background: linear-gradient(135deg, #0EA5E9, #6366F1); }
.cg-hero-gallery-card.cg-gallery-explode { background: linear-gradient(135deg, #14B8A6, #0EA5E9); }

@media (max-width: 768px) {
  .cg-hero-gallery-card {
    flex: 0 0 170px;
    height: 120px;
    padding: var(--space-4);
  }
  .cg-hero-gallery-card .gallery-icon {
    width: 36px;
    height: 36px;
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
  }
  .cg-hero-gallery-card .gallery-name {
    font-size: var(--text-base);
  }
  .cg-hero-gallery-card .gallery-tagline {
    font-size: var(--text-xs);
  }
  .cg-hero-gallery-track {
    gap: var(--space-3);
    animation-duration: 28s;
  }
}

/* ====== Section Headers ====== */
.cg-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-12);
}

.cg-section-header h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.cg-section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ====== Feature Grid ====== */
.cg-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-6);
}

.cg-grid-3 > * { grid-column: span 4; }
.cg-grid-4 > * { grid-column: span 3; }
.cg-grid-2 > * { grid-column: span 6; }

.cg-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.cg-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}

.cg-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--space-4) 0 var(--space-2);
}

.cg-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

.cg-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.cg-card-gradient-blue { background: linear-gradient(135deg, #2563EB, #06B6D4); color: white; }
.cg-card-gradient-purple { background: linear-gradient(135deg, #7C3AED, #EC4899); color: white; }
.cg-card-gradient-green { background: linear-gradient(135deg, #059669, #10B981); color: white; }
.cg-card-gradient-orange { background: linear-gradient(135deg, #EA580C, #F59E0B); color: white; }
.cg-card-gradient-cyan { background: linear-gradient(135deg, #0891B2, #22D3EE); color: white; }
.cg-card-gradient-indigo { background: linear-gradient(135deg, #4338CA, #6366F1); color: white; }

/* ====== Pricing Cards ====== */
.cg-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

.cg-pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
}

.cg-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cg-pricing-card.featured {
  border-color: var(--cg-primary);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--cg-primary);
  position: relative;
}

.cg-pricing-card.featured::before {
  content: '推荐';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-accent));
  color: white;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
}

.cg-pricing-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.cg-pricing-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

.cg-pricing-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.cg-pricing-price .amount {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--text-primary);
}

.cg-pricing-price .unit {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.cg-pricing-features {
  flex: 1;
  margin-bottom: var(--space-6);
}

.cg-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-3);
}

.cg-pricing-features li::before {
  content: '✓';
  color: var(--cg-success);
  font-weight: 700;
  flex-shrink: 0;
}

/* ====== Product Showcase (Portal) ====== */
.cg-product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-5);
}

.cg-product-card {
  grid-column: span 4;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.cg-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.15);
}

.cg-product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.cg-product-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--cg-primary), var(--cg-accent));
  color: white;
}

.cg-product-tag {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--cg-slate-100);
  color: var(--cg-slate-600);
}

.cg-product-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}

.cg-product-card .subtitle {
  font-size: var(--text-sm);
  color: var(--cg-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.cg-product-card .desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: var(--space-5);
}

.cg-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.cg-product-price {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--cg-primary);
}

.cg-product-price.free { color: var(--cg-success); }

/* ====== Footer ====== */
.cg-footer {
  background: var(--cg-slate-900);
  color: var(--cg-white);
  padding: var(--space-16) 0 var(--space-8);
}

.cg-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.cg-footer-brand .logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.cg-footer-brand p {
  font-size: var(--text-sm);
  color: var(--cg-slate-400);
  line-height: 1.7;
}

.cg-footer-links h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--cg-white);
}

.cg-footer-links a {
  display: block;
  font-size: var(--text-sm);
  color: var(--cg-slate-400);
  margin-bottom: var(--space-3);
  transition: color var(--transition-fast);
}

.cg-footer-links a:hover { color: var(--cg-white); }

.cg-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--cg-slate-500);
}

/* ====== Mobile Menu ====== */
.cg-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 999;
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
}

.cg-mobile-menu.active { display: flex; }

.cg-mobile-menu a {
  padding: var(--space-4);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
}

.cg-dark-bg .cg-mobile-menu {
  background: rgba(15, 23, 42, 0.98);
}

.cg-dark-bg .cg-mobile-menu a {
  color: var(--cg-white);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* ====== Animations ====== */
@keyframes cg-fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.cg-animate-in {
  animation: cg-fade-in-up 0.6s ease forwards;
}

.cg-animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.cg-animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.cg-animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ====== Scroll Progress ====== */
.cg-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cg-primary), var(--cg-accent));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ====== Responsive ====== */
@media (max-width: 1024px) {
  .cg-grid-4 > * { grid-column: span 6; }
  .cg-product-card { grid-column: span 6; }
  .cg-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --text-5xl: 36px;
    --text-4xl: 30px;
    --text-3xl: 24px;
    --text-2xl: 20px;
    --space-20: 64px;
    --space-24: 80px;
  }

  .cg-nav-menu { display: none; }
  .cg-mobile-menu-btn { display: flex; }
  .cg-hero h1 { font-size: var(--text-4xl); }
  .cg-hero-subtitle { font-size: var(--text-base); }
  .cg-grid-3 > *,
  .cg-grid-4 > *,
  .cg-grid-2 > *,
  .cg-product-card { grid-column: span 12; }
  .cg-pricing-grid { grid-template-columns: 1fr; }
  .cg-footer-grid { grid-template-columns: 1fr; }
  .cg-section { padding: var(--space-16) 0; }
}

@media (max-width: 480px) {
  .cg-hero-actions { flex-direction: column; width: 100%; }
  .cg-hero-actions .cg-btn { width: 100%; }
  .cg-product-grid,
  .cg-grid { gap: var(--space-4); }

  /* 导航：隐藏"登录"文字按钮（收进移动抽屉菜单），品牌缩尺防溢出 */
  .cg-nav-actions .cg-btn-ghost { display: none; }
  .cg-brand { font-size: var(--text-base); gap: var(--space-2); }
  .cg-brand-icon { width: 32px; height: 32px; font-size: var(--text-base); }
}

/* ====== Accessibility ====== */
.cg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 2px solid var(--cg-primary);
  outline-offset: 2px;
}

/* ============ 备案号悬挂 ============ */
.cg-beian{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}
.cg-beian a{font-size:var(--text-xs,12px);color:var(--cg-slate-400,#94a3b8);text-decoration:none;transition:color .2s}
.cg-beian a:hover{color:var(--cg-primary,#2563eb)}
.cg-beian-sep{font-size:12px;color:var(--cg-slate-400,#94a3b8);opacity:.5}
.cg-beian-bar{width:100%;padding:10px 0;text-align:center;background:rgba(15,23,42,.03);border-top:1px solid rgba(148,163,184,.15)}
.cg-beian-bar a{font-size:12px;color:var(--cg-slate-400,#64748b);text-decoration:none;margin:0 6px}
.cg-beian-bar a:hover{color:var(--cg-primary,#2563eb)}
.cg-footer-legal{font-size:var(--text-xs,12px);color:var(--cg-slate-400,#94a3b8);line-height:1.8;margin:0}

/* 云间命理 / 云影制作 跑马灯卡片（XT-PORTAL-BAZIFILM 20260912） */
.cg-hero-gallery-card.cg-gallery-bazi { background: linear-gradient(135deg, #6D28D9, #A855F7); }
.cg-hero-gallery-card.cg-gallery-film { background: linear-gradient(135deg, #BE123C, #F43F5E); }

/* 主站 hero 平台说明小字（XT-DLFIX 20260913） */
.cg-hero-platform-note { font-size: 13px; opacity: .75; margin: 10px auto 0; max-width: 640px; }

/* 20260930: brainviz/youth 卡片渐变（后置覆盖，同特异性取胜） */
.cg-hero-gallery-card.cg-gallery-brainviz{background-image:linear-gradient(135deg,#8B5CF6,#6366F1);}
.cg-hero-gallery-card.cg-gallery-youth{background-image:linear-gradient(135deg,#F59E0B,#EF4444);}

/* ===== 矩阵入卡 V2 2026-09-30：新增卡片渐变 ===== */
.cg-hero-gallery-card.cg-gallery-qimen { background: linear-gradient(135deg, #4C1D95, #DB2777); }
.cg-hero-gallery-card.cg-gallery-yunying { background: linear-gradient(135deg, #7E22CE, #2563EB); }
.cg-hero-gallery-card.cg-gallery-dreammaker { background: linear-gradient(135deg, #F97316, #FACC15); }
.cg-hero-gallery-card.cg-gallery-petdream { background: linear-gradient(135deg, #DB2777, #FB7185); }
.cg-hero-gallery-card.cg-gallery-canvas { background: linear-gradient(135deg, #1E3A8A, #38BDF8); }
.cg-hero-gallery-card.cg-gallery-3d { background: linear-gradient(135deg, #0D9488, #5EEAD4); }
.cg-hero-gallery-card.cg-gallery-astral { background: linear-gradient(135deg, #312E81, #8B5CF6); }
.cg-hero-gallery-card.cg-gallery-edu { background: linear-gradient(135deg, #15803D, #A3E635); }
