/* 投诉反馈浮层（聚合站与分站共用） */
.portal-feedback-rail {
  position: fixed;
  left: 0;
  top: 40%;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  pointer-events: auto;
}
.portal-feedback.is-collapsed .portal-feedback-rail { display: none; }
.portal-feedback-fab-hide {
  margin: 0 0 4px 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(120, 120, 120, .55);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 2;
}
.portal-feedback-fab {
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: .2em;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: #e53935;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  padding: 20px 12px;
  min-width: 40px;
  min-height: 112px;
  cursor: pointer;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, .12);
  position: relative;
  z-index: 1;
  -webkit-user-select: none;
  user-select: none;
}
.portal-feedback-fab:hover { background: #d32f2f; }
.portal-feedback-mask {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
}
.portal-feedback-mask[hidden] { display: none !important; }
.portal-feedback-dialog {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
  padding: 8px 28px 24px;
}
.portal-feedback-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.portal-feedback-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 18px;
}
.portal-feedback-tabs button {
  border: 0;
  background: transparent;
  padding: 14px 2px 10px;
  font-size: 16px;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.portal-feedback-tabs button.is-active {
  color: #1f6feb;
  font-weight: 650;
  border-bottom-color: #1f6feb;
}
.portal-feedback-form { display: flex; flex-direction: column; gap: 8px; }
.portal-feedback-form[hidden] { display: none !important; }
.portal-feedback-label {
  margin-top: 6px;
  font-size: 14px;
  color: #222;
}
.portal-feedback-label span { color: #e53935; }
.portal-feedback-form input,
.portal-feedback-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  outline: 0;
  font-family: inherit;
}
.portal-feedback-form input:focus,
.portal-feedback-form textarea:focus {
  border-color: #1f6feb;
  box-shadow: 0 0 0 2px rgba(31, 111, 235, .12);
}
.portal-feedback-submit {
  margin-top: 14px;
  border: 0;
  border-radius: 8px;
  background: #1f6feb;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  min-height: 44px;
  cursor: pointer;
}
.portal-feedback-submit:hover { background: #1a5fd0; }
.portal-feedback-note {
  margin: 10px 0 0;
  color: #999;
  font-size: 12px;
  line-height: 1.5;
}
.portal-feedback-toast {
  margin: 12px 0 0;
  padding: 8px 10px;
  border-radius: 4px;
  background: #eef6d8;
  color: #5a6b1f;
  font-size: 13px;
  text-align: center;
}
.portal-feedback-toast.is-error {
  background: #fdecea;
  color: #b71c1c;
}
body.portal-feedback-open { overflow: hidden; }

@media (max-width: 640px) {
  .portal-feedback-fab { font-size: 13px; padding: 14px 8px; }
  .portal-feedback-dialog { padding: 8px 18px 20px; }
  .portal-feedback-close { top: -10px; right: -6px; }
}
