/* ============================================================================
   Project: NOVA · 科研除虫与改进悬赏中心 (css/feedback-bounty.css)
   4 大旗舰皮肤联动：obsidian (默认黑曜鎏金) / qianli (千里江山) / royal (黑金皇冠) / starry (星月苍穹)
   严守：单屏紧凑零外滚、零无效套框、3层视口回退 (vh -> --app-vh -> dvh)、Chromium 85+ 兼容
   ============================================================================ */

#missionModal .page-head.fb-mission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

#missionModal .page-head.fb-mission-head h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-mission-entry-btn {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 92, 0.45);
  background: linear-gradient(180deg, rgba(62, 44, 16, 0.92), rgba(28, 19, 8, 0.96));
  color: #ffe39a;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 236, 179, 0.25), 0 2px 8px rgba(0, 0, 0, 0.38);
  transition: transform 0.14s ease, filter 0.14s ease;
}

.fb-mission-entry-btn:active {
  transform: scale(0.986);
  filter: brightness(1.08);
}

#topMoreBtn {
  position: relative;
}

.fb-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 6px rgba(255, 77, 79, 0.85);
  pointer-events: none;
}

#topMoreBtn .fb-unread-dot {
  position: absolute;
  top: 3px;
  right: 3px;
}

.fb-menu-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 196, 68, 0.16);
  color: #ffd666;
  font-size: 11px;
  font-weight: 800;
}

/* ==================== 主弹窗容器与四皮肤变量 ==================== */
#novaFeedbackModal {
  --fb-bg-top: #1b1510;
  --fb-bg-bot: #0e0b08;
  --fb-accent: #f3c15a;
  --fb-accent-strong: #ffd97d;
  --fb-accent-soft: rgba(243, 193, 90, 0.14);
  --fb-text: #f7efe2;
  --fb-muted: #b7a78f;
  --fb-surface: rgba(255, 245, 224, 0.045);
  --fb-input-bg: rgba(8, 6, 5, 0.72);
  --fb-input-border: rgba(243, 193, 90, 0.28);
  --fb-btn-grad: linear-gradient(180deg, #f7d277 0%, #c9912b 100%);
  --fb-btn-text: #1f1404;

  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9550;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(8px, env(safe-area-inset-top)) 10px max(8px, env(safe-area-inset-bottom));
  background: rgba(4, 5, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

#novaFeedbackModal.show {
  display: flex;
}

body[data-nova-skin="qianli"] #novaFeedbackModal {
  --fb-bg-top: #0f2421;
  --fb-bg-bot: #071312;
  --fb-accent: #5eead4;
  --fb-accent-strong: #facc15;
  --fb-accent-soft: rgba(94, 234, 212, 0.14);
  --fb-text: #ecfdf5;
  --fb-muted: #99cbc2;
  --fb-surface: rgba(167, 243, 208, 0.05);
  --fb-input-bg: rgba(4, 15, 14, 0.75);
  --fb-input-border: rgba(94, 234, 212, 0.3);
  --fb-btn-grad: linear-gradient(180deg, #fde047 0%, #ca8a04 100%);
  --fb-btn-text: #1c1303;
}

body[data-nova-skin="royal"] #novaFeedbackModal {
  --fb-bg-top: #231019;
  --fb-bg-bot: #11070c;
  --fb-accent: #fbbf24;
  --fb-accent-strong: #fde68a;
  --fb-accent-soft: rgba(251, 191, 36, 0.15);
  --fb-text: #fdf2f8;
  --fb-muted: #cbb0be;
  --fb-surface: rgba(251, 207, 232, 0.05);
  --fb-input-bg: rgba(12, 4, 8, 0.76);
  --fb-input-border: rgba(251, 191, 36, 0.3);
  --fb-btn-grad: linear-gradient(180deg, #fde68a 0%, #d97706 100%);
  --fb-btn-text: #221103;
}

body[data-nova-skin="starry"] #novaFeedbackModal {
  --fb-bg-top: #101935;
  --fb-bg-bot: #070c1c;
  --fb-accent: #93c5fd;
  --fb-accent-strong: #fcd34d;
  --fb-accent-soft: rgba(147, 197, 253, 0.15);
  --fb-text: #eff6ff;
  --fb-muted: #9fb3d9;
  --fb-surface: rgba(191, 219, 254, 0.055);
  --fb-input-bg: rgba(5, 9, 22, 0.76);
  --fb-input-border: rgba(147, 197, 253, 0.3);
  --fb-btn-grad: linear-gradient(180deg, #fcd34d 0%, #d97706 100%);
  --fb-btn-text: #1d1304;
}

.fb-dialog {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  max-height: calc(var(--app-vh, 100vh) * 0.92);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--fb-input-border);
  background: linear-gradient(180deg, var(--fb-bg-top) 0%, var(--fb-bg-bot) 100%);
  color: var(--fb-text);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  overflow: hidden;
}

