/* Codex Harness · 版本发布中心 公共样式
 * 设计语言：暗色玻璃感、紫色主调、圆角 14px、WorkBuddy 风格 */

:root {
  --bg-0: #0e0b1a;
  --bg-1: #161229;
  --bg-2: #1c1733;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.07);
  --panel-border: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --text: #f5f3ff;
  --text-dim: rgba(245, 243, 255, 0.68);
  --text-mute: rgba(245, 243, 255, 0.42);
  --accent: #8b5cf6;
  --accent-2: #6366f1;
  --accent-soft: rgba(139, 92, 246, 0.18);
  --success: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 60px -20px rgba(0, 0, 0, 0.55);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 100%, rgba(99, 102, 241, 0.12), transparent 55%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #b794f6; }

/* ===== 顶部导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(14, 11, 26, 0.55);
  border-bottom: 1px solid var(--panel-border);
}
.nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 0.2px;
}
.nav .brand .logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: white; font-size: 16px;
  box-shadow: 0 4px 14px -4px var(--accent-soft);
}
.nav .nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav .nav-links a {
  padding: 6px 12px; border-radius: 8px;
  color: var(--text-dim); font-size: 13px;
  transition: background 120ms, color 120ms;
}
.nav .nav-links a:hover { background: var(--panel); color: var(--text); }
.nav .nav-links a.active { background: var(--accent-soft); color: var(--text); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--panel-border);
  font-size: 12px; color: var(--text-dim);
}
.nav .pill .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--success);
}

/* ===== 主区 ===== */
main {
  max-width: 1180px; margin: 0 auto;
  padding: 36px 28px 96px;
}

/* ===== Hero ===== */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px;
  margin-bottom: 28px;
}
@media (max-width: 880px) { .hero { grid-template-columns: 1fr; } }

.hero .left h1 {
  font-size: 32px; line-height: 1.2; margin: 0 0 10px;
  background: linear-gradient(120deg, #fff, #b794f6 60%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .left .sub {
  color: var(--text-dim); font-size: 15px; max-width: 560px;
}
.hero .left .quick {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px;
}

.hero-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  position: relative; overflow: hidden;
}
.hero-card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(220px 110px at 100% 0%, var(--accent-soft), transparent 60%);
  pointer-events: none;
}
.hero-card .label {
  font-size: 12px; color: var(--text-mute);
  text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px;
}
.hero-card .version {
  font-family: var(--mono); font-size: 28px; font-weight: 600;
  color: var(--text); margin-bottom: 8px;
}
.hero-card .meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-dim); }
.hero-card .meta .sep { color: var(--text-mute); }

/* ===== 通用组件 ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  background: var(--panel-2); color: var(--text);
  border: 1px solid var(--panel-border);
  cursor: pointer; font-size: 13px; font-weight: 500;
  transition: background 120ms, transform 120ms, border-color 120ms;
  font-family: inherit;
}
.btn:hover { background: rgba(255, 255, 255, 0.10); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: white;
  box-shadow: 0 10px 28px -10px var(--accent-soft);
}
.btn-primary:hover { filter: brightness(1.1); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn-ghost:hover { background: var(--panel); color: var(--text); }
.btn-danger { color: var(--danger); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.10); border-color: rgba(248, 113, 113, 0.25); }

.input, .textarea, .select {
  width: 100%; padding: 9px 12px; border-radius: 9px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--panel-border);
  color: var(--text); font-family: inherit; font-size: 13px;
  transition: border-color 120ms, background 120ms;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--accent);
  background: rgba(0, 0, 0, 0.35);
}
.textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.label { display: block; font-size: 12px; color: var(--text-dim); margin-bottom: 6px; }

.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } }

/* ===== Channel Tabs ===== */
.tabs {
  display: inline-flex; padding: 4px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 12px; margin-bottom: 22px;
}
.tab {
  padding: 6px 14px; border-radius: 8px; cursor: pointer;
  font-size: 13px; color: var(--text-dim);
  transition: background 120ms, color 120ms;
  border: none; background: transparent; font-family: inherit;
}
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent-soft); color: var(--text); }

