/* ======================== */
/* ProductDetail 页面样式   */
/* ======================== */
/* --- 顶部标题栏 --- */
.pd-header {
  padding-top: var(--header-h);
  background: #eef0f4;
}
.pd-header__inner {
  padding: 30px var(--container-padding) 20px;
}
.pd-header__left {
  background: #fff;
  border-radius: 8px;
  padding: 24px 40px;
  display: inline-block;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.pd-header__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.75;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pd-header__breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #666;
  text-transform: uppercase;
  flex-wrap: wrap;
}
.pd-header__crumb {
  color: #666;
  white-space: nowrap;
}
.pd-header__sep {
  color: #999;
  white-space: nowrap;
}
.pd-header__crumb--active {
  font-weight: 500;
  font-size: 16px;
  color: var(--color-primary);
  text-transform: uppercase;
}
/* --- 产品详情主体 --- */
.pd-main {
  padding: 40px 0 60px;
  background: #fff;
}
.pd-main__inner {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 680px);
  gap: 80px;
  justify-content: space-between;
  padding: 0 var(--container-padding);
}
/* --- 产品信息 --- */
.pd-info__title {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.5;
  color: #333;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.pd-info__desc {
  font-size: 14px;
  line-height: 2;
  color: #666;
  margin-bottom: 60px;
}
/* --- 规格参数表格 --- */
.pd-specs {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  overflow: hidden;
}
.pd-specs__row {
  display: grid;
  grid-template-columns: 218px 1fr;
  border-bottom: 1px solid #eaeaea;
}
.pd-specs__row:last-child {
  border-bottom: none;
}
.pd-specs__label-cell {
  background: #fafafa;
  padding: 24px 30px;
  display: flex;
  align-items: center;
  border-right: 1px solid #eaeaea;
}
.pd-specs__label {
  font-size: 14px;
  line-height: 1.43;
  color: #666;
}
.pd-specs__value-cell {
  padding: 20px 30px;
  display: flex;
  align-items: center;
}
.pd-specs__value {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.44;
  color: #333;
  text-transform: uppercase;
}
/* --- 图片画廊 --- */
.pd-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.pd-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  background: #f4f4f4;
  border: 1px solid #d9dee6;
}
.pd-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pd-gallery__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.pd-gallery__arrow {
  width: 124px;
  height: 120px;
  border: 1px solid #d9dee6;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast);
  flex-shrink: 0;
}
.pd-gallery__arrow:hover {
  border-color: #2978fe;
}
.pd-gallery__thumbs {
  display: flex;
  gap: 15px;
  max-width: 402px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
  flex-shrink: 0;
  position: relative;
}
.pd-gallery__thumbs::-webkit-scrollbar {
  display: none;
}
.pd-gallery__thumb {
  width: 124px;
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #d9dee6;
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
  background: #f8f8f8;
  flex-shrink: 0;
}
.pd-gallery__thumb--active {
  border-color: #2978fe;
  border-width: 2px;
  box-shadow: 0 1px 39px 0 rgba(0, 0, 0, 0.02);
}
.pd-gallery__thumb:hover {
  border-color: #2978fe;
}
.pd-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
/* --- 产品图纸标签页 --- */
.pd-tabs-section {
  padding: 30px 0 80px;
  background: #fff;
}
.pd-tabs {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 30px;
  background: #f4f4f4;
  border-radius: 20px;
  height: 90px;
}
.pd-tabs__tab {
  position: relative;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  color: #666;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}
.pd-tabs__tab--active {
  color: #2978fe;
  font-weight: 500;
}
.pd-tabs__tab--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: #2978fe;
  border-radius: 2px;
}
.pd-tabs__tab:hover {
  color: #2978fe;
}
.pd-tabs__content {
  background: transparent;
  overflow: hidden;
}
.pd-tabs__panel {
  display: none;
  padding: 20px 0 0;
}
.pd-tabs__panel--active {
  display: block;
}
.pd-drawing {
  width: 100%;
  border-radius: 2px;
  overflow: hidden;
}
.pd-drawing--document {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.pd-drawing img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.pd-doc-viewer {
  min-height: 360px;
  padding: 24px;
  background: #f7f9fc;
  border: 1px solid #d8e1f0;
  border-radius: 20px;
}
.pd-doc-viewer__status {
  min-height: 312px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed #c6d4ec;
  border-radius: 16px;
  color: #5d6c82;
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 245, 255, 0.92));
}
.pd-doc-viewer__status--error {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.24);
  background: rgba(254, 243, 242, 0.92);
}
.pd-doc-viewer__pages {
  display: grid;
  gap: 20px;
}
.pd-doc-viewer__page {
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 37, 71, 0.08);
}
.pd-doc-viewer__page canvas {
  width: 100%;
  height: auto;
  display: block;
}
.pd-doc-viewer__svg,
.pd-doc-viewer__image {
  width: 100%;
  height: auto;
  display: block;
}
.pd-doc-viewer__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 180px;
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  background: linear-gradient(135deg, #2978fe, #0f56d9);
  box-shadow: 0 12px 24px rgba(41, 120, 254, 0.22);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}
