/* ============================================================
 * 树蕙润心驿站 · 管理后台样式
 * 主题：深蓝夜空 #1A1F3B / #232848，点缀月亮黄 #F6D365
 * ============================================================ */
:root {
  --bg-0: #14172B;
  --bg-1: #1A1F3B;
  --bg-2: #232848;
  --card: rgba(43, 51, 85, 0.55);
  --card-solid: #232848;
  --line: rgba(246, 211, 101, 0.12);
  --line-strong: rgba(246, 211, 101, 0.28);
  --gold: #F6D365;
  --gold-soft: rgba(246, 211, 101, 0.16);
  --text: #FFFFFF;
  --text-2: #B8BCE0;
  --text-3: #6E7399;
  --green: #4CAF83;
  --green-soft: rgba(76, 175, 131, 0.16);
  --red: #FF6B6B;
  --red-soft: rgba(255, 107, 107, 0.16);
  --orange: #FFA94D;
  --orange-soft: rgba(255, 169, 77, 0.16);
  --blue: #4D96FF;
  --blue-soft: rgba(77, 150, 255, 0.16);
  --purple: #B983FF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8rpx 30rpx rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, #2A3057 0%, var(--bg-1) 45%, var(--bg-0) 100%);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(246, 211, 101, 0.2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============ 登录页 ============ */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(700px 400px at 15% 10%, rgba(246, 211, 101, 0.08), transparent 60%),
    radial-gradient(600px 400px at 90% 90%, rgba(77, 150, 255, 0.10), transparent 60%),
    linear-gradient(160deg, #1A1F3B 0%, #14172B 100%);
}
.login-card {
  width: 100%; max-width: 880px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 40px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.login-head { text-align: center; margin-bottom: 36px; }
.login-moon { font-size: 40px; }
.login-head h1 { font-size: 26px; margin: 12px 0 6px; letter-spacing: 1px; }
.login-head p { color: var(--text-2); font-size: 13px; }
.login-sub { color: var(--gold); font-size: 13px; margin-top: 10px; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.role-card {
  background: rgba(20, 23, 43, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
}
.role-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.role-card.active { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.role-icon { font-size: 38px; }
.role-card h3 { margin: 12px 0 8px; font-size: 16px; }
.role-card p { color: var(--text-3); font-size: 12px; min-height: 48px; }
.login-tip { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 28px; }

/* ============ 后台布局壳 ============ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; flex-shrink: 0;
  background: linear-gradient(180deg, #161A33 0%, #12152A 100%);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.side-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--line);
}
.side-brand .moon { font-size: 24px; }
.side-brand .t { font-size: 15px; font-weight: 700; line-height: 1.2; }
.side-brand .s { font-size: 11px; color: var(--text-3); }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.nav-group-title {
  font-size: 11px; color: var(--text-3);
  padding: 14px 14px 6px; letter-spacing: 1px;
}
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--text-2); cursor: pointer;
  font-size: 14px; margin-bottom: 4px;
  transition: all 0.18s ease; position: relative;
}
.nav-item .ni-icon { font-size: 17px; width: 20px; text-align: center; }
.nav-item:hover { background: rgba(246, 211, 101, 0.08); color: var(--text); }
.nav-item.active { background: rgba(246, 211, 101, 0.1); color: var(--gold); font-weight: 600; }
.nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 3px; border-radius: 3px; background: var(--gold);
}
.nav-badge {
  margin-left: auto; background: var(--red); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; line-height: 18px;
  text-align: center; border-radius: 9px; padding: 0 5px; font-weight: 700;
}
.side-foot { padding: 14px 16px; border-top: 1px solid var(--line); }
.side-user { display: flex; align-items: center; gap: 10px; }
.side-user .av { width: 34px; height: 34px; border-radius: 50%; background: rgba(246, 211, 101, 0.1); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.side-user .nm { font-size: 13px; }
.side-user .rl { font-size: 11px; color: var(--text-3); }
.side-logout { margin-top: 10px; width: 100%; padding: 8px; border-radius: 8px; background: rgba(255, 107, 107, 0.12); color: var(--red); font-size: 12px; }
.side-logout:hover { background: rgba(255, 107, 107, 0.2); }
.side-password { margin-top: 10px; width: 100%; padding: 8px; border-radius: 8px; background: rgba(246, 211, 101, 0.1); color: var(--gold); font-size: 12px; }
.side-password:hover { background: rgba(246, 211, 101, 0.18); }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 60px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(20, 23, 43, 0.6);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
}
.topbar .title { font-size: 17px; font-weight: 700; }
.topbar .crumb { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.top-pill { font-size: 12px; color: var(--text-2); background: rgba(246, 211, 101, 0.1); padding: 6px 12px; border-radius: 20px; }
.content { padding: 24px 28px 40px; flex: 1; }

/* ============ 通用卡片 ============ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.card-title { font-size: 15px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.card-title .sub { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: auto; }
.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } .sidebar { width: 64px; } .nav-item span, .nav-group-title, .side-brand .t, .side-brand .s, .side-user .nm, .side-user .rl { display: none; } }

/* 统计卡片 */
.stat-card {
  background: linear-gradient(135deg, rgba(43, 51, 85, 0.7), rgba(35, 40, 72, 0.5));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px; position: relative; overflow: hidden;
}
.stat-card .ic { font-size: 26px; opacity: 0.9; }
.stat-card .num { font-size: 30px; font-weight: 800; margin: 6px 0 2px; color: var(--gold); }
.stat-card .lbl { font-size: 12px; color: var(--text-2); }
.stat-card .glow { position: absolute; right: -20px; top: -20px; font-size: 90px; opacity: 0.06; }

/* ============ 表格 ============ */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; padding: 12px 14px; color: var(--text-3);
  font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--line);
  background: rgba(20, 23, 43, 0.5); white-space: nowrap;
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid rgba(246, 211, 101, 0.06); vertical-align: middle; }
.tbl tr:hover td { background: rgba(246, 211, 101, 0.04); }
.tbl .ellipsis { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-cell { display: flex; align-items: center; gap: 8px; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: rgba(246, 211, 101, 0.1); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.nick { font-size: 13px; }
.nick .sub { font-size: 11px; color: var(--text-3); }

/* ============ 徽章 ============ */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-green { background: var(--green-soft); color: var(--green); }
.b-red { background: var(--red-soft); color: var(--red); }
.b-orange { background: var(--orange-soft); color: var(--orange); }
.b-blue { background: var(--blue-soft); color: var(--blue); }
.b-purple { background: rgba(185, 131, 255, 0.16); color: var(--purple); }
.b-gray { background: rgba(110, 115, 153, 0.18); color: var(--text-2); }
.b-gold { background: rgba(246, 211, 101, 0.1); color: var(--gold); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.dot-on { background: var(--green); }
.dot-off { background: var(--text-3); }

/* ============ 按钮 ============ */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 10px; font-size: 13px; transition: all 0.18s ease; border: 1px solid transparent; }
.btn-primary { background: linear-gradient(135deg, var(--gold), #FFE9A8); color: #1A1F3B; font-weight: 700; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: rgba(246, 211, 101, 0.1); color: var(--gold); border-color: var(--line-strong); }
.btn-ghost:hover { background: rgba(246, 211, 101, 0.18); }
.btn-danger { background: rgba(255, 107, 107, 0.14); color: var(--red); }
.btn-danger:hover { background: rgba(255, 107, 107, 0.24); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.link { color: var(--blue); cursor: pointer; font-size: 13px; }
.link:hover { text-decoration: underline; }
.link-danger { color: var(--red); cursor: pointer; font-size: 13px; }
.link-danger:hover { text-decoration: underline; }
.row-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ============ Tabs ============ */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 10px 16px; font-size: 14px; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.18s; }
.tab:hover { color: var(--text-2); }
.tab.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 600; }

/* ============ 工具栏 ============ */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .spacer { flex: 1; }
.input, .select {
  background: rgba(20, 23, 43, 0.7); border: 1px solid var(--line);
  color: var(--text); padding: 8px 12px; border-radius: 10px; font-size: 13px; outline: none;
}
.input:focus, .select:focus { border-color: var(--line-strong); }
.input::placeholder { color: var(--text-3); }

/* ============ Switch ============ */
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { display: none; }
.switch .track { position: absolute; inset: 0; background: rgba(110, 115, 153, 0.4); border-radius: 20px; transition: 0.2s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .track { background: var(--gold); }
.switch input:checked + .track + .knob { transform: translateX(20px); }

/* ============ 弹窗 / 抽屉 ============ */
.mask { position: fixed; inset: 0; background: rgba(10, 12, 24, 0.6); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { width: 100%; max-width: 520px; background: var(--card-solid); border: 1px solid var(--line-strong); border-radius: 18px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,0.5); max-height: 88vh; overflow-y: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 16px; }
.modal-close { font-size: 20px; color: var(--text-3); cursor: pointer; }
.modal-close:hover { color: var(--text); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 92vw; background: var(--card-solid); border-left: 1px solid var(--line-strong); z-index: 101; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,0.4); }
.drawer-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.drawer-body { padding: 22px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* 表单 */
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; }
.form-row .input, .form-row .select { width: 100%; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

/* ============ 对话管理 ============ */
.chat-layout { display: grid; grid-template-columns: 320px 1fr; gap: 18px; height: calc(100vh - 200px); min-height: 480px; }
.chat-list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-y: auto; }
.chat-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(246,211,101,0.06); cursor: pointer; transition: 0.18s; }
.chat-item:hover { background: rgba(246, 211, 101, 0.05); }
.chat-item.active { background: rgba(246, 211, 101, 0.1); }
.chat-item .meta { flex: 1; min-width: 0; }
.chat-item .nm { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.chat-item .last { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.chat-item .time { font-size: 11px; color: var(--text-3); }
.chat-win { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; position: relative; }
.chat-win-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.chat-win-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 72%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.bubble.user { align-self: flex-start; background: rgba(20, 23, 43, 0.8); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.teacher { align-self: flex-end; background: rgba(246, 211, 101, 0.1); border: 1px solid var(--line-strong); border-bottom-right-radius: 4px; }
.bubble .bt { font-size: 11px; opacity: 0.6; margin-top: 4px; }
.chat-win-foot { padding: 14px 18px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.chat-input { flex: 1; }
.voice-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(246, 211, 101, 0.1); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.chat-empty { display: flex; align-items: center; justify-content: center; color: var(--text-3); height: 100%; }
.status-bar { display: flex; gap: 8px; align-items: center; }
.chat-item-right { margin-left: auto; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.chat-item.has-unread .nm { font-weight: 700; color: var(--text); }
.chat-item.has-unread .last { color: var(--text-2); }
.unread-badge { background: var(--red); }

/* 页面顶部右侧实时消息提示 */
.chat-page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 0 2px; }
.cph-left { display: flex; align-items: baseline; gap: 12px; }
.cph-title { font-size: 16px; font-weight: 700; }
.cph-sub { font-size: 12px; color: var(--text-3); }
.cph-right { display: flex; align-items: center; gap: 8px; background: rgba(20, 23, 43, 0.6); border: 1px solid var(--line); padding: 7px 16px; border-radius: 22px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.live-on { background: var(--red); box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.6); animation: livePulse 1.4s infinite; }
.live-off { background: #46d39a; }
.unread-text { font-size: 12px; color: var(--text-2); }
.unread-on { color: #ff9a9a; font-weight: 600; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 107, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

/* 新消息浮标（类微信，滚动到顶部时浮现）*/
.new-msg-pill {
  position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%);
  background: var(--gold); color: #1A1F3B; font-size: 12px; font-weight: 600;
  padding: 6px 16px; border-radius: 20px; cursor: pointer; z-index: 5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35); animation: toastIn 0.2s ease;
}
.new-msg-pill:hover { filter: brightness(1.05); }

/* 未读新消息分隔线 */
.unread-divider { text-align: center; margin: 4px 0 10px; position: relative; }
.unread-divider span {
  font-size: 11px; color: #1A1F3B; background: var(--gold);
  padding: 3px 12px; border-radius: 12px; font-weight: 600;
}

/* ============ 时间线（处置过程）============ */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 18px; }
.tl-item::before { content: ''; position: absolute; left: -19px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.tl-time { font-size: 12px; color: var(--text-3); }
.tl-note { font-size: 13px; margin-top: 2px; }

/* ============ 图表 ============ */
.chart-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.chart-bar-row .cl { width: 84px; font-size: 12px; color: var(--text-2); flex-shrink: 0; text-align: right; }
.chart-bar-track { flex: 1; height: 22px; background: rgba(20, 23, 43, 0.6); border-radius: 6px; overflow: hidden; }
.chart-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold), #FFE9A8); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; font-size: 11px; color: #1A1F3B; font-weight: 700; }
.chart-bar-row .cv { width: 34px; font-size: 12px; color: var(--text-2); flex-shrink: 0; }

.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.donut-legend .li { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-2); }
.donut-legend .sw { width: 12px; height: 12px; border-radius: 3px; }

/* 空状态 */
.empty { text-align: center; color: var(--text-3); padding: 50px 0; font-size: 13px; }
.empty .e-ic { font-size: 40px; opacity: 0.4; display: block; margin-bottom: 10px; }

/* toast */
.toast { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); background: rgba(20,23,43,0.95); border: 1px solid var(--line-strong); color: var(--text); padding: 12px 22px; border-radius: 12px; z-index: 200; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,0.4); animation: toastIn 0.25s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }

.tag-chip { display: inline-block; padding: 2px 9px; border-radius: 20px; font-size: 11px; background: rgba(246, 211, 101, 0.1); color: var(--gold); margin: 2px 4px 2px 0; }
.muted { color: var(--text-3); }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; }
.mb0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .gap8 { gap: 8px; } .gap12 { gap: 12px; }

/* ===== 登录表单（角色 + 账号 + 密码）===== */
.login-form { max-width: 340px; margin: 8px auto 0; }
.login-sub { font-size: 12px; color: var(--text-3); margin-top: 10px; }
.login-err { color: #ff8a8a; font-size: 12px; min-height: 18px; margin: 10px 0 2px; text-align: center; }
.login-btn { width: 100%; padding: 12px; font-size: 15px; letter-spacing: 4px; margin-top: 6px; }
.login-tip { margin-top: 18px; font-size: 11px; color: var(--text-3); text-align: center; line-height: 1.7; }

/* ===== 分页器（默认每页 20 条）===== */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pager-info { font-size: 12px; color: var(--text-3); }
.pg-ctrls { display: flex; align-items: center; gap: 6px; }
.pg-btn, .pg-num { background: rgba(20,23,43,0.6); border: 1px solid var(--line); color: var(--text-2); padding: 6px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; transition: all 0.18s ease; }
.pg-btn:hover:not([disabled]), .pg-num:hover { border-color: var(--gold); color: var(--gold); }
.pg-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.pg-num.active { background: var(--gold); color: #11142a; border-color: var(--gold); font-weight: 700; }
.pg-ell { color: var(--text-3); padding: 0 2px; }

/* ===== 权限管理 ===== */
.perm-role-card { padding: 16px; }
.perm-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 8px; }
.perm-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.perm-check .pcb { accent-color: var(--gold); width: 16px; height: 16px; }
.role-mgr-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.role-mgr-item .row-actions { gap: 16px; }