/* ===== Release 卡片 ===== */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 18px;
  position: relative; overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  border-color: rgba(139, 92, 246, 0.32);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.card .head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.card .ver {
  font-family: var(--mono); font-size: 22px; font-weight: 600;
}
.card .channel-tag {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--panel-border);
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px;
}
.card .channel-tag.stable { background: rgba(52, 211, 153, 0.12); color: var(--success); border-color: rgba(52, 211, 153, 0.25); }
.card .channel-tag.beta { background: rgba(251, 191, 36, 0.12); color: var(--warn); border-color: rgba(251, 191, 36, 0.25); }
.card .channel-tag.canary { background: rgba(248, 113, 113, 0.12); color: var(--danger); border-color: rgba(248, 113, 113, 0.25); }

.card .mandatory {
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: rgba(248, 113, 113, 0.15); color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3);
  margin-left: auto;
}

.card .filename {
  font-size: 12px; color: var(--text-mute);
  font-family: var(--mono); word-break: break-all;
}
.card .meta {
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: 12px; color: var(--text-dim);
  margin: 10px 0 12px;
}
.card .meta b { color: var(--text); font-weight: 500; }
.card .changelog {
  font-size: 12.5px; color: var(--text-dim);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--panel-border);
  padding: 10px 12px; border-radius: 9px;
  white-space: pre-wrap;
  max-height: 130px; overflow: auto;
}
.card .actions { display: flex; gap: 8px; margin-top: 14px; }
.card .actions .btn { flex: 1; justify-content: center; }

.empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-mute);
  border: 1px dashed var(--panel-border); border-radius: var(--radius);
  background: var(--panel);
}
.empty h3 { color: var(--text); margin: 0 0 8px; }

/* ===== 上传区 ===== */
.dropzone {
  border: 2px dashed var(--panel-border);
  border-radius: var(--radius);
  padding: 30px; text-align: center;
  background: var(--panel);
  cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.dropzone:hover, .dropzone.drag {
  background: var(--accent-soft);
  border-color: var(--accent);
}
.dropzone .hint { font-size: 13px; color: var(--text-dim); }
.dropzone .picked {
  margin-top: 10px; font-size: 13px; color: var(--text);
  font-family: var(--mono); word-break: break-all;
}

/* ===== 表格 ===== */
.table-wrap {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius); overflow: hidden;
}
table.admin {
  width: 100%; border-collapse: collapse;
  background: var(--panel);
}
table.admin th, table.admin td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--panel-border);
  font-size: 13px;
}
table.admin th {
  background: rgba(0, 0, 0, 0.18);
  color: var(--text-dim); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.8px; font-size: 11px;
}
table.admin tr:last-child td { border-bottom: none; }
table.admin td.mono { font-family: var(--mono); font-size: 12px; }
table.admin .actions { display: flex; gap: 6px; }

