/* 意见反馈 / 内容纠错 —— 设计稿：CoDesign「PC端需求」1.1 意见反馈、1.2.1 输入弹窗 */

/* ---------- 悬浮栏「反馈」入口（to-top.html） ---------- */
/* 切图 28x54 @2x；设计稿：距悬浮栏左边 21px、顶 18px，与下方二维码间距 37px */
.top .feedback_entry {
  position: relative;
  margin: 18px 17px 37px;
  width: 36px;
  text-align: center;
  cursor: pointer;
}

.top .feedback_entry img {
  display: block;
  width: 28px;
  height: 54px;
  margin: 0 auto;
}

.top .feedback_entry:hover {
  opacity: 0.8;
}

/* 分割线（设计稿 矩形 3：50x1 #E3E2E2，居中于悬浮栏，落在 37px 间距中间） */
.top .feedback_entry::after {
  display: block;
  content: "";
  position: absolute;
  left: -7px;
  bottom: -18px;
  width: 50px;
  height: 1px;
  background-color: #E3E2E2;
}

/* ---------- 弹窗公共 ---------- */
.fb-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* 高于悬浮栏 .top(10003)，低于 layer 弹层 */
  z-index: 10004;
}

.fb-modal .fb-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.39);
}

.fb-modal .fb-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 900px;
  max-height: 90vh;
  padding: 24px 48px;
  overflow-y: auto;
  background: #ffffff;
  box-sizing: border-box;
  transform: translate(-50%, -50%);
}

.fb-modal .fb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 28px;
  height: 28px;
  font-size: 26px;
  line-height: 26px;
  color: #999999;
  text-align: center;
  cursor: pointer;
}

.fb-modal .fb-close::after {
  display: block;
  content: "×";
}

.fb-modal .fb-close:hover {
  color: #0170f5;
}

.fb-modal .fb-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 28px;
  color: #333333;
  text-align: center;
}

.fb-modal .fb-label {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: #333333;
}

.fb-modal .fb-origin {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
  color: #333333;
}

.fb-modal .fb-origin .fb-origin-text {
  word-break: break-all;
}

/* ---------- 单选 ---------- */
.fb-modal .fb-options {
  margin-top: 16px;
}

.fb-modal .fb-option {
  display: block;
  height: 24px;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #333333;
  cursor: pointer;
}

.fb-modal .fb-option:last-child {
  margin-bottom: 0;
}

.fb-modal .fb-option input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.fb-modal .fb-option .fb-radio {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 12px;
  vertical-align: -4px;
  border: 2px solid #cccccc;
  border-radius: 50%;
  box-sizing: border-box;
}

.fb-modal .fb-option input:checked + .fb-radio {
  position: relative;
  border-color: #2678ff;
}

.fb-modal .fb-option input:checked + .fb-radio::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  content: "";
  background: #2678ff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- 多行输入 ---------- */
.fb-modal .fb-textarea-wrap {
  position: relative;
  margin-top: 12px;
  background: #f7f7f7;
}

.fb-modal .fb-textarea {
  display: block;
  width: 100%;
  height: 240px;
  padding: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #333333;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  outline: none;
  resize: none;
}

.fb-modal .fb-textarea::-webkit-input-placeholder {
  color: #999999;
}

.fb-modal .fb-counter {
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #999999;
}

/* ---------- 图片上传 ---------- */
.fb-modal .fb-upload {
  margin-top: 12px;
  font-size: 0;
}

.fb-modal .fb-upload-item,
.fb-modal .fb-upload-add {
  position: relative;
  display: inline-block;
  width: 80px;
  height: 80px;
  margin: 0 12px 12px 0;
  vertical-align: top;
  background: #f7f7f7;
  box-sizing: border-box;
}

.fb-modal .fb-upload-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-modal .fb-upload-item .fb-upload-del {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 18px;
  color: #ffffff;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  cursor: pointer;
}

.fb-modal .fb-upload-add {
  border: 1px dashed #cfcfcf;
  cursor: pointer;
}

.fb-modal .fb-upload-add input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.fb-modal .fb-upload-add i::before,
.fb-modal .fb-upload-add i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 2px;
  content: "";
  background: #c4c4c4;
  border-radius: 100px;
  transform: translate(-50%, -50%);
}

.fb-modal .fb-upload-add i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.fb-modal .fb-upload-add.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fb-modal .fb-tip {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #333333;
}

/* ---------- 提交 ---------- */
.fb-modal .fb-submit {
  display: block;
  width: 360px;
  height: 48px;
  margin: 20px auto 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 48px;
  color: #ffffff;
  text-align: center;
  background: linear-gradient(90deg, #007cff 0%, #004cf5 100%);
  cursor: pointer;
}

.fb-modal .fb-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- 内容纠错浮出按钮 ---------- */
.fb-correct-btn {
  position: absolute;
  /* 高于悬浮栏 .top(10003)，避免正文右侧选中时被二维码挡住 */
  z-index: 10004;
  display: none;
  height: 34px;
  padding: 0 14px;
  font-size: 14px;
  line-height: 34px;
  color: #ffffff;
  background: #0170f5;
  border-radius: 4px;
  cursor: pointer;
}

.fb-correct-btn:hover {
  background: #0064c9;
}

body.fb-modal-open {
  overflow: hidden;
}
