:root {
  --bg: #070B14;
  --panel: rgba(18, 27, 45, 0.74);
  --panel-solid: #101927;
  --line: rgba(120, 165, 235, 0.16);
  --line-strong: rgba(120, 165, 235, 0.34);
  --text: #E8F0FF;
  --text-2: #9FB2D0;
  --text-3: #6B7E9C;
  --cyan: #22D3EE;
  --blue: #3B82F6;
  --violet: #8B5CF6;
  --amber: #F5B301;
  --rise: #FF4D4F;
  --fall: #22C55E;
  --radius: 14px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; line-height: 1.6; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }
button { cursor: pointer; }

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 140, 220, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 140, 220, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}
.bg-glow {
  position: fixed; z-index: 0; pointer-events: none; top: -320px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 620px;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.15), rgba(139, 92, 246, 0.08) 45%, transparent 70%);
  filter: blur(20px);
}
.wrap { width: min(1180px, 92vw); margin: 0 auto; position: relative; z-index: 1; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 20px; border-radius: 11px; font-size: 14px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
  transition: all .2s; white-space: nowrap;
}
.btn:hover { color: var(--text); border-color: var(--line-strong); }
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  border-color: transparent; color: #04121F; font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.08); color: #04121F; }
.btn-ghost { background: transparent; }
.btn-block { width: 100%; margin-top: 4px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-danger { color: var(--rise); border-color: rgba(255, 77, 79, 0.3); }

/* 顶栏 */
.site-header {
  position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px);
  background: rgba(7, 11, 20, 0.76); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: #fff;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; font-weight: 600; letter-spacing: .4px; }
.brand-text em { font-size: 9.5px; font-style: normal; color: var(--text-3); letter-spacing: 1.4px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav-link { padding: 7px 14px; border-radius: 9px; font-size: 14px; color: var(--text-2); transition: all .2s; }
.nav-link:hover { color: var(--text); background: rgba(120, 165, 235, .08); }
.nav-link.is-active { color: var(--cyan); background: rgba(34, 211, 238, .1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.user-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border-radius: 11px; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .26);
  font-size: 13.5px; color: var(--cyan);
}
.user-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* Hero */
.hero { padding: 68px 0 30px; }
.hero-head { display: flex; align-items: center; gap: 24px; margin-bottom: 14px; }
.hero-logo {
  width: 88px; height: 88px; border-radius: 50%; flex: none;
  background: #fff;
}
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; color: var(--cyan); letter-spacing: .5px;
  border: 1px solid rgba(34, 211, 238, .32); background: rgba(34, 211, 238, .08);
}
.hero-title {
  margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.12; font-weight: 700; letter-spacing: -.5px;
  background: linear-gradient(100deg, #FFFFFF 8%, #A9E9FF 46%, #8B5CF6 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { margin: 0; max-width: 760px; font-size: 15.5px; color: var(--text-2); }
.period-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--text-2);
}
.chip b { color: var(--text); font-weight: 600; }
.chip .tag { color: var(--cyan); font-size: 12px; }
.hero-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* 榜单 */
.board { padding: 34px 0 8px; }
.board-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.board-title { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: .3px; }
.board-sub { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.badge-live {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 12.5px; color: var(--fall); background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .26);
}
.badge-sem { color: var(--violet); background: rgba(139, 92, 246, .1); border-color: rgba(139, 92, 246, .3); }
.badge-mon { color: var(--cyan); background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .3); }
.badge-yea { color: #FFD700; background: rgba(255, 215, 0, .1); border-color: rgba(255, 215, 0, .32); }
.chip-visit { border-color: rgba(255, 215, 0, .3); }
.chip-visit .tag { color: #FFD700; }
.badge-sem .pulse { background: var(--violet); animation: none; }
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--fall);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.table { border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(8px); overflow: hidden; }
.table-head, .row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1.5fr) 92px 88px 88px 100px minmax(0, 1.2fr);
  align-items: center; gap: 12px; padding: 0 22px;
}
.table-head {
  height: 46px; font-size: 12.5px; color: var(--text-3); letter-spacing: .4px;
  border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02);
}
.c-num, .c-score { text-align: right; }
.row { height: 62px; border-bottom: 1px solid rgba(120, 165, 235, .08); animation: rowIn .38s backwards; }
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(34, 211, 238, .05); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 前三名行高亮，让人一眼看到头部名次 */
.row.is-top1 { background: linear-gradient(90deg, rgba(245, 214, 107, .13), transparent 62%); box-shadow: inset 3px 0 0 #E0A800; }
.row.is-top2 { background: linear-gradient(90deg, rgba(220, 227, 236, .1), transparent 62%); box-shadow: inset 3px 0 0 #A8B3C2; }
.row.is-top3 { background: linear-gradient(90deg, rgba(232, 185, 138, .1), transparent 62%); box-shadow: inset 3px 0 0 #C08040; }
.row.is-top1:hover { background: linear-gradient(90deg, rgba(245, 214, 107, .2), rgba(34, 211, 238, .05)); }
.row.is-top2:hover { background: linear-gradient(90deg, rgba(220, 227, 236, .16), rgba(34, 211, 238, .05)); }
.row.is-top3:hover { background: linear-gradient(90deg, rgba(232, 185, 138, .16), rgba(34, 211, 238, .05)); }

/* 空余名次占位，保证「前十」结构始终完整 */
.row.is-empty { opacity: .42; }
.row.is-empty:hover { background: transparent; }
.author-name.void { color: var(--text-3); font-weight: 500; letter-spacing: .5px; }
.plat-void { color: var(--text-3); background: rgba(255, 255, 255, .04); border-color: var(--line); }
.score.void { color: var(--text-3); font-weight: 600; }

/* 领奖台（前三名） */
.podium { display: flex; gap: 14px; align-items: flex-end; margin-bottom: 16px; }
.podium-card {
  flex: 1 1 0; min-width: 0; position: relative; overflow: hidden;
  border-radius: 16px; padding: 20px 16px; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  animation: rowIn .42s backwards;
}
.podium-card.is-1 {
  order: 2; padding: 34px 16px 26px;
  border-color: rgba(245, 214, 107, .48);
  background: linear-gradient(180deg, rgba(245, 214, 107, .17), rgba(18, 27, 45, .86));
  box-shadow: 0 14px 44px rgba(245, 214, 107, .14);
}
.podium-card.is-2 {
  order: 1; border-color: rgba(220, 227, 236, .3);
  background: linear-gradient(180deg, rgba(220, 227, 236, .1), rgba(18, 27, 45, .84));
}
.podium-card.is-3 {
  order: 3; border-color: rgba(232, 185, 138, .3);
  background: linear-gradient(180deg, rgba(232, 185, 138, .1), rgba(18, 27, 45, .84));
}
.pod-medal {
  width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, .08); color: var(--text-2);
}
.is-1 .pod-medal { width: 52px; height: 52px; font-size: 22px; background: linear-gradient(135deg, #F5D66B, #E0A800); color: #2A1E00; box-shadow: 0 0 24px rgba(245, 214, 107, .5); }
.is-2 .pod-medal { background: linear-gradient(135deg, #DCE3EC, #A8B3C2); color: #1B222B; }
.is-3 .pod-medal { background: linear-gradient(135deg, #E8B98A, #C08040); color: #2A1800; }
.pod-rank-label { font-size: 12px; letter-spacing: 2px; color: var(--text-3); margin-bottom: 8px; }
.is-1 .pod-rank-label { color: #F5D66B; }
.pod-author { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-plat { margin-top: 9px; }
.pod-score {
  margin-top: 12px; font-size: 26px; font-weight: 700; color: var(--cyan);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.is-1 .pod-score { font-size: 31px; color: #FFE08A; }
.pod-sub { margin-top: 7px; font-size: 12px; color: var(--text-3); }
.podium-card.is-empty { opacity: .5; }
.podium-card.is-empty .pod-score { color: var(--text-3); }
.podium-card.is-empty .pod-author { color: var(--text-3); font-weight: 500; }

.empty { padding: 44px; text-align: center; color: var(--text-3); font-size: 14px; margin: 0; }
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 9px; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .06); color: var(--text-2);
}
.rank-badge.r1 { background: linear-gradient(135deg, #F5D66B, #E0A800); color: #2A1E00; }
.rank-badge.r2 { background: linear-gradient(135deg, #DCE3EC, #A8B3C2); color: #1B222B; }
.rank-badge.r3 { background: linear-gradient(135deg, #E8B98A, #C08040); color: #2A1800; }
.author-name { font-size: 14.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plat-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; color: var(--cyan); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .22); }
.num { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.score { font-size: 17px; font-weight: 700; color: var(--cyan); font-variant-numeric: tabular-nums; }
.c-bar { display: flex; align-items: center; gap: 10px; }
.bar-track { flex: 1; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: width .9s cubic-bezier(.22,.8,.3,1); }
.empty { padding: 44px; text-align: center; color: var(--text-3); font-size: 14px; margin: 0; }

/* 规则 */
.rules { padding: 64px 0 30px; }
.sec-title { font-size: 22px; margin: 0 0 20px; font-weight: 600; }
.rules-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.rule-card {
  padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line);
  display: flex; gap: 14px; align-items: flex-start;
}
.rule-no {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: #04121F; background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.rule-text { font-size: 14px; color: var(--text-2); }
.rules-note {
  margin-top: 16px; padding: 16px 20px; border-radius: var(--radius); font-size: 14px; color: var(--text-2);
  background: rgba(245, 179, 1, .08); border: 1px solid rgba(245, 179, 1, .28);
}
.rules-note strong { color: var(--amber); }

/* 页脚 */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0; font-size: 13px; color: var(--text-3); }

/* 弹层 */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(4, 8, 16, .72); backdrop-filter: blur(4px); animation: fade .22s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-panel {
  position: relative; width: min(440px, 92vw); max-height: 88vh; overflow-y: auto;
  background: var(--panel-solid); border: 1px solid var(--line-strong); border-radius: 18px;
  box-shadow: var(--shadow); padding: 28px; animation: pop .28s cubic-bezier(.22,.8,.3,1);
}
.modal-wide { width: min(760px, 94vw); }
.modal-full { width: min(1180px, 96vw); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px;
  font-size: 20px; line-height: 1; background: rgba(255,255,255,.07); border: 1px solid var(--line); color: var(--text-2);
}
.modal-close:hover { color: var(--text); border-color: var(--line-strong); }
.modal-title { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.modal-sub { margin: 0 0 18px; font-size: 13px; color: var(--text-3); }

.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); margin-bottom: 20px; }
.tab { flex: 1; padding: 9px; border: 0; border-radius: 9px; font-size: 14px; background: transparent; color: var(--text-2); transition: all .2s; }
.tab.is-active { background: rgba(34,211,238,.16); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(34,211,238,.3); }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 13px; color: var(--text-2); }
.field > span em { font-style: normal; color: var(--text-3); font-size: 12px; }
.field input, .field select, .admin-archive input, .admin-archive select {
  height: 42px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); color: var(--text); font-size: 14px; outline: none; transition: border-color .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .admin-archive input:focus, .admin-archive select:focus { border-color: var(--cyan); }
.field input::placeholder { color: var(--text-3); }
select option { background: #101927; color: var(--text); }
.form-hint { margin: 0; font-size: 12.5px; color: var(--text-3); }

/* 截图上传 */
input[type="file"] {
  height: auto; padding: 9px 12px; font-size: 13px; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px dashed rgba(34,211,238,.4); border-radius: 10px; color: var(--text-2);
}
input[type="file"]::file-selector-button {
  height: 30px; margin-right: 10px; padding: 0 12px; border-radius: 8px; cursor: pointer;
  background: rgba(34,211,238,.14); color: var(--cyan); border: 1px solid rgba(34,211,238,.35); font-size: 12.5px;
}
.shot-preview {
  display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px;
  background: rgba(7,11,20,.5); border: 1px solid var(--line);
}
.shot-preview[hidden] { display: none; }
.shot-preview img { max-height: 110px; max-width: 100%; border-radius: 8px; object-fit: contain; }

/* 截图缩略图（个人中心 + 管理后台） */
.shot-thumb {
  width: 52px; height: 40px; object-fit: cover; border-radius: 6px; cursor: zoom-in;
  border: 1px solid rgba(34,211,238,.35); vertical-align: middle; background: rgba(255,255,255,.04);
}
.shot-thumb:hover { border-color: var(--cyan); }
.shot-none { font-size: 12px; color: var(--text-3); }

/* 管理后台：外链、核验标 */
.link-out { color: var(--cyan); text-decoration: none; font-size: 12.5px; white-space: nowrap; }
.link-out:hover { text-decoration: underline; }
.tag-ok { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: rgba(34,197,94,.12); color: var(--fall); border: 1px solid rgba(34,197,94,.28); }
.record-shot { display: flex; align-items: center; gap: 8px; }

/* 个人中心 */
.record-list { display: flex; flex-direction: column; gap: 10px; }
.record {
  padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.record-main { min-width: 0; }
.record-title { font-size: 14.5px; font-weight: 500; }
.record-meta { font-size: 12.5px; color: var(--text-3); margin-top: 4px; word-break: break-all; }
.record-nums { display: flex; gap: 18px; align-items: center; }
.record-num { text-align: right; }
.record-num span { display: block; font-size: 11.5px; color: var(--text-3); }
.record-num b { font-size: 15px; color: var(--text); font-weight: 600; }
.record-num b.hl { color: var(--cyan); }
.tag-lock { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(139,92,246,.14); color: var(--violet); border: 1px solid rgba(139,92,246,.3); }
.tag-open { font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(34,197,94,.12); color: var(--fall); border: 1px solid rgba(34,197,94,.28); }

/* 提交表单：点赞/转发并排 */
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1 1 0; min-width: 0; }

/* 个人中心：补数据 */
.btn-mini {
  height: 28px; padding: 0 12px; border-radius: 8px; font-size: 12.5px; cursor: pointer;
  background: rgba(34,211,238,.12); color: var(--cyan); border: 1px solid rgba(34,211,238,.35);
}
.btn-mini:hover { background: rgba(34,211,238,.2); }
.btn-mini:disabled { opacity: .5; cursor: not-allowed; }
.btn-mini-ok { background: rgba(34,197,94,.14); color: var(--fall); border-color: rgba(34,197,94,.4); }
.btn-mini-ok:hover { background: rgba(34,197,94,.24); }
.record-edit {
  display: flex; gap: 8px; align-items: center; padding: 10px 16px; margin-top: 8px;
  border-radius: 10px; background: rgba(7,11,20,.5); border: 1px dashed rgba(34,211,238,.3);
}
.record-edit[hidden] { display: none; }
.record-edit input {
  width: 110px; height: 32px; font-size: 13px; padding: 0 10px; border-radius: 8px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--text);
}

/* 管理后台 */
.admin-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.admin-archive { display: flex; gap: 8px; align-items: center; }
.admin-archive input { width: 240px; height: 34px; font-size: 13px; }
.admin-archive select { width: auto; height: 34px; font-size: 13px; padding-right: 30px; }
.admin-h4 { margin: 24px 0 10px; font-size: 14.5px; font-weight: 600; color: var(--text); }
.admin-table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 340px; background: rgba(255,255,255,.02); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 1180px; }
.admin-table th {
  position: sticky; top: 0; background: #131C2B; color: var(--text-3); font-weight: 500; text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1;
}
.admin-table td { padding: 9px 12px; border-bottom: 1px solid rgba(120,165,235,.08); color: var(--text-2); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td input {
  width: 84px; height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255,255,255,.05); color: var(--text); font-size: 13px; outline: none;
}
.admin-table td input:focus { border-color: var(--cyan); }
.url-cell { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }
.admin-preview { margin-bottom: 12px; }
.preview-box { padding: 14px 16px; border-radius: 12px; background: rgba(34,211,238,.06); border: 1px solid rgba(34,211,238,.24); font-size: 13px; color: var(--text-2); }
.preview-box b { color: var(--cyan); }
.preview-list { margin: 10px 0 0; padding-left: 18px; }
.preview-list li { margin-bottom: 3px; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 90;
  padding: 13px 22px; border-radius: 12px; font-size: 14px; max-width: min(560px, 90vw);
  background: #16202F; border: 1px solid var(--line-strong); color: var(--text);
  box-shadow: var(--shadow); animation: toastIn .28s;
}
.toast.ok { border-color: rgba(34,197,94,.5); }
.toast.err { border-color: rgba(255,77,79,.5); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* 响应式 */
@media (max-width: 980px) {
  .nav { display: none; }
  .rules-grid { grid-template-columns: 1fr; }
  .table-head { display: none; }
  .row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    grid-template-areas: "r a s" "r p b" "r n b";
    row-gap: 5px; height: auto; padding: 14px 18px;
  }
  .c-rank { grid-area: r; }
  .c-author { grid-area: a; }
  .c-plat { grid-area: p; }
  .c-num { display: none; }
  .c-score { grid-area: s; text-align: right; }
  .c-bar { grid-area: b; }
  .record { flex-direction: column; gap: 10px; }
  .admin-archive input { width: 160px; }
  .hero { padding: 46px 0 22px; }
  .hero-head { gap: 14px; margin-bottom: 10px; }
  .hero-logo { width: 60px; height: 60px; }
  .brand-logo { width: 38px; height: 38px; }
}

@media (max-width: 760px) {
  /* 窄屏：领奖台改为 冠军 → 亚军 → 季军 纵向排列 */
  .podium { flex-direction: column; align-items: stretch; gap: 10px; }
  .podium-card { order: 0 !important; flex: none; padding: 16px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; text-align: left; }
  .podium-card.is-1 { padding: 16px; }
  .pod-medal { margin: 0; width: 40px; height: 40px; font-size: 17px; grid-row: span 3; }
  .is-1 .pod-medal { width: 44px; height: 44px; font-size: 19px; }
  .pod-rank-label { grid-column: 2; margin: 0; }
  .pod-author { grid-column: 2; }
  .pod-plat { grid-column: 2; margin-top: 4px; }
  .pod-score { grid-column: 3; grid-row: 1 / span 2; margin: 0; font-size: 22px; text-align: right; }
  .is-1 .pod-score { font-size: 25px; }
  .pod-sub { grid-column: 3; margin: 0; text-align: right; }
}
