/* 学生成长档案 · 本地版 样式 */
:root {
  --bg: #f2f5fa;
  --card: #ffffff;
  --primary: #3563e9;
  --primary-dark: #2549bd;
  --primary-soft: #e8eeff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e3e8ef;
  --ok: #16a34a;
  --ok-soft: #e7f7ed;
  --warn: #e08a00;
  --warn-soft: #fff5e0;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 16px; }
p { margin: .4em 0; }
.hide { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.items-center { align-items: center; }
.grow { flex: 1; }
.mono { font-family: Consolas, "Courier New", monospace; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(135deg, #3563e9 0%, #6b46e5 55%, #9333ea 100%);
}
.login-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 30px 28px 26px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
}
.login-logo { font-size: 40px; text-align: center; line-height: 1; }
.login-title { text-align: center; font-size: 21px; font-weight: 700; margin: 10px 0 2px; }
.login-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.role-switch { display: flex; background: #eef2fa; border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.role-switch button {
  flex: 1; border: 0; background: transparent; padding: 9px 0; border-radius: 8px; cursor: pointer;
  font-size: 14px; color: var(--muted); font-family: inherit; font-weight: 600;
}
.role-switch button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }

/* ---------- 表单控件 ---------- */
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; color: #475467; margin-bottom: 5px; font-weight: 500; }
input[type=text], input[type=password], input[type=number], input[type=date], input[type=tel],
input[type=search], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px;
  font-size: 14px; font-family: inherit; color: var(--text); background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
select { cursor: pointer; }
input[type=file] { font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 14px; font-family: inherit; font-weight: 500;
  transition: background .15s, transform .05s; white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.lg { padding: 12px 20px; font-size: 15px; }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 7px; }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: #f7f9fc; }
.btn.soft { background: var(--primary-soft); color: var(--primary-dark); }
.btn.soft:hover { background: #dbe5ff; }
.btn.warn { background: var(--warn); } .btn.warn:hover { background: #c97a00; }
.btn.danger { background: var(--danger); } .btn.danger:hover { background: #b91c1c; }
.btn.ok { background: var(--ok); } .btn.ok:hover { background: #15803d; }
.btn.undo { background: #fff; color: #b45309; border-color: #f0c98a; }
.btn.undo:hover { background: var(--warn-soft); }
.btn.undo:disabled { opacity: .5; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* 出门测等级按钮 */
.gbtn { min-width: 58px; padding: 10px 14px; font-size: 15px; font-weight: 700; letter-spacing: .5px; }
.gbtn.ghost { color: #475467; border-color: #d7dee9; background: #fff; }
.gbtn.ghost:hover { background: #f4f7fd; border-color: var(--primary); color: var(--primary-dark); }

/* 视图切换（列表 / 按班级） */
.view-switch { display: inline-flex; background: #eef2fa; border-radius: 9px; padding: 3px; }
.view-switch button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 7px; cursor: pointer;
  font-size: 13px; color: var(--muted); font-family: inherit; font-weight: 600;
}
.view-switch button.on { background: #fff; color: var(--primary); box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* 按班级视图 */
.class-group { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.class-head {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px; background: #f8fafc; border-bottom: 1px solid var(--border);
}
.class-head .nm { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.class-head .cnt { color: var(--muted); font-size: 12.5px; }
.class-head .acts { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.class-body { padding: 4px 14px 10px; }
.stu-line { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.stu-line:last-child { border-bottom: none; }
.stu-line .nmm { font-weight: 600; min-width: 72px; }
.stu-line .id { font-family: Consolas, monospace; color: var(--muted); font-size: 12px; min-width: 88px; }
.stu-line .sch { color: var(--muted); font-size: 12.5px; }
.stu-line .acts { margin-left: auto; display: flex; gap: 6px; }

/* 家校沟通记录 */
.ct-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ct-item:last-child { border-bottom: none; }
.ct-date { width: 92px; flex: none; font-size: 12.5px; color: var(--muted); }
.ct-body { flex: 1; min-width: 0; }
.ct-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ct-head .who { font-weight: 700; }
.ct-text { font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.ct-fb { font-size: 13px; color: #15803d; background: var(--ok-soft); border-radius: 8px; padding: 6px 10px; margin-top: 6px; }
.ct-fu { font-size: 12.5px; margin-top: 6px; }
.ct-acts { display: flex; gap: 6px; align-items: flex-start; flex: none; }

/* 成长档案：学生选择器 */
.stu-picker { display: flex; flex-wrap: wrap; gap: 6px; max-height: 132px; overflow-y: auto; padding: 2px; }
.pick-chip {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 11px; border: 1px solid var(--border); border-radius: 999px;
  background: #fff; cursor: pointer; font-size: 13px; transition: all .12s; white-space: nowrap;
}
.pick-chip:hover { border-color: var(--primary); background: #f7faff; }
.pick-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pick-chip i { font-style: normal; font-family: Consolas, monospace; font-size: 11px; opacity: .62; }
.pick-chip em { font-style: normal; font-size: 11px; opacity: .62; }
.pick-chip.on i, .pick-chip.on em { opacity: .85; }
@media print { #page-archive .card:first-child { display: none !important; } }

/* 家校沟通：按班级看沟通情况 */
.cov-bar { width: 88px; flex: none; height: 10px; background: #eef2f8; border-radius: 5px; overflow: hidden; }
.cov-bar > span { display: block; height: 100%; background: linear-gradient(90deg, #4b7bf5, #7c5cf0); }
.cov-bar.done > span { background: #16a34a; }
.cov-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 10px; border-bottom: 1px dashed var(--border); font-size: 13.5px; border-radius: 7px;
}
.cov-row:last-child { border-bottom: none; }
.cov-row.uncovered { background: #fff8f0; }
.cov-row .nmm { font-weight: 600; min-width: 76px; }
.cov-row .id { font-family: Consolas, monospace; color: var(--muted); font-size: 12px; min-width: 86px; }
.cov-row .st { font-size: 12.5px; }
.cov-row .topic { color: var(--muted); font-size: 12.5px; flex: 1; min-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cov-row .acts { margin-left: auto; display: flex; gap: 6px; flex: none; }
.cov-sum { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cov-sum .big { font-size: 26px; font-weight: 700; }
.cov-sum .big.good { color: #16a34a; }
.cov-sum .big.bad { color: #dc2626; }

/* ---------- 布局 ---------- */
.topbar {
  background: #fff; border-bottom: 1px solid var(--border); padding: 0 18px; height: 56px;
  display: flex; align-items: center; gap: 14px; position: sticky; top: 0; z-index: 50;
}
.topbar .brand { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.topbar .brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--primary); }
.topbar .who { margin-left: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }

.layout { display: flex; min-height: calc(100vh - 56px); }
.side {
  width: 186px; flex: none; background: #fff; border-right: 1px solid var(--border); padding: 12px 10px;
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto;
}
.side a {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px;
  color: #3f4a5a; margin-bottom: 3px; font-size: 14px; cursor: pointer;
}
.side a:hover { background: #f3f6fb; }
.side a.on { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; }
.side a .ico { width: 18px; text-align: center; }
.main { flex: 1; padding: 18px; min-width: 0; }
.page { display: none; }
.page.on { display: block; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }
.card > h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

.grid { display: grid; gap: 14px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .layout { flex-direction: column; }
  .side { width: 100%; height: auto; position: static; display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-right: 0; border-bottom: 1px solid var(--border); }
  .side a { margin: 0; padding: 7px 11px; font-size: 13px; }
  .main { padding: 12px; }
}

/* ---------- 统计卡 ---------- */
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; }
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.2; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 2px; }
.stat.b1 .n { color: var(--primary); }
.stat.b2 .n { color: var(--ok); }
.stat.b3 .n { color: var(--warn); }
.stat.b4 .n { color: #9333ea; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th, table.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
table.tbl th { background: #f8fafc; color: #475467; font-weight: 600; white-space: nowrap; position: sticky; top: 0; }
table.tbl tr:hover td { background: #fafcff; }
table.tbl td.act { white-space: nowrap; }

/* ---------- 标签 / 徽章 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 20px;
  background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; margin: 0 4px 4px 0;
  white-space: nowrap;
}
.tag.gray { background: #eef1f5; color: #4b5563; }
.tag.ok { background: var(--ok-soft); color: #15803d; }
.tag.warn { background: var(--warn-soft); color: #b45309; }
.tag.danger { background: var(--danger-soft); color: #b91c1c; }
.tag.pick { cursor: pointer; border: 1px solid transparent; }
.tag.pick.on { background: var(--primary); color: #fff; }
.tag .x { cursor: pointer; opacity: .6; font-weight: 700; }
.tag .x:hover { opacity: 1; }

.grade { display: inline-block; min-width: 34px; text-align: center; padding: 2px 8px; border-radius: 7px; font-weight: 700; font-size: 13px; }
.g-Ap { background: #d9f7e3; color: #047857; } .g-A { background: #e2f7ea; color: #15803d; }
.g-Am { background: #ecf8ef; color: #2f855a; } .g-Bp { background: #e8f0ff; color: #1d4ed8; }
.g-B { background: #eef2fb; color: #3b5bdb; } .g-Bm { background: #f2f0ff; color: #5b46c9; }
.g-C { background: #fdecec; color: #b91c1c; } .g- { background: #eef1f5; color: #4b5563; }

.chip { display: inline-block; padding: 1px 8px; border-radius: 6px; background: #f1f5f9; color: #475467; font-size: 12px; }

/* ---------- 提示条 ---------- */
.alert { padding: 10px 13px; border-radius: 9px; font-size: 13px; margin-bottom: 12px; border: 1px solid transparent; }
.alert.info { background: var(--primary-soft); color: #1e3a8a; border-color: #c7d7ff; }
.alert.ok { background: var(--ok-soft); color: #14532d; border-color: #b7e7c9; }
.alert.warn { background: var(--warn-soft); color: #7c4a03; border-color: #f3d79b; }
.alert.danger { background: var(--danger-soft); color: #7f1d1d; border-color: #f5c2c2; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .big { font-size: 34px; margin-bottom: 8px; opacity: .6; }

/* ---------- Toast ---------- */
#toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast-item {
  background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 14px;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .5); animation: tin .2s ease-out; max-width: 84vw;
}
.toast-item.ok { background: #15803d; } .toast-item.err { background: #b91c1c; } .toast-item.warn { background: #b45309; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 900; display: flex;
  align-items: flex-start; justify-content: center; padding: 24px 14px; overflow-y: auto;
}
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 620px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5);
  animation: tin .18s ease-out; margin: auto 0;
}
.modal.wide { max-width: 900px; }
.modal.narrow { max-width: 440px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-head .x { cursor: pointer; font-size: 22px; color: var(--muted); line-height: 1; background: none; border: 0; padding: 0 4px; }
.modal-body { padding: 16px 18px; max-height: 70vh; overflow-y: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

/* ---------- 图片 ---------- */
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb {
  position: relative; width: 84px; height: 84px; border-radius: 9px; overflow: hidden; border: 1px solid var(--border);
  background: #f8fafc; cursor: pointer;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .del {
  position: absolute; top: 2px; right: 2px; background: rgba(220, 38, 38, .92); color: #fff; border: 0;
  width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; padding: 0;
}
.thumb .nm { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, .55); color: #fff; font-size: 10px; padding: 1px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drop {
  border: 2px dashed #c8d4e6; border-radius: 11px; padding: 22px 14px; text-align: center; color: var(--muted);
  background: #fbfcfe; cursor: pointer; transition: all .15s;
}
.drop:hover, .drop.over { border-color: var(--primary); background: var(--primary-soft); color: var(--primary-dark); }
.drop .big { font-size: 26px; display: block; margin-bottom: 4px; }
.img-view { position: fixed; inset: 0; background: rgba(0, 0, 0, .88); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.img-view img { max-width: 96vw; max-height: 88vh; border-radius: 8px; }
.img-view .close { position: absolute; top: 16px; right: 22px; color: #fff; font-size: 30px; cursor: pointer; }
.img-view .nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.16); color: #fff; border: 0; width: 46px; height: 66px; font-size: 26px; cursor: pointer; border-radius: 10px; }
.img-view .nav.l { left: 14px; } .img-view .nav.r { right: 14px; }
.img-view .cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; }

/* ---------- 成绩时间线 ---------- */
.tl { position: relative; padding-left: 20px; }
.tl::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 14px; }
.tl-item::before {
  content: ''; position: absolute; left: -19px; top: 6px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--primary-soft);
}
.tl-item.school::before { background: var(--ok); box-shadow: 0 0 0 2px var(--ok-soft); }
.tl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tl-body { background: #fbfcfe; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-top: 5px; }

/* ---------- 投票 ---------- */
.opt { display: block; border: 1px solid var(--border); border-radius: 10px; padding: 9px 13px; margin-bottom: 7px; cursor: pointer; transition: all .15s; }
.opt:hover { border-color: var(--primary); background: #fafcff; }
.opt.on { border-color: var(--primary); background: var(--primary-soft); }
.opt input { margin-right: 8px; }
.bar { height: 22px; background: #eef2f8; border-radius: 6px; overflow: hidden; position: relative; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, #4b7bf5, #7c5cf0); }
.bar .tx { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 9px; font-size: 12px; gap: 8px; }
.bar .tx b { font-weight: 700; }

/* ---------- 图表 ---------- */
.chart { width: 100%; height: 200px; display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }

/* ---------- 导入 ---------- */
.imp-row { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--border); font-size: 13px; }
.imp-row img { width: 46px; height: 46px; object-fit: cover; border-radius: 7px; border: 1px solid var(--border); flex: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input { width: auto; min-width: 120px; }

/* ---------- 家长端 ---------- */
.p-hero {
  background: linear-gradient(135deg, #3563e9, #6b46e5); color: #fff; border-radius: 16px; padding: 18px 20px; margin-bottom: 16px;
}
.p-hero h2 { color: #fff; margin: 0 0 4px; font-size: 20px; }
.p-hero .meta { opacity: .9; font-size: 13px; }
.p-hero .tags .tag { background: rgba(255, 255, 255, .22); color: #fff; }
.kv { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: 13.5px; }
.kv .k { color: var(--muted); width: 84px; flex: none; }
.kv .v { flex: 1; word-break: break-all; }

/* 滚动条 */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #cfd8e3; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #b3c0d1; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 页脚备案号 ---------- */
/* 备案号必须真实显示在页面上、可点击跳转工信部备案系统，不能隐藏或用图片代替 */
.site-footer {
  text-align: center; font-size: 12px; line-height: 1.9;
  color: #8a94a6; padding: 18px 12px 22px;
}
.site-footer a { color: #6b7688; text-decoration: none; }
.site-footer a:hover { color: #3563e9; text-decoration: underline; }
.site-footer .sep { margin: 0 8px; color: #c8ced8; }
/* 登录页：深色渐变背景，备案号固定在底部，用浅色字 */
.site-footer.overlay {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 10px 12px 14px; color: rgba(255, 255, 255, .88);
}
.site-footer.overlay a { color: rgba(255, 255, 255, .95); }
.site-footer.overlay a:hover { color: #fff; }
.site-footer.overlay .sep { color: rgba(255, 255, 255, .45); }

/* 打印（成长档案导出 PDF） */
@media print {
  body { background: #fff; font-size: 12px; }
  .topbar, .side, .btn, .btn-row, .filters, #toast, .card-head .btn { display: none !important; }
  .layout { display: block; }
  .main { padding: 0; }
  .page { display: none !important; }
  .page.on { display: block !important; }
  .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; page-break-inside: avoid; }
  .p-hero { background: #3563e9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .stat, .tag, .grade, .bar > span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .thumb { width: 70px; height: 70px; }
  a { color: #000; }
}
