/* ImageTwin 移动端专用样式 */
/* 针对移动设备的深度优化 - 大拇指友好设计 */

/* ==================== 移动端基础优化 ==================== */
@media (max-width: 768px) {
    
    /* 基础字体和间距优化 */
    html {
        font-size: 16px; /* 确保最小字号 */
    }
    
    body {
        font-size: 1rem;
        line-height: 1.6;
        -webkit-text-size-adjust: 100%;
        -webkit-font-smoothing: antialiased;
    }
    
    /* 容器优化 */
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    /* 标题优化 */
    .section-title {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    /* ==================== 导航优化 ==================== */
    .header {
        padding: 0.5rem 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .navbar .container {
        padding: 0 1rem;
    }
    
    .nav-brand .logo {
        height: 35px;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        gap: 0.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        text-align: center;
        min-height: 48px; /* 最小点击目标 */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        gap: 4px;
        padding: 8px;
        min-width: 48px;
        min-height: 48px;
        align-items: center;
        justify-content: center;
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: var(--primary-blue);
        transition: all 0.3s ease;
        border-radius: 2px;
    }
    
    /* ==================== 首屏Banner移动端优化 ==================== */
    .hero-banner {
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 320px;
        min-height: 48px;
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        border-radius: 12px;
    }
    
    .trust-badge {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 1rem;
        text-align: center;
    }
    
    /* ==================== 快速导航移动端 ==================== */
    .quick-nav {
        padding: 1.5rem 0;
    }
    
    .nav-pills {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .pill-link {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        padding: 1rem 1.5rem;
        justify-content: center;
        font-size: 1rem;
    }
    
    /* ==================== 内容区域移动端优化 ==================== */
    .pain-points,
    .solution,
    .features,
    .how-it-works,
    .pricing,
    .trust-section,
    .scenarios,
    .advantages,
    .faq,
    .tips {
        padding: 3rem 0;
    }
    
    /* 痛点区域 */
    .pain-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .pain-item {
        padding: 2rem 1.5rem;
        text-align: center;
    }
    
    .pain-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .pain-item h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .pain-item p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .stats-highlight {
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* 解决方案区域 */
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .solution-item {
        border-radius: 12px;
    }
    
    .solution-content {
        padding: 1.5rem;
    }
    
    .solution-content h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    /* 功能特色区域 */
    .features-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .feature-demo {
        order: -1; /* 图片在上方 */
        border-radius: 12px;
    }
    
    .feature-list {
        gap: 1.5rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
        background: var(--light-gray);
        border-radius: 12px;
    }
    
    .feature-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto;
    }
    
    /* 检测流程区域 */
    .steps-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .step-item {
        text-align: center;
        padding: 1.5rem;
        background: var(--white);
        border-radius: 12px;
        box-shadow: var(--shadow-md);
    }
    
    .step-arrow {
        display: none;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .demo-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .demo-img {
        order: -1;
        border-radius: 12px;
    }
    
    .demo-info {
        text-align: center;
    }
    
    .demo-link {
        display: inline-flex;
        width: 100%;
        max-width: 280px;
        justify-content: center;
        min-height: 48px;
    }
    
    /* ==================== 价格区域移动端 ==================== */
    .pricing-card {
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .price-header {
        padding: 2rem 1.5rem;
    }
    
    .price-amount .amount {
        font-size: 3rem;
    }
    
    .price-features {
        padding: 1.5rem;
    }
    
    .feature-check {
        padding: 1rem 0;
        font-size: 1rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        min-width: 80px;
    }
    
    .pricing-cta {
        margin: 1.5rem;
        width: calc(100% - 3rem);
        font-size: 1.1rem;
        padding: 1rem;
        min-height: 48px;
    }
    
    /* ==================== 信任背书移动端 ==================== */
    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .trust-stat {
        padding: 1.5rem 1rem;
        text-align: center;
    }
    
    .trust-stat .stat-number {
        font-size: 2rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .partner-item {
        height: 70px;
        padding: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-item {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    /* ==================== FAQ移动端优化 ==================== */
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .faq-category {
        border-radius: 12px;
    }
    
    .faq-items {
        padding: 1rem;
    }
    
    .faq-item {
        padding: 1rem 0;
    }
    
    .faq-question {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .faq-answer {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .faq-cta {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }
    
    /* ==================== 最终CTA移动端 ==================== */
    .final-cta {
        padding: 3rem 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .cta-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-feature {
        font-size: 1rem;
        justify-content: center;
    }
    
    .final-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .final-cta-btn {
        width: 100%;
        max-width: 320px;
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        min-height: 48px;
    }
    
    /* ==================== 页脚移动端 ==================== */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        padding: 0 1rem;
    }
    
    .footer-logo {
        margin: 0 auto 1rem;
        display: block;
    }
    
    .footer-desc {
        text-align: left;
        font-size: 0.9rem;
    }
    
    .footer-links {
        text-align: left;
    }
    
    .footer-links li {
        margin-bottom: 0.75rem;
    }
    
    .footer-links a {
        font-size: 1rem;
        min-height: 44px;
        display: inline-block;
        padding: 0.5rem 0;
    }
    
    .contact-info p {
        margin-bottom: 0.75rem;
        font-size: 1rem;
        text-align: left;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding-top: 1.5rem;
    }
    
    .footer-certifications {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .cert-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
}

/* ==================== 超小屏幕优化 ==================== */
@media (max-width: 480px) {
    
    .container {
        padding: 0 0.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .trust-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-subtitle {
        font-size: 0.95rem;
    }
    
    .price-amount .amount {
        font-size: 2.5rem;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
        min-width: 70px;
    }
}

/* ==================== 触摸优化 ==================== */
@media (hover: none) and (pointer: coarse) {
    
    /* 移除hover效果，使用active状态 */
    .btn-primary:hover,
    .btn-secondary:hover,
    .nav-link:hover,
    .pill-link:hover {
        transform: none;
        box-shadow: inherit;
    }
    
    .btn-primary:active {
        transform: scale(0.95);
    }
    
    .btn-secondary:active {
        transform: scale(0.95);
    }
    
    .nav-link:active {
        background: var(--pale-blue);
    }
    
    .pill-link:active {
        transform: scale(0.95);
    }
    
    /* 增加点击反馈 */
    .pain-item:active,
    .solution-item:active,
    .testimonial-item:active {
        transform: scale(0.98);
    }
}

/* ==================== 可访问性优化 ==================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-banner::before {
        background: none;
    }
}

/* 确保移动端所有内容直接显示 */
@media (max-width: 768px) {
    .pain-item,
    .solution-item,
    .feature-item,
    .step-item,
    .pricing-card,
    .testimonial-item,
    .scenario-item,
    .advantage-item,
    .faq-category,
    .tip-item {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
    
    .btn-secondary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
}

/* ==================== 粘性CTA按钮 ==================== */
@media (max-width: 768px) {
    .sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 1rem;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        display: none; /* 默认隐藏，通过JS控制显示 */
    }
    
    .sticky-cta.show {
        display: block;
    }
    
    .sticky-cta .btn-primary {
        width: 100%;
        margin: 0;
        font-size: 1.1rem;
        padding: 1rem;
        min-height: 48px;
    }
    
    /* 为粘性按钮预留空间 */
    body.has-sticky-cta {
        padding-bottom: 80px;
    }
}

/* ==================== 性能优化 ==================== */
@media (max-width: 768px) {
    
    /* 减少阴影复杂度 */
    .pain-item,
    .solution-item,
    .testimonial-item,
    .pricing-card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* 简化渐变 */
    .hero-banner {
        background: var(--pale-blue);
    }
    
    .final-cta {
        background: var(--primary-blue);
    }
    
    /* 优化图片加载 */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
