.home-poster-img {
  max-height: 380px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .home-poster-img {
    max-height: 200px;
  }
}

.product-card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.product-thumb {
  object-fit: cover;
  height: 140px;
  width: 100%;
}

@media (min-width: 576px) {
  .product-thumb {
    height: 160px;
  }
}

@media (min-width: 768px) {
  .product-thumb {
    height: 190px;
  }
}

@media (min-width: 992px) {
  .product-thumb {
    height: 220px;
  }
}

.product-thumb-small {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.product-thumb-small:hover {
  border-color: #007bff;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

/* 通用样式 */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
}

/* 按钮样式 */
.btn {
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 卡片样式 */
.card {
  border-radius: 12px;
  overflow: hidden;
}

/* 响应式调整 */
@media (max-width: 576px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
  }
  
  .h1 { font-size: 1.8rem; }
  .h2 { font-size: 1.5rem; }
  .h3 { font-size: 1.25rem; }
  .h4 { font-size: 1.1rem; }
  .h5 { font-size: 1rem; }
  .h6 { font-size: 0.9rem; }
}

/* 加载动画 */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-radius: 50%;
  border-top-color: #007bff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 图片放大效果 */
.img-zoom {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.img-zoom:hover {
  transform: scale(1.02);
}

/* 分类导航样式 */
.category-nav {
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 0;
  margin-bottom: 24px;
  scrollbar-width: thin;
}

.category-nav::-webkit-scrollbar {
  height: 4px;
}

.category-nav::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.category-nav::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.category-nav::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

.category-nav-item {
  display: inline-block;
  padding: 6px 16px;
  margin-right: 8px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e9ecef;
  color: #495057;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.category-nav-item:hover {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.category-nav-item.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}
