:root { color-scheme: light; --bg: #f5f5f5; --panel: #fff; --ink: #303846; --muted: #999faa; --blue: #168cff; --line: #d5d9df; --red: #ff4d4f; --sans: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--ink); font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #087df0; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 10; left: 16px; top: 12px; padding: 10px 16px; background: var(--blue); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
main { width: min(100%, 720px); margin: auto; padding: 25px 30px 32px; }
.page-intro { margin: 0 0 34px; text-align: center; }
h1 { margin: 0; color: #252b35; font-size: 30px; line-height: 1.5; font-weight: 700; }
.intro-copy { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.form-card { padding: 30px; background: var(--panel); border-radius: 14px; box-shadow: 0 8px 26px rgba(26,36,51,.06); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.type-field > legend, .field > label { display: block; padding: 0; font-size: 14px; font-weight: 600; }
.required { color: var(--red); }
.types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0 16px; margin-top: 8px; }
.type-option { display: flex; align-items: center; gap: 7px; min-height: 40px; white-space: nowrap; cursor: pointer; font-size: 14px; }
.type-option input { width: 16px; height: 16px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.type-option:hover, .type-option:has(input:checked) { color: #087df0; }
.field { margin-top: 24px; }
.field-tip { margin: 9px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.field > input, .field textarea { display: block; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; font-size: 14px; line-height: 1.6; }
.field > input { min-height: 44px; }
.field textarea { height: 152px; min-height: 152px; resize: vertical; }
.field > input:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid #e6f2ff; outline-offset: 0; }
.field input::placeholder, .field textarea::placeholder { color: #bcc2cc; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; }
.submit { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; min-height: 44px; padding: 10px 24px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px rgba(22,140,255,.15); }
.submit:not(:disabled):hover { background: #087df0; }
.submit:disabled { background: #e7eaf0; color: #7b8493; box-shadow: none; cursor: not-allowed; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; }
.channel-note { display: flex; gap: 9px; margin: 0 0 24px; padding: 12px 14px; border: 1px solid #d7eaff; border-radius: 8px; background: #f3f9ff; overflow-wrap: anywhere; }
form[data-receiver="ready"] .channel-note:not(.has-message) { display: none; }
.status-dot { flex-shrink: 0; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--blue); }
.channel-note strong { color: #1766ae; font-size: 13px; font-weight: 600; }
.channel-note p { margin: 4px 0 0; color: #677587; font-size: 12px; }
.is-error { border-color: #f4d3d3; background: #fff6f6; }
.is-error strong { color: #c83939; }
.is-error .status-dot { background: var(--red); }
.website-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-card > p { overflow-wrap: anywhere; }
main.success-page { min-height: 100svh; width: 100%; display: grid; place-items: center; padding: 24px 16px; text-align: center; }
.success-message { margin: 0; font-size: clamp(16px, 4.3vw, 20px); line-height: 1.6; }
.success-message:focus { outline: none; }
@media (max-width: 699px) {
  main { padding: 25px 22px 30px; }
  .types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-card { padding: 26px; }
}
@media (max-width: 480px) {
  main { padding: 22px 16px max(24px, env(safe-area-inset-bottom, 0px)); }
  h1 { font-size: 28px; }
  .intro-copy { margin-top: 9px; font-size: 13px; }
  .page-intro { margin-bottom: 24px; }
  .form-card { padding: 25px 20px; border-radius: 12px; }
  .types { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
  .type-option { min-height: 44px; }
  .field > input, .field textarea { font-size: 16px; padding: 11px 12px; }
  .field textarea { height: 160px; }
  .field-tip { font-size: 12px; }
  .actions { margin-top: 26px; }
}