.fb-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px 9px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

.fb-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fb-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 900;
  color: var(--fb-accent-strong);
  letter-spacing: 0.02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fb-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.fb-admin-toggle-btn,
.fb-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fb-text);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.fb-admin-toggle-btn.active {
  border-color: var(--fb-accent);
  background: var(--fb-accent-soft);
  color: var(--fb-accent-strong);
}

/* 顶部无死框羽化悬赏铭牌 */
.fb-bounty-banner {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: radial-gradient(ellipse at 25% 50%, var(--fb-accent-soft), rgba(0, 0, 0, 0) 78%);
}

.fb-bounty-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fb-bounty-kicker {
  font-size: 11px;
  color: var(--fb-muted);
}

.fb-bounty-amount {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  font-weight: 900;
  color: var(--fb-accent-strong);
}

.fb-bounty-amount .nova-coin-icon,
.fb-coin-inline .nova-coin-icon {
  width: 17px;
  height: 17px;
  vertical-align: -3px;
}

.fb-quota-meta {
  text-align: right;
  font-size: 11px;
  color: var(--fb-muted);
  line-height: 1.35;
  flex: 0 0 auto;
}

/* 顶部页签切换 */
.fb-tabs {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 4px 14px 8px;
}

.fb-tab-btn {
  flex: 1 1 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fb-muted);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

.fb-tab-btn.active {
  border-color: var(--fb-accent);
  background: var(--fb-accent-soft);
  color: var(--fb-text);
}

/* 主内容区（内部滚动，外层零滚） */
.fb-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 14px 14px;
  -webkit-overflow-scrolling: touch;
}

.fb-status-bar {
  margin-bottom: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fb-text);
  font-size: 12px;
  line-height: 1.4;
}

.fb-status-bar[data-tone="error"] {
  background: rgba(239, 68, 68, 0.18);
  color: #fecaca;
}

.fb-status-bar[data-tone="warn"] {
  background: rgba(245, 158, 11, 0.18);
  color: #fde68a;
}

.fb-status-bar[data-tone="ok"] {
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
}

/* 提交表单 */
.fb-row-split {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.fb-cat-group {
  flex: 1 1 55%;
  display: flex;
  gap: 6px;
}

.fb-cat-btn {
  flex: 1 1 0;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fb-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.fb-cat-btn.active {
  border-color: var(--fb-accent);
  background: var(--fb-accent-soft);
  color: var(--fb-accent-strong);
}

.fb-module-select {
  flex: 1 1 45%;
  height: 34px;
  padding: 0 8px;
  border-radius: 9px;
  border: 1px solid var(--fb-input-border);
  background: var(--fb-input-bg);
  color: var(--fb-text);
  font-size: 12px;
  font-weight: 700;
}

.fb-textarea-wrap {
  margin-bottom: 8px;
}

.fb-textarea {
  width: 100%;
  min-height: 82px;
  max-height: 120px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--fb-input-border);
  background: var(--fb-input-bg);
  color: var(--fb-text);
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}

.fb-textarea:focus,
.fb-module-select:focus,
.fb-text-input:focus {
  outline: none;
  border-color: var(--fb-accent-strong);
}

.fb-char-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3px;
  font-size: 11px;
  color: var(--fb-muted);
}

/* 截图 (<=3) + 录屏视频 (<=1, <=3min / 250MB) 附件槽 */
.fb-media-section {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 11px;
  background: var(--fb-surface);
}

.fb-media-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11.5px;
  color: var(--fb-muted);
}

.fb-media-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.fb-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px dashed var(--fb-input-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fb-text);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.fb-upload-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fb-media-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: var(--fb-text);
}

.fb-media-chip-del {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.4);
  color: #fca5a5;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.fb-progress-wrap {
  margin-top: 6px;
}

.fb-progress-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.fb-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--fb-accent), var(--fb-accent-strong));
  transition: width 0.12s linear;
}

.fb-progress-text {
  margin-top: 3px;
  font-size: 11px;
  color: var(--fb-accent-strong);
}

