/* 举报弹窗 — PC 622px */

.apt-report-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.apt-report-modal.is-open {
  display: flex;
}

body.apt-report-modal-open {
  overflow: hidden;
}

.apt-report-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.apt-report-modal__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 27px;
  width: 100%;
  max-width: 622px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 48px 27px;
  background: var(--bg-card);
  border-radius: 40px;
}

.apt-report-modal--h5 {
  display: none;
}

.apt-report-modal__body {
  display: flex;
  flex-direction: column;
  gap: 27px;
  width: 100%;
}

.apt-report-modal__title {
  margin: 0;
  text-align: center;
  font-size: 40px;
  line-height: 56px;
  font-weight: 500;
  color: var(--primary);
}

.apt-report-modal__section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  width: 100%;
}

.apt-report-modal__label {
  margin: 0;
  font-size: 28px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-title);
}

.apt-report-modal__reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.apt-report-modal__reason {
  padding: 13px 20px;
  border: none;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  cursor: pointer;
}

.apt-report-modal__reason.is-active {
  background: var(--tag-bg);
  color: var(--tag-red);
}

.apt-report-modal__uploads {
  display: flex;
  gap: 20px;
  width: 100%;
}

.apt-report-modal__upload {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 176px;
  border-radius: 10px;
  background: #f3f4f6;
  overflow: hidden;
  cursor: pointer;
}

.apt-report-modal__upload.has-image .apt-report-modal__upload-plus {
  display: none;
}

.apt-report-modal__upload.has-image .apt-report-modal__preview {
  display: block;
}

.apt-report-modal__upload-plus {
  font-size: 40px;
  line-height: 1;
  color: var(--text-placeholder);
}

.apt-report-modal__preview {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apt-report-modal__hint {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-placeholder);
}

.apt-report-modal__note {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: var(--primary);
}

.apt-report-modal__error {
  display: none;
  margin: 8px 0 0;
  color: #ef4444;
  font-size: 13px;
  line-height: 20px;
}

.apt-report-modal__error.is-visible {
  display: block;
}

.apt-report-modal__btn--submit:disabled,
.apt-report-modal__btn--submit.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.apt-report-modal__actions {
  display: flex;
  gap: 20px;
  width: 100%;
}

.apt-report-modal__btn {
  flex: 1;
  padding: 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 25px;
  line-height: 1.4;
  font-weight: 500;
  cursor: pointer;
}

.apt-report-modal__btn--cancel {
  background: #f3f4f6;
  color: var(--text-secondary);
}

.apt-report-modal__btn--submit {
  background: var(--primary);
  color: #fff;
}

.apt-report-modal__btn--submit:hover {
  opacity: 0.92;
}

/* ===== H5: apt-report-modal-h5.css ===== */

/* 举报弹窗 — H5 底部抽屉 */

@media (max-width: 767px) {
  .apt-report-modal {
    align-items: flex-end;
    padding: 0;
  }

  .apt-report-modal--pc {
    display: none !important;
  }

  .apt-report-modal--h5 {
    display: flex;
  }

  .apt-report-modal__dialog {
    max-width: none;
    width: 100%;
    max-height: min(90vh, 720px);
    gap: 0;
    padding: 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
  }

  .apt-report-modal__head {
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px;
  }

  .apt-report-modal__head-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-title);
  }

  .apt-report-modal__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--text-placeholder);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
  }

  .apt-report-modal__body {
    gap: 16px;
    padding: 0 16px 16px;
    overflow: auto;
  }

  .apt-report-modal__section {
    gap: 8px;
  }

  .apt-report-modal__label {
    font-size: 14px;
    font-weight: 500;
  }

  .apt-report-modal__reasons {
    gap: 8px;
  }

  .apt-report-modal__reason {
    padding: 8px 12px;
    font-size: 12px;
  }

  .apt-report-modal__uploads {
    gap: 12px;
  }

  .apt-report-modal__upload {
    height: 106px;
    border-radius: 6px;
  }

  .apt-report-modal__upload-plus {
    font-size: 24px;
  }

  .apt-report-modal__hint,
  .apt-report-modal__note {
    font-size: 12px;
    line-height: 1.5;
  }

  .apt-report-modal__actions {
    gap: 12px;
  }

  .apt-report-modal__btn {
    padding: 12px;
    font-size: 15px;
  }

  .apt-report-modal__home-bar {
    position: relative;
    width: 100%;
    height: 21px;
    flex-shrink: 0;
    background: var(--bg-card);
  }

  .apt-report-modal__home-bar::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 135px;
    height: 5px;
    margin-left: -67.5px;
    border-radius: 100px;
    background: #3d3d3d;
  }
}
