/* 支持 Sandy (support.html): one quiet centred column, phones first. Tokens come from tokens.css / appearance.css.
   Shares its frame with contact.html (same rules in contact.css): 560px column, centred hero, five type levels,
   at most one solid card (QR, when enabled) and one tint block (volunteers). */
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--study-background, var(--page-1));
  font-family: "Noto Sans SC", "Noto Sans JP", "PingFang SC", "Hiragino Sans", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}
.support-app [hidden] { display: none !important; }
/* The frame: gutters on <main>; on wide screens nav.css adds the companion rail as padding-right, so Sandy's dock never
   sits on the column. Every child is the same centred 560px column. */
.support-app { width: calc(100% - 2 * var(--layout-gutter)); min-width: 0; margin: 0 auto; padding: var(--space-5) 0 var(--space-6); }
.support-app > * { width: min(560px, 100%); margin-inline: auto; }
.support-app > * + * { margin-top: var(--space-6); }

/* Hero: Sandy, kicker, headline, intro, then the story and the one call to action, all in one centred stack */
.support-hero { display: grid; justify-items: center; gap: 0; text-align: center; }
.support-cat { width: 96px; height: 96px; }
.support-kicker { margin: var(--space-3) 0 0; color: var(--blue-600); font-size: .84rem; font-weight: 500; letter-spacing: .04em; }
.support-title { margin: var(--space-1) 0 0; word-break: keep-all; line-break: strict; text-wrap: balance; }
.support-sub { max-width: 28em; margin: var(--space-2) 0 0; color: var(--ink-2); font-size: 1rem; line-height: 1.7; word-break: keep-all; line-break: strict; text-wrap: balance; }
.support-story { max-width: 34em; margin: var(--space-4) auto 0; color: var(--ink-2); font-size: .92rem; line-height: 1.8; text-align: left; }

.support-pay { display: grid; justify-items: center; gap: var(--space-2); width: 100%; margin-top: var(--space-5); }
/* Ko-fi's own pill, in a darker Ko-fi blue so white text passes AA (#2f6fd6 on white text: 4.8:1) */
.support-kofi {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; max-width: 100%; padding: 12px 28px;
  border-radius: var(--radius-pill); background: #2f6fd6; color: #fff;
  font-size: 1rem; font-weight: 700; line-height: 1.4; text-decoration: none; text-align: center;
  box-shadow: 0 6px 18px rgb(47 111 214 / .28);
  transition: background-color .15s ease, transform .15s ease;
}
.support-kofi:hover { background: #255fbf; transform: translateY(-1px); }
.support-kofi:active { transform: translateY(0); }
.support-kofi:focus-visible { outline: 3px solid var(--accent-focus); outline-offset: 3px; }
.support-kofi-cup { flex: 0 0 auto; width: 26px; height: 26px; }
.support-wechat-note { margin: 0; padding: var(--space-2) var(--space-3); border-radius: 12px; color: var(--ink-2); background: var(--warm-bg); font-size: .8rem; line-height: 1.7; }
.support-preparing { margin: 0; padding: var(--space-3) var(--space-5); border: 1px dashed var(--line); border-radius: var(--radius-pill); color: var(--ink-2); background: var(--surface); font-size: .92rem; }
.support-small { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.8; }

/* Sections below the hero: plain text, a heading and its content */
.support-section { display: grid; gap: var(--space-3); min-width: 0; }
.support-heading { margin: 0; color: var(--ink); font-size: 1.1rem; font-weight: 500; line-height: 1.5; }
.support-free { display: grid; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .92rem; line-height: 1.8; }
.support-free li { position: relative; min-width: 0; padding-left: 26px; }
.support-free li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* Volunteers: the page's only tint block. --tint-3, not --tint-2: every palette's --tint-2 is the page background itself.
   Text on it: --ink-2 6.5:1, link --blue-600 4.5:1 (default) / 6.3:1 (ocean). */
.support-tint { padding: var(--space-4); border-radius: var(--radius-card); background: var(--tint-3); }
.support-help { margin: 0; color: var(--ink-2); font-size: .92rem; line-height: 1.8; }
.support-help-link { margin: 0; }
.support-help-link a { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue-600); font-size: .92rem; font-weight: 500; text-underline-offset: 4px; }
.support-help-link a:focus-visible { outline: 3px solid var(--accent-focus); outline-offset: 2px; border-radius: 6px; }

/* QR codes (when enabled): the page's only solid card */
.support-card { display: grid; gap: var(--space-3); min-width: 0; padding: var(--space-5); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
.support-qr-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-5); }
.support-qr figure { display: grid; justify-items: center; gap: var(--space-2); margin: 0; }
.support-qr img { width: 200px; height: 200px; border-radius: 12px; background: #fff; }
.support-qr figcaption { color: var(--muted); font-size: .8rem; }

/* FAQ: dividers between rows only */
.support-faq { border-top: 1px solid var(--border); }
.support-faq:last-child { border-bottom: 1px solid var(--border); }
.support-faq summary { display: flex; align-items: center; min-height: 48px; color: var(--ink); font-size: .92rem; font-weight: 500; cursor: pointer; list-style: none; }
.support-faq summary::-webkit-details-marker { display: none; }
.support-faq summary::after { content: "›"; margin-left: auto; padding-left: var(--space-3); color: var(--muted); transition: transform .15s ease; }
.support-faq[open] summary::after { transform: rotate(90deg); }
.support-faq summary:focus-visible { outline: 3px solid var(--accent-focus); outline-offset: 2px; border-radius: 6px; }
.support-faq p { margin: 0 0 var(--space-3); color: var(--ink-2); font-size: .92rem; line-height: 1.8; }
.support-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 681px) {
  .support-free { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .support-app > * + * { margin-top: var(--space-5); }
  .support-cat { width: 72px; height: 72px; }
  .support-card { padding: var(--space-4); }
  .support-kofi { padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .support-kofi, .support-faq summary::after { transition: none; }
  .support-kofi:hover { transform: none; }
}

/* Sandy's animated head-tilt, laid over the still pose (inline script on the page) */
.hero-sandy-anim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
