/* ==================== 基础重置 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", STHeiti, "Microsoft Yahei", Tahoma, Simsun, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: #e63b3b;
  color: #fff;
}

/* ==================== 首屏主容器 ==================== */
.container {
  width: 100%;
  max-width: 100% !important;
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #eb4242 0%, #d82e2e 100%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ---------------- 装饰性小气泡 ---------------- */
.bubble {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.02) 100%);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
  z-index: 1;
  pointer-events: none;
  animation: float-bubble 10s infinite alternate ease-in-out;
}

.bubble-1 { width: 500px; height: 500px; top: 150px; left: -150px; animation-duration: 15s; }
.bubble-2 { width: 300px; height: 300px; bottom: 10%; left: 30%; background: linear-gradient(135deg, rgba(255, 184, 0, 0.15) 0%, rgba(255, 184, 0, 0.02) 100%); animation-duration: 12s; animation-delay: -5s; }
.bubble-3 { width: 150px; height: 150px; top: 30%; right: 40%; animation-duration: 8s; animation-delay: -2s; }
.bubble-4 { width: 400px; height: 400px; top: 40%; right: -100px; background: linear-gradient(135deg, rgba(255, 184, 0, 0.1) 0%, rgba(255, 120, 0, 0.05) 100%); animation-duration: 18s; }

@keyframes float-bubble {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.05); }
}

/* ==================== 顶部导航栏 ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #de4242; 
}

.header-inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 25px 6%; 
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 12px;
}

.logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}

.nav-item {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 10px 30px;
  border-radius: 30px;
  transition: all 0.3s;
}

.nav-item.active {
  background-color: #fff;
  color: #de4242;
  font-weight: 600;
}

.nav-item:not(.active):hover {
  opacity: 0.8;
}

/* ==================== 首屏主体内容 ==================== */
.main-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 160px 8% 80px; 
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.left-box { 
  flex: 0 0 45%; 
  max-width: 600px; 
  z-index: 20; 
}

