/* ========================================
   正麦食品 - 响应式样式
   ======================================== */

/* === Tablet (max-width: 1024px) === */
@media (max-width: 1024px) {
    .hero { height: 500px; }
    .hero h1 { font-size: 38px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    /* About - 平板端适配 */
    .about-section .container,
    .about-page-grid { grid-template-columns: 1fr !important; gap: 36px; align-items: start; }
    .about-image, .about-page-image { height: auto; min-height: 280px; }
    .about-carousel { aspect-ratio: 16 / 9; }
    .about-carousel-wrap { overflow: hidden; border-radius: var(--radius-lg); }
    /* End About */
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .contact-section .container { grid-template-columns: 1fr; gap: 40px; }
    .contact-layout-v2 { grid-template-columns: 1fr; }
    .products-page-grid { grid-template-columns: 1fr; }
    .products-sidebar { position: static; }
    .section { padding: 70px 0; }
    .section-title { font-size: 30px; }
}

/* === Mobile Large (max-width: 768px) === */
@media (max-width: 768px) {
    /* Top Bar */
    .top-bar { display: none; }

    /* Header */
    .main-header { box-shadow: 0 1px 8px rgba(0,0,0,0.06); }
    .header-inner { height: 64px; }
    .main-nav { display: none; }
    .mobile-menu-btn { display: flex; }

    /* Logo */
    .logo-name { font-size: 18px; }
    .logo-icon svg { width: 32px; height: 32px; }
    .logo-icon { width: 40px; height: 40px; }

    /* Hero */
    .hero { height: auto; padding: 80px 0 60px; }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 30px; }
    .hero p { font-size: 15px; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; justify-content: center; }
    .hero-shape:nth-child(1) { width: 200px; height: 200px; }
    .hero-shape:nth-child(2) { display: none; }

    /* Hero Split Banner - 移动端轮播图适配（修复重叠问题） */
    .hero-split { grid-template-columns: 1fr !important; gap: 28px; }
    .hero-split-right .hero-content { max-width: 100%; order: -1; } /* 移动端文字优先显示 */
    .hero-split-right .hero-content h1 { font-size: 24px; }
    .hero-split-right .hero-content p { font-size: 14px; }
    .hero-split-left .banner-carousel { aspect-ratio: 16 / 9; min-height: 200px; overflow: hidden; border-radius: var(--radius-lg); }
    .hero-split-left .banner-slide { position: relative; opacity: 0; transition: opacity 0.5s ease; }
    .hero-split-left .banner-slide.active { opacity: 1; z-index: 2; }
    .hero-split-left .banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .hero-split-left .banner-arrow { width: 30px; height: 30px; padding: 7px; background: rgba(255,255,255,0.9); border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
    .hero-split-left .banner-prev { left: 4px; }
    .hero-split-left .banner-next { right: 4px; }
    .banner-slide-caption { padding: 28px 14px 10px; }
    .banner-slide-caption h3 { font-size: 13px; margin-bottom: 4px; }
    .banner-slide-caption p { font-size: 11px; display: none; }
    .hero-buttons { flex-direction: column; gap: 10px; }
    .hero-buttons .btn { padding: 12px 20px; font-size: 14px; justify-content: center; }

    /* Section */
    .section { padding: 50px 0; }
    .section-header { margin-bottom: 36px; }
    .section-title { font-size: 26px; }
    .section-desc { font-size: 14px; }

    /* Products */
    .products-grid { grid-template-columns: 1fr; gap: 20px; }
    .product-card-img { height: 200px; }
    .product-tabs { gap: 6px; }
    .product-tab { padding: 8px 20px; font-size: 13px; }

    /* About - 移动端 about-carousel 高度对齐优化（两套适配） */
    .about-page-grid { grid-template-columns: 1fr !important; gap: 28px !important; align-items: start !important; }
    .about-page-content { order: -1; } /* 移动端文字优先 */
    .about-page-image { min-height: auto !important; height: auto !important; }
    .about-carousel { aspect-ratio: 16 / 9 !important; min-height: 200px; }
    .about-carousel-wrap { border-radius: var(--radius-lg); overflow: hidden; }
    .about-features { grid-template-columns: 1fr; }
    .about-content .section-title { font-size: 26px; }
    .experience-badge { padding: 14px 18px; }
    .experience-badge .number { font-size: 28px; }

    /* Stats */
    .stats-section { padding: 50px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .stat-item { padding: 16px; }
    .stat-item .stat-number { font-size: 32px; }

    /* Advantages */
    .advantages-grid { grid-template-columns: 1fr; gap: 16px; }
    .advantage-card { padding: 28px 20px; }

    /* News */
    .news-featured-img { height: 200px; }
    .news-featured-body { padding: 20px; }
    .news-featured-body h3 { font-size: 18px; }

    /* Page Banner */
    .page-banner { padding: 50px 0; }
    .page-banner h1 { font-size: 28px; }

    /* Contact */
    .contact-info-cards { grid-template-columns: 1fr; }
    .contact-form-wrap { padding: 24px; }
    .form-row { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-top { padding: 40px 0 28px; }
    .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }

    /* CTA */
    .cta-section { padding: 60px 0; }
    .cta-section h2 { font-size: 26px; }

    /* About Page */
    .about-page-image { height: 240px; }
    .about-page-content h2 { font-size: 26px; }

    /* Back to top */
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
}

/* === Mobile Small (max-width: 480px) === */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero { padding: 60px 0 40px; }
    .hero h1 { font-size: 26px; }
    .hero-split { gap: 28px; }
    .hero-split-right .hero-content h1 { font-size: 26px; }
    .banner-slide-caption h3 { font-size: 14px; }
    .banner-slide-caption p { font-size: 12px; }
    .section { padding: 40px 0; }
    .section-title { font-size: 22px; }
    .section-header { margin-bottom: 28px; }
    .btn { padding: 12px 24px; font-size: 14px; }
    .contact-form-wrap { padding: 20px; }
    .contact-info-card { padding: 16px; }
}
