/* 移动端布局修复 - 全局优化 */

/* 基础重置和容器优化 */
@media (max-width: 992px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px !important;
        margin: 0 auto;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-title {
        font-size: 2rem !important;
    }

    .section-subtitle {
        font-size: 1rem !important;
        max-width: 90%;
        margin: 0 auto;
    }
}

/* Hero区域 - 强制单列并优化间距 */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center !important;
    }

    .hero-text {
        order: 2; /* 文本内容在图片下方 */
    }

    .hero-image {
        order: 1; /* 图片在文本内容上方 */
        margin: 0 auto;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-description {
        font-size: 1.1rem !important;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 350px;
        margin: 0 auto 2.5rem;
    }

    .hero-stats {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1rem;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-preview {
        padding: 1.5rem !important;
    }
}

/* 特性、价格、联系方式等网格布局改为单列 */
@media (max-width: 992px) {
    .features-grid,
    .pricing-grid,
    .contact-content,
    .footer-content {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid {
        gap: 2rem;
    }
}

/* 工作流程 - 从横向改为纵向 */
@media (max-width: 992px) {
    .workflow-steps {
        flex-direction: column;
        gap: 3rem;
    }

    .workflow-arrow {
        display: none;
    }
}

/* 小屏手机进一步优化 */
@media (max-width: 480px) {
    .container {
        padding: 0 15px !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    .hero-description {
        font-size: 1rem !important;
    }

    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .dashboard-preview {
        padding: 1.25rem !important;
    }

    .preview-stats-row {
        grid-template-columns: 1fr 1fr !important; /* Revert to horizontal layout */
        gap: 0.75rem; /* Adjust gap for smaller screens */
    }

    .footer-content {
        text-align: center;
    }
}

