:root{
  --primary:#409eff;
  --primary-dark:#337ecc;
  --bg:#f5f7fa;
  --card-bg:#fff;
  --border:#ebeef5;
  --text:#303133;
  --text-sub:#909399;
  --sidebar-bg:#fff;
  --topbar-bg:#fff;
}
*{box-sizing:border-box}
html,body,#app{height:100%;margin:0}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;background:var(--bg);color:var(--text);font-size:14px}
a{color:var(--primary);text-decoration:none}
.el-button--primary{--el-button-bg-color:var(--primary);--el-button-border-color:var(--primary)}
.money{color:#e6a23c;font-weight:700}
.success{color:#67c23a}
.danger{color:#f56c6c}

/* ── 登录 ───────────────────────────────── */
.login-view{height:100vh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;background:linear-gradient(135deg,#eef3ff 0%,#f7f9ff 50%,#eef7ff 100%)}
.login-bg{position:absolute;inset:0;overflow:hidden}
.login-bg .orb{position:absolute;border-radius:50%;filter:blur(2px);opacity:.5}
.login-bg .o1{width:420px;height:420px;background:radial-gradient(circle,#b9ccff,transparent 70%);top:-120px;left:-100px}
.login-bg .o2{width:360px;height:360px;background:radial-gradient(circle,#c8e0ff,transparent 70%);bottom:-100px;right:-80px}
.login-bg .o3{width:240px;height:240px;background:radial-gradient(circle,#d9c9ff,transparent 70%);top:40%;right:20%}
.login-card{position:relative;width:880px;max-width:94vw;min-height:500px;background:#fff;border-radius:20px;box-shadow:0 20px 60px rgba(64,110,255,.15);display:flex;overflow:hidden;z-index:1}
.login-brand{width:44%;background:linear-gradient(150deg,#4a5bf5,#6d8bff);color:#fff;padding:56px 40px;display:flex;flex-direction:column;justify-content:center;position:relative}
.login-brand .brand-logo{margin-bottom:28px}
.login-brand h1{font-size:26px;margin:0 0 10px;font-weight:800;letter-spacing:.5px}
.login-brand p{font-size:14px;opacity:.85;margin:0}
.brand-orbits span{position:absolute;border:1px solid rgba(255,255,255,.25);border-radius:50%}
.orbit-dot{width:8px;height:8px;background:#fff;border-radius:50%;position:absolute;opacity:.8}
.d1{top:60px;right:50px}.d2{top:120px;right:110px;width:5px;height:5px}.d3{bottom:100px;left:40px}.d4{bottom:60px;right:60px;width:6px;height:6px}
.login-form-wrap{flex:1;padding:56px 50px;display:flex;flex-direction:column;justify-content:center}
.login-form-wrap h2{font-size:22px;margin:0 0 28px;color:#1f2430}
.login-input{margin-bottom:18px}
.login-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;font-size:13px}
.login-btn{width:100%;height:44px;font-size:16px}
.login-tip{text-align:center;color:var(--text-sub);font-size:13px;margin-top:18px}
.login-demo{margin-top:22px;padding:12px;background:#f5f7ff;border-radius:8px;text-align:center;color:#8a93a6;font-size:12px;line-height:1.8}
.login-demo b{color:#5a6a8a}

/* ── 锁屏头像 ───────────────────────────── */
.lock-avatar{width:72px;height:72px;border-radius:50%;background:linear-gradient(135deg,#409eff,#6d8bff);color:#fff;display:flex;align-items:center;justify-content:center;font-size:30px;font-weight:700;margin:0 auto;box-shadow:0 8px 24px rgba(64,158,255,.35)}

/* ── 主框架 ─────────────────────────────── */
.app-shell{height:100vh}
.sidebar{background:var(--sidebar-bg);border-right:1px solid var(--border);display:flex;flex-direction:column;transition:width .2s;overflow:hidden}
.sidebar-logo{height:60px;display:flex;align-items:center;gap:10px;padding:0 18px;cursor:pointer;border-bottom:1px solid var(--border);white-space:nowrap;color:#1f2430;font-weight:800;font-size:15px}
.sidebar-logo svg{flex-shrink:0}
.sidenav-scroll{flex:1}
.sidenav{padding:10px 0}
.nav-item{height:44px;display:flex;align-items:center;gap:12px;padding:0 20px;cursor:pointer;color:#606266;font-size:14px;white-space:nowrap;transition:all .15s;position:relative}
.nav-item .el-icon{font-size:18px;flex-shrink:0}
.nav-item:hover{background:#f5f7fa;color:var(--primary)}
.nav-item.active{background:#ecf3ff;color:var(--primary);font-weight:600}
.nav-item.active::before{content:'';position:absolute;left:0;top:8px;bottom:8px;width:3px;background:var(--primary);border-radius:0 3px 3px 0}
.nav-arrow{margin-left:auto;transition:transform .2s;font-size:12px!important}
.nav-arrow.open{transform:rotate(90deg)}
.nav-children{background:#fafbfc;padding:4px 0}
.nav-child{height:40px;display:flex;align-items:center;padding:0 20px 0 52px;cursor:pointer;color:#606266;font-size:13px}
.nav-child:hover{color:var(--primary)}
.nav-child.active{color:var(--primary);font-weight:600;background:#f0f6ff}
.sidebar-foot{padding:14px 18px;font-size:11px;color:#c0c4cc;border-top:1px solid var(--border);text-align:center;white-space:nowrap;overflow:hidden}

.main-wrap{background:var(--bg);overflow:hidden}
.topbar{height:60px;background:var(--topbar-bg);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 22px}
.topbar-left{display:flex;align-items:center;gap:18px}
.collapse-btn{cursor:pointer;font-size:20px;color:#606266;display:flex;align-items:center}
.breadcrumb{font-size:15px;color:#606266}
.topbar-right{display:flex;align-items:center;gap:6px}
.topbar-right .el-button{font-size:18px}
.avatar-wrap{cursor:pointer;margin-left:8px}
.avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#409eff,#6d8bff);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700}
.content{padding:20px;overflow-y:auto}

/* ── 通用卡片 ───────────────────────────── */
.page-card{background:var(--card-bg);border-radius:12px;box-shadow:0 2px 12px rgba(31,36,48,.04);margin-bottom:18px;overflow:hidden}
.page-card-hd{padding:18px 22px;border-bottom:1px solid var(--border);font-weight:600;display:flex;align-items:center;justify-content:space-between}
.page-card-bd{padding:22px}

/* ── 仪表盘 ─────────────────────────────── */
.dash-hero{background:#fff;border-radius:14px;padding:24px 26px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;box-shadow:0 2px 12px rgba(31,36,48,.04)}
.dash-hero-left{display:flex;align-items:center;gap:16px}
.hero-avatar{width:56px;height:56px;border-radius:14px;background:linear-gradient(135deg,#a18cff,#6d8bff);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:700}
.hero-name{font-size:19px;font-weight:700}
.hero-sub{color:var(--text-sub);font-size:13px;margin-top:6px;display:flex;align-items:center;gap:10px}
.badge-ok{display:inline-block;padding:2px 10px;background:#e8fff3;color:#12a150;border-radius:12px;font-size:12px;font-weight:600}
.hero-quick{display:flex;gap:12px}
.quick-btn{width:90px;height:80px;border:1px solid var(--border);border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;color:#606266;font-size:12px;transition:all .15s}
.quick-btn:hover{border-color:var(--primary);color:var(--primary);background:#f5f9ff}
.quick-btn .el-icon{font-size:22px;color:var(--primary)}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}
.stat-card{background:#fff;border-radius:12px;padding:20px;display:flex;align-items:center;justify-content:space-between;box-shadow:0 2px 12px rgba(31,36,48,.04)}
.stat-label{color:var(--text-sub);font-size:13px;margin-bottom:8px}
.stat-value{font-size:26px;font-weight:700;color:#1f2430}
.stat-sub{color:#c0c4cc;font-size:12px;margin-top:6px}
.stat-ico{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px}
.stat-ico.blue{background:#ecf3ff;color:#409eff}
.stat-ico.green{background:#e8fff3;color:#12a150}
.stat-ico.orange{background:#fff3e8;color:#e6a23c}
.stat-ico.pink{background:#ffedf3;color:#f56c6c}
.dash-row{display:grid;grid-template-columns:1.6fr 1fr;gap:18px}
.notice-item{padding:12px 0;border-bottom:1px dashed var(--border)}
.notice-item:last-child{border-bottom:0}
.notice-tag{display:inline-block;padding:1px 8px;background:#ecf3ff;color:var(--primary);border-radius:4px;font-size:11px;margin-right:6px}
.notice-time{color:#c0c4cc;font-size:11px;margin-top:6px}
.tip-text{color:var(--text-sub);font-size:13px;line-height:1.9}

/* ── 弹窗内的二维码 ─────────────────────── */
.key-row{display:flex;align-items:center;gap:8px;margin:10px 0}
.key-val{font-family:monospace;background:#f5f7fa;padding:8px 12px;border-radius:6px;flex:1;word-break:break-all;font-size:13px;color:#5a6272}
.doc-frame{width:100%;height:70vh;border:0;border-radius:8px}

/* 深色模式 */
.dark{--bg:#14161c;--card-bg:#1d2029;--border:#2a2e3a;--text:#e5e7eb;--text-sub:#9ca3af;--sidebar-bg:#1d2029;--topbar-bg:#1d2029}
.dark .sidebar-logo,.dark .stat-value,.dark .hero-name,.dark .login-form-wrap h2{color:#e5e7eb}
.dark .quick-btn,.dark .stat-card,.dark .dash-hero,.dark .page-card{color:#e5e7eb}
.dark .nav-item:hover,.dark .nav-children{background:#252936}
.dark .el-input__wrapper,.dark .el-select__wrapper{background-color:#252936!important}
.dark .el-table{--el-table-bg-color:#1d2029;--el-table-tr-bg-color:#1d2029;--el-table-header-bg-color:#252936;--el-table-border-color:#2a2e3a;--el-table-text-color:#e5e7eb;--el-table-header-text-color:#9ca3af}

/* 响应式 */
@media(max-width:1200px){.stat-grid{grid-template-columns:repeat(2,1fr)}.dash-row{grid-template-columns:1fr}}
