/* ===== Variables ===== */
:root {
  --primary: #0d6efd;
  --primary-dark: #0a58ca;
  --secondary: #00b4d8;
  --dark: #1a1a2e;
  --light-bg: #f8f9fa;
  --text: #333;
  --text-light: #6c757d;
  --white: #fff;
  --shadow: 0 2px 15px rgba(0,0,0,.08);
  --transition: all .3s ease;
}

/* ===== Global ===== */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.6;
}
a { text-decoration: none; transition: var(--transition); }
section { padding: 80px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.section-subtitle {
  color: var(--text-light);
  margin-bottom: 3rem;
}

/* ===== Navbar ===== */
.navbar {
  padding: 15px 0;
  transition: var(--transition);
  background: var(--white);
}
.navbar.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow);
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary) !important;
  display: flex;
  align-items: center;
}
.navbar-brand img {
  height: 55px;
  margin-right: 10px;
  object-fit: contain;
}
.navbar-brand span { 
  color: var(--primary);
  font-size: 1.4rem;
}
.nav-link {
  font-weight: 500;
  color: var(--dark) !important;
  margin: 0 8px;
}
.nav-link:hover, .nav-link.active { color: var(--primary) !important; }
.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 25px;
  padding: 8px 24px !important;
}
.nav-cta:hover { background: var(--primary-dark); }

/* ===== Hero ===== */
.hero {
  background: url('../images/首页-工厂背景.png') center center / cover no-repeat;
  color: var(--white);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(22,33,62,0.75) 100%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 { 
  font-size: 3rem; 
  font-weight: 800; 
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero p { 
  font-size: 1.2rem; 
  opacity: .95; 
  margin: 1.5rem 0 2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}
.hero .btn-primary {
  padding: 12px 36px;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(13,110,253,0.4);
}
.hero .btn-outline-light {
  padding: 12px 36px;
  border-radius: 30px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
}
.hero .btn-outline-light:hover {
  background: rgba(255,255,255,0.2);
  border-color: var(--white);
}

/* ===== Product Cards ===== */
.product-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.product-card img { height: 220px; object-fit: cover; }
.product-card .card-body { padding: 1.5rem; }
.product-card .card-title { font-weight: 600; }
.product-card .badge { background: var(--secondary); }

/* ===== Advantages ===== */
.advantage-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--white);
  font-size: 1.8rem;
}

/* ===== Stats ===== */
.stats {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 60px 0;
}
.stats h3 { font-size: 2.5rem; font-weight: 800; }
.stats p { opacity: .85; margin: 0; }

/* ===== Certifications ===== */
.cert-item {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
}
.cert-item:hover { transform: translateY(-5px); }

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  color: var(--white);
  padding: 80px 0;
}
.cta-section h2 { font-weight: 700; }
.cta-section .btn {
  padding: 14px 40px;
  border-radius: 30px;
  font-weight: 600;
}

/* ===== Footer ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 60px 0 30px;
}
footer h5 { 
  color: var(--white); 
  font-weight: 600; 
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
}
footer h5 img {
  height: 50px;
  margin-right: 10px;
  object-fit: contain;
}
footer a { color: rgba(255,255,255,.7); }
footer a:hover { color: var(--secondary); }
footer .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: var(--white);
  margin-right: 8px;
  transition: var(--transition);
}
footer .social-link:hover { background: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  margin-top: 40px;
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 100%);
  color: var(--white);
  padding: 120px 0 60px;
}
.page-header h1 { font-weight: 700; }
.breadcrumb-item a { color: var(--secondary); }
.breadcrumb-item.active { color: rgba(255,255,255,.7); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ===== Product Filter ===== */
.filter-btn {
  border: 2px solid #dee2e6;
  border-radius: 25px;
  padding: 8px 24px;
  background: transparent;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* ===== About Timeline ===== */
.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 2rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: -2rem;
  width: 2px;
  background: var(--primary);
}
.timeline-item::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
}
.timeline-item:last-child::before { display: none; }

/* ===== Contact Form ===== */
.contact-form .form-control {
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #dee2e6;
}
.contact-form .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
}
.contact-info-card {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
}
.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37,211,102,.4);
  z-index: 1000;
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 120px 0 80px; }
  .hero h1 { font-size: 2rem; }
  section { padding: 60px 0; }
  .stats h3 { font-size: 2rem; }
}
