.product-display {
  margin-top: 50px;
  margin-bottom: 50px;
}

.product-display .product-detail {
  display: flex;
  flex-wrap: wrap;
  background: white;

  overflow: hidden;
  margin-bottom: 30px;
}

/* 左侧图片区域 */
.product-display .product-images {
  flex: 1;
  width: 600px;
  /* padding: 25px; */
  background: #ffffff;
}

.product-display .main-image {
  width: 600px;
  height: 600px;
  overflow: hidden;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eaeaea;
}

.product-display .main-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-display .thumbnail-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-display .thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-display .thumbnail.active {
  border-color: #2c5c2c;
}

.product-display .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

/* 右侧产品信息 */
.product-display .product-info {
  flex: 1;
  min-width: 300px;
  padding: 25px;
}

.product-display .product-info .product-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10px;

}





.product-display .product-description {
  margin-bottom: 25px;
  color: #555;
  line-height: 1.7;
  font-size: 18px;
  font-weight: 400;





}

/* 联系链接样式 */
.product-display .product-contact-link {
  padding: 15px 0;
  border-top: 1px solid #e9ecef;

}

.product-display .contact-link {
  justify-content: center;
  height: 50px;
  width: 200px;
  color: #ffffff;
  text-decoration: none;

  font-size: 22px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  background-color: #ffa800;
  border-radius: 10px;
}


.product-display .contact-link:hover {
  color: #ffffff;

}

.product-display .contact-link span {
  font-size: 24px;
  margin-right: 5px;
}




.product-display .features {
  margin-bottom: 25px;
}

.product-display .features ul {
  list-style: none;
  padding-left: 0;
}

.product-display .features li {
  padding: 10px 0;
  padding-left: 35px;
  position: relative;
  border-bottom: 1px dashed #eee;
}








/* 产品参数区域 */
.product-display .specs-table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  word-wrap: break-word;
  overflow: hidden;
}

.product-display .specs-table th {
  background-color: #001e42;
  color: white;
  font-weight: 600;
  padding: 15px;
  text-align: center;
  font-size: 16px;
  border: 1px solid #001e42;
  vertical-align: middle;
}

.product-display .specs-table td {
  padding: 20px;
  border: 1px solid #e0e0e0;
  vertical-align: middle;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 0;
  overflow: hidden;
}

.product-display .specs-table tr:nth-child(even) {
  background-color: #ffffff;
}

.product-display .picture-cell {
  width: 40%; /* 从 30% 增加到 40%，让 Picture 列更宽 */
  max-width: 500px; /* 从 400px 增加到 500px */
  text-align: center;
  background: #fcfcfc;
  vertical-align: top;
}

.product-display .product-image {
  margin: 5px auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid #ddd;
  background: #fff;
}

.product-display .product-image img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 纯文字内容样式 */
/* 使用更具体的选择器，确保优先级最高 */
.product-display .description-cell .text-content,
.product-display .specs-table .description-cell .text-content,
.product-display .text-content {
  padding: 0 !important; /* 移除所有 padding，包括上下的 15px */
  padding-left: 0 !important; /* 确保没有左缩进 */
  margin: 0 !important; /* 确保没有外边距 */
  margin-left: 0 !important; /* 确保没有左外边距 */
  margin-top: 0 !important; /* 确保没有上边距 */
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.8;
  display: block;
  text-indent: 0 !important; /* 确保没有首行缩进 */
  /* 保留换行，但不保留开头的空白 */
  white-space: pre-wrap;
  /* 强制所有内容从左边开始 */
  text-align: left !important;
  
  /* 移除第一个文本节点开头的空白 */
  text-indent: 0 !important;
}

