/* =========================================================================
   AI 图片防盗与全网溯源系统 —— 样式表
   设计思路：浅色、留白多、圆角柔和、主色是沉稳的蓝，避免花哨。
   ========================================================================= */

:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e6ebf3;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 12px -6px rgba(15, 23, 42, .10);
  --shadow-md: 0 18px 40px -24px rgba(15, 23, 42, .32);
}

* { box-sizing: border-box; }

/* 关键：让 HTML 的 hidden 属性真正生效。
   浏览器默认的 [hidden]{display:none} 权重很低，
   会被下面 .card{display:flex} 这类规则覆盖，导致"藏不住"。 */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 420px at 12% -8%, rgba(37, 99, 235, .10), transparent 62%),
    radial-gradient(720px 360px at 92% 0%, rgba(124, 58, 237, .08), transparent 60%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

/* ---------------------------------------------------------------- 顶部 */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 14px; }

.brand-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #7c3aed);
  box-shadow: 0 10px 22px -12px rgba(37, 99, 235, .9);
}

.brand-mark svg { width: 26px; height: 26px; }

.brand-text h1 {
  margin: 0;
  font-size: 21px;
  letter-spacing: .2px;
  font-weight: 700;
}

.brand-text p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.badges { display: flex; gap: 8px; align-items: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
}

.pill-local { color: #047857; background: #ecfdf5; border-color: #bbf7d0; }

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}

/* ---------------------------------------------------------------- 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.workbench {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.step {
  width: 22px; height: 22px;
  border-radius: 7px;
  display: grid; place-items: center;
  font-size: 12px;
  color: var(--primary);
  background: var(--primary-soft);
}

.hint { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- 上传区 */
.dropzone {
  position: relative;
  flex: 1 1 auto;
  min-height: 258px;
  border: 2px dashed #c9d6e8;
  border-radius: 14px;
  background: #fbfdff;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 26px 18px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease,
              box-shadow .18s ease, transform .18s ease;
  outline: none;
}

.dropzone:hover,
.dropzone:focus-visible {
  border-color: #a9c1e4;
  background: #f8fbff;
}

.dropzone.is-drag {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: inset 0 0 0 4px rgba(37, 99, 235, .07);
  transform: scale(1.006);
}

.dz-icon {
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
}

.dz-icon svg { width: 26px; height: 26px; }

.dz-title { margin: 0; font-size: 15px; font-weight: 600; }

.dz-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.link { color: var(--primary); font-weight: 600; }

.dz-limit {
  margin: 14px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

/* 上传进度 */
.dz-progress { width: 100%; max-width: 340px; }

.bar {
  height: 8px;
  border-radius: 999px;
  background: #e8eef7;
  overflow: hidden;
  margin-top: 12px;
}

.bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), #7c3aed);
  transition: width .18s ease;
}

.upload-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* ---------------------------------------------------------------- 按钮 */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease,
              transform .12s ease, box-shadow .16s ease, color .16s ease;
}

.btn:active:not(:disabled) { transform: translateY(1px); }

.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: #334155;
}

.btn-ghost:hover:not(:disabled) { background: #f8fafc; border-color: #cbd5e1; }

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  box-shadow: 0 12px 24px -14px rgba(37, 99, 235, .95);
}

.btn-primary:hover:not(:disabled) { background: linear-gradient(135deg, var(--primary-dark), #4338ca); }

.btn-primary:disabled {
  background: #eef1f6;
  color: #a2adc0;
  box-shadow: none;
}

/* ---------------------------------------------------------------- 信息区 */
.info-empty {
  flex: 1 1 auto;
  min-height: 258px;
  border-radius: 14px;
  background: #fbfdff;
  border: 1px dashed var(--line);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
  color: var(--muted);
  padding: 22px;
}

.info-empty p { margin: 0; font-size: 14px; }

.info-empty-sub { font-size: 12px; color: #94a3b8; }

.thumb-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--line);
  margin-bottom: 14px;
  display: grid;
  place-items: center;
}

.thumb-wrap img {
  display: block;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}

.info-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.info-grid > div {
  background: #f8fafc;
  border-radius: 10px;
  padding: 9px 11px;
  min-width: 0;
}

.info-grid dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 2px;
}

.info-grid dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  word-break: break-all;
  overflow-wrap: anywhere;
}

