/* ============ 建华数字平台总览 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background: #0b1530;
  color: #e6ecff;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ---------- 背景 ---------- */
.bg-deco {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59,130,246,.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(14,165,233,.14), transparent 60%),
    linear-gradient(160deg, #0b1530 0%, #0e1b3f 55%, #0b1530 100%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .35;
  background-image:
    linear-gradient(rgba(96,140,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,140,255,.06) 1px, transparent 1px);
  background-size: 42px 42px;
}

/* ---------- 登录页 ---------- */
#page-login {
  position: relative; z-index: 2;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 34px; padding: 24px;
}
.login-brand { text-align: center; }
.login-brand .login-logo {
  width: 110px; height: 110px; margin: 0 auto 18px;
  object-fit: contain; filter: drop-shadow(0 0 24px rgba(220,38,38,.45));
}
.login-brand .logo-ring {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9);
  box-shadow: 0 0 46px rgba(37,99,235,.55);
  font-size: 38px;
}
.login-brand h1 {
  font-size: 30px; letter-spacing: 8px; font-weight: 700;
  background: linear-gradient(90deg, #dbe7ff, #7cc0ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.login-brand p { margin-top: 10px; color: #7d93c9; letter-spacing: 3px; font-size: 13px; }

.login-card {
  width: 380px; max-width: 92vw;
  background: rgba(15,28,63,.82);
  border: 1px solid rgba(96,140,255,.28);
  border-radius: 18px; padding: 34px 34px 30px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 60px rgba(2,8,30,.6);
}
.login-card h2 { font-size: 17px; font-weight: 600; margin-bottom: 22px; color: #cfe0ff; text-align: center; letter-spacing: 2px; }
.code-inputs { display: flex; gap: 14px; justify-content: center; margin-bottom: 20px; }
.code-inputs input {
  width: 58px; height: 66px; text-align: center; font-size: 30px; font-weight: 700;
  color: #eaf2ff; background: rgba(10,20,48,.9);
  border: 1.5px solid rgba(96,140,255,.35); border-radius: 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.code-inputs input:focus { border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
/* 修复：浏览器自动填充把第一个密码框刷白 */
.code-inputs input:-webkit-autofill,
.code-inputs input:-webkit-autofill:hover,
.code-inputs input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(10,20,48,.9) inset;
  -webkit-text-fill-color: #eaf2ff;
  caret-color: #eaf2ff;
  transition: background-color 99999s ease-in-out 0s;
}
.login-msg { min-height: 20px; text-align: center; font-size: 13px; color: #ff8a8a; margin-bottom: 12px; }
.login-msg.ok { color: #6ee7a8; }
.btn-login {
  width: 100%; height: 48px; border: none; border-radius: 12px; cursor: pointer;
  font-size: 16px; letter-spacing: 6px; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  box-shadow: 0 8px 24px rgba(37,99,235,.4);
  transition: filter .15s, transform .1s;
}
.btn-login:hover { filter: brightness(1.12); }
.btn-login:active { transform: scale(.98); }
.login-foot { margin-top: 18px; text-align: center; font-size: 12px; color: #62779f; }
.login-beian {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 12px;
  color: #8aa0d0;
  text-decoration: none;
  opacity: .85;
}
.login-beian:hover { opacity: 1; color: #a5c3ff; }
.login-beian-wrap { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.login-beian img { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }
.login-beian { display: inline-flex; align-items: center; margin-top: 0; }

/* ---------- 主框架 ---------- */
#page-app { position: relative; z-index: 1; min-height: 100vh; display: none; flex-direction: column; }
.topbar {
  height: 64px; display: flex; align-items: center; gap: 18px;
  padding: 0 26px; position: sticky; top: 0; z-index: 30;
  background: rgba(9,17,41,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(96,140,255,.18);
}
.topbar .brand { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 700; letter-spacing: 3px; white-space: nowrap; }
.topbar .brand .brand-logo {
  width: 36px; height: 36px; object-fit: contain; border-radius: 6px;
  filter: drop-shadow(0 0 10px rgba(220,38,38,.35));
}
.topbar .brand .dot {
  width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1d4ed8, #0ea5e9); font-size: 17px;
}
.topnav { display: flex; gap: 6px; margin-left: 22px; }
.topnav a {
  padding: 8px 18px; border-radius: 9px; font-size: 14px; color: #9db3e2;
  transition: background .15s, color .15s; letter-spacing: 1px; white-space: nowrap;
}
.topnav a:hover { color: #e6ecff; background: rgba(59,130,246,.14); }
.topnav a.active { color: #fff; background: linear-gradient(90deg, #2563eb, #0e7dd8); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
/* 运管工作台导航：仅公司领导可见（JS 兜底 + CSS 双保险） */
body.role-staff .topnav a[data-nav="ops"] { display: none !important; }
.topbar .spacer { flex: 1; }
.topbar .clockbox { text-align: right; font-size: 12px; color: #8ea6d8; line-height: 1.5; white-space: nowrap; }
.topbar .clockbox b { font-size: 15px; color: #dbe7ff; letter-spacing: 1px; }
.userchip {
  display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 10px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(96,140,255,.25); white-space: nowrap;
}
.userchip .avatar {
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #0ea5e9); font-size: 13px; font-weight: 700;
}
.userchip .uname { font-size: 13px; color: #dbe7ff; }
.userchip .logout { font-size: 12px; color: #7d93c9; cursor: pointer; }
.userchip .logout:hover { color: #ff9c9c; }

.main { flex: 1; padding: 18px 24px 28px; max-width: min(1460px, 100vw - 48px); width: 100%; margin: 0 auto; box-sizing: border-box; }
.main::-webkit-scrollbar { width: 5px; }
.main::-webkit-scrollbar-thumb { background: rgba(96,140,255,.25); border-radius: 3px; }
.main::-webkit-scrollbar-track { background: transparent; }

/* ---------- 首页 ---------- */
.hero { margin: 8px 0 26px; }
.hero h2 { font-size: 24px; letter-spacing: 2px; }
.hero h2 span { color: #7cc0ff; }
.hero p { margin-top: 8px; color: #7d93c9; font-size: 13px; letter-spacing: 1px; }

.portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
.portal-card {
  position: relative; border-radius: 18px; padding: 30px 30px 26px; cursor: pointer; overflow: hidden;
  background: rgba(15,28,63,.72); border: 1px solid rgba(96,140,255,.22);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.portal-card:hover { transform: translateY(-4px); border-color: rgba(124,192,255,.55); box-shadow: 0 16px 44px rgba(2,8,30,.55); }
.portal-card .p-icon { font-size: 40px; }
.portal-card h3 { margin: 14px 0 8px; font-size: 21px; letter-spacing: 3px; }
.portal-card .p-en { font-size: 11px; color: #62779f; letter-spacing: 2px; text-transform: uppercase; }
.portal-card .p-desc { margin-top: 10px; font-size: 13px; color: #8ea6d8; }
.portal-card .p-tags { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.portal-card .p-tags span {
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(59,130,246,.13); border: 1px solid rgba(96,140,255,.22); color: #b9ccf5;
}
.portal-card .p-glow { position: absolute; top: -60px; right: -60px; width: 190px; height: 190px; border-radius: 50%; filter: blur(60px); opacity: .5; }
/* 非领导首页入口只读：保留视觉，禁止交互 */
body.role-staff .portal-card,
body.role-staff .portal-card-readonly { cursor: default; }
body.role-staff .portal-card-readonly:hover { transform: none; border-color: rgba(96,140,255,.22); box-shadow: none; }

/* 方案C：首页合并单卡（左职能右业务），压缩高度 */
.portal-merged {
  position: relative; border-radius: 18px; padding: 20px 26px 18px; margin-bottom: 26px;
  display: flex; align-items: stretch; gap: 20px; overflow: hidden;
  background: rgba(15,28,63,.72); border: 1px solid rgba(96,140,255,.22);
  transition: border-color .18s, box-shadow .18s;
}
.portal-merged:hover { border-color: rgba(124,192,255,.55); box-shadow: 0 16px 44px rgba(2,8,30,.55); }
.portal-merged .pm-col { flex: 1; min-width: 0; padding: 4px 6px; border-radius: 12px; }
body:not(.role-staff) .portal-merged .pm-col { cursor: pointer; }
body:not(.role-staff) .portal-merged .pm-col:hover { background: rgba(59,130,246,.08); }
body.role-staff .portal-merged .pm-col { cursor: default; }
.portal-merged .pm-divider { width: 1px; background: rgba(96,140,255,.18); flex: none; }
.portal-merged .pm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.portal-merged .pm-icon {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: rgba(59,130,246,.18); border: 1px solid rgba(96,140,255,.28);
}
.portal-merged .pm-title h3 { margin: 0; font-size: 17px; letter-spacing: 2px; }
.portal-merged .pm-title .p-en { font-size: 11px; color: #62779f; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px; }
.portal-merged .p-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.portal-merged .p-tags span {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  background: rgba(59,130,246,.13); border: 1px solid rgba(96,140,255,.22); color: #b9ccf5;
}

.dash-section {
  margin-top: 14px; padding-top: 22px;
  border-top: 1px solid rgba(96,140,255,.18);
  display: flex; flex-direction: column; gap: 12px; min-height: 100%;
}
.dash-section .dash-head h2::before {
  content: ""; display: inline-block; width: 6px; height: 22px; vertical-align: -4px;
  margin-right: 12px; border-radius: 3px;
  background: linear-gradient(180deg, #3b82f6, #22d3ee);
}

/* ---------- 端口 / 分类页 ---------- */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #7d93c9; margin-bottom: 20px; }
.crumb a { color: #9db3e2; }
.crumb a:hover { color: #7cc0ff; }
.crumb .sep { color: #44547c; }
.crumb .cur { color: #dbe7ff; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cat-card {
  position: relative;
  border-radius: 16px; padding: 26px 24px; cursor: pointer;
  background: rgba(15,28,63,.72); border: 1px solid rgba(96,140,255,.2);
  transition: transform .16s, border-color .16s, box-shadow .16s;
  display: flex; align-items: center; gap: 18px;
}
.cat-card:hover { transform: translateY(-3px); border-color: rgba(124,192,255,.5); box-shadow: 0 12px 34px rgba(2,8,30,.5); }
.cat-card .c-icon {
  width: 54px; height: 54px; border-radius: 14px; font-size: 26px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59,130,246,.15); border: 1px solid rgba(96,140,255,.25);
}
.cat-card h4 { font-size: 17px; letter-spacing: 2px; }
.cat-card .c-count { margin-top: 6px; font-size: 12px; color: #7d93c9; }
/* 职能线受限端口卡片：灰显 + 左上角受限角标 + 禁点 */
.cat-card-locked { cursor: not-allowed; opacity: .55; background: rgba(15,28,63,.45); border: 1px dashed rgba(120,140,180,.3); filter: grayscale(.4); }
.cat-card-locked:hover { transform: none; border-color: rgba(120,140,180,.3); }
.cat-restrict-badge {
  position: absolute; top: 10px; left: 12px;
  font-size: 11px; color: #ffd28a; white-space: nowrap;
  background: rgba(255,170,60,.14); border: 1px solid rgba(255,170,60,.4);
  padding: 2px 9px; border-radius: 10px; letter-spacing: .5px;
}

/* ---------- 业务线/职能线端口：单排分类 + 下方数据驾驶舱 ---------- */
.portal-page-wrap { display: flex; flex-direction: column; gap: 26px; }

/* 业务线 4 个分类一行 */
.cat-grid-biz { grid-template-columns: repeat(4, 1fr); }

/* 职能线 6 个分类一行（卡片更紧凑） */
.cat-grid-func { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-grid-func .cat-card { padding: 18px 14px; gap: 12px; }
.cat-grid-func .c-icon { width: 44px; height: 44px; font-size: 22px; border-radius: 12px; }
.cat-grid-func .cat-card h4 { font-size: 15px; letter-spacing: 1px; }
.cat-grid-func .c-count { font-size: 11px; }

/* 端口驾驶舱容器 */
.portal-cockpit {
  background: rgba(15,28,63,.72); border: 1px solid rgba(96,140,255,.22);
  border-radius: 18px; padding: 24px;
}
.cockpit-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.cockpit-head h2 { font-size: 18px; color: #dbe7ff; margin: 0; letter-spacing: 1px; }
.cockpit-sub { font-size: 12px; color: #7d93c9; }

/* 驾驶舱 KPI */
.cockpit-kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; align-items: stretch; }
.cockpit-kpi.kpi-row-4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cockpit-kpi.kpi-row-4 .cockpit-kpi-card { padding: 16px; min-width: 0; }
.cockpit-kpi.kpi-row-4 .k-label { font-size: 13px; margin-bottom: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cockpit-kpi.kpi-row-4 .k-value { font-size: 24px; white-space: nowrap; }
.cockpit-kpi.kpi-row-4 .k-value small { font-size: 12px; }
.cockpit-kpi.kpi-row-4 .k-extra { font-size: 12px; margin-top: 5px; }
@media (max-width: 1100px) { .cockpit-kpi.kpi-row-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .cockpit-kpi.kpi-row-4 { grid-template-columns: 1fr; } }
.cockpit-kpi.kpi-row-6 { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cockpit-kpi.kpi-row-6 .cockpit-kpi-card { padding: 14px 12px; min-width: 0; }
.cockpit-kpi.kpi-row-6 .k-label { font-size: 12px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cockpit-kpi.kpi-row-6 .k-value { font-size: 20px; white-space: nowrap; }
.cockpit-kpi.kpi-row-6 .k-value small { font-size: 11px; }
.cockpit-kpi.kpi-row-6 .k-extra { font-size: 11px; margin-top: 4px; }
@media (max-width: 1280px) { .cockpit-kpi.kpi-row-6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .cockpit-kpi.kpi-row-6 { grid-template-columns: repeat(2, 1fr); } }
.cockpit-kpi-card {
  background: rgba(10,20,45,.55); border: 1px solid rgba(96,140,255,.18);
  border-radius: 14px; padding: 18px;
}
.cockpit-kpi-card .k-label { color: #8ea6d8; font-size: 13px; margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cockpit-kpi-card .k-value { color: #dbe7ff; font-size: 26px; font-weight: bold; white-space: nowrap; }
.cockpit-kpi-card .k-value small { font-size: 13px; font-weight: normal; margin-left: 4px; color: #b9ccf5; }
.cockpit-kpi-card .k-extra { color: #62779f; font-size: 12px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 驾驶舱图表区 */
.cockpit-body { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cockpit-full { margin-top: 20px; }
.cockpit-panel {
  background: rgba(10,20,45,.5); border: 1px solid rgba(96,140,255,.15);
  border-radius: 14px; padding: 18px;
}
.cockpit-panel h4 { font-size: 14px; color: #b9ccf5; margin: 0 0 14px 0; letter-spacing: .5px; }
.cockpit-panel .chart-box { height: 220px; }
.cockpit-full .chart-box { height: 240px; }
.cockpit-placeholder { color: #62779f; font-size: 13px; padding: 40px 20px; text-align: center; }

/* 驾驶舱 KPI 交互 */
.cockpit-kpi-card.clickable {
  cursor: pointer; position: relative; overflow: hidden;
  transition: transform .12s, border-color .12s, background .12s;
}
.cockpit-kpi-card.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(96,140,255,.45);
  background: rgba(18,36,78,.65);
}
.cockpit-kpi-card.clickable::after {
  content: "查看明细"; position: absolute; right: 10px; top: 10px;
  font-size: 11px; color: #7d93c9; opacity: 0;
  transition: opacity .12s;
}
.cockpit-kpi-card.clickable:hover::after { opacity: 1; }

/* 驾驶舱明细侧滑面板 */
.cockpit-detail-mask {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(4, 10, 26, .55);
  backdrop-filter: blur(2px);
  animation: fadeIn .18s ease;
  cursor: pointer;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.cockpit-detail-panel {
  position: fixed; top: 0; right: 0; width: 520px; max-width: 92vw;
  height: 100vh; z-index: 100;
  background: rgba(11,21,48,.96); border-left: 1px solid rgba(96,140,255,.25);
  box-shadow: -10px 0 40px rgba(0,0,0,.45);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: slideInRight .22s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: .8; }
  to { transform: translateX(0); opacity: 1; }
}
.cockpit-detail-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 20px; border-bottom: 1px solid rgba(96,140,255,.15);
}
.cockpit-detail-title { font-size: 16px; color: #dbe7ff; font-weight: bold; letter-spacing: .5px; }
.cockpit-detail-close {
  background: transparent; border: none; color: #8ea6d8; font-size: 26px;
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.cockpit-detail-close:hover { color: #dbe7ff; }
.cockpit-detail-body {
  flex: 1 1 auto; min-height: 0;
  max-height: calc(100vh - 64px);
  overflow-y: auto; overflow-x: hidden;
  padding: 18px 20px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.cockpit-detail-count,
.cockpit-detail-tip {
  color: #8ea6d8; font-size: 13px; margin-bottom: 12px;
}
.cockpit-detail-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.cockpit-detail-table th,
.cockpit-detail-table td {
  padding: 10px 8px; text-align: left;
  border-bottom: 1px solid rgba(96,140,255,.12);
  color: #dbe7ff;
}
.cockpit-detail-table th {
  color: #8ea6d8; font-weight: normal; background: rgba(96,140,255,.08);
  position: sticky; top: 0;
}
.cockpit-detail-table tr:hover td { background: rgba(96,140,255,.06); }
.cockpit-detail-table .total-row td { border-top: 1px solid rgba(96,140,255,.3); }

/* 经营线下钻明细横向条形 */
.cockpit-detail-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(96,140,255,.1); font-size: 13px; }
.cockpit-detail-row .detail-label { width: 150px; color: #b9ccf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.cockpit-detail-row .detail-bar-wrap { flex: 1; height: 10px; background: rgba(96,140,255,.1); border-radius: 5px; overflow: hidden; }
.cockpit-detail-row .detail-bar { height: 100%; background: linear-gradient(90deg, #608cff, #7cc0ff); border-radius: 5px; }
.cockpit-detail-row .detail-num { width: 80px; text-align: right; color: #dbe7ff; white-space: nowrap; flex-shrink: 0; }
.cockpit-detail-row .detail-num small { color: #8ea6d8; margin-left: 2px; font-size: 11px; }

/* 经营线第一行两图等高 */
#jyCockpitBiz, #jyCockpitDept { height: 320px; }

.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.status-on { background: #10b981; box-shadow: 0 0 6px #10b981; }
.status-off { background: #62779f; }

/* 本月个人累计积分 */
.cockpit-filter-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.cockpit-filter-bar label { color: #8ea6d8; font-size: 13px; }
.cockpit-filter-bar select {
  background: rgba(10,20,45,.7); border: 1px solid rgba(96,140,255,.25);
  border-radius: 8px; color: #dbe7ff; padding: 6px 10px; font-size: 13px;
  outline: none; min-width: 100px;
}
.cockpit-filter-bar select:focus { border-color: rgba(96,140,255,.5); }
.cockpit-filter-hint { color: #62779f; font-size: 12px; margin-left: auto; }
.cockpit-points-wrap { min-height: 220px; max-height: 360px; overflow-y: auto; }
.func-points-wrap { max-height: 220px; }
.cockpit-points-scroll { max-height: 420px; overflow-y: auto; overflow-x: hidden; position: relative; }
.cockpit-points-table {
  width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px;
  table-layout: fixed;
}
.cockpit-points-table th,
.cockpit-points-table td {
  padding: 10px 8px; text-align: left;
  border-bottom: 1px solid rgba(96,140,255,.12);
  color: #dbe7ff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cockpit-points-table th {
  color: #8ea6d8; font-weight: normal; background: #0e1a3a;
  position: sticky; top: 0; z-index: 2;
}
.cockpit-points-table tr:hover td { background: rgba(96,140,255,.06); }
.cockpit-points-table td:nth-child(5) { color: #7cc0ff; font-weight: bold; }

.mod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mod-card {
  position: relative; overflow: hidden;
  border-radius: 14px; padding: 20px; cursor: pointer;
  background: rgba(15,28,63,.72); border: 1px solid rgba(96,140,255,.2);
  transition: transform .15s, border-color .15s;
}
a.mod-card { display: block; text-decoration: none; color: inherit; }
.mod-card:hover { transform: translateY(-3px); border-color: rgba(124,192,255,.5); }
.mod-card h5 { font-size: 15px; letter-spacing: 1px; padding-right: 72px; }
.mod-card p { margin-top: 8px; font-size: 12px; color: #7d93c9; line-height: 1.5; }
.mod-card .m-link { margin-top: 12px; font-size: 12px; color: #7cc0ff; }
.mod-badge {
  position: absolute; top: 12px; right: 14px;
  font-size: 11px; color: #cfe3ff; white-space: nowrap;
  background: rgba(96,140,255,.18); border: 1px solid rgba(96,140,255,.35);
  padding: 2px 9px; border-radius: 10px; letter-spacing: .5px;
}

/* 受限模块（有可见权限但无操作权限）：灰显 + 禁点 */
.mod-card.mod-locked {
  cursor: not-allowed; opacity: .55;
  background: rgba(15,28,63,.45); border: 1px dashed rgba(120,140,180,.3);
  filter: grayscale(.4);
}
.mod-card.mod-locked:hover { transform: none; border-color: rgba(120,140,180,.3); }
.mod-card.mod-locked h5 { color: #93a4c4; padding-left: 52px; }
.mod-card.mod-locked .m-link { color: #6b7a98; }
.badge-lock {
  position: absolute; top: 12px; left: 14px;
  font-size: 11px; color: #ffd28a; white-space: nowrap;
  background: rgba(255,170,60,.14); border: 1px solid rgba(255,170,60,.4);
  padding: 2px 9px; border-radius: 10px; letter-spacing: .5px;
}

.empty-tip {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px;
  border: 1px dashed rgba(96,140,255,.3); border-radius: 16px; color: #7d93c9; font-size: 14px;
  background: rgba(15,28,63,.4); line-height: 2;
}
.empty-tip b { color: #b9ccf5; }

/* ---------- 业务线二级分类：卡片网格 + 逐级展开 ---------- */
.mod-list-grouped { display: flex; flex-direction: column; gap: 0; margin-bottom: 28px; }

/* L2 卡片网格（仿 cat-card 风格） */
/* L2 二级分类：3列网格卡片（点击跳转子页面） */
.biz-subcat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }

.biz-subcat-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  border-radius: 14px; padding: 20px 22px; cursor: pointer;
  background: rgba(15,28,63,.65); border: 1px solid rgba(96,140,255,.2);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.biz-subcat-card:hover {
  transform: translateY(-3px); border-color: rgba(124,192,255,.5);
  box-shadow: 0 12px 34px rgba(2,8,30,.45);
}
.biz-subcat-card .c-icon { font-size: 32px; flex-shrink: 0; }
.biz-subcat-card h4 { font-size: 17px; letter-spacing: 2px; margin: 0; }
.biz-subcat-card .c-count { margin-top: 4px; font-size: 12px; color: #7d93c9; }
.biz-subcat-card .tree-arrow {
  margin-left: auto; font-size: 14px; color: #7cc0ff;
}

/* 子分类受限卡：与首页 cat-card-locked 风格一致 */
.biz-subcat-card.biz-subcat-locked {
  cursor: default; opacity: .55;
  background: rgba(15,28,63,.45);
  border: 1px solid rgba(96,140,255,.12);
}
.biz-subcat-card.biz-subcat-locked:hover {
  transform: none; border-color: rgba(96,140,255,.12);
  box-shadow: none;
}
.biz-subcat-card.biz-subcat-locked h4 { color: #93a4c4; padding-left: 58px; }
.biz-subcat-card.biz-subcat-locked .c-count { color: #6d7fa4; }
.subcat-restrict-badge {
  position: absolute; top: 10px; left: 10px;
  font-size: 11px; color: #ffd28a; white-space: nowrap;
  background: rgba(255,170,60,.14); border: 1px solid rgba(255,170,60,.4);
  padding: 2px 9px; border-radius: 10px; letter-spacing: .5px;
}

/* ===== 子分类详情页（L2 卡片点击后跳转） ===== */
.subcat-detail-page { padding: 8px 0 24px; }
.subcat-detail-header {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 28px; margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(25,50,100,.35), rgba(15,28,63,.55));
  border: 1px solid rgba(96,140,255,.18);
}
.subcat-detail-header .c-icon { font-size: 42px; }
.subcat-detail-header h3 { font-size: 22px; letter-spacing: 3px; margin: 0; color: #c5d3f8; }
.subcat-detail-header .c-count { margin-top: 6px; font-size: 13px; color: #7d93c9; }

/* 子分类内的三级分组标题 */
.biz-subcat-section { margin-bottom: 20px; }
.section-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; letter-spacing: 1px; color: #9abce8;
  margin: 0 0 12px 6px; padding: 0;
}
.section-title .tree-icon { font-size: 18px; }
.section-count { font-size: 12px; color: #6b82b0; font-weight: 400; }

/* L3 三级分组（子详情页内折叠树节点） */
.tree-node { border-radius: 10px; overflow: hidden; }
.tree-l3 {
  background: rgba(20,35,70,.4); border: 1px solid rgba(96,140,255,.1);
  margin-bottom: 8px;
}
.tree-header {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; cursor: pointer; user-select: none;
  background: linear-gradient(90deg, rgba(25,50,100,.22), rgba(15,28,63,.12));
  transition: background .2s;
}
.tree-header:hover { background: linear-gradient(90deg, rgba(35,65,130,.35), rgba(18,35,70,.22)); }
.tree-icon { font-size: 16px; }
.tree-label { font-size: 13.5px; font-weight: 600; letter-spacing: 1px; color: #8fa9e0; }
.tree-count {
  margin-left: auto; font-size: 11px; color: #6b82b0;
  background: rgba(96,140,255,.1); padding: 2px 8px; border-radius: 8px;
}
.tree-arrow {
  font-size: 11px; color: #7cc0ff;
  transform: rotate(-90deg); transition: transform .25s ease;
  margin-left: 6px;
}
.tree-body { padding: 10px 12px 12px; }

/* 空链接模块卡片 */
.mod-card-empty { cursor: default !important; opacity: .65; }
.mod-card-empty:hover { transform: none !important; border-color: rgba(96,140,255,.2) !important; }
.badge-warn {
  position: absolute; top: 12px; right: 14px;
  font-size: 11px; color: #ffd166; white-space: nowrap;
  background: rgba(255,180,50,.15); border: 1px solid rgba(255,180,50,.35);
  padding: 2px 9px; border-radius: 10px;
}
.m-link-dim { color: #5a6a8a !important; }

/* 响应式 */
@media (max-width: 900px) {
  .biz-subcat-grid { grid-template-columns: repeat(2, 1fr); }
  .tree-body .mod-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .biz-subcat-grid { grid-template-columns: 1fr; }
}

/* ---------- 仪表盘 ---------- */
.dash-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.dash-head h2 { font-size: 20px; letter-spacing: 2px; white-space: nowrap; }
.dash-head .sync {
  font-size: 12px; color: #6ee7a8; display: flex; align-items: center; gap: 6px;
}
.dash-head .sync .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 rgba(52,211,153,.7); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); }
  70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.dash-head .refresh-time { font-size: 12px; color: #62779f; margin-left: auto; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi {
  border-radius: 12px; padding: 14px 16px;
  background: rgba(15,28,63,.75); border: 1px solid rgba(96,140,255,.2);
}
.kpi .k-label { font-size: 12px; color: #8ea6d8; letter-spacing: 1px; }
.kpi .k-value { margin-top: 6px; font-size: 26px; font-weight: 700; letter-spacing: 1px; }
.kpi .k-value small { font-size: 12px; font-weight: 400; color: #7d93c9; margin-left: 4px; }
.kpi .k-extra { margin-top: 4px; font-size: 11px; color: #6ee7a8; }
.kpi .k-extra.down { color: #ff9c9c; }

.panel {
  border-radius: 12px; padding: 14px 16px;
  background: rgba(15,28,63,.75); border: 1px solid rgba(96,140,255,.2);
  overflow: hidden;
}
.panel h4 { font-size: 13.5px; letter-spacing: 1.5px; color: #cfe0ff; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.panel h4::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #3b82f6, #0ea5e9); }

/* ===== 经典两栏布局：左侧边栏 + 右侧主内容 ===== */
.dash-body { display: flex; gap: 12px; flex: 1; min-height: 0; }

/* 左侧边栏 — 固定宽度，紧凑堆叠 */
.dash-sidebar {
  width: 260px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.dash-sidebar > .panel { margin-bottom: 0; }

/* 右侧主内容区 — 占满剩余空间 */
.dash-main {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.dash-main > .panel { margin-bottom: 0; display: flex; flex-direction: column; }

/* 趋势图：固定高度，不撑开 */
.dash-main > .panel:first-child { flex: none; height: 240px; }
.dash-main > .panel:first-child .chart-box { flex: 1; }

/* 排行榜：左右分栏（职能 / 业务），固定高度 */
.dash-main > .panel:nth-child(2) { flex: none; height: 270px; overflow: hidden; }
.rank-split { display: flex; gap: 0; height: 100%; padding: 8px 4px 4px; }
.rank-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rank-col .rank-list { flex: 1; overflow-y: auto; min-height: 0; }
.rank-divider { width: 1px; background: linear-gradient(180deg, transparent, rgba(96,140,255,.35), transparent); flex: none; margin: 8px 6px 0; }
.rank-subtitle { font-size: 12px; color: #f97316; letter-spacing: 1px; margin-bottom: 6px; padding-left: 4px; white-space: nowrap; }

/* KPI 可点击 */
.kpi-clickable { cursor: pointer; transition: transform .15s, box-shadow .2s; }
.kpi-clickable:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(255,77,79,.25); border-color: #ff4d4f55; }
/* 非领导：KPI 仅展示，无悬停/点击交互 */
body.role-staff .kpi { cursor: default; }
body.role-staff .kpi-clickable { pointer-events: none; }
body.role-staff .kpi-clickable:hover { transform: none; box-shadow: none; border-color: rgba(96,140,255,.15); }

/* 严重隐患弹窗 */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.6);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-box {
  background: linear-gradient(180deg,#0d162e 0%,#0a1020 100%);
  border: 1px solid rgba(96,140,255,.25);
  border-radius: 12px;
  width: 860px; max-width: 92vw;
  max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(255,77,79,.08);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px; border-bottom: 1px solid rgba(96,140,255,.15);
  font-size: 16px; font-weight: bold; color: #fff;
}
.modal-close {
  cursor: pointer; font-size: 18px; color: #62779f; line-height: 1;
  transition: color .15s;
}
.modal-close:hover { color: #ff4d4f; }
.modal-sub {
  font-size: 12px; color: #8ea6d8; padding: 8px 20px;
  background: rgba(255,77,79,.06); border-bottom: 1px solid rgba(96,140,255,.1);
}
.ci-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
  overflow-y: auto; display: block; max-height: calc(80vh - 100px);
}
.ci-table th {
  position: sticky; top: 0; z-index: 1;
  background: #0c1630; color: #8ea6d8; font-weight: 600;
  text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(96,140,255,.2);
  white-space: nowrap; font-size: 12px;
}
.ci-table td {
  padding: 9px 12px; border-bottom: 1px solid rgba(96,140,255,.08);
  color: #c5cee8; vertical-align: middle;
}
.ci-table tbody tr:hover { background: rgba(96,140,255,.06); }
.ci-idx { width: 48px; color: #556a94; font-size: 12px; text-align: center; }
.ci-proj { min-width: 200px; max-width: 320px; }
.ci-desc { color: #ffd666; font-size: 12.5px; line-height: 1.5; }
.ci-time { width: 170px; font-size: 12px; white-space: nowrap; color: #8ea6d8; }

/* 问题照片缩略图列 */
.ci-photo { width: 120px; min-width: 100px; vertical-align: middle; }
.ci-photos { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.ci-photo-thumb {
  display: block; width: 36px; height: 36px; border-radius: 6px;
  overflow: hidden; border: 1px solid rgba(96,140,255,.2);
  flex-shrink: 0; transition: border-color .15s, transform .15s;
}
.ci-photo-thumb:hover { border-color: #3b82f6; transform: scale(1.15); z-index: 1; }
.ci-photo-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.ci-more { font-size: 10px; color: #62779f; background: rgba(96,140,255,.1); padding: 1px 5px; border-radius: 4px; flex-shrink: 0; }
.ci-photo-fail { position: relative; }
.ci-photo-fail::after { content: "查看"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #8ea6d8; background: rgba(96,140,255,.12); }

/* 项目组织分析：固定高度，与左侧面板底部对齐 */
.panel-org { flex: none; height: 320px; max-height: 320px; }

/* 天津地图面板 */
.panel-map { flex: none; height: 380px; min-height: 360px; }
.panel-map .map-wrapper { display: flex; height: calc(100% - 34px); min-height: 0; }
.panel-map .chart-box { flex: 1; }

/* 公司介绍视频板块（首页）—— 填满等高 */
.video-section { padding: 0 !important; background: transparent !important; box-shadow: none !important; border: none !important; }
.video-container { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; }
.video-container h4 { margin: 0 0 10px; font-size: 15px; color: #e2e8f0; letter-spacing: 1px; flex: none; }
.video-wrapper { position: relative; width: 100%; max-width: 480px; margin: 0 auto;
  border-radius: 10px; overflow: hidden; background: #0f172a; border: 1px solid #334155; flex: 1; display: flex; align-items: center; justify-content: center; }
.video-wrapper video { width: 100%; height: 100%; display: block; object-fit: contain; position: absolute; inset: 0; }
.video-placeholder { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex;
  align-items: center; justify-content: center; background: rgba(15,23,42,.7);
  color: #94a3b8; font-size: 14px; letter-spacing: 2px; }

/* 首页顶行：视频 + 地图 并列（三板块等高） */
.home-top-row { display: grid; grid-template-columns: 340px 1fr; gap: 16px; margin-bottom: 16px; align-items: stretch; }
.home-top-row .video-section { height: 100%; display: flex; flex-direction: column; }
.home-top-row .map-section { padding: 0 !important; background: transparent !important; box-shadow: none !important; border: none !important; }
.map-panel-split { padding: 16px 20px; height: 100%; display: flex; flex-direction: column; }
.map-panel-split h4 { margin: 0 0 10px; font-size: 15px; color: #e2e8f0; letter-spacing: 1px; flex: none; }
.map-split-body { display: grid; grid-template-columns: 42% 58%; gap: 12px; flex: 1; min-height: 0; }
.map-left { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.map-left .chart-box { flex: 1; min-height: 200px; }
.map-right { min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.map-district-title { font-size: 13px; color: #93c5fd; margin-bottom: 8px; letter-spacing: 0.5px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-project-table-wrap { flex: 1; overflow-y: auto; min-height: 0; }
/* 表格最多显示5行，超出滚动 */
.map-project-table tbody { display: block; max-height: 165px; overflow-y: auto; }
.map-project-table thead, .map-project-table tr { display: table; width: 100%; table-layout: fixed; }
.map-project-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.map-project-table th { background: rgba(59,130,246,.15); color: #93c5fd; padding: 6px 8px; text-align: left;
  font-weight: 600; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
.map-project-table td { padding: 5px 8px; border-bottom: 1px solid rgba(51,65,85,.5); color: #cbd5e1; vertical-align: top; }
.map-td-name { font-weight: 500; color: #e2e8f0; }
.map-td-owner { color: #94a3b8; }
.map-td-amt { white-space: nowrap; color: #fbbf24; font-weight: 500; }
.map-td-status { white-space: nowrap; font-size: 11px; color: #34d399; }
.map-empty-hint { text-align: center; color: #64748b; padding: 30px 10px; font-style: italic; }

/* 响应式：小屏幕时上下排列 */
@media (max-width: 900px) {
  .home-top-row { grid-template-columns: 1fr; }
  .map-split-body { grid-template-columns: 1fr; }
}

/* 图表区 */
.chart-box { width: 100%; min-height: 0; }
.chart-box.sm { height: 100%; min-height: 150px; }

/* 日历 */
.calendar { flex: none; height: 280px; overflow: hidden; }
.calendar table { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: center; }
.calendar #calBox { display: flex; flex-direction: column; justify-content: center; }

/* 项目组织管理分析 - 左右分栏，填满固定面板 */
.org-analysis { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; height: calc(100% - 34px); min-height: 0; }
.org-analysis > * { min-width: 0; display: flex; flex-direction: column; }
.org-subtitle { font-size: 12px; color: #8ea6d8; margin-bottom: 6px; letter-spacing: 1px; flex: none; }
.org-left .chart-box.sm { flex: none; height: 240px; }
.org-right { flex: 1; min-height: 0; }
.unsubmit-list { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; padding-right: 4px; flex: 1; min-height: 0; }
.unsubmit-list::-webkit-scrollbar { width: 4px; }
.unsubmit-list::-webkit-scrollbar-thumb { background: rgba(96,140,255,.3); border-radius: 2px; }
.unsubmit-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; background: rgba(10,20,48,.45); }
.unsubmit-item .dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; flex: none; }
.unsubmit-item .name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c6d6f7; }
.unsubmit-item .tag { font-size: 11px; color: #fbd38d; background: rgba(245,158,11,.14); padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(245,158,11,.35); }
.unsubmit-empty { color: #62779f; font-size: 13px; text-align: center; padding: 30px 0; }

/* 重点事项 */
.todo-list { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; overflow-y: auto; }
.todo-item {
  display: flex; gap: 10px; align-items: flex-start; padding: 9px 11px; border-radius: 8px;
  background: rgba(10,20,48,.6); border: 1px solid rgba(96,140,255,.14); font-size: 12px;
}
.todo-item .lvl { flex: none; font-size: 10px; padding: 2px 7px; border-radius: 999px; letter-spacing: 1px; }
.lvl.high { background: rgba(239,68,68,.16); color: #ff9c9c; border: 1px solid rgba(239,68,68,.35); }
.lvl.mid { background: rgba(245,158,11,.14); color: #fbd38d; border: 1px solid rgba(245,158,11,.35); }
.lvl.low { background: rgba(52,211,153,.13); color: #7ee9bb; border: 1px solid rgba(52,211,153,.3); }
.todo-item .t-text { line-height: 1.5; color: #c6d6f7; font-size: 12px; }
.todo-item .t-meta { margin-top: 2px; font-size: 11px; color: #62779f; }

/* 天气面板 — 侧栏内上下分区 */
.weather-box { display: flex; flex-direction: column; gap: 0; height: 100%; }
.w-main { display: flex; align-items: center; gap: 14px; padding: 8px 0 10px; }
.w-icon { font-size: 40px; line-height: 1; flex: none; }
.w-temp-wrap { display: flex; flex-direction: column; gap: 2px; }
.w-temp { font-size: 32px; font-weight: 700; line-height: 1; color: #e8f0ff; }
.w-temp small { font-size: 13px; color: #8ea6d8; font-weight: 400; }
.w-desc { font-size: 13px; color: #9db3e2; letter-spacing: 1px; }
/* 详情 2×2 网格（窄列） */
.w-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 10px 2px 4px; border-top: 1px solid rgba(96,140,255,.12); margin-top: 4px; }
.w-d-item { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 4px; border-radius: 8px; background: rgba(10,20,48,.45); }
.w-d-label { font-size: 11px; color: #62779f; letter-spacing: 0.5px; }
.w-d-val { font-size: 13.5px; font-weight: 600; color: #cfe0ff; }
.calendar th { color: #62779f; font-weight: 400; padding: 6px 0; }
.calendar td { padding: 6px 0; color: #b9ccf5; border-radius: 8px; }
.calendar td.dim { color: #44547c; }
.calendar td.today {
  background: linear-gradient(135deg, #2563eb, #0ea5e9); color: #fff; font-weight: 700;
  box-shadow: 0 4px 12px rgba(37,99,235,.4);
}
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; color: #cfe0ff; }

/* 柱状榜单（排行 + 隐患分布 统一样式） */
.rank-list, .mod-activity-list { display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; overflow-y: auto; }
.rank-list::-webkit-scrollbar, .mod-activity-list::-webkit-scrollbar { width: 4px; }
.rank-list::-webkit-scrollbar-thumb, .mod-activity-list::-webkit-scrollbar-thumb { background: rgba(96,140,255,.3); border-radius: 2px; }

/* 排行项 */
.rank-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: rgba(10,20,48,.45); }
.rank-item .r-idx { width: 20px; height: 20px; border-radius: 5px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; background: rgba(59,130,246,.16); color: #9db3e2; }
.rank-item:nth-child(1) .r-idx { background: linear-gradient(135deg,#f59e0b,#ef4444); color: #fff; }
.rank-item:nth-child(2) .r-idx { background: linear-gradient(135deg,#94a3b8,#64748b); color: #fff; }
.rank-item:nth-child(3) .r-idx { background: linear-gradient(135deg,#b45309,#92400e); color: #fff; }
.rank-item .r-name { min-width: 70px; max-width: 120px; flex: none; color: #c6d6f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-item .r-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(10,20,48,.8); overflow: hidden; }
.rank-item .r-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #22d3ee); }
.rank-item .r-val { width: 58px; text-align: right; color: #8ea6d8; font-size: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; line-height: 1.15; }
.rank-item .r-sub { font-size: 10px; color: #6b7fa8; white-space: nowrap; }
.rank-item .r-badge { font-size: 11px; margin-left: 4px; }

/* 隐患分布项（与排行同款） */
.mod-act-item { display: flex; align-items: center; gap: 10px; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; background: rgba(10,20,48,.45); }
.mod-act-item .ma-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c6d6f7; }
.mod-act-item .ma-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(10,20,48,.8); overflow: hidden; }
.mod-act-item .ma-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #22d3ee); }
.mod-act-item .ma-val { width: 44px; text-align: right; color: #8ea6d8; }
.mod-act-item .ma-trend { font-size: 11px; width: 18px; text-align: center; flex: none; }
.ma-trend.up { color: #6ee7a8; }
.ma-trend.down { color: #ff9c9c; }
.ma-trend.flat { color: #62779f; }

.footer-note { margin-top: 6px; text-align: center; font-size: 12px; color: #44547c; padding-bottom: 6px; }
.footer-note:last-of-type { padding-bottom: 14px; }
.footer-beian { color: #5e76a8; text-decoration: none; transition: color .2s; }
.footer-beian:hover { color: #8da9e6; text-decoration: underline; }
.footer-beian-wrap { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }
.footer-beian img { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 5px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1280px) {
  .dash-sidebar { width: 240px; }
  .main { padding: 16px 18px 24px; }
}
@media (max-width: 1100px) {
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .dash-body { flex-direction: column; }
  .dash-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .dash-sidebar > .panel { flex: 1; min-width: 200px; }
  .dash-main > .panel:first-child { height: auto; min-height: 200px; }
  .org-analysis { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-biz { grid-template-columns: repeat(2, 1fr); }
  .cat-grid-func { grid-template-columns: repeat(3, 1fr); }
  .cat-grid-func .cat-card { padding: 20px 16px; }
  .cat-grid-func .c-icon { width: 48px; height: 48px; font-size: 24px; }
  .cat-grid-func .cat-card h4 { font-size: 16px; }
  .cat-grid-func .c-count { font-size: 12px; }
  .cockpit-body { grid-template-columns: 1fr; }
  .cockpit-kpi { grid-template-columns: repeat(2, 1fr); }
  .mod-grid { grid-template-columns: repeat(2, 1fr); }
  .cockpit-detail-panel { width: 460px; }
}
@media (max-width: 760px) {
  .portal-grid { grid-template-columns: 1fr; }
  .portal-merged { flex-direction: column; gap: 12px; padding: 16px 18px 14px; }
  .portal-merged .pm-divider { width: auto; height: 1px; }
  .cat-grid, .mod-grid, .kpi-row { grid-template-columns: 1fr; }
  .cat-grid-biz { grid-template-columns: 1fr; }
  .cat-grid-func { grid-template-columns: repeat(2, 1fr); }
  .cockpit-kpi { grid-template-columns: 1fr; }
  .cockpit-head { flex-direction: column; align-items: flex-start; }
  .cockpit-head h2 { font-size: 16px; }
  .portal-cockpit { padding: 16px; }
  .cockpit-detail-panel { width: 100vw; max-width: 100vw; }
  .cockpit-detail-table,
  .cockpit-points-table { font-size: 12px; }
  .cockpit-detail-table th,
  .cockpit-detail-table td,
  .cockpit-points-table th,
  .cockpit-points-table td { padding: 8px 5px; }
  .cockpit-filter-hint { display: none; }
  .dash-body { flex-direction: column; }
  .dash-sidebar { flex-direction: column; }
  .dash-sidebar > .panel { min-width: auto; }
  .topnav { display: none; }
  .topbar .clockbox { display: none; }
  .main { padding: 12px 10px 24px; }

  /* ===== 手机端全面适配 ===== */
  /* 顶栏紧凑化 */
  .topbar { height: auto; min-height: 48px; padding: 8px 10px; flex-wrap: wrap; gap: 6px; }
  .topbar .brand { font-size: 13px; letter-spacing: 1px; gap: 6px; }
  .topbar .brand .brand-logo { width: 26px; height: 26px; }
  .topbar .brand .dot { width: 26px; height: 26px; font-size: 13px; border-radius: 6px; }
  .userchip { padding: 4px 8px; gap: 6px; }
  .userchip .avatar { width: 24px; height: 24px; font-size: 11px; }
  .userchip .uname { font-size: 11px; }
  .userchip .logout { font-size: 10px; }

  /* 登录页 */
  #page-login { padding: 16px; gap: 20px; }
  .login-brand h1 { font-size: 20px; letter-spacing: 4px; }
  .login-brand p { font-size: 11px; letter-spacing: 1px; }
  .login-brand .login-logo { width: 80px; height: 80px; margin-bottom: 12px; }
  .login-card { padding: 22px 18px 18px; }
  .code-inputs input { width: 48px; height: 54px; font-size: 26px; }

  /* 首页 hero */
  .hero { margin: 4px 0 14px; }
  .hero h2 { font-size: 18px; letter-spacing: 1px; }
  .hero p { font-size: 12px; margin-top: 4px; }

  /* 首页门户卡片 */
  .portal-card { padding: 18px 16px 14px; border-radius: 14px; }
  .portal-card .p-icon { font-size: 30px; }
  .portal-card h3 { font-size: 17px; letter-spacing: 2px; margin: 10px 0 6px; }
  .portal-card .p-desc { font-size: 12px; margin-top: 6px; }
  .portal-card .p-tags { margin-top: 10px; gap: 5px; }
  .portal-card .p-tags span { font-size: 11px; padding: 3px 9px; }

  /* 首页视频+地图：手机端整块隐藏（视频+地图图表+项目表都没意义），地图全宽留给业务端口 */
  .home-top-row { display: none !important; }

  /* 分类卡片 */
  .cat-card { padding: 16px 14px; border-radius: 12px; gap: 12px; }
  .cat-card .c-icon { width: 42px; height: 42px; font-size: 20px; border-radius: 10px; }
  .cat-card h4 { font-size: 14px; letter-spacing: 1px; }
  .cat-card .c-count { font-size: 11px; }

  /* 模块卡片 */
  .mod-card { padding: 14px 12px; border-radius: 12px; }
  .mod-card h5 { font-size: 13px; letter-spacing: 0.5px; padding-right: 60px; }
  .mod-card p { font-size: 11px; margin-top: 5px; }
  .mod-card .m-link { margin-top: 8px; font-size: 11px; }
  .mod-badge { top: 8px; right: 10px; font-size: 10px; padding: 2px 6px; border-radius: 8px; }
  .badge-warn { top: 8px; right: 10px; font-size: 10px; }

  /* 业务线二级分类卡片 */
  .biz-subcat-grid { grid-template-columns: 1fr; gap: 10px; }
  .biz-subcat-card { padding: 14px 16px; border-radius: 12px; gap: 12px; }
  .biz-subcat-card .c-icon { font-size: 26px; }
  .biz-subcat-card h4 { font-size: 14px; letter-spacing: 1px; }
  .biz-subcat-card .c-count { font-size: 11px; }

  /* 子分类详情头 */
  .subcat-detail-header { padding: 14px 16px; border-radius: 12px; gap: 12px; margin-bottom: 14px; }
  .subcat-detail-header .c-icon { font-size: 32px; }
  .subcat-detail-header h3 { font-size: 17px; letter-spacing: 2px; }
  .subcat-detail-header .c-count { font-size: 11px; }

  /* 面包屑 */
  .crumb { font-size: 12px; margin-bottom: 14px; gap: 4px; }

  /* 分组标题 */
  .section-title { font-size: 13px; margin-bottom: 8px; }

  /* 树节点 */
  .tree-header { padding: 9px 12px; }
  .tree-label { font-size: 12.5px; }
  .tree-body { padding: 8px 8px 10px; }

  /* 空提示 */
  .empty-tip { padding: 36px 14px; font-size: 13px; border-radius: 12px; }

  /* ===== 驾驶舱手机适配 ===== */
  .dash-head h2 { font-size: 16px; }
  .kpi { padding: 10px 12px; border-radius: 10px; }
  .kpi .k-value { font-size: 22px; }
  .panel { padding: 10px 12px; border-radius: 10px; }
  .panel h4 { font-size: 12px; }

  /* 左侧栏堆叠 */
  .dash-sidebar { gap: 8px; }
  .dash-main { gap: 8px; }

  /* 天气面板缩小 */
  .w-icon { font-size: 30px; }
  .w-temp { font-size: 26px; }
  .calendar { height: auto; min-height: 220px; }

  /* 排行榜 */
  .rank-item { padding: 6px 8px; font-size: 11.5px; }
  .rank-item .r-name { max-width: 90px; }

  /* 组织分析 */
  .org-analysis { grid-template-columns: 1fr; }
  .panel-org { height: auto; min-height: 240px; }
  .panel-map { height: auto; min-height: 260px; }

  /* 重点事项 */
  .todo-item { padding: 7px 9px; font-size: 11px; }
  .todo-item .t-text { font-size: 11px; }

  /* 弹窗全宽 */
  .modal-box { width: 100vw; max-width: 100vw; max-height: 92vh; border-radius: 12px 12px 0 0; margin: 0; }
  .modal-box { border-radius: 14px; }

  /* 表格横向滚动 */
  .ci-table { font-size: 11.5px; }
  .ci-table th, .ci-table td { padding: 7px 8px; }
  .ci-proj { min-width: 150px; max-width: 200px; }
  .ci-time { width: 130px; min-width: 120px; }

  /* KPI 行 */
  .kpi-row { gap: 8px; }

  /* 页脚 */
  .footer-note { font-size: 11px; }
}

/* 超小屏（iPhone SE 等） */
@media (max-width: 380px) {
  .topbar .brand { font-size: 12px; }
  .biz-subcat-card { padding: 12px 14px; }
  .mod-card { padding: 12px 10px; }
  .main { padding: 10px 8px 20px; }
}

/* ============ 运管工作台样式 ============ */
.ops-desk { padding: 4px 0; }
.ops-section-title {
  font-size: 15px; font-weight: 600; color: #a5b4fc;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.ops-section-title .ops-icon { font-size: 18px; }

/* 快捷入口 */
.ops-quick-entry {
  background: rgba(15,28,63,.72); border: 1px solid rgba(96,140,255,.2);
  border-radius: 14px; padding: 18px 20px; margin-bottom: 16px;
}
.ops-entry-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.ops-entry-card {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(30,41,82,.6); border: 1px solid rgba(96,140,255,.15);
  border-radius: 10px; padding: 14px 16px;
  color: #e2e8f0; text-decoration: none; transition: transform .15s, border-color .15s;
}
.ops-entry-card:hover { transform: translateY(-2px); border-color: rgba(124,192,255,.5); color: #fff; }
.ops-entry-icon { font-size: 28px; flex-shrink: 0; }
.ops-entry-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ops-entry-text b { font-size: 14px; color: #fff; }
.ops-entry-text span { font-size: 11px; color: #94a3b8; }
.ops-arrow { color: #608cff; font-size: 18px; flex-shrink: 0; }

/* 运营概览（独占整行，展示各项目人员配置） */
.ops-kpi-section {
  background: rgba(15,28,63,.72); border: 1px solid rgba(96,140,255,.2);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 16px;
}
.ops-kpi-section .kpi-row { grid-template-columns: repeat(7, minmax(0,1fr)); gap: 8px; margin-bottom: 0; }
.kpi-card { background: rgba(30,41,82,.6); border: 1px solid rgba(96,140,255,.15); border-radius: 10px; padding: 12px 8px; text-align: center; cursor: pointer; min-width: 0; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.kpi-card:hover { border-color: rgba(124,192,255,.55); background: rgba(40,55,100,.72); }
.kpi-card.active { border-color: #608cff; background: rgba(96,140,255,.22); box-shadow: inset 0 0 0 1px rgba(96,140,255,.6); }
.kpi-card .kpi-num { font-size: 21px; font-weight: 700; color: #fff; line-height: 1.1; }
.kpi-card .kpi-label { font-size: 12px; color: #94a3b8; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 运营概览：工具栏（搜索 + 岗位筛选 + 视图切换） */
.ops-toolbar { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.ops-staff-search {
  flex: 1; min-width: 160px; box-sizing: border-box;
  background: rgba(11,21,48,.6); border: 1px solid rgba(96,140,255,.25);
  border-radius: 8px; padding: 9px 12px; color: #e6ecff; font-size: 13px;
}
.ops-staff-search::placeholder { color: #6b7fa8; }
.ops-staff-search:focus { outline: none; border-color: rgba(124,192,255,.6); }
.ops-filter {
  box-sizing: border-box; background: rgba(30,41,82,.6); border: 1px solid rgba(96,140,255,.25);
  border-radius: 8px; padding: 9px 10px; color: #e6ecff; font-size: 13px; cursor: pointer;
}
.ops-filter:focus { outline: none; border-color: rgba(124,192,255,.6); }
.ops-view-tabs { display: flex; background: rgba(11,21,48,.6); border: 1px solid rgba(96,140,255,.25); border-radius: 8px; overflow: hidden; }
.ops-view-tabs .tab { padding: 9px 14px; font-size: 13px; color: #94a3b8; cursor: pointer; user-select: none; }
.ops-view-tabs .tab.active { background: rgba(96,140,255,.28); color: #fff; }

/* 项目表格视图 */
.ops-project-table { display: flex; flex-direction: column; margin-top: 4px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.staff-table-head, .staff-table-row {
  display: grid; grid-template-columns: 1.7fr 0.6fr 0.9fr 0.9fr 0.9fr 0.9fr 0.7fr 0.4fr;
  align-items: center; gap: 6px; padding: 9px 12px;
}
.staff-table-head { position: sticky; top: 0; background: rgba(30,41,82,.95); color: #94a3b8; font-size: 12px; border-radius: 8px 8px 0 0; z-index: 1; }
.staff-table-row { background: rgba(30,41,82,.45); border: 1px solid rgba(96,140,255,.12); border-radius: 8px; margin-bottom: 6px; cursor: pointer; }
.staff-table-row:hover { background: rgba(96,140,255,.12); }
.st-name { font-size: 14px; font-weight: 600; color: #fff; }
.st-num { color: #a5b4fc; font-size: 13px; }
.st-role { color: #c7d2f5; font-size: 13px; text-align: center; }
.st-toggle { color: #608cff; font-size: 14px; text-align: center; }
.st-members { display: none; grid-column: 1 / -1; flex-wrap: wrap; gap: 5px; padding-top: 8px; margin-top: 4px; border-top: 1px dashed rgba(96,140,255,.2); }
.staff-table-row.open .st-members { display: flex; }

/* 人员视图：复用卡片网格 */
.ops-staff-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 4px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.staff-card { background: rgba(30,41,82,.55); border: 1px solid rgba(96,140,255,.14); border-radius: 10px; padding: 12px; }
.staff-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.staff-name { font-size: 14px; font-weight: 600; color: #fff; }
.staff-badge { background: rgba(96,140,255,.18); color: #a5b4fc; font-size: 11px; border-radius: 10px; padding: 1px 8px; flex-shrink: 0; }
.staff-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.staff-tag { background: rgba(15,28,63,.7); border: 1px solid rgba(96,140,255,.12); color: #c7d2f5; font-size: 11px; border-radius: 5px; padding: 2px 6px; }
.staff-tag i { color: #8aa0d0; font-style: normal; }
.ops-empty { color: #6b7fa8; font-size: 13px; padding: 20px 0; text-align: center; }

/* 底部图表 */
.ops-chart-section {
  background: rgba(15,28,63,.72); border: 1px solid rgba(96,140,255,.2);
  border-radius: 14px; padding: 16px 18px; margin-bottom: 16px;
}
.ops-chart-section .chart-box { height: 220px; }

/* 运管工作台·项目简报分析卡片视图 */
.ops-brief-section {
  background: rgba(15,28,63,.35); border: 1px solid rgba(96,140,255,.16);
  border-radius: 16px; padding: 18px 20px; margin-top: 22px;
}
.ops-brief-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 16px; }
.ops-brief-toolbar label { color: #a6adc8; font-size: 13px; }

@media (max-width: 1100px) {
  .ops-staff-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ops-kpi-section .kpi-row { grid-template-columns: repeat(7, minmax(108px,1fr)); overflow-x: auto; padding-bottom: 4px; }
}
@media (max-width: 900px) { .ops-staff-grid { grid-template-columns: 1fr; } }

/* ===== 项目简报深度分析 (brief) ===== */
.brief-wrap { padding: 4px 2px 24px; }
.brief-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.brief-toolbar label { color: #a6adc8; font-size: 13px; }
.brief-sel, .brief-input {
  background: rgba(15,28,63,.8); border: 1px solid rgba(96,140,255,.25); color: #e6ecff;
  border-radius: 8px; padding: 7px 10px; font-size: 13px; outline: none;
}
.brief-input { min-width: 240px; flex: 1; max-width: 340px; }
.brief-count { color: #7f8cb0; font-size: 12px; }
/* 分层卡片式·方案A：岗位分布块 + 项目信息块 */
.brief-role-row {
  display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); gap: 14px;
  background: rgba(15,28,63,.5); border: 1px solid rgba(96,140,255,.18); border-radius: 14px;
  padding: 14px 16px 16px; margin-bottom: 14px;
}
.brief-role-title {
  grid-column: 1 / -1; font-size: 14px; font-weight: 700; color: #e6ecff;
  padding-left: 11px; position: relative; margin-bottom: 6px;
}
.brief-role-title::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, #2563eb, #0ea5e9);
}
.brief-info-section { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.brief-info-section .brief-role-title { margin-bottom: 2px; }
.brief-kpi-row-inner { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 12px; }
.brief-kpi-card {
  background: linear-gradient(160deg, rgba(30,48,98,.85), rgba(15,28,63,.7));
  border: 1px solid rgba(96,140,255,.22); border-radius: 12px; padding: 14px 14px; cursor: pointer;
  transition: transform .12s ease, border-color .12s ease;
}
.brief-kpi-card:hover { transform: translateY(-2px); border-color: rgba(96,140,255,.55); }
.brief-kpi-card .bk-val { font-size: 22px; font-weight: 700; color: #aee0ff; line-height: 1.1; }
.brief-kpi-card .bk-label { font-size: 13px; color: #cdd6f4; margin-top: 6px; }
.brief-kpi-card .bk-sub { font-size: 11px; color: #8a96bb; margin-top: 3px; }
.brief-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; border-bottom: 1px solid rgba(96,140,255,.18); padding-bottom: 12px; }
.brief-tab {
  padding: 7px 18px; border-radius: 999px; font-size: 13px; color: #a6adc8; cursor: pointer;
  background: rgba(20,34,72,.6); border: 1px solid rgba(96,140,255,.16); user-select: none;
  transition: all .12s ease;
}
.brief-tab:hover { color: #cdd6f4; border-color: rgba(96,140,255,.4); }
.brief-tab.active {
  background: linear-gradient(90deg, rgba(96,140,255,.35), rgba(14,165,233,.22));
  color: #fff; border-color: rgba(96,140,255,.6); font-weight: 600;
  box-shadow: 0 2px 10px rgba(37,99,235,.25);
}
.brief-chart { height: 240px; background: rgba(15,28,63,.5); border-radius: 12px; margin-bottom: 14px; padding: 8px; }
/* 图表区域空状态（未选月份时） */
.brief-empty-chart {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; height: auto; color: #8a96bb; font-size: 13px;
  background: rgba(15,28,63,.4); border: 1px dashed rgba(96,140,255,.22);
  border-radius: 10px; margin: 6px 0 14px;
}
.brief-empty-chart .bec-inner {
  display: flex; align-items: center; gap: 8px;
}
.brief-empty-chart .bec-inner::before {
  content: F4CA; opacity: .6;
}
.brief-summary-card {
  background: rgba(20,34,72,.6); border: 1px solid rgba(96,140,255,.2); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px; font-size: 14px; color: #cdd6f4;
}
.brief-summary-card b { color: #aee0ff; font-size: 16px; }
.brief-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid rgba(96,140,255,.15); }
.brief-table { width: 100%; border-collapse: collapse; font-size: 13px; color: #d6def5; }
.brief-table th, .brief-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid rgba(96,140,255,.1); white-space: nowrap; }
.brief-table th { background: rgba(20,34,72,.7); color: #9fb0e0; font-weight: 600; position: sticky; top: 0; }
.brief-table tbody tr:hover { background: rgba(96,140,255,.08); }
.brief-table .empty { text-align: center; color: #7f8cb0; padding: 24px; }
.brief-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.brief-tag.green { background: rgba(59,162,114,.2); color: #7ee0a8; }
.brief-tag.red { background: rgba(217,78,93,.22); color: #ff9aa6; }
.brief-proj-sel { min-width: 220px; max-width: 360px; }
.brief-kpi-card.active { border-color: rgba(96,140,255,.75); background: linear-gradient(160deg, rgba(45,70,135,.9), rgba(20,36,75,.8)); }
.brief-outer-table { table-layout: fixed; }
.brief-outer-table th { white-space: nowrap; }
.brief-summary-row { cursor: pointer; transition: background .1s ease; }
.brief-summary-row:hover { background: rgba(96,140,255,.12); }
.brief-expand-cell { width: 40px; text-align: center; vertical-align: middle; }
.brief-expand-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; background: rgba(96,140,255,.18); color: #aee0ff; font-size: 14px; line-height: 1; }
.brief-contract-cell { white-space: normal; word-break: break-all; line-height: 1.5; }
.brief-contract-cell b { color: #e6ecff; font-weight: 500; }
.brief-count-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(96,140,255,.15); color: #8a96bb; font-size: 11px; }
.brief-detail-cell { padding: 0 !important; border-bottom: none; }
.brief-detail-inner { padding: 10px 12px 14px; background: rgba(8,18,42,.35); }
.brief-inner-table { font-size: 12px; width: 100%; table-layout: auto; }
.brief-inner-table th, .brief-inner-table td { white-space: normal; word-break: break-all; padding: 8px 10px; }
.brief-inner-table th { background: rgba(20,34,72,.9); }
/* 董事长关注洞察条 */
.brief-ceo-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px;
  background: rgba(20,34,72,.55); border: 1px solid rgba(96,140,255,.22);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 13px; color: #cdd6f4;
}
.brief-ceo-bar .ceo-label {
  flex: none; padding: 3px 10px; border-radius: 6px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9); color: #fff; font-weight: 600; font-size: 12px;
}
.brief-ceo-bar .ceo-item b { color: #aee0ff; font-weight: 600; }
.brief-ceo-bar .ceo-item b.ceo-warn { color: #ff9aa6; }
/* 收费管理顶部汇总卡：与岗位分布统一 5 列 grid，保证两行严格对齐 */
.brief-charge-header {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px;
  margin-bottom: 16px;
}
.brief-charge-kpi {
  min-width: 0;
  background: linear-gradient(160deg, rgba(30,48,98,.85), rgba(15,28,63,.7));
  border: 1px solid rgba(96,140,255,.22); border-radius: 12px; padding: 14px 16px;
}
.brief-charge-kpi .bck-val { font-size: 22px; font-weight: 700; color: #aee0ff; line-height: 1.1; }
.brief-charge-kpi .bck-label { font-size: 13px; color: #cdd6f4; margin-top: 6px; }
/* 平铺表格 */
.brief-flat-table { table-layout: fixed; }
.brief-flat-table th, .brief-flat-table td { white-space: normal; word-break: break-all; }
/* 重点关注：经营健康分项目清单（表格化） */
.brief-health-lists {
  background: rgba(15,28,63,.55); border: 1px solid rgba(96,140,255,.18); border-radius: 14px;
  padding: 12px 14px; margin-bottom: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.brief-health-legend {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; font-size: 12px;
}
.brief-health-legend .h-legend {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px;
  background: rgba(96,140,255,.10); border: 1px solid rgba(96,140,255,.15); color: #d6def5;
}
.brief-health-legend .h-legend.red { background: rgba(217,78,93,.15); border-color: rgba(255,107,122,.30); color: #ff9aa6; }
.brief-health-legend .h-legend.yellow { background: rgba(250,204,21,.12); border-color: rgba(250,204,21,.30); color: #fde68a; }
.brief-health-legend .h-legend.green { background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.25); color: #86efac; }
.brief-health-legend .h-legend.total { background: rgba(96,140,255,.12); border-color: rgba(96,140,255,.20); color: #d6def5; }
.brief-health-legend .h-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.brief-health-legend .h-dot.red { background: #ff6b7a; box-shadow: 0 0 6px rgba(255,107,122,.5); }
.brief-health-legend .h-dot.yellow { background: #facc15; box-shadow: 0 0 6px rgba(250,204,21,.4); }
.brief-health-legend .h-dot.green { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.4); }

.brief-health-table {
  width: 100%; border-collapse: collapse; font-size: 12px; color: #d6def5;
}
.brief-health-table th {
  text-align: left; padding: 8px 10px;
  background: rgba(96,140,255,.10); color: #9fb0e0; font-weight: 600;
  border-bottom: 1px solid rgba(96,140,255,.20); white-space: nowrap;
}
.brief-health-table td {
  padding: 8px 10px; border-bottom: 1px solid rgba(96,140,255,.10); vertical-align: middle;
}
.brief-health-table tbody tr:last-child td { border-bottom: none; }
.brief-health-table tbody tr:hover { background: rgba(96,140,255,.08); cursor: pointer; }
.brief-health-table .h-status { width: 40px; text-align: center; }
.brief-health-table .h-name { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brief-health-table .h-score { width: 60px; text-align: center; }
.brief-health-table .h-unpaid { width: 90px; text-align: right; white-space: nowrap; }
.brief-health-table .h-weak { width: 70px; text-align: center; }
.brief-health-table .h-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.brief-health-table .h-dot.red { background: #ff6b7a; box-shadow: 0 0 6px rgba(255,107,122,.5); }
.brief-health-table .h-dot.yellow { background: #facc15; box-shadow: 0 0 6px rgba(250,204,21,.4); }
.brief-health-table .h-dot.green { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.4); }
.brief-health-empty { padding: 20px; text-align: center; color: #8a96bb; font-size: 12px; }
/* 状态 Tab */
.brief-health-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.brief-health-tabs .h-tab {
  padding: 6px 14px; border-radius: 20px; cursor: pointer; font-size: 12px;
  background: rgba(96,140,255,.10); border: 1px solid rgba(96,140,255,.18); color: #cdd6f4;
  transition: all .12s;
}
.brief-health-tabs .h-tab:hover { background: rgba(96,140,255,.20); }
.brief-health-tabs .h-tab.active { background: rgba(96,140,255,.30); border-color: rgba(120,165,255,.55); color: #fff; font-weight: 600; }
.brief-health-table-wrap { overflow-x: auto; }
/* 分页 */
.brief-health-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.brief-health-pager button {
  min-width: 30px; padding: 5px 10px; font-size: 12px; cursor: pointer;
  background: rgba(96,140,255,.10); border: 1px solid rgba(96,140,255,.20); color: #cdd6f4;
  border-radius: 6px; transition: all .12s;
}
.brief-health-pager button:hover:not(:disabled) { background: rgba(96,140,255,.22); }
.brief-health-pager button.cur { background: rgba(96,140,255,.35); border-color: rgba(120,165,255,.55); color: #fff; font-weight: 600; }
.brief-health-pager button:disabled { opacity: .4; cursor: default; }
.brief-ceo-bar .h-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 2px 0 8px; }
.brief-ceo-bar .h-dot.red { background: #ff6b7a; box-shadow: 0 0 6px rgba(255,107,122,.5); }
.brief-ceo-bar .h-dot.yellow { background: #facc15; box-shadow: 0 0 6px rgba(250,204,21,.4); }
.brief-ceo-bar .h-dot.green { background: #4ade80; box-shadow: 0 0 6px rgba(74,222,128,.4); }
/* 岗位过滤条 */
.brief-role-filter {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: rgba(20,34,72,.6); border: 1px solid rgba(96,140,255,.22); border-radius: 10px;
  padding: 9px 12px; margin-bottom: 12px; font-size: 13px; color: #cdd6f4;
}
.brief-role-filter b { color: #aee0ff; }
.brief-role-clear {
  background: rgba(96,140,255,.18); border: 1px solid rgba(96,140,255,.35); border-radius: 6px;
  color: #dbe7ff; padding: 3px 10px; font-size: 12px; cursor: pointer;
}
.brief-role-clear:hover { background: rgba(96,140,255,.3); }
/* 岗位卡（冷紫色底，与 KPI 卡区分） */
.brief-role-card {
  text-align: center; cursor: pointer;
  background: linear-gradient(160deg, rgba(58,42,112,.92), rgba(30,22,68,.82));
  border: 1px solid rgba(139,124,255,.3); border-radius: 12px; padding: 14px 10px;
  transition: transform .12s ease, border-color .12s ease;
}
.brief-role-card:hover { transform: translateY(-2px); border-color: rgba(139,124,255,.6); }
.brief-role-card.active { border-color: rgba(167,139,250,.85); background: linear-gradient(160deg, rgba(76,55,140,.95), rgba(45,32,99,.85)); }
.brief-role-card .brc-val { font-size: 24px; font-weight: 700; color: #c4b5fd; line-height: 1; margin-bottom: 6px; }
.brief-role-card .brc-label { font-size: 13px; color: #ddd6fe; }
/* 超期项目折叠行标红 */
.brief-summary-row.has-overdue .brief-contract-cell b { color: #ff9aa6; }
/* 柱状图标题 */
.brief-chart-title { font-size: 13px; color: #9fb0e0; margin: 14px 0 6px; padding-left: 4px; }
/* 未提报项目面板 */
.brief-missing-panel {
  background: rgba(15,28,63,.55); border: 1px solid rgba(96,140,255,.18); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 14px; font-size: 13px;
}
.brief-missing-panel > b { display: block; color: #ff9aa6; margin-bottom: 8px; font-weight: 600; }
.brief-missing-list { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.brief-missing-list span {
  padding: 3px 8px; border-radius: 6px; background: rgba(96,140,255,.12);
  border: 1px solid rgba(96,140,255,.18); color: #d6def5; font-size: 12px;
  max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brief-missing-list .h-more { color: #8a96bb; background: transparent; border: none; }
@media (max-width: 1100px) {
  .brief-kpi-row-inner { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .brief-role-row { grid-template-columns: repeat(var(--n, 5), minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .brief-kpi-row-inner { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brief-role-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .brief-health-panel { flex-direction: column; }
}

/* 图表区域空状态（未选月份时） */
.brief-empty-chart {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; color: #8a96bb; font-size: 13px;
  background: rgba(15,28,63,.4); border: 1px dashed rgba(96,140,255,.22);
  border-radius: 10px; margin: 6px 0 14px;
}
.brief-empty-chart .bec-inner {
  display: flex; align-items: center; gap: 8px;
}
.brief-empty-chart .bec-inner::before {
  content: 📊; opacity: .6;
}


/* ===== 2026-09-16 新增：登录页「企业微信一键登录」入口 ===== */
.btn-wecom{display:block;margin:14px auto 0;padding:11px 0;width:100%;max-width:320px;
  background:#07c160;color:#fff;border-radius:10px;text-align:center;font-size:14.5px;
  text-decoration:none;letter-spacing:.5px;transition:background .15s;box-sizing:border-box}
.btn-wecom:hover{background:#06ad56}
.wecom-tip{margin-top:8px;font-size:12px;color:#888780;text-align:center}


/* ===== 2026-09-22 李总要求：仅保留企业微信登录，隐藏工号输入块 ===== */
/* 保留 DOM 结构（app.js 仍引用 #btnLogin 等），仅视觉隐藏，避免报错 */
.login-card .code-inputs,
.login-card .btn-login,
.login-card #loginMsg { display: none !important; }
/* 隐藏工号块后收紧标题与企微按钮间距，视觉更紧凑 */
.login-card h2 { margin-bottom: 6px; }
