
/* ===== 启动 / 登录 ===== */
.boot { min-height:100vh; display:flex; flex-direction:column; gap:14px; align-items:center; justify-content:center; color:#9aa4b8; font-size:13px; }
.boot-logo { width:52px; height:52px; border-radius:14px; background:linear-gradient(135deg,#4a7fd4,#6a5cd4); color:#fff; display:flex; align-items:center; justify-content:center; font-size:24px; }
.login-wrap { min-height:100vh; display:grid; grid-template-columns:1.1fr 1fr; }
.login-left { background:linear-gradient(150deg,#1d3a6b,#2b5cb8 55%,#4a7fd4); color:#fff; padding:56px; display:flex; flex-direction:column; justify-content:center; position:relative; overflow:hidden; }
.login-left::after { content:""; position:absolute; width:420px; height:420px; border-radius:50%; background:rgba(255,255,255,.06); right:-120px; bottom:-140px; }
.login-left h1 { font-size:30px; margin-bottom:14px; letter-spacing:.5px; }
.login-left p { font-size:14px; line-height:2; color:rgba(255,255,255,.82); max-width:460px; }
.login-left .pts { margin-top:30px; display:flex; flex-direction:column; gap:12px; }
.login-left .pt { display:flex; gap:10px; align-items:flex-start; font-size:13px; color:rgba(255,255,255,.9); }
.login-left .pt i { width:20px; height:20px; border-radius:50%; background:rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; font-size:11px; font-style:normal; flex-shrink:0; }
.login-right { display:flex; align-items:center; justify-content:center; padding:40px; background:#fff; }
.login-box { width:100%; max-width:360px; }
.login-box .lg { display:flex; align-items:center; gap:10px; margin-bottom:26px; }
.login-box .lg .m { width:38px; height:38px; border-radius:11px; background:linear-gradient(135deg,#4a7fd4,#6a5cd4); color:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; }
.login-box .lg b { font-size:17px; }
.login-box .lg span { font-size:11.5px; color:#9aa4b8; display:block; }
.login-box h2 { font-size:20px; margin-bottom:6px; }
.login-box .sub { font-size:12.5px; color:#9aa4b8; margin-bottom:22px; }
.login-box .field { margin-bottom:14px; }
.login-box input { width:100%; }
.login-box .btn { width:100%; justify-content:center; padding:11px; margin-top:6px; }
.login-tip { margin-top:18px; font-size:11.5px; color:#9aa4b8; line-height:1.9; background:#f7faff; border:1px dashed #dbe5f3; border-radius:9px; padding:10px 12px; }
.login-tip b { color:#3a5fa8; }

/* ===== 弹窗 ===== */
.modal-mask { position:fixed; inset:0; background:rgba(24,34,54,.42); z-index:80; display:flex; align-items:center; justify-content:center; padding:24px; overflow:auto; }
.modal { background:#fff; border-radius:14px; width:100%; box-shadow:0 20px 60px rgba(15,25,45,.22); display:flex; flex-direction:column; max-height:90vh; }
.modal-head { display:flex; align-items:center; padding:16px 20px; border-bottom:1px solid #eef1f6; }
.modal-head h3 { font-size:15px; margin:0; }
.modal-x { margin-left:auto; border:none; background:none; color:#9aa4b8; font-size:15px; cursor:pointer; padding:4px 6px; border-radius:6px; }
.modal-x:hover { background:#f2f5fa; color:#5a6478; }
.modal-body { padding:20px; overflow-y:auto; }
.modal-foot { padding:14px 20px; border-top:1px solid #eef1f6; display:flex; gap:10px; justify-content:flex-end; }

/* ===== 表格 / 空态 / 加载 ===== */
.tbl-wrap { overflow-x:auto; border:1px solid #eef1f6; border-radius:10px; }
.tbl-wrap table { border:none; }
.tbl-wrap th { position:sticky; top:0; background:#f8fafc; z-index:1; }
.tbl-wrap tr.clickable { cursor:pointer; }
.tbl-wrap tr.clickable:hover { background:#f8fafd; }
.empty { padding:34px 20px; text-align:center; color:#9aa4b8; font-size:13px; }
.loading { padding:40px; text-align:center; color:#9aa4b8; font-size:13px; display:flex; align-items:center; justify-content:center; gap:10px; }
.spin { width:16px; height:16px; border:2px solid #dbe5f3; border-top-color:#3d6fd4; border-radius:50%; animation:sp .8s linear infinite; display:inline-block; }
@keyframes sp { to { transform:rotate(360deg); } }

/* ===== 状态点 ===== */
.status { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; padding:3px 9px; border-radius:20px; white-space:nowrap; }
.status::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; opacity:.7; }
.s-green { background:#e2f5ea; color:#1f8a55; }
.s-blue { background:#e8f1ff; color:#2b5cb8; }
.s-orange { background:#fff1e0; color:#c26a1e; }
.s-red { background:#fdeaea; color:#c0392b; }
.s-gray { background:#eef1f6; color:#6a7488; }
.s-purple { background:#f3ecff; color:#6a3cb0; }

/* ===== 表单 ===== */
input, select, textarea { font-family:inherit; font-size:13px; color:#2b3244; border:1px solid #dde5f0; border-radius:8px; padding:8px 11px; background:#fff; outline:none; transition:.15s; width:100%; box-sizing:border-box; }
input:focus, select:focus, textarea:focus { border-color:#3d6fd4; box-shadow:0 0 0 3px rgba(61,111,212,.1); }
input[readonly] { background:#f7f9fc; color:#6a7488; }
textarea { min-height:76px; resize:vertical; line-height:1.7; }
.field label { font-size:12px; color:#7a8699; display:block; margin-bottom:5px; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-grid .full { grid-column:1/-1; }
.form-row { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.form-row .field { flex:1; min-width:150px; }
.hintbar { font-size:12px; color:#c26a1e; background:#fff8ef; border:1px solid #f5dfc4; border-radius:8px; padding:9px 12px; margin-bottom:12px; }

/* ===== 布局补充 ===== */
.page-actions { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:14px; align-items:center; }
.page-actions .grow { flex:1; }
.grid-2 { display:grid; grid-template-columns:1.4fr 1fr; gap:16px; margin-bottom:16px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:16px; }
.grid-4 { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:16px; }
@media (max-width:1180px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr 1fr; }
  .login-wrap { grid-template-columns:1fr; }
  .login-left { display:none; }
}
@media (max-width:760px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns:1fr; }
  .form-grid { grid-template-columns:1fr; }
}

/* ===== 工作台快捷操作条 ===== */
.quick-bar { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin-bottom:16px; }
.quick-bar .qa {
  display:flex; align-items:center; gap:11px; padding:14px 15px; background:#fff;
  border:1px solid #e6eaf2; border-radius:12px; text-decoration:none; color:inherit;
  transition:.16s; position:relative; overflow:hidden;
}
.quick-bar .qa:hover { border-color:#b9cdf0; box-shadow:0 8px 22px rgba(43,92,184,.10); transform:translateY(-1px); }
.quick-bar .qa:active { transform:translateY(0); }
.quick-bar .qa-ico {
  width:38px; height:38px; flex-shrink:0; border-radius:11px; display:flex; align-items:center; justify-content:center;
  font-size:18px; background:#eef4ff;
}
.quick-bar .qa-txt { display:flex; flex-direction:column; gap:3px; min-width:0; }
.quick-bar .qa-txt b { font-size:13.5px; color:#1f2733; }
.quick-bar .qa-txt small { font-size:11px; color:#8a94a8; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.quick-bar .qa-primary { background:linear-gradient(135deg,#2b5cb8,#4a7fd4); border-color:transparent; }
.quick-bar .qa-primary .qa-ico { background:rgba(255,255,255,.18); }
.quick-bar .qa-primary .qa-txt b { color:#fff; }
.quick-bar .qa-primary .qa-txt small { color:rgba(255,255,255,.78); }
.quick-bar .qa-primary:hover { box-shadow:0 10px 26px rgba(43,92,184,.28); }
@media (max-width:1280px) { .quick-bar { grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px) { .quick-bar { grid-template-columns:repeat(2,1fr); } .quick-bar .qa { padding:12px; } .quick-bar .qa-txt small { display:none; } }

/* ===== 员工自助 / 工作时间线 ===== */
.timeline-lite { font-size:12px; color:#7a8699; line-height:1.9; }
.plan-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.plan-col { border:1px solid #e6eaf2; border-radius:11px; overflow:hidden; background:#fff; }
.plan-col h4 { margin:0; padding:10px 12px; font-size:12.5px; background:#f8fafc; border-bottom:1px solid #eef1f6; display:flex; align-items:center; gap:6px; }
.plan-col h4 span { margin-left:auto; font-size:11px; color:#9aa4b8; font-weight:400; }
.plan-task { padding:9px 12px; border-bottom:1px dashed #f0f3f8; font-size:12px; display:flex; gap:8px; align-items:flex-start; }
.plan-task:last-child { border-bottom:none; }
.plan-task input[type=checkbox] { width:15px; height:15px; margin-top:2px; flex-shrink:0; }
.plan-task.done .pt-title { color:#9aa4b8; text-decoration:line-through; }
.plan-task .pt-title { font-weight:500; color:#2b3244; }
.plan-task .pt-expect { color:#8a94a8; font-size:11px; margin-top:2px; }
@media (max-width:1000px) { .plan-grid { grid-template-columns:1fr; } }

/* 绩效沟通气泡 */
.perf-chat { max-height:260px; overflow-y:auto; padding:4px 2px; }
.perf-msg { display:flex; gap:8px; margin-bottom:10px; }
.perf-msg .who { font-size:11px; color:#8a94a8; width:52px; flex-shrink:0; text-align:right; padding-top:3px; }
.perf-msg .bub { background:#f5f8fd; border:1px solid #e6eefb; border-radius:10px; padding:8px 11px; font-size:12.5px; line-height:1.7; color:#2b3244; max-width:80%; }
.perf-msg.me .bub { background:#eef4ff; border-color:#d3e2fb; }
.perf-msg.sys .bub { background:#fff8ef; border-color:#f5e3cb; color:#8a6a34; }

/* ===== 测评选项 ===== */
.opt-row { display:flex; align-items:center; gap:10px; padding:11px 13px; border:1px solid #e6eaf2; border-radius:9px;
  margin-bottom:8px; cursor:pointer; font-size:13px; line-height:1.6; transition:.14s; background:#fff; }
.opt-row:hover { border-color:#b9cdf0; background:#f8fbff; }
.opt-row.on { border-color:#3d6fd4; background:#eef4ff; box-shadow:0 0 0 2px rgba(61,111,212,.10); }

.menu-btn { display:none; }
@media (max-width:900px) {
  .sidebar { transform:translateX(-102%); transition:transform .22s ease; width:250px; box-shadow:0 10px 40px rgba(15,25,45,.16); }
  body.nav-open .sidebar { transform:none; }
  .main { margin-left:0; }
  .topbar { padding:0 14px; gap:10px; }
  .topbar .search { display:none; }
  .topbar-right .tb-bell b { display:none; }
  .menu-btn { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border:1px solid #e6eaf2; background:#fff; border-radius:9px; font-size:16px; cursor:pointer; flex-shrink:0; }
  .content { padding:14px; }
  .nav-mask { position:fixed; inset:0; background:rgba(24,34,54,.35); z-index:35; }
  .tb-logout-txt { display:none; }
}

/* ===== 侧边栏补充 ===== */
.nav-item .cnt { margin-left:auto; font-size:10.5px; background:#fdeaea; color:#c0392b; padding:1px 6px; border-radius:10px; }
.sidebar { overflow-y:auto; }
.topbar h1 { white-space:nowrap; }
.topbar-right .who { display:flex; align-items:center; gap:8px; font-size:12.5px; color:#5a6478; }
.topbar-right .who .av { width:26px; height:26px; border-radius:50%; background:linear-gradient(135deg,#4a7fd4,#6a5cd4); color:#fff; display:flex; align-items:center; justify-content:center; font-size:11px; }

/* ===== 详情页 ===== */
.detail-head { display:flex; align-items:center; gap:16px; margin-bottom:16px; flex-wrap:wrap; }
.detail-head .big-av { width:52px; height:52px; border-radius:14px; background:linear-gradient(135deg,#4a7fd4,#6a5cd4); color:#fff; display:flex; align-items:center; justify-content:center; font-size:19px; }
.detail-head h2 { font-size:19px; margin:0 0 4px; }
.detail-head .meta { font-size:12.5px; color:#8a94a8; }
.kv { display:grid; grid-template-columns:96px 1fr; gap:9px 12px; font-size:12.5px; }
.kv .k { color:#8a94a8; }
.kv .v { color:#2b3244; }
.section-title { font-size:13px; font-weight:600; margin:18px 0 10px; padding-bottom:7px; border-bottom:1px solid #eef1f6; display:flex; align-items:center; gap:8px; }
.section-title small { font-weight:400; color:#9aa4b8; font-size:11.5px; }
.timeline { position:relative; padding-left:18px; }
.timeline::before { content:""; position:absolute; left:5px; top:6px; bottom:6px; width:1px; background:#e6eaf2; }
.tl-item { position:relative; padding-bottom:14px; }
.tl-item::before { content:""; position:absolute; left:-16px; top:4px; width:7px; height:7px; border-radius:50%; background:#4a7fd4; box-shadow:0 0 0 3px #eef4ff; }
.tl-item .tl-t { font-size:12.5px; font-weight:600; }
.tl-item .tl-d { font-size:11.5px; color:#9aa4b8; margin-top:2px; }

/* ===== 九宫格 ===== */
.ninebox { display:grid; grid-template-columns:26px repeat(3,1fr); gap:8px; }
.ninebox .yl { writing-mode:vertical-rl; text-orientation:upright; font-size:11px; color:#9aa4b8; display:flex; align-items:center; justify-content:center; letter-spacing:2px; }
.ninebox .xl { text-align:center; font-size:11px; color:#9aa4b8; padding-top:4px; }
.cellbox { border:1px solid #e6eaf2; border-radius:10px; padding:10px 12px; min-height:78px; font-size:11px; color:#7a8699; line-height:1.6; background:#fbfcfe; }
.cellbox b { font-size:12.5px; color:#2b3244; display:block; margin-bottom:3px; }
.cellbox .name { display:inline-block; background:#eef4ff; color:#2b5cb8; border-radius:5px; padding:1px 6px; margin:3px 3px 0 0; font-size:11px; }
.cell-a { background:#e8f7ef; border-color:#c6ebd6; }
.cell-b { background:#eef4ff; border-color:#d3e2fb; }
.cell-c { background:#fbfcfe; }
.cell-d { background:#fff8ef; border-color:#f5e3cb; }
.cell-e { background:#fdf0ef; border-color:#f6d5d2; }
