/* ============================================================
 * campus.css — 智慧校园教育蓝主题（客户确认 UI 设计稿）
 * 框架化主题层：所有视觉 token 收敛于此文件。
 * 页面禁写死颜色，一律引用 var(--token)；换主题 = 换文件。
 * 来源：智慧校园客户确认UI/css/style.css（2026-08-23 提炼）
 * ============================================================ */

:root {
  /* ---- 品牌色 ---- */
  --brand: #2d6bc5;              /* 主色（按钮/链接/激活态） */
  --brand-dark: #1a3a6b;         /* 深蓝（标题/数字/渐变起点） */
  --brand-hover: #1a5ab5;        /* 主色 hover */
  --brand-bg: #e8f0ff;           /* 主色浅底（激活菜单/图标底） */
  --brand-bg-hover: #f5f8ff;     /* 主色极浅底（hover 背景） */

  /* ---- 渐变 ---- */
  --grad-topbar: linear-gradient(135deg, #1a3a6b 0%, #2d6bc5 100%);  /* 顶栏 */
  --grad-g1: linear-gradient(135deg, #ff6b35, #f7931e);   /* 统计卡1 橙 */
  --grad-g2: linear-gradient(135deg, #2d6bc5, #1890ff);   /* 统计卡2 蓝 */
  --grad-g3: linear-gradient(135deg, #52c41a, #73d13d);   /* 统计卡3 绿 */
  --grad-g4: linear-gradient(135deg, #722ed1, #9254de);   /* 统计卡4 紫 */

  /* ---- 中性色 ---- */
  --bg-page: #f0f2f5;            /* 页面背景 */
  --bg-card: #ffffff;            /* 卡片背景 */
  --bg-hover: #fafcff;           /* 表格行 hover */
  --bg-th: #fafafa;              /* 表头背景 */
  --border: #f0f0f0;             /* 分隔线 */
  --border-strong: #d9d9d9;      /* 输入框边框 */
  --text-main: #333;             /* 正文 */
  --text-body: #444;             /* 表格正文 */
  --text-sub: #666;              /* 次级文字 */
  --text-muted: #999;            /* 弱化文字 */
  --text-white: #ffffff;

  /* ---- 状态色（tag/通知点） ---- */
  --color-pending: #d48806;  --bg-pending: #fff7e6;   /* 待处理 */
  --color-processing: #1890ff; --bg-processing: #e6f7ff; /* 处理中 */
  --color-done: #52c41a;     --bg-done: #f6ffed;      /* 已完成/正常 */
  --color-cancel: #ff4d4f;   --bg-cancel: #fff1f0;    /* 取消/紧急 */
  --color-urgent: #ff4d4f;
  --color-info: #1890ff;

  /* ---- 按钮色 ---- */
  --btn-primary: #2d6bc5;  --btn-primary-hover: #1a5ab5;
  --btn-success: #52c41a;  --btn-success-hover: #45a818;
  --btn-warning: #faad14;  --btn-warning-hover: #d99a10;
  --btn-danger: #ff4d4f;   --btn-danger-hover: #e04345;
  --btn-default: #ffffff;  --btn-default-text: #555;

  /* ---- 布局尺寸 ---- */
  --top-height: 56px;
  --side-width: 220px;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 10px;
  --shadow-card: 0 1px 4px rgba(0,0,0,0.06);
  --shadow-top: 0 2px 8px rgba(0,0,0,0.15);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.1);

  /* ---- 字体 ---- */
  --font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: var(--font-family);
  background: var(--bg-page);
  color: var(--text-main);
  min-height: 100vh;
  font-size: 14px;
}

a { text-decoration: none; color: inherit; }

/* ═══════════ 顶栏 ═══════════ */
.top-bar {
  background: var(--grad-topbar);
  color: var(--text-white);
  height: var(--top-height);
  display: flex;
  align-items: center;
  padding: 0 24px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  box-shadow: var(--shadow-top);
}
.top-bar .logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-right: 32px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-bar .nav-links { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.top-bar .nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}
.top-bar .nav-links a:hover,
.top-bar .nav-links a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.top-bar .user-info {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  white-space: nowrap;
}
.top-bar .user-info .avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.top-bar .user-info .logout-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.top-bar .user-info .logout-btn:hover { background: rgba(255,255,255,0.3); }
/* 右上角用户下拉菜单（用户中心入口，2026-08-23） */
.top-bar .user-info .user-dropdown {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}
.top-bar .user-info .user-dropdown:hover { background: rgba(255,255,255,0.15); }
.top-bar .user-info .dd-caret { font-size: 10px; opacity: 0.7; }
.top-bar .user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 170px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 6px;
  display: none;
  z-index: 3000;
}
/* hover 展开（2026-08-23 用户定稿：点击→hover，更适合后台操作） */
.top-bar .user-dropdown:hover .user-menu { display: block; }
.top-bar .user-menu::before {  /* hover 衔接区，防移出时闪烁 */
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.top-bar .user-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text-main);
  border-radius: 7px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.top-bar .user-menu a:hover { background: var(--bg-page); color: var(--brand); }
.top-bar .user-menu-sep { height: 1px; background: var(--border); margin: 5px 0; }

/* ═══════════ 左侧分组侧栏 ═══════════ */
.sidebar {
  position: fixed;
  top: var(--top-height);
  left: 0; bottom: 0;
  width: var(--side-width);
  background: var(--bg-card);
  box-shadow: 2px 0 8px rgba(0,0,0,0.06);
  overflow-y: auto;
  z-index: 999;
}
.sidebar .menu-group { padding: 6px 0; border-bottom: 1px solid var(--border); }
.sidebar .menu-group-title {
  padding: 6px 20px;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.sidebar .menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  color: #555;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  cursor: pointer;
}
.sidebar .menu-item:hover {
  background: var(--brand-bg-hover);
  color: var(--brand);
}
.sidebar .menu-item.active {
  background: var(--brand-bg);
  color: var(--brand);
  border-left-color: var(--brand);
  font-weight: 600;
}
.sidebar .menu-item .mi-icon { font-size: 16px; width: 22px; text-align: center; }

/* ═══════════ 主内容区 ═══════════ */
.main-content {
  margin-left: var(--side-width);
  margin-top: var(--top-height);
  padding: 24px;
  min-height: calc(100vh - var(--top-height));
}

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb span { color: var(--text-main); font-weight: 600; }
.breadcrumb a { color: var(--brand, #2d6bc5); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ═══════════ 页面标题 ═══════════ */
.page-header {
  background: var(--bg-card);
  padding: 20px 24px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.page-header h2 { font-size: 18px; color: var(--brand-dark); display: flex; align-items: center; gap: 10px; }
.page-header h2 .ph-icon { color: var(--brand); }
.page-header .page-actions { display: flex; gap: 10px; }

/* ═══════════ 统计卡片（顶部 4 卡） ═══════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
}
.stat-card .stat-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  flex-shrink: 0;
}
.stat-card .stat-info .stat-num { font-size: 26px; font-weight: 700; color: var(--brand-dark); line-height: 1.2; }
.stat-card .stat-info .stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* 迷你统计（报修概览 5 宫格） */
.stats-mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.stats-mini .sm-item { text-align: center; padding: 12px; background: var(--bg-page); border-radius: var(--radius); }
.stats-mini .sm-num { font-size: 28px; font-weight: 700; }
.stats-mini .sm-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 用户统计（系统账号管理） */
.user-stats { display: flex; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.user-stat { flex: 1; text-align: center; padding: 12px; background: var(--bg-page); border-radius: var(--radius); }
.user-stat .us-num { font-size: 26px; font-weight: 700; color: var(--brand-dark); }
.user-stat .us-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ═══════════ 区块卡片 ═══════════ */
.section-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.section-card .section-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.section-card .section-header h3 {
  font-size: 15px;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-card .section-header .sh-sub { font-size: 12px; color: var(--text-muted); }
/* 未读角标徽章（设计稿风格：红色「N 新」） */
.badge-new {
  display: inline-block;
  min-width: 34px;
  padding: 2px 8px;
  border-radius: 10px;
  background: #f5222d;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  margin-left: 8px;
  vertical-align: middle;
}
.section-card .section-body { padding: 0; }

/* 搜索栏 */
.search-bar {
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.search-bar input, .search-bar select {
  height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  background: #fff;
}
.search-bar input:focus, .search-bar select:focus { border-color: var(--brand); }
.search-bar input { width: 200px; }

/* ═══════════ 按钮 ═══════════ */
.btn {
  height: 36px;
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--btn-primary); color: #fff; }
.btn-primary:hover { background: var(--btn-primary-hover); }
.btn-success { background: var(--btn-success); color: #fff; }
.btn-success:hover { background: var(--btn-success-hover); }
.btn-warning { background: var(--btn-warning); color: #fff; }
.btn-warning:hover { background: var(--btn-warning-hover); }
.btn-danger { background: var(--btn-danger); color: #fff; }
.btn-danger:hover { background: var(--btn-danger-hover); }
.btn-default { background: var(--btn-default); color: var(--btn-default-text); border: 1px solid var(--border-strong); }
.btn-default:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
.btn-xs { height: 26px; padding: 0 10px; font-size: 11px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ═══════════ 表格 ═══════════ */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--bg-th);
  padding: 12px 16px;
  text-align: left;
  color: var(--text-sub);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.data-table tr:hover td { background: var(--bg-hover); }
/* 操作列：保持 table-cell 原生布局（display:flex 会让 td 脱离表格列分配——按钮多时列边界/底线错位，2026-09-13 审查） */
.data-table td.ops, .data-table th.ops { white-space: nowrap; }
.data-table td.ops .btn { margin-right: 6px; }
.data-table td.ops .btn:last-child { margin-right: 0; }
.data-table .link { color: var(--brand); font-weight: 600; cursor: pointer; }
.data-table .empty { text-align: center; color: var(--text-muted); padding: 40px 0; }

/* 明细表（采购明细行） */
.detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.detail-table th { background: var(--bg-th); padding: 10px 12px; text-align: left; color: var(--text-sub); font-weight: 600; border: 1px solid var(--border); }
.detail-table td { padding: 8px 12px; border: 1px solid var(--border); color: var(--text-body); }
.detail-table input { width: 100%; border: none; outline: none; font-size: 13px; font-family: inherit; background: transparent; }
.detail-table .del-row { cursor: pointer; color: var(--text-muted); text-align: center; }
.detail-table .del-row:hover { color: var(--btn-danger); }

/* ═══════════ 状态标签 ═══════════ */
.tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
/* 菜单分组小标签（简洁列表形态，2026-08-23） */
.tag-light {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--brand-dark);
  background: var(--brand-bg);
  vertical-align: 2px;
}
.tag-pending { background: var(--bg-pending); color: var(--color-pending); }
.tag-processing { background: var(--bg-processing); color: var(--color-processing); }
.tag-done { background: var(--bg-done); color: var(--color-done); }
.tag-normal { background: var(--bg-done); color: var(--color-done); }
.tag-cancel { background: var(--bg-cancel); color: var(--color-cancel); }
.tag-urgent { background: var(--bg-cancel); color: var(--color-cancel); }
.tag-info { background: var(--bg-processing); color: var(--color-info); }

/* 角色标签 */
.role-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.role-tag {
  padding: 4px 14px;
  background: var(--brand-bg);
  color: var(--brand);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

/* ═══════════ 表单 ═══════════ */
.form-section { padding: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-body); margin-bottom: 6px; }
.form-group label .required { color: var(--color-cancel); margin-left: 2px; }
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 500px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.form-group textarea { height: 100px; padding: 10px 12px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(45,107,197,0.1);
}
.form-group input[readonly] { background: var(--bg-page); color: var(--text-muted); cursor: not-allowed; }
/* 菜单管理分组标题行（2026-08-23 架构师审查：列表分区层级 + 折叠） */
.group-row td { background: var(--bg-page); font-size: 13px; font-weight: 600; color: var(--brand-dark); padding: 8px 12px; }
.group-row { cursor: pointer; user-select: none; }
.group-row:hover td { background: var(--brand-bg); }
.fold-arrow { display: inline-block; width: 18px; color: var(--text-muted); font-size: 12px; }
/* 菜单名称 + 路径副行（精简 4 列布局，2026-08-23） */
.menu-name { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.menu-path { font-size: 11px; color: var(--text-muted); margin: 2px 0 0 22px; }
/* 菜单管理行内排序/开关（FastAdmin 风格，2026-08-23） */
.sort-input { width: 60px; height: 28px; border: 1px solid var(--border-strong); border-radius: 6px; text-align: center; font-size: 13px; outline: none; box-sizing: border-box; }
.sort-input:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(45,107,197,0.1); }
.switch { position: relative; display: inline-block; width: 40px; height: 20px; vertical-align: middle; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; background: #ccc; border-radius: 10px; transition: 0.2s; cursor: pointer; }
.switch-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .switch-slider { background: var(--brand); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.form-group .field-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* 信息提示条 */
.info-tip {
  background: var(--bg-pending);
  border: 1px solid #ffd591;
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--color-pending);
  display: flex;
  align-items: center;
  gap: 8px;
}
.notice-banner {
  background: var(--bg-pending);
  border: 1px solid #ffd591;
  border-radius: var(--radius);
  padding: 12px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-pending);
}

/* 上传区域 */
.upload-area {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  max-width: 400px;
  transition: all 0.2s;
}
.upload-area:hover { border-color: var(--brand); background: var(--brand-bg-hover); }
.upload-area .upload-icon { font-size: 36px; color: var(--brand); }
.upload-area .upload-text { color: var(--text-muted); font-size: 13px; margin-top: 8px; }

/* ═══════════ 分页 ═══════════ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.pagination span, .pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  text-decoration: none;
  color: #555;
  background: #fff;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; cursor: default; }
.pagination .total { border: none; font-size: 12px; color: var(--text-muted); margin-left: 12px; cursor: default; }

/* ═══════════ 消息列表 ═══════════ */
.msg-list { padding: 0 24px; }
.msg-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  align-items: flex-start;
}
.msg-item:hover { background: var(--bg-hover); }
.msg-item.unread { background: var(--brand-bg-hover); }
.msg-item .msg-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--brand);
  flex-shrink: 0;
}
.msg-item .msg-body { flex: 1; min-width: 0; }
.msg-item .msg-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.msg-item .msg-preview { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.msg-item .msg-time { font-size: 12px; color: #bbb; white-space: nowrap; display: flex; align-items: center; gap: 6px; }

/* ═══════════ 通知列表（首页） ═══════════ */
.notice-list { padding: 12px 24px; }
.notice-item { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.notice-item .dot { color: var(--color-cancel); font-size: 12px; }
.notice-item .ni-time { color: var(--text-muted); font-size: 12px; margin-left: auto; white-space: nowrap; }

/* ═══════════ 首页快捷功能 8 宫格 ═══════════ */
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 20px 24px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 12px; border-radius: var(--radius-lg); cursor: pointer;
  border: 1px solid var(--border); transition: all 0.3s; text-decoration: none; color: inherit;
}
.quick-action:hover { background: var(--brand-bg-hover); border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(45,107,197,0.1); }
.quick-action .qa-icon { font-size: 32px; }
.quick-action .qa-label { font-size: 13px; font-weight: 600; color: var(--text-main); }

/* 首页两栏网格 */
.dashboard-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.chart-area { padding: 20px 24px; }
.chart-placeholder { background: var(--bg-page); border-radius: var(--radius); min-height: 200px; display: flex; align-items: center; justify-content: center; color: #bbb; font-size: 14px; }

/* 统计卡链接（点击跳转对应页面） */
.stat-card.stat-link { text-decoration: none; transition: all 0.2s; }
.stat-card.stat-link:hover { box-shadow: 0 4px 16px rgba(45,107,197,0.15); transform: translateY(-2px); }

/* 简易柱状图（趋势，canvas 自绘；保留容器样式） */
.mini-bars { display: flex; align-items: flex-end; gap: 14px; min-height: 200px; padding: 20px 24px; }
.mini-bars .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.mini-bars .bar { width: 60%; max-width: 42px; border-radius: 6px 6px 0 0; background: var(--grad-g2); min-height: 4px; transition: height 0.4s; }
.mini-bars .bar-val { font-size: 12px; color: var(--text-sub); font-weight: 600; }
.mini-bars .bar-label { font-size: 12px; color: var(--text-muted); }

/* ═══════════ 待办事项（首页） ═══════════ */
.todo-list { padding: 12px 24px; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.todo-item .todo-dot { font-size: 10px; }
.todo-item .todo-title { flex: 1; color: var(--text-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo-item .todo-time { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.todo-item .todo-ops { display: flex; gap: 6px; }

/* ═══════════ 审批时间线 ═══════════ */
.timeline { padding: 20px 24px; }
.timeline-item { display: flex; gap: 16px; padding-bottom: 24px; position: relative; }
.timeline-item::before {
  content: ''; position: absolute; left: 15px; top: 32px; bottom: 0;
  width: 2px; background: var(--border-strong);
}
.timeline-item:last-child::before { display: none; }
.timeline-item .tl-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: #fff; flex-shrink: 0;
}
.timeline-item .tl-content { flex: 1; }
.timeline-item .tl-content .tl-title { font-size: 14px; font-weight: 600; color: var(--text-main); }
.timeline-item .tl-content .tl-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.tl-dot-done { background: var(--color-done); }
.tl-dot-current { background: var(--color-info); }
.tl-dot-wait { background: var(--border-strong); }

/* 进度步骤（报修详情） */
.progress-detail { padding: 16px 24px; }
.progress-step { display: flex; gap: 16px; padding: 14px 0; position: relative; }
.progress-step::after { content: ''; position: absolute; left: 19px; top: 44px; bottom: -14px; width: 2px; background: var(--border-strong); }
.progress-step:last-child::after { display: none; }
.progress-step .ps-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; color: #fff; }
.ps-done .ps-icon { background: var(--color-done); }
.ps-current .ps-icon { background: var(--color-info); }
.ps-wait .ps-icon { background: var(--border-strong); }
.progress-step .ps-info { flex: 1; }
.progress-step .ps-title { font-weight: 600; font-size: 14px; color: var(--text-main); }
.progress-step .ps-time { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.progress-step .ps-desc { font-size: 12px; color: var(--text-sub); margin-top: 4px; }

/* Tab 空态（模块结构就绪、后端未接入时的统一占位，2026-09-12） */
.tab-empty { padding: 56px 24px; text-align: center; }
.tab-empty .tab-empty-icon { font-size: 40px; line-height: 1; margin-bottom: 12px; opacity: .75; }
.tab-empty .tab-empty-title { font-size: 15px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.tab-empty .tab-empty-hint { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

/* ═══════════ 活动卡片网格 ═══════════ */
.activity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 16px 24px; }
.activity-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.activity-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.activity-card .card-img {
  height: 120px;
  background: var(--grad-g2);
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  color: rgba(255,255,255,0.6);
}
.activity-card .card-body { padding: 16px; flex: 1; }
.activity-card .card-title { font-size: 15px; font-weight: 600; color: var(--brand-dark); margin-bottom: 8px; }
.activity-card .card-meta { font-size: 12px; color: var(--text-muted); line-height: 1.8; }
.activity-card .card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ═══════════ 弹窗 ═══════════ */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 640px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-sm { width: 480px; }
.modal-lg { width: 900px; }
.modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-header h3 { font-size: 16px; color: var(--brand-dark); }
.modal-close {
  width: 28px; height: 28px;
  border-radius: 4px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover { background: var(--bg-page); color: var(--text-main); }
.modal-body { padding: 24px; max-height: 60vh; overflow-y: auto; }
.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ═══════════ Tabs ═══════════ */
.tabs { display: flex; border-bottom: 2px solid var(--border); padding: 0 24px; }
.tabs .tab {
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.tabs .tab:hover { color: var(--brand); }
.tabs .tab.active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

/* ═══════════ 进度条 ═══════════ */
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.progress-bar .progress-fill { height: 100%; border-radius: 4px; background: var(--grad-g3); transition: width 0.5s; }

/* ═══════════ 排名/排行榜 ═══════════ */
.rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; }
.rank-1 { background: linear-gradient(135deg, #ff6b35, #f7931e); }
.rank-2 { background: linear-gradient(135deg, #8b9cb0, #6c7b8d); }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #b8722b); }

/* ═══════════ 登录页 ═══════════ */
.login-body { background: var(--grad-topbar); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  width: 420px;
  padding: 40px 36px;
}
.login-card .login-logo { font-size: 28px; text-align: center; margin-bottom: 8px; }
.login-card .login-title { font-size: 20px; font-weight: 700; color: var(--brand-dark); text-align: center; margin-bottom: 6px; }
.login-card .login-sub { font-size: 13px; color: var(--text-muted); text-align: center; margin-bottom: 28px; }
.login-card .form-group label { font-weight: 500; }
.login-card .login-btn { width: 100%; height: 42px; font-size: 15px; margin-top: 8px; }
.login-card .captcha-row { display: flex; gap: 10px; align-items: flex-start; }
.login-card .captcha-row .form-group { flex: 1; }
.login-card .captcha-svg { height: 38px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; background: var(--bg-page); }
.login-card .login-error { background: var(--bg-cancel); color: var(--color-cancel); padding: 8px 12px; border-radius: var(--radius-sm); font-size: 12px; margin-bottom: 12px; display: none; }
.login-card .login-error.show { display: block; }

/* ═══════════ 无权限页 ═══════════ */
.error-body { background: var(--bg-page); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.error-card { text-align: center; }
.error-card .err-code { font-size: 80px; font-weight: 800; color: var(--brand); opacity: 0.15; line-height: 1; }
.error-card .err-title { font-size: 20px; color: var(--brand-dark); margin-top: 8px; }
.error-card .err-desc { font-size: 14px; color: var(--text-muted); margin-top: 8px; margin-bottom: 24px; }

/* ═══════════ 通用工具 ═══════════ */
.text-muted { color: var(--text-muted); }
.text-brand { color: var(--brand); }
.text-danger { color: var(--color-cancel); }
.text-success { color: var(--color-done); }
/* 表格副文本（如报修描述小字） */
.sub-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flex { display: flex; align-items: center; gap: 8px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mb-16 { margin-bottom: 16px; }
.amount-summary { font-size: 14px; font-weight: 600; color: var(--brand-dark); padding: 12px 0; }

/* ═══════════ 进度条（教研课题，2026-08-23 设计稿） ═══════════ */
.progress-track {
  display: inline-block;
  width: 90px;
  height: 8px;
  border-radius: 4px;
  background: #f0f2f5;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 6px;
}
.progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), #7fb3ff);
  transition: width 0.3s;
}

/* ═══════════ 角色权限面板（2026-08-23 对齐设计稿 module6） ═══════════ */
/* 双栏滚动收敛：外层 modal 由 .modal-perm 关掉中层滚动，滚动只发生在 role-list / perm-detail 内层，避免双滚动条 */
.modal-perm .modal-body { max-height: none; overflow: visible; }
.perm-panel { display: grid; grid-template-columns: 220px 1fr; min-height: 420px; }
.perm-panel .role-list { border-right: 1px solid var(--border); padding: 12px 0; max-height: 460px; overflow-y: auto; }
.perm-panel .role-item {
  padding: 10px 16px; cursor: pointer; display: flex; align-items: center; gap: 8px;
  border-left: 3px solid transparent; font-size: 14px; color: #555;
}
.perm-panel .role-item:hover { background: #f5f8ff; }
.perm-panel .role-item.active { background: #e8f0ff; color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.perm-panel .role-item .count { margin-left: auto; font-size: 11px; color: #999; background: #f0f0f0; padding: 2px 8px; border-radius: 10px; }
.perm-panel .perm-detail { padding: 16px 24px; max-height: 460px; overflow-y: auto; }
.perm-section { margin-bottom: 18px; }
.perm-section h4 {
  font-size: 14px; color: var(--brand-dark, #1a3a6b); margin: 0 0 10px;
  padding-bottom: 8px; border-bottom: 1px solid #f5f5f5; display: flex; align-items: center; gap: 6px;
}
.perm-section h4 input[type="checkbox"] { accent-color: var(--brand); width: 15px; height: 15px; margin: 0; cursor: pointer; }
.perm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.perm-item { font-size: 13px; padding: 6px 0; display: flex; align-items: center; gap: 6px; }
.perm-item input[type="checkbox"] { accent-color: var(--brand); width: 15px; height: 15px; }
/* 权限继承：提示条 + 继承项灰显 + 来源小标 */
.perm-inherit-tip { font-size: 12px; color: var(--color-info); background: var(--bg-processing); border-radius: 6px; padding: 8px 12px; margin-bottom: 14px; }
.perm-inherited { color: #bbb; }
.perm-inherited input[type="checkbox"] { opacity: 0.55; }
.perm-inherit-mark { font-size: 10px; color: var(--color-info); background: var(--bg-processing); padding: 1px 6px; border-radius: 8px; }
.tag-inherit { background: var(--bg-processing); color: var(--color-info); font-size: 11px; padding: 1px 8px; border-radius: 10px; margin-left: 4px; font-weight: normal; }

/* ═══════════ 卡片网格（V3 2026-09-12：教研成果展示 / 工会风采共用） ═══════════ */
.rsch-card-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; padding:16px 24px; }
@media (max-width: 1200px) { .rsch-card-grid { grid-template-columns:repeat(2,1fr); } }
.rsch-card { border:1px solid var(--border); border-radius:10px; overflow:hidden; transition:box-shadow .3s; background:#fff; }
.rsch-card:hover { box-shadow:0 4px 16px rgba(0,0,0,.1); }
.rsch-card-img { height:110px; display:flex; align-items:center; justify-content:center; font-size:38px; color:rgba(255,255,255,.75); }
.rsch-card-body { padding:12px 14px; }
.rsch-card-title { font-size:14px; font-weight:600; color:var(--text-title); margin-bottom:6px; line-height:1.5; }
.rsch-card-meta { font-size:11px; color:var(--text-muted); line-height:1.8; }
.rsch-card-footer { padding:0 14px 12px; display:flex; gap:8px; align-items:center; }
