/* ============================================================
   天权 KPL 全局BP模拟器 —— 意见反馈
   悬浮按钮 + 反馈弹窗（沿用系统电竞风暗色主题与 var() 令牌）
   ============================================================ */

/* 悬浮入口：始终可见，任何界面（设置 / 主界面 / 导播）都能点开 */
#feedback-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 3000;
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--gold); background: linear-gradient(135deg, #f5c542, #d9a512);
  color: #1a1a1a; font-size: 14px; font-weight: 800; letter-spacing: .5px;
  box-shadow: 0 8px 24px rgba(0,0,0,.45), 0 0 0 4px rgba(245,197,66,.15);
  transition: transform .15s, box-shadow .15s;
}
#feedback-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 6px rgba(245,197,66,.22);
}
#feedback-fab:active { transform: translateY(0); }

/* 反馈弹窗：与 #result-modal 同一套遮罩层 */
#feedback-modal {
  position: fixed; inset: 0; z-index: 3500; display: none;
  align-items: center; justify-content: center;
  background: rgba(5,8,18,.82); backdrop-filter: blur(5px);
}
#feedback-modal.show { display: flex; }

.fb-sub { color: var(--muted); font-size: 13px; text-align: center; margin: -8px 0 16px; line-height: 1.7; }

.fb-cats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 14px; }
.fb-cats button {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); background: #171f3a; color: var(--muted);
  transition: all .15s;
}
.fb-cats button:hover { border-color: var(--gold); color: var(--gold); }
.fb-cats button.active { background: var(--gold); color: #1a1a1a; border-color: var(--gold); font-weight: 700; }

.fb-rate { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fb-rate-label { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.fb-stars { display: flex; gap: 3px; }
.fb-stars button {
  background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer;
  color: #4a5578; transition: color .12s, transform .12s;
}
.fb-stars button:hover { transform: scale(1.15); }
.fb-stars button.on { color: var(--gold); }

#feedback-content {
  width: 100%; min-height: 112px; resize: vertical; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--border); background: #171f3a;
  color: var(--text); font-size: 14px; line-height: 1.6; font-family: inherit;
}
#feedback-content:focus { outline: none; border-color: var(--gold); }

#feedback-contact {
  width: 100%; margin-top: 10px; padding: 10px 14px;
  border-radius: 10px; border: 1px solid var(--border); background: #171f3a;
  color: var(--text); font-size: 13.5px; font-family: inherit;
}
#feedback-contact:focus { outline: none; border-color: var(--gold); }

.fb-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.fb-status { font-size: 12.5px; color: var(--muted); flex: 1; min-width: 0; line-height: 1.5; }
.fb-status.ok { color: var(--green); }
.fb-status.err { color: var(--red); }
.fb-actions { display: flex; gap: 10px; flex-shrink: 0; }
.fb-btn {
  padding: 9px 20px; border-radius: 9px; font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1px solid #334067; background: #1a2340; color: var(--text); transition: all .15s;
}
.fb-btn.ghost:hover { border-color: var(--gold); color: var(--gold); }
.fb-btn.primary { background: linear-gradient(135deg, #f5c542, #d9a512); color: #1a1a1a; border-color: #f5c542; }
.fb-btn.primary:hover { box-shadow: 0 4px 14px rgba(245,197,66,.35); }
.fb-btn:disabled { opacity: .6; cursor: not-allowed; }
