/* =====================================================================
   深大附中智慧校园综合管理平台 · 设计系统 V2
   简约现代科技风：顶部导航 / 卡片式布局 / Indigo 主色 / 大圆角 / 柔和阴影
   ===================================================================== */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-active: #3730a3;
  --primary-light: #eef2ff;
  --primary-border: #c7d2fe;
  --accent: #06b6d4;
  --accent-light: #ecfeff;
  --violet: #8b5cf6;
  --violet-light: #f5f3ff;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfbfe;
  --border: #e8eaf3;
  --border-light: #f0f1f7;

  --text: #171a2f;
  --text-2: #565b75;
  --text-3: #969cb3;

  --success: #0ea371;
  --success-bg: #e7f8f1;
  --warning: #d97706;
  --warning-bg: #fdf3e3;
  --danger: #e5484d;
  --danger-bg: #fdecec;
  --info: #2e7ce0;
  --info-bg: #e9f2fd;
  --gray-bg: #f2f3f8;

  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 7px;

  --shadow-xs: 0 1px 2px rgba(23, 26, 47, 0.05);
  --shadow-sm: 0 1px 3px rgba(23, 26, 47, 0.06), 0 1px 2px rgba(23, 26, 47, 0.04);
  --shadow-md: 0 4px 14px rgba(23, 26, 47, 0.07), 0 2px 4px rgba(23, 26, 47, 0.04);
  --shadow-lg: 0 14px 36px rgba(23, 26, 47, 0.12), 0 4px 10px rgba(23, 26, 47, 0.05);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Cascadia Code, Consolas, monospace;

  --nav-h: 62px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.55;
}
a { color: var(--primary); text-decoration: none; transition: color 0.15s var(--ease); }
a:hover { color: var(--primary-hover); }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #cdd2e0; border-radius: 5px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #aeb5c8; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* =====================================================================
   登录页
   ===================================================================== */
.login-page { min-height: 100vh; display: flex; background: #fff; }
.login-brand {
  width: 44%; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #1e1b4b 0%, #312e81 42%, #4f46e5 100%);
  color: #fff; padding: 56px 60px; display: flex; flex-direction: column;
}
.login-brand::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 320px at 85% 12%, rgba(6, 182, 212, 0.22), transparent 60%),
    radial-gradient(500px 300px at 10% 88%, rgba(139, 92, 246, 0.25), transparent 60%);
}
.login-brand::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, transparent, black 30%, transparent 95%);
}
.login-brand > * { position: relative; z-index: 1; }
.login-brand .school { font-size: 14px; letter-spacing: 3px; opacity: 0.72; margin-bottom: 10px; font-weight: 500; }
.login-brand .platform { font-size: 31px; font-weight: 700; letter-spacing: 0.5px; line-height: 1.32; }
.login-brand .slogan { margin-top: 14px; font-size: 13.5px; opacity: 0.62; letter-spacing: 1.5px; }
.login-brand .features { margin-top: auto; }
.login-brand .features .f-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 0; font-size: 13.5px; opacity: 0.9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.login-brand .features .f-item:last-child { border-bottom: none; }
.login-brand .features .dot {
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex: none;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8);
}
.login-brand .copyright { margin-top: 30px; font-size: 12px; opacity: 0.45; }
.login-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 372px; }
.login-box h2 { font-size: 23px; font-weight: 700; margin-bottom: 6px; letter-spacing: 0.3px; }
.login-box .sub { color: var(--text-3); font-size: 13px; margin-bottom: 28px; }
.login-box .form-item { margin-bottom: 18px; }
.login-box .btn-block { width: 100%; height: 40px; font-size: 14px; font-weight: 600; border-radius: var(--radius); }
.login-tip {
  margin-top: 18px; padding: 11px 13px; background: var(--primary-light); border: 1px solid var(--primary-border);
  border-radius: var(--radius); font-size: 12px; color: var(--primary-hover); line-height: 1.75;
}
.login-error {
  margin-bottom: 14px; padding: 10px 13px; background: var(--danger-bg); border: 1px solid #f5c6cb;
  border-radius: var(--radius); font-size: 12.5px; color: var(--danger); display: none;
}
.login-alt { margin-top: 16px; text-align: center; }
.login-alt a { font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.login-alt a:hover { color: var(--primary); }
.login-alt .wx-ico {
  width: 16px; height: 16px; border-radius: 4px; background: #07c160; display: inline-flex;
  align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: 700;
}

/* =====================================================================
   应用框架：顶部导航 + 内容区（无侧边栏）
   ===================================================================== */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topnav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 26px; gap: 26px;
}
.topnav .logo { display: flex; align-items: center; gap: 11px; flex: none; cursor: pointer; }
.topnav .logo .mark {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.35);
}
.topnav .logo .name { font-size: 15.5px; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; }
.topnav .logo .name small { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-3); letter-spacing: 1.5px; }

