/* =========================================
   命理服务网站 · 全局样式
   道器合一 · 数智命理
   ========================================= */

/* ---------- CSS Variables ---------- */
:root {
  /* 色彩系统 */
  --color-void: #080B14;
  --color-obsidian: #0D1117;
  --color-ink: #1A1F2E;
  --color-gold: #C9A84C;
  --color-gold-light: #E8C97A;
  --color-purple: #6B5B95;
  --color-jade: #4A9E8B;
  --color-cinnabar: #C75B5B;
  --color-text: #E8E0D4;
  --color-text-muted: #8B8577;
  --color-border: rgba(201, 168, 76, 0.15);

  /* 五行色彩 */
  --color-wood: #6B8E23;
  --color-fire: #DC3545;
  --color-earth: #CD853F;
  --color-metal: #A8A9AD;
  --color-water: #4682B4;

  /* 字体 */
  --font-heading: 'Noto Serif SC', 'Songti SC', serif;
  --font-body: 'Noto Sans SC', -apple-system, sans-serif;
  --font-trigram: 'ZCOOL XiaoWei', 'KaiTi', serif;

  /* 间距 */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;

  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* 过渡 */
  --transition-fast: 200ms ease;
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-void);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-light);
}

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

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
  max-width: 65ch;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
}

.btn-primary {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}

.btn-primary:hover {
  background: var(--color-gold);
  color: var(--color-void);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.3);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: none;
  padding: 0.5rem 0;
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition-fast);
}

.btn-ghost:hover::after {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- Cards ---------- */
.card {
  background: rgba(26, 31, 46, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-smooth);
}

.card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.1);
  transform: translateY(-4px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background: rgba(8, 11, 20, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-gold);
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: all var(--transition-fast);
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: var(--space-2xl) var(--space-md);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Particle canvas */
#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
  letter-spacing: 0.1em;
}

.hero h1 {
  color: var(--color-text);
  margin-bottom: var(--space-md);
  text-shadow: 0 0 60px rgba(201, 168, 76, 0.2);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* ---------- Features Section ---------- */
.features {
  background: var(--color-obsidian);
}

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

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--color-text-muted);
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-md);
  color: var(--color-gold);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

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

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

/* ---------- Services / Pricing ---------- */
.services {
  background: var(--color-void);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  align-items: stretch;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl);
  position: relative;
}

.pricing-card.featured {
  border-color: var(--color-gold);
  transform: scale(1.02);
}

.pricing-card.featured::before {
  content: '热门';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-gold);
  color: var(--color-void);
  padding: 0.25rem 1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.pricing-tier {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-xs);
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-bottom: var(--space-md);
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-lg);
  flex-grow: 1;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pricing-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  flex-shrink: 0;
}

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

/* ---------- Process Section ---------- */
.process {
  background: var(--color-obsidian);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--color-gold), var(--color-purple));
}

.timeline-item {
  position: relative;
  padding-left: 70px;
  padding-bottom: var(--space-xl);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 50px;
  height: 50px;
  background: var(--color-ink);
  border: 2px solid var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
}

.timeline-content h3 {
  margin-bottom: var(--space-xs);
}

.timeline-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--color-void);
  overflow: hidden;
}

.testimonial-carousel {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  padding: var(--space-md) 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 350px;
  scroll-snap-align: start;
}

.testimonial-quote {
  font-size: 1.125rem;
  font-style: italic;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--color-void);
}

.testimonial-info h4 {
  font-size: 1rem;
  margin-bottom: 0.125rem;
}

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

/* ---------- Footer ---------- */
.footer {
  background: var(--color-obsidian);
  border-top: 1px solid var(--color-border);
  padding: var(--space-xl) 0;
}

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

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  width: 100%;
  text-align: center;
  margin-top: var(--space-md);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

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

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite;
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children > *:nth-child(2) { animation-delay: 100ms; }
.stagger-children > *:nth-child(3) { animation-delay: 200ms; }
.stagger-children > *:nth-child(4) { animation-delay: 300ms; }
.stagger-children > *:nth-child(5) { animation-delay: 400ms; }
.stagger-children > *:nth-child(6) { animation-delay: 500ms; }

/* ---------- Form Styles ---------- */
.form-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: 80px;
}

.form-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

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

.form-progress {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.progress-step {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-ink);
  border: 2px solid var(--color-border);
  transition: all var(--transition-fast);
}

.progress-dot.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.5);
}

.progress-dot.completed {
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.progress-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.progress-label.active {
  color: var(--color-gold);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.95rem;
  color: var(--color-text);
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(13, 17, 23, 0.8);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.form-actions .btn {
  flex: 1;
}

/* Radio/Checkbox custom */
.form-radio-group {
  display: flex;
  gap: var(--space-md);
}

.form-radio {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
}

.form-radio input {
  display: none;
}

.form-radio span {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.form-radio input:checked + span {
  border-color: var(--color-gold);
}

.form-radio input:checked + span::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--color-gold);
  border-radius: 50%;
}

/* ---------- Report Page ---------- */
.report-page {
  min-height: 100dvh;
  padding-top: 80px;
}

.report-header {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--color-obsidian);
}

.bazi-display {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-md);
}

.bazi-pillar {
  text-align: center;
  padding: var(--space-md);
  background: var(--color-ink);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  min-width: 100px;
}

.bazi-pillar-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.bazi-gan {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  font-family: var(--font-trigram);
}

.bazi-zhi {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-trigram);
}

