:root {
  --bg: #0a0e1a;
  --bg-glow: none;
  --card: #111827;
  --card-2: #1a2236;
  --line: #1f2937;
  --txt: #f3f4f6;
  --sub: #9ca3af;
  --blue: #3b82f6;
  --cyan: #60a5fa;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --laser: #3b82f6;
  /* 圆角体系：越小越工业，越大越柔和 */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-pill: 999px;
  --shadow: 0 4px 6px rgba(0, 0, 0, .3);
  --shadow-hover: 0 6px 12px rgba(0, 0, 0, .4);
  --ease: ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--txt); line-height: 1.6;
  position: relative;
}
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== 顶部导航 ===== */
.nav {
  display: flex; align-items: center; gap: 16px; padding: 12px 22px;
  background: rgba(17, 24, 39, .72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(150, 180, 240, .1);
  flex-wrap: wrap; position: sticky; top: 0; z-index: 10;
}
.nav .logo, a.logo {
  font-weight: 700; font-size: 18px; color: #fff !important; cursor: pointer; user-select: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  display: inline-block;
}
.nav a { color: var(--sub); font-size: 14px; transition: color .2s; }
.logo-pop {
  position: fixed; z-index: 999; min-width: 158px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 6px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 2px;
}
.logo-pop a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--txt); text-decoration: none; font-size: 14px; }
.logo-pop a:hover { background: rgba(59, 130, 246, .1); color: var(--blue); }
.nav a:hover { color: var(--txt); }
.nav .spacer { flex: 1; }
.nav .me { color: var(--sub); font-size: 13px; text-decoration: none; transition: color .2s; }
.nav .me:hover { color: var(--txt); }
.nav-chat {
  background: var(--blue);
  border-radius: 6px;
  padding: 5px 12px !important;
  color: #fff !important;
  font-weight: 500;
  font-size: 13px;
}
.nav-chat:hover {
  background: #2563eb;
  color: #fff !important;
}
.wrap { max-width: 1100px; margin: 0 auto; padding: 22px; }
/* 瀑布流布局：竖版照片自然占更多空间 */
.grid { column-count: 4; column-gap: 16px; }

/* ===== 卡片 ===== */
.card {
  position: relative;
  background: rgba(17, 24, 39, .65);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: 1px solid rgba(150, 180, 240, .1);
  border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  break-inside: avoid;
  margin-bottom: 16px;
  display: inline-block;
  width: 100%;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
  border-color: rgba(150, 180, 240, .22);
}
/* 高度 auto：照片按原始比例完整显示，竖版照片自然更高 */
.card img {
  width: 100%; height: auto; display: block; background: #0a0e1a;
  transition: transform .3s;
}
.card:hover img { transform: scale(1.02); }

