/* 响应式设计 */

/* 大屏幕 (1200px+) */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* 中等屏幕 (768px - 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .hero .container,
    .about-content,
    .contact-content {
        gap: 2rem;
    }
}

/* 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero .container {
        gap: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
}

/* 手机设备 (max-width: 767px) */
@media (max-width: 767px) {
    /* 基础间距调整 */
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 40px 0;
    }
    
    /* 导航栏调整 */
    .header {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .brand-name {
        font-size: 1.25rem;
    }
    
    .logo {
        height: 32px;
    }
    
    /* Hero区域调整 */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-img {
        max-width: 90%;
    }
    
    /* 标题调整 */
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    /* 关于我们调整 */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-stats {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .about-img {
        max-width: 100%;
    }
    
    /* 产品卡片调整 */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .product-card h3 {
        font-size: 1.375rem;
    }
    
    /* 案例调整 */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-card {
        margin-bottom: 1rem;
    }
    
    /* 联系表单调整 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info,
    .contact-form {
        order: initial;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* 页脚调整 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    /* 按钮调整 */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* 表单调整 */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* 防止iOS缩放 */
    }
}

/* 小手机设备 (max-width: 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-card,
    .case-content {
        padding: 1rem;
    }
    
    .case-image {
        height: 150px;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* 超大屏幕 (min-width: 1400px) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .hamburger {
        display: none;
    }
    
    .hero {
        background: white !important;
        color: black !important;
    }
    
    .btn {
        border: 1px solid black;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --background-color: #ffffff;
        --primary-color: #0000ff;
        --border-color: #000000;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --text-color: #E5E5E5;
        --background-color: #1E293B;
        --light-gray: #334155;
        --border-color: #475569;
    }
    
    .about,
    .cases {
        background-color: #0F172A;
    }
    
    .product-card,
    .case-card {
        background-color: #334155;
        border-color: #475569;
    }
    
    .form-group input,
    .form-group textarea {
        background-color: #475569;
        color: white;
        border-color: #64748B;
    }
}