:root {
  --bg: #f6f7f8;
  --fg: #14171a;
  --fg-2: #454c53;
  --muted: #717a83;
  --line: rgba(20, 23, 26, 0.08);
  --wash: #eef0f1;
  --hover: #f1f3f4;
  --accent: #14171a;
  --cyan: #0ea5a0;
  --surface: rgba(255, 255, 255, 0.72);
  --accent-soft: rgba(14, 165, 160, 0.1);
  --accent-line: rgba(14, 165, 160, 0.32);
  --sh-sm: 0 1px 2px rgba(20, 23, 26, 0.04), 0 6px 18px -8px rgba(20, 23, 26, 0.16);
  --sh-lg: 0 0 0 1px rgba(14, 165, 160, 0.26), 0 20px 46px -16px rgba(20, 23, 26, 0.26),
    0 0 46px -14px rgba(14, 165, 160, 0.3);
  --max: 1240px;
  --gap-x: 28px;
  --gap-y: 46px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  /* 全站统一黑体：--serif 直接指向 sans，保留变量名不破坏既有引用 */
  --serif: var(--sans);
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  padding: 0;
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 背景光斑：三团冷色柔光缓慢漂移（浅色高级基调的“底”）
   放在 body::before 上，body 自身不设背景色，负 z-index 才不会被盖住；
   每层用 background-size + position 独立成“光斑”，避免摊成一整片灰雾 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(14, 165, 160, 0.26), transparent 70%),
    radial-gradient(circle, rgba(94, 110, 220, 0.18), transparent 70%),
    radial-gradient(circle, rgba(14, 165, 160, 0.16), transparent 70%);
  background-repeat: no-repeat;
  background-size: 600px 600px, 720px 720px, 540px 540px;
  background-position: -200px -240px, right -240px top 180px, 40% bottom -280px;
  opacity: 0.5;
  filter: blur(36px);
  animation: aurora 40s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-2.4%, 1.6%, 0) scale(1.07); }
  100% { transform: translate3d(1.8%, -1.4%, 0) scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 40px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.stuck {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px -16px rgba(20, 23, 26, 0.28);
}

.header-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0 11px;
  transition: padding 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header.stuck .header-top { padding: 11px 0 8px; }

.brand-line { display: flex; align-items: baseline; min-width: 0; }

.school-logo {
  height: 34px;
  width: auto;
  display: block;
  flex: none;
  align-self: center;
  margin-right: 14px;
  transition: height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.brand-sep {
  flex: none;
  align-self: center;
  width: 1px;
  height: 26px;
  background: var(--line);
  margin-right: 14px;
  transition: height 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header.stuck .school-logo { height: 27px; }
.site-header.stuck .brand-sep { height: 20px; }

.brand {
  font-family: var(--sans);
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: font-size 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.site-header.stuck .brand { font-size: 19px; }

.brand-sub {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.19em;
  color: var(--muted);
  margin-left: 13px;
  white-space: nowrap;
  transition: opacity 0.26s ease, margin 0.28s ease;
}
.site-header.stuck .brand-sub { opacity: 0; margin-left: 0; }

.about-link { font-size: 13px; color: var(--fg-2); letter-spacing: 0.02em; white-space: nowrap; transition: color 0.25s; }
.about-link:hover { color: var(--fg); }

/* ---------- filters ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px;
}

.chip {
  position: relative;
  padding: 0 0 11px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  transition: color 0.25s;
}
.chip:hover { color: var(--fg-2); }
.chip.on { color: var(--fg); font-weight: 500; }
.chip.on::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(14, 165, 160, 0.6);
}
/* 次级筛选（类型）：只用冷青文字，不占下划线 */
.chip.sub.on { color: var(--cyan); font-weight: 500; }
.chip.sub.on::after { display: none; }

.chip .n {
  font-size: 10px;
  margin-left: 5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  vertical-align: 2px;
}
.chip.on .n { color: var(--fg); }

.filter-sep { width: 1px; height: 13px; background: var(--line); margin: 0 2px 11px; }
.count {
  margin-left: auto;
  padding-bottom: 11px;
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--gap-y) var(--gap-x);
  padding: 38px 0 120px;
}

.card { position: relative; display: block; perspective: 900px; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--wash);
  box-shadow: var(--sh-sm);
  transform-style: preserve-3d;
  transform: translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .card-media {
  --lift: -5px;
  box-shadow: var(--sh-lg);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.card:hover .card-media img { transform: scale(1.035); }

/* 悬停时自上而下的一道柔光 */
.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 44%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.card:hover .card-media::after { opacity: 1; }

.card-meta {
  display: block;
  text-align: center;
  padding: 15px 4px 0;
}
.card-title {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: #2a3035;
  letter-spacing: 0.01em;
  transition: color 0.3s ease;
}
.card:hover .card-title { color: var(--cyan); }

/* 标题排版：学号弱化 + 姓名 */
.t-id {
  font-size: 0.78em;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}
.t-name { letter-spacing: 0.02em; }
.grid .card-series { display: none; }
.card-series { font-size: 12px; color: var(--muted); }

.play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  display: grid;
  place-items: center;
}
.play-badge::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 3px;
  border-left: 7px solid var(--fg);
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
}

.duration {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--fg);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* ---------- lightbox（深灰玻璃遮罩，与浅色站点对比出沉浸感） ---------- */
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: rgba(16, 18, 20, 0.78);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  color: #fff;
}
.lb.on { display: block; animation: lb-in 0.3s ease; }

@keyframes lb-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lb-stage {
  position: absolute;
  /* 底部留 146px 给信息条（条本身约 68px + 22px 边距），上方只让开一点呼吸位 */
  inset: 24px 88px 146px;
  /* flex 居中：flex 子项的百分比 max-height 能正确参照容器确定高度，
     避免 grid 单行 auto 时 max-height:100% 失效导致图片溢出、不居中 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-stage img, .lb-stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  /* 深遮罩上单靠暗投影压不出体积，补一层冷青外光让作品浮起来 */
  box-shadow: 0 44px 120px rgba(0, 0, 0, 0.55), 0 0 90px rgba(14, 165, 160, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.09);
}

.lb-idx {
  position: absolute;
  z-index: 2;
  left: 30px;
  top: 28px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
}
.lb-idx b { color: #fff; font-weight: 600; }

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0.84;
  transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.34);
}
.lb-close { top: 22px; right: 26px; width: 38px; height: 38px; font-size: 20px; line-height: 1; }
.lb-prev { left: 28px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 22px; }
.lb-next { right: 28px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 22px; }

