/* 从对应 Web SCSS 同步，请运行 npm run sync:styles -w web-native。 */
.feedback-page {
  --fb-bg: #f7f7f7;
  --fb-card: #fff;
  --fb-title: #000;
  --fb-muted: #b2b2b2;
  --fb-gap: 12rem;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0 16rem calc(88rem + env(safe-area-inset-bottom));
  background: var(--fb-bg);
  font-family: var(--font-ui);
  color: var(--fb-title);
}

.feedback-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44rem;
  margin: 0 -16rem;
  padding: env(safe-area-inset-top, 0rem) 16rem 0;
}

.feedback-page__back {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 24rem;
  height: 24rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.feedback-page__back img {
  display: block;
  width: 24rem;
  height: 24rem;
}

.feedback-page__title {
  flex: 1;
  margin: 0;
  font-size: 16rem;
  font-weight: 600;
  line-height: 22rem;
  color: var(--fb-title);
  text-align: center;
}

.feedback-page__header-spacer {
  width: 24rem;
  height: 24rem;
  flex-shrink: 0;
}

.feedback-page__body {
  display: flex;
  flex-direction: column;
  gap: var(--fb-gap);
  padding-top: 8rem;
}

.feedback-page__content-wrap {
  position: relative;
  background: var(--fb-card);
  border-radius: 12rem;
  height: 160rem;
  overflow: hidden;
  padding: 12rem 16rem 28rem;
  box-sizing: border-box;
}

.feedback-page__textarea {
  width: 100%;
  height: 100%;
  border: 0;
  resize: none;
  outline: none;
  font-family: inherit;
  font-size: 16rem;
  font-weight: 500;
  line-height: 20rem;
  color: var(--fb-title);
  background: transparent;
}

.feedback-page__textarea::placeholder {
  color: var(--fb-muted);
  font-weight: 500;
}

.feedback-page__counter {
  position: absolute;
  right: 16rem;
  bottom: 8rem;
  font-size: 12rem;
  font-weight: 400;
  line-height: 16rem;
  color: var(--fb-muted);
  text-align: right;
  pointer-events: none;
}

.feedback-page__email {
  width: 100%;
  height: 48rem;
  border: 0;
  outline: none;
  background: var(--fb-card);
  border-radius: 12rem;
  padding: 0 16rem;
  font-family: inherit;
  font-size: 16rem;
  font-weight: 500;
  line-height: 20rem;
  color: var(--fb-title);
  box-sizing: border-box;
}

.feedback-page__email::placeholder {
  color: var(--fb-muted);
  font-weight: 500;
}

.feedback-page__images {
  display: flex;
  flex-wrap: wrap;
  gap: 8rem;
  width: 100%;
}

.feedback-page__thumb {
  position: relative;
  width: 80rem;
  height: 80rem;
  border-radius: 12rem;
  overflow: visible;
  background: var(--fb-card);
  flex-shrink: 0;
}

.feedback-page__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12rem;
}

.feedback-page__thumb-remove {
  position: absolute;
  top: -2rem;
  right: -2rem;
  width: 16rem;
  height: 16rem;
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 1;
}

.feedback-page__thumb-remove img {
  width: 16rem;
  height: 16rem;
  border-radius: 0;
  object-fit: contain;
}

.feedback-page__add {
  width: 80rem;
  height: 80rem;
  border: 0;
  border-radius: 12rem;
  background: var(--fb-card);
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.feedback-page__add img {
  display: block;
  width: 24rem;
  height: 24rem;
}

.feedback-page__error {
  margin: 0;
  font-size: 12rem;
  line-height: 16rem;
  color: #dc2626;
}

.feedback-page__submit-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  padding: 12rem 24rem calc(12rem + env(safe-area-inset-bottom));
  box-sizing: border-box;
  background: linear-gradient(to top, var(--fb-bg) 65%, transparent);
  pointer-events: none;
}

.feedback-page__submit {
  pointer-events: auto;
  width: 100%;
  height: 44rem;
  border: 0;
  border-radius: 20rem;
  padding: 0;
  font-family: inherit;
  font-size: 18rem;
  font-weight: 600;
  line-height: 22rem;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(241, 110, 78, 0.9) 0%, rgba(255, 54, 59, 0.89) 54.8%, rgba(243, 86, 117, 0.88) 100%);
}

.feedback-page__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
