/* ============================================================
   家约医护 · 运营后台原型（蓝白版）
   设计基线：医疗健康蓝白 / 13px 信息密度 / 12px 圆角卡片
   ============================================================ */

:root {
  --brand-900: #082f5e;
  --brand-800: #0b3b72;
  --brand-700: #1a5fb4;
  --brand: #1d6fe0;
  --brand-hover: #165fc9;
  --teal: #38bdf8;
  --teal-soft: #e8f4ff;

  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-alt: #f7fafd;
  --border: #e2eaf3;
  --border-strong: #cfdcea;

  --text: #132033;
  --text-2: #3f5268;
  --muted: #64748b;
  --muted-2: #94a3b8;

  --success: #0e9f6e;
  --success-soft: #e7f7f1;
  --warn: #b45309;
  --warn-soft: #fdf4e6;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --info: #2f7ed8;
  --info-soft: #eaf3fd;
  --violet: #6366f1;
  --violet-soft: #eef0fe;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(19, 32, 51, 0.05);
  --shadow-2: 0 6px 24px rgba(19, 32, 51, 0.08);
  --shadow-3: -10px 0 40px rgba(19, 32, 51, 0.14);
  --sidebar-w: 232px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
.num { font-variant-numeric: tabular-nums; }

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

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #0b3b72 0%, #082f5e 100%);
  color: #d3e2f1;
  overflow: hidden;
}
.sidebar::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  right: -120px; top: 120px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  pointer-events: none;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 14px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #1d6fe0);
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
  flex: 0 0 34px;
}
.brand-name { color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.5px; }
.brand-sub { font-size: 11px; color: #8fa6c0; letter-spacing: 1px; }

.tenant-chip {
  margin: 0 14px 14px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  cursor: pointer;
}
.tenant-chip:hover { background: rgba(255, 255, 255, 0.11); }
.tenant-chip .t-name { color: #eef6fd; font-size: 12.5px; font-weight: 500; }
.tenant-chip .t-code { color: #8fa6c0; font-size: 10.5px; letter-spacing: 0.5px; }

.nav { flex: 1; overflow-y: auto; padding: 4px 10px 16px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 2px; }

.nav-group { padding: 14px 8px 6px; font-size: 10.5px; letter-spacing: 1.4px; color: #7b93ad; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 38px; padding: 0 10px; margin-bottom: 2px;
  border-radius: 8px;
  color: #c6d7e8; font-size: 13px;
  position: relative;
  transition: background 0.15s, color 0.15s;
}
.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-item.active {
  background: rgba(56, 189, 248, 0.16);
  color: #fff;
  font-weight: 500;
}
.nav-item.active::before {
  content: "";
  position: absolute; left: -10px; top: 9px; bottom: 9px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--teal);
}
.nav-item .ic { width: 16px; height: 16px; flex: 0 0 16px; opacity: 0.9; }
.nav-badge {
  margin-left: auto;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff; font-size: 10.5px;
  display: grid; place-items: center;
}
.nav-item.active .nav-badge { background: rgba(56, 189, 248, 0.9); }

.sidebar-foot {
  padding: 12px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px; color: #7b93ad;
  display: flex; align-items: center; gap: 6px;
}
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(56, 189, 248,.18); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 56px; flex: 0 0 56px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 22px;
  position: sticky; top: 0; z-index: 30;
}
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.crumb .sep { color: var(--muted-2); }
.crumb .cur { color: var(--text); font-weight: 500; }

.topbar-spacer { flex: 1; }
.proto-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 9px; border-radius: var(--radius-pill);
  background: var(--teal-soft); color: #1a5fb4;
  font-size: 11px; font-weight: 500;
  white-space: nowrap; flex: 0 0 auto;
}
.top-search {
  width: 220px; flex: 0 1 220px; min-width: 140px; height: 32px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
}
.top-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 12.5px; }
.icon-btn {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-2); background: transparent; border: 0; cursor: pointer;
  position: relative;
}
.icon-btn:hover { background: var(--surface-alt); }
.icon-btn .badge-dot {
  position: absolute; top: 6px; right: 7px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--danger); border: 1.5px solid #fff;
}
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding-left: 6px; flex: 0 0 auto; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #1d6fe0, #38bdf8);
  color: #fff; font-size: 12px; font-weight: 600;
  display: grid; place-items: center;
}
.user-chip .u-name { font-size: 12.5px; font-weight: 500; }
.user-chip .u-role { font-size: 10.5px; color: var(--muted); }

.content { padding: 20px 22px 40px; flex: 1; }

