/* 
 * siplucky - 女性气泡果酒 公共样式
 * 品牌定位：幸运|自信|悦己 新女性气泡果酒
 */

:root {
  /* 品牌主色调 - 粉色系，符合女性产品定位 */
  --primary-color: #FF6B9D;
  --primary-dark: #E85384;
  --primary-light: #FFA5C3;
  
  /* 辅助色 - 水果清新感 */
  --secondary-color: #7BD5F5;
  --accent-color: #C6F4D0;
  
  /* 中性色 */
  --text-dark: #2A2A2A;
  --text-medium: #666666;
  --text-light: #999999;
  --bg-light: #FAFAFA;
  --white: #FFFFFF;
  
  /* 间距系统 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 5rem;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  
  /* 过渡 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
* {
  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-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 通用容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-menu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-menu a:hover {
  color: var(--primary-color);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
}

/* Hero区域 */
.hero {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
  background: linear-gradient(135deg, #FFF5F8 0%, #FFF0F5 50%, #E8F4F8 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(var(--primary-light), transparent 70%);
  opacity: 0.5;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(var(--secondary-color), transparent 70%);
  opacity: 0.3;
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.hero-text .tagline {
  font-size: 1.4rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  letter-spacing: 1px;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bottle-mockup {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow-lg));
  animation: bounce 3s ease-in-out infinite;
}

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

/* 按钮 */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* 区域标题 */
.section {
  padding: var(--spacing-xxl) 0;
}

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

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.section-title p {
  font-size: 1.1rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto;
}

/* 产品展示 */
.products {
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

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

.product-image {
  width: 200px;
  height: 280px;
  margin: 0 auto var(--spacing-md);
  object-fit: contain;
}

.product-card h3 {
  font-size: 1.4rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

.product-flavor {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: var(--spacing-sm);
}

.product-desc {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: var(--spacing-md);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.tag {
  padding: 4px 12px;
  background: var(--primary-light);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
}

/* 品牌故事 */
.brand-story {
  background: var(--bg-light);
}

.story-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.story-content h3 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.story-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: var(--spacing-md);
}

.brand-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.value-item {
  padding: var(--spacing-md);
}

.value-item h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.value-item p {
  color: var(--text-medium);
  font-size: 0.95rem;
}

/* 产品特点 */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.feature-item {
  text-align: center;
  padding: var(--spacing-lg);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

.feature-item p {
  color: var(--text-medium);
}

/* 场景展示 */
.scenes {
  background: linear-gradient(135deg, #FFF8FB 0%, #F5F9FF 100%);
}

.scenes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.scene-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.scene-card:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-md);
}

.scene-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--primary-light);
  position: relative;
}
.scene-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 0;
  pointer-events: none;
}

.scene-content {
  padding: var(--spacing-md);
}

.scene-content h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.scene-content p {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* 购买渠道 */
.where-to-buy {
  background: var(--white);
}

.channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--spacing-md);
}

.channel-card {
  background: var(--bg-light);
  border-radius: var(--radius-md);
  padding: var(--spacing-lg);
  text-align: center;
  transition: var(--transition);
}

.channel-card:hover {
  background: var(--primary-light);
  color: var(--white);
  transform: translateY(-4px);
}

.channel-card h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.channel-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.coming-soon {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--primary-light);
  color: var(--white);
  border-radius: var(--radius-md);
}

.coming-soon h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.launch-date {
  font-weight: 600;
}

