/* ===================================
   huangqg - 主样式文件
   =================================== */

/* CSS 变量定义 */
:root {
  /* 主色调 - 蓝色系 */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --secondary-color: #0ea5e9;
  
  /* 辅助色 - 绿色系（成功/服务） */
  --success-color: #10b981;
  --success-dark: #059669;
  --whatsapp-color: #25d366;
  --whatsapp-dark: #128c7e;
  
  /* 警示色 */
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  
  /* 中性色 */
  --text-color: #1f2937;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --bg-color: #ffffff;
  --bg-light: #f9fafb;
  --bg-dark: #f3f4f6;
  --border-color: #e5e7eb;
  --border-light: #f3f4f6;
  
  /* 阴影 */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* 圆角 */
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* 动画 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
background-color: #2563eb;
}

body {
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
color: var(--text-color);
line-height: 1.6;
background-color: #2563eb;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 选中文字样式 */
::selection {
  background: var(--primary-color);
  color: white;
}

/* ===================================
   导航栏样式 - 全局彩虹色跑马灯
   =================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  /* 彩虹色渐变背景 - 更鲜艳的颜色 */
  background: linear-gradient(
    -45deg,
    #ef4444,  /* 红色 */
    #f97316,  /* 橙色 */
    #eab308,  /* 黄色 */
    #22c55e,  /* 绿色 */
    #14b8a6,  /* 青色 */
    #3b82f6,  /* 蓝色 */
    #a855f7,  /* 紫色 */
    #ec4899,  /* 粉色 */
    #ef4444   /* 回到红色，形成闭环 */
  );
  background-size: 500% 500%;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 1000;
  opacity: 1;
  animation: rainbowFlow 8s linear infinite, fadeIn 0.6s ease-in-out;
  /* 添加半透明遮罩让文字更清晰 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

/* 彩虹流动动画 */
@keyframes rainbowFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* 导航栏彩虹覆盖层 - 增强效果 */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    -45deg,
    rgba(239, 68, 68, 0.85),   /* 红 */
    rgba(249, 115, 22, 0.85),  /* 橙 */
    rgba(234, 179, 8, 0.85),   /* 黄 */
    rgba(34, 197, 94, 0.85),   /* 绿 */
    rgba(20, 184, 166, 0.85),  /* 青 */
    rgba(59, 130, 246, 0.85),  /* 蓝 */
    rgba(168, 85, 247, 0.85),  /* 紫 */
    rgba(236, 72, 153, 0.85)   /* 粉 */
  );
  background-size: 500% 500%;
  animation: rainbowFlow 8s linear infinite;
  z-index: -1;
  opacity: 0.92;
  border-radius: 0 0 8px 8px;
}

/* 导航栏品牌 Logo 容器 */
.nav-brand {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1;
  transition: var(--transition);
}

.nav-brand:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* 导航栏内容层 */
.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    -45deg,
    rgba(37, 99, 235, 0.9),
    rgba(14, 165, 233, 0.9),
    rgba(16, 185, 129, 0.9),
    rgba(59, 130, 246, 0.9),
    rgba(6, 182, 212, 0.9),
    rgba(16, 185, 129, 0.9)
  );
  background-size: 400% 400%;
  animation: gradientFlow 6s ease infinite;
  z-index: -1;
  opacity: 0.95;
}

/* 跑马灯动画 */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-brand a {
  display: flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  z-index: 1;
}

/* Logo 容器添加白色背景，使其更突出 */
.nav-brand {
  background: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 700;
  transition: var(--transition);
  position: relative;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.4);
  padding: 0.5rem 0;
  letter-spacing: 0.3px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #14b8a6, #3b82f6, #a855f7, #ec4899);
  background-size: 200% 100%;
  animation: rainbowFlow 3s linear infinite;
  transition: width 0.3s ease;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.9), 0 0 30px rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

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

/* 导航链接图标 */
.nav-links a i {
  margin-right: 0.4rem;
  font-size: 1.1em;
}

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

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

/* ===================================
   汉堡菜单样式 - 彩虹版
   =================================== */
