/* 全局样式 */
:root {
  --primary-color: #0056b3;
  --secondary-color: #6c757d;
  --accent-color: #ffc107;
  --text-color: #333;
  --light-bg: #f8f9fa;
}

/* 字体 */
body {
  font-family: 'Inter', 'Roboto', "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px; 
  color: var(--text-color);
  line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: bold;
}

/* 轮播图样式 */
.carousel-item {
  height: 500px;
}

.carousel-item img {
  object-fit: cover;
  height: 100%;
}

.carousel-caption {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 5px;
}

/* 标题样式 */
.section-title {
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.text-center .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* 卡片样式 */
.card {
  transition: transform 0.3s, box-shadow 0.3s;
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10), 0 1.5px 4px rgba(0,0,0,0.08);
  border: 1px solid #e0e0e0;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.16), 0 3px 8px rgba(0,0,0,0.12);
  border-color: #bdbdbd;
}

/* 按钮样式 */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #004494;
  border-color: #004494;
}

/* 页脚样式 */
footer {
  background-color: #343a40;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .carousel-item {
    height: 300px;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
}

.product-image-gallery .main-image img {
  border: 1px solid #eee;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.product-image-gallery .thumb-images img {
  border: 2px solid #eee;
  transition: border-color 0.2s;
}
.product-image-gallery .thumb-images img.active,
.product-image-gallery .thumb-images img:hover {
  border-color: #0d6efd;
} 

.product-gallery {
  height: 320px;         /* 固定高度 */
  /* 或者 min-height: 350px; 让内容多时可增高 */
}


