@charset "utf-8";
/* ==========================================================================
   石铁大公共外语语种变更考核管理平台 —— 全局样式
   设计基调：教务办公风格 / 稳重蓝 / 素雅清爽 / 无花哨动效
   适配：电脑端优先（>=1200px 三栏留白），兼容平板与手机浏览器（<=768px 折叠）
   ========================================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
  /* 主色：稳重蓝 */
  --c-primary: #1a4b7c;
  --c-primary-dark: #123a62;
  --c-primary-light: #2a6299;
  --c-primary-pale: #eaf1f8;
  --c-primary-line: #cfdcea;

  /* 辅助色 */
  --c-success: #2f7d4f;
  --c-success-bg: #edf6f1;
  --c-warning: #a9741c;
  --c-warning-bg: #fdf6e8;
  --c-danger: #b23a37;
  --c-danger-bg: #fbeeee;
  --c-info: #2c6e8f;
  --c-info-bg: #edf4f8;

  /* 中性色 */
  --c-text: #1f2733;
  --c-text-sub: #5a6675;
  --c-text-mute: #8b96a5;
  --c-line: #dde4ec;
  --c-line-soft: #eef2f7;
  --c-bg: #f4f6f9;
  --c-bg-card: #ffffff;
  --c-bg-head: #fafbfd;

  /* 尺寸 */
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgba(28, 45, 66, 0.06);
  --shadow: 0 2px 8px rgba(28, 45, 66, 0.08);
  --shadow-lg: 0 8px 28px rgba(20, 40, 62, 0.14);
  --header-h: 60px;
  --side-w: 216px;

  --font: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "SimSun", "Source Han Serif SC", serif;
}

/* ---------- 2. 基础重置 ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.4; }
p { margin: 0 0 8px; }
a { color: var(--c-primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
ul, ol { margin: 0; padding-left: 20px; }
::selection { background: var(--c-primary-line); }

/* 滚动条（桌面端） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #c8d2de; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #a9b7c7; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. 通用工具类 ---------- */
.hidden { display: none !important; }
.text-sub { color: var(--c-text-sub); }
.text-mute { color: var(--c-text-mute); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 12px; }
.text-c { text-align: center; }
.text-r { text-align: right; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt24 { margin-top: 24px; } .mb8 { margin-bottom: 8px; } .mb16 { margin-bottom: 16px; }
.nowrap { white-space: nowrap; }
.mono { font-family: Consolas, "Courier New", monospace; }
.flex { display: flex; } .flex-1 { flex: 1; min-width: 0; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.wrap { flex-wrap: wrap; }

/* ---------- 4. 登录页 ---------- */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, #eef3f8 0%, #f7f9fb 100%);
}
.login-topbar {
  height: 4px;
  background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
}
.login-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.login-box {
  width: 100%;
  max-width: 940px;
  display: grid;
  grid-template-columns: 1fr 400px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.login-intro {
  padding: 44px 44px 40px;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: relative;
}
.login-intro::after {
  /* 极淡的公文网格纹理，不用图片 */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.login-intro > * { position: relative; z-index: 1; }
.login-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 2px;
  color: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.28);
  padding: 3px 10px; border-radius: 2px;
  align-self: flex-start;
}
.login-intro h1 {
  font-size: 27px; line-height: 1.5; margin: 26px 0 10px;
  font-weight: 600; letter-spacing: 1px;
}
.login-intro .sub {
  font-size: 13px; color: rgba(255,255,255,.72); letter-spacing: .5px;
}
.login-feature-list { margin-top: auto; padding-top: 34px; }
.login-feature-list li {
  list-style: none; font-size: 13px; color: rgba(255,255,255,.85);
  padding: 7px 0 7px 18px; position: relative;
}
.login-feature-list li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 5px; height: 5px; background: #8fb6d8; border-radius: 50%;
}
.login-feature-list { padding-left: 0; }

