@charset "UTF-8";

/**
 * 产品页特殊样式 — 仅保留 utility 表达不了的部分
 * archive-product / single-product 模板视觉全部由 utility 接管。
 *
 * 此文件保留：
 * 1. menuList .activeMenu 紫色底线（archive-product 系列筛选当前态）
 * 2. titleTools .itemsToolsBox.active / hover 紫色底线（single-product 锚点工具栏当前态）
 * 3. thumbBox .itemsImageBox.active 紫色边框（single-product 缩略图当前态）
 * 4. Swiper 内部样式（如果需要 swiper 自定义，留 hook）
 */

/* archive-product 系列筛选当前态（旧站紫色 6px 粗底线） */
.productPage .menuList .activeMenu {
    color: #000;
    font-weight: 500;
    padding-bottom: 15px;
    border-bottom: 6px solid #5400e2;
}
.productPage .menuList .activeMenu a {
    color: #000;
    font-weight: 500;
}

/* single-product 锚点工具栏当前态 */
.productDetailPage .titleTools .itemsToolsBox {
    transition: color 0.2s, border-color 0.2s;
}
.productDetailPage .titleTools .itemsToolsBox.active,
.productDetailPage .titleTools .itemsToolsBox:hover {
    color: #000;
    font-weight: 500;
    border-bottom: 2px solid #5400e2;
}

/* single-product 缩略图当前态 */
.productDetailPage .thumbBox .itemsImageBox.active {
    border-color: #5400e2;
}

/* 下载按钮：button 形态 reset（与 a.downloadInfo 视觉一致） */
.productDetailPage .topInfoBox .rightInfoBox .downloadContent button.downloadInfo {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

/* PDF 列表弹窗 */
.pdfModal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdfModal[hidden] {
  display: none;
}
.pdfModal .pdfModalMask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.pdfModal .pdfModalDialog {
  position: relative;
  width: 480px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pdfModal .pdfModalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f2;
}
.pdfModal .pdfModalTitle {
  color: #000;
  font-size: 16px;
  font-weight: 500;
}
.pdfModal .pdfModalClose {
  border: 0;
  background: transparent;
  color: #6b6e7b;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.pdfModal .pdfModalClose:hover {
  color: #000;
}
.pdfModal .pdfModalList {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  overflow-y: auto;
}
.pdfModal .pdfModalItem {
  margin: 0;
}
.pdfModal .pdfModalLink {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #000;
  text-decoration: none;
  transition: background 0.15s ease;
}
.pdfModal .pdfModalLink:hover {
  background: #f7f7f8;
}
.pdfModal .pdfModalIcon {
  flex-shrink: 0;
  color: #5400e2;
}
.pdfModal .pdfModalLabel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}
.pdfModal .pdfModalArrow {
  flex-shrink: 0;
  color: #9a9ba5;
}
body.sm-pdf-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .pdfModal .pdfModalDialog {
    width: calc(100vw - 24px);
  }
  .pdfModal .pdfModalHead {
    padding: 14px 16px;
  }
  .pdfModal .pdfModalLink {
    padding: 12px 16px;
  }
}
