/* 艮安挪车 · 管理后台（晴空浅色 · 桌面优先自适应） */

/* ---------- 登录 ---------- */
.login-view {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card { width: 100%; max-width: 380px; padding: 36px 32px 28px; text-align: center; }
.login-logo .logo { width: 52px; height: 52px; }
.login-title { font-size: 19px; font-weight: 800; letter-spacing: 1px; margin: 14px 0 26px; color: var(--ink); }
.login-card .field { margin-bottom: 14px; text-align: left; }
.login-tip { margin-top: 18px; font-size: 11.5px; color: var(--ink-faint); }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }

.side {
  flex: none;
  width: 224px;
  display: flex; flex-direction: column;
  padding: 22px 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid var(--line-soft);
  position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.side-brand .logo { width: 36px; height: 36px; }
.side-brand b { display: block; font-size: 15px; letter-spacing: 1px; color: var(--ink); }
.side-brand span { display: block; font-size: 11px; color: var(--ink-faint); letter-spacing: 2px; }

.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px;
  font-size: 14.5px; font-weight: 600;
  color: var(--ink-dim);
  background: none;
  border-radius: 12px;
  transition: all 0.18s ease;
  text-align: left;
}
.nav-item svg { width: 19px; height: 19px; }
.nav-item:hover { color: var(--ink); background: rgba(14, 165, 233, 0.07); }
.nav-item.on {
  color: #0369a1;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.16), rgba(34, 211, 238, 0.06));
  box-shadow: inset 2.5px 0 0 #0ea5e9;
  font-weight: 700;
}

.side-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 10px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 13px; color: var(--ink-dim);
}
.side-foot button {
  font-size: 12.5px; color: var(--ink-faint);
  background: none; padding: 6px 10px;
  border-radius: 8px;
}
.side-foot button:hover { color: #b91c1c; background: rgba(239, 68, 68, 0.07); }

.content { flex: 1; min-width: 0; padding: 26px 30px 40px; }
.view-title { font-size: 21px; font-weight: 800; letter-spacing: 1px; margin-bottom: 20px; color: var(--ink); }

/* ---------- 仪表盘 ---------- */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px; margin-bottom: 18px;
}
.stat-card {
  padding: 18px 18px 16px;
  border-radius: var(--radius-s);
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.95);
  outline: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(30, 100, 170, 0.08);
}
.stat-card b { display: block; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }
.stat-card span { font-size: 12.5px; color: var(--ink-faint); letter-spacing: 1px; }
.stat-card.hl { border-color: rgba(14, 165, 233, 0.4); outline-color: rgba(14, 165, 233, 0.3); background: rgba(14, 165, 233, 0.07); }
.stat-card.hl b { color: #0369a1; }

.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel { padding: 20px; margin-bottom: 14px; }
.panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; letter-spacing: 1px; color: var(--ink); }

.chart {
  display: flex; align-items: flex-end; gap: 10px;
  height: 150px; padding-top: 6px;
}
.chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.chart .bar {
  width: 60%; max-width: 34px;
  min-height: 3px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #38bdf8, rgba(14, 165, 233, 0.3));
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.28);
  transition: height 0.4s ease;
}
.chart .bar-n { font-size: 11px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.chart .bar-d { font-size: 10.5px; color: var(--ink-faint); }

/* ---------- 工具栏 / 表格 ---------- */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 16px; margin-bottom: 14px;
}
.input.sm { width: auto; padding: 9px 13px; font-size: 13.5px; }
.input.sm[type="text"], .input.sm:not([type]) { min-width: 150px; }
select.input.sm { min-width: 110px; }

.btn-line.strong {
  color: #fff; font-weight: 800;
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.32);
}
.btn-line.strong:hover { background: linear-gradient(135deg, #4cc3fa, #0384c9); }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-weight: 600; font-size: 12px; letter-spacing: 1px;
  color: var(--ink-faint);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td {
  padding: 12px;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  color: var(--ink);
}
.tbl tr:hover td { background: rgba(14, 165, 233, 0.045); }
.tbl .mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.5px; }
.tbl .dim { color: var(--ink-faint); }
.tbl .ops { display: flex; gap: 6px; }
.tbl .ops button, .tbl .ops a {
  padding: 5px 10px; font-size: 12px;
  color: var(--ink-dim);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
  box-shadow: 0 2px 6px rgba(30, 100, 170, 0.05);
}
.tbl .ops button:hover, .tbl .ops a:hover { color: #0369a1; border-color: rgba(14, 165, 233, 0.45); }
.tbl .ops .danger:hover { color: #b91c1c; border-color: rgba(239, 68, 68, 0.4); }
.secret-mask { letter-spacing: 2px; }

.pager {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 14px 4px 2px;
  font-size: 13px; color: var(--ink-dim);
}
.pager button {
  padding: 7px 14px; font-size: 13px;
  color: var(--ink-dim);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(30, 100, 170, 0.05);
}
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.pager button:not(:disabled):hover { color: #0369a1; border-color: rgba(14, 165, 233, 0.45); }

/* ---------- 设置 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.svc-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 弹层内的表单/预览 ---------- */
.adm-form { display: flex; flex-direction: column; gap: 13px; margin-top: 20px; }
.adm-form .field label { margin-bottom: 6px; }
.gen-preview {
  display: flex; flex-direction: column; gap: 8px;
  margin: 18px 0;
  max-height: 240px; overflow-y: auto;
}
.gen-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  font-size: 13.5px;
  background: #f5faff;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}
.gen-item span { color: var(--ink-faint); }
.gen-item b { color: var(--ink); }
.gen-more { text-align: center; font-size: 12px; color: var(--ink-faint); }
.qr-preview {
  display: flex; justify-content: center;
  margin: 18px 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}
.qr-preview img { width: 210px; height: 210px; display: block; }
.qr-tip { margin-top: 14px; text-align: center; font-size: 12px; color: var(--ink-faint); line-height: 1.8; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .app { flex-direction: column; }
  .side {
    width: 100%; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 8px;
    padding: 10px 14px;
    border-right: 0; border-bottom: 1px solid var(--line-soft);
  }
  .side-brand { padding: 0 8px 0 0; }
  .side-brand span { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; }
  .nav-item { padding: 8px 12px; white-space: nowrap; }
  .side-foot { border-top: 0; padding: 0 0 0 8px; }
  .panel-row { grid-template-columns: 1fr; }
  .content { padding: 20px 16px 40px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
}
