/* 面包屑导航 */
.breadcrumbs {
  padding: 10px 0;
  background: #f5f5f5;
  font-size: 14px;
  color: #666;
}
.breadcrumbs a:hover {
  color: #e64a19;
}

.product-detail-container {
  width: 1370px;
  margin: 0 auto;
}

.product-detail-card {
  max-width: 1370px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.product-detail-disclaimer {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.product-detail-disclaimer p {
  margin-top: 10px;
}

/* --- 头部 --- */
.product-detail-header {
  margin-bottom: 20px;
  border-bottom: 1px solid #FFACB3;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-detail-header-content {
  display: flex;
  align-items: center;
}

.product-detail-title {
  font-size: 24px;
  color: #333;
  font-weight: bold;
  margin: 0 20px 0 0;
}

.product-detail-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0;
  flex-grow: 1; /* 占据中间空间 */
  display: flex;
  align-items: center;
}

.product-detail-source {
  color: #848691;
  font-size: 14px;
  margin-left: 5px;
}

.product-detail-actions-top button {
  padding: 2px 14px;
  cursor: pointer;
  font-size: 14px;
  margin-left: 10px;
}

.product-detail-analysis-btn {
  background: linear-gradient(90deg, #1296DB 0%, #00BBC2 100%);
  color: #fff;
  border-radius: 8px;
}

.product-detail-price-btn {
  background-color: #fff;
  border-radius: 8px;
  color: #6579EF;
  border: 1px solid #6579EF;
}

/* --- 主要内容 --- */
.product-detail-main-content {
  display: flex;
  gap: 30px;
  margin-bottom: 30px;
}

/* 图片画廊 */
.product-detail-image-gallery {
  width: 40%;
  max-width: 400px;
}

.product-detail-main-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 保持正方形 */
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.product-detail-main-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.product-detail-play-icon {
  font-size: 50px;
  color: #fff;
}

.product-detail-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 5px; /* 防止滚动条遮挡 */
  white-space: nowrap;
}

.product-detail-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 1px solid #DEDEDE;
  cursor: pointer;
}

.product-detail-thumb-active {
  border: 1px solid #FF6600;
}

.product-detail-thumb-nav {
  display: none; /* 在宽屏上隐藏导航按钮，可以通过JS控制显示 */
}

/* 规格信息 */
.product-detail-spec-info {
  flex-grow: 1;
  margin-top: 10px;
}

.product-detail-spec-list {
  display: flex;
  gap: 15px 20px;
  margin-bottom: 30px;
  flex-direction: column;
}

.product-detail-spec-item {
  display: flex;
  font-size: 14px;
}

.product-detail-spec-label {
  color: #848691;
  font-size: 14px;
  width: 80px;
  flex-shrink: 0;
}

.product-detail-spec-value {
  color: #000311;
  font-size: 14px;
  font-weight: 500;
}

.product-detail-min-order {
  color: #ff5722; /* 橙色突出显示起订量 */
}

/* 操作按钮栏 */
.product-detail-action-bar {
  display: flex;
  gap: 10px;
}

.product-detail-action-bar button {
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  height: 44px;
  display: flex;
  align-items: center;
  transition: background-color 0.2s, border-color 0.2s;
}

.product-detail-icon {
  margin-right: 5px;
  font-style: normal;
}

.product-detail-primary-btn {
  background-color: #407081;
  color: #fff;
}

.product-detail-warning-btn {
  background-color: #E68310;
  color: #fff;
}

.product-detail-favorite-btn {
  background-color: #fff;
  color: #333333;
  border: 1px solid #D7D7D7;
}

.product-detail-share-btn {
  background-color: #fff;
  color: #333333;
  border: 1px solid #D7D7D7;
}

/* --- 标签页导航 --- */
.product-detail-tabs-nav {
  display: flex;
  border-bottom: 2px solid #eee;
  margin-bottom: 20px;
}

