/* ==========================================================================
   表白墙 · Liquid Glass 设计系统
   ========================================================================== */

:root {
  --bg0: #07040f;
  --bg1: #130b28;
  --ink: #f8f5ff;
  --muted: #bdb4d8;
  --muted2: #8d84a9;
  --stroke: rgba(255, 255, 255, 0.16);
  --stroke-strong: rgba(255, 255, 255, 0.32);
  --glass: rgba(255, 255, 255, 0.075);
  --glass-2: rgba(255, 255, 255, 0.12);
  --accent: #ff8acd;
  --accent-2: #8b7cff;
  --cyan: #6fe3ff;
  --ok: #57e6a6;
  --warn: #ffc861;
  --danger: #ff6b81;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow: 0 24px 70px rgba(3, 1, 12, 0.55);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg0);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }

/* ---------- 背景 ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% -10%, #1d1140 0%, #0c0618 55%, #07040f 100%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  will-change: transform;
}
.b1 {
  width: 62vw; height: 62vw; left: -14vw; top: -18vh;
  background: radial-gradient(circle at 40% 40%, #ff5fb4, transparent 66%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.b2 {
  width: 58vw; height: 58vw; right: -16vw; top: 8vh;
  background: radial-gradient(circle at 50% 50%, #6a5bff, transparent 68%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.b3 {
  width: 70vw; height: 70vw; left: 15vw; bottom: -32vh;
  background: radial-gradient(circle at 50% 50%, #1fb6ff, transparent 70%);
  opacity: 0.32;
  animation: drift3 38s ease-in-out infinite alternate;
}
/* 亮色主题额外的一颗珊瑚色光斑 */
.b4 { display: none; }
.noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
}

@keyframes drift1 { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 5vh, 0) scale(1.12); } }
@keyframes drift2 { from { transform: translate3d(0, 0, 0) scale(1.05); } to { transform: translate3d(-7vw, 8vh, 0) scale(0.92); } }
@keyframes drift3 { from { transform: translate3d(0, 0, 0) scale(0.95); } to { transform: translate3d(5vw, -6vh, 0) scale(1.1); } }

/* ---------- 玻璃 ---------- */
.glass {
  position: relative;
  background:
    linear-gradient(158deg, rgba(255, 255, 255, 0.19), rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.11));
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -30px 70px rgba(124, 108, 255, 0.10);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  overflow: hidden;
  isolation: isolate;
}
.glass::before {
  content: "";
  position: absolute;
  inset: -60% -10% auto -10%;
  height: 80%;
  background: radial-gradient(58% 100% at 32% 0%, rgba(255, 255, 255, 0.34), transparent 62%);
  opacity: 0.75;
  pointer-events: none;
  z-index: -1;
}
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  z-index: -1;
}
.glass:hover::after { opacity: 1; }
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  .glass { background: linear-gradient(158deg, rgba(38, 28, 66, 0.96), rgba(20, 13, 40, 0.96)); }
}