/* ===== Toast / Notice ===== */
.toast {
  position: fixed; right: 20px; bottom: 20px;
  padding: 12px 18px;
  background: var(--bg-2); border: 1px solid var(--panel-border);
  border-radius: 12px; color: var(--text);
  box-shadow: var(--shadow);
  z-index: 1000;
  animation: rise 220ms ease;
  font-size: 13px;
}
.toast.error { border-color: rgba(248, 113, 113, 0.4); }
.toast.success { border-color: rgba(52, 211, 153, 0.4); }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== 登录 ===== */
.login-card {
  max-width: 420px; margin: 80px auto;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.login-card h2 { margin: 0 0 6px; font-size: 22px; }
.login-card p { color: var(--text-dim); margin: 0 0 22px; }

/* ===== 标题区 ===== */
.section-head {
  display: flex; align-items: end; gap: 14px;
  margin: 30px 0 16px;
}
.section-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.section-head .hint { color: var(--text-mute); font-size: 12px; }

/* ===== 状态徽章 ===== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--panel-border); background: var(--panel);
  color: var(--text-dim);
}
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--text-mute); }
.badge.online .dot { background: var(--success); }
.badge.warn .dot { background: var(--warn); }
.badge.error .dot { background: var(--danger); }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.10); border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.18); }
::-webkit-scrollbar-track { background: transparent; }

/* ================================================================
 * 反馈中心（用户页 feedback.html + 管理页 admin.html 共用）
 * ================================================================ */

/* ---- 面板基础 ---- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 20px;
}
.panel-title {
  margin: 0 0 16px; font-size: 16px; font-weight: 600;
  padding-bottom: 12px; border-bottom: 1px solid var(--panel-border);
}
.panel-title em { color: var(--danger); font-style: normal; }

/* ---- 用户页顶部 ---- */
.fb-hero {
  display: flex; align-items: end; justify-content: space-between;
  gap: 18px; margin-bottom: 26px;
}
.fb-hero h1 {
  font-size: 30px; line-height: 1.2; margin: 0 0 10px;
  background: linear-gradient(120deg, #fff, #b794f6 60%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fb-hero .sub { color: var(--text-dim); font-size: 14.5px; max-width: 620px; margin: 0; }
.fb-hero-stat {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--panel-border); white-space: nowrap;
}
.fb-hero-stat .num { font-family: var(--mono); font-size: 26px; font-weight: 600; color: var(--accent); }
.fb-hero-stat .lbl { font-size: 11px; color: var(--text-mute); }

/* ---- 布局 ---- */
.fb-layout { display: grid; grid-template-columns: 1fr 1.12fr; gap: 18px; align-items: start; }
@media (max-width: 980px) { .fb-layout { grid-template-columns: 1fr; } }
.fb-mine { min-width: 0; }

/* ---- 类型 chips（提交表单） ---- */
.type-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
@media (max-width: 480px) { .type-chips { grid-template-columns: repeat(2, 1fr); } }
.type-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 6px; border-radius: 10px; cursor: pointer;
  background: rgba(0, 0, 0, 0.22); color: var(--text-dim);
  border: 1px solid var(--panel-border); font-family: inherit; font-size: 13px;
  transition: all 120ms;
}
.type-chip .ic { font-size: 15px; }
.type-chip:hover { color: var(--text); border-color: rgba(139, 92, 246, 0.35); }
.type-chip.active {
  background: var(--accent-soft); color: var(--text);
  border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset;
}

/* ---- 字数统计 ---- */
.counter { text-align: right; font-size: 11px; color: var(--text-mute); margin-top: 4px; }

/* ---- 截图上传 ---- */
.img-drop {
  border: 2px dashed var(--panel-border); border-radius: var(--radius-sm);
  padding: 18px; text-align: center; background: rgba(0, 0, 0, 0.15);
  cursor: pointer; transition: all 120ms;
}
.img-drop:hover, .img-drop.drag { background: var(--accent-soft); border-color: var(--accent); }
.img-drop-icon { font-size: 22px; }
.img-drop-text { font-size: 13px; color: var(--text); margin-top: 4px; }
.img-drop-hint { font-size: 11.5px; color: var(--text-mute); margin-top: 2px; }
.img-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.img-thumb {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--panel-border); background: #000;
  aspect-ratio: 4 / 3;
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-del {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px;
  border-radius: 999px; border: none; cursor: pointer;
  background: rgba(0, 0, 0, 0.65); color: #fff; font-size: 11px; line-height: 1;
  display: grid; place-items: center;
}
.img-del:hover { background: var(--danger); }
.img-size {
  position: absolute; left: 5px; bottom: 4px; font-size: 10px;
  color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); pointer-events: none;
}

.fb-submit { margin-top: 4px; }
.fb-privacy { font-size: 11.5px; color: var(--text-mute); margin: 10px 0 0; }

/* ---- 我的反馈工具条 ---- */
.fb-toolbar { margin-bottom: 14px; }
.fb-toolbar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fb-toolbar .panel-title { border-bottom: none; margin: 0; }
.fb-mine-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-filter {
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(0, 0, 0, 0.22); color: var(--text-dim);
  border: 1px solid var(--panel-border); font-family: inherit; font-size: 12px;
  transition: all 120ms;
}
.chip-filter:hover { color: var(--text); }
.chip-filter.active { background: var(--accent-soft); color: var(--text); border-color: var(--accent); }

