/* 响应式样式 - 移动端优化 */

/* 平板端响应式 */
@media (max-width: 992px) and (min-width: 769px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .download-card,
    .pricing-card,
    .feature {
        flex-basis: calc(50% - 20px);
    }
}

/* 移动端响应式 */
@media (max-width: 768px) {
    /* 容器调整 */
    .container {
        width: 100%;
        padding: 0 15px;
    }

    /* 页面标题调整 */
    .page-title {
        padding: var(--spacing-lg) 0;
    }

    .page-title h1 {
        font-size: 24px;
    }

    .page-title p {
        font-size: 14px;
    }

    /* 导航调整 */
    .nav-links {
        display: flex;
        position: absolute;
        top: 70px;
        left: -100%;
        width: 100%;
        background-color: var(--card-bg);
        flex-direction: column;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 100;
        transition: left 0.3s ease;
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        border-bottom: none;
        font-size: 16px;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
    }

    /* Menu Toggle Animation */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* 按钮调整 */
    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        margin-bottom: 10px;
    }

    .hero {
        padding: var(--spacing-lg) 0;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero p {
        font-size: 16px;
        line-height: 1.6;
    }

    /* 卡片调整 */
    .card {
        padding: var(--spacing-md);
        margin-bottom: var(--spacing-md);
    }

    .card h2 {
        font-size: 20px;
    }

    .card h3 {
        font-size: 18px;
    }

    /* 布局调整 */
    .footer-content {
        grid-template-columns: 1fr;
    }

    .download-card,
    .pricing-card,
    .feature {
        flex-basis: 100%;
        margin-bottom: 20px;
    }

    .contact-info,
    .contact-form {
        flex-basis: 100%;
        margin-bottom: 30px;
    }

    /* 表单调整 */
    .form-control {
        padding: 12px;
        font-size: 16px;
    }

    /* FAQ调整 */
    .faq-question {
        padding: 12px;
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }

    /* 表格优化 */
    table {
        font-size: 14px;
    }

    table th,
    table td {
        padding: 8px 10px;
    }

    /* 优化触摸目标 */
    a,
    button,
    input,
    select,
    textarea {
        min-height: 44px;
        min-width: 44px;
    }

    /* 提示框调整 */
    .tips,
    .warning,
    .danger {
        font-size: 14px;
        padding: 12px;
    }
}

/* 小屏幕优化 */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .page-title h1 {
        font-size: 20px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero p {
        font-size: 14px;
    }

    .card {
        padding: var(--spacing-sm);
    }

    .card h2 {
        font-size: 18px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial {
        padding: 20px;
    }

    .logo {
        font-size: 18px;
    }

    .btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

/* 横屏优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 20px 0;
    }

    .hero h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .page-title {
        padding: 20px 0;
    }
}
