/* ========================================
   华宝堂化妆品网站 - 主样式表
   Guangzhou Huabaotang Biotechnology Co., Ltd.
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #c9a86c;
  --primary-dark: #a8894f;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --text-light: #666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 30px;
}

/* ========================================
   Sections - 优化间距
   ======================================== */
.section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 20px;
}

.section-header .line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  margin: 0 auto;
  border-radius: 2px;
}

/* ========================================
   Header & Navigation
   ======================================== */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-top {
  background: var(--secondary-color);
  color: #fff;
  padding: 8px 0;
  font-size: 14px;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top a {
  color: #fff;
  margin-left: 20px;
}

.header-top a:hover {
  color: var(--primary-color);
}

.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  font-weight: bold;
}

.logo-text {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
}

.logo-text span {
  color: var(--primary-color);
}

/* Navigation */
.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-menu a {
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

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

.nav-menu a:hover {
  color: var(--primary-color);
}

/* Language Selector */
.lang-selector {
  position: relative;
}

.lang-btn {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--bg-white);
  box-shadow: var(--shadow-lg);
  border-radius: 8px;
  padding: 10px 0;
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
}

.lang-selector:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown a {
  display: block;
  padding: 10px 20px;
  color: #333333 !important;
  background: #ffffff;
}

.lang-dropdown a:hover {
  background: #f8f9fa;
  color: #c9a86c !important;
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 3px;
  transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #1a252f 100%);
  color: #fff;
  padding: 150px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23c9a86c" stroke-width="0.5" opacity="0.1"/></svg>') repeat;
  opacity: 0.3;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--primary-color);
}

.hero p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 30px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(201, 168, 108, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: var(--secondary-color);
}

.btn-secondary {
  background: var(--secondary-color);
  color: #fff;
}

.btn-secondary:hover {
  background: #1a252f;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 36px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-light);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.section-header .line {
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin: 20px auto 0;
}

/* ========================================
   Services Section
   ======================================== */
.services {
  background: var(--bg-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-white);
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 36px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.service-card p {
  color: var(--text-light);
  margin-bottom: 20px;
}

.service-card .btn {
  padding: 10px 25px;
  font-size: 14px;
}

/* ========================================
   Products Section - 优化版
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(201, 168, 108, 0.25);
  border-color: var(--primary-color);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  height: 220px;
  background: linear-gradient(135deg, #fafafa, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 48px;
  overflow: hidden;
  position: relative;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.1);
}

.product-info {
  padding: 25px;
  background: var(--bg-white);
}

.product-info h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--secondary-color);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-info p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ========================================
   About Section
   ======================================== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  background: linear-gradient(135deg, var(--bg-light), #e8e8e8);
  border-radius: 15px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 64px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.about-text h3 {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 15px;
  line-height: 1.8;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-feature .icon {
  width: 50px;
  height: 50px;
  background: var(--bg-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--primary-color);
}

.about-feature span {
  font-weight: 500;
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
  background: linear-gradient(135deg, var(--secondary-color), #1a252f);
  color: #fff;
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h3 {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 16px;
  opacity: 0.9;
}

/* ========================================
   OEM Section - 优化版
   ======================================== */
.oem-process {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 25px;
  margin-top: 50px;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 35px 20px;
  background: var(--bg-white);
  border-radius: 16px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.process-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  border-radius: 16px 16px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.process-step:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(201, 168, 108, 0.2);
  border-color: rgba(201, 168, 108, 0.3);
}

.process-step:hover::before {
  opacity: 1;
}

.process-step::after {
  content: '→';
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: var(--primary-color);
  opacity: 0.4;
  font-weight: 300;
}

.process-step:last-child::after {
  display: none;
}

.process-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 25px;
  box-shadow: 0 4px 15px rgba(201, 168, 108, 0.3);
  position: relative;
}

