/* 响应式样式 */

/* 大型设备 (大型笔记本和台式机, 1200px 以上) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 中型设备 (笔记本, 992px 到 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }
}

/* 小型设备 (平板电脑, 768px 到 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .hero .container,
    .download-app .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content,
    .download-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .app-buttons {
        justify-content: center;
    }

    .testimonial {
        flex: 0 0 calc(100% - 30px);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* 超小型设备 (手机, 767px 以下) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    header .container {
        position: relative;
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: var(--shadow);
        padding: 20px;
        flex-direction: column;
        z-index: 1000;
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu li {
        margin: 10px 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .language-selector {
        margin-left: 15px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .app-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .features-grid,
    .hairstyles-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        margin-top: 15px;
    }

    .footer-bottom-links a {
        margin: 0 10px;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }
}

/* 极小型设备 (小型手机, 575px 以下) */
@media (max-width: 575px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .feature-card,
    .hairstyle-card,
    .blog-card,
    .testimonial {
        padding: 20px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 30px;
    }

    .newsletter-form button {
        margin-top: 10px;
    }
}