/* 响应式设计 - 扁平化风格 */

/* 平板设备 */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .banner-text {
        max-width: 70%;
    }

    .banner-text h2 {
        font-size: 42px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

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

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

    .floating-card {
        width: 150px;
        height: 150px;
    }

    .floating-card i {
        font-size: 40px;
    }
}

/* 移动设备 */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 15px;
    }

    .nav.active {
        display: block;
    }

    .nav ul {
        flex-direction: column;
        gap: 15px;
        background: var(--white);
        padding: 20px;
        border-radius: var(--radius);
        box-shadow: var(--shadow);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-banner {
        height: 100vh;
        min-height: 500px;
        margin-top: 70px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
        padding-top: 60px;
    }

    .banner-text {
        max-width: 100%;
        margin-bottom: 40px;
    }

    .banner-text h2 {
        font-size: 32px;
    }

    .banner-text p {
        font-size: 16px;
    }

    .banner-buttons {
        justify-content: center;
    }

    .banner-image {
        display: none;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .services-grid,
    .products-grid,
    .news-grid,
    .clients-grid,
    .partners-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 15px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-white,
    .btn-cta-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

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

    .footer-cta-bar {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .banner-controls {
        padding: 0 20px;
    }

    .banner-prev,
    .banner-next {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-card h3 {
        font-size: 28px;
    }
}

/* 小屏手机 */
@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .logo-text span {
        font-size: 10px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .hero-banner {
        min-height: 400px;
    }

    .banner-text h2 {
        font-size: 24px;
    }

    .banner-text p {
        font-size: 14px;
    }

    .banner-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .section-header {
        margin-bottom: 40px;
        padding-top: 60px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .section-tag {
        font-size: 12px;
        padding: 4px 15px;
    }

    .service-card,
    .product-card,
    .news-card {
        padding: 20px;
    }

    .service-icon,
    .product-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }

    .stat-card h3 {
        font-size: 24px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

/* 横屏手机 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-banner {
        height: 100vh;
        min-height: auto;
    }

    .banner-text h2 {
        font-size: 28px;
    }

    .banner-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .banner-buttons {
        flex-direction: row;
    }
}

/* 大屏幕优化 */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

    .banner-text h2 {
        font-size: 64px;
    }

    .banner-text p {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 42px;
    }

    .service-card h3,
    .product-card h3 {
        font-size: 24px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .hero-banner,
    .footer,
    .back-to-top,
    .banner-controls,
    .banner-dots {
        display: none;
    }

    body {
        color: black;
    }

    .container {
        width: 100%;
    }
}