/* ImageTwin 移动端优化样式 */

@media (max-width: 768px) {
    /* 基础排版优化 */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .container {
        padding: 0 15px;
    }

    /* 头部导航优化 */
    header {
        padding: 12px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .logo {
        font-size: 20px;
    }

    .logo img {
        height: 38px;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
        justify-content: space-around;
    }

    nav a {
        font-size: 14px;
    }

    /* Banner优化 */
    .banner {
        padding: 50px 0;
    }

    .banner h1 {
        font-size: 26px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .banner p {
        font-size: 15px;
        margin-bottom: 25px;
        line-height: 1.7;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 15px;
    }

    /* 章节标题优化 */
    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* 网格布局优化 */
    .grid {
        gap: 20px;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    /* 卡片优化 */
    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .card p,
    .card li {
        font-size: 15px;
        line-height: 1.7;
    }

    .icon {
        font-size: 40px;
        margin-bottom: 15px;
    }

    /* 统计数据优化 */
    .stats {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .stat-item p {
        font-size: 14px;
    }

    /* 表格优化 */
    table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    th,
    td {
        padding: 10px 8px;
        min-width: 100px;
    }

    th {
        font-size: 13px;
    }

    /* FAQ优化 */
    .faq-item {
        padding: 18px;
    }

    .faq-question {
        font-size: 16px;
        line-height: 1.4;
    }

    .faq-answer {
        font-size: 15px;
        margin-top: 12px;
    }

    /* 评价卡片优化 */
    .testimonial {
        padding: 20px;
    }

    .testimonial p {
        font-size: 15px;
        line-height: 1.7;
    }

    .testimonial-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .author-info h4 {
        font-size: 15px;
    }

    .author-info p {
        font-size: 13px;
    }

    /* 合作伙伴优化 */
    .partners {
        gap: 25px;
    }

    .partner-logo {
        height: 45px;
    }

    /* 页脚优化 */
    footer {
        padding: 35px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-section a,
    .footer-section li {
        font-size: 14px;
        line-height: 1.8;
    }

    .footer-bottom {
        font-size: 13px;
        padding-top: 20px;
    }

    /* 回到顶部按钮优化 */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

    /* 最终CTA区域优化 */
    #final-cta h2 {
        font-size: 26px;
        line-height: 1.3;
    }

    #final-cta p {
        font-size: 16px;
    }

    /* 触摸优化 */
    a,
    button,
    .faq-item,
    .card {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }

    /* 最小点击目标 */
    button,
    a,
    .faq-question {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* 图片响应式 */
    img {
        max-width: 100%;
        height: auto;
    }

    /* 文字选择优化 */
    * {
        -webkit-user-select: text;
        user-select: text;
    }

    /* 输入框优化（如果有表单） */
    input,
    textarea,
    select {
        font-size: 16px; /* 防止iOS自动缩放 */
    }
}

/* 小屏幕手机优化 (≤375px) */
@media (max-width: 375px) {
    .banner h1 {
        font-size: 23px;
    }

    .section-title {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item h3 {
        font-size: 32px;
    }

    .card {
        padding: 18px;
    }

    table {
        font-size: 13px;
    }

    th,
    td {
        padding: 8px 6px;
        min-width: 80px;
    }
}
