* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 头部 */
.header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 25px 0;
  margin-bottom: 40px;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.company-name {
  color: #ecf0f1;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.95;
  margin: 0;
}

.header h1 {
  text-align: center;
  color: white;
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* 品牌区域 */
.brands-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.brand-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.brand-logo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background-color: #f0f0f0;
}

.brand-name {
  padding: 15px;
  text-align: center;
  font-weight: 500;
  font-size: 1.1rem;
}

/* 产品区域 */
.products-section {
  margin-bottom: 50px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background-color: #f0f0f0;
}

.product-info {
  padding: 15px;
}

.product-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #2c3e50;
}

.product-brand {
  font-size: 0.85rem;
  color: #7f8c8d;
  margin-bottom: 8px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #27ae60;
}

/* 产品详情页 */
.product-detail {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 0 auto;
}

.product-detail-image {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  margin-bottom: 30px;
  border-radius: 8px;
}

.product-detail-title {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #2c3e50;
}

.product-detail-info {
  margin-bottom: 20px;
}

.product-detail-info p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.product-detail-info strong {
  color: #2c3e50;
}

.product-detail-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #27ae60;
  margin: 20px 0;
}

/* WhatsApp 按钮 */
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #25D366;
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.whatsapp-button:hover {
  background-color: #128C7E;
  transform: scale(1.05);
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  fill: white;
}

/* 返回按钮 */
.back-button {
  display: inline-block;
  margin-bottom: 20px;
  color: #3498db;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.back-button:hover {
  color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .company-name {
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
  
  .header h1 {
    font-size: 1.5rem;
  }
  
  .brands-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }
  
  .product-detail {
    padding: 20px;
  }
  
  .product-detail-title {
    font-size: 1.5rem;
  }
}