/* ---------- 页头 ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.page-title { font-size: 19px; font-weight: 600; letter-spacing: 0.2px; }
.page-desc { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.page-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.card-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 14px; font-weight: 600; }
.card-sub { font-size: 11.5px; color: var(--muted); }
.card-hd .spacer { flex: 1; }
.card-bd { padding: 16px; }
.card-bd.tight { padding: 0; }

.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.g-detail { grid-template-columns: minmax(0, 1fr) 332px; align-items: start; }

/* ---------- KPI ---------- */
.kpi { padding: 14px 16px 13px; position: relative; overflow: hidden; }
.kpi-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: 24px; font-weight: 600; letter-spacing: -0.3px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-unit { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.kpi-foot { margin-top: 6px; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.trend-up { color: var(--success); font-weight: 500; }
.trend-down { color: var(--danger); font-weight: 500; }
.kpi .kpi-ic {
  position: absolute; right: 12px; top: 12px;
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--info-soft); color: var(--brand);
}
.kpi.accent .kpi-ic { background: var(--teal-soft); color: #2f8ef5; }
.kpi.warn .kpi-ic { background: var(--warn-soft); color: var(--warn); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; padding: 0 13px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #fff; color: var(--text-2);
  font-size: 12.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: all 0.15s;
}
.btn:hover { border-color: #b9c8d6; background: #fbfdff; }
.btn-primary {
  background: var(--brand); border-color: var(--brand); color: #fff;
  box-shadow: 0 1px 2px rgba(29, 111, 224, 0.25);
}
.btn-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.btn-teal { background: #2f8ef5; border-color: #2f8ef5; color: #fff; }
.btn-teal:hover { background: #1a72d8; border-color: #1a72d8; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); }
.btn-ghost:hover { background: var(--info-soft); }
.btn-danger { color: var(--danger); border-color: #f0c9c7; background: #fff; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { height: 27px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.btn-lg { height: 38px; padding: 0 18px; font-size: 13.5px; border-radius: 9px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-size: 12px; color: var(--text-2); font-weight: 500; }
.label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  height: 34px; padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: 8px; background: #fff;
  outline: none; font-size: 13px;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.textarea { height: auto; padding: 9px 10px; resize: vertical; min-height: 72px; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.12);
}
.input[readonly] { background: var(--surface-alt); color: var(--muted); }
.hint { font-size: 11.5px; color: var(--muted); }
.hint.warn { color: var(--warn); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7c8f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.form-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row.one { grid-template-columns: 1fr; }
.checkline { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.checkline input { width: 14px; height: 14px; accent-color: var(--brand); }

/* ---------- 标签 / 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 500;
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-blue { background: var(--info-soft); color: #1a5fb4; }
.badge-teal { background: var(--teal-soft); color: #1a5fb4; }
.badge-green { background: var(--success-soft); color: #0b7c56; }
.badge-amber { background: var(--warn-soft); color: #92400e; }
.badge-red { background: var(--danger-soft); color: #b91c1c; }
.badge-gray { background: #f1f5f9; color: #64748b; }
.badge-violet { background: var(--violet-soft); color: #4f46e5; }
.tag {
  display: inline-flex; align-items: center; height: 21px; padding: 0 7px;
  border-radius: 5px; background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-2); font-size: 11.5px;
}
.tag-soft { background: var(--teal-soft); color: #1a5fb4; border-color: #cfe6fb; }

/* ---------- 表格 ---------- */
.table-tools {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.table-tools .spacer { flex: 1; }
.table-wrap { overflow-x: auto; }
table.tb { width: 100%; border-collapse: collapse; }
table.tb th {
  text-align: left; font-weight: 500; font-size: 11.5px; color: var(--muted);
  background: var(--surface-alt);
  padding: 9px 12px; white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
table.tb td {
  padding: 11px 12px; border-bottom: 1px solid #eef4fb;
  vertical-align: middle; white-space: nowrap;
}
table.tb tbody tr:hover td { background: #fbfdff; }
table.tb tbody tr:last-child td { border-bottom: 0; }
table.tb .link { color: var(--brand); font-weight: 500; }
table.tb .sub { display: block; font-size: 11.5px; color: var(--muted); }
.cell-amount { font-variant-numeric: tabular-nums; font-weight: 500; }
.cell-amount .cny { font-size: 11px; color: var(--muted); margin-right: 1px; font-weight: 400; }
.cell-amount.muted { color: var(--muted-2); font-weight: 400; }
.row-actions { display: flex; gap: 2px; align-items: center; }

.pagination {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--muted);
}
.pagination .spacer { flex: 1; }
.page-btn {
  min-width: 28px; height: 28px; padding: 0 8px;
  border: 1px solid var(--border-strong); background: #fff;
  border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; color: var(--text-2); cursor: pointer;
}
.page-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn:hover:not(.active) { background: var(--surface-alt); }

/* ---------- 标签页 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding: 0 16px; }
.tab {
  height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
  border-bottom: 2px solid transparent;
  cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 500; }
.tab .count {
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #eef4fb; color: var(--muted); font-size: 10.5px;
  display: grid; place-items: center;
}
.tab.active .count { background: var(--info-soft); color: var(--brand); }

/* ---------- 时间线 ---------- */
.timeline { padding: 4px 0 0; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 5px; top: 14px; bottom: 0;
  width: 1px; background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 11px; height: 11px; border-radius: 50%; margin-top: 4px; flex: 0 0 11px;
  background: #fff; border: 2px solid var(--border-strong); z-index: 1;
}
.tl-item.done .tl-dot { border-color: var(--teal); background: var(--teal); }
.tl-item.current .tl-dot { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(29, 111, 224,.12); }
.tl-title { font-size: 12.5px; font-weight: 500; }
.tl-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.tl-body { font-size: 11.5px; color: var(--text-2); margin-top: 4px; }

/* ---------- 描述列表 ---------- */
.dl { display: grid; grid-template-columns: 84px 1fr; gap: 9px 12px; font-size: 12.5px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; color: var(--text); }
.dl.two { grid-template-columns: 76px 1fr 76px 1fr; }

/* ---------- 金额条 ---------- */
.money-list { display: flex; flex-direction: column; }
.money-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px dashed #eef3f9; font-size: 12.5px;
}
.money-row:last-child { border-bottom: 0; }
.money-row .lbl { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.money-row .val { font-variant-numeric: tabular-nums; font-weight: 500; }
.money-row.total { border-top: 1px solid var(--border); border-bottom: 0; margin-top: 2px; padding-top: 11px; }
.money-row.total .val { font-size: 16px; font-weight: 600; color: var(--brand-700); }
.money-row .val.neg { color: var(--danger); }
.money-row .val.online { color: var(--brand); }
.money-row .val.offline { color: var(--warn); }

/* ---------- 提示条 ---------- */
.notice-bar {
  display: flex; gap: 9px; align-items: flex-start;
  padding: 10px 12px; border-radius: 9px;
  background: var(--info-soft); color: #16507f;
  font-size: 12px; border: 1px solid #d7e8fa;
}
.notice-bar.teal { background: var(--teal-soft); color: #1a5fb4; border-color: #cfe6fb; }
.notice-bar.warn { background: var(--warn-soft); color: #7c3f06; border-color: #f3e0be; }
.notice-bar .ic { flex: 0 0 15px; margin-top: 1px; }

/* ---------- 抽屉 ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(10, 36, 66, 0.35);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: 470px; max-width: 92vw;
  background: #fff; box-shadow: var(--shadow-3);
  transform: translateX(102%); transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-hd {
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 10px;
}
.drawer-title { font-size: 15px; font-weight: 600; }
.drawer-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.drawer-bd { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-ft {
  padding: 12px 18px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-alt);
}

/* ---------- 分段控件 ---------- */
.segmented { display: inline-flex; padding: 3px; background: #eef4fb; border-radius: 9px; gap: 2px; }
.segmented button {
  height: 27px; padding: 0 12px; border: 0; background: transparent;
  border-radius: 7px; font-size: 12px; color: var(--muted); cursor: pointer;
}
.segmented button.active { background: #fff; color: var(--brand); font-weight: 500; box-shadow: 0 1px 2px rgba(19, 32, 51,.08); }

/* ---------- 图表 ---------- */
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.chart-legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }
.bars { display: flex; align-items: flex-end; gap: 18px; height: 168px; padding: 10px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bar-stack { width: 100%; max-width: 34px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.bar-seg { width: 100%; border-radius: 4px 4px 0 0; }
.bar-seg.bottom { border-radius: 0 0 4px 4px; }
.bar-label { font-size: 10.5px; color: var(--muted-2); }
.bar-val { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- 进度 ---------- */
.progress { height: 6px; border-radius: 3px; background: #eef3f9; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #38bdf8, #1d6fe0); }

/* ---------- 空态 / 提示 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 36px; transform: translate(-50%, 12px);
  background: #0f2237; color: #fff;
  padding: 9px 16px; border-radius: 9px; font-size: 12.5px;
  opacity: 0; pointer-events: none; transition: all 0.2s; z-index: 90;
  box-shadow: 0 8px 24px rgba(10, 36, 66, 0.24);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 登录页 ---------- */
.login-page {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
  background: #fff;
}
.login-brand {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, #0b3b72 0%, #1a5fb4 52%, #1d6fe0 100%);
  color: #fff; padding: 48px 56px; display: flex; flex-direction: column;
}
.login-brand::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  right: -180px; top: -140px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.32), transparent 68%);
}
.login-brand::after {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%;
  left: -160px; bottom: -200px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 70%);
}
.login-brand > * { position: relative; z-index: 1; }
.login-brand .brand-name { font-size: 17px; }
.login-brand .brand-sub { color: #a9c4dd; }
.login-hero { margin-top: auto; margin-bottom: auto; max-width: 430px; }
.login-hero h1 { font-size: 30px; font-weight: 600; line-height: 1.4; letter-spacing: 0.5px; }
.login-hero h1 em { font-style: normal; color: #7cc4ff; }
.login-hero p { margin-top: 14px; font-size: 13.5px; color: #c9dcee; line-height: 1.8; }
.login-points { margin-top: 30px; display: flex; flex-direction: column; gap: 12px; }
.login-point { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: #dcebf8; }
.login-point .ic {
  width: 24px; height: 24px; border-radius: 7px; flex: 0 0 24px;
  background: rgba(255, 255, 255, 0.12);
  display: grid; place-items: center; color: #9ad2ff;
}
.login-foot { font-size: 11.5px; color: #8fa6c0; display: flex; gap: 14px; }

.login-form-wrap { display: grid; place-items: center; padding: 40px; background: #fff; }
.login-form { width: 100%; max-width: 356px; }
.login-form h2 { font-size: 22px; font-weight: 600; }
.login-form .sub { color: var(--muted); font-size: 12.5px; margin-top: 6px; margin-bottom: 26px; }
.captcha-row { display: grid; grid-template-columns: 1fr 104px; gap: 10px; }
.captcha-box {
  height: 34px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, #eef6fd, #e0edfb);
  display: grid; place-items: center;
  font-family: "Courier New", monospace; font-size: 17px; letter-spacing: 4px;
  color: var(--brand-700); font-weight: 700; font-style: italic;
  user-select: none; cursor: pointer;
}
.login-links { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.demo-hint {
  margin-top: 22px; padding: 11px 12px; border-radius: 9px;
  background: var(--surface-alt); border: 1px dashed var(--border-strong);
  font-size: 11.5px; color: var(--muted); line-height: 1.8;
}
.demo-hint b { color: var(--text-2); font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 1320px) {
  .g-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .g-detail { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .top-search { display: none; }
}
@media (max-width: 1020px) {
  .proto-chip { display: none; }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 64px; }
  .brand-name, .brand-sub, .tenant-chip .t-name, .tenant-chip .t-code,
  .nav-item span, .nav-group, .sidebar-foot span, .nav-badge { display: none; }
  .nav-item { justify-content: center; padding: 0; }
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
}


/* ---------- 医疗蓝白主题：浅蓝侧栏 + 白色主界面 ---------- */
.sidebar {
  background: #e1edfa;
  border-right: 1px solid #c9ddf5;
  color: #3f5268;
}
.sidebar::after { display: none; }
.sidebar::-webkit-scrollbar-thumb { background: #c2d8ee; }
.sidebar .brand-name { color: var(--text); }
.sidebar .brand-sub { color: #5c7793; }
.brand-mark { background: linear-gradient(135deg, #46a0ff, #1d6fe0); box-shadow: 0 4px 12px rgba(29, 111, 224, 0.24); }
.tenant-chip { background: #f6faff; border-color: #cfe1f3; }
.tenant-chip:hover { background: #eff7ff; }
.tenant-chip .t-name { color: var(--text); }
.tenant-chip .t-code { color: #5c7793; }
.nav-group { color: #5a7590; }
.nav-item { color: #3f5268; }
.nav-item:hover { background: #d4e6f9; color: #14549e; }
.nav-item.active { background: #c9ddf5; color: #14549e; font-weight: 500; }
.nav-item.active::before { background: var(--brand); }
.nav-item .ic { opacity: 1; }
.nav-badge { background: #cfe1f5; color: #14549e; }
.nav-item.active .nav-badge { background: var(--brand); color: #fff; }
.sidebar-foot { color: #4e6a85; border-top-color: #c9ddf5; }
.sidebar-foot .dot-live { background: var(--success); box-shadow: 0 0 0 3px rgba(14, 159, 110, 0.15); }
.topbar { background: rgba(255, 255, 255, 0.94); }
.card { border-color: #e4ecf6; }
.kpi .kpi-ic { background: #eaf3fd; color: #1d6fe0; }
table.tb th { background: #f7fafd; }
.btn-primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 1px 2px rgba(29, 111, 224, 0.25); }
