/* ===== 实验室学生管理系统 · 原型样式 ===== */
:root {
  --primary: #2563eb;
  --primary-d: #1d4ed8;
  --primary-l: #eff4ff;
  --nav: #101c33;
  --nav-2: #18294a;
  --nav-text: #9fb0ca;
  --nav-text-a: #ffffff;
  --bg: #f4f6fa;
  --card: #ffffff;
  --border: #e4e8f0;
  --border-2: #eef1f6;
  --text: #1f2937;
  --text-2: #5b6577;
  --text-3: #8c96a8;
  --green: #0f9d63;
  --green-bg: #e6f7f0;
  --blue: #2563eb;
  --blue-bg: #e8f0fe;
  --amber: #b45309;
  --amber-bg: #fdf3e3;
  --red: #d64545;
  --red-bg: #fdecec;
  --gray: #64748b;
  --gray-bg: #eef1f6;
  --purple: #7c3aed;
  --purple-bg: #f1ecfd;
  --teal: #0d9488;
  --teal-bg: #e3f7f4;
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 13px; color: var(--text); }
.hidden { display: none !important; }

/* ---------- 登录页 ---------- */
.login-wrap {
  position: fixed; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 430px; align-items: center;
  gap: clamp(48px, 8vw, 150px); padding: clamp(32px, 5vw, 88px) clamp(38px, 8vw, 150px);
  overflow-x: hidden; overflow-y: auto;
  background: #071426 url("../assets/login-bg-v2.jpg") center center / cover no-repeat;
}
/* 深色电影感遮罩：左侧托住标题，右侧留出安静空间放表单。 */
.login-wrap::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 13, 28, .2) 0%, rgba(4, 13, 28, .08) 46%, rgba(4, 13, 28, .58) 72%, rgba(4, 13, 28, .78) 100%),
    linear-gradient(0deg, rgba(2, 9, 20, .36), transparent 38%);
}
.login-wrap::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -210px; top: -230px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(63, 139, 255, .2), transparent 68%);
  filter: blur(8px);
}
.login-intro {
  position: relative; z-index: 1; align-self: end; max-width: 610px;
  margin: 0 0 clamp(26px, 6vh, 76px) clamp(4px, 2vw, 28px); color: #fff;
  text-shadow: 0 3px 24px rgba(0, 9, 24, .45);
}
.login-eyebrow, .login-card-cap {
  display: flex; align-items: center; gap: 9px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 2.3px;
}
.login-eyebrow { color: #9fc7ff; margin-bottom: 17px; }
.login-eyebrow span { width: 30px; height: 1px; background: #f4b942; box-shadow: 0 0 10px rgba(244, 185, 66, .65); }
.login-intro h1 { font-size: clamp(38px, 4vw, 62px); line-height: 1.13; letter-spacing: 2px; font-weight: 650; }
.login-intro p { max-width: 510px; margin-top: 20px; color: rgba(223, 235, 251, .82); font-size: 14px; letter-spacing: .4px; }
.login-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.login-tags span {
  padding: 5px 10px; border: 1px solid rgba(155, 197, 255, .25); border-radius: 20px;
  color: rgba(219, 234, 255, .72); background: rgba(7, 24, 49, .28);
  backdrop-filter: blur(8px); font-size: 9.5px; letter-spacing: 1.2px;
}
.login-card {
  position: relative; z-index: 2; width: 430px; flex-shrink: 0;
  padding: 30px 36px 26px; border-radius: 22px;
  background: rgba(250, 252, 255, .92);
  backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .66);
  box-shadow: 0 30px 90px rgba(0, 7, 20, .48), inset 0 1px 0 rgba(255, 255, 255, .72);
}
.login-card::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, #387bd8 35%, #f4b942 70%, transparent);
  opacity: .8;
}
.login-card-cap { color: #7890ad; margin-bottom: 19px; }
.login-card-cap span { width: 7px; height: 7px; border-radius: 50%; background: #f4b942; box-shadow: 0 0 0 4px rgba(244, 185, 66, .15); }
.login-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 20px; }
.login-brand img { width: 190px; height: auto; display: block; }
.login-brand p { font-size: 11.5px; color: var(--text-3); letter-spacing: .8px; }
.login-welcome { margin-bottom: 18px; }
.login-welcome h2 { font-size: 21px; line-height: 1.4; font-weight: 650; color: #12213a; }
.login-welcome p { margin-top: 2px; font-size: 12px; color: var(--text-3); }
.login-card label { display: block; font-size: 12px; font-weight: 500; color: #53647b; margin: 13px 0 7px; }
.login-card .tip {
  margin-top: 17px; padding-top: 14px; border-top: 1px solid rgba(202, 214, 231, .72);
  font-size: 11px; color: var(--text-3); text-align: left; line-height: 1.7;
}

/* ---------- 表单控件 ---------- */
.input, .select {
  width: 100%; height: 34px; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 8px;
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.select { appearance: none; padding-right: 26px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'><path d='M1 3l4 4 4-4' fill='none' stroke='%238c96a8' stroke-width='1.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center;
}
.login-card .input, .login-card .btn { height: 44px; }
.login-card .input {
  padding: 0 13px; border-color: #d4deeb; border-radius: 10px;
  background: rgba(255, 255, 255, .82); font-size: 13px;
}
.login-card .input:hover { border-color: #b9c9dc; }
.login-card .input:focus { background: #fff; border-color: #3478d4; box-shadow: 0 0 0 4px rgba(52, 120, 212, .11); }
.login-card .btn {
  width: 100%; margin-top: 21px; border: 0; border-radius: 10px;
  background: linear-gradient(100deg, #075b9a, #1678c1 72%, #237fc2);
  box-shadow: 0 9px 20px rgba(9, 91, 153, .24); font-weight: 600; letter-spacing: 5px;
}
.login-card .btn:hover { background: linear-gradient(100deg, #064f87, #116cb0); transform: translateY(-1px); box-shadow: 0 12px 24px rgba(9, 91, 153, .3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 15px; border-radius: 8px;
  border: 1px solid var(--border); background: #fff; color: var(--text);
  font-size: 13px; transition: all .15s; white-space: nowrap;
}
.btn:hover { border-color: #c9d2e0; background: #fafbfd; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); border-color: var(--primary-d); }
.btn-sm { height: 28px; padding: 0 11px; font-size: 12px; border-radius: 7px; }
.btn-text { border: none; background: none; color: var(--primary); padding: 0 4px; height: auto; }
.btn-text:hover { background: none; text-decoration: underline; }
.btn-text.danger { color: var(--red); }
.btn-text.muted { color: var(--text-3); }
/* 危险按钮：不可恢复的操作（删除已通过的发票）用它，浅红底 + 红字 */
.btn-danger { background: var(--red-bg); border-color: transparent; color: var(--red); }
.btn-danger:hover { background: var(--red); border-color: var(--red); color: #fff; }
.icon-btn {
  border: none; background: none; color: var(--text-3); font-size: 17px;
  width: 26px; height: 26px; border-radius: 6px; line-height: 1;
}
.icon-btn:hover { background: var(--gray-bg); color: var(--text); }

/* ---------- 布局 ---------- */
.app { display: flex; height: 100vh; overflow: hidden; }

.sidebar {
  width: 224px; flex: 0 0 224px; background: var(--nav);
  display: flex; flex-direction: column;
}
.brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  padding: 16px 14px 15px; border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.brand .brand-logo {
  width: 132px; height: auto; display: block;
  filter: brightness(1.22) saturate(1.02);
}
.brand small { color: var(--nav-text); font-size: 10.5px; letter-spacing: .3px; white-space: nowrap; text-align: center; }
.menu { flex: 1; overflow-y: auto; padding: 12px 0 20px; }
/* 侧栏左下角：进入管理系统按钮 */
#menu { display: flex; flex-direction: column; }
.side-ft { margin-top: auto; padding: 10px 4px 8px; border-top: 1px solid rgba(255,255,255,.08); cursor: pointer; }
.side-ft .menu-item { margin: 0; border-radius: 8px; }

.menu::-webkit-scrollbar { width: 5px; }
.menu::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 3px; }
.menu-group { padding: 14px 18px 6px; font-size: 11px; color: #64748b; letter-spacing: 1px; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 10px; padding: 0 11px; height: 38px; border-radius: 8px;
  color: var(--nav-text); font-size: 13px; transition: all .15s;
}
.menu-item svg { flex: 0 0 16px; }
.menu-item:hover { background: var(--nav-2); color: #fff; }
.menu-item.active { background: var(--primary); color: var(--nav-text-a); }

.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.topbar {
  height: 60px; flex: 0 0 60px; background: #fff; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
}
.topbar h2 { font-size: 15px; font-weight: 600; }
.topbar .crumb { font-size: 12px; color: var(--text-3); }
.topbar .spacer { flex: 1; }
.topbar .quick {
  display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 8px; color: var(--text-3); width: 190px;
}
.topbar .quick input { border: none; outline: none; flex: 1; background: none; }
.user-chip { display: flex; align-items: center; gap: 9px; padding-left: 16px; border-left: 1px solid var(--border); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary-l); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
}
.user-chip .nm { font-size: 13px; font-weight: 500; line-height: 1.25; }
.user-chip .rl { font-size: 11.5px; color: var(--text-3); line-height: 1.25; }

.content { flex: 1; overflow-y: auto; padding: 20px 24px 40px; }
.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.page-head .desc { font-size: 12.5px; color: var(--text-3); }
.page-head .spacer { flex: 1; }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.card-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border-2);
}
.card-hd h3 { font-size: 13.5px; font-weight: 600; }
.card-hd .spacer { flex: 1; }
.card-hd .sub { font-size: 12px; color: var(--text-3); }
.card-bd { padding: 18px; }
.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; }
.grid-2e { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---------- 统计卡 ---------- */
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.stat .lb { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.stat .val { font-size: 26px; font-weight: 600; margin: 8px 0 4px; letter-spacing: -.5px; }
.stat .val span { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 3px; }
.stat .ft { font-size: 12px; color: var(--text-3); }
.stat .ft b { font-weight: 500; color: var(--green); }
.stat .ft b.dn { color: var(--red); }
.stat .ic {
  width: 30px; height: 30px; border-radius: 8px; display: flex;
  align-items: center; justify-content: center; background: var(--primary-l); color: var(--primary);
}

/* ---------- 图表 ---------- */
.bars { display: flex; align-items: stretch; gap: 18px; height: 208px; padding: 6px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.bar-wrap { flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.bar {
  width: 100%; max-width: 46px; border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #4d82f3 0%, #2563eb 100%);
  position: relative; transition: height .5s ease;
}
.bar.low { background: linear-gradient(180deg, #f5b86a 0%, #e59b34 100%); }
.bar i {
  position: absolute; top: -19px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-style: normal; color: var(--text-2); font-weight: 500;
}
.bar-lb { text-align: center; font-size: 12px; color: var(--text-3); margin-top: 9px; }

.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut { position: relative; width: 132px; height: 132px; flex: 0 0 132px; border-radius: 50%; }
.donut::after {
  content: ''; position: absolute; inset: 26px; background: #fff; border-radius: 50%;
}
.donut .ctr {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.donut .ctr b { font-size: 21px; font-weight: 600; }
.donut .ctr small { font-size: 11.5px; color: var(--text-3); }
.legend { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.legend div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.legend .sw { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 9px; }
.legend .sp { flex: 1; }
.legend .vl { color: var(--text-3); }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left; font-size: 12px; font-weight: 500; color: var(--text-2);
  background: #f8fafc; padding: 10px 14px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl td {
  padding: 11px 14px; border-bottom: 1px solid var(--border-2);
  font-size: 13px; vertical-align: middle;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover { background: #fafbfe; }
.tbl .nm { font-weight: 500; }
.tbl td.nm { white-space: nowrap; }
.tbl td.college { white-space: nowrap; }
/* 学生管理表列较多：列宽不足时横向滚动，避免内容折成多行 */
table.tbl.tbl-wide { min-width: 1240px; }
.tbl .sub { font-size: 11.5px; color: var(--text-3); }
.tbl .ops { display: flex; gap: 4px; white-space: nowrap; }
.empty { padding: 46px 0; text-align: center; color: var(--text-3); font-size: 13px; }

/* ---------- 徽标 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 12px; white-space: nowrap;
}
.b-green { background: var(--green-bg); color: var(--green); }
.b-blue { background: var(--blue-bg); color: var(--blue); }
.b-amber { background: var(--amber-bg); color: var(--amber); }
.b-red { background: var(--red-bg); color: var(--red); }
.b-gray { background: var(--gray-bg); color: var(--gray); }
.b-purple { background: var(--purple-bg); color: var(--purple); }
.b-teal { background: var(--teal-bg); color: var(--teal); }

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--border-2);
}
.toolbar .search { position: relative; width: 230px; }
.toolbar .search .input { padding-left: 31px; }
.toolbar .search svg { position: absolute; left: 10px; top: 9px; }
.toolbar .spacer { flex: 1; }
.toolbar .select { width: auto; min-width: 132px; }

.pager {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  border-top: 1px solid var(--border-2); font-size: 12.5px; color: var(--text-2);
}
.pager .spacer { flex: 1; }
.pages { display: flex; gap: 5px; }
.pages button {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: 7px;
  border: 1px solid var(--border); background: #fff; font-size: 12.5px; color: var(--text-2);
}
.pages button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pages button.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pages button:disabled { opacity: .45; cursor: not-allowed; }




/* ---------- 列表行 ---------- */
.rows { padding: 4px 0; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--border-2);
}
.row:last-child { border-bottom: none; }
.row .spacer { flex: 1; }
.row .ttl { font-size: 13px; font-weight: 500; }
.row .meta { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

.todo { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border-2); }
.todo:last-child { border-bottom: none; }
.todo .nm { flex: 1; font-size: 13px; }
.todo .cnt {
  min-width: 24px; height: 22px; padding: 0 7px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.todo a { font-size: 12.5px; color: var(--primary); }

/* ---------- 弹窗 ---------- */
#modal-root { position: fixed; inset: 0; z-index: 90; display: none; }
#modal-root.show { display: block; }
.mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .42); }
.modal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 520px; max-height: 86vh; background: #fff; border-radius: 14px;
  display: flex; flex-direction: column; box-shadow: 0 22px 60px rgba(10, 22, 44, .3);
}
.modal-wide { width: 680px; }
.modal-hd { display: flex; align-items: center; padding: 17px 20px; border-bottom: 1px solid var(--border-2); }
.modal-hd h3 { font-size: 14px; font-weight: 600; flex: 1; }
.modal-bd { padding: 20px; overflow-y: auto; }
.modal-ft { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border-2); }

/* 弹窗里的分段小标题（收支信息 / 修改内容 / 导出条件 …） */
.form-sec {
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  margin: 16px 0 10px; padding-left: 9px; border-left: 3px solid var(--primary); line-height: 1.2;
}
.form-sec:first-child { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; }
.field label em { color: var(--red); font-style: normal; margin-left: 2px; }
textarea.input { height: auto; padding: 9px 11px; resize: vertical; min-height: 74px; line-height: 1.6; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 120; }
.toast {
  margin-bottom: 9px; padding: 9px 17px; border-radius: 8px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
  font-size: 13px; opacity: 0; transform: translateY(-8px); transition: all .2s;
}
.toast.in { opacity: 1; transform: translateY(0); }
.toast-ok { border-left: 3px solid var(--green); }
.toast-warn { border-left: 3px solid var(--amber); }

/* ---------- 详情描述 ---------- */
.desc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.desc-grid .it { padding: 12px 18px; border-bottom: 1px solid var(--border-2); }
.desc-grid .it:nth-child(odd) { border-right: 1px solid var(--border-2); }
.desc-grid .it .k { font-size: 12px; color: var(--text-3); margin-bottom: 3px; }
.desc-grid .it .v { font-size: 13px; }

.bar-track { height: 6px; border-radius: 3px; background: var(--gray-bg); overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 3px; background: var(--primary); }

/* ---------- 作品展示 ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; padding: 18px; }
.gallery .work { width: 100%; max-width: 520px; justify-self: center; }
.work {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: #fff; display: flex; flex-direction: column; transition: border-color .15s, transform .15s;
}
.work:hover { border-color: #c9d6ea; transform: translateY(-1px); }
.thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background-color: #fbfcfe;
  background-image: linear-gradient(var(--c2) 1px, transparent 1px), linear-gradient(90deg, var(--c2) 1px, transparent 1px);
  background-size: 22px 22px;
  display: flex; align-items: center; justify-content: center;
}
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 作品图片按上传文件的原始像素尺寸与宽高比展示；只有超过卡片宽度时才等比缩小。 */
.thumb.natural { aspect-ratio: auto; min-height: 220px; padding: 12px; }
.thumb.natural img { width: auto; height: auto; max-width: 100%; max-height: 320px; object-fit: contain; }
.thumb .ico { color: var(--c1); opacity: .85; }
.thumb .tag {
  position: absolute; top: 9px; left: 9px; height: 20px; padding: 0 7px; border-radius: 5px;
  background: rgba(255, 255, 255, .92); color: var(--c1); font-size: 11.5px;
  display: flex; align-items: center; border: .5px solid var(--c2);
}
.thumb .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 28, 46, .28);
}
.thumb .play svg { color: #fff; }
.thumb .dur {
  position: absolute; right: 9px; bottom: 9px; height: 19px; padding: 0 6px; border-radius: 5px;
  background: rgba(18, 28, 46, .72); color: #fff; font-size: 11.5px; display: flex; align-items: center;
}
.work-bd { padding: 13px 15px 14px; flex: 1; display: flex; flex-direction: column; }
.work-bd h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.work-bd .ds {
  font-size: 12.5px; color: var(--text-2); line-height: 1.6; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.work-meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--text-3); }
.work-ft {
  display: flex; align-items: center; gap: 10px; margin-top: 11px; padding-top: 11px;
  border-top: 1px solid var(--border-2); font-size: 11.5px; color: var(--text-3);
}
.work-ft .spacer { flex: 1; }
.file-chip {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 6px; background: var(--gray-bg); color: var(--text-2); font-size: 11.5px;
}
.file-chip svg { color: var(--text-3); }

/* ---------- 获奖展示 ---------- */
.awards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 18px; }
.award { display: flex; gap: 15px; border: 1px solid var(--border); border-radius: var(--radius); padding: 15px; background: #fff; }
.award:hover { border-color: #c9d6ea; }
.cert {
  flex: 0 0 126px; height: 168px; border-radius: 8px; overflow: hidden; position: relative;
  background-color: #fbfcfe;
  background-image: linear-gradient(var(--c2) 1px, transparent 1px), linear-gradient(90deg, var(--c2) 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.cert img { width: 100%; height: 100%; object-fit: contain; }
.cert .ico { color: var(--c1); }
.cert span { font-size: 11px; color: var(--c1); }
.award-bd { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.award-bd h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.award-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.award-meta { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.award-meta b { font-weight: 500; color: var(--text); }
.award-ft {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 11px;
  border-top: 1px solid var(--border-2); font-size: 11.5px; color: var(--text-3);
}
.award-ft .spacer { flex: 1; }

/* ---------- 展示模式：只有图的墙 + 全屏大图 ---------- */
/* 等高的横向货架：格子高度统一由 --cell 给，宽度按各自的 aspect-ratio 算出来，
   所以横屏和竖屏能排在同一行里，墙上的顺序就是列表顺序（获奖按级别从高到低）。
   0.24 这个系数照的是原来的密度 —— 横屏约占一排 3 个、竖屏约占 5 个。 */
.wall {
  display: flex; flex-wrap: wrap; gap: 14px; padding: 18px;
  --cell: clamp(120px, calc((100vw - 300px) * .24), 300px);
}
.wall-item {
  position: relative; flex: 0 0 auto; height: var(--cell); aspect-ratio: 4 / 3;
  overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border); border-radius: 12px; background-color: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  content-visibility: auto; contain-intrinsic-size: 240px 180px;
}
.wall-item.v { aspect-ratio: 3 / 4; }
.wall-item:hover { border-color: #c3d2e8; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 24, 40, .10); }
.wall-item img, .wall-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 作品图片等高且保持原比例、不裁切；JS 会把后面的窄图向前补进空位。 */
.wall-works { display: flex; align-items: flex-start; justify-content: flex-start; --cell: clamp(180px, 18vw, 240px); }
.wall-works .wall-item.natural { width: auto; height: var(--cell); max-width: 100%; aspect-ratio: var(--ar, 4 / 3); }
.wall-works .wall-item.natural img { width: 100%; height: 100%; object-fit: contain; }
/* 奖状要看得全，缩略图不裁边。装裱照实体裱框的做法：暖白卡纸衬底，
   图四周用 box-shadow 套出「细金线 — 白缝 — 淡粗线」的双线内框，
   外面只留一层很软的下垂阴影，不再用描边把图卡死。 */
.wall-item.fit {
  padding: 14px; border-color: #e9e2d4;
  background: linear-gradient(180deg, #fdfbf6, #f6f2e9);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(64, 52, 28, .05), 0 14px 26px -20px rgba(64, 52, 28, .5);
}
.wall-item.fit img {
  object-fit: contain; border: 0; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(160, 128, 66, .45), 0 0 0 4px #fff, 0 0 0 5px rgba(160, 128, 66, .22),
    0 4px 12px rgba(64, 52, 28, .14);
}
.wall-item.fit:hover {
  border-color: #ded3bd;
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(64, 52, 28, .07), 0 22px 34px -20px rgba(64, 52, 28, .55);
}
/* 没有图片的条目用类型图标占位，底色跟卡纸一致，别做成空白色块 */
.wall-item.ph { background: linear-gradient(180deg, #fdfbf6, #f6f2e9); }
.wall-item .ico { color: var(--c1); opacity: .85; }
.wall-item .play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(18, 28, 46, .28); pointer-events: none;
}
.wall-item .play svg { color: #fff; }
.wall-item .w-ops {
  position: absolute; top: 7px; right: 7px; display: flex; align-items: center; gap: 2px; padding: 2px 4px;
  border-radius: 7px; background: rgba(255, 255, 255, .93); border: .5px solid var(--c2);
  opacity: 0; transition: opacity .12s;
}
.wall-item:hover .w-ops { opacity: 1; }
/* 悬停条里的下载是个 <a>（要走浏览器的原生下载，不能靠 JS 拉字节流），得把按钮样式补齐 */
a.btn-text { display: inline-flex; align-items: center; gap: 3px; text-decoration: none; cursor: pointer; }
a.btn-text:hover { text-decoration: underline; }
a.lb-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
/* 屏宽不够时按比例减列，窄屏上 5 列竖图会糊成一片 */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 13, 22, .93); display: flex; flex-direction: column; }
.lb-bar { display: flex; align-items: center; gap: 10px; padding: 13px 18px; color: #b9c7de; font-size: 12.5px; }
.lb-bar .spacer { flex: 1; }
.lb-btn {
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer; color: #fff; font-size: 18px; line-height: 1;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .08);
}
.lb-btn:hover { background: rgba(255, 255, 255, .2); }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 26px 30px; }
.lb-img, .lb-video { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 18px 48px rgba(0, 0, 0, .55); display: block; }
.lb-ph { text-align: center; color: #93a6c4; font-size: 13px; line-height: 1.9; }
.lb-ph svg { opacity: .8; }

/* ---------- 上传区 ---------- */
.uploader {
  display: block; border: 1px dashed #c7d3e6; border-radius: 10px; padding: 20px;
  text-align: center; cursor: pointer; background: #fafcff; transition: all .15s;
}
.uploader:hover { border-color: var(--primary); background: var(--primary-l); }
.uploader input { display: none; }
.uploader .u-ico { color: var(--primary); margin-bottom: 8px; }
.uploader .u-t { font-size: 13px; color: var(--text); }
.uploader .u-s { font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
.upload-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.up-item { display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 8px; }
.up-item .pv {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 6px; overflow: hidden;
  background: var(--gray-bg); display: flex; align-items: center; justify-content: center; color: var(--text-3);
}
.up-item .pv img, .up-item .pv video { width: 100%; height: 100%; object-fit: cover; }
.up-item .nm2 { flex: 1; min-width: 0; font-size: 12.5px; }
.up-item .nm2 small { display: block; color: var(--text-3); font-size: 11.5px; }
.up-item .rm { border: none; background: none; color: var(--text-3); font-size: 15px; padding: 0 4px; }
.up-item .rm:hover { color: var(--red); }

.attach-grid { display: flex; flex-direction: column; gap: 10px; }
.attach { display: flex; gap: 12px; align-items: flex-start; padding: 11px; border: 1px solid var(--border); border-radius: 9px; }
.attach .pv {
  width: 84px; height: 60px; flex: 0 0 84px; border-radius: 7px; overflow: hidden;
  background: var(--gray-bg); display: flex; align-items: center; justify-content: center; color: var(--text-3);
}
.attach .pv img, .attach .pv video { width: 100%; height: 100%; object-fit: cover; }
.attach .meta2 { flex: 1; min-width: 0; }
.attach .meta2 .fn { font-size: 12.5px; word-break: break-all; }
.attach .meta2 .fs { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }
/* 附件条目现在是可点开的链接：给一个悬停态，否则看不出能点 */
a.attach[href]:hover { border-color: #c3d2e8; background: var(--gray-bg); }

@media (max-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2e { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .awards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .gallery { grid-template-columns: 1fr; }
}


/* ===== 任务安排 / 作业提交 ===== */
.task-card { display: flex; gap: 18px; border: 1px solid var(--border); border-radius: 12px; padding: 15px 18px; margin-bottom: 13px; background: #fff; }
.task-card:hover { border-color: var(--primary); }
.tc-main { flex: 1; min-width: 0; }
.tc-hd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-hd h4 { font-size: 13.5px; font-weight: 600; }
.tc-content { font-size: 12.5px; color: var(--text-2); line-height: 1.75; margin-top: 7px; }
.tc-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); margin-top: 10px; }
.tc-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 7px; min-width: 158px; }
.tc-side .sub { font-size: 11.5px; color: var(--text-3); }
.tc-num { font-size: 12px; color: var(--text-3); }
.tc-num b { font-size: 16px; color: var(--text); font-weight: 600; }
.task-prog { display: flex; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--border-2); }
.task-prog:last-child { border-bottom: none; }

.hw-block { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 13px; background: #fff; overflow: hidden; }
.hw-hd { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-bottom: 1px solid var(--border-2); flex-wrap: wrap; }
.hw-hd h4 { font-size: 13.5px; font-weight: 600; }
.hw-bd { padding: 13px 18px 15px; }
.hw-files { display: flex; flex-wrap: wrap; gap: 10px; }
.hw-files .attach { flex: 1 1 240px; max-width: 340px; }

.work-ops { display: flex; align-items: center; gap: 4px; margin-top: 6px; min-height: 22px; }
.flash { animation: flashbg 2s ease-out; }
@keyframes flashbg {
  0% { background: var(--primary-l); border-color: var(--primary); }
  100% { background: #fff; border-color: var(--border); }
}

/* 登录卡随窗口收窄逐步回中 */
@media (max-width: 1320px) {
  .login-wrap { grid-template-columns: minmax(0, 1fr) 410px; gap: 55px; padding-left: 6vw; padding-right: 6vw; }
  .login-card { width: 410px; }
}
@media (max-width: 860px) {
  .login-wrap { display: flex; justify-content: center; padding: 24px 20px; background-position: 38% center; }
  .login-wrap::before { background: rgba(2, 10, 24, .58); }
  .login-intro { display: none; }
  .login-card { width: 100%; max-width: 430px; padding: 29px 30px 25px; }
  .login-brand img { width: 184px; }
}

/* 横屏和软键盘压缩高度时允许滚动，保证登录按钮仍可触达。 */
@media (max-height: 740px) {
  .login-wrap { align-items: start; padding-top: 20px; padding-bottom: 20px; }
}

/* ===== 考核排名 ===== */
.rk { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 50%; font-size: 12px; font-weight: 600; background: var(--gray-bg); color: var(--text-2); }
.rk.gold { background: linear-gradient(135deg, #f3c35f, #d9a12c); color: #fff; }
.rk.silver { background: linear-gradient(135deg, #cbd4e0, #a3aebd); color: #fff; }
.rk.bronze { background: linear-gradient(135deg, #dda97b, #bd7f4a); color: #fff; }
.rank-hero { display: flex; align-items: center; gap: 20px; }
.rank-hero .big b { font-size: 44px; font-weight: 700; color: var(--primary); line-height: 1; }
.rank-hero .big small { font-size: 12px; color: var(--text-3); margin-left: 7px; }

/* ===== 分段筛选（作业 / 考核、方向切换） ===== */
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg button {
  height: 32px; padding: 0 15px; border-radius: 8px; cursor: pointer;
  font-size: 12.5px; font-family: inherit;
  border: 1px solid var(--border); background: var(--card); color: var(--text-2);
  display: inline-flex; align-items: center; transition: all .15s;
}
.seg button:hover { border-color: var(--primary); color: var(--primary); }
.seg button.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 500; }
.seg button.on span { color: rgba(255, 255, 255, .8); }
.seg button span { margin-left: 4px; font-size: 11.5px; color: var(--text-3); }

/* ===== 考核得分展示 ===== */
.score-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 14px; margin-bottom: 12px; border-radius: 9px;
  background: var(--purple-bg); border: 1px solid #e6d8fb;
}
.score-val { display: inline-flex; align-items: baseline; gap: 4px; color: var(--purple); }
.score-val b { font-size: 24px; font-weight: 700; line-height: 1; }
.score-val small { font-size: 12.5px; color: var(--text-3); }
.score-cm { flex: 1; min-width: 200px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }

/* ================= 账号 / 登录页补充 ================= */
.login-err {
  display: none; margin-top: 12px; padding: 8px 11px; border-radius: 8px;
  background: var(--red-bg); color: var(--red); font-size: 12.5px; line-height: 1.5;
}
.login-err.on { display: block; }

/* ================= 提示条 ================= */
.notice {
  padding: 13px 16px; border-radius: 10px; font-size: 12.5px; line-height: 1.8;
  background: var(--blue-bg); color: var(--text-2);
  border: 1px solid #dbe7fb; margin-bottom: 16px;
}
.notice b { color: var(--text); font-weight: 500; }
.notice-warn { background: var(--amber-bg); border-color: #f3e2bd; }
.notice .nt-list { margin-top: 7px; display: flex; flex-direction: column; gap: 5px; }
.notice .nt-it { color: var(--text-3); }
.notice .nt-it.on { color: #b07a12; }

/* ================= 侧栏抽屉（默认不启用） ================= */
.nav-toggle { display: none; }
.nav-mask { display: none; }
.user-chip .uc-txt { min-width: 0; }

/* ================= 响应式 · 平板 ================= */
@media (max-width: 1180px) {
  .sidebar { width: 200px; flex: 0 0 200px; }
  .brand { padding: 14px 12px 13px; }
  .brand .brand-logo { width: 114px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ================= 响应式 · 侧栏变抽屉 ================= */
@media (max-width: 900px) {
  .app { height: 100vh; height: 100dvh; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 90;
    width: 262px; flex: none; transform: translateX(-103%);
    transition: transform .24s ease;
    box-shadow: 0 0 44px rgba(6, 16, 36, .45);
  }
  .app.nav-open .sidebar { transform: none; }
  .nav-mask {
    display: block; position: fixed; inset: 0; z-index: 80;
    background: rgba(9, 18, 36, .45); opacity: 0; pointer-events: none;
    transition: opacity .24s;
  }
  .app.nav-open .nav-mask { opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .brand .brand-logo { width: 126px; }

  .topbar { height: 56px; flex: 0 0 56px; padding: 0 14px; gap: 10px; }
  .topbar .quick { display: none; }
  .user-chip { padding-left: 12px; gap: 8px; }
  .content { padding: 16px 15px 34px; }

  .modal-wide { width: 92vw; }
  .form-grid { grid-template-columns: 1fr; }
  .desc-grid { grid-template-columns: 1fr; }
  .desc-grid .it:nth-child(odd) { border-right: none; }
  .awards { grid-template-columns: 1fr; }
}

/* ================= 响应式 · 手机 ================= */
@media (max-width: 640px) {
  .login-wrap { align-items: center; padding: 16px 14px; background-position: 34% center; }
  .login-card { width: calc(100vw - 28px); max-width: calc(100vw - 28px); min-width: 0; padding: 25px 22px 20px; border-radius: 18px; }
  .login-card-cap { margin-bottom: 15px; }
  .login-brand { margin-bottom: 15px; }
  .login-brand img { width: 166px; }
  .login-welcome { margin-bottom: 13px; }
  .login-welcome h2 { font-size: 19px; }
  .login-card .tip { font-size: 10.5px; }

  .sidebar { width: 84vw; max-width: 300px; }
  .topbar { height: 52px; flex: 0 0 52px; padding: 0 11px; gap: 8px; }
  .topbar .crumb { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .user-chip { padding-left: 9px; gap: 7px; }
  .user-chip .rl { display: none; }
  .user-chip .nm { font-size: 12.5px; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .avatar { width: 28px; height: 28px; font-size: 11.5px; }

  .content { padding: 13px 12px 30px; }
  .page-head { flex-wrap: wrap; align-items: center; gap: 9px; }
  .page-head .spacer { display: none; }
  .page-head .btn { flex: 1 1 100%; }
  .grid-4, .grid-2, .grid-2e, .gallery, .awards { grid-template-columns: 1fr; }
  .grid-4 { gap: 12px; }
  .stat { padding: 14px 15px; }
  .stat .val { font-size: 23px; }

  .toolbar { padding: 12px 13px; gap: 8px; }
  .toolbar .search { width: 100%; }
  .toolbar .select { flex: 1 1 46%; width: auto; min-width: 0; }
  .toolbar .spacer { display: none; }
  .pager { padding: 12px 13px; flex-wrap: wrap; gap: 8px; }

  .card-hd { padding: 13px 15px; }
  .card-bd { padding: 14px 15px; }
  .row { padding: 11px 15px; }
  .modal { width: calc(100% - 18px) !important; max-height: 92vh; border-radius: 12px; }
  .modal-bd { padding: 15px; }
  .modal-ft { padding: 12px 15px; }

  .award { padding: 13px; }
  .task-card { flex-direction: column; gap: 10px; }
  .rank-hero { flex-wrap: wrap; gap: 12px; }
  .score-row { gap: 10px; padding: 10px 12px; }
  .hw-bd { padding: 12px 14px 14px; }
  .attach, .hw-files .attach { flex: 1 1 100%; max-width: none; }
  .notice { padding: 12px 13px; }
  .tbl th, .tbl td { padding: 9px 11px; }
}

/* ================= 记账：收支台账表格 ================= */
button.file-chip { border: none; font-family: inherit; cursor: pointer; transition: all .15s; }
button.file-chip:hover { background: var(--primary-l); color: var(--primary); }
/* 中国习惯配色：进账（收入）红、出账（支出）绿 */
.amt-in { color: var(--red); font-weight: 600; }
.amt-out { color: var(--green); font-weight: 600; }
.tbl td.mono {
  font-family: ui-monospace, Consolas, monospace; font-size: 12px;
  color: var(--text-2); white-space: nowrap;
}
.tbl th.ta-r, .tbl td.ta-r { text-align: right; white-space: nowrap; }
.tbl td .amt-in, .tbl td .amt-out { font-size: 13px; }

/* ================= 记账：账本切换条（给一类账单单独起名字） ================= */
.book-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.book-bar .bb-lb {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
}
.book-bar .bb-lb svg { color: var(--text-3); }
.book-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  min-width: 112px; padding: 9px 13px; cursor: pointer; text-align: left;
  font-family: inherit; border: 1px solid var(--border); border-radius: 10px;
  background: #fff; transition: all .15s;
}
.book-chip:hover { border-color: var(--primary); background: var(--primary-l); }
.book-chip.on {
  border-color: var(--primary); background: var(--primary-l);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.book-chip .bt { display: flex; align-items: center; gap: 6px; width: 100%; }
.book-chip .bn {
  flex: 1; min-width: 0; max-width: 168px;
  font-size: 12.5px; font-weight: 600; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* 删除账本：平时淡一点，鼠标移到这块或它是当前选中时才实心，小屏也点得到 */
.book-chip .bk-del {
  flex: none; width: 20px; height: 20px; padding: 0; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; background: transparent;
  color: var(--text-3); font-size: 16px; font-family: inherit; cursor: pointer;
  opacity: .45; transition: all .15s;
}
.book-chip:hover .bk-del, .book-chip.on .bk-del { opacity: 1; }
.book-chip .bk-del:hover { background: var(--red-bg); color: var(--red); opacity: 1; }
.book-chip.on .bn { color: var(--primary); }
.book-chip .bm { display: flex; align-items: baseline; gap: 7px; }
.book-chip .bc { font-size: 11px; color: var(--text-3); }
.book-chip .bv { font-size: 12px; font-weight: 600; }
.book-chip .bv.in { color: var(--red); }
.book-chip .bv.out { color: var(--green); }
.book-chip.add {
  flex-direction: row; align-items: center; min-width: 0; border-style: dashed;
  border-color: #c7d3e6; background: transparent;
  font-size: 12.5px; font-weight: 600; color: var(--primary);
}
.book-chip.add:hover { border-color: var(--primary); background: var(--primary-l); }

/* ================= 发票管理：开票信息 ================= */
.taxbox {
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
  padding: 14px 16px; margin-bottom: 16px;
}
.tx-hd { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; margin-bottom: 11px; }
.tx-hd > svg { color: var(--primary); flex: none; }
.tx-hd .spacer { flex: 1; }
.tx-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tx-row {
  display: flex; gap: 10px; align-items: baseline; padding: 10px 13px; cursor: pointer;
  border: 1px dashed #c7d3e6; border-radius: 9px; background: var(--primary-l); transition: all .15s;
}
.tx-row:hover { border-color: var(--primary); background: #e5edff; }
.tx-row .k { flex: none; font-size: 12px; color: var(--text-3); }
.tx-row .v { font-size: 13px; font-weight: 500; word-break: break-all; }
.tx-row .v.mono, .desc-grid .it .v.mono {
  font-family: ui-monospace, Consolas, monospace; letter-spacing: .3px;
}
.tx-tip { font-size: 11.5px; color: var(--text-3); margin-top: 9px; }

/* ================= 发票管理：个人发票卡片（提交 / 审核状态） ================= */
.invs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 18px; }
.inv-card {
  border: 1px solid var(--border); border-radius: var(--radius); padding: 15px;
  background: #fff; cursor: pointer; transition: all .15s;
}
.inv-card:hover { border-color: var(--primary); box-shadow: 0 2px 10px rgba(37, 99, 235, .07); }
.inv-hd { display: flex; align-items: center; gap: 9px; }
.inv-name {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0;
  font-size: 13.5px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.inv-name svg { color: var(--text-3); flex: none; }
/* 卡片上的物品信息：单独一行跟在姓名下面，太长截断（完整内容在 title 里） */
.inv-item {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  font-size: 12.5px; color: var(--text-2); margin-top: 5px;
}
.inv-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-item svg { color: var(--text-3); flex: none; }
.inv-item.miss { color: var(--amber); }
.inv-item.miss svg { color: var(--amber); }
.inv-hd .spacer { flex: 1; }
.inv-amt { font-size: 15px; font-weight: 600; color: var(--primary); flex: none; }
.inv-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 9px 0 11px; }
.inv-time { font-size: 11.5px; color: var(--text-3); }
.inv-docs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 11px 0; border-top: 1px solid var(--border-2); border-bottom: 1px solid var(--border-2);
}
.doc-chip {
  display: inline-flex; align-items: center; gap: 5px; min-width: 0;
  font-size: 12px; color: var(--text-2); background: var(--gray-bg);
  border-radius: 6px; padding: 5px 9px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doc-chip svg { color: var(--text-3); flex: none; }
.doc-chip.none { color: var(--text-3); background: #fbfbfc; box-shadow: inset 0 0 0 1px var(--border); }
.file-chip.off { color: var(--text-3); background: #fbfbfc; box-shadow: inset 0 0 0 1px var(--border); }
/* 三类状态提示条：退回（红）/ 通过（绿）/ 待审核（琥珀） */
.reject-note, .pass-note, .wait-note {
  display: flex; gap: 7px; align-items: flex-start;
  font-size: 12px; line-height: 1.6; border-radius: 8px; padding: 8px 10px; margin-top: 10px;
}
.reject-note { background: var(--red-bg); color: #a53434; }
.pass-note { background: var(--green-bg); color: #0b7a4d; }
.wait-note { background: var(--amber-bg); color: #8a5a10; }
.reject-note svg, .pass-note svg, .wait-note svg { flex: none; margin-top: 2px; }
.inv-done { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--green); }
/* 报销状态：与审核状态是两个维度（审核通过 ≠ 钱已到账）。学生点标签自己切换，鼠标移上去有反馈 */
button.biz-toggle {
  border: none; background: none; padding: 0; font: inherit; line-height: 1;
  cursor: pointer; border-radius: 20px;
}
button.biz-toggle .badge { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
button.biz-toggle:hover .badge { filter: brightness(.95); }
button.biz-toggle:active .badge { transform: translateY(1px); }
/* 汇总表里审核 / 报销两枚标签上下堆叠，省一列宽度 */
.biz-td { margin-top: 5px; }
.biz-time { font-size: 11px; margin-top: 2px; }

.inv-ft { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 11px; }
.inv-ft .spacer { flex: 1; }
.btn-text.danger { color: var(--red); }

/* 发票汇总表：列多，徽章与附件标签一律不折行；只有「审核意见」列允许折行 */
/* 汇总表列数虽多但比学生管理窄，1440 下要能整表放下，不要横向滚动 */
table.tbl.tbl-wide.inv-sum { min-width: 1140px; }
/* 记账表：列不算多，收窄后 1440 下要能整表放下，别让「操作」被切掉 */
table.tbl.tbl-wide.led-tbl { min-width: 1090px; }
table.tbl.inv-sum th, table.tbl.inv-sum td { white-space: nowrap; }
table.tbl.inv-sum td.opinion, table.tbl.inv-sum th.opinion { white-space: normal; min-width: 210px; }
.inv-sum .edit-mark { color: var(--primary); margin-top: 3px; }
/* 物品信息列：整表都是 nowrap，物品名可能很长，这里限宽截断，完整内容放 title */
.inv-sum .it-cell {
  width: 140px; max-width: 140px; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px; color: var(--text-2);
}

/* ================= 发票导出弹窗 ================= */
.exp-opts { display: flex; flex-direction: column; gap: 9px; }
.exp-opts label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12.5px; line-height: 1.6; color: var(--text-2); cursor: pointer;
}
.exp-opts input[type="checkbox"] { margin: 3px 0 0; flex: none; cursor: pointer; }
/* 导出形式：两张单选卡，底下小字说明各自装了什么 */
.exp-opts.exp-kind label {
  border: 1px solid var(--border); border-radius: 8px; padding: 9px 11px;
  background: #fff; transition: border-color .12s, background .12s;
}
.exp-opts.exp-kind label:hover { border-color: #c3d2e8; }
.exp-opts.exp-kind label:has(input:checked) { border-color: var(--primary); background: var(--primary-l); }
.exp-opts input[type="radio"] { margin: 3px 0 0; flex: none; cursor: pointer; accent-color: var(--primary); }
.exp-opts b { font-weight: 600; color: var(--text); }
.exp-opts small { display: block; color: var(--text-3); font-size: 11.5px; line-height: 1.6; margin-top: 1px; }
.exp-count {
  margin-top: 16px; padding: 10px 13px; border-radius: 9px;
  font-size: 12.5px; line-height: 1.7;
  background: var(--primary-l); color: var(--text-2);
}
.exp-count b { color: var(--primary); }
.exp-count.off { background: var(--amber-bg); color: #8a5a10; }

/* ================= 发票管理：弹窗里的附件分段 ================= */
.attach-sec { margin-top: 16px; }
.as-hd {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; margin-bottom: 9px;
}
.as-hd span { font-weight: 400; font-size: 11.5px; color: var(--text-3); }
.attach-sec .uploader { margin-top: 10px; }
/* 发票文件命名规则提示：贴在发票文件上传区下面，上传前一定会看到 */
.name-tip {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 12px 0 0; padding: 9px 12px;
  border: 1px solid #f0dcbb; border-left: 3px solid var(--amber); border-radius: 8px;
  background: var(--amber-bg); color: #8a5a10; font-size: 12px; line-height: 1.65;
}
.name-tip svg { flex: none; margin-top: 2px; }
.name-tip b { color: #6d4708; font-weight: 600; }
.edit-list { display: flex; flex-direction: column; gap: 6px; }
.edit-note {
  font-size: 12px; line-height: 1.6; color: var(--text-2);
  background: #f7f9fc; border-left: 3px solid var(--primary);
  border-radius: 6px; padding: 7px 10px; word-break: break-all;
}
.edit-note b { color: var(--text); font-weight: 500; }

/* ================= 响应式 ================= */
@media (max-width: 1280px) {
  .invs { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .inv-docs { grid-template-columns: 1fr; }
  .tx-rows { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .invs { padding: 0; gap: 12px; }
  .inv-card { padding: 13px; }
  .inv-docs { grid-template-columns: 1fr; }
  .inv-name { max-width: 56%; }
  .as-hd { flex-direction: column; gap: 3px; }
  .taxbox { padding: 12px 13px; }
  .tx-hd { flex-wrap: wrap; }
}

/* ---------- 全局搜索（顶栏） ---------- */
.topbar .quick { position: relative; }
.gq-box { position: absolute; top: calc(100% + 8px); right: 0; width: 340px; max-height: 60vh; overflow: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 28, 51, .16); z-index: 80; padding: 6px; }
.gq-grp { padding: 7px 10px 3px; font-size: 11px; color: var(--text-3); }
.gq-it { display: block; padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.gq-it:hover { background: var(--bg); }
.gq-tx { font-size: 13px; color: var(--text); }
.gq-sub { font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.gq-none { padding: 14px 10px; font-size: 12.5px; color: var(--text-3); text-align: center; }


/* ---------- 作品封面与多图预览 ---------- */
.cover-mark {
  display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 8px;
  border-radius: 6px; background: var(--primary-l); color: var(--primary); font-size: 11.5px; font-weight: 600;
}
.cover-pick { flex: none; white-space: nowrap; }
.work-hero {
  width: 100%; max-height: 62vh; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 1px solid var(--border); border-radius: 10px; background: #f7f9fc;
  display: flex; align-items: center; justify-content: center;
}
.work-hero img { display: block; width: 100%; max-height: 62vh; object-fit: contain; }
.work-preview-hd {
  display: flex; align-items: baseline; gap: 10px; margin: 14px 0 8px;
  font-size: 13px; font-weight: 600;
}
.work-preview-hd span { font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.work-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 9px;
  padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fafbfd;
}
.work-preview-thumb {
  position: relative; height: 84px; padding: 0; overflow: hidden; cursor: zoom-in;
  border: 2px solid transparent; border-radius: 8px; background: #fff;
}
.work-preview-thumb:hover { border-color: #b8c9e4; }
.work-preview-thumb.cover { border-color: var(--primary); }
.work-preview-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-preview-thumb span {
  position: absolute; left: 5px; bottom: 5px; padding: 1px 6px; border-radius: 5px;
  background: rgba(37, 99, 235, .9); color: #fff; font-size: 10.5px;
}
@media (max-width: 640px) {
  .work-preview-grid { grid-template-columns: repeat(3, 1fr); }
  .work-preview-thumb { height: 72px; }
}