/* ---- 类型标签 / 状态徽章 ---- */
.type-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--panel-border); white-space: nowrap;
}
.type-tag.bug { background: rgba(248, 113, 113, 0.13); color: #fca5a5; border-color: rgba(248, 113, 113, 0.3); }
.type-tag.suggestion { background: rgba(96, 165, 250, 0.13); color: #93c5fd; border-color: rgba(96, 165, 250, 0.3); }
.type-tag.question { background: rgba(251, 191, 36, 0.13); color: #fcd34d; border-color: rgba(251, 191, 36, 0.3); }
.type-tag.other { background: rgba(167, 139, 250, 0.13); color: #c4b5fd; border-color: rgba(167, 139, 250, 0.3); }

.fb-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--panel-border); white-space: nowrap;
}
.fb-status::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.fb-status.pending { color: var(--text-mute); }
.fb-status.in_progress { color: var(--accent); background: var(--accent-soft); border-color: rgba(139, 92, 246, 0.35); }
.fb-status.resolved { color: var(--success); background: rgba(52, 211, 153, 0.10); border-color: rgba(52, 211, 153, 0.3); }
.fb-status.closed { color: var(--text-mute); background: rgba(255, 255, 255, 0.05); }

.prio.high {
  font-size: 10.5px; padding: 1px 8px; border-radius: 999px;
  background: rgba(248, 113, 113, 0.15); color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.3); white-space: nowrap;
}

/* ---- 我的反馈卡片 ---- */
.fb-list { display: flex; flex-direction: column; gap: 12px; }
.fb-item {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 14px 16px;
}
.fb-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-item-head .fb-id { color: var(--text-mute); font-family: var(--mono); font-size: 12px; }
.fb-item-head .fb-time { color: var(--text-mute); font-size: 12px; }
.fb-item-head .fb-fold {
  margin-left: auto; border: none; background: transparent; cursor: pointer;
  color: var(--text-dim); font-size: 12px; font-family: inherit;
}
.fb-item-head .fb-fold:hover { color: var(--text); }
.fb-item-title { font-size: 15px; font-weight: 600; margin: 8px 0 4px; word-break: break-word; }
.fb-meta-row { display: flex; gap: 14px; font-size: 12px; color: var(--text-dim); flex-wrap: wrap; }
.fb-meta-row b { color: var(--text); font-weight: 500; font-family: var(--mono); }
.fb-item-body { margin-top: 10px; border-top: 1px dashed var(--panel-border); padding-top: 12px; }
.fb-content {
  font-size: 13px; color: var(--text-dim); white-space: pre-wrap; word-break: break-word;
  background: rgba(0, 0, 0, 0.18); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 10px 12px;
}
.fb-imgs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fb-thumb {
  width: 96px; height: 72px; object-fit: cover; border-radius: 8px;
  border: 1px solid var(--panel-border); cursor: zoom-in;
  transition: transform 120ms, border-color 120ms;
}
.fb-thumb:hover { transform: scale(1.03); border-color: var(--accent); }

/* ---- timeline（双方共用） ---- */
.fb-timeline { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.ev { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.ev-role { font-size: 11.5px; color: var(--text-mute); }
.ev-bubble {
  padding: 9px 12px; border-radius: 10px; word-break: break-word; white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--panel-border);
  color: var(--text); align-self: flex-start; max-width: 92%;
}
.ev-admin .ev-role { color: var(--accent); }
.ev-admin .ev-bubble {
  background: var(--accent-soft); border-color: rgba(139, 92, 246, 0.35);
}
.ev-status {
  flex-direction: row; align-items: center; gap: 10px;
  color: var(--text-mute); font-size: 12px;
}
.ev-status b { color: var(--text-dim); font-weight: 500; }
.ev-time { font-size: 11px; color: var(--text-mute); align-self: flex-start; }

/* ---- 追加留言 ---- */
.comment-box { display: flex; gap: 8px; margin-top: 14px; }
.comment-box .input { flex: 1; }
.comment-box .btn { flex-shrink: 0; }

/* ---- 大图查看 ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(4, 3, 12, 0.92);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px; padding: 30px;
}
.lightbox img {
  max-width: 94vw; max-height: 82vh; object-fit: contain;
  border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.lb-close {
  position: absolute; top: 14px; right: 18px; width: 34px; height: 34px;
  border-radius: 999px; border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 14px;
  cursor: pointer; z-index: 5;
}
.lb-close:hover { background: var(--danger); border-color: var(--danger); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 60px; border-radius: 10px; border: none;
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 30px; cursor: pointer;
  display: grid; place-items: center; z-index: 5;
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.16); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-caption { color: var(--text-dim); font-size: 12px; max-width: 90vw; text-align: center; word-break: break-all; }

/* ================================================================
 * 管理端：功能 tab / 统计卡 / 列表行 / 抽屉
 * ================================================================ */
.admin-tabs {
  display: flex; gap: 8px; margin-bottom: 6px;
  border-bottom: 1px solid var(--panel-border); padding-bottom: 14px;
}
.admin-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 10px; border: none; cursor: pointer;
  background: transparent; color: var(--text-dim);
  font-family: inherit; font-size: 14px; font-weight: 500;
  transition: all 120ms;
}
.admin-tab:hover { color: var(--text); background: var(--panel); }
.admin-tab.active { background: var(--accent-soft); color: var(--text); }
.tab-badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--danger); color: #fff; font-size: 11px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---- 统计卡 ---- */
.stat-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 860px) { .stat-cards { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
.stat-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--panel-border); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; transition: all 120ms;
}
.stat-card:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-1px); }
.stat-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.stat-card .num { font-family: var(--mono); font-size: 24px; font-weight: 600; line-height: 1.1; }
.stat-card .lbl { font-size: 11.5px; color: var(--text-mute); margin-top: 3px; }
.stat-card.st-pending .num { color: var(--warn); }
.stat-card.st-in_progress .num { color: var(--accent); }
.stat-card.st-resolved .num { color: var(--success); }
.stat-card.st-today .num { color: #60a5fa; }

/* ---- 管理列表工具条 ---- */
.fb-admin-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px;
}
.fb-admin-bar .hint { margin-left: auto; }

