/* 产品展示区域布局 */
.product-display {
  width: var(--view-width);
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
  margin: 40px auto 0;
  align-items: center;
}

/* 左侧图片轮播区域 */
.product-detail {
  flex: 0 0 45%;
  min-width: 300px;
}

/* 主图片容器 */
.main-image-container {
  position: relative;
  height: 360px;
  margin-bottom: 20px;
  border-radius: 4px;
  overflow: hidden;
}

/* 主图片样式 */
#mainImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.5s ease;
}

/* 缩略图容器 */
.thumbnail-container {
  max-width: 60%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

/* 导航按钮 */
.gallery-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.gallery-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

/* 缩略图导航区域 */
.thumbnail-nav {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0;
  flex-grow: 1;
}

/* 缩略图按钮 */
.thumbnail-btn {
  border: 2px solid transparent;
  background: none;
  padding: 3px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.thumbnail-btn.active {
  border-color: var(--first-color);
  background-color: var(--grey-color);
}

.thumbnail-btn img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 2px;
}

/* 右侧文字描述区域 */
.product-description {
  flex: 1;
  min-height: fit-content;
  min-width: 300px;
  max-width: var(--view-width);
  box-sizing: border-box;
}

.product-description h2 {
  display: inline-block;
  font-size: var(--product-title-font-size);
  color: var(--first-color);
}

/* 子标题样式 */
.product-description h3,
.special-properties h3 {
  font-size: var(--product-subtitle-font-size);
  margin: 20px 0 10px;
  color: var(--first-color);
}

/* 段落样式 */
.product-description p,
.special-properties p {
  color: var(--content-font-grey-color);
}

/* 技术规格部分样式 */
.technical-specification {
  width: var(--view-width);
  margin: 15px auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 标题样式 */
.technical-specification h3,
.product-info h3 {
  font-size: var(--product-subtitle-font-size);
  color: var(--first-color);
  margin: 30px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

/* 表格样式 */
.technical-specification table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 表格头部 */
.technical-specification thead {
  background-color: var(--first-color);
  color: white;
}

/* 表格单元格样式 */
.technical-specification th {
  width: 22%;
}

.technical-specification th,
.technical-specification td {
  padding: 12px 15px;
  text-align: left;
  border: 1px solid #ddd;
}

/* 表格行悬停效果 */
.technical-specification tbody tr:hover {
  background-color: #f5f5f5;
}

/* 奇偶行交替颜色 */
.technical-specification tbody tr:nth-child(even) {
  background-color: var(--page-common-bg-color);
}

/* 产品信息部分 */
.product-info {
  margin: 30px 0;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 产品信息段落样式 */
.product-info p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--content-font-grey-color);
}

/* PVA的产品页轮播图 */
.ca-gallery {
  margin-right: 20px;
  flex: 0 0 45%;
  min-width: 300px;
}

/* 主图片容器 */
.ca-image-container {
  position: relative;
  height: auto;
  border-radius: 4px;
  overflow: hidden;
}

/* 主图片样式 */
#ca-mainImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: all 0.5s ease;
}

/* 缩略图容器 */
.ca-thumbnail-container {
  max-width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
}

/* 导航按钮 */
.ca-gallery-btn {
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ca-gallery-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

/* 缩略图导航区域 - 保持横向布局 */
.ca-thumbnail-nav {
  display: flex;
  gap: 5px;
  padding: 10px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--grey-color) transparent;
  white-space: nowrap;
  flex-grow: 1;
}

/* 美化滚动条（Webkit浏览器） */
.ca-thumbnail-nav::-webkit-scrollbar {
  height: 6px;
}

.ca-thumbnail-nav::-webkit-scrollbar-track {
  background: transparent;
}

.ca-thumbnail-nav::-webkit-scrollbar-thumb {
  background-color: var(--grey-color);
  border-radius: 3px;
}

.ca-thumbnail-nav::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}

/* 缩略图按钮 */
.ca-thumbnail-btn {
  border: 2px solid transparent;
  background: none;
  padding: 3px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.ca-thumbnail-btn.active,
.ca-thumbnail-btn.ca-active {
  border-color: var(--first-color);
  background-color: var(--grey-color);
}

.ca-thumbnail-btn img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 2px;
}

/* 轮播图的视频样式 */
.product-video {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 4px;
}
.ca-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
h2,
h3,
th {
  font-weight: bold;
}

.special-table th,
.special-table td {
  text-align: center;
}
.special-table th {
  width: auto;
}
.tab-table th {
  width: 33.33%;
  min-width: 200px;
  text-align: center;
  white-space: nowrap;
  padding: 10px;
}

.tab-table .th-chemical,
.tab-table .th-safety,
.tab-table .th-synthetic {
  width: 33.33%;
  min-width: 200px;
}
.contact-info {
  margin: 20px;
  display: flex;
  justify-content: space-between;
}
.faq-section h5 {
  font-size: var(--product-subtitle-font-size);
  margin: 20px 0;
}
/* 响应式布局调整 */
@media (max-width: 789px) {
  /* 产品展示区域调整 */
  .product-display {
    min-width: auto;
    margin: 20px auto;
    gap: 20px;
  }

  .product-detail {
    flex: 0 0 100%;
    width: 100%;
  }

  .main-image-container {
    height: auto;
    max-height: 300px;
  }

  .thumbnail-container {
    max-width: 100%;
  }

  /* 右侧文字描述区域调整 */
  .product-description {
    flex: 0 0 100%;
    min-height: auto;
    padding: 15px 10px;
  }

  .product-description h2 {
    font-size: var(--product-title-font-size);
    padding-bottom: 15px;
  }

  .product-description h3 {
    font-size: var(--product-subtitle-font-size);
  }

  /* 技术规格部分调整 */
  .technical-specification {
    width: auto;
    margin: 10px 0;
    padding: 15px;
    overflow-x: hidden;
  }

  .technical-specification th,
  .technical-specification td {
    padding: 8px 10px;
  }

  /* PVA产品页轮播图调整 */
  .ca-gallery {
    margin-right: 0;
    flex: 0 0 100%;
  }

  .ca-thumbnail-container {
    max-width: 100%;
  }

  /* 按钮尺寸调整 */
  .gallery-btn,
  .ca-gallery-btn {
    width: 32px;
    height: 32px;
  }

  /* 产品信息部分调整 */
  .product-info {
    margin: 20px 0;
    padding: 15px;
  }

  /* 视频样式调整 */
  .product-video {
    max-width: 100%;
  }
  .special-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
  }
  .special-table::-webkit-scrollbar {
    height: 4px;
  }
  .special-table::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 2px;
  }
  .special-table::-webkit-scrollbar-track {
    background-color: #f1f1f1;
  }
  .special-table table {
    width: 100%;
    min-width: 600px;
  }
  .contact-info {
    flex-direction: column;
  }
}
