/* ============================================================
   assets/base.css —— 独立版公共样式（toast + 后台基础组件）
   与云枢 style.css 无关，只保留校园导视图用到的部分。
   ============================================================ */

/* ---------- 轻提示 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 12px);
  max-width: 82vw;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(24, 28, 38, .92);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s, transform .22s;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast--warn {
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  background: linear-gradient(135deg, #f59a23, #ef6c2b);
  box-shadow: 0 12px 32px rgba(239, 108, 43, .34);
  padding: 14px 18px;
  font-size: 15px;
  max-width: 78vw;
}
.toast--warn.show { transform: translate(-50%, -50%) scale(1); }
.toast__icn { display: inline-flex; flex: 0 0 auto; }

/* ---------- 后台基础组件（原云枢 admin 内联样式的精简版） ---------- */
* { box-sizing: border-box; }
body.admin-body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6fb;
  color: #1f2733;
}
.admin-topbar {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  background: #16304f;
  color: #fff;
}
.admin-topbar h1 { font-size: 16px; font-weight: 600; margin: 0; letter-spacing: .5px; }
.admin-topbar .spacer { flex: 1; }
.admin-topbar a, .admin-topbar button {
  color: #d3e2f8; background: transparent; border: 0; font-size: 13px;
  cursor: pointer; text-decoration: none; padding: 6px 10px; border-radius: 8px;
}
.admin-topbar a:hover, .admin-topbar button:hover { background: rgba(255,255,255,.12); color: #fff; }
.admin-main { padding: 18px 20px 60px; max-width: 1280px; margin: 0 auto; }

.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(31, 39, 51, .06);
}
.admin-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  border: 0;
  background: #2563eb;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; }
.btn.ghost { background: #f1f3f8; color: #4a5262; }
.btn.ghost:hover { background: #e7eaf2; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.ui-input, textarea.ui-input, select.ui-input {
  padding: 8px 11px;
  border: 1px solid #dfe3ec;
  border-radius: 9px;
  font-size: 13px;
  font-family: inherit;
  color: #1f2733;
  background: #fff;
  outline: none;
  max-width: 100%;
}
.ui-input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.14); }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 10px 8px; text-align: left; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
.tbl th { color: #6b7484; font-weight: 600; font-size: 12.5px; background: #fafbfe; }
.tbl tr:hover td { background: #fbfcff; }

/* 登录页 */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  /* 2026-11-11 后台统一蓝色：登录页底色由深紫改深蓝 */
  background: linear-gradient(160deg, #10294a, #1a4b9c 55%, #2563eb);
}
.login-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}
.login-card h2 { margin: 0 0 4px; font-size: 18px; text-align: center; color: #1b2a3d; }
.login-card .sub { margin: 0 0 20px; font-size: 12.5px; color: #8a92a2; text-align: center; }
.login-card label { display: block; font-size: 12.5px; color: #6b7484; margin: 12px 0 6px; }
.login-card .ui-input { width: 100%; }
.login-card .btn { width: 100%; margin-top: 20px; padding: 11px; font-size: 14px; }
.login-err { margin-top: 12px; font-size: 12.5px; color: #c0504d; text-align: center; min-height: 18px; }
