/* Shared outer rhythm. Nested sections and form cards keep their own inset. */
body { --section-space: 56px; --section-half: 28px; }
body #content > section:not(.site-page-head):not(.hero):not(.faq-group),
body #content > section.support-section { padding-block: var(--section-space); }
body #content > .site-page-head + section.chapter:not(.site-page-head):not(.hero):not(.faq-group) { padding-top: var(--section-half); }
body #content > .member-overview { padding-bottom: var(--section-space); }
body #content > section.faq-group:not(.support-section) { padding-block: var(--section-half); }
@media (max-width: 600px) { body { --section-space: 40px; --section-half: 20px; } }

/* Decorative route lines stay behind the existing hero content and cannot intercept input. */
body.site-home #hero { position: relative; isolation: isolate; }
body.site-home #hero > .wrap { position: relative; z-index: 1; }
.hero-route-surface { position: absolute; z-index: 0; pointer-events: none; inset: auto 0 0; height: 320px;
  background: url('hero-route-lines.svg') center bottom / max(100%, 1440px) 320px no-repeat,
    radial-gradient(ellipse at 65% 125%, #536ed040, transparent 65%);
}
body.site-home #hero .hero-body { height: auto; padding-block: 32px 48px; }
body.site-home #hero .hero-stage { height: 620px; }
@media (max-width: 960px) {
  body.site-home #hero .hero-stage { height: auto; }
}
@media (max-width: 600px) {
  body.site-home #hero .hero-body { padding-block: 28px 32px; }
  .hero-route-surface { height: 240px; background-size: 1080px 240px, auto; background-position: 62% bottom, center; }
}

/* Payment service marks use their own fill rules, independent of line icons. */
.membership .member-payment :is(.payment-wechat, .payment-alipay) { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.membership .member-payment .payment-icon { display: block; width: 24px; height: 24px; fill: currentColor; stroke: none; flex: none; }
@media (max-width: 360px) { .membership .member-selector .member-payment > span:first-child { flex-basis: 100%; } }

/* final-v11：页头后紧接浅灰底区块时恢复完整上留白；下载列表与下一段之间去掉重复留白。 */
body #content > .site-page-head + section.chapter.paper:not(.site-page-head):not(.hero):not(.faq-group) { padding-top: var(--section-space); }
body #content > section.download-platforms:not(.site-page-head):not(.hero):not(.faq-group) { padding-bottom: 0; }
