/* 意见反馈和管理员收件箱共用的版式，颜色沿用国战资料台的主题。 */
.feedback-page {
  max-width: 864px;
  padding-bottom: 48px;
}

.feedback-intro { padding-bottom: 27px; }
.feedback-intro .intro-copy { max-width: 100%; font-size: 15px; }

.feedback-panel {
  padding: clamp(18px, 4.5vw, 34px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 18px 50px var(--shadow);
}

.feedback-panel form, #feedback-form, .feedback-field-grid {
  display: grid;
  gap: 23px;
}

.feedback-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feedback-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.feedback-field label { font-size: 15px; color: var(--ink); font-weight: 600; }
.feedback-required, .feedback-optional { margin-left: 5px; font-size: 12px; }
.feedback-required { color: var(--primary-strong); }
.feedback-optional { color: var(--muted); font-weight: 400; }

.feedback-field input, .feedback-field textarea {
  width: 100%;
  min-height: 46px;
  min-width: 0;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--canvas-raised);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
}

.feedback-field textarea { min-height: 160px; resize: vertical; }
.feedback-field :is(input,textarea)::placeholder { color: var(--muted); opacity: 1; }
.feedback-field textarea:focus-visible,
.feedback-entry summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.feedback-field [aria-invalid=true] { border-color: var(--error); }

.feedback-field input[type=file] {
  padding: 4px;
  color: var(--ink-soft);
  cursor: pointer;
}

.feedback-field input::file-selector-button {
  min-height: 36px;
  margin-inline-end: 8px;
  padding-inline: 10px;
  color: var(--ink-soft);
  background: var(--hover);
  border: 1px solid var(--line);
  border-radius: 5px;
  font: inherit;
  cursor: pointer;
}

.feedback-help, .feedback-error, .feedback-entry-meta, .inbox-status { font-size: 13px; line-height: 1.7; }
.feedback-help, .feedback-entry-meta, .inbox-status { color: var(--muted); }
.feedback-error { color: var(--error); }
.screenshot-preview { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; }
.screenshot-preview img { display: block; max-width: min(100%, 240px); max-height: 160px; border-radius: 6px; }
.screenshot-preview button, .feedback-actions button, .feedback-inbox button { min-height: 44px; }
.feedback-actions { display: flex; justify-content: flex-end; }

.feedback-result { width: min(420px,calc(100vw - 32px)); }
.feedback-result h2 { font-size: 23px; }
.feedback-result p { margin: 12px 0 22px; color: var(--ink-soft); line-height: 1.7; }

.inbox-account-actions { flex: none; }
.inbox-account-actions button { border-color: var(--line); }
.inbox-panel { display: grid; gap: 14px; }
#inbox-tools { justify-self: end; }
#inbox-more { justify-self: center; }

.feedback-entry { border-top: 1px solid var(--line); }
.feedback-entry:last-child { border-bottom: 1px solid var(--line); }
.feedback-entry summary {
  min-height: 60px;
  padding: 12px 10px;
  color: var(--ink);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.feedback-entry summary:hover { background: var(--hover); }
.feedback-entry-title { font-size: 15px; font-weight: 600; }
.feedback-entry-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 3px; }
.feedback-unread { color: var(--error); font-weight: 700; }
.feedback-entry-body { display: grid; gap: 14px; padding: 10px 12px 18px; overflow-wrap: anywhere; }
.feedback-entry-content { color: var(--ink); line-height: 1.75; white-space: pre-wrap; }
.feedback-entry-contact { color: var(--ink-soft); font-size: 14px; }
.feedback-attachment { width: fit-content; max-width: 100%; color: var(--accent); }
.feedback-attachment img {
  display: block;
  max-width: min(100%, 560px);
  max-height: min(420px, 60dvh);
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.feedback-entry-body button { justify-self: start; }

@media(max-width: 650px) {
  .feedback-field-grid { grid-template-columns: 1fr; gap: 18px; }
  #feedback-form { gap: 18px; }
  .feedback-actions button { width: 100%; }
  .feedback-inbox .feedback-intro { flex-wrap: wrap; }
}
