* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: #f0f4f8; color: #303133;
}
.el-button--primary { --el-button-bg-color: #1e9e6a; --el-button-border-color: #1e9e6a; --el-button-hover-bg-color: #258a5f; --el-button-hover-border-color: #258a5f; }
.page-container { padding: 18px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.page-title { font-size: 20px; font-weight: 600; color: #1f2d3d; margin: 0; }
.page-subtitle { font-size: 13px; color: #909399; margin-top: 4px; }
.card-box { background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.pagination { display: flex; justify-content: flex-end; margin-top: 16px; }
.stat-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat-card .label { font-size: 13px; color: #909399; }
.stat-card .value { font-size: 28px; font-weight: 600; margin-top: 8px; color: #1f2d3d; }
.stat-card .trend { font-size: 12px; margin-top: 6px; color: #909399; }
.stat-card .stat-head { display: flex; justify-content: space-between; align-items: center; }
.chart-box { height: 300px; width: 100%; }
.box-title { font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.text-muted { color: #909399; }

.login-bg { height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f3d2e 0%, #1e7a52 100%); }
.login-box { width: 420px; background: #fff; border-radius: 14px; padding: 36px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo .icon { font-size: 46px; color: #1e9e6a; }
.login-logo h1 { font-size: 19px; margin: 12px 0 4px; color: #1f2d3d; }
.login-logo p { font-size: 12px; color: #909399; margin: 0; }
.login-copyright { text-align: center; margin-top: 18px; font-size: 12px; color: #909399; }

.layout-wrap { height: 100vh; display: flex; }
.sidebar { width: 230px; background: #12352b; color: #c8d9d2; display: flex; flex-direction: column; transition: width .2s; flex-shrink: 0; }
.sidebar.collapsed { width: 64px; }
.sidebar-logo { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 18px; color: #fff; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; overflow: hidden; }
.sidebar-logo .txt { font-size: 15px; font-weight: 600; }
.nav-item { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px; cursor: pointer; font-size: 14px; white-space: nowrap; border-left: 3px solid transparent; }
.nav-item:hover { background: rgba(255,255,255,.06); }
.nav-item.active { background: rgba(74,222,128,.12); color: #4ade80; border-left-color: #4ade80; }
.nav-item .ni { font-size: 17px; flex-shrink: 0; }
.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 60px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.fold-btn { font-size: 20px; cursor: pointer; color: #606266; }
.crumb { font-size: 16px; font-weight: 600; }
.version-tag { font-size: 12px; color: #909399; background: #f4f4f5; padding: 2px 8px; border-radius: 10px; }
.user-info { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.content-area { flex: 1; overflow-y: auto; }
.el-table .cell { font-size: 13px; }
.sys-info { margin-top: 16px; font-size: 12px; color: #909399; border-top: 1px solid #eee; padding-top: 12px; }
@media (max-width: 900px) { .sidebar { width: 64px; } .sidebar .txt { display: none; } }