.pd-doc-viewer__action:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(41, 120, 254, 0.28);
}
/* --- 响应式 --- */
@media (max-width: 1199px) {
  .pd-main__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .pd-info__title {
    font-size: 28px;
  }
  .pd-info__desc {
    margin-bottom: 40px;
  }
  .pd-gallery__thumb {
    width: 100px;
    height: 96px;
  }
  .pd-gallery__thumbs {
    max-width: 330px;
  }
  .pd-gallery__arrow {
    width: 100px;
    height: 96px;
  }
  .pd-specs__row {
    grid-template-columns: 180px 1fr;
  }
  .pd-specs__value {
    font-size: 16px;
  }
}
@media (max-width: 992px) {
  .pd-main__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pd-gallery {
    order: -1;
  }
  .pd-gallery__main {
    aspect-ratio: 4/3;
  }
  .pd-tabs {
    gap: 20px;
    height: 70px;
    padding: 0 20px;
  }
  .pd-tabs__tab {
    font-size: 14px;
  }
  .pd-doc-viewer {
    padding: 20px;
  }
}
@media (max-width: 768px) {
  .pd-header__title {
    font-size: 24px;
  }
  .pd-header__crumb--active {
    font-size: 14px;
  }
  .pd-info__title {
    font-size: 22px;
  }
  .pd-info__desc {
    font-size: 13px;
    margin-bottom: 30px;
  }
  .pd-gallery__main {
    aspect-ratio: 3/2;
  }
  .pd-gallery__thumb {
    width: 80px;
    height: 76px;
    border-radius: 12px;
  }
  .pd-gallery__thumbs {
    gap: 8px;
    max-width: 256px;
  }
  .pd-gallery__arrow {
    width: 80px;
    height: 76px;
    border-radius: 12px;
  }
  .pd-specs__row {
    grid-template-columns: 140px 1fr;
  }
  .pd-specs__label-cell {
    padding: 16px 16px;
  }
  .pd-specs__value-cell {
    padding: 16px 16px;
  }
  .pd-specs__value {
    font-size: 14px;
  }
  .pd-specs__label {
    font-size: 12px;
  }
  .pd-tabs {
    gap: 12px;
    height: 56px;
    padding: 0 16px;
    border-radius: 12px 12px 0 0;
  }
  .pd-tabs__tab {
    font-size: 12px;
  }
  .pd-tabs__tab--active::after {
    width: 80px;
  }
  .pd-tabs__content {
    border-radius: 0 0 12px 12px;
  }
  .pd-tabs__panel {
    padding: 12px;
  }
  .pd-doc-viewer {
    min-height: 240px;
    padding: 14px;
    border-radius: 16px;
  }
  .pd-doc-viewer__status {
    min-height: 200px;
    padding: 20px 16px;
    border-radius: 12px;
    font-size: 14px;
  }
  .pd-doc-viewer__pages {
    gap: 14px;
  }
  .pd-doc-viewer__page {
    border-radius: 12px;
  }
  .pd-doc-viewer__action {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
@media (max-width: 480px) {
  .pd-header__breadcrumb {
    flex-wrap: wrap;
  }
  .pd-gallery__thumb {
    width: 64px;
    height: 60px;
    border-radius: 10px;
  }
  .pd-gallery__thumbs {
    max-width: 208px;
  }
  .pd-gallery__arrow {
    width: 64px;
    height: 60px;
    border-radius: 10px;
  }
  .pd-specs__row {
    grid-template-columns: 1fr;
  }
  .pd-specs__label-cell {
    border-right: none;
    border-bottom: 1px solid #eaeaea;
    background: #fafafa;
  }
}
