/* ============================================================
   平台管理端（PC Web 后台）样式
   ============================================================ */
.admin-wrap { display: flex; min-height: 100vh; background: #f0f3f9; }
/* 侧边栏 */
.aside {
  width: 232px; flex-shrink: 0; background: linear-gradient(180deg, #1c2b6b, #232f66);
  color: #cdd6ef; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.aside-brand { display: flex; align-items: center; gap: 11px; padding: 20px 18px 18px; }
.aside-brand .ab-ic { width: 38px; height: 38px; border-radius: 11px; background: #ffffff url("logo-brand.png") center / 82% no-repeat; box-shadow: 0 3px 10px rgba(217,43,43,.22); flex-shrink: 0; }
.aside-brand b { font-size: 16px; color: #fff; display: block; }
.aside-brand small { font-size: 10px; color: #8a97c7; letter-spacing: 2px; }
.aside-menu { flex: 1; overflow-y: auto; padding: 6px 12px 20px; }
.menu-group { font-size: 11px; color: #7683b5; padding: 16px 10px 8px; letter-spacing: 1px; }
.menu-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px;
  font-size: 13.5px; cursor: pointer; margin-bottom: 3px; transition: all .15s; position: relative;
}
.menu-item .mi-ic { font-size: 16px; width: 20px; text-align: center; }
.menu-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.menu-item.on { background: rgba(79,124,255,.28); color: #fff; font-weight: 600; }
.menu-item.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: #4f7cff; }
.menu-item .badge-dot { position: absolute; right: 10px; top: 9px; }
.aside-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; color: #7683b5; }

/* 主区 */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 62px; background: #fff; border-bottom: 1px solid #e6ebf4; display: flex;
  align-items: center; padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 100;
}
.topbar .tb-breadcrumb { font-size: 15px; font-weight: 600; flex: 1; }
.topbar .tb-breadcrumb small { color: var(--c-text-3); font-weight: 400; margin-left: 10px; font-size: 12px; }
.tb-env { display: flex; gap: 8px; align-items: center; }
.tb-user { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.content { flex: 1; padding: 22px 24px 34px; }

/* 统计卡片 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: #fff; border-radius: 13px; padding: 18px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.stat-card::after { content: ""; position: absolute; right: -22px; top: -22px; width: 92px; height: 92px; border-radius: 50%; background: rgba(63,108,255,.06); }
.stat-card .sc-label { font-size: 12.5px; color: var(--c-text-2); display: flex; align-items: center; gap: 7px; }
.stat-card .sc-value { font-size: 27px; font-weight: 800; margin-top: 9px; }
.stat-card .sc-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11.5px; color: var(--c-text-3); }
.stat-card .sc-foot .trend-up { color: var(--c-success); font-weight: 600; }
.stat-card .sc-foot .trend-down { color: var(--c-danger); font-weight: 600; }
.sc-ic { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; }
.sc-ic.blue { background: linear-gradient(135deg, #4f7cff, #6fa3ff); }
.sc-ic.green { background: linear-gradient(135deg, #009f64, #23c58e); }
.sc-ic.orange { background: linear-gradient(135deg, #ff9f1c, #ffb03a); }
.sc-ic.purple { background: linear-gradient(135deg, #7b2ed8, #a55eea); }
.sc-ic.cyan { background: linear-gradient(135deg, #00b8d4, #00d4ff); }
.sc-ic.red { background: linear-gradient(135deg, #f5483d, #ff7b6b); }

/* 通用面板 */
.panel-card { background: #fff; border-radius: 13px; box-shadow: var(--shadow); margin-bottom: 18px; }
.panel-head { padding: 16px 20px; border-bottom: 1px solid #eef1f7; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.panel-head h4 { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.panel-head h4::before { content: ""; width: 4px; height: 15px; border-radius: 2px; background: var(--c-admin); }
.panel-body { padding: 18px 20px; }
.panel-body.nopad { padding: 0; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 11px 14px; background: #f7f9fd; color: var(--c-text-2);
  font-weight: 600; font-size: 12.5px; border-bottom: 1px solid #eef1f7; white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid #f2f5fa; vertical-align: middle; }
.table tr:hover td { background: #fafbff; }
.table .t-acts { display: flex; gap: 8px; }
.link-btn { color: var(--c-primary); font-size: 13px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--c-danger); }
.link-btn.success { color: var(--c-success); }
.table-empty { text-align: center; color: var(--c-text-3); padding: 40px 0; font-size: 13px; }

/* 搜索工具行 */
.tool-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tool-row .form-input, .tool-row .form-select { width: auto; }
.tool-row .form-input { width: 220px; }
.tool-row .spacer { flex: 1; }

/* 分页 */
.pager { display: flex; justify-content: flex-end; gap: 6px; padding: 14px 16px; }
.pager .pg-btn { min-width: 30px; height: 30px; border-radius: 6px; background: #f0f3fa; font-size: 12.5px; color: var(--c-text-2); padding: 0 9px; }
.pager .pg-btn.on { background: var(--c-admin); color: #fff; font-weight: 600; }

/* 标签库 */
.tag-lib { display: flex; flex-wrap: wrap; gap: 9px; }
.tag-item {
  display: inline-flex; align-items: center; gap: 7px; background: #eef3ff; color: #3a5bc7;
  border-radius: 8px; padding: 6px 12px; font-size: 13px;
}
.tag-item .ti-x { color: #93a1b5; font-size: 13px; cursor: pointer; }
.tag-item .ti-x:hover { color: var(--c-danger); }
.tag-add { border: 1.5px dashed #b9c8e8; color: var(--c-text-3); background: none; }

/* AI 配置 - 权重滑块 */
.weight-row { display: flex; align-items: center; gap: 16px; padding: 13px 0; border-bottom: 1px dashed #eef1f7; }
.weight-row .wr-name { width: 130px; font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.weight-row .wr-bar { flex: 1; display: flex; align-items: center; gap: 14px; }
input[type=range] { flex: 1; -webkit-appearance: none; height: 6px; border-radius: 3px; background: #e4eaf5; }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: 4px solid var(--c-admin); cursor: pointer; box-shadow: 0 2px 8px rgba(47,84,235,.3);
}
.weight-row .wr-val { width: 56px; text-align: right; font-weight: 800; font-size: 15px; color: var(--c-admin); }
.weight-total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 13px 16px; border-radius: 10px; font-size: 14px; }
.weight-total.ok { background: #e8f8f1; color: var(--c-success); }
.weight-total.bad { background: #fdeeed; color: var(--c-danger); }

/* 看板布局 */
.board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.board-grid .span2 { grid-column: span 2; }
.chart-box { height: 250px; }
.chart-box.sm { height: 210px; }
.chart-box.lg { height: 300px; }

/* 审核详情 */
.audit-tips { background: #fffaf0; border: 1px solid #ffe3b3; border-radius: 9px; padding: 11px 14px; font-size: 12.5px; color: #9a6b00; line-height: 1.8; margin-top: 12px; }
.audit-tips b { color: #7a5500; }

/* 风控 */
.risk-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px dashed #eef1f7; }
.risk-item .ri-ic { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; flex-shrink: 0; }
.risk-item .ri-bd { flex: 1; }
.risk-item .ri-t { display: flex; justify-content: space-between; align-items: center; }
.risk-item p { font-size: 12.5px; color: var(--c-text-2); margin-top: 4px; line-height: 1.7; }

/* 学校卡片 */
.school-card { background: #fff; border-radius: 13px; padding: 17px 19px; box-shadow: var(--shadow); }
.school-card .sch-top { display: flex; align-items: center; gap: 12px; }
.school-card .sch-ic { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, #4f7cff, #38d6c0); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.school-card h5 { font-size: 15px; }
.school-card .sch-meta { font-size: 12px; color: var(--c-text-3); margin-top: 3px; }
.school-card .sch-nums { display: flex; gap: 22px; margin-top: 13px; padding-top: 12px; border-top: 1px dashed #eef1f7; }
.school-card .sch-nums div b { font-size: 19px; display: block; }
.school-card .sch-nums div span { font-size: 11.5px; color: var(--c-text-3); }

/* 工作台两栏 */
.work-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #eef1f7; }
.todo-item .td-bd { flex: 1; }
.todo-item .td-bd b { font-size: 13.5px; }
.todo-item .td-bd p { font-size: 12px; color: var(--c-text-3); margin-top: 3px; }

@media (max-width: 1100px) { .board-grid, .work-grid { grid-template-columns: 1fr; } .board-grid .span2 { grid-column: span 1; } }

/* ---------- 海南省院校库（2026官方数据） ---------- */
.hn-sec-title { font-size: 14.5px; font-weight: 700; color: #24355c; margin: 20px 0 10px; }
.hn-sec-title small { font-weight: 400; color: #93a1b5; margin-left: 6px; }
.hn-stat { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12.5px; color: #5c6b80; background: #f5f8fd; border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.hn-stat b { color: #1d3a6e; font-size: 14px; }
.hn-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.hn-row { border: 1px solid #e6ecf6; border-radius: 10px; margin-bottom: 8px; background: #fff; overflow: hidden; }
.hn-main { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; flex-wrap: wrap; }
.hn-row .hn-main[style], .hn-main:hover { background: #f7faff; }
.hn-name { font-weight: 600; font-size: 13.5px; color: #24355c; }
.hn-meta { font-size: 12px; color: #7a89a3; }
.hn-plan { color: #3f6cff; }
.hn-toggle { margin-left: auto; font-size: 12px; color: #3f6cff; white-space: nowrap; }
.hn-majors { padding: 10px 14px 12px; border-top: 1px dashed #e6ecf6; display: flex; flex-wrap: wrap; gap: 6px; background: #fbfdff; }
.hn-majors .chip { display: inline-flex; align-items: center; gap: 4px; background: #eef3fe; color: #3a4a66; font-size: 11.5px; padding: 3px 9px; }
.hn-majors .chip i { font-style: normal; font-size: 10.5px; background: #dbe7ff; color: #3f6cff; border-radius: 4px; padding: 1px 5px; }
.hn-majors .chip em { font-style: normal; font-size: 10.5px; color: #93a1b5; }
.hn-note { font-size: 11.5px; color: #93a1b5; line-height: 1.8; margin-top: 12px; border-top: 1px dashed #e6ecf6; padding-top: 10px; }

/* ---------- 学生审核·按学校分组 ---------- */
.stgrp-body { border-top: 1px dashed #e6ecf6; background: #fbfdff; padding: 10px 12px 12px; overflow-x: auto; }
.stgrp-body .table th { background: #f1f5fd; }
.stgrp .hn-main .hn-name { font-size: 13px; }
/* 三级下钻：面包屑 + 视图标题 */
.stcrumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.stc-item { color: #3f6cff; cursor: pointer; padding: 5px 12px; border-radius: 8px; background: #eef3fe; white-space: nowrap; }
.stc-item:hover { background: #dbe7ff; }
.stc-item.on { color: #24355c; background: #f0f3f9; cursor: default; font-weight: 600; }
.stc-sep { color: #b6c2d6; font-size: 12px; }
.stcls-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: linear-gradient(135deg, #f5f8ff, #eef6ff); border: 1px solid #e0e9f8; border-radius: 10px; padding: 10px 16px; margin-bottom: 10px; font-size: 14px; color: #24355c; }
.stcls-head b { font-size: 15px; }
/* 未接入学校卡片（灰色，不可点击） */
.stgrp-off { background: #fafbfd; }
.stgrp-off .hn-name { color: #93a1b5; font-weight: 500; }
.stgrp-off .hn-main:hover { background: #fafbfd; }
