/* 基础样式 */
.product-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 1px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.product-top {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

/* 轮播图样式 */
.product-gallery {
  flex: 0 0 400px;
}

.slider {
  position: relative;
  height: 400px;
  margin-bottom: 15px;
}

.slides {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 8px;
}

/* 缩略图样式 */
.thumbnails {
  display: flex;
  gap: 5px;
}

.thumbnail {
  width: 80px;
  height: 60px;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.thumbnail.active,
.thumbnail:hover {
  border-color: #0073aa;
}

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

/* 商品信息样式 */
.product-info {
  flex: 1;
}

.product-title {
  font-size: 28px;
  margin: 0 0 20px;
  color: #333;
}

.meta-item {
  margin: 12px 0;
  font-size: 16px;
}

.meta-item span {
  color: #666;
  min-width: 80px;
  display: inline-block;
}

.contact-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.btn-group {
  display: flex;
  gap: 30px;
  margin-top: 15px;
  
}

.btn {
  padding: 12px 68px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-primary {
  background: #3c98a1;
  color: white;
  color: #000 !important;
}

.btn-secondary {
  background: #ff5a19;
  color: white;
  color: #000 !important;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 商品详情 */
.product-detail {
  border-top: 1px solid #eee;
  padding-top: 20px;
  line-height: 1.7;
}

/* 响应式 */
@media (max-width: 900px) {
  .product-container {
    padding: 15px;
  }
  
  .product-top {
    flex-direction: column;
  }
  
  .product-gallery {
    flex: none;
    width: 100%;
  }
  
  .slider {
    height: 300px;
  }
  
  .thumbnail {
    width: 60px;
    height: 45px;
  }
}

/* 基础按钮样式 */
.btn-group {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn {
  flex-grow: 1; /* 自动平分剩余空间 */
  padding: 12px 0;
  text-align: center;
  border-radius: 4px;
  font-size: 16px;
  min-width: 0; /* 防止文本溢出 */
}

.entry-content table td{
    padding: 12px 10px;
    
}    

/* 移动端适配 */
@media screen and (max-width: 768px) {
  .btn-group {
    flex-wrap: wrap; /* 确保不换行 */
  }
  
  .product-info table {
     display:table;
  }
}