/* ====================================================
   响应式样式 - 768px / 480px 断点
   ==================================================== */

/* ===== 平板 768px ===== */
@media (max-width: 768px) {
    :root { --header-h: 62px; }

    .nav { display: none; }
    .hamburger { display: flex; }

    /* 宫格式菜单 */
    .nav.open {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: rgba(22, 22, 42, 0.97);
        backdrop-filter: blur(16px);
        padding: 16px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
        z-index: 999;
    }
    .nav.open a {
        text-align: center;
        padding: 14px 6px;
        font-size: 14px;
        background: rgba(108, 92, 231, 0.12);
        border: 1px solid var(--border);
        border-radius: 10px;
    }
    .nav.open a::after { display: none; }

    .logo { font-size: 17px; }
    .logo .logo-icon { width: 34px; height: 34px; font-size: 18px; }

    .carousel { height: 380px; }
    .carousel-caption h2 { font-size: 30px; }
    .carousel-caption p { font-size: 15px; }

    .section-head h2 { font-size: 26px; }
    section { padding: 44px 0; }

    .page-banner { padding: 56px 0 36px; }
    .page-banner h1 { font-size: 28px; }

    .masonry { column-count: 2; column-gap: 16px; }
    .masonry-item { margin-bottom: 16px; }

    .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

    .preview-grid { grid-template-columns: repeat(2, 1fr); }

    .about-wrap { grid-template-columns: 1fr; gap: 24px; }
    .about-img img { height: 280px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .contact-wrap { grid-template-columns: 1fr; gap: 28px; }

    .links-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .article-img img { height: 300px; }
    .article-content h2 { font-size: 20px; }
}

/* ===== 手机 480px ===== */
@media (max-width: 480px) {
    .container { padding: 0 14px; }

    .carousel { height: 320px; }
    .carousel-caption h2 { font-size: 22px; }
    .carousel-caption p { font-size: 13px; }
    .carousel-btn { width: 38px; height: 38px; font-size: 18px; }
    .carousel-prev { left: 8px; }
    .carousel-next { right: 8px; }

    .section-head h2 { font-size: 22px; }
    .page-banner h1 { font-size: 22px; }

    .masonry { column-count: 1; }

    .thumb-grid { grid-template-columns: 1fr; gap: 12px; }

    .preview-grid { grid-template-columns: 1fr; }

    .stats-grid { grid-template-columns: 1fr; }

    .links-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; }

    .btn { padding: 10px 22px; font-size: 14px; }

    .nav.open { grid-template-columns: repeat(2, 1fr); }

    .article-img img { height: 220px; }
    .article-content p { font-size: 14px; }

    .back-top { right: 14px; bottom: 92px; width: 42px; height: 42px; }

    .review-card { padding: 18px; }
    .contact-form { padding: 20px; }
}
