/* 响应式设计 */

/* 大屏幕 (1200px及以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* 中等屏幕 (768px - 1199px) */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 3rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.3rem !important;
    }
    
    .hero-container {
        gap: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
}

/* 平板屏幕 (768px - 1024px) */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    /* 导航栏联系方式 */
    .nav-contact {
        gap: 1rem;
    }
    
    .contact-item {
        font-size: 0.6rem;
    }
    
    .contact-item i {
        font-size: 0.65rem;
    }
    
    /* 浮窗在中等屏幕下的调整 */
    .contact-popup {
        min-width: 260px;
    }
    
    .popup-content {
        padding: 1.2rem;
    }
    
    /* 解决方案概览在中等屏幕下的调整 */
    .solution-overview .container {
        max-width: 1200px;
    }
    
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .solution-image {
        height: 140px;
    }
    
    .image-placeholder i {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* 移动设备屏幕 (最大768px) */
@media (max-width: 768px) {
    /* 导航栏 */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 0;
    }

    .hamburger {
        display: flex;
    }
    
    /* 导航栏联系方式 */
    .nav-contact {
        display: none;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero Section */
    .hero {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Section标题 */
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* 特色功能网格 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    /* 解决方案网格 */
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .solution-overview .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .solution-image {
        height: 120px;
        margin: -2.5rem -1rem 1.5rem -1rem;
    }
    
    .image-placeholder i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .image-placeholder span {
        font-size: 1rem;
    }
    
    /* 模块网格 */
    .modules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modules-preview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .module-header,
    .module-content {
        padding: 1.5rem;
    }
    
    /* 案例网格 */
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .case-header {
        padding: 1.5rem;
    }
    
    .case-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    /* 新闻网格 */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-item {
        margin: 0 10px;
    }
    
    /* 联系表单 */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* 返回顶部按钮 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* 小屏幕手机 (最大480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 1.8rem !important;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .feature-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    /* Section标题 */
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* 卡片间距 */
    .features-section,
    .modules-section,
    .cases-section,
    .news-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .feature-card,
    .module-card,
    .case-card {
        margin: 0 10px;
    }
    
    /* 表格和表单 */
    .contact-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
    }
    
    /* 新闻项目 */
    .news-content {
        padding: 1rem;
    }
    
    .news-title {
        font-size: 1.1rem;
    }
    
    .news-excerpt {
        font-size: 0.9rem;
    }
}

/* 超小屏幕 (最大320px) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .module-card,
    .case-card {
        margin: 0 5px;
    }
    
    .feature-description,
    .case-description,
    .module-features li {
        font-size: 0.9rem;
    }
}

/* 横屏模式调整 */
@media (orientation: landscape) and (max-height: 600px) {
    .hero {
        min-height: auto;
        padding: 80px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        margin-bottom: 2rem;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-img,
    .logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 暗色模式支持 (如果用户偏好暗色模式) */
@media (prefers-color-scheme: dark) {
    /* 这里可以添加暗色模式的样式 */
}

/* 减少动画 (如果用户偏好减少动画) */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* 打印样式 */
@media print {
    .header,
    .back-to-top,
    .hero-buttons,
    .contact-form {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: #000 !important;
    }
    
    * {
        box-shadow: none !important;
    }
    
    .section-header,
    .feature-card,
    .module-card,
    .case-card {
        break-inside: avoid;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .feature-card,
    .module-card,
    .case-card,
    .news-item {
        transition: none;
    }
    
    .btn:hover,
    .feature-card:hover,
    .module-card:hover,
    .case-card:hover,
    .news-item:hover {
        transform: none;
    }
    
    /* SEO内容区域响应式 */
    .seo-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .seo-item {
        padding: 2rem;
    }
    
    .seo-item h3 {
        font-size: 1.2rem;
    }
    
    .seo-item p {
        font-size: 0.95rem;
    }
    
    /* 最新动态列表响应式 */
    .news-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .news-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem 1.5rem;
    }
    
    .news-category-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    .news-list-title {
        font-size: 0.95rem;
    }
    
    .news-date-text {
        font-size: 0.85rem;
    }
    
    /* 二维码响应式 */
    .qrcode-container {
        gap: 1rem;
    }
    
    .qrcode-img {
        width: 80px;
        height: 80px;
    }
    
    .qrcode-item span {
        font-size: 0.75rem;
    }
    
    .qrcode-enlarged {
        display: none !important;
    }
}

/* Product Pages Responsive */
@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .intro-content h2 {
        font-size: 2rem;
    }
    
    .intro-content p {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-intro {
        padding: 60px 0;
    }
    
    .intro-content h2 {
        font-size: 1.75rem;
    }
    
    .intro-content p {
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 2rem;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.05rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Solution Pages Responsive */
@media (max-width: 1024px) {
    .solution-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 2rem;
    }
    
    .features-grid,
    .scenarios-grid,
    .cases-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .hero-features {
        gap: 1.5rem;
    }
    
    .hero-features .feature-item {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}
