/* ===== 全局 ===== */
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }

/* 启动加载 */
.booting {
  height: 100%; display: flex; flex-direction: column; gap: 16px;
  align-items: center; justify-content: center; color: #5a6b8c; background: #f3f6fc; font-size: 14px;
}
.boot-spin {
  width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid #d8e4ff; border-top-color: #2b7cff; animation: bootspin 0.8s linear infinite;
}
@keyframes bootspin { to { transform: rotate(360deg); } }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background: #eef2f8;
  color: #303133;
  font-size: 13px;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c6cede; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== 布局 ===== */
.layout { display: flex; height: 100%; }
.sidebar {
  width: 216px; flex-shrink: 0; display: flex; flex-direction: column;
  height: 100%; min-height: 0;
  background: linear-gradient(180deg, #0d2454 0%, #0a1b40 100%);
  color: #fff; z-index: 10;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px 11px; border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, #2b7cff, #1fd0b2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; font-weight: 700;
}
.logo-title { font-size: 17px; font-weight: 700; letter-spacing: 1px; }
.logo-sub { font-size: 11px; color: #8ea3cf; margin-top: 2px; }

.menu-groups { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 0 10px; scrollbar-width: thin; }
.menu-group-label {
  padding: 9px 18px 4px; font-size: 11.5px; color: #6f83ad;
  letter-spacing: 1.5px; display: flex; align-items: center; gap: 6px;
}
.menu-item {
  display: flex; align-items: center; gap: 9px;
  margin: 1px 8px; padding: 0 12px; height: 34px; border-radius: 7px;
  color: #b8c6e4; cursor: pointer; font-size: 13px; user-select: none;
  transition: background .18s, color .18s;
}
.menu-item .mi-icon { font-size: 16px; width: 18px; }
.menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu-item.active { background: #2b7cff; color: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(43,124,255,.35); }

.sidebar-foot { padding: 8px 14px; font-size: 10.5px; color: #5d719c; border-top: 1px solid rgba(255,255,255,.08); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 侧边菜单自适应：窗口高度越小时整体压缩，保证菜单完整显示无需滚动 */
@media (max-height: 780px) {
  .logo { padding: 9px 15px 8px; }
  .logo-icon { width: 30px; height: 30px; font-size: 15px; }
  .logo-title { font-size: 15px; }
  .logo-sub { font-size: 10px; }
  .menu-groups { padding: 4px 0 8px; }
  .menu-group-label { padding: 6px 18px 3px; font-size: 11px; }
  .menu-item { height: 30px; font-size: 12.5px; }
  .menu-item .mi-icon { font-size: 15px; }
  .sidebar-foot { padding: 6px 14px; }
}
@media (max-height: 680px) {
  .menu-item { height: 27px; font-size: 12px; }
  .menu-group-label { padding: 4px 18px 2px; }
  .logo-sub { display: none; }
}

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 54px; background: #fff; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; box-shadow: 0 1px 4px rgba(16,42,100,.06); z-index: 5;
}
.topbar-title { font-size: 16px; font-weight: 700; color: #1f2d4e; }
.topbar-right { display: flex; align-items: center; gap: 16px; color: #667; }
.topbar-date { font-size: 12.5px; color: #8492ad; }
.admin-chip { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #445; }

/* 平台管理员进入某驾校后台时的提示条 */
.act-bar {
  flex-shrink: 0; display: flex; align-items: center; gap: 10px;
  padding: 8px 20px; font-size: 13px; color: #9a5b00;
  background: linear-gradient(90deg, #fff6e0, #fffaf0);
  border-bottom: 1px solid #ffe1a8;
}
.act-bar b { color: #c2410c; }
.act-bar .act-bar-icon { display: flex; align-items: center; color: #f59e0b; }
.act-bar .el-button { margin-left: auto; }

.content { flex: 1; overflow-y: auto; padding: 16px; }

/* ===== 通用卡片 ===== */
.card {
  background: #fff; border-radius: 10px; padding: 16px;
  box-shadow: 0 1px 6px rgba(16,42,100,.05); margin-bottom: 16px;
}
.card-title {
  font-size: 15px; font-weight: 700; color: #1f2d4e; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-title .ct-left { display: flex; align-items: center; gap: 8px; }
.card-title .bar { width: 4px; height: 16px; background: #2b7cff; border-radius: 2px; display: inline-block; }

/* ===== 统计卡片 ===== */
.stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 1400px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-card {
  background: #fff; border-radius: 10px; padding: 14px 16px; cursor: pointer;
  box-shadow: 0 1px 6px rgba(16,42,100,.05); border: 1px solid transparent;
  transition: transform .15s, box-shadow .15s; position: relative; overflow: hidden;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(16,42,100,.12); border-color: #d8e4ff; }
.stat-top { display: flex; align-items: center; gap: 8px; color: #7c8aa5; font-size: 12.5px; }
.stat-icon {
  width: 30px; height: 30px; border-radius: 8px; color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-num { font-size: 24px; font-weight: 800; color: #1f2d4e; margin-top: 8px; font-family: "DIN Alternate", Arial; }
.stat-num .unit { font-size: 12px; font-weight: 400; color: #98a5bd; margin-left: 3px; }
.stat-tip { font-size: 11px; color: #a8b3c9; margin-top: 3px; }

/* ===== 表单分区标签（绿/蓝/橙 折角标签） ===== */
.sec-tag {
  display: inline-flex; align-items: center; position: relative;
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 1px;
  padding: 6px 26px 6px 14px; border-radius: 3px 0 0 3px; margin-bottom: 4px;
}
.sec-tag::after {
  content: ""; position: absolute; right: -12px; top: 0;
  border-top: 14px solid transparent; border-bottom: 14px solid transparent;
  border-left: 12px solid; /* color inherited via border-left-color below */
}
.sec-tag.green { background: #35b57c; } .sec-tag.green::after { border-left-color: #35b57c; }
.sec-tag.blue { background: #2b7cff; } .sec-tag.blue::after { border-left-color: #2b7cff; }
.sec-tag.orange { background: #f59e0b; } .sec-tag.orange::after { border-left-color: #f59e0b; }
.sec-tag.purple { background: #8b5cf6; } .sec-tag.purple::after { border-left-color: #8b5cf6; }

/* 现场照片 4:3 */
.idc-slot.site-slot { width: 300px; height: 225px; }
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: #2b7cff; }
.sort-asc::after { content: ' ▲'; color: #2b7cff; font-size: 10px; }
.sort-desc::after { content: ' ▼'; color: #2b7cff; font-size: 10px; }
.sec-block { padding: 14px 4px 4px; }

.form-row-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; }
.form-row-grid.four { grid-template-columns: repeat(4, 1fr); }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
@media (max-width: 1300px) { .form-row-grid, .form-row-grid.four { grid-template-columns: repeat(2, 1fr); } .span-3 { grid-column: span 2; } }

.fee-header { display: flex; align-items: center; gap: 26px; font-size: 13px; padding: 8px 0 14px; }
.fee-header b { color: #e6763a; font-size: 15px; margin-left: 4px; }
.fee-header .fh-item { color: #55637e; }
.fee-header .fh-item b.danger { color: #f56c6c; }

.photo-boxes { display: flex; gap: 12px; align-items: flex-start; }
.photo-box {
  width: 82px; height: 106px; border: 1px dashed #c0c9dd; border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #8492ad; cursor: pointer; overflow: hidden; background: #fafcff;
  transition: border-color .15s; flex-shrink: 0;
}
.photo-box:hover { border-color: #2b7cff; color: #2b7cff; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.photo-box .pb-label { font-size: 11px; margin-top: 6px; }
.photo-box .pb-plus { font-size: 22px; line-height: 1; }

/* 学员照片区（录入页） */
.stu-photo-area { width: 110px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.stu-photo-area .spa-label { font-size: 13px; font-weight: 700; color: #1f2d4e; }
.stu-photo-area .photo-box { width: 104px; height: 132px; }
.stu-photo-area .spa-tip { font-size: 11px; color: #35b57c; }

/* 身份证正反面弹窗 */
.idc-tabs { display: flex; gap: 24px; border-bottom: 1px solid #ebeef5; margin-bottom: 22px; }
.idc-tab { padding: 8px 2px; font-size: 15px; cursor: pointer; position: relative; color: #909399; }
.idc-tab.active { color: #2b7cff; font-weight: 600; }
.idc-tab.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: #2b7cff; }
.idc-tab.off { cursor: not-allowed; }
.idc-slots { display: flex; justify-content: center; gap: 60px; padding: 8px 0 18px; }
.idc-slots > div { text-align: center; }
.idc-slot {
  width: 300px; height: 190px; border: 1px dashed #b7c2da; border-radius: 8px;
  position: relative; display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: #f7faff;
}
.idc-slot img { width: 100%; height: 100%; object-fit: contain; background: #eef3fb; }
.idc-label { margin-top: 10px; font-size: 13.5px; color: #4a5878; font-weight: 600; }
.slot-btns { display: flex; gap: 26px; }
.slot-btn {
  width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 1px solid #d5deef;
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: #2b7cff;
  cursor: pointer; box-shadow: 0 2px 8px rgba(43,124,255,.12); transition: transform .12s;
}
.slot-btn:hover { transform: translateY(-2px); border-color: #2b7cff; }
.slot-repick {
  position: absolute; right: 8px; top: 8px; z-index: 3; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px;
}
.idc-corner { position: absolute; width: 18px; height: 18px; border-color: #2b7cff; border-style: solid; border-width: 0; pointer-events: none; }
.idc-corner.tl { left: 6px; top: 6px; border-left-width: 2px; border-top-width: 2px; }
.idc-corner.tr { right: 6px; top: 6px; border-right-width: 2px; border-top-width: 2px; }
.idc-corner.bl { left: 6px; bottom: 6px; border-left-width: 2px; border-bottom-width: 2px; }
.idc-corner.br { right: 6px; bottom: 6px; border-right-width: 2px; border-bottom-width: 2px; }
.cam-box { width: 100%; height: 100%; position: relative; background: #0e1730; display: flex; flex-direction: column; }
.cam-video-wrap { position: relative; flex: 1; min-height: 0; min-width: 0; overflow: hidden; }
.cam-video-wrap video { width: 100%; height: 100%; display: block; object-fit: cover; }
.cam-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cam-res {
  position: absolute; right: 8px; top: 8px; z-index: 2;
  padding: 3px 8px; border-radius: 10px;
  background: rgba(14, 23, 48, .72);
  color: #7ee2a8; font-size: 11px; line-height: 1.2;
  font-family: Consolas, monospace;
  pointer-events: none;
}
.cam-frame-switch {
  position: absolute; left: 8px; top: 8px; z-index: 2;
  padding: 3px 10px 3px 8px; border-radius: 14px;
  background: rgba(14, 23, 48, .72); line-height: 1;
}
.cam-box video { width: 100%; flex: 1; min-height: 0; min-width: 0; object-fit: cover; }
.cam-box .cam-actions { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 6px 4px; background: #0e1730; }
.cam-box .cam-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #ffb3b3; font-size: 13px; padding: 16px; text-align: center; background: #1a2340; pointer-events: none; }

/* 设置中心 */
.opt-group-card { border: 1px solid #e3e8f3; border-radius: 10px; padding: 14px 16px; background: #fbfcff; }
.ogc-title { font-size: 14px; font-weight: 700; color: #1f2d4e; margin-bottom: 10px; }
.ogc-tags { min-height: 34px; margin-bottom: 8px; }
.col-sort-box {
  border: 1px solid #e3e8f3; border-radius: 10px; padding: 14px 18px; background: #fbfcff; min-width: 340px;
}
.csb-title { font-weight: 700; color: #1f2d4e; margin-bottom: 10px; font-size: 13.5px; }
.csb-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; margin-bottom: 4px;
  background: #fff; border: 1px solid #edf0f7; font-size: 13.5px;
}
.csb-item .csb-idx {
  width: 20px; height: 20px; border-radius: 50%; background: #eef4ff; color: #2b7cff; font-size: 11px;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.csb-item .csb-btns { margin-left: auto; display: flex; }

/* ===== 首页布局 ===== */
.dash-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1200px) { .dash-grid { grid-template-columns: 1fr; } }

/* 待办面板（滴答清单风格） */
.todo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.todo-title { font-size: 16px; font-weight: 800; color: #1f2d4e; }
.todo-range { display: flex; align-items: center; gap: 10px; color: #7c8aa5; font-size: 12.5px; }
.todo-range .arrow {
  width: 24px; height: 24px; border-radius: 6px; border: 1px solid #dde5f2; background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; color: #5a6b8c;
}
.todo-range .arrow:hover { border-color: #2b7cff; color: #2b7cff; }
.todo-add {
  color: #2b7cff; cursor: pointer; font-size: 12.5px; display: flex; align-items: center; gap: 4px;
}
.todo-day { margin-top: 14px; }
.todo-day-head {
  display: flex; align-items: baseline; gap: 10px; padding: 6px 2px;
  font-size: 13px; color: #5a6b8c; font-weight: 700;
}
.todo-day-head .t-date { color: #1f2d4e; }
.todo-day-head .t-badge {
  font-size: 11px; background: #2b7cff; color: #fff; border-radius: 8px; padding: 0 8px; font-weight: 400;
}
.todo-day-head .t-badge.gray { background: #c3cdde; }
.todo-item {
  display: flex; align-items: flex-start; gap: 10px; padding: 9px 6px; border-radius: 8px;
  border-bottom: 1px solid #f0f3f9; transition: background .15s;
}
.todo-item:hover { background: #f6f9ff; }
.todo-item .chk {
  width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid #b9c5da; margin-top: 1px;
  flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff;
}
.todo-item .chk.done { background: #2b7cff; border-color: #2b7cff; }
.todo-item .chk.done:hover { background: #e14d4d; border-color: #e14d4d; }
.todo-item .t-content { flex: 1; font-size: 13.5px; color: #2c3a57; line-height: 1.5; }
.todo-item.is-done .t-content { color: #a8b3c9; text-decoration: line-through; }
.todo-students { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.stu-chip {
  font-size: 11.5px; background: #eef4ff; color: #2b7cff; border-radius: 4px; padding: 1.5px 7px; cursor: pointer;
}
.stu-chip:hover { background: #dbe8ff; }
.todo-del { color: #c3cdde; cursor: pointer; opacity: 0; margin-top: 2px; }
.todo-item:hover .todo-del { opacity: 1; }
.todo-del:hover { color: #f56c6c; }
.todo-empty { text-align: center; color: #a8b3c9; padding: 36px 0; font-size: 12.5px; }

/* 饼图卡片 */
.pie-total { font-size: 15px; font-weight: 800; color: #1f2d4e; }
.pie-total .n { color: #35b57c; font-size: 20px; }
.pie-wrap { height: 300px; }

/* 弹层内名单表 */
.name-list { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; }
.name-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid #eef1f8; border-radius: 8px; background: #fafcff;
}
.nr-avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #e8eefb; color: #2b7cff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.nr-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.name-row .nr-avatar {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: #e8eefb; color: #2b7cff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.name-row .nr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.name-row .nr-main { flex: 1; }
.name-row .nr-name { font-weight: 700; color: #24304d; }
.name-row .nr-sub { font-size: 12px; color: #8b98b1; margin-top: 2px; }

/* ===== 状态标签颜色 ===== */
.st-tag { font-weight: 600; }
.st-enrolled { background: #e6f0ff; color: #2b7cff; }
.st-medical { background: #fff4e6; color: #f59e0b; }
.st-preentry { background: #e0f7f5; color: #0fb3a4; }
.st-accepted { background: #f1e9ff; color: #8b5cf6; }
.st-s1 { background: #e6f0ff; color: #2f9bff; }
.st-s2 { background: #e0f7f5; color: #1fd0b2; }
.st-s3 { background: #fff8dc; color: #d9a400; }
.st-s4 { background: #ffe8ef; color: #ff5b8d; }
.st-licensed { background: #e2f6e9; color: #22a45d; }
.st-quit { background: #ffecec; color: #f56c6c; }
.st-other { background: #f0f2f7; color: #9096a3; }

/* 档案页 */
.filter-grid { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.filter-grid .fg { display: flex; align-items: center; gap: 6px; }
.filter-grid .fg > span { color: #64708c; font-size: 12.5px; white-space: nowrap; }
.tabs-count .el-tabs__item { font-size: 13px; }
.money-in { color: #e6763a; font-weight: 700; }
.money-out { color: #f56c6c; }

/* 考试管理批量条 */
.batch-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px;
  background: #eef4ff; border: 1px dashed #b9d2ff; border-radius: 8px; flex-wrap: wrap;
}

/* 收据预览 */
.receipt-paper {
  width: 340px; margin: 0 auto; background: #fff; border: 1px solid #e5e9f2;
  border-radius: 4px; padding: 22px 20px; font-size: 13px; color: #222;
  box-shadow: 0 4px 16px rgba(16,42,100,.1); font-family: "SimSun", "Microsoft YaHei", serif;
}
.receipt-paper .r-title { text-align: center; font-size: 21px; font-weight: 800; letter-spacing: 8px; margin-bottom: 4px; }
.receipt-paper .r-org { text-align: center; font-size: 14px; margin-bottom: 12px; }
.receipt-paper .r-line { border-top: 1px dashed #bbb; margin: 9px 0; }
.receipt-paper .r-row { display: flex; justify-content: space-between; padding: 2.5px 0; }
.receipt-paper .r-row .k { color: #555; }
.receipt-paper .r-amount { font-size: 19px; font-weight: 800; }
.receipt-paper .r-foot { text-align: center; color: #777; font-size: 11px; margin-top: 10px; line-height: 1.7; }

/* 详情描述 */
.el-descriptions { --el-descriptions-item-bordered-label-background: #f6f8fc; }

/* 仪表盘小列表 */
.mini-list .mini-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed #eef1f8; font-size: 12.5px;
}
.mini-list .mini-row:last-child { border-bottom: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* 设置页 */
.setting-form { max-width: 640px; }

/* 提示条 */
.notice-bar {
  display: flex; align-items: center; gap: 8px; background: #e9f8ef; color: #1f9d5c;
  border-radius: 6px; padding: 7px 12px; font-size: 12.5px; flex: 1; margin: 0 14px; min-width: 0;
}
.notice-bar .nb-icon { color: #2bb673; }

/* 顶部工具条（录入页） */
.enroll-topbar { display: flex; align-items: center; }

.el-table { --el-table-header-bg-color: #f6f8fc; --el-table-header-text-color: #5a6b8c; }
.el-table th.el-table__cell { font-weight: 600; }

/* ===== 登录/注册页 ===== */
.auth-page { display: flex; height: 100%; }
.auth-brand {
  width: 52%; position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #0d2a6b 0%, #1345b0 55%, #1a5bd6 100%);
  display: flex; flex-direction: column; padding: 44px 56px;
}
.ab-logo { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.ab-logo-icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.25);
}
.ab-name { font-size: 21px; font-weight: 800; letter-spacing: 1px; }
.ab-sub { font-size: 12px; color: #b9d0f7; margin-top: 1px; }

.ab-slogan { position: relative; z-index: 2; margin-top: 9vh; }
.ab-slogan h1 { font-size: 38px; font-weight: 800; margin: 0 0 14px; letter-spacing: 1px; }
.ab-slogan p { font-size: 16px; color: #b9d0f7; margin: 0 0 34px; }
.ab-points { list-style: none; padding: 0; margin: 0; }
.ab-points li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #dbe8fc; padding: 7px 0; }
.ab-points li .el-icon {
  background: rgba(255,255,255,.18); border-radius: 50%; padding: 3px; font-size: 12px;
}

.ab-deco { position: absolute; inset: 0; pointer-events: none; }
.deco-circle { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.deco-circle.c1 { width: 460px; height: 460px; right: -180px; bottom: -160px; }
.deco-circle.c2 { width: 280px; height: 280px; right: -90px; bottom: -60px; border-color: rgba(255,255,255,.18); }
.deco-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 75%);
}

.auth-panel {
  flex: 1; background: #f3f6fc; display: flex; align-items: center; justify-content: center; padding: 30px;
}
.auth-card {
  width: 420px; max-width: 100%; background: #fff; border-radius: 14px;
  padding: 38px 40px 30px; box-shadow: 0 12px 50px rgba(16,42,100,.1);
}
.ac-title { font-size: 22px; font-weight: 800; color: #1f2d4e; text-align: center; }
.ac-tip { text-align: center; color: #98a5bd; font-size: 13px; margin: 8px 0 24px; }
.auth-card .el-form-item { margin-bottom: 18px; }
.ac-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 14px; font-size: 13px; }
.ac-link { color: #2b7cff; cursor: pointer; }
.ac-link:hover { text-decoration: underline; }
.ac-link.strong { font-weight: 600; }
.ac-foot { text-align: center; color: #8492ad; font-size: 13px; margin-top: 6px; }
.ac-demo { text-align: center; color: #b3bfd4; font-size: 11.5px; margin-top: 16px; }
.ac-two { display: flex; gap: 12px; }
.ac-two .el-form-item { flex: 1; }
@media (max-width: 960px) {
  .auth-brand { display: none; }
  .auth-panel { width: 100%; flex: none; }
}


.link-btn { color: #2b7cff; cursor: pointer; margin-right: 10px; font-size: 12.5px; }
.link-btn.danger { color: #f56c6c; }
.link-btn:hover { text-decoration: underline; }

/* ---------- 宿舍管理 ---------- */
.dorm-summary { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; color: #5d6b85; font-size: 13px; }
.dorm-summary b { color: #1f2d4e; font-size: 15px; }
.dorm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.dorm-room { border: 1px solid #e6ebf5; border-radius: 10px; padding: 10px 12px; background: #fbfcff; }
.dorm-room-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dorm-room-head b { font-size: 14px; color: #1f2d4e; }
.dorm-room-head span { font-size: 11.5px; }
.dorm-room-head .free { color: #22a45d; }
.dorm-room-head .full { color: #f56c6c; }
.dorm-beds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.dorm-bed { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 6px; background: #eef4ff; font-size: 12px; cursor: pointer; transition: box-shadow .12s; }
.dorm-bed:hover { box-shadow: 0 2px 6px rgba(16,42,100,.14); }
.dorm-bed .bed-no { color: #7c8aa5; font-size: 11px; flex-shrink: 0; }
.dorm-bed .bed-main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.dorm-bed .bed-name { color: #a8b3c9; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dorm-bed .bed-status {
  font-size: 10px; line-height: 1.2; color: #7d8ba5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dorm-bed.used { background: #e8f7ef; }
.dorm-bed.used .bed-name { color: #16794a; font-weight: 700; }

/* 首页宿舍床位卡片：一间房一行 */
.dorm-room-list { display: flex; flex-direction: column; gap: 7px; }
.dorm-room-row { display: flex; align-items: center; gap: 10px; }
.dorm-room-label { width: 50px; flex-shrink: 0; font-size: 13px; font-weight: 700; color: #1f2d4e; }
.dorm-room-beds { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.dorm-mini-bed {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 50px; border-radius: 8px; background: #eef4ff; border: 1px solid #dce8ff;
  cursor: pointer; transition: transform .12s, box-shadow .12s;
}
.dorm-mini-bed:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(16,42,100,.14); }
.dorm-mini-bed .mb-bed { font-size: 10px; line-height: 1; color: #a4b2c8; }
.dorm-mini-bed .mb-name {
  max-width: 100%; padding: 0 3px; font-size: 13px; font-weight: 600; color: #8b98b0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dorm-mini-bed .mb-status {
  max-width: 100%; padding: 0 3px; font-size: 10px; line-height: 1.2; color: #7d8ba5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dorm-mini-bed.used { background: #e3f6ec; border-color: #b9e6cd; }
.dorm-mini-bed.used .mb-bed { color: #4a9c72; }
.dorm-mini-bed.used .mb-name { color: #16794a; font-weight: 700; }
.dorm-mini-legend { display: flex; gap: 16px; margin-top: 10px; font-size: 11.5px; color: #8492ad; }
.dorm-mini-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.dorm-mini-legend i.free { background: #eef4ff; border: 1px solid #b9d2f7; }
.dorm-mini-legend i.used { background: #2fa56a; }

/* 宿舍设置：房间编辑行 */
.room-edit-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }

/* 费用管理：多退少补 */
.fee-settle-line {
  display: flex; align-items: center; gap: 2px; padding: 10px 12px;
  border-radius: 8px; background: #f7faff; font-size: 13px; color: #5d6b85;
}
.fee-settle-line b { font-size: 16px; }
