.floating-actions {
  position: fixed;
  right: 0;
  top: 50%;
  z-index: 72;
  display: grid;
  gap: 8px;
  transform: translateY(-50%);
}

.feedback-fab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  padding: 10px 6px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 52px rgba(20, 29, 45, 0.12);
  color: #566071;
  cursor: pointer;
  font: inherit;
  text-orientation: mixed;
  transition: transform 160ms ease, box-shadow 160ms ease, color 160ms ease;
  writing-mode: vertical-rl;
  backdrop-filter: blur(20px) saturate(1.08);
}

.feedback-fab:hover {
  color: var(--blue, #0a84ff);
  box-shadow: 0 24px 60px rgba(20, 29, 45, 0.16);
  transform: translateX(-2px);
}

.feedback-fab:focus-visible {
  outline: 3px solid rgba(10, 132, 255, 0.25);
  outline-offset: 2px;
}

.feedback-fab span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feedback-fab-icon {
  display: block;
  width: 16px;
  height: 16px;
}

.feedback-fab--bookmark,
.feedback-fab--cooperation {
  width: 36px;
  min-height: 42px;
  padding: 8px 6px;
  text-orientation: initial;
  writing-mode: initial;
}

.feedback-fab--bookmark {
  background: rgba(250, 251, 253, 0.96);
}

.feedback-fab--cooperation {
  color: #397ed5;
}

.feedback-fab--cooperation::after {
  position: absolute;
  top: 50%;
  right: 44px;
  padding: 6px 8px;
  border-radius: 7px;
  background: #2d3b51;
  color: #fff;
  content: "合作联系";
  font-size: 11px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.feedback-fab--cooperation:hover::after,
.feedback-fab--cooperation:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.cooperation-popover {
  position: fixed;
  z-index: 73;
  top: calc(50% + 76px);
  right: 46px;
  display: grid;
  gap: 11px;
  width: 218px;
  padding: 14px;
  border: 1px solid rgba(53, 93, 148, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 52px rgba(20, 29, 45, 0.14);
  color: #202838;
  transform: translateY(-50%);
  backdrop-filter: blur(18px);
}

.cooperation-popover[hidden],
.feedback-dialog[hidden],
.floating-action-toast[hidden] {
  display: none !important;
}

.cooperation-popover strong {
  font-size: 13px;
}

.cooperation-popover > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(53, 93, 148, 0.09);
  color: #667085;
  font-size: 12px;
}

.cooperation-popover button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue, #0a84ff);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.feedback-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.feedback-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.16);
  backdrop-filter: blur(8px);
}

.feedback-panel {
  position: absolute;
  top: 20px;
  right: 20px;
  bottom: 20px;
  width: min(420px, calc(100vw - 24px));
  padding: 22px;
  overflow-y: auto;
  border: 1px solid rgba(216, 223, 233, 0.88);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
  color: #202838;
}

.feedback-panel-head {
  margin-bottom: 18px;
}

.feedback-panel-head strong {
  display: block;
  font-size: 24px;
  line-height: 1.2;
}

.feedback-panel-head span {
  display: block;
  margin-top: 8px;
  color: #6d7686;
  line-height: 1.5;
}

.feedback-form {
  display: grid;
  gap: 14px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  color: #576173;
  font-size: 13px;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dbe2ee;
  border-radius: 16px;
  background: rgba(250, 252, 255, 0.96);
  color: #202838;
  font: inherit;
}

.feedback-status {
  padding: 12px 14px;
  border-radius: 14px;
  background: #eef4ff;
  color: #2853a5;
  font-size: 13px;
}

.feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.feedback-actions button {
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.feedback-actions .ghost-action {
  background: #f1f4f8;
  color: #657086;
}

.feedback-actions .primary-action {
  background: var(--blue, #0a84ff);
  color: #fff;
}

.floating-action-toast {
  position: fixed;
  z-index: 90;
  right: 24px;
  bottom: 24px;
  padding: 11px 15px;
  border-radius: 11px;
  background: #243247;
  box-shadow: 0 12px 32px rgba(20, 29, 45, 0.2);
  color: #fff;
  font-size: 13px;
}

@media (max-width: 720px) {
  .floating-actions {
    gap: 6px;
  }

  .feedback-fab {
    min-height: 88px;
    padding: 9px 6px;
  }

  .feedback-fab--bookmark,
  .feedback-fab--cooperation {
    width: 34px;
    min-height: 40px;
    padding: 8px 5px;
  }

  .cooperation-popover {
    right: 42px;
    width: 204px;
  }

  .feedback-panel {
    top: 12px;
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 20px;
    border-radius: 22px;
  }
}

