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

/* 超小屏幕 (手机竖屏) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
        min-height: 60vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .hero-placeholder i {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .products-section,
    .features-section,
    .about-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .product-category,
    .feature {
        padding: 1.5rem;
    }
    
    .category-icon,
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-icon i,
    .feature-icon i {
        font-size: 1.5rem;
    }
    
    .about-text h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* 小屏幕 (手机横屏) */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats {
        flex-direction: row;
        gap: 1rem;
        min-height: auto;
    }
    
    .stat {
        flex: 1;
        min-height: 100px;
        padding: 1.5rem 1rem;
        max-width: 100%;
        overflow: hidden;
    }

    .stat h3 {
        font-size: 2rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
        font-variant-numeric: tabular-nums;
        font-feature-settings: "tnum";
    }

    .stat p {
        font-size: 0.9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
    }
}

/* 中等屏幕 (平板) */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .contact-content {
        gap: 3rem;
    }
}

/* 大屏幕 (桌面) */
@media (min-width: 1025px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 超大屏幕 */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-placeholder,
    .category-icon,
    .feature-icon {
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .footer,
    .hero-buttons,
    .contact-form {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
        padding: 20px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        color: black;
    }
    
    .product-category,
    .feature {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .products-section,
    .about-section {
        background: #2a2a2a;
    }
    
    .features-section,
    .contact-section {
        background: #1a1a1a;
    }
    
    .product-category,
    .contact-item,
    .contact-form {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .section-title {
        color: #e0e0e0;
    }
    
    .product-category h3,
    .feature h3,
    .about-text h2 {
        color: #e0e0e0;
    }
    
    .product-category p,
    .feature p,
    .about-text p {
        color: #b0b0b0;
    }
}

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

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .nav-link {
        color: #fff;
        text-shadow: 1px 1px 2px #000;
    }
    
    .product-category,
    .feature {
        border: 2px solid #000;
    }
}
