/* ============================================
 *  CSS 变量定义
 * ============================================ */
:root {
    --primary-color: #409EFF;
    --primary-dark: #337ecc;
    --primary-light: rgba(64, 158, 255, 0.12);
    --primary-hover: #ecf5ff;
    
    --text-primary: #333;
    --text-regular: #606266;
    --text-secondary: #909399;
    --text-placeholder: #b0b3b8;
    
    --border-color: #e4e7ed;
    --border-light: #ebeef5;
    --bg-page: #f0f2f5;
    --bg-white: #fff;
    
    /* 侧边栏 */
    --sidebar-bg: #304156;
    --sidebar-text: #bfcbd9;
    --sidebar-active-bg: #1f2d3d;
    --sidebar-hover-bg: #263445;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,21,41,0.04);
    --shadow-md: 0 1px 3px rgba(0,21,41,0.06);
    --shadow-lg: 0 2px 12px rgba(0,0,0,0.15);
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ============================================
 *  全局重置
 * ============================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    height: 100%;
    font-family: "Microsoft YaHei", sans-serif;
    overflow-x: hidden;
}

/* 通用工具类 */
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* 确保iframe内容页面填满高度 */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* iframe子页面背景色统一为深灰色 */
body {
    background: var(--bg-page) !important;
}

/* iframe子页面 .page-container 填满容器 */
.page-container {
    min-height: 100% !important;
    height: 100%;
}


/* ============================================
 *  管理后台 (admin.html)
 * ============================================ */

/* 主容器 */
.app-container { display: flex; height: 100vh; overflow: hidden; }

/* 左侧导航 */
.nav-left {
    width: 220px;
    background-color: var(--sidebar-bg);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-normal);
    flex-shrink: 0;
}
.nav-left.fold { width: 64px; }

/* Logo区域 */
.nav-left-top {
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}
.admin-logo { height: 32px; margin-right: 10px; }
.nav-title {
    color: var(--bg-white);
    font-size: 15px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
}
.fold .nav-title { display: none; }

/* 菜单区域 */
.nav-left-bottom {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.nav-left-bottom::-webkit-scrollbar { width: 3px; }
.nav-left-bottom::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 2px; }

/* Element Plus 菜单样式覆盖 */
.el-menu-style {
    border-right: none !important;
    background-color: var(--sidebar-bg) !important;
}
.el-menu-style .el-menu-item,
.el-menu-style .el-sub-menu__title {
    color: var(--sidebar-text) !important;
    height: 50px;
    line-height: 50px;
    font-size: 15px;
    padding: 0 20px !important;
}
.el-menu-style .el-menu-item .el-icon,
.el-menu-style .el-sub-menu__title .el-icon { font-size: 1.2em; margin-right: 12px; }

.el-menu-style .el-menu-item:hover,
.el-menu-style .el-sub-menu__title:hover {
    background-color: var(--sidebar-hover-bg) !important;
    color: var(--bg-white) !important;
}
.el-menu-style .el-menu-item.is-active {
    color: var(--bg-white) !important;
    background-color: var(--sidebar-active-bg) !important;
}
.el-menu-style .el-sub-menu .el-menu-item {
    background-color: var(--sidebar-active-bg) !important;
    min-width: auto;
    padding-left: 52px !important;
    height: 44px;
    line-height: 44px;
    font-size: 14px;
}
.el-menu-style .el-sub-menu .el-menu-item:hover {
    background-color: var(--sidebar-hover-bg) !important;
    color: var(--bg-white) !important;
}
.el-menu-style .el-sub-menu .el-menu-item.is-active {
    color: var(--bg-white) !important;
}
.el-menu--collapse { width: 64px; }
.menu-i { margin-right: 12px; font-size: 18px; }
.menu-name { font-size: 15px; }
.fold .menu-name { display: none; }

/* 右侧区域 */
.nav-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-page);
}

/* 工具栏 */
.nav-right-1 {
    height: 52px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-light);
    z-index: 10;
}
.tools-left, .tools-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.tool-fox {
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-regular);
    font-size: 15px;
    white-space: nowrap;
}
.tool-fox:hover { background-color: var(--primary-hover); color: var(--primary-color); }

/* 搜索框 */
.search-fox { width: 200px; transition: width var(--transition-normal); }
.search-fox-show { width: 260px; }

