/* v6.2.15：问题反馈浮层 */
.mfb-panel { position: fixed; top:0; left:0; right:0; bottom:0; z-index: 9500; display: flex; align-items: center; justify-content: center; }
.mfb-panel.hidden { display: none; }
.mfb-mask { position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px); }
.mfb-card {
  position: relative; z-index: 1;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: flex; flex-direction: column;
  overflow: hidden;
  font-family: "PingFang SC", -apple-system, sans-serif;
}
.mfb-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
  border-bottom: 2px solid #fbbf24;
}
.mfb-title { font-size: 20px; font-weight: 900; color: #7c2d12; }
.mfb-close {
  background: rgba(255,255,255,0.6); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 18px; color: #7c2d12; font-weight: 700;
  transition: all 0.15s;
}
.mfb-close:hover { background: #fff; transform: scale(1.05); }
.mfb-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.mfb-hint {
  padding: 10px 14px; margin-bottom: 16px;
  background: #eff6ff; border-left: 4px solid #3b82f6; border-radius: 8px;
  color: #1e40af; font-size: 13px; line-height: 1.5;
}
.mfb-field {
  display: block; margin-bottom: 16px; position: relative;
}
.mfb-field > span:first-child {
  display: block; margin-bottom: 6px;
  font-size: 14px; font-weight: 700; color: #334155;
}
.mfb-required { color: #dc2626; font-style: normal; }
.mfb-field select,
.mfb-field input,
.mfb-field textarea {
  width: 100%; box-sizing: border-box;
  padding: 10px 14px;
  font-size: 15px; font-family: inherit;
  border: 2px solid #e2e8f0; border-radius: 10px;
  background: #f8fafc;
  transition: border-color 0.15s;
}
.mfb-field select:focus,
.mfb-field input:focus,
.mfb-field textarea:focus { border-color: #f59e0b; outline: none; background: #fff; }
.mfb-field textarea { resize: vertical; min-height: 100px; }
.mfb-counter {
  position: absolute; right: 8px; bottom: 4px;
  font-size: 11px; color: #94a3b8;
}
.mfb-footer {
  padding: 14px 22px;
  border-top: 1px solid #e2e8f0;
  display: flex; gap: 10px; align-items: center;
  background: #f8fafc;
}
.mfb-msg { flex: 1; font-size: 13px; }
.mfb-msg.ok { color: #16a34a; font-weight: 600; }
.mfb-msg.err { color: #dc2626; font-weight: 600; }
.mfb-btn {
  padding: 10px 22px;
  font-size: 14px; font-weight: 700;
  border: none; border-radius: 10px; cursor: pointer;
  transition: all 0.15s;
}
.mfb-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.mfb-btn-secondary { background: #e2e8f0; color: #475569; }
.mfb-btn-secondary:hover { background: #cbd5e1; }
.mfb-btn-primary {
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff; box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}
.mfb-btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(234, 88, 12, 0.45); }

/* v6.2.15：底部悬浮反馈按钮（手机/平板） */
.mbr-feedback-fab {
  position: fixed;
  right: 14px; bottom: 14px;
  z-index: 800;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff; font-size: 22px;
  border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s;
}
.mbr-feedback-fab:hover { transform: scale(1.08); }
.mbr-feedback-fab:active { transform: scale(0.95); }

/* 三端适配 */
@media (max-width: 480px) {
  .mfb-card { width: calc(100vw - 20px); max-height: calc(100vh - 20px); border-radius: 16px; }
  .mfb-header { padding: 12px 16px; }
  .mfb-title { font-size: 18px; }
  .mfb-body { padding: 16px; }
  .mfb-footer { flex-wrap: wrap; padding: 12px 16px; }
  .mfb-msg { flex-basis: 100%; margin-bottom: 6px; }
  .mfb-btn { flex: 1; padding: 10px 12px; }
  .mbr-feedback-fab {
    right: max(10px, env(safe-area-inset-right));
    /* v6.2.19：避让底部战斗按钮群 → 移到屏幕右侧纵向中部 */
    top: calc(50% + 8px);
    bottom: auto;
    width: 46px; height: 46px; font-size: 20px;
  }
}
@media (min-width: 481px) and (max-width: 1024px) {
  .mbr-feedback-fab {
    right: max(20px, env(safe-area-inset-right));
    /* v6.2.19：iPad/平板同样避让右下战斗按钮 */
    top: calc(50% + 8px);
    bottom: auto;
  }
}
/* v6.2.19：任何触屏设备（含被识别为 pointer:coarse 的大屏）都避让 */
@media (hover: none) and (pointer: coarse) {
  .mbr-feedback-fab {
    right: max(10px, env(safe-area-inset-right));
    top: calc(50% + 8px);
    bottom: auto;
  }
}
