/* 响应式设计 - 移动端优化 */

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

/* 大屏幕 (1200px 及以上) */
@media (min-width: 1200px) {
    .hero-stats {
        gap: 3rem;
    }
    
    .service-card {
        padding: 2.5rem;
    }
}

/* 中等屏幕 (992px 及以上) */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

/* 小屏幕 (768px 及以上) */
@media (min-width: 768px) {
    .hero-content {
        padding-right: 2rem;
    }
    
    .solution-card {
        margin-bottom: 0;
    }
}

/* 平板设备 (768px 以下) */
@media (max-width: 767.98px) {
    /* 平板端粒子效果优化 */
    .particle-dots .particle-dot {
        width: 3px;
        height: 3px;
    }
    
    .glow-nodes .glow-node {
        width: 6px;
        height: 6px;
    }
    
    .network-lines .network-line {
        opacity: 0.7;
    }
    
    /* 现代化样式在移动端的优化 */
    .float-animation {
        animation: none;
    }
    
    .magnetic-hover:hover {
        transform: none;
    }
    
    .glass-effect {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    
    body.scrolled {
        padding-top: 65px; /* 滚动时减少 */
    }
    /* 导航栏 */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .navbar-collapse {
        background: rgba(240, 248, 255, 0.98);
        border-radius: var(--border-radius);
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* 主横幅 */
    .hero-section {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        text-align: center;
        justify-content: center;
        flex-wrap: nowrap;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .hero-actions {
        text-align: center;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-visual {
        margin-top: 3rem;
        height: 300px;
        perspective: none;
    }
    
    .server-animation {
        width: 150px;
        height: 200px;
        transform: none !important;
        transition: none !important;
    }
    
    .server-animation::after {
        display: none;
    }
    
    /* 区域标题 */
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    /* 服务卡片 */
    .service-card {
        margin-bottom: 2rem;
    }
    
    .service-card.featured {
        transform: none;
        margin-bottom: 2rem;
    }
    
    /* 优势卡片 */
    .advantage-card {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* 解决方案移动端优化 - 一行两个 */
    .solutions-section .col-lg-4,
    .solutions-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .solution-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .solution-image {
        height: 120px;
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .solution-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .solution-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* 客户评价移动端优化 - 一行两个 */
    .testimonials-section .col-lg-4,
    .testimonials-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .testimonial-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .testimonial-card .quote {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .testimonial-card .author {
        font-size: 0.85rem;
    }
    
    /* 优势卡片移动端优化 */
    .advantages-section .col-lg-3,
    .advantages-section .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .advantage-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .advantage-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .advantage-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* 企业级新闻动态移动端优化 */
    .news-section .col-lg-6,
    .news-section .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    
    .news-category-card {
        margin-bottom: 1.5rem;
        border-radius: var(--border-radius-lg);
    }
    
    .news-list {
        max-height: 250px;
        padding-right: 4px;
    }
    
    .news-category-card .card-header {
        padding: 16px 20px;
    }
    
    .news-category-card .card-body {
        padding: 20px;
    }
    
    .news-item {
        padding: 12px 0;
        font-size: 0.9rem;
    }
    
    /* 移动端间距优化 */
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-6 {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }
    
    /* 页脚 */
    .footer-section .row > div {
        margin-bottom: 2rem;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .footer-bottom .row > div {
        text-align: center;
    }
    
    /* 通用移动端优化 */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    /* 确保所有两列布局在移动端正确显示 */
    .col-lg-6.mobile-two-col,
    .col-md-6.mobile-two-col {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 6px;
    }
    
    /* 卡片间距统一优化 */
    .card,
    .product-card,
    .feature-card,
    .service-card,
    .advantage-card,
    .solution-card,
    .testimonial-card {
        margin-bottom: 1rem;
    }
    
    /* 按钮组移动端优化 */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
        margin-bottom: 0;
    }
    
    /* 文字大小移动端优化 */
    h1, .h1 { font-size: 1.8rem; }
    h2, .h2 { font-size: 1.5rem; }
    h3, .h3 { font-size: 1.3rem; }
    h4, .h4 { font-size: 1.1rem; }
    h5, .h5 { font-size: 1rem; }
    h6, .h6 { font-size: 0.9rem; }
    
    .lead {
        font-size: 1rem;
        line-height: 1.5;
    }
}

/* 手机设备 (576px 以下) */
@media (max-width: 575.98px) {
    /* 移动端粒子效果优化 */
    .particle-dots {
        display: none; /* 移动端隐藏粒子点以提升性能 */
    }
    
    .network-lines {
        opacity: 0.5; /* 降低网络线的透明度 */
    }
    
    .glow-nodes .glow-node {
        width: 6px;
        height: 6px;
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
    }
    
    .hero-particles::before,
    .hero-particles::after {
        animation-duration: 12s; /* 减慢动画速度以提升性能 */
    }
    /* 全局 */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    
    body.scrolled {
        padding-top: 60px; /* 滚动时进一步减少 */
    }
    
    /* 导航栏 */
    .navbar-brand img {
        height: 30px;
    }
    
    /* 主横幅 */
    .hero-section {
        padding: 60px 0 30px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .hero-stats {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        justify-content: center;
        flex-wrap: nowrap;
        text-align: center;
    }
    
    .stat-item {
        flex: 1;
        min-width: 0;
        max-width: 33.33%;
    }
    
    .stat-number {
        font-size: 1.4rem;
        line-height: 1.2;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-visual {
        height: 250px;
        margin-top: 2rem;
    }
    
    .server-animation {
        width: 120px;
        height: 150px;
    }
    
    .server-rack {
        padding: 15px;
        gap: 10px;
    }
    
    .server-unit {
        height: 25px;
    }
    
    /* 按钮 */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* 区域标题 */
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* 产品卡片移动端优化 - 一行两个 */
    .products-section .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .product-card {
        padding: 20px 16px;
        margin-bottom: 1rem;
    }
    
    .product-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .product-subtitle {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    .product-features {
        margin-bottom: 1rem;
    }
    
    .feature-item {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
    
    .product-price {
        margin-bottom: 1rem;
    }
    
    .product-price .amount {
        font-size: 1.5rem;
    }
    
    .btn-product {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    /* 特色卡片移动端优化 - 一行两个 */
    .why-choose-section .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h4 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* 超小屏幕产品卡片优化 */
    .products-section .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
    }
    
    .product-card {
        padding: 16px 12px;
        margin-bottom: 1rem;
    }
    
    .product-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }
    
    .product-subtitle {
        font-size: 0.8rem;
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
    .product-features {
        margin-bottom: 0.8rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
        margin-bottom: 0.2rem;
    }
    
    .product-price .amount {
        font-size: 1.3rem;
    }
    
    .btn-product {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    /* 超小屏幕特色卡片优化 */
    .why-choose-section .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 8px;
    }
    
    .feature-card {
        padding: 1.2rem 0.8rem;
        margin-bottom: 1rem;
    }
    
    .feature-card h4 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .feature-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* 服务卡片 */
    .service-card,
    .advantage-card {
        padding: 1.2rem;
    }
    
    .service-icon,
    .advantage-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .service-card h4 {
        font-size: 1.1rem;
    }
    
    .advantage-card h5 {
        font-size: 1rem;
    }
    
    .service-price .price {
        font-size: 1.3rem;
    }
    
    /* 解决方案 */
    .solution-image {
        height: 120px;
        font-size: 2.5rem;
    }
    
    .solution-content {
        padding: 1rem;
    }
    
    .solution-content h4 {
        font-size: 1.1rem;
    }
    
    /* 客户评价 */
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
    }
    
    /* 企业级新闻动态 */
    .news-category-card .card-header {
        padding: 18px 20px;
    }
    
    .news-category-card .card-header::before {
        left: 20px;
        width: 40px;
        height: 2px;
    }
    
    .news-category-card .card-header h4 {
        font-size: 1.1rem;
    }
    
    .news-category-card .card-header h4 i {
        font-size: 1.2rem;
        margin-right: 8px;
    }
    
    .news-category-card .card-body {
        padding: 20px;
    }
    
    .news-list {
        max-height: 240px;
        padding-right: 6px;
        margin-right: -6px;
    }
    
    .news-item {
        padding: 12px 0;
    }
    
    .news-item:hover {
        padding-left: 10px;
        padding-right: 10px;
        margin: 0 -10px;
    }
    
    .news-meta {
        gap: 8px;
        margin-bottom: 6px;
    }
    
    .news-date {
        font-size: 0.75rem;
    }
    
    .news-tag {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    
    .news-title a {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .news-category-card .btn-outline-primary {
        padding: 8px 16px;
        font-size: 0.8rem;
        width: 100%;
    }
    
    /* 页脚 */
    .footer-section {
        padding: 3rem 0 2rem;
    }
    
    .footer-brand img {
        height: 35px;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        padding-top: 2rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
    
    /* 返回顶部 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }
    
    /* 滚动指示器 */
    .scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow {
        width: 25px;
        height: 25px;
    }
}

/* 超小屏幕 (480px 以下) */
@media (max-width: 479.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .service-card,
    .advantage-card,
    .testimonial-card {
        padding: 1rem;
    }
    
    .hero-actions .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .news-category-card .card-header,
    .news-category-card .card-body {
        padding: 0.75rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .hero-visual {
        height: 200px;
    }
    
    .server-animation {
        width: 100px;
        height: 120px;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .advantage-icon {
        background-size: contain;
    }
    
    .hero-background {
        background-attachment: scroll;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .service-card:hover,
    .solution-card:hover,
    .advantage-card:hover {
        transform: none;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .social-links a:hover {
        transform: none;
    }
}

/* 打印样式 */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .hero-background,
    .hero-overlay,
    .hero-particles {
        display: none !important;
    }
    
    .service-card,
    .advantage-card,
    .solution-card,
    .testimonial-card,
    .news-category-card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .footer-section {
        background: none !important;
        color: #000 !important;
    }
}

/* 可访问性优化 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-particles {
        animation: none !important;
    }
    
    .server-unit.active::before {
        animation: none !important;
    }
    
    .data-point {
        animation: none !important;
    }
    
    .scroll-indicator {
        animation: none !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000ff;
        --secondary-color: #000000;
        --box-shadow: 0 0 0 2px #000000;
    }
    
    .btn-outline-light {
        border-color: #000000;
        color: #000000;
    }
    
    .service-card,
    .advantage-card,
    .solution-card,
    .testimonial-card,
    .news-category-card {
        border: 2px solid #000000;
    }
}

/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #ffffff;
        --white-color: #1a1a1a;
        --light-color: #2d2d2d;
        --secondary-color: #cccccc;
    }
    
    body {
        background-color: var(--white-color);
        color: var(--dark-color);
    }
    
    .navbar {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .service-card,
    .advantage-card,
    .solution-card,
    .news-category-card {
        background: var(--light-color);
        color: var(--dark-color);
    }
    
    .testimonial-card {
        background: rgba(26, 26, 26, 0.8);
    }
}