/* 用户信息 */
.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 4px;
}
.user-name, .el-dropdown-link { 
    cursor: pointer; 
    color: var(--text-primary); 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 15px; 
}
.el-dropdown-link:hover,
.user-name:hover { color: var(--primary-color); }

/* 时间显示 */
.time-display { font-size: 14px; color: var(--text-secondary); padding: 0 14px; letter-spacing: 0.5px; }

/* Tab 标签栏 */
.nav-right-2 {
    height: 44px;
    background: var(--bg-white);
    display: flex;
    align-items: stretch;login-page
    padding: 0;
    border-bottom: 1px solid var(--border-light);
    user-select: none;
}
.towards-left, .towards-right {
    width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    font-size: 14px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-light);
}
.towards-left:hover, .towards-right:hover { 
    color: var(--primary-color); 
    background: #f5f5f5; 
}

.towards-middle {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: stretch;
}
.tab-title-box {
    display: flex;
    align-items: stretch;
    height: 100%;
    transition: transform var(--transition-normal);
    white-space: nowrap;
}

.tab-title {
    height: 100%;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-regular);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    margin-right: 0;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}
.tab-title:hover { color: var(--primary-color); background: #f5f7fa; }
.tab-title.tab-native {
    background: transparent;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    font-weight: 500;
}
.tab-title-2 { display: flex; align-items: center; gap: 6px; }
.tab-close {
    font-size: 12px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab-close:hover { background: #c0c4cc; color: var(--bg-white); }

/* 面包屑 */
.nav-right-bre {
    height: 34px;
    background: var(--bg-white);
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-light);
}
.nav-right-bre .el-breadcrumb__inner { color: var(--text-regular); }

/* 主内容区 */
.nav-right-3 {
    flex: 1;
    overflow: hidden;
    background: var(--bg-page);
    margin: 4px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.iframe-container { 
    width: 100%; 
    height: 100%; 
    position: absolute; 
    top: 0; 
    left: 0; 
    background: transparent;
    display: none;
}
.iframe-container iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
    background: var(--bg-white);
}
.iframe-container:not(.iframe-active) { z-index: 0 !important; }
.iframe-container.iframe-active { 
    z-index: 2 !important; 
    display: block;
}

/* iframe 加载遮罩 */
.iframe-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}
.iframe-loading .loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #e4e7ed;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.iframe-loading .loading-text {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.home-content {
    width: 100%;
    height: 100%;
    background: var(--bg-page);
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}
.home-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.home-content:not(.iframe-active) { display: none !important; }
.home-content.iframe-active { display: block !important; z-index: 2 !important; }
.home-content h1 { font-size: 28px; margin-bottom: 12px; letter-spacing: 3px; color: var(--text-primary); }
.home-content p { font-size: 14px; opacity: 0.7; }