/* 页脚 */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-md);
  color: var(--white);
}

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

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    text-align: center;
    padding: var(--spacing-xl) 0;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .btn-group {
    justify-content: center;
  }
  
  .nav-menu {
    display: none;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --spacing-xxl: 3rem;
    --spacing-xl: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text .tagline {
    font-size: 1.1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* 滚动动画 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 品牌故事网格布局 */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 768px) {
    .navbar .container {
      height: 56px;
    }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* 品牌故事图片 */
.story-image {
  position: relative;
}

.story-image img {
  transition: transform 0.3s ease;
}

.story-image img:hover {
  transform: translateY(-5px);
}

/* 饮用场景网格增强 */
.scenes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .scenes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .scenes-grid {
    grid-template-columns: 1fr;
  }
}

/* 场景卡片增强 */
.scene-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scene-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.scene-image {
  height: 200px;
  position: relative;
}

.scene-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-content {
  padding: 20px;
  background: white;
}

.scene-content h3 {
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.scene-content p {
  color: var(--text-medium);
  line-height: 1.6;
}
    :root {
      --primary-color: #FF6B9D;
      --primary-dark: #E85384;
      --primary-light: #FFA5C3;
    }
    /* 图片放大灯箱 */
    .lightbox {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      z-index: 99999;
      justify-content: center;
      align-items: center;
      cursor: zoom-out;
    }
    .lightbox.active {
      display: flex;
    }
    .lightbox img {
      max-width: 90%;
      max-height: 90vh;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    .lightbox-close {
      position: absolute;
      top: 30px;
      right: 30px;
      color: white;
      font-size: 40px;
      cursor: pointer;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 50%;
      transition: all 0.3s;
    }
    .lightbox-close:hover {
      background: rgba(255, 255, 255, 0.2);
    }
    .product-image img {
      cursor: zoom-in;
      transition: transform 0.3s;
    }
    .product-image img:hover {
      transform: scale(1.05);
    }
    .hero-image img {
      cursor: zoom-in;
      transition: transform 0.3s;
    }
    .hero-image img:hover {
      transform: scale(1.05);
    }
    /* 礼盒装响应式 - 手机端竖向排列 */
    @media (max-width: 768px) {
      .giftbox-section .product-grid {
        grid-template-columns: 1fr !important;
      }
      .production-content > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
      }
      .production-content > div:nth-child(2) {
        grid-template-columns: 1fr !important;
      }
      .production-content > div:nth-child(3) > div {
        grid-template-columns: 1fr 1fr !important;
      }
    }
    @media (max-width: 768px) {
      .production-content > div:nth-child(3) > div {
        grid-template-columns: 1fr 1fr !important;
      }
      /* 研发实力板块移动端适配 - 改为单列显示 */
      .rd-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
      }
      /* 大师照片居中，限制最大宽度 */
      .rd-photo {
        text-align: center;
        max-width: 280px;
        margin: 0 auto;
      }
      /* 生产线照片3列改2列 */
      .production-content > div:nth-child(4) > div:nth-child(3),
      .production-photos-grid {
        grid-template-columns: 1fr 1fr !important;
      }
      /* 核心生产技术3列改2列 */
      .tech-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
      }
    }
    @media (max-width: 576px) {
      /* 小屏手机核心生产技术2列改1列 */
      .tech-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
      }
    }
    @media (max-width: 480px) {
      .production-content > div:nth-child(3) > div {
        grid-template-columns: 1fr !important;
      }
      /* 生产线照片2列改1列 */
      .production-content > div:nth-child(4) > div:nth-child(3),
      .production-photos-grid {
        grid-template-columns: 1fr !important;
      }
    }
    .ai-chat-fab {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
      border-radius: 50%;
      box-shadow: 0 4px 16px rgba(255, 107, 157, 0.4);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 9999;
      transition: transform 0.3s;
    }
    .ai-chat-fab:hover {
      transform: scale(1.1);
    }
    .ai-chat-fab svg {
      width: 30px;
      height: 30px;
      fill: white;
    }
    .ai-chat-modal {
      position: fixed;
      bottom: 110px;
      right: 30px;
      width: 380px;
      height: 500px;
      background: white;
      border-radius: 16px;
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
      z-index: 9998;
      display: none;
      overflow: hidden;
    }
    .ai-chat-modal.open {
      display: block;
    }
    .ai-chat-header {
      background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
      color: white;
      padding: 15px 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .ai-chat-header h3 {
      margin-top: 0;
      font-size: 16px;
      font-weight: 600;
    }
    .ai-chat-close {
      background: none;
      border: none;
      color: white;
      cursor: pointer;
      padding: 5px;
    }
    .ai-chat-close svg {
      width: 20px;
      height: 20px;
      fill: white;
    }
    .ai-chat-iframe {
      width: 100%;
      height: calc(100% - 50px);
      border: none;
    }
    @media (max-width: 640px) {
      .ai-chat-modal {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
      }
      .ai-chat-fab {
        bottom: 20px;
        right: 20px;
      }
    }

/* 点击放大指示 */
[data-lightbox] { cursor: zoom-in; }
[data-lightbox]:hover { transform: scale(1.05); }
.product-image [data-lightbox]:hover, .hero-image [data-lightbox]:hover { transform: scale(1.05); }

/* 礼盒装图片 - 上下堆叠时自适应高度 */
.giftbox-section .product-image { height: auto !important; width: 100% !important; }
.giftbox-section .product-image img { height: auto; width: 100%; object-fit: cover; border-radius: 8px; }
