/* ============================================================
   一站式学生社区智慧管理平台 - 公共样式
   - 整体色系：蓝色系
   - 页面主底色：#F4F7FB（浅灰蓝）
   - 顶部一级导航底色：#1667DC（平台蓝）
   - 左侧二级导航底色：#FFFFFF（白）
   - 字体：微软雅黑（Microsoft YaHei），全部页面统一
   - 页面不加水印
   ============================================================ */

:root {
  --sc-blue: #1667DC;
  --sc-blue-dark: #1252B4;
  --sc-blue-deep: #0C3E8C;
  --sc-blue-light: #E8F1FE;
  --sc-bg: #F4F7FB;
  --sc-sidebar: #FFFFFF;
  --sc-text: #333333;
  --sc-text-sub: #666666;
  --sc-text-weak: #98A0B0;
  --sc-border: #E4E9F2;
  --sc-green: #37C273;
  --sc-orange: #F5A623;
  --sc-red: #F0524A;
  --sc-cyan: #22B8CF;
  --sc-purple: #8A5CF6;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--sc-text);
  background: var(--sc-bg);
}

/* ---------- 滚动条 ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #C3CCE0; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #A3AFCB; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 通用工具类 ---------- */
.text-blue { color: var(--sc-blue); }
.text-red { color: var(--sc-red); }
.text-sub { color: var(--sc-text-sub); }
.text-weak { color: var(--sc-text-weak); }
.text-center { text-align: center; }
.text-bold { font-weight: bold; }
.flex-row { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ---------- 页面容器与标题 ---------- */
.page { padding: 14px 16px 20px; min-height: 100%; }
.page-title-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.page-title {
  font-size: 17px; font-weight: bold; position: relative; padding-left: 12px;
}
.page-title::before {
  content: ""; position: absolute; left: 0; top: 3px; bottom: 3px;
  width: 4px; border-radius: 2px; background: var(--sc-blue);
}
.page-subtitle { font-size: 12px; color: var(--sc-text-weak); margin-left: 10px; font-weight: normal; }

/* ---------- 卡片 ---------- */
.sc-card {
  background: #FFFFFF; border-radius: 6px;
  box-shadow: 0 1px 4px rgba(23, 58, 112, 0.07);
  padding: 16px;
}
.sc-card + .sc-card { margin-top: 14px; }
/* grid 栅格中的卡片不做兄弟边距，否则会被下推且拉伸不足，导致同行卡片高度不齐 */
.grid-2 > .sc-card + .sc-card, .grid-3 > .sc-card + .sc-card, .grid-4 > .sc-card + .sc-card,
.grid-2 > .jd-card + .jd-card, .grid-3 > .jd-card + .jd-card, .grid-4 > .jd-card + .jd-card { margin-top: 0; }
.sc-card-title {
  font-size: 14px; font-weight: bold; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: space-between;
}
.sc-card-title .tt { display: flex; align-items: center; flex: 1; }
.sc-card-title .tt::before {
  content: ""; display: inline-block; width: 4px; height: 13px;
  border-radius: 2px; background: var(--sc-blue); margin-right: 8px;
}

/* ---------- 检索条件栏 + 按钮工具栏 + 表格 + 分页（标准列表页） ---------- */
.filter-bar {
  background: #fff; border-radius: 6px; padding: 14px 16px 2px;
  box-shadow: 0 1px 4px rgba(23, 58, 112, 0.07);
  margin-bottom: 12px;
}
.filter-bar .el-form-item { margin-bottom: 12px; margin-right: 18px; }
.filter-bar .el-input { width: 180px; }
.filter-bar .el-input .el-input__inner { width: 100%; }
.filter-bar .el-select { width: 160px; }
.filter-bar .el-select .el-input { width: 100%; }
.filter-bar .el-select .el-input__inner { width: 100%; padding-right: 30px; }
.filter-bar .el-cascader .el-input, .filter-bar .el-cascader .el-input__inner { width: 100%; }
.filter-bar .el-range-editor.el-input__inner { width: 100%; }
.filter-bar .el-date-editor--daterange, .filter-bar .el-date-editor--datetimerange { width: 340px; }

.toolbar {
  background: #fff; border-radius: 6px; padding: 10px 16px;
  box-shadow: 0 1px 4px rgba(23, 58, 112, 0.07);
  margin-bottom: 12px; display: flex; align-items: center;
}
.toolbar .toolbar-tip { margin-left: auto; font-size: 12px; color: var(--sc-text-weak); }

.table-card {
  background: #fff; border-radius: 6px; padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(23, 58, 112, 0.07);
}
.pager-row { display: flex; justify-content: flex-end; padding: 14px 4px 2px; }

/* 左树右表布局 */
.tree-table-layout { display: flex; gap: 12px; align-items: stretch; }
.tree-panel {
  width: 330px; flex-shrink: 0; background: #fff; border-radius: 6px;
  box-shadow: 0 1px 4px rgba(23, 58, 112, 0.07); padding: 12px;
  display: flex; flex-direction: column;
}
.tree-panel .tree-search { margin-bottom: 10px; }
.tree-panel .tree-body { flex: 1; overflow: auto; }
/* 树节点文字超宽时省略号截断，避免横向滚动条拖不动/显示不全 */
.tree-panel .el-tree-node__content { overflow: hidden; }
.tree-panel .el-tree-node__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-panel .custom-tree-node { display: flex; align-items: center; min-width: 0; }
.tree-panel .custom-tree-node > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tree-panel-head { font-weight: bold; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.tree-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* ---------- 统计卡片 ---------- */
.stat-card {
  background: #fff; border-radius: 6px;
  box-shadow: 0 1px 4px rgba(23, 58, 112, 0.07);
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between;
}
.stat-card .stat-label { color: var(--sc-text-sub); font-size: 13px; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 26px; font-weight: bold; line-height: 1; }
.stat-card .stat-value .unit { font-size: 13px; font-weight: normal; color: var(--sc-text-sub); margin-left: 4px; }
.stat-card .stat-foot { font-size: 12px; color: var(--sc-text-weak); margin-top: 8px; }
.stat-icon {
  width: 46px; height: 46px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
}
.stat-icon.blue { background: linear-gradient(135deg, #5C9BFF, #1667DC); }
.stat-icon.cyan { background: linear-gradient(135deg, #67DBE9, #22B8CF); }
.stat-icon.green { background: linear-gradient(135deg, #6FD9A4, #37C273); }
.stat-icon.orange { background: linear-gradient(135deg, #FFC371, #F5A623); }
.stat-icon.red { background: linear-gradient(135deg, #F5837C, #E24C44); }
.stat-icon.purple { background: linear-gradient(135deg, #B58AFF, #8A5CF6); }

/* ---------- 403 无权限提示 ---------- */
.perm-denied {
  position: fixed; inset: 0; z-index: 3000; background: var(--sc-bg);
  display: flex; align-items: center; justify-content: center;
}
.perm-denied .pd-box { text-align: center; }
.perm-denied .pd-icon { font-size: 64px; color: #D3D8E4; }
.perm-denied h2 { font-size: 20px; margin: 14px 0 8px; color: #333; }
.perm-denied p { color: var(--sc-text-sub); font-size: 13px; margin-bottom: 20px; }

/* ---------- 状态徽标 ---------- */
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; vertical-align: 1px;
}
.status-dot.green { background: var(--sc-green); }
.status-dot.red { background: var(--sc-red); }
.status-dot.orange { background: var(--sc-orange); }
.status-dot.gray { background: #BFC4D1; }
.status-dot.blue { background: var(--sc-blue); }

/* ---------- 描述列表（详情展示） ---------- */
.desc-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 16px; font-size: 13px; }
.desc-list .dl-item { display: flex; }
.desc-list .dl-label { color: var(--sc-text-weak); width: 90px; flex-shrink: 0; }
.desc-list .dl-value { color: var(--sc-text); flex: 1; word-break: break-all; }

/* ---------- 时间线 ---------- */
.sc-timeline { padding-left: 4px; }
.sc-timeline .tl-item { display: flex; gap: 10px; padding: 6px 0; cursor: default; border-radius: 6px; }
.sc-timeline .tl-item:hover { background: #F5F8FD; }
.sc-timeline .tl-time { width: 150px; flex-shrink: 0; color: var(--sc-text-sub); font-size: 12px; }
.sc-timeline .tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc-blue); margin-top: 5px; flex-shrink: 0; }
.sc-timeline .tl-body { flex: 1; font-size: 13px; }

/* ---------- 步骤条（处置流程） ---------- */
.flow-steps { display: flex; align-items: center; margin: 8px 0 14px; }
.flow-steps .fs-item { flex: 1; text-align: center; position: relative; }
.flow-steps .fs-item .fs-dot {
  width: 34px; height: 34px; border-radius: 50%; margin: 0 auto 6px;
  background: #E4E9F2; color: #8A96AB; display: flex; align-items: center; justify-content: center;
  font-weight: bold; position: relative; z-index: 2;
}
.flow-steps .fs-item.active .fs-dot { background: var(--sc-blue); color: #fff; }
.flow-steps .fs-item.done .fs-dot { background: var(--sc-green); color: #fff; }
.flow-steps .fs-item::before {
  content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: #E4E9F2; z-index: 1;
}
.flow-steps .fs-item:first-child::before { display: none; }
.flow-steps .fs-item.done::before { background: var(--sc-green); }
.flow-steps .fs-name { font-size: 13px; color: var(--sc-text-sub); }
.flow-steps .fs-item.active .fs-name { color: var(--sc-blue); font-weight: bold; }

/* ---------- Element UI 主题定制（平台蓝） ---------- */
.el-button--primary { background-color: var(--sc-blue) !important; border-color: var(--sc-blue) !important; }
.el-button--primary:hover, .el-button--primary:focus {
  background-color: var(--sc-blue-dark) !important; border-color: var(--sc-blue-dark) !important;
}
.el-button--text { color: var(--sc-blue) !important; }
.el-button--text:hover, .el-button--text:focus { color: var(--sc-blue-dark) !important; }

.el-menu { border-right: none !important; }

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: var(--sc-blue) !important; color: #fff;
}
.el-pagination.is-background .el-pager li:not(.disabled):hover { color: var(--sc-blue); }

.el-table th { background-color: #F5F8FD !important; color: #4A5A78; font-weight: bold; }
.el-table thead { color: #4A5A78 !important; }
.el-table { font-size: 13px; }

.el-tabs__item.is-active { color: var(--sc-blue) !important; }
.el-tabs__active-bar { background-color: var(--sc-blue) !important; }
.el-tabs__item:hover { color: var(--sc-blue); }

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-radio__input.is-checked .el-radio__inner,
.el-tree-node__content .is-checked > .el-checkbox__inner {
  background-color: var(--sc-blue) !important; border-color: var(--sc-blue) !important;
}
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: var(--sc-blue) !important; border-color: var(--sc-blue) !important;
}
.el-checkbox__input.is-checked + .el-checkbox__label,
.el-radio__input.is-checked + .el-radio__label { color: var(--sc-blue) !important; }
.el-switch.is-checked .el-switch__core { background-color: var(--sc-blue) !important; border-color: var(--sc-blue) !important; }

.el-tag--danger { background-color: #FDEEED; border-color: #F5B5B1; color: var(--sc-red); }
.el-badge__content.is-fixed { background-color: var(--sc-red); }

.el-input__inner:focus, .el-textarea__inner:focus { border-color: var(--sc-blue) !important; }
.el-select .el-input.is-focus .el-input__inner { border-color: var(--sc-blue) !important; }
.el-select-dropdown__item.selected { color: var(--sc-blue) !important; }
.el-date-table td.current:not(.disabled) span { background-color: var(--sc-blue) !important; }
.el-tree-node.is-current > .el-tree-node__content { color: var(--sc-blue) !important; background: var(--sc-blue-light) !important; }
.el-loading-spinner .el-icon-loading, .el-loading-spinner .el-loading-text { color: var(--sc-blue); }
.el-step__head.is-process { color: var(--sc-blue); border-color: var(--sc-blue); }
.el-step__title.is-process { color: var(--sc-blue); }

/* 表格内小按钮列间距 */
.el-table .cell { word-break: break-all; }
.op-btns .el-button { margin-left: 0 !important; margin-right: 8px; }
.op-btns .el-button:last-child { margin-right: 0 !important; }

/* 弹窗圆角 */
.el-dialog { border-radius: 8px; }
.el-dialog__header { border-bottom: 1px solid #EDF1F7; padding: 14px 20px; }
.el-dialog__title { font-weight: bold; font-size: 15px; }
