/* ==========================================================================
   RefrioCore — print.css
   产品页打印优化：隐藏导航/筛选/CTA/对比栏等交互元素，
   规格表全宽展开、性能曲线占满页面宽度。
   ========================================================================== */

@page {
  margin: 1.5cm;
}

/* 隐藏交互与装饰元素 */
.rf-topbar,
.rf-site-header,
.rf-nav-toggle,
.rf-mobile-nav,
.rf-site-footer,
.rf-breadcrumbs,
.rf-compare-bar,
.rf-to-top,
.rf-pagination,
.rf-search-form,
.rf-header__actions,
.rf-product-hero__actions,
.rf-inquiry-form,
.rf-filter,
.rf-catalog__toolbar,
.rf-card__compare,
.rf-product-card__compare,
.rf-product-card__footer .rf-btn,
.rf-docs-list__download,
.rf-faq__item summary::after,
.rf-applications,
.rf-related,
.screen-reader-text,
.rf-skip-link,
#rf-compare-root .rf-btn,
.rf-catalog__sidebar {
  display: none !important;
}

/* 基础排版：黑白友好 */
body {
  background: #fff !important;
  color: #000 !important;
  font-size: 11pt;
}

a {
  color: #000 !important;
  text-decoration: none !important;
}

/* 打印后显示链接地址（仅正文） */
.entry-content a[href^="http"]::after,
.rf-specs-table a[href^="http"]::after {
  content: " (" attr(href) ")";
  font-size: 9pt;
  color: #555;
}

/* 区块与卡片：去阴影/圆角/背景，避免浪费墨水 */
.rf-section {
  padding: 0.5cm 0 !important;
  background: none !important;
}

.rf-card,
.rf-product-card,
.rf-perf-chart,
.rf-docs-list__item,
.rf-inquiry-form {
  box-shadow: none !important;
  border: 1px solid #999 !important;
  border-radius: 0 !important;
  background: #fff !important;
  page-break-inside: avoid;
}

/* 卡片不再悬浮 */
.rf-card:hover,
.rf-product-card:hover {
  transform: none !important;
}

/* 网格全宽、降为两列节省纸张 */
.rf-product-grid,
.rf-grid--2,
.rf-grid--3,
.rf-grid--4 {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0.4cm;
}

/* 规格/对比表：全宽，取消 sticky 与滚动容器 */
.rf-table-scroll,
.rf-compare-table-wrap {
  overflow: visible !important;
  max-height: none !important;
  border: 1px solid #999 !important;
}

.rf-specs-table,
.rf-compare-table {
  width: 100% !important;
  min-width: 0 !important;
  font-size: 9.5pt;
}

.rf-specs-table thead th,
.rf-compare-table thead th,
.rf-compare-table th,
.rf-compare-table td {
  position: static !important;
  background: #f0f0f0 !important;
  color: #000 !important;
}

.rf-specs-table tbody tr,
.rf-compare-table tbody tr {
  page-break-inside: avoid;
}

/* 性能曲线：全宽自适应 */
.rf-perf-chart__svg {
  max-width: 100% !important;
}

/* 产品 hero：去背景、两栏变纵向 */
.rf-product-hero {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}

.rf-product-hero__inner {
  grid-template-columns: 1fr !important;
  gap: 0.4cm;
}

.rf-product-hero__media {
  max-width: 9cm;
  border: 1px solid #999 !important;
}

/* 文档列表保留条目信息 */
.rf-docs-list__item {
  display: block;
}

.rf-badge {
  border: 1px solid currentColor;
  background: none !important;
}

/* FAQ 全部展开打印 */
.rf-faq__item {
  border: 0 !important;
  border-top: 1px solid #999 !important;
  border-radius: 0 !important;
}

.rf-faq__answer {
  display: block !important;
}

/* 主内容取消粘性布局影响 */
.rf-catalog {
  display: block !important;
}

.rf-catalog__sidebar {
  position: static !important;
}

/* 移动端隐藏的导航在打印下保持隐藏（防御） */
.rf-main-nav {
  display: none !important;
}