/* 右键菜单 */
.context-menu {
    position: fixed;
    background: var(--bg-white);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    padding: 5px 0;
    min-width: 140px;
    z-index: 9999;
}
.context-menu-item {
    padding: 7px 16px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
}
.context-menu-item .el-icon { font-size: 13px; }
.context-menu-item:hover { background: var(--primary-hover); color: var(--primary-color); }
.context-menu-divider { height: 1px; background: #e8e8e8; margin: 4px 0; }

/* 便签弹窗 */
.note-textarea { min-height: 180px; }

/* 全屏模式 */
:fullscreen .app-container { height: 100vh; }


/* ============================================
 *  登录页面 (index.html)
 * ============================================ */

.login-page {
    min-height: 100vh;
    width: 100%;
    background: url('../images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px 160px;
    position: relative;
}

/* 左上角标语 */
.login-slogan {
    position: absolute;
    top: 60px;
    left: 80px;
    max-width: 520px;
    z-index: 1;
}
.slogan-main {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}
.slogan-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.5px;
    line-height: 1.7;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
.slogan-highlight {
    color: #ff6b35;
    font-weight: 600;
}

.login-container {
    width: 420px;
    max-width: 92vw;
    background-color: rgba(255, 255, 255, 0.96);
    border-radius: 4px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* 左侧图片区域 - 已隐藏 */
.login-left {
    display: none;
}
.login-left img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* 右侧表单区域 */
.login-right {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

/* Logo */
.login-logo { text-align: center; margin-bottom: 16px; }
.login-logo img { width: 160px; max-width: 80%; height: auto; }

/* 标题 */
.login-title {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

/* 表单 */
.login-form { width: 100%; max-width: 300px; }
.login-form .el-form-item { margin-bottom: 22px; }
.login-form .el-form-item:last-child { margin-bottom: 0; }

/* 输入框样式 */
.login-form .el-input__wrapper {
    height: 44px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px #dcdfe6 inset;
    transition: all var(--transition-normal);
}
.login-form .el-input__wrapper:hover {
    box-shadow: 0 0 0 1px #c0c4cc inset;
}
.login-form .el-input__wrapper.is-focus {
    box-shadow: 0 0 0 1px var(--primary-color) inset !important;
}
.login-form .el-input__inner { font-size: 14px; color: #303133; }
.login-form .el-input__inner::placeholder { color: var(--text-placeholder); }

/* 输入框图标 */
.login-form .el-input__prefix .el-icon,
.login-form .el-input__suffix .el-icon { 
    font-size: 16px; 
    color: var(--text-secondary); 
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 44px;
    font-size: 15px;
    letter-spacing: 4px;
    border-radius: 4px;
    background: var(--primary-color);
    border: none;
    transition: all var(--transition-normal);
    color: var(--bg-white);
}
.login-btn:hover {
    opacity: 0.9;
}
.login-btn:active { opacity: 1; }

/* 记住密码 */
.login-remember {
    width: 100%;
    display: flex;
    justify-content: flex-start;
}
.login-remember .el-checkbox__label { font-size: 13px; color: var(--text-secondary); }

/* 底部信息 */
.login-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}
.login-footer p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}


/* ============================================
 *  响应式适配
 * ============================================ */

/* 平板及以下：表单居中 */
@media screen and (max-width: 800px) {
    .login-page { justify-content: center; padding: 20px; }
    .login-container { max-width: 420px; }
    .login-right { padding: 40px 32px; }
    .login-slogan { display: none; }
}
    
    .login-left { display: none; }
    .login-right { padding: 40px 32px; }
}


/* 手机端 */
@media screen and (max-width: 480px) {
    .login-page { padding: 12px; }
    .login-container { max-width: 360px; }
    .login-right { padding: 32px 24px; }
    .login-title { font-size: 17px; margin-bottom: 24px; }
    .login-form .el-input__wrapper { height: 42px; }
    .login-btn { height: 42px; letter-spacing: 4px; }
    .login-footer p { font-size: 12px; }
}


/* ============================================
 *  权限管理页面统一风格
 * ============================================ */

.auth-page {
    padding: 20px;
    background: #f5f7fa;
    min-height: 100vh;
}

[v-cloak] { display: none !important; }

/* 页面头部 */
.page-header {
    background: #fff;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.page-header-left { display: flex; align-items: center; gap: 14px; }
.page-header-icon {
    width: 48px;
    height: 48px;
    border-radius: 4px;
    background: #409eff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}
.page-header-title { font-size: 18px; font-weight: 600; color: #1f2d3d; }
.page-header-desc { font-size: 13px; color: #909399; margin-top: 4px; }
.page-header-right { display: flex; align-items: center; gap: 10px; }

/* 统计条 */
.stat-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.stat-item {
    background: #fff;
    border-radius: 8px;
    padding: 18px 20px;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.25s ease;
}
.stat-item:hover {
    box-shadow: 0 2px 8px rgba(0, 21, 41, 0.08);
}
.stat-item-left { display: flex; align-items: center; gap: 14px; }
.stat-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.stat-item-icon.blue { background: #ecf5ff; color: #409EFF; }
.stat-item-icon.green { background: #f0f9eb; color: #67C23A; }
.stat-item-icon.orange { background: #fdf6ec; color: #E6A23C; }
.stat-item-info { display: flex; flex-direction: column; }
.stat-item-value { font-size: 20px; font-weight: 700; color: #303133; line-height: 1.2; }
.stat-item-label { font-size: 13px; color: #909399; margin-top: 2px; }
.stat-item-arrow { color: #c0c4cc; font-size: 16px; }

/* 主卡片 */
.auth-card {
    border-radius: 4px !important;
    box-shadow: 0 1px 4px rgba(0, 21, 41, 0.06) !important;
    border: none !important;
}
.auth-card .el-card__header {
    padding: 16px 20px;
    border-bottom: 1px solid #ebeef5;
}
.auth-card .el-card__body { padding: 20px; }

/* 卡片标题区 */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
    display: flex;
    align-items: center;
    gap: 8px;
}
.card-title .el-icon { color: #409EFF; }

/* 搜索区域 */
.search-area {
    background: #f5f7fa;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.search-area .el-input { width: 260px; }

/* 表格优化 */
.auth-table { border-radius: 6px; overflow: hidden; }
.auth-table .el-table__header th {
    background: #f5f7fa !important;
    color: #606266;
    font-weight: 600;
    font-size: 13px;
    height: 44px;
}
.auth-table .el-table__row { font-size: 13px; }
.auth-table .el-table__row .el-button.is-link { padding: 4px 8px; }

/* 分页 */
.pagination-wrap {
    display: flex;
    justify-content: flex-end;
    padding-top: 18px;
}

/* 弹窗 */
.auth-dialog .el-dialog__header {
    border-bottom: 1px solid #ebeef5;
    padding: 16px 20px;
    margin-right: 0;
}
.auth-dialog .el-dialog__title {
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}
.auth-dialog .el-dialog__body { padding: 22px 24px; }
.auth-dialog .el-dialog__footer {
    border-top: 1px solid #ebeef5;
    padding: 12px 20px;
}
.auth-dialog .el-form-item { margin-bottom: 18px; }
.auth-dialog .el-form-item__label { color: #606266; font-weight: 500; }

/* 表单内图标 */
.auth-input .el-input__prefix .el-icon { color: #909399; font-size: 15px; }

/* 角色弹窗紧凑布局 */
.role-dialog .el-dialog__body { padding: 18px 22px 12px; }
.dialog-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #303133;
}
.compact-form .el-form-item { margin-bottom: 16px; }
.compact-form .el-form-item:last-child { margin-bottom: 0; }
.compact-form .el-form-item__label { padding-right: 14px; }

.status-radio .el-radio-button__inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
}

/* 行内表单项（双栏布局用） */
.inline-item { margin-bottom: 4px; }

.perm-item { margin-bottom: 0; }
.perm-panel {
    width: 100%;
    background: #f5f7fa;
    border-radius: 6px;
    border: 1px solid #e4e7ed;
    overflow: hidden;
}
.perm-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid #e4e7ed;
    font-size: 13px;
    color: #606266;
}
.perm-panel-header span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.perm-tree-wrap { background: #fff; }
.perm-tree { padding: 10px 14px; background: #fff; }
.perm-tree .el-tree-node__content { height: 32px; border-radius: 4px; }
.perm-tree .el-tree-node__content:hover { background-color: #f5f7fa; }
.perm-tree .el-tree-node.is-current > .el-tree-node__content { background-color: #ecf5ff; }

/* 状态标签 */
.status-tag { min-width: 48px; text-align: center; }

/* 树形表格 */
.auth-tree-table .el-table__row { font-size: 13px; }
.auth-tree-table .el-table__row .el-icon { margin-right: 4px; vertical-align: middle; }

/* 响应式 */
@media screen and (max-width: 768px) {
    .auth-page { padding: 12px; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .stat-bar { grid-template-columns: 1fr; }
    .search-area { flex-direction: column; align-items: stretch; }
    .search-area .el-input { width: 100%; }
}

/* ============================================
 *  主题切换
 * ============================================ */

/* 暗色主题 */
[data-theme="dark"] {
    --primary-color: #409EFF;
    --primary-dark: #337ecc;
    --primary-light: rgba(64, 158, 255, 0.15);
    --primary-hover: rgba(64, 158, 255, 0.1);
    --text-primary: #e0e0e0;
    --text-regular: #c0c4cc;
    --text-secondary: #909399;
    --text-placeholder: #6c6e72;
    --border-color: #4c4d4f;
    --border-light: #3a3b3d;
    --bg-page: #1a1a1a;
    --bg-white: #2c2c2c;
    --sidebar-bg: #1f1f1f;
    --sidebar-text: #bfcbd9;
    --sidebar-active-bg: #333;
    --sidebar-hover-bg: #3a3a3a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 2px 12px rgba(0,0,0,0.4);
}
[data-theme="dark"] .nav-right-1,
[data-theme="dark"] .nav-right-2,
[data-theme="dark"] .nav-right-bre { background: var(--bg-white); border-color: var(--border-color); }
[data-theme="dark"] .tab-title { background: transparent; color: #c0c4cc; }
[data-theme="dark"] .tab-title:hover { background: #3a3a3a; }
[data-theme="dark"] .tab-title.tab-native { background: transparent; color: var(--primary-color); border-bottom-color: var(--primary-color); }
[data-theme="dark"] .el-menu-style { background-color: var(--sidebar-bg) !important; }
[data-theme="dark"] .el-menu-style .el-menu-item,
[data-theme="dark"] .el-menu-style .el-sub-menu__title { color: var(--sidebar-text) !important; }
[data-theme="dark"] .el-menu-style .el-menu-item:hover,
[data-theme="dark"] .el-menu-style .el-sub-menu__title:hover { background-color: var(--sidebar-hover-bg) !important; }
[data-theme="dark"] .el-menu-style .el-menu-item.is-active { background-color: var(--sidebar-active-bg) !important; }
[data-theme="dark"] .nav-right-3 { background: var(--bg-white); }
[data-theme="dark"] .home-content { background: var(--bg-page); color: var(--text-secondary); }
[data-theme="dark"] .home-content h1 { color: var(--text-primary); }
[data-theme="dark"] .context-menu { background: var(--bg-white); }
[data-theme="dark"] .context-menu-item:hover { background: var(--primary-hover); }
[data-theme="dark"] .user-name,
[data-theme="dark"] .el-dropdown-link { color: var(--text-primary); }

/* 蓝色主题 */
[data-theme="blue"] {
    --primary-color: #1890ff;
    --primary-dark: #096dd9;
    --primary-light: rgba(24, 144, 255, 0.12);
    --primary-hover: rgba(24, 144, 255, 0.08);
    --text-primary: #333;
    --text-regular: #606266;
    --text-secondary: #909399;
    --text-placeholder: #b0b3b8;
    --border-color: #e4e7ed;
    --border-light: #ebeef5;
    --bg-page: #f0f2f5;
    --bg-white: #fff;
    --sidebar-bg: #001529;
    --sidebar-text: #ffffffb3;
    --sidebar-active-bg: #000c17;
    --sidebar-hover-bg: #002140;
    --shadow-sm: 0 1px 3px rgba(0,21,41,0.04);
    --shadow-md: 0 1px 3px rgba(0,21,41,0.06);
    --shadow-lg: 0 2px 12px rgba(0,0,0,0.15);
}
[data-theme="blue"] .el-menu-style { background-color: var(--sidebar-bg) !important; }
[data-theme="blue"] .el-menu-style .el-menu-item,
[data-theme="blue"] .el-menu-style .el-sub-menu__title { color: var(--sidebar-text) !important; }
[data-theme="blue"] .el-menu-style .el-menu-item:hover,
[data-theme="blue"] .el-menu-style .el-sub-menu__title:hover { background-color: var(--sidebar-hover-bg) !important; color: var(--primary-color) !important; }
[data-theme="blue"] .el-menu-style .el-menu-item.is-active { background-color: var(--sidebar-active-bg) !important; color: var(--primary-color) !important; }
[data-theme="blue"] .tab-title.tab-native { border-bottom-color: var(--primary-color); }

/* 绿色主题 */
[data-theme="green"] {
    --primary-color: #52c41a;
    --primary-dark: #389e0d;
    --primary-light: rgba(82, 196, 26, 0.12);
    --primary-hover: rgba(82, 196, 26, 0.08);
    --sidebar-bg: #0d1b0e;
    --sidebar-text: #ffffffb3;
    --sidebar-active-bg: #091209;
    --sidebar-hover-bg: #132614;
}
[data-theme="green"] .el-menu-style { background-color: var(--sidebar-bg) !important; }
[data-theme="green"] .el-menu-style .el-menu-item,
[data-theme="green"] .el-menu-style .el-sub-menu__title { color: var(--sidebar-text) !important; }
[data-theme="green"] .el-menu-style .el-menu-item:hover,
[data-theme="green"] .el-menu-style .el-sub-menu__title:hover { background-color: var(--sidebar-hover-bg) !important; color: var(--primary-color) !important; }
[data-theme="green"] .el-menu-style .el-menu-item.is-active { background-color: var(--sidebar-active-bg) !important; color: var(--primary-color) !important; }
[data-theme="green"] .tab-title.tab-native { border-bottom-color: var(--primary-color); }

