/* ============ 基础重置 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: #1f2330;
  background: #f5f7fb;
  display: flex;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ============ 登录页 ============ */
.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 44px;
  width: 380px;
  box-shadow: 0 24px 60px rgba(30, 30, 80, .35);
  animation: pop .3s ease;
}
@keyframes pop { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
.login-card .logo {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c5cff 0%, #5b8dff 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: 700;
  margin: 0 auto 16px;
}
.login-card h1 { font-size: 20px; text-align: center; margin-bottom: 6px; }
.login-card .sub { font-size: 13px; color: #9aa3b2; text-align: center; margin-bottom: 26px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #4a5160; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e3e6ec;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border .15s, box-shadow .15s;
  background: #fff;
  color: #1f2330;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: #7c5cff;
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .12);
}
.login-error {
  color: #e53e3e;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
}
.login-btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c5cff 0%, #5b8dff 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
}
.login-btn:hover { opacity: .92; }
.login-btn:disabled { opacity: .6; cursor: not-allowed; }
.login-hint {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: #9aa3b2;
  background: #f5f7fb;
  border-radius: 8px;
  padding: 10px;
}

/* 登录入口 Tab */
.login-tabs { display: flex; gap: 8px; margin-bottom: 22px; background: #f1f4f9; padding: 4px; border-radius: 12px; }
.login-tab { flex: 1; padding: 9px 0; border-radius: 9px; font-size: 14px; font-weight: 600; color: #5a6478; background: transparent; transition: .15s; }
.login-tab.active { background: #fff; color: #2f6bff; box-shadow: 0 2px 6px rgba(20,30,60,.08); }

/* ============ 侧边栏 ============ */
.sidebar {
  width: 220px;
  background: #fff;
  border-right: 1px solid #eef0f5;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: #1f2330;
}
.brand-logo {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7c5cff 0%, #5b8dff 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px;
}
.nav-section { margin-bottom: 6px; }
.nav-group-label { font-size: 12px; color: #9aa3b2; padding: 12px 24px 6px; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  margin: 2px 10px;
  border-radius: 8px;
  color: #4a5160;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
.nav-item:hover { background: #f5f7fb; color: #1f2330; }
.nav-item.active { background: #eef0ff; color: #5b5bd6; font-weight: 600; }
.nav-item .icon {
  width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; color: #9aa3b2;
}
.nav-item.active .icon { color: #5b5bd6; }
.nav-item .arrow { margin-left: auto; font-size: 12px; transition: transform .2s; }
.nav-item.open .arrow { transform: rotate(90deg); }
.nav-children { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.nav-children.open { max-height: 400px; }
.nav-child {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px 8px 44px;
  margin: 0 10px;
  border-radius: 6px;
  color: #6b7280;
  font-size: 13px;
  cursor: pointer;
}
.nav-child:hover { background: #f5f7fb; color: #1f2330; }
.nav-child.active { background: #f0f0ff; color: #5b5bd6; font-weight: 500; }
.nav-child .dot { width: 6px; height: 6px; border-radius: 50%; background: #c4cad6; }
.nav-child.active .dot { background: #5b5bd6; }

/* ============ 主区域 ============ */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

/* ============ 顶部栏 ============ */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid #eef0f5;
  position: sticky;
  top: 0;
  z-index: 20;
}
.search-box {
  flex: 1;
  max-width: 560px;
  background: #f3f5f9;
  border-radius: 8px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9aa3b2;
}
.search-box input {
  flex: 1; border: none; outline: none;
  background: transparent; font-size: 14px; color: #1f2330;
}
.kbd {
  font-size: 11px; background: #fff;
  border: 1px solid #e3e6ec; border-radius: 4px;
  padding: 2px 5px; color: #9aa3b2;
}
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #f3f5f9;
  display: flex; align-items: center; justify-content: center;
  color: #4a5160; font-size: 16px;
  position: relative;
}
.icon-btn:hover { background: #e8eaf1; }
.icon-btn .badge {
  position: absolute; top: 6px; right: 6px;
  background: #ff5b5b; color: #fff;
  font-size: 10px; border-radius: 8px;
  padding: 1px 4px; line-height: 1.2;
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff 0%, #5b8dff 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
}

/* ============ 主内容 ============ */
.content { flex: 1; padding: 24px 28px 60px; max-width: 1400px; width: 100%; margin: 0 auto; }
.page { display: none; }
.page.active { display: block; }
.page-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: #6b7280; font-size: 13px; margin-bottom: 22px; }

/* ============ 通用卡片 ============ */
.section { margin-bottom: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sel-mini { height: 34px; border: 1px solid #e2e8f0; border-radius: 8px; padding: 0 10px; font-size: 13px; color: #334155; background: #fff; cursor: pointer; }
.sel-mini:hover { border-color: #c3cdf7; }
.section-head .icon-wrap {
  width: 32px; height: 32px;
  background: #eef0ff; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #5b5bd6; font-size: 16px;
}
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title h3 { font-size: 16px; font-weight: 600; }
.section-title .desc { font-size: 12px; color: #9aa3b2; }
.btn-link { color: #5b5bd6; font-size: 13px; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.btn-link:hover { background: #eef0ff; }
.btn {
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  border: 1px solid #e3e6ec;
  color: #4a5160;
  display: inline-flex; align-items: center; gap: 4px;
  cursor: pointer;
}
.btn:hover { background: #f5f7fb; }
.btn-primary {
  background: linear-gradient(135deg, #7c5cff 0%, #5b8dff 100%);
  color: #fff; border-color: transparent;
}
.btn-primary:hover { opacity: .9; background: linear-gradient(135deg, #7c5cff 0%, #5b8dff 100%); }
.btn-success { background: #10b981; color: #fff; border-color: transparent; }
.btn-danger { background: #ff5b5b; color: #fff; border-color: transparent; }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.btn-danger:hover { background: #e53e3e; }

/* ===== 系统管理 · 用户管理表格 ===== */
.user-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(20,30,60,.05); }
.user-table th, .user-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eef1f6; font-size: 14px; }
.user-table th { background: #f7f9fc; color: #5a6478; font-weight: 600; }
.user-table tbody tr:hover { background: #fafbfe; }
.user-table .user-ops { white-space: nowrap; }
.user-table .user-ops .btn { margin-right: 8px; }
.user-table .user-ops .btn-danger { padding: 5px 12px; font-size: 13px; }
.role-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.role-badge.super { background: #e8efff; color: #2f6bff; }
.role-badge.teacher { background: #eafaf0; color: #14a04a; }
.pwd-mask { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: 2px; color: #6b7280; cursor: help; }
.muted { color: #9aa3b2; }
.btn-sm { padding: 5px 12px; font-size: 13px; border-radius: 8px; border: 1px solid #d8deea; background: #fff; color: #2f6bff; }
.btn-sm:hover { background: #f3f7ff; }
.btn-ghost { border: none; background: transparent; padding: 4px 8px; }

/* ============ 编辑/删除悬浮按钮 ============ */
.item-actions {
  display: inline-flex;
  gap: 16px;
  opacity: 1;
  align-items: center;
}
.card-editable { position: relative; }
/* 绿色文本操作按钮：编辑 / 删除 */
.btn-text {
  background: transparent;
  border: none;
  color: #10b981;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 2px;
  font-family: inherit;
}
.btn-text:hover { color: #0c8f6a; text-decoration: underline; }
.btn-text.del { color: #ef4444; }
.btn-text.del:hover { color: #c53030; }
/* 卡片底部操作行：原按钮与编辑/删除并排 */
.card-foot { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.foot-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mini-btn {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e3e6ec;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.mini-btn:hover { border-color: #7c5cff; color: #7c5cff; }
.mini-btn.del:hover { border-color: #ff5b5b; color: #ff5b5b; }
tr.card-editable .item-actions { position: static; opacity: 1; }
.chat-item .item-actions, .timeline-item .item-actions { position: absolute; top: 12px; right: 12px; }

/* ============ 欢迎区 ============ */
.hero {
  background: linear-gradient(120deg, #7c5cff 0%, #5b8dff 100%);
  color: #fff;
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 24px;
}
.hero h2 { font-size: 20px; margin-bottom: 6px; }
.hero p { font-size: 13px; opacity: .9; }
.hero-stats { display: flex; gap: 28px; margin-top: 16px; flex-wrap: wrap; }
.hero-stat .num { font-size: 24px; font-weight: 700; }
.hero-stat .lbl { font-size: 12px; opacity: .85; }

/* ============ 快捷功能 ============ */
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.quick-card {
  background: #fff; border: 1px solid #eef0f5;
  border-radius: 10px; padding: 16px;
  text-align: center; cursor: pointer; transition: all .15s;
}
.quick-card:hover { transform: translateY(-2px); border-color: #c7c8ff; box-shadow: 0 6px 16px rgba(124, 92, 255, .08); }
.quick-card .qicon {
  width: 40px; height: 40px; border-radius: 10px;
  background: #eef0ff; color: #5b5bd6;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin: 0 auto 10px;
}
.quick-card.green .qicon { background: #e6f7f0; color: #10b981; }
.quick-card.orange .qicon { background: #fff3e6; color: #f59e0b; }
.quick-card.pink .qicon { background: #ffe6f0; color: #ec4899; }
.quick-card.cyan .qicon { background: #e0f7fa; color: #06b6d4; }
.quick-card.purple .qicon { background: #f3e8ff; color: #a855f7; }
.quick-card .label { font-size: 13px; font-weight: 500; }

/* ============ 资源平台 ============ */
.resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.resource-card {
  background: #fff; border: 1px solid #eef0f5;
  border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  position: relative;
}
.resource-card .header { display: flex; align-items: flex-start; gap: 10px; }
.resource-card .icon-box {
  width: 32px; height: 32px; border-radius: 8px;
  background: #eef0ff; color: #5b5bd6;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
}
.resource-card .title { font-size: 14px; font-weight: 600; }
.resource-card .desc {
  font-size: 12px; color: #6b7280; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.resource-card .open { font-size: 12px; color: #5b5bd6; font-weight: 500; margin-top: auto; cursor: pointer; }
.add-card {
  border: 1px dashed #d6dae3; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; color: #9aa3b2; cursor: pointer;
  background: #fbfcfe; transition: all .15s;
}
.add-card:hover { border-color: #7c5cff; color: #7c5cff; background: #f8f7ff; }
.add-card .inner { text-align: center; }
.add-card .plus { font-size: 24px; line-height: 1; margin-bottom: 6px; }
.add-card .txt { font-size: 12px; }

/* ============ 双栏 ============ */
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.panel { background: #fff; border: 1px solid #eef0f5; border-radius: 12px; padding: 20px; }
.panel-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.panel-sub { font-size: 12px; color: #6b7280; margin-bottom: 16px; }
.template-card {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid #eef0f5; border-radius: 10px; padding: 14px;
}
.template-card .ticon {
  width: 40px; height: 48px; border-radius: 6px;
  background: #eef0ff; color: #5b5bd6;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.template-card .info { flex: 1; min-width: 0; }
.template-card .info .t1 { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.template-card .info .t2 { font-size: 12px; color: #6b7280; line-height: 1.5; }
.template-card .btn-stack { display: flex; gap: 6px; }

/* ============ 记录列表 ============ */
.records-tabs { display: flex; gap: 6px; margin-bottom: 14px; border-bottom: 1px solid #eef0f5; }
.records-tab {
  padding: 8px 12px; font-size: 13px; color: #6b7280;
  border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer;
}
.records-tab.active { color: #5b5bd6; border-color: #5b5bd6; font-weight: 500; }
.record-list { display: flex; flex-direction: column; }
/* 班级分组块 */
.class-block { background: #fff; border: 1px solid #eef0f5; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.class-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.class-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.class-title-toggle { cursor: pointer; user-select: none; }
.class-title-toggle:hover .class-name { color: #10b981; }
.class-title-toggle .chevron { font-size: 13px; color: #8a93a6; transition: transform .15s ease; }
.class-name { font-size: 16px; font-weight: 600; color: #2b2f38; }
.class-grade { font-size: 12px; color: #fff; background: #7c83ff; border-radius: 20px; padding: 2px 10px; }
.class-count { font-size: 12px; color: #8a93a6; background: #f0f2f7; border-radius: 20px; padding: 2px 10px; }
.class-note { font-size: 12px; color: #6b7280; }
.class-actions { display: flex; align-items: center; gap: 8px; }
.student-row .record-cover { width: 40px; height: 40px; font-size: 14px; }
.empty.small { padding: 14px 0; font-size: 12px; }
/* 班级学生分页 */
.roster-pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #eef0f5; }
.roster-pager .pager-info { font-size: 13px; color: #6b7280; }
.roster-pager .btn.sm:disabled { opacity: 0.45; cursor: not-allowed; }
.record-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid #f1f3f7;
  position: relative;
}
.record-item:last-child { border-bottom: none; }
.record-cover {
  width: 80px; height: 50px; border-radius: 6px;
  background: linear-gradient(135deg, #c7c8ff 0%, #5b8dff 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; flex-shrink: 0;
}
.record-cover.green { background: linear-gradient(135deg, #b3f0d5 0%, #10b981 100%); }
.record-cover.orange { background: linear-gradient(135deg, #ffd8a8 0%, #f59e0b 100%); }
.record-cover.pink { background: linear-gradient(135deg, #ffb3d1 0%, #ec4899 100%); }
.record-info { flex: 1; min-width: 0; }
.record-info .name { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.record-info .meta { font-size: 12px; color: #9aa3b2; }
.record-actions { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 14px; font-size: 12px; color: #6b7280; }
.record-actions .time { color: #9aa3b2; }

/* ============ 教研页面 ============ */
.research-banner {
  background: linear-gradient(120deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff; border-radius: 14px; padding: 24px 28px;
  margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.research-banner .left h2 { font-size: 22px; margin-bottom: 6px; }
.research-banner .left p { font-size: 13px; opacity: .9; }
.badge-stat { background: rgba(255,255,255,.18); border-radius: 12px; padding: 16px 22px; text-align: center; }
.badge-stat .v { font-size: 24px; font-weight: 700; }
.badge-stat .l { font-size: 12px; opacity: .85; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid #eef0f5; border-radius: 12px; padding: 18px 20px; }
.stat-card .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.stat-card .top .lbl { font-size: 13px; color: #6b7280; }
.stat-card .top .icn {
  width: 28px; height: 28px; border-radius: 8px;
  background: #eef0ff; color: #5b5bd6;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.stat-card .num { font-size: 22px; font-weight: 700; }
.stat-card .delta { font-size: 12px; color: #10b981; margin-top: 4px; }

.activity-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.activity-card {
  background: #fff; border: 1px solid #eef0f5;
  border-radius: 10px; padding: 16px; position: relative;
}
.activity-card .head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.activity-card .type { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #eef0ff; color: #5b5bd6; }
.activity-card .type.green { background: #e6f7f0; color: #10b981; }
.activity-card .type.orange { background: #fff3e6; color: #f59e0b; }
.activity-card .type.pink { background: #ffe6f0; color: #ec4899; }
.activity-card .date { font-size: 12px; color: #9aa3b2; }
.activity-card h4 { font-size: 15px; margin-bottom: 6px; padding-right: 60px; }
.activity-card .desc { font-size: 12px; color: #6b7280; line-height: 1.6; margin-bottom: 12px; }
.activity-card .foot { display: flex; justify-content: space-between; align-items: center; }
.activity-card .avatars { display: flex; }
.activity-card .av {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -8px;
  background: linear-gradient(135deg, #c7c8ff 0%, #5b8dff 100%);
  color: #fff; font-size: 10px;
  display: flex; align-items: center; justify-content: center;
}
.activity-card .av:first-child { margin-left: 0; }
.activity-card .av.more { background: #f3f5f9; color: #6b7280; }

/* 课题 */
.project-list { display: flex; flex-direction: column; gap: 12px; }
.project-card {
  background: #fff; border: 1px solid #eef0f5;
  border-radius: 10px; padding: 18px; position: relative;
}
.project-card .head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 12px; }
.project-card h4 { font-size: 15px; margin-bottom: 4px; padding-right: 90px; }
.project-card .sub { font-size: 12px; color: #6b7280; }
.progress-row { display: flex; justify-content: space-between; font-size: 12px; color: #6b7280; margin-bottom: 6px; }
.bar { width: 100%; height: 6px; background: #f1f3f7; border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #7c5cff 0%, #5b8dff 100%); border-radius: 4px; }
.project-card .foot { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: #6b7280; flex-wrap: wrap; gap: 8px; }

/* 表格 */
.class-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #eef0f5; border-radius: 10px; overflow: hidden; }
.class-table th, .class-table td { padding: 12px 16px; text-align: left; font-size: 13px; border-bottom: 1px solid #f1f3f7; }
.class-table th { background: #f5f7fb; font-weight: 600; color: #4a5160; }
.class-table tr:last-child td { border-bottom: none; }
.tag { padding: 2px 8px; border-radius: 4px; font-size: 11px; background: #eef0ff; color: #5b5bd6; white-space: nowrap; }
.tag.green { background: #e6f7f0; color: #10b981; }
.tag.orange { background: #fff3e6; color: #f59e0b; }

/* ============ 家校联系 ============ */
.comm-hero {
  background: linear-gradient(120deg, #ec4899 0%, #f97316 100%);
  color: #fff; border-radius: 14px; padding: 24px 28px; margin-bottom: 22px;
}
.comm-hero h2 { font-size: 22px; margin-bottom: 6px; }
.comm-hero p { opacity: .9; font-size: 13px; margin-bottom: 16px; }
.comm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.comm-quick-card { background: rgba(255,255,255,.16); border-radius: 10px; padding: 14px; cursor: pointer; transition: all .15s; }
.comm-quick-card:hover { background: rgba(255,255,255,.28); }
.comm-quick-card .v { font-size: 22px; font-weight: 700; }
.comm-quick-card .l { font-size: 12px; opacity: .9; margin-top: 4px; }

.comm-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.chat-panel {
  background: #fff; border: 1px solid #eef0f5; border-radius: 12px;
  display: flex; flex-direction: column; height: 560px;
}
.chat-head { padding: 14px 18px; border-bottom: 1px solid #f1f3f7; display: flex; justify-content: space-between; align-items: center; }
.chat-head .title { font-size: 15px; font-weight: 600; }
.chat-tabs { display: flex; border-bottom: 1px solid #f1f3f7; }
.chat-tab { flex: 1; text-align: center; padding: 12px; font-size: 13px; color: #6b7280; cursor: pointer; border-bottom: 2px solid transparent; }
.chat-tab.active { color: #ec4899; border-color: #ec4899; font-weight: 500; }
.chat-list { flex: 1; overflow-y: auto; }
.chat-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid #f7f8fa; cursor: pointer; position: relative; }
.chat-item:hover { background: #fbf9fc; }
.chat-item.unread { background: #fff9fb; }
.chat-item .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #ffb3d1 0%, #ec4899 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; position: relative;
}
.chat-item .av.green { background: linear-gradient(135deg, #b3f0d5 0%, #10b981 100%); }
.chat-item .av.blue { background: linear-gradient(135deg, #c7c8ff 0%, #6366f1 100%); }
.chat-item .body { flex: 1; min-width: 0; }
.chat-item .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; gap: 8px; }
.chat-item .name { font-weight: 600; }
.chat-item .time { color: #9aa3b2; font-size: 12px; white-space: nowrap; }
.chat-item .preview { font-size: 12px; color: #6b7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 50px; }
.chat-item .item-actions { opacity: 1; top: 50%; right: 14px; transform: translateY(-50%); }
.chat-item .unread-dot { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #ff5b5b; border: 2px solid #fff; }

.notice-panel {
  background: #fff; border: 1px solid #eef0f5; border-radius: 12px;
  padding: 20px; height: 560px;
  display: flex; flex-direction: column;
}
.notice-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.notice-item { padding: 12px; border-radius: 8px; background: #fbf9fc; border-left: 3px solid #ec4899; position: relative; }
.notice-item.green { border-left-color: #10b981; background: #f4fbf7; }
.notice-item.blue { border-left-color: #6366f1; background: #f5f6ff; }
.notice-item h5 { font-size: 13px; margin-bottom: 4px; padding-right: 56px; }
.notice-item p { font-size: 12px; color: #6b7280; line-height: 1.5; }
.notice-item .meta { font-size: 11px; color: #9aa3b2; margin-top: 6px; }

.meeting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.meeting-card { background: #fff; border: 1px solid #eef0f5; border-radius: 10px; padding: 18px; position: relative; }
.meeting-card .status { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #eef0ff; color: #5b5bd6; margin-bottom: 8px; }
.meeting-card .status.green { background: #e6f7f0; color: #10b981; }
.meeting-card .status.orange { background: #fff3e6; color: #f59e0b; }
.meeting-card h4 { font-size: 15px; margin-bottom: 8px; padding-right: 56px; }
.meeting-card .info-row { font-size: 12px; color: #6b7280; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.meeting-card .progress-row { margin-top: 14px; font-size: 12px; }
.meeting-card .progress-row .num { color: #ec4899; font-weight: 600; }

.growth-list { display: flex; flex-direction: column; gap: 12px; }
.growth-item {
  background: #fff; border: 1px solid #eef0f5; border-radius: 10px;
  padding: 14px 18px; display: flex; align-items: center; gap: 14px;
  position: relative;
}
.growth-item .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #c7c8ff 0%, #6366f1 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; flex-shrink: 0;
}
.growth-item .av.green { background: linear-gradient(135deg, #b3f0d5 0%, #10b981 100%); }
.growth-item .av.pink { background: linear-gradient(135deg, #ffb3d1 0%, #ec4899 100%); }
.growth-item .info { flex: 1; min-width: 0; }
.growth-item .info .name { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.growth-item .info .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.growth-item .info .chip { font-size: 11px; padding: 2px 8px; border-radius: 4px; background: #f5f7fb; color: #6b7280; }
.growth-item .info .chip.green { background: #e6f7f0; color: #10b981; }
.growth-item .info .chip.orange { background: #fff3e6; color: #f59e0b; }
.growth-item .info .chip.pink { background: #ffe6f0; color: #ec4899; }
.growth-item .right { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 14px; font-size: 12px; color: #6b7280; }

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: #eef0f5; }
.timeline-item { position: relative; padding-bottom: 16px; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -18px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: #ec4899; border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ffe6f0;
}
.timeline-item.green::before { background: #10b981; box-shadow: 0 0 0 2px #e6f7f0; }
.timeline-item.blue::before { background: #6366f1; box-shadow: 0 0 0 2px #eef0ff; }
.timeline-item .time { font-size: 12px; color: #9aa3b2; margin-bottom: 4px; }
.timeline-item .content {
  background: #fbf9fc; border-radius: 8px; padding: 10px 12px;
  font-size: 13px; line-height: 1.6; position: relative; padding-right: 56px;
}
.timeline-item.green .content { background: #f4fbf7; }
.timeline-item.blue .content { background: #f5f6ff; }

/* ============ 弹窗 ============ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 22, 40, .45);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff; border-radius: 14px;
  width: 520px; max-width: 100%;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(20, 20, 60, .3);
  animation: pop .25s ease;
}
.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid #f1f3f7;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-head h3 { font-size: 16px; }
.modal-close { font-size: 20px; color: #9aa3b2; cursor: pointer; width: 30px; height: 30px; border-radius: 6px; }
.modal-close:hover { background: #f5f7fb; color: #1f2330; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot {
  padding: 14px 22px;
  border-top: 1px solid #f1f3f7;
  display: flex; justify-content: flex-end; gap: 10px;
}
.confirm-text { font-size: 14px; line-height: 1.7; color: #4a5160; }

/* 附件上传 */
.attachments-group { margin-top: 8px; }
.att-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.att-empty { color: #9aa3b2; font-size: 13px; }
.att-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: #f8f9fc; border-radius: 8px;
  border: 1px solid #eef1f6;
}
.att-icon { font-size: 18px; }
.att-name { flex: 1; font-size: 13px; color: #5b6de3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-name:hover { text-decoration: underline; }
.att-size { font-size: 12px; color: #9aa3b2; }
.att-del {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #9aa3b2; font-size: 18px; line-height: 1;
}
.att-del:hover { background: #ffeaea; color: #e53e3e; }
.att-progress { font-size: 12px; color: #7c5cff; margin-top: 6px; }
.item-attachments { margin-top: 10px; }
.item-att-title { font-size: 12px; color: #9aa3b2; margin-bottom: 6px; }
.item-att-list { display: flex; flex-wrap: wrap; gap: 8px; }
.item-att {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; background: #f0f4ff; border-radius: 16px;
  font-size: 12px; color: #5b6de3; border: 1px solid #e0e7ff;
  max-width: 100%;
}
.item-att-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-att-size { color: #9aa3b2; }
.item-att:hover { background: #e6edff; }

/* Toast 提示 */
.toast {
  position: fixed;
  top: 24px; left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: #1f2330;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 300;
  transition: transform .3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: #10b981; }
.toast.error { background: #e53e3e; }

.empty { padding: 40px 20px; text-align: center; color: #9aa3b2; font-size: 13px; }

/* 响应式 */
@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col, .comm-layout { grid-template-columns: 1fr; }
  .activity-grid { grid-template-columns: 1fr; }
  .meeting-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 成绩分析看板 ============ */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi-card { background: linear-gradient(135deg, #f8fafc, #eef2ff); border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 16px; text-align: center; }
.kpi-v { font-size: 24px; font-weight: 700; color: #1f2a44; line-height: 1.1; }
.kpi-k { font-size: 12px; color: #64748b; margin-top: 4px; }
.kpi-empty { grid-column: 1 / -1; color: #94a3b8; padding: 10px 0; font-size: 13px; }

.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.chart-card { background: #fff; border: 1px solid #eef1f6; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.chart-title { font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 8px; }
.chart-box { min-height: 200px; display: flex; align-items: center; justify-content: center; }
.chart-empty { color: #94a3b8; font-size: 13px; padding: 30px 0; }
.c-svg { width: 100%; height: auto; max-height: 220px; }
.c-grid { stroke: #eef2f7; stroke-width: 1; fill: none; }
.c-axis { stroke: #cbd5e1; stroke-width: 1.5; }
.c-val { font-size: 10px; fill: #475569; text-anchor: middle; font-weight: 600; }
.c-xl { font-size: 10px; fill: #64748b; text-anchor: middle; }
.c-yl { font-size: 9px; fill: #94a3b8; text-anchor: end; }
.pie-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.c-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.c-leg-item { font-size: 12px; color: #475569; display: inline-flex; align-items: center; gap: 5px; }
.c-leg-item i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ============ 试卷得分情况分析 ============ */
.kpi-grid-4 { grid-template-columns: repeat(4, 1fr); }
.paper-list { display: flex; flex-direction: column; gap: 18px; }
.empty-block { color: #94a3b8; font-size: 13px; padding: 24px 0; text-align: center; background: #f8fafc; border: 1px dashed #e2e8f0; border-radius: 12px; }
.paper-card { background: #fff; border: 1px solid #eef1f6; border-radius: 16px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(16,24,40,.05); }
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.paper-title { font-size: 17px; font-weight: 700; color: #1f2a44; }
.paper-meta { font-size: 12.5px; color: #64748b; margin-top: 4px; line-height: 1.5; }
.paper-actions { display: flex; gap: 12px; flex-shrink: 0; }
.paper-list .item-attachments { margin: 4px 0 14px; }
.qtable-wrap { overflow-x: auto; }
.qtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.qtable th, .qtable td { border: 1px solid #eef1f6; padding: 7px 10px; text-align: left; }
.qtable th { background: #f8fafc; color: #475569; font-weight: 600; white-space: nowrap; }
.qtable td .q-note, .q-note { color: #b45309; }
.qtable input.qf { width: 100%; border: 1px solid #e2e8f0; border-radius: 6px; padding: 5px 7px; font-size: 13px; box-sizing: border-box; }
.qtable input.qf.num { width: 72px; }
.hint { font-size: 12px; color: #94a3b8; margin: 6px 0 0; }
.form-row { display: flex; gap: 14px; }
.form-row .form-group { flex: 1; }

@media (max-width: 720px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
  .kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { flex-direction: column; gap: 0; }
}
.quality-bar { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px; padding: 9px 13px; background: #f8fafc; border-radius: 10px; }
.q-badge { color: #fff; font-weight: 700; padding: 4px 11px; border-radius: 7px; font-size: 13px; white-space: nowrap; }
.q-comment { color: #475569; font-size: 13px; line-height: 1.5; }
.kpi-grid.kpi-grid-4 { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

/* ===== 测试（考试）选择器 ===== */
.test-chips { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.test-empty { color: #94a3b8; font-size: 13px; padding: 6px 2px; }
.test-chip { display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: #fff; border: 1.5px solid #e7ebf2; border-radius: 12px; padding: 11px 14px; min-width: 200px;
  cursor: pointer; transition: all .15s ease; }
.test-chip:hover { border-color: #c3cdf7; box-shadow: 0 2px 10px rgba(59,130,246,.08); }
.test-chip.active { border-color: #4f7cff; background: #f3f7ff; box-shadow: 0 2px 12px rgba(79,124,255,.16); }
.tc-main { min-width: 0; }
.tc-name { font-weight: 700; color: #1f2a44; font-size: 14.5px; }
.tc-meta { font-size: 12px; color: #64748b; margin-top: 2px; }
.tc-actions { display: flex; gap: 6px; flex-shrink: 0; }
.tc-btn { border: none; background: #f1f5fb; color: #475569; border-radius: 8px; width: 30px; height: 30px;
  font-size: 14px; cursor: pointer; transition: all .15s; }
.tc-btn:hover { background: #e2e9f7; color: #2b59ff; }
.tc-btn.del:hover { background: #fde8e8; color: #e23b3b; }
.empty-block { background: #f8fafc; border: 1px dashed #d8deea; border-radius: 14px; padding: 32px; text-align: center; color: #94a3b8; font-size: 14px; }

/* ===== 成绩单条编辑：每题得分网格 ===== */
.score-edit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px 12px; }
.score-edit-grid .se-num { width: 100%; border: 1px solid #d8deea; border-radius: 8px; padding: 7px 9px; font-size: 13px; box-sizing: border-box; text-align: center; }
.score-edit-grid .se-lbl { display: block; font-size: 11px; color: #94a3b8; text-align: center; margin-top: 2px; }

/* ===== 资料库 ===== */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ftab { border: 1px solid #e2e8f0; background: #fff; color: #64748b; border-radius: 16px; padding: 5px 14px; font-size: 13px; cursor: pointer; transition: all .15s; }
.ftab:hover { border-color: #c3cdf7; color: #2b59ff; }
.ftab.active { background: #4f7cff; border-color: #4f7cff; color: #fff; }
.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.material-card { background: #fff; border: 1.5px solid #e7ebf2; border-radius: 14px; padding: 14px 16px; transition: all .15s; }
.material-card:hover { border-color: #c3cdf7; box-shadow: 0 4px 16px rgba(59,130,246,.1); }
.mc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mc-cat { display: inline-block; background: #eef3ff; color: #3b5bdb; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 10px; }
.mc-actions { display: flex; gap: 8px; }
.mc-name { font-weight: 700; color: #1f2a44; font-size: 15px; line-height: 1.4; }
.mc-meta { font-size: 12.5px; color: #64748b; margin-top: 4px; }
.mc-files { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.mat-file { display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: #f7f9fc; border: 1px solid #eef1f6; border-radius: 9px; text-decoration: none; transition: all .15s; }
.mat-file:hover { background: #eef3ff; border-color: #d2def9; }
.mf-icon { font-size: 20px; flex-shrink: 0; }
.mf-name { flex: 1; font-size: 13px; color: #2b59ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-size { font-size: 12px; color: #94a3b8; flex-shrink: 0; }
.mat-nofile { font-size: 12.5px; color: #94a3b8; }

/* ============ 质量分析报告 ============ */
.report-modal { width: 880px; max-width: 96vw; }
.modal-head-actions { display: flex; align-items: center; gap: 8px; }
.btn-mini { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; border: 1px solid #d8e0ee; background: #fff; color: #334155; cursor: pointer; }
.btn-mini:hover { background: #eef3ff; border-color: #c3d4f7; }
.rep-has { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #ecfdf5; border: 1px solid #bbf7d0; color: #065f46; padding: 9px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 13.5px; }
.rep-hint { background: #eff6ff; border: 1px dashed #bfdbfe; color: #1e40af; padding: 9px 14px; border-radius: 10px; margin-bottom: 12px; font-size: 13px; }
.report-doc { font-size: 13.5px; line-height: 1.72; color: #1e293b; }
.rep-title { font-size: 19px; font-weight: 700; text-align: center; margin-bottom: 4px; }
.rep-sub { text-align: center; color: #64748b; font-size: 12px; margin-bottom: 14px; }
.rep-sec { margin-bottom: 14px; }
.rep-h { font-size: 15px; font-weight: 700; border-left: 4px solid #3b82f6; padding-left: 9px; margin: 8px 0 6px; }
.report-doc p { margin: 5px 0; }
.report-doc ul { margin: 5px 0 6px 20px; padding: 0; }
.report-doc li { margin: 3px 0; }
.rep-tbl { border-collapse: collapse; width: 100%; margin: 6px 0; font-size: 13px; }
.rep-tbl th, .rep-tbl td { border: 1px solid #cbd5e1; padding: 5px 10px; text-align: left; }
.rep-tbl th { background: #f1f5f9; font-weight: 600; }
.rep-note { color: #64748b; font-size: 12px; }

/* ==================== 成绩明细：收起/展开、滑动卡片、一致性校验 ==================== */
#scoreDetailToggle { min-width: 150px; }
.score-view-switch { display: flex; gap: 6px; margin: 10px 0 8px; }
.score-view-switch .seg { border: 1px solid #e2e8f0; background: #f8fafc; color: #475569; border-radius: 8px; padding: 6px 14px; font-size: 13px; cursor: pointer; transition: .15s; }
.score-view-switch .seg.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }
/* 成绩批量操作工具栏 */
.score-bulk { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 2px 4px; padding: 8px 10px; background: #fef2f2; border: 1px dashed #fecaca; border-radius: 10px; }
.score-bulk-label { font-size: 12px; color: #b91c1c; font-weight: 600; }
.score-bulk .btn.sm { border: 1px solid #fca5a5; background: #fff; color: #b91c1c; }
.score-bulk .btn.sm:hover { background: #fee2e2; }
.score-bulk .btn.sm.danger { border-color: #ef4444; background: #ef4444; color: #fff; }
.score-bulk .btn.sm.danger:hover { background: #dc2626; }

/* AI分析 按钮：默认灰色禁用，选中测试后蓝色可用，进入分析高亮 */
.ai-analyze-btn { border: 1px solid #cbd5e1; background: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.ai-analyze-btn:not([disabled]) { background: #3b82f6; border-color: #3b82f6; color: #fff; cursor: pointer; }
.ai-analyze-btn:not([disabled]):hover { background: #2563eb; }
.ai-analyze-btn.active { background: #16a34a; border-color: #16a34a; color: #fff; }
.ai-analyze-btn.active:hover { background: #15803d; }

/* AI分析 提示 */
.ai-hint { margin: 14px 2px; padding: 14px 18px; background: #eff6ff; border: 1px dashed #93c5fd; border-radius: 12px; color: #1d4ed8; font-size: 14px; }

/* 试卷及答案 / 上传学生成绩 面板 */
.score-upload-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 6px; }
.su-summary { margin: 14px 0 10px; padding: 10px 14px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; color: #166534; font-size: 13px; }
.upload-zone { display: flex; gap: 18px; flex-wrap: wrap; }
.upload-zone .uz-item { flex: 1; min-width: 220px; padding: 16px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; text-align: center; }
.upload-zone .uz-title { font-weight: 600; color: #334155; margin-bottom: 10px; }
.upload-zone .uz-item input[type=file] { margin: 0 auto 10px; max-width: 100%; }
.paper-files { display: flex; gap: 16px; flex-wrap: wrap; }
.paper-file-card { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 260px; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.pf-icon { font-size: 28px; line-height: 1; }
.pf-info { flex: 1; min-width: 0; }
.pf-label { font-size: 12px; color: #64748b; }
.pf-name { font-weight: 600; color: #1e293b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-size { font-size: 12px; color: #94a3b8; }
.pf-actions { display: flex; gap: 6px; align-items: center; }


/* 学生考试情况分析（弹窗） */
.sa-head { font-size: 15px; font-weight: 600; color: #0f172a; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; }
.sa-sec { margin-bottom: 14px; }
.sa-sec h4 { margin: 0 0 6px; font-size: 14px; color: #1e3a8a; }
.sa-sec p { margin: 4px 0; color: #334155; line-height: 1.6; }
.sa-list { margin: 4px 0; padding-left: 20px; }
.sa-list li { margin: 4px 0; color: #334155; line-height: 1.6; }
.sa-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; background: #fef3c7; color: #92400e; border-radius: 999px; font-size: 12px; }
.rep-tbl td.warn { color: #dc2626; font-weight: 600; }
.rep-tbl td.ok { color: #16a34a; font-weight: 600; }
.rep-tbl tr.sa-cur td { background: #eff6ff; font-weight: 600; }
.modal-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.modal-actions .modal-close { position: static; margin-left: 0; }

/* 滑动条导航 */
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 6px; }
.slider-pos { font-size: 13px; color: #334155; font-weight: 600; min-width: 160px; text-align: center; }
.score-slider { width: 100%; margin: 4px 0 12px; cursor: pointer; accent-color: #3b82f6; }

/* 横向滑动卡片容器 */
.score-slider-cards { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scroll-behavior: smooth; scroll-snap-type: x mandatory; }
.score-slider-cards::-webkit-scrollbar { height: 8px; }
.score-slider-cards::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.sc-card { flex: 0 0 280px; scroll-snap-align: center; border: 1px solid #e6ebf2; border-radius: 12px; padding: 12px 14px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.05); transition: .15s; }
.sc-card.focus { border-color: #3b82f6; box-shadow: 0 4px 14px rgba(59,130,246,.18); }
.sc-head { display: flex; align-items: baseline; gap: 8px; border-bottom: 1px dashed #eef1f6; padding-bottom: 8px; margin-bottom: 8px; }
.sc-name { font-size: 16px; font-weight: 700; color: #1e293b; }
.sc-meta { font-size: 12px; color: #94a3b8; flex: 1; }
.sc-total { font-size: 18px; font-weight: 800; color: #2563eb; }
.sc-total small { font-size: 11px; color: #94a3b8; font-weight: 500; margin-left: 1px; }
.sc-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.sc-cell { display: flex; flex-direction: column; align-items: center; }
.sc-cell-v { font-size: 13px; font-weight: 600; color: #334155; }
.sc-bar { width: 100%; height: 5px; background: #eef2f7; border-radius: 3px; overflow: hidden; margin-top: 3px; }
.sc-bar i { display: block; height: 100%; background: #0ea5e9; border-radius: 3px; }
.sc-bigs { display: flex; flex-direction: column; gap: 5px; }
.sc-big { font-size: 12px; color: #475569; }
.sc-big-title { font-weight: 700; color: #334155; margin-right: 6px; }
.sc-big-item { display: inline-block; margin: 0 8px 2px 0; }
.sc-big-item b { color: #8b5cf6; }
.sc-foot { display: flex; gap: 14px; margin-top: 10px; border-top: 1px dashed #eef1f6; padding-top: 8px; }

/* 一致性校验面板 */
.consistency-box { margin: 6px 0 12px; }
.cons-head { font-size: 13px; font-weight: 700; color: #b45309; margin-bottom: 6px; }
.cons-ok { font-size: 13px; color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 8px 10px; }
.cons-group { border: 1px solid #f1e6d0; border-radius: 8px; padding: 6px 8px; margin-bottom: 8px; background: #fffdf7; }
.cons-gtitle { font-size: 13px; font-weight: 700; color: #92400e; margin-bottom: 4px; }
.cons-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; padding: 4px 6px; border-radius: 6px; }
.cons-row.warn { background: #fff7ed; color: #c2410c; }
.cons-row.info { background: #f8fafc; color: #64748b; }
.cons-acts { display: flex; gap: 10px; flex-shrink: 0; }
