body {
  background-color: #f5f5f5;
}

/* ✅ 通用版心容器 */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}



/* 产品内容 */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;
}
@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

.product-image {
  flex: 1 1 50%;
  min-width: 300px;
  max-width: 600px;
}

.product-image img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-info {
  flex: 1 1 45%;
  min-width: 280px;
  color: #333;
}

.product-name {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #222;
}

.product-specs {
  list-style: none;
  padding-left: 0;
  margin-bottom: 24px;
}

.product-specs li {
  margin-bottom: 10px;
  font-size: 15px;
}

.download-button {
  display: inline-block;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  transition: background 0.3s;
}

.download-button:hover {
  background-color: #555;
}

/* 产品表格 */
.product-specs-table {
  margin-top: 20px;
  overflow-x: auto;
}

.product-specs-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-size: 11px;
  table-layout: fixed;
}

.product-specs-table th,
.product-specs-table td {
  padding: 12px 8px;
  border-bottom: 2px solid black; /* 仅水平边框 */
  /* background-color: #ffffff; */
}

.product-specs-table thead tr:first-child th {
  border-top: none; /* 第一行上边框去除 */
  font-weight: bold;
}

.product-specs-table .table-img {
  width: 200px;
  height: auto;
  object-fit: cover;
}

/* 产品图片弹出 */
.image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;

  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.image-popup-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  border-radius: 6px;
  cursor: zoom-out;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.image-popup-overlay.active img {
  transform: scale(1);
}



/* 产品推荐 */
.similar-products {
  margin-top: 60px;
}

.section-subtitle {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 16px;
  color: #333;
}

/* 滚动容器 */
.product-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-behavior: smooth;
  padding-bottom: 10px;
  cursor: grab;
}

.product-scroll::-webkit-scrollbar {
  height: 8px;
}

.product-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

/* 产品卡片样式 */
/* 主区域滚动样式 */
.product-scroll {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 16px;
  user-select: none;
  -webkit-user-drag: none;
  padding: 10px 0;
  cursor: grab;
}

.product-scroll.dragging {
  cursor: grabbing;
}

/* 产品卡片样式 */
.product-card {
  flex: 0 0 auto;
  width: 230px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s;
  margin-top: 10px;
  user-select: none;
}

.product-card:hover {
  transform: translateY(-4px);
  
}

.product-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  pointer-events: none;
}

.product-card p {
  padding: 10px;
  font-size: 14px;
  color: #555;
}


.product-scroll::-webkit-scrollbar {
  display: none;
}

/* 滚动按钮样式 */
.scroll-buttons {
  position: relative;
  height: 0;
}

.scroll-btn {
  position: absolute;
  top: 80px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.scroll-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  
}

.scroll-btn.left {
  left: -35px;
}

.scroll-btn.right {
  right: -35px;
}
