/* 响应式布局样式 */

/* 大屏幕设备 (1200px 以上) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* 中等屏幕设备 (992px - 1199px) */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
}

/* 平板设备 (768px - 991px) */
@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .nav-toggle {
        display: block;
    }

    .guide-grid,
    .management-grid,
    .nutrition-grid,
    .prevention-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-grid {
        font-size: 0.9rem;
    }

    .calendar-day {
        min-height: 60px;
    }
}

/* 手机设备 (576px - 767px) */
@media screen and (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .page-header {
        padding: 6rem 1rem 3rem;
    }

    .header-cta {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .guide-grid,
    .management-grid,
    .nutrition-grid,
    .prevention-grid {
        grid-template-columns: 1fr;
    }

    .selector-group {
        flex-wrap: wrap;
    }

    .selector-btn {
        width: 100%;
    }

    .calendar-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .calendar-day {
        min-height: auto;
        padding: 1rem;
    }

    .calendar-legend {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

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

/* 小屏手机设备 (575px 以下) */
@media screen and (max-width: 575px) {
    .container {
        width: 100%;
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .page-header {
        padding: 5rem 1rem 2rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .exercise-card .img-container {
        height: 150px;
    }
}

/* 打印样式 */
@media print {
    .nav-toggle,
    .header-cta,
    .footer {
        display: none;
    }

    .container {
        max-width: none;
        width: 100%;
        padding: 0;
    }

    .page-header {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .guide-grid,
    .management-grid,
    .nutrition-grid,
    .prevention-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .calendar-grid {
        page-break-inside: avoid;
    }
} 