/* 校享团演示 · 需求反馈浮窗 */
.xxt-fb-fab {
  position: fixed;
  right: 16px;
  bottom: 72px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border: none;
  border-radius: 24px;
  background: linear-gradient(135deg, #1677ff 0%, #0958d9 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(22, 119, 255, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.xxt-fb-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 119, 255, 0.55);
}
.xxt-fb-fab .fab-icon { font-size: 16px; line-height: 1; }

body.has-tour-dock .xxt-fb-fab { bottom: 68px; }
body.dock-bigscreen .xxt-fb-fab { bottom: 56px; opacity: 0.9; }
body.dock-bigscreen .xxt-fb-fab:hover { opacity: 1; }

/* miniapp 底栏避让 */
body.xxt-fb-miniapp .xxt-fb-fab {
  bottom: calc(78px + env(safe-area-inset-bottom, 0));
  right: 12px;
  padding: 8px 12px;
  font-size: 12px;
}

.xxt-fb-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.xxt-fb-overlay.open {
  opacity: 1;
  visibility: visible;
}

.xxt-fb-modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  animation: xxtFbSlideUp 0.3s ease;
}
@keyframes xxtFbSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.xxt-fb-header {
  padding: 18px 20px 12px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.xxt-fb-header h3 {
  margin: 0 0 6px;
  font-size: 17px;
  color: #1a1a1a;
}
.xxt-fb-header p,
.xxt-fb-lead {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}
.xxt-fb-page-card {
  margin-top: 12px;
  padding: 12px 14px;
  background: #f6f9ff;
  border: 1px solid #d6e4ff;
  border-radius: 10px;
}
.xxt-fb-page-label {
  display: block;
  font-size: 11px;
  color: #8c8c8c;
  margin-bottom: 4px;
}
.xxt-fb-page-card strong {
  display: block;
  font-size: 15px;
  color: #1677ff;
  line-height: 1.4;
}
.xxt-fb-field-plain { margin-bottom: 0; }
.xxt-fb-field-plain textarea {
  min-height: 140px;
  font-size: 15px;
}
.xxt-fb-footer-single { padding-top: 14px; }
.xxt-fb-btn-block { width: 100%; flex: none; padding: 13px; font-size: 16px; }
.xxt-fb-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  line-height: 1;
}
.xxt-fb-close:hover { background: #eee; }

.xxt-fb-body { padding: 16px 20px 20px; }
.xxt-fb-field { margin-bottom: 14px; }
.xxt-fb-field label {
  display: block;
  font-size: 13px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 500;
}
.xxt-fb-field label .req { color: #ff4d4f; }
.xxt-fb-field label .opt { color: #999; font-weight: 400; font-size: 11px; }
.xxt-fb-field input,
.xxt-fb-field select,
.xxt-fb-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.xxt-fb-field input:focus,
.xxt-fb-field select:focus,
.xxt-fb-field textarea:focus {
  outline: none;
  border-color: #1677ff;
  box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
}
.xxt-fb-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}
.xxt-fb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .xxt-fb-row { grid-template-columns: 1fr; }
}

.xxt-fb-hint {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  line-height: 1.5;
}

.xxt-fb-footer {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}
.xxt-fb-btn {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.xxt-fb-btn-primary {
  background: #1677ff;
  color: #fff;
}
.xxt-fb-btn-primary:hover { background: #4096ff; }
.xxt-fb-btn-primary:disabled {
  background: #91caff;
  cursor: not-allowed;
}
.xxt-fb-btn-ghost {
  background: #f5f5f5;
  color: #666;
}
.xxt-fb-btn-ghost:hover { background: #eee; }

.xxt-fb-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 2147483002;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  font-family: inherit;
}
.xxt-fb-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.xxt-fb-toast.ok { background: #52c41a; }
.xxt-fb-toast.err { background: #ff4d4f; }
