/* ==========================================================================
   MOTOX Motorcycle Export Website - Responsive
   PC 优先，向下适配平板 / 手机
   ========================================================================== */

/* 桌面：隐藏移动端组件，顶部悬浮占位 */
@media (min-width: 993px) {
    body { padding-top: 112px; }
    .m-header { display: none; }
    .m-tabbar { display: none; }
    .m-drawer { display: none; }
}

@media (max-width: 1200px) {
    .container { width: 100%; }
}

/* ---------------- 平板 ---------------- */
@media (max-width: 992px) {
    .pc-header { display: none; }
    .pc-only { display: none; }
    .m-only { display: block; }
    body { padding-top: 56px; padding-bottom: 58px; }

    .p-grid { grid-template-columns: repeat(3, 1fr); }
    .case-grid { grid-template-columns: repeat(2, 1fr); }
    .case-item.big { grid-column: span 2; grid-row: span 1; }
    .list-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-3 { grid-template-columns: repeat(3, 1fr); }
    .footer .f-cols { grid-template-columns: repeat(2, 1fr); }
    .pd-wrap { grid-template-columns: 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .about-block { grid-template-columns: 1fr; }
    .about-num { grid-template-columns: repeat(2, 1fr); }
    .sec-head h2 { font-size: 26px; }
    .page-hero h1 { font-size: 26px; }
}

/* ---------------- 手机 ---------------- */
@media (max-width: 768px) {
    .section { padding: 38px 0; }
    .page-wrap { padding: 30px 0 44px; }
    .page-hero { padding: 30px 0; }

    .p-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .case-grid { grid-template-columns: 1fr; }
    .case-item.big { grid-column: span 1; }
    .list-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .contact-3 { grid-template-columns: 1fr; gap: 14px; }
    .ext-block { padding: 20px 18px; }
    .cms-content { font-size: 14px; }
    .cms-content img.alignleft, .cms-content img.alignright { float: none; max-width: 100%; margin: 10px 0; }

    .footer { padding-top: 36px; }
    .footer .f-cols { grid-template-columns: 1fr; gap: 20px; }

    .sort-filter { gap: 10px; margin: 0 0 26px; padding-bottom: 22px; }
    .sort-filter .btn { padding: 8px 16px; font-size: 13px; border-radius: 20px; }

    .nlist .nl-card { flex-direction: column; }
    .nlist .nl-card .nc-img { flex: none; }
    .nlist .nl-card .nc-img img { height: 180px; }

    .news-list .nl-item { padding: 12px 14px; }
    .news-list .nl-title {
        font-size: 14px;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .news-list .nl-date { display: none; }

    .detail-box { padding: 20px; }
    .detail-box .d-title { font-size: 21px; }
    .pd-info h1 { font-size: 21px; }
    .form-box { padding: 20px; }

    .side-float { gap: 8px; right: 8px; }
    .side-float .sf-item { width: 44px; height: 44px; font-size: 10px; }
    .side-float .sf-item .ico { font-size: 15px; }
    .to-top { width: 44px; height: 44px; right: 8px; bottom: 70px; font-size: 17px; }

    .slider .arrow { width: 34px; height: 34px; font-size: 16px; }

    /* 产品详情：大图自适应，缩略图横向滚动 */
    .pd-gallery .pd-main img { width: 100%; height: auto; }
    .pd-thumbs { gap: 8px; }
    .pd-thumbs .pt { flex: 0 0 74px; width: 74px; height: 74px; }
}

@media (max-width: 480px) {
    .list-grid { grid-template-columns: 1fr; }
    .about-num { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .p-card .p-body .p-desc { -webkit-line-clamp: 3; }
    .pagination .pg { min-width: 34px; height: 34px; padding: 0 10px; }
}

/* 打印 */
@media print {
    .pc-header, .m-header, .m-tabbar, .side-float, .to-top, .slider .arrow { display: none !important; }
}