/* ---------- 布局 ---------- */
.shell {
  width: min(760px, 100% - 32px);
  margin: 0 auto;
  padding: 28px 0 40px;
  flex: 1 0 auto;
}
.shell.narrow { width: min(520px, 100% - 32px); }

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 2px 26px;
}
.brand-mark {
  width: 52px; height: 52px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(255, 112, 190, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  flex: none;
}
.brand h1 { font-size: 21px; margin: 0; letter-spacing: 0.02em; font-weight: 700; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.brand .spacer { flex: 1; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 0 0 10px 4px;
}
h2.section { font-size: 18px; margin: 0 0 6px; }
.muted { color: var(--muted); }
.hint { color: var(--muted2); font-size: 12.5px; line-height: 1.8; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--stroke-strong);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.06));
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 24px rgba(3, 1, 12, 0.35);
}
.btn:hover { transform: translateY(-1.5px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 16px 34px rgba(3, 1, 12, 0.45); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn::before {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
}
.btn:hover::before { left: 130%; }

.btn-primary {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(140deg, #ff7ac6 0%, #b06bff 52%, #7c6cff 100%);
  box-shadow: 0 14px 36px rgba(190, 92, 255, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 20px 44px rgba(190, 92, 255, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-ghost { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.btn-danger { border-color: rgba(255, 107, 129, 0.45); background: rgba(255, 107, 129, 0.14); color: #ffc0c9; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field > label, .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 8px 2px;
  font-weight: 500;
}
.input, .textarea, select.input {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--stroke);
  background: rgba(10, 6, 22, 0.42);
  color: var(--ink);
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 14px 30px rgba(0, 0, 0, 0.18);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: rgba(189, 180, 216, 0.55); }
.input:focus, .textarea:focus, select.input:focus {
  border-color: rgba(255, 138, 205, 0.55);
  background: rgba(14, 9, 30, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 138, 205, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.textarea { min-height: 156px; resize: vertical; line-height: 1.8; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.counter { text-align: right; font-size: 12px; color: var(--muted2); margin-top: 6px; }
.counter.warn { color: var(--warn); }

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
  user-select: none;
}
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.28);
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.check input[type="checkbox"]::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  transform: scale(0);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: linear-gradient(135deg, #ff8acd, #8b7cff);
  box-shadow: 0 0 10px rgba(255, 138, 205, 0.65);
}
.check input[type="checkbox"]:checked {
  border-color: rgba(255, 138, 205, 0.65);
  background: rgba(255, 138, 205, 0.14);
}
.check input[type="checkbox"]:checked::before { transform: scale(1); }
.check input[type="checkbox"]:focus-visible { outline: 2px solid rgba(255, 138, 205, 0.6); outline-offset: 2px; }

/* 文件选择控件 */
input[type="file"].input { padding: 9px 12px; font-size: 13px; color: var(--muted); }
input[type="file"].input::file-selector-button {
  margin-right: 12px;
  border: 1px solid var(--stroke-strong);
  background: rgba(255, 255, 255, 0.11);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: background 0.2s;
}
input[type="file"].input::file-selector-button:hover { background: rgba(255, 255, 255, 0.18); }

/* ---------- 公共页 ---------- */
.picker { padding: 26px 24px 22px; }
.picker-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.school-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.school-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s, background 0.25s;
  font-size: 15px;
}
.school-card:hover { transform: translateY(-2px); border-color: rgba(255, 138, 205, 0.5); background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)); }
.school-card:active { transform: scale(0.985); }
.school-card .avatar {
  width: 42px; height: 42px;
  border-radius: 14px;
  flex: none;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(255, 138, 205, 0.35), rgba(139, 124, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.22);
  overflow: hidden;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
}
.school-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.school-card .name { flex: 1; min-width: 0; font-weight: 600; }
.school-card .chev { color: var(--muted2); font-size: 18px; }

.school-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--stroke);
  font-size: 13.5px;
  margin-bottom: 14px;
}
.school-chip .dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(255, 138, 205, 0.5), rgba(139, 124, 255, 0.5));
  overflow: hidden;
  font-size: 12px; font-weight: 700;
}
.school-chip .dot img { width: 100%; height: 100%; object-fit: cover; }
.link-btn {
  background: none; border: 0; color: var(--muted); font-size: 13px;
  cursor: pointer; padding: 4px 6px; border-radius: 8px;
}
.link-btn:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }

.form-card { padding: 26px 24px 24px; }
.form-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; letter-spacing: 0.01em; }
.form-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }

.uploader { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-tile {
  position: relative;
  width: 94px; height: 94px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
}
.upload-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upload-tile .del {
  position: absolute; top: 5px; right: 5px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, 0.55); color: #fff;
  font-size: 13px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.upload-tile .state {
  position: absolute; inset: auto 0 0 0;
  font-size: 11px; text-align: center; padding: 3px 0;
  background: rgba(0, 0, 0, 0.55); color: #fff;
  backdrop-filter: blur(6px);
}
.upload-tile.uploading::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.upload-add {
  width: 94px; height: 94px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  line-height: 1.5;
  transition: border-color 0.2s, background 0.2s;
}
.upload-add:hover { border-color: var(--accent); background: rgba(255, 138, 205, 0.08); color: var(--ink); }
.upload-add span { font-size: 22px; display: block; margin-bottom: 2px; }

.tips { margin-top: 16px; padding: 18px 22px; }
.tips ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; line-height: 1.9; }

.foot {
  text-align: center;
  color: var(--muted2);
  font-size: 12px;
  margin-top: auto;
  padding: 28px 0 26px;
  line-height: 1.9;
}

/* ---------- 弹层 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5, 2, 14, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal.open { display: flex; animation: fadeIn 0.22s ease; }
.modal-card {
  width: min(460px, 100%);
  padding: 28px 26px 24px;
  border-radius: 28px;
  animation: pop 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 88dvh;
  overflow: auto;
}
.modal-icon {
  width: 56px; height: 56px; border-radius: 20px;
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: 14px;
  background: linear-gradient(145deg, rgba(255, 138, 205, 0.4), rgba(139, 124, 255, 0.4));
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.modal-card h3 { margin: 0 0 8px; font-size: 20px; }
.modal-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.96); } to { opacity: 1; transform: none; } }

/* AI 审核中 */
.scan { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 10px 0 4px; }
.orb {
  width: 92px; height: 92px; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff8acd, #8b7cff, #6fe3ff, #ff8acd);
  filter: blur(0.5px);
  animation: spin 2.4s linear infinite, breathe 2.6s ease-in-out infinite;
  position: relative;
  box-shadow: 0 0 60px rgba(180, 120, 255, 0.55);
}
.orb::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85), rgba(20, 12, 40, 0.9) 65%);
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.scan-title { margin: 20px 0 6px; font-size: 17px; font-weight: 600; }
.scan-sub { color: var(--muted2); font-size: 13px; min-height: 22px; transition: opacity 0.3s; }

