/* 联系与支持 · 添加到桌面：沿用淡青纸感，不引入新的视觉体系。 */
.support-dialog {
  width: min(520px, calc(100vw - 28px));
  max-width: 100%;
  max-height: min(86vh, 760px);
  padding: 0;
  border: 1px solid var(--ui-line, #e3e4dc);
  border-radius: 14px;
  background: var(--ui-paper, #fffefa);
  color: var(--ui-ink, #283b36);
  box-shadow: 0 24px 70px rgb(35 62 65 / 22%);
}
.support-dialog::backdrop { background: rgb(35 50 52 / 34%); backdrop-filter: blur(2px); }
.support-dialog[open] { display: flex; flex-direction: column; }
.support-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--ui-line, #e3e4dc);
  background: var(--ui-soft, #edf5f3);
}
.support-dialog > header .eyebrow {
  margin: 0 0 5px;
  color: var(--ui-muted, #637572);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
}
.support-dialog > header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 650;
  color: #315f68;
}
.support-dialog > header p.support-subtitle {
  margin: 6px 0 0;
  color: var(--ui-muted, #637572);
  font-size: 12px;
  line-height: 1.7;
}
.support-close {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ui-muted, #637572);
  cursor: pointer;
}
.support-close:hover { background: rgb(49 95 104 / 9%); color: #315f68; }
.support-close .icon { width: 18px; height: 18px; }
.support-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 24px 26px;
}
.support-loading,
.support-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 190px;
  padding: 24px;
  border: 1px dashed var(--ui-line, #e3e4dc);
  border-radius: 12px;
  background: var(--ui-soft, #edf5f3);
  color: var(--ui-muted, #637572);
  font-size: 13px;
  text-align: center;
}
.support-empty strong { color: #315f68; font-size: 15px; font-weight: 600; }
.support-empty p { margin: 0; max-width: 34ch; line-height: 1.8; }
.support-channel-frame {
  display: grid;
  place-items: center;
  min-height: 250px;
  padding: 18px;
  border: 1px solid var(--ui-line, #e3e4dc);
  border-radius: 12px;
  background: #fff;
}
.support-channel-frame img {
  display: block;
  width: min(100%, 300px);
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.support-channel-note {
  margin: 14px 0 0;
  color: var(--ui-muted, #637572);
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
}
.support-retry {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ui-line, #e3e4dc);
  border-radius: 10px;
  background: #fffefa;
  color: #315f68;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.support-retry:hover { background: var(--ui-soft, #edf5f3); }
.support-form { display: grid; gap: 14px; }
.support-field { display: grid; gap: 6px; }
.support-field > span { color: #315f68; font-size: 12px; font-weight: 600; }
.support-field > span small { color: var(--ui-muted, #637572); font-weight: 400; }
.support-field textarea,
.support-field input {
  width: 100%;
  border: 1px solid var(--ui-line, #e3e4dc);
  border-radius: 10px;
  background: #fffefa;
  color: var(--ui-ink, #283b36);
  font: inherit;
  font-size: 13px;
  line-height: 1.75;
}
.support-field textarea { min-height: 132px; padding: 11px 13px; resize: vertical; }
.support-field input { min-height: 42px; padding: 8px 13px; }
.support-field textarea:focus,
.support-field input:focus { outline: 2px solid rgb(49 95 104 / 32%); outline-offset: 1px; border-color: #7ba0a5; }
.support-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.support-count { color: var(--ui-muted, #637572); font-size: 11px; font-variant-numeric: tabular-nums; }
.support-submit {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #315f68;
  border-radius: 10px;
  background: #315f68;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.support-submit:hover { background: #274f57; }
.support-submit:disabled { opacity: .55; cursor: wait; }
.support-feedback-message {
  margin: 0;
  min-height: 20px;
  color: #843f30;
  font-size: 12px;
  line-height: 1.7;
}
.support-feedback-message[data-state="ok"] { color: #2f6b50; }
.support-history { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ui-line, #e3e4dc); }
.support-history-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.support-history-head h3 { margin: 0; font-size: 13px; font-weight: 650; color: #315f68; }
.support-history-head span { color: var(--ui-muted, #637572); font-size: 11px; }
.support-history-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.support-history-list li {
  padding: 11px 13px;
  border: 1px solid var(--ui-line, #e3e4dc);
  border-radius: 10px;
  background: var(--ui-soft, #edf5f3);
}
.support-history-content { margin: 0; color: var(--ui-ink, #283b36); font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-history-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; color: var(--ui-muted, #637572); font-size: 10px; }
.support-history-status { padding: 1px 7px; border: 1px solid var(--ui-line, #dfe4df); border-radius: 999px; background: #fffefa; white-space: nowrap; }
.support-history-status[data-status="resolved"] { color: #2f6b50; border-color: #c8ddd1; background: #eef7f2; }
.support-privacy { margin: 14px 0 0; color: var(--ui-muted, #637572); font-size: 11px; line-height: 1.8; }
.support-install-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--ui-line, #e3e4dc);
  border-radius: 10px;
  background: var(--ui-soft, #edf5f3);
  color: #315f68;
  font-size: 12px;
  line-height: 1.8;
}
.support-install-platform {
  margin: 0 0 8px;
  color: #315f68;
  font-size: 13px;
  font-weight: 650;
}
.support-install-steps { margin: 0; padding: 0 0 0 20px; color: var(--ui-ink, #283b36); font-size: 12px; line-height: 2; }
.support-install-steps li::marker { color: #7ba0a5; }
.support-install-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.support-install-primary {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #315f68;
  border-radius: 10px;
  background: #315f68;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.support-install-primary:hover { background: #274f57; }
.support-install-secondary {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ui-line, #e3e4dc);
  border-radius: 10px;
  background: #fffefa;
  color: #315f68;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.support-install-secondary:hover { background: var(--ui-soft, #edf5f3); }

@media (max-width: 560px) {
  .support-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 24px);
    border-radius: 12px;
  }
  .support-dialog > header { padding: 17px 18px 13px; }
  .support-dialog > header h2 { font-size: 18px; }
  .support-body { padding: 17px 18px 22px; }
  .support-channel-frame { min-height: 220px; padding: 12px; }
  .support-form-foot { align-items: stretch; }
  .support-submit { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .support-dialog::backdrop { backdrop-filter: none; }
}
