/* ============================================================
   人民币大写转换器 - 打印样式表
   财务场景：打印大写金额用于票据、合同等正式凭证
   ============================================================ */

@media print {
  /* 隐藏不需要打印的元素 */
  .site-header,
  .site-nav,
  .breadcrumb,
  .sidebar,
  .site-footer,
  .btn-copy,
  .page-navigation,
  .related-section,
  .quick-search-wrapper,
  .number-grid,
  .toast {
    display: none !important;
  }

  /* 重置布局 */
  .page-layout {
    display: block;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .page-layout main {
    width: 100%;
  }

  /* 卡片无阴影 */
  .content-card {
    box-shadow: none;
    border: 1px solid #ccc;
    border-radius: 0;
  }

  /* 避免标题区域被截断 */
  .card-header {
    page-break-before: avoid;
    page-break-after: avoid;
  }

  /* 结果区不跨页 */
  .result-section {
    page-break-inside: avoid;
  }

  /* 确保大写金额清晰可读 */
  .result-upper .result-value {
    font-size: 1.8rem;
    color: #000;
    letter-spacing: 3px;
    font-weight: 700;
  }

  .result-lower .result-value {
    color: #000;
  }

  /* 特征标签简化 */
  .feature-tag {
    border: 1px solid #ccc;
    background: none;
    color: #000;
  }

  /* 特殊说明保留边框 */
  .special-note {
    background: none;
    border-left: 4px solid #000;
    color: #000;
  }

  /* 描述区域简化 */
  .desc-content {
    background: none;
    border-left: 2px solid #000;
  }

  .desc-tips {
    background: none;
    border: 1px dashed #ccc;
  }

  /* 财务小贴士简化 */
  .financial-tips-list li::before {
    content: "►";
  }

  /* 链接显示URL */
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.7rem;
    color: #666;
  }

  /* 内部链接不显示URL */
  a[href^="#"]:after,
  a[href^="javascript"]:after {
    content: none;
  }

  /* 页面基础 */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  h1 {
    font-size: 18pt;
  }

  h2 {
    font-size: 14pt;
    border-bottom: 1px solid #000;
    padding-bottom: 4px;
  }

  h3 {
    font-size: 12pt;
  }

  /* 页眉信息 */
  .card-header {
    padding: 16px;
    border-bottom: 2px solid #000;
  }

  .result-section {
    padding: 16px;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .result-box {
    border: 1px solid #000;
    background: none;
  }

  .desc-section {
    padding: 16px;
  }

  /* 避免内容断开 */
  .result-section,
  .desc-section,
  .card-header {
    page-break-inside: avoid;
  }

  @page {
    margin: 1.5cm;
  }
}
