* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f5f5;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
}

/* Product Display Section */
.product-display {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 40px;
  position: relative;
}

.product-image-section {
  flex: 0 0 400px;
}

.main-image {
  width: 400px;
  height: 400px;
  max-height: 450px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

.main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* 放大镜样式 */
.magnifier {
  position: absolute;
  width: 100px;
  height: 100px;
  border: 2px solid #ff9900;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: none;
  display: none;
  pointer-events: none;
}

.zoomed-image {
  position: absolute;
  top: 0;
  left: 420px;
  /* 主图右侧 */
  width: 400px;
  height: 400px;
  background-repeat: no-repeat;
  background-size: 200%;
  /* 放大2倍 */
  border: 1px solid #ddd;
  display: none;
  z-index: 10;
}

/* 新增：放大时为产品信息部分添加左边距 */
.product-display.zooming .product-info-section {
  margin-left: 400px;
}

.thumbnail-gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  max-width: 400px;
}

.thumbnail-nav {
  width: 30px;
  height: 100px;
  background-color: #ddd;
  border: 1px solid #ccc;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.thumbnail {
  width: 80px;
  height: 100px;
  background-color: #f9f9f9;
  border: 2px solid #ddd;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
  border-color: #ff9900;
}

.thumbnail img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Product Info Section */
.product-info-section {
  flex: 1;
}

.product-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.4;
}

.product-specs {
  list-style: none;
  margin-bottom: 25px;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.product-specs li {
  margin-bottom: 5px;
}

.product-specs li strong {
  color: #333;
}

.quantity-section {
  margin-bottom: 25px;
}

.quantity-label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid #ddd;
  background-color: white;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.qty-btn:hover {
  background-color: #f5f5f5;
}

.qty-input {
  width: 50px;
  height: 30px;
  text-align: center;
  border: 1px solid #ddd;
  font-size: 14px;
}

.quote-btn {
  display: inline-block;
  padding: 10px 30px;
  border: 2px solid #ff9900;
  background-color: white;
  color: #ff9900;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.quote-btn:hover {
  background-color: #ff9900;
  color: white;
}

/* Social Share Section */
.social-share {
  display: flex;
  gap: 10px;
  align-items: center;
}

.social-icons {
  display: flex;
  gap: 8px;
}

.social-icon {
  width: 24px;
  height: 24px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 12px;
  color: #666;
}

.social-icon:hover {
  border-color: #ff9900;
  background-color: #ff9900;
  color: white;
}


.description-title {
  font-size: 16px;
  font-weight: 600;
  color: #ff9900;
  margin-bottom: 20px;
  border-bottom: 2px solid #ff9900;
  padding-bottom: 10px;
}

.description-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.description-table tr {
  border-bottom: 1px solid #e5e5e5;
}

.description-table td {
  padding: 12px;
  vertical-align: top;
}

.description-table td:first-child {
  width: 150px;
  font-weight: 600;
  background-color: #fafafa;
  color: #333;
}

.description-table td:last-child {
  color: #666;
  line-height: 1.6;
}

.description-table tr:hover {
  background-color: #f9f9f9;
}

/* Responsive */
@media (max-width: 768px) {
  .product-display {
    flex-direction: column;
  }

  .product-image-section {
    flex: 1;
  }

  .container {
    padding: 20px;
  }
}


.quote-button {
  justify-content: center;
  margin-top: 40px;
}

.quote-button button {
  padding: 10px 40px;
  border: 2px solid #ff9900;
  background: #fff;
  color: #ff9900;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 20px;
  width: 150px;
}