.wuxing-indicator {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-sm);
}

.wuxing-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.wuxing-dot.wood { background: var(--color-wood); }
.wuxing-dot.fire { background: var(--color-fire); }
.wuxing-dot.earth { background: var(--color-earth); }
.wuxing-dot.metal { background: var(--color-metal); }
.wuxing-dot.water { background: var(--color-water); }

.report-sections {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.report-card {
  margin-bottom: var(--space-lg);
  cursor: pointer;
}

.report-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
}

.report-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-sm);
  color: var(--color-gold);
  margin-right: var(--space-md);
}

.report-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.report-card-title {
  flex: 1;
}

.report-card-title h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.report-card-title p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.report-card-toggle {
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.report-card.expanded .report-card-toggle {
  transform: rotate(180deg);
}

.report-card-content {
  display: none;
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.report-card.expanded .report-card-content {
  display: block;
}

/* Chart placeholder */
.wuxing-chart {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md);
  flex-wrap: wrap;
}

.wuxing-bar {
  text-align: center;
  min-width: 60px;
}

.wuxing-bar-value {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-trigram);
}

.wuxing-bar-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.wuxing-bar.wood .wuxing-bar-value { color: var(--color-wood); }
.wuxing-bar.fire .wuxing-bar-value { color: var(--color-fire); }
.wuxing-bar.earth .wuxing-bar-value { color: var(--color-earth); }
.wuxing-bar.metal .wuxing-bar-value { color: var(--color-metal); }
.wuxing-bar.water .wuxing-bar-value { color: var(--color-water); }

/* ---------- Checkout Page ---------- */
.checkout-page {
  min-height: 100dvh;
  padding-top: 80px;
}

.checkout-container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

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

.order-summary {
  background: var(--color-ink);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.order-item:last-child {
  border-bottom: none;
}

.order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  font-size: 1.25rem;
  font-weight: 600;
}

.order-total .price {
  color: var(--color-gold);
  font-size: 1.5rem;
}

.payment-methods {
  margin-bottom: var(--space-xl);
}

.payment-methods h3 {
  margin-bottom: var(--space-md);
  text-align: center;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--color-ink);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1.125rem;
  color: var(--color-text);
}

.payment-option:hover,
.payment-option.selected {
  border-color: var(--color-gold);
  background: rgba(201, 168, 76, 0.05);
}

.payment-icon {
  font-size: 1.5rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-obsidian);
    flex-direction: column;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2rem;
    --space-2xl: 3rem;
  }

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

  .bazi-display {
    gap: var(--space-sm);
  }

  .bazi-pillar {
    min-width: 80px;
    padding: var(--space-sm);
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =========================================
   数字客服浮窗
   ========================================= */
#customer-service{position:fixed;bottom:24px;right:24px;z-index:9999;}
.cs-trigger{width:56px;height:56px;border-radius:50%;background:var(--color-gold);color:var(--color-void);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(201,168,76,0.4);transition:transform 0.2s,box-shadow 0.2s;}
.cs-trigger:hover{transform:scale(1.1);box-shadow:0 6px 28px rgba(201,168,76,0.5);}
.cs-panel{position:absolute;bottom:72px;right:0;width:360px;max-width:calc(100vw - 48px);background:var(--color-obsidian);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:0 8px 40px rgba(0,0,0,0.5);overflow:hidden;}
.cs-header{background:linear-gradient(135deg,rgba(201,168,76,0.15),rgba(107,91,149,0.1));padding:var(--space-md);position:relative;}
.cs-header h3{font-size:1rem;color:var(--color-gold);margin-bottom:2px;}
.cs-header p{font-size:0.8rem;color:var(--color-text-muted);margin:0;}
.cs-close{position:absolute;top:8px;right:12px;background:none;border:none;color:var(--color-text-muted);font-size:1.5rem;cursor:pointer;line-height:1;}
.cs-close:hover{color:var(--color-text);}
.cs-body{padding:var(--space-md);}
.cs-field{margin-bottom:var(--space-sm);}
.cs-field label{display:block;font-size:0.8rem;color:var(--color-text-muted);margin-bottom:4px;}
.cs-field input,.cs-field textarea{width:100%;padding:0.6rem 0.8rem;background:var(--color-ink);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text);font-family:var(--font-body);font-size:0.9rem;resize:vertical;transition:border-color 0.2s;}
.cs-field input:focus,.cs-field textarea:focus{outline:none;border-color:var(--color-gold);}
.cs-submit{width:100%;margin-top:var(--space-sm);}
@media(max-width:400px){.cs-panel{width:320px;right:-8px;}}

/* 报告分层 */
.lock-overlay{text-align:center;padding:var(--space-lg);background:rgba(201,168,76,0.03);border-radius:var(--radius-sm);border:1px dashed rgba(201,168,76,0.2);}
.lock-overlay p{color:var(--color-text-muted);font-size:0.9rem;margin-top:var(--space-xs);}
@keyframes lockPulse{0%,100%{opacity:1}50%{opacity:0.85}}

/* 支付安全 */
.payment-security-badge{display:inline-flex;align-items:center;gap:0.5rem;padding:0.5rem 1rem;background:rgba(74,158,139,0.08);border:1px solid rgba(74,158,139,0.2);border-radius:var(--radius-sm);font-size:0.85rem;color:var(--color-jade);margin-bottom:var(--space-md);}
.payment-security-badge svg{flex-shrink:0;}