/* ===========================================================
   admin.css · 从 admin/index.html <style> 块中抽出（所有组件样式）
   =========================================================== */

/* ---------- STYLE #1 attrs:  ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
        html, body, #app { height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; }
        .login-page {
            display: flex; align-items: center; justify-content: center;
            height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            position: relative; overflow: hidden;
        }
        .login-page::before {
            content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
            background: rgba(255,255,255,0.1); top: -200px; right: -200px;
        }
        .login-page::after {
            content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
            background: rgba(255,255,255,0.08); bottom: -100px; left: -100px;
        }
        .login-card {
            width: 420px; background: #fff; border-radius: 16px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 48px 40px;
            position: relative; z-index: 1;
        }
        .login-logo {
            width: 72px; height: 72px; margin: 0 auto 20px;
            background: linear-gradient(135deg, #667eea, #764ba2); border-radius: 16px;
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 32px; font-weight: bold;
            box-shadow: 0 8px 24px rgba(102,126,234,0.4);
        }
        .login-title { text-align: center; font-size: 22px; font-weight: 600; color: #1a1a2e; margin-bottom: 8px; }
        .login-subtitle { text-align: center; font-size: 14px; color: #8c8c8c; margin-bottom: 32px; }
        .admin-layout { display: flex; height: 100%; background: #f0f2f5; }
        .sidebar {
            width: 240px; background: #001529; display: flex; flex-direction: column;
            transition: width 0.3s ease; overflow: hidden; flex-shrink: 0;
        }
        .sidebar.collapsed { width: 64px; }
        .sidebar-logo {
            height: 64px; display: flex; align-items: center; justify-content: center;
            border-bottom: 1px solid rgba(255,255,255,0.06); flex-shrink: 0;
            color: #fff; font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden;
        }
        .sidebar-logo-icon {
            width: 36px; height: 36px; background: linear-gradient(135deg, #1890ff, #096dd9);
            border-radius: 8px; display: flex; align-items: center; justify-content: center;
            font-size: 18px; flex-shrink: 0;
        }
        .sidebar-menu { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px 0; }
        .sidebar-menu::-webkit-scrollbar { width: 6px; }
        .sidebar-menu::-webkit-scrollbar-track { background: transparent; }
        .sidebar-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
        .menu-group-title {
            padding: 12px 24px 8px; font-size: 12px; color: rgba(255,255,255,0.45);
            text-transform: uppercase; letter-spacing: 1px; white-space: nowrap;
        }
        .menu-item {
            display: flex; align-items: center; gap: 12px; padding: 0 24px;
            height: 44px; color: rgba(255,255,255,0.75); cursor: pointer;
            transition: all 0.2s; position: relative; white-space: nowrap;
            margin: 2px 8px; border-radius: 6px;
        }
        .menu-item:hover { color: #fff; background: rgba(255,255,255,0.08); }
        .menu-item.active { color: #fff; background: #1890ff; }
        .menu-item .el-icon { font-size: 18px; flex-shrink: 0; }
        .menu-item span { font-size: 14px; flex: 1; }
        .sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.06); flex-shrink: 0; }
        .user-info {
            display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85);
            cursor: pointer; padding: 8px; border-radius: 8px; transition: background 0.2s;
        }
        .user-info:hover { background: rgba(255,255,255,0.08); }
        .user-avatar {
            width: 36px; height: 36px; border-radius: 50%;
            background: linear-gradient(135deg, #1890ff, #096dd9);
            display: flex; align-items: center; justify-content: center;
            color: #fff; font-size: 16px; font-weight: 500; flex-shrink: 0;
        }
        .user-details { flex: 1; overflow: hidden; }
        .user-name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .user-role { font-size: 12px; color: rgba(255,255,255,0.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .main-wrapper { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
        .top-header {
            height: 64px; background: #fff; display: flex; align-items: center;
            justify-content: space-between; padding: 0 24px;
            border-bottom: 1px solid #f0f0f0; flex-shrink: 0;
        }
        .top-header-left { display: flex; align-items: center; gap: 16px; }
        .collapse-btn {
            width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
            border-radius: 6px; cursor: pointer; color: #595959; transition: all 0.2s; font-size: 20px;
        }
        .collapse-btn:hover { background: #f0f0f0; color: #1890ff; }
        .breadcrumb { font-size: 14px; color: #595959; }
        .breadcrumb .current { color: #262626; font-weight: 500; }
        .top-header-right { display: flex; align-items: center; gap: 16px; }
        .header-icon {
            width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
            border-radius: 6px; cursor: pointer; color: #595959; font-size: 18px;
            transition: all 0.2s; position: relative;
        }
        .header-icon:hover { background: #f0f0f0; color: #1890ff; }
        .badge-dot { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; background: #ff4d4f; border-radius: 50%; }
        .content-area { flex: 1; padding: 24px; overflow-y: auto; }
        .page-header { margin-bottom: 24px; }
        .page-title { font-size: 22px; font-weight: 600; color: #1a1a2e; margin-bottom: 6px; }
        .page-desc { font-size: 14px; color: #8c8c8c; }
        .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
        .stat-card {
            background: #fff; border-radius: 12px; padding: 24px; display: flex;
            align-items: center; gap: 16px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            transition: all 0.3s; border: 1px solid #f0f0f0;
        }
        .stat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
        .stat-icon {
            width: 56px; height: 56px; border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 24px; color: #fff; flex-shrink: 0;
        }
        .stat-icon.blue { background: linear-gradient(135deg, #1890ff, #096dd9); }
        .stat-icon.green { background: linear-gradient(135deg, #52c41a, #389e0d); }
        .stat-icon.orange { background: linear-gradient(135deg, #fa8c16, #d46b08); }
        .stat-icon.purple { background: linear-gradient(135deg, #722ed1, #531dab); }
        .stat-info { flex: 1; min-width: 0; }
        .stat-value { font-size: 28px; font-weight: 600; color: #1a1a2e; line-height: 1.2; margin-bottom: 4px; }
        .stat-label { font-size: 14px; color: #8c8c8c; }
        .page-card {
            background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            border: 1px solid #f0f0f0; margin-bottom: 24px; overflow: hidden;
        }
        .card-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 20px 24px; border-bottom: 1px solid #f0f0f0;
        }
        .card-title {
            font-size: 16px; font-weight: 600; color: #1a1a2e;
            display: flex; align-items: center; gap: 8px;
        }
        .card-title::before { content: ''; width: 4px; height: 16px; background: #1890ff; border-radius: 2px; }
        .card-actions { display: flex; gap: 12px; align-items: center; }
        .card-body { padding: 20px 24px; }
        .table-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
        .pagination-wrap {
            display: flex; justify-content: flex-end; margin-top: 20px;
            padding-top: 16px; border-top: 1px solid #f0f0f0;
        }
        .quill-editor {
            width: 100% !important;
            border: 1px solid #dcdfe6 !important;
            border-radius: 4px !important;
            box-sizing: border-box !important;
            overflow: hidden !important;
        }
        .quill-editor .ql-toolbar.ql-snow {
            width: 100% !important;
            border: none !important;
            border-bottom: 1px solid #dcdfe6 !important;
            background: #fafafa !important;
            border-radius: 0 !important;
            box-sizing: border-box !important;
            padding: 8px 15px !important;
            margin: 0 !important;
        }
        .quill-editor .ql-toolbar.ql-snow .ql-formats {
            margin-right: 12px;
        }
        .quill-editor .ql-container.ql-snow {
            width: 100% !important;
            border: none !important;
            font-size: 14px !important;
            box-sizing: border-box !important;
            margin: 0 !important;
        }
        .quill-editor .ql-container.ql-snow .ql-editor {
            width: 100% !important;
            min-height: 140px !important;
            box-sizing: border-box !important;
            padding: 12px 15px !important;
            line-height: 1.8 !important;
            margin: 0 !important;
        }
        .quill-editor .ql-container.ql-snow .ql-editor p {
            margin-bottom: 0.5em;
        }
        .quill-editor .ql-container.ql-snow .ql-editor ul,
        .quill-editor .ql-container.ql-snow .ql-editor ol {
            text-indent: 0;
        }
        .quill-editor .ql-container.ql-snow .ql-editor h1,
        .quill-editor .ql-container.ql-snow .ql-editor h2,
        .quill-editor .ql-container.ql-snow .ql-editor h3 {
            text-indent: 0;
        }
        .ql-snow .ql-picker.ql-header {
            width: 90px;
        }
        .ql-snow .ql-toolbar button.ql-textIndent,
        .ql-snow .ql-toolbar button.ql-cleanInline {
            width: 28px;
            height: 24px;
            padding: 3px 5px;
        }
        .ql-snow .ql-toolbar button.ql-textIndent svg,
        .ql-snow .ql-toolbar button.ql-cleanInline svg {
            width: 18px;
            height: 18px;
            vertical-align: top;
        }
        .status-tag {
            display: inline-flex; align-items: center; padding: 2px 10px;
            border-radius: 10px; font-size: 12px; font-weight: 500; line-height: 20px;
        }
        .status-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; }
        .status-success { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
        .status-success::before { background: #52c41a; }
        .status-warning { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
        .status-warning::before { background: #fa8c16; }
        .status-error { background: #fff1f0; color: #ff4d4f; border: 1px solid #ffa39e; }
        .status-error::before { background: #ff4d4f; }
        .status-info { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
        .status-info::before { background: #1890ff; }
        .status-default { background: #f5f5f5; color: #8c8c8c; border: 1px solid #d9d9d9; }
        .status-default::before { background: #8c8c8c; }

        /* 共享文件夹 */
        .folder-tree-item {
            padding: 8px 12px;
            display: flex;
            align-items: center;
            cursor: pointer;
            border-radius: 6px;
            margin: 2px 8px;
            transition: background 0.2s;
        }
        .folder-tree-item:hover {
            background: #f5f7fa;
        }
        .folder-tree-item.active {
            background: #ecf5ff;
            color: #409eff;
        }
        .file-list-header {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            background: #fafafa;
            border-bottom: 1px solid #f0f0f0;
            font-size: 13px;
            font-weight: 600;
            color: #666;
        }
        .file-list-body {
            min-height: 200px;
        }
        .file-item {
            display: flex;
            align-items: center;
            padding: 12px 16px;
            border-bottom: 1px solid #f5f5f5;
            cursor: pointer;
            transition: background 0.2s;
        }
        .file-item:hover {
            background: #f9f9f9;
        }

        /* ============ 响应式适配：全局移动端优化 ============ */

/* 平板适配 (768px - 1024px) */
@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .shortcuts-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}

/* 移动端适配 (<=768px) */
@media (max-width: 768px) {
    /* --- 登录页适配 --- */
    .login-card {
        width: calc(100% - 32px) !important;
        max-width: 400px;
        padding: 32px 24px;
        margin: 16px;
    }
    .login-title { font-size: 18px; }
    .login-logo { width: 56px; height: 56px; font-size: 24px; margin-bottom: 16px; }
    .login-subtitle { font-size: 13px; margin-bottom: 24px; }
    
    /* --- 布局核心：侧边栏变抽屉 --- */
    .admin-layout { position: relative; }
    .sidebar {
        position: fixed !important;
        z-index: 2000;
        height: 100% !important;
        width: 260px !important;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    }
    .sidebar.mobile-open { transform: translateX(0); }
    .sidebar.collapsed { width: 64px; }
    
    /* 遮罩层 */
    .sidebar-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1500;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .sidebar-overlay.visible {
        opacity: 1;
        visibility: visible;
    }
    
    /* 主内容区占满宽度 */
    .main-wrapper {
        width: 100% !important;
        margin-left: 0 !important;
        min-width: 0;
    }
    
    /* --- 顶部栏适配 --- */
    .top-header {
        height: 56px;
        padding: 0 12px;
        position: sticky;
        top: 0;
        z-index: 100;
    }
    .top-header-left { gap: 8px; }
    .top-header-right { gap: 4px; }
    .breadcrumb { 
        font-size: 13px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .breadcrumb .separator,
    .breadcrumb span:not(.current):not(:first-child) { display: none; }
    .collapse-btn { width: 32px; height: 32px; font-size: 18px; }
    .header-icon { width: 32px; height: 32px; font-size: 16px; }
    
    /* 隐藏桌面端用户下拉文字 */
    .top-header-right .user-info span,
    .top-header-right .user-info .el-icon:not(.user-avatar) { display: none; }
    .top-header-right .user-info { padding: 0; }
    .top-header-right .user-avatar { width: 32px; height: 32px; font-size: 13px; }
    
    /* 通知弹窗适配 */
    .notif-popover, .notif-panel { width: calc(100vw - 32px) !important; max-width: 360px; }
    .notif-panel { max-height: 60vh; }
    
    /* --- 内容区适配 --- */
    .content-area { padding: 12px; }
    .page-header { margin-bottom: 16px; }
    .page-title { font-size: 18px; }
    .page-desc { font-size: 13px; }
    
    /* --- 统计卡片 --- */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
    .stat-card { padding: 14px; gap: 10px; border-radius: 10px; }
    .stat-icon { width: 42px; height: 42px; font-size: 18px; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 12px; }
    
    /* --- 卡片组件 --- */
    .page-card { margin-bottom: 16px; border-radius: 10px; overflow: hidden; }
    .card-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 12px;
        padding: 14px 16px;
    }
    .card-title { font-size: 15px; }
    .card-actions {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
    }
    .card-actions .el-input,
    .card-actions .el-select {
        width: 100% !important;
        min-width: 0 !important;
    }
    .card-actions .el-button {
        flex: 1;
        min-width: 0;
    }
    .card-body { padding: 14px 12px; }
    
    /* --- 表格适配：横向滚动 --- */
    .el-table, .el-table__body-wrapper, .el-table__header-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    .el-table {
        display: block;
        width: 100% !important;
    }
    .el-table__inner-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    /* 固定列在移动端取消固定 */
    .el-table .el-table-fixed-column--right,
    .el-table .el-table-fixed-column--left {
        position: static !important;
    }
    .el-table .el-table-fixed-column--right .cell,
    .el-table .el-table-fixed-column--left .cell {
        transform: none !important;
    }
    .el-table .el-table-fixed-mask {
        display: none !important;
    }
    
    /* --- 分页适配 --- */
    .pagination-wrap {
        justify-content: center !important;
        padding: 12px 0 4px;
    }
    .pagination-wrap .el-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* --- 对话框适配 --- */
    .el-dialog {
        width: calc(100vw - 24px) !important;
        max-width: 520px;
        margin: 12px auto !important;
    }
    .el-dialog__body { padding: 12px 16px; }
    .el-dialog__footer { padding: 10px 16px 14px; }
    .el-dialog .el-form-item__label { 
        float: none !important; 
        width: auto !important; 
        text-align: left !important;
        margin-bottom: 4px;
    }
    .el-dialog .el-form-item__content {
        margin-left: 0 !important;
    }
    .el-dialog .el-form-item { margin-bottom: 12px; }
    
    /* --- 抽屉适配 --- */
    .el-drawer { width: calc(100% - 32px) !important; max-width: 420px; }
    
    /* --- 仪表盘适配 --- */
    .dashboard-welcome {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 18px 20px;
        border-radius: 10px;
    }
    .welcome-title { font-size: 16px; }
    .welcome-desc { font-size: 12px; }
    .todos-grid { grid-template-columns: 1fr; }
    .todo-card { padding: 14px; }
    .shortcuts-grid { 
        grid-template-columns: repeat(4, 1fr); 
        gap: 10px;
        padding: 14px;
    }
    .shortcut-item { padding: 10px 4px; }
    .shortcut-icon { width: 40px; height: 40px; font-size: 18px; }
    .shortcut-label { font-size: 11px; }
    .section-title { font-size: 14px; margin-bottom: 12px; }
    
    /* --- Quill 编辑器适配 --- */
    .quill-editor .ql-toolbar.ql-snow {
        padding: 6px 8px;
    }
    .quill-editor .ql-toolbar.ql-snow .ql-formats {
        margin-right: 6px;
    }
    .quill-editor .ql-container.ql-snow .ql-editor {
        min-height: 100px !important;
        padding: 8px 10px;
        font-size: 13px !important;
    }
    
    /* --- 共享文件管理适配 --- */
    /* 主布局：纵向堆叠 */
    .page-header + div[style*="flex"] {
        flex-direction: column !important;
        gap: 12px !important;
    }
    /* 文件夹侧栏：全宽 */
    .page-header + div[style*="flex"] > div:first-child {
        width: 100% !important;
        flex-shrink: 1 !important;
    }
    /* 文件列表区域：全宽 */
    .page-header + div[style*="flex"] > div:last-child {
        width: 100% !important;
        flex: none !important;
    }
    /* 文件夹列表头部紧凑 */
    .folder-tree-item { padding: 6px 10px; }
    
    /* 卡片头部操作区：自动换行 */
    .card-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .card-header > div:first-child {
        width: 100%;
        margin-bottom: 8px;
    }
    .card-actions {
        flex-wrap: wrap;
        gap: 6px;
        width: 100%;
    }
    .card-actions .el-input {
        width: 100% !important;
    }
    .card-actions .el-button {
        margin: 0;
        padding: 6px 10px;
        font-size: 12px;
    }
    .card-actions .el-button .el-icon {
        margin: 0;
    }
    
    /* 文件列表头部：仅保留名称和操作 */
    .file-list-header {
        display: none;
    }
    
    /* 文件/文件夹项：卡片式布局 */
    .file-item {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px 12px !important;
        gap: 6px;
    }
    /* 名称区域 */
    .file-item > div:first-child {
        flex: 1 !important;
        width: 100% !important;
    }
    /* 隐藏 类型/大小/修改时间 列 */
    .file-item > div:nth-child(2),
    .file-item > div:nth-child(3),
    .file-item > div:nth-child(4) {
        display: none !important;
    }
    /* 操作按钮区域：全宽 + 按钮横排 */
    .file-item > div:last-child {
        width: 100% !important;
        text-align: left !important;
        margin-top: 4px;
        padding-top: 6px;
        border-top: 1px dashed #eee;
    }
    .file-item > div:last-child .el-button {
        margin: 0 4px 0 0;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    /* 分页适配 */
    .pagination-wrap {
        display: flex;
        justify-content: center;
        overflow-x: auto;
    }
    .el-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* 文件夹下拉菜单适配：缩小图标 */
    .folder-tree-item .el-dropdown .el-icon {
        font-size: 12px;
    }
    
    /* 文件项操作按钮：图标化压缩 */
    .file-item > div:last-child .el-button span {
        display: none !important;
    }
    .file-item > div:last-child .el-button {
        padding: 2px 4px !important;
        min-width: 24px !important;
        height: 24px !important;
        font-size: 12px !important;
        margin: 0 2px 0 0 !important;
    }
    .file-item > div:last-child .el-button::before {
        display: inline;
        font-size: 14px;
        line-height: 1;
        font-weight: bold;
    }
    /* 文件项操作按钮图标：第一个编辑 */
    .file-item > div:last-child .el-button:nth-child(1)::before {
        content: "✎" !important;
    }
    /* 3按钮（文件夹）中间：复制分享 */
    .file-item > div:last-child .el-button:nth-child(2):nth-last-child(2)::before {
        content: "⤴" !important;
    }
    /* 4按钮（文件）第2个：复制分享 */
    .file-item > div:last-child .el-button:nth-child(2):nth-last-child(3)::before {
        content: "⤴" !important;
    }
    /* 4按钮（文件）第3个：下载 */
    .file-item > div:last-child .el-button:nth-child(3):nth-last-child(2)::before {
        content: "⬇" !important;
    }
    /* 最后一个按钮：删除 */
    .file-item > div:last-child .el-button:nth-last-child(1)::before {
        content: "✕" !important;
    }
    
    /* --- 表单适配 --- */
    .el-form-item { margin-bottom: 14px; }
    .el-form-item__label { font-size: 13px; }
    .el-input, .el-select { font-size: 14px; }
    
    /* --- 按钮组适配 --- */
    .el-button { font-size: 13px; }
    .button-group {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .button-group .el-button { flex: 1; }
    
    /* --- 状态标签适配 --- */
    .status-tag { font-size: 11px; padding: 1px 8px; }
    
    /* --- 时间线适配 --- */
    .el-timeline-item__content { font-size: 13px; }
    .log-item { font-size: 12px; line-height: 1.5; }
    
    /* --- 描述列表适配 --- */
    .el-descriptions { font-size: 13px; }
    .el-descriptions__label { font-size: 12px; }
    
    /* --- 防止表格溢出 --- */
    .el-table { font-size: 13px; }
    .el-table .cell { padding: 8px 6px; }
    
    /* --- 操作列压缩优化 --- */
    /* 操作列按钮：隐藏文字，显示紧凑图标 */
    .el-table-fixed-column--right .el-button span,
    .el-table-fixed-column--left .el-button span {
        display: none !important;
    }
    /* 操作列按钮添加伪元素图标 */
    .el-table-fixed-column--right .el-button::before,
    .el-table-fixed-column--left .el-button::before {
        display: inline;
        font-size: 16px;
        line-height: 1;
        font-weight: bold;
    }
    /* 第一个按钮：编辑 (✎) */
    .el-table-fixed-column--right .el-button:nth-child(1)::before,
    .el-table-fixed-column--left .el-button:nth-child(1)::before {
        content: "✎" !important;
    }
    /* 中间按钮：下架/发布 (⬇) - 仅在3按钮表格中（第二同时是倒数第二） */
    .el-table-fixed-column--right .el-button:nth-child(2):nth-last-child(2)::before,
    .el-table-fixed-column--left .el-button:nth-child(2):nth-last-child(2)::before {
        content: "⬇" !important;
    }
    /* 最后一个按钮：删除 (✕) - 始终使用最后一个作为删除 */
    .el-table-fixed-column--right .el-button:nth-last-child(1)::before,
    .el-table-fixed-column--left .el-button:nth-last-child(1)::before {
        content: "✕" !important;
    }
    /* 操作列按钮压缩为图标尺寸 */
    .el-table-fixed-column--right .el-button,
    .el-table-fixed-column--left .el-button {
        padding: 2px 4px !important;
        min-width: 24px !important;
        height: 24px !important;
        font-size: 14px !important;
        margin: 0 1px !important;
        letter-spacing: 0 !important;
        line-height: 24px !important;
    }
    /* 操作列单元格压缩 */
    .el-table-fixed-column--right .cell,
    .el-table-fixed-column--left .cell {
        padding: 2px 3px !important;
        white-space: nowrap;
    }
    /* 强制操作列缩窄 */
    .el-table-fixed-column--right .cell {
        max-width: 80px !important;
    }
    .el-table-fixed-column--left .cell {
        max-width: 60px !important;
    }
    /* 针对固定列的 col 元素 */
    .el-table__header-wrapper colgroup col:last-child,
    .el-table__body-wrapper colgroup col:last-child {
        width: 80px !important;
    }
    /* 操作列表头压缩 */
    .el-table-fixed-column--right th .cell,
    .el-table-fixed-column--left th .cell {
        padding: 2px 4px !important;
        text-align: center;
        font-size: 12px;
    }
    
    /* --- 下拉菜单适配 --- */
    .el-dropdown-menu { min-width: 120px; }
}

/* 小屏适配 (<=480px) */
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .shortcuts-grid { grid-template-columns: repeat(3, 1fr); }
    .top-header { padding: 0 8px; }
    .content-area { padding: 8px; }
    .card-header { padding: 12px; }
    .card-body { padding: 12px 10px; }
    .dashboard-welcome { padding: 14px 16px; }
    .stat-value { font-size: 18px; }
    .login-card { padding: 24px 18px; }
    .el-dialog { margin: 8px auto !important; }
    .pagination-wrap .el-pagination { font-size: 12px; }
    .el-pagination .btn-prev, .el-pagination .btn-next,
    .el-pagination .el-pager li { min-width: 30px; height: 30px; line-height: 30px; }
    
    /* 操作列进一步压缩 */
    .el-table-fixed-column--right .el-button,
    .el-table-fixed-column--left .el-button {
        padding: 1px 2px !important;
        height: 22px !important;
        min-width: 22px !important;
        font-size: 14px !important;
        margin: 0 !important;
    }
    .el-table-fixed-column--right .el-button::before,
    .el-table-fixed-column--left .el-button::before {
        font-size: 14px;
    }
    .el-table-fixed-column--right .cell,
    .el-table-fixed-column--left .cell {
        padding: 1px 2px !important;
    }
    .el-table-fixed-column--right .cell {
        max-width: 70px !important;
    }
    
    /* 共享文件管理：小屏进一步压缩 */
    .file-item > div:last-child .el-button {
        padding: 1px 2px !important;
        min-width: 22px !important;
        height: 22px !important;
    }
    .file-item > div:last-child .el-button::before {
        font-size: 13px;
    }
    .card-actions .el-button {
        padding: 5px 8px;
        font-size: 11px;
    }
    .folder-tree-item { padding: 5px 8px; font-size: 12px; }
    .file-item { padding: 8px 10px !important; }
}

        /* ============ 仪表盘专用样式 ============ */
        .dashboard-welcome {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 12px; padding: 24px 32px; margin-bottom: 24px;
            display: flex; justify-content: space-between; align-items: center;
            color: #fff;
        }
        .welcome-title { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
        .welcome-desc { font-size: 13px; opacity: 0.85; }
        .welcome-right { display: flex; align-items: center; gap: 8px; }

        .dashboard-section { margin-bottom: 24px; }
        .section-title {
            display: flex; align-items: center; gap: 8px;
            font-size: 16px; font-weight: 600; color: #1a1a2e;
            margin-bottom: 16px; padding-left: 4px;
        }
        .section-title .el-icon { color: #1890ff; }

        /* 待办事项 */
        .todos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
        .todo-card {
            background: #fff; border-radius: 10px; padding: 16px 18px;
            display: flex; align-items: center; gap: 14px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            border: 1px solid #f0f0f0; cursor: pointer;
            transition: all 0.2s;
            border-left: 4px solid #fa8c16;
        }
        .todo-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.1); }
        .todo-card.todo-high { border-left-color: #f5222d; }
        .todo-card.todo-medium { border-left-color: #fa8c16; }
        .todo-card.todo-low { border-left-color: #faad14; }
        .todo-icon {
            width: 44px; height: 44px; border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px; flex-shrink: 0;
        }
        .todo-high .todo-icon { background: #fff1f0; color: #f5222d; }
        .todo-medium .todo-icon { background: #fff7e6; color: #fa8c16; }
        .todo-low .todo-icon { background: #fffbe6; color: #faad14; }
        .todo-count { font-size: 20px; font-weight: 600; color: #1a1a2e; line-height: 1.2; }
        .todo-label { font-size: 13px; color: #8c8c8c; margin-top: 2px; }
        .todo-info { flex: 1; }
        .todo-arrow { color: #bfbfbf; font-size: 16px; }

        /* 统计卡片增强 */
        .stats-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
        .stat-card { cursor: pointer; }
        .stat-extra {
            font-size: 12px; color: #8c8c8c; margin-top: 6px;
            display: flex; align-items: center; gap: 4px;
        }
        .extra-dot {
            width: 6px; height: 6px; border-radius: 50%;
            display: inline-block;
        }

        /* 快捷入口 */
        .shortcuts-grid {
            display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 16px; background: #fff; border-radius: 12px;
            padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
            border: 1px solid #f0f0f0;
        }
        .shortcut-item {
            display: flex; flex-direction: column; align-items: center; gap: 8px;
            padding: 14px 8px; border-radius: 10px; cursor: pointer;
            transition: all 0.2s;
        }
        .shortcut-item:hover { background: #f5f7fa; transform: translateY(-2px); }
        .shortcut-icon {
            width: 44px; height: 44px; border-radius: 10px;
            background: #e6f7ff; color: #1890ff;
            display: flex; align-items: center; justify-content: center;
            font-size: 22px;
        }
        .shortcut-item:hover .shortcut-icon { background: #1890ff; color: #fff; }
        .shortcut-label { font-size: 12px; color: #595959; text-align: center; }

        /* 最近数据 */
        .recent-sub-title {
            font-size: 13px; font-weight: 600; color: #595959;
            margin-bottom: 12px; padding-bottom: 8px;
            border-bottom: 1px solid #f5f5f5;
        }
        .log-item { font-size: 13px; line-height: 1.6; }
        .log-user { color: #1a1a2e; font-weight: 500; }
        .log-action { color: #1890ff; margin: 0 2px; }
        .log-target { color: #595959; margin: 0 2px; }
        .log-module { color: #8c8c8c; font-size: 12px; }

        /* (媒体查询已合并至顶部响应式区块) */

        /* 统计卡片（验证码管理等页面用） */
        .stat-card {
            background: #fff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 1px 4px rgba(0,0,0,0.06);
            border: 1px solid #f0f0f0;
        }
        .stat-card-label {
            font-size: 13px;
            color: #999;
            margin-bottom: 8px;
        }
        .stat-card-value {
            font-size: 28px;
            font-weight: 700;
            color: #333;
        }

        /* ===== Header notifications & settings ===== */
        .notif-popover { padding: 0 !important; }
        .notif-panel { width: 360px; max-height: 480px; display: flex; flex-direction: column; }
        .notif-header {
            display: flex; justify-content: space-between; align-items: center;
            padding: 12px 16px; border-bottom: 1px solid #f0f0f0;
        }
        .notif-title { font-size: 15px; font-weight: 600; color: #1a1a1a; }
        .notif-list { flex: 1; overflow-y: auto; max-height: 360px; }
        .notif-empty { padding: 40px 0; text-align: center; color: #bfbfbf; font-size: 13px; }
        .notif-item {
            display: flex; align-items: flex-start; gap: 10px;
            padding: 12px 16px; cursor: pointer; border-bottom: 1px solid #f7f7f7;
            transition: background 0.15s; position: relative;
        }
        .notif-item:hover { background: #f9f9f9; }
        .notif-item.unread { background: #f0f7ff; }
        .notif-item.unread:hover { background: #e6f2ff; }
        .notif-item-icon {
            width: 32px; height: 32px; border-radius: 50%;
            background: #e6f2ff; color: #1890ff;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0;
        }
        .notif-item-content { flex: 1; min-width: 0; }
        .notif-item-title { font-size: 14px; color: #1a1a1a; font-weight: 500; margin-bottom: 2px; }
        .notif-item-desc {
            font-size: 12px; color: #8c8c8c;
            overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
            -webkit-line-clamp: 1; -webkit-box-orient: vertical;
        }
        .notif-item-time { font-size: 11px; color: #bfbfbf; margin-top: 4px; }
        .notif-unread-dot {
            position: absolute; top: 14px; right: 14px;
            width: 8px; height: 8px; background: #ff4d4f; border-radius: 50%;
        }
        .notif-footer {
            display: flex; align-items: center; justify-content: center; gap: 4px;
            padding: 12px; border-top: 1px solid #f0f0f0;
            font-size: 13px; color: #1890ff; cursor: pointer;
        }
        .notif-footer:hover { background: #f9f9f9; }

        .setting-panel { padding: 6px 0; }
        .setting-item {
            display: flex; align-items: center; gap: 10px;
            padding: 10px 16px; cursor: pointer; font-size: 14px; color: #333;
            transition: background 0.15s;
        }
        .setting-item:hover { background: #f0f7ff; color: #1890ff; }
        .setting-item .el-icon { font-size: 16px; }

        /* ===== Profile drawer ===== */
        .profile-drawer { padding: 8px 0; }
        .profile-header {
            display: flex; align-items: center; gap: 16px;
            padding-bottom: 16px; border-bottom: 1px solid #f0f0f0;
        }
        .profile-avatar {
            width: 64px; height: 64px; border-radius: 50%;
            background: linear-gradient(135deg, #1890ff, #096dd9);
            color: #fff; font-size: 24px; font-weight: 600;
            display: flex; align-items: center; justify-content: center;
        }
        .profile-name { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
        .profile-role { font-size: 13px; color: #1890ff; }

        .badge-dot { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; background: #ff4d4f; border-radius: 50%; }

        /* 侧边栏遮罩 - 默认隐藏，仅移动端显示 */
        .sidebar-overlay { display: none; }


/* ========== 弹窗 & 富文本编辑器遮挡修复 ========== */
/* 弹窗整体尽量靠上，不被顶部裁剪；用 flex 列布局让 footer 贴底 */
.el-dialog {
    margin-top: 5vh !important;
    margin-bottom: 1vh !important;
    display: flex;
    flex-direction: column;
}
/* header/footer 不被压缩 */
.el-dialog__header {
    position: relative;
    z-index: 10;
    background: #fff;
    flex-shrink: 0;
}
.el-dialog__footer {
    position: relative;
    z-index: 10;
    background: #fff;
    border-top: 1px solid #ebeef5;
    flex-shrink: 0;
}
/* body 自动填充剩余空间 + 可滚动（overflow-x:hidden 阻断内容溢出到 dialog 底部产生横向滚动条） */
.el-dialog__body {
    flex: 1 1 auto;
    max-height: calc(94vh - 105px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative;
}
/* ========== Quill 编辑器在 flex content 里的布局修复 ========== */
/* Element Plus 给 el-form-item__content 设了 display:flex; flex-wrap:wrap
   Quill 初始化后产生 toolbar + editor 两个 100% 宽的兄弟元素，
   flex-wrap 强制换行但 flex 容器高度没把 toolbar 算进去，
   导致 content 比实际内容矮，Quill 溢出到下一个表单项。
   修复：包含 Quill 时改用 flex-direction:column + nowrap */
.el-form-item:has(.quill-editor) .el-form-item__content {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
}
.el-form-item:has(.quill-editor) .ql-toolbar.ql-snow {
    flex-shrink: 0;
    width: 100% !important;
}
.el-form-item:has(.quill-editor) .ql-container.ql-snow {
    flex-shrink: 1;
    min-height: 140px;
}
/* Quill 工具栏 */
.el-dialog__body .ql-toolbar.ql-snow {
    position: relative;
    z-index: 10 !important;
}
/* Quill picker 下拉菜单 — 用 fixed 飞出 overflow 裁剪 */
.el-dialog__body .ql-snow .ql-picker-options {
    position: fixed !important;
    z-index: 5000 !important;
}
/* Quill 图片预览弹窗 */
.el-dialog__wrapper .el-image-viewer__mask,
.el-dialog__wrapper .el-image-viewer__img {
    z-index: 3000 !important;
}
/* 确保 el-upload 预览弹窗不被遮挡 */
.el-dialog__body .el-upload-list--picture-card .el-upload-list__item {
    z-index: auto;
}

/* ==================== 列表标题预览链接 ==================== */
.preview-link {
    color: #1890ff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    word-break: break-all;
}
.preview-link:hover {
    color: #40a9ff;
    text-decoration: underline;
}
.preview-link::after {
    content: ' ↗';
    font-size: 11px;
    color: #bfbfbf;
    opacity: 0;
    transition: opacity 0.2s;
    margin-left: 2px;
}
.preview-link:hover::after {
    opacity: 1;
}

/* ==================== 功能搜索（功能直达） ==================== */
.func-search-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    color: #6b7280;
    font-size: 13px;
    transition: all 0.2s;
    margin-left: 16px;
    min-width: 180px;
}
.func-search-trigger:hover {
    border-color: #1890ff;
    color: #1890ff;
    box-shadow: 0 2px 6px rgba(24, 144, 255, 0.12);
}
.func-search-trigger .el-icon {
    font-size: 16px;
}
.func-search-trigger span {
    flex: 1;
}
.func-search-shortcut {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #9ca3af;
}
.func-search-shortcut kbd {
    display: inline-block;
    padding: 1px 5px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 3px;
    line-height: 1.4;
}

/* 命令面板对话框 */
.func-search-dialog {
    padding: 0 !important;
    border-radius: 12px !important;
    overflow: hidden;
}
.func-search-dialog .el-dialog__header {
    display: none;
}
.func-search-dialog .el-dialog__body {
    padding: 0;
}
.func-search-dialog .el-dialog__footer {
    padding: 10px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fafafa;
}

.func-search-panel {
    padding: 20px 20px 4px;
}
.func-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 4px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.func-search-input-icon {
    font-size: 18px;
    color: #bfbfbf;
}
.func-search-input {
    flex: 1;
}
.func-search-input .el-input__wrapper {
    box-shadow: none !important;
    padding: 4px 0 !important;
    font-size: 15px;
}
.func-search-input .el-input__inner {
    font-size: 15px;
}
.func-search-close {
    padding: 4px;
    cursor: pointer;
    color: #bfbfbf;
    border-radius: 4px;
    transition: all 0.2s;
}
.func-search-close:hover {
    color: #ff4d4f;
    background: #fff1f0;
}

.func-search-result {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px 0;
}
.func-search-result-tip {
    padding: 8px 12px;
    font-size: 12px;
    color: #9ca3af;
}
.func-search-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.func-search-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s;
    margin: 2px 6px;
}
.func-search-list li:hover,
.func-search-list li.active {
    background: #e6f4ff;
}
.func-search-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f5ff;
    border-radius: 8px;
    color: #1890ff;
    font-size: 18px;
    flex-shrink: 0;
}
.func-search-list li.active .func-search-item-icon {
    background: #1890ff;
    color: #fff;
}
.func-search-item-body {
    flex: 1;
    min-width: 0;
}
.func-search-item-label {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
}
.func-search-item-group {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
}
.func-search-item-arrow {
    color: #d1d5db;
    font-size: 14px;
    transition: color 0.2s, transform 0.2s;
}
.func-search-list li:hover .func-search-item-arrow,
.func-search-list li.active .func-search-item-arrow {
    color: #1890ff;
    transform: translateX(2px);
}

.func-search-empty {
    padding: 48px 0;
    text-align: center;
    color: #9ca3af;
}
.func-search-empty .el-icon {
    font-size: 42px;
    margin-bottom: 12px;
    color: #d1d5db;
}
.func-search-empty > div:first-of-type {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
}
.func-search-empty-tip {
    font-size: 12px;
    color: #bfbfbf;
}

.func-search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
}
.func-search-footer-keys {
    display: flex;
    gap: 12px;
}
.func-search-footer-keys span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.func-search-footer-keys kbd {
    display: inline-block;
    padding: 1px 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 11px;
    color: #6b7280;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    line-height: 1.5;
}

/* 滚动条美化 */
.func-search-result::-webkit-scrollbar {
    width: 6px;
}
.func-search-result::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}
.func-search-result::-webkit-scrollbar-thumb:hover {
    background: #d1d5db;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .func-search-trigger {
        min-width: auto;
        padding: 6px 10px;
        margin-left: 10px;
    }
    .func-search-trigger span:not(.func-search-shortcut) {
        display: none;
    }
    .func-search-shortcut {
        display: none;
    }
    .func-search-dialog {
        width: calc(100% - 24px) !important;
        margin-top: 10vh !important;
    }
}