/* ===== 图片展示容器 + 水印 ===== */
.photo-wrap {
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.photo-wrap img {
  display: block;
  pointer-events: none;
}
.photo-watermark {
  position: absolute;
  right: 6px;
  bottom: 4px;
  font-size: 11px;
  color: rgba(255,255,255,.55);
  text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 0 6px rgba(0,0,0,.4);
  pointer-events: none;
  z-index: 2;
  font-weight: 600;
  letter-spacing: .5px;
  white-space: nowrap;
  font-family: system-ui, sans-serif;
}
.photo-watermark.tl { top: 4px; left: 6px; right: auto; bottom: auto; }
.photo-watermark.tr { top: 4px; right: 6px; bottom: auto; left: auto; }
.photo-watermark.bl { bottom: 4px; left: 6px; right: auto; }
.photo-watermark.br { bottom: 4px; right: 6px; left: auto; top: auto; }
/* 大图（详情/查看器）的水印放大 */
.photo-wrap.lg .photo-watermark {
  font-size: 14px;
  right: 10px;
  bottom: 8px;
}
.card .meta {
  padding: 10px 12px; font-size: 13px; color: var(--sub);
  border-top: 1px solid var(--line);
}
.card .meta b { color: var(--txt); display: block; font-size: 13px; }

.tag { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 12px; background: #1f2937; color: #60a5fa; margin-right: 4px; }
.tag.rejected { background: #374151; color: #f87171; }
.tag.pending { background: #374151; color: #fbbf24; }
.tag.review2 { background: #374151; color: #93c5fd; }
.tag.approved { background: #374151; color: #34d399; }

h1, h2, h3 { margin-bottom: 12px; }
h2 { font-size: 18px; font-weight: 600; }
.muted { color: var(--sub); font-size: 13px; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 8px 16px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--txt);
  cursor: pointer; font-size: 14px; transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--card-2); }
.btn:active { transform: scale(.98); }
.btn.primary {
  background: var(--blue);
  border-color: var(--blue); color: #fff;
}
.btn.primary:hover { background: #2563eb; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.yellow { background: var(--yellow); border-color: var(--yellow); color: #000; }
.btn.ghost { background: transparent; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

form { max-width: 420px; }
label { display: block; font-size: 13px; color: var(--sub); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--txt);
  font-size: 14px;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue);
}
input::placeholder, textarea::placeholder { color: #6b7280; }

.detail-img { width: 100%; max-height: 70vh; object-fit: contain; background: #0a0e1a; border-radius: var(--r-sm); border: 1px solid var(--line); }

/* ===== 防盗图保护 ===== */
.protected-img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: none;
  -webkit-touch-callout: none;
}
/* 详情页图片允许点击放大，但禁止长按保存 */
.detail-img.protected-img { pointer-events: auto; }
/* 列表卡片图片需要可点（打开查看器）：右键与拖拽已由 oncontextmenu / draggable=false /
   全局 dragstart 拦截保护，这里只放开点击事件 */
.card .protected-img { pointer-events: auto; }

.kv { display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; font-size: 14px; margin: 16px 0; }
.kv b { color: var(--sub); font-weight: 500; }

.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 20; }
.modal .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; width: 100%; max-width: 380px; box-shadow: var(--shadow-hover); }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line); color: var(--txt); padding: 10px 18px; border-radius: 6px; z-index: 30; box-shadow: var(--shadow-hover); }

/* ===== chips ===== */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.chip {
  padding: 6px 12px; border-radius: 6px; border: 1px solid var(--line);
  font-size: 13px; color: var(--sub); cursor: pointer; background: var(--card);
}
.chip.on {
  background: var(--blue); color: #fff;
  border-color: var(--blue);
}
.chip:hover { color: var(--txt); }
.empty { text-align: center; color: var(--sub); padding: 64px 0; }
.user-row { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; flex-wrap: wrap; background: var(--card); }
.user-row .info { flex: 1; min-width: 160px; }
.center { max-width: 420px; margin: 44px auto; }

/* 手机版布局（设置里切换；默认电脑版） */
.layout-mobile .wrap { padding: 14px; }
.layout-mobile .grid { column-count: 2; column-gap: 12px; }
.layout-mobile .card { margin-bottom: 12px; }
.layout-mobile .card img { height: auto; }
.layout-mobile .card .meta { font-size: 12px; }
.layout-mobile .nav { gap: 8px; padding: 8px 14px; }
.layout-mobile .nav a { font-size: 13px; }
.layout-mobile form { max-width: 100%; }
.layout-mobile .detail-img { max-height: 58vh; }
.layout-mobile .kv { grid-template-columns: 78px 1fr; }

/* 平板版布局（介于电脑与手机之间；设置里切换；默认电脑版） */
.layout-tablet .wrap { max-width: 880px; }
.layout-tablet .grid { column-count: 3; column-gap: 16px; }
.layout-tablet .card img { height: auto; }
.layout-tablet .nav { gap: 12px; padding: 12px 22px; }
.layout-tablet .nav a { font-size: 14px; }
.layout-tablet form { max-width: 520px; }
.layout-tablet .detail-img { max-height: 70vh; }
.layout-tablet .kv { grid-template-columns: 96px 1fr; }

/* ===== 首页：热门相机/镜头 一小条按钮 ===== */
.rank-strip {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 6px 0 18px; padding: 10px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
}
.rank-tabs { display: inline-flex; gap: 6px; }
.rank-chips { display: inline-flex; gap: 8px; flex-wrap: wrap; flex: 1; min-width: 0; }
.rank-strip .muted:hover { color: var(--txt); }
.tabs .chip b { color: inherit; }
.chip.on b { color: #fff; }

/* 机队页 */
.fp-stats { display: flex; gap: 24px; flex-wrap: wrap; margin: 10px 0 4px; }
.fp-stat { display: flex; flex-direction: column; }
.fp-stat b { font-size: 24px; color: var(--txt); font-weight: 700; }
.fp-stat span { font-size: 12px; color: var(--sub); }
.fg-head { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.fg-head b { font-size: 15px; font-weight: 600; }
.fg-head span { font-size: 12px; color: var(--sub); }
.fi-item { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 8px; cursor: pointer; background: var(--card); }
.fi-item:hover { background: var(--card-2); }
.fi-name { font-size: 14px; }
.fi-count { font-size: 12px; color: var(--sub); }
.back { color: var(--sub); cursor: pointer; font-size: 13px; margin-bottom: 8px; display: inline-block; }
.back:hover { color: var(--txt); }
.actions { display: flex; gap: 10px; margin-top: 18px; }

/* 榜单标题（浏览页） */
.rank-title { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; }
.rank-title h2 { font-size: 15px; border-left: 3px solid var(--blue); padding-left: 12px; font-weight: 600; }

/* ===== 审核大图查看器 ===== */
.viewer .viewer-box {
  position: relative;
  width: min(1080px, 96vw); max-height: 92vh; overflow: auto;
  max-width: none; padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-hover);
}
.viewer-x {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 34px; height: 34px; line-height: 32px; text-align: center;
  border-radius: 6px; cursor: pointer; font-size: 20px;
  color: var(--sub); background: var(--card-2);
  border: 1px solid var(--line);
}
.viewer-x:hover { color: var(--txt); }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .9fr); gap: 18px; align-items: start; }
.viewer-body > img {
  width: 100%; max-height: 66vh; object-fit: contain;
  background: #0a0e1a; border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.viewer-side {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 14px 16px;
}
.viewer-side h3 { font-size: 16px; font-weight: 600; }
.vk { display: grid; grid-template-columns: 78px 1fr; gap: 4px 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.vk:last-child { border-bottom: none; }
.vk span { color: var(--sub); }
.vk b { font-weight: 600; word-break: break-all; }
@media (max-width: 860px) {
  .viewer-body { grid-template-columns: 1fr; }
  .viewer-body > img { max-height: 48vh; }
}
.layout-mobile .viewer-body { grid-template-columns: 1fr; }
.layout-tablet .viewer-body { grid-template-columns: 1fr; }

/* ===== 主页背景主题：流体玻璃 + 渐变光晕 ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* 流体玻璃基底 */
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(30, 60, 120, .18), transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(20, 40, 80, .12), transparent 50%);
  animation: bgFlow 20s ease-in-out infinite alternate;
}
/* 流体玻璃光泽层 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 600px at 30% 20%, rgba(255,255,255,.03), transparent 50%),
    radial-gradient(circle 400px at 70% 70%, rgba(255,255,255,.02), transparent 50%);
  animation: bgGlow 15s ease-in-out infinite alternate-reverse;
}
@keyframes bgFlow {
  0%   { opacity: .9; transform: scale(1) translate(0, 0); }
  50%  { opacity: 1;  transform: scale(1.02) translate(-1%, 1%); }
  100% { opacity: .9; transform: scale(1) translate(1%, -1%); }
}
@keyframes bgGlow {
  0%   { opacity: .6; }
  100% { opacity: 1; }
}

/* --- 极光 Aurora --- */
body.theme-aurora::before {
  background:
    radial-gradient(540px 400px at 10% 16%, rgba(47, 124, 255, .42), transparent 64%),
    radial-gradient(460px 340px at 84% 10%, rgba(0, 209, 255, .30), transparent 62%),
    radial-gradient(620px 440px at 70% 84%, rgba(126, 66, 255, .28), transparent 66%),
    radial-gradient(440px 340px at 22% 80%, rgba(25, 195, 125, .18), transparent 64%);
}
/* --- 日落 Sunset --- */
body.theme-sunset::before {
  background:
    radial-gradient(560px 420px at 12% 14%, rgba(255, 138, 76, .40), transparent 64%),
    radial-gradient(480px 360px at 86% 12%, rgba(255, 92, 153, .32), transparent 62%),
    radial-gradient(600px 460px at 72% 86%, rgba(168, 85, 247, .30), transparent 66%),
    radial-gradient(420px 320px at 24% 82%, rgba(255, 196, 92, .20), transparent 64%);
}
/* --- 海洋 Ocean --- */
body.theme-ocean::before {
  background:
    radial-gradient(560px 420px at 12% 14%, rgba(34, 211, 238, .40), transparent 64%),
    radial-gradient(480px 360px at 86% 12%, rgba(59, 130, 246, .34), transparent 62%),
    radial-gradient(600px 460px at 72% 86%, rgba(16, 185, 129, .28), transparent 66%),
    radial-gradient(420px 320px at 24% 82%, rgba(14, 165, 233, .20), transparent 64%);
}
/* --- 森林 Forest --- */
body.theme-forest::before {
  background:
    radial-gradient(560px 420px at 12% 14%, rgba(34, 197, 94, .38), transparent 64%),
    radial-gradient(480px 360px at 86% 12%, rgba(132, 204, 22, .30), transparent 62%),
    radial-gradient(600px 460px at 72% 86%, rgba(16, 185, 129, .26), transparent 66%),
    radial-gradient(420px 320px at 24% 82%, rgba(134, 239, 172, .18), transparent 64%);
}
/* --- 极简 Mono --- */
body.theme-mono::before {
  background:
    radial-gradient(560px 420px at 12% 14%, rgba(120, 140, 200, .22), transparent 64%),
    radial-gradient(480px 360px at 86% 12%, rgba(90, 110, 170, .18), transparent 62%),
    radial-gradient(600px 460px at 72% 86%, rgba(70, 90, 150, .16), transparent 66%),
    radial-gradient(420px 320px at 24% 82%, rgba(150, 170, 220, .10), transparent 64%);
}

