.feedback-launcher,
.feedback-popover {
  z-index: 80;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: #102033;
  box-shadow: 0 18px 46px rgba(18, 66, 95, 0.16);
  backdrop-filter: blur(20px) saturate(1.15);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.feedback-launcher {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 9px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.feedback-launcher:hover,
.feedback-launcher:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 50px rgba(18, 66, 95, 0.22);
  outline: none;
}

.feedback-launcher-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1597d3, #35c999);
  box-shadow: 0 10px 22px rgba(21, 151, 211, 0.25);
}

.feedback-popover {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(78px, 7vw, 94px);
  width: min(520px, calc(100vw - 28px));
  padding: 14px;
}

.feedback-popover[hidden] {
  display: none;
}

.feedback-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.feedback-tab,
.feedback-submit,
.feedback-close {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.feedback-tab {
  flex: 1;
  color: #294359;
  background: transparent;
}

.feedback-tab.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1597d3, #35c999);
}

.feedback-panel {
  padding-top: 14px;
}

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

.feedback-panel h2,
.feedback-panel p,
.feedback-comment h3,
.feedback-comment p,
.feedback-reply p {
  margin: 0;
}

.feedback-panel h2 {
  color: #102033;
  font-size: 25px;
  line-height: 1.15;
}

.feedback-panel p {
  margin-top: 6px;
  color: #607286;
  line-height: 1.45;
}

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

.feedback-textarea {
  width: 100%;
  min-height: 126px;
  resize: none;
  padding: 13px 14px;
  border: 1px solid rgba(31, 75, 105, 0.16);
  border-radius: 8px;
  outline: none;
  color: #102033;
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  line-height: 1.55;
}

.feedback-textarea:focus,
.feedback-reply-input:focus {
  border-color: rgba(21, 151, 211, 0.42);
  box-shadow: 0 0 0 4px rgba(21, 151, 211, 0.12);
}

.feedback-submit {
  color: #fff;
  background: linear-gradient(135deg, #ff805c, #ffb16f);
  box-shadow: 0 12px 26px rgba(255, 128, 92, 0.22);
}

.feedback-status {
  min-height: 20px;
  color: #6c5523;
  font-size: 13px;
  line-height: 1.45;
}

.feedback-wall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.feedback-wall-head strong {
  color: #123c4b;
  font-size: 18px;
}

.feedback-wall-head span {
  color: #607286;
  font-size: 12px;
}

.feedback-message-list {
  display: grid;
  gap: 0;
  max-height: min(480px, calc(100vh - 248px));
  overflow: hidden auto;
  padding-right: 2px;
  border: 1px solid rgba(31, 75, 105, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.feedback-comment {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  padding: 14px;
  border-bottom: 1px solid rgba(31, 75, 105, 0.1);
}

.feedback-comment:last-child {
  border-bottom: 0;
}

.feedback-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #1597d3, #37c08f);
  box-shadow: 0 8px 18px rgba(21, 151, 211, 0.22);
  font-size: 17px;
  font-weight: 900;
}

.feedback-comment-main {
  min-width: 0;
}

.feedback-comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.feedback-meta {
  min-width: 0;
}

.feedback-meta h3 {
  color: #123c4b;
  font-size: 15px;
  line-height: 1.2;
}

.feedback-meta time,
.feedback-reply-meta time,
.feedback-actions span {
  color: #7b8c9a;
  font-size: 12px;
}

.feedback-comment-content {
  margin-top: 7px !important;
  color: #304b5f !important;
  font-size: 14px;
  line-height: 1.55 !important;
  word-break: break-word;
}

.feedback-tag {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  color: #0d6f66;
  background: rgba(53, 201, 153, 0.15);
  font-size: 11px;
  font-weight: 900;
}

.feedback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.feedback-action,
.feedback-reply-cancel,
.feedback-reply-submit {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.feedback-action {
  padding: 4px 9px;
  color: #157aa6;
  background: rgba(21, 151, 211, 0.1);
}

.feedback-replies {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding-left: 10px;
  border-left: 2px solid rgba(21, 151, 211, 0.16);
}

.feedback-reply {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(31, 75, 105, 0.08);
  border-radius: 8px;
  background: rgba(246, 251, 249, 0.76);
}

.feedback-reply-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #0d6f66;
  background: rgba(53, 201, 153, 0.18);
  font-size: 12px;
  font-weight: 900;
}

.feedback-reply-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.feedback-reply-meta strong {
  color: #27495c;
  font-size: 13px;
}

.feedback-reply p {
  margin-top: 4px !important;
  color: #526c7d !important;
  font-size: 13px;
  line-height: 1.45 !important;
  word-break: break-word;
}

.feedback-reply-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.feedback-reply-form[hidden] {
  display: none;
}

.feedback-reply-input {
  width: 100%;
  min-height: 66px;
  resize: none;
  padding: 9px 10px;
  border: 1px solid rgba(31, 75, 105, 0.14);
  border-radius: 8px;
  outline: none;
  color: #102033;
  background: rgba(255, 255, 255, 0.9);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.feedback-reply-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.feedback-reply-cancel {
  padding: 6px 12px;
  color: #607286;
  background: rgba(96, 114, 134, 0.1);
}

.feedback-reply-submit {
  padding: 6px 13px;
  color: #fff;
  background: linear-gradient(135deg, #1597d3, #35c999);
}

.feedback-empty {
  padding: 18px 14px;
  border-radius: 8px;
  color: #607286;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
  line-height: 1.5;
}

.feedback-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  color: #506477;
  background: rgba(255, 255, 255, 0.62);
}