.process-number::after {
  content: '';
  position: absolute;
  width: 85px;
  height: 85px;
  border: 2px dashed rgba(201, 168, 108, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.process-step h4 {
  font-size: 18px;
  color: var(--secondary-color);
  margin-bottom: 12px;
  font-weight: 600;
}

.process-step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .oem-process {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  
  .process-step::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .oem-process {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .process-step {
    padding: 25px 15px;
  }
  
  .process-number {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  
  .process-number::after {
    width: 75px;
    height: 75px;
  }
}

@media (max-width: 480px) {
  .oem-process {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
  background: var(--bg-light);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 25px;
}

.contact-item .icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
  color: var(--secondary-color);
}

.contact-item p {
  color: var(--text-light);
  font-size: 15px;
}

.contact-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(201, 168, 108, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--secondary-color);
  color: #fff;
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand .logo-text {
  color: #fff;
  margin-bottom: 15px;
}

.footer-brand p {
  opacity: 0.8;
  line-height: 1.8;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
}

.footer-links h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  opacity: 0.7;
  font-size: 14px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .oem-process {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .process-step:nth-child(3)::after {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .header-top {
    display: block;
    padding: 8px 0;
    font-size: 12px;
  }
  
  .header-top .container {
    justify-content: center;
    gap: 10px;
  }
  
  .header-top span {
    font-size: 11px;
  }
  
  .lang-selector {
    position: relative;
  }
  
  .lang-btn {
    font-size: 12px;
    padding: 4px 10px;
  }
  
  .lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-width: 120px;
    display: none;
  }
  
  .lang-dropdown.active {
    display: block;
  }
  
  .lang-dropdown a {
    display: block;
    padding: 8px 15px;
    color: #333;
    font-size: 12px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: flex;
  }
  
  .hero {
    padding: 120px 0 60px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .services-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .oem-process {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-step::after {
    display: none;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .services-grid,
  .products-grid,
  .stats-grid,
  .oem-process {
    grid-template-columns: 1fr;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .section {
    padding: 50px 0;
  }
  
  .section-header h2 {
    font-size: 28px;
  }
  
  .contact-form {
    padding: 25px;
  }
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }
.bg-light { background: var(--bg-light); }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ========================================
   Factory Gallery
   ======================================== */
.factory-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: #fff;
  padding: 15px 10px 10px;
  font-size: 14px;
  font-weight: 500;
}

/* ========================================
   Certifications
   ======================================== */
.certifications {
  background: var(--bg-white);
  border-radius: 15px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.certifications h3 {
  text-align: center;
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.cert-item {
  text-align: center;
  padding: 20px;
  background: var(--bg-light);
  border-radius: 10px;
  transition: var(--transition);
}

.cert-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.cert-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.cert-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.cert-desc {
  font-size: 13px;
  color: var(--text-light);
}

/* ========================================
   OEM Pricing Table
   ======================================== */
.oem-pricing {
  background: var(--bg-white);
  border-radius: 15px;
  padding: 40px;
  margin-top: 50px;
  box-shadow: var(--shadow);
}

.oem-pricing h3 {
  text-align: center;
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table th,
.price-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.price-table th {
  background: var(--secondary-color);
  color: #fff;
  font-weight: 600;
}

.price-table th:first-child {
  border-radius: 8px 0 0 0;
}

.price-table th:last-child {
  border-radius: 0 8px 0 0;
}

.price-table tr:hover {
  background: var(--bg-light);
}

.price-note {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  margin-top: 15px;
}

/* ========================================
   Partners Section
   ======================================== */
.partners-section {
  margin-bottom: 50px;
}

.partners-section h3 {
  text-align: center;
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-item {
  background: var(--bg-white);
  padding: 25px 20px;
  text-align: center;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-weight: 500;
  color: var(--secondary-color);
  transition: var(--transition);
}

.partner-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-color);
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials h3 {
  text-align: center;
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-item {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.testimonial-content {
  margin-bottom: 20px;
}

.testimonial-content p {
  color: var(--text-color);
  font-style: italic;
  line-height: 1.8;
}

.testimonial-content p::before {
  content: '"';
  font-size: 40px;
  color: var(--primary-color);
  line-height: 0;
  margin-right: 5px;
}

.testimonial-author {
  color: var(--text-light);
  font-size: 14px;
}

.testimonial-author strong {
  color: var(--secondary-color);
}

/* ========================================
   Contact CTA
   ======================================== */
.contact-cta {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: #fff;
  padding: 25px;
  border-radius: 12px;
  margin-top: 30px;
}

.contact-cta h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.contact-cta p {
  margin-bottom: 10px;
}

.contact-cta ul {
  margin-bottom: 20px;
}

.contact-cta ul li {
  margin-bottom: 5px;
}

.contact-cta .btn {
  background: #fff;
  color: var(--primary-color);
}

.contact-cta .btn:hover {
  background: var(--bg-light);
}

/* ========================================
   Responsive for new sections
   ======================================== */
@media (max-width: 1024px) {
  .factory-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .factory-gallery {
    grid-template-columns: 1fr;
  }
  
  .cert-grid {
    grid-template-columns: 1fr;
  }
  
  .partners-grid {
    grid-template-columns: 1fr;
  }
  
  .price-table {
    font-size: 14px;
  }
  
  .price-table th,
  .price-table td {
    padding: 10px;
  }
  
  .oem-pricing {
    padding: 20px;
    overflow-x: auto;
  }
  
  .certifications {
    padding: 20px;
  }
}

/* ========================================
   Certificate Images
   ======================================== */
.cert-intro {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 30px;
  font-size: 16px;
}

.cert-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.cert-img-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
  padding: 10px;
  border: 1px solid rgba(201, 168, 108, 0.15);
}

.cert-img-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.cert-img-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.414;
  object-fit: contain;
  background: #fafafa;
  border-radius: 4px;
}

/* ========================================
   Image Modal
   ======================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from { transform: translate(-50%, -50%) scale(0.8); }
  to { transform: translate(-50%, -50%) scale(1); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .cert-images {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cert-img-item img {
    height: 150px;
  }
  
  .modal-content {
    max-width: 95%;
  }
}

/* ========================================
   FAQ Section Styles
   ======================================== */

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background: var(--bg-white);
  transition: var(--transition);
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
  flex: 1;
  padding-right: 15px;
}

.faq-toggle {
  font-size: 24px;
  font-weight: 300;
  color: var(--primary-color);
  transition: var(--transition);
  min-width: 30px;
  text-align: center;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--bg-light);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 20px 25px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.8;
  margin: 0;
}

.faq-answer strong {
  color: var(--primary-color);
}

/* Mobile responsive for FAQ */
@media (max-width: 768px) {
  .faq-question {
    padding: 15px 20px;
  }
  
  .faq-question h3 {
    font-size: 15px;
  }
  
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

/* ========================================
   Product Subcategories Styles
   ======================================== */

.product-card {
  cursor: pointer;
  position: relative;
}

.product-info h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.expand-icon {
  font-size: 12px;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.product-card.expanded .expand-icon {
  transform: rotate(180deg);
}

.product-subcategories {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  margin-top: 0;
}

.product-card.expanded .product-subcategories {
  max-height: 400px;
  opacity: 1;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed rgba(201, 168, 108, 0.3);
}

.subcategory-item {
  display: inline-block;
  padding: 8px 18px;
  margin: 5px;
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid rgba(201, 168, 108, 0.2);
  border-radius: 25px;
  font-size: 13px;
  color: var(--text-color);
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 500;
}

.subcategory-item:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 108, 0.35);
}

/* Mobile responsive for product subcategories */
@media (max-width: 768px) {
  .subcategory-item {
    padding: 6px 12px;
    font-size: 12px;
    margin: 4px;
  }
  
  .product-card.expanded .product-subcategories {
    max-height: 500px;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-info {
    padding: 20px;
  }
  
  .product-info h4 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .product-image {
    height: 250px;
  }
}
}

/* ========================================
   新增功能样式
   ======================================== */

/* 产品搜索 */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
}

.search-container {
  width: 90%;
  max-width: 600px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 30px;
  font-size: 18px;
  border: none;
  border-radius: 50px;
  background: white;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.search-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #666;
}

.search-results {
  margin-top: 20px;
  background: white;
  border-radius: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.search-result-item {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.3s;
}

.search-result-item:hover {
  background: #f5f5f5;
}

/* 在线客服 */
.customer-service-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-icon:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.service-menu {
  position: absolute;
  bottom: 70px;
  right: 0;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  overflow: hidden;
  min-width: 200px;
}

.service-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #333;
  transition: background 0.3s;
  text-decoration: none;
}

.service-item:hover {
  background: #f5f5f5;
}

.service-icon-small {
  font-size: 24px;
  margin-right: 12px;
}

/* 移动端优化 */
@media (max-width: 768px) {
  .customer-service-btn {
    bottom: 20px;
    right: 20px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 26px;
  }
  
  .search-input {
    font-size: 16px;
    padding: 15px 50px 15px 20px;
  }
}

/* 产品询价按钮 */
.inquiry-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 16px;
}

.inquiry-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(201, 168, 108, 0.4);
}

/* 社交媒体链接 */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ========================================
   社交媒体分享按钮
   ======================================== */
.social-share {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 20px 0;
}

.social-share-label {
  font-size: 14px;
  color: #666;
  margin-right: 10px;
}

.social-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 18px;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
}

.social-share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.share-wechat {
  background: #07C160;
}

.share-weibo {
  background: #E6162D;
}

.share-qq {
  background: #12B7F5;
}

.share-linkedin {
  background: #0077B5;
}

.share-facebook {
  background: #4267B2;
}

.share-twitter {
  background: #1DA1F2;
}

.share-copy {
  background: #666;
}

/* 固定分享栏 */
.fixed-share-bar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.fixed-share-bar:hover {
  opacity: 1;
}

@media (max-width: 1200px) {
  .fixed-share-bar {
    display: none;
  }
}

/* 分享提示框 */
.share-tooltip {
  position: absolute;
  background: white;
  padding: 10px 15px;
  border-radius: 5px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  font-size: 14px;
  color: #333;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.social-share-btn:hover .share-tooltip {
  opacity: 1;
}

/* ========================================
   回到首页悬浮按钮
   ======================================== */
.back-to-home {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #c9a86c, #a8894f);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(201, 168, 108, 0.4);
  transition: all 0.3s;
  z-index: 9997;
  text-decoration: none;
}

.back-to-home:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(201, 168, 108, 0.6);
}

.back-to-home.show {
  display: flex;
}

@media (min-width: 769px) {
  .back-to-home {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .back-to-home {
    bottom: 120px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}
