/* Extracted from index.html on 2026-06-13. Original style blocks preserved in order. */

/* style block 1 attrs: */
*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:#f4f7fb;color:#152033}button,input,select,textarea{font:inherit}.hidden{display:none!important}.muted{color:#7b8798;font-size:13px;line-height:1.65}.login{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#102a55,#1f5aa6)}.login-card{width:430px;max-width:92vw;background:#fff;border-radius:22px;padding:36px;box-shadow:0 24px 80px rgba(0,0,0,.28)}.login-card h1{font-size:26px;color:#102a55;margin-bottom:8px}.input,.select,.textarea{width:100%;border:1px solid #dbe3ef;background:#fff;border-radius:12px;padding:11px 12px;margin:6px 0;outline:none}.btn{border:0;border-radius:12px;background:#1f5aa6;color:#fff;padding:10px 14px;font-weight:800;cursor:pointer}.btn.block{width:100%}.btn.light{background:#edf4ff;color:#1f5aa6}.btn.gray{background:#eef1f5;color:#526071}.btn.red{background:#e5484d}.btn.green{background:#14a85b}.app{display:none;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;background:#102a55;color:#dce9ff;padding:18px 14px;z-index:10}.brand{display:flex;gap:10px;align-items:center;margin-bottom:20px}.brand-logo{width:42px;height:42px;border-radius:12px;background:#fff;overflow:hidden}.brand-logo img{width:100%;height:100%;object-fit:cover}.brand h2{font-size:18px;color:#fff}.menu{display:grid;gap:7px;padding-bottom:40px}.menu button{border:0;background:transparent;color:#dce9ff;text-align:left;padding:12px;border-radius:12px;cursor:pointer;font-weight:800}.menu button:hover,.menu button.active{background:rgba(255,255,255,.13);color:#fff}.menu-group{border-top:1px solid rgba(255,255,255,.08);padding-top:8px;margin-top:4px}.menu-title{font-size:13px;font-weight:900;color:#fff;padding:10px 12px 6px;opacity:.95}.submenu{display:grid;gap:3px;margin-left:8px;border-left:1px solid rgba(255,255,255,.12);padding-left:8px}.submenu button{font-size:13px;font-weight:700;padding:8px 10px;color:#c7dcff}.submenu button.active{background:rgba(255,255,255,.17)}.main{margin-left:250px;min-height:100vh}.topbar{height:66px;background:#fff;border-bottom:1px solid #e8edf5;display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:5}.content{padding:20px}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.card{background:#fff;border:1px solid #e8edf5;border-radius:18px;padding:18px;box-shadow:0 8px 26px rgba(31,45,61,.06);margin-bottom:14px}.card h3{font-size:17px;margin-bottom:10px}.num{font-size:28px;font-weight:900;color:#1f5aa6}.label{font-size:12px;color:#7b8798}.tabbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:14px;overflow:hidden}.table th,.table td{padding:11px;border-bottom:1px solid #eef2f7;text-align:left;font-size:13px}.table th{background:#f7faff;color:#526071}.status{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:800}.ok{background:#e8f8ef;color:#12824a}.bad{background:#fff0f0;color:#c0343a}.tag{display:inline-block;border-radius:999px;background:#edf4ff;color:#1f5aa6;padding:4px 8px;font-size:12px;margin:2px}.doc{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;border-radius:14px;padding:16px;overflow:auto;max-height:calc(100vh - 180px);font-family:Consolas,Monaco,monospace;font-size:13px;line-height:1.65}.toast{position:fixed;right:20px;bottom:20px;background:#172033;color:#fff;border-radius:12px;padding:12px 16px;z-index:99}.modal{position:fixed;inset:0;background:rgba(15,23,42,.45);display:none;align-items:center;justify-content:center;z-index:100}.modal.show{display:flex}.modal-card{background:#fff;width:900px;max-width:94vw;max-height:88vh;overflow:auto;border-radius:20px;padding:20px}.access-row{display:grid;grid-template-columns:1.2fr .8fr repeat(4,.7fr);gap:8px;align-items:center;border-bottom:1px solid #eef2f7;padding:10px 0}.access-row input[type=text]{padding:8px;border:1px solid #dbe3ef;border-radius:8px}.access-row label{font-size:12px;color:#526071}.section{display:none}.section.active{display:block}
/* 统一后台视觉增强：授权矩阵 */
.modal-card.access-card{width:1080px;padding:0;overflow:hidden;background:#f6f9fd}.access-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:22px 24px;background:linear-gradient(135deg,#102a55,#1f5aa6);color:#fff}.access-head h3{font-size:22px;margin:0 0 6px}.access-head .muted{color:rgba(255,255,255,.82)}.access-body{padding:18px 20px 22px}.access-help{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:14px}.access-help .help-item{background:#fff;border:1px solid #e8edf5;border-radius:14px;padding:12px;box-shadow:0 6px 18px rgba(31,45,61,.05)}.access-help b{display:block;color:#1f5aa6;margin-bottom:3px}.access-matrix{display:grid;gap:12px}.access-card-row{display:grid;grid-template-columns:1.25fr .85fr repeat(4,.62fr);gap:10px;align-items:center;background:#fff;border:1px solid #e8edf5;border-radius:16px;padding:14px;box-shadow:0 8px 22px rgba(31,45,61,.06)}.access-card-row.access-header{background:#eef5ff;color:#39516f;font-weight:900;box-shadow:none;padding:11px 14px}.access-app-title{display:flex;gap:10px;align-items:center}.access-icon{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#edf4ff,#dff6ff);display:flex;align-items:center;justify-content:center;font-size:20px}.access-name strong{font-size:15px;color:#172033}.access-name small{display:block;color:#7b8798;margin-top:2px}.access-card-row input[type=text]{width:100%;border:1px solid #dbe3ef;border-radius:10px;padding:9px 10px;background:#fbfdff}.switch-cell{display:flex;justify-content:center}.switch-cell label{display:inline-flex;gap:6px;align-items:center;justify-content:center;min-width:72px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:999px;padding:7px 9px;color:#526071;font-size:12px;font-weight:800;cursor:pointer}.switch-cell input{accent-color:#1f5aa6}.access-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.access-row{display:grid}.user-auth-btn{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 12px}.status-chip{display:inline-flex;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:900}.status-chip.on{background:#e8f8ef;color:#12824a}.status-chip.off{background:#fff0f0;color:#c0343a}.status.ok{background:#e8f8ef;color:#12824a}.status.bad{background:#fff0f0;color:#c0343a}@media(max-width:900px){.access-help{grid-template-columns:1fr}.access-card-row,.access-card-row.access-header{grid-template-columns:1fr}.switch-cell{justify-content:flex-start}.modal-card.access-card{max-width:96vw}}
.perm-modal{background:#fff;width:1100px;max-width:96vw;max-height:90vh;overflow:auto;border-radius:20px;padding:20px}.perm-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.perm-tabs button{border:0;border-radius:10px;padding:9px 12px;font-weight:800;background:#edf4ff;color:#1f5aa6}.perm-tabs button.active{background:#1f5aa6;color:#fff}.perm-panel{display:none}.perm-panel.active{display:block}.perm-grid{display:grid;grid-template-columns:1fr 70px 70px;gap:8px;align-items:center}.perm-col-card{border:1px solid #e8edf5;border-radius:14px;padding:12px;margin-bottom:10px;background:#fbfdff}.perm-scope-select{min-width:150px}.mini{font-size:12px}.ai-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.ai-tabs button{border:0;border-radius:10px;padding:9px 12px;font-weight:800;background:#edf4ff;color:#1f5aa6}.ai-tabs button.active{background:#1f5aa6;color:#fff}.ai-panel{display:none}.ai-panel.active{display:block}.pill{display:inline-block;border-radius:999px;background:#f1f5f9;color:#475569;padding:4px 8px;font-size:12px;margin:2px}.sub-note{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:14px;margin:0 0 14px}.section-subtitle{display:inline-block;background:#edf4ff;color:#1f5aa6;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;margin-bottom:10px}

/* 统一控制台工作台优化 */
.dashboard-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,#102a55,#1f5aa6 58%,#00a3ff);color:#fff;border-radius:24px;padding:26px;margin-bottom:16px;box-shadow:0 20px 52px rgba(31,90,166,.22)}.dashboard-hero:after{content:"";position:absolute;right:-80px;top:-80px;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.12)}.dashboard-hero h2{font-size:28px;margin-bottom:8px}.dashboard-hero p{opacity:.86;max-width:720px;line-height:1.7}.hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}.hero-actions .btn{background:#fff;color:#1f5aa6}.hero-actions .btn.dark{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.26)}.metric-card{position:relative;overflow:hidden}.metric-card:before{content:"";position:absolute;right:-28px;top:-28px;width:90px;height:90px;border-radius:50%;background:#edf4ff}.metric-icon{width:38px;height:38px;border-radius:13px;background:#edf4ff;color:#1f5aa6;display:flex;align-items:center;justify-content:center;font-size:20px;margin-bottom:10px}.system-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.system-card{background:#fff;border:1px solid #e8edf5;border-radius:18px;padding:16px;box-shadow:0 8px 24px rgba(31,45,61,.06);transition:.18s;cursor:pointer}.system-card:hover{transform:translateY(-2px);box-shadow:0 14px 34px rgba(31,45,61,.1)}.system-card .icon{width:44px;height:44px;border-radius:15px;background:linear-gradient(135deg,#edf4ff,#dff6ff);display:flex;align-items:center;justify-content:center;font-size:23px;margin-bottom:10px}.system-card h3{margin-bottom:5px}.system-card p{min-height:42px}.quick-list{display:grid;gap:10px}.quick-item{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fbfdff;border:1px solid #e8edf5;border-radius:14px;padding:12px}.quick-item strong{color:#102a55}.health-dot{display:inline-flex;width:9px;height:9px;border-radius:50%;background:#14a85b;margin-right:6px}.health-dot.bad{background:#e5484d}@media(max-width:1200px){.system-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.system-grid{grid-template-columns:1fr}.dashboard-hero h2{font-size:23px}}
@media(max-width:1000px){.sidebar{position:static;width:auto}.main{margin-left:0}.grid4,.grid3,.grid2{grid-template-columns:1fr}.topbar{height:auto;padding:12px;align-items:flex-start;gap:10px}}

.menu-title{display:flex;align-items:center;justify-content:space-between;cursor:pointer;user-select:none;border-radius:10px}.menu-title:hover{background:rgba(255,255,255,.09)}.menu-title .arrow{transition:.18s;font-size:12px;color:#9fb9df}.menu-group.collapsed .arrow{transform:rotate(-90deg)}.menu-group.collapsed>.submenu{display:none}.submenu .submenu{margin-left:12px;border-left:1px dashed rgba(255,255,255,.16)}.submenu-title{font-size:12px;font-weight:900;color:#e8f2ff;padding:8px 10px;cursor:pointer;border-radius:10px;display:flex;justify-content:space-between}.submenu-title:hover{background:rgba(255,255,255,.08)}.legacy-frame{width:100%;height:calc(100vh - 118px);border:1px solid #e8edf5;border-radius:18px;background:#fff;box-shadow:0 8px 26px rgba(31,45,61,.06)}.legacy-toolbar{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:10px}.legacy-toolbar .left{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.legacy-badge{display:inline-flex;align-items:center;border-radius:999px;background:#edf4ff;color:#1f5aa6;padding:6px 10px;font-size:12px;font-weight:900}

/* 左侧菜单：纯点击展开/收起，避免 hover 导致二次点击后无法缩回 */
.menu .menu-group>.submenu{display:none!important}
.menu .menu-group.open>.submenu{display:grid!important}
.menu .menu-group.open>.menu-title .arrow,.menu .menu-group.open>.submenu-title .arrow{transform:rotate(0deg)}
.menu .menu-group:not(.open)>.menu-title .arrow,.menu .menu-group:not(.open)>.submenu-title .arrow{transform:rotate(-90deg)}
.menu .menu-group.open>.menu-title,.menu .menu-group.open>.submenu-title{background:rgba(255,255,255,.12)}

/* 左侧导航独立滚动：菜单过长时可向下滚动，不影响右侧内容 */
.sidebar{height:100vh;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.38) rgba(255,255,255,.08)}
.sidebar::-webkit-scrollbar{width:8px}.sidebar::-webkit-scrollbar-track{background:rgba(255,255,255,.06);border-radius:999px}.sidebar::-webkit-scrollbar-thumb{background:rgba(255,255,255,.35);border-radius:999px}.sidebar::-webkit-scrollbar-thumb:hover{background:rgba(255,255,255,.55)}
.sidebar .menu{padding-bottom:90px}


/* 2026-06-14 统一后台健康监控分组样式 */
.health-group {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248,250,252,.96), rgba(255,255,255,.98));
}
.health-group h4 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.health-group h4::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.health-group .quick-item {
  padding: 9px 0;
  border-bottom: 1px dashed rgba(148,163,184,.35);
}
.health-group .quick-item:last-child { border-bottom: 0; }
.health-group .status { white-space: nowrap; }
@media (max-width: 768px) {
  .health-group { padding: 10px; border-radius: 12px; }
  .health-group .quick-item { align-items: flex-start; gap: 8px; }
}


/* 功能文档：按项目独立文档展示 */
.doc.doc-wrap{white-space:normal;background:#f8fafc;color:#152033;font-family:inherit;max-height:none;padding:0;overflow:visible;border:1px solid #e8edf5}
.doc-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:14px;border-bottom:1px solid #e8edf5;background:#fff;border-radius:14px 14px 0 0;position:sticky;top:66px;z-index:2}
.doc-tabs button{border:0;border-radius:999px;background:#edf4ff;color:#1f5aa6;padding:8px 12px;font-weight:900;cursor:pointer}
.doc-tabs button.active{background:#1f5aa6;color:#fff;box-shadow:0 6px 16px rgba(31,90,166,.18)}
.doc-meta{display:flex;gap:8px;flex-wrap:wrap;padding:12px 14px;background:#fbfdff;border-bottom:1px solid #e8edf5}
.doc-pre{white-space:pre-wrap;margin:0;padding:18px;background:#0f172a;color:#e2e8f0;border-radius:0 0 14px 14px;overflow:auto;max-height:calc(100vh - 250px);font-family:Consolas,Monaco,monospace;font-size:13px;line-height:1.68}
