/* ImageTwin 移动端优化样式 */

/* 移动端基础优化 */
@media (max-width: 768px) {
    /* 基础布局 */
    .container {
        padding: 0 15px;
    }
    
    /* 头部导航移动端优化 */
    .header {
        padding: 12px 0;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    /* Banner移动端优化 */
    .hero-banner {
        min-height: 100vh;
        padding: 20px 0;
    }
    
    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.3;
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    /* CTA按钮移动端优化 */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-bottom: 40px;
    }
    
    .cta-primary, .cta-secondary {
        width: 280px;
        padding: 16px 25px;
        font-size: 1rem;
        min-height: 48px; /* 确保最小点击目标 */
    }
    
    /* 信任指标移动端优化 */
    .trust-indicators {
        gap: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .trust-item {
        width: 100%;
        max-width: 200px;
    }
    
    .trust-number {
        font-size: 1.8rem !important;
    }
    
    /* 功能特色移动端优化 */
    .features-section h2 {
        font-size: 2rem !important;
        margin-bottom: 15px;
    }
    
    .features-section p {
        font-size: 1rem !important;
        margin-bottom: 40px;
    }
    
    .features-section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .features-section > .container > div > div {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .features-section h3 {
        font-size: 1.2rem !important;
        margin-bottom: 12px;
    }
    
    .features-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* 适用场景移动端优化 */
    .scenarios-section h2 {
        font-size: 2rem !important;
        margin-bottom: 40px;
    }
    
    .scenarios-section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .scenarios-section > .container > div > div {
        padding: 25px 20px;
    }
    
    /* 检测流程移动端优化 */
    .process-section h2 {
        font-size: 2rem !important;
        margin-bottom: 40px;
    }
    
    .process-section > .container > div {
        flex-direction: column;
        gap: 30px;
    }
    
    .process-section > .container > div > div {
        min-width: auto;
        width: 100%;
    }
    
    /* 价格方案移动端优化 */
    .pricing-section h2 {
        font-size: 2rem !important;
    }
    
    .pricing-section > .container > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .pricing-section button {
        min-height: 48px;
        font-size: 1rem;
    }
    
    /* 技术优势移动端优化 */
    .technology-section h2 {
        font-size: 2rem !important;
        margin-bottom: 40px;
    }
    
    .technology-section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .technology-section h3 {
        font-size: 1.5rem !important;
        margin-bottom: 20px;
    }
    
    .technology-section li {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .technology-section > .container > div > div:last-child > div {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    /* 成功案例移动端优化 */
    .cases-section h2 {
        font-size: 2rem !important;
        margin-bottom: 40px;
    }
    
    .cases-section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }
    
    .cases-section > .container > div > div {
        padding: 30px 20px;
    }
    
    /* FAQ移动端优化 */
    .faq-section h2 {
        font-size: 2rem !important;
        margin-bottom: 40px;
    }
    
    .faq-section h3 {
        font-size: 1.1rem !important;
    }
    
    .faq-section > .container > div > div > div:first-child {
        padding: 18px 15px;
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .faq-section > .container > div > div > div:last-child {
        padding: 18px 15px;
    }
    
    /* 关于我们移动端优化 */
    .about-section h2 {
        font-size: 2rem !important;
        margin-bottom: 40px;
    }
    
    .about-section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .about-section h3 {
        font-size: 1.4rem !important;
        margin-bottom: 20px;
    }
    
    .about-section > .container > div > div:last-child > div {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .about-section button {
        min-height: 48px;
        width: 100%;
    }
    
    /* 页脚移动端优化 */
    footer {
        padding: 40px 0 20px;
    }
    
    footer > .container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    footer h3 {
        font-size: 1.3rem;
    }
    
    footer h4 {
        font-size: 1.1rem;
    }
    
    footer ul li {
        line-height: 1.8;
    }
    
    /* 回到顶部按钮移动端优化 */
    #backToTop {
        bottom: 20px;
        right: 20px;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    /* 通用文本优化 */
    h1 { font-size: 2.2rem; line-height: 1.3; }
    h2 { font-size: 2rem; line-height: 1.3; }
    h3 { font-size: 1.4rem; line-height: 1.4; }
    h4 { font-size: 1.2rem; line-height: 1.4; }
    
    p { 
        font-size: 1rem; 
        line-height: 1.6; 
        margin-bottom: 15px;
    }
    
    /* 确保所有点击目标至少48px */
    button, .cta-primary, .cta-secondary, a {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* 表格移动端优化 */
    table {
        font-size: 0.9rem;
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    /* 图片响应式 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Logo移动端优化 */
    .logo img {
        height: 32px !important;
    }
    
    /* 技术优势部分图片 */
    .technology-section img {
        margin-top: 20px;
        border-radius: 8px;
    }
    
    /* FAQ部分图片布局 */
    .faq-section > .container > div {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    /* 成功案例合作伙伴logo */
    .cases-section img {
        height: 40px !important;
        margin: 10px;
    }
    
    /* 数据对比表格移动端 */
    .comparison-section > .container > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 40px;
    }
    
    .comparison-section table {
        font-size: 0.85rem;
    }
    
    .comparison-section th,
    .comparison-section td {
        padding: 12px 8px !important;
    }
    
    /* 学术出版商logo */
    .scenarios-section img {
        max-width: 90%;
        margin: 0 auto;
    }
}

/* 超小屏幕优化 (320px-480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .cta-primary, .cta-secondary {
        width: 260px;
        padding: 14px 20px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    section {
        padding: 60px 0 !important;
    }
    
    .trust-number {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.8rem !important;
    }
    
    .features-section > .container > div > div,
    .scenarios-section > .container > div > div,
    .cases-section > .container > div > div {
        padding: 25px 15px;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner {
        min-height: 100vh;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
    }
    
    .trust-indicators {
        flex-direction: row;
        justify-content: space-around;
    }
}

/* 触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .cta-primary:hover,
    .cta-secondary:hover,
    .detection-btn:hover {
        transform: none;
    }
    
    .cta-primary:active,
    .cta-secondary:active,
    .detection-btn:active {
        transform: scale(0.98);
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .hero-banner {
        background: #000;
        color: #fff;
    }
    
    .cta-primary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .cta-secondary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-banner::before {
        animation: none;
    }
    
    .cta-primary {
        animation: none;
    }
}
