/* ImageTwin 移动端专用CSS优化 */

/* 移动端核心优化 */
@media (max-width: 768px) {
    /* 基础字体和间距优化 */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 点击目标最小尺寸 */
    button, a, input, select, textarea {
        min-height: 48px;
        min-width: 48px;
    }

    /* 容器内边距 */
    .container {
        padding: 0 16px;
    }

    /* 段落间距增加 */
    p {
        margin-bottom: 16px;
        line-height: 1.7;
    }

    /* 标题优化 */
    h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    h2 {
        font-size: 24px;
        line-height: 1.4;
        margin-bottom: 14px;
    }

    h3 {
        font-size: 20px;
        line-height: 1.4;
        margin-bottom: 12px;
    }

    /* Banner移动端优化 */
    .banner {
        padding: 40px 0;
        min-height: auto;
    }

    .banner h1 {
        font-size: 26px;
        margin-bottom: 16px;
        line-height: 1.4;
    }

    .banner-desc {
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.6;
    }

    .trust-badges {
        flex-direction: column;
        gap: 12px;
        margin: 24px 0;
    }

    .trust-badge {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    /* CTA按钮移动端优化 */
    .cta-group {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 17px;
        font-weight: 700;
        border-radius: 50px;
        /* 确保按钮可点击性 */
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .btn:active {
        transform: scale(0.98);
    }

    /* 社会证明文字 */
    .social-proof {
        font-size: 14px;
        margin-top: 24px;
        line-height: 1.6;
    }

    .social-proof strong {
        font-size: 16px;
    }

    /* 区块间距 */
    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 32px;
    }

    .section-header h2 {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .section-header p {
        font-size: 15px;
        line-height: 1.6;
    }

    /* 特性卡片移动端 */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
        margin-bottom: 16px;
    }

    .feature-card h3 {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .feature-card p {
        font-size: 15px;
        margin-bottom: 8px;
        line-height: 1.6;
    }

    .feature-list {
        margin-top: 12px;
    }

    .feature-list li {
        font-size: 14px;
        padding: 6px 0 6px 24px;
        line-height: 1.5;
    }

    /* 统计数据移动端 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-box {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 32px;
        margin-bottom: 6px;
    }

    .stat-label {
        font-size: 13px;
        line-height: 1.4;
    }

    /* 流程时间线移动端 */
    .process-timeline {
        padding: 0;
    }

    .timeline-item {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-bottom: 28px;
    }

    .timeline-number {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .timeline-content {
        width: 100%;
        padding: 20px 18px;
    }

    .timeline-content h3 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .timeline-content p {
        font-size: 14px;
        margin-bottom: 6px;
        line-height: 1.6;
    }

    /* 表格移动端优化 */
    .comparison-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -16px;
        padding: 0 16px;
    }

    table {
        font-size: 13px;
        min-width: 600px;
    }

    th, td {
        padding: 12px 8px;
        font-size: 13px;
    }

    th {
        font-size: 14px;
        white-space: nowrap;
    }

    /* FAQ移动端 */
    .faq-container {
        width: 100%;
    }

    .faq-item {
        margin-bottom: 12px;
    }

    .faq-question {
        padding: 16px 18px;
    }

    .faq-question h3 {
        font-size: 16px;
        line-height: 1.4;
        padding-right: 10px;
    }

    .faq-toggle {
        font-size: 20px;
        flex-shrink: 0;
    }

    .faq-answer-content {
        padding: 0 18px 16px 18px;
    }

    .faq-answer p {
        font-size: 14px;
        margin-bottom: 8px;
        line-height: 1.6;
    }

    /* 图片展示移动端 */
    .image-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .showcase-item {
        border-radius: 8px;
    }

    .showcase-caption {
        padding: 14px;
        font-size: 14px;
    }

    /* 合作伙伴移动端 */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .partner-logo {
        padding: 16px;
        height: 70px;
    }

    .partner-logo img {
        max-height: 45px;
    }

    /* CTA区块移动端 */
    .cta-section {
        padding: 50px 20px;
    }

    .cta-section h2 {
        font-size: 26px;
        margin-bottom: 16px;
    }

    .cta-section p {
        font-size: 16px;
        margin-bottom: 28px;
    }

    /* Footer移动端 */
    footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 14px;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 14px;
        line-height: 1.6;
    }

    .footer-section ul li {
        margin-bottom: 8px;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 13px;
        line-height: 1.6;
    }

    /* 返回顶部按钮移动端 */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

    /* 导航菜单移动端 */
    nav.active {
        left: 0;
    }

    nav ul {
        gap: 0;
    }

    nav ul li {
        border-bottom: 1px solid var(--border);
    }

    nav ul li:last-child {
        border-bottom: none;
    }

    nav a {
        padding: 16px 0;
        font-size: 16px;
    }

    /* 触摸优化 */
    a, button, .faq-question, .showcase-item {
        -webkit-tap-highlight-color: rgba(26, 95, 63, 0.1);
    }

    /* 安全区域适配 */
    @supports (padding: max(0px)) {
        body {
            padding-left: max(0px, env(safe-area-inset-left));
            padding-right: max(0px, env(safe-area-inset-right));
        }

        header,
        .banner,
        section,
        footer {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }

        .back-to-top {
            right: max(20px, calc(env(safe-area-inset-right) + 20px));
            bottom: max(20px, calc(env(safe-area-inset-bottom) + 20px));
        }
    }

    /* 横屏优化 */
    @media (orientation: landscape) and (max-height: 500px) {
        .banner {
            padding: 30px 0;
        }

        .banner h1 {
            font-size: 24px;
        }

        .banner-desc {
            font-size: 15px;
            margin-bottom: 20px;
        }

        .trust-badges {
            flex-direction: row;
            flex-wrap: wrap;
            gap: 10px;
        }

        section {
            padding: 35px 0;
        }
    }
}

/* 小屏手机优化 (320px-375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .banner h1 {
        font-size: 24px;
    }

    .banner-desc {
        font-size: 15px;
    }

    .btn {
        padding: 14px 20px;
        font-size: 16px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .feature-card {
        padding: 20px 16px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 12px;
    }

    table {
        font-size: 12px;
    }

    th, td {
        padding: 10px 6px;
    }
}

/* 性能优化 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
    /* 未来扩展：暗黑模式样式 */
}
