/* ============================================
   惠饮AI官网旗舰版2027 - 全局样式
   HuiYin AI Official Website v2027 - Global Styles
   Design: Light Natural + Premium Beverage Theme
   ============================================ */

/* --- CSS Variables --- */
:root {
  /* 主品牌色 - 自然绿 */
  --primary: #00B37E;
  --primary-light: #34D19E;
  --primary-dark: #008A62;
  --primary-glow: rgba(0, 179, 126, 0.25);
  
  /* 辅助色 */
  --accent-blue: #0088E0;
  --accent-purple: #6B4CE6;
  --accent-cyan: #00B8D4;
  --accent-gold: #E6A800;
  
  /* 浅色主背景 - 暖白米色系 */
  --bg-deep: #F7F3EE;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAF8F5;
  --bg-surface: #F0ECE6;
  --bg-elevated: #E8E3DC;
  
  /* 浅色区域 */
  --bg-white: #FFFFFF;
  --bg-light: #F4F0EB;
  --bg-section: #FAF8F5;
  
  /* 文字色 - 深色文字 */
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-muted: #8A8A9A;
  --text-dark: #0F172A;
  --text-dark-secondary: #334155;
  
  /* 渐变 */
  --gradient-primary: linear-gradient(135deg, #00B37E 0%, #0088E0 100%);
  --gradient-accent: linear-gradient(135deg, #6B4CE6 0%, #00B8D4 100%);
  --gradient-gold: linear-gradient(135deg, #E6A800 0%, #E66000 100%);
  --gradient-dark: linear-gradient(180deg, #F7F3EE 0%, #FAF8F5 100%);
  --gradient-hero: linear-gradient(135deg, rgba(247,243,238,0.95) 0%, rgba(0,179,126,0.12) 40%, rgba(0,136,224,0.06) 100%);
  --gradient-card: linear-gradient(135deg, rgba(0,179,126,0.04) 0%, rgba(0,136,224,0.02) 100%);
  --gradient-text: linear-gradient(135deg, #00B37E 0%, #00B8D4 50%, #6B4CE6 100%);
  
  /* 阴影 - 柔和自然 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 30px rgba(0,179,126,0.15);
  --shadow-glow-strong: 0 0 40px rgba(0,179,126,0.25);
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
  
  /* 间距 */
  --section-padding: 100px 0;
  --container-width: 1560px;
  
  /* 字体 */
  --font-sans: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* 过渡 */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  /* 边框 */
  --border-glow: 1px solid rgba(0,179,126,0.15);
}

/* ============================================
   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);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================
   Typography
   ============================================ */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-primary {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header.light { color: var(--text-primary); }
.section-header.light .section-desc { color: var(--text-secondary); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0,179,126,0.08);
  border: 1px solid rgba(0,179,126,0.15);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: var(--transition-normal);
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,179,126,0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(0,179,126,0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid rgba(0,179,126,0.3);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(0,179,126,0.05);
}

.btn-ghost {
  background: rgba(0,179,126,0.08);
  color: var(--primary);
}

.btn-ghost:hover {
  background: rgba(0,179,126,0.15);
}

.btn-arrow { transition: var(--transition-fast); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================
   Animations
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

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

@keyframes glow-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

/* Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s, visibility 0.6s;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(0,179,126,0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* AOS fallback */
[data-aos] { opacity: 1; }

/* Selection */
::selection {
  background: rgba(0,179,126,0.2);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
