/* delivery 页专用样式（从 delivery.html 内联 <style> 外移） */
  /* 右侧主区：选中分类后的上下文块（介绍 + PDF 双列）*/
  .delivery-cat-context {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .delivery-cat-context.has-pdf {
    grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr);
    align-items: start;
  }
  .delivery-cat-title {
    font-size: 20px;
    font-weight: 600;
    color: #0A0A0B;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .delivery-cat-desc {
    font-family: 'Roobert PRO', 'Inter', 'Noto Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    color: #475467;
    white-space: pre-line;
  }
  .delivery-pdf-list { display: flex; flex-direction: column; gap: 10px; }
  /* PDF 卡 —— 仿 14 DAYS：左 icon + 右两行（标题 / 按钮组）*/
  .delivery-pdf-card {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  }
  .delivery-pdf-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: #FCE7EA; color: #C8102E;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .delivery-pdf-icon svg { width: 20px; height: 20px; }
  .delivery-pdf-info { flex: 1; min-width: 0; }
  .delivery-pdf-title {
    font-size: 13px; font-weight: 600; color: #0A0A0B; line-height: 1.25;
    margin-bottom: 4px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .delivery-pdf-actions { display: flex; gap: 6px; }
  .delivery-pdf-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px; font-weight: 500;
    transition: all .2s;
    white-space: nowrap;
  }
  .delivery-pdf-btn svg { width: 12px; height: 12px; }
  .delivery-pdf-btn-primary { background: #C8102E; color: #fff; border: 1px solid #C8102E; }
  .delivery-pdf-btn-primary:hover { background: #9E0C24; border-color: #9E0C24; }
  .delivery-pdf-btn-ghost { background: #fff; color: #C8102E; border: 1px solid #C8102E; }
  .delivery-pdf-btn-ghost:hover { background: #FCE7EA; }
  @media (max-width: 768px) {
    .delivery-cat-context.has-pdf { grid-template-columns: 1fr; }
  }

  /* 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: #fff; 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: #fff; }
  body.modal-open { overflow: hidden; }

  /* ===== 左侧分类：有子分类→大屏悬停弹出二级、一级不可点；无子分类→直接可点（与 products 页一致）===== */
  .dcat-item { position: relative; }
  .dcat-flyout { list-style: none; margin: 0; padding: 0; }
  @media (min-width: 1024px) {
    .delivery-sidebar { overflow: visible; z-index: 35; }   /* 放开裁切让弹层伸出；抬高层级，避免主内容盖住二级弹层 */
    .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; } }
