/* ============================================
   爱如源 AIru - 莲花色设计系统
   深色主题 · 玻璃拟态 · 莲花渐变
   ============================================ */

/* ===== 设计变量（单一真相源，铁律十四） ===== */
:root {
  /* 背景色系 */
  --bg-base: #0d0a10;
  --bg-surface: #120e17;
  --bg-elevated: #18121f;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  /* 渐变色系 - 莲花粉 */
  --grad-primary: linear-gradient(135deg, #f5c6d0 0%, #e899a8 40%, #d46382 100%);
  --grad-accent: linear-gradient(135deg, #f7aec8 0%, #e879a0 100%);
  --grad-glow: linear-gradient(135deg, #e899a8 0%, #d46382 100%);
  --grad-text: linear-gradient(135deg, #f5c6d0 0%, #e899a8 40%, #d46382 80%, #c24d6a 100%);

  /* 文字色系 */
  --text-primary: #faf5f7;
  --text-secondary: #b8a0a8;
  --text-tertiary: #8a707a;

  /* 边框色系 */
  --border-subtle: rgba(232, 153, 168, 0.08);
  --border-default: rgba(232, 153, 168, 0.14);
  --border-glow: rgba(212, 99, 130, 0.45);

  /* 阴影色系 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(212, 99, 130, 0.2);

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

  /* 过渡 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-base);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 全局背景光效 - 莲花色 */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 198, 208, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(212, 99, 130, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(232, 153, 168, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-3%, 2%) rotate(2deg); }
  66% { transform: translate(2%, -3%) rotate(-2deg); }
}

a { color: #818cf8; text-decoration: none; transition: var(--transition); }
a:hover { color: #a5b4fc; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== 导航栏 ===== */
header {
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(212, 99, 130, 0.4);
  transition: var(--transition);
}

.logo:hover .logo-img {
  box-shadow: 0 0 28px rgba(212, 99, 130, 0.6);
  transform: scale(1.05);
}

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

nav ul { display: flex; list-style: none; gap: 32px; align-items: center; }
nav a { color: var(--text-secondary); font-weight: 500; font-size: 14px; transition: var(--transition); }
nav a:hover { color: var(--text-primary); text-decoration: none; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.6);
  text-decoration: none;
}

/* ===== Hero 区域 ===== */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}

/* Hero 背景网格 - 莲花色 */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(232, 153, 168, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 153, 168, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: 0;
}

/* Hero 光晕 - 莲花粉 */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 99, 130, 0.18) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 0;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

.btn-light {
  background: var(--grad-primary);
  color: #fff !important;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}
.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
  text-decoration: none;
}

.btn-outline-light {
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  color: var(--text-primary) !important;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.btn-outline-light:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  text-decoration: none;
}

/* Hero 数据展示 */
.hero-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-feature {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.hero-feature:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.hero-feature .num {
  font-size: 32px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.hero-feature .label { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }

/* ===== 通用区块 ===== */
section { padding: 100px 0; position: relative; }

section h2 {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -1px;
}

section .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* 区块标题装饰线 */
section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--grad-primary);
  border-radius: 2px;
  margin: 16px auto 0;
}

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

.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* 卡片顶部渐变线 */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-primary);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}
.feature-card:hover::before { opacity: 1; }

.feature-card .icon {
  width: 48px;
  height: 48px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

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

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

/* ===== 价格区域 ===== */
.pricing { background: var(--bg-surface); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.price-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  backdrop-filter: blur(10px);
}

.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-lg);
}

.price-card.highlight {
  border-color: transparent;
  background: linear-gradient(var(--bg-elevated), var(--bg-elevated)) padding-box,
              var(--grad-primary) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 50px rgba(139, 92, 246, 0.2);
}

.price-card.highlight::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: var(--grad-primary);
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0.4;
  filter: blur(20px);
}

.price-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: #fff;
  padding: 6px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.5);
  white-space: nowrap;
}

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

.price-card .tagline {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.price-card .price {
  font-size: 52px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  letter-spacing: -2px;
}

.price-card .price .unit {
  font-size: 16px;
  color: var(--text-tertiary);
  font-weight: normal;
  -webkit-text-fill-color: var(--text-tertiary);
}

.price-card .price-period {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 32px;
}

.price-card .features {
  text-align: left;
  margin-bottom: 32px;
}

.price-card .features li {
  list-style: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
}

.price-card .features li::before {
  content: "✓";
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: bold;
  margin-right: 12px;
  flex-shrink: 0;
  font-size: 16px;
}

.price-card .btn-buy {
  width: 100%;
  background: var(--grad-primary);
  color: #fff;
  padding: 14px 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}
.price-card .btn-buy:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.price-card .btn-trial {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--border-default);
  background: var(--bg-glass);
  color: var(--text-primary);
  padding: 13px 0;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}
.price-card .btn-trial:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
}

/* ===== 下载区域 ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.download-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.download-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.download-card .platform-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--grad-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

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

.download-card p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 20px;
}

.download-card .btn-download {
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  color: var(--text-primary) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  display: inline-block;
  transition: var(--transition);
}
.download-card .btn-download:hover {
  background: var(--grad-primary);
  border-color: transparent;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* ===== 试用结果 ===== */
.trial-result {
  margin-top: 32px;
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  color: var(--text-primary);
  display: none;
  text-align: center;
  backdrop-filter: blur(10px);
}
.trial-result.show { display: block; animation: fadeInUp 0.4s ease; }

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

/* ===== 模态框 ===== */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.show { display: flex; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--bg-glass-hover); color: var(--text-primary); }

.modal h3 { font-size: 22px; margin-bottom: 12px; color: var(--text-primary); font-weight: 700; }
.modal .tier-name {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}
.modal .price-info { font-size: 18px; color: var(--text-secondary); margin-bottom: 24px; font-weight: 600; }
.modal .pay-methods { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.modal .pay-methods a {
  padding: 12px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}
.modal .pay-methods a:hover {
  background: var(--grad-primary);
  border-color: transparent;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* ===== 页脚 ===== */
footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 20px;
  color: var(--text-primary);
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

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

/* ===== 滚动渐入动画 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; }
  .hero h1 { font-size: 36px; }
  .hero .subtitle { font-size: 16px; }
  .hero-features { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
  .hero-feature .num { font-size: 26px; }
  section { padding: 60px 0; }
  section h2 { font-size: 28px; }
  .header-inner { flex-direction: column; gap: 16px; }
  nav ul { flex-wrap: wrap; justify-content: center; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .price-card .price { font-size: 42px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .hero-features { grid-template-columns: 1fr 1fr; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .btn-light, .btn-outline-light { text-align: center; justify-content: center; }
}
