/* 家长端响应式设计 */

/* 移动端隐藏侧边栏 */
@media (max-width: 768px) {
    aside {
        transform: translateX(-100%);
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    aside.open {
        transform: translateX(0);
    }
    main {
        margin-left: 0 !important;
        padding: 1rem !important;
    }
    .mobile-menu-btn {
        display: flex !important;
    }
    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .grid.grid-cols-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .overflow-x-auto {
        overflow-x: auto;
    }
    table {
        font-size: 0.875rem;
    }
    #trendChart, #radarChart {
        height: 300px !important;
        width: 100% !important;
    }
    header h2 {
        font-size: 1.25rem !important;
    }
    header p {
        display: none;
    }
    input, select, textarea {
        font-size: 16px !important;
    }
    button, .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
}

/* 平板适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .grid.grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    aside {
        width: 16rem !important;
    }
    main {
        margin-left: 16rem !important;
    }
}

/* 汉堡菜单按钮 */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 遮罩层 */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}
.sidebar-overlay.show {
    display: block;
}

/* 登录页响应式 */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem !important;
    }
    .login-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}
