/* Modern Business Style - DALON Products 2025 */
:root {
  /* 与index.php一致的现代颜色方案 */
  --primary-color: #6366f1;        /* 现代紫色 */
  --primary-dark: #4f46e5;         /* 深紫色 */
  --primary-light: #a5b4fc;        /* 浅紫色 */
  --secondary-color: #0f172a;      /* 深蓝灰色 */
  --secondary-light: #1e293b;      /* 中蓝灰色 */
  --accent-color: #10b981;         /* 翠绿色 */
  --accent-orange: #f59e0b;        /* 现代橙色 */
  --text-primary: #1e293b;         /* 主要文字颜色 */
  --text-secondary: #64748b;       /* 次要文字颜色 */
  --text-light: #94a3b8;           /* 浅色文字 */
  --bg-primary: #ffffff;           /* 白色背景 */
  --bg-secondary: #f8fafc;         /* 浅灰背景 */
  --bg-dark: #0f172a;              /* 深色背景 */
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-hero: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
  --border-color: #e2e8f0;         /* 边框颜色 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  scroll-behavior: smooth;
}

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

/* Hero Banner - 现代化设计 with Background Image */
.hero-banner {
  --hero-bg-image: url('/images/slider/slide-1220-filter-2.webp');
  --hero-bg-opacity: 0.3;
  --hero-overlay-opacity: 0.7;
  
  background: var(--bg-hero);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
}

/* Background Image Layer */
.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    var(--hero-bg-image) center/cover no-repeat,
    var(--bg-hero); /* Fallback gradient if image fails to load */
  opacity: var(--hero-bg-opacity);
  z-index: 1;
}

/* Gradient Overlay Layer */
.hero-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(135deg, rgba(30, 41, 59, var(--hero-overlay-opacity)) 0%, rgba(51, 65, 85, 0.8) 50%, rgba(71, 85, 105, 0.6) 100%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  z-index: 2;
}

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

.hero-banner h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-banner .lead {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.quality-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-2xl);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.quality-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Products Area - 现代化卡片设计 */
.products-area {
  padding: 6rem 0;
  background: var(--bg-primary);
  position: relative;
}

.products-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.card {
  border: none;
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
}

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

/* 产品类别头部设计 */
.card-header {
  border: none;
  border-radius: 0;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.filter-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.muffler-header {
  background: linear-gradient(135deg, var(--accent-color) 0%, #059669 100%);
}

.bushing-header {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.other-header {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
}

.product-category-title {
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

/* 产品链接设计 */
.card-body {
  padding: 2rem 1.5rem;
}

.product-link {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.02);
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.product-link:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(5px);
  color: var(--primary-color);
  text-decoration: none;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  margin-right: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.product-link:hover .card-icon {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.product-link span {
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.product-link:hover span {
  font-weight: 600;
}

/* 信息提示 */
.card-body .text-muted {
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  border-left: 3px solid var(--primary-color);
  font-size: 0.875rem;
  line-height: 1.4;
}

.card-body .text-muted i {
  color: var(--primary-color);
}

/* Advantages Area - 现代化优势展示 */
.advantages-area {
  padding: 6rem 0;
  background: var(--bg-secondary);
  position: relative;
}

.advantages-area h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 3rem;
  font-weight: 700;
  position: relative;
  text-align: center;
}

.advantages-area h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 4rem;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
}

.advantages-area .col-md-3 {
  margin-bottom: 2rem;
}

.advantages-area .text-center {
  padding: 2rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.advantages-area .text-center:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.advantages-area .fa-3x {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.advantages-area .text-center:hover .fa-3x {
  transform: scale(1.1);
  color: var(--primary-dark);
}

.advantages-area h3 {
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.advantages-area .text-muted {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

/* CTA Area - 现代化行动召唤 */
.cta-area {
  background: var(--bg-gradient);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.cta-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
}

.cta-area .container {
  position: relative;
  z-index: 2;
}

.cta-area h2 {
  color: white;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-area p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-area .btn {
  background: white;
  color: var(--primary-color);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-2xl);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-area .btn:hover {
  background: #f8fafc;
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  color: var(--primary-dark);
  text-decoration: none;
}

/* Hero Background Customization Guide:
   To change background image: modify --hero-bg-image variable
   To adjust image opacity: modify --hero-bg-opacity (0.0 to 1.0)
   To adjust overlay opacity: modify --hero-overlay-opacity (0.0 to 1.0)
   
   Example alternative images:
   --hero-bg-image: url('/images/dalon-workshop-01.webp');
   --hero-bg-image: url('/images/slider/dalon-equipment-01.webp');
*/

/* 响应式设计 */
@media (max-width: 1024px) {
  .hero-banner {
    min-height: 250px;
    /* Adjust background for tablets */
    --hero-bg-opacity: 0.25;
    --hero-overlay-opacity: 0.75;
  }
  
  .products-area,
  .advantages-area,
  .cta-area {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero-banner {
    min-height: 200px;
    padding: 3rem 0;
    /* Mobile background adjustments */
    --hero-bg-opacity: 0.2;
    --hero-overlay-opacity: 0.8;
  }
  
  .hero-banner .lead {
    font-size: 1.1rem;
  }
  
  .quality-badge {
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
  }
  
  .products-area,
  .advantages-area,
  .cta-area {
    padding: 3rem 0;
  }
  
  .card-body {
    padding: 1.5rem 1rem;
  }
  
  .product-link {
    padding: 0.75rem;
  }
  
  .card-icon {
    width: 40px;
    height: 40px;
  }
  
  .advantages-area .text-center {
    padding: 1.5rem;
  }
  
  .cta-area .row {
    text-align: center;
  }
  
  .cta-area .btn {
    margin-top: 1rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-banner h1 {
    font-size: 1.75rem;
  }
  
  .hero-banner .lead {
    font-size: 1rem;
  }
  
  .product-category-title {
    font-size: 1.25rem;
  }
  
  .advantages-area h2 {
    font-size: 1.75rem;
  }
  
  .advantages-area .fa-3x {
    font-size: 2.5rem;
  }
}