/* ============================================================
   AI夜景生成平台（aiyejing.com）前端改进代码
   style.css — 全站视觉增强
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-text: #f5f5f5;
  --color-text-secondary: #a0a0a0;
  --color-gold: #d4a574;
  --color-gold-light: #e8c9a0;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 32px;
  --spacing-lg: 64px;
  --spacing-xl: 120px;
}

/* -----------------------------------------------------------
   1. 全局字体与排版层级
   ----------------------------------------------------------- */
body {
  font-family: var(--font-family);
  background-color: #0B0C10;
  color: #E0E0E0;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: var(--spacing-xs);
}

p {
  font-size: 16px;
  line-height: 1.8;
  color: #a0a0a0;
}

/* -----------------------------------------------------------
   2. 导航栏毛玻璃效果
   ----------------------------------------------------------- */
.navbar-glass {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 48px;
  background: rgba(11, 12, 16, 0.0);
  backdrop-filter: blur(0px) saturate(180%);
  -webkit-backdrop-filter: blur(0px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-glass.scrolled {
  background: rgba(11, 12, 16, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* -----------------------------------------------------------
   3. 按钮增强 — 香槟金 hover 发光
   ----------------------------------------------------------- */
.btn-gold {
  background: linear-gradient(135deg, #d4a574 0%, #c49360 100%);
  color: #0a0a0a;
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(212, 165, 116, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 165, 116, 0.55);
  color: #0a0a0a;
}

.btn-gold:hover::after {
  left: 100%;
}

.btn-outline-gold {
  background: transparent;
  color: var(--color-gold);
  padding: 14px 32px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  border: 1.5px solid rgba(212, 165, 116, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: rgba(212, 165, 116, 0.1);
  border-color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212, 165, 116, 0.2);
  color: var(--color-gold);
}

/* -----------------------------------------------------------
   4. Hero 区 — 全屏展示图 + 星空canvas
   ----------------------------------------------------------- */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 2;
  opacity: 0.65;
}

/* 背景视频样式 */
.hero-bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 黑色遮罩层 - 放在视频上方，粒子下方 */
.hero-video-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
}

.hero-bg-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  display: none;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 3;
  background: linear-gradient(
    to bottom,
    rgba(11,12,16,0.3) 0%,
    rgba(11,12,16,0.1) 40%,
    rgba(11,12,16,0.6) 80%,
    rgba(11,12,16,1) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 960px;
  padding: 160px 24px 0;
}

.hero-content h1 {
  background: linear-gradient(135deg, #ffffff 0%, #e8c9a0 50%, #d4a574 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Hero 产品展示图区域 */
.hero-showcase-wrapper {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 1100px;
  margin-top: 60px;
  padding: 0 24px;
}

.hero-product-img {
  width: 100%;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 20px 80px rgba(0,0,0,0.6), 0 0 60px rgba(212,165,116,0.1);
  display: block;
  transition: transform 0.5s ease;
}

.hero-product-img:hover {
  transform: translateY(-6px);
}

/* -----------------------------------------------------------
   5. 信任数据栏
   ----------------------------------------------------------- */
.trust-bar {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.trust-stat {
  text-align: center;
}

.trust-stat .number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.2;
  margin-bottom: 4px;
  white-space: nowrap;
}

.trust-stat .label {
  font-size: 13px;
  color: #666;
  letter-spacing: 0.05em;
}

/* -----------------------------------------------------------
   6. 模块通用 — 大间距（苹果级）
   ----------------------------------------------------------- */
.section-xl {
  padding: var(--spacing-xl) 48px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 12px;
  display: block;
}

/* -----------------------------------------------------------
   7. 特性卡片 — 上浮 + 金色边框 + 顶部光带
   ----------------------------------------------------------- */
.feature-card-enhanced {
  background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 48px 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feature-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card-enhanced:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 165, 116, 0.25);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35), 0 0 40px rgba(212,165,116,0.1);
}

.feature-card-enhanced:hover::before {
  opacity: 1;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(212,165,116,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-gold);
  transition: background 0.3s;
}

.feature-card-enhanced:hover .feature-icon-wrap {
  background: rgba(212,165,116,0.2);
}

/* -----------------------------------------------------------
   8. 案例展示区 — 图片hover放大
   ----------------------------------------------------------- */
.showcase-card {
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.4s ease;
}

.showcase-card:hover {
  border-color: rgba(212,165,116,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

.showcase-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.showcase-card:hover img {
  transform: scale(1.08);
}

.showcase-card .card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px 24px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  transform: translateY(0);
  transition: all 0.3s ease;
}

.showcase-card .card-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 4px;
}

.showcase-card .card-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* -----------------------------------------------------------
   9. 动态计数器
   ----------------------------------------------------------- */
.stat-counter {
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* -----------------------------------------------------------
   10. 对比图区域
   ----------------------------------------------------------- */
.comparison-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  user-select: none;
}

.comparison-before,
.comparison-after {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

.comparison-after {
  clip-path: inset(0 50% 0 0);
  transition: clip-path 0.01s;
}

.comparison-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--color-gold);
  cursor: ew-resize;
  z-index: 10;
  transform: translateX(-50%);
}

.comparison-handle::before {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--color-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  box-shadow: 0 0 20px rgba(212,165,116,0.5);
}

/* -----------------------------------------------------------
   11. 滚动渐入动画
   ----------------------------------------------------------- */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.js-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s !important; }
.reveal-delay-2 { transition-delay: 0.2s !important; }
.reveal-delay-3 { transition-delay: 0.3s !important; }
.reveal-delay-4 { transition-delay: 0.4s !important; }

/* -----------------------------------------------------------
   12. 页脚
   ----------------------------------------------------------- */
.footer-enhanced {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 48px 40px;
  margin-top: var(--spacing-xl);
}

.footer-enhanced a:hover {
  color: var(--color-gold) !important;
}

/* -----------------------------------------------------------
   13. 响应式
   ----------------------------------------------------------- */
@media (max-width: 1024px) {
  .section-xl {
    padding: 80px 32px;
  }
}

@media (max-width: 768px) {
  .navbar-glass {
    padding: 12px 20px;
  }

  .section-xl {
    padding: 64px 20px;
  }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  .hero-showcase-wrapper {
    margin-top: 40px;
    padding: 0 16px;
  }

  .showcase-card img {
    height: 220px;
  }

  .stat-counter {
    font-size: 2.5rem;
  }

  .feature-card-enhanced {
    padding: 32px 24px;
  }

  .trust-stat .number {
    font-size: 2rem;
  }
}

/* -----------------------------------------------------------
   14. 定价卡片
   ----------------------------------------------------------- */
.pricing-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 24px;
  padding: 48px 36px;
  transition: all 0.4s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.pricing-card.featured {
  border-color: rgba(212,165,116,0.4);
  box-shadow: 0 0 50px rgba(212,165,116,0.08);
  position: relative;
}

.pricing-card.featured::before {
  content: '推荐方案';
  position: absolute;
  top: -1px; right: 2rem;
  background: linear-gradient(135deg, #d4a574, #c49360);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 0 0 10px 10px;
  letter-spacing: 0.05em;
}

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.price-unit {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
}

.price-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #a0a0a0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.price-feature .check {
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* -----------------------------------------------------------
   15. FAQ
   ----------------------------------------------------------- */
.faq-item-enhanced {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.faq-question-enhanced {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  transition: color 0.3s;
  font-size: 16px;
  font-weight: 500;
}

.faq-question-enhanced:hover {
  color: var(--color-gold);
}

.faq-answer-enhanced {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.3s;
  opacity: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.faq-answer-enhanced.open {
  opacity: 1;
  padding-bottom: 24px;
}

/* -----------------------------------------------------------
   16. 隐私/条款页面
   ----------------------------------------------------------- */
.policy-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 120px 48px 80px;
  line-height: 1.9;
}

.policy-page h1 {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.policy-page .update-date {
  color: #666;
  font-size: 13px;
  margin-bottom: 48px;
}

.policy-page h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 40px 0 12px;
}

.policy-page p,
.policy-page li {
  color: #888;
  font-size: 14px;
}

.policy-page ul {
  padding-left: 20px;
}

/* -----------------------------------------------------------
   17. 脉冲动画优化
   ----------------------------------------------------------- */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 20px rgba(212,165,116,0.25); }
  50% { box-shadow: 0 0 45px rgba(212,165,116,0.5); }
}

.pulse-gold {
  animation: pulse-gold 3s ease-in-out infinite;
}

/* Ring 颜色修正 — 覆盖蓝色 */
.ring-gold-color {
  color: #d4a574 !important;
}