.hero-title {
  font-size: 76px; 
  font-weight: 900; 
  margin-bottom: 24px;
  letter-spacing: 4px; 
  text-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.hero-subtitle {
  font-size: 32px; 
  font-weight: 500; 
  margin-bottom: 12px;
  letter-spacing: 1px; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle-en {
  font-size: 28px; 
  font-weight: 400; 
  margin-bottom: 60px;
  opacity: 0.95; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 下载按钮区 */
.download-group { 
  display: flex; 
  gap: 20px; 
  margin-bottom: 50px; 
}

.btn-download {
  display: flex; 
  align-items: center; 
  justify-content: center; 
  gap: 12px;
  background: transparent; 
  border: 2px solid #fff; 
  border-radius: 40px;
  padding: 14px 36px; 
  font-size: 20px; 
  font-weight: 600; 
  color: #fff;
  cursor: pointer; 
  transition: all 0.3s; 
  min-width: 200px;
  text-decoration: none; 
}

.btn-download:hover { 
  background-color: #fff; 
  color: #e63b3b; 
}

.btn-icon { 
  width: 32px; 
  height: 32px; 
  fill: currentColor; 
  flex-shrink: 0; 
}

/* 二维码 (桌面端显示) */
.qrcode-box {
  width: 160px; 
  height: 160px; 
  background-color: #fff;
  border-radius: 12px; 
  padding: 8px; 
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.qrcode-box img {
  width: 100%; 
  height: 100%; 
  object-fit: cover;
  display: block; 
  border-radius: 6px;
}

.right-box {
  flex: 1; 
  position: relative; 
  display: flex;
  justify-content: center; 
  align-items: center; 
  z-index: 10;
}

.product-img {
  width: 100%; 
  max-width: 750px; 
  max-height: 75vh;
  object-fit: contain; 
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2));
}

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

/* ==================== 响应式适配 ==================== */
@media (max-width: 1440px) {
  .hero-title { font-size: 64px; }
  .product-img { max-width: 650px; }
}

@media (max-width: 1200px) {
  .hero-title { font-size: 56px; }
  .product-img { max-width: 500px; }
}

@media (max-width: 992px) {
  /* 【核心修改】移动端导航栏改为上下结构：Logo在上，文字导航在下 */
  .header-inner {
    flex-direction: column !important;
    gap: 15px;
    padding: 15px 5% !important;
    text-align: center;
  }

  .logo-area {
    justify-content: center;
  }

  .nav-menu {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* 适配移动端首屏间距，防止被加高的导航栏遮挡 */
  .main-content { 
    flex-direction: column; 
    padding: 180px 5% 60px !important; 
    text-align: center;
  }
  
  .left-box { margin-bottom: 40px; max-width: 100%; flex: 1; }
  .download-group { justify-content: center; }
  .qrcode-box { display: none; }
  .right-box { justify-content: center; width: 100%; margin-top: 10px; }
  .product-img { max-width: 100%; max-height: 450px; animation: none; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 42px; letter-spacing: 2px; margin-bottom: 16px; }
  .hero-subtitle { font-size: 22px; }
  .hero-subtitle-en { font-size: 16px; margin-bottom: 40px; }
  .download-group { flex-direction: column; gap: 15px; align-items: center; margin-bottom: 40px; }
  .btn-download { width: 80%; max-width: 280px; padding: 12px 0; font-size: 18px; min-width: auto; }
  .bubble-1 { width: 250px; height: 250px; top: 100px; }
  .bubble-4 { width: 200px; height: 200px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 36px; }
  .hero-subtitle { font-size: 18px; }
  .hero-subtitle-en { font-size: 14px; }
  .nav-item { font-size: 13px; padding: 6px 14px; }
}
/* ==================== 底部页脚区 ==================== */
    .footer {
      background-color: #ffffff;
      color: #333;
      padding: 80px 8% 30px;
      position: relative;
      z-index: 20;
      width: 100%;
    }

    .footer-inner {
      max-width: 1440px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 40px;
      border-bottom: 1px solid #f0f0f0;
      padding-bottom: 40px;
    }

    .footer-brand {
      flex: 1.5;
      min-width: 280px;
      max-width: 400px;
    }

    .footer-brand .logo-area {
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      gap: 12px;
    }
    
    .footer-brand .logo-img {
      width: 40px;
      height: 40px;
    }

    .footer-brand .logo-text { 
      color: #e63b3b; 
      font-size: 24px;
      letter-spacing: 1px;
      text-shadow: none;
    }

    .footer-desc {
      font-size: 15px;
      color: #777;
      line-height: 1.8;
      margin-bottom: 24px;
    }

    .footer-links {
      flex: 1;
      min-width: 160px;
    }

    .footer-title {
      font-size: 18px;
      font-weight: 700;
      color: #333;
      margin-bottom: 24px;
    }

    .footer-links ul { list-style: none; }
    .footer-links li { margin-bottom: 16px; }

    .footer-links a {
      color: #777;
      text-decoration: none;
      font-size: 15px;
      transition: color 0.3s;
    }

    .footer-links a:hover { color: #e63b3b; }

    .footer-contact {
      flex: 1.2;
      min-width: 260px;
    }

    .contact-item {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      margin-bottom: 20px;
      color: #777;
      font-size: 15px;
      line-height: 1.5;
    }

    .contact-icon {
      width: 20px;
      height: 20px;
      fill: #e63b3b;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .contact-item a {
      color: #777;
      text-decoration: none;
      transition: color 0.3s;
    }
    .contact-item a:hover { color: #e63b3b; }

    /* 友情链接区 */
    .footer-friend-links {
      max-width: 1440px;
      margin: 0 auto;
      padding: 20px 0;
      font-size: 14px;
      color: #999;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 15px;
      border-bottom: 1px solid #f0f0f0;
    }

    .friend-links-title {
      font-weight: bold;
      color: #666;
    }

    .footer-friend-links a {
      color: #999;
      text-decoration: none;
      transition: color 0.3s;
    }

    .footer-friend-links a:hover {
      color: #e63b3b;
    }

    /* 最底部版权信息 */
    .footer-bottom {
      max-width: 1440px;
      margin: 0 auto;
      padding-top: 20px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 10px;
      font-size: 14px;
      color: #999;
    }

    .footer-bottom a {
      color: #999;
      text-decoration: none;
      transition: color 0.3s;
    }

    .footer-bottom a:hover { color: #e63b3b; }

    /* 页脚移动端适配 */
    @media (max-width: 992px) {
      .footer { padding: 60px 5% 30px; }
      .footer-inner { flex-direction: column; gap: 40px; text-align: center; }
      .footer-brand .logo-area { justify-content: center; }
      .footer-contact .contact-item { justify-content: center; }
      .footer-friend-links { justify-content: center; }
      .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
    }