/* 响应式设计样式 */

/* 超大屏幕 (1200px 及以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* 大屏幕 (992px 到 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.4rem;
    }
    
    .nav-menu li {
        margin: 0 15px;
    }
}

/* 中等屏幕 (768px 到 991px) */
@media (max-width: 991px) {
    .main-header {
        padding: 10px 0;
    }
    
    .logo img {
        max-height: 50px;
    }
    
    .main-nav {
        text-align: center;
        margin-top: 15px;
    }
    
    .nav-menu {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .nav-menu li {
        margin: 5px 10px;
    }
    
    .hero-section {
        height: 500px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .service-item {
        margin-bottom: 20px;
    }
    
    .contact-form {
        margin-top: 30px;
        padding: 30px;
    }
    
    main {
        margin-top: 140px;
    }
}

/* 小屏幕 (576px 到 767px) */
@media (max-width: 767px) {
    .top-bar {
        text-align: center;
        padding: 5px 0;
    }
    
    .welcome-text {
        font-size: 12px;
    }
    
    .search-box {
        margin-top: 10px;
    }
    
    .main-header {
        text-align: center;
    }
    
    .logo {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-menu li {
        margin: 8px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-menu li a {
        display: block;
        padding: 12px 20px;
        background: var(--light-color);
        border-radius: 5px;
        margin: 2px 0;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .about-section,
    .services-section,
    .products-section,
    .news-section,
    .contact-section {
        padding: 50px 0;
    }
    
    .service-item {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .footer {
        padding: 40px 0 15px;
        text-align: center;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    main {
        margin-top: 180px;
    }
}

/* 超小屏幕 (575px 及以下) */
@media (max-width: 575px) {
    .container {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .row {
        margin-right: -10px;
        margin-left: -10px;
    }
    
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
    .col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
    .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
    .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
    .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
    .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .top-bar {
        font-size: 11px;
    }
    
    .search-form .form-control {
        font-size: 12px;
        height: 30px;
    }
    
    .btn-search {
        height: 30px;
        padding: 0 12px;
        font-size: 12px;
    }
    
    .hero-section {
        height: 350px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .btn-lg {
        padding: 8px 16px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .about-content h3 {
        font-size: 1.3rem;
    }
    
    .service-item {
        padding: 25px 15px;
    }
    
    .service-item h4 {
        font-size: 1.2rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }
    
    .service-icon i {
        font-size: 1.2rem;
    }
    
    .product-image img,
    .news-image img {
        height: 200px;
    }
    
    .product-content,
    .news-content {
        padding: 20px;
    }
    
    .contact-item {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .contact-item i {
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-form h4 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .footer-widget h5,
    .footer-widget h6 {
        font-size: 1.1rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        line-height: 35px;
        margin-right: 8px;
    }
    
    main {
        margin-top: 200px;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: 300px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-section,
    .services-section,
    .products-section,
    .news-section,
    .contact-section {
        padding: 40px 0;
    }
}

/* 打印样式 */
@media print {
    .header,
    .footer,
    .btn,
    .search-box {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .hero-section {
        height: auto;
        background: none !important;
    }
    
    .hero-content {
        color: black !important;
    }
    
    .section-title {
        color: black !important;
        font-size: 18pt;
    }
    
    .service-item,
    .product-item,
    .news-item {
        box-shadow: none !important;
        border: 1px solid #ddd;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0056b3;
        --secondary-color: #495057;
        --light-color: #e9ecef;
        --dark-color: #212529;
    }
    
    .btn-primary {
        background-color: #0056b3;
        border-color: #0056b3;
    }
    
    .service-item,
    .product-item,
    .news-item,
    .contact-form {
        border: 2px solid #dee2e6;
    }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slide {
        transition: none !important;
    }
    
    .service-item:hover,
    .product-item:hover,
    .news-item:hover {
        transform: none !important;
    }
}