/* ========================================
   打印样式表
   优化打印输出：隐藏导航/页脚/组件，强调内容
   ======================================== */
@media print {
    /* === 隐藏非内容元素 === */
    .header,
    .mobile-nav,
    .mobile-menu-btn,
    .footer,
    .chat-widget,
    .scroll-top-btn,
    .skip-link,
    .breadcrumb {
        display: none !important;
    }

    /* === 重置颜色为黑白 === */
    *, *::before, *::after {
        color: #000 !important;
        background: #fff !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* === 链接显示URL === */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666 !important;
    }
    a[href^="#"]::after,
    a[href^="javascript"]::after,
    a[href^="mailto"]::after {
        content: none;
    }

    /* === 排版优化 === */
    body {
        font-size: 12pt;
        line-height: 1.5;
        margin: 0;
        padding: 20px;
    }

    h1 { font-size: 24pt; }
    h2 { font-size: 18pt; }
    h3 { font-size: 14pt; }

    /* === 展开折叠内容 === */
    .accordion-content {
        max-height: none !important;
        display: block !important;
    }

    /* === 移除动画 === */
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }

    /* === 容器全宽 === */
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }

    /* === 表格优化 === */
    table { border-collapse: collapse; width: 100%; }
    th, td { border: 1px solid #000; padding: 8px; }

    /* === 避免内容截断 === */
    h1, h2, h3, h4, p, li, img {
        break-inside: avoid;
    }

    /* === 页面边距 === */
    @page {
        margin: 2cm;
    }
}