.nav-menu { display: flex; align-items: center; gap: 2px; height: 100%; flex: 1; min-width: 0; }
.nav-item {
  display: flex; align-items: center; gap: 6px; padding: 0 13px; height: 100%; font-size: 13.5px;
  color: var(--text-2); cursor: pointer; position: relative; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color 0.15s var(--ease);
}
.nav-item:hover { color: var(--primary); }
.nav-item.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.nav-item .caret { font-size: 9px; opacity: 0.55; margin-left: 1px; }
.nav-item .ico { font-size: 14px; opacity: 0.85; }

.nav-dropdown {
  position: absolute; top: calc(var(--nav-h) - 4px); left: 0; min-width: 178px; background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 7px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.16s var(--ease); z-index: 120;
}
.nav-item-wrap { position: relative; height: 100%; }
.nav-item-wrap:hover .nav-dropdown, .nav-dropdown.open { opacity: 1; visibility: visible; transform: none; }
.nav-menu.suppress-hover .nav-dropdown { opacity: 0 !important; visibility: hidden !important; transform: translateY(6px) !important; }
.nav-dropdown .dd-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-2); cursor: pointer; transition: all 0.12s var(--ease);
}
.nav-dropdown .dd-item:hover { background: var(--primary-light); color: var(--primary); }
.nav-dropdown .dd-item.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-dropdown .dd-item .k-ico {
  width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; background: var(--gray-bg); color: var(--text-2); flex: none;
}
.nav-dropdown .dd-item:hover .k-ico, .nav-dropdown .dd-item.active .k-ico { background: #fff; color: var(--primary); }

.topnav .nav-right { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.topnav .env-chip {
  display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--success);
  background: var(--success-bg); border: 1px solid #bfe8d6; padding: 4px 10px; border-radius: 99px; font-weight: 600;
}
.topnav .env-chip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px rgba(14, 163, 113, 0.6); }
.user-menu { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 5px 9px; border-radius: 99px; position: relative; transition: background 0.15s; }
.user-menu:hover { background: var(--gray-bg); }
.user-menu .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #4f46e5, #06b6d4);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700;
}
.user-menu .uname { font-size: 13px; font-weight: 500; }
.user-dropdown {
  position: absolute; top: 46px; right: 0; width: 192px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 6px; display: none; z-index: 130;
}
.user-dropdown.open { display: block; animation: ddIn 0.16s var(--ease); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.user-dropdown .dd-head { padding: 9px 11px 8px; border-bottom: 1px solid var(--border-light); margin-bottom: 5px; }
.user-dropdown .dd-head .n { font-weight: 700; font-size: 13px; }
.user-dropdown .dd-head .r { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.user-dropdown .dd-item { padding: 8px 11px; font-size: 13px; cursor: pointer; border-radius: var(--radius-sm); display: flex; gap: 8px; align-items: center; color: var(--text-2); }
.user-dropdown .dd-item:hover { background: var(--gray-bg); color: var(--text); }
.user-dropdown .dd-divider { height: 1px; background: var(--border-light); margin: 5px 0; }

.nav-burger { display: none; border: none; background: none; font-size: 19px; cursor: pointer; color: var(--text-2); padding: 6px; border-radius: var(--radius-sm); }
.nav-burger:hover { background: var(--gray-bg); }

.content { flex: 1; width: 100%; max-width: 1440px; margin: 0 auto; padding: 24px 28px 56px; }

/* =====================================================================
   页面通用：页头 / 卡片 / 表格 / 按钮 / 表单 / 标签
   ===================================================================== */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; gap: 16px; }
.page-header .ph-title { font-size: 19px; font-weight: 700; letter-spacing: 0.2px; display: flex; align-items: center; gap: 9px; }
.page-header .ph-title .ph-ico {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary-light); color: var(--primary); font-size: 15px;
}
.page-header .ph-desc { font-size: 12.5px; color: var(--text-3); margin-top: 5px; max-width: 760px; line-height: 1.65; }
.page-header .ph-actions { display: flex; gap: 9px; flex: none; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.18s var(--ease);
}
.card + .card { margin-top: 16px; }
.card-header {
  padding: 15px 20px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center;
  justify-content: space-between; font-size: 14.5px; font-weight: 700; letter-spacing: 0.2px;
}
.card-header .ch-sub { font-size: 12px; color: var(--text-3); font-weight: 400; margin-left: 9px; letter-spacing: 0; }
.card-body { padding: 20px; }
.card-body.tight { padding: 0; }
.card-hover:hover { box-shadow: var(--shadow-md); }

.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .tb-spacer { flex: 1; }
.toolbar .tb-label { font-size: 12.5px; color: var(--text-2); }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
table.table th {
  background: var(--surface-2); color: var(--text-2); font-weight: 600; text-align: left;
  padding: 10px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 12.5px;
  letter-spacing: 0.2px;
}
table.table th:first-child { border-radius: var(--radius) 0 0 0; }
table.table th:last-child { border-radius: 0 var(--radius) 0 0; }
table.table td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
table.table tbody tr { transition: background 0.12s; }
table.table tbody tr:hover { background: var(--primary-light); }
table.table tbody tr:last-child td { border-bottom: none; }
table.table .num { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
table.table .ops { white-space: nowrap; }
table.table .ops .btn-text { margin-right: 2px; }
.table-empty { padding: 44px; text-align: center; color: var(--text-3); font-size: 13px; }

.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 12px 18px; border-top: 1px solid var(--border-light); }
.pagination .pg-info { font-size: 12px; color: var(--text-3); margin-right: auto; }
.pagination .pg-btn {
  min-width: 29px; height: 29px; padding: 0 7px; border: 1px solid var(--border); background: #fff;
  border-radius: var(--radius-sm); font-size: 12.5px; cursor: pointer; color: var(--text-2);
  transition: all 0.13s var(--ease);
}
.pagination .pg-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pagination .pg-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pagination .pg-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 33px; padding: 0 15px;
  border-radius: var(--radius); font-size: 13px; cursor: pointer; border: 1px solid var(--border);
  background: #fff; color: var(--text); transition: all 0.15s var(--ease); white-space: nowrap;
  font-family: var(--font); font-weight: 500;
}
.btn:hover { border-color: var(--primary-border); color: var(--primary); background: var(--primary-light); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; box-shadow: 0 4px 14px rgba(79, 70, 229, 0.32); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; font-weight: 600; }
.btn-danger:hover { background: #d13b40; border-color: #d13b40; color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; font-weight: 600; }
.btn-success:hover { background: #0b8f63; color: #fff; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn[disabled]:hover { border-color: var(--border); color: var(--text); background: #fff; }
.btn-sm { height: 27px; padding: 0 11px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-text {
  border: none; background: none; color: var(--primary); cursor: pointer; font-size: 12.5px; padding: 3px 5px;
  font-family: var(--font); border-radius: 5px; transition: background 0.12s;
}
.btn-text:hover { background: var(--primary-light); }
.btn-text.danger { color: var(--danger); }
.btn-text.danger:hover { background: var(--danger-bg); }
.btn-text[disabled] { color: var(--text-3); cursor: not-allowed; background: none; }

.tag {
  display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 99px; font-size: 11.5px;
  line-height: 19px; border: 1px solid transparent; white-space: nowrap; font-weight: 500; letter-spacing: 0.2px;
}
.tag-blue { background: var(--info-bg); color: var(--info); border-color: #cfe2f9; }
.tag-green { background: var(--success-bg); color: var(--success); border-color: #bfe8d6; }
.tag-orange { background: var(--warning-bg); color: var(--warning); border-color: #f3ddb4; }
.tag-red { background: var(--danger-bg); color: var(--danger); border-color: #f5cdcf; }
.tag-gray { background: var(--gray-bg); color: var(--text-2); border-color: var(--border); }
.tag-purple { background: var(--violet-light); color: var(--violet); border-color: #ddd2f7; }
.tag-cyan { background: var(--accent-light); color: #0e8fb8; border-color: #c5eef7; }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.form-item { margin-bottom: 15px; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.form-item label .req { color: var(--danger); margin-right: 2px; }
.form-item input[type="text"], .form-item input[type="password"], .form-item input[type="number"],
.form-item input[type="date"], .form-item select, .form-item textarea {
  width: 100%; height: 34px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 11px;
  font-size: 13px; font-family: var(--font); outline: none; background: #fff; color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-item textarea { height: auto; padding: 8px 11px; resize: vertical; min-height: 74px; line-height: 1.65; }
.form-item input:focus, .form-item select:focus, .form-item textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}
.form-item .fhint { font-size: 11.5px; color: var(--text-3); margin-top: 5px; }
.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }
.filter-bar select, .filter-bar input {
  height: 32px; border: 1px solid var(--border); border-radius: var(--radius); padding: 0 10px;
  font-size: 12.5px; background: #fff; font-family: var(--font); outline: none; min-width: 122px;
  transition: border-color 0.15s, box-shadow 0.15s; color: var(--text);
}
.filter-bar input { min-width: 184px; }
.filter-bar select:focus, .filter-bar input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(23, 26, 47, 0.42); backdrop-filter: blur(3px);
  z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding-top: 8vh; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); width: 580px;
  max-width: 92vw; animation: modalIn 0.18s var(--ease); border: 1px solid rgba(255, 255, 255, 0.6);
}
.modal.wide { width: 800px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-10px) scale(0.99); } to { opacity: 1; transform: none; } }
.modal-header {
  padding: 15px 20px; border-bottom: 1px solid var(--border-light); font-size: 15px; font-weight: 700;
  display: flex; justify-content: space-between; align-items: center; letter-spacing: 0.2px;
}
.modal-header .modal-close {
  border: none; background: none; font-size: 15px; cursor: pointer; color: var(--text-3);
  width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
}
.modal-header .modal-close:hover { background: var(--gray-bg); color: var(--text); }
.modal-body { padding: 20px; max-height: 64vh; overflow-y: auto; }
.modal-footer { padding: 13px 20px; border-top: 1px solid var(--border-light); display: flex; justify-content: flex-end; gap: 9px; }

/* Toast */
.toast-wrap { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 9px; }
.toast {
  padding: 10px 18px; border-radius: 99px; font-size: 13px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 9px; animation: toastIn 0.22s var(--ease); background: #fff;
  border: 1px solid var(--border); font-weight: 500;
}
.toast.success { border-color: #bfe8d6; background: var(--success-bg); color: var(--success); }
.toast.error { border-color: #f5cdcf; background: var(--danger-bg); color: var(--danger); }
.toast.info { border-color: #cfe2f9; background: var(--info-bg); color: var(--info); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* 统计卡片 */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
@media (max-width: 1180px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 16px 18px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: all 0.18s var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); opacity: 0; transition: opacity 0.18s;
}
.stat-card:hover::after { opacity: 1; }
.stat-card .sc-label { font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; gap: 6px; }
.stat-card .sc-value { font-size: 27px; font-weight: 700; margin-top: 5px; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.stat-card .sc-sub { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.stat-card.accent { background: linear-gradient(135deg, #4f46e5, #6d28d9); border-color: transparent; color: #fff; }
.stat-card.accent .sc-label, .stat-card.accent .sc-sub { color: rgba(255, 255, 255, 0.75); }
.stat-card.accent .sc-value { color: #fff; }

/* 描述列表 */
.desc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; }
.desc-list .dl-item { font-size: 13.5px; }
.desc-list .dl-label { color: var(--text-3); font-size: 12px; }
.desc-list .dl-value { margin-top: 3px; font-weight: 500; }

/* 空状态 */
.empty-block { padding: 52px 20px; text-align: center; color: var(--text-3); }
.empty-block .eb-icon { font-size: 36px; opacity: 0.3; margin-bottom: 12px; }
.empty-block .eb-text { font-size: 13px; }

/* 列表（简洁） */
.list-plain { padding: 4px 0; }
.list-plain .lp-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 18px; border-bottom: 1px solid var(--border-light);
  font-size: 13px; transition: background 0.12s;
}
.list-plain .lp-item:last-child { border-bottom: none; }
.list-plain .lp-item:hover { background: var(--surface-2); }
.list-plain .lp-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-plain .lp-time { font-size: 12px; color: var(--text-3); flex: none; font-variant-numeric: tabular-nums; }
.list-plain .lp-badge { flex: none; }

/* =====================================================================
   工作台（仪表盘）
   ===================================================================== */
.dash-hero {
  border-radius: var(--radius-xl); padding: 26px 28px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, #1e1b4b 0%, #312e81 45%, #4f46e5 100%);
  box-shadow: 0 10px 30px rgba(49, 46, 129, 0.35); margin-bottom: 16px;
}
.dash-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 260px at 88% -20%, rgba(6, 182, 212, 0.3), transparent 65%);
}
.dash-hero::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 190px; height: 190px;
  border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: 50%;
}
.dash-hero > * { position: relative; z-index: 1; }
.dash-hero .dh-greet { font-size: 20px; font-weight: 700; letter-spacing: 0.3px; }
.dash-hero .dh-sub { margin-top: 7px; font-size: 12.5px; opacity: 0.72; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dash-hero .dh-sub .chip {
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 3px 11px; border-radius: 99px; font-size: 11.5px; backdrop-filter: blur(4px);
}
.dash-hero .dh-actions { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.dash-hero .dh-actions .ha-btn {
  height: 33px; padding: 0 15px; border-radius: 99px; font-size: 12.5px; cursor: pointer;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); color: #fff;
  display: inline-flex; align-items: center; gap: 7px; transition: all 0.15s var(--ease); font-weight: 500;
}
.dash-hero .dh-actions .ha-btn:hover { background: rgba(255, 255, 255, 0.24); transform: translateY(-1px); }
.dash-hero .dh-actions .ha-btn.solid { background: #fff; color: var(--primary-hover); border-color: #fff; font-weight: 600; }
.dash-hero .dh-actions .ha-btn.solid:hover { background: #f3f4ff; }

.dash-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

/* 模块入口卡片 */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 13px; }
.module-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 18px;
  cursor: pointer; transition: all 0.18s var(--ease); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
}
.module-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.module-card .mc-ico {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff; flex: none; box-shadow: 0 4px 12px rgba(23, 26, 47, 0.18);
}
.module-card .mc-title { font-size: 14px; font-weight: 700; letter-spacing: 0.2px; }
.module-card .mc-desc { font-size: 12px; color: var(--text-3); line-height: 1.6; flex: 1; }
.module-card .mc-go {
  font-size: 12px; color: var(--primary); font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
  opacity: 0; transform: translateX(-4px); transition: all 0.18s var(--ease);
}
.module-card:hover .mc-go { opacity: 1; transform: none; }
.module-card .mc-badge { position: absolute; top: 14px; right: 14px; }

/* 模块图标渐变 */
.gi-edu { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.gi-student { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.gi-moral { background: linear-gradient(135deg, #f43f5e, #ec4899); }
.gi-arts { background: linear-gradient(135deg, #f59e0b, #f97316); }
.gi-growth { background: linear-gradient(135deg, #10b981, #059669); }
.gi-office { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.gi-integration { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.gi-config { background: linear-gradient(135deg, #64748b, #475569); }
.gi-system { background: linear-gradient(135deg, #334155, #1e293b); }
.gi-dashboard { background: linear-gradient(135deg, #4f46e5, #06b6d4); }

/* =====================================================================
   排课工作台
   ===================================================================== */
.workbench { display: grid; grid-template-columns: 252px 1fr; gap: 14px; align-items: start; }
.wb-side { position: sticky; top: calc(var(--nav-h) + 16px); }
.wb-class-list { max-height: 320px; overflow-y: auto; padding: 5px; }
.wb-class-item {
  padding: 9px 13px; cursor: pointer; font-size: 13px; display: flex; justify-content: space-between;
  align-items: center; border-radius: var(--radius-sm); margin-bottom: 2px; transition: all 0.12s var(--ease);
}
.wb-class-item:hover { background: var(--gray-bg); }
.wb-class-item.active { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3); }
.wb-grid-wrap { overflow-x: auto; padding: 4px; }
table.wb-grid { border-collapse: separate; border-spacing: 3px; width: 100%; min-width: 780px; }
table.wb-grid th {
  background: var(--surface-2); padding: 9px 7px; font-size: 12.5px; font-weight: 600; text-align: center;
  color: var(--text-2); border-radius: var(--radius-sm); border: 1px solid var(--border-light);
}
table.wb-grid th.period-col { width: 92px; }
table.wb-grid td { height: 64px; vertical-align: top; padding: 0; }
table.wb-grid td .cell-slot {
  height: 100%; border-radius: var(--radius-sm); border: 1.5px dashed transparent; transition: all 0.13s;
}
table.wb-grid td .cell-slot:hover { border-color: var(--primary-border); background: var(--primary-light); }
table.wb-grid td.drag-over .cell-slot { border-color: var(--primary); background: var(--primary-light); }
table.wb-grid td.period-cell {
  text-align: center; vertical-align: middle; background: var(--surface-2); font-size: 12px;
  color: var(--text-2); border-radius: var(--radius-sm); border: 1px solid var(--border-light); padding: 6px;
}
table.wb-grid td.period-cell .pt-label { font-weight: 700; color: var(--text); font-size: 13px; }
table.wb-grid td.period-cell .pt-time { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
table.wb-grid td .lesson {
  height: 100%; border-radius: var(--radius-sm); padding: 5px 8px; font-size: 12px; cursor: pointer;
  position: relative; border: 1px solid transparent; line-height: 1.38; overflow: hidden;
  transition: all 0.13s var(--ease);
}
table.wb-grid td .lesson:hover { transform: scale(1.015); box-shadow: var(--shadow-sm); z-index: 5; }
table.wb-grid td .lesson .l-course { font-weight: 700; font-size: 12.5px; }
table.wb-grid td .lesson .l-meta { color: var(--text-2); font-size: 11px; margin-top: 1px; }
table.wb-grid td .lesson.locked { border-style: dashed; border-color: var(--warning); }
table.wb-grid td .lesson.locked::after {
  content: "锁"; position: absolute; top: 3px; right: 4px; font-size: 10px; color: var(--warning);
  border: 1px solid currentColor; border-radius: 4px; padding: 0 3px; line-height: 13px; background: #fff;
}
table.wb-grid td .lesson.suspended { opacity: 0.55; text-decoration: line-through; }
.lesson-src-teacher { background: #eef2ff; border-color: #c7d2fe; }
.lesson-src-import { background: #fdf3e3; border-color: #f3ddb4; }
.lesson-src-change { background: #f5f3ff; border-color: #ddd2f7; }
.lesson-src-manual { background: #e7f8f1; border-color: #bfe8d6; }
.wb-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-top: 12px; padding: 0 4px; }
.wb-legend .lg-item { display: flex; align-items: center; gap: 6px; }
.wb-legend .lg-swatch { width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--border); }

/* 冲突面板 */
.conflict-item {
  border: 1px solid #f5cdcf; background: #fffafa; border-radius: var(--radius-lg); padding: 11px 14px;
  margin-bottom: 9px; font-size: 12.5px;
}
.conflict-item .ci-code { font-family: var(--mono); color: var(--danger); font-size: 11px; font-weight: 600; }
.conflict-item .ci-msg { margin-top: 3px; }
.conflict-item .ci-ref { color: var(--text-3); margin-top: 3px; font-size: 11px; }

/* 课表查询网格 */
.tt-grid { border-collapse: separate; border-spacing: 3px; width: 100%; }
.tt-grid th {
  background: var(--surface-2); padding: 8px 7px; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  border-radius: var(--radius-sm); border: 1px solid var(--border-light);
}
.tt-grid td { height: 56px; vertical-align: top; padding: 0; }
.tt-grid .tt-lesson { border-radius: var(--radius-sm); padding: 4px 7px; text-align: left; line-height: 1.32; font-size: 11px; height: 100%; }
.tt-grid .tt-lesson .t-course { font-weight: 700; font-size: 12px; }
.tt-grid .tt-lesson .t-meta { color: var(--text-2); }

/* 步骤条 */
.steps { display: flex; align-items: center; margin-bottom: 20px; }
.steps .step { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-3); }
.steps .step .s-no {
  width: 23px; height: 23px; border-radius: 50%; background: var(--gray-bg); color: var(--text-3);
  display: flex; align-items: center; justify-content: center; font-size: 12px; border: 1px solid var(--border);
  font-weight: 600; transition: all 0.15s;
}
.steps .step.active { color: var(--primary); font-weight: 600; }
.steps .step.active .s-no { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3); }
.steps .step.done { color: var(--success); }
.steps .step.done .s-no { background: var(--success); color: #fff; border-color: var(--success); }
.steps .step-line { flex: 1; height: 1.5px; background: var(--border); margin: 0 13px; border-radius: 2px; }

/* 上传区 */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius-xl); padding: 38px 20px; text-align: center;
  color: var(--text-3); cursor: pointer; transition: all 0.16s var(--ease); background: var(--surface-2);
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--primary); background: var(--primary-light); color: var(--primary); }
.upload-zone .uz-icon { font-size: 31px; margin-bottom: 9px; opacity: 0.6; }

/* 提示条 */
.notice-bar {
  padding: 11px 15px; border-radius: var(--radius-lg); font-size: 12.5px; margin-bottom: 14px; line-height: 1.75;
  border: 1px solid var(--primary-border); background: var(--primary-light); color: var(--primary-hover);
  display: flex; gap: 9px; align-items: flex-start;
}
.notice-bar::before {
  content: "i"; flex: none; width: 16px; height: 16px; border-radius: 50%; background: currentColor;
  color: #fff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  margin-top: 1px; font-style: normal;
}
.notice-bar.warning { border-color: #f3ddb4; background: var(--warning-bg); color: var(--warning); }
.notice-bar.warning::before { content: "!"; }
.notice-bar.danger { border-color: #f5cdcf; background: var(--danger-bg); color: var(--danger); }
.notice-bar.danger::before { content: "!"; }
.notice-bar.success { border-color: #bfe8d6; background: var(--success-bg); color: var(--success); }
.notice-bar.success::before { content: "✓"; font-size: 9px; }

/* 迁移预览 */
.transition-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.tp-box { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 13px 15px; background: var(--surface-2); }
.tp-box h4 { font-size: 12.5px; margin-bottom: 9px; color: var(--text-2); font-weight: 600; }
.tp-box .tp-row { font-size: 13px; padding: 4px 0; display: flex; justify-content: space-between; gap: 10px; }
.tp-box .tp-row .k { color: var(--text-3); }

/* 标签页按钮 */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab-btn {
  cursor: pointer; padding: 9px 15px; border-bottom: 2px solid transparent; font-weight: 500;
  color: var(--text-2); transition: all 0.14s var(--ease); font-size: 13px; border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  display: inline-flex; align-items: center; gap: 6px;
}
.tab-btn:hover { color: var(--primary); background: var(--primary-light); }
.tab-btn.active { color: var(--primary); border-color: var(--primary); font-weight: 700; background: var(--primary-light); }

/* =====================================================================
   安装向导
   ===================================================================== */
.installer { max-width: 900px; margin: 44px auto; padding: 0 20px 60px; }
.installer .brand { text-align: center; margin-bottom: 28px; }
.installer .brand .logo {
  width: 56px; height: 56px; border-radius: 16px; color: #fff; font-size: 23px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 13px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); box-shadow: 0 8px 22px rgba(79, 70, 229, 0.4);
}
.installer .brand h1 { font-size: 22px; font-weight: 700; letter-spacing: 0.3px; }
.installer .brand p { color: var(--text-3); margin-top: 7px; font-size: 12.5px; }
.installer .card { border-radius: var(--radius-xl); overflow: hidden; }
.installer .steps { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 15px 26px; margin-bottom: 0; }
.installer .panel { padding: 30px 34px; min-height: 400px; }
.installer .panel h2 { font-size: 18px; margin-bottom: 7px; font-weight: 700; }
.installer .panel .sub { color: var(--text-3); margin-bottom: 24px; line-height: 1.75; }
.installer .form-item { margin-bottom: 17px; }
.installer .form-item label { font-size: 12.5px; }
.installer .form-item input, .installer .form-item select { height: 37px; }
.installer .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 19px; }
.installer .check-list { margin: 9px 0; }
.installer .check-item {
  display: flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 9px; background: var(--surface-2);
}
.installer .check-item .ic {
  width: 23px; height: 23px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex: none; font-weight: 700;
}
.installer .check-item.ok .ic { background: var(--success-bg); color: var(--success); }
.installer .check-item.fail .ic { background: var(--danger-bg); color: var(--danger); }
.installer .check-item .ci-name { font-weight: 600; }
.installer .check-item .ci-val { color: var(--text-3); font-size: 12px; margin-left: auto; font-variant-numeric: tabular-nums; }
.installer .check-item .ci-hint { font-size: 12px; color: var(--text-3); width: 100%; margin-top: 2px; }
.installer .notice { padding: 11px 15px; border-radius: var(--radius-lg); font-size: 12.5px; line-height: 1.75; margin-bottom: 15px; border: 1px solid var(--primary-border); background: var(--primary-light); color: var(--primary-hover); }
.installer .notice.warn { border-color: #f3ddb4; background: var(--warning-bg); color: var(--warning); }
.installer .notice.danger { border-color: #f5cdcf; background: var(--danger-bg); color: var(--danger); }
.installer .footer {
  display: flex; justify-content: space-between; align-items: center; padding: 15px 34px;
  border-top: 1px solid var(--border); background: var(--surface-2);
}
.installer .btn { height: 36px; padding: 0 20px; border-radius: var(--radius); font-size: 13px; }
.installer .btn-primary { box-shadow: 0 3px 12px rgba(79, 70, 229, 0.3); }
.installer .agree { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); line-height: 1.75; }
.installer .agree input { margin-top: 3px; }
.installer .done-icon { text-align: center; padding: 34px 0 12px; }
.installer .done-icon .c {
  width: 68px; height: 68px; border-radius: 50%; background: var(--success-bg); color: var(--success);
  font-size: 31px; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(14, 163, 113, 0.08);
}
.installer .demo-opt {
  display: flex; gap: 11px; align-items: flex-start; padding: 15px; border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 11px; cursor: pointer; transition: all 0.15s var(--ease);
}
.installer .demo-opt:hover { border-color: var(--primary-border); }
.installer .demo-opt.selected { border-color: var(--primary); background: var(--primary-light); }
.installer .demo-opt input { margin-top: 3px; }
.installer .demo-opt .dt { font-weight: 700; font-size: 13.5px; }
.installer .demo-opt .dd { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.7; }
.installer .alert-error {
  display: none; padding: 11px 15px; border-radius: var(--radius-lg); font-size: 12.5px; margin-bottom: 15px;
  border: 1px solid #f5cdcf; background: var(--danger-bg); color: var(--danger);
}
.installer .port-note { font-size: 12px; color: var(--warning); margin-top: 7px; display: none; }

/* =====================================================================
   响应式
   ===================================================================== */
@media (max-width: 1080px) {
  .nav-menu { display: none; }
  .nav-burger { display: block; }
  .nav-menu.mobile-open {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff;
    flex-direction: column; height: auto; padding: 10px 16px 16px; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg); gap: 2px;
  }
  .nav-menu.mobile-open .nav-item-wrap { height: auto; }
  .nav-menu.mobile-open .nav-item { height: 42px; border-bottom: none; border-radius: var(--radius-sm); padding: 0 10px; }
  .nav-menu.mobile-open .nav-dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; padding: 0 0 4px 20px; min-width: 0;
  }
  .topnav .logo .name { display: none; }
  .workbench { grid-template-columns: 1fr; }
  .wb-side { position: static; }
}
@media (max-width: 900px) {
  .login-brand { display: none; }
  .login-panel { padding: 26px; }
  .content { padding: 18px 16px 48px; }
  .dash-grid { grid-template-columns: 1fr; }
  .desc-list { grid-template-columns: 1fr 1fr; }
  .transition-preview { grid-template-columns: 1fr; }
}