/* ---- 列表行 ---- */
.fb-admin-list { display: flex; flex-direction: column; gap: 8px; }
.fb-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--panel-border); border-radius: var(--radius-sm);
  padding: 12px 16px; cursor: pointer; transition: all 120ms;
}
.fb-row:hover { border-color: rgba(139, 92, 246, 0.4); background: rgba(139, 92, 246, 0.06); }
.fb-row-main { min-width: 0; }
.fb-row-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fb-row-text { font-size: 14px; font-weight: 500; word-break: break-word; }
.fb-row-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 5px; font-size: 12px; color: var(--text-mute);
}
.fb-row-meta b { color: var(--text-dim); font-weight: 500; }
.fb-row-meta .mono { font-family: var(--mono); }
.fb-row-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.reply-n { font-size: 11px; color: var(--text-mute); }
.fb-row .arrow { font-size: 20px; color: var(--text-mute); }

/* ---- 抽屉 ---- */
.drawer-mask {
  position: fixed; inset: 0; z-index: 298;
  background: rgba(4, 3, 12, 0.55); backdrop-filter: blur(2px);
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 300;
  width: min(600px, 96vw);
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border-left: 1px solid var(--panel-border);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.5);
  display: flex; flex-direction: column;
  animation: drawer-in 180ms ease;
}
@keyframes drawer-in { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px; border-bottom: 1px solid var(--panel-border);
}
.drawer-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.drawer-head .mono { font-family: var(--mono); color: var(--text-mute); font-size: 13px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px 40px; }

