/* ========== Reset & Base ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family:
    -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-font-smoothing: antialiased;
}
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
:root {
  --primary: #004f9d;
  --primary-light: #0066cc;
  --primary-dark: #003366;
  --accent: #d4a843;
  --bg-light: #f0f4f8;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== Header / Navbar ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
  transition: background 0.3s;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  height: 60px;
}
.logo svg {
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #555;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-light);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  transition: 0.3s;
  border-radius: 2px;
}

/* ========== Hero Section ========== */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image:
    url('../images/indexBanner.png'),
    linear-gradient(225deg, #0b1d3a 0%, #1e3a6e 40%, #2563eb 100%);
  background-size: contain, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  overflow: hidden;
  margin-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1.5" fill="rgba(255,255,255,0.05)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.08)"/><circle cx="50" cy="70" r="1.2" fill="rgba(255,255,255,0.06)"/><circle cx="10" cy="80" r="0.8" fill="rgba(255,255,255,0.04)"/><circle cx="90" cy="10" r="1.3" fill="rgba(255,255,255,0.07)"/></svg>');
  animation: float 20s linear infinite;
}
@keyframes float {
  to {
    transform: translateY(-100px) rotate(360deg);
  }
}
.content {
  width: 1200px;
  margin: auto;
  position: relative;
}
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: 290px;
  position: absolute;
  left: 56px;
  top: 20px;
}
.hero-img {
  height: auto;
  max-height: 51px;
  width: auto;
  flex-shrink: 0;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 4px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 28px;
}
.hero-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 4px 20px rgba(212, 168, 67, 0.4);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(212, 168, 67, 0.5);
}

/* ========== Section Common ========== */
.section {
  padding: 80px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: #888;
  font-size: 0.95rem;
}
.bg-light {
  background: var(--bg-light);
}

/* ========== Brands ========== */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.brand-card {
  width: 160px;
  height: 90px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
  border: 1px solid #eee;
  padding: 12px;
  overflow: hidden;
}
.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.brand-card .brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}

/* ========== Products ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}
.product-card .product-img {
  height: 200px;
  background: linear-gradient(135deg, #e8edf2, #f5f7fa);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.product-card .product-img .img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f0f4f8, #e8edf2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.product-card .product-img .img-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.5;
}
.product-card .product-info {
  padding: 20px;
}
.product-card .product-brand {
  display: inline-block;
  padding: 3px 10px;
  background: #e8f0f8;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 8px;
}
.product-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.4;
}
.product-card .product-desc {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .product-specs {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: #aaa;
}
.product-card .product-specs span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.product-card .view-detail {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
}
.product-card .view-detail:hover {
  text-decoration: underline;
}

/* ========== About Section ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-text h3 {
  font-size: 1.6rem;
  color: var(--primary);
  margin-bottom: 16px;
}
.about-text p {
  color: #666;
  margin-bottom: 14px;
  font-size: 0.95rem;
}
.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}
.about-stat {
  text-align: center;
}
.about-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.about-stat .label {
  font-size: 0.85rem;
  color: #888;
}
.about-image {
  border-radius: 16px;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-image .pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(255, 255, 255, 0.1) 20px,
    rgba(255, 255, 255, 0.1) 21px
  );
}
.about-image svg {
  position: relative;
  z-index: 2;
}

/* ========== Contact Section ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  transition: transform 0.3s;
}
.contact-info-card:hover {
  transform: translateX(4px);
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.contact-detail h4 {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 4px;
}
.contact-detail p {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}
.wechat-card {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}
.wechat-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 auto 12px;
  border: 2px solid #eee;
}
.wechat-card p {
  color: #888;
  font-size: 0.9rem;
}
.map-placeholder {
  background: #e8edf2;
  border-radius: 16px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

/* ========== Product Detail Page ========== */
.detail-hero {
  height: 300px;
  background-image:
    url('../images/productBanner.png'),
    linear-gradient(225deg, #0b1d3a 0%, #1e3a6e 40%, #2563eb 100%);
  background-size: contain, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
  color: #fff;
  text-align: center;
}
.about-hero {
  height: 300px;
  background-image:
    url('../images/aboutUsBanner.png'),
    linear-gradient(225deg, #0b1d3a 0%, #1e3a6e 40%, #2563eb 100%);
  background-size: contain, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 72px;
  color: #fff;
  text-align: center;
}
.detail-hero h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.detail-hero p {
  opacity: 0.8;
}
.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 60px 0;
}
.detail-image {
  background: linear-gradient(135deg, #e8edf2, #f5f7fa);
  border-radius: 16px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-image .img-placeholder {
  width: 280px;
  height: 240px;
  background: #d0d8e0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-info h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.detail-brand {
  display: inline-block;
  padding: 4px 14px;
  background: #e8f0f8;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
}
.detail-desc {
  color: #666;
  margin-bottom: 24px;
  line-height: 1.8;
}
.detail-specs {
  margin-bottom: 24px;
}
.detail-specs h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}
.spec-row .spec-label {
  color: #888;
}
.spec-row .spec-value {
  color: #333;
  font-weight: 600;
}
.detail-features {
  margin-bottom: 24px;
}
.detail-features h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}
.detail-features li {
  padding: 6px 0;
  color: #666;
  position: relative;
  padding-left: 20px;
}
.detail-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-light);
  font-weight: 700;
}
.btn-contact {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
}
.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 168, 67, 0.4);
}

/* Products Page Filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 8px 20px;
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #666;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: #e8f0f8;
}

/* ========== Footer ========== */
.footer {
  background: var(--primary-dark);
  color: #ccc;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}
.footer p,
.footer a {
  color: #aaa;
  font-size: 0.9rem;
  line-height: 2;
}
.footer a:hover {
  color: #d4a843;
}
.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #666;
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
   .hero {
    height: 380px;
    background-position: left, center;
  }
   .about-hero {
    height: 320px;
    background-size: cover, cover;
   background-position: left, center;
  }
  .detail-hero {
    height: 320px;
    background-size: cover, cover;
    background-position: left, center;
  }
  .about-grid,
  .contact-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .hero {
    height: 280px;
    background-position: left, center;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .about-hero {
    height: 220px;
    background-size: cover, cover;
   background-position: left, center;
  }
  .detail-hero {
    height: 220px;
    background-size: cover, cover;
    background-position: left, center;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    gap: 16px;
  }
  .nav-links.open {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .section {
    padding: 48px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero {
    height: 200px;
    background-position: left, center;
  }
  .hero h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
  .about-hero {
    height: 180px;
    background-size: cover, cover;
    background-position: left, center;
  }
  .detail-hero {
    height: 180px;
    background-size: cover, cover;
    background-position: left, center;
  }
  .brands-grid {
    gap: 12px;
  }
  .brand-card {
    width: 100px;
    height: 60px;
  }
  .brand-card .brand-name {
    font-size: 0.85rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .about-stats {
    flex-direction: column;
    gap: 16px;
  }
}