/* 底部通栏信息条：作者 / 打分 / 查看详情 三合一，
   取代原先「打分玻璃卡 + 裸信息行」两张皮的中间状态 */
.lb-info {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 22px;
  border-radius: 18px;
  background: rgba(24, 26, 28, 0.74);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.lb-author { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lb-t { font-size: 16px; font-weight: 600; color: #fff; letter-spacing: 0.01em; }
.lb-author .t-id { font-size: 12.5px; font-weight: 400; color: rgba(255, 255, 255, 0.52); }
.lb-s { font-size: 12.5px; color: rgba(255, 255, 255, 0.56); font-variant-numeric: tabular-nums; }

.lb-rate { display: flex; align-items: center; margin-left: auto; }
/* 打分控件在这一条里是「内联的一排」，不再自带卡片外观 */
.lb-rate .rate-box {
  margin: 0;
  max-width: none;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.lb-rate .rate-head { display: block; margin: 0; }
.lb-rate .rate-label { font-size: 12px; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.58); }
.lb-rate .rate-scale { gap: 6px; flex-wrap: nowrap; }
.lb-rate .rate-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
}
.lb-rate .rate-btn:hover { border-color: var(--cyan); color: #fff; background: rgba(14, 165, 160, 0.18); }
.lb-rate .rate-btn.on {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 14px rgba(14, 165, 160, 0.7);
}
/* 未登录提示：并排在同一条右侧，不另起一行把条撑高 */
.lb-rate .rate-hint { margin: 0; flex-basis: auto; white-space: nowrap; font-size: 11.5px; color: rgba(255, 255, 255, 0.45); }
.lb-rate .rate-hint .btn-link { color: rgba(255, 255, 255, 0.72); }
.lb-rate .rate-hint .btn-link:hover { color: #fff; }

.lb-more {
  flex: none;
  padding: 9px 17px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
}
.lb-more:hover {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(14, 165, 160, 0.5);
}

/* ---------- detail ---------- */
.detail { padding: 26px 0 110px; }
.back { font-family: var(--serif); font-size: 13px; color: var(--muted); display: inline-block; margin-bottom: 26px; }
.back:hover { color: var(--fg); }

.detail-media { display: grid; place-items: center; }
/* 同时限制宽高并置 auto，保持原始比例，避免只限高时宽度不重算导致横向拉伸变形 */
.detail-media img, .detail-media video {
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: var(--sh-sm);
}

.detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 10px;
}
.detail-title { font-family: var(--serif); font-size: 27px; font-weight: 400; }
.detail-id { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.detail-desc { color: #44423a; max-width: 60ch; margin: 0 0 30px; }

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px 24px;
  padding: 26px 0 4px;
  border-top: 1px solid var(--line);
}
.meta dt { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.meta dd { margin: 3px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; }

.section-title { font-family: var(--serif); font-size: 14px; color: var(--fg); margin: 62px 0 22px; }

/* ---------- about ---------- */
.about-body { padding: 30px 0 120px; max-width: 60ch; }
.about-body p { margin: 0 0 16px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 20px;
  padding: 30px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--serif);
}

.tip, .lb-tip {
  font-size: 13px;
  color: var(--muted);
  padding: 14px 0;
  margin: 0;
}
.lb-tip { color: rgba(255, 255, 255, 0.65); position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; }

/* ---------- 账号区 ---------- */
.head-right { display: flex; align-items: center; gap: 20px; flex: none; }
.account { display: flex; align-items: center; gap: 14px; flex: none; white-space: nowrap; }
.account .who { font-size: 13px; color: var(--muted); }
.account .who b { color: var(--fg); font-weight: 500; }
.btn-link { font-size: 13px; color: var(--muted); transition: color 0.25s; }
.btn-link:hover { color: var(--fg); }

.btn-solid {
  font-size: 12.5px;
  padding: 6px 15px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  letter-spacing: 0.02em;
  transition: background 0.25s;
}
.btn-solid:hover { background: #000; color: #fff; }

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  background: rgba(16, 18, 20, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 20px;
}
.modal.on { display: grid; }
.modal-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 30px 30px 26px;
  width: 100%;
  max-width: 372px;
  box-shadow: 0 30px 80px -20px rgba(20, 23, 26, 0.4);
}
.modal-card h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 19px; font-weight: 400; }
.modal-card .sub { margin: 0 0 22px; font-size: 13px; color: var(--muted); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.04em; }
.field input, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { min-height: 110px; font-family: ui-monospace, monospace; font-size: 13px; line-height: 1.7; }

.btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  transition: opacity 0.15s, box-shadow 0.25s;
}
.btn:hover { opacity: 0.88; box-shadow: 0 10px 24px -12px rgba(20, 23, 26, 0.6); }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--fg); border-radius: 10px; }
.btn.ghost:hover { border-color: var(--cyan); color: var(--cyan); opacity: 1; box-shadow: none; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.err { color: #b3261e; font-size: 13px; margin: 10px 0 0; min-height: 18px; }

/* ---------- 评分 ---------- */
.rate-box {
  margin: 26px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--sh-sm);
  max-width: 520px;
}
.rate-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rate-label { font-size: 13px; color: var(--muted); }
.rate-value { font-family: var(--serif); font-size: 22px; font-variant-numeric: tabular-nums; }
.rate-scale { display: flex; gap: 4px; flex-wrap: wrap; }
.rate-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  transition: all 0.16s;
}
.rate-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.rate-btn.on {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(14, 165, 160, 0.45);
}
.rate-hint { font-size: 12px; color: var(--muted); margin: 14px 0 0; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 300;
  padding: 11px 22px;
  border-radius: 999px;
  background: rgba(16, 18, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 13px;
  box-shadow: 0 18px 44px -14px rgba(20, 23, 26, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.toast.on { opacity: 1; }

/* ---------- 后台 ---------- */
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding: 26px 0 100px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; margin-bottom: 10px; }
.stat { border-top: 1px solid var(--fg); padding: 14px 0 0; }
.stat .n { font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12px; color: var(--muted); }

.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.panel-title h2 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 400; }
.panel-title .act { display: flex; gap: 16px; }
.panel-title button {
  font-size: 12px;
  padding: 0 0 2px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.panel-title button:hover { border-bottom-color: var(--fg); color: var(--fg); }

.table-wrap { border-top: 1px solid var(--line); overflow: auto; max-height: 480px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 10px 14px 10px 0; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  z-index: 1;
}
td.num { font-variant-numeric: tabular-nums; }
tbody tr:hover { background: var(--hover); }
.bar { height: 4px; background: var(--fg); opacity: 0.8; min-width: 2px; }

@media (min-width: 1080px) {
  .admin-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
    column-gap: 48px;
    row-gap: 40px;
  }
  /* 左列＝作品（排名 / 上传），右列＝账号（管理 / 导入）；上传与批量导入同排顶部对齐 */
  .panel-rank   { grid-area: 1 / 1 / 2 / 2; }
  .panel-users  { grid-area: 1 / 2 / 2 / 3; }
  .panel-upload { grid-area: 2 / 1 / 3 / 2; }
  .panel-import { grid-area: 2 / 2 / 3 / 3; }
}

.empty { padding: 90px 0; text-align: center; color: var(--muted); font-family: var(--serif); }

/* ---------- 上传作品面板 ---------- */
.up-drop {
  display: block;
  border: 1.5px dashed rgba(20, 23, 26, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  padding: 34px 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.25s ease;
  margin-bottom: 18px;
}
.up-drop:hover {
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.up-drop.drag {
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.up-drop-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 22px; line-height: 1; color: var(--muted);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.up-drop:hover .up-drop-ico, .up-drop.drag .up-drop-ico { color: var(--cyan); border-color: var(--accent-line); }
.up-drop-title { display: block; font-family: var(--serif); font-size: 15px; color: var(--fg); margin-bottom: 7px; letter-spacing: .02em; }
.up-drop-hint { display: block; font-size: 12px; color: var(--muted); letter-spacing: .02em; }

.up-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 4px; }
.up-form .field { margin: 0; }
.up-form input { width: 100%; }

.up-preview {
  display: flex; gap: 18px; margin-top: 18px; align-items: flex-start;
  padding: 16px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--line); border-radius: 14px;
}
.up-thumb {
  width: 220px; height: 124px; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.up-thumb img, .up-thumb video { max-width: 100%; max-height: 100%; display: block; }
.up-meta { font-size: 13px; color: var(--muted); padding-top: 6px; line-height: 1.7; }
.up-meta b { color: var(--fg); font-weight: 600; }

.up-progress { display: flex; align-items: center; gap: 12px; margin: 18px 0 6px; }
.up-track { flex: 1; height: 6px; background: rgba(20, 23, 26, 0.08); border-radius: 99px; overflow: hidden; }
.up-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), #5e6edc);
  border-radius: 99px;
  transition: width 0.15s ease;
}
.up-progress.done .up-fill { background: #2f7d4f; }
.up-progress.err .up-fill { background: #b3261e; }
.up-pct { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

/* ---------- 上传作品 / 批量导入账号 同排协调 ---------- */
.panel-import .field { margin-bottom: 12px; }
.panel-import .field textarea { min-height: 152px; }

@media (max-width: 720px) {
  .up-form { grid-template-columns: 1fr; }
  .up-preview { flex-direction: column; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .header-top { padding: 14px 0 9px; }
  .school-logo { height: 22px; margin-right: 9px; }
  .brand-sep { height: 18px; margin-right: 9px; }
  .brand { font-size: 19px; }
  .brand-sub { display: none; }
  .filters { gap: 15px; }
  .chip { font-size: 12.5px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; padding-bottom: 80px; }
  .card-title { font-size: 13px; }
  .lb-stage { inset: 20px 14px 185px; }
  .lb-idx { left: 18px; top: 18px; }
  .lb-prev { left: 10px; width: 38px; height: 38px; }
  .lb-next { right: 10px; width: 38px; height: 38px; }
  .lb-close { top: 14px; right: 14px; }
  .lb-info {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 12px;
    padding: 12px 14px;
    flex-wrap: wrap;
  }
  /* 窄屏重排：作者与「查看详情」同一行，打分另起一行；
     11 格用 flex:1 均分宽度，任何屏宽都不会溢出，标签省掉 */
  .lb-author { flex: 1 1 auto; min-width: 0; }
  .lb-t { font-size: 15px; }
  .lb-more { order: 1; padding: 8px 14px; }
  .lb-rate { order: 2; margin-left: 0; flex: 1 1 100%; }
  .lb-rate .rate-label { display: none; }
  .lb-rate .rate-box { gap: 8px; }
  .lb-rate .rate-scale { gap: 3px; flex-wrap: nowrap; width: 100%; }
  .lb-rate .rate-btn { flex: 1 1 0; min-width: 0; width: auto; height: 34px; font-size: 12px; border-radius: 8px; }
  .lb-rate .rate-hint { flex-basis: 100%; }
  .detail-title { font-size: 22px; }
}