/* ---------------------------------------------------------------- 操作栏 */
.actionbar {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.action-text { display: flex; flex-direction: column; gap: 2px; }

.action-text strong { font-size: 14px; }

.action-text span { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- 页脚 */
.footer {
  margin-top: 26px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.footer p { margin: 4px 0; }

.footer-dim { color: #a3aec0; }

/* ---------------------------------------------------------------- 提示条 */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 12px);
  max-width: min(560px, calc(100vw - 40px));
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  background: #1e293b;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 50;
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.toast.error { background: #b91c1c; }

.toast.success { background: #15803d; }

/* ---------------------------------------------------------------- 本地比对结果 */
.results-card { margin-top: 20px; }

.match-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdff;
  transition: border-color .16s ease, background .16s ease;
}

.match-item:hover { border-color: #cfdcee; background: #fff; }

.match-thumb {
  width: 88px;
  height: 62px;
  flex: 0 0 88px;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
}

.match-main { flex: 1 1 auto; min-width: 0; }

.match-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13.5px;
  font-weight: 600;
  word-break: break-all;
}

.match-sub {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.match-score {
  flex: 0 0 auto;
  text-align: right;
  min-width: 74px;
}

.match-score strong { font-size: 19px; letter-spacing: -.3px; }

.match-score span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-identical { background: #fee2e2; color: #b91c1c; }
.badge-same      { background: #ffedd5; color: #c2410c; }
.badge-high      { background: #fef3c7; color: #a16207; }
.badge-medium    { background: #e0f2fe; color: #0369a1; }
.badge-low       { background: #f1f5f9; color: #475569; }

.results-empty {
  margin: 0;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: #fbfdff;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

/* ---------------------------------------------------------------- 全网搜索 */
.quota { font-size: 12px; color: #94a3b8; }

.quota-warn { color: #c2410c; }

.privacy-note {
  margin: 12px 4px 0;
  padding: 12px 16px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}

.web-card { margin-top: 20px; }

.web-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--primary-soft);
  border-radius: 12px;
  font-size: 13px;
  color: var(--primary-dark);
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(37, 99, 235, .25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.web-error {
  padding: 14px 16px;
  font-size: 13px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
}

.web-group + .web-group { margin-top: 22px; }

.web-group-head h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
}

.web-group-head p {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.web-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.web-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdff;
}

.web-thumb {
  width: 132px;
  height: 98px;
  flex: 0 0 132px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2f7;
}

.web-thumb-empty { background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 6px, #e6ecf5 6px, #e6ecf5 12px); }

.web-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.web-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.web-meta { font-size: 11.5px; color: var(--muted); }

.web-actions { margin-top: auto; }

.link-btn {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 8px;
  text-decoration: none;
}

.link-btn:hover { background: #dbeafe; }

.web-nolink { font-size: 11.5px; color: #94a3b8; }

.web-more { margin: 10px 2px 0; font-size: 12px; color: var(--muted); }

/* 概览条 */
.web-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sum-item { flex: 1 1 120px; display: flex; flex-direction: column; gap: 2px; }

.sum-item span { font-size: 11.5px; color: var(--muted); }

.sum-item strong { font-size: 15px; letter-spacing: -.2px; }

/* 站点汇总 */
.site-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  font-size: 12.5px;
}

.site-name { font-weight: 600; }

.site-count { color: var(--muted); font-size: 11.5px; }

/* 图片地址按钮（次要样式） */
.link-btn-ghost {
  color: #475569;
  background: #f1f5f9;
  margin-left: 6px;
}

.link-btn-wrapped {
  color: #92400e;
  background: #fef3c7;
}

.link-btn-wrapped:hover { background: #fde68a; }

.web-note {
  margin: 10px 2px 0;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

.link-btn-ghost:hover { background: #e2e8f0; }

/* 外部检索 */
.external-tools {
  margin-top: 24px;
  padding: 16px 18px;
  background: #fbfdff;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.external-tools h3 { margin: 0 0 6px; font-size: 13.5px; }

.external-tools p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

.ext-path { font-size: 12.5px; }

.ext-path code {
  padding: 2px 6px;
  background: #eef2f7;
  border-radius: 6px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  word-break: break-all;
}

.ext-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 8px; }

.ext-links a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}

.ext-links a:hover { background: #dbeafe; }

.ext-note { font-size: 12px; color: #94a3b8; }

/* 搜索历史 */
.history-card { margin-top: 20px; }

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdff;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}

.history-item:hover { border-color: #cfdcee; background: #fff; }

.history-item .web-thumb { width: 58px; height: 44px; flex: 0 0 58px; }

.history-main { min-width: 0; }

.history-name {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-meta { font-size: 11px; color: var(--muted); }

/* 用户信息与删除按钮 */
.pill-user { color: #1e40af; background: #eff6ff; border-color: #bfdbfe; }

.pill-link {
  color: var(--muted);
  text-decoration: none;
}

.pill-link:hover { color: var(--danger); border-color: #fecaca; background: #fef2f2; }

.history-item { position: relative; }

.history-del {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}

.history-item:hover .history-del { opacity: 1; }

.history-del:hover { background: #fee2e2; color: #b91c1c; }

/* 工具栏（复核 / 存证 / 导出） */
.web-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.btn-sm { padding: 6px 12px; font-size: 12.5px; border-radius: 9px; text-decoration: none; }

.toolbar-note { margin-left: auto; font-size: 12px; color: var(--muted); }

/* 存证状态行 */
.web-evidence {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
  word-break: break-all;
}

/* 复核控件 */
.review-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.review-select {
  appearance: none;
  padding: 4px 26px 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}

.review-pending    { background-color: #f8fafc; color: #475569; }
.review-suspect    { background-color: #fee2e2; color: #b91c1c; border-color: #fecaca; }
.review-authorized { background-color: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.review-ignored    { background-color: #f1f5f9; color: #94a3b8; }

.review-note-btn {
  appearance: none;
  border: none;
  background: none;
  padding: 2px 4px;
  font-size: 11.5px;
  color: var(--muted);
  cursor: pointer;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-note-btn:hover { color: var(--primary); }

/* ---------------------------------------------------------------- 登录页 */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 384px;
  align-items: center;
  text-align: center;
  padding: 32px 28px 26px;
  box-shadow: var(--shadow-md);
}

.login-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
}

.login-title { margin: 0; font-size: 17px; font-weight: 700; }

.login-sub { margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }

.login-error {
  width: 100%;
  margin: 14px 0 0;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
}

.login-form {
  width: 100%;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form input {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.login-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.login-form .btn { width: 100%; padding: 11px; }

.login-note {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- 管理后台 */
.pill-admin {
  color: #7c3aed;
  background: #f5f3ff;
  border-color: #ddd6fe;
  text-decoration: none;
}

.pill-admin:hover { background: #ede9fe; }

.admin-msg {
  margin-bottom: 18px;
  padding: 11px 16px;
  font-size: 13px;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-card span { font-size: 12px; color: var(--muted); }
.stat-card strong { font-size: 26px; line-height: 1.2; letter-spacing: -.5px; }
.stat-card em { font-style: normal; font-size: 11.5px; color: #94a3b8; }

.table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.admin-table th,
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.admin-table th {
  font-weight: 600;
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
}

.admin-table tbody tr:hover { background: #fbfdff; }

.mono { font-family: Consolas, "Courier New", monospace; font-size: 12px; color: #475569; }

.tag-admin, .tag-on, .tag-off, .tag-wait, .tag-me {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.tag-admin { background: #f5f3ff; color: #7c3aed; }
.tag-on    { background: #dcfce7; color: #15803d; }
.tag-off   { background: #fee2e2; color: #b91c1c; }
.tag-wait  { background: #fef3c7; color: #a16207; }
.tag-me    { background: #eff6ff; color: #1e40af; margin-left: 6px; }

.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.inline-form { display: inline-flex; gap: 4px; align-items: center; margin: 0; }

.inline-form input[type="number"] {
  width: 62px;
  padding: 4px 6px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.inline-form input[type="password"] {
  width: 96px;
  padding: 4px 6px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.btn-mini {
  padding: 4px 10px;
  font-size: 11.5px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
}

.btn-mini:hover { background: #f1f5f9; }

.btn-danger { color: #b91c1c; border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; }

.admin-hint {
  margin: 12px 2px 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 880px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------- 案例墙 */
.gallery-page { max-width: 1180px; }

.gallery-intro { margin: 4px 0 22px; }

.gallery-intro h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.3px; }

.gallery-intro p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.75; max-width: 760px; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.case-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #cfdcee;
}

.case-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eef2f7;
  overflow: hidden;
}

.case-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.case-thumb-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #94a3b8;
  font-size: 12px;
}

.case-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: rgba(185, 28, 28, .88);
  backdrop-filter: blur(4px);
}

.case-body { padding: 12px 14px 14px; }

.case-body h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.case-meta { margin: 0; font-size: 11.5px; color: var(--muted); }

.case-stats { margin: 4px 0 0; font-size: 11.5px; color: #94a3b8; }

.gallery-empty {
  padding: 60px 20px;
  text-align: center;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  font-size: 14px;
}

.gallery-empty-sub { font-size: 12.5px; color: #94a3b8; margin-top: 8px; }

/* ---------------------------------------------------------------- 案例详情 */
.case-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 20px;
  align-items: start;
}

.case-image-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  margin-bottom: 14px;
}

.case-image-wrap img { width: 100%; height: auto; display: block; }

.case-desc {
  margin: 14px 0 0;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.75;
  color: #334155;
  background: #f8fafc;
  border-radius: 10px;
}

.case-review-note {
  margin: 10px 0 0;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
}

.case-sub {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #b91c1c;
}

.suspect-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suspect-item {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fcfdff;
}

.suspect-thumb {
  width: 86px;
  height: 62px;
  flex: 0 0 86px;
  object-fit: cover;
  border-radius: 7px;
  background: #eef2f7;
}

.suspect-empty { background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 6px, #e6ecf5 6px, #e6ecf5 12px); }

.suspect-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }

.suspect-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.suspect-meta { font-size: 11px; color: var(--muted); }

.case-disclaimer {
  margin: 16px 0 0;
  padding: 10px 12px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
}

/* ---------------------------------------------------------------- 审核卡片 */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfdff;
  min-width: 0;
}

.review-thumb {
  width: 112px;
  height: 84px;
  flex: 0 0 112px;
  border-radius: 10px;
  overflow: hidden;
  background: #eef2f7;
}

.review-thumb img { width: 100%; height: 100%; object-fit: cover; }

.review-body { min-width: 0; flex: 1; }

.review-body h3 { margin: 0 0 4px; font-size: 13.5px; line-height: 1.4; }

.review-form { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }

.review-form input[type="text"] {
  width: 100%;
  padding: 5px 9px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.review-actions { display: flex; gap: 6px; }

.btn-ok { color: #15803d; border-color: #bbf7d0; }
.btn-ok:hover { background: #f0fdf4; }

/* ---------------------------------------------------------------- 搜索与标签 */
.gallery-tools { margin-bottom: 22px; }

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search-form input[type="search"] {
  flex: 1;
  max-width: 420px;
  padding: 9px 14px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.search-form input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.tag-filters { display: flex; flex-direction: column; gap: 8px; }

.tag-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }

.tag-group {
  font-size: 11.5px;
  color: var(--muted);
  min-width: 60px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}

.tag-chip:hover { background: #e2e8f0; color: #1e293b; }

.tag-chip em {
  font-style: normal;
  font-size: 10.5px;
  color: #94a3b8;
}

.tag-active {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.tag-mini { padding: 1px 8px; font-size: 10.5px; }

.case-tags { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 5px; }

.gallery-count { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

.case-tags-detail { margin-top: 12px; }

/* ---------------------------------------------------------------- 弹窗 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
}

.modal-box {
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .5);
}

.modal-box h3 { margin: 0 0 4px; font-size: 17px; }

.modal-sub { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); }

.field { display: block; margin-bottom: 14px; }

.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  resize: vertical;
}

.field input[type="text"]:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.tag-pick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.tag-pick-row em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  min-width: 56px;
}

.tag-pick { position: relative; cursor: pointer; }

.tag-pick input { position: absolute; opacity: 0; pointer-events: none; }

.tag-pick span {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid transparent;
  transition: all .15s ease;
}

.tag-pick input:checked + span {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

/* ---------------------------------------------------------------- 站点首页（案例墙） */
.site-page { max-width: 1240px; margin: 0 auto; padding: 0 24px 64px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  flex-wrap: wrap;
}

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }

.nav-brand .brand-mark { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; }

.nav-brand .brand-mark svg { width: 22px; height: 22px; }

.nav-title { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }

.nav-links { display: flex; gap: 18px; flex-wrap: wrap; }

.nav-links a {
  font-size: 13.5px;
  color: #475569;
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover { color: var(--primary); border-bottom-color: var(--primary); }

.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.pill-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  border-color: transparent;
  text-decoration: none;
}

/* 头部 */
.hero { padding: 26px 0 22px; }

.hero h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.6px; }

.hero-sub { margin: 0; max-width: 720px; font-size: 14px; color: var(--muted); line-height: 1.8; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hero-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat strong { font-size: 24px; letter-spacing: -.5px; }

.hero-stat span { font-size: 11.5px; color: var(--muted); }

/* 筛选条 */
.filter-bar {
  margin: 4px 0 26px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.tag-group { font-size: 12px; color: var(--muted); margin-right: 4px; }

/* 首页筛选条里的标签是横排，不是竖排 */
.filter-bar .tag-filters {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

/* 案例分区 */
.case-section { margin-bottom: 34px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -.3px; }

.section-note { font-size: 12px; color: var(--muted); }

.section-more { font-size: 12.5px; color: var(--primary); text-decoration: none; }

.section-more:hover { text-decoration: underline; }

/* 卡片（覆盖旧样式，图片更大） */
.case-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }

.case-thumb { aspect-ratio: 4 / 3; }

.case-id {
  font-family: Consolas, monospace;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.case-body h3 { font-size: 13.5px; }

/* ---------------------------------------------------------------- 疑似盗图网格 */
.suspect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 10px;
}

.suspect-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.suspect-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: #eef2f7;
  transition: transform .18s ease;
}

.suspect-card:hover .suspect-img { transform: scale(1.03); }

.suspect-card figcaption {
  padding: 7px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suspect-source { font-size: 11px; color: var(--primary); font-weight: 600; }

.suspect-title {
  font-size: 11.5px;
  line-height: 1.45;
  color: #334155;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 大图查看 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 7, 18, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-inner { max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; gap: 10px; }

.lightbox img {
  max-width: 92vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 10px;
  background: #0f172a;
}

.lightbox-meta { color: #e2e8f0; font-size: 13px; display: flex; flex-direction: column; gap: 4px; }

.lightbox-title { font-weight: 600; }

.lightbox-source { color: #94a3b8; font-size: 12px; }

/* 审核中锁定框 */
.locked-box {
  padding: 26px 22px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 14px;
}

.locked-title { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: #475569; }

.locked-sub { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

/* ---------------------------------------------------------------- 送审结果面板 */
.submit-box {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
}

.submit-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
  background: #16a34a;
}

.submit-body h3 { margin: 0 0 6px; font-size: 16px; }

.submit-text { margin: 0 0 6px; font-size: 13px; color: #334155; line-height: 1.7; }

.submit-stats { margin: 0 0 10px; font-size: 12.5px; color: #64748b; }

.submit-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

.submit-tip { font-size: 12px; color: #64748b; }

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
}

.status-pending  { background: #fef3c7; color: #a16207; }
.status-approved { background: #dcfce7; color: #15803d; }
.status-rejected { background: #fee2e2; color: #b91c1c; }

/* 审核卡片 */
.review-head { display: flex; gap: 12px; margin-bottom: 10px; }

.review-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }

.field.compact { margin-bottom: 10px; }

.field.compact input[type="text"] { padding: 6px 9px; font-size: 12.5px; }

.review-banner {
  grid-column: 1 / -1;
  margin-bottom: 14px;
  padding: 10px 16px;
  font-size: 12.5px;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}

/* ---------------------------------------------------------------- 分页 */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 26px 0 30px;
}

.page-btn {
  min-width: 34px;
  padding: 6px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  color: #334155;
  text-decoration: none;
  text-align: center;
}

.page-btn:hover { border-color: #cbd5e1; background: #f8fafc; }

.page-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

.page-disabled { color: #cbd5e1; background: #f8fafc; }

.page-dots { padding: 6px 4px; color: #94a3b8; font-size: 12px; }

/* ---------------------------------------------------------------- 审核统计 */
.stat-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-box span { font-size: 11.5px; color: var(--muted); }

.stat-box strong { font-size: 22px; letter-spacing: -.4px; }

.stat-box em { font-style: normal; font-size: 11px; color: #94a3b8; }

.stat-warn { background: #fffbeb; border-color: #fde68a; }
.stat-warn strong { color: #b45309; }

/* 趋势图 */
.trend-wrap { margin-top: 6px; }

.trend-title { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.trend {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  padding: 8px 10px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.trend-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.trend-bars {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
}

.bar { width: 45%; border-radius: 3px 3px 0 0; min-height: 1px; }
.bar-ok { background: #86efac; }
.bar-no { background: #fca5a5; }

.trend-label { font-size: 9.5px; color: #94a3b8; white-space: nowrap; }

.trend-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 11px; color: var(--muted); }

.trend-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.dot-ok { background: #86efac; }
.dot-no { background: #fca5a5; }

/* 待审列表里的小图预览 */
.preview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.preview-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  background: #eef2f7;
  cursor: zoom-in;
  transition: transform .15s ease;
}

.preview-thumb:hover { transform: scale(1.03); }

.preview-empty {
  display: grid;
  place-items: center;
  font-size: 10.5px;
  color: #94a3b8;
  cursor: pointer;
  background: repeating-linear-gradient(45deg, #eef2f7, #eef2f7 6px, #e6ecf5 6px, #e6ecf5 12px);
}

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 980px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .suspect-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .page { padding: 26px 16px 48px; }
  .site-page { padding: 0 16px 48px; }
  .workbench { grid-template-columns: 1fr; }
  .brand-text h1 { font-size: 18px; }
  .nav-links { display: none; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .actionbar { flex-direction: column; align-items: stretch; }
  .actionbar .btn { width: 100%; }
  .web-list { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-layout { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 23px; }
}

/* =================================================================
   全站外壳：左侧固定导航 + 主内容区（v0.18）
   ================================================================= */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  padding: 18px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 60;
}

.main {
  flex: 1;
  min-width: 0;
  margin-left: 236px;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 2px 4px;
}

.side-brand .brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.side-brand .brand-text strong { font-size: 15px; letter-spacing: -.2px; }
.side-brand .brand-text em { font-style: normal; font-size: 11px; color: var(--muted); }

.side-upload {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .22);
}

.side-upload:hover { filter: brightness(1.05); }
.side-upload .plus { font-size: 16px; line-height: 1; }

.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }

.side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 13px;
  color: #334155;
  text-decoration: none;
}

.side-link:hover { background: #f5f7fb; }
.side-link .ico { width: 16px; text-align: center; color: #94a3b8; font-size: 13px; }

.side-link.is-active {
  background: #eef2ff;
  color: var(--primary);
  font-weight: 600;
}
.side-link.is-active .ico { color: var(--primary); }

.side-badge {
  margin-left: auto;
  min-width: 18px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10.5px;
  text-align: center;
}

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.side-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.side-user .avatar {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
}

.side-user-info { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.side-user-info strong { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user-info em { font-style: normal; font-size: 10.5px; color: var(--muted); }

.side-logout {
  margin-left: auto;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  padding: 4px;
}
.side-logout:hover { color: #ef4444; }

.side-auth { display: flex; gap: 8px; }
.side-auth .btn { flex: 1; }

/* 左下角齿轮 */
.gear-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-size: 11.5px;
  cursor: pointer;
}
.gear-btn svg { width: 15px; height: 15px; }
.gear-btn:hover { color: var(--primary); border-color: #c7d2fe; background: #f8faff; }

/* 齿轮弹窗 */
.gear-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  display: grid;
  place-items: center;
  z-index: 200;
  padding: 20px;
}

.gear-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 18px;
  padding: 24px 22px 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .25);
}

.gear-card h2 { font-size: 17px; margin-bottom: 6px; }
.gear-sub { font-size: 11.5px; color: var(--muted); line-height: 1.6; margin-bottom: 16px; }

.gear-close {
  position: absolute;
  top: 10px; right: 12px;
  border: none; background: none;
  font-size: 20px; line-height: 1;
  color: #94a3b8; cursor: pointer;
}

.gear-form { display: flex; flex-direction: column; gap: 12px; }

.gear-error {
  margin-bottom: 12px;
  padding: 8px 11px;
  border-radius: 9px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 12px;
}

.gear-note { margin-top: 14px; font-size: 10.5px; color: #94a3b8; line-height: 1.6; }

/* 页面标题行 */
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-head h1 { font-size: 24px; letter-spacing: -.5px; margin-bottom: 4px; }
.page-head-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.hero-cta { white-space: nowrap; }

/* 角色标签 */
.tag-owner { background: #fef3c7; color: #92400e; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.tag-admin { background: #e0e7ff; color: #3730a3; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.tag-reviewer { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.tag-user { background: #f1f5f9; color: #475569; padding: 2px 8px; border-radius: 999px; font-size: 11px; }

.row-owner { background: #fffdf5; }
.locked-note { font-size: 11px; color: #b45309; }

.create-user-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.create-user-form .field { margin: 0; }
.create-user-form select,
.create-user-form input { width: 100%; }

@media (max-width: 980px) {
  .create-user-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar {
    position: static;
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
  }
  .main { margin-left: 0; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .side-foot { flex-direction: row; align-items: center; }
  .gear-btn { margin-left: auto; }
  .page { padding: 18px 16px 48px; }
}

/* =================================================================
   公告栏（v0.19）
   ================================================================= */
.announce {
  position: relative;
  margin-bottom: 18px;
  padding: 14px 16px 12px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff, #eff6ff);
  box-shadow: 0 2px 10px rgba(37, 99, 235, .06);
  animation: ann-in .25s ease-out;
}

@keyframes ann-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.announce.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}

/* 三种类型换颜色 */
.announce[data-kind="update"] { border-color: #d1fae5; background: linear-gradient(180deg, #f7fffb, #ecfdf5); }
.announce[data-kind="event"]  { border-color: #fde68a; background: linear-gradient(180deg, #fffdf5, #fffbeb); }

.announce-head { display: flex; align-items: center; gap: 10px; }
.announce-head h3 { font-size: 14.5px; letter-spacing: -.2px; }

.announce-tag {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 10.5px;
  font-weight: 600;
}

.announce[data-kind="update"] .announce-tag { background: #d1fae5; color: #047857; }
.announce[data-kind="event"] .announce-tag { background: #fef3c7; color: #b45309; }

.announce-tag.small { font-size: 10px; padding: 1px 7px; }

.announce-x {
  margin-left: auto;
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: #93a3b8;
  cursor: pointer;
  padding: 0 2px;
}
.announce-x:hover { color: #ef4444; }

.announce-main { display: flex; gap: 14px; align-items: flex-start; margin-top: 8px; }

.announce-img {
  width: 132px;
  height: 92px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid rgba(148, 163, 184, .35);
}

.announce-text {
  font-size: 12.5px;
  line-height: 1.75;
  color: #334155;
  white-space: pre-line;
  max-height: 168px;
  overflow-y: auto;
}

.announce-foot { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.announce-tip { font-size: 10.5px; color: #94a3b8; }

/* 后台公告管理 */
.ann-form { display: flex; flex-direction: column; gap: 12px; }
.ann-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.ann-row .field { margin: 0; }
.ann-actions { display: flex; gap: 8px; }

.ann-current { display: flex; align-items: center; gap: 10px; }
.ann-current img { width: 76px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.ann-remove { font-size: 11.5px; color: #64748b; display: flex; align-items: center; gap: 5px; }

.ann-list { display: flex; flex-direction: column; gap: 12px; }

.ann-item {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfdff;
}

.ann-item.is-off { opacity: .62; background: #f8fafc; }

.ann-item-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.ann-item-head strong { font-size: 13px; }
.ann-time { font-size: 10.5px; color: #94a3b8; margin-left: auto; }

.ann-item-body {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.7;
  color: #475569;
  white-space: pre-line;
}

.ann-item-img { margin-top: 8px; width: 160px; height: 110px; object-fit: cover; border-radius: 9px; }
.ann-item .row-actions { margin-top: 9px; }

.stat-card.stat-pending strong { color: #b45309; }

@media (max-width: 760px) {
  .announce-main { flex-direction: column; }
  .announce-img { width: 100%; height: 160px; }
  .ann-row { grid-template-columns: 1fr; }
}



/* =================================================================
   公告弹窗（v0.20，参考 clphotos 的居中公告框）
   ================================================================= */
body.ann-locked { overflow: hidden; }

.ann-mask {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  animation: ann-fade .18s ease-out;
}

.ann-mask.is-closing { opacity: 0; transition: opacity .2s ease; }

@keyframes ann-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ann-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

.ann-dialog {
  width: 100%;
  max-width: 520px;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .35);
  animation: ann-pop .22s ease-out;
}

.ann-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ann-icon { font-size: 15px; line-height: 1; }
.ann-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; }

.ann-close {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ann-close:hover { background: #e2e8f0; color: #0f172a; }

.ann-body { flex: 1; min-height: 0; overflow-y: auto; padding-right: 4px; }
.ann-body::-webkit-scrollbar { width: 6px; }
.ann-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.ann-pic { width: 100%; border-radius: 12px; margin-bottom: 12px; display: block; }

.ann-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 9px;
}

.ann-text {
  font-size: 12.8px;
  line-height: 1.85;
  color: #334155;
  white-space: pre-line;
}

.ann-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 10.5px;
  color: #94a3b8;
}

.ann-ok {
  margin-top: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .25);
}
.ann-ok:hover { filter: brightness(1.06); }

@media (max-width: 560px) {
  .ann-mask { padding: 14px; }
  .ann-dialog { padding: 18px 16px 14px; border-radius: 16px; }
  .ann-body { max-height: 52vh; }
}

/* =================================================================
   图库模块（v0.22）
   ================================================================= */
.lib-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.lib-search { margin-bottom: 18px; }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 16px;
}

.lib-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease;
}
.lib-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 23, 42, .1); }

.lib-thumb { position: relative; aspect-ratio: 16 / 10; background: #eef2f7; }
.lib-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lib-id {
  position: absolute;
  top: 9px; left: 9px;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 10.5px;
  letter-spacing: .02em;
}

.lib-hot {
  position: absolute;
  top: 9px; right: 9px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f97316;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}
.lib-ok { background: #16a34a; }
.lib-wait { background: #f59e0b; }
.lib-no { background: #ef4444; }

.lib-body { padding: 11px 13px 13px; display: flex; flex-direction: column; gap: 3px; }
.lib-body strong { font-size: 16px; letter-spacing: -.3px; }
.lib-body span { font-size: 11.5px; color: var(--muted); }

/* ---- 上传向导 ---- */
.wiz-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
}

.wiz-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #94a3b8;
}
.wiz-step i {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
}
.wiz-step.is-on { color: var(--primary); font-weight: 600; }
.wiz-step.is-on i { background: var(--primary); color: #fff; }
.wiz-arrow { color: #cbd5e1; }

.wiz-title { text-align: center; font-size: 22px; letter-spacing: -.4px; }
.wiz-sub { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 20px; }

.wiz-error {
  margin-bottom: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 12.5px;
}

.wiz-form { display: flex; flex-direction: column; gap: 16px; max-width: 980px; margin: 0 auto; }
.wiz-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.req { font-style: normal; color: #ef4444; font-size: 11px; margin-left: 3px; }
.card-head h2 em.req { font-size: 10.5px; }

.chip-check { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: #475569;
  cursor: pointer;
  background: #fff;
}
.chip input { display: none; }
.chip:has(input:checked) { border-color: var(--primary); background: #eef2ff; color: var(--primary); font-weight: 600; }
.chip-hot:has(input:checked) { border-color: #f97316; background: #fff7ed; color: #c2410c; }

.wiz-files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.file-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  background: #fcfdff;
  cursor: pointer;
}
.file-box:hover { border-color: var(--primary); background: #f8faff; }
.file-box input[type="file"] { margin-top: 6px; font-size: 11px; }
.file-title { font-size: 12.5px; font-weight: 600; }
.file-hint { font-size: 10.5px; color: var(--muted); }
.file-name { font-size: 10.5px; color: #94a3b8; word-break: break-all; }

.wiz-note { margin-top: 12px; font-size: 11.5px; color: var(--muted); line-height: 1.7; }

/* ---- 水印设置 ---- */
.wm-stage {
  position: relative;
  margin: 4px 0 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  cursor: crosshair;
  border: 1px solid var(--line);
}
.wm-stage img { width: 100%; display: block; }

.wm-cross {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  color: #f43f5e;
  font-size: 20px;
  pointer-events: none;
  text-shadow: 0 0 6px rgba(0, 0, 0, .6);
}

.wm-controls { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.wm-ctl { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #475569; }
.wm-ctl b { color: var(--primary); font-weight: 600; }
.wm-ctl input[type="range"] { width: 100%; accent-color: var(--primary); }
.wm-colors { display: flex; gap: 8px; }

.exif-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  background: #fbfdff;
}
.exif-box summary { font-size: 12px; color: #475569; cursor: pointer; }
.exif-box .info-grid { margin-top: 12px; }

.wiz-actions { display: flex; gap: 10px; margin-top: 16px; }
.wiz-actions .btn { flex: 1; }

/* ---- 详情 / 审核 ---- */
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.proof-item { margin: 0; }
.proof-item img { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
.proof-item figcaption { font-size: 10.5px; color: var(--muted); margin-top: 4px; text-align: center; }

.case-note {
  margin-top: 12px;
  padding: 9px 12px;
  background: #f8fafc;
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  font-size: 12px;
  color: #475569;
}

.rev-list { display: flex; flex-direction: column; gap: 16px; }

.rev-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcfdff;
}

.rev-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rev-reg { font-size: 17px; letter-spacing: -.3px; }
.rev-sub { margin-left: 10px; font-size: 11.5px; color: var(--muted); }
.rev-owner { font-size: 10.5px; color: #94a3b8; }

.rev-images { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 11px 0; }
.rev-img { margin: 0; }
.rev-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; background: #eef2f7; display: block; }
.rev-img figcaption { font-size: 10px; color: var(--muted); text-align: center; margin-top: 3px; }

.exif-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 10px 0;
  font-size: 11px;
  color: #475569;
}
.exif-inline div { display: flex; gap: 5px; }
.exif-inline dt { color: #94a3b8; }
.exif-inline dd { margin: 0; }

.rev-warn { font-size: 11.5px; color: #b45309; margin: 8px 0; }

.rev-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.rev-form input[type="text"] { flex: 1; min-width: 200px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }

@media (max-width: 900px) {
  .wiz-row, .wiz-files, .wm-controls { grid-template-columns: 1fr; }
  .rev-images { grid-template-columns: repeat(2, 1fr); }
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* -----------------------------------------------------------------
   表单控件统一外观（v0.22：不同页面输入框样式必须一致）
   ----------------------------------------------------------------- */
.field input[type="text"],
.field input[type="password"],
.field input[type="date"],
.field input[type="number"],
.field input[type="search"],
.field select,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.field select { appearance: auto; }

/* 标签横排（详情页等处） */
.tag-filters.tags-row {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

/* ---- 上传队列选择（v0.23） ---- */
.queue-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.queue-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 16px 12px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.queue-card input { position: absolute; opacity: 0; pointer-events: none; }
.queue-card strong { font-size: 26px; letter-spacing: -.5px; }
.queue-card em { font-style: normal; font-size: 13px; font-weight: 600; }
.queue-card span { font-size: 10.5px; color: var(--muted); line-height: 1.5; }

.queue-card:has(input:checked) {
  border-color: var(--primary);
  background: #f5f7ff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.queue-card.is-empty { opacity: .5; cursor: not-allowed; }

/* 卡片里的注册号（可点进同机照片） */
.lib-reg {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: #0f172a;
  text-decoration: none;
}
.lib-reg:hover { color: var(--primary); }

.lib-thumb { display: block; }

/* 用户管理：操作区改成"标签 + 控件"两列，避免挤成一团 */
.act-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 1fr));
  gap: 6px 14px;
  align-items: center;
}

.act-item { display: flex; align-items: center; gap: 6px; }
.act-item.act-wide { gap: 8px; }

.act-label {
  font-size: 10.5px;
  color: #94a3b8;
  min-width: 52px;
  text-align: right;
  flex-shrink: 0;
}

.act-item .inline-form { display: flex; gap: 5px; align-items: center; }
.act-item select { padding: 3px 6px; font-size: 11.5px; border-radius: 7px; border: 1px solid var(--line); }

/* 用户管理表格：操作区竖排，整体压回一屏 */
.act-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.act-item { display: flex; align-items: center; gap: 6px; width: 100%; }

.act-label {
  font-size: 10.5px;
  color: #94a3b8;
  min-width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.act-item .inline-form { display: flex; gap: 5px; align-items: center; }
.act-item select { padding: 3px 6px; font-size: 11.5px; border-radius: 7px; border: 1px solid var(--line); }
.act-item input[type="number"],
.act-item input[type="password"] { padding: 3px 6px; font-size: 11.5px; border-radius: 7px; border: 1px solid var(--line); }

.admin-table td { vertical-align: top; }
.admin-table th, .admin-table td { padding: 9px 10px; }

/* =================================================================
   首页改版（v0.24）：两个板块入口 + 带下拉的搜索
   ================================================================= */
.home-hero { text-align: center; margin: 8px 0 26px; }
.home-hero h1 { font-size: 32px; letter-spacing: -1px; margin-bottom: 8px; }
.home-hero .hero-sub { max-width: 620px; margin: 0 auto; }

.home-doors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.door {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 24px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease;
}
.door:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(15, 23, 42, .1); }

.door-icon { font-size: 28px; line-height: 1; }
.door h2 { font-size: 20px; letter-spacing: -.4px; }
.door p { font-size: 12.5px; line-height: 1.85; color: var(--muted); }

.door-btn { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--primary); }

.door-upload { background: linear-gradient(160deg, #f8faff, #eef2ff); border-color: #dbe3ff; }
.door-check { background: linear-gradient(160deg, #fffdf6, #fff7ed); border-color: #fde3c8; }
.door-check .door-btn { color: #c2410c; }

/* 带下拉的搜索条 */
.home-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  flex-wrap: wrap;
}

.hs-select select {
  padding: 9px 11px;
  font-size: 13px;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 104px;
}

.home-search input[type="search"] {
  flex: 1;
  min-width: 180px;
  padding: 10px 13px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.home-search input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

@media (max-width: 820px) {
  .home-doors { grid-template-columns: 1fr; }
  .home-hero h1 { font-size: 25px; }
}

/* =================================================================
   查盗图子模块 + 图库筛选（v0.25）
   ================================================================= */
.ws-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0;
}

.ws-tabs a {
  padding: 9px 14px;
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.ws-tabs a:hover { color: var(--primary); }
.ws-tabs a.is-active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }

.ws-doors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.ws-door {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform .16s ease, box-shadow .16s ease;
}
.ws-door:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15, 23, 42, .1); }
.ws-icon { font-size: 24px; }
.ws-door h2 { font-size: 17px; letter-spacing: -.3px; }
.ws-door p { font-size: 12px; line-height: 1.8; color: var(--muted); }
.ws-btn { margin-top: auto; padding-top: 8px; font-size: 12.5px; font-weight: 600; color: var(--primary); }

/* 图库高级筛选 */
.lib-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.lf-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #64748b; }
.lf-item select {
  padding: 7px 9px;
  font-size: 12.5px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  min-width: 96px;
}

/* 侧边栏 / 案例墙：两个大入口（上传到图库 + 检查盗图） */
.side-actions { display: flex; flex-direction: column; gap: 8px; }

.side-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dbe3ff;
  background: #f5f7ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.side-check:hover { background: #eef2ff; border-color: var(--primary); }

.hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 首页：在线审核员 */
.staff-line { display: flex; flex-wrap: wrap; gap: 9px; }

.staff-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.staff-chip.is-off { opacity: .5; }

.staff-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  flex-shrink: 0;
}
.staff-dot.is-on {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .16);
}

.staff-avatar { font-size: 13px; line-height: 1; }
.staff-name { font-weight: 600; color: #0f172a; }
.staff-role { color: var(--muted); font-size: 11px; }
.staff-meta { color: #94a3b8; font-size: 10.5px; }

.staff-section { margin-top: 20px; }

/* =================================================================
   导航收起为顶部横条（v0.30）
   ================================================================= */
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.nav-toggle {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  width: 32px; height: 32px;
  font-size: 15px;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-group { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.nav-group-title {
  font-size: 10px;
  letter-spacing: .08em;
  color: #94a3b8;
  padding: 6px 10px 2px;
  text-transform: uppercase;
}

/* 顶部模式 */
body.nav-top .shell { flex-direction: column; }
body.nav-top .sidebar {
  position: sticky;
  top: 0;
  inset: auto;
  width: auto;
  height: auto;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-right: none;
  border-bottom: 1px solid var(--line);
  z-index: 80;
  overflow-x: auto;
}
body.nav-top .main { margin-left: 0; }
body.nav-top .side-actions { order: 2; }
body.nav-top .side-upload { padding: 8px 14px; font-size: 12.5px; }
body.nav-top .side-nav {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  margin: 0;
  order: 3;
}
body.nav-top .nav-group { flex-direction: row; align-items: center; margin: 0; }
body.nav-top .nav-group-title { display: none; }
body.nav-top .side-foot {
  margin: 0 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  order: 4;
}
body.nav-top .side-user { padding: 4px 8px; }
body.nav-top .gear-label { display: none; }
body.nav-top .nav-toggle { display: grid; place-items: center; }
body.nav-top .side-brand .brand-text em { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
}

/* 个人中心 */
.profile-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 22px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.profile-avatar {
  width: 62px; height: 62px;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
}

.profile-info h1 { font-size: 22px; letter-spacing: -.4px; margin-bottom: 4px; }

.profile-nums { display: flex; gap: 22px; margin-left: auto; }
.profile-nums div { display: flex; flex-direction: column; align-items: center; }
.profile-nums strong { font-size: 20px; letter-spacing: -.5px; }
.profile-nums span { font-size: 10.5px; color: var(--muted); }

/* 申诉 */
.appeal-tag { display: block; margin-top: 6px; font-size: 10.5px; }
.appeal-tag.is-wait { color: #b45309; }
.appeal-tag.is-ok { color: #15803d; }
.appeal-tag.is-no { color: #b91c1c; }

.appeal-box { margin-top: 8px; font-size: 11.5px; }
.appeal-box summary { cursor: pointer; color: var(--primary); }
.appeal-form { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.appeal-form textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  resize: vertical;
}
.appeal-hint { margin-top: 6px; font-size: 10.5px; color: #94a3b8; }

.appeal-quote {
  margin-top: 10px;
  padding: 9px 12px;
  background: #fffbeb;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  font-size: 12px;
  color: #92400e;
  white-space: pre-line;
}

/* =================================================================
   图库审核：统计 + 网格 + 批量（v0.31）
   ================================================================= */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 16px;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: sticky;
  top: 8px;
  z-index: 40;
}

.bulk-all { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #334155; }
.bulk-count { font-size: 11.5px; color: var(--muted); }
.bulk-note {
  flex: 1;
  min-width: 160px;
  padding: 7px 10px;
  font-size: 12px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.rev-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.rev-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.rev-check {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 3;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  cursor: pointer;
}
.rev-check input { width: 14px; height: 14px; cursor: pointer; }

.rev-photo { display: block; aspect-ratio: 16 / 10; background: #eef2f7; }
.rev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.rev-info { padding: 9px 12px 4px; display: flex; flex-direction: column; gap: 2px; }
.rev-info strong { font-size: 14px; letter-spacing: -.2px; }
.rev-info span { font-size: 11px; color: var(--muted); }
.rev-info em { font-style: normal; font-size: 10px; color: #94a3b8; }

.rev-actions { display: flex; gap: 5px; padding: 8px 12px 11px; flex-wrap: wrap; }

/* HOT 原因 */
.hot-box { grid-column: 1 / -1; }
.hot-reasons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; align-items: center; }
.hot-reasons em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-right: 4px; }

.hot-auto-tip {
  margin: 8px 0 0;
  padding: 8px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  font-size: 11.5px;
  color: #c2410c;
}

.bulk-bar .btn { flex-shrink: 0; }
.bulk-note { min-width: 120px; max-width: 320px; }

/* 兜底：即使 CSS 变量丢失，按钮也不会变成白底白字 */
.side-upload { background: var(--primary, #4f46e5); }
.side-check { color: var(--primary, #4f46e5); border-color: #dbe3ff; }

body.nav-top .side-actions { display: flex; }
body.nav-top .side-upload { background: var(--primary, #4f46e5); color: #fff; white-space: nowrap; }

/* 水印拖拽手柄（v0.32） */
.wm-stage { position: relative; touch-action: none; }

.wm-handle {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border: 1.5px dashed rgba(255, 255, 255, .85);
  border-radius: 999px;
  background: rgba(15, 23, 42, .38);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.wm-handle:hover { background: rgba(15, 23, 42, .55); border-color: #fff; }
.wm-handle.is-dragging { cursor: grabbing; background: rgba(79, 70, 229, .75); border-style: solid; }

.wm-handle-dot { font-size: 13px; opacity: .95; }
.wm-handle-text { white-space: nowrap; letter-spacing: .02em; }

@media (max-width: 620px) {
  .wm-handle-text { display: none; }
}

/* =================================================================
   图库审核工作台：左大图 / 右信息 + 拒绝原因（v0.33）
   ================================================================= */
.queue-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 12px;
  margin-bottom: 6px;
}

.queue-item {
  flex-shrink: 0;
  width: 104px;
  text-decoration: none;
  color: inherit;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.queue-item img { width: 100%; height: 68px; object-fit: cover; display: block; }
.queue-item span { display: block; font-size: 10px; color: var(--muted); text-align: center; padding: 4px 2px; }
.queue-item.is-active { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }

.rev-work {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
  gap: 20px;
  align-items: start;
}

.rev-big {
  position: relative;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
}
.rev-big img { width: 100%; display: block; }

.rev-swap {
  position: absolute;
  top: 10px; right: 10px;
  padding: 6px 11px;
  border: none;
  border-radius: 8px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
}
.rev-swap:hover { background: rgba(15, 23, 42, .9); }

.rev-cap { margin-top: 8px; font-size: 11px; color: var(--muted); }

.rev-siblings { margin-top: 16px; }
.rev-siblings h3 { font-size: 12.5px; color: #334155; margin-bottom: 8px; }
.rev-sib-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.rev-sib {
  flex-shrink: 0;
  width: 96px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}
.rev-sib img { width: 100%; height: 64px; object-fit: cover; display: block; }
.rev-sib span { display: block; font-size: 9.5px; text-align: center; padding: 3px; color: var(--muted); }

.rev-meta {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.rm-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #eef2f7;
  font-size: 12.5px;
}
.rm-row:last-child { border-bottom: none; }
.rm-row span { color: var(--muted); }
.rm-row b { font-weight: 600; text-align: right; }

.rm-note {
  margin-top: 10px;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 11.5px;
  color: #475569;
  line-height: 1.7;
}

.rev-form2 { margin-top: 16px; }
.rev-h3 { font-size: 13px; margin-bottom: 10px; color: #0f172a; }

.reason-wall { display: flex; flex-wrap: wrap; gap: 6px; }

.reason-chip {
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 11.5px;
  color: #475569;
  cursor: pointer;
  font-family: inherit;
}
.reason-chip:hover { border-color: #fca5a5; color: #b91c1c; }
.reason-chip.is-on { background: #ef4444; border-color: #ef4444; color: #fff; }

.rev-form2 textarea {
  width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  resize: vertical;
}

.rev-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

.rev-btn {
  padding: 13px 10px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
}
.rev-ok { background: #22c55e; }
.rev-ok:hover { background: #16a34a; }
.rev-no { background: #ef4444; }
.rev-no:hover { background: #dc2626; }

.rev-extra { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .rev-work { grid-template-columns: 1fr; }
}

/* 拒绝原因胶囊：边框更明显一点 */
.reason-chip {
  border-color: #dbe2ea;
  background: #fbfdff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
}
.reason-chip:hover { background: #fff1f2; }

/* =================================================================
   审核大图工具栏 / 直方图 / 网格 / CFD / 放大镜（v0.34）
   ================================================================= */
.img-tools {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #1e293b;
}

.img-tools .tool {
  padding: 9px 16px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, .12);
  background: #1e293b;
  color: #cbd5e1;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}
.img-tools .tool:hover { background: #334155; color: #fff; }
.img-tools .tool.on { background: #4f46e5; color: #fff; font-weight: 600; }

.img-tools .tool-hint {
  margin-left: auto;
  padding: 0 12px;
  font-size: 10.5px;
  color: #94a3b8;
  white-space: nowrap;
}

.histo-box {
  margin-bottom: 10px;
  padding: 10px 12px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.histo-head { display: flex; justify-content: space-between; font-size: 11.5px; color: #475569; margin-bottom: 6px; }
.histo-stats { color: var(--muted); }
#histoCanvas { width: 100%; height: 110px; display: block; border-radius: 6px; }
.histo-tip { margin-top: 6px; font-size: 10.5px; color: #94a3b8; }

.rev-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  line-height: 0;
  cursor: crosshair;
}

.rev-stage img { width: 100%; display: block; }

.cfd-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.grid-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}
.grid-layer span { border-right: 1px solid rgba(255, 255, 255, .45); border-bottom: 1px solid rgba(255, 255, 255, .45); }
.grid-layer span:nth-child(3n) { border-right: none; }
.grid-layer span:nth-child(n+7) { border-bottom: none; }

.loupe {
  position: absolute;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 20;
}

/* 铺满宽度：把右侧面板挪到下方，图片占满 */
.rev-work.is-wide { grid-template-columns: 1fr; }
.rev-work.is-wide .rev-stage img { max-height: 78vh; object-fit: contain; background: #0f172a; }

/* 免责声明（v0.35） */
.ann-disclaimer {
  margin-top: 14px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
  max-height: 168px;
  overflow-y: auto;
}
.ann-disc-head { font-size: 12px; font-weight: 700; color: #92400e; margin-bottom: 6px; }
.ann-disc-body { font-size: 11px; line-height: 1.75; color: #64748b; white-space: pre-line; }

.side-legal {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 10.5px;
  color: #94a3b8;
  text-decoration: none;
}
.side-legal:hover { color: var(--primary, #4f46e5); }

.legal-card { max-width: 860px; margin: 0 auto; }
.legal-body { font-size: 13px; line-height: 2; color: #334155; margin-bottom: 12px; white-space: pre-line; }
.legal-h2 { font-size: 15px; margin: 18px 0 10px; }
.legal-hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.legal-muted { color: #64748b; font-size: 12px; }

/* 免责声明：英文版与页脚链接（v0.36） */
.legal-en-note { display: block; font-size: 11px; color: #94a3b8; margin-top: 4px; }
.legal-en-title { font-family: "Segoe UI", Arial, sans-serif; }
.legal-en-sub { font-size: 11.5px; color: #94a3b8; margin-bottom: 12px; }
.legal-en-body { font-family: "Segoe UI", Arial, sans-serif; letter-spacing: .01em; }

.footer-link { color: var(--muted); text-decoration: none; border-bottom: 1px dashed #cbd5e1; }
.footer-link:hover { color: var(--primary, #4f46e5); border-color: var(--primary, #4f46e5); }

.ann-disc-link { display: inline-block; margin-top: 7px; font-size: 11px; color: #b45309; text-decoration: none; }
.ann-disc-link:hover { text-decoration: underline; }

/* 语言切换（v0.37） */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.lang-btn {
  padding: 7px 14px;
  border: none;
  background: #fff;
  color: #64748b;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line); }
.lang-btn:hover { background: #f5f7fb; }
.lang-btn.is-on { background: var(--primary, #4f46e5); color: #fff; font-weight: 600; }

[data-lang-block][hidden] { display: none !important; }

/* 联系方式（v0.38） */
.side-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.sc-label { font-size: 10.5px; color: #15803d; }
.sc-value { font-size: 11.5px; font-weight: 700; color: #166534; letter-spacing: .02em; user-select: all; }

.ann-contact {
  margin-top: 8px;
  font-size: 11px;
  color: #475569;
}
.ann-contact strong { color: #15803d; letter-spacing: .02em; user-select: all; }
.ann-contact span { color: #94a3b8; margin-left: 6px; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto 18px;
  padding: 16px 18px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
}
.cc-icon { font-size: 22px; line-height: 1; }
.cc-body { display: flex; flex-direction: column; gap: 4px; }
.cc-body strong { font-size: 14px; color: #166534; letter-spacing: .02em; }
.cc-body span { font-size: 12px; color: #475569; }
.cc-body em { font-style: normal; font-size: 11px; color: #94a3b8; }

/* ============================ 法律页（用户协议 / 隐私政策） v0.40 */
.legal-meta {
  font-size: 11.5px;
  color: #94a3b8;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 12px 14px;
  margin-bottom: 22px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.legal-toc a {
  font-size: 12px;
  color: #475569;
  text-decoration: none;
  border-bottom: 1px dashed transparent;
}
.legal-toc a:hover { color: var(--primary, #4f46e5); border-color: var(--primary, #4f46e5); }

.legal-list {
  margin: 0 0 14px 0;
  padding-left: 20px;
  font-size: 13px;
  line-height: 2;
  color: #334155;
}
.legal-list li { margin-bottom: 2px; }

.legal-card code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 11.5px;
  color: #334155;
}

.side-legals {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.side-legals .side-legal { margin-top: 0; font-size: 10px; }

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 4px 0 10px;
  font-size: 12px;
  color: #475569;
  line-height: 1.6;
  text-align: left;
}
.agree-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary, #4f46e5);
}
.agree-row a { color: var(--primary, #4f46e5); text-decoration: none; }
.agree-row a:hover { text-decoration: underline; }

/* 协议页：普通段落排版（避免 pre-line 把换行变成空行） */
.legal-tight .legal-body { white-space: normal; margin-bottom: 10px; line-height: 1.95; }

/* 传图规范表格 */
.legal-table { margin: 6px 0 16px; overflow-x: auto; }
.legal-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.legal-table th {
  text-align: left;
  padding: 9px 12px;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.legal-table td {
  padding: 9px 12px;
  border-bottom: 1px solid #eef2f7;
  color: #475569;
  line-height: 1.7;
}
.legal-table tr:last-child td { border-bottom: none; }

/* ============================ 举报 / 封禁 / 分页（v0.42） */
.pill-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}
.pill-danger:hover { background: #fee2e2; }

.tag-ban {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 600;
}
.ban-until, .ban-count {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  margin-top: 2px;
}
.ban-form { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.ban-form select {
  padding: 4px 6px;
  font-size: 11.5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: inherit;
}
.ban-form input[type="text"] {
  padding: 4px 8px;
  font-size: 11.5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-family: inherit;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}
.pager-btn {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 12.5px;
  color: #475569;
  text-decoration: none;
  background: #fff;
}
.pager-btn:hover { border-color: var(--primary, #4f46e5); color: var(--primary, #4f46e5); }
.pager-btn.is-off { color: #cbd5e1; pointer-events: none; }
.pager-now { font-size: 12px; color: var(--muted); }

.report-list { display: flex; flex-direction: column; gap: 14px; }
.report-card { padding: 18px 20px; }
.report-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.report-reason {
  padding: 3px 10px;
  border-radius: 999px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 11.5px;
  font-weight: 600;
}
.report-time { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.report-body { display: flex; gap: 16px; align-items: flex-start; }
.report-thumb { flex-shrink: 0; width: 160px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.report-thumb img { width: 100%; height: 105px; object-fit: cover; display: block; }
.report-meta { flex: 1; min-width: 0; }
.report-meta p { margin: 0 0 6px; font-size: 12.5px; color: #334155; }
.report-detail {
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px 10px;
  color: #475569 !important;
  line-height: 1.7;
  white-space: pre-line;
}
.report-who { font-size: 11px !important; color: #94a3b8 !important; }
.report-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.report-handled { margin: 10px 0 0; font-size: 11.5px; color: #94a3b8; }

.banned-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}
.banned-card { max-width: 520px; text-align: center; padding: 36px 28px; }
.banned-icon { font-size: 52px; line-height: 1; margin-bottom: 10px; }
.banned-card h1 { font-size: 24px; margin: 0 0 8px; }
.banned-until { font-size: 15px; color: #b91c1c; font-weight: 600; margin: 0 0 10px; }
.banned-reason {
  font-size: 12.5px;
  color: #475569;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
}
.banned-note { font-size: 12.5px; color: var(--muted); line-height: 1.9; margin: 0 0 18px; }
.banned-actions { display: flex; gap: 10px; justify-content: center; }

/* 举报消耗积分的提示（v0.43） */
.report-cost {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.8;
  color: #92400e;
}
.report-cost strong { color: #78350f; }
.report-nocredit {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  font-size: 12px;
  color: #b91c1c;
  line-height: 1.8;
}
.report-credit {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: #94a3b8;
}
.report-credit.is-refunded { color: #15803d; }

.reason-wall + .field { margin-top: 14px; }
.modal-box .reason-wall { margin-bottom: 4px; }

.report-wechat {
  margin: 0 0 14px;
  padding: 10px 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.85;
  color: #1e40af;
}
.report-wechat strong { color: #1e3a8a; user-select: all; letter-spacing: .02em; }

/* 举报处理：下架 / 驳回 两个动作（v0.44） */
.report-form { display: inline-block; margin: 0; }
.report-actions { align-items: center; }
.report-actions .btn { padding: 9px 16px; font-size: 13px; border-radius: 10px; }
.btn-danger-strong {
  color: #fff;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  border-color: #b91c1c;
  box-shadow: 0 10px 20px -12px rgba(220, 38, 38, .9);
}
.btn-danger-strong:hover:not(:disabled) { background: linear-gradient(135deg, #b91c1c, #991b1b); }

/* 恢复上架（v0.45） */
.btn-ok-strong {
  color: #fff;
  background: linear-gradient(135deg, #16a34a, #15803d);
  border-color: #15803d;
  box-shadow: 0 10px 20px -12px rgba(22, 163, 74, .9);
}
.btn-ok-strong:hover:not(:disabled) { background: linear-gradient(135deg, #15803d, #166534); }
.report-hint { font-size: 11px; color: #94a3b8; }

/* 存证报告入口（v0.46） */
.pill-cert { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.pill-cert:hover { background: #e0e7ff; }
.lib-cert { display: block; margin-top: 4px; }
.lib-cert-link {
  display: inline-block;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #eef2ff;
  color: #4338ca;
  text-decoration: none;
}
.lib-cert-link:hover { background: #e0e7ff; }

/* 时间戳入口（v0.47） */
.pill-tsa { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.pill-tsa:hover { background: #d1fae5; }

/* ============================ 平台特点页（v0.48） */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.feat-card {
  position: relative;
  padding: 22px 22px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.feat-card:hover {
  transform: translateY(-2px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 36px -24px rgba(79, 70, 229, .45);
}

.feat-ico {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  border-radius: 13px;
  background: #eef2ff;
  color: #4338ca;
  margin-bottom: 14px;
}

.feat-card h2 {
  font-size: 16px;
  margin: 0 0 8px;
  color: #0f172a;
}

.feat-card p {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.95;
  color: #475569;
}
.feat-card p strong { color: #1e293b; }

.feat-note {
  display: block;
  padding-top: 10px;
  border-top: 1px dashed #eef2f7;
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.7;
}

.feat-honest { padding: 22px 24px; }
.feat-honest h2 { font-size: 16px; margin: 0 0 10px; }
.feat-honest-foot {
  margin: 6px 0 0;
  font-size: 12px;
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .feat-grid { grid-template-columns: 1fr; }
}

/* 审核页拍摄参数（v0.49） */
.rm-exif {
  margin-top: 10px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px dashed #e2e8f0;
}
.rm-exif-title { display: block; font-size: 11px; color: #94a3b8; margin-bottom: 6px; }
.rm-exif-row { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 4px; font-size: 10.5px; }
.rm-exif-row em { font-style: normal; color: #94a3b8; }
.rm-exif-row b { font-weight: 600; color: #334155; }

/* 上传页 EXIF 提示（v0.50） */
.exif-tip {
  margin: 0 0 14px;
  padding: 11px 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.9;
  color: #92400e;
}
.exif-tip strong { color: #78350f; }

.exif-note {
  margin: 6px 0 0;
  padding: 9px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 9px;
  font-size: 11.5px;
  line-height: 1.8;
  color: #b91c1c;
}

/* 邀请码（v0.51） */
.invite-card {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  border-color: #c7d2fe;
}
.invite-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.invite-label { font-size: 11.5px; color: #6366f1; }
.invite-code {
  font-family: Consolas, monospace;
  font-size: 20px;
  letter-spacing: 2px;
  color: #312e81;
  user-select: all;
}
.invite-right { text-align: right; }
.invite-right > span { font-size: 12px; color: #475569; }
.invite-rule { margin: 4px 0 0; font-size: 11px; color: #64748b; line-height: 1.7; }
.invite-hint { margin: -4px 0 10px; font-size: 11px; color: #64748b; line-height: 1.7; }

/* 侧边栏备案号（v0.52） */
.side-beian {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10.5px;
  line-height: 1.6;
}
.side-beian a { color: #94a3b8; text-decoration: none; }
.side-beian a:hover { color: #c7d2fe; text-decoration: underline; }

/* 更新日志（v0.54） */
.cl-list { list-style: none; margin: 18px 0 0; padding: 0; }
.cl-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px dashed #e2e8f0;
}
.cl-item:first-child { border-top: none; }
.cl-side { display: flex; flex-direction: column; gap: 6px; }
.cl-date { font-size: 12px; color: #64748b; font-variant-numeric: tabular-nums; }
.cl-ver {
  align-self: flex-start;
  font-size: 10.5px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-family: Consolas, monospace;
}
.cl-title { margin: 0 0 10px; font-size: 16px; color: #0f172a; }
.cl-items { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.cl-items li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.8; color: #475569; }
.cl-tag {
  flex: 0 0 auto;
  margin-top: 3px;
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: 5px;
  font-weight: 600;
}
.cl-tag-new { background: #dcfce7; color: #15803d; }
.cl-tag-fix { background: #fee2e2; color: #b91c1c; }
.cl-tag-opt { background: #e0e7ff; color: #4338ca; }
.cl-text { flex: 1; }
.cl-foot { margin-top: 22px; font-size: 12px; color: #94a3b8; text-align: center; }
@media (max-width: 720px) {
  .cl-item { grid-template-columns: 1fr; gap: 8px; }
  .cl-side { flex-direction: row; align-items: center; gap: 10px; }
}

/* ============================================================
   手机 / 平板（≤900px）侧边栏改成顶部导航网格（v0.56）
   之前只改了 direction，导致窄屏上所有块挤成一列
   ============================================================ */
@media (max-width: 900px) {
  .sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    align-items: center;
    padding: 10px 14px 12px;
    position: static;
    width: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .side-top { grid-column: 1; min-width: 0; }
  .side-actions { grid-column: 2; flex-direction: row; }
  .side-upload { padding: 8px 14px; font-size: 12.5px; white-space: nowrap; }

  /* 导航横向换行 */
  .side-nav {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
  }
  .nav-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0;
  }
  .nav-group-title { display: none; }
  .side-link { padding: 7px 10px; font-size: 12.5px; gap: 6px; }

  /* 底部：账号 / 齿轮 / 微信 / 法务 / 备案 */
  .side-foot {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 0;
    padding-top: 8px;
    border-top: 1px dashed var(--line);
  }
  .side-user { padding: 5px 8px; }
  .side-user-info { display: none; }
  .gear-btn { padding: 6px 8px; }
  .gear-label { display: none; }
  .side-contact { margin-top: 0; padding: 5px 9px; }
  .sc-label { display: none; }
  .side-legals { flex: 1 1 auto; justify-content: flex-start; gap: 8px; margin-top: 0; }
  .side-legal { font-size: 11px; }
  .side-beian {
    flex: 1 1 100%;
    margin-top: 2px;
    padding-top: 6px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }

  /* 手机上不再允许切到「顶部导航」模式，统一用上面的网格 */
  .nav-toggle { display: none !important; }
  body.nav-top .shell { flex-direction: column; }
  body.nav-top .sidebar {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    flex-direction: unset;
    overflow: visible;
  }
  body.nav-top .side-actions { order: 0; }
  body.nav-top .side-nav { flex-direction: row; flex-wrap: wrap; margin-top: 2px; }
  body.nav-top .side-foot { margin: 0; }
}

/* 手机竖屏（≤560px）进一步收窄：顶部改单列，避免横向溢出 */
@media (max-width: 900px) {
  html, body { overflow-x: hidden; }
  .main { min-width: 0; max-width: 100%; }
}

@media (max-width: 560px) {
  .sidebar { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .side-top { grid-column: 1 / -1; }
  .side-actions { grid-column: 1 / -1; }
  .side-upload { width: 100%; }
  .side-nav { gap: 3px; min-width: 0; }
  .side-link { padding: 6px 9px; font-size: 12px; }
  .side-foot { gap: 6px; }
  .side-legals { flex: 1 1 100%; gap: 7px; }
  .side-legal { font-size: 10.5px; }
  .gear-btn { display: grid; place-items: center; }
}

/* 横屏手机（高度很小）：把顶部压缩成两三行，给内容让空间 */
@media (max-width: 900px) and (max-height: 520px) {
  .sidebar { padding: 6px 12px 8px; gap: 4px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .side-brand .brand-text h1 { font-size: 14px; }
  .side-brand .brand-text em { display: none; }
  .side-upload { padding: 5px 10px; font-size: 12px; }
  .side-nav { gap: 2px; }
  .side-link { padding: 4px 8px; font-size: 12px; gap: 5px; }
  .side-foot { padding-top: 4px; gap: 5px; border-top: none; }
  .side-user { padding: 3px 6px; }
  .gear-btn { display: none; }
  .side-contact { padding: 3px 8px; }
  .side-legals { display: none; }
  .side-beian { flex: 0 0 auto; margin: 0; padding: 0; border: none; font-size: 10px; }
}

/* ============================================================
   站内通知（v0.57）：右上角铃铛 + 下拉面板 + 轻 toast
   ============================================================ */
.notif { position: fixed; top: 14px; right: 16px; z-index: 86; }

.notif-bell {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .45);
  transition: color .15s, border-color .15s, transform .15s;
}
.notif-bell:hover { color: var(--primary); border-color: #c7d2fe; transform: translateY(-1px); }

.notif-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  border: 2px solid #fff;
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  font-weight: 600;
}

.notif-panel {
  position: absolute;
  top: 48px;
  right: 0;
  width: 344px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 50px -24px rgba(15, 23, 42, .38);
  overflow: hidden;
}
.notif-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.notif-allread {
  border: none;
  background: none;
  color: var(--primary);
  font-size: 11.5px;
  cursor: pointer;
  padding: 2px 4px;
}
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif-empty { padding: 26px 14px; text-align: center; color: #94a3b8; font-size: 12px; margin: 0; }

.notif-item {
  display: flex;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
}
.notif-item:hover { background: #f8fafc; }
.notif-item.is-unread { background: #f5f8ff; }
.notif-ico {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 14px;
  background: #eef2ff;
}
.notif-ico.tone-ok { background: #ecfdf5; }
.notif-ico.tone-warn { background: #fff7ed; }
.notif-main { min-width: 0; flex: 1; }
.notif-main b { display: block; font-size: 12.5px; font-weight: 600; color: #0f172a; line-height: 1.5; }
.notif-main em { display: block; font-style: normal; font-size: 11.5px; color: #64748b; line-height: 1.6; margin-top: 2px; }
.notif-time { display: block; font-style: normal; font-size: 10.5px; color: #94a3b8; margin-top: 3px; }

.notif-foot {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 9px;
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid var(--line);
  background: #fbfcfe;
}
.notif-foot a { color: #64748b; text-decoration: none; }
.notif-foot a:hover { color: var(--primary); }

/* 轻提示 */
.toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 87;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  display: flex;
  gap: 9px;
  width: 300px;
  max-width: calc(100vw - 32px);
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px -20px rgba(15, 23, 42, .45);
  text-decoration: none;
  color: inherit;
  transform: translateY(10px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.toast.is-in { transform: translateY(0); opacity: 1; }
.toast-ico { font-size: 15px; line-height: 1.4; }
.toast-body { min-width: 0; }
.toast-body b { display: block; font-size: 12.5px; color: #0f172a; }
.toast-body em { display: block; font-style: normal; font-size: 11px; color: #64748b; margin-top: 1px; }
.toast-time { display: block; font-style: normal; font-size: 10px; color: #94a3b8; margin-top: 2px; }

/* 手机上避开顶部按钮 */
@media (max-width: 900px) {
  .notif { top: 12px; right: 12px; }
  .side-actions { margin-right: 46px; }
  .toast-wrap { right: 12px; bottom: 12px; left: 12px; }
  .toast { width: auto; }
}
@media (max-width: 560px) {
  .side-actions { margin-right: 0; }
  .side-top { padding-right: 44px; }
}

/* 传图规范里的条目列表（v0.58） */
.legal-list {
  margin: 4px 0 12px;
  padding-left: 22px;
  font-size: 14px;
  line-height: 2;
  color: var(--text);
}
.legal-list li { margin: 2px 0; }

/* 原图检查器（v0.60） */
.insp {
  margin-top: 14px;
  padding: 14px;
  background: #0b1020;
  border-radius: 14px;
  border: 1px solid #1e293b;
}
.insp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 12px;
  color: #94a3b8;
}
.insp-name { color: #e2e8f0; font-weight: 600; }
.insp-reset {
  margin-left: auto;
  background: none;
  border: 1px solid #334155;
  color: #93c5fd;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  cursor: pointer;
}
.insp-reset:hover { border-color: #64748b; color: #bfdbfe; }
.insp-stage { display: flex; justify-content: center; }
.insp-canvas-wrap { position: relative; display: inline-block; max-width: 100%; }
.insp-stage canvas { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.insp-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 8px;
  background-image:
    linear-gradient(to right, transparent calc(33.333% - 1px), rgba(255,255,255,.55) 33.333%, transparent calc(33.333% + 1px)),
    linear-gradient(to right, transparent calc(66.666% - 1px), rgba(255,255,255,.55) 66.666%, transparent calc(66.666% + 1px)),
    linear-gradient(to bottom, transparent calc(33.333% - 1px), rgba(255,255,255,.55) 33.333%, transparent calc(33.333% + 1px)),
    linear-gradient(to bottom, transparent calc(66.666% - 1px), rgba(255,255,255,.55) 66.666%, transparent calc(66.666% + 1px));
}
.insp-dust-tag {
  position: absolute;
  left: 8px;
  top: 8px;
  background: rgba(239, 68, 68, .85);
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 6px;
}
.insp-tools { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.insp-btn {
  border: 1px solid #334155;
  background: #1e293b;
  color: #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.insp-btn:hover { border-color: #475569; }
.insp-btn.is-on { background: #ef4444; border-color: #ef4444; color: #fff; }
.insp-tip { font-size: 11px; color: #94a3b8; margin-left: auto; }
.insp-hist { margin-top: 10px; background: #0f172a; border-radius: 8px; padding: 8px; }
.insp-hist canvas { width: 100%; display: block; }
.insp-hist-axis { display: flex; justify-content: space-between; font-size: 10px; color: #64748b; margin-top: 4px; }
@media (max-width: 560px) {
  .insp-tip { margin-left: 0; width: 100%; }
}

/* 检查器首次出现时闪一下（v0.60.1） */
.insp.is-new { animation: inspPulse 1.8s ease 1; }
@keyframes inspPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .55); }
  60%  { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 上传页版本标识（v0.60.2） */
.wiz-version { font-size: 11px; color: #94a3b8; margin-top: 8px; }
