/* ========================================
   蛋宝助手 - 全局样式
   ======================================== */

:root {
  /* 主色调 */
  --primary-gold: #D4AF37;
  --primary-gold-light: #F4D03F;
  --primary-gold-dark: #B8941F;
  --primary-gradient: linear-gradient(135deg, #D4AF37 0%, #F4D03F 50%, #D4AF37 100%);

  /* 中性色 */
  --egg-white: #FDFBF7;
  --egg-shell: #F5F0E6;
  --warm-beige: #E8E0D5;
  --soft-gray: #F8F6F2;
  --deep-brown: #2D1F14;
  --text-primary: #3D2817;
  --text-secondary: #6B5847;
  --text-muted: #9C8B7E;

  /* 功能色 */
  --success: #10B981;
  --success-light: #D1FAE5;
  --error: #EF4444;
  --error-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;

  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(61, 40, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(61, 40, 23, 0.08);
  --shadow-lg: 0 8px 32px rgba(61, 40, 23, 0.1);
  --shadow-xl: 0 16px 64px rgba(61, 40, 23, 0.12);
  --shadow-2xl: 0 24px 80px rgba(61, 40, 23, 0.15);

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

  /* 过渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* 间距 */
  --container-max: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--egg-white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* 背景装饰 */
.bg-decoration {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.bg-circle-1 {
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.bg-circle-2 {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.06) 0%, transparent 70%);
  bottom: -150px;
  left: -200px;
  animation: float 10s ease-in-out infinite reverse;
}

.bg-grid {
  width: 100%;
  height: 100vh;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  top: 0;
  left: 0;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(30px, 20px) rotate(5deg); }
}

/* 容器 */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   导航栏
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(253, 251, 247, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
  transition: transform var(--transition-base);
}

.logo-icon:hover {
  transform: scale(1.05) rotate(-5deg);
}

.logo-icon svg {
  width: 26px;
  height: 26px;
  fill: white;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-brown);
  letter-spacing: 1px;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--primary-gold-dark);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-menu a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: width var(--transition-base);
  border-radius: 2px;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--deep-brown);
  background: rgba(212, 175, 55, 0.08);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 20px;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--deep-brown);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* ========================================
   按钮
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--deep-brown);
  border: 1.5px solid var(--warm-beige);
}

.btn-outline:hover {
  border-color: var(--primary-gold);
  background: rgba(212, 175, 55, 0.05);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: rgba(61, 40, 23, 0.05);
  color: var(--deep-brown);
}

.btn-white {
  background: white;
  color: var(--deep-brown);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.btn-ghost-white {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* ========================================
   Hero 区域
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  position: relative;
  z-index: 1;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease-out;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-gold);
  border-radius: 50%;
  animation: blink 2s infinite;
}

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

.hero-badge span {
  font-size: 13px;
  font-weight: 500;
  color: var(--deep-brown);
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-brown);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease-out 0.1s backwards;
}

.hero-title .highlight {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: 'Noto Serif SC', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--deep-brown);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
}

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

/* Hero 视觉 */
.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease-out 0.3s backwards;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.hero-image {
  position: relative;
  height: 500px;
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatCard 4s ease-in-out infinite;
}

.card-1 {
  top: 60px;
  left: 0;
  z-index: 2;
}

.card-2 {
  top: 180px;
  right: 20px;
  z-index: 3;
  animation-delay: 0.5s;
}

.card-3 {
  bottom: 80px;
  left: 40px;
  z-index: 2;
  animation-delay: 1s;
}

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

.card-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  background: var(--soft-gray);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-text {
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 12px;
  color: var(--text-muted);
}

.card-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--deep-brown);
}

.dashboard-preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 380px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.preview-header {
  background: var(--soft-gray);
  padding: 12px 16px;
  border-bottom: 1px solid var(--warm-beige);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm-beige);
}

.preview-dots span:first-child { background: #FF5F57; }
.preview-dots span:nth-child(2) { background: #FFBD2E; }
.preview-dots span:nth-child(3) { background: #28C840; }

.preview-content {
  padding: 24px;
}

.preview-chart {
  height: 200px;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}

.preview-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 20'%3E%3Cpath d='M0 20 L0 10 Q25 5 50 10 T100 10 L100 20 Z' fill='rgba(212, 175, 55, 0.2)'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}

/* ========================================
   Section 通用样式
   ======================================== */
section {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

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

.section-tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.1);
  color: var(--primary-gold-dark);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--deep-brown);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   功能特色
   ======================================== */
.features {
  background: var(--soft-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(212, 175, 55, 0.2);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-gold-dark);
}

.feature-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--deep-brown);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ========================================
   产品展示
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid var(--warm-beige);
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-card.featured {
  border-color: var(--primary-gold);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.15);
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--primary-gradient);
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.product-image {
  margin-bottom: 24px;
}

.product-placeholder {
  width: 100%;
  height: 160px;
  background: var(--soft-gray);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.product-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--deep-brown);
  margin-bottom: 12px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  margin-bottom: 24px;
}

.product-features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
}

/* ========================================
   客户评价
   ======================================== */
.testimonials {
  background: var(--soft-gray);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.testimonial-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.testimonial-rating span {
  color: var(--primary-gold);
  font-size: 18px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 600;
  color: var(--deep-brown);
  font-size: 14px;
}

.author-title {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================
   CTA 区域
   ======================================== */
.cta {
  background: var(--primary-gradient);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='1' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
  background-size: 50px 50px;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: 'Noto Serif SC', serif;
  font-size: 42px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

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

/* ========================================
   页脚
   ======================================== */
.footer {
  background: var(--deep-brown);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer .logo {
  margin-bottom: 20px;
}

.footer .logo-title {
  color: white;
}

.footer .logo-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-links h4 {
  color: white;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu,
  .nav-actions {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding-top: 100px;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
