/* ==========================================================================
   styles-print.css — 打印样式（只在打印 / 导出 PDF 时生效）

   场景：采购把「产品规格」页打印出来附在询价单后面，或转成 PDF 内部传阅。
   目标：去掉所有导航与装饰，只留标题、主图、规格与说明，黑白可读、不跨页断行。
   ========================================================================== */

@media print {

  /* ---------- 去掉所有交互外壳 ---------- */
  .site-header,
  .site-footer,
  .mobile-nav,
  .mobile-nav-panel,
  .side-dock,
  .side-service,
  .side-block,
  .side-pop,
  .article-cta,
  .quote-fab,
  .quote-panel,
  .search-panel,
  .site-search,
  .skip-link,
  .breadcrumb,
  .detail-thumbs,
  .detail-tabs,
  .detail-actions,
  .detail-inquiry,
  .inquiry-form,
  .article-side,
  .case-filter,
  .freq-chips,
  .list-sort,
  .pagination,
  .shop-thumbs,
  .shop-dots,
  .cert-marquee,
  .notfound-search,
  .faq-list,
  .detail-views,
  .page-head,
  .toast,
  .quote-success {
    display: none !important;
  }

  /* ---------- 页面基础：白底黑字，去掉阴影与圆角 ---------- */
  html, body {
    background: #fff !important;
    color: #000 !important;
    font-size: 10.5pt;
    line-height: 1.55;
  }

  .wrap { max-width: none !important; padding: 0 !important; margin: 0 !important; }

  .section,
  .section-alt,
  .section-dark,
  .detail-section,
  .detail-rich {
    background: #fff !important;
    color: #000 !important;
    padding: 8pt 0 !important;
  }

  .section-dark *, .detail-inquiry * { color: #000 !important; }

  h1, h2, h3, h4 { color: #000 !important; page-break-after: avoid; }
  h1 { font-size: 17pt; }
  h2 { font-size: 13pt; }
  h3 { font-size: 11.5pt; }

  p, li, td, th { orphans: 2; widows: 2; }

  /* 链接打印出来要能看出是链接，但不加装饰 */
  a { color: #000 !important; text-decoration: none !important; }
  a[href^="http"]::after { content: ""; }

  /* ---------- 产品详情：图与规格并排 ---------- */
  .detail-wrap {
    display: block !important;
    grid-template-columns: none !important;
  }

  .detail-gallery { margin: 0 0 10pt !important; }

  /* 图集容器在屏幕上是浅色圆角大块，打印时去掉底色与留白，图片靠左让文字环绕 */
  .detail-gallery,
  .detail-main,
  .vr-frame,
  .case-media,
  .article-hero {
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .detail-main { display: block !important; text-align: left !important; }

  .detail-main img {
    max-width: 58mm; max-height: 58mm;
    width: auto !important; height: auto !important;
    float: left; margin: 0 10pt 6pt 0;
    border: 1px solid #ccc; border-radius: 0;
    box-shadow: none !important;
  }

  .detail-info h1 { margin-top: 0 !important; }

  /* 规格表：细边框、行不被拆开 */
  .spec-table,
  table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 9.5pt;
    page-break-inside: auto;
  }
  .spec-table th, .spec-table td,
  table th, table td {
    border: 1px solid #999 !important;
    padding: 4pt 6pt !important;
    background: #fff !important;
  }
  table th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  tr, td, th { page-break-inside: avoid; }

  /* 正文分块：标题跟着内容走，避免标题孤零零留在页底 */
  .detail-block { page-break-inside: avoid; margin-bottom: 10pt !important; }
  .detail-block-head h2 { margin-bottom: 4pt !important; }

  /* 卡片：去掉阴影与悬浮，只留边框，避免大片底色耗墨 */
  .product-card, .case-card, .article-card, .panel, .shop-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    background: #fff !important;
    page-break-inside: avoid;
  }

  .product-grid, .case-grid, .article-grid, .shop-grid {
    display: block !important;
  }
  .product-grid > *, .case-grid > *, .article-grid > *, .shop-grid > * {
    margin-bottom: 8pt !important;
    break-inside: avoid;
  }

  /* 图片：印黑白也看得清，限制高度避免占满整页 */
  img {
    max-width: 100% !important;
    max-height: 70mm;
    object-fit: contain !important;
    filter: grayscale(100%);
  }

  /* 首页等页面：装饰层全部关掉 */
  .hero-copy { background: none !important; backdrop-filter: none !important; color: #000 !important; }
  .hero-copy h1, .hero-copy .lede, .hero-copy .eyebrow { color: #000 !important; text-shadow: none !important; }
  .hero { background: #fff !important; min-height: auto !important; padding: 0 !important; }
  .reveal { opacity: 1 !important; transform: none !important; }

  /* 页眉：打印时用一行文字说明这是哪一页 */
  .print-header { display: block !important; }

  /* 分页控制 */
  .print-break { page-break-before: always; }
  .no-print { display: none !important; }
}

/* 屏幕上不显示打印专用元素 */
.print-header { display: none; }