/* ===== 审核中心：待审提示横幅 + 角标 ===== */
.notice-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 18px; border-radius: var(--r-md);
  background: rgba(255, 197, 61, .12); border: 1px solid rgba(255, 197, 61, .35);
  color: #ffe1a3; font-size: 14px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.notice-bar .pill { background: var(--yellow); color: #221a02; font-weight: 700; border-radius: var(--r-pill); padding: 2px 12px; }
.notice-bar.danger { background: rgba(255, 59, 92, .12); border-color: rgba(255, 59, 92, .35); color: #ffb3c1; }
.notice-bar.danger .pill { background: var(--red); color: #fff; }

/* ===== 两列图表卡片（热门相机榜 / 热门镜头榜）===== */
.rank2col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 760px) { .rank2col { grid-template-columns: 1fr; } }
.chart-card {
  padding: 16px; border-radius: var(--r-md);
  background: rgba(12, 22, 48, .42); border: 1px solid rgba(150, 180, 240, .18);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
}
.chart-card h3 { font-size: 15px; font-weight: 650; margin-bottom: 12px; border-left: 3px solid var(--cyan); padding-left: 10px; }
.barchart { display: flex; align-items: flex-end; gap: 6px; height: 250px; padding-top: 8px; overflow-x: auto; }
.bar-col { flex: 1; min-width: 26px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; cursor: pointer; }
.bar-col .bar {
  width: 100%; border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, rgba(0, 209, 255, .95), rgba(47, 124, 255, .65));
  box-shadow: 0 6px 16px rgba(0, 150, 255, .25);
  transition: filter .2s var(--ease), transform .2s var(--ease);
  min-height: 4px;
}
.bar-col:hover .bar { filter: brightness(1.15); transform: scaleY(1.03); }
.bar-col .bl { font-size: 10px; color: var(--sub); text-align: center; line-height: 1.25; max-width: 96px; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.bar-col .bc { font-size: 11px; color: var(--cyan); font-weight: 700; }
.chart-empty { color: var(--sub); font-size: 13px; padding: 30px 0; text-align: center; }

/* ===== 分类搜索面板 ===== */
.cat-panel { margin: 4px 0 30px; padding: 14px; border-radius: var(--r-md); background: rgba(12, 22, 48, .42); border: 1px solid rgba(150, 180, 240, .18); }
.cat-sug { position: relative; }
/* 联想候选框改为随文档流撑开（原 absolute 浮层会盖住面板下方的搜索结果/排行榜） */
.cat-sug .sug-box { position: static; }
/* 联想候选框通用外观：browse/upload 共用（原先只在 upload.html 内联定义，
   浏览页拿到的是无底透明浮层，会盖住下方排行榜导致点不动） */
.sug-box {
  z-index: 30; margin-top: 4px; max-height: 232px; overflow: auto;
  background: #12182a; border: 1px solid rgba(120,150,220,.28); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(4,10,30,.5); padding: 4px;
}
.sug-item { padding: 9px 12px; border-radius: 10px; cursor: pointer; display: flex; align-items: baseline; gap: 8px; }
.sug-item:hover { background: rgba(63,124,255,.16); }
.sug-name { font-size: 14px; font-weight: 600; color: var(--txt); }
.sug-sub { font-size: 12px; color: var(--sub); }

/* ===== 头像 / 设置 ===== */
.avatar-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(150, 180, 240, .4); background: #0c1630; }
.avatar-ph { width: 76px; height: 76px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2f7cff, #06a8ff); border: 2px solid rgba(150, 180, 240, .4); }
.bg-themes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.bg-swatch { width: 54px; height: 38px; border-radius: 10px; cursor: pointer; border: 2px solid transparent; transition: transform .15s var(--ease), border-color .15s var(--ease); }
.bg-swatch:hover { transform: translateY(-2px); }
.bg-swatch.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(0, 209, 255, .4); }
.bg-aurora { background: linear-gradient(135deg, #2f7cff, #00d1ff, #7e42ff); }
.bg-sunset { background: linear-gradient(135deg, #ff8a4c, #ff5c99, #a855f7); }
.bg-ocean { background: linear-gradient(135deg, #22d3ee, #3b82f6, #10b981); }
.bg-forest { background: linear-gradient(135deg, #22c55e, #84cc16, #10b981); }
.bg-mono { background: linear-gradient(135deg, #7888c8, #5a6eaa, #465a96); }

/* 我的作品删除按钮 */
.del-btn { font-size: 12px; padding: 5px 10px; }

/* 导航待审角标 */
.nav .badge { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; border-radius: var(--r-pill); padding: 1px 8px; margin-left: 2px; }
@media (max-width: 720px) { .rank2col { grid-template-columns: 1fr; } }

/* 响应式列数：根据屏幕宽度自动调整 */
@media (max-width: 600px) { .grid { column-count: 2; } }
@media (min-width: 601px) and (max-width: 900px) { .grid { column-count: 3; } }
@media (min-width: 901px) { .grid { column-count: 4; } }

/* ===== 审核辅助工具 ===== */
.rt-panel { display: grid; grid-template-columns: 1fr 320px; gap: 16px; height: 100%; }
.rt-viewport { position: relative; overflow: hidden; background: #0a0f1e; border-radius: var(--r-md); cursor: grab; min-height: 500px; }
.rt-viewport:active { cursor: grabbing; }
.rt-viewport canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; image-rendering: auto; }
.rt-viewport.rt-loading::after { content: '加载中…'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 14px; background: rgba(10, 15, 30, .8); }

.rt-toolbar { display: flex; gap: 8px; padding: 10px 12px; background: rgba(12, 22, 48, .6); border-radius: var(--r-sm); margin-bottom: 10px; flex-wrap: wrap; align-items: center; }
.rt-toolbar .btn { padding: 6px 12px; font-size: 12px; }
.rt-toolbar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }

.rt-sidebar { display: flex; flex-direction: column; gap: 12px; max-height: calc(100vh - 140px); overflow-y: auto; }
.rt-section { background: rgba(12, 22, 48, .5); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; }
.rt-section h4 { font-size: 13px; font-weight: 600; color: var(--cyan); margin: 0 0 10px; display: flex; align-items: center; gap: 6px; }
.rt-section h4::before { content: ''; width: 4px; height: 14px; background: var(--cyan); border-radius: 2px; }

.rt-histogram { width: 100%; height: 140px; border-radius: 6px; background: #0a0f1e; }
.rt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.rt-stat { display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; background: rgba(0, 0, 0, .2); border-radius: 4px; font-size: 12px; }
.rt-stat span { color: var(--sub); }
.rt-stat b { color: var(--txt); font-weight: 600; }
.rt-stat b.warn { color: var(--red); }

.rt-zoom-info { position: absolute; bottom: 10px; left: 10px; background: rgba(0, 0, 0, .7); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-family: monospace; pointer-events: none; z-index: 10; }

.rt-enhance-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-enhance-btns .btn { flex: 1; min-width: 60px; font-size: 11px; padding: 5px 8px; }

.rt-spot-result { margin-top: 8px; }

@media (max-width: 900px) {
  .rt-panel { grid-template-columns: 1fr; }
  .rt-sidebar { max-height: none; }
}

/* ===== 白色主题 ===== */
html[data-theme="light"] {
  --bg: #f5f7fa;
  --bg-glow: none;
  --card: #ffffff;
  --card-2: #f0f2f5;
  --line: #e1e5eb;
  --txt: #1a202c;
  --sub: #718096;
  --blue: #3b82f6;
  --cyan: #2563eb;
  --green: #10b981;
  --red: #ef4444;
  --yellow: #f59e0b;
  --laser: #3b82f6;
  --shadow: 0 2px 4px rgba(0, 0, 0, .08);
  --shadow-hover: 0 4px 8px rgba(0, 0, 0, .12);
}

html[data-theme="light"] body {
  background: var(--bg) !important;
  color: var(--txt) !important;
}

html[data-theme="light"] .nav {
  background: var(--card) !important;
  border-bottom: 1px solid var(--line) !important;
}

html[data-theme="light"] .nav .logo,
html[data-theme="light"] a.logo {
  color: var(--txt) !important;
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid var(--line) !important;
}

html[data-theme="light"] .card {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}

html[data-theme="light"] .btn {
  background: var(--card-2) !important;
  color: var(--txt) !important;
  border: 1px solid var(--line) !important;
}

html[data-theme="light"] .btn:hover {
  background: var(--line) !important;
}

html[data-theme="light"] .btn.primary {
  background: rgba(59, 130, 246, .15) !important;
  color: var(--blue) !important;
  border: 1px solid rgba(59, 130, 246, .3) !important;
}

html[data-theme="light"] .muted {
  color: var(--sub) !important;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: var(--card) !important;
  color: var(--txt) !important;
  border: 1px solid var(--line) !important;
}

html[data-theme="light"] .tag {
  background: var(--card-2) !important;
  color: var(--txt) !important;
  border: 1px solid var(--line) !important;
}

html[data-theme="light"] .tag.approved {
  background: rgba(16, 185, 129, .15) !important;
  color: var(--green) !important;
  border: 1px solid rgba(16, 185, 129, .3) !important;
}

html[data-theme="light"] .tag.pending {
  background: rgba(245, 158, 11, .15) !important;
  color: var(--yellow) !important;
  border: 1px solid rgba(245, 158, 11, .3) !important;
}

html[data-theme="light"] .tag.rejected {
  background: rgba(239, 68, 68, .15) !important;
  color: var(--red) !important;
  border: 1px solid rgba(239, 68, 68, .3) !important;
}

html[data-theme="light"] .viewer {
  background: rgba(0, 0, 0, .6) !important;
}

html[data-theme="light"] .viewer-box {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
}

html[data-theme="light"] .modal {
  background: rgba(0, 0, 0, .5) !important;
}

html[data-theme="light"] .photo-watermark {
  color: rgba(0, 0, 0, .5) !important;
  text-shadow: 0 1px 3px rgba(255, 255, 255, .7) !important;
}

html[data-theme="light"] .kv div {
  color: var(--txt) !important;
}

html[data-theme="light"] .kv span {
  color: var(--sub) !important;
}

html[data-theme="light"] h2,
html[data-theme="light"] h3,
html[data-theme="light"] h4 {
  color: var(--txt) !important;
}

html[data-theme="light"] .wrap {
  background: transparent !important;
}

