/* 移动端响应式样式 */

@media (max-width: 768px) {
    /* 基础布局 */
    body {
        font-size: 16px;
        line-height: 1.6;
    }

    .container {
        padding: 0 15px;
    }

    /* 头部导航 */
    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .logo {
        font-size: 20px;
    }

    .logo img {
        height: 35px;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    nav a {
        display: block;
        padding: 10px 0;
    }

    /* Banner区域 */
    .banner {
        padding: 50px 0;
    }

    .banner h1 {
        font-size: 28px;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .banner p {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 14px 30px;
        font-size: 16px;
    }

    /* 统计数据 */
    .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;
    }

    /* 章节标题 */
    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* 网格布局 */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 卡片 */
    .card {
        padding: 20px;
    }

    .card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .card p,
    .card li {
        font-size: 15px;
    }

    .icon {
        font-size: 36px;
        margin-bottom: 15px;
    }

    /* 表格 */
    table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th,
    td {
        padding: 10px 8px;
        font-size: 13px;
    }

    /* FAQ */
    .faq-item {
        padding: 18px;
    }

    .faq-question {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 15px;
        margin-top: 12px;
    }

    /* 用户评价 */
    .testimonial {
        padding: 20px;
    }

    .testimonial p {
        font-size: 15px;
    }

    .testimonial-icon {
        width: 40px;
        height: 40px;
        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: 30px;
    }

    .footer-section h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .footer-section a,
    .footer-section li {
        font-size: 14px;
        line-height: 1.8;
    }

    .footer-bottom {
        padding-top: 20px;
        font-size: 13px;
    }

    /* 回到顶部按钮 */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }

    /* 图片响应式 */
    img {
        max-width: 100%;
        height: auto;
    }

    /* 最终CTA区域 */
    #cta-final h2 {
        font-size: 26px;
    }

    #cta-final p {
        font-size: 16px;
    }

    /* 点击目标优化 */
    a,
    button,
    .faq-question {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* 文字可读性 */
    p {
        margin-bottom: 15px;
    }

    ul,
    ol {
        margin-left: 18px;
    }

    li {
        margin-bottom: 8px;
    }

    /* 间距优化 */
    .card + .card {
        margin-top: 20px;
    }

    /* 表格滚动提示 */
    table {
        box-shadow: 0 0 0 1px #e2e8f0;
    }

    /* 横向滚动容器 */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 小屏手机优化 (≤375px) */
@media (max-width: 375px) {
    .banner h1 {
        font-size: 24px;
    }

    .section-title {
        font-size: 22px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 12px 25px;
        font-size: 15px;
    }

    .card {
        padding: 18px;
    }

    th,
    td {
        padding: 8px 6px;
        font-size: 12px;
    }
}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
    .banner {
        padding: 35px 0;
    }

    .banner h1 {
        font-size: 24px;
    }

    section {
        padding: 35px 0;
    }

    .stats {
        padding: 30px 0;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    /* 增大点击区域 */
    a,
    button {
        padding: 12px 20px;
    }

    /* 移除hover效果 */
    .card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* 优化触摸反馈 */
    a:active,
    button:active {
        opacity: 0.7;
    }
}
