/* 响应式设计专用样式文件 */

/* 大型显示器(大于1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section {
        padding: 150px 0 100px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .feature-item {
        padding: 3rem 2rem;
    }
}

/* 桌面电脑(992px到1199px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

/* 平板电脑(768px到991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .price {
        font-size: 1.8rem;
    }
    
    .feature-item img {
        width: 100px;
        height: 100px;
    }
    
    .footer h5 {
        margin-top: 20px;
    }
    
    .solution-icon {
        width: 60px;
        height: 60px;
        font-size: 1.3rem;
    }
}

/* 大型手机(576px到767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .hero-section {
        padding: 90px 0 50px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .products-section h2,
    .features-section h2,
    .solutions-section h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .product-card .card-title {
        font-size: 1.4rem;
    }
    
    .feature-item h3 {
        font-size: 1.3rem;
    }
    
    .feature-item img {
        width: 90px;
        height: 90px;
    }
    
    .solution-card h3 {
        font-size: 1.2rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer .text-md-end {
        text-align: center !important;
        margin-top: 1rem;
    }
}

/* 小型手机(小于576px) */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .hero-section {
        padding: 80px 0 40px;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-section .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
    }
    
    .products-section,
    .features-section,
    .solutions-section,
    .contact-section {
        padding: 50px 0;
    }
    
    .products-section h2,
    .features-section h2,
    .solutions-section h2,
    .contact-section h2 {
        font-size: 1.6rem;
    }
    
    .product-card .card-title {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 1.6rem;
    }
    
    .feature-item {
        padding: 1.5rem 1rem;
    }
    
    .feature-item h3 {
        font-size: 1.2rem;
    }
    
    .feature-item img {
        width: 80px;
        height: 80px;
    }
    
    .feature-item p {
        font-size: 0.9rem;
    }
    
    .solution-card {
        padding: 1.2rem;
    }
    
    .solution-card h3 {
        font-size: 1.1rem;
    }
    
    .solution-card p {
        font-size: 0.9rem;
    }
    
    .solution-icon {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.3rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .footer {
        text-align: center;
        padding: 2rem 0;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-top: 1rem;
    }
    
    .footer p, .footer a, .footer li {
        font-size: 0.9rem;
    }
    
    .footer .text-md-end {
        text-align: center !important;
    }
}

/* 处理导航栏在不同设备上的样式 */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-radius: 0 0 10px 10px;
    }
    
    .navbar-nav {
        margin: 1rem 0;
    }
    
    .navbar .nav-link {
        padding: 0.5rem 0;
    }
    
    .navbar .d-flex {
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
    
    .navbar .btn {
        margin: 0 0.5rem;
        padding: 0.5rem 1rem;
    }
}

/* 处理特定交互元素的响应式行为 */
@media (hover: none) {
    /* 触摸设备上禁用悬停效果 */
    .product-card:hover,
    .feature-item:hover,
    .solution-card:hover,
    .btn:hover {
        transform: none !important;
        box-shadow: none !important;
    }
    
    /* 为触摸设备优化点击效果 */
    .btn:active {
        transform: scale(0.98);
    }
}

/* 打印样式优化 */
@media print {
    .navbar, .footer, .stats-section {
        display: none;
    }
    
    .hero-section, .products-section, .features-section, .solutions-section, .contact-section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .product-card, .feature-item, .solution-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    body {
        font-size: 12pt;
    }
    
    h1 {
        font-size: 18pt;
    }
    
    h2 {
        font-size: 16pt;
    }
    
    h3 {
        font-size: 14pt;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
} 