/* 智慧校园 V2 - 电脑端共享样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f0f4fa; color: #233; }
a { text-decoration: none; color: inherit; }
input, select, textarea, button { font-family: inherit; font-size: 14px; }

.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0b1e3f 0%, #16305f 45%, #0e4b8f 100%); position: relative; overflow: hidden; }
.login-wrap::before, .login-wrap::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); }
.login-wrap::before { width: 420px; height: 420px; background: rgba(0,180,255,.18); top: -120px; right: -80px; }
.login-wrap::after { width: 520px; height: 520px; background: rgba(120,80,255,.16); bottom: -180px; left: -120px; }
.login-card { position: relative; z-index: 2; width: 380px; background: rgba(255,255,255,.96); border-radius: 16px;
  padding: 36px 34px 30px; box-shadow: 0 24px 60px rgba(4,15,40,.45); }
.login-card h1 { font-size: 22px; color: #0b2a55; text-align: center; }
.login-card .sub { text-align: center; color: #6b7f98; font-size: 13px; margin: 8px 0 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; color: #40536e; margin-bottom: 6px; }
.field input { width: 100%; height: 48px; border: 1px solid #d5e0ee; border-radius: 10px; padding: 0 14px; outline: none; font-size: 15px; }
.field input:focus { border-color: #2f7fe0; box-shadow: 0 0 0 3px rgba(47,127,224,.12); }
.btn { width: 100%; height: 48px; border: 0; border-radius: 10px; background: linear-gradient(90deg,#1b62d0,#2f8fe0);
  color: #fff; font-size: 16px; cursor: pointer; margin-top: 8px; }
.btn:hover { opacity: .92; }
.msg { margin-top: 12px; text-align: center; font-size: 13px; color: #d33; min-height: 18px; }
.msg.ok { color: #18a058; }
.tip { text-align:center; color:#7b8aa0; font-size:12px; margin-top:16px; line-height:1.8; }

.layout { display: flex; min-height: 100vh; }
.sidebar { width: 216px; background: linear-gradient(180deg,#0b1e3f,#10294f); color: #cfdcea; flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar .brand { padding: 20px 18px; font-size: 17px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar .brand small { display: block; font-weight: 400; font-size: 12px; color: #7fa8d8; margin-top: 4px; }
.menu { flex: 1; overflow-y: auto; padding: 10px 0; }
.menu a { display: block; padding: 11px 20px; font-size: 14px; color: #b7c7dd; border-left: 3px solid transparent; }
.menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu a.on { background: rgba(47,143,224,.18); color: #fff; border-left-color: #2f8fe0; }
.sidebar .userbox { padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.sidebar .userbox .uname { color: #fff; font-weight: 600; }
.sidebar .userbox a { color: #7fa8d8; margin-left: 8px; font-size: 12px; }

.main { flex: 1; padding: 22px 28px; max-width: 1280px; }
.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.page-head h2 { font-size: 20px; color: #0b2a55; }
.page-head .actions button { margin-left: 8px; }

.card { background: #fff; border-radius: 12px; padding: 18px; margin-bottom: 16px; box-shadow: 0 2px 10px rgba(20,40,80,.05); }
.card h3 { font-size: 15px; color: #143a66; margin-bottom: 12px; border-left: 4px solid #2f8fe0; padding-left: 10px; }
.grid { display: grid; gap: 14px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g4,.g3,.g2 { grid-template-columns: 1fr 1fr; } }

.stat { background: #fff; border-radius: 12px; padding: 18px; box-shadow: 0 2px 10px rgba(20,40,80,.05); }
.stat .num { font-size: 30px; font-weight: 700; color: #1b62d0; }
.stat .lab { font-size: 13px; color: #6b7f98; margin-top: 6px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 9px 10px; border-bottom: 1px solid #edf2f9; text-align: left; vertical-align: middle; }
th { background: #f5f9ff; color: #40536e; font-weight: 600; white-space: nowrap; }
tr:hover td { background: #f8fbff; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; }
.tag.blue { background: #e8f2ff; color: #1b62d0; }
.tag.green { background: #e6f9ef; color: #18a058; }
.tag.orange { background: #fff3e0; color: #e8850c; }
.tag.red { background: #fdeaea; color: #d33; }
.tag.gray { background: #eef2f6; color: #73839a; }

.btn-s { height: 30px; padding: 0 12px; border-radius: 6px; border: 0; color: #fff; cursor: pointer; font-size: 12px; }
.btn-s.primary { background: #2f7fe0; } .btn-s.green { background: #18a058; }
.btn-s.orange { background: #e8850c; } .btn-s.gray { background: #8a9bb0; }
.btn-s.red { background: #d9534f; } .btn-s.outline { background: #fff; color: #2f7fe0; border: 1px solid #2f7fe0; }
.btn-s + .btn-s { margin-left: 6px; }

.searchbar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.searchbar input, .searchbar select { height: 40px; border: 1px solid #d5e0ee; border-radius: 8px; padding: 6px 14px; outline: none; min-width: 180px; font-size: 14px; }
.searchbar input:focus, .searchbar select:focus { border-color: #2f7fe0; }

.modal-mask { position: fixed; inset: 0; background: rgba(10,20,40,.5); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 14px; width: 1100px; max-width: 98vw; max-height: 86vh; overflow-y: auto; padding: 22px; }
.modal h4 { font-size: 16px; color: #143a66; margin-bottom: 16px; }
.form-row { display: flex; gap: 10px; margin-bottom: 12px; }
.form-row .f { flex: 1; }
.form-row label { display: block; font-size: 13px; color: #40536e; margin-bottom: 4px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid #d5e0ee; border-radius: 8px; padding: 10px 12px; outline: none; font-size: 14px; }
.form-row textarea { min-height: 120px; resize: vertical; }
.modal .foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

.banner-thumb { width: 120px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid #e3ebf5; }
.pick-list { max-height: 260px; overflow-y: auto; border: 1px solid #e3ebf5; border-radius: 8px; }
.pick-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid #f0f4fa; cursor: pointer; }
.pick-item:hover { background: #f2f7ff; }
.pick-item.on { background: #e6f0ff; }
.pick-item .nm { font-weight: 600; color: #143a66; }
.pick-item .cl { color: #8a9bb0; font-size: 12px; }
.empty { color: #9aa8ba; text-align: center; padding: 26px 0; font-size: 13px; }
.textarea-lg { width: 100%; border: 1px solid #d5e0ee; border-radius: 8px; padding: 12px; min-height: 220px; outline: none; font-size: 14px; }
.copy { color: #8a9bb0; font-size: 12px; }
img.star-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #e8f2ff; }
img.star-thumb { width: 42px; height: 32px; border-radius: 6px; object-fit: cover; background: #e8f2ff; vertical-align: middle; margin-right: 6px; }

/* 周课表样式 */
.timetable-wrap { margin-top: 16px; }
.timetable { width: 100%; border-collapse: collapse; }
.timetable th, .timetable td { border: 1px solid #d5e0ee; padding: 10px; text-align: center; }
.timetable th { background: #f0f4fa; font-weight: 600; }
.timetable td { cursor: pointer; min-height: 48px; }
.timetable td:hover { background: #f6f9fe; }
.timetable .subject { font-weight: 600; color: #1b62d0; }
.timetable .teacher { font-size: 12px; color: #6b7f98; }
.timetable .empty-cell { color: #c3cbda; font-size: 12px; }
.timetable .period-label { font-weight: 600; color: #40536e; background: #f0f4fa; }

/* 班级科目任课教师（校核/指定） */
.assign-wrap { margin-top: 12px; }
.assign-class { box-shadow: none; border: 1px solid #e3ebf5; margin-bottom: 10px; }
.assign-class h4 { margin: 0 0 8px; font-size: 14px; color: #40536e; }
.assign-sel { height: 32px; border: 1px solid #d5e0ee; border-radius: 6px; padding: 0 8px; }
.assign-class tr.missing-row td { background: #fff5f5; }
.assign-class tr.missing-row .tag.red { background: #ffe9e9; color: #d33; }
.assign-wrap .tag.red { background: #ffe9e9; color: #d33; }