/* Bug 反馈：按钮在页面底部工具条内，弹层居中显示 */
.fb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fb-mask {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(18, 38, 56, 0.38);
}

.fb-mask[hidden] {
  display: none;
}

.fb-panel {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 991;
  width: 360px;
  max-width: calc(100vw - 32px);
  padding: 16px 18px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e4eef7;
  box-shadow: 0 18px 50px rgba(20, 56, 84, 0.28);
  font: 13px/1.7 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #2c3e50;
}

.fb-panel[hidden] {
  display: none;
}

html[data-theme="dark"] .fb-panel {
  background: #1e2a38;
  border-color: #2d3c50;
  color: #d7e3ef;
}

html[data-theme="dark"] .fb-text,
html[data-theme="dark"] .fb-contact {
  background: #16202b;
  border-color: #2d3c50;
  color: #d7e3ef;
}

.fb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.fb-close {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #9aa9b8;
  cursor: pointer;
  padding: 2px 4px;
}

.fb-close:hover {
  color: #5b7086;
}

.fb-tip {
  margin: 0 0 10px;
  font-size: 12px;
  color: #7b8c9d;
}

.fb-text,
.fb-contact {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #dbe6f2;
  border-radius: 9px;
  background: #f8fbfe;
  font: inherit;
  color: inherit;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fb-text {
  min-height: 84px;
  margin-bottom: 8px;
}

.fb-contact {
  margin-bottom: 10px;
}

.fb-text:focus,
.fb-contact:focus {
  border-color: #7fb8dc;
  background: #fff;
}

.fb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fb-count {
  font-size: 11px;
  color: #9aa9b8;
}

.fb-submit {
  border: 0;
  border-radius: 999px;
  padding: 7px 20px;
  background: #4b97dd;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.fb-submit:hover {
  background: #2f7fd0;
}

.fb-submit[disabled] {
  opacity: 0.6;
  cursor: default;
}

.fb-msg {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12px;
}

.fb-msg[hidden] {
  display: none;
}

.fb-msg.is-ok {
  background: #e8f7ee;
  color: #1f7a45;
}

.fb-msg.is-err {
  background: #fdecec;
  color: #b03a3a;
}