/* ---------- 提示 ---------- */
.flash {
  padding: 13px 18px;
  border-radius: 16px;
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid transparent;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(18px);
}
.flash.ok { background: rgba(87, 230, 166, 0.12); border-color: rgba(87, 230, 166, 0.35); color: #b8ffdd; }
.flash.err { background: rgba(255, 107, 129, 0.12); border-color: rgba(255, 107, 129, 0.38); color: #ffc4cc; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  background: rgba(18, 11, 36, 0.92);
  border: 1px solid var(--stroke-strong);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 90;
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  max-width: min(90vw, 480px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 后台 ---------- */
.admin-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 22px;
  width: min(1280px, 100% - 32px);
  margin: 0 auto;
  padding: 22px 0 60px;
  align-items: start;
}
.side {
  position: sticky;
  top: 22px;
  padding: 20px 16px 16px;
  border-radius: 26px;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px 18px; }
.side-brand .mark {
  width: 38px; height: 38px; border-radius: 13px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 18px;
  box-shadow: 0 8px 22px rgba(255, 112, 190, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.side-brand b { font-size: 15px; display: block; line-height: 1.3; }
.side-brand small { color: var(--muted2); font-size: 11.5px; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px;
  border-radius: 13px;
  color: var(--muted);
  font-size: 14px;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.side-link i { font-style: normal; opacity: 0.8; width: 18px; text-align: center; }
.side-link:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink); }
.side-link.active {
  background: linear-gradient(120deg, rgba(255, 138, 205, 0.22), rgba(139, 124, 255, 0.22));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.side-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.09); }
.side-user { font-size: 12.5px; color: var(--muted2); padding: 0 6px 10px; line-height: 1.7; }
.side-user b { color: var(--ink); font-size: 13.5px; display: block; }

.admin-main { min-width: 0; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin: 6px 2px 20px;
}
.admin-top h1 { font-size: 24px; margin: 0; letter-spacing: 0.01em; }
.admin-top p { margin: 4px 0 0; color: var(--muted2); font-size: 13px; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.stat {
  padding: 18px 20px;
  border-radius: 22px;
}
.stat .k { color: var(--muted2); font-size: 12.5px; letter-spacing: 0.04em; }
.stat .v { font-size: 30px; font-weight: 700; margin-top: 6px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .s { color: var(--muted2); font-size: 12px; margin-top: 4px; }
.stat.accent .v { background: linear-gradient(120deg, #ffb3dd, #b9a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.panel { padding: 22px 22px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-size: 17px; margin: 0; }
.panel-head p { margin: 3px 0 0; color: var(--muted2); font-size: 12.5px; }

.school-list { display: flex; flex-direction: column; gap: 10px; }
.school-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}
.school-row .avatar {
  width: 46px; height: 46px; border-radius: 15px; flex: none;
  background: linear-gradient(145deg, rgba(255, 138, 205, 0.3), rgba(139, 124, 255, 0.3));
  display: grid; place-items: center; overflow: hidden; font-weight: 700;
}
.school-row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.school-row .grow { flex: 1; min-width: 0; }
.school-row .grow b { font-size: 15px; display: block; }
.school-row .grow span { color: var(--muted2); font-size: 12.5px; word-break: break-all; }
.school-row .meta { color: var(--muted2); font-size: 12.5px; text-align: right; line-height: 1.7; }

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.09); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 680px; }
thead th {
  text-align: left; font-weight: 600; color: var(--muted2); font-size: 12px;
  letter-spacing: 0.05em; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.045);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  white-space: nowrap;
}
tbody td { padding: 13px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255, 255, 255, 0.028); }
.cell-content { max-width: 380px; line-height: 1.7; }
.cell-content .nick { font-weight: 600; margin-bottom: 3px; }
.cell-content .txt { color: var(--muted); white-space: pre-wrap; word-break: break-word; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid transparent; white-space: nowrap;
}
.badge-ok { background: rgba(87, 230, 166, 0.13); border-color: rgba(87, 230, 166, 0.32); color: #a9ffd7; }
.badge-warn { background: rgba(255, 200, 97, 0.13); border-color: rgba(255, 200, 97, 0.32); color: #ffe0a3; }
.badge-danger { background: rgba(255, 107, 129, 0.13); border-color: rgba(255, 107, 129, 0.32); color: #ffc0c9; }
.badge-dim { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.12); color: var(--muted); }

.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.thumbs a { display: block; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--stroke); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.empty { padding: 40px 20px; text-align: center; color: var(--muted2); font-size: 14px; }
.empty .big { font-size: 34px; margin-bottom: 10px; opacity: 0.7; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters .input, .filters select { height: 40px; padding: 0 12px; width: auto; min-width: 130px; border-radius: 12px; font-size: 13.5px; }
.filters .grow { flex: 1; min-width: 160px; }

.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 18px; color: var(--muted2); font-size: 13px; }
.pager a, .pager span.cur {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.pager span.cur { background: linear-gradient(120deg, rgba(255, 138, 205, 0.3), rgba(139, 124, 255, 0.3)); color: #fff; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.logo-preview {
  width: 78px; height: 78px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.06);
  display: grid; place-items: center; margin-right: 14px; flex: none;
}
.logo-preview img { width: 100%; height: 100%; object-fit: cover; }

.section-title { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted2); margin: 4px 0 14px; }

.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
.settings-grid .panel { margin-bottom: 0; }

.codearea {
  width: 100%; min-height: 150px; border-radius: 16px;
  border: 1px solid var(--stroke); background: rgba(8, 5, 18, 0.55);
  color: var(--ink); padding: 12px 14px; font-size: 12.5px; line-height: 1.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none; resize: vertical;
}
.codearea:focus { border-color: rgba(255, 138, 205, 0.5); box-shadow: 0 0 0 4px rgba(255, 138, 205, 0.1); }

.login-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card { width: min(420px, 100%); padding: 34px 30px 28px; border-radius: 30px; }
.login-card h1 { font-size: 24px; margin: 0 0 6px; }
.login-card p.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 24px; }
.role-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, 0.22); margin-bottom: 22px; }
.role-tabs a {
  flex: 1; text-align: center; padding: 9px 10px; border-radius: 10px;
  font-size: 13.5px; color: var(--muted2);
}
.role-tabs a.active { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }

.error-page { min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.error-card { width: min(460px, 100%); padding: 38px 32px; text-align: center; }
.error-code { font-size: 56px; font-weight: 800; letter-spacing: 0.04em; background: linear-gradient(120deg, #ff9fdc, #9d8cff); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-card h1 { font-size: 20px; margin: 14px 0 8px; }
.error-card p { color: var(--muted); font-size: 14px; margin: 0 0 22px; line-height: 1.8; }

.mobile-tabs { display: none; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; gap: 14px; padding-top: 14px; }
  .side { position: static; padding: 12px 12px; border-radius: 20px; }
  .side-brand { padding: 2px 4px 10px; }
  .side nav { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  .side nav::-webkit-scrollbar { display: none; }
  .side-link { white-space: nowrap; padding: 8px 12px; font-size: 13px; }
  .side-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; }
  .side-user { padding: 0; }
  .side-user b { display: inline; }
  .form-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(760px, 100% - 22px); padding-top: 16px; }
  .brand { margin-bottom: 18px; }
  .brand h1 { font-size: 18px; }
  .form-card, .picker { padding: 20px 16px 18px; }
  .form-title { font-size: 19px; }
  .admin-top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .admin-top h1 { font-size: 20px; }
  .panel { padding: 16px 14px; }
  .stat { padding: 14px 16px; }
  .stat .v { font-size: 25px; }
  .school-grid { grid-template-columns: 1fr; }
  .btn { height: 44px; }
  .school-row { flex-wrap: wrap; }
  .school-row .meta { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* 隐藏辅助 */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   亮色主题（仅投稿页）：薄荷绿 + 天蓝，蜜黄 / 珊瑚红点缀
   后台保持深色，通过 body.tone-light 隔离
   ========================================================================== */
body.tone-light {
  --bg0: #eefaf5;
  --bg1: #e6f6ff;
  --ink: #0f3038;
  --muted: #4f6d77;
  --muted2: #7c949c;
  --stroke: rgba(15, 70, 90, 0.12);
  --stroke-strong: rgba(15, 70, 90, 0.2);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-2: rgba(255, 255, 255, 0.8);
  --accent: #34d399;
  --accent-2: #38bdf8;
  --cyan: #22d3ee;
  --ok: #0ea371;
  --warn: #d97a00;
  --danger: #f0574f;
  --shadow: 0 22px 55px rgba(17, 84, 99, 0.14);
  background: var(--bg0);
  color: var(--ink);
}
body.tone-light ::selection { background: rgba(52, 211, 153, 0.3); }

/* 背景：清晨薄雾感的薄荷 / 天蓝 / 蜜黄 / 珊瑚 */
body.tone-light .bg {
  background:
    radial-gradient(58% 44% at 16% 4%, rgba(110, 231, 183, 0.5), transparent 62%),
    radial-gradient(52% 46% at 90% 14%, rgba(125, 211, 252, 0.48), transparent 64%),
    radial-gradient(46% 38% at 56% 96%, rgba(255, 224, 138, 0.34), transparent 66%),
    radial-gradient(40% 34% at 96% 92%, rgba(255, 179, 167, 0.34), transparent 68%),
    linear-gradient(160deg, #f8fffc 0%, #eefaf5 46%, #e6f5ff 100%);
}
body.tone-light .b1 {
  width: 62vw; height: 62vw; left: -7vw; top: -22vh;
  background: radial-gradient(circle at 40% 40%, #5eead4, transparent 64%);
  opacity: 0.78;
}
body.tone-light .b2 {
  width: 62vw; height: 62vw; right: -10vw; top: 2vh;
  background: radial-gradient(circle at 50% 50%, #67d4ff, transparent 66%);
  opacity: 0.78;
}
body.tone-light .b3 {
  background: radial-gradient(circle at 50% 50%, #ffe08a, transparent 70%);
  opacity: 0.62;
}
body.tone-light .b4 {
  display: block;
  width: 46vw; height: 46vw; right: -8vw; bottom: -14vh;
  background: radial-gradient(circle at 50% 50%, #ffb3a7, transparent 70%);
  opacity: 0.58;
  animation: drift2 34s ease-in-out infinite alternate;
}
body.tone-light .noise { opacity: 0.03; mix-blend-mode: multiply; }
body.tone-light .bg::after {
  background-image:
    linear-gradient(rgba(15, 70, 90, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 70, 90, 0.06) 1px, transparent 1px);
}

/* 玻璃：厚一点的乳白玻璃 + 薄荷蓝内反光 */
body.tone-light .glass {
  background: linear-gradient(152deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.16) 38%, rgba(255, 255, 255, 0.3) 100%);
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 0 0 1px rgba(12, 70, 90, 0.06),
    0 26px 60px rgba(17, 84, 99, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 14px 0 26px -22px rgba(52, 211, 153, 0.55),
    inset -14px 0 26px -22px rgba(56, 189, 248, 0.55),
    inset 0 -30px 60px rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(10px) saturate(195%) brightness(1.03);
  -webkit-backdrop-filter: blur(10px) saturate(195%) brightness(1.03);
}
/* 顶部斜向高光，玻璃的“棱”而不是一层白雾 */
body.tone-light .glass::before {
  inset: 0;
  height: 100%;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.1) 24%, rgba(255, 255, 255, 0) 44%);
  opacity: 0.45;
}
body.tone-light .glass::after {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.9), transparent 62%);
}
@supports not ((backdrop-filter: blur(2px)) or (-webkit-backdrop-filter: blur(2px))) {
  body.tone-light .glass { background: rgba(255, 255, 255, 0.94); }
}

/* 品牌 */
body.tone-light .brand-mark {
  position: relative;
  background: linear-gradient(145deg, #4ade80, #38bdf8);
  box-shadow: 0 12px 28px rgba(45, 180, 150, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
body.tone-light .brand-mark::after {
  content: "";
  position: absolute;
  top: -3px; right: -3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fbbf24;
  border: 3px solid #f3fef9;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.45);
}
body.tone-light .brand h1 { color: #0d2b33; }
body.tone-light .brand p { color: var(--muted); }
body.tone-light .eyebrow { color: #0e9f79; font-weight: 700; }
body.tone-light h2.section,
body.tone-light .form-title { color: #0d2b33; }
body.tone-light .form-sub { color: var(--muted); }
body.tone-light .hint { color: var(--muted2); }

/* 学校 */
body.tone-light .school-card {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 22px rgba(17, 84, 99, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
}
body.tone-light .school-card:hover {
  border-color: rgba(52, 211, 153, 0.65);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.78), rgba(236, 255, 247, 0.55));
  box-shadow: 0 14px 32px rgba(20, 160, 130, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
body.tone-light .school-card .avatar {
  background: linear-gradient(145deg, #6ee7b7, #7dd3fc);
  border-color: #ffffff;
  color: #065f5b;
}
body.tone-light .school-card .chev { color: #8aa1a8; }
body.tone-light .school-chip {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 20px rgba(17, 84, 99, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
}
body.tone-light .school-chip .dot {
  background: linear-gradient(145deg, #6ee7b7, #7dd3fc);
  color: #065f5b;
}
body.tone-light .link-btn { color: var(--muted); }
body.tone-light .link-btn:hover { background: rgba(15, 70, 90, 0.06); color: var(--ink); }

/* 输入 */
body.tone-light .input,
body.tone-light .textarea,
body.tone-light select.input {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(15, 70, 90, 0.12);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px rgba(17, 84, 99, 0.05);
}
body.tone-light .input::placeholder,
body.tone-light .textarea::placeholder { color: #95aab1; }
body.tone-light .input:focus,
body.tone-light .textarea:focus,
body.tone-light select.input:focus {
  border-color: rgba(56, 189, 248, 0.75);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16), 0 6px 20px rgba(17, 84, 99, 0.08);
}
body.tone-light .counter { color: #8aa1a8; }
body.tone-light .counter.warn { color: #e8590c; }

/* 上传 */
body.tone-light .upload-tile {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.8);
}
body.tone-light .upload-add {
  background: rgba(255, 255, 255, 0.42);
  border-color: rgba(15, 70, 90, 0.24);
  color: var(--muted);
}
body.tone-light .upload-add:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.09);
  color: var(--ink);
}

/* 按钮 */
body.tone-light .btn {
  border-color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.66));
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px rgba(17, 84, 99, 0.12);
}
body.tone-light .btn:hover { box-shadow: inset 0 1px 0 #fff, 0 16px 32px rgba(17, 84, 99, 0.17); }
body.tone-light .btn-primary {
  border-color: rgba(255, 255, 255, 0.6);
  background: linear-gradient(135deg, #10b981 0%, #22c1a4 38%, #0ea5e9 100%);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(14, 165, 233, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
body.tone-light .btn-primary:hover {
  box-shadow: 0 20px 44px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
body.tone-light .btn-ghost { background: rgba(255, 255, 255, 0.6); }
body.tone-light .btn::before { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent); }

/* 小贴士：蜜黄点缀 */
body.tone-light .tips {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.58), rgba(255, 249, 226, 0.42));
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.16), 0 22px 50px rgba(17, 84, 99, 0.12);
}
body.tone-light .tips h3 { color: #0d2b33; }
body.tone-light .tips h3::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fbbf24;
  margin-right: 9px;
  vertical-align: 1px;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}
body.tone-light .tips ul { color: var(--muted); }
body.tone-light .tips li::marker { color: #34d399; }
body.tone-light .foot { color: #7c949c; }
body.tone-light .empty { color: #7c949c; }

/* 弹层 */
body.tone-light .modal {
  background: rgba(232, 250, 246, 0.55);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
body.tone-light .modal-card {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.86));
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 30px 70px rgba(17, 84, 99, 0.22), inset 0 1px 0 #fff;
}
body.tone-light .modal-icon {
  background: linear-gradient(145deg, #6ee7b7, #7dd3fc);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(45, 180, 150, 0.25);
}
body.tone-light #reviewModal .modal-icon {
  background: linear-gradient(145deg, #fda4a4, #f87171);
  box-shadow: 0 10px 24px rgba(248, 113, 113, 0.32);
}
body.tone-light #successModal .modal-icon {
  background: linear-gradient(145deg, #34d399, #10b981);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.32);
}
body.tone-light .modal-card h3 { color: #0d2b33; }
body.tone-light .modal-card p { color: var(--muted); }

/* AI 审核光球 */
body.tone-light .orb {
  background: conic-gradient(from 0deg, #34d399, #38bdf8, #fbbf24, #fb7185, #34d399);
  box-shadow: 0 0 60px rgba(56, 189, 248, 0.45);
}
body.tone-light .orb::after {
  background: radial-gradient(circle at 35% 30%, #ffffff, rgba(240, 253, 250, 0.96) 65%);
}
body.tone-light .scan-title { color: #0d2b33; }
body.tone-light .scan-sub { color: var(--muted2); }

/* Toast */
body.tone-light .toast {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  box-shadow: 0 20px 45px rgba(17, 84, 99, 0.2);
}
