/* ==========================================================
   业务页面专属样式
   ========================================================== */

/* ---------- 通用小结构 ---------- */
.mini-label { font-size: 10px; letter-spacing: 1.2px; color: var(--muted-2); text-transform: uppercase; }
.stat-inline { display: flex; align-items: baseline; gap: 5px; }
.stat-inline b { font-family: var(--num); font-size: 18px; font-weight: 600; }
.stat-inline span { font-size: 10.5px; color: var(--muted); }
.legend { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); }
.legend i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; margin-right: 4px; }
.split-line { height: 1px; background: var(--line); margin: 12px 0; }
.kv-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 12px; }
.kv-row .k { color: var(--muted); width: 82px; flex: 0 0 auto; }
.kv-row .v { color: var(--txt-2); flex: 1; min-width: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  font-size: 11px; color: var(--txt-2);
}
.chip i { color: var(--muted); }
.chip.on { border-color: rgba(51, 226, 206, .4); color: var(--cyan); background: rgba(51, 226, 206, .08); }

/* ---------- 工作台 ---------- */
.wb-hero {
  position: relative;
  padding: 24px 26px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 88% 10%, rgba(51, 226, 206, .16), transparent 65%),
    radial-gradient(500px 260px at 20% 90%, rgba(91, 140, 255, .14), transparent 65%),
    linear-gradient(120deg, rgba(16, 30, 50, .92), rgba(10, 18, 32, .9));
  overflow: hidden;
}
[data-theme="light"] .wb-hero { background: radial-gradient(600px 300px at 88% 10%, rgba(14,159,146,.12), transparent 65%), linear-gradient(120deg, #fff, #eff6fd); }
.wb-hero::after {
  content: "";
  position: absolute; right: -60px; top: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(51, 226, 206, .12);
  box-shadow: 0 0 0 40px rgba(51, 226, 206, .03), 0 0 0 80px rgba(51, 226, 206, .02);
}
.wb-hero h1 { font-size: 24px; letter-spacing: .5px; margin-bottom: 6px; }
.wb-hero h1 span { color: var(--cyan); }
.wb-hero p { color: var(--muted); font-size: 12px; max-width: 620px; }
.wb-hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; position: relative; z-index: 1; }
.wb-hero-stat { position: absolute; right: 26px; bottom: 22px; text-align: right; z-index: 1; }
.wb-hero-stat b { display: block; font-family: var(--num); font-size: 38px; line-height: 1; background: linear-gradient(100deg, #7ff3e5, #5b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wb-hero-stat span { font-size: 10.5px; color: var(--muted); letter-spacing: 1px; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  cursor: pointer;
  transition: all .18s var(--ease);
}
.quick-item:hover { border-color: rgba(51, 226, 206, .35); background: rgba(51, 226, 206, .06); transform: translateY(-1px); }
.quick-ico {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(91, 140, 255, .12);
  color: var(--blue); font-size: 14px; flex: 0 0 auto;
}
.quick-item:nth-child(2n) .quick-ico { background: rgba(51, 226, 206, .1); color: var(--cyan); }
.quick-item:nth-child(3n) .quick-ico { background: rgba(247, 185, 85, .1); color: var(--amber); }
.quick-item b { display: block; font-size: 12px; font-weight: 500; }
.quick-item span { font-size: 10px; color: var(--muted-2); }

.task-list { display: flex; flex-direction: column; }
.task-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(120, 168, 220, .12);
}
.task-row:last-child { border-bottom: 0; }
.task-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(91, 140, 255, .1); color: var(--blue); font-size: 11px; flex: 0 0 auto; }
.task-row .t { flex: 1; min-width: 0; }
.task-row .t b { display: block; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-row .t span { font-size: 10px; color: var(--muted-2); }

.notice-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(120, 168, 220, .12); }
.notice-item:last-child { border-bottom: 0; }
.notice-item .n-ico { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); margin-top: 7px; flex: 0 0 auto; }
.notice-item b { font-size: 12px; font-weight: 500; display: block; }
.notice-item p { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

/* ---------- 秒级定位看板 ---------- */
.cmd-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 0% 0%, rgba(51, 226, 206, .13), transparent 60%),
    linear-gradient(115deg, rgba(14, 27, 46, .95), rgba(8, 16, 29, .92));
  overflow: hidden;
}
[data-theme="light"] .cmd-hero { background: radial-gradient(700px 320px at 0% 0%, rgba(14,159,146,.1), transparent 60%), linear-gradient(115deg, #fff, #f2f8fd); }
.cmd-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(51, 226, 206, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(51, 226, 206, .04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}
.cmd-left { position: relative; z-index: 1; }
.cmd-tagline { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--cyan); letter-spacing: 1px; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(51,226,206,.5); animation: pulse-dot 1.6s infinite; }
.cmd-big { display: flex; align-items: flex-end; gap: 12px; margin: 10px 0 4px; }
.cmd-big b { font-family: var(--num); font-size: 58px; line-height: .95; font-weight: 600; background: linear-gradient(180deg, #eafffd, #4fe1d1); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -1px; }
.cmd-big span { color: var(--muted); font-size: 12px; padding-bottom: 8px; }
.cmd-sub { color: var(--muted); font-size: 11.5px; }
.cmd-sub b { color: var(--txt); font-family: var(--num); }

.scan-box {
  position: relative;
  border: 1px solid rgba(51, 226, 206, .22);
  border-radius: 11px;
  background: rgba(4, 12, 22, .45);
  padding: 12px 14px;
  overflow: hidden;
  z-index: 1;
}
[data-theme="light"] .scan-box { background: rgba(240, 248, 253, .8); }
.scan-box::after {
  content: "";
  position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(51, 226, 206, .8), transparent);
  animation: scan 3s linear infinite;
}
@keyframes scan { 0% { top: 0; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.scan-line { display: flex; align-items: center; gap: 8px; font-size: 11px; padding: 5px 0; color: var(--muted); }
.scan-line b { color: var(--txt-2); font-weight: 500; font-family: var(--num); }
.scan-line .ok { margin-left: auto; color: var(--green); font-size: 10px; }

.pipeline { display: flex; align-items: center; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.pipe-step {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 9px; border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .025);
  font-size: 10.5px; color: var(--muted);
}
.pipe-step.on { border-color: rgba(51, 226, 206, .4); color: var(--cyan); background: rgba(51, 226, 206, .08); }
.pipe-step b { font-family: var(--num); font-size: 9.5px; }
.pipe-arrow { color: var(--muted-2); font-size: 10px; }

/* ---------- 告警流 ---------- */
.alert-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.alert-feed { display: flex; flex-direction: column; gap: 8px; }
.alert-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding: 13px 15px 13px 17px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(15, 26, 45, .6);
  transition: all .18s var(--ease);
  cursor: pointer;
}
.alert-item:hover { border-color: var(--line-strong); background: rgba(22, 38, 62, .72); transform: translateX(2px); }
.alert-item::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--muted); }
.alert-item.critical::before { background: var(--red); box-shadow: 0 0 12px rgba(255,95,126,.8); }
.alert-item.major::before { background: var(--amber); box-shadow: 0 0 10px rgba(247,185,85,.6); }
.alert-item.minor::before { background: var(--blue); }
.alert-main { flex: 1; min-width: 0; }
.alert-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alert-top b { font-size: 13px; font-weight: 600; }
.alert-top .time { margin-left: auto; font-size: 10.5px; color: var(--muted-2); font-family: var(--num); }
.alert-content { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.alert-meta { display: flex; align-items: center; gap: 10px; margin-top: 7px; font-size: 10.5px; color: var(--muted-2); flex-wrap: wrap; }
.alert-actions { display: flex; align-items: center; gap: 6px; align-self: center; }
.alert-unread { position: absolute; top: 12px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ---------- 健康度雷达 ---------- */
.health-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 14px; }
.health-score { display: flex; align-items: center; justify-content: center; padding: 10px; }
.health-dim { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed rgba(120,168,220,.1); }
.health-dim:last-child { border-bottom: 0; }
.health-dim .n { width: 74px; font-size: 11.5px; color: var(--txt-2); }
.health-dim .bar { flex: 1; }
.health-dim .v { width: 38px; text-align: right; font-family: var(--num); font-size: 11.5px; }

/* ---------- 链路编排 ---------- */
.chain-board {
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 18px;
  overflow-x: auto;
}
.chain-node {
  position: relative;
  min-width: 148px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(24, 42, 68, .85), rgba(12, 22, 38, .9));
  flex: 0 0 auto;
}
[data-theme="light"] .chain-node { background: #fff; }
.chain-node .n-idx { font-family: var(--num); font-size: 9px; color: var(--muted-2); letter-spacing: 1px; }
.chain-node .n-name { font-size: 12px; font-weight: 600; margin: 3px 0; }
.chain-node .n-type { font-size: 10px; color: var(--cyan); }
.chain-node .n-cfg { font-size: 10px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.chain-node .n-ms { position: absolute; right: 9px; top: 9px; font-family: var(--num); font-size: 9px; color: var(--muted-2); }
.chain-connector { display: flex; align-items: center; padding: 0 5px; color: var(--cyan); opacity: .55; flex: 0 0 auto; }
.chain-node:hover { border-color: rgba(51, 226, 206, .45); }

.node-palette { display: flex; gap: 6px; flex-wrap: wrap; }
.node-chip { padding: 5px 9px; border: 1px dashed var(--line-strong); border-radius: 6px; font-size: 10.5px; color: var(--muted); cursor: grab; }
.node-chip:hover { color: var(--cyan); border-color: rgba(51, 226, 206, .45); }

/* ---------- 任务 / 因子 ---------- */
.task-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.task-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(22, 38, 62, .7), rgba(11, 20, 34, .8));
  cursor: pointer;
  transition: all .2s var(--ease);
}
[data-theme="light"] .task-card { background: #fff; }
.task-card:hover { border-color: rgba(51, 226, 206, .35); transform: translateY(-2px); }
.task-card .tc-top { display: flex; align-items: center; gap: 7px; }
.task-card .tc-no { font-family: var(--num); font-size: 10px; color: var(--muted-2); }
.task-card .tc-title { font-size: 12.5px; font-weight: 600; margin: 7px 0 5px; line-height: 1.45; }
.task-card .tc-meta { font-size: 10.5px; color: var(--muted); }
.task-card .tc-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.task-card .tc-res { margin-top: 9px; padding: 8px 9px; border-radius: 7px; background: rgba(51, 226, 206, .05); border: 1px dashed rgba(51, 226, 206, .2); font-size: 10.5px; color: var(--txt-2); line-height: 1.5; }

.factor { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.factor .f-name { width: 96px; font-size: 11.5px; color: var(--txt-2); flex: 0 0 auto; }
.factor .f-bar { flex: 1; height: 7px; border-radius: 5px; background: rgba(120, 150, 180, .14); overflow: hidden; }
.factor .f-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2fe0cb, #5b8cff); }
.factor .f-val { width: 44px; text-align: right; font-family: var(--num); font-size: 11px; color: var(--cyan); }

.log-list { display: flex; flex-direction: column; gap: 0; }
.log-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(120,168,220,.1); font-size: 11.5px; }
.log-item:last-child { border-bottom: 0; }
.log-seq { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(51,226,206,.1); color: var(--cyan); font-family: var(--num); font-size: 9px; flex: 0 0 auto; }
.log-item .l-main { flex: 1; }
.log-item .l-main b { font-weight: 500; color: var(--txt-2); font-size: 11.5px; }
.log-item .l-main p { color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.log-item .l-ms { font-family: var(--num); font-size: 10px; color: var(--muted-2); }

/* ---------- SPC ---------- */
.spc-toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.spc-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 10.5px; color: var(--muted); }
.spc-legend b { display: inline-flex; align-items: center; gap: 5px; font-weight: 400; }
.spc-legend i { width: 14px; height: 2px; display: inline-block; }
.spc-chart { width: 100%; height: 300px; }
.spc-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.spc-stat { background: var(--panel-solid); padding: 10px 12px; }
.spc-stat label { display: block; font-size: 10px; color: var(--muted-2); margin-bottom: 2px; }
.spc-stat b { font-family: var(--num); font-size: 15px; font-weight: 600; }
.spc-stat b.warn { color: var(--amber); }
.spc-stat b.bad { color: var(--red); }

/* ---------- CPK ---------- */
.cpk-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cpk-card {
  position: relative;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(22, 38, 62, .7), rgba(11, 20, 34, .8));
  overflow: hidden;
}
[data-theme="light"] .cpk-card { background: #fff; }
.cpk-card .c-name { font-size: 12.5px; font-weight: 600; }
.cpk-card .c-meta { font-size: 10px; color: var(--muted); margin-top: 2px; }
.cpk-card .c-val { position: absolute; right: 14px; top: 12px; font-family: var(--num); font-size: 22px; font-weight: 600; }
.cpk-card.ok .c-val { color: var(--green); }
.cpk-card.watch .c-val { color: var(--amber); }
.cpk-card.risk .c-val { color: var(--red); }
.cpk-card .c-bar { margin-top: 12px; }
.cpk-card .c-foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 10px; color: var(--muted-2); }
.cpk-card .c-foot b { font-family: var(--num); color: var(--txt-2); font-weight: 500; }

/* ---------- 报表 ---------- */
.report-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.pareto-chart { width: 100%; height: 340px; }
.report-rank { display: flex; flex-direction: column; }
.rank-row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px dashed rgba(120,168,220,.1); }
.rank-row:last-child { border-bottom: 0; }
.rank-no { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-family: var(--num); font-size: 9.5px; background: rgba(120,150,180,.12); color: var(--muted); flex: 0 0 auto; }
.rank-row:nth-child(1) .rank-no { background: rgba(255,95,126,.15); color: var(--red); }
.rank-row:nth-child(2) .rank-no { background: rgba(247,185,85,.15); color: var(--amber); }
.rank-row:nth-child(3) .rank-no { background: rgba(91,140,255,.15); color: var(--blue); }
.rank-name { flex: 1; font-size: 11.5px; }
.rank-val { font-family: var(--num); font-size: 11.5px; color: var(--txt-2); }
.rank-bar { width: 70px; height: 5px; border-radius: 4px; background: rgba(120,150,180,.14); overflow: hidden; }
.rank-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); }