/* 确保文本内容中的所有元素都没有缩进 - 使用更具体的选择器 */
.product-display .description-cell .text-content *,
.product-display .specs-table .description-cell .text-content *,
.product-display .text-content * {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

/* 特别针对段落，保留上下间距，但移除左缩进 */
.product-display .description-cell .text-content p,
.product-display .specs-table .description-cell .text-content p,
.product-display .text-content p {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

/* 针对 div、span 等内联元素 */
.product-display .text-content div,
.product-display .text-content span {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

/* 针对列表 */
.product-display .text-content ul,
.product-display .text-content ol {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

.product-display .text-content li {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

/* 特别处理第一行文本 */
.product-display .text-content::first-line {
  text-indent: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* 确保文本内容中的段落正确显示，段落之间有间距，没有缩进 - 使用更具体的选择器 */
.product-display .description-cell .text-content p,
.product-display .specs-table .description-cell .text-content p,
.product-display .text-content p {
  margin-bottom: 12px;
  margin-top: 0 !important; /* 确保第一个段落没有上边距 */
  margin-left: 0 !important;
  padding-left: 0 !important;
  padding-top: 0 !important; /* 确保没有上内边距 */
  text-indent: 0 !important;
  line-height: 1.8;
  display: block;
}

/* 特别处理第一个段落，确保没有上边距和缩进 */
.product-display .description-cell .text-content p:first-child,
.product-display .specs-table .description-cell .text-content p:first-child,
.product-display .text-content p:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

/* 强制第一个段落的第一行没有缩进 */
.product-display .description-cell .text-content p:first-child::first-line,
.product-display .specs-table .description-cell .text-content p:first-child::first-line,
.product-display .text-content p:first-child::first-line {
  text-indent: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* 移除 text-content 开头的空白文本节点和换行符造成的空白 */
.product-display .description-cell .text-content,
.product-display .specs-table .description-cell .text-content,
.product-display .text-content {
  /* 移除开头的空白字符 */
  text-indent: 0 !important;
}

/* 处理第一个子元素（可能是文本节点或元素）前的空白 */
.product-display .description-cell .text-content > *:first-child,
.product-display .specs-table .description-cell .text-content > *:first-child,
.product-display .text-content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
  /* 移除第一个元素开头的空白 */
  text-indent: 0 !important;
}

/* 确保列表没有缩进 - 使用更具体的选择器 */
.product-display .description-cell .text-content ul,
.product-display .description-cell .text-content ol,
.product-display .specs-table .description-cell .text-content ul,
.product-display .specs-table .description-cell .text-content ol,
.product-display .text-content ul,
.product-display .text-content ol {
  margin-left: 0 !important;
  padding-left: 0 !important;
  list-style-position: outside;
}

.product-display .description-cell .text-content li,
.product-display .specs-table .description-cell .text-content li,
.product-display .text-content li {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
  list-style: none;
}

/* 确保 div 和其他块级元素没有缩进 - 使用更具体的选择器 */
.product-display .description-cell .text-content div,
.product-display .specs-table .description-cell .text-content div,
.product-display .text-content div {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

/* 确保第一个段落或第一个元素没有额外缩进 - 使用更具体的选择器 */
.product-display .description-cell .text-content > *:first-child,
.product-display .specs-table .description-cell .text-content > *:first-child,
.product-display .text-content > *:first-child {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

/* 确保换行标签正确显示 */
.product-display .text-content br {
  display: block;
  line-height: 1.8;
  content: "";
}

/* 如果内容没有 HTML 标签，使用 pre-wrap 保留换行 */
.product-display .text-content:not(:has(p)):not(:has(br)) {
  white-space: pre-wrap;
}

.product-display .parameter-label {
  font-size: 16px;
  font-weight: 600;

  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-display .description-cell {
  padding: 20px;
  padding-left: 20px !important; /* 保持单元格的 padding，但确保内容不额外缩进 */
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
  overflow: hidden;
}

/* 确保 description-cell 内的所有内容从左边开始，没有额外缩进 */
.product-display .description-cell > * {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

/* 强制覆盖所有可能的内联样式（包括 KindEditor 生成的） */
.product-display .description-cell [style*="text-indent"],
.product-display .description-cell [style*="margin-left"],
.product-display .description-cell [style*="padding-left"],
.product-display .text-content [style*="text-indent"],
.product-display .text-content [style*="margin-left"],
.product-display .text-content [style*="padding-left"],
.product-display .description-cell .text-content [style*="text-indent"],
.product-display .description-cell .text-content [style*="margin-left"],
.product-display .description-cell .text-content [style*="padding-left"] {
  text-indent: 0 !important;
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* 针对表格单元格内的第一个元素（可能是导致第一行缩进的原因） */
.product-display .description-cell > *:first-child {
  margin-left: 0 !important;
  margin-top: 0 !important; /* 确保第一个元素没有上边距 */
  padding-left: 0 !important;
  padding-top: 0 !important; /* 确保第一个元素没有上内边距 */
  text-indent: 0 !important;
}

/* 针对 text-content 内的第一个元素 */
.product-display .description-cell .text-content > *:first-child,
.product-display .specs-table .description-cell .text-content > *:first-child,
.product-display .text-content > *:first-child {
  margin-left: 0 !important;
  margin-top: 0 !important; /* 确保第一个元素没有上边距 */
  padding-left: 0 !important;
  padding-top: 0 !important; /* 确保第一个元素没有上内边距 */
  text-indent: 0 !important;
}

.product-display .description-cell .product-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: break-word;
}



.product-display .features {
  margin-top: 10px;
  color: #3a3a3a;
  padding-left: 0;
  text-align: left;
}

.product-display .description-cell .feature-item {
  margin-bottom: 8px;
  padding-left: 0;
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
  line-height: 1.6;
  text-align: left;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .product-display .product-detail {
    flex-direction: column;
  }
  
  .product-display .product-images {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  
  .product-display .product-info {
    width: 100%;
    border-left: none;
    border-top: 1px solid #eee;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .product-display .product-info .product-title {
    text-align: center;
  }
  
  .product-display .product-info .product-description {
    text-align: center;
    max-width: 600px;
  }
  
  .product-display .product-contact-link {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .product-display .main-image {
    width: 100%;
    height: 400px;
  }
  
  .product-display .product-images {
    width: 100%;
    padding: 15px;
  }
  
  .product-display .product-info .product-title {
    font-size: 32px;
  }
  
  .product-display .product-info {
    padding: 20px 15px;
  }
  
  .product-display .thumbnail-container {
    gap: 8px;
  }
  
  .product-display .thumbnail {
    width: 60px;
    height: 60px;
  }
  
  .product-display .specs-table {
    font-size: 14px;
  }
  
  .product-display .specs-table th,
  .product-display .specs-table td {
    padding: 10px;
  }
  
  .product-display .picture-cell {
    width: 200px;
  }
}

@media (max-width: 576px) {
  .product-display {
    margin-top: 20px;
  }
  .product-display .main-image {
    height: 300px;
  }
  
  .product-display .product-info .product-title {
    font-size: 24px;
  }

  .product-display .product-info .product-description {
    margin-bottom: 0 !important;
    font-size: 16px;
  }
  
  .product-display .thumbnail {
    width: 50px;
    height: 50px;
  }
  
  .product-display .specs-table {
    font-size: 12px;
    margin-top: -30px !important;
  }
  
  .product-display .specs-table th,
  .product-display .specs-table td {
    padding: 8px;
  }
  
  .product-display .picture-cell {
    width: 150px;
    margin-top: 0;
  }
  
  .product-display .product-contact-link{
    margin-top: 0 !important;
  }
  .product-display  .contact-link {
    width: 100%;
    

 
  }
}

/* ==================== RFQ 表单样式 ==================== */
.product-rfq-section {
  margin-top: 30px;
}

.rfq-toggle-btn {
  width: 100%;
  padding: 12px 24px;
  font-size: 20px;
  font-weight: 600;
  background-color: #ffa800;
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rfq-email-icon {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1); /* 将图标变为白色 */
  display: inline-block;
  vertical-align: middle;
  align-self: center;
  padding-bottom: 1px;
}

.rfq-toggle-btn:hover {
  background-color: #e69900;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.rfq-form-container {
  margin-top: 20px;
  padding: 25px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rfq-form-container h4 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #333;
  font-size: 20px;
  font-weight: 600;
}

.rfq-subtitle {
  color: #666;
  margin-bottom: 20px;
  font-size: 14px;
}

.rfq-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rfq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.rfq-form-group {
  display: flex;
  flex-direction: column;
}

.rfq-form-group label {
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.rfq-form-group label.required::after {
  content: " *";
  color: #dc3545;
}

.rfq-form-group input,
.rfq-form-group textarea {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.rfq-form-group input:focus,
.rfq-form-group textarea:focus {
  outline: none;
  border-color: #ffa800;
  box-shadow: 0 0 0 3px rgba(255, 168, 0, 0.1);
}

.rfq-form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.rfq-form-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.rfq-form-actions .btn {
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.rfq-form-actions .btn-primary {
  background-color: #ffa800;
  color: #fff;
}

.rfq-form-actions .btn-primary:hover {
  background-color: #e69900;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.rfq-form-actions .btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.rfq-form-actions .btn-secondary:hover {
  background-color: #5a6268;
}

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .rfq-toggle-btn {
    width: auto;
    min-width: 300px;
    max-width: 60%;
    padding: 10px 16px;
    font-size: 16px;
    

  }
  
  .rfq-form-row {
    grid-template-columns: 1fr;
  }

  .rfq-email-icon {
    padding-bottom: 1px;
  }
  
  .rfq-form-actions {
    flex-direction: column;
  }
  
  .rfq-form-actions .btn {
    width: 100%;
  }
  
  .rfq-form-container {
    padding: 20px 15px;
  }
  
}

