/* 手机端适配样式 - 雏鹰俱乐部后台通用 */

/* 菜单切换按钮 */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #1890ff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* 手机端适配 */
@media (max-width: 768px) {
    /* 侧边栏适配 */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    /* 主内容区适配 */
    .main-content {
        margin-left: 0 !important;
        padding: 60px 15px 15px !important;
    }
    
    /* 显示菜单按钮 */
    .menu-toggle {
        display: block;
    }
    
    /* 登录页面适配 */
    .login-container {
        margin: 50px auto !important;
        padding: 20px !important;
        width: 90% !important;
    }
    
    /* 内容卡片适配 */
    .content-card {
        padding: 15px !important;
    }
    
    /* 文章列表适配 */
    .article-list {
        gap: 10px;
    }
    
    .article-item {
        padding: 15px !important;
    }
    
    .article-avatar {
        width: 50px !important;
        height: 50px !important;
        margin-right: 15px !important;
    }
    
    /* 表单适配 */
    .form-section {
        margin-bottom: 15px !important;
    }
    
    .form-section input,
    .form-section textarea {
        font-size: 16px; /* 防止 iOS 自动缩放 */
    }
    
    /* 按钮适配 */
    .btn-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
    
    /* 编辑器适配 */
    .ql-toolbar {
        font-size: 14px;
    }
    
    .ql-container {
        min-height: 300px;
    }
    
    /* 消息提示适配 */
    .success-msg,
    .error-msg {
        padding: 10px !important;
        font-size: 14px;
    }
    
    /* 头部适配 */
    .content-header {
        padding: 15px !important;
        flex-direction: column;
        gap: 10px;
    }
    
    .content-header h2 {
        font-size: 18px !important;
    }
    
    .breadcrumb {
        font-size: 12px;
    }
}

/* 遮罩层（手机端菜单打开时） */
.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;
}