.trend-chart { width: 100%; height: 330px; }

/* ---------- 知识库 ---------- */
.kb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kb-card {
  position: relative;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(22, 38, 62, .68), rgba(11, 20, 34, .8));
  cursor: pointer;
  transition: all .2s var(--ease);
  display: flex; flex-direction: column;
}
[data-theme="light"] .kb-card { background: #fff; }
.kb-card:hover { border-color: rgba(51, 226, 206, .35); transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.2); }
.kb-card .kb-top { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.kb-card .kb-no { font-family: var(--num); font-size: 9.5px; color: var(--muted-2); }
.kb-card .kb-title { font-size: 13px; font-weight: 600; line-height: 1.5; margin-bottom: 6px; }
.kb-card .kb-desc { font-size: 11px; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-card .kb-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.kb-card .kb-foot { display: flex; align-items: center; gap: 10px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted-2); }
.kb-card .kb-foot .sp { margin-left: auto; }
.kb-card .rpn { font-family: var(--num); font-weight: 600; }
.rpn-high { color: var(--red); }
.rpn-mid { color: var(--amber); }
.rpn-low { color: var(--green); }

/* ---------- 组织架构 ---------- */
.org-layout { display: grid; grid-template-columns: 330px 1fr; gap: 14px; }
.org-layout > * { min-width: 0; }
.org-tree { padding: 8px; }
.org-node { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-size: 12px; color: var(--txt-2); cursor: pointer; }
.org-node:hover { background: rgba(91,140,255,.08); }
.org-node.active { background: rgba(51,226,206,.1); color: var(--cyan); }
.org-node .o-ico { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; background: rgba(120,150,180,.1); font-size: 10px; color: var(--muted); }
.org-node.active .o-ico { background: rgba(51,226,206,.16); color: var(--cyan); }
.org-node .o-count { margin-left: auto; font-family: var(--num); font-size: 9.5px; color: var(--muted-2); }
.org-children { margin-left: 14px; padding-left: 10px; border-left: 1px dashed rgba(120,168,220,.16); }

/* ---------- 权限配置 ---------- */
.perm-layout { display: grid; grid-template-columns: 280px 1fr; gap: 14px; }
.role-item { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.02); margin-bottom: 7px; cursor: pointer; }
.role-item:hover { border-color: var(--line-strong); }
.role-item.active { border-color: rgba(51,226,206,.4); background: rgba(51,226,206,.07); }
.role-item .r-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(91,140,255,.12); color: var(--blue); }
.role-item.active .r-ico { background: rgba(51,226,206,.14); color: var(--cyan); }
.role-item b { display: block; font-size: 12px; }
.role-item span { font-size: 10px; color: var(--muted-2); }
.perm-group { border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; margin-bottom: 9px; background: rgba(255,255,255,.015); }
.perm-group .pg-head { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.perm-group .pg-head i { color: var(--cyan); }
.perm-items { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 7px 12px; }

/* ---------- 详情同步按钮 ---------- */
.sync-row { display: flex; gap: 7px; flex-wrap: wrap; }
.sync-btn { display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 9px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 10.5px; color: var(--muted); }
.sync-btn:hover { color: var(--txt); border-color: var(--line-strong); }
.sync-btn i { font-size: 11px; }
.sync-btn.feishu i { color: #3370ff; }
.sync-btn.ding i { color: #2f9bf5; }
.sync-btn.wecom i { color: #2fc46a; }

/* ---------- 漂移 ---------- */
.drift-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.drift-band { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.drift-band b { font-family: var(--num); font-size: 18px; }
.drift-band span { font-size: 10.5px; color: var(--muted); }

/* ---------- 登录 ---------- */
.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  background: #050a13;
  position: relative;
  overflow: hidden;
}
.auth-visual {
  position: relative;
  flex: 1.15;
  background: linear-gradient(180deg, rgba(5, 12, 22, .45), rgba(5, 12, 22, .88)), url("../img/login-side.jpg") center/cover no-repeat;
  overflow: hidden;
}
.auth-visual::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(51,226,206,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(51,226,206,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 40% 40%, #000, transparent 78%);
}
.auth-visual-inner { position: relative; z-index: 1; padding: 48px 54px; height: 100%; display: flex; flex-direction: column; }
.auth-brand { display: flex; align-items: center; gap: 11px; }
.auth-brand .brand-name { font-size: 15px; }
.auth-hero { margin-top: auto; max-width: 520px; }
.auth-hero h1 { font-size: 40px; line-height: 1.24; letter-spacing: 1px; }
.auth-hero h1 span { background: linear-gradient(100deg, #7ff3e5, #5b8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { margin-top: 14px; color: #93a8c2; font-size: 13px; line-height: 1.85; max-width: 440px; }
.auth-stats { display: flex; gap: 30px; margin-top: 28px; }
.auth-stats b { display: block; font-family: var(--num); font-size: 26px; color: #dffbf7; }
.auth-stats span { font-size: 10px; color: #7f93ad; letter-spacing: 1px; }
.auth-foot { margin-top: 36px; font-size: 10.5px; color: #5d7390; letter-spacing: .5px; }

.auth-panel {
  width: 520px;
  flex: 0 0 auto;
  background: linear-gradient(160deg, #0b1424, #070e1a);
  border-left: 1px solid rgba(120, 190, 235, .14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}
.auth-panel::before {
  content: "";
  position: absolute; left: -1px; top: 18%; bottom: 18%; width: 1px;
  background: linear-gradient(180deg, transparent, #33e2ce, transparent);
  opacity: .5;
}
.auth-box { width: 100%; max-width: 354px; }
.auth-box h2 { font-size: 24px; letter-spacing: .5px; }
.auth-box .sub { color: #7f93ad; font-size: 12px; margin-top: 6px; margin-bottom: 26px; }
.auth-field { margin-bottom: 15px; }
.auth-field label { display: block; font-size: 11px; color: #8fa3bd; margin-bottom: 6px; letter-spacing: .4px; }
.auth-input { position: relative; }
.auth-input i { position: absolute; left: 12px; top: 12px; font-size: 14px; color: #5d7390; }
.auth-input input {
  width: 100%; height: 42px; padding: 0 40px 0 36px;
  border-radius: 9px;
  border: 1px solid rgba(120, 168, 220, .16);
  background: rgba(255, 255, 255, .032);
  color: #e9f2fb; font-size: 13px; outline: none;
  transition: all .18s;
}
.auth-input input:focus { border-color: rgba(51, 226, 206, .5); box-shadow: 0 0 0 3px rgba(51, 226, 206, .08); background: rgba(51, 226, 206, .03); }
.auth-input .eye { position: absolute; right: 10px; top: 11px; background: none; border: 0; color: #5d7390; font-size: 13px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 18px; font-size: 11px; color: #8fa3bd; }
.auth-submit {
  width: 100%; height: 43px; border: 0; border-radius: 9px;
  background: linear-gradient(100deg, #2fe0cb, #38b6f0);
  color: #032028; font-weight: 700; font-size: 13.5px; letter-spacing: 1px;
  box-shadow: 0 12px 28px rgba(47, 224, 203, .24);
  transition: all .2s;
}
.auth-submit:hover { filter: brightness(1.06); box-shadow: 0 14px 34px rgba(47, 224, 203, .34); }
.auth-submit:disabled { opacity: .6; cursor: not-allowed; }
.auth-links { margin-top: 16px; text-align: center; font-size: 11.5px; color: #7f93ad; }
.auth-links a { color: #4fe1d1; }
.auth-alert {
  display: none;
  padding: 9px 11px; border-radius: 8px; margin-bottom: 12px;
  font-size: 11.5px;
  background: rgba(255, 95, 126, .1); border: 1px solid rgba(255, 95, 126, .25); color: #ffb3c0;
}
.auth-alert.show { display: block; }
.auth-terms { font-size: 10.5px; color: #6f839d; line-height: 1.7; }

/* ---------- 响应式 ---------- */
@media (max-width: 1400px) {
  .cpk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1200px) {
  .cmd-hero { grid-template-columns: 1fr; }
  .health-hero { grid-template-columns: 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .org-layout, .perm-layout { grid-template-columns: 1fr; }
  .drift-summary { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .spc-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cpk-grid, .kb-grid, .task-grid { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { width: 100%; }
  .wb-hero-stat { position: static; margin-top: 14px; text-align: left; }
  .spc-stats { grid-template-columns: repeat(2, 1fr); }
}
