/* ========================================
   响应式布局 — 移动端优先优化
   ======================================== */

/* —— 大屏幕 (≥1200px) —— */
@media (min-width: 1200px) {
    .nav-container {
        padding: 0 3rem;
    }
}

/* —— 中等屏幕 平板 (≤1024px) —— */
@media (max-width: 1024px) {
    .download-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3rem;
    }

    .qr-card {
        order: 2;
    }

    .platform-list {
        order: 1;
    }

    .hero {
        padding: 7rem 2rem 4rem;
    }
}

/* —— 移动端 (≤768px) —— */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .top-nav {
        padding: 1rem 0;
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo-mark {
        width: 26px;
        height: 26px;
    }

    /* Hero 移动端 */
    .hero {
        padding: 6rem 1.2rem 3rem;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .hero-tagline {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: clamp(2.6rem, 13vw, 4.5rem);
        margin-bottom: 1.4rem;
    }

    .hero-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin: 0 auto 3rem;
        gap: 0.8rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }

    /* 数据展示 - 移动端紧凑 */
    .hero-stats {
        gap: 1.2rem;
        padding: 1rem 1.5rem;
        border-radius: 24px;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 360px;
        justify-content: space-between;
    }

    .stat-num {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.68rem;
    }

    .stat-divider {
        height: 28px;
    }

    .scroll-hint {
        bottom: 1.5rem;
        font-size: 0.65rem;
    }

    .scroll-line {
        height: 30px;
    }

    /* 下载区移动端 */
    .download-section {
        padding: 4rem 1.2rem 3rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 7vw, 2.6rem);
        margin-bottom: 2.5rem;
    }

    .section-title span {
        display: block;
    }

    .section-title .title-italic {
        margin-left: 0;
        margin-top: 0.3rem;
    }

    .qr-card {
        padding: 2rem 1.5rem;
    }

    .qr-wrapper {
        width: 170px;
        height: 170px;
        padding: 1rem;
    }

    .platform-btn {
        padding: 1rem 1.2rem;
        gap: 1rem;
    }

    .platform-icon {
        width: 40px;
        height: 40px;
    }

    .platform-name {
        font-size: 0.95rem;
    }

    /* 客服按钮移动端 */
    .float-service {
        bottom: 1.2rem;
        right: 1.2rem;
    }

    .service-btn {
        width: 54px;
        height: 54px;
    }

    .service-icon {
        width: 22px;
        height: 22px;
    }

    .service-tooltip {
        display: none;
    }

    /* 弹窗移动端 */
    .modal-panel {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .modal-header h3 {
        font-size: 1.35rem;
    }

    .modal-header p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .service-option {
        padding: 0.9rem 1rem;
    }

    .option-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .option-title {
        font-size: 0.9rem;
    }

    .option-desc {
        font-size: 0.75rem;
    }
}

/* —— 小屏手机 (≤380px) —— */
@media (max-width: 380px) {
    .nav-links {
        gap: 1rem;
    }

    .nav-links a {
        font-size: 0.78rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-stats {
        gap: 0.8rem;
        padding: 0.9rem 1.2rem;
    }

    .stat-num {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.62rem;
    }
}

/* —— 横屏移动端 —— */
@media (max-width: 900px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 6rem 2rem 3rem;
    }

    .hero-title {
        font-size: clamp(2.5rem, 7vw, 4rem);
        margin-bottom: 1rem;
    }

    .hero-desc {
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        margin-bottom: 2rem;
    }

    .scroll-hint {
        display: none;
    }
}

/* —— 高分辨率屏幕优化 —— */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .video-bg video {
        filter: saturate(1.15) contrast(1.05);
    }
}

/* —— 偏好减少动画 —— */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    [data-anim] {
        opacity: 1;
        transform: none;
    }
}

/* —— 暗色模式（已经默认是深色） —— */
@media (prefers-color-scheme: light) {
    /* 保持深色风格 */
}

/* —— 触摸设备优化 —— */
@media (hover: none) {
    .btn-primary:hover,
    .btn-ghost:hover,
    .platform-btn:hover,
    .service-option:hover,
    .qr-card:hover,
    .service-btn:hover {
        transform: none;
    }

    .nav-links a::after {
        display: none;
    }
}
