/* ============================================
   VOXVIK — 汽车生活用品品牌
   全局样式
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    Arial,
    sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0b1119;
  color: #e8edf3;
  line-height: 1.6;
}

/* ============================================
   导航栏
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11, 17, 25, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #4db8ff;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: #b0bec5;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #4db8ff;
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse at 30% 30%, #1a2a3a 0%, #0b1119 70%);
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(77, 184, 255, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #fff 30%, #4db8ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 22px);
  color: #b0bec5;
  line-height: 1.8;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 44px;
  border-radius: 30px;
  background: linear-gradient(90deg, #2196f3, #00c6ff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.35);
}

/* ============================================
   通用 Section
   ============================================ */

.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 18px;
  color: #8899aa;
}

/* ============================================
   产品展示
   ============================================ */

.products {
  scroll-margin-top: 64px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s, box-shadow 0.35s;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(77, 184, 255, 0.25);
}

.product-img svg {
  display: block;
  width: 100%;
  height: auto;
}

.product-info {
  padding: 20px 22px 26px;
}

.product-tag {
  display: inline-block;
  background: rgba(77, 184, 255, 0.15);
  color: #4db8ff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.product-info h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.product-info p {
  font-size: 14px;
  color: #8899aa;
  line-height: 1.7;
}

/* ============================================
   技术
   ============================================ */

.technology {
  scroll-margin-top: 64px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.tech-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.35s;
}

.tech-card:hover {
  transform: translateY(-6px);
}

.tech-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.tech-icon svg {
  width: 100%;
  height: 100%;
}

.tech-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.tech-card p {
  font-size: 14px;
  color: #8899aa;
  line-height: 1.7;
}

/* ============================================
   关于我们
   ============================================ */

.about {
  scroll-margin-top: 64px;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 17px;
  color: #b0bec5;
  line-height: 1.9;
  margin-bottom: 18px;
}

.about-text strong {
  color: #4db8ff;
  font-weight: 600;
}

.about-stats {
  display: flex;
  justify-content: space-around;
  gap: 20px;
  margin-top: 40px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: #4db8ff;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #8899aa;
}

/* ============================================
   联系我们
   ============================================ */

.contact {
  scroll-margin-top: 64px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e8edf3;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4db8ff;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #5a6a7a;
}

.contact-form .btn-primary {
  align-self: flex-start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: #b0bec5;
}

.info-icon {
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(77, 184, 255, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner p {
  color: #5a6a7a;
  font-size: 14px;
}

.footer-tag {
  margin-top: 6px;
  font-style: italic;
  color: #3a4a5a;
  font-size: 13px;
}

/* ============================================
   响应式
   ============================================ */

@media (max-width: 860px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(11, 17, 25, 0.96);
    backdrop-filter: blur(14px);
    padding: 20px 0;
    gap: 0;
    transform: translateY(-110%);
    transition: transform 0.35s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links li {
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 70px 20px;
  }

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

  .hero-sub {
    font-size: 16px;
  }

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

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

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

  .stat-num {
    font-size: 26px;
  }
}
