:root{
  --zh-primary:#1f6feb;
  --zh-bg:#eef1f6;
  --zh-side:#0f1c2e;
  --zh-side-2:#162536;
  --zh-card:#fff;
  --zh-border:#e2e8f0;
  --zh-text:#243044;
  --zh-muted:#6b7a90;
  --zh-fs:12px;
  --zh-fs-sm:11px;
  --zh-fs-lg:13px;
  --el-font-size-base:12px;
}
*{box-sizing:border-box}
html,body,#app{
  height:100%;margin:0;
  font-family:"Source Han Sans SC","Noto Sans SC","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:var(--zh-fs);color:var(--zh-text);background:var(--zh-bg);
}
a{color:var(--zh-primary);text-decoration:none}
.zh-login{
  min-height:100%;display:flex;align-items:center;justify-content:center;
  background:
    radial-gradient(1000px 420px at 10% -10%, rgba(31,111,235,.22), transparent 60%),
    linear-gradient(135deg,#0b1524 0%,#143056 45%,#0f2744 100%);
}
.zh-login-card{
  width:380px;background:rgba(255,255,255,.97);border-radius:10px;padding:24px 22px 18px;
  box-shadow:0 16px 40px rgba(0,0,0,.25);
}
.zh-login-brand{font-size:18px;font-weight:700;letter-spacing:.3px;margin-bottom:4px}
.zh-login-sub{color:var(--zh-muted);font-size:var(--zh-fs-sm);margin-bottom:16px}
.zh-shell{display:flex;height:100%}
.zh-side{
  width:188px;background:linear-gradient(180deg,var(--zh-side),var(--zh-side-2));
  color:#d7e3f4;display:flex;flex-direction:column;flex-shrink:0;
}
.zh-logo{padding:12px 12px 10px;border-bottom:1px solid rgba(255,255,255,.08)}
.zh-logo .t{font-size:13px;font-weight:700;color:#fff;line-height:1.3}
.zh-logo .s{font-size:10px;opacity:.6;margin-top:2px}
.zh-menu{flex:1;overflow:auto;padding:6px}
.zh-menu .el-menu{border-right:none;background:transparent;--el-menu-item-height:32px;--el-menu-sub-item-height:30px}
.zh-menu .el-menu-item,
.zh-menu .el-sub-menu__title{
  color:#c7d5ea!important;height:32px!important;line-height:32px!important;
  border-radius:6px;margin:1px 0;font-size:12px!important;padding:0 10px!important;
}
.zh-menu .el-sub-menu .el-menu-item{padding-left:28px!important;min-width:auto;font-size:12px!important}
.zh-menu .el-sub-menu__title{font-weight:600;color:#9eb2cc!important}
.zh-menu .el-menu-item:hover,.zh-menu .el-sub-menu__title:hover{background:rgba(255,255,255,.06)!important}
.zh-menu .el-menu-item.is-active{background:rgba(31,111,235,.3)!important;color:#fff!important}
.zh-menu .el-sub-menu__icon-arrow{margin-top:-5px;font-size:12px}
.zh-main{flex:1;display:flex;flex-direction:column;min-width:0}
.zh-top{
  height:42px;background:#fff;border-bottom:1px solid var(--zh-border);
  display:flex;align-items:center;justify-content:space-between;padding:0 12px;
}
.zh-top .crumb{font-size:var(--zh-fs-lg);font-weight:600}
.zh-body{flex:1;overflow:auto;padding:10px}
.zh-card{
  background:var(--zh-card);border:1px solid var(--zh-border);border-radius:8px;padding:10px;
  box-shadow:0 1px 1px rgba(16,24,40,.02);
}
.zh-toolbar{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-bottom:8px}
.zh-toolbar .spacer{flex:1}
.zh-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:10px}
.zh-stats-3{grid-template-columns:repeat(3,1fr)}
.zh-stat{
  background:#fff;border:1px solid var(--zh-border);border-radius:8px;padding:10px 12px;
  position:relative;overflow:hidden;
}
.zh-stat::after{content:"";position:absolute;right:-8px;top:-8px;width:48px;height:48px;border-radius:50%;background:rgba(31,111,235,.07)}
.zh-stat .n{font-size:20px;font-weight:700;line-height:1.1}
.zh-stat .l{font-size:var(--zh-fs-sm);color:var(--zh-muted);margin-top:4px}
.zh-stat.warn .n{color:#d4380d}
.zh-stat.ok .n{color:#08979c}
.zh-stat.info .n{color:#1f6feb}
.zh-table-wrap .el-table{font-size:12px}
.zh-tag-low{color:#cf1322;background:#fff1f0;border-color:#ffa39e}
.zh-preview-mask{
  position:fixed;inset:0;background:rgba(0,0,0,.78);z-index:4000;
  display:flex;align-items:center;justify-content:center;
}
.zh-preview-mask img{max-width:90vw;max-height:86vh;transition:transform .15s;user-select:none;z-index:0}
.zh-preview-actions{
  position:fixed;top:16px;right:16px;z-index:4001;
  display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end;
  max-width:min(92vw,560px);padding:8px;border-radius:8px;
  background:rgba(15,23,42,.55);backdrop-filter:blur(4px);
}
.zh-preview-nav{
  position:fixed;top:50%;transform:translateY(-50%);z-index:4001;
  min-width:44px;height:72px;padding:0 10px;border:0;border-radius:10px;
  background:rgba(15,23,42,.62);color:#fff;font-size:13px;font-weight:600;
  cursor:pointer;backdrop-filter:blur(4px);line-height:1.2;
}
.zh-preview-nav:hover{background:rgba(30,41,59,.85)}
.zh-preview-nav-prev{left:16px}
.zh-preview-nav-next{right:16px}
.zh-thumbs{display:flex;gap:6px;flex-wrap:wrap}
.zh-thumbs img{width:48px;height:48px;object-fit:cover;border-radius:4px;border:1px solid var(--zh-border);cursor:pointer}
.zh-paste-hint{font-size:11px;color:var(--zh-muted);margin-top:4px;line-height:1.4}
.el-form--compact .el-form-item{margin-bottom:8px}

/* Element Plus 全局紧凑 */
.zh-body .el-button{--el-button-size:28px;font-size:12px}
.zh-body .el-button--small{--el-button-size:24px;font-size:11px;padding:5px 9px}
.zh-body .el-input,
.zh-body .el-select,
.zh-body .el-cascader,
.zh-body .el-input-number{--el-component-size:28px;font-size:12px}
.zh-body .el-table{--el-table-header-bg-color:#f7f9fc;font-size:12px}
.zh-body .el-table .cell{padding:0 8px;line-height:20px}
.zh-body .el-table th.el-table__cell{padding:6px 0;font-size:12px;font-weight:600;color:#475569}
.zh-body .el-table td.el-table__cell{padding:5px 0}
.zh-body .el-pagination{--el-pagination-font-size:12px;--el-pagination-button-height:26px;font-size:12px}
.zh-body .el-dialog__title{font-size:14px}
.zh-body .el-dialog__body{padding:12px 16px;font-size:12px}
.zh-body .el-form-item__label{font-size:12px!important;height:28px;line-height:28px}
.zh-body .el-form-item{margin-bottom:10px}
.zh-body .el-descriptions{font-size:12px}
.zh-body .el-alert{padding:6px 10px;font-size:12px}
.zh-body .el-tag{height:20px;line-height:18px;font-size:11px;padding:0 6px}
.zh-top .el-button{--el-button-size:26px;font-size:12px}
.zh-top .el-select{--el-component-size:26px}

@media (max-width:960px){
  .zh-side{display:none}
  .zh-stats,.zh-stats-3{grid-template-columns:repeat(2,1fr)}
  .zh-stats-3 .zh-stat:last-child{grid-column:1 / -1}
  .zh-login-card{width:92vw}
  .zh-top-actions>span:first-child{display:none}
}


.zh-empty{padding:28px 12px;text-align:center;color:#94a3b8;font-size:12px}
.zh-empty .t{font-size:13px;color:#64748b;margin-bottom:4px}
.zh-click{cursor:pointer;transition:transform .12s,box-shadow .12s}
.zh-click:hover{transform:translateY(-1px);box-shadow:0 4px 12px rgba(15,23,42,.08)}
.zh-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.zh-muted{color:var(--zh-muted)}
.zh-status{display:inline-flex;align-items:center;gap:4px}
.zh-dot{width:6px;height:6px;border-radius:50%;display:inline-block}
.zh-dot.ok{background:#10b981}.zh-dot.warn{background:#f59e0b}.zh-dot.danger{background:#ef4444}.zh-dot.info{background:#3b82f6}.zh-dot.muted{background:#94a3b8}
.zh-top-actions{display:flex;gap:8px;align-items:center}
@media (max-width:1100px){.zh-grid-2{grid-template-columns:1fr}}

/* 平台 Logo 标签 */
.zh-plat{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;max-width:100%;line-height:1.2}
.zh-plat-ico{width:16px;height:16px;border-radius:4px;flex-shrink:0;display:block;object-fit:cover;background:#e2e8f0}
.zh-plat-md .zh-plat-ico{width:20px;height:20px;border-radius:5px}
.zh-plat-txt{font-size:12px;color:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zh-plat-md .zh-plat-txt{font-size:13px}
.zh-plat-ico-only{gap:0}

.zh-thumbs-lg img{width:72px;height:72px}
.zh-thumb-item{position:relative}
.zh-thumb-del{position:absolute;top:-8px;right:-8px;z-index:2}
.zh-uploader-zone{
  width:100%;outline:none;border:1px dashed #cbd5e1;border-radius:10px;
  padding:10px 12px;background:#f8fafc;transition:border-color .15s,background .15s,box-shadow .15s;box-sizing:border-box;
}
.zh-uploader-zone.is-active{
  border-color:#3b82f6;background:#eff6ff;box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.zh-uploader-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.zh-uploader-empty{
  min-height:72px;min-width:160px;display:flex;align-items:center;justify-content:center;
  border:1px dashed #cbd5e1;border-radius:8px;color:#94a3b8;font-size:12px;padding:0 12px;background:#fff;
}
.zh-paste-hint{font-size:11px;color:var(--zh-muted);margin-top:4px;line-height:1.4}
.zh-file-list{display:flex;flex-direction:column;gap:6px;margin-top:8px}
.zh-file-row{display:flex;align-items:center;gap:8px;padding:6px 8px;background:#fff;border:1px solid #e2e8f0;border-radius:6px;font-size:12px}
.zh-file-row a{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
