/* --- 响应式设计 --- */

/* 大屏幕设备 (1200px 及以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* 中等屏幕设备 (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

/* 平板设备 (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: row;
        gap: 1rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .hero-stats .stat-item {
        padding: 1.25rem 1.75rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-visual {
        height: 350px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 2.5rem;
    }
    
    /* 导航栏调整 */
    .nav-container {
        padding: 1rem 30px;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* 手机设备 (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-stats .stat-item {
        padding: 1rem 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-visual {
        height: 300px;
    }
    
    .floating-card {
        padding: 1rem;
    }
    
    .floating-card i {
        font-size: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-extra {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* 导航栏移动端样式 */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        border-radius: var(--border-radius);
        justify-content: flex-start;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-container {
        padding: 1rem 20px;
    }
    
    /* 页面部分调整 */
    .page-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* 按钮调整 */
    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* 卡片调整 */
    .service-card,
    .advantage-card,
    .stat-card {
        padding: 2rem;
    }
}

/* 小屏手机设备 (375px - 575px) */
@media (max-width: 575px) and (min-width: 375px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-stats .stat-item {
        padding: 0.875rem 1.25rem;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.8rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-visual {
        height: 250px;
    }
    
    .floating-card {
        padding: 0.75rem;
    }
    
    .floating-card i {
        font-size: 1.25rem;
    }
    
    .floating-card span {
        font-size: 0.8rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .footer-extra {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* 导航栏调整 */
    .nav-container {
        padding: 0.75rem 15px;
    }
    
    .logo a {
        font-size: 1.25rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .nav-list {
        padding: 1.5rem;
    }
    
    .nav-link {
        padding: 0.875rem;
        font-size: 0.9rem;
    }
    
    /* 页面部分调整 */
    .page-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* 按钮调整 */
    .cta-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    /* 卡片调整 */
    .service-card,
    .advantage-card,
    .stat-card {
        padding: 1.5rem;
    }
    
    .service-header {
        margin-bottom: 1rem;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
    }
    
    .service-icon i {
        font-size: 1.5rem;
    }
    
    .service-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }
    
    .advantage-icon {
        width: 60px;
        height: 60px;
    }
    
    .advantage-icon i {
        font-size: 1.5rem;
    }
    
    .advantage-card h3 {
        font-size: 1.2rem;
    }
    
    .advantage-card p {
        font-size: 0.9rem;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon i {
        font-size: 1.5rem;
    }
    
    .stat-card .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-card .stat-label {
        font-size: 1rem;
    }
    
    .stat-card .stat-description {
        font-size: 0.8rem;
    }
}

/* 超小屏手机设备 (320px - 374px) */
@media (max-width: 374px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-stats .stat-item {
        padding: 0.75rem 1rem;
    }
    
    .hero-stats .stat-number {
        font-size: 1.75rem;
    }
    
    .hero-stats .stat-label {
        font-size: 0.75rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-visual {
        height: 200px;
    }
    
    .floating-card {
        padding: 0.5rem;
    }
    
    .floating-card i {
        font-size: 1rem;
    }
    
    .floating-card span {
        font-size: 0.7rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-extra {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    /* 导航栏调整 */
    .nav-container {
        padding: 0.5rem 10px;
    }
    
    .logo a {
        font-size: 1.1rem;
    }
    
    .logo i {
        font-size: 1.3rem;
    }
    
    .nav-list {
        padding: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    /* 页面部分调整 */
    .page-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* 按钮调整 */
    .cta-button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    /* 卡片调整 */
    .service-card,
    .advantage-card,
    .stat-card {
        padding: 1.25rem;
    }
    
    .service-header {
        margin-bottom: 0.75rem;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
    }
    
    .service-icon i {
        font-size: 1.25rem;
    }
    
    .service-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.85rem;
    }
    
    .feature-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.4rem;
    }
    
    .advantage-icon {
        width: 50px;
        height: 50px;
    }
    
    .advantage-icon i {
        font-size: 1.25rem;
    }
    
    .advantage-card h3 {
        font-size: 1.1rem;
    }
    
    .advantage-card p {
        font-size: 0.85rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon i {
        font-size: 1.25rem;
    }
    
    .stat-card .stat-number {
        font-size: 2rem;
    }
    
    .stat-card .stat-label {
        font-size: 0.9rem;
    }
    
    .stat-card .stat-description {
        font-size: 0.75rem;
    }
}

/* 横屏模式优化 */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        height: 100vh;
        padding: 20px;
    }
    
    .hero-content {
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        margin-bottom: 1rem;
    }
    
    .hero-stats .stat-item {
        padding: 0.75rem 1rem;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-background,
    .footer-background {
        background-size: cover;
    }
    
    .service-icon,
    .advantage-icon,
    .stat-icon {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* 打印样式 */
@media print {
    .loading-screen,
    .nav-toggle,
    .back-to-top,
    .scroll-indicator,
    .mouse-follower,
    .scroll-progress {
        display: none !important;
    }
    
    .navbar {
        position: static;
        background: white;
        color: black;
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
    }
    
    .page-section {
        padding: 20px 0;
        min-height: auto;
    }
    
    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .service-card,
    .advantage-card,
    .stat-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .particles-js-canvas-el {
        display: none !important;
    }
    
    .mouse-follower {
        display: none !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --text-secondary: #ffffff;
        --text-muted: #e0e0e0;
    }
    
    .service-card,
    .advantage-card,
    .stat-card {
        border-width: 2px;
    }
    
    .cta-button {
        border-width: 2px;
    }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
    /* 已经是深色主题，无需额外调整 */
}

/* 浅色模式支持（如果需要） */
@media (prefers-color-scheme: light) {
    /* 可以在这里添加浅色主题的样式 */
}
