/* ============================================================
 * 启贤云教务 · 培训机构管理系统 全局样式（浅色主题）
 * ============================================================ */
:root {
  /* v1.5.24：--brand-color 由 JS 动态注入（默认 #4f6ef7），用户改品牌主色后整个系统主色即时变更 */
  --brand-color: #4f6ef7;
  --brand: var(--brand-color);
  --brand-dark: #3d56d9;
  --brand-light: #eef1fe;
  --sidebar-bg: #ffffff;
  --sidebar-active: #4f6ef7;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #1f2937;
  --text-2: #6b7280;
  --border: #e5e9f2;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #ef4444;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 登录页 ---------- */
.login-wrap {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eef2ff 0%, #fdf2f8 55%, #ecfeff 100%);
  position: relative;
  overflow: hidden;
}
.login-wrap::before, .login-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
}
.login-wrap::before { width: 420px; height: 420px; background: #c7d2fe; top: -120px; left: -100px; }
.login-wrap::after { width: 380px; height: 380px; background: #fbcfe8; bottom: -120px; right: -80px; }
.login-card {
  position: relative; z-index: 2;
  width: 420px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(80, 90, 160, .18);
  padding: 40px 38px 34px;
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.login-logo {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, #4f6ef7, #8b5cf6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 24px; font-weight: 800; flex-shrink: 0;
}
.login-title { font-size: 22px; font-weight: 700; color: #1f2937; margin: 0; }
.login-sub { font-size: 13px; color: #9ca3af; margin: 2px 0 24px; }
.login-tip {
  margin-top: 14px; padding: 10px 12px; border-radius: 8px;
  background: #f0f4ff; color: #4f6ef7; font-size: 12px; line-height: 1.7;
  border: 1px dashed #b9c8fd;
}
.login-tip b { color: #3d56d9; }
.login-dev {
  margin-top: 12px; text-align: center;
  font-size: 11.5px; color: #a0a8bd; letter-spacing: .5px;
}

/* ---------- 主布局 ---------- */
.layout { display: flex; height: 100vh; overflow: hidden; }
.sidebar {
  width: 232px; flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.sidebar-head {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f1f3f9;
}
.sidebar-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, #4f6ef7, #8b5cf6);
  color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-name { font-weight: 700; font-size: 15px; color: #1f2937; line-height: 1.2; }
.sidebar-name small { display: block; font-weight: 400; font-size: 11px; color: #9ca3af; margin-top: 2px; }
.sidebar-menu { flex: 1; overflow-y: auto; padding: 10px 10px 20px; }
.sidebar-foot {
  padding: 10px 14px; border-top: 1px solid #f1f3f9;
  font-size: 10.5px; color: #a0a8bd; text-align: center; line-height: 1.5;
  flex-shrink: 0;
}
.sidebar-menu::-webkit-scrollbar { width: 4px; }
.sidebar-menu::-webkit-scrollbar-thumb { background: #e5e9f2; border-radius: 4px; }
.menu-group { margin-top: 10px; }
.menu-group-title {
  font-size: 11px; color: #a0a8bd; padding: 8px 10px 4px;
  letter-spacing: 1px;
}
.menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin: 2px 0;
  border-radius: 8px; cursor: pointer;
  color: #4b5563; font-size: 13.5px;
  transition: all .15s;
  user-select: none;
}
.menu-item:hover { background: #f3f5fb; color: var(--brand); }
.menu-item.active {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 600;
}
.menu-item .mi-icon { font-size: 16px; width: 20px; text-align: center; }
.menu-item .mi-arrow { margin-left: auto; font-size: 10px; color: #c0c6d4; }
/* v1.6.1 试用申请未处理数红点 */
.menu-item .mi-badge {
  margin-left: 6px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 600;
  border-radius: 9px; padding: 0 5px; line-height: 15px; min-width: 15px;
  text-align: center; display: inline-block; vertical-align: middle;
}
.menu-sub { padding-left: 12px; }

.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 56px; flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 22px; gap: 16px;
}
.topbar-title { font-size: 16px; font-weight: 600; color: #1f2937; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topbar-bell { position: relative; cursor: pointer; font-size: 17px; color: #6b7280; }
.topbar-bell .dot {
  position: absolute; top: -2px; right: -3px;
  width: 8px; height: 8px; background: var(--red); border-radius: 50%;
  border: 1.5px solid #fff;
}
.topbar-user { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #4f6ef7, #8b5cf6);
  color: #fff; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.user-info { line-height: 1.2; }
.user-info .un { font-size: 13px; font-weight: 600; }
.user-info .ur { font-size: 11px; color: #9ca3af; }
.page-content { flex: 1; overflow-y: auto; padding: 20px 22px 40px; }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #eef0f6;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card-title {
  font-size: 15px; font-weight: 600; color: #1f2937;
  margin: 0 0 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.card-title .tip { font-size: 12px; color: #9ca3af; font-weight: 400; }

/* KPI 卡片 */
.kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px;
}
.kpi-card {
  background: #fff; border-radius: 12px; padding: 16px 18px;
  box-shadow: var(--shadow); border: 1px solid #eef0f6;
  position: relative; overflow: hidden;
}
.kpi-card .kpi-label { font-size: 12.5px; color: #8a92a6; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.kpi-card .kpi-value { font-size: 26px; font-weight: 700; color: #1f2937; line-height: 1; }
.kpi-card .kpi-value small { font-size: 13px; font-weight: 400; color: #9ca3af; }
.kpi-card .kpi-trend { font-size: 12px; margin-top: 8px; color: #9ca3af; }
.kpi-card .kpi-trend .up { color: #ef4444; font-weight: 600; }
.kpi-card .kpi-trend .down { color: #16a34a; font-weight: 600; }
.kpi-card .kpi-icon {
  position: absolute; right: 14px; top: 14px;
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.chart-box { width: 100%; height: 300px; }

/* 工具条 */
.toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.toolbar .spacer { flex: 1; }

/* 表格标签 */
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 18px; }
.tag-blue { background: #eef1fe; color: #4f6ef7; }
.tag-green { background: #e7f8ee; color: #16a34a; }
.tag-orange { background: #fef4e6; color: #f59e0b; }
.tag-red { background: #fdecec; color: #ef4444; }
.tag-purple { background: #f2ecfe; color: #8b5cf6; }
.tag-gray { background: #f1f2f6; color: #6b7280; }
.tag-cyan { background: #e6f9fb; color: #06b6d4; }

/* 详情描述 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.detail-item { display: flex; font-size: 13px; line-height: 1.8; }
.detail-item .di-label { color: #8a92a6; width: 92px; flex-shrink: 0; }
.detail-item .di-value { color: #374151; font-weight: 500; }

/* 课表 */
.schedule-board { display: flex; flex-direction: column; gap: 8px; overflow-x: auto; }
.schedule-week { display: grid; grid-template-columns: 64px repeat(7, minmax(110px, 1fr)); gap: 6px; min-width: 900px; }
.schedule-cell-head {
  text-align: center; font-size: 12.5px; color: #4b5563; font-weight: 600;
  padding: 8px 4px; background: #f7f8fc; border-radius: 8px;
}
.schedule-cell-head.today { background: var(--brand-light); color: var(--brand); }
.schedule-time {
  display: flex; align-items: center; justify-content: flex-end;
  font-size: 12px; color: #9ca3af; padding-right: 8px;
}
.schedule-slot { min-height: 66px; background: #fafbfe; border-radius: 8px; border: 1px dashed #e8ebf3; position: relative; }
.schedule-event {
  position: absolute; left: 4px; right: 4px; top: 4px; bottom: 4px;
  border-radius: 7px; padding: 6px 8px; font-size: 12px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center;
  transition: transform .12s, box-shadow .12s;
}
.schedule-event:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79, 110, 247, .18); }
.schedule-event .se-name { font-weight: 600; font-size: 12.5px; }
.schedule-event .se-info { opacity: .85; font-size: 11px; margin-top: 2px; }
.schedule-event.sub { background: #fef4e6; color: #b45309; }
.schedule-event.normal { background: #eef1fe; color: #3d56d9; }
.schedule-event.done { background: #f1f2f6; color: #9ca3af; }

/* 签到卡 */
.sign-card {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px;
  margin-bottom: 12px; background: #fff;
  display: flex; align-items: center; gap: 14px;
}
.sign-card .sc-info { flex: 1; }
.sign-card .sc-name { font-weight: 600; font-size: 14px; }

/* 时间线（跟进记录） */
.timeline { position: relative; padding-left: 22px; }
.timeline::before {
  content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px;
  width: 2px; background: #e8ebf3; border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 18px 8px; }
.tl-item::before {
  content: ''; position: absolute; left: -21px; top: 5px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand); border: 2px solid #fff; box-shadow: 0 0 0 2px #dbe3fd;
}
.tl-item .tl-time { font-size: 12px; color: #9ca3af; }
.tl-item .tl-title { font-weight: 600; font-size: 13.5px; margin: 2px 0; }
.tl-item .tl-content { font-size: 13px; color: #4b5563; }

/* 消息卡片 */
.msg-card {
  display: flex; gap: 12px; padding: 14px; border: 1px solid var(--border);
  border-radius: 10px; margin-bottom: 10px; background: #fff;
}
.msg-card .msg-avatar {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.msg-card .msg-body { flex: 1; min-width: 0; }
.msg-card .msg-title { font-weight: 600; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.msg-card .msg-content { font-size: 13px; color: #4b5563; margin-top: 4px; line-height: 1.6; }
.msg-card .msg-meta { font-size: 12px; color: #9ca3af; margin-top: 6px; }

/* 登录提示 / 空状态 */
.empty-state { text-align: center; padding: 40px 0; color: #9ca3af; font-size: 13px; }
.empty-state .es-icon { font-size: 40px; margin-bottom: 10px; opacity: .5; }

/* 帮助与滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #d7dce8; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* 页面标题 */
.page-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.page-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: #1f2937; }
.page-head p { margin: 4px 0 0; font-size: 12.5px; color: #9ca3af; }

/* 统计小块 */
.stat-mini { display: flex; gap: 10px; flex-wrap: wrap; }
.stat-mini .sm {
  background: #f7f8fc; border-radius: 8px; padding: 8px 14px; font-size: 12.5px; color: #4b5563;
}
.stat-mini .sm b { color: #1f2937; font-size: 14px; margin-right: 4px; }

/* el-table 微调 */
.el-table { --el-table-border-color: #eef0f6; --el-table-header-bg-color: #f7f8fc; border-radius: 8px; }
.el-table th.el-table__cell { font-weight: 600; color: #4b5563; font-size: 13px; }
.el-table .cell { line-height: 1.5; }
.el-dialog { border-radius: 14px; }
.el-dialog__title { font-weight: 600; }
.el-button--primary { --el-button-bg-color: #4f6ef7; --el-button-border-color: #4f6ef7; --el-button-hover-bg-color: #5f7cf8; --el-button-hover-border-color: #5f7cf8; --el-button-active-bg-color: #3d56d9; }
.el-pagination { justify-content: flex-end; margin-top: 12px; }
.el-tabs__item { font-size: 13.5px; }

/* 移动端适配 */
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ---------- v1.5.9 数字对比 / 版面区分增强 ---------- */
/* KPI 主数字：等宽对齐、加大加深，与单位形成大小/深浅对比 */
.kpi-card .kpi-value {
  font-size: 30px; font-weight: 800; color: #111827; line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.6px;
}
.kpi-card .kpi-value small {
  font-size: 12.5px; font-weight: 500; color: #9ca3af;
  margin-left: 2px; letter-spacing: 0; vertical-align: 2px;
}
/* KPI 卡片左侧彩色强调条，形成模块分区 */
.kpi-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px 0 0 4px;
}
.kpi-card:nth-child(4n+1)::before { background: #4f6ef7; }
.kpi-card:nth-child(4n+2)::before { background: #10b981; }
.kpi-card:nth-child(4n+3)::before { background: #8b5cf6; }
.kpi-card:nth-child(4n+4)::before { background: #f59e0b; }
/* 趋势胶囊化，强化涨跌对比（涨=红 / 跌=绿，中国惯例） */
.kpi-card .kpi-trend { font-size: 12px; margin-top: 8px; color: #6b7280; line-height: 1.5; }
.kpi-card .kpi-trend .up, .kpi-card .kpi-trend .down {
  display: inline-block; padding: 1px 7px; border-radius: 8px;
  font-size: 11.5px; font-weight: 700; margin-right: 4px; line-height: 1.4;
}
.kpi-card .kpi-trend .up { color: #dc2626; background: #fef2f2; }
.kpi-card .kpi-trend .down { color: #16a34a; background: #ecfdf5; }
/* KPI 卡片悬浮微抬升 + 图标轻微放大，增强交互层次 */
.kpi-card { transition: box-shadow .2s ease, transform .2s ease; }
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 24, 40, .09); }
.kpi-card .kpi-icon { transition: transform .2s ease; }
.kpi-card:hover .kpi-icon { transform: scale(1.06); }

/* 页头标题与副标题层级区分 */
.page-head { border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.page-head p { color: #7a8299; }
.page-head h2 { font-size: 20px; letter-spacing: .2px; }

/* 表格金额/数字列右对齐更有专业感，弱化表头文字 */
.el-table .cell.num { text-align: right; font-variant-numeric: tabular-nums; letter-spacing: -.2px; }
.el-table th { color: #6b7280; font-weight: 600; }

/* ---------- v1.5.8 快捷入口 / LOGO / 版面美化 ---------- */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.quick-tile {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 8px 12px;
  text-align: center; cursor: pointer; background: #fff; transition: all .18s ease;
}
.quick-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(79, 110, 247, .16); border-color: #c7d2fe; background: #fbfcff; }
.quick-icon {
  width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  box-shadow: 0 4px 10px rgba(31, 41, 55, .10);
}
.quick-label { font-size: 13px; font-weight: 600; color: var(--text); }
.quick-sub { font-size: 11px; color: #9ca3af; margin-top: 2px; }

/* 自定义 LOGO（图片模式） */
.sidebar-logo.logo-img, .login-logo.logo-img { background: none; overflow: hidden; }
.sidebar-logo.logo-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.login-logo.logo-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.login-logo.logo-img, .sidebar-logo.logo-img { border: 1px solid var(--border); }

/* 卡片与按钮美化：悬浮微抬升 */
.card { transition: box-shadow .2s ease, transform .2s ease; }
.card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .08); }
.page-head h2 { background: linear-gradient(135deg, #4f6ef7, #8b5cf6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

@media (max-width: 1200px) { .quick-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
 * 手机响应式适配（v1.5.17 第 2 步：<=768px 抽屉式侧边栏 + 单列布局）
 * ============================================================ */
/* 汉堡按钮（仅手机显示） */
.topbar-hamburger {
  display: none; font-size: 20px; color: #4b5563; cursor: pointer;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: 8px; flex-shrink: 0; user-select: none;
}
.topbar-hamburger:active { background: #f1f3f9; }

@media (max-width: 768px) {
  /* ---------- 布局骨架：侧边栏转抽屉 ---------- */
  .topbar-hamburger { display: flex; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 2001;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: none; width: 246px;
  }
  .sidebar.drawer-open { transform: translateX(0); box-shadow: 0 8px 30px rgba(16,24,40,.25); }
  .sidebar-mask {
    position: fixed; inset: 0; z-index: 2000; background: rgba(15,23,42,.45);
    opacity: 0; pointer-events: none; transition: opacity .22s ease;
  }
  .sidebar-mask.show { opacity: 1; pointer-events: auto; }
  .sidebar-head { position: relative; }
  .sidebar-close {
    position: absolute; right: 10px; top: 12px; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 15px; cursor: pointer; border-radius: 8px;
  }
  .sidebar-close:active { background: #f1f3f9; }

  /* ---------- 顶栏精简 ---------- */
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .topbar-right { gap: 8px; }
  /* 自动刷新开关只留开关本体，隐藏文字说明 */
  .topbar-right > div:first-child > span { display: none; }
  .topbar-user .user-info { display: none; }          /* 只留头像 */
  .topbar-right .el-tag { display: none; }            /* 顶栏倒计时/管理员标签隐藏 */

  /* ---------- 内容区 ---------- */
  .page-content { padding: 12px 10px 30px; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 8px; }
  .page-head h2 { font-size: 18px; }
  .page-head .el-button { margin-left: 0 !important; }
  .card { padding: 13px 12px; border-radius: 10px; }
  .card-title { font-size: 14px; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
  .toolbar { gap: 6px; }
  .toolbar .el-input, .toolbar .el-select { width: 100% !important; }

  /* ---------- 栅格塌缩为单列 ---------- */
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi-card { padding: 12px; }
  .kpi-card .kpi-value { font-size: 19px; }
  .kpi-card .kpi-icon { width: 32px; height: 32px; font-size: 15px; right: 10px; top: 10px; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .detail-grid { grid-template-columns: 1fr; gap: 2px 0; }
  .chart-box { height: 240px; }

  /* ---------- 表格横向滚动兜底 ---------- */
  .card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .el-table { font-size: 12.5px; }

  /* ---------- 弹窗全宽 ---------- */
  .el-dialog { width: 94vw !important; max-width: 94vw; margin: 8vh auto !important; }
  .el-message-box { width: 92vw !important; max-width: 92vw; }
  .el-popover.el-popper { max-width: 92vw; }

  /* ---------- 登录页 ---------- */
  .login-card { width: 92vw; max-width: 92vw; padding: 26px 20px; border-radius: 14px; }
  .login-wrap::before, .login-wrap::after { display: none; }
  .login-title { font-size: 19px; }
  .login-dev { font-size: 10.5px; }

  /* ---------- 消息卡片 ---------- */
  .msg-card { padding: 8px 4px !important; }

  /* ---------- 触控目标加大 ---------- */
  .menu-item { padding: 11px 12px; font-size: 14px; }
  .el-button + .el-button { margin-left: 6px; }
}

/* 超窄屏（<=480px）：KPI 单列、快捷入口两列 */
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar-right > div:first-child { display: none; }   /* 隐藏自动刷新开关 */
  .page-content { padding: 10px 8px 30px; }
}


/* ============================================================
 * v1.5.22 新增：续费闭环弹窗 / 看板超链接 / 跨页筛选提示条
 * ============================================================ */

/* ---------- 续费弹窗 ---------- */
.rn-stu {
  background: #eef1fe; border: 1px solid #dbe2fd; border-radius: 8px;
  padding: 9px 12px; margin-bottom: 14px; font-size: 13px; color: #35405a;
}
.rn-stu b { color: #2b3555; font-size: 14px; margin-right: 8px; }
.rn-stu-sub { color: #6b7391; font-size: 12.5px; }
.rn-hint { font-size: 12px; color: #8a92a6; line-height: 1.6; margin-top: 3px; }
.rn-inline { margin-left: 8px; font-size: 12.5px; color: #6b7391; }
.rn-pay { font-size: 20px; font-weight: 700; color: #4f6ef7; line-height: 1.2; }
.rn-link { color: #4f6ef7; cursor: pointer; text-decoration: underline; }
.rn-comm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; }
.rn-comm-old { color: #8a92a6; text-decoration: line-through; }
.rn-arrow { color: #c0c6d6; }
.rn-comm-new { color: #ef4444; font-weight: 600; }
.rn-comm-new em { font-style: normal; font-weight: 400; color: #8a92a6; margin-left: 2px; }
.rn-comm-pool {
  background: #fef4e6; color: #b45309; border-radius: 5px;
  padding: 1px 8px; font-weight: 600;
}
.rn-steps {
  background: #f7f9fc; border: 1px dashed #d9dfeb; border-radius: 8px;
  padding: 9px 12px; font-size: 12px; color: #6b7391; line-height: 1.7;
}
.rn-steps b { color: #35405a; }

/* ---------- 数据看板：可点击卡片 / 待办项 ---------- */
.kpi-card.clickable { cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.kpi-card.clickable:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(79, 110, 247, .16);
  border-color: #c7d2fe;
}
.kpi-card.clickable:active { transform: translateY(-1px); }
.kpi-enter {
  font-size: 11.5px; color: #c0c6d6; margin-left: 5px;
  opacity: 0; transition: opacity .16s ease;
}
.kpi-card.clickable:hover .kpi-enter, .msg-card.clickable:hover .kpi-enter { opacity: 1; color: #4f6ef7; }
.msg-card.clickable { cursor: pointer; border-radius: 8px; transition: background .16s ease; }
.msg-card.clickable:hover { background: #f5f7fd; }

/* ---------- 跨页筛选提示条（目标页顶部） ---------- */
.route-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: #eef1fe; border: 1px solid #dbe2fd; border-radius: 8px;
  padding: 8px 12px; margin-bottom: 12px; font-size: 12.5px; color: #35405a;
}
.route-bar .rb-tag {
  background: #4f6ef7; color: #fff; border-radius: 5px;
  padding: 1px 8px; font-size: 12px;
}
.route-bar .rb-clear {
  margin-left: auto; color: #6b7391; cursor: pointer;
  border: 1px solid #d9dfeb; border-radius: 5px; padding: 1px 9px; background: #fff;
}
.route-bar .rb-clear:hover { color: #ef4444; border-color: #fecaca; background: #fff7f7; }

/* v1.5.23 新增：家长端二维码角标 + 全局弹窗 */
.pb-badge {
  display: inline-block; margin-left: 4px; padding: 1px 7px; font-size: 11px;
  background: #fff7ed; color: #ea580c; border: 1px solid #fed7aa; border-radius: 9px;
  cursor: pointer; user-select: none;
}
.pb-badge:hover { background: #ffedd5; border-color: #fdba74; }
.pq-stu { text-align: center; margin-bottom: 8px; }
.pq-stu b { font-size: 14px; color: #2b3555; margin-right: 6px; }
.pq-stu-sub { font-size: 12px; color: #8a92a6; }
.pq-card {
  display: inline-block; background: #fff; padding: 12px;
  border: 1px solid #eef0f6; border-radius: 12px;
}
.pq-img { width: 220px; height: 220px; display: block; }
.pq-warn { color: #f59e0b; font-size: 12.5px; margin-top: 8px; }
.pq-link-wrap { margin-top: 14px; }
.pq-link-input { font-family: ui-monospace, Menlo, Consolas, monospace; }
.pq-tip { margin-top: 12px; }

/* v1.5.24 新增：多机构第 1 期（机构信息扩展 + 品牌主色 + ICP） */
.org-preview {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: var(--brand-light);
  border-radius: 10px; margin-bottom: 14px;
  border-left: 3px solid var(--brand-color);
}
.org-preview b { font-size: 14px; color: #2b3555; }
.org-preview .icp { font-size: 11.5px; color: #6b7391; margin-left: auto; }
.brand-swatch {
  display: inline-block; width: 22px; height: 22px; border-radius: 5px;
  border: 1px solid #d9dfeb; vertical-align: middle; margin-right: 6px;
}
