/* 意见反馈表单（仅 feedback.html 使用） */
.feedback-card {
  margin: 30px 0 8px;
  padding: 26px 28px 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(35, 75, 160, .07);
}
body.dark .feedback-card { box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }

.feedback-head { position: relative; display: flex; align-items: flex-start; gap: 14px; padding-right: 140px; }
.feedback-head-icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #2563eb;
  background: #eef4ff;
  border-radius: 12px;
}
.feedback-head-icon svg { width: 24px; height: 24px; }
body.dark .feedback-head-icon { background: #1c2740; color: #8ab4f8; }
.feedback-head h2 { margin: 0 0 4px; color: var(--ink); font-size: 22px; line-height: 1.3; font-weight: 600; }
.feedback-head-text p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.feedback-art { position: absolute; top: -4px; right: -6px; width: 130px; height: 64px; opacity: .9; }
body.dark .feedback-art { opacity: .35; }

.feedback-types { min-width: 0; margin: 24px 0 0; padding: 0; border: 0; }
.feedback-types legend { margin: 0 0 10px; padding: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
.type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.type-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 11px 13px;
  background: var(--paper);
  border: 1px solid #e1e6ef;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.type-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.type-option:hover { border-color: #b9c9e8; }
.type-option:has(input:checked) { background: #eef4ff; border-color: #2563eb; box-shadow: inset 0 0 0 1px #2563eb; }
.type-option:has(input:focus-visible) { outline: 2px solid #2563eb; outline-offset: 2px; }
body.dark .type-option { border-color: #333948; }
body.dark .type-option:has(input:checked) { background: #1b2540; border-color: #4f8bf7; box-shadow: inset 0 0 0 1px #4f8bf7; }
.type-icon { display: grid; flex-shrink: 0; place-items: center; width: 26px; height: 26px; color: #64748b; }
.type-icon svg { width: 20px; height: 20px; }
.type-option:has(input:checked) .type-icon { color: #2563eb; }
body.dark .type-option:has(input:checked) .type-icon { color: #8ab4f8; }
.type-text { min-width: 0; line-height: 1.35; }
.type-text strong { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.type-text small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.feedback-field { margin-top: 18px; }
.feedback-field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 14px; font-weight: 600; }
.required { color: #d93025; font-weight: 500; }
.feedback-field input,
.feedback-field textarea {
  width: 100%;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #dfe3ea;
  border-radius: 8px;
  font: 14px/1.6 Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.feedback-field input { height: 42px; padding: 0 13px; }
.feedback-field textarea { min-height: 112px; padding: 10px 13px 26px; line-height: 1.7; resize: vertical; }
.feedback-field input::placeholder,
.feedback-field textarea::placeholder { color: #9aa0a6; }
.feedback-field input:focus,
.feedback-field textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
body.dark .feedback-field input,
body.dark .feedback-field textarea { background: #151a24; border-color: #333948; }
body.dark .feedback-field input::placeholder,
body.dark .feedback-field textarea::placeholder { color: #6f7787; }
.textarea-wrap { position: relative; }
.counter { position: absolute; right: 12px; bottom: 8px; color: #9aa0a6; font-size: 12px; pointer-events: none; }

.input-with-icon { position: relative; }
.input-with-icon svg { position: absolute; top: 50%; left: 12px; width: 16px; height: 16px; color: #9aa0a6; transform: translateY(-50%); pointer-events: none; }
.input-with-icon input { padding-left: 37px; }

.captcha-row { display: flex; align-items: center; gap: 10px; }
.captcha-row input { flex: 1; min-width: 0; }
.captcha-img {
  display: block;
  flex-shrink: 0;
  width: 120px;
  height: 44px;
  background: #f8fafc;
  border: 1px solid #dfe3ea;
  border-radius: 6px;
  cursor: pointer;
  object-fit: cover;
}
body.dark .captcha-img { border-color: #333948; }
.captcha-refresh {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 5px;
  padding: 4px 2px;
  color: #2563eb;
  background: transparent;
  border: 0;
  font-size: 13px;
}
body.dark .captcha-refresh { color: #8ab4f8; }
.captcha-refresh:hover { text-decoration: underline; }
.captcha-refresh svg { width: 15px; height: 15px; }

.feedback-status { margin-top: 14px; font-size: 13px; line-height: 1.6; }
.feedback-status:empty { display: none; }
.feedback-status.is-error { color: #d93025; }
.feedback-status.is-success { color: #188038; }
body.dark .feedback-status.is-error { color: #f28b82; }
body.dark .feedback-status.is-success { color: #81c995; }

.feedback-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  margin-top: 18px;
  color: #fff;
  background: #2563eb;
  border: 0;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s;
}
.feedback-submit:hover { background: #1d4ed8; }
.feedback-submit:disabled { opacity: .65; cursor: default; }
.feedback-submit svg { width: 18px; height: 18px; }
.feedback-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.feedback-note svg { flex-shrink: 0; width: 13px; height: 13px; }

@media (max-width: 640px) {
  .feedback-card { padding: 20px 16px; border-radius: 12px; }
  .feedback-head { padding-right: 0; }
  .feedback-art { display: none; }
  .feedback-head-icon { width: 40px; height: 40px; }
  .type-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .captcha-row { flex-wrap: wrap; }
  .captcha-row input { flex: 1 1 100%; }
  .captcha-img { width: 108px; height: 40px; }
}