.nav-toggle {
  display: none;
  background: linear-gradient(135deg, #ef4444, #f97316, #eab308, #22c55e, #14b8a6, #3b82f6, #a855f7, #ec4899);
  background-size: 300% 300%;
  animation: rainbowFlow 4s linear infinite;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0.6rem;
  z-index: 1001;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.nav-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.4);
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* 汉堡菜单激活状态 */
.nav-toggle.active .hamburger {
  background: transparent;
}

.nav-toggle.active .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 移动端导航 */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    position: relative;
  }

  .nav-brand {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
  }

  .nav-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 1rem 0;
    margin-top: 0.5rem;
    /* 移动端彩虹背景 */
    background: linear-gradient(
      -45deg,
      #ef4444,
      #f97316,
      #eab308,
      #22c55e,
      #14b8a6,
      #3b82f6,
      #a855f7,
      #ec4899
    );
    background-size: 300% 300%;
    animation: rainbowFlow 6s linear infinite;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    border-radius: var(--radius);
    animation: slideDown 0.3s ease, rainbowFlow 6s linear infinite;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    color: white !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    letter-spacing: 0.3px;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255, 255, 255, 0.25);
    color: white !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.9);
    padding-left: 2rem;
    border-left: 4px solid rgba(255, 255, 255, 0.6);
    border-radius: 0 8px 8px 0;
  }
}

/* ===================================
Hero 横幅样式 - 动画背景版
=================================== */
.hero {
position: relative;
height: 400px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
color: white;
overflow: hidden;
/* 立即可见的渐变背景，防止黑窗 */
background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(14, 165, 233, 0.75) 100%);
}

/* 动画背景层 */
.hero-animation {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
z-index: 0;
}

/* 浮动粒子 */
.hero-particle {
position: absolute;
width: 30px;
height: 30px;
background: rgba(255, 255, 255, 0.08);
border-radius: 50%;
animation: float 20s infinite ease-in-out;
box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes float {
0%, 100% {
transform: translateY(0) translateX(0) scale(1);
opacity: 0.3;
}
25% {
transform: translateY(-40px) translateX(20px) scale(1.1);
opacity: 0.5;
}
50% {
transform: translateY(-20px) translateX(-20px) scale(1.2);
opacity: 0.6;
}
75% {
transform: translateY(-60px) translateX(10px) scale(0.9);
opacity: 0.4;
}
}

/* 隐藏旧的视频元素 */
.hero-video {
display: none;
}

/* 移动端优化 - 文字居中 */
@media (max-width: 768px) {
.hero {
height: 300px;
background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(14, 165, 233, 0.9) 100%) !important;
justify-content: center !important;
align-items: center !important;
text-align: center !important;
}

.hero::before {
display: none;
}

.hero-animation {
display: none; /* 移动端隐藏动画以节省性能 */
}

.hero-content {
margin-left: 0 !important;
margin-right: 0 !important;
max-width: 90%;
padding: 1.5rem;
text-align: center !important;
}

.hero h2 {
font-size: 1.75rem;
margin-bottom: 1rem;
text-align: center;
}

.hero p {
font-size: 1rem;
text-align: center;
margin-bottom: 1.5rem;
}
}

/* 渐变遮罩层 - 已移除，使用背景渐变替代 */

.hero-content {
position: relative;
z-index: 1;
max-width: 800px;
padding: 2rem;
margin: 0 auto;
animation: slideUp 0.8s ease-out;
text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
text-align: center;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: white;
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-light);
}

/* ===================================
   分类区域样式
   =================================== */
.categories {
  padding: 5rem 2rem;
  background: var(--bg-light);
}

.categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.category-card {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.category-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.category-card p {
  color: var(--text-light);
  font-size: 1rem;
}

/* ===================================
   产品展示区域样式
   =================================== */
.featured-products {
  padding: 5rem 2rem;
  background: var(--bg-color);
}

.featured-products h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.product-image {
  width: 100%;
  height: 250px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card h4 {
  padding: 1.25rem 1.25rem 0.5rem;
  font-size: 1.1rem;
  color: var(--text-color);
  font-weight: 600;
}

.product-card .price {
  padding: 0 1.25rem 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* ===================================
   页脚样式
   =================================== */
.footer {
  background: var(--text-color);
  color: white;
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}

.footer-section h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   通用工具类
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center {
  text-align: center;
}

/* ===================================
   动画效果增强
   =================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 加载动画 */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 淡入动画类 */
.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

/* 悬停浮动效果 */
.hover-lift {
  transition: var(--transition);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===================================
   响应式调整
   =================================== */
@media (max-width: 768px) {
  .hero {
    height: 400px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .categories,
  .featured-products {
    padding: 3rem 1rem;
  }

  .category-grid,
  .product-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.5rem;
  }

  .btn-primary {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===================================
   产品列表页样式
   =================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 4rem 2rem;
  text-align: center;
  transition: var(--transition);
}

/* 不同页面的标题颜色主题 */
.page-header.products-header {
  background: linear-gradient(135deg, #10b981, #059669); /* 绿色 - Prodotti */
  color: white;
}

.page-header.services-header {
  background: #ffffff !important; /* 白色 - Servizi */
  color: #000000 !important; /* 黑色文字 */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.page-header.contact-header {
  background: linear-gradient(135deg, #ef4444, #dc2626); /* 红色 - Contatti */
  color: white;
}

/* 白色背景页面标题文字颜色 - 全部强制为黑色 */
.page-header.services-header h1,
.page-header.services-header p,
.page-header.services-header i {
  color: #000000 !important; /* 纯黑色 */
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.25rem;
  opacity: 0.95;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.25rem;
  opacity: 0.95;
}

/* 筛选区域 */
.filter-section {
  padding: 2rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

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

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group label {
  font-weight: 600;
  color: var(--text-color);
  font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-group input::placeholder {
  color: var(--text-light);
}

/* 产品列表区域 */
.products-section {
  padding: 3rem 2rem;
  background: var(--bg-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* 加载和状态提示 */
.loading,
.no-products,
.error-message {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.error-message {
  color: #dc2626;
}

/* 响应式筛选栏 */
@media (min-width: 768px) {
  .filter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
  }

  .filter-group {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .page-header {
    padding: 3rem 1rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header p {
    font-size: 1rem;
  }

  .filter-section {
    padding: 1.5rem 1rem;
  }

  .products-section {
    padding: 2rem 1rem;
  }

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

/* ===================================
   产品分类/详情页共用样式
   =================================== */
.breadcrumb {
  padding: 1rem 2rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* 产品详情卡片 */
.product-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.product-detail-image {
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-detail-image img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.product-detail-info h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.product-detail-info .price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.product-detail-info .description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.btn-add-to-cart {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-add-to-cart:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
    gap: 2rem;
  }

  .product-detail-info h1 {
    font-size: 1.75rem;
  }
}

/* ===================================
   产品详情页增强样式 (product-detail.html)
   =================================== */
.product-detail-page {
  padding: 2rem;
  background: var(--bg-light);
  min-height: calc(100vh - 200px);
}

.detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  max-width: 1200px;
  margin: 0 auto;
}

.detail-image {
  position: relative;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  transition: var(--transition);
}

.detail-image:hover {
  box-shadow: var(--shadow-lg);
}

.detail-image img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
  transition: var(--transition);
}

.detail-image:hover img {
  transform: scale(1.05);
}

.detail-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-info .category-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.detail-info h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.detail-info .price {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 1.5rem 0;
}

.detail-info .description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-dark);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.5rem;
  transition: var(--transition);
  align-self: flex-start;
}

.btn-back:hover {
  background: var(--border-color);
  transform: translateX(-4px);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--whatsapp-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow);
  border: none;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.not-found {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 500px;
  margin: 2rem auto;
}

.not-found h2 {
  color: var(--text-color);
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

/* 加载状态增强 */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  color: var(--text-light);
}

.loading .spinner {
  width: 32px;
  height: 32px;
}

/* 响应式详情页 */
@media (max-width: 768px) {
  .product-detail-page {
    padding: 1rem;
  }

  .detail-container {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 2rem;
  }

  .detail-image {
    min-height: 300px;
  }

  .detail-info h1 {
    font-size: 1.75rem;
  }

  .detail-info .price {
    font-size: 2rem;
  }

  .btn-back {
    width: 100%;
    justify-content: center;
  }

  .btn-whatsapp {
    width: 100%;
  }
}

/* ===================================
   通用加载状态优化
   =================================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem;
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
}

.loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.no-products {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.error-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem;
  text-align: center;
  color: var(--error-color);
  font-size: 1.1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: var(--radius);
  margin: 1rem;
}

/* ===================================
   按钮增强样式
   =================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

/* 按钮尺寸变体 */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* 按钮颜色变体 */
.btn-success {
  background: linear-gradient(135deg, var(--success-color), var(--success-dark));
}

.btn-whatsapp {
  background: var(--whatsapp-color);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

/* ===================================
   卡片增强效果
   =================================== */
.card {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

/* ===================================
   网格系统增强
   =================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   工具类增强
   =================================== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.shadow-sm {
  box-shadow: var(--shadow);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.rounded {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* ===================================
   服务页面样式 (services.html)
   =================================== */
.services-page {
  background: linear-gradient(rgba(30, 60, 90, 0.92), rgba(20, 40, 60, 0.95)),
    url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920') center/cover no-repeat;
  min-height: 100vh;
}

.services-page .page-header {
  background: linear-gradient(135deg, #27ae60, #2c3e50);
  padding: 4rem 2rem;
  text-align: center;
}

.services-page .page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: white;
}

.services-page .page-header p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
}

.services-section {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  margin: 1.5rem;
  border-radius: var(--radius-lg);
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: #27ae60;
}

.service-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: left;
}

.service-card ul li {
  padding: 0.5rem 0;
  color: var(--text-light);
  position: relative;
  padding-left: 1.5rem;
}

.service-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: bold;
}

.service-card .btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.875rem 2rem;
  background: #27ae60;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
}

.service-card .btn-primary:hover {
  background: #219a55;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* 服务流程 */
.process-section {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  margin: 0 1.5rem 2rem;
  border-radius: var(--radius-lg);
}

.process-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #27ae60, #2c3e50);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.process-step h4 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-light);
  line-height: 1.6;
}

/* 顾客反馈 */
.reviews-section {
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  margin: 0 1.5rem 2rem;
  border-radius: var(--radius-lg);
}

.reviews-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.review-card {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.review-card .stars {
  color: #f39c12;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.review-text {
  color: var(--text-color);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.review-author {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.9rem;
}

.review-date {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* ===================================
   联系页面样式 (contact.html)
   =================================== */
.contact-header {
  background: linear-gradient(135deg, #3498db, #2c3e50);
}

.contact-info {
  padding: 3rem 2rem;
  background: var(--bg-light);
}

.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #3498db;
}

.contact-card i {
  font-size: 2.5rem;
  color: #3498db;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 0.75rem;
}

.contact-card p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 联系表单 */
.contact-form-section {
  padding: 4rem 2rem;
  background: var(--bg-color);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
}

.form-container h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-color);
  color: var(--text-color);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

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

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-submit:hover {
  background: #128c7e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-message {
  margin-top: 1.5rem;
  text-align: center;
}

.form-message .success-message,
.form-message .error-message {
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.form-message .success-message {
  background: rgba(37, 211, 102, 0.1);
  color: #25d366;
  border: 1px solid #25d366;
}

.form-message .error-message {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

/* 地图区域 */
.map-section {
  padding: 3rem 2rem;
  background: var(--bg-light);
}

.map-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text-color);
}

.map-container {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* 响应式调整 */
@media (max-width: 768px) {
  .services-page .page-header,
  .contact-header {
    padding: 3rem 1rem;
  }

  .services-page .page-header h1,
  .contact-header h1 {
    font-size: 1.75rem;
  }

  .services-section,
  .process-section,
  .reviews-section {
    padding: 2rem 1rem;
    margin: 1rem 0.75rem;
  }

  .services-container,
  .process-steps,
  .reviews-container {
    grid-template-columns: 1fr;
  }

  .contact-info,
  .contact-form-section,
  .map-section {
    padding: 2rem 1rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    font-size: 1rem;
    padding: 0.875rem;
  }
}

