:root {
  --bg0: #f5f8ff;
  --bg1: #eef3ff;
  --glass: rgba(255, 255, 255, 0.86);
  --glass-strong: #ffffff;
  --line: #e4e9f5;
  --line-strong: #c9d4f2;
  --ink: #1e293b;
  --muted: #64748b;
  --cyan: #0891b2;
  --blue: #2563eb;
  --violet: #7c3aed;
  --danger: #dc2626;
  --green: #16a34a;
  --navy: #0b1f3a;
  --grad-main: linear-gradient(135deg, #06b6d4 0%, #2563eb 46%, #7c3aed 100%);
  --grad-hero: linear-gradient(150deg, #0b1f3a 0%, #123b74 46%, #3b1d8f 100%);
  --radius: 20px;
  --shadow: 0 20px 50px rgba(37, 63, 128, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 620px at 10% -10%, rgba(6, 182, 212, 0.16), transparent 58%),
    radial-gradient(1000px 640px at 100% 0%, rgba(124, 58, 237, 0.14), transparent 55%),
    linear-gradient(160deg, var(--bg0), var(--bg1));
  background-attachment: fixed;
  line-height: 1.6;
}
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }

/* 背景装饰 */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 72%);
}
.bg-orb { position: fixed; z-index: -2; border-radius: 50%; filter: blur(70px); opacity: 0.5; pointer-events: none; }
.orb-1 { width: 420px; height: 420px; left: -120px; top: -80px; background: radial-gradient(circle, rgba(6,182,212,0.4), transparent 70%); }
.orb-2 { width: 380px; height: 380px; right: -90px; top: 18%; background: radial-gradient(circle, rgba(124,58,237,0.36), transparent 70%); }
.orb-3 { width: 360px; height: 360px; left: 30%; bottom: -140px; background: radial-gradient(circle, rgba(37,99,235,0.34), transparent 70%); }

/* 按钮 */
.btn { border: 0; border-radius: 999px; padding: 10px 18px; font-size: 14px; cursor: pointer; font-weight: 600; transition: transform 0.15s, box-shadow 0.2s, background 0.2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-main); color: #fff; box-shadow: 0 10px 26px rgba(37,99,235,0.28); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(6,182,212,0.36); }
.btn-ghost { background: #eef2f9; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: #e4e9f5; }
.btn-danger { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }
.btn-danger:hover { background: #fecaca; }
.btn-block { width: 100%; padding: 13px; margin-top: 6px; }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 999px; }
.error-msg { margin-top: 14px; background: #fee2e2; color: var(--danger); padding: 11px 13px; border-radius: 12px; font-size: 13px; border: 1px solid #fecaca; }

/* ============ 登录页（全屏 Hero + 玻璃登录卡） ============ */
.login-viewport {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 18px clamp(14px, 4vw, 48px) 22px;
  color: #fff;
}
.login-bg { position: absolute; inset: 0; overflow: hidden; }
.login-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.login-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.55) 100%);
}
.login-viewport > * { position: relative; z-index: 1; }

.login-top {
  width: min(1180px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  flex-wrap: wrap;
  margin: 4px auto 10px;
}
.glass-pill {
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}
.login-brand { display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 9px; }
.login-brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, #22d3ee, #818cf8);
  color: #fff; font-weight: 900; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.login-brand-meta { display: flex; flex-direction: column; line-height: 1.4; }
.login-brand-meta strong { font-size: 15px; font-weight: 800; letter-spacing: 1px; }
.login-brand-meta em { font-style: normal; font-size: 9px; letter-spacing: 2.4px; opacity: 0.8; text-transform: uppercase; }

.role-tabs {
  display: flex; align-items: center; gap: 2px; padding: 6px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.role-tab {
  border: 0; background: transparent; cursor: pointer;
  color: rgba(255, 255, 255, 0.9); font-size: 14px; font-weight: 600;
  letter-spacing: 1px; padding: 9px 20px; border-radius: 999px;
  white-space: nowrap; transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.role-tab:hover { background: rgba(255, 255, 255, 0.14); }
.role-tab.active { background: #1a1a1a; color: #fff; font-weight: 700; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3); }

.login-stage {
  width: min(1180px, 100%);
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(370px, 430px);
  gap: clamp(26px, 4.5vw, 60px);
  align-items: center;
  margin: 0 auto;
  padding: 22px 0 16px;
}
.login-copy { max-width: 620px; }
.login-eyebrow {
  margin: 0 0 14px; font-size: clamp(11px, 1.3vw, 14px); font-weight: 600;
  letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  animation: rise 0.6s ease both;
}
.login-title {
  margin: 0; font-size: clamp(2rem, 5.4vw, 4rem); font-weight: 900;
  letter-spacing: 0.14em; line-height: 1.16; text-transform: uppercase;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.42);
  animation: rise 0.6s ease 0.08s both;
}
.login-sub {
  margin: 14px 0 0; font-size: 15px; letter-spacing: 2px; color: rgba(255, 255, 255, 0.88);
  animation: rise 0.6s ease 0.16s both;
}

.login-features {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin-top: 30px;
  animation: rise 0.6s ease 0.24s both;
}
.feature-card {
  display: flex; align-items: center; gap: 11px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 20px; padding: 12px 15px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.feature-card:hover { transform: scale(1.02); background: rgba(255, 255, 255, 0.2); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22); }
.feature-ico {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  background: rgba(255, 255, 255, 0.18); font-size: 19px;
  display: flex; align-items: center; justify-content: center;
}
.feature-txt { display: flex; flex-direction: column; min-width: 0; }
.feature-txt b { font-size: 14px; letter-spacing: 1px; line-height: 1.4; }
.feature-txt small { color: rgba(255, 255, 255, 0.72); font-size: 11px; margin-top: 1px; }

.glass-card {
  background: rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 24px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}
.login-card { padding: 28px 26px 22px; animation: rise 0.7s ease both; }
.login-card-head h2 { margin: 0 0 5px; font-size: 24px; font-weight: 800; letter-spacing: 2px; color: #fff; }
.login-card-head p { margin: 0 0 20px; font-size: 13px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.75); }

.login-form label { display: block; font-size: 13px; color: rgba(255, 255, 255, 0.92); margin-bottom: 13px; letter-spacing: 0.4px; }
.login-form input {
  width: 100%; margin-top: 6px; padding: 12px 15px;
  background: rgba(8, 14, 30, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px; color: #fff; font-size: 14px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.login-form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.login-form input:focus {
  outline: none; border-color: rgba(255, 255, 255, 0.92);
  background: rgba(8, 14, 30, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.16);
}
.login-card .btn-primary {
  background: #fff; color: #1a1a1a; border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}
.login-card .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32); }
.login-card .hint { font-size: 12px; color: rgba(255, 255, 255, 0.8); text-align: center; line-height: 1.7; margin: 12px 0 0; }
.login-card .error-msg { margin-top: 14px; background: rgba(190, 24, 24, 0.24); border: 1px solid rgba(248, 113, 113, 0.5); color: #fff; padding: 11px 13px; border-radius: 14px; font-size: 13px; }

/* 演示账号速查 */
.demo-accounts { margin-top: 8px; }
.demo-accounts summary {
  cursor: pointer; text-align: center; font-size: 12px; letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.82); padding: 5px 12px; border-radius: 999px;
  list-style: none; transition: background 0.2s ease, color 0.2s ease;
  -webkit-user-select: none; user-select: none;
}
.demo-accounts summary::-webkit-details-marker { display: none; }
.demo-accounts summary:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.demo-accounts-list {
  display: flex; flex-direction: column; gap: 6px; margin-top: 10px;
  padding: 11px 13px; max-height: 260px; overflow: auto;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px; font-size: 12px; text-align: left;
}
.demo-line {
  display: flex; align-items: baseline; flex-wrap: wrap;
  gap: 3px 7px; color: rgba(255, 255, 255, 0.92); line-height: 1.7;
}
.demo-line b { font-weight: 700; }
.demo-sep { opacity: 0.55; }
.demo-classes { color: rgba(255, 255, 255, 0.78); }
.demo-line code {
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff; font-size: 11px; padding: 0 8px; border-radius: 999px; letter-spacing: 0.3px;
}
.login-footer {
  width: 100%; text-align: center; padding-top: 8px;
  font-size: 12px; letter-spacing: 3px; color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* 强制改密 */
.change-pw-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.change-pw-card { width: 460px; max-width: 100%; background: var(--glass-strong); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); text-align: center; }
.change-pw-icon { font-size: 40px; }
.change-pw-card h2 { margin: 12px 0 8px; font-size: 22px; }
.change-pw-card p { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.change-pw-card label { display: block; text-align: left; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.change-pw-card input { width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; background: #f8fafd; }
.change-pw-card input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(6,182,212,0.14); }

/* ============ 顶栏 ============ */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 26px; background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.topbar-left { display: flex; align-items: center; gap: 14px; }
.topbar-logo { width: 46px; height: 46px; border-radius: 13px; background: var(--grad-main); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; box-shadow: 0 8px 20px rgba(37,99,235,0.28); }
.topbar-title { font-size: 17px; font-weight: 800; letter-spacing: 1px; }
.topbar-sub { font-size: 11px; color: var(--muted); letter-spacing: 1px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.role-chip { background: rgba(6,182,212,0.14); color: var(--cyan); font-size: 12px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(6,182,212,0.4); }
.container { max-width: 1200px; margin: 0 auto; padding: 26px 20px 80px; }

/* ============ 画像主体 ============ */
.profile-hero { position: relative; overflow: hidden; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.profile-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-main); }
.profile-hero-main { position: relative; display: flex; gap: 26px; flex-wrap: wrap; }
.avatar { border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #dff3ff, #ece6ff); color: var(--blue); display: flex; align-items: center; justify-content: center; font-weight: 800; border: 1px solid var(--line-strong); }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 132px; height: 176px; font-size: 44px; }
.avatar.mini { width: 36px; height: 46px; font-size: 14px; border-radius: 9px; }
.avatar.xl { width: 118px; height: 150px; font-size: 36px; }
.profile-hero-info { flex: 1; min-width: 260px; }
.profile-hero-info h2 { margin: 0 0 10px; font-size: 32px; font-weight: 800; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tag { background: #eef2f9; color: var(--muted); font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); }
.tag.primary { background: rgba(6,182,212,0.12); color: var(--cyan); border-color: rgba(6,182,212,0.4); }
.stat-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 100px; padding: 12px 14px; border-radius: 14px; background: rgba(6,182,212,0.09); border: 1px solid rgba(6,182,212,0.3); text-align: center; }
.stat-card.violet { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.3); }
.stat-card.danger { background: rgba(220,38,38,0.09); border-color: rgba(220,38,38,0.28); }
.stat-num { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat-card .stat-num { color: var(--cyan); }
.stat-card.violet .stat-num { color: var(--violet); }
.stat-card.danger .stat-num { color: var(--danger); }
.stat-label { font-size: 12px; color: var(--muted); }

.info-grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 22px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.info-item { font-size: 14px; }
.info-item b { color: var(--muted); font-weight: 500; margin-right: 6px; }

/* 板块 */
.section { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; margin-top: 20px; box-shadow: var(--shadow); backdrop-filter: blur(8px); animation: rise 0.5s ease both; }
.section h3 { margin: 0 0 16px; font-size: 16px; display: flex; align-items: center; gap: 10px; letter-spacing: 1px; }
.sec-icon { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.sec-scores .sec-icon { background: rgba(6,182,212,0.14); color: var(--cyan); }
.sec-cons .sec-icon { background: rgba(124,58,237,0.14); color: var(--violet); }
.sec-dis { border-color: rgba(220,38,38,0.25); background: rgba(255,247,247,0.92); }
.sec-dis h3 { color: var(--danger); }
.sec-dis .sec-icon { background: rgba(220,38,38,0.12); color: var(--danger); }
.sec-icon svg { width: 17px; height: 17px; }
.count-badge { background: rgba(6,182,212,0.14); color: var(--cyan); font-size: 12px; border-radius: 999px; padding: 1px 9px; }
.count-badge.danger { background: rgba(220,38,38,0.12); color: var(--danger); }

/* 表格 */
.table-wrap { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; backdrop-filter: blur(8px); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table th { color: var(--muted); font-weight: 600; background: #f6f8fc; white-space: nowrap; letter-spacing: 1px; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(37,99,235,0.05); }
.table tr:last-child td { border-bottom: 0; }
.level-badge { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid transparent; }
.level-警告 { background: rgba(220,38,38,0.1); color: #dc2626; border-color: rgba(220,38,38,0.3); }
.level-严重警告 { background: rgba(220,38,38,0.12); color: #b91c1c; border-color: rgba(220,38,38,0.34); }
.level-记过 { background: rgba(185,28,28,0.12); color: #991b1b; border-color: rgba(185,28,28,0.36); }
.level-留校察看 { background: rgba(153,27,27,0.12); color: #7f1d1d; border-color: rgba(153,27,27,0.4); }
.empty { text-align: center; color: var(--muted); padding: 26px; font-size: 14px; }

/* 成绩学期折叠 */
.term-list { display: flex; flex-direction: column; gap: 10px; }
.term-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fbfcff; transition: border-color 0.2s, box-shadow 0.2s; }
.term-item.open { border-color: rgba(6,182,212,0.5); box-shadow: 0 8px 22px rgba(6,182,212,0.12); }
.term-head { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; padding: 13px 16px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; transition: background 0.15s; }
.term-head:hover { background: rgba(6,182,212,0.06); }
.term-name { font-weight: 800; font-size: 15px; letter-spacing: 1px; }
.term-meta { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
.term-chevron { width: 18px; height: 18px; color: var(--cyan); transition: transform 0.25s; flex: 0 0 auto; }
.term-item:not(.open) .term-chevron { transform: rotate(-90deg); }
.term-body { border-top: 1px solid var(--line); }
.term-item:not(.open) .term-body { display: none; }
.term-table { border: 0; border-radius: 0; box-shadow: none; }
.term-table .table th { background: #f2f7fd; }
.score-num { color: var(--blue); font-size: 15px; }

.admin-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search { flex: 1; max-width: 420px; }

/* 表单控件 */
.input { padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; font-size: 14px; width: 100%; background: #f8fafd; color: var(--ink); }
.input:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 4px rgba(6,182,212,0.14); }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: #fff; border: 1px solid var(--line); border-radius: 20px; width: 980px; max-width: 100%; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(15, 23, 42, 0.28); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-close { border: 0; background: transparent; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-close:hover { color: var(--ink); }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.spacer { flex: 1; }
.editor-grid { display: flex; gap: 24px; margin-bottom: 20px; }
.photo-editor { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; flex: 1; }
.form-grid label { font-size: 13px; color: var(--muted); }
.form-grid .input { margin-top: 4px; }
.span2 { grid-column: span 2; }
.sub-editors { display: flex; flex-direction: column; gap: 18px; }
.sub-editor { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: #fbfcfe; }
.sub-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sub-head h3 { margin: 0; font-size: 14px; }
.sub-row { display: grid; gap: 8px; padding: 10px; border: 1px dashed var(--line-strong); border-radius: 12px; margin-bottom: 8px; background: #fff; }
.sub-row.scores { grid-template-columns: 1.2fr 1fr 1fr 0.7fr 0.7fr auto; }
.sub-row.contributions { grid-template-columns: 1fr 1fr 1fr 2fr auto; }
.sub-row.disciplines { grid-template-columns: 1fr 1fr 1fr 2fr auto; }
.sub-row label { display: block; font-size: 12px; color: var(--muted); }
.sub-row .input { margin-top: 3px; padding: 8px 10px; }
.sub-row .del { border: 0; background: #fee2e2; color: var(--danger); border-radius: 8px; cursor: pointer; padding: 0 11px; font-size: 17px; align-self: end; }

/* 提示 */
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--grad-main); color: #fff; padding: 11px 22px; border-radius: 999px; font-size: 14px; z-index: 100; box-shadow: 0 14px 34px rgba(37,99,235,0.3); max-width: 88vw; text-align: center; }

/* 班主任概览 */
.class-hero { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px; box-shadow: var(--shadow); backdrop-filter: blur(8px); }
.class-hero::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-main); }
.class-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; width: 100%; }
.class-hero-main h2 { margin: 8px 0 4px; font-size: 26px; font-weight: 800; }
.class-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.class-stats .stat-card { min-width: 96px; }

/* 班级切换（多班级班主任） */
.class-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.class-tab {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: #fbfcff; color: var(--muted);
  border-radius: 999px; padding: 7px 16px; font-size: 13px; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.class-tab:hover { background: #eef2f9; color: var(--ink); }
.class-tab.active { background: var(--grad-main); color: #fff; font-weight: 700; border-color: transparent; box-shadow: 0 8px 18px rgba(37, 99, 235, 0.28); }
.class-tab .cls-count { font-size: 11px; line-height: 1.4; background: rgba(37, 99, 235, 0.12); color: var(--blue); border-radius: 999px; padding: 0 7px; }
.class-tab.active .cls-count { background: rgba(255, 255, 255, 0.24); color: #fff; }

/* 内页卡片细化：悬浮反馈 */
.profile-hero, .class-hero { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.profile-hero:hover, .class-hero:hover { transform: translateY(-3px); box-shadow: 0 30px 64px rgba(37, 63, 128, 0.2); }
.section, .table-wrap { transition: box-shadow 0.25s ease; }
.section:hover, .table-wrap:hover { box-shadow: 0 24px 54px rgba(37, 63, 128, 0.17); }



/* 动画 */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============ 响应式 ============ */
/* ============ 响应式 ============ */
@media (max-width: 920px) {
  .login-viewport { padding: 16px clamp(14px, 4vw, 30px) 18px; }
  .login-top { justify-content: center; }
  .login-stage { display: flex; flex-direction: column; align-items: center; width: min(560px, 100%); gap: 18px; }
  .login-copy { max-width: 560px; text-align: center; order: 0; }
  .login-title { letter-spacing: 0.08em; }
  .login-features { display: none; }
  .login-card { order: 1; width: min(440px, 100%); }
  .container { padding: 20px 16px 64px; }
  .topbar { padding: 10px 16px; }
  .class-hero-main h2 { font-size: 24px; }
}
@media (max-width: 720px) {
  .container { padding: 16px 12px 64px; }
  .topbar { padding: 10px 14px; gap: 10px; flex-wrap: wrap; }
  .topbar-logo { width: 38px; height: 38px; border-radius: 12px; font-size: 14px; }
  .topbar-sub { display: none; }
  .topbar-title { font-size: 15px; }
  .topbar-actions .btn { padding: 8px 11px; font-size: 13px; }
  .role-chip { display: none; }
  .profile-hero { padding: 18px 14px; }
  .profile-hero-main { flex-direction: column; }
  .avatar.lg { width: 104px; height: 138px; font-size: 34px; align-self: center; }
  .info-grid { grid-template-columns: 1fr; gap: 8px 0; }
  .section { padding: 16px 14px; }
  .stat-cards { gap: 8px; }
  .stat-card { min-width: 76px; padding: 10px 8px; }
  .stat-num { font-size: 20px; }
  .table th, .table td { padding: 9px 10px; font-size: 13px; }
  .table-wrap:not(.term-table) .table { min-width: 720px; }
  .class-hero { padding: 18px 16px; }
  .class-hero-top { gap: 14px; }
  .class-hero-main h2 { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: span 1; }
  .sub-row { grid-template-columns: 1fr 1fr !important; }
  .editor-grid { flex-direction: column; gap: 14px; }
  .modal-body { padding: 14px 16px; }
  .modal { max-height: 94vh; }
  .term-head { padding: 12px 13px; }
  .term-meta { font-size: 11px; }
  .login-title { font-size: clamp(1.7rem, 7vw, 2.6rem); }
  .login-card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .login-viewport { padding: 12px 10px 14px; }
  .login-top { flex-direction: column; gap: 10px; }
  .login-brand { width: 100%; justify-content: center; }
  .login-brand-meta em { display: none; }
  .role-tabs { width: 100%; justify-content: center; padding: 5px; }
  .role-tab { flex: 1; padding: 9px 6px; font-size: 13px; }
  .login-stage { padding: 12px 0 6px; gap: 14px; }
  .login-copy { margin-bottom: 2px; }
  .login-eyebrow { font-size: 10px; letter-spacing: 0.22em; margin-bottom: 8px; }
  .login-title { font-size: clamp(1.35rem, 6.5vw, 1.9rem); letter-spacing: 0.04em; line-height: 1.3; }
  .login-sub { font-size: 13px; letter-spacing: 1px; margin-top: 8px; }
  .login-card { padding: 22px 16px 18px; border-radius: 20px; }
  .login-card-head h2 { font-size: 21px; }
  .login-form label { font-size: 12px; margin-bottom: 11px; }
  .login-form input { padding: 11px 13px; font-size: 14px; }
  .profile-hero-info h2 { font-size: 24px; }
  .sub-row { grid-template-columns: 1fr !important; }
  .modal-foot .btn { flex: 1 1 auto; }
  .term-head { flex-wrap: wrap; }
  .term-meta { width: 100%; margin-left: 0; white-space: normal; }
  .class-tabs { gap: 6px; flex-wrap: wrap; }
  .class-tab { padding: 6px 12px; font-size: 12px; }
  .demo-accounts-list { max-height: 220px; }
}


/* ============ 登录页 v2：AI × 低空 高端科技风（仅登录页） ============ */
.login-v2 .login-bg img { filter: saturate(1.2) contrast(1.03); }
.login-v2 .login-bg-overlay {
  z-index: 0;
  background:
    radial-gradient(920px 520px at 80% 6%, rgba(34, 211, 238, 0.34), transparent 62%),
    radial-gradient(860px 600px at 10% 96%, rgba(124, 58, 237, 0.42), transparent 62%),
    radial-gradient(760px 520px at 46% 44%, rgba(37, 99, 235, 0.22), transparent 72%),
    linear-gradient(180deg, rgba(2, 10, 26, 0.5) 0%, rgba(5, 14, 32, 0.6) 55%, rgba(2, 8, 22, 0.8) 100%);
}
.tech-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.tech-grid {
  position: absolute; inset: -25% -20%; opacity: 0.5;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 42%, #000 5%, transparent 80%);
  mask-image: radial-gradient(ellipse at 50% 42%, #000 5%, transparent 80%);
  animation: gridPan 26s linear infinite;
}
.tech-glow { position: absolute; border-radius: 50%; filter: blur(64px); opacity: 0.5; }
.tech-glow.glow-a { width: 380px; height: 380px; left: -90px; top: -120px; background: radial-gradient(circle, rgba(34, 211, 238, 0.55), transparent 68%); animation: float 13s ease-in-out infinite; }
.tech-glow.glow-b { width: 420px; height: 420px; right: -130px; top: 22%; background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 68%); animation: float 17s ease-in-out infinite reverse; }
.tech-glow.glow-c { width: 460px; height: 460px; left: 34%; bottom: -230px; background: radial-gradient(circle, rgba(37, 99, 235, 0.5), transparent 70%); animation: float 20s ease-in-out infinite; }
.chip-circuit { position: absolute; left: -110px; top: -60px; width: 320px; opacity: 0.85; filter: drop-shadow(0 0 22px rgba(34, 211, 238, 0.25)); animation: chipFloat 8s ease-in-out infinite; }

.radar-wrap { position: absolute; right: 2.4vw; top: 15%; text-align: center; }
.radar { position: relative; width: 152px; height: 152px; margin: 0 auto; }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(34, 211, 238, 0.45); }
.radar::after { inset: 10px; opacity: 0.6; }
.radar-ring { position: absolute; border-radius: 50%; border: 1px dashed rgba(34, 211, 238, 0.35); }
.radar-ring.r1 { inset: 26px; } .radar-ring.r2 { inset: 52px; } .radar-ring.r3 { inset: 70px; opacity: .3; }
.radar-sweep { position: absolute; inset: 8px; border-radius: 50%; overflow: hidden;
  background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.5), transparent 78deg);
  animation: radarSpin 3.4s linear infinite; }
.radar-core { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 16px 4px rgba(34, 211, 238, 0.75); }
.radar-blip { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #7dd3fc; box-shadow: 0 0 12px rgba(125, 211, 252, 0.9); animation: blip 2.2s ease-in-out infinite; }
.radar-blip.blip1 { left: 62%; top: 34%; } .radar-blip.blip2 { left: 30%; top: 62%; animation-delay: 0.9s; }
.radar-tag { display: inline-block; margin-top: 10px; font-size: 10px; letter-spacing: 2.4px; color: rgba(255, 255, 255, 0.72); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6); }

.route-svg { position: absolute; left: -2vw; bottom: 2vh; width: min(44vw, 640px); opacity: 0.62; filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.28)); }
.float-chip {
  position: absolute; font-style: normal; color: #67e8f9; font-weight: 900;
  border: 1px solid rgba(103, 232, 249, 0.4); background: rgba(2, 12, 28, 0.55);
  border-radius: 10px; padding: 6px 10px; letter-spacing: 1px; backdrop-filter: blur(6px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}
.float-chip.c1 { right: 6vw; bottom: 30vh; animation: chipFloat 6s ease-in-out infinite; }
.float-chip.c2 { left: 12vw; top: 22vh; animation: chipFloat 7.5s ease-in-out .8s infinite reverse; color:#a5b4fc; }
.float-chip.c3 { right: 22vw; top: 12vh; animation: chipFloat 8.5s ease-in-out .3s infinite; color:#f0abfc; }

.login-v2 .login-top { z-index: 2; }
.login-v2 .login-brand { position: relative; }
.brand-orbit {
  position: absolute; left: -8px; top: -8px; width: 62px; height: 62px; border-radius: 18px;
  border: 1px dashed rgba(34, 211, 238, 0.5); animation: orbitSpin 7s linear infinite; pointer-events: none;
}
.login-v2 .login-brand-mark svg { width: 26px; height: 26px; }
.login-v2 .role-tab.active { background: linear-gradient(135deg, #22d3ee, #6366f1); color: #fff; box-shadow: 0 8px 24px rgba(34, 211, 238, 0.4); }

.login-v2 .login-title { position: relative; text-shadow: 0 4px 34px rgba(0, 0, 0, 0.5); }
.login-v2 .login-title em {
  font-style: normal;
  background: linear-gradient(92deg, #7dd3fc 0%, #a5b4fc 45%, #f0abfc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(125, 211, 252, 0.35));
}
.login-v2 .login-sub { letter-spacing: 1.6px; }
.login-v2 .login-scanline { position: relative; height: 30px; margin-top: 22px; overflow: hidden; opacity: .8; }
.login-v2 .login-scanline::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.65), rgba(129, 140, 248, 0.65), transparent);
}
.login-v2 .login-scanline span { position: absolute; left: -12%; top: 45%; width: 34px; height: 3px; border-radius: 3px; background: #7dd3fc; box-shadow: 0 0 14px 3px rgba(125, 211, 252, 0.7); animation: scanLine 5s linear infinite; }
.login-v2 .feature-ico.ai { color: #22d3ee; background: rgba(34, 211, 238, 0.18); }
.login-v2 .feature-ico.sky { color: #7dd3fc; background: rgba(125, 211, 252, 0.16); }
.login-v2 .feature-ico.vio { color: #c4b5fd; background: rgba(139, 92, 246, 0.2); }
.login-v2 .feature-ico.warn { color: #fda4af; background: rgba(248, 113, 113, 0.18); }
.login-v2 .feature-ico svg { width: 22px; height: 22px; }

.login-v2 .glass-card { border: 1px solid rgba(255, 255, 255, 0.28); }
.login-v2 .hud-frame { position: relative; background: rgba(6, 16, 36, 0.42); }
.login-v2 .hud-frame::before {
  content: ""; position: absolute; inset: 0; border-radius: 24px; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.7), rgba(255, 255, 255, 0.12) 38%, rgba(129, 140, 248, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.hud-corner { position: absolute; width: 26px; height: 26px; pointer-events: none; z-index: 3; opacity: .95; }
.hud-corner.tl { left: 10px; top: 10px; border-left: 2px solid #22d3ee; border-top: 2px solid #22d3ee; border-top-left-radius: 12px; }
.hud-corner.tr { right: 10px; top: 10px; border-right: 2px solid #22d3ee; border-top: 2px solid #22d3ee; border-top-right-radius: 12px; }
.hud-corner.bl { left: 10px; bottom: 10px; border-left: 2px solid #a78bfa; border-bottom: 2px solid #a78bfa; border-bottom-left-radius: 12px; }
.hud-corner.br { right: 10px; bottom: 10px; border-right: 2px solid #a78bfa; border-bottom: 2px solid #a78bfa; border-bottom-right-radius: 12px; }
.login-v2 .head-chip { display: inline-block; margin-bottom: 10px; font-size: 10px; letter-spacing: 2.6px; color: #67e8f9; border: 1px solid rgba(103, 232, 249, 0.4); padding: 4px 12px; border-radius: 999px; background: rgba(34, 211, 238, 0.1); }

.login-v2 .login-footer { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.login-v2 .foot-line { color: rgba(255, 255, 255, 0.78); font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase; }
.login-v2 .foot-sep { color: rgba(34, 211, 238, 0.8); }

@keyframes gridPan { from { background-position: 0 0; } to { background-position: 46px 46px; } }
@keyframes radarSpin { to { transform: rotate(360deg); } }
@keyframes blip { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.7); opacity: .35; } }
@keyframes chipFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(4deg); } }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes scanLine { 0% { left: -14%; } 60%,100% { left: 106%; } }

@media (max-width: 900px) {
  .login-v2 .radar-wrap { right: 2vw; transform: scale(0.72); transform-origin: top right; opacity: .85; }
  .route-svg { width: 60vw; opacity: .45; }
}
@media (max-width: 720px) {
  .chip-circuit { left: -140px; }
  .radar-wrap { display: none; }
  .float-chip.c2 { display: none; }
  .route-svg { width: 90vw; bottom: 1vh; opacity: .3; }
}
@media (max-width: 480px) {
  .login-v2 .login-title em { letter-spacing: 0.05em; }
  .float-chip.c1 { right: 4vw; bottom: 26vh; }
}


/* ============ 登录页 v3：明亮 · 年轻 · 高端（AI × 低空，独立全新视觉） ============ */
.login-v3 {
  color: #1e293b;
  background:
    radial-gradient(920px 520px at 8% -8%, rgba(34, 211, 238, 0.22), transparent 62%),
    radial-gradient(860px 520px at 102% 4%, rgba(129, 140, 248, 0.22), transparent 62%),
    radial-gradient(760px 560px at 96% 108%, rgba(232, 121, 249, 0.16), transparent 66%),
    linear-gradient(155deg, #f6fbff 0%, #eef4ff 55%, #f7f1ff 100%);
}
.lv3-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.lv3-orb { position: absolute; border-radius: 50%; filter: blur(46px); }
.lv3-orb.orb-cyan { width: 360px; height: 360px; left: -120px; top: -90px; background: rgba(34, 211, 238, 0.5); animation: lv3Float 12s ease-in-out infinite; }
.lv3-orb.orb-violet { width: 420px; height: 420px; right: -140px; top: 8%; background: rgba(129, 140, 248, 0.4); animation: lv3Float 16s ease-in-out infinite reverse; }
.lv3-orb.orb-pink { width: 380px; height: 380px; right: 12%; bottom: -180px; background: rgba(232, 121, 249, 0.34); animation: lv3Float 14s ease-in-out 1s infinite; }
.lv3-grid {
  position: absolute; inset: -8% -5%; opacity: 0.5;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.07) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 45% 40%, #000 5%, transparent 78%);
  mask-image: radial-gradient(ellipse at 45% 40%, #000 5%, transparent 78%);
}
.lv3-path { position: absolute; left: -3vw; bottom: 4vh; width: min(46vw, 620px); opacity: 0.75; }
.lv3-chip {
  position: absolute; color: #0ea5e9; font-weight: 900; font-size: 13px;
  background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 12px; padding: 7px 12px; box-shadow: 0 10px 26px rgba(37, 63, 128, 0.12);
  animation: lv3Float 6s ease-in-out infinite;
}
.lv3-chip.chip1 { right: 5vw; bottom: 26vh; }
.lv3-chip.chip2 { left: 9vw; top: 24vh; color: #8b5cf6; border-color: rgba(139, 92, 246, 0.35); animation-delay: 0.6s; }
.lv3-chip.chip3 { right: 20vw; top: 12vh; color: #d946ef; border-color: rgba(217, 70, 239, 0.35); animation-delay: 1.2s; }

.login-v3 .login-top { z-index: 2; }
.login-v3 .lv3-pill {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 14px 38px rgba(37, 63, 128, 0.12);
  color: #1e293b;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.login-v3 .login-brand { position: relative; }
.login-v3 .lv3-brand-ring {
  position: absolute; left: -9px; top: -9px; width: 64px; height: 64px; border-radius: 18px;
  border: 2px dashed rgba(14, 165, 233, 0.5); animation: orbitSpin 8s linear infinite; pointer-events: none;
}
.login-v3 .login-brand-mark {
  background: linear-gradient(135deg, #0ea5e9, #6366f1 55%, #d946ef);
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.3);
}
.login-v3 .login-brand-mark svg { width: 25px; height: 25px; }
.login-v3 .login-brand-meta strong { color: #0f172a; }
.login-v3 .login-brand-meta em { color: #64748b; opacity: 1; }

.login-v3 .role-tab { color: #475569; }
.login-v3 .role-tab:hover { background: rgba(14, 165, 233, 0.1); color: #0f172a; }
.login-v3 .role-tab.active {
  background: linear-gradient(120deg, #06b6d4, #6366f1 60%, #a855f7);
  color: #fff; font-weight: 700; box-shadow: 0 10px 24px rgba(99, 102, 241, 0.38);
}

.login-v3 .login-stage { z-index: 2; }
.login-v3 .login-eyebrow { color: #0891b2; text-shadow: none; font-weight: 700; }
.login-v3 .login-title { color: #0b1f3a; text-shadow: 0 6px 24px rgba(37, 63, 128, 0.12); }
.login-v3 .login-title em {
  font-style: normal;
  background: linear-gradient(92deg, #0891b2 0%, #6366f1 45%, #d946ef 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.login-v3 .login-sub { color: #475569; }

.lv3-showcase {
  position: relative; margin-top: 26px; height: 270px; max-width: 640px;
  border-radius: 26px; overflow: hidden; border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 28px 60px rgba(37, 63, 128, 0.2);
  background: linear-gradient(135deg, #bfe9ff, #dcd6ff);
  animation: rise 0.7s ease both;
}
.lv3-showcase img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lv3-showcase-tint {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 31, 58, 0.28) 100%);
  pointer-events: none;
}
.lv3-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.92); color: #0f172a; font-size: 11px; font-weight: 700;
  letter-spacing: 1.6px; padding: 6px 13px; border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.lv3-badge i { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.22); }
.lv3-badge.b1 { left: 16px; top: 16px; }
.lv3-badge.b2 { right: 16px; bottom: 16px; }
.lv3-badge.b2 i { background: #a855f7; box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.2); }
.lv3-scan {
  position: absolute; left: -20%; top: 22%; width: 42%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
  box-shadow: 0 0 16px 3px rgba(255, 255, 255, 0.5);
  animation: lv3Scan 5.5s linear infinite; pointer-events: none;
}
.lv3-points { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.lv3-points span {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px; padding: 7px 15px; font-size: 12px; color: #64748b;
  box-shadow: 0 8px 20px rgba(37, 63, 128, 0.08);
}
.lv3-points b { color: #0f172a; }

.login-v3 .lv3-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(203, 213, 240, 0.9);
  border-radius: 28px;
  box-shadow: 0 34px 80px rgba(37, 63, 128, 0.2);
  color: #1e293b;
}
.login-v3 .login-card-head h2 { color: #0f172a; }
.login-v3 .login-card-head p { color: #64748b; }
.login-v3 .lv3-head-chip {
  display: inline-block; margin-bottom: 10px; font-size: 10px; font-weight: 700;
  letter-spacing: 2.4px; color: #6366f1; padding: 4px 12px; border-radius: 999px;
  background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.28);
}
.login-v3 .login-form label { color: #475569; }
.login-v3 .login-form input {
  background: #f7faff; border: 1px solid #d8e2f4; color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}
.login-v3 .login-form input::placeholder { color: #9aa7c4; }
.login-v3 .login-form input:focus {
  border-color: #22d3ee; background: #fff;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16);
}
.login-v3 .login-card .btn-primary {
  background: linear-gradient(120deg, #06b6d4, #6366f1 60%, #a855f7);
  color: #fff; border-radius: 999px; box-shadow: 0 14px 30px rgba(99, 102, 241, 0.34);
}
.login-v3 .login-card .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(99, 102, 241, 0.42); }
.login-v3 .login-card .hint { color: #64748b; }
.login-v3 .login-card .error-msg { background: #fee2e2; border-color: #fecaca; color: #dc2626; }

.login-v3 .demo-accounts summary { color: #6366f1; }
.login-v3 .demo-accounts-list { background: #f1f5fb; border-color: #dbe3f2; color: #334155; }
.login-v3 .demo-line { color: #334155; }
.login-v3 .demo-line code { background: rgba(255, 255, 255, 0.95); border-color: #d7e0f0; color: #4338ca; }
.login-v3 .demo-classes { color: #64748b; }
.login-v3 .login-footer { color: #64748b; text-shadow: none; }
.login-v3 .foot-line { color: #64748b; }

@keyframes lv3Float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-16px) scale(1.04); } }
@keyframes lv3Scan { 0% { left: -30%; } 60%,100% { left: 110%; } }

@media (max-width: 900px) {
  .lv3-chip.chip1 { right: 2vw; }
  .lv3-chip.chip2, .lv3-chip.chip3 { display: none; }
  .lv3-path { width: 70vw; opacity: 0.5; }
  .lv3-showcase { height: 220px; }
}
@media (max-width: 720px) {
  .lv3-path { width: 92vw; bottom: 1vh; opacity: 0.35; }
  .lv3-chip.chip1 { display: none; }
  .lv3-showcase { height: 190px; }
}
@media (max-width: 480px) {
  .lv3-showcase { height: 170px; border-radius: 20px; }
  .lv3-points span { padding: 6px 11px; font-size: 11px; }
}


/* ============ 登录页 v4：大卡片两栏（左宣传面板 + 右登录表单） ============ */
.login-v4 {
  color: #1e293b;
  background:
    radial-gradient(760px 420px at 12% -6%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(720px 460px at 96% 4%, rgba(129, 140, 248, 0.2), transparent 60%),
    radial-gradient(660px 420px at 88% 110%, rgba(232, 121, 249, 0.14), transparent 62%),
    linear-gradient(155deg, #f4f9ff, #edf3ff 60%, #f7f2ff);
}
.login-v4 .v4-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.v4-orb { position: absolute; border-radius: 50%; filter: blur(50px); }
.v4-orb.o1 { width: 340px; height: 340px; left: -110px; top: -90px; background: rgba(34, 211, 238, 0.45); animation: v4Float 12s ease-in-out infinite; }
.v4-orb.o2 { width: 400px; height: 400px; right: -140px; top: -60px; background: rgba(129, 140, 248, 0.4); animation: v4Float 15s ease-in-out infinite reverse; }
.v4-orb.o3 { width: 360px; height: 360px; left: 38%; bottom: -170px; background: rgba(217, 70, 239, 0.3); animation: v4Float 13s ease-in-out 1s infinite; }
.v4-grid {
  position: absolute; inset: -10% -6%; opacity: 0.45;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 5%, transparent 78%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 5%, transparent 78%);
}

.login-v4 .v4-shell {
  position: relative; z-index: 1;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  border-radius: 30px; overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 90px rgba(37, 63, 128, 0.22);
  animation: rise 0.6s ease both;
}

.login-v4 .v4-media { position: relative; min-height: 600px; color: #fff; overflow: hidden; display: flex; flex-direction: column; }
.login-v4 .v4-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.v4-media-tint { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11, 31, 58, 0.55) 0%, rgba(11, 31, 58, 0.15) 40%, rgba(8, 20, 44, 0.72) 100%); }
.login-v4 .v4-media:has(.hidden) { background: linear-gradient(150deg, #0b1f3a, #1e3a8a 55%, #5b21b6); }

.v4-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 28px 30px; }
.v4-logo {
  width: 52px; height: 52px; flex: 0 0 auto; border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.v4-logo svg { width: 28px; height: 28px; }
.v4-top-txt { display: flex; flex-direction: column; line-height: 1.45; }
.v4-top-txt b { font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.v4-top-txt em { font-style: normal; font-size: 9px; letter-spacing: 2.2px; opacity: .82; text-transform: uppercase; }

.v4-copy { position: relative; z-index: 2; margin: auto 30px 26px; }
.v4-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: 3px; color: rgba(255, 255, 255, 0.9); }
.v4-copy h1 { margin: 0; font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.24; font-weight: 900; letter-spacing: 2px; text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35); }
.v4-copy p { margin: 14px 0 0; font-size: 14px; letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.85); }
.v4-feats { position: relative; z-index: 2; display: flex; gap: 10px; flex-wrap: wrap; padding: 0 30px 34px; }
.v4-feats span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: 999px; padding: 7px 14px; font-size: 12px; letter-spacing: 1px;
}
.v4-feats i { width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.25); }
.v4-plane { position: absolute; left: -30px; bottom: 120px; width: 66%; opacity: .8; pointer-events: none; }

.v4-panel { padding: 40px 42px 34px; display: flex; flex-direction: column; justify-content: center; background: #fff; }
.v4-panel-head { margin-bottom: 22px; }
.v4-head-chip { display: inline-block; margin-bottom: 10px; font-size: 10px; font-weight: 800; letter-spacing: 3px; color: #6366f1; padding: 4px 13px; border-radius: 999px; background: rgba(99, 102, 241, 0.1); }
.v4-panel-head h2 { margin: 0 0 5px; font-size: 27px; font-weight: 900; letter-spacing: 1px; color: #0f172a; }
.v4-panel-head p { margin: 0; font-size: 13px; color: #64748b; letter-spacing: .5px; }

.v4-roles {
  display: flex; gap: 3px; padding: 5px; margin-bottom: 24px;
  background: #f1f5f9; border: 1px solid #e3e9f4; border-radius: 999px;
}
.v4-roles .role-tab { color: #64748b; padding: 9px 16px; }
.v4-roles .role-tab:hover { background: #fff; color: #0f172a; }
.v4-roles .role-tab.active {
  background: linear-gradient(120deg, #06b6d4, #6366f1 60%, #a855f7);
  color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.login-v4 .login-form label { color: #475569; }
.login-v4 .login-form input { background: #f8fafd; border-color: #d8e2f4; color: #0f172a; }
.login-v4 .login-form input::placeholder { color: #9aa7c4; }
.login-v4 .login-form input:focus { border-color: #22d3ee; background: #fff; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.16); }
.login-v4 .login-card, .login-v4 .login-form .btn-primary { color: #fff; }
.login-v4 .btn-primary {
  background: linear-gradient(120deg, #06b6d4, #6366f1 60%, #a855f7);
  color: #fff; border-radius: 999px; box-shadow: 0 14px 30px rgba(99, 102, 241, 0.32);
}
.login-v4 .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 36px rgba(99, 102, 241, 0.42); }
.login-v4 .hint { color: #64748b; }
.login-v4 .error-msg { background: #fee2e2; border-color: #fecaca; color: #dc2626; }

.login-v4 .demo-accounts summary { color: #6366f1; }
.login-v4 .demo-accounts-list { background: #f4f7fc; border-color: #dde5f2; color: #334155; }
.login-v4 .demo-line { color: #334155; }
.login-v4 .demo-line code { background: #fff; border-color: #dde5f2; color: #4338ca; }
.login-v4 .demo-classes { color: #64748b; }

.login-v4 .login-footer { color: #64748b; text-shadow: none; z-index: 1; }

@keyframes v4Float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

@media (max-width: 900px) {
  .login-v4 .v4-shell { grid-template-columns: 1fr; }
  .login-v4 .v4-media { min-height: 320px; }
  .v4-copy { margin: auto 26px 18px; }
  .v4-copy h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
  .v4-feats { padding: 0 26px 26px; }
  .v4-plane { width: 60%; }
  .v4-panel { padding: 30px 28px 26px; }
}
@media (max-width: 720px) {
  .login-v4 { padding: 12px; }
  .v4-media { min-height: 250px; }
  .v4-top { padding: 18px 18px; }
  .v4-top-txt b { font-size: 14px; }
  .v4-feats { display: none; }
  .v4-plane { bottom: 40px; }
}
@media (max-width: 480px) {
  .login-v4 .v4-shell { border-radius: 22px; }
  .v4-media { min-height: 210px; }
  .v4-copy h1 { font-size: 1.45rem; letter-spacing: 1px; }
  .v4-eyebrow { font-size: 10px; }
  .v4-panel { padding: 24px 20px 20px; }
  .v4-roles .role-tab { padding: 8px 10px; font-size: 13px; }
}


/* ============ 登录页 v5：整屏深蓝科技海报 + 右下悬浮玻璃卡 ============ */
.login-v5 {
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(1100px 620px at 78% -10%, rgba(34, 211, 238, 0.24), transparent 62%),
    radial-gradient(1000px 700px at -8% 110%, rgba(124, 58, 237, 0.3), transparent 60%),
    radial-gradient(760px 520px at 55% 45%, rgba(37, 99, 235, 0.2), transparent 70%),
    linear-gradient(135deg, #02091f 0%, #061638 55%, #0b123f 100%);
  overflow: hidden;
}
.v5-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.3; filter: saturate(1.1); }
.v5-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(112deg, rgba(1, 6, 22, 0.9) 0%, rgba(4, 16, 44, 0.78) 46%, rgba(10, 14, 46, 0.5) 100%); }
.v5-veil2 { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(1, 4, 16, 0.55), transparent 42%); }
.v5-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.v5-orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.v5-orb.o1 { width: 520px; height: 520px; right: -140px; top: -120px; background: rgba(34, 211, 238, 0.28); animation: v5Float 16s ease-in-out infinite; }
.v5-orb.o2 { width: 620px; height: 620px; left: -220px; bottom: -200px; background: rgba(124, 58, 237, 0.28); animation: v5Float 20s ease-in-out infinite reverse; }
.v5-orb.o3 { width: 460px; height: 460px; left: 42%; top: 6%; background: rgba(37, 99, 235, 0.22); animation: v5Float 18s ease-in-out 1s infinite; }
.v5-grid {
  position: absolute; inset: -12% -8%; opacity: 0.5;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse at 45% 35%, #000 0%, transparent 82%);
  mask-image: radial-gradient(ellipse at 45% 35%, #000 0%, transparent 82%);
}
.v5-aurora { position: absolute; width: 46vw; height: 46vh; border-radius: 50%; filter: blur(70px); opacity: 0.16; mix-blend-mode: screen; }
.v5-aurora.a1 { left: 4vw; top: -8vh; background: radial-gradient(circle, #22d3ee, transparent 70%); animation: v5Aurora 14s ease-in-out infinite; }
.v5-aurora.a2 { right: 0; bottom: -6vh; background: radial-gradient(circle, #a855f7, transparent 70%); animation: v5Aurora 18s ease-in-out infinite reverse; }

.v5-route { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.v5-drone2 { opacity: 0.55; }
.v5-circuit { position: absolute; left: 2vw; top: 16vh; width: 190px; opacity: 0.5; }
.v5-blink { animation: v5Blink 2.4s ease-in-out infinite; }
.v5-blink.d2 { animation-delay: 0.8s; }
.v5-blink.d3 { animation-delay: 1.5s; }
.v5-radar { position: absolute; left: 3vw; bottom: 16vh; width: 90px; height: 90px; border-radius: 50%; border: 1px solid rgba(34, 211, 238, 0.35); opacity: 0.75; }
.v5-radar::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px dashed rgba(34, 211, 238, 0.4); }
.v5-radar i { position: absolute; inset: 4px; border-radius: 50%; overflow: hidden; background: conic-gradient(from 0deg, rgba(34, 211, 238, 0.45), transparent 90deg); animation: radarSpin 3.6s linear infinite; }
.v5-radar b { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 12px 3px rgba(34, 211, 238, 0.8); }
.v5-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  color: #a5f3fc; font-size: 11px; font-weight: 800; letter-spacing: 2px;
  background: rgba(8, 20, 45, 0.55); border: 1px solid rgba(94, 234, 212, 0.35);
  padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(8px);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.18), inset 0 0 18px rgba(34, 211, 238, 0.1);
  animation: v5Float 7s ease-in-out infinite;
}
.v5-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 10px 2px rgba(34, 211, 238, 0.9); }
.v5-chip.c1 { right: 5.5vw; top: 18vh; }
.v5-chip.c2 { left: 15vw; bottom: 22vh; animation-delay: 1.1s; color: #ddd6fe; border-color: rgba(196, 181, 253, 0.4); }
.v5-chip.c2::before { background: #a78bfa; box-shadow: 0 0 10px 2px rgba(167, 139, 250, 0.9); }
.v5-chip.c3 { left: 34vw; top: 12vh; animation-delay: 2s; color: #fbcfe8; border-color: rgba(244, 114, 182, 0.35); }
.v5-chip.c3::before { background: #f472b6; box-shadow: 0 0 10px 2px rgba(244, 114, 182, 0.9); }

.v5-top { position: absolute; top: 0; left: 0; right: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 24px clamp(16px, 3vw, 40px); }
.v5-brand { display: inline-flex; align-items: center; gap: 13px; }
.v5-logo {
  width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 16px; color: #0f172a;
  background: linear-gradient(135deg, #22d3ee, #818cf8, #e879f9);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.35);
}
.v5-brand-txt { display: flex; flex-direction: column; line-height: 1.45; }
.v5-brand-txt b { font-size: 16px; letter-spacing: 1px; }
.v5-brand-txt em { font-style: normal; font-size: 9px; letter-spacing: 2.4px; opacity: 0.85; }
.v5-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 2px; color: rgba(165, 243, 252, 0.9); }
.v5-status i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px 2px rgba(52, 211, 153, 0.8); animation: v5Blink 2s infinite; }

.v5-main { position: relative; z-index: 3; width: min(1500px, 100%); margin: 0 auto; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 448px; align-items: center; gap: 60px; padding: 120px clamp(20px, 4vw, 60px) 90px; }
.v5-copy { max-width: 760px; }
.v5-eyebrow { margin: 0 0 16px; font-size: 12px; letter-spacing: 4px; color: #67e8f9; font-weight: 700; }
.v5-copy h1 { margin: 0; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 1.18; letter-spacing: 2px; font-weight: 900; text-shadow: 0 10px 44px rgba(0, 0, 0, 0.55); }
.v5-copy h1 em { font-style: normal; background: linear-gradient(92deg, #67e8f9, #a5b4fc 50%, #f0abfc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v5-sub { margin: 16px 0 0; font-size: 15px; letter-spacing: 3px; color: rgba(226, 232, 240, 0.9); }
.v5-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.v5-points span {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(6px); border-radius: 999px; padding: 8px 16px; font-size: 12px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.9);
}
.v5-points span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #38bdf8; box-shadow: 0 0 8px 2px rgba(56, 189, 248, 0.7); }

.v5-card {
  position: relative; align-self: end; justify-self: end; width: 100%;
  background: rgba(8, 18, 42, 0.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 26px; padding: 28px 28px 24px;
  box-shadow: 0 30px 80px rgba(1, 4, 18, 0.6), 0 0 0 1px rgba(34, 211, 238, 0.08), 0 0 60px rgba(34, 211, 238, 0.1);
}
.v5-card-glow { position: absolute; inset: -1px; border-radius: 27px; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.75), rgba(255, 255, 255, 0.06) 36%, rgba(168, 85, 247, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.v5-card-head { margin-bottom: 20px; }
.v5-chip-mini { display: inline-block; margin-bottom: 10px; font-size: 10px; font-weight: 800; letter-spacing: 3px; color: #67e8f9; padding: 4px 13px; border-radius: 999px; border: 1px solid rgba(103, 232, 249, 0.4); background: rgba(34, 211, 238, 0.08); }
.v5-card-head h2 { margin: 0 0 5px; font-size: 26px; font-weight: 900; letter-spacing: 1px; }
.v5-card-head p { margin: 0; font-size: 13px; color: rgba(226, 232, 240, 0.72); }

.v5-roles { display: flex; gap: 3px; padding: 5px; margin-bottom: 22px; background: rgba(2, 10, 26, 0.5); border: 1px solid rgba(148, 163, 184, 0.28); border-radius: 999px; }
.v5-roles .role-tab { color: rgba(255, 255, 255, 0.85); padding: 9px 14px; }
.v5-roles .role-tab:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.v5-roles .role-tab.active { background: linear-gradient(120deg, #06b6d4, #6366f1 60%, #a855f7); color: #fff; box-shadow: 0 10px 24px rgba(99, 102, 241, 0.45); }

.login-v5 .login-form label { color: rgba(255, 255, 255, 0.88); }
.login-v5 .login-form input { background: rgba(2, 10, 26, 0.55); border-color: rgba(148, 163, 184, 0.4); color: #fff; }
.login-v5 .login-form input::placeholder { color: rgba(148, 163, 184, 0.75); }
.login-v5 .login-form input:focus { border-color: #22d3ee; background: rgba(2, 10, 26, 0.8); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18); }
.login-v5 .btn-primary { background: linear-gradient(120deg, #06b6d4, #6366f1 60%, #a855f7); color: #fff; border-radius: 999px; box-shadow: 0 14px 34px rgba(34, 211, 238, 0.35); }
.login-v5 .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 40px rgba(129, 140, 248, 0.45); }
.login-v5 .hint { color: rgba(226, 232, 240, 0.7); }
.login-v5 .error-msg { background: rgba(190, 24, 24, 0.28); border-color: rgba(248, 113, 113, 0.5); color: #fff; }
.login-v5 .demo-accounts summary { color: rgba(165, 243, 252, 0.9); }
.login-v5 .demo-accounts-list { background: rgba(2, 10, 26, 0.55); border-color: rgba(148, 163, 184, 0.35); color: #dbeafe; }
.login-v5 .demo-line { color: #dbeafe; }
.login-v5 .demo-line code { background: rgba(34, 211, 238, 0.14); border-color: rgba(34, 211, 238, 0.4); color: #a5f3fc; }
.login-v5 .demo-classes { color: rgba(203, 213, 225, 0.85); }

.v5-foot { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 0 20px 22px; font-size: 11px; letter-spacing: 2.6px; color: rgba(226, 232, 240, 0.6); text-transform: uppercase; }
.v5-foot i { width: 5px; height: 5px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 8px 2px rgba(34, 211, 238, 0.7); }

@keyframes v5Float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes v5Aurora { 0%,100% { opacity: 0.12; transform: translateX(0); } 50% { opacity: 0.24; transform: translateX(30px); } }
@keyframes v5Blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

@media (max-width: 1180px) {
  .v5-main { grid-template-columns: minmax(0, 1fr) 420px; gap: 34px; padding-top: 130px; }
  .v5-chip.c3 { display: none; }
}
@media (max-width: 960px) {
  .login-v5 { overflow: auto; }
  .v5-main { grid-template-columns: 1fr; padding: 130px 26px 40px; gap: 30px; }
  .v5-card { align-self: auto; justify-self: stretch; max-width: 520px; margin-left: auto; }
  .v5-copy h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
  .v5-status, .v5-chip.c1 { display: none; }
}
@media (max-width: 720px) {
  .v5-top { padding: 16px 14px; }
  .v5-brand-txt em { font-size: 8px; }
  .v5-main { padding: 104px 14px 30px; }
  .v5-copy h1 { font-size: 2rem; letter-spacing: 1px; }
  .v5-eyebrow { font-size: 10px; letter-spacing: 2px; }
  .v5-sub { font-size: 13px; letter-spacing: 1px; }
  .v5-points span { padding: 6px 12px; font-size: 11px; }
  .v5-circuit, .v5-radar, .v5-chip.c2 { display: none; }
  .v5-route { opacity: 0.5; }
  .v5-card { padding: 24px 18px 20px; border-radius: 22px; }
  .v5-roles .role-tab { padding: 8px 8px; font-size: 13px; }
}


/* ============ 登录页 v6：极简大气居中版（隐藏功能介绍，无装饰条框） ============ */
.login-v6 {
  color: #1e293b;
  min-height: 100vh;
  background:
    radial-gradient(640px 420px at 12% 8%, rgba(34, 211, 238, 0.1), transparent 60%),
    radial-gradient(720px 480px at 92% 6%, rgba(129, 140, 248, 0.12), transparent 62%),
    radial-gradient(660px 460px at 50% 118%, rgba(232, 121, 249, 0.08), transparent 60%),
    linear-gradient(165deg, #f8faff 0%, #eef3ff 55%, #f5f1ff 100%);
}
.v6-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.v6-orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.v6-orb.o1 { width: 340px; height: 340px; left: -130px; top: -100px; background: rgba(34, 211, 238, 0.32); animation: v6Float 14s ease-in-out infinite; }
.v6-orb.o2 { width: 400px; height: 400px; right: -160px; top: 6%; background: rgba(129, 140, 248, 0.3); animation: v6Float 17s ease-in-out infinite reverse; }
.v6-orb.o3 { width: 380px; height: 380px; left: 40%; bottom: -190px; background: rgba(217, 70, 239, 0.2); animation: v6Float 15s ease-in-out 1s infinite; }
.v6-watermark { position: absolute; left: 0; right: 0; bottom: -8vh; width: 100%; height: auto; }

.v6-wrap {
  position: relative; z-index: 1;
  width: min(1120px, 100%); margin: 0 auto;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 34px 18px 26px;
}
.v6-brand { display: inline-flex; align-items: center; gap: 13px; margin-bottom: 30px; }
.v6-logo {
  width: 54px; height: 54px; border-radius: 17px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #06b6d4, #6366f1 60%, #a855f7);
  color: #fff; box-shadow: 0 14px 30px rgba(99, 102, 241, 0.3);
}
.v6-logo svg { width: 30px; height: 30px; }
.v6-brand-txt { display: flex; flex-direction: column; line-height: 1.5; text-align: left; }
.v6-brand-txt b { font-size: 18px; color: #0f172a; letter-spacing: 1px; }
.v6-brand-txt em { font-style: normal; font-size: 10px; letter-spacing: 2.6px; color: #64748b; }

.v6-main { width: min(430px, 100%); }
.v6-intro { text-align: center; margin-bottom: 30px; }
.v6-eyebrow { margin: 0 0 12px; font-size: 12px; letter-spacing: 4px; color: #64748b; font-weight: 600; }
.v6-intro h1 { margin: 0; font-size: clamp(1.7rem, 5vw, 2.5rem); line-height: 1.3; color: #0f172a; letter-spacing: 2px; font-weight: 900; }
.v6-sub { margin: 12px 0 0; font-size: 13px; letter-spacing: 2px; color: #64748b; }

.v6-card {
  background: #fff; border-radius: 28px; padding: 30px 30px 24px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.1), 0 8px 24px rgba(15, 23, 42, 0.04);
}
.v6-card-head { text-align: center; margin-bottom: 22px; }
.v6-card-head h2 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: #0f172a; letter-spacing: 1px; }
.v6-card-head p { margin: 0; font-size: 13px; color: #94a3b8; }

.v6-roles { display: flex; gap: 4px; padding: 5px; margin-bottom: 24px; background: #f1f5f9; border-radius: 999px; }
.v6-roles .role-tab { color: #64748b; padding: 9px 12px; font-size: 13px; }
.v6-roles .role-tab:hover { color: #0f172a; }
.v6-roles .role-tab.active { background: linear-gradient(120deg, #06b6d4, #6366f1 60%, #a855f7); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3); }

.login-v6 .login-form label { color: #475569; }
.login-v6 .login-form input { background: #f8fafc; border: 1px solid #e2e8f0; color: #0f172a; }
.login-v6 .login-form input::placeholder { color: #9aa7c4; }
.login-v6 .login-form input:focus { border-color: #22d3ee; background: #fff; box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14); }
.login-v6 .btn-primary { background: linear-gradient(120deg, #06b6d4, #6366f1 60%, #a855f7); color: #fff; border-radius: 999px; box-shadow: 0 12px 26px rgba(99, 102, 241, 0.3); }
.login-v6 .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(99, 102, 241, 0.4); }
.login-v6 .hint { color: #94a3b8; }
.login-v6 .error-msg { background: #fee2e2; border-color: #fecaca; color: #dc2626; }
.login-v6 .demo-accounts summary { color: #6366f1; }
.login-v6 .demo-accounts-list { background: #f6f8fd; border-color: #e2e8f0; color: #334155; }
.login-v6 .demo-line { color: #334155; }
.login-v6 .demo-line code { background: #fff; border-color: #e2e8f0; color: #4338ca; }
.login-v6 .demo-classes { color: #64748b; }

.v6-foot { margin-top: 26px; font-size: 12px; letter-spacing: 2px; color: #94a3b8; text-align: center; }

@keyframes v6Float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

@media (max-width: 520px) {
  .v6-wrap { padding: 20px 12px 18px; }
  .v6-brand { margin-bottom: 22px; }
  .v6-brand-txt b { font-size: 15px; }
  .v6-intro h1 { letter-spacing: 1px; }
  .v6-card { padding: 24px 18px 20px; border-radius: 22px; }
  .v6-roles .role-tab { padding: 8px 6px; font-size: 12px; }
}


/* ============ 管理员 Excel 导入 ============ */
.import-tip { background: #f6f8fe; border: 1px solid #e3e9f6; border-radius: 14px; padding: 14px 16px; margin-bottom: 14px; font-size: 13px; color: #475569; }
.import-tip p { margin: 0 0 6px; }
.import-tip ul { margin: 0 0 12px; padding-left: 18px; line-height: 1.9; }
.file-drop {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px dashed #b6c4e0; border-radius: 14px; padding: 26px 14px;
  background: #fafcff; cursor: pointer; text-align: center; color: #64748b; transition: all .2s;
}
.file-drop:hover { border-color: #22d3ee; background: #f0fbff; }
.import-result { margin-top: 14px; }
.import-ok { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; border-radius: 12px; padding: 11px 14px; font-size: 13px; }
.import-errors { margin-top: 8px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 12px; padding: 10px 14px; max-height: 200px; overflow: auto; font-size: 12px; color: #b91c1c; }
.import-errors p { margin: 3px 0; }

.login-v6 { padding: 0; }


/* ============ 登录页 v7：素净 · 专业 · 耐看（去除花哨装饰） ============ */
.login-v7 { padding: 0; color: #1e293b; background: #f5f6fa; min-height: 100vh; }
.v7-stage {
  position: relative; z-index: 1;
  min-height: 100vh; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 34px 16px 24px;
}
.v7-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.v7-mark {
  width: 46px; height: 46px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid #e4e7ef; color: #1d4ed8;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}
.v7-mark svg { width: 26px; height: 26px; }
.v7-brand-txt { display: flex; flex-direction: column; line-height: 1.5; }
.v7-brand-txt b { font-size: 16px; color: #101828; letter-spacing: .5px; }
.v7-brand-txt em { font-style: normal; font-size: 10px; letter-spacing: 2px; color: #98a2b3; }

.v7-card {
  width: min(440px, 100%); background: #fff;
  border: 1px solid #e6e8ef; border-radius: 16px;
  padding: 32px 34px 26px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 16px 40px rgba(16, 24, 40, 0.06);
}
.v7-head { text-align: center; margin-bottom: 24px; }
.v7-head h1 { margin: 0; font-size: 22px; font-weight: 700; color: #101828; letter-spacing: 1px; }
.v7-head p { margin: 8px 0 0; font-size: 13px; color: #667085; }

.v7-roles { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; margin-bottom: 22px; }
.v7-roles .role-tab {
  flex: 1; border: 0; border-bottom: 2px solid transparent; background: transparent;
  padding: 10px 4px; cursor: pointer; font-size: 14px; color: #667085; font-weight: 500;
  transition: color .2s, border-color .2s;
}
.v7-roles .role-tab:hover { color: #1d4ed8; }
.v7-roles .role-tab.active { color: #1d4ed8; border-bottom-color: #1d4ed8; font-weight: 600; }

.login-v7 .login-form label { display: block; font-size: 13px; color: #344054; margin-bottom: 14px; }
.login-v7 .login-form input {
  width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1px solid #d0d5dd; border-radius: 8px; font-size: 14px; color: #101828; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.login-v7 .login-form input::placeholder { color: #98a2b3; }
.login-v7 .login-form input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.login-v7 .btn-primary {
  background: #2563eb; color: #fff; border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.1);
}
.login-v7 .btn-primary:hover { background: #1d4ed8; }
.login-v7 .hint { font-size: 12px; color: #98a2b3; text-align: center; line-height: 1.7; margin-top: 14px; }
.login-v7 .error-msg { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; border-radius: 8px; }
.login-v7 .demo-accounts summary { color: #1d4ed8; }
.login-v7 .demo-accounts-list { background: #f8f9fc; border: 1px solid #e6e8ef; color: #475467; }
.login-v7 .demo-line { color: #475467; }
.login-v7 .demo-line code { background: #fff; border: 1px solid #e6e8ef; color: #1d4ed8; }
.login-v7 .demo-classes { color: #667085; }

.v7-foot { margin-top: 24px; font-size: 12px; color: #98a2b3; letter-spacing: 1px; text-align: center; }

@media (max-width: 520px) {
  .v7-stage { padding: 24px 12px 20px; }
  .v7-brand { margin-bottom: 22px; }
  .v7-brand-txt b { font-size: 15px; }
  .v7-card { padding: 24px 18px 20px; border-radius: 14px; }
  .v7-roles .role-tab { font-size: 13px; }
}


/* ============ v7 轻柔背景图/元素 ============ */
.v7-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.v7-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; filter: saturate(0.92); }
.v7-bgimg.hidden { display: none; }
.v7-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(245, 246, 250, 0.88), rgba(255, 255, 255, 0.9) 42%, rgba(243, 244, 248, 0.94)); }
.v7-soft { position: absolute; border-radius: 50%; filter: blur(70px); }
.v7-soft.o1 { width: 420px; height: 420px; left: -150px; top: -120px; background: rgba(34, 211, 238, 0.12); }
.v7-soft.o2 { width: 520px; height: 520px; right: -180px; bottom: -180px; background: rgba(129, 140, 248, 0.12); }
.v7-deco { position: absolute; left: 0; right: 0; bottom: -2vh; width: 100%; height: auto; }
.v7-stage { z-index: 1; }


/* ============ v7 居中图片标题 + 稳定登录卡 ============ */
.v7-title { display: block; width: min(640px, 88vw); height: auto; margin: 0 auto 24px; }
.v7-card { min-height: 560px; display: flex; flex-direction: column; }
.v7-card .login-form { flex: 1; }
.v7-card .v7-head { flex: 0 0 auto; }
.v7-card .v7-roles { flex: 0 0 auto; }


/* ============ v7 文字标题 + 图片 LOGO ============ */
.v7-title-area { text-align: center; margin: 0 auto 24px; }
.v7-logo-img { display: block; width: 98px; height: 98px; margin: 0 auto 10px; filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.2)); }
.v7-page-title { margin: 0; font-size: clamp(1.8rem, 3.4vw, 1.8rem); font-weight: 900; letter-spacing: 2px; color: #0f172a; }
.v7-page-title2 { margin: 0; font-size: clamp(1.0rem, 3.4vw, 1.0rem); font-weight: 900; letter-spacing: 2px; color: #ffffff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);}
.v7-page-sub { margin: 10px 0 0; font-size: 15px; letter-spacing: 4px; color: #475569; }

/* 后台学生/教师页签 */
.admin-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid #e3e9f4; }
.admin-tab { border: 0; background: transparent; padding: 10px 18px; font-size: 14px; font-weight: 600; color: #64748b; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .2s, border-color .2s; }
.admin-tab:hover { color: #1d4ed8; }
.admin-tab.active { color: #1d4ed8; border-bottom-color: #1d4ed8; }


/* ============ 手机端全局精修（覆盖各页面） ============ */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .container { padding: 12px 10px 76px; }
  .topbar { padding: 8px 10px; gap: 8px; flex-wrap: wrap; }
  .topbar-logo { width: 36px; height: 36px; border-radius: 10px; font-size: 13px; }
  .topbar-title { font-size: 14px; }
  .topbar-sub { display: none; }
  .topbar-actions { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  .topbar-actions .btn { padding: 8px 11px; font-size: 12.5px; }
  .role-chip { display: none; }
  .admin-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .admin-toolbar .search { max-width: none; width: 100%; }
  .admin-tabs { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .admin-tab { padding: 9px 13px; font-size: 13.5px; }

  .section { padding: 14px 12px; border-radius: 14px; }
  .section h3 { font-size: 15px; }
  .table th, .table td { padding: 8px 7px; font-size: 12.5px; }
  .btn { min-height: 40px; }
  .btn-sm { min-height: 32px; padding: 5px 9px; font-size: 12px; }

  .stat-cards { gap: 6px; }
  .stat-card { min-width: 0; padding: 8px 5px; }
  .stat-num { font-size: 18px; }
  .stat-label { font-size: 11px; }

  .profile-hero { padding: 14px; }
  .profile-hero-main { flex-direction: column; }
  .avatar-wrap { align-self: center; }
  .avatar.lg { width: 96px; height: 128px; font-size: 30px; }
  .info-grid { grid-template-columns: 1fr; gap: 7px 0; }
  .info-item { font-size: 13.5px; }

  .class-hero { flex-direction: column; align-items: flex-start; padding: 16px 14px; }
  .class-stats { width: 100%; }
  .class-tabs { overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }

  .editor-grid { flex-direction: column; }
  .photo-editor { align-items: center; }
  .form-grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .sub-row { grid-template-columns: 1fr 1fr !important; }
  .modal-mask { padding: 8px; align-items: flex-end; }
  .modal { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; }
  .modal-head, .modal-body, .modal-foot { padding: 12px; }
  .modal-foot .btn { flex: 1 1 auto; margin: 0; }
  .demo-accounts-list { max-height: 200px; }
  .file-drop { padding: 18px 10px; }
  .toast { width: auto; max-width: 90vw; }
}

@media (max-width: 480px) {
  .topbar-actions .btn { padding: 7px 9px; font-size: 12px; }
  .topbar-logo { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
  .table th, .table td { padding: 7px 6px; font-size: 12px; }
  .stat-cards { flex-wrap: wrap; }
  .stat-card { flex: 1 1 30%; }
  .sub-row { grid-template-columns: 1fr !important; }
  .modal-foot { flex-wrap: wrap; }
  .avatar.lg { width: 84px; height: 112px; font-size: 26px; }
  .profile-hero-info h2 { font-size: 22px; }
  .term-head { flex-wrap: wrap; }
  .term-meta { width: 100%; margin-left: 0; }
  .hud-corner { display: none; }
}


/* ============ 视觉精修 v9：透明LOGO/去白蒙版/学生信息卡片 ============ */
/* 登录背景：去除白色蒙版，背景完整显示且不变形 */
.v7-veil { display: none !important; }
.login-v7 .v7-bgimg { opacity: 1 !important; width: 100%; height: 100%; object-fit: cover; }
.login-v7 { background: #0b1220; }
.v7-logo-img { filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); }
.v7-page-title { color: #ffffff !important; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 4px 18px rgba(0, 0, 0, 0.45); }
.v7-page-sub { color: #f1f5f9 !important; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55); }

/* 学生基本信息：卡片化、清晰分层 */
.info-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.info-item {
  display: flex; flex-direction: column; gap: 3px;
  background: linear-gradient(135deg, #f8fbff 0%, #f1f6ff 100%);
  border: 1px solid #e6ecf9;
  border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.info-item:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(37, 99, 235, 0.10); border-color: #cfe0ff; }
.info-label {
  display: block; font-size: 11px; font-weight: 600; color: #7c8aa5;
  letter-spacing: 1px; line-height: 1.4;
}
.info-value { font-size: 14px; font-weight: 600; color: #0f172a; word-break: break-all; line-height: 1.5; }
@media (max-width: 720px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .info-item { border-radius: 12px; padding: 8px 10px; }
}
@media (max-width: 420px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .info-item { padding: 7px 8px; }
  .info-label { font-size: 10px; }
  .info-value { font-size: 12.5px; }
}

/* 顶栏 Logo 图片化 */
.topbar-logo { display:flex; align-items:center; justify-content:center; overflow:hidden; padding:2px; background:transparent; box-shadow:none; }
.topbar-logo img { width:100%; height:100%; object-fit:contain; }

/* 挂科标记 */
.score-num.fail { color: #dc2626; font-weight: 800; }
.fail-tag { display:inline-block; background:#fee2e2; color:#b91c1c; border:1px solid #fecaca; font-size:11px; font-weight:700; padding:1px 7px; margin-left:4px; border-radius:999px; vertical-align:1px; }
/* 导入类型选择 */
.import-type-row { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin:6px 0 10px; font-size:13px; color:#475569; }
.import-type { border:1px solid #d8e0ef; background:#fff; color:#475569; padding:6px 12px; border-radius:999px; cursor:pointer; font-size:13px; transition:all .15s; }
.import-type.active { background:linear-gradient(120deg,#06b6d4,#6366f1); color:#fff; border-color:transparent; }
.import-tpl-links { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.import-tpl-links a { text-decoration:none; }

/* 仅手机端学生端：显示顶栏副标题 + 画像贴顶（其余不做改动） */
@media (max-width: 768px) {
  #studentView .topbar-sub { display: block; }
  #studentView .container { padding-top: 4px; }
  #studentView .profile-hero { margin-top: 0; }
}

/* 手机扫码进入 */
.qr-link { border:0; background:none; color:#fff; font-size:13px; letter-spacing:1px; cursor:pointer; padding:4px 10px; border-radius:999px; opacity:.9; text-decoration:none; }
.qr-link:hover { background:rgba(255,255,255,.12); opacity:1; }
.qr-body { text-align:center; }
.qr-body img { width:260px; max-width:100%; height:auto; border:1px solid var(--line); border-radius:14px; }
.qr-tip { color:#475569; font-size:13px; margin:12px 0 2px; line-height:1.8; }

/* 深色登录页二维码链接颜色自适应 */
.login-v7 .qr-link { color:rgba(255,255,255,.85); }
.login-v7 .qr-link:hover { background:rgba(255,255,255,.15); }


/* ---------- 住宿生晚寝打卡 ---------- */
.sec-checkin { border-left: 4px solid #2563eb; }
.checkin-state { font-size: 16px; font-weight: 700; margin: 6px 0; }
.checkin-state.ok { color: #16a34a; }
.checkin-state.warn { color: #d97706; }
.sec-checkin .btn { margin: 10px 0 6px; }

.checkin-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.checkin-tag.ok   { background: #dcfce7; color: #15803d; }
.checkin-tag.warn { background: #fef3c7; color: #b45309; }
.checkin-tag.miss { background: #fee2e2; color: #b91c1c; }

.panel-title { margin: 18px 0 10px; font-size: 15px; color: #64748b; }
.input-time { width: 110px; padding: 4px 8px; }
.ok-text { color: #15803d; }
#campusTableBody input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }

@media (max-width: 720px) {
  .sec-checkin .btn { width: 100%; }
  .input-time { width: 92px; }
}

/* 宿舍楼坐标行内编辑 */
.input-coord { width: 132px; padding: 4px 8px; font-family: Consolas, monospace; font-size: 13px; }
.input-radius { width: 80px; padding: 4px 8px; }

@media (max-width: 720px) {
  .input-coord { width: 108px; font-size: 12px; }
  .input-radius { width: 68px; }
}

/* 打卡明细弹窗 */
.modal-wide { max-width: 900px; width: 92vw; }
.modal-wide .table-wrap { max-height: 52vh; overflow: auto; }

@media (max-width: 720px) {
  .modal-wide { width: 96vw; }
  #checkinPanel .admin-toolbar { flex-wrap: wrap; gap: 8px; }
  #checkinPanel .input[type="date"] { width: 100%; }
}

/* ---------- 打卡状态标签 ---------- */
.checkin-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.7;
}
.checkin-tag.ok   { background: #dcfce7; color: #15803d; }   /* 已打卡 · 绿 */
.checkin-tag.warn { background: #fef3c7; color: #b45309; }   /* 超出范围 · 黄 */
.checkin-tag.miss { background: #fee2e2; color: #b91c1c; }   /* 缺卡 · 红 */

/* 汇总表里的"缺卡"数字：有缺卡标红，为 0 标绿 */
.miss-num        { color: #dc2626; font-weight: 700; }
.miss-num.zero   { color: #15803d; font-weight: 700; }

/* 可选：缺卡整行淡红底，便于扫视 */
tr.row-miss { background: #fff5f5; }
tr.row-miss:hover { background: #ffecec; }

/* 移动端：标签略小，避免撑破表格 */
@media (max-width: 720px) {
  .checkin-tag { font-size: 11px; padding: 2px 8px; }
}

/* ---------- 教师账号：班级标签（表格里） ---------- */
.class-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 280px;
}
.class-chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.7;
  white-space: nowrap;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}
.class-chip.more {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
  cursor: help;
}

/* 班级列不参与挤压：给一个合理的固定宽度 */
.col-classes { width: 300px; }
#teacherManageBody td { vertical-align: middle; }

/* ---------- 教师账号：班级标签输入 ---------- */
.chip-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.chip-input:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.chip-input .chip-entry {
  flex: 1;
  min-width: 140px;
  padding: 2px 0;
  border: none;
  outline: none;
  box-shadow: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.7;
  background: #e0e7ff;
  color: #3730a3;
}
.chip button {
  padding: 0 2px;
  border: none;
  background: transparent;
  color: #4338ca;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}
.chip button:hover { color: #dc2626; }

/* ---------- 教师账号：候选班级 ---------- */
.class-picker-wrap { margin-top: 10px; }
.class-picker-head { margin-bottom: 6px; font-size: 12px; color: #64748b; }
.class-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 150px;
  overflow: auto;
  padding: 8px;
  border: 1px dashed #e2e8f0;
  border-radius: 8px;
  background: #fafbfc;
}
.pick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  cursor: pointer;
}
.pick-chip:hover { border-color: #93c5fd; background: #f0f9ff; }
.pick-chip.on {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.pick-count { font-size: 10px; opacity: .65; }

/* ---------- 移动端 ---------- */
@media (max-width: 720px) {
  .col-classes { width: auto; }
  .class-chips { max-width: 100%; }
  .class-picker { max-height: 180px; }
  #teacherEditorModal .modal { width: 96vw !important; }
}

/* 导出栏 */
.export-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px dashed #dbe3ee;
  border-radius: 10px;
  background: #f8fafc;
}
.input-date { width: 150px; }
.export-hint { font-size: 12px; }

/* 记住账号 */
.remember-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0 10px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}
.remember-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .export-bar { gap: 6px; }
  .input-date { width: 100%; }
  .export-bar .btn { width: 100%; }
}

/* ---------- 教师权限 ---------- */
.perm-group { border-top: 1px dashed #e2e8f0; padding-top: 10px; margin-top: 4px; }
.perm-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: #334155; font-weight: 600; margin-bottom: 8px;
}
.perm-presets { display: flex; gap: 6px; }
.perm-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.perm-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: #475569; cursor: pointer;
}
.perm-item input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.perm-tip { margin: 8px 0 0; font-size: 12px; color: #94a3b8; }

.tag.perm-full { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.tag.perm-none { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

@media (max-width: 720px) {
  .perm-list { grid-template-columns: 1fr; }
  .perm-head { flex-wrap: wrap; gap: 6px; }
}
