/* ========== 艾享生活官网 — 科技健康风格 ========== */
:root {
  --primary: #00d4ff;
  --primary-dim: #00A8E8;
  --primary-dark: #0077B6;
  --accent-purple: #a855f7;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --bg: #030712;
  --bg-elevated: #0b1221;
  --bg-card: rgba(11, 18, 33, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --text: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景网格 */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* 粒子背景容器 */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: rgba(3, 7, 18, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.nav-logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  border-radius: 1px;
}

.nav-miniapp {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: #fff;
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.nav-miniapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
}

.nav-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
}

/* ========== 页面内容区 ========== */
.page-content {
  padding-top: 72px;
  position: relative;
  z-index: 2;
}

/* ========== Hero 首屏 ========== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.pill-dot {
  width: 8px; height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.15;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dim));
  color: var(--bg);
  padding: 16px 40px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5);
}

.btn-outline {
  background: var(--bg-glass);
  color: var(--text);
  padding: 16px 40px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s;
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

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

/* ========== 数据统计 ========== */
.stats-bar {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 48px 32px;
  max-width: 900px;
  margin: -60px auto 0;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-around;
  text-align: center;
  position: relative;
  z-index: 10;
}

.stat-item {
  flex: 1;
}

.stat-num {
  font-size: 40px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ========== 区块通用 ========== */
.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 64px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.section-title p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border-light);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ========== 服务卡片 ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  opacity: 0;
  transition: opacity 0.4s;
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ========== 功能特色 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.feature-item:hover {
  border-color: rgba(0, 212, 255, 0.15);
}

.feature-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.feature-item h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.feature-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ========== 小程序引导 ========== */
.miniapp-section {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  padding: 100px 24px;
  border-top: 1px solid var(--border);
}

.miniapp-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.miniapp-phone {
  flex-shrink: 0;
  width: 280px;
  height: 560px;
  background: linear-gradient(135deg, #1a1a2e, #0d1117);
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 0 60px rgba(0, 212, 255, 0.15);
  border: 1px solid var(--border);
  position: relative;
}

.miniapp-phone::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  border-radius: 42px;
  z-index: -1;
  opacity: 0.3;
}

.miniapp-phone-screen {
  width: 100%; height: 100%;
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  height: 50px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.phone-body {
  flex: 1;
  padding: 16px;
  overflow: hidden;
}

.phone-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.phone-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.phone-card-row {
  display: flex;
  gap: 8px;
}

.phone-chip {
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
}

.phone-progress {
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
}

.phone-progress-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--primary), var(--accent-purple));
  border-radius: 3px;
}

.miniapp-info h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.miniapp-info p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.miniapp-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.miniapp-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-secondary);
}

.miniapp-feature-check {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.qrcode-box {
  display: inline-block;
  text-align: center;
}

.qrcode-placeholder {
  width: 160px; height: 160px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.qrcode-box p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== 页脚 ========== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 60px 24px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  color: var(--text);
  font-size: 20px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 16px; }
  .stats-bar {
    flex-direction: column;
    gap: 32px;
    margin-top: -30px;
  }
  .section { padding: 60px 20px; }
  .section-title h2 { font-size: 28px; }
  .miniapp-content {
    flex-direction: column;
    text-align: center;
    gap: 48px;
  }
  .miniapp-phone { width: 240px; height: 480px; }
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; max-width: 300px; text-align: center; }
  .footer-content { grid-template-columns: 1fr; }
}

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

.fade-in {
  animation: fadeInUp 0.8s ease forwards;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.floating {
  animation: float 6s ease-in-out infinite;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent-green); }
  50% { opacity: 0.6; box-shadow: 0 0 4px var(--accent-green); }
}

/* ========== 工具入口卡片（新增） ========== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.4s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: var(--shadow-glow);
}

.tool-card-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(168, 85, 247, 0.1));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.tool-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.tool-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tool-card .tool-tag {
  display: inline-block;
  background: rgba(0, 212, 255, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin-top: 16px;
}

/* ========== 工作台预览 ========== */
.dashboard-preview {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.dashboard-preview img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ========== 流程步骤 ========== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  border-color: rgba(0, 212, 255, 0.15);
}

.step-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