.fb-submit-btn {
  width: 100%;
  height: 42px;
  border-radius: 11px;
  border: 1px solid rgba(255, 238, 186, 0.55);
  background: var(--fb-btn-grad);
  color: var(--fb-btn-text);
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 14px rgba(0, 0, 0, 0.4);
}

.fb-submit-btn:active {
  transform: scale(0.986);
}

.fb-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fb-safe-note {
  margin: 7px 0 0;
  font-size: 11px;
  color: var(--fb-muted);
  line-height: 1.4;
}

/* ==================== 我的反馈记录列表 ==================== */
.fb-ticket-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.fb-empty {
  padding: 26px 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--fb-muted);
}

.fb-ticket-item {
  padding: 10px 11px;
  border-radius: 12px;
  background: var(--fb-surface);
}

.fb-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.fb-ticket-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--fb-muted);
  min-width: 0;
}

.fb-status-tag {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  flex: 0 0 auto;
}

.fb-status-tag[data-st="pending"] {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
}

.fb-status-tag[data-st="adopted"] {
  background: rgba(245, 158, 11, 0.24);
  color: #fde047;
}

.fb-status-tag[data-st="claimed"] {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.fb-status-tag[data-st="noted"] {
  background: rgba(96, 165, 250, 0.18);
  color: #bfdbfe;
}

.fb-status-tag[data-st="rejected_violation"] {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.fb-ticket-content {
  margin: 0 0 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fb-text);
  white-space: pre-wrap;
  word-break: break-word;
}

.fb-ticket-media-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.fb-media-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fb-text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.fb-official-reply {
  margin-top: 5px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 11.5px;
  color: var(--fb-accent-strong);
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.fb-claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.fb-claim-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(255, 238, 186, 0.6);
  background: var(--fb-btn-grad);
  color: var(--fb-btn-text);
  font-size: 12.5px;
  font-weight: 900;
  cursor: pointer;
}

.fb-claim-btn:active {
  transform: scale(0.986);
}

/* ==================== 站长零代码审单台 ==================== */
.fb-admin-auth-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.fb-text-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border-radius: 9px;
  border: 1px solid var(--fb-input-border);
  background: var(--fb-input-bg);
  color: var(--fb-text);
  font-size: 12.5px;
}

.fb-mini-btn {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--fb-input-border);
  background: var(--fb-accent-soft);
  color: var(--fb-accent-strong);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.fb-admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.fb-filter-pill {
  height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fb-muted);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.fb-filter-pill.active {
  border-color: var(--fb-accent);
  background: var(--fb-accent-soft);
  color: var(--fb-accent-strong);
}

.fb-admin-card {
  padding: 10px 11px;
  border-radius: 12px;
  background: var(--fb-surface);
  margin-bottom: 9px;
}

.fb-admin-acct-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 5px;
  font-size: 11px;
  color: var(--fb-muted);
}

.fb-risk-badge {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.22);
  color: #fca5a5;
  font-weight: 800;
}

.fb-paid-badge {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.22);
  color: #fde047;
  font-weight: 800;
}

/* 后台毛玻璃隐私防瞎眼护盾 */
.fb-admin-media-shield {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.fb-admin-reply-input {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  margin: 5px 0 6px;
  border-radius: 8px;
  border: 1px solid var(--fb-input-border);
  background: var(--fb-input-bg);
  color: var(--fb-text);
  font-size: 12px;
  box-sizing: border-box;
}

.fb-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.fb-act-btn {
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fb-text);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.fb-act-btn.adopt {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.18);
  color: #fde047;
}

.fb-act-btn.danger {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

.fb-custom-bounty-row {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

/* 沙盒媒体预览轻浮层 */
.fb-media-viewer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9650;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(2, 4, 9, 0.9);
}

.fb-media-viewer.show {
  display: flex;
}

.fb-media-viewer-box {
  max-width: min(92vw, 680px);
  max-height: 82vh;
  max-height: calc(var(--app-vh, 100vh) * 0.82);
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.fb-media-viewer-box img,
.fb-media-viewer-box video {
  max-width: 100%;
  max-height: 70vh;
  max-height: calc(var(--app-vh, 100vh) * 0.7);
  max-height: 70dvh;
  border-radius: 10px;
  background: #000;
}

.fb-media-blur-guard {
  filter: blur(16px) brightness(0.65);
  transition: filter 0.2s ease;
}

.fb-media-blur-guard.revealed {
  filter: none;
}

@media (max-width: 420px) {
  .fb-row-split {
    flex-direction: column;
    gap: 6px;
  }
}
