/* ============================================================
 * VJ Engine - 反馈留言板悬浮窗（feedback-widget.css）
 * 位置：会员中心页面右下角
 * 功能：提交反馈（退点申请/建议/功能需求/其他）+ 查看我的反馈及管理员回复
 * ============================================================ */

.fbw-btn {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient, linear-gradient(135deg, #8b5cf6, #ec4899));
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 20px rgba(139, 92, 246, .4);
  transition: all .25s;
}
.fbw-btn:hover { transform: scale(1.08); box-shadow: 0 8px 26px rgba(139, 92, 246, .55); }
.fbw-btn svg { width: 24px; height: 24px; }

.fbw-panel {
  position: fixed; right: 24px; bottom: 88px; z-index: 901;
  width: 370px; max-height: 520px; background: var(--bg2, #1a1a2e);
  border: 1px solid var(--border, #2a2a4a); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none;
  transition: all .25s;
}
.fbw-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.fbw-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border, #2a2a4a);
}
.fbw-title { font-size: 15px; font-weight: 800; color: var(--text, #fff); }
.fbw-close {
  width: 28px; height: 28px; border-radius: 6px; border: none;
  background: transparent; color: var(--muted, #888); font-size: 18px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.fbw-close:hover { background: var(--bg3, #2a2a4a); color: var(--text, #fff); }

.fbw-tabs { display: flex; padding: 0 18px; border-bottom: 1px solid var(--border, #2a2a4a); }
.fbw-tab {
  padding: 10px 14px; font-size: 13px; color: var(--muted, #888);
  cursor: pointer; border-bottom: 2px solid transparent; transition: all .2s;
}
.fbw-tab.active { color: var(--accent, #8b5cf6); border-bottom-color: var(--accent, #8b5cf6); font-weight: 700; }

.fbw-body { flex: 1; overflow-y: auto; padding: 16px 18px; }

/* 提交表单 */
.fbw-label { font-size: 12.5px; color: var(--muted, #888); margin-bottom: 6px; display: block; }
.fbw-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.fbw-type {
  padding: 9px 8px; border-radius: 8px; border: 1px solid var(--border, #2a2a4a);
  background: var(--bg3, #1e1e36); color: var(--muted, #888);
  font-size: 12.5px; text-align: center; cursor: pointer; transition: all .2s;
}
.fbw-type:hover { border-color: var(--accent, #8b5cf6); color: var(--text, #fff); }
.fbw-type.active { background: var(--accent-dim, rgba(139,92,246,.15)); border-color: var(--accent, #8b5cf6); color: var(--accent, #8b5cf6); font-weight: 600; }
.fbw-textarea {
  width: 100%; min-height: 100px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid var(--border, #2a2a4a); background: var(--bg3, #1e1e36);
  color: var(--text, #fff); font-size: 13px; resize: vertical; box-sizing: border-box;
  font-family: inherit;
}
.fbw-textarea:focus { outline: none; border-color: var(--accent, #8b5cf6); }
.fbw-submit {
  width: 100%; margin-top: 14px; padding: 10px 0; border-radius: 8px;
  border: none; background: var(--accent, #8b5cf6); color: #fff;
  font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .2s;
}
.fbw-submit:hover { opacity: .9; }
.fbw-submit:disabled { opacity: .5; cursor: not-allowed; }
.fbw-hint { font-size: 11.5px; color: var(--faint, #666); margin-top: 8px; line-height: 1.6; }

/* 反馈列表 */
.fbw-item {
  padding: 12px 0; border-bottom: 1px dashed var(--border, #2a2a4a);
}
.fbw-item:last-child { border-bottom: none; }
.fbw-item-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.fbw-item-type { font-size: 11.5px; padding: 2px 8px; border-radius: 4px; background: var(--accent-dim, rgba(139,92,246,.15)); color: var(--accent, #8b5cf6); font-weight: 600; }
.fbw-item-status { font-size: 11px; color: var(--muted, #888); }
.fbw-item-status.pending { color: #f59e0b; }
.fbw-item-status.refunded { color: #10b981; }
.fbw-item-status.closed { color: var(--muted, #888); }
.fbw-item-desc { font-size: 12.5px; color: var(--text, #fff); line-height: 1.6; margin-bottom: 6px; word-break: break-all; }
.fbw-item-reply {
  background: var(--bg3, #1e1e36); border-left: 3px solid var(--accent, #8b5cf6);
  padding: 8px 10px; border-radius: 0 6px 6px 0; font-size: 12px;
  color: var(--muted, #aaa); line-height: 1.6;
}
.fbw-item-reply b { color: var(--accent, #8b5cf6); display: block; margin-bottom: 3px; font-size: 11px; }
.fbw-item-time { font-size: 11px; color: var(--faint, #666); margin-top: 4px; }
.fbw-empty { text-align: center; color: var(--faint, #666); font-size: 13px; padding: 30px 0; }
.fbw-loading { text-align: center; color: var(--muted, #888); font-size: 13px; padding: 20px 0; }