.product-detail-tab-item {
  padding: 10px 20px;
  text-decoration: none;
  color: #666;
  font-size: 16px;
  margin-right: 20px;
  position: relative;
  transition: color 0.2s;
}

.product-detail-tab-item:hover {
  color: #333;
}

.product-detail-tab-active {
  color: #007bff;
  font-weight: bold;
}

.product-detail-tab-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #007bff;
}

/* --- 标签页内容 - 参数表格 --- */
.product-detail-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.product-detail-specs-table tr:last-child {
  border-bottom: none;
}

.product-detail-specs-table td {
  padding: 19px 15px;
}

.product-detail-label {
  width: 10%;
  color: #848691;
  font-weight: normal;
  text-align: left;
}

.product-detail-value {
  width: 18%;
  color: #000311;
  font-weight: 500;
}

.product-detail-richtext {
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.product-detail-richtext ul,
.product-detail-richtext ol {
  padding-left: 40px;
}

.product-detail-richtext ul {
  list-style: disc;
}

.product-detail-richtext ol {
  list-style: decimal;
}

.product-detail-richtext li {
  display: list-item;
}

.product-detail-richtext img {
  max-width: 100%;
  height: auto;
}

/* 容器设置为相对定位 */
.popover-wrapper {
  position: relative;
  display: inline-block;
}

/* 气泡框基础样式 */
.contact-popover {
  display: none; /* 默认隐藏 */
  position: absolute;
  top: calc(100% + 12px); /* 在按钮下方 12px 处 */
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: #fff;
  border: 1px solid #e4e7ed;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 100;
  padding: 15px;
}

/* 向上小箭头 */
.popover-arrow {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #e4e7ed;
  border-top: 1px solid #e4e7ed;
}

/* 内部条目样式 */
.popover-item {
  margin-bottom: 10px;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.popover-label { color: #666; width: 80px; }
.popover-value { color: #333; font-weight: bold; flex: 1; }
button.popover-copy-btn {
  padding: 2px 8px;
  font-size: 12px;
  color: #FF6600;
  height: 24px;
  border: 1px solid #FF6600;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 5px;
}

.copy-toast {
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  z-index: 10000;
  display: none;
}

.highlight-fade {
  transition: background-color 0.5s;
  background-color: #e6f7f3 !important;
}

/* 规格书列表容器 */
.specs-file-list {
  background: #fdfdfd;
}

.spec-file-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  transition: all 0.3s;
}

.spec-file-item:hover {
  border-color: #FF6600;
  box-shadow: 0 2px 8px rgba(0, 179, 134, 0.1);
}

.file-icon img {
  width: 40px;
  height: 40px;
  margin-right: 15px;
}

.file-info {
  flex: 1;
}

.file-name {
  display: block;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
}

.file-size {
  font-size: 12px;
  color: #999;
}

.file-ops {
  display: flex;
  gap: 10px;
}

.file-btn {
  padding: 6px 16px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.view-btn {
  color: #FF6600;
  border: 1px solid #FF6600;
}

.view-btn:hover {
  background: #FF6600;
  color: #fff !important;
}

.download-btn {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

.download-btn:hover {
  background: #eee;
}

.no-data-placeholder {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #000;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .product-detail-main-content {
    flex-direction: column;
  }
  .product-detail-image-gallery {
    width: 100%;
    max-width: none;
  }
  .product-detail-spec-list {
    grid-template-columns: 1fr;
  }
  .product-detail-action-bar {
    flex-wrap: wrap;
  }
  .product-detail-specs-table .product-detail-label,
  .product-detail-specs-table .product-detail-value {
    width: auto;
  }
  .product-detail-specs-table {
    display: block;
  }
  .product-detail-specs-table tr {
    display: flex;
    flex-wrap: wrap;
  }
  .product-detail-specs-table td {
    flex-basis: 50%; /* 在小屏上每行显示两列 */
    box-sizing: border-box;
  }
  .product-detail-specs-table td:nth-child(odd) {
    text-align: left;
    background-color: #fff;
    color: #999;
  }
}
