/* 响应式设计补充样式 */

/* 超小屏幕 (手机) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .service-item {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .company-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-item h4 {
        font-size: 2rem;
    }
}

/* 小屏幕 (平板) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 中等屏幕 (小桌面) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card.featured {
        grid-column: 1 / -1;
    }
}

/* 大屏幕 (桌面) */
@media (min-width: 1025px) {
    .hero {
        padding: 0 2rem;
    }
    
    .hero-content {
        padding-right: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-card.featured {
        grid-column: 1 / 3;
    }
}

/* 超大屏幕 */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* 横屏模式 */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    section {
        padding: 40px 0;
    }
}

/* 高分辨率屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero::before {
        background-size: 200% 200%;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .hamburger,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: #000;
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-title {
        color: #000;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .product-card,
    .service-item {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    .navbar {
        background: rgba(30, 30, 30, 0.95);
    }
    
    .nav-link {
        color: #fff;
    }
    
    .nav-link:hover {
        color: #FF8C42;
    }
    
    .about {
        background: #1a1a1a;
    }
    
    .services {
        background: #1a1a1a;
    }
    
    .product-card,
    .service-item,
    .contact-item,
    .contact-form {
        background: #2d2d2d;
        color: #fff;
    }
    
    .section-header h2 {
        color: #FF8C42;
    }
    
    .section-header p {
        color: #ccc;
    }
    
    .about-text p,
    .service-item p,
    .contact-details p {
        color: #ccc;
    }
    
    .form-group input,
    .form-group textarea {
        background: #3d3d3d;
        border-color: #555;
        color: #fff;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        border-color: #4a90e2;
    }
}

/* 减少动画效果 (用户偏好) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .halo-light {
        animation: none;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #000;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .nav-link::after {
        background-color: #000;
    }
    
    .section-header h2 {
        color: #000;
    }
}
