/* ===== 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #0a0a0a;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* 移动端菜单按钮 */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero 区域 ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(34, 197, 94, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(74, 222, 128, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* 小赞页面 Hero 变体 */
.hero-bg--xiaozan {
  background:
    radial-gradient(ellipse at 30% 70%, rgba(0, 184, 148, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(85, 239, 196, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #0f1a1a 100%);
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: 20px;
}

.brand-name {
  display: block;
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 700;
  background: linear-gradient(135deg, #4ade80 0%, #22c55e 50%, #16a34a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 8px;
}

.brand-name--green {
  background: linear-gradient(135deg, #00b894 0%, #55efc4 50%, #00cec9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  display: block;
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 8px;
  margin-top: 10px;
}

.hero-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.hero-company {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.xiaozan-logo {
  font-size: 64px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(0, 184, 148, 0.4));
}

/* ===== 通用 Section 标题 ===== */
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ===== 产品矩阵（首页） ===== */
.products-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 50px 40px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(74, 222, 128, 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.product-card--xiaozan:hover {
  border-color: rgba(0, 184, 148, 0.4);
  box-shadow: 0 20px 60px rgba(0, 184, 148, 0.15);
}

.product-card--qkb:hover {
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 20px 60px rgba(74, 222, 128, 0.15);
}

.product-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(74, 222, 128, 0.15);
  color: #4ade80;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.product-icon-wrap {
  font-size: 56px;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 600;
}

.product-tagline {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
}

.product-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  max-width: 400px;
  margin: 0 auto 30px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.product-features span {
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.product-link {
  color: #4ade80;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
}

.product-card:hover .product-link {
  color: #86efac;
}

/* ===== 关于我们（首页） ===== */
.about-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0f0f1a 0%, #0a0a14 100%);
}

.about-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.about-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 2;
  margin-bottom: 16px;
}

.about-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== 联系区域 ===== */
.contact-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0a0a14 0%, #0a0a0a 100%);
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.contact-icon {
  font-size: 24px;
}

/* ===== 小赞产品介绍页 ===== */
.intro-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0f1a1a 0%, #0f0f1a 100%);
}

.intro-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.intro-content p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 2;
  margin-bottom: 16px;
}

/* ===== 功能特性（小赞页） ===== */
.features-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0f0f1a 0%, #0a0a14 100%);
}

.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-box {
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-box:hover {
  background: rgba(0, 184, 148, 0.08);
  border-color: rgba(0, 184, 148, 0.2);
  transform: translateY(-5px);
}

.feature-box-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.feature-box h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
  font-weight: 600;
}

.feature-box p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.8;
}

/* ===== 下载区域 ===== */
.download-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #0a0a14 0%, #0a0a0a 100%);
  text-align: center;
}

.download-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: -40px;
  margin-bottom: 50px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, #00b894, #00cec9);
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 184, 148, 0.3);
}

.btn-download .btn-icon {
  font-size: 22px;
}

.download-note {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== 页脚 ===== */
.footer {
  padding: 40px 0;
  background: #050505;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #4ade80;
}

.footer p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
}

.footer .icp-info {
  margin-top: 8px;
}

.footer .icp-info a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer .icp-info a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 40px 24px;
  }

  .brand-name {
    letter-spacing: 4px;
  }

  .brand-subtitle {
    letter-spacing: 4px;
    font-size: 18px;
  }

  .about-stats {
    gap: 30px;
  }

  .stat-num {
    font-size: 28px;
  }

  .features-grid-4 {
    grid-template-columns: 1fr;
  }

  .contact-item {
    padding: 16px 24px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 16px;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .product-features {
    gap: 8px;
  }

  .product-features span {
    font-size: 12px;
    padding: 4px 10px;
  }
}
