/* 现代化网站增强样式 */

/* ========== CSS 变量定义 ========== */
:root {
  /* 主色调 */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  
  /* 阴影效果 */
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.08);
  
  /* 圆角 */
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-sm: 8px;
  
  /* 过渡动画 */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s ease;
  
  /* 字体 */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', sans-serif;
}

/* ========== 全局样式重置 ========== */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: #2d3748;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* ========== 现代化组件 ========== */

/* 玻璃态卡片 */
.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

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

/* 现代化按钮 */
.btn-modern {
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-gradient-primary {
  background: var(--primary-gradient);
  color: white;
}

.btn-gradient-secondary {
  background: var(--secondary-gradient);
  color: white;
}

.btn-gradient-success {
  background: var(--success-gradient);
  color: white;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* 按钮光效 */
.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

/* ========== 动画效果 ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

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

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

/* 动画类 */
.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ========== 分类导航现代化 ========== */
.category-modern {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0,0,0,0.05);
}

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

.category-image-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition);
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  border-radius: 50%;
}

.category-modern:hover .category-overlay {
  opacity: 1;
}

.category-modern:hover .category-image {
  transform: scale(1.1);
}

/* 如果没有图片，显示默认图标 */
.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  color: white;
  font-size: 2rem;
}

/* ========== 产品卡片现代化 ========== */
.product-card-modern {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  position: relative;
}

.product-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transition: var(--transition);
}

.product-card-modern:hover::before {
  transform: scaleX(1);
}

.product-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.product-card-modern:hover .product-overlay {
  opacity: 1;
}

/* ========== 标题样式 ========== */
.section-title {
  position: relative;
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* ========== 导航增强 ========== */
.navbar-modern {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-soft);
}

.nav-link-modern {
  position: relative;
  color: #2d3748;
  font-weight: 600;
  transition: var(--transition);
}

.nav-link-modern::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--primary-gradient);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link-modern:hover::after,
.nav-link-modern.active::after {
  width: 80%;
}

.nav-link-modern:hover {
  color: #667eea;
}

/* LOGO 样式优化 */
.logo {
  display: inline-block;
  transition: var(--transition);
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  transition: var(--transition);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.logo:hover img {
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

/* 响应式LOGO */
@media (max-width: 768px) {
  .logo img {
    max-height: 45px !important;
    max-width: 200px !important;
  }
}

@media (max-width: 576px) {
  .logo img {
    max-height: 40px !important;
    max-width: 180px !important;
  }
}

/* ========== 表单增强 ========== */
.form-modern .form-control {
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.8);
}

.form-modern .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: white;
}

/* ========== 轮播图增强 ========== */
.swiper-modern {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 12px;
  height: 12px;
  transition: var(--transition);
}

.swiper-pagination-bullet-active {
  background: white;
  transform: scale(1.2);
}

/* ========== 响应式优化 ========== */
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2rem;
  }
  
  .product-card-modern {
    margin-bottom: 1.5rem;
  }
  
  .btn-modern {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 576px) {
  .section-title h2 {
    font-size: 1.75rem;
  }
  
  .section-title {
    margin-bottom: 2rem;
  }
}

/* ========== 加载动画 ========== */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========== 滚动条美化 ========== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-gradient);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #5a67d8;
}

/* ========== 工具类 ========== */
.text-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--primary-gradient);
}

.bg-gradient-secondary {
  background: var(--secondary-gradient);
}

.bg-gradient-success {
  background: var(--success-gradient);
}

.shadow-modern {
  box-shadow: var(--shadow-soft);
}

.shadow-hover {
  transition: var(--transition);
}

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

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

/* ========== 活动咨询专用样式 ========== */
.consultation-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.consultation-card .product-image-wrapper {
  flex-shrink: 0;
}

.consultation-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

.consultation-card .card-content .description {
  flex: 1;
  margin-bottom: 1rem;
}

.consultation-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-gradient);
  color: white;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.consultation-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.consultation-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.consultation-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}

.consultation-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.consultation-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.consultation-badge.primary {
  background: var(--secondary-gradient);
  color: white;
}

.consultation-badge.secondary {
  background: #f3f4f6;
  color: #374151;
}

.consultation-cta {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: var(--shadow-soft);
}

.consultation-cta-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.consultation-cta-text h5 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.consultation-cta-text p {
  margin: 0;
  color: #6b7280;
}

.consultation-cta-buttons {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

/* 活动咨询响应式优化 */
@media (max-width: 768px) {
  .consultation-card .card-content {
    padding: 1.25rem;
  }
  
  .consultation-header {
    gap: 0.75rem;
  }
  
  .consultation-icon {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .consultation-title {
    font-size: 1rem;
  }
  
  .consultation-cta {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .consultation-cta-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .consultation-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .consultation-cta-buttons .btn {
    width: 100%;
  }
}

/* 活动咨询动画延迟 */
.consultation-card:nth-child(1) { animation-delay: 0.1s; }
.consultation-card:nth-child(2) { animation-delay: 0.2s; }
.consultation-card:nth-child(3) { animation-delay: 0.3s; }
.consultation-card:nth-child(4) { animation-delay: 0.4s; }

/* ========== 特效增强 ========== */
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.text-shadow {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.backdrop-blur {
  backdrop-filter: blur(10px);
}

/* ========== 移动端底部导航优化 ========== */
.mobile-footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0,0,0,0.1);
}

.mobile-footer .nav-link {
  transition: var(--transition);
}

.mobile-footer .nav-link:hover {
  color: #667eea !important;
  transform: translateY(-2px);
}