.login-form-side { padding: 40px 38px 34px; display: flex; flex-direction: column; }
.login-tabs {
  display: flex; border-bottom: 1px solid var(--c-line); margin-bottom: 26px;
}
.login-tabs button {
  flex: 1; border: 0; background: none; padding: 11px 4px;
  font-size: 15px; color: var(--c-text-sub); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: none;
}
.login-tabs button.active { color: var(--c-primary); border-bottom-color: var(--c-primary); font-weight: 600; }
.login-tabs button:disabled { color: #c2cad4; cursor: not-allowed; }
.login-form-title { font-size: 17px; color: var(--c-text); margin-bottom: 4px; }
.login-form-desc { font-size: 12.5px; color: var(--c-text-mute); margin-bottom: 20px; }
.login-foot { margin-top: auto; padding-top: 22px; font-size: 12px; color: var(--c-text-mute); text-align: center; line-height: 1.9; }
.login-hint {
  background: var(--c-primary-pale); border: 1px dashed var(--c-primary-line);
  border-radius: var(--radius); padding: 9px 12px; font-size: 12px;
  color: var(--c-primary-dark); margin-top: 4px; line-height: 1.8;
}
.login-hint b { font-weight: 600; }
/* 演示模式提示（仅 ?dev=1 时渲染，正式环境不出现） */
.login-devnote {
  margin-top: 8px; padding: 7px 11px; border-radius: var(--radius);
  background: #fdf6ec; border: 1px dashed #e3c08a; color: #8a5a1a;
  font-size: 11.5px; line-height: 1.7;
}
.login-devnote b { font-family: "Courier New", monospace; font-weight: 700; }
.captcha-row { display: flex; gap: 10px; }
.captcha-row .form-control { flex: 1; }
.captcha-img {
  width: 104px; height: 38px; flex: 0 0 104px;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  background: #f2f5f8; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: center;
  font-family: "Courier New", monospace; font-size: 20px; font-weight: 700;
  letter-spacing: 5px; color: var(--c-primary); font-style: italic;
  background-image: linear-gradient(45deg, #e8eef5 25%, transparent 25%, transparent 75%, #e8eef5 75%);
  background-size: 8px 8px;
}
.login-mode-note {
  font-size: 12px; color: var(--c-warning); background: var(--c-warning-bg);
  border: 1px solid #efe1c4; border-radius: var(--radius);
  padding: 8px 11px; margin-bottom: 16px;
}

/* ---------- 5. 主框架（顶栏 + 侧边栏 + 内容区） ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }

.app-header {
  height: var(--header-h);
  background: var(--c-primary);
  color: #fff;
  display: flex; align-items: center;
  padding: 0 20px 0 18px;
  position: sticky; top: 0; z-index: 60;
  box-shadow: 0 1px 3px rgba(18, 42, 68, .18);
}
.app-header .brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.app-header .logo {
  width: 30px; height: 30px; flex: 0 0 30px;
  border: 1.5px solid rgba(255,255,255,.6); border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; letter-spacing: -.5px;
  background: rgba(255,255,255,.1);
}
.app-header .sys-name {
  font-size: 16px; font-weight: 600; letter-spacing: .6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.app-header .sys-tag {
  font-size: 11px; padding: 1px 7px; border-radius: 2px;
  background: rgba(255,255,255,.16); color: #dceaf6; white-space: nowrap;
}
.app-header .header-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.header-user {
  display: flex; align-items: center; gap: 9px; padding: 5px 10px;
  border-radius: var(--radius); cursor: pointer; position: relative;
}
.header-user:hover { background: rgba(255,255,255,.1); }
.header-user .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.header-user .u-name { font-size: 13px; line-height: 1.3; }
.header-user .u-role { font-size: 11px; color: #b9d3e9; line-height: 1.3; }
.header-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 148px; padding: 5px; z-index: 80;
}
.header-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 8px 11px; font-size: 13px; color: var(--c-text); border-radius: 3px; cursor: pointer;
}
.header-menu button:hover { background: var(--c-primary-pale); color: var(--c-primary); }
.icon-btn {
  width: 34px; height: 34px; border: 0; background: transparent; color: #dbe8f3;
  border-radius: var(--radius); cursor: pointer; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.icon-btn .dot {
  position: absolute; top: 6px; right: 6px; min-width: 15px; height: 15px;
  background: #d9534f; color: #fff; border-radius: 8px; font-size: 10px;
  line-height: 15px; text-align: center; padding: 0 3px; font-weight: 600;
}
.menu-toggle { display: none; }

.app-body { flex: 1; display: flex; align-items: stretch; min-height: 0; }

.app-sidebar {
  width: var(--side-w); flex: 0 0 var(--side-w);
  background: #fff; border-right: 1px solid var(--c-line);
  padding: 10px 0 30px; overflow-y: auto;
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h));
}
.side-group-title {
  font-size: 11.5px; color: var(--c-text-mute); letter-spacing: 1px;
  padding: 16px 20px 7px;
}
.side-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 20px; font-size: 13.5px; color: #35414f;
  cursor: pointer; border-left: 3px solid transparent; line-height: 1.5;
  user-select: none;
}
.side-item:hover { background: #f5f8fb; color: var(--c-primary); }
.side-item.active {
  background: var(--c-primary-pale); color: var(--c-primary);
  border-left-color: var(--c-primary); font-weight: 600;
}
.side-item .badge-num {
  margin-left: auto; font-size: 11px; background: var(--c-danger); color: #fff;
  border-radius: 9px; padding: 0 6px; line-height: 17px; min-width: 18px; text-align: center;
  font-weight: 500;
}
.side-item .nav-ico { width: 16px; text-align: center; opacity: .8; font-size: 13px; }

.app-main { flex: 1; min-width: 0; padding: 20px 24px 40px; }
.main-inner { max-width: 1320px; margin: 0 auto; }

/* 面包屑 & 页头 */
.page-head { margin-bottom: 18px; }
.breadcrumb { font-size: 12px; color: var(--c-text-mute); margin-bottom: 8px; }
.breadcrumb span + span::before { content: "/"; margin: 0 7px; color: #c3cbd6; }
.page-title { font-size: 20px; color: var(--c-text); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-desc { font-size: 13px; color: var(--c-text-sub); margin-top: 6px; }

/* ---------- 6. 卡片 / 面板 ---------- */
.card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-head {
  padding: 13px 18px;
  border-bottom: 1px solid var(--c-line-soft);
  background: var(--c-bg-head);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-head h3 {
  font-size: 14.5px; color: var(--c-text); display: flex; align-items: center; gap: 8px;
}
.card-head h3::before {
  content: ""; width: 3px; height: 14px; background: var(--c-primary); border-radius: 1px;
}
.card-head .head-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.card-foot {
  padding: 12px 18px; border-top: 1px solid var(--c-line-soft);
  background: var(--c-bg-head); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
}

/* 指标卡 */
.stat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 16px;
}
.stat-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c-primary);
}
.stat-card.s-warn::before { background: var(--c-warning); }
.stat-card.s-ok::before { background: var(--c-success); }
.stat-card.s-dan::before { background: var(--c-danger); }
.stat-card .s-label { font-size: 12.5px; color: var(--c-text-sub); }
.stat-card .s-value { font-size: 27px; font-weight: 600; color: var(--c-primary-dark); line-height: 1.3; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat-card .s-value small { font-size: 13px; font-weight: 400; color: var(--c-text-mute); margin-left: 3px; }
.stat-card .s-extra { font-size: 11.5px; color: var(--c-text-mute); margin-top: 2px; }

/* 双列布局 */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 320px 1fr; gap: 16px; align-items: start; }
.grid-2-1 { display: grid; grid-template-columns: 1fr 340px; gap: 16px; align-items: start; }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 15px;
  border: 1px solid var(--c-line); background: #fff; color: #2b3644;
  border-radius: var(--radius); font-size: 13.5px; cursor: pointer;
  white-space: nowrap; transition: none; line-height: 1;
}
.btn:hover { border-color: var(--c-primary-line); color: var(--c-primary); background: #f7fafd; }
.btn:active { background: #eef3f9; }
.btn:disabled, .btn.disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-dark); border-color: var(--c-primary-dark); color: #fff; }
.btn-primary:active { background: #0e3054; }
.btn-danger { color: var(--c-danger); border-color: #e6c6c5; }
.btn-danger:hover { background: var(--c-danger-bg); border-color: #d9a9a7; color: var(--c-danger); }
.btn-success { color: var(--c-success); border-color: #bcd9c8; }
.btn-success:hover { background: var(--c-success-bg); color: var(--c-success); border-color: #9cc9af; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 12px; }
.btn-lg { height: 40px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-link {
  border: 0; background: none; color: var(--c-primary-light); cursor: pointer;
  padding: 0 4px; font-size: 13px; text-decoration: none;
}
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--c-danger); }
.btn-link.danger:hover { text-decoration: underline; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 8. 表单 ---------- */
.form-row { margin-bottom: 16px; }
.form-row:last-child { margin-bottom: 0; }
.form-label {
  display: block; font-size: 13px; color: #3a4655; margin-bottom: 6px; font-weight: 500;
}
.form-label .req { color: var(--c-danger); margin-left: 3px; }
.form-label .tip { font-weight: 400; color: var(--c-text-mute); font-size: 12px; margin-left: 6px; }
.form-control {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid #ccd6e2; border-radius: var(--radius);
  background: #fff; font-size: 14px; outline: none;
  transition: border-color .12s;
}
textarea.form-control { height: auto; min-height: 92px; padding: 9px 11px; line-height: 1.7; resize: vertical; }
select.form-control { cursor: pointer; padding-right: 6px; }
.form-control:focus { border-color: var(--c-primary-light); box-shadow: 0 0 0 3px rgba(42, 98, 153, .1); }
.form-control:disabled, .form-control[readonly] { background: #f4f6f9; color: var(--c-text-sub); cursor: not-allowed; }
.form-control.is-error { border-color: var(--c-danger); }
.form-control::placeholder { color: #a8b3c0; }
.form-error { color: var(--c-danger); font-size: 12px; margin-top: 4px; min-height: 0; }
.form-help { color: var(--c-text-mute); font-size: 12px; margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid.col1 { grid-template-columns: 1fr; }
.form-grid .span2 { grid-column: span 2; }
.checkbox-line {
  display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #3a4655;
  cursor: pointer; line-height: 1.7;
}
.checkbox-line input[type="checkbox"] {
  width: 15px; height: 15px; margin: 3px 0 0; accent-color: var(--c-primary); flex: 0 0 15px; cursor: pointer;
}
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 6px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 13.5px; cursor: pointer; }
.radio-group input[type="radio"] { accent-color: var(--c-primary); width: 15px; height: 15px; cursor: pointer; }

/* 只读信息块（学生报名时自动带出的学籍信息） */
.info-block {
  background: #f7f9fc; border: 1px solid var(--c-line-soft);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px;
}
.info-block .ib-title {
  font-size: 12.5px; color: var(--c-text-sub); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 18px; }
.info-item { font-size: 13px; }
.info-item .k { color: var(--c-text-mute); font-size: 12px; display: block; }
.info-item .v { color: var(--c-text); font-weight: 500; }

/* 筛选栏 */
.filter-bar {
  display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--c-line-soft); background: #fcfdff;
}
.filter-item { display: flex; flex-direction: column; gap: 5px; }
.filter-item label { font-size: 12px; color: var(--c-text-sub); }
.filter-item .form-control { height: 33px; font-size: 13px; min-width: 130px; }
.filter-item.wide .form-control { min-width: 180px; }
.filter-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; }

/* 上传 */
.upload-box {
  border: 1px dashed #c3d0de; border-radius: var(--radius);
  background: #fafcfe; padding: 18px; text-align: center; cursor: pointer;
}
.upload-box:hover { border-color: var(--c-primary-light); background: #f5f9fd; }
.upload-box .ub-icon { font-size: 22px; color: var(--c-primary-light); line-height: 1; }
.upload-box .ub-main { font-size: 13px; color: #3a4655; margin-top: 8px; }
.upload-box .ub-main b { color: var(--c-primary); font-weight: 600; }
.upload-box .ub-hint { font-size: 12px; color: var(--c-text-mute); margin-top: 4px; }
.file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.file-item {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px;
  background: #f6f9fc; border: 1px solid var(--c-line-soft); border-radius: 3px; padding: 6px 10px;
}
.file-item .f-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33404f; }
.file-item .f-size { color: var(--c-text-mute); font-size: 11.5px; }
.file-item .f-del { border: 0; background: none; color: var(--c-danger); cursor: pointer; font-size: 12px; padding: 0 2px; }
.file-thumb {
  width: 34px; height: 34px; border: 1px solid var(--c-line); border-radius: 3px;
  display: flex; align-items: center; justify-content: center; font-size: 10px;
  background: #fff; color: var(--c-primary); font-weight: 600; flex: 0 0 34px; overflow: hidden;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 9. 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.tbl { font-size: 13px; min-width: 100%; }
table.tbl thead th {
  background: #f6f8fb; color: #3f4c5c; font-weight: 600; text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--c-line);
  white-space: nowrap; font-size: 12.5px; position: sticky; top: 0; z-index: 2;
}
table.tbl tbody td {
  padding: 10px 12px; border-bottom: 1px solid var(--c-line-soft);
  color: #2c3745; vertical-align: middle;
}
table.tbl tbody tr:hover { background: #fafcfe; }
table.tbl tbody tr.selected { background: var(--c-primary-pale); }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl td.actions { white-space: nowrap; }
table.tbl input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--c-primary); cursor: pointer; vertical-align: middle; }
table.tbl .col-idx { width: 46px; color: var(--c-text-mute); text-align: center; }
.table-toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 11px 18px; border-bottom: 1px solid var(--c-line-soft); background: #fff;
}
.table-toolbar .sel-info { font-size: 12.5px; color: var(--c-text-sub); }
.table-toolbar .sel-info b { color: var(--c-primary); }

/* 分页 */
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-top: 1px solid var(--c-line-soft);
  font-size: 12.5px; color: var(--c-text-sub); flex-wrap: wrap;
}
.pager-btns { display: flex; gap: 4px; align-items: center; }
.pager-btns button {
  min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--c-line);
  background: #fff; border-radius: 3px; cursor: pointer; font-size: 12.5px; color: #38434f;
}
.pager-btns button:hover:not(:disabled) { border-color: var(--c-primary-light); color: var(--c-primary); }
.pager-btns button.active { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pager-btns button:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- 10. 标签 / 状态徽标 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 12px; line-height: 20px; padding: 0 8px; border-radius: 3px;
  border: 1px solid transparent; white-space: nowrap; font-weight: 500;
}
.tag-pending { background: var(--c-warning-bg); color: var(--c-warning); border-color: #efe1c4; }
.tag-pass { background: var(--c-success-bg); color: var(--c-success); border-color: #c8e2d3; }
.tag-reject { background: var(--c-danger-bg); color: var(--c-danger); border-color: #eed0cf; }
.tag-info { background: var(--c-info-bg); color: var(--c-info); border-color: #cfe0ea; }
.tag-gray { background: #f2f4f7; color: #5f6b7a; border-color: #e2e7ee; }
.tag-blue { background: var(--c-primary-pale); color: var(--c-primary); border-color: var(--c-primary-line); }
.tag-dot::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: 0 0 5px;
}
.tag-lg { font-size: 13px; line-height: 24px; padding: 0 11px; }

/* ---------- 11. 提示条 / 空状态 ---------- */
.alert {
  display: flex; gap: 10px; padding: 11px 14px; border-radius: var(--radius);
  font-size: 13px; line-height: 1.7; border: 1px solid transparent; margin-bottom: 16px;
}
.alert .a-ico { flex: 0 0 16px; font-size: 14px; line-height: 1.6; }
.alert-info { background: var(--c-info-bg); border-color: #d3e3ec; color: #23566f; }
.alert-warn { background: var(--c-warning-bg); border-color: #efe1c4; color: #7f5715; }
.alert-danger { background: var(--c-danger-bg); border-color: #eed0cf; color: #8f2c2a; }
.alert-success { background: var(--c-success-bg); border-color: #c8e2d3; color: #245c3b; }
.alert b { font-weight: 600; }
.alert .a-title { font-weight: 600; display: block; margin-bottom: 2px; }

.empty {
  padding: 54px 20px; text-align: center; color: var(--c-text-mute);
}
.empty .e-ico { font-size: 30px; color: #c9d3df; line-height: 1; margin-bottom: 10px; }
.empty .e-text { font-size: 13.5px; color: #7d8896; }
.empty .e-sub { font-size: 12px; color: var(--c-text-mute); margin-top: 4px; }

/* 加载 */
.loading-box { padding: 50px 20px; text-align: center; color: var(--c-text-mute); font-size: 13px; }
.spinner {
  width: 26px; height: 26px; margin: 0 auto 12px;
  border: 2.5px solid #dde5ee; border-top-color: var(--c-primary-light);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 12. 弹窗 / 抽屉 ---------- */
.mask {
  position: fixed; inset: 0; background: rgba(22, 34, 50, .45);
  z-index: 900; display: flex; align-items: flex-start; justify-content: center;
  padding: 60px 20px 30px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; border-top: 3px solid var(--c-primary);
  animation: none;
}
.modal.w-medium { max-width: 720px; }
.modal.w-large { max-width: 920px; }
.modal-head {
  padding: 15px 20px; border-bottom: 1px solid var(--c-line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.modal-head h3 { font-size: 15.5px; }
.modal-close {
  border: 0; background: none; font-size: 20px; line-height: 1; color: #93a0af;
  cursor: pointer; padding: 0 2px;
}
.modal-close:hover { color: var(--c-danger); }
.modal-body { padding: 20px; max-height: calc(100vh - 250px); overflow-y: auto; }
.modal-foot {
  padding: 13px 20px; border-top: 1px solid var(--c-line-soft);
  display: flex; justify-content: flex-end; gap: 10px; background: var(--c-bg-head);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* 侧滑抽屉（详情） */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(22, 34, 50, .38); z-index: 880;
  display: flex; justify-content: flex-end;
}
.drawer {
  width: 620px; max-width: 100%; background: #fff; height: 100%;
  display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(20,40,62,.16);
}
.drawer-head {
  padding: 15px 20px; border-bottom: 1px solid var(--c-line-soft);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--c-bg-head);
}
.drawer-head h3 { font-size: 15.5px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 30px; }
.drawer-foot {
  padding: 12px 20px; border-top: 1px solid var(--c-line-soft);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* 详情描述列表 */
.desc-list { display: grid; grid-template-columns: 116px 1fr; font-size: 13px; }
.desc-list dt { color: var(--c-text-sub); padding: 9px 0; border-bottom: 1px dashed var(--c-line-soft); }
.desc-list dd { margin: 0; padding: 9px 0; border-bottom: 1px dashed var(--c-line-soft); color: #22303f; word-break: break-all; }
.desc-list dt:nth-last-of-type(1), .desc-list dd:nth-last-of-type(1) { border-bottom: 0; }

/* ---------- 13. Toast ---------- */
.toast-wrap {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 1200; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: 92vw;
}
.toast {
  background: #fff; border: 1px solid var(--c-line); border-left: 3px solid var(--c-primary);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 10px 16px; font-size: 13.5px; color: #22303f;
  display: flex; align-items: center; gap: 8px; max-width: 92vw;
}
.toast.success { border-left-color: var(--c-success); }
.toast.error { border-left-color: var(--c-danger); }
.toast.warn { border-left-color: var(--c-warning); }
.toast .t-ico { font-size: 14px; }
.toast.success .t-ico { color: var(--c-success); }
.toast.error .t-ico { color: var(--c-danger); }
.toast.warn .t-ico { color: var(--c-warning); }
.toast.info .t-ico { color: var(--c-primary); }

/* ---------- 14. 内容专用：公告 / 时间轴 / 成绩 ---------- */
.notice-list { list-style: none; padding: 0; margin: 0; }
.notice-item {
  padding: 13px 0; border-bottom: 1px solid var(--c-line-soft);
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
}
.notice-item:last-child { border-bottom: 0; }
.notice-item:hover .n-title { color: var(--c-primary); }
.notice-item .n-date {
  flex: 0 0 52px; text-align: center; border-right: 1px solid var(--c-line-soft);
  padding-right: 12px; color: var(--c-text-mute);
}
.notice-item .n-date .d-day { font-size: 17px; font-weight: 600; color: var(--c-primary); line-height: 1.2; }
.notice-item .n-date .d-mon { font-size: 11px; }
.notice-item .n-body { flex: 1; min-width: 0; }
.notice-item .n-title { font-size: 13.5px; color: #22303f; font-weight: 500; line-height: 1.6; }
.notice-item .n-meta { font-size: 11.5px; color: var(--c-text-mute); margin-top: 3px; }
.notice-item .n-new {
  font-size: 10px; color: #fff; background: var(--c-danger); border-radius: 2px;
  padding: 0 4px; margin-left: 6px; vertical-align: 1px;
}

/* 时间轴 */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--c-line);
}
.timeline li { position: relative; padding: 0 0 18px 26px; font-size: 13px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: #fff; border: 2px solid #c3ceda;
}
.timeline li.done::before { border-color: var(--c-success); background: var(--c-success); }
.timeline li.active::before { border-color: var(--c-primary); background: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-pale); }
.timeline .t-name { color: #22303f; font-weight: 500; }
.timeline .t-time { color: var(--c-text-mute); font-size: 12px; margin-top: 1px; }

/* 进度条 */
.progress { height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--c-primary-light); border-radius: 4px; }
.progress.ok > i { background: var(--c-success); }
.progress.warn > i { background: var(--c-warning); }

/* 成绩大卡片 */
.score-hero {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: linear-gradient(135deg, #f7fafd 0%, #eef4fa 100%);
  border: 1px solid var(--c-primary-line); border-radius: var(--radius-lg); padding: 22px 26px;
}
.score-hero .sh-score { text-align: center; min-width: 120px; }
.score-hero .sh-score .num { font-size: 44px; font-weight: 600; color: var(--c-primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.score-hero .sh-score .lbl { font-size: 12px; color: var(--c-text-sub); }
.score-hero .sh-info { flex: 1; min-width: 200px; }
.score-hero .sh-info .row { font-size: 13px; color: #33404f; padding: 3px 0; }
.score-hero .sh-info .row span { color: var(--c-text-mute); display: inline-block; min-width: 76px; }

/* 分数分布条 */
.dist-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 12.5px; }
.dist-row .d-label { flex: 0 0 70px; color: var(--c-text-sub); }
.dist-row .d-bar { flex: 1; height: 18px; background: #f1f5f9; border-radius: 2px; overflow: hidden; }
.dist-row .d-bar > i { display: block; height: 100%; background: var(--c-primary-light); }
.dist-row .d-val { flex: 0 0 84px; text-align: right; color: #33404f; font-variant-numeric: tabular-nums; }
.dist-row .d-ratio { font-style: normal; font-size: 11px; color: #8a95a3; margin-left: 6px; }
.dist-row .d-mid { font-style: normal; font-size: 11px; color: #8a95a3; margin-left: 6px; }
.dist-row .d-val { flex: 0 0 130px; }

/* 成绩构成提示条（成绩管理 / 成绩项设置） */
.scheme-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  padding: 10px 14px; margin-bottom: 12px;
  background: #f7fafd; border: 1px solid #dde6f0; border-radius: 2px;
  font-size: 12.5px; color: #33404f;
}
.scheme-bar .sb-label { font-weight: 600; color: #1a4b7c; }
.scheme-bar .sb-item {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 3px 9px; background: #fff; border: 1px solid #d3dfeb; border-radius: 2px;
}
.scheme-bar .sb-item em { font-style: normal; font-size: 11px; color: #7d8896; }
.scheme-bar .sb-plus, .scheme-bar .sb-eq { color: #9aa5b3; }
.scheme-bar .sb-total { background: #eef5fb; border-color: #b8d0e6; color: #1a4b7c; font-weight: 600; }
.scheme-bar .sb-lv { margin-left: auto; font-size: 11.5px; color: #7d8896; }

/* 成绩项设置弹窗内表格 */
.sch-table-wrap { border: 1px solid #e2e8f0; border-radius: 2px; overflow: auto; }
.sch-tbl { margin: 0; }
.sch-tbl th { background: #f4f7fa; font-size: 12px; }
.sch-tbl td { padding: 6px 8px; vertical-align: middle; }
.sch-tbl .form-control { height: 30px; padding: 3px 8px; font-size: 12.5px; }
.sch-tbl tfoot td { background: #f9fbfd; border-top: 1px solid #e2e8f0; }
.sch-sub { margin: 18px 0 8px; font-size: 13.5px; color: #1a4b7c; font-weight: 600; }
.sch-preview {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 12px; padding: 10px 14px; background: #f7fafd;
  border: 1px dashed #c3d5e6; border-radius: 2px; font-size: 12.5px; color: #33404f;
}
.sch-preview .sp-label { color: #7d8896; font-size: 11.5px; }
.sch-preview .sp-formula b { color: #1a4b7c; }
.chk-line { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #33404f; cursor: pointer; line-height: 1.7; }
.chk-line input { margin-top: 3px; }

/* 公示名单表格（脱敏） */
.publicity-table th { font-size: 12.5px; }
.publicity-table td { font-size: 13px; }

/* 纯 CSS 条形图（数据统计） */
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding: 10px 4px 0; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.bar-chart .bar-col .bar {
  width: 100%; max-width: 52px; background: var(--c-primary-light); border-radius: 2px 2px 0 0;
  min-height: 2px; position: relative;
}
.bar-chart .bar-col .bar-val { font-size: 11.5px; color: #33404f; font-weight: 600; }
.bar-chart .bar-col .bar-lbl { font-size: 11.5px; color: var(--c-text-sub); text-align: center; white-space: nowrap; }
.bar-axis { border-top: 1px solid var(--c-line); margin-top: 2px; }

/* 横向对比条（学院统计） */
.hbar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 12.5px; }
.hbar-row .h-name { flex: 0 0 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33404f; }
.hbar-row .h-track { flex: 1; height: 16px; background: #f1f5f9; border-radius: 2px; overflow: hidden; }
.hbar-row .h-track > i { display: block; height: 100%; background: var(--c-primary); opacity: .85; }
.hbar-row .h-val { flex: 0 0 64px; text-align: right; color: var(--c-text-sub); font-variant-numeric: tabular-nums; }

/* ---------- 15. 引导说明块（原型标注用） ---------- */
.demo-note {
  font-size: 12px; color: #6b7787; background: #fbfcfe;
  border: 1px dashed #d9e2ec; border-radius: var(--radius); padding: 9px 12px; margin-bottom: 16px;
  line-height: 1.75;
}
.demo-note b { color: var(--c-primary); }
.kv-inline { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--c-text-sub); }
.kv-inline b { color: #22303f; font-weight: 600; }
.divider { height: 1px; background: var(--c-line-soft); margin: 16px 0; }

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-1-2, .grid-2-1 { grid-template-columns: 1fr; }
  .login-box { grid-template-columns: 1fr; max-width: 460px; }
  .login-intro { padding: 28px 30px; }
  .login-intro h1 { font-size: 21px; margin: 16px 0 6px; }
  .login-feature-list { display: none; }
}
@media (max-width: 860px) {
  .app-sidebar {
    position: fixed; left: 0; top: var(--header-h); z-index: 70;
    transform: translateX(-100%); transition: transform .18s ease;
    box-shadow: 4px 0 18px rgba(20, 40, 62, .12); height: calc(100vh - var(--header-h));
  }
  .app-sidebar.open { transform: translateX(0); }
  .menu-toggle { display: flex; }
  .side-mask { position: fixed; inset: var(--header-h) 0 0 0; background: rgba(22,34,50,.35); z-index: 65; }
  .app-main { padding: 16px 14px 36px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .app-header .sys-name { font-size: 14px; letter-spacing: 0; }
  .app-header .sys-tag { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 13.5px; }
  :root { --header-h: 54px; }
  .app-header { padding: 0 10px; }
  .app-header .sys-name {
    font-size: 12.5px; line-height: 1.25; letter-spacing: 0;
    white-space: normal; max-width: 46vw;
  }
  .header-user .u-name, .header-user .u-role { display: none; }
  .header-user { padding: 4px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 12px 14px; }
  .stat-card .s-value { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span2 { grid-column: span 1; }
  .card-body { padding: 14px; }
  .card-head { padding: 11px 14px; }
  .page-title { font-size: 17px; }
  .modal { max-width: 100%; }
  .mask { padding: 20px 10px; align-items: flex-start; }
  .modal-body { max-height: calc(100vh - 200px); }
  .drawer { width: 100%; }
  .desc-list { grid-template-columns: 92px 1fr; font-size: 12.5px; }
  .filter-bar { padding: 12px 14px; }
  .filter-item .form-control { min-width: 0; width: 100%; }
  .filter-item { flex: 1 1 140px; }
  .filter-actions { margin-left: 0; width: 100%; }
  .login-form-side { padding: 26px 20px; }
  .login-intro { display: none; }
  .login-box { max-width: 100%; }
  .table-toolbar { padding: 10px 14px; }
  .pager { padding: 10px 14px; justify-content: center; }
  .file-item { font-size: 12px; }
  .toast { font-size: 13px; }
  .bar-chart { height: 140px; gap: 8px; }
  .hbar-row .h-name { flex: 0 0 84px; font-size: 12px; }
}

/* 打印（公示名单 / 台账导出打印） */
@media print {
  .app-header, .app-sidebar, .card-head .head-tools, .pager, .no-print { display: none !important; }
  body { background: #fff; }
  .app-main { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; }
}
