/* products 页专用样式（从 products.html 内联 <style> 外移） */
  /* ===== Category Intro Row (description + PDF side-by-side, no card) ===== */
  .cat-intro-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
  }
  .cat-intro-row.has-pdf {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
  .cat-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .cat-hero-title {
    font-size: 36px;
    font-weight: 500;
    line-height: 1.20;
    letter-spacing: -0.5px;
    color: #0A0A0B;
    margin-bottom: 8px;
  }
  @media (max-width: 767px) {
    .cat-hero-title { font-size: 28px; }
  }
  .cat-hero-desc {
    font-family: 'Roobert PRO', 'Inter', 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #475467;
    margin-bottom: 10px;
    white-space: pre-line;
  }
  .cat-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
  }
  .cat-hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #FCE7EA;
    color: #9E0C24;
    font-size: 11px;
    font-weight: 500;
  }
  .cat-hero-feature svg { width: 12px; height: 12px; }
  @media (max-width: 768px) {
    .cat-intro-row.has-pdf { grid-template-columns: 1fr; }
  }

  /* ===== Catalog PDF Box ===== */
  .catalog-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  .catalog-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: #FCE7EA;
    color: #C8102E;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .catalog-icon svg { width: 22px; height: 22px; }
  .catalog-info { flex: 1; min-width: 0; }
  .catalog-title { font-size: 13px; font-weight: 600; color: #0A0A0B; line-height: 1.3; }
  .catalog-meta { font-size: 11px; color: #6B7280; margin-top: 2px; }
  .catalog-actions { display: flex; gap: 8px; }
  .catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all .2s;
    white-space: nowrap;
  }
  .catalog-btn svg { width: 14px; height: 14px; }
  .catalog-btn-primary {
    background: #C8102E;
    color: #FFFFFF;
    border: 1px solid #C8102E;
  }
  .catalog-btn-primary:hover { background: #9E0C24; border-color: #9E0C24; }
  .catalog-btn-ghost {
    background: #FFFFFF;
    color: #C8102E;
    border: 1px solid #C8102E;
  }
  .catalog-btn-ghost:hover { background: #FCE7EA; }
  @media (max-width: 640px) {
    .catalog-box { flex-wrap: wrap; }
    .catalog-actions { width: 100%; }
    .catalog-btn { flex: 1; justify-content: center; }
  }

  /* ===== Catalog list (PDFs in the right column of cat-intro-row) ===== */
  .catalog-list { display: flex; flex-direction: column; gap: 10px; }
  .catalog-list .catalog-box { padding: 12px 14px; }
  .catalog-list .catalog-icon { width: 38px; height: 38px; }
  .catalog-list .catalog-icon svg { width: 18px; height: 18px; }
  .catalog-list .catalog-btn { padding: 6px 12px; font-size: 12px; }

  /* ===== Sub-category filter chips ===== */
  .sub-filter {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 22px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  }
  .sub-filter-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6B7280;
    margin-bottom: 10px;
  }
  .sub-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  @media (max-width: 640px) {
    .sub-filter { padding: 12px 0; }
    .sub-filter-label { padding: 0 14px; }
    .sub-filter-chips {
      flex-wrap: nowrap;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding: 2px 14px;
      scroll-padding-left: 14px;
    }
    .sub-filter-chips::-webkit-scrollbar { display: none; }
    .sub-filter-chips .sub-chip { flex: 0 0 auto; }
  }
  .sub-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    background: #F4F4F5;
    color: #374151;
    border: 1px solid transparent;
    transition: all .15s;
    white-space: nowrap;
  }
  .sub-chip:hover { background: #FCE7EA; color: #C8102E; }
  .sub-chip.active {
    background: #C8102E;
    color: #FFFFFF;
    border-color: #C8102E;
  }
  .sub-chip.active:hover { background: #9E0C24; color: #FFFFFF; }

  /* ===== Pagination ===== */
  .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
    flex-wrap: wrap;
  }
  .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    transition: all .15s;
  }
  .page-link:hover { border-color: #C8102E; color: #C8102E; }
  .page-link.active {
    background: #C8102E;
    border-color: #C8102E;
    color: #FFFFFF;
    pointer-events: none;
  }
  .page-link.disabled {
    color: #9CA3AF;
    background: #F9FAFB;
    pointer-events: none;
    cursor: not-allowed;
  }
  .page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    color: #9CA3AF;
    font-size: 13px;
  }

  /* ===== Section Heading inside main ===== */
  .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
  }
  .section-heading h2 {
    font-size: 20px;
    font-weight: 600;
    color: #0A0A0B;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .section-heading-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #C8102E;
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
  }
  .section-heading-link {
    font-size: 13px;
    color: #C8102E;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
  }
  .section-heading-link:hover { color: #9E0C24; text-decoration: underline; }

  /* Add the 2-week badge to product cards */
  .product-badge-2week {
    background: #C8102E !important;
    color: #FFFFFF !important;
  }

  /* ===== PDF Modal ===== */
  .pdf-modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 11, 0.72);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    box-sizing: border-box;
  }
  .pdf-modal.open { display: flex; }
  .pdf-modal-content {
    background: #FFFFFF;
    border-radius: 14px;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: calc(100vh - 48px);
    margin: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  }
  .pdf-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #E5E7EB;
    flex-shrink: 0;
  }
  .pdf-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #0A0A0B;
  }
  .pdf-modal-title svg { width: 18px; height: 18px; color: #C8102E; }
  .pdf-modal-actions { display: flex; align-items: center; gap: 8px; }
  .pdf-modal-close {
    width: 34px; height: 34px;
    border-radius: 8px;
    background: #F4F4F5;
    color: #475467;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
  }
  .pdf-modal-close:hover { background: #FCE7EA; color: #C8102E; }
  .pdf-modal-close svg { width: 18px; height: 18px; }
  .pdf-modal-body {
    flex: 1;
    overflow: hidden;
    background: #F4F4F5;
  }
  .pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #FFFFFF;
  }
  body.modal-open { overflow: hidden; }

  /* ===== 左侧分类：有子分类→大屏悬停弹出二级、一级不可点；无子分类→直接可点 ===== */
  .dcat-item { position: relative; }
  .dcat-flyout { list-style: none; margin: 0; padding: 0; }
  @media (min-width: 1024px) {
    .delivery-sidebar { overflow: visible; z-index: 35; }   /* 放开裁切让弹层伸出；抬高层级，避免主内容(如 2-WEEK 角标)盖住二级弹层 */
    .delivery-sidebar-header { border-top-left-radius: 12px; border-top-right-radius: 12px; }
    .dcat-parent { pointer-events: none; }      /* 有子分类的一级标题不可点 */
    .dcat-flyout {
      position: absolute; left: 100%; top: 0; min-width: 230px;
      background: #fff; border: 1px solid #EFEFEC; border-radius: 0 12px 12px 0;
      box-shadow: 0 14px 34px rgba(5,0,56,0.14); padding: 6px 0;
      opacity: 0; visibility: hidden; transform: translateX(6px);
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
      z-index: 30;
      /* 子分类多时不超出视口：限高 + 内部滚动 */
      max-height: calc(100vh - 110px);
      overflow-y: auto;
      overscroll-behavior: contain;
    }
    .dcat-flyout::-webkit-scrollbar { width: 6px; }
    .dcat-flyout::-webkit-scrollbar-thumb { background: #D8D8D5; border-radius: 3px; }
    .dcat-flyout-link {
      display: block; padding: 10px 20px; font-size: 13px; color: #4A4A5A;
      border-bottom: 1px solid #F5F5F2;
      transition: background .15s ease, color .15s ease, padding-left .2s ease;
    }
    .dcat-flyout-link:last-child { border-bottom: none; }
    .dcat-flyout-link:hover { background: #FCE7EA; color: #C8102E; padding-left: 26px; }
    .dcat-item.has-children:hover .dcat-flyout { opacity: 1; visibility: visible; transform: translateX(0); }
  }
  @media (max-width: 1023px) { .dcat-flyout { display: none; } }
  /* 大屏：左栏悬停已能选二级，顶部 Filter chips 重复，隐藏（中小屏保留用于切换）*/
  @media (min-width: 1024px) { .sub-filter { display: none; } }
  /* 介绍大图防右键复制：透明遮罩盖住图片，右键命中遮罩而非 <img>，菜单里没有「复制图片地址/另存」；
     再禁拖拽与选中。只是抬高门槛挡普通用户，真正版权保护靠已烧录的水印。*/
  .img-shield { position: relative; }
  .img-shield > img {
    -webkit-user-drag: none; user-select: none; -webkit-user-select: none;
    -webkit-touch-callout: none; pointer-events: none;
  }
  .img-shield::after { content: ""; position: absolute; inset: 0; z-index: 2; }
  /* 富文本正文图：同款「防君子」——禁拖拽/选中/iOS 长按存图（右键、拖拽由下方 JS 仅针对图片兜底拦截，正文文字仍可正常选择/复制） */
  .rt-content img {
    -webkit-user-drag: none; user-select: none; -webkit-user-select: none;
    -webkit-touch-callout: none;
  }

  /* ===== 第二块大图：热区脉冲点（高级版） ===== */
  /* .hs-point 的中心 = 后台设定的坐标点；尺寸 = 圆点大小，保证圆点中心精确对齐，文字浮在旁边不影响锚点 */
  .hs-point { position: absolute; width: 28px; height: 28px; transform: translate(-50%, -50%); z-index: 6; }
  .hs-trigger {
    position: relative; display: block; width: 28px; height: 28px;
    background: transparent; border: 0; padding: 0; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  /* 磨砂玻璃按钮：半透明 + 背景虚化 + 白边 + 白色「+」 */
  .hs-dot {
    position: absolute; inset: 0; border-radius: 50%; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.16);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
    backdrop-filter: blur(8px) saturate(150%);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 4px 16px rgba(0,0,0,.18), inset 0 1px 1px rgba(255,255,255,.55);
    transition: transform .28s cubic-bezier(.34,1.56,.64,1), background .25s ease, box-shadow .28s ease;
  }
  /* 白色「+」图标（带轻微投影，深浅背景上都看得清） */
  .hs-dot::after {
    content: ""; width: 12px; height: 12px;
    background: linear-gradient(#fff,#fff) center/12px 2.4px no-repeat,
                linear-gradient(#fff,#fff) center/2.4px 12px no-repeat;
    filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35));
    transition: transform .3s ease;
  }
  /* 平滑扩散的脉冲波（白色玻璃感） */
  .hs-dot::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,.65);
    animation: hs-pulse 2.4s cubic-bezier(.22,.61,.36,1) infinite;
    z-index: -1;
  }
  @keyframes hs-pulse {
    0%   { transform: scale(1);   opacity: .8; }
    70%  { opacity: 0; }
    100% { transform: scale(2.5); opacity: 0; }
  }
  .hs-trigger:hover .hs-dot {
    transform: scale(1.12);
    background: rgba(255,255,255,.3);
    box-shadow: 0 7px 22px rgba(0,0,0,.24), inset 0 1px 1px rgba(255,255,255,.65);
  }
  .hs-trigger:hover .hs-dot::after { transform: rotate(90deg); }
  @media (max-width: 640px) {
    .hs-point, .hs-trigger { width: 24px; height: 24px; }
    .hs-dot::after { width: 10px; height: 10px;
      background: linear-gradient(#fff,#fff) center/10px 2.2px no-repeat,
                  linear-gradient(#fff,#fff) center/2.2px 10px no-repeat; }
  }

  /* ===== 热区询盘弹窗 ===== */
  .hs-inq-content {
    background: #fff; border-radius: 16px; width: 100%; max-width: 560px;
    max-height: calc(100vh - 48px); margin: auto; display: flex; flex-direction: column;
    overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4);
  }
  .hs-inq-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid #E5E7EB; flex-shrink: 0;
  }
  .hs-inq-title { font-size: 17px; font-weight: 600; color: #0A0A0B; }
  .hs-inq-sub { font-size: 13px; color: #6B7280; margin-top: 3px; }
  .hs-inq-body { padding: 20px 22px; overflow-y: auto; }
  .hs-inq-field {
    width: 100%; height: 44px; padding: 0 14px; border-radius: 8px;
    background: #fff; border: 1px solid #D1D5DB; font-size: 14px; color: #0A0A0B;
  }
  .hs-inq-field:focus { outline: none; border-color: #C8102E; box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
  textarea.hs-inq-field { height: auto; padding: 12px 14px; resize: none; }
  .hs-inq-label { display: block; font-size: 13px; font-weight: 500; color: #0A0A0B; margin-bottom: 6px; }
