/* ImageTwin 移动端专用样式 */

/* 移动端基础设置 */
@media screen and (max-width: 768px) {
    /* 基础字体和间距 */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* 容器和间距优化 */
    .grid-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .section-padding {
        padding: 2rem 0;
    }
    
    /* 标题优化 */
    h1 {
        font-size: 1.8rem !important;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.3rem;
        line-height: 1.4;
    }
    
    h4 {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    /* 段落和文本 */
    p {
        margin-bottom: 1rem;
        line-height: 1.6;
    }
    
    .lead {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    /* Hero Banner 移动端优化 */
    .hero-banner {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-banner h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-banner .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* CTA按钮移动端优化 */
    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0.5rem 0;
        padding: 1rem;
        font-size: 1rem;
        text-align: center;
        min-height: 48px;
        border-radius: 25px;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .button-group .cta-button {
        margin-bottom: 0;
    }
    
    /* 卡片组件移动端优化 */
    .feature-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .feature-card img {
        margin-bottom: 1rem;
    }
    
    /* 统计数据移动端优化 */
    .stats-counter {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    /* 确保移动端深色背景上的文字可见 */
    .stats-section .stats-counter {
        color: white !important;
    }
    
    .stats-section h4 {
        color: white !important;
    }
    
    .stats-section p {
        color: rgba(255,255,255,0.9) !important;
    }
    
    /* 价格卡片移动端优化 */
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card .price {
        font-size: 2.5rem !important;
    }
    
    /* 新导航栏移动端已在主CSS中定义 */
    
    /* 手风琴FAQ移动端优化 */
    .accordion-title {
        padding: 1rem;
        font-size: 1rem;
        line-height: 1.4;
        min-height: 48px;
    }
    
    .accordion-content {
        padding: 1rem;
    }
    
    /* 表格移动端优化 */
    table {
        font-size: 0.9rem;
    }
    
    table th,
    table td {
        padding: 0.5rem;
    }
    
    /* 图片响应式优化 */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* 合作伙伴logo移动端优化 */
    .partner-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .partner-logos img {
        margin: 0.5rem 0;
        height: 40px;
    }
    
    /* 证言卡片移动端优化 */
    .testimonial {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .testimonial blockquote {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* 页脚移动端优化 */
    footer {
        padding: 2rem 0 1rem;
    }
    
    footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    footer p,
    footer li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* 回到顶部按钮移动端优化 */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    /* 列表优化 */
    ul, ol {
        padding-left: 1.5rem;
    }
    
    ul li, ol li {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    /* Callout组件移动端优化 */
    .callout {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .callout h3,
    .callout h4,
    .callout h5 {
        margin-bottom: 0.5rem;
    }
    
    /* 移动端Callout文字颜色修复 */
    .callout.primary,
    .callout.secondary,
    .callout.success {
        color: #0a0a0a !important;
    }
    
    .callout.primary h1, .callout.primary h2, .callout.primary h3, .callout.primary h4,
    .callout.secondary h1, .callout.secondary h2, .callout.secondary h3, .callout.secondary h4,
    .callout.success h1, .callout.success h2, .callout.success h3, .callout.success h4 {
        color: #0a0a0a !important;
    }
    
    .callout.primary p,
    .callout.secondary p,
    .callout.success p {
        color: #0a0a0a !important;
    }
    
    /* 网格系统移动端优化 */
    .grid-x > .cell {
        margin-bottom: 1rem;
    }
    
    /* 表单元素移动端优化 */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    textarea,
    select {
        font-size: 16px; /* 防止iOS缩放 */
        padding: 0.75rem;
        min-height: 48px;
    }
    
    /* 按钮通用移动端优化 */
    .button {
        min-height: 48px;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .button.large {
        min-height: 52px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* 间距调整 */
    .grid-margin-x > .cell {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* 文本对齐 */
    .text-center {
        text-align: center;
    }
    
    /* 隐藏不必要的装饰元素 */
    .ribbon {
        font-size: 0.8rem;
        padding: 3px 10px;
    }
    
    /* 优化触摸目标 */
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* 改善可读性 */
    .small-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* 优化视觉层次 */
    .hero-stats {
        margin-top: 1rem;
        font-size: 0.9rem;
    }
    
    /* 移动端特定的间距 */
    .mobile-spacing {
        margin: 1rem 0;
    }
    
    /* 优化长文本显示 */
    .long-text {
        word-wrap: break-word;
        hyphens: auto;
    }
}

/* 超小屏幕优化 (320px-480px) */
@media screen and (max-width: 480px) {
    .grid-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-banner {
        padding: 1.5rem 0;
    }
    
    .hero-banner h1 {
        font-size: 1.6rem;
    }
    
    .stats-counter {
        font-size: 1.8rem;
    }
    
    /* 超小屏幕统计数据颜色确保 */
    .stats-section .stats-counter {
        color: white !important;
    }
    
    .pricing-card .price {
        font-size: 2rem !important;
    }
    
    .feature-card {
        padding: 1rem;
    }
    
    .section-padding {
        padding: 1.5rem 0;
    }
}

/* 横屏模式优化 */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-banner {
        padding: 1rem 0;
    }
    
    .section-padding {
        padding: 1.5rem 0;
    }
}

/* 高DPI屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cta-button {
        border: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
    .feature-card {
        background: #2c3e50;
        color: white;
    }
    
    .callout {
        background: #34495e;
        color: white;
    }
}

/* 减少动画效果（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 打印样式 */
@media print {
    .cta-button,
    .back-to-top,
    .navbar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}