/* 智慧区队学生协作成长平台 —— 样式表
   主色：藏青 / 浅灰 / 白，辅色：哑金
   ------------------------------------------------------------ */

:root {
  --navy: #0d2038;
  --navy-2: #14304e;
  --navy-3: #1d4166;
  --gold: #b08d57;
  --gold-2: #c3a469;
  --bg: #eef1f5;
  --card: #ffffff;
  --line: #dbe2ea;
  --line-strong: #c4ceda;
  --text: #1b2735;
  --text-2: #3a4a5e;
  --muted: #64748b;
  --muted-2: #8a97a8;
  --danger: #a63a3a;
  --ok: #2f6b4f;
  --warn: #a4762a;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(13, 32, 56, .05), 0 10px 28px rgba(13, 32, 56, .05);
  --font: "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; }
input, textarea, select, button { font-size: inherit; }
::selection { background: rgba(176, 141, 87, .28); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.ico { width: 18px; height: 18px; flex: none; }

.muted { color: var(--muted); font-size: 12px; }
.spacer { flex: 1; }

/* ---------------- 启动 / 加载 ---------------- */

.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  gap: 14px;
}

.boot-mark {
  width: 56px;
  height: 56px;
  border: 2px solid var(--gold);
  display: grid;
  place-items: center;
  font-size: 22px;
  letter-spacing: .1em;
  color: var(--gold-2);
}

.boot-line { width: 120px; height: 1px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.boot-line::after {
  content: "";
  display: block;
  width: 40%;
  height: 100%;
  background: var(--gold-2);
  animation: bootSlide 1.2s ease-in-out infinite;
}
@keyframes bootSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(320%); }
}
.boot-text { color: rgba(255, 255, 255, .7); font-size: 13px; letter-spacing: .12em; }

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  z-index: 99;
}

.view-loading { min-height: 46vh; display: grid; place-items: center; }
.view-loading span {
  width: 26px;
  height: 26px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 顶栏 ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
  color: #fff;
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(195, 164, 105, .9);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--gold-2);
  background: rgba(255, 255, 255, .03);
  letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.brand-text small { font-size: 11px; color: rgba(255, 255, 255, .5); letter-spacing: .16em; }

.topnav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.topnav-link {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, .72);
  border-radius: 2px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.topnav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.topnav-link.active { color: #fff; }
.topnav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--gold-2);
}

.topbar-user { display: flex; align-items: center; gap: 6px; flex: none; }
.topbar-members {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 255, 255, .76);
  font-size: 12.5px;
  cursor: pointer;
  white-space: nowrap;
}
.topbar-members:hover { color: #fff; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.topbar-members .ico { width: 15px; height: 15px; }
.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid transparent;
  padding: 5px 8px;
  border-radius: 3px;
  cursor: pointer;
  color: #fff;
}
.user-chip:hover { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); }
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(195, 164, 105, .6);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--gold-2);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.3; text-align: left; }
.user-meta b { font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.user-meta small { font-size: 11px; color: rgba(255, 255, 255, .55); letter-spacing: .04em; }
.role-tag {
  font-size: 10px;
  color: #0d2038;
  background: var(--gold-2);
  padding: 0 5px;
  border-radius: 2px;
  line-height: 15px;
  font-weight: 500;
}
.role-tag.member { color: var(--muted); background: transparent; border: 1px solid var(--line); font-weight: 400; line-height: 15px; }

.member-list { display: flex; flex-direction: column; }
.member-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.member-row:last-child { border-bottom: none; }
.member-row.self { background: #fbfcfd; }
.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2f7;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 14px;
  flex: none;
}
.member-info { flex: 1; min-width: 140px; display: flex; flex-direction: column; line-height: 1.35; }
.member-info b { font-size: 13.5px; font-weight: 500; color: var(--navy); display: flex; align-items: center; gap: 6px; }
.member-info b i { font-style: normal; font-size: 10px; color: var(--muted); border: 1px solid var(--line); padding: 0 4px; border-radius: 2px; }
.member-info small { font-size: 11px; color: var(--muted); }
.member-row .btn { flex: none; margin-left: auto; }
.topbar-logout { color: rgba(255, 255, 255, .6); }
.topbar-logout:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topbar-logout .ico { transform: rotate(180deg); }

/* ---------------- 主容器 / 通用 ---------------- */

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 28px 56px;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--navy);
  margin-top: 2px;
}
.page-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 2px;
}
.back-link:hover { color: var(--navy); }
.back-link .ico { width: 14px; height: 14px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  min-width: 0;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.card-head h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 9px;
}
.card-head h2::before {
  content: "";
  width: 3px;
  height: 15px;
  background: var(--gold);
  display: inline-block;
}
.card-sub { font-size: 12px; color: var(--muted); margin-top: 5px; }

.error-card { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.confirm-text { color: var(--text-2); font-size: 14px; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--navy);
  font-size: 13.5px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--navy); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .ico { width: 16px; height: 16px; }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn.ghost { background: #fff; border-color: var(--line-strong); color: var(--navy-2); }
.btn.ghost:hover { border-color: var(--navy); background: #f7f9fb; }
.btn.danger { border-color: #d8bcbc; color: var(--danger); background: #fff; }
.btn.danger:hover { border-color: var(--danger); background: #fbf5f5; }
.btn.sm { height: 31px; padding: 0 11px; font-size: 12.5px; }
.btn.block { width: 100%; }

.icon-btn {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: none;
  background: transparent;
  border-radius: 3px;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
  flex: none;
}
.icon-btn:hover { background: rgba(13, 32, 56, .06); color: var(--navy); }
.icon-btn .ico { width: 16px; height: 16px; }

.link-btn {
  border: none;
  background: none;
  color: var(--navy-3);
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- 表单 ---------------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-label { font-size: 12.5px; color: var(--text-2); letter-spacing: .03em; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

input[type="text"], input[type="password"], input[type="search"], input[type="number"],
input[type="date"], input[type="time"], input[type="email"], textarea, select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fff;
  color: var(--text);
  padding: 9px 11px;
  font-size: 13.5px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  min-height: 38px;
}
textarea { resize: vertical; line-height: 1.6; min-height: 76px; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(29, 65, 102, .08);
}
input:disabled { background: #f4f6f9; color: var(--muted); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px; }

.form-grid { display: grid; gap: 0 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 6px; }
.form-error { color: var(--danger); font-size: 12.5px; margin-bottom: 10px; }
.check-line { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check-line input { width: 15px; height: 15px; accent-color: var(--navy); }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.inline-field { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.inline-field input { width: 70px; min-height: 32px; padding: 4px 8px; }

.date-field, .search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 0 10px;
  height: 38px;
}
.date-field span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.date-field input { border: none; padding: 0; height: 34px; width: 136px; box-shadow: none; background: transparent; }
.date-field input:focus { box-shadow: none; }
.search-field .ico { color: var(--muted); }
.search-field input { border: none; padding: 0; box-shadow: none; min-height: 34px; width: 180px; background: transparent; }
.search-field input:focus { box-shadow: none; }

/* ---------------- 首页 ---------------- */

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas:
    "homework side"
    "timetable side";
  gap: 16px;
  align-items: start;
}

.homework-card { grid-area: homework; display: flex; flex-direction: column; min-height: 340px; }
.identity-card { grid-area: identity; padding: 18px 22px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.attendance-card { grid-area: counts; display: block; padding: 18px 22px; border-left: 3px solid var(--gold); transition: border-color .15s, box-shadow .15s; }
.attendance-card:hover { box-shadow: 0 2px 6px rgba(13, 32, 56, .09), 0 14px 32px rgba(13, 32, 56, .08); }
.timetable-card { grid-area: timetable; display: flex; flex-direction: column; }
.tasks-card { grid-area: tasks; }

.homework-list { flex: 1; display: flex; flex-direction: column; }
.hw-item {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.hw-item:last-child { border-bottom: none; }
.hw-due {
  width: 82px;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.35;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.hw-due-label { font-size: 10.5px; color: var(--muted-2); letter-spacing: .08em; }
.hw-due b { font-size: 13px; color: var(--navy); font-weight: 600; }
.hw-due span:last-child { font-size: 11px; color: var(--muted); }
.hw-due.done b { text-decoration: line-through; color: var(--muted); }
.hw-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.hw-course { font-size: 11.5px; color: var(--gold); letter-spacing: .06em; }
.hw-content { font-size: 13.5px; color: var(--text); white-space: pre-wrap; word-break: break-word; margin: 0; }
.hw-del { align-self: center; opacity: 0; transition: opacity .15s; }
.hw-item:hover .hw-del { opacity: 1; }

.identity-row { display: flex; align-items: baseline; gap: 12px; }
.identity-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .18em;
  writing-mode: horizontal-tb;
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 2px;
  flex: none;
}
.identity-value { font-size: 15px; color: var(--navy); font-weight: 500; letter-spacing: .02em; }
.identity-value i { font-style: normal; color: var(--muted); font-size: 12.5px; margin-left: 9px; letter-spacing: .04em; }

.att-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.att-title { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.att-session { font-size: 12.5px; color: var(--navy); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.att-session em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--gold);
  border: 1px solid rgba(176, 141, 87, .45);
  padding: 1px 5px;
  border-radius: 2px;
  letter-spacing: .06em;
}
.att-nums { display: flex; align-items: center; gap: 22px; }
.att-num { display: flex; align-items: baseline; gap: 4px; }
.att-num span { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; }
.att-num strong { font-size: 31px; line-height: 1; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; min-width: 22px; }
.att-num i { font-style: normal; font-size: 11px; color: var(--muted-2); }
.att-line { width: 1px; height: 34px; background: var(--line); }
.att-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.att-link { display: inline-flex; align-items: center; gap: 2px; color: var(--navy-3); }
.att-link .ico { width: 13px; height: 13px; }
.attendance-card:hover .att-link { color: var(--gold); }

.tt-body { flex: 1; }
.tt-list { display: flex; flex-direction: column; }
.tt-row {
  display: grid;
  grid-template-columns: 58px 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}
.tt-row:last-child { border-bottom: none; }
.tt-period { font-size: 11.5px; color: var(--muted); letter-spacing: .04em; }
.tt-time { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tt-course { font-size: 13.5px; color: var(--navy); font-weight: 500; display: flex; align-items: center; gap: 8px; min-width: 0; }
.tt-course em { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--line); padding: 1px 5px; border-radius: 2px; white-space: nowrap; }
.tt-teacher { font-size: 12px; color: var(--muted); }

.task-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 10px;
  align-items: start;
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
}
.task-btn { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 6px 4px; }
.task-circle {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid rgba(13, 32, 56, .22);
  display: grid;
  place-items: center;
  color: var(--navy);
  background: #fbfcfd;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.task-circle .ico { width: 25px; height: 25px; stroke-width: 1.4; }
.task-btn:hover .task-circle { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }
.task-label { font-size: 12.5px; color: var(--text-2); letter-spacing: .04em; }
.task-btn:hover .task-label { color: var(--navy); }

/* ---------------- 登录 / 注册 ---------------- */

.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: var(--bg); }
.auth-aside {
  background: var(--navy);
  color: #fff;
  padding: 64px clamp(36px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.auth-aside::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
}
.auth-emblem { width: 62px; height: 62px; color: rgba(255, 255, 255, .9); margin-bottom: 26px; position: relative; }
.auth-emblem svg { width: 100%; height: 100%; }
.auth-aside h1 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: .06em; line-height: 1.35; position: relative; }
.auth-slogan { color: rgba(255, 255, 255, .62); margin-top: 12px; font-size: 14px; letter-spacing: .04em; position: relative; }
.auth-points { margin-top: 40px; display: flex; flex-direction: column; gap: 0; position: relative; max-width: 380px; }
.auth-points li { display: flex; flex-direction: column; gap: 3px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.auth-points b { font-size: 14px; font-weight: 500; color: var(--gold-2); letter-spacing: .08em; }
.auth-points span { font-size: 12.5px; color: rgba(255, 255, 255, .55); }
.auth-aside-foot { position: absolute; bottom: 40px; left: clamp(36px, 6vw, 96px); color: rgba(255, 255, 255, .3); font-size: 11px; letter-spacing: .28em; }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 28px; gap: 18px; }
.auth-card { width: 100%; max-width: 470px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 34px 28px; }
.auth-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.auth-tabs button {
  border: none;
  background: none;
  padding: 0 2px 12px;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  position: relative;
  letter-spacing: .08em;
}
.auth-tabs button.active { color: var(--navy); font-weight: 600; }
.auth-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }
.auth-form .field { margin-bottom: 13px; }
.auth-form .btn.block { margin-top: 8px; height: 42px; }
.auth-switch { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 16px; }
.auth-foot { color: var(--muted-2); font-size: 11.5px; letter-spacing: .04em; text-align: center; }

/* ---------------- 集合请假 ---------------- */

.att-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy);
  padding: 11px 16px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--text-2);
}

.default-expected-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 16px;
  margin-bottom: 12px;
}
.de-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.de-copy b { font-size: 13.5px; color: var(--navy); font-weight: 600; letter-spacing: .04em; }
.de-copy span { font-size: 11.5px; color: var(--muted); }
.de-control { display: flex; align-items: center; gap: 8px; }
.de-control input {
  width: 104px;
  min-height: 34px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.att-strip b { color: var(--navy); }
.att-strip-tag { font-size: 11px; background: rgba(176, 141, 87, .12); color: #7c6133; padding: 2px 8px; border: 1px solid rgba(176, 141, 87, .35); border-radius: 2px; letter-spacing: .08em; }
.att-strip-note { color: var(--muted); margin-left: auto; }

.session-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.session-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(320px, 1.5fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
}
.session-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.session-clock { font-size: 12px; color: var(--muted); border: 1px solid var(--line); padding: 3px 7px; border-radius: 2px; font-variant-numeric: tabular-nums; }
.session-id b { font-size: 16px; color: var(--navy); font-weight: 600; letter-spacing: .04em; }
.session-stats { display: flex; align-items: center; gap: 26px; }
.stat-field { display: flex; align-items: baseline; gap: 8px; }
.stat-field span { font-size: 12px; color: var(--muted); }
.stat-field b { font-size: 20px; color: var(--navy); font-variant-numeric: tabular-nums; font-weight: 600; }
.stat-field input { width: 76px; min-height: 34px; text-align: center; font-size: 17px; font-weight: 600; color: var(--navy); }

.leave-table { display: flex; flex-direction: column; }
.leave-item {
  display: grid;
  grid-template-columns: 140px 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 13px 2px;
  border-bottom: 1px solid var(--line);
}
.leave-item:last-child { border-bottom: none; }
.leave-person { display: flex; flex-direction: column; line-height: 1.4; }
.leave-person b { font-size: 13.5px; font-weight: 500; color: var(--text); }
.leave-person small { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.badge {
  display: inline-block;
  font-size: 11.5px;
  line-height: 21px;
  padding: 0 9px;
  border-radius: 2px;
  background: rgba(13, 32, 56, .06);
  color: var(--navy-2);
  border: 1px solid rgba(13, 32, 56, .1);
  white-space: nowrap;
  width: fit-content;
}
.badge.ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.leave-detail { min-width: 0; font-size: 12.5px; }
.leave-session { color: var(--gold); font-size: 11.5px; letter-spacing: .06em; }
.leave-detail p { color: var(--text-2); margin-top: 2px; word-break: break-word; white-space: pre-wrap; }
.leave-actions { display: flex; align-items: center; gap: 6px; }

.mini-stats { display: flex; gap: 22px; background: #fff; border: 1px solid var(--line); padding: 10px 18px; border-radius: 3px; }
.mini-stats > div { display: flex; flex-direction: column; line-height: 1.35; }
.mini-stats span { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.mini-stats b { font-size: 19px; color: var(--navy); font-variant-numeric: tabular-nums; }

.leave-form-card { margin-bottom: 18px; }
.form-section { padding: 6px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.form-section:last-of-type { border-bottom: none; margin-bottom: 4px; }
.form-section h2 { font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.upload-area { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.upload-hint { font-size: 12px; color: var(--muted); }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 13px; }
.upload-thumb { position: relative; width: 104px; height: 104px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #f5f7fa; }
.upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-remove {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(13, 32, 56, .75);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.thumb-remove .ico { width: 12px; height: 12px; }
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.type-option {
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 11px 12px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  transition: border-color .15s, background .15s, color .15s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.type-option input { width: 14px; height: 14px; accent-color: var(--navy); margin: 0; }
.type-option:hover { border-color: var(--navy); }
.type-option.active { border-color: var(--navy); background: #f2f5f9; color: var(--navy); font-weight: 500; }

/* ---------------- 课表 ---------------- */

.tt-card { padding: 0; overflow: hidden; }
.tt-grid-wrap { overflow-x: auto; }
.tt-grid { width: 100%; border-collapse: collapse; min-width: 760px; }
.tt-grid th, .tt-grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.tt-grid thead th {
  background: #f7f9fb;
  color: var(--navy-2);
  font-weight: 500;
  font-size: 12.5px;
  padding: 10px 6px;
  letter-spacing: .04em;
  position: sticky;
  top: 0;
}
.tt-grid thead th.today { color: var(--gold); box-shadow: inset 0 2px 0 var(--gold); }
.tt-corner { width: 64px; }
.tt-period-head { width: 64px; font-size: 11.5px; color: var(--muted); font-weight: 400; background: #fafbfd; text-align: center; }
.tt-cell { height: 74px; vertical-align: top; padding: 5px; cursor: pointer; transition: background .12s; position: relative; }
.tt-cell:hover { background: #f5f8fb; }
.tt-cell.today { background: rgba(176, 141, 87, .035); }
.tt-cell:empty::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--line-strong); font-size: 18px; opacity: 0; transition: opacity .12s; }
.tt-cell:hover:empty::after { opacity: 1; }
.tt-entry { background: #f2f5f9; border-left: 2px solid var(--navy-3); padding: 6px 7px; display: flex; flex-direction: column; gap: 1px; height: 100%; }
.tt-entry b { font-size: 12.5px; font-weight: 500; color: var(--navy); line-height: 1.35; }
.tt-entry .tt-room { font-size: 10.5px; color: var(--gold); }
.tt-entry .tt-time { font-size: 10.5px; color: var(--muted); }
.tt-entry .tt-teacher { font-size: 10.5px; color: var(--muted-2); }

/* ---------------- 座位表 ---------------- */

.seat-wrap { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.course-drawer {
  width: 248px;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px;
  display: none;
}
.course-drawer.open { display: block; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding: 0 4px; }
.drawer-head h2 { font-size: 14px; color: var(--navy); letter-spacing: .06em; }
.drawer-tools { display: flex; gap: 2px; }
.course-list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; max-height: 60vh; overflow-y: auto; }
.course-item { display: flex; align-items: center; gap: 2px; border-radius: 3px; }
.course-item.active { background: #f2f5f9; box-shadow: inset 2px 0 0 var(--gold); }
.course-select { flex: 1; text-align: left; border: none; background: transparent; padding: 9px 10px; cursor: pointer; display: flex; flex-direction: column; min-width: 0; }
.course-select b { font-size: 13px; font-weight: 500; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-select span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-item:hover { background: #f7f9fb; }
.course-del { opacity: 0; }
.course-item:hover .course-del { opacity: 1; }
.drawer-add { margin-top: 4px; }

.seat-stage { flex: 1; min-width: 0; padding: 0; overflow: hidden; }
.empty-stage { min-height: 420px; display: grid; place-items: center; }
.seat-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.room-line { display: flex; align-items: baseline; gap: 10px; }
.room-label { font-size: 11px; color: var(--muted); letter-spacing: .16em; }
.room-name { font-size: 17px; color: var(--navy); font-weight: 600; letter-spacing: .04em; }
.my-seat { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #7c6133; background: rgba(176, 141, 87, .1); border: 1px solid rgba(176, 141, 87, .35); padding: 4px 10px; border-radius: 2px; }
.my-seat .ico { width: 14px; height: 14px; }

.seat-edit-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: #f7f9fb;
  border-bottom: 1px solid var(--line);
}
.seat-edit-hint { font-size: 11.5px; color: var(--muted); flex: 1 1 240px; }
.inline-field.wide input { width: 138px; }

.seat-canvas-wrap { overflow-x: auto; padding: 24px 26px 30px; }
.seat-canvas { display: inline-block; min-width: 100%; --seat-w: 82px; }
.seat-col-heads { display: flex; align-items: flex-end; margin-bottom: 7px; }
.seat-axis { width: 44px; flex: none; }
.seat-row { display: flex; align-items: center; margin-bottom: 8px; }
.seat-row-no {
  width: 44px;
  flex: none;
  font-size: 10.5px;
  color: var(--muted-2);
  text-align: right;
  padding-right: 9px;
}
.seat-group {
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--seat-w));
  gap: 4px;
  margin-right: 26px;
  align-items: stretch;
}
.seat-group:last-child { margin-right: 0; }
.seat-group.head { align-items: end; }
.seat-col-head {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .1em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.seat-gap { display: block; width: var(--seat-w); height: 52px; visibility: hidden; }
.seat-cell { position: relative; width: 100%; height: 52px; }
.seat {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 12.5px;
  color: var(--navy);
  transition: border-color .15s, background .15s;
  padding: 2px;
}
.seat.editable { cursor: pointer; }
.seat.editable:hover { border-color: var(--navy); background: #eef3f8; }
.seat.filled { background: #f7f9fb; }
.seat.mine { border-color: var(--gold); background: rgba(176, 141, 87, .09); box-shadow: inset 0 0 0 1px rgba(176, 141, 87, .35); }
.seat-name { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.seat-hint { font-size: 9px; color: var(--muted-2); line-height: 1; }
.seat-add {
  position: absolute;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 12px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: .45;
  z-index: 2;
  transition: opacity .12s, background .12s;
}
.seat-cell:hover .seat-add,
.seat-add:focus { opacity: 1; }
.seat-add:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (hover: none) {
  .seat-add { opacity: .8; }
  .seat-add { width: 18px; height: 18px; }
}
.add-left { left: -8px; top: 50%; transform: translateY(-50%); }
.add-right { right: -8px; top: 50%; transform: translateY(-50%); }
.add-top { top: -8px; left: 50%; transform: translateX(-50%); }
.add-bottom { bottom: -8px; left: 50%; transform: translateX(-50%); }
.seat-blank { min-height: 300px; }
.seat-foot-note { padding: 0 20px 18px; color: var(--muted-2); font-size: 11.5px; }

/* ---------------- 个人任务 / 日历 ---------------- */

.stats-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-bottom: 16px; }
.stat-block { display: flex; flex-direction: column; gap: 8px; }
.stat-head { display: flex; align-items: baseline; justify-content: space-between; }
.stat-head span { font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
.stat-head b { font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; font-weight: 600; }
.stat-head i { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 1px; }
.stat-bar { height: 5px; background: #eaeef3; border-radius: 3px; overflow: hidden; }
.stat-bar span { display: block; height: 100%; background: var(--navy-3); transition: width .4s; }
.stat-meta { font-size: 11px; color: var(--muted-2); }

.month-nav { display: flex; align-items: center; gap: 4px; }
.month-nav b { font-size: 14px; color: var(--navy); font-weight: 600; min-width: 94px; text-align: center; letter-spacing: .02em; }
.month-nav .icon-btn { border: 1px solid var(--line); background: #fff; width: 30px; height: 30px; }
.month-nav .icon-btn:first-child .ico { transform: rotate(0deg); }
.month-nav .btn { margin-left: 6px; }

.calendar-card { padding: 16px 18px 18px; }
.calendar-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 6px; }
.calendar-week span { text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .06em; padding: 4px 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-day {
  min-height: 108px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 6px 6px 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  min-width: 0;
}
.cal-day:hover { border-color: var(--line-strong); background: #fbfcfd; }
.cal-day.out { background: #fafbfc; }
.cal-day.out .cal-num { color: var(--muted-2); }
.cal-day.today { border-color: var(--gold); background: rgba(176, 141, 87, .035); }
.cal-day-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cal-num { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cal-today-tag { font-size: 9.5px; color: var(--gold); border: 1px solid rgba(176, 141, 87, .4); padding: 0 3px; border-radius: 2px; }
.cal-tasks { display: flex; flex-direction: column; gap: 3px; }

.ptask {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11.5px;
  line-height: 1.4;
  padding: 2px 3px;
  border-radius: 2px;
}
.ptask:hover { background: #f2f5f9; }
.ptask-check {
  width: 13px;
  height: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  flex: none;
  margin-top: 2px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--navy);
  padding: 0;
}
.ptask-check .ico { width: 9px; height: 9px; stroke-width: 3; }
.ptask.done .ptask-check { background: var(--navy); border-color: var(--navy); color: #fff; }
.ptask-text { flex: 1; min-width: 0; color: var(--text-2); word-break: break-word; }
.ptask.done .ptask-text { text-decoration: line-through; color: var(--muted-2); }
.ptask-del { border: none; background: none; color: var(--muted-2); cursor: pointer; padding: 0; opacity: 0; display: grid; place-items: center; }
.ptask-del .ico { width: 11px; height: 11px; }
.ptask:hover .ptask-del { opacity: 1; }

/* ---------------- 班级任务 ---------------- */

.tabs { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; background: #fff; }
.tabs button {
  border: none;
  background: transparent;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  border-right: 1px solid var(--line);
  letter-spacing: .04em;
}
.tabs button:last-child { border-right: none; }
.tabs button.active { background: var(--navy); color: #fff; }
.tabs button:not(.active):hover { background: #f5f7fa; color: var(--navy); }

.hw-table { display: flex; flex-direction: column; }
.hw-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 140px auto;
  gap: 18px;
  align-items: center;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}
.hw-row:last-child { border-bottom: none; }
.hw-row-date { display: flex; flex-direction: column; line-height: 1.35; }
.hw-row-date b { font-size: 13px; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.hw-row-date span { font-size: 11px; color: var(--muted); }
.hw-row-date.done b { text-decoration: line-through; color: var(--muted); }
.hw-row-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hw-row-main .hw-course { font-size: 11px; }
.hw-row-meta { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); line-height: 1.5; }
.hw-row-actions { display: flex; align-items: center; gap: 6px; }

.cleaning-grid .cal-day { min-height: 96px; }
.clean-day { position: relative; }
.clean-group { display: flex; flex-direction: column; gap: 1px; background: #f2f5f9; border-left: 2px solid var(--gold); padding: 3px 6px; margin-top: 3px; }
.clean-label { font-size: 9.5px; color: var(--muted); letter-spacing: .1em; }
.clean-group b { font-size: 11.5px; color: var(--navy); font-weight: 500; word-break: break-word; }

/* ---------------- 课堂 ---------------- */

.classroom-wrap { display: flex; gap: 16px; align-items: flex-start; }
.course-bar {
  width: 220px;
  flex: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px;
}
.course-bar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.course-bar-head h2 { font-size: 14px; color: var(--navy); letter-spacing: .06em; }
.course-chips { display: flex; flex-direction: column; gap: 4px; max-height: 52vh; overflow-y: auto; }
.course-chip {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 3px;
  padding: 9px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.course-chip b { font-size: 13px; color: var(--navy); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-chip small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-chip:hover { background: #f5f7fa; }
.course-chip.active { background: #f2f5f9; border-color: var(--line); box-shadow: inset 2px 0 0 var(--gold); }
.course-add-btn { margin-top: 12px; }

.classroom-main { flex: 1; min-width: 0; }
.interaction-form { border: 1px solid var(--line); background: #fbfcfd; padding: 16px; border-radius: 3px; margin-bottom: 20px; }
.interaction-form .form-grid { margin-bottom: 0; }
.interaction-form .field { margin-bottom: 12px; }
.interaction-list { display: flex; flex-direction: column; gap: 18px; }
.interaction-day { display: flex; flex-direction: column; gap: 8px; }
.day-title { font-size: 12px; color: var(--muted); font-weight: 500; letter-spacing: .08em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.interaction-item { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.int-head { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.int-head b { font-size: 12.5px; font-weight: 500; color: var(--navy); }
.int-head .icon-btn { margin-left: auto; width: 24px; height: 24px; opacity: 0; }
.interaction-item:hover .int-head .icon-btn { opacity: 1; }
.int-content { font-size: 13px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }

.notes-list { display: flex; flex-direction: column; gap: 16px; }
.note-card { border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px; }
.note-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.note-title { font-size: 14px; font-weight: 500; color: var(--navy); min-width: 0; flex: 1; }
.note-head .icon-btn { opacity: 0; }
.note-card:hover .note-head .icon-btn { opacity: 1; }
.note-author { margin-top: 10px; font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; align-items: baseline; }
.note-author span { font-size: 10.5px; color: var(--muted-2); letter-spacing: .04em; }

.note-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.file-btn { cursor: pointer; }
.picked-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.picked-file {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 4px 8px;
  background: #fafbfd;
  max-width: 100%;
}
.picked-file .ico { width: 13px; height: 13px; color: var(--muted); }
.picked-file i { font-style: normal; color: var(--muted-2); font-size: 10.5px; }

/* ---------------- 文件展示 ---------------- */

.file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid var(--line);
  background: #fafbfd;
  border-radius: 2px;
  padding: 4px 8px;
  font-size: 11.5px;
  color: var(--navy-2);
  transition: border-color .15s, background .15s;
}
.file-chip:hover { border-color: var(--navy); background: #f2f5f9; }
.file-chip .ico { width: 13px; height: 13px; color: var(--muted); }
.file-chip-name { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip-size { color: var(--muted-2); font-size: 10.5px; }
.media-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.media-item { display: block; width: min(320px, 100%); aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; background: #f3f5f8; }
.media-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.media-item:hover img { transform: scale(1.03); }
.media-video { margin-top: 10px; }
.media-video video { width: 100%; max-height: 420px; background: #000; border-radius: 2px; display: block; }

/* ---------------- 课程资料 ---------------- */

.materials-card { padding: 6px 22px; }
.material-list { display: flex; flex-direction: column; }
.material-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 150px auto;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.material-item:last-child { border-bottom: none; }
.material-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: #f7f9fb;
  display: grid;
  place-items: center;
  color: var(--navy-3);
  border-radius: 2px;
}
.material-icon .ico { width: 20px; height: 20px; }
.material-main { min-width: 0; }
.material-main h3 { font-size: 14.5px; font-weight: 500; color: var(--navy); margin-bottom: 3px; }
.material-desc { font-size: 12.5px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.material-meta { display: flex; flex-direction: column; font-size: 11px; color: var(--muted); line-height: 1.55; }
.material-item > .icon-btn { opacity: 0; margin-top: 8px; }
.material-item:hover > .icon-btn { opacity: 1; }

/* ---------------- 区队记忆 ---------------- */

.memory-list { display: flex; flex-direction: column; gap: 16px; }
.memory-card { padding: 20px 22px; }
.memory-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.memory-title { font-size: 17px; font-weight: 600; color: var(--navy); letter-spacing: .03em; }
.memory-meta { font-size: 11px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 3px; }
.memory-meta span { color: var(--muted-2); }
.memory-text { font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; margin: 8px 0 4px; }

/* ---------------- 职业规划 / 地图 ---------------- */

.career-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.map-card { padding: 14px 16px 12px; overflow: hidden; }
.map-wrap { position: relative; }
.china-map { width: 100%; height: auto; max-height: 620px; display: block; }
.map-provinces .province {
  fill: #e7ecf2;
  stroke: #a7b6c7;
  stroke-width: 1;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .15s, stroke .15s;
}
.map-provinces .province:hover { fill: #cfdceb; stroke: var(--gold); stroke-width: 1.6; }
.map-provinces .province:focus { outline: none; fill: #cfdceb; stroke: var(--gold); stroke-width: 2; }
.map-outline { fill: none; stroke: var(--navy); stroke-width: 2.6; stroke-linejoin: round; pointer-events: none; }
.nine-dash { fill: none; stroke: var(--navy-3); stroke-width: 2; pointer-events: none; }
.map-label { fill: #3c5067; font-size: 10.5px; font-family: var(--font); pointer-events: none; letter-spacing: .02em; }
.map-label.sm { font-size: 9px; fill: #52667e; }
.south-sea {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 104px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid #b9c5d3;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(13, 32, 56, .08);
}
.south-sea svg { width: 100%; height: auto; display: block; }
.ss-island { fill: #d7e0ea; stroke: #7d90a6; stroke-width: .8; }
.south-sea .nine-dash { stroke: #3d5a78; stroke-width: 1.3; }
.ss-dot { fill: #3d5a78; }
.ss-label { fill: #3c5067; font-size: 7px; font-family: var(--font); }
.map-note { font-size: 10.5px; color: var(--muted-2); text-align: center; margin-top: 6px; letter-spacing: .02em; }
.map-card.expanded { position: fixed; inset: 12px; z-index: 60; display: flex; flex-direction: column; padding: 14px 16px; }
.map-card.expanded .map-wrap { flex: 1; display: grid; place-items: center; }
.map-card.expanded .china-map { max-height: calc(100vh - 110px); width: auto; max-width: 100%; }
.map-close { position: absolute; top: 10px; right: 12px; z-index: 2; background: #fff; box-shadow: var(--shadow); }

.career-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.countdown-card { padding: 18px 20px; }
.countdown-list { display: flex; flex-direction: column; }
.countdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
}
.countdown-item:last-child { border-bottom: none; }
.countdown-item:hover { background: #fafbfd; }
.cd-days {
  width: 48px;
  flex: none;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.cd-days small { font-size: 10px; font-weight: 400; color: var(--muted); }
.cd-days.past { color: var(--muted-2); }
.cd-main { display: flex; flex-direction: column; min-width: 0; }
.cd-main b { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-main small { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.notice-card { padding: 18px 20px; }
.notice-list { display: flex; flex-direction: column; gap: 2px; }
.notice-item { display: flex; align-items: flex-start; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.notice-item:last-child { border-bottom: none; }
.notice-main { flex: 1; min-width: 0; }
.notice-main h3 { font-size: 13px; font-weight: 500; color: var(--navy); margin-bottom: 2px; }
.notice-main p { font-size: 12px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.notice-meta { font-size: 10.5px; color: var(--muted-2); display: inline-block; margin-top: 3px; }

/* ---------------- 省份详情 ---------------- */

.province-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; margin-bottom: 16px; }
.province-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.province-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.province-section { padding: 18px 22px; }
.province-section .card-head { margin-bottom: 8px; }
.info-list { display: flex; flex-direction: column; }
.info-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.info-item:last-child { border-bottom: none; }
.info-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.info-head h3 { font-size: 14px; font-weight: 500; color: var(--navy); }
.info-head .icon-btn { margin-left: auto; opacity: 0; }
.info-item:hover .info-head .icon-btn { opacity: 1; }
.info-cat { font-size: 10.5px; color: var(--gold); letter-spacing: .06em; }
.info-content { font-size: 13px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.info-meta { font-size: 10.5px; color: var(--muted-2); margin-top: 7px; }
.status-badge { font-size: 10px; padding: 1px 6px; border-radius: 2px; letter-spacing: .04em; }
.status-badge.pending { color: var(--warn); background: rgba(164, 118, 42, .09); border: 1px solid rgba(164, 118, 42, .3); }
.status-badge.rejected { color: var(--danger); background: rgba(166, 58, 58, .07); border: 1px solid rgba(166, 58, 58, .3); }
.review-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ---------------- 就业问答 ---------------- */

.qa-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 2px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.qa-list { display: flex; flex-direction: column; gap: 10px; }
.qa-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 16px 20px;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.qa-card:hover { border-color: var(--navy-3); box-shadow: var(--shadow); }
.qa-main { flex: 1; min-width: 0; }
.qa-tags { display: flex; gap: 6px; margin-bottom: 5px; }
.qa-card h3 { font-size: 15px; font-weight: 500; color: var(--navy); margin-bottom: 4px; }
.qa-excerpt { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qa-meta { display: flex; align-items: center; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.qa-answers { display: inline-flex; align-items: center; gap: 4px; color: var(--navy-3); }
.qa-answers .ico { width: 13px; height: 13px; }
.qa-arrow { color: var(--line-strong); }
.qa-card:hover .qa-arrow { color: var(--gold); }
.qa-question { padding: 22px 24px; margin-bottom: 14px; }
.qa-content { font-size: 14px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; line-height: 1.8; }
.qa-replies { padding: 20px 24px; }
.reply-list { display: flex; flex-direction: column; }
.reply-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.reply-item:last-child { border-bottom: none; }
.reply-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.reply-head b { font-size: 13px; font-weight: 500; color: var(--navy); }
.reply-head .icon-btn { margin-left: auto; opacity: 0; }
.reply-item:hover .reply-head .icon-btn { opacity: 1; }
.reply-item p { font-size: 13px; color: var(--text-2); white-space: pre-wrap; word-break: break-word; }
.reply-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.reply-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------------- 弹窗 / 提示 ---------------- */

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(9, 20, 34, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff;
  width: min(560px, 94vw);
  max-height: 88vh;
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(5, 15, 28, .32);
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--gold);
}
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; font-weight: 600; color: var(--navy); letter-spacing: .03em; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-body .field:last-child { margin-bottom: 0; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 13px 20px; border-top: 1px solid var(--line); background: #fbfcfd; }
.modal-foot .btn { min-width: 76px; }

.toast-root { position: fixed; right: 20px; bottom: 22px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  padding: 10px 16px;
  border-left: 3px solid var(--gold);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(5, 15, 28, .24);
  max-width: 340px;
  animation: toastIn .2s ease;
}
.toast.error { background: #5e2323; border-left-color: #d08b8b; }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1180px) {
  .career-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .province-grid { grid-template-columns: minmax(0, 1fr) 290px; }
  .home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .topbar-inner { padding: 0 18px; gap: 16px; height: 60px; }
  .brand-text small { display: none; }
  .topnav-link { padding: 7px 10px; font-size: 13px; }
  .topbar-members span { display: none; }
  .topbar-members { padding: 0 8px; }
  .shell { padding: 18px 18px 48px; }
  .home-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "counts"
      "homework"
      "timetable"
      "tasks";
  }
  .homework-card { min-height: 240px; }
  .task-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .career-grid { grid-template-columns: minmax(0, 1fr); }
  .career-side { flex-direction: row; }
  .career-side > .card { flex: 1; }
  .province-grid { grid-template-columns: minmax(0, 1fr); }
  .province-side { order: -1; }
  .classroom-wrap { flex-direction: column; }
  .course-bar { width: 100%; }
  .course-chips { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 4px; }
  .course-chip { flex: none; min-width: 120px; border: 1px solid var(--line); }
  .course-add-btn { margin-top: 8px; }
  .seat-wrap { flex-direction: column; }
  .course-drawer { width: 100%; }
  .seat-stage { width: 100%; }
  .tt-grid { min-width: 700px; }
  .calendar-grid, .calendar-week { min-width: 660px; }
  .calendar-card, .cleaning-grid { overflow-x: auto; }
  .calendar-card { overflow-x: auto; }
  .session-row { grid-template-columns: minmax(0, 1fr) auto; }
  .session-stats { grid-column: 1 / -1; order: 3; }
  .session-actions { justify-self: end; }
  .stats-card { gap: 18px; }
}

@media (max-width: 780px) {
  .topbar-inner { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px 10px; }
  .brand-mark { width: 32px; height: 32px; font-size: 15px; }
  .brand-text strong { font-size: 14px; }
  .topbar-user { margin-left: auto; }
  .user-meta { display: none; }
  .user-chip { padding: 4px; border-color: rgba(255, 255, 255, .14); }
  .topbar-logout { width: 28px; height: 28px; }
  .topnav { order: 3; flex: 0 0 100%; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .topnav-link { font-size: 12.5px; padding: 5px 9px; }
  .topnav-link.active::after { left: 9px; right: 9px; }

  .shell { padding: 14px 13px 44px; }
  .page-head { align-items: flex-start; gap: 12px; }
  .page-head h1 { font-size: 20px; }
  .head-tools { width: 100%; }
  .btn { height: 36px; padding: 0 13px; }
  .btn.sm { height: 30px; }
  .card { padding: 16px 15px; }
  .card-head { flex-wrap: wrap; }

  .att-num strong { font-size: 26px; }
  .att-nums { gap: 16px; }
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 6px; }
  .task-circle { width: 58px; height: 58px; }
  .task-circle .ico { width: 21px; height: 21px; }
  .task-label { font-size: 11.5px; }
  .hw-item { gap: 10px; }
  .hw-due { width: 84px; padding-right: 10px; }
  .identity-value { font-size: 14px; }
  .identity-value i { display: block; margin-left: 0; margin-top: 2px; }

  .form-grid.two, .form-grid.three { grid-template-columns: minmax(0, 1fr); }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-stats { width: 100%; justify-content: space-between; }
  .leave-item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .leave-person { grid-column: 1; }
  .leave-item > .badge { grid-column: 2; justify-self: end; }
  .leave-detail { grid-column: 1 / -1; }
  .leave-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .att-strip-note { margin-left: 0; width: 100%; }

  .stats-card { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .stat-head b { font-size: 19px; }
  .hw-row { grid-template-columns: 92px minmax(0, 1fr); }
  .hw-row-meta { grid-column: 1 / -1; flex-direction: row; gap: 12px; }
  .hw-row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .material-item { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .material-meta { grid-column: 2 / -1; flex-direction: row; gap: 10px; flex-wrap: wrap; }
  .material-item > .icon-btn { grid-column: 3; grid-row: 1; }
  .memory-card { padding: 16px 15px; }
  .career-side { flex-direction: column; }
  .map-label { font-size: 12px; }
  .map-label.sm { font-size: 10px; }
  .south-sea { width: 64px; right: 2px; bottom: 2px; }
  .map-card.expanded { inset: 0; border-radius: 0; }
  .qa-card { padding: 14px; }
  .qa-arrow { display: none; }
  .qa-meta { flex-wrap: wrap; gap: 8px 12px; }
  .reply-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .reply-actions .btn { width: 100%; }

  .modal { width: 100%; max-height: 92vh; }
  .modal-mask { padding: 10px; align-items: flex-end; }
  .modal-foot .btn { flex: 1; }

  .seat-canvas { --seat-w: 70px; }
  .seat, .seat-cell, .seat-gap { height: 46px; }
  .seat-name { font-size: 11.5px; }
  .seat-hint { display: none; }
  .seat-row-no, .seat-axis { width: 36px; }
  .seat-group { margin-right: 18px; }
  .seat-canvas-wrap { padding: 18px 14px 22px; }

  .auth-page { grid-template-columns: minmax(0, 1fr); }
  .auth-aside { display: none; }
  .auth-panel { padding: 32px 16px; }
  .auth-card { padding: 24px 20px; }
  .toast-root { right: 12px; left: 12px; bottom: 14px; }
  .toast { max-width: none; }
}

@media (max-width: 420px) {
  .task-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .task-circle { width: 52px; height: 52px; }
  .task-circle .ico { width: 19px; height: 19px; }
  .task-label { font-size: 10.5px; }
  .att-num strong { font-size: 23px; }
  .type-grid { grid-template-columns: minmax(0, 1fr); }
  .seat-canvas { --seat-w: 62px; }
  .seat, .seat-cell, .seat-gap { height: 42px; }
  .seat-group { margin-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== 我的请假历史（30 天留存 / 超期归档） ===== */
.empty-hint{margin:6px 0 0;font-size:13px;color:#68788d}
.muted-text{font-size:12.5px;color:#68788d}
.leave-row{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid #eef2f8}
.leave-row:last-child{border-bottom:none}
.leave-main{flex:1;min-width:0}
.leave-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:13.5px}
.leave-head b{color:#0b2545}
.leave-session,.leave-type{font-size:12px;padding:1px 8px;border-radius:6px;background:#eaf0f8;color:#14406e}
.leave-reason{margin:4px 0;font-size:13px;color:#4a5b70}
.leave-side{flex:none;text-align:right}

/* ===== 课堂互动：我的课筛选 + 发言统计 ===== */
.course-filter{margin:0 0 8px}
.course-filter .btn.active{background:#0b2545;color:#fff;border-color:#0b2545}
.speak-rank{background:#f6f9fd;border:1px solid #e2e9f3;border-radius:10px;padding:10px 12px;margin:0 0 12px;font-size:13px}
.speak-rank .muted{color:#68788d}
.speak-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.speak-item{font-size:12.5px;padding:3px 10px;border-radius:20px;background:#eaf0f8;color:#14406e}
.speak-item b{color:#0b2545}

/* ===== 职业规划三栏：测评 / 趋势 / 就业计划 ===== */
.career-tool{font-size:13.5px}
.quiz-result{margin:6px 0 0;padding-left:20px}
.quiz-result li{margin:5px 0}
.quiz-result .muted{margin-left:6px;font-size:12px;color:#68788d}
.trend-list{margin:6px 0 0;padding-left:0;list-style:none}
.trend-list li{padding:8px 0;border-bottom:1px solid #eef2f8;line-height:1.7}
.trend-list li:last-child{border-bottom:none}
.trend-list .lv{display:inline-block;font-family:Consolas,monospace;font-size:10.5px;padding:1px 6px;border-radius:4px;background:#eef2f8;color:#4a5b70;margin-right:6px;border:1px solid #e0e7f1}
.trend-src{display:block;font-size:11.5px;color:#8a9ab0;margin-top:2px}
.career-order{margin-top:8px}
.career-order-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px 12px;margin-bottom:8px;border:1px solid #dde5ef;border-radius:10px;background:#fbfdff;cursor:pointer;font-family:inherit}
.career-order-item:hover{background:#eef4fb}
.co-rank{flex:none;width:22px;height:22px;border-radius:50%;background:#0b2545;color:#fff;font-size:12px;display:grid;place-items:center}
.co-main{flex:1;min-width:0}
.co-main b{display:block;font-size:13.5px;color:#0b2545}
.co-main small{font-size:11.5px;color:#68788d}
.co-arrow{flex:none;color:#8a9ab0;font-size:18px}
.row-gap{margin-top:10px}
.quiz-wrap{max-height:60vh;overflow:auto}
.quiz-q{margin-bottom:14px}
.quiz-qt{margin:0 0 6px;font-weight:700;font-size:13.5px;color:#0b2545}
.quiz-opt{display:flex;gap:8px;align-items:flex-start;font-size:13px;padding:4px 6px;border-radius:6px;cursor:pointer}
.quiz-opt:hover{background:#eef4fb}
.quiz-opt input{margin-top:3px;accent-color:#14406e}
.cp-desc{margin:0 0 10px;color:#4a5b70}
.cp-title{margin:12px 0 6px;font-size:13.5px;color:#0b2545}
.cp-list{margin:0;padding-left:20px;font-size:13px;line-height:1.8}
.cp-list li{margin:3px 0}
.cp-prep{margin:12px 0 0;padding:8px 10px;background:#fbf3d8;border-radius:8px;font-size:12.5px;color:#8a6d0b}

/* ===== logo 美化 ===== */
.brand-logo{width:36px;height:36px;border-radius:10px;object-fit:cover;flex:none;box-shadow:0 1px 4px rgba(11,37,69,.18)}
.auth-logo{width:72px;height:72px;border-radius:18px;object-fit:cover;box-shadow:0 4px 18px rgba(11,37,69,.22)}

/* ===== 座位表：excel 原样表格模式 ===== */
.seat-grid-scroll{overflow:auto;max-width:100%;padding:4px}
.seat-grid-table{border-collapse:collapse;margin:0 auto;background:#fff}
.seat-grid-table td{width:52px;height:40px;min-width:52px;text-align:center;vertical-align:middle;font-size:12px;padding:2px;border:1px solid #e6ecf5;color:#16202c}
.seat-grid-table td.sg-empty{border:1px dashed #eef2f8;background:#fafcfe}
.seat-grid-table td.sg-seat{background:#f4f8fd;font-weight:600;cursor:pointer;border:1px solid #cfdcec}
.seat-grid-table td.sg-seat:hover{background:#e6eff9}
.seat-grid-table td.sg-mark{background:#0d2038;color:#fff;font-weight:700;letter-spacing:2px}
.seat-grid-table td.sg-label{background:#fbfdff;color:#68788d;font-size:11.5px}
.seat-grid-table td.sg-me{background:#0d2038!important;color:#fff;box-shadow:inset 0 0 0 2px #c3a469;position:relative}
.seat-grid-table td.sg-me .sg-me-tag{position:absolute;top:-1px;right:-1px;background:#c3a469;color:#1b2430;font-style:normal;font-size:9px;padding:0 3px;border-radius:0 0 0 4px}
.sg-sheet{margin-left:10px;font-size:11.5px;color:#8a9ab0}

/* ===== 报录比卡片 ===== */
.ratio-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin:4px 0 10px}
@media(max-width:560px){.ratio-grid{grid-template-columns:1fr}}
.ratio-item{border:1px solid #dde5ef;border-radius:10px;padding:10px 12px;background:#fbfdff}
.ratio-item.ratio-best{border-color:#c3a469;background:#fffdf5}
.ratio-num{font-size:22px;font-weight:800;color:#0b2545;line-height:1.2}
.ratio-num small{font-size:11px;font-weight:600;color:#68788d;margin-left:4px}
.ratio-name{font-size:13px;font-weight:700;color:#14406e;margin-top:2px}
.ratio-name .lv{font-family:Consolas,monospace;font-size:10px;padding:1px 5px;border-radius:4px;background:#eef2f8;color:#4a5b70;margin-left:6px;border:1px solid #e0e7f1}
.ratio-note{font-size:12px;color:#4a5b70;margin-top:4px;line-height:1.6}
.ratio-src{font-size:11px;color:#8a9ab0;margin-top:4px}
.ratio-region{font-size:12.5px;color:#4a5b70;line-height:1.75}
.ratio-region .ratio-tip{margin-top:6px;padding:8px 10px;background:#fbf3d8;border-radius:8px;color:#8a6d0b}


/* ===== 省级页面：下拉式板块 ===== */
.province-section{padding:0}
.province-section>summary{list-style:none;cursor:pointer;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.province-section>summary::-webkit-details-marker{display:none}
.province-section>summary h2{margin:0;font-size:15px}
.province-section>summary::after{content:'›';font-size:18px;color:#8a9ab0;transition:transform .18s;flex:none}
.province-section[open]>summary::after{transform:rotate(90deg)}
.province-section[open]>summary{border-bottom:1px solid #eef2f8}
.sec-count{font-size:12px;color:#68788d;white-space:nowrap}
.province-section .info-list{padding:4px 18px 16px}


/* ===== 职业规划：推理 + 时间线 ===== */
.cp-reason{margin:6px 0 4px;padding-left:20px;font-size:13px;line-height:1.85;color:#3d4c60}
.cp-reason li{margin:4px 0}
.cp-reason b{color:#0b2545}
.cp-timeline{list-style:none;margin:10px 0 0;padding:0 0 0 22px;position:relative}
.cp-timeline:before{content:'';position:absolute;left:6px;top:6px;bottom:10px;width:2px;background:linear-gradient(#c3a469,#dde5ef)}
.cp-node{position:relative;margin-bottom:16px}
.cp-dot{position:absolute;left:-22px;top:5px;width:12px;height:12px;border-radius:50%;background:#fff;border:2.5px solid #c3a469}
.cp-stage{font-weight:700;font-size:13.5px;color:#0b2545;margin-bottom:3px}
.cp-tasks{margin:0 0 4px;padding-left:18px;font-size:12.5px;line-height:1.8;color:#3d4c60}
.cp-tasks li{margin:2px 0}
.cp-check{margin:0;font-size:12px;color:#8a6d0b;background:#fbf3d8;border-radius:6px;padding:5px 9px}
.cp-warn{margin:10px 0 0;font-size:11.5px;color:#8a9ab0}


/* ===== 省份页：本省数据块 ===== */
.province-local{border-color:#c3a469;background:#fffdf7}
.province-local-empty{border-color:#dde5ef;background:#fbfdff}
.province-divider{margin:16px 0 8px;font-size:12px;color:#8a9ab0;letter-spacing:1px}
.province-divider:before,.province-divider:after{content:'—';margin:0 6px;color:#cfdcec}


/* ===== 责教安排 · 高级浅粉主题 ===== */
.duty-card,.duty-result{
  background:linear-gradient(135deg,#fdf6f8 0%,#faedf1 100%);
  border-color:#ebd2db;
  box-shadow:0 1px 3px rgba(166,90,112,.07);
}
.duty-card .card-head h2,.duty-result .card-head h2{color:#7e4055}
.duty-card .card-sub,.duty-result .card-sub{color:#a8607a}
.duty-next{display:flex;flex-direction:column;gap:6px}
.duty-next-date{font-size:15px;font-weight:800;color:#7e4055}
.duty-next-date small{margin-left:7px;font-size:12px;font-weight:600;color:#a8607a}
.duty-next-task{font-size:14px;color:#5c3a46}
.duty-next-task b{margin-left:6px;color:#7e4055;font-weight:800}
.duty-next-group{font-size:12px;color:#a8607a}
.duty-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(158px,1fr));gap:8px}
.duty-line{display:flex;align-items:center;gap:3px;padding:9px 12px;border-radius:9px;background:#fff;border:1px solid #ebd2db;font-size:13px;color:#3d4c60}
.duty-line.duty-me{background:#f5dfe6;border-color:#ddafbf;font-weight:700;box-shadow:inset 0 0 0 1px #e9c6d2}
.duty-task{color:#7e4055}
.duty-dot{color:#c9a6b2;margin:0 1px}
.duty-name{display:inline-flex;align-items:center;gap:5px}
.duty-tag{font-style:normal;font-size:9.5px;padding:0 4px;border-radius:4px;background:#a8607a;color:#fff;line-height:1.5}
.duty-badge{font-size:11.5px;padding:3px 9px;border-radius:6px;background:#f3dce4;color:#7e4055;border:1px solid #e5c3cf}
.duty-date{padding:7px 10px;border:1px solid #ebd2db;border-radius:8px;font-size:13px;background:#fff;color:#7e4055}
.duty-chips{display:flex;gap:8px;flex-wrap:wrap;padding:0 18px 14px}
.duty-chips .chip{border:1px solid #ebd2db;background:#fff;color:#a8607a;border-radius:999px;padding:6px 14px;font-size:12.5px;cursor:pointer}
.duty-chips .chip:hover{background:#fbeef2}
.duty-private{margin:0;padding:6px 18px 18px;font-size:13px;color:#8a9ab0}
.duty-today .card-head{align-items:center}


/* ===== 首页任务栏（责教 + 作业 两小栏）===== */
.task-panel{padding-bottom:8px}
.tp-sub{padding:4px 18px 14px}
.tp-sub + .tp-sub{border-top:1px solid #eef2f8;margin-top:2px;padding-top:12px}
.tp-sub-head{display:flex;align-items:center;gap:9px;margin-bottom:9px;flex-wrap:wrap}
.tp-title{font-size:13px;font-weight:800;color:#0b2545;letter-spacing:.5px;display:inline-flex;align-items:center;gap:6px}
.tp-title:before{content:'';width:3px;height:13px;border-radius:2px;background:#0b2545;display:inline-block}
.tp-meta{font-size:11.5px;color:#8a9ab0}
.tp-link{margin-left:auto;font-size:12px;color:#14406e;text-decoration:none;display:inline-flex;align-items:center;gap:2px}
.tp-link:hover{text-decoration:underline}
/* 责教小栏：浅粉 */
.tp-duty{background:linear-gradient(135deg,#fdf6f8 0%,#faedf1 100%);border-radius:10px;border:1px solid #ebd2db;margin:2px 12px 10px;padding:12px 14px}
.tp-duty .tp-title{color:#7e4055}
.tp-duty .tp-title:before{background:#b06a80}
.tp-duty .tp-meta{color:#a8607a}
.tp-duty .tp-link{color:#9c5570}
.duty-self{display:flex;align-items:baseline;gap:10px;padding:8px 12px;background:#fff;border:1px solid #ebd2db;border-radius:9px}
.duty-self-task{font-size:15px;font-weight:800;color:#7e4055}
.duty-self-name{font-size:13px;color:#5c3a46}
.duty-list.duty-inline{grid-template-columns:repeat(auto-fill,minmax(146px,1fr))}


/* ===== 责教：周视图 ===== */
.duty-week-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:0 16px 10px}
.duty-day{display:flex;flex-direction:column;gap:2px;align-items:center;padding:8px 4px;border:1px solid #ebd2db;background:#fff;border-radius:9px;cursor:pointer;font-size:11.5px;color:#7e4055;transition:background .15s,border-color .15s}
.duty-day:hover{background:#fdf2f6}
.duty-day.is-today{border-color:#c98fa4;box-shadow:0 0 0 2px rgba(176,106,128,.12)}
.duty-day.is-selected{background:#f5dfe6;border-color:#c98fa4}
.duty-day.is-off{background:#f7f9fc;border-color:#e6ecf5;color:#a8b4c4}
.dd-week{font-weight:700}
.dd-date{font-size:10.5px;color:#a8607a}
.duty-day.is-off .dd-date{color:#b6c1cf}
.dd-group{font-size:10.5px;font-weight:700;color:#7e4055;margin-top:1px}
.duty-day.is-off .dd-group{color:#b6c1cf;font-weight:500}
.duty-week-nav{display:flex;gap:8px;padding:2px 16px 14px}
.duty-group-only .duty-self-task{color:#7e4055}
@media(max-width:640px){
  .duty-week-strip{grid-template-columns:repeat(4,minmax(0,1fr))}
  .task-panel{min-height:0}
}


/* ===== 首页视觉优化：集合人数 + 请假信息 ===== */
.attendance-card{
  background:linear-gradient(135deg,#ffffff 0%,#f7fafd 100%);
  border:1px solid #e6ecf5;
  border-left:3px solid var(--gold);
  border-radius:14px;
  padding:20px 22px 14px;
}
.att-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.att-title{font-size:14px;font-weight:700;color:#0b2545;letter-spacing:.5px}
.att-session{font-size:12px;color:#8a9ab0;display:inline-flex;align-items:center;gap:6px}
.att-session em{font-style:normal;font-size:11px;padding:1px 6px;border-radius:4px;background:#fbf3d8;color:#8a6d0b}
.att-nums{display:flex;align-items:center;gap:16px;margin:14px 0 10px}
.att-num{display:flex;align-items:baseline;gap:5px}
.att-num span{font-size:12px;color:#8a9ab0}
.att-num strong{font-size:30px;font-weight:800;color:#0b2545;line-height:1;letter-spacing:-.5px}
.att-num i{font-style:normal;font-size:12px;color:#8a9ab0}
.att-line{width:1px;height:26px;background:#e6ecf5}
/* 请假区 */
.att-leave{margin:2px 0 10px;padding:10px 12px;border-radius:10px;background:#fbfcfe;border:1px dashed #e2e9f3}
.att-leave .al-head{font-size:12px;font-weight:700;color:#14406e;margin-bottom:6px}
.att-leave .al-head b{color:#b06a80}
.att-leave .al-empty{font-size:12px;color:#9aa9bd}
.al-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.al-list li{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;color:#3d4c60}
.al-list li b{font-weight:600;color:#16202c}
.al-list li span{font-size:11.5px;color:#7e4055;background:#fbeef2;border-radius:4px;padding:1px 7px}
.al-list li.al-more{color:#9aa9bd;font-size:11.5px;justify-content:flex-start}
.att-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #eef2f8;padding-top:10px;font-size:12px;color:#8a9ab0}
.att-link{display:inline-flex;align-items:center;gap:2px;color:#14406e;font-weight:600}
/* 任务栏：卡片内部呼吸感 */
.task-panel{padding-bottom:10px}
.tp-sub{padding:6px 18px 14px}
.tp-sub + .tp-sub{margin-top:4px;padding-top:14px}
.tp-title{font-size:12.5px}
/* 任务入口：8 项 4 列更整齐 */
.task-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media(max-width:560px){.att-num strong{font-size:26px}}


/* ===== 手机端作业项：上下堆叠 ===== */
@media (max-width: 640px) {
  .hw-item { flex-direction: column; gap: 6px; padding: 12px 2px; }
  .hw-due {
    width: auto; flex-direction: row; align-items: baseline; gap: 6px;
    border-right: none; border-left: 2px solid var(--line); padding: 0 0 0 8px;
  }
  .hw-due-label { font-size: 10px; }
  .hw-due b { font-size: 12.5px; }
  .hw-main { min-width: 0; }
  .task-panel { min-height: 0; }
}


/* 任务入口通栏（桌面端一行 8 项） */
@media (min-width: 981px) {
  .task-panel { min-height: 0; }
}


/* ===== 首页右列：集合人数 + 任务入口 独立堆叠 ===== */
.home-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.home-side .attendance-card { display: block; }
@media (max-width: 980px) {
  .home-grid { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
  .home-side { display: contents; }
  .attendance-card { order: 1; }
  .task-panel { order: 2; }
  .timetable-card { order: 3; }
  .tasks-card { order: 4; }
}


/* 启动页院徽 */
.boot-logo { width: 72px; height: 72px; border: none; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }


/* ===== 文件打开/下载、照片保存 ===== */
.file-chip-wrap { display: inline-flex; align-items: center; gap: 6px; }
.file-save {
  font-size: 11px; color: #14406e; text-decoration: none;
  border: 1px solid #d8e2f0; border-radius: 6px; padding: 2px 8px; background: #f7fafd;
}
.file-save:hover { background: #eef4fb; }
.media-cell { position: relative; }
.media-save {
  position: absolute; right: 6px; bottom: 6px;
  font-size: 11px; color: #fff; background: rgba(13,32,56,.78);
  border-radius: 6px; padding: 3px 9px; text-decoration: none; backdrop-filter: blur(2px);
}
.media-save:hover { background: rgba(13,32,56,.92); }
.topbar-sync.is-syncing svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.topbar-sync { color: #dfe7f2; }
@media (max-width: 980px) {
  .media-save { font-size: 12px; padding: 4px 10px; }
  .file-save { padding: 4px 10px; font-size: 12px; }
}
