.request-body {
  /* 与首页"谁在用"同源：深墨底 + 一层橙光，不再叠三色 */
  background-color: #16181d;
  background-image:
    radial-gradient(56% 66% at 88% 2%, rgba(255, 90, 54, 0.16) 0%, rgba(255, 90, 54, 0) 64%);
  background-size: auto;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.request-left > * {
  max-width: 522px;
}
.request-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
@media (max-width: 1000px) {
  .request-left {
    display: none;
  }
  .request-right {
    justify-content: center;
  }
}
.request-body .h2-ai {
  margin: 0 5px;
  font-family:
    Microsoft YaHei UI,
    Microsoft YaHei UI;
  font-weight: bold;
  font-size: 26px;
  text-align: left;
  font-style: normal;
  text-transform: none;
  background-image: linear-gradient(100deg, #ff5a36 0%, #ff5a36 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.character-container {
  display: grid;
  /* 4列等分，基础网格 */
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(3, 160px);
  gap: 10px;
}
.character-container > div {
  padding-top: 26px;
  padding-left: 30px;
  border-radius: 25px;
  overflow: hidden;
}
.character-container h2 {
  font-weight: bold;
  font-size: 20px;
  line-height: 30px;
  background-image: linear-gradient(88deg, #ffffff 0%, #ffc4ac 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
/* 角色卡统一为深色玻璃：不再叠旧照片，避免棕色调混进来 */
.item-1 {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.item-2 {
  grid-row: span 2;
  /* 这张卡的平台图标画在底图里，必须保留底图；
     叠一层深色把原图的棕调压成中性灰 */
  background-image:
    linear-gradient(180deg, rgba(22, 24, 29, 0.42) 0%, rgba(22, 24, 29, 0.62) 100%),
    url(../images/request/character-bg-2.webp);
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, cover;
  /* 原图是暖棕照片，去饱和后与其余三张深灰卡统一；
     白字不受灰度影响，图标保留形状层次 */
  filter: grayscale(0.92) brightness(0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.item-3 {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.character-container .item-4 {
  padding-top: 0px;
  grid-column: span 2;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.form-wrap {
  max-width: 512px;
  width: 100%;
  padding: 32px;
  background-color: #ffffff;
  border-radius: 12px;
  box-sizing: border-box;
}
.form-wrap .title-tip {
  color: rgba(0, 0, 0, 0.6);
}
.form-wrap label {
  margin-bottom: 0px;
}
.form-wrap input {
  height: 36px;
  line-height: 36px;
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #ececec;
  padding: 0 12px;
  transition: all 0.3s ease-in-out;
}
.form-wrap input:hover,
.form-wrap input:focus {
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.12);
  border: 1px solid #ff5a36;
}
.form-wrap input::-webkit-input-placeholder {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.4);
}
.btn-submit {
  width: 100%;
  height: 48px;
  font-size: 18px;
  line-height: 48px;
  text-align: center;
  color: #ffffff;
  background: var(--grad-hot);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-submit:not(:disabled):hover {
  box-shadow: 0 8px 26px rgba(255, 90, 54, 0.32);
}

.btn-submit:disabled {
  opacity: 0.7; /* 变淡 */
  cursor: pointer;
}

/* ================= 提交结果弹窗 ================= */
.qd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.qd-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.qd-modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(16, 18, 24, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.qd-modal__card {
  position: relative;
  width: 100%;
  max-width: 384px;
  margin: auto;
  padding: 32px 28px 26px;
  background: #ffffff;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(17, 17, 17, 0.18), 0 2px 8px rgba(17, 17, 17, 0.06);
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

.qd-modal.is-open .qd-modal__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.qd-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.qd-modal.is-success .qd-modal__icon {
  background: var(--grad-hot);
  box-shadow: 0 10px 24px rgba(255, 90, 54, 0.28);
}

.qd-modal.is-error .qd-modal__icon {
  background: linear-gradient(135deg, #f0503a 0%, #d93b2b 100%);
  box-shadow: 0 10px 24px rgba(217, 59, 43, 0.26);
}

.qd-modal__icon svg {
  width: 26px;
  height: 26px;
  display: none;
}

.qd-modal.is-success .qd-i-check,
.qd-modal.is-error .qd-i-alert {
  display: block;
}

.qd-modal__title {
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 27px;
  font-weight: 700;
  color: #111111;
}

.qd-modal__desc {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 22px;
  color: #6b7280;
  word-break: break-word;
  max-height: 45vh;
  overflow-y: auto;
}

.qd-modal__btn {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 24px;
  padding: 0 18px;
  border: 0;
  border-radius: 22px;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--grad-hot);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.qd-modal.is-success .qd-modal__btn:hover {
  box-shadow: 0 8px 22px rgba(255, 90, 54, 0.32);
}

.qd-modal.is-error .qd-modal__btn {
  background: #f2f3f5;
  color: #333333;
}

.qd-modal.is-error .qd-modal__btn:hover {
  background: #e9eaee;
}

.qd-modal__btn:active {
  transform: translateY(1px);
}

.qd-modal__btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* 打开弹窗时锁定背景滚动（避免抖动，补偿滚动条宽度） */
body.qd-lock {
  overflow: hidden;
}

@media (max-width: 576px) {
  .qd-modal {
    padding: 18px;
  }

  .qd-modal__card {
    max-width: 100%;
    padding: 26px 20px 22px;
    border-radius: 18px;
  }

  .qd-modal__icon {
    width: 50px;
    height: 50px;
  }

  .qd-modal__icon svg {
    width: 23px;
    height: 23px;
  }

  .qd-modal__title {
    margin-top: 14px;
    font-size: 17px;
    line-height: 25px;
  }

  .qd-modal__desc {
    font-size: 13.5px;
    line-height: 21px;
  }

  .qd-modal__btn {
    height: 46px;
    margin-top: 20px;
  }
}

/* 横屏手机等矮屏：顶部对齐，允许整体滚动 */
@media (max-height: 520px) {
  .qd-modal {
    align-items: flex-start;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .qd-modal__card {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qd-modal,
  .qd-modal__card,
  .qd-modal__btn {
    transition: none !important;
  }
}
