/* === Print Styles for Product Pages === */
@media print {
    @page {
        size: A4;
        margin: 15mm 15mm 20mm 15mm;
    }

    body {
        font-size: 11pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }

    /* Hide non-essential elements（不隐藏 [data-aos]，产品详情等主内容依赖该属性，仅隐藏导航/页脚/按钮等） */
    .site-header,
    .site-footer,
    .main-nav,
    .mobile-toggle,
    .hero-section,
    .page-hero,
    .btn-print,
    .product-actions,
    .testimonials-section,
    .news-section,
    .swiper-button-next,
    .swiper-button-prev,
    .swiper-pagination,
    .pagination,
    .category-tabs,
    .sidebar-block.cta-block {
        display: none !important;
    }

    /* Remove animations */
    * {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Reset margins */
    .product-detail-section {
        margin-top: 0;
        padding: 0;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    /* Print Header - Company Logo & Product Name */
    .product-header {
        display: block;
        page-break-inside: avoid;
        border-bottom: 2px solid #333;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    .product-header h1 {
        font-size: 22pt;
        color: #000;
        margin-bottom: 8px;
    }

    .compliance-badge {
        border-left: 3px solid #333;
        padding: 8px 12px;
        background: #f5f5f5;
        font-size: 9pt;
        margin-bottom: 0;
    }

    .product-hero-image {
        max-height: 250px;
        overflow: hidden;
        margin: 15px 0;
        box-shadow: none;
        text-align: center;
    }

    .product-hero-image img {
        max-height: 250px;
        width: auto;
        margin: 0 auto;
    }

    /* Product sections */
    .product-section {
        page-break-inside: avoid;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 1px solid #ddd;
    }

    .product-section h2 {
        font-size: 14pt;
        color: #000;
        border-bottom: 1px solid #333;
        padding-bottom: 4px;
        margin-bottom: 8px;
    }

    .rich-content {
        font-size: 10pt;
    }

    .rich-content table {
        font-size: 9pt;
    }

    .rich-content th, .rich-content td {
        padding: 6px 8px;
    }

    /* Product gallery */
    .product-gallery {
        page-break-inside: avoid;
    }

    .gallery-swiper {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .gallery-swiper .swiper-wrapper {
        display: flex;
        gap: 10px;
    }

    .gallery-swiper .swiper-slide {
        flex: 0 0 48%;
    }

    .gallery-swiper img {
        height: auto;
        max-height: 200px;
        object-fit: contain;
    }

    /* Related products */
    .product-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .product-card {
        flex: 0 0 30%;
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .product-image {
        height: 100px;
    }

    .product-info {
        padding: 8px;
    }

    .product-info h3 {
        font-size: 9pt;
    }

    /* Tags */
    .tag {
        background: none;
        border: 1px solid #999;
        padding: 2px 8px;
        font-size: 8pt;
    }

    /* Links */
    a {
        color: #000;
        text-decoration: none;
    }

    .resource-list a::after {
        content: none;
    }

    /* Page break controls */
    h1, h2, h3 {
        page-break-after: avoid;
    }

    img {
        page-break-inside: avoid;
    }

    /* Footer for print */
    .product-detail-section::after {
        content: "Printed from " attr(data-url) " | " attr(data-company);
        display: block;
        text-align: center;
        font-size: 8pt;
        color: #999;
        margin-top: 20px;
        padding-top: 10px;
        border-top: 1px solid #ddd;
    }
}
