/* 响应式样式 */

/* ========== 大屏幕 (1200px以下) ========== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

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

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

/* ========== 平板 (992px以下) ========== */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    /* 导航 */
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-item a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-item:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block;
    }

    .phone {
        display: none;
    }

    /* Banner */
    .banner-title {
        font-size: 2.25rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }

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

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

    /* 联系 */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ========== 手机 (768px以下) ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    /* Banner */
    .banner {
        min-height: 500px;
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .banner-subtitle {
        font-size: 0.9375rem;
    }

    .banner-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .banner-buttons .btn {
        width: 100%;
    }

    /* 统计 */
    .stat-number {
        font-size: 2.5rem;
    }

    /* 服务 */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    /* 优势 */
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .advantage-item {
        padding: 1.5rem;
    }

    /* 新闻 */
    .news-grid {
        grid-template-columns: 1fr;
    }

    /* 联系表单 */
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    /* 底部 */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========== 小手机 (480px以下) ========== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .header-wrapper {
        height: 60px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .banner {
        min-height: 450px;
    }

    .banner-title {
        font-size: 1.5rem;
    }

    .scroll-indicator {
        display: none;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* ========== 打印样式 ========== */
@media print {
    .header,
    .banner,
    .scroll-indicator,
    .back-to-top,
    .contact-form-wrapper {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
}
