/* ===== 英特万象人力资源系统 — 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif; font-size: 14px; color: #606266; background: #f0f2f5; }
a { text-decoration: none; color: inherit; }

.layout { display: flex; min-height: 100vh; }

/* ===== 侧边栏 ===== */
.sidebar { width: 210px; background: #304156; flex-shrink: 0; overflow-y: auto; display: flex; flex-direction: column; }
.logo { height: 50px; display: flex; align-items: center; padding: 0 14px; background: #263445; flex-shrink: 0; }
.logo-img { width: 32px; height: 32px; background: #c0392b; border-radius: 4px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: bold; margin-right: 9px; flex-shrink: 0; }
.logo-text { color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }

.nav { flex: 1; padding: 6px 0; }
.nav-item { position: relative; }
.nav-title { display: flex; align-items: center; padding: 0 16px; height: 46px; color: #bfcbd9; cursor: pointer; transition: all .25s; user-select: none; }
.nav-title:hover { color: #fff; background: rgba(0,0,0,.2); }
.nav-title.active { color: #409EFF; }
.nav-icon { width: 18px; margin-right: 10px; font-size: 15px; text-align: center; flex-shrink: 0; }
.subnav-icon { width: 16px; margin-right: 8px; font-size: 14px; text-align: center; flex-shrink: 0; }
.nav-label { flex: 1; font-size: 13px; }
.nav-arrow { font-size: 11px; transition: transform .25s; }
.nav-item.open > .nav-title .nav-arrow { transform: rotate(90deg); }

.subnav { overflow: hidden; max-height: 0; background: #1f2d3d; transition: max-height .3s ease; }
.nav-item.open > .subnav { max-height: 800px; }
.subnav-item > a { display: flex; align-items: center; padding: 0 16px 0 44px; height: 40px; color: #bfcbd9; text-decoration: none; font-size: 13px; transition: all .25s; position: relative; }
.subnav-item > a:hover { color: #fff; }
.subnav-item.active > a { color: #409EFF; background: rgba(64,158,255,.08); }
.subnav-item.active > a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #409EFF; }

/* 三级子菜单 */
.subnav-item.has-sub .sub-nav-title { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 44px; height: 40px; color: #bfcbd9; font-size: 13px; cursor: pointer; transition: all .25s; position: relative; }
.subnav-item.has-sub .sub-nav-title:hover { color: #fff; }
.subnav-item.has-sub.active > .sub-nav-title { color: #409EFF; }
.sub-nav-arrow { font-size: 10px; transition: transform .25s; margin-right: 14px; }
.subnav-item.has-sub.open > .sub-nav-title .sub-nav-arrow { transform: rotate(90deg); }
.sub-subnav { display: none; background: #182234; }
.subnav-item.has-sub.open > .sub-subnav { display: block; }
.sub-subnav .subnav-item > a { padding-left: 60px; height: 38px; font-size: 12px; }

/* ===== 侧边栏折叠状态 ===== */
.layout.sidebar-collapsed .sidebar { width: 64px; overflow: hidden; }
.layout.sidebar-collapsed .logo-text { display: none; }
.layout.sidebar-collapsed .nav-label { display: none; }
.layout.sidebar-collapsed .nav-arrow { display: none; }
.layout.sidebar-collapsed .nav-title { justify-content: center; padding: 0; }
.layout.sidebar-collapsed .nav-icon { margin-right: 0; }
.layout.sidebar-collapsed .subnav,
.layout.sidebar-collapsed .sub-nav-title,
.layout.sidebar-collapsed .sub-subnav { display: none !important; }

/* ===== 顶栏增强 ===== */
.hamburger { display: flex; align-items: center; cursor: pointer; color: #606266; padding: 0 4px; transition: color .2s; }
.hamburger:hover { color: #409EFF; }
.hamburger svg { transition: transform .3s; }
.layout.sidebar-collapsed ~ * .hamburger svg,
.sidebar-collapsed .hamburger svg { transform: rotate(90deg); }

/* ===== 主区 ===== */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.topbar { height: 50px; background: #fff; flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,21,41,.08); display: flex; align-items: center; padding: 0 16px; justify-content: space-between; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.tb-icon { font-size: 18px; color: #606266; cursor: pointer; }
.tb-icon:hover { color: #409EFF; }
.breadcrumb { display: flex; align-items: center; font-size: 13px; }
.breadcrumb a { color: #606266; }
.breadcrumb a:hover { color: #409EFF; }
.bc-sep { margin: 0 7px; color: #c0c4cc; }
.bc-cur { color: #909399; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-wrap { display: flex; align-items: center; gap: 7px; cursor: pointer; position: relative; }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: #409EFF; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; }
.user-name { font-size: 13px; color: #606266; }

/* 用户下拉菜单 */
.user-dropdown { display: none; position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid #e4e7ed; border-radius: 4px; box-shadow: 0 2px 12px rgba(0,0,0,.1); min-width: 120px; z-index: 100; margin-top: 8px; }
.user-dropdown.show { display: block; }
.user-dropdown a { display: flex; align-items: center; gap: 6px; padding: 8px 16px; color: #606266; font-size: 13px; }
.user-dropdown a:hover { background: #ecf5ff; color: #409EFF; }

/* 标签页 */
.tabs-bar { background: #fff; padding: 0 16px; border-bottom: 1px solid #d8dce5; display: flex; align-items: flex-end; height: 40px; flex-shrink: 0; overflow-x: auto; white-space: nowrap; }
.tabs-bar::-webkit-scrollbar { height: 0; }
.tab { display: inline-flex; align-items: center; padding: 0 14px; height: 32px; border: 1px solid #d8dce5; border-bottom: none; background: #fff; color: #606266; font-size: 13px; cursor: pointer; margin-right: -1px; transition: all .2s; user-select: none; flex-shrink: 0; }
.tab:hover { color: #409EFF; }
.tab.active { background: #409EFF; color: #fff; border-color: #409EFF; }
.tab-close { margin-left: 6px; font-size: 13px; line-height: 1; }
.tab-close:hover { color: #f56c6c; }

/* 内容区 */
.content { flex: 1; overflow: auto; padding: 16px; transition: opacity .12s ease; }

/* ===== 通用组件 ===== */
.search-card { background: #fff; border-radius: 4px; padding: 16px 20px 12px; margin-bottom: 14px; }
.search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.sf-item { display: flex; align-items: center; gap: 8px; }
.sf-label { font-weight: 500; color: #303133; white-space: nowrap; font-size: 13px; }
.sf-input, .sf-select { padding: 7px 10px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; outline: none; transition: border-color .2s; }
.sf-input:focus, .sf-select:focus { border-color: #409EFF; }
.sf-input::placeholder { color: #c0c4cc; }
.sf-w160 { width: 160px; }
.sf-w200 { width: 200px; }
.sf-w120 { width: 120px; }
.date-range { display: flex; align-items: center; gap: 6px; }
.date-range span { color: #909399; }

.action-bar { background: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #ebeef5; border-radius: 4px 4px 0 0; }
.action-bar.no-table { border-radius: 4px; border-bottom: none; margin-bottom: 14px; }
.bar-right { margin-left: auto; display: flex; gap: 6px; }

.btn { display: inline-flex; align-items: center; gap: 4px; padding: 7px 14px; border: 1px solid #dcdfe6; border-radius: 4px; cursor: pointer; font-size: 13px; transition: all .2s; white-space: nowrap; text-decoration: none; }
.btn-primary { background: #409EFF; color: #fff; border-color: #409EFF; }
.btn-primary:hover { background: #66b1ff; border-color: #66b1ff; }
.btn-default { background: #fff; color: #606266; }
.btn-default:hover { color: #409EFF; border-color: #c6e2ff; background: #ecf5ff; }
.btn-success { background: #f0f9eb; color: #67c23a; border-color: #c2e7b0; }
.btn-success:hover { background: #67c23a; color: #fff; }
.btn-warning { background: #fdf6ec; color: #e6a23c; border-color: #f5dab1; }
.btn-warning:hover { background: #e6a23c; color: #fff; }
.btn-danger { background: #fef0f0; color: #f56c6c; border-color: #fbc4c4; }
.btn-danger:hover { background: #f56c6c; color: #fff; }
.btn-info { background: #f4f4f5; color: #909399; border-color: #d3d4d6; }
.btn-info:hover { background: #909399; color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.icon-btn { width: 30px; height: 30px; border: 1px solid #dcdfe6; border-radius: 4px; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #606266; font-size: 14px; }
.icon-btn:hover { color: #409EFF; border-color: #c6e2ff; }

.table-card { background: #fff; border-radius: 0 0 4px 4px; }
.table-card.standalone { border-radius: 4px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid #ebeef5; font-size: 13px; }
th { background: #fafafa; color: #909399; font-weight: 500; white-space: nowrap; }
tr:hover td { background: #f5f7fa; }
.cb { width: 16px; height: 16px; cursor: pointer; }

.tree-child td:first-child { padding-left: 36px; }
.tree-toggle { color: #409EFF; cursor: pointer; margin-right: 4px; }

.tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.tag-green { background: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8; }
.tag-red { background: #fef0f0; color: #f56c6c; border: 1px solid #fde2e2; }
.tag-blue { background: #ecf5ff; color: #409EFF; border: 1px solid #d9ecff; }
.tag-orange { background: #fdf6ec; color: #e6a23c; border: 1px solid #faecd8; }
.tag-gray { background: #f4f4f5; color: #909399; border: 1px solid #e9e9eb; }
.tag-cyan { background: #e8f8fc; color: #17a2b8; border: 1px solid #bee5eb; }

.toggle { display: inline-block; width: 36px; height: 20px; background: #409EFF; border-radius: 10px; position: relative; cursor: pointer; }
.toggle::after { content: ''; position: absolute; width: 16px; height: 16px; background: #fff; border-radius: 50%; top: 2px; right: 2px; transition: .2s; }
.toggle.off { background: #c0c4cc; }
.toggle.off::after { right: auto; left: 2px; }

.op-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.op-btn { color: #409EFF; cursor: pointer; font-size: 13px; white-space: nowrap; }
.op-btn:hover { color: #66b1ff; }
.op-btn.del { color: #f56c6c; }
.op-btn.del:hover { color: #f78989; }

.pagination { display: flex; align-items: center; justify-content: flex-end; padding: 12px 16px; background: #fff; border-top: 1px solid #ebeef5; }
.pg-total { color: #606266; font-size: 13px; margin-right: 12px; }
.pg-size { padding: 5px 8px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; margin-right: 10px; }
.pg-btns { display: flex; gap: 4px; }
.pg-btn { min-width: 28px; height: 28px; padding: 0 7px; border: 1px solid #dcdfe6; background: #fff; color: #606266; cursor: pointer; border-radius: 4px; font-size: 13px; }
.pg-btn:hover { color: #409EFF; border-color: #c6e2ff; }
.pg-btn.active { background: #409EFF; color: #fff; border-color: #409EFF; }
.pg-btn:disabled { color: #c0c4cc; cursor: not-allowed; }

/* 登录页 */
.login-bg { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #304156 0%, #1f2d3d 100%); }
.login-box { background: #fff; border-radius: 8px; padding: 40px; width: 380px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo-icon { width: 56px; height: 56px; background: #c0392b; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; font-weight: bold; margin-bottom: 12px; }
.login-title { font-size: 18px; color: #303133; }
.login-subtitle { font-size: 12px; color: #909399; margin-top: 6px; }
.login-form { margin-top: 24px; }
.login-field { margin-bottom: 18px; }
.login-label { font-size: 13px; color: #606266; margin-bottom: 6px; }
.login-input { width: 100%; padding: 10px 12px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 14px; outline: none; transition: border-color .2s; }
.login-input:focus { border-color: #409EFF; }
.login-btn { width: 100%; padding: 11px; background: #409EFF; color: #fff; border: none; border-radius: 4px; font-size: 15px; cursor: pointer; transition: background .2s; }
.login-btn:hover { background: #66b1ff; }
.login-error { color: #f56c6c; font-size: 13px; margin-bottom: 12px; text-align: center; }

/* ===== 弹窗系统 ===== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.45); z-index: 10000; justify-content: center; align-items: flex-start; padding-top: 60px; overflow-y: auto; }
.modal-overlay.show { display: flex; }
.modal-box { width: 720px; max-width: 92vw; max-height: calc(100vh - 80px); background: #fff; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,.18); display: flex; flex-direction: column; overflow: hidden; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid #ebeef5; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.modal-title { font-size: 16px; color: #303133; font-weight: 500; }
.modal-close { width: 28px; height: 28px; border: none; background: none; cursor: pointer; font-size: 18px; color: #909399; display: flex; align-items: center; justify-content: center; transition: color .2s; }
.modal-close:hover { color: #f56c6c; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
/* 弹窗内 form-card 调整 */
.modal-body .form-card { padding: 0; background: transparent; }
.modal-body .form-actions { margin-left: 0; padding-top: 20px; display:flex; justify-content:flex-end; gap:10px; }
.modal-body .form-header { display: none; }
/* 弹窗内表单分区标题 */
.form-section-title { font-size: 14px; color: #303133; font-weight: 600; margin: 20px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #ebeef5; }
.form-section-title:first-child { margin-top: 0; }

/* 表单页 */
.form-card { background: #fff; border-radius: 4px; padding: 24px; }
.form-row { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 16px; }
.form-item { display: flex; flex-direction: column; gap: 6px; }
.form-item-full { flex: 0 0 100%; }
.form-item-full .form-input, .form-item-full .form-textarea, .form-item-full .form-select { width: 100%; box-sizing: border-box; }
.form-label { font-size: 13px; color: #303133; font-weight: 500; }
.form-label .req { color: #f56c6c; }
.form-input, .form-select, .form-textarea { padding: 8px 12px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; outline: none; transition: border-color .2s; }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: #409EFF; }
.form-textarea { resize: vertical; min-height: 80px; }

/* Dashboard 统计卡片 */
.stat-cards { display: flex; gap: 16px; margin-bottom: 16px; }
.stat-card { flex: 1; background: #fff; border-radius: 4px; padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 48px; height: 48px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.stat-icon.blue { background: #ecf5ff; color: #409EFF; }
.stat-icon.green { background: #f0f9eb; color: #67c23a; }
.stat-icon.orange { background: #fdf6ec; color: #e6a23c; }
.stat-icon.red { background: #fef0f0; color: #f56c6c; }
.stat-val { font-size: 24px; font-weight: 600; color: #303133; }
.stat-label { font-size: 13px; color: #909399; }

/* ===== 搜索面板 ===== */
.search-panel { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 9999; justify-content: center; align-items: flex-start; padding-top: 120px; }
.search-panel.show { display: flex; }
.search-panel-box { width: 480px; background: #fff; border-radius: 8px; box-shadow: 0 4px 24px rgba(0,0,0,.2); overflow: hidden; }
.search-panel-box input { width: 100%; padding: 16px 20px; border: none; border-bottom: 1px solid #ebeef5; font-size: 16px; outline: none; }
.search-results { max-height: 320px; overflow-y: auto; }
.search-result-item { padding: 10px 20px; font-size: 14px; color: #606266; cursor: pointer; transition: all .15s; }
.search-result-item:hover { background: #ecf5ff; color: #409EFF; }
.search-empty { padding: 20px; text-align: center; color: #909399; font-size: 13px; }
.search-hint { padding: 8px 20px; font-size: 12px; color: #c0c4cc; border-top: 1px solid #ebeef5; }

/* ===== 帮助面板 ===== */
.help-panel { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 9999; display: flex; justify-content: center; align-items: center; }
.help-panel-box { width: 400px; background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 4px 24px rgba(0,0,0,.2); }
.help-panel-box h3 { font-size: 15px; color: #303133; margin-bottom: 12px; }
.help-item { font-size: 13px; color: #606266; padding: 6px 0; }
.help-item kbd { display: inline-block; padding: 2px 8px; background: #f4f4f5; border: 1px solid #dcdfe6; border-radius: 3px; font-size: 12px; font-family: monospace; margin: 0 2px; }

/* ===== 暗黑模式 ===== */
body.dark-mode { background: #141414; color: #e0e0e0; }
body.dark-mode .topbar { background: #1d1e1f; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
body.dark-mode .breadcrumb a,
body.dark-mode .breadcrumb span,
body.dark-mode .user-name,
body.dark-mode .hamburger,
body.dark-mode .tb-icon { color: #e0e0e0; }
body.dark-mode .tabs-bar { background: #1d1e1f; border-bottom-color: #303030; }
body.dark-mode .tab { background: #1d1e1f; color: #a0a0a0; border-color: #303030; }
body.dark-mode .tab.active { background: #409EFF; color: #fff; }
body.dark-mode .content { background: #141414; }
body.dark-mode .search-card,
body.dark-mode .table-card,
body.dark-mode .action-bar,
body.dark-mode .form-card,
body.dark-mode .stat-card { background: #1d1e1f; }
body.dark-mode th { background: #262729; color: #a0a0a0; }
body.dark-mode td { border-bottom-color: #303030; color: #e0e0e0; }
body.dark-mode tr:hover td { background: #262729; }
body.dark-mode .sf-input,
body.dark-mode .sf-select,
body.dark-mode .form-input,
body.dark-mode .form-select,
body.dark-mode .form-textarea { background: #262729; border-color: #303030; color: #e0e0e0; }
body.dark-mode .btn-default { background: #262729; color: #e0e0e0; border-color: #303030; }
body.dark-mode .icon-btn { background: #262729; color: #e0e0e0; border-color: #303030; }
body.dark-mode .pg-btn { background: #262729; color: #e0e0e0; border-color: #303030; }
body.dark-mode .pg-size { background: #262729; color: #e0e0e0; border-color: #303030; }

/* ===== 字体大小 ===== */
body.font-small { font-size: 12px; }
body.font-small th,
body.font-small td { font-size: 12px; }
body.font-large { font-size: 16px; }
body.font-large th,
body.font-large td { font-size: 15px; }

/* ===== 占位页面 ===== */
.placeholder-page { text-align: center; padding: 80px 20px; }
.placeholder-page .ph-icon { font-size: 64px; margin-bottom: 20px; opacity: .4; }
.placeholder-page .ph-title { font-size: 20px; color: #303133; margin-bottom: 8px; }
.placeholder-page .ph-desc { font-size: 14px; color: #909399; }

/* ===== 个人中心页面 ===== */
.profile-page { padding: 16px; }
.profile-alert { padding: 10px 16px; margin-bottom: 16px; border-radius: 4px; font-size: 13px; }
.profile-alert.success { background: #f0f9ff; border: 1px solid #e1f3d8; color: #67c23a; }
.profile-alert.error { background: #fef0f0; border: 1px solid #fde2e2; color: #f56c6c; }
.profile-row { display: flex; gap: 16px; flex-wrap: wrap; }
.profile-col-left { flex: 0 0 300px; }
.profile-col-right { flex: 1; min-width: 400px; }
.profile-card { background: #fff; border-radius: 4px; box-shadow: 0 2px 12px 0 rgba(0,0,0,.08); border: 1px solid #ebeef5; overflow: hidden; }
.profile-card-header { padding: 14px 20px; border-bottom: 1px solid #ebeef5; font-size: 15px; font-weight: 500; color: #303133; }
.profile-card-body { padding: 20px; }
.profile-avatar-area { text-align: center; margin-bottom: 20px; }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; background: linear-gradient(135deg, #409EFF, #36cfc9); display: inline-flex; align-items: center; justify-content: center; font-size: 40px; color: #fff; cursor: pointer; transition: opacity .25s; }
.profile-avatar:hover { opacity: .85; }
.profile-info-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid #ebeef5; }
.profile-info-item { display: flex; align-items: center; padding: 11px 0; border-bottom: 1px solid #f2f6fc; font-size: 13px; }
.profile-info-item .info-icon { width: 24px; text-align: center; font-size: 14px; }
.profile-info-item .info-label { color: #606266; min-width: 70px; }
.profile-info-item .info-value { margin-left: auto; color: #303133; font-weight: 500; }
.profile-tabs-header { display: flex; border-bottom: 2px solid #e4e7ed; margin-bottom: 24px; }
.profile-tab-item { padding: 0 20px 10px; font-size: 14px; color: #606266; cursor: pointer; position: relative; transition: color .2s; }
.profile-tab-item:hover { color: #409EFF; }
.profile-tab-item.active { color: #409EFF; }
.profile-tab-item.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #409EFF; }
.profile-form { padding-top: 8px; }
/* ===== 个人中心页面 - 表单（限域，避免污染全局form-*） ===== */
.profile-form .form-row { display: flex; align-items: flex-start; margin-bottom: 22px; }
.profile-form .form-label { width: 80px; text-align: right; padding-right: 12px; font-size: 13px; color: #606266; line-height: 34px; flex-shrink: 0; }
.profile-form .form-label .req { color: #f56c6c; margin-left: 2px; }
.profile-form .form-input-wrap { flex: 1; }
.profile-form .form-input { width: 100%; max-width: 400px; height: 34px; padding: 0 12px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; color: #606266; transition: border-color .2s; box-sizing: border-box; }
.profile-form .form-input:focus { outline: none; border-color: #409EFF; }
.profile-form .radio-label { display: inline-flex; align-items: center; margin-right: 20px; font-size: 13px; color: #606266; cursor: pointer; line-height: 34px; }
.profile-form .radio-label input { margin-right: 6px; }
.profile-form .form-actions { margin-left: 92px; margin-top: 8px; }
.profile-form .form-actions .btn { margin-right: 10px; }
/* 外部独立案件表单：底部按钮（确定/取消）右对齐 */
.case-form .form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.profile-form .checkbox-group { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 8px 0; }
.profile-form .checkbox-item { display: inline-flex; align-items: center; font-size: 13px; color: #606266; cursor: pointer; line-height: 28px; }
.profile-form .checkbox-item input { margin-right: 6px; }
.profile-form .form-item-full { flex: 0 0 100%; }
.profile-form .form-item-full label { width: 80px; }
.profile-form .form-item-full input, .profile-form .form-item-full textarea, .profile-form .form-item-full select { flex: 1; }
.tag-red { background: #fef0f0; color: #f56c6c; border-color: #fde2e2; }

body.dark-mode .profile-card { background: #1d1e1f; border-color: #303030; }
body.dark-mode .profile-card-header { border-bottom-color: #303030; color: #e0e0e0; }
body.dark-mode .profile-info-list { border-top-color: #303030; }
body.dark-mode .profile-info-item { border-bottom-color: #303030; }
body.dark-mode .profile-info-item .info-label { color: #a0a0a0; }
body.dark-mode .profile-info-item .info-value { color: #e0e0e0; }
body.dark-mode .profile-tabs-header { border-bottom-color: #303030; }
body.dark-mode .profile-tab-item { color: #a0a0a0; }
body.dark-mode .profile-form .form-label { color: #a0a0a0; }
body.dark-mode .profile-form .form-input { background: #262729; border-color: #303030; color: #e0e0e0; }
body.dark-mode .profile-form .radio-label { color: #a0a0a0; }
body.dark-mode .profile-alert.success { background: #1a2e1a; border-color: #2d4a2d; }
body.dark-mode .profile-alert.error { background: #2e1a1a; border-color: #4a2d2d; }

/* 标签页右键菜单 */
.tab-ctx-menu {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0,0,0,.15);
    padding: 4px 0;
    min-width: 140px;
    font-size: 13px;
    color: #303133;
}
.tab-ctx-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    text-decoration: none;
    color: #303133;
    cursor: pointer;
}
.tab-ctx-menu a:hover {
    background: #ecf5ff;
    color: #409EFF;
}
.tab-ctx-menu .ctx-icon {
    width: 16px;
    text-align: center;
    font-size: 14px;
    color: #606266;
}
body.dark-mode .tab-ctx-menu { background: #2a2b2c; border-color: #303030; color: #e0e0e0; }
body.dark-mode .tab-ctx-menu a { color: #e0e0e0; }
body.dark-mode .tab-ctx-menu a:hover { background: #3a3b3c; color: #409EFF; }
body.dark-mode .tab-ctx-menu .ctx-icon { color: #a0a0a0; }