.dr-section { margin-bottom: 20px; }
.dr-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--text-dim); margin-bottom: 12px; }
.dr-meta b { color: var(--text); font-weight: 500; }
.dr-title { margin: 0 0 10px; font-size: 19px; line-height: 1.35; word-break: break-word; }
.dr-content {
  white-space: pre-wrap; word-break: break-word;
  background: rgba(0, 0, 0, 0.22); border: 1px solid var(--panel-border);
  border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--text-dim);
}
.dr-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 12px; }
.dr-img { border: 1px solid var(--panel-border); border-radius: 9px; overflow: hidden; background: #000; }
.dr-img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; cursor: zoom-in; }
.dr-img span {
  display: block; padding: 5px 8px; font-size: 11px; color: var(--text-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dr-h {
  font-size: 11px; color: var(--text-mute); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 10px;
}
.dr-h2 { font-size: 12px; color: var(--text-dim); }

.dr-actions { display: flex; flex-direction: column; gap: 12px; }
.status-btn-group { display: flex; gap: 6px; flex-wrap: wrap; }
.status-btn {
  padding: 6px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--panel-border); background: rgba(0, 0, 0, 0.22);
  color: var(--text-dim); font-family: inherit; font-size: 12.5px; transition: all 120ms;
}
.status-btn:hover { color: var(--text); border-color: rgba(139, 92, 246, 0.4); }
.status-btn.pending.active { color: var(--text-mute); background: rgba(255, 255, 255, 0.08); border-color: var(--text-mute); }
.status-btn.in_progress.active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.status-btn.resolved.active { color: var(--success); background: rgba(52, 211, 153, 0.12); border-color: var(--success); }
.status-btn.closed.active { color: var(--text-mute); background: rgba(255, 255, 255, 0.05); border-color: var(--text-mute); }
.dr-prio-row { display: flex; align-items: center; gap: 10px; }
.prio-select { width: auto !important; }
.dr-danger { margin-top: 26px; padding-top: 16px; border-top: 1px dashed var(--panel-border); }
.dr-danger .btn { width: 100%; }
/* ================================================================
 * 官网下载页：Hero 增强 / 功能特性 / 功能介绍弹窗 / Footer
 * ================================================================ */

/* ---- 导航里的按钮化链接 ---- */
.nav-link-btn {
  padding: 6px 12px; border-radius: 8px;
  color: var(--text-dim); font-size: 13px;
  transition: background 120ms, color 120ms;
  border: none; background: transparent; cursor: pointer; font-family: inherit;
}
.nav-link-btn:hover { background: var(--panel); color: var(--text); }

/* ---- 按钮尺寸 ---- */
.btn-lg { padding: 11px 20px; font-size: 14px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }

/* ---- Hero 增强 ---- */
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
  background: var(--accent-soft); border: 1px solid rgba(139, 92, 246, 0.35);
  color: #c4b5fd; font-size: 12.5px;
}
.hero-stats { display: flex; gap: 26px; margin-top: 24px; }
.hero-stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stat b { font-family: var(--mono); font-size: 18px; font-weight: 600; color: var(--text); }
.hero-stat span { font-size: 11.5px; color: var(--text-mute); }
.hero-card-note {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--panel-border);
  font-size: 12px; color: var(--text-mute); line-height: 1.5;
}

/* ---- 功能特性速览 ---- */
.features { margin: 8px 0 10px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 18px; transition: transform 160ms, border-color 160ms;
}
.feature-card:hover { border-color: rgba(139, 92, 246, 0.35); transform: translateY(-2px); }
.feature-ic { font-size: 24px; margin-bottom: 8px; }
.feature-card h3 { margin: 0 0 6px; font-size: 15px; }
.feature-card p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ---- 功能介绍弹窗 ---- */
.modal-mask {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4, 3, 12, 0.68); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal {
  width: min(860px, 94vw); max-height: 88vh;
  background: linear-gradient(180deg, var(--bg-1), var(--bg-0));
  border: 1px solid var(--panel-border); border-radius: 18px;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.7);
  display: flex; flex-direction: column; overflow: hidden;
  animation: modal-in 200ms ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--panel-border);
}
.modal-head h2 { margin: 0; font-size: 18px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--panel-border);
  background: var(--panel); color: var(--text-dim); cursor: pointer; font-size: 13px;
}
.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.modal-body { flex: 1; overflow-y: auto; padding: 20px 22px; }
.modal-lead { margin: 0 0 18px; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }
.feature-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .feature-detail-grid { grid-template-columns: 1fr; } }
.feature-detail {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--panel-border); border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.feature-detail .feature-ic { font-size: 22px; margin-bottom: 6px; }
.feature-detail h4 { margin: 0 0 5px; font-size: 14px; }
.feature-detail p { margin: 0; font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }
.modal-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 14px 22px; border-top: 1px solid var(--panel-border);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--panel-border);
  padding: 28px; margin-top: 20px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  background: rgba(14, 11, 26, 0.4);
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.footer-brand .logo {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; font-size: 13px;
}
.footer-links { display: flex; gap: 4px; align-items: center; }
.footer-links a { padding: 4px 10px; border-radius: 6px; color: var(--text-dim); font-size: 13px; }
.footer-links a:hover { background: var(--panel); color: var(--text); }
.footer-note { margin-left: auto; font-size: 12px; color: var(--text-mute); }

/* ================================================================
 * 管理端：批量删除 UI（checkbox / batch-bar / fb-check）
 * ================================================================ */
.batch-bar { display: flex; align-items: center; gap: 12px; }
.batch-bar .hint { color: var(--text-dim); }
table.admin input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent);
  vertical-align: middle;
}
.fb-check {
  display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0;
  padding: 4px; margin-right: 2px;
}
.fb-check input[type="checkbox"] {
  width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent);
}
