/* 产品表格样式 */
.product-data-list-box {
  max-width: var(--view-width);
  margin: 0 auto;
}
.top-content h1 {
  font-size: var(--product-h1-font-size);
  font-weight: bold;
  color: #2d3436;
  text-align: center;
  padding-bottom: 10px;
  letter-spacing: 1px;
}
.long-text-td {
  white-space: inherit;
  display: block;
  width: 200px;
}
.d-block{
  display: block!important;
}
.product-grid table {
  width: 100%!important;
  border-collapse: collapse;
  margin: 30px auto;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  animation: tableFadeIn 0.8s ease-in-out;
}
.top-content h3{
  margin: 10px 0;
}
.product-grid.inline-table {
  display: inline-table;
}
.product-grid {
  overflow-x: auto;
  max-width: var(--view-width);
  margin: 0 auto;
}
@keyframes tableFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-content {
  max-width: var(--view-width);
  margin: 0 auto 30px;
  box-sizing: border-box;
  padding: 25px;
  border-radius: 8px;
  line-height: 1.6;
  overflow: hidden;
}

/* 轮播图容器样式 */
.carousel-box {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  max-width: 500px;
  min-width: 300px;
  width: 45%;
}
.product-catalog{
    padding-top: 50px;
}
/* 右侧内容样式 */
.right-content {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* 清除浮动 */
.top-content::after {
  content: "";
  display: table;
  clear: both;
}

/* 轮播图主容器 */
.main-image-container {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

.main-image-container img,
.main-image-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 缩略图容器 */
.thumbnail-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gallery-btn {
  background: #f1f5f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-btn:hover {
  background: #e2e8f0;
}

.thumbnail-nav {
  flex: 1;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
}

.thumbnail-btn {
  border: 2px solid transparent;
  border-radius: 4px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 80px;
  height: 60px;
  overflow: hidden;
}

.thumbnail-btn.active {
  border-color: var(--first-color);
}

.thumbnail-btn img,
.thumbnail-btn video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .product-detail {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .right-content {
    overflow: visible;
  }

  .main-image-container {
    height: 250px;
  }

  .thumbnail-btn {
    width: 60px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .main-image-container {
    height: 200px;
  }

  .thumbnail-btn {
    width: 50px;
    height: 37px;
  }
}

.top-content h2 {
  color: var(--first-color);
  font-size: var(--product-h2-font-size);
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e0e0;
}
.top-content h2:not(:first-child) {
  margin-top: 30px;
}

.top-content p {
  color: #333;
  font-size: var(--main-font-size);
  margin: 0;
}

/* 对角线表头样式 */
.diagonal-header {
  position: relative;
  height: 80px;
  vertical-align: middle;
}

.diagonal-header .header-content {
  position: relative;
  height: 100%;
  width: 100%;
}

.diagonal-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top right,
    transparent calc(50% - 1px),
    #ccc calc(50% - 1px),
    #ccc calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.diagonal-header .top-text {
  position: absolute;
  top: 28px;
  right: 5px;
}

.diagonal-header .bottom-text {
  position: absolute;
  bottom: 13px;
  left: 2px;
}

.product-grid th,
.product-grid td {
  padding: 15px 20px;
  text-align: left;
  border: 1px solid #e0e0e0;
  transition: all 0.3s ease;
  line-height: 1.8;
}

.product-grid th {
  background-color: #f1f5f9;
  font-weight: 700;
  color: #2d3436;
  position: relative;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-grid th:hover {
  background-color: #f1f3f5;
}

.product-grid tr {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.product-grid tr:not(:first-child):hover {
  background-color: #f8f9fa;
}

.product-grid tbody tr:hover {
  background-color: #f9f9f9;
}

.product-grid a {
  color: var(--first-color);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.product-grid a:hover {
  color: var(--second-color);
  text-decoration: underline;
}

/* 对角线表头样式 */
.diagonal-header {
  position: relative;
  height: 80px;
  vertical-align: middle;
}

/* 清除浮动 */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .product-grid {
    font-size: 14px;
  }

  .product-grid th,
  .product-grid td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    display: block;
    overflow-x: auto;
  }
}
