/* 官网主页右下角提交反馈浮动窗 */
.official-feedback-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.official-feedback-fab {
  min-width: 112px;
  height: 48px;
  border: none;
  border-radius: 999px;
  padding: 0 18px;
  background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.36);
  transition: transform 0.15s, box-shadow 0.15s;
}

.official-feedback-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 102, 204, 0.48);
}

.official-feedback-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  width: 380px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  border: 1px solid #e8edf3;
}

.official-feedback-panel.hidden {
  display: none;
}

.official-feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(90deg, #004d99, #0066cc);
  color: #fff;
}

.official-feedback-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.official-feedback-close {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.official-feedback-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.official-feedback-body {
  padding: 16px;
  background: #f7faff;
}

.official-feedback-field {
  margin-bottom: 12px;
}

.official-feedback-field label {
  display: block;
  margin-bottom: 6px;
  color: #1f2a3d;
  font-weight: 700;
}

.official-feedback-required {
  color: #d93025;
  margin-left: 2px;
}

.official-feedback-field input,
.official-feedback-field select,
.official-feedback-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d7e2;
  border-radius: 10px;
  padding: 10px 12px;
  color: #1f2a3d;
  background: #fff;
  font: inherit;
  outline: none;
}

.official-feedback-field textarea {
  min-height: 108px;
  resize: vertical;
}

.official-feedback-field input:focus,
.official-feedback-field select:focus,
.official-feedback-field textarea:focus {
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.official-feedback-count {
  margin-top: 4px;
  color: #8a96a8;
  font-size: 12px;
  text-align: right;
}

.official-feedback-message {
  min-height: 20px;
  margin-bottom: 10px;
  font-size: 13px;
}

.official-feedback-message.is-error {
  color: #d93025;
}

.official-feedback-message.is-success {
  color: #118847;
}

.official-feedback-submit {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  background: #0066cc;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.official-feedback-submit:hover:not(:disabled) {
  background: #004d99;
}

.official-feedback-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 480px) {
  .official-feedback-root {
    right: 12px;
    bottom: 12px;
  }

  .official-feedback-panel {
    width: calc(100vw - 24px);
  }
}
