:root {
  color-scheme: light;
  --page: #fcf9f1;
  --paper: #fffdf9;
  --ink: #28203c;
  --muted: #554d64;
  --purple: #603ab2;
  --border: #e6deee;
  --round: ui-rounded, "Avenir Next", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font: 16px/1.6 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--purple); text-underline-offset: .19em; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #633aac;
  outline-offset: 4px;
  border-radius: 4px;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--round); line-height: 1.14; }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: 1.18rem; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: 12px; transform: translateY(-160%); z-index: 3; padding: 10px; background: var(--paper); }
.skip:focus { transform: none; }

.site-header { border-bottom: 1px solid #ece4e8; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-family: var(--round); font-weight: 800; text-decoration: none; }
.brand img { border-radius: 6%; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px 6px; }
.main-nav a { padding: .48rem .75rem; border-radius: .65rem; color: var(--muted); font-size: .88rem; font-weight: 650; text-decoration: none; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--purple); background: #eee5fa; }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 452px;
  margin-block: 34px 64px;
  border: 1px solid #e7dcf4;
  border-radius: 32px;
  background: linear-gradient(115deg, #f2e9fb 15%, #e9dcfb 63%, #d7e9f7);
}
.hero-copy { padding: 46px 16px 46px clamp(28px, 5.5vw, 70px); }
.hero h1 { font-size: clamp(2.65rem, 6.1vw, 5.35rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 750; }
:lang(zh) .hero h1 { font-size: clamp(2.25rem, 5.2vw, 4.65rem); line-height: 1.14; letter-spacing: -.055em; }
.tagline { margin-top: .95rem; font-family: var(--round); font-size: clamp(1.15rem, 2.5vw, 1.7rem); font-weight: 750; }
.lead { margin-top: .75rem; color: var(--muted); max-width: 37rem; font-size: 1.08rem; }
.hero .lead { max-width: 26rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; background: var(--purple); color: white; padding: .68rem 1.2rem; border-radius: 100px; font-weight: 700; text-decoration: none; }
.button:hover { background: #49248d; }
.hero .button { margin-top: 1.55rem; }

.hero-logo { justify-self: center; width: min(70%, 300px); border-radius: 6%; box-shadow: 0 18px 48px #53346726; }
.activities { margin-bottom: 56px; scroll-margin-top: 24px; }
.activity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 24px; }
.activity { margin: 0; }
.activity img { width: 100%; border-radius: 14px; }
.activity figcaption { margin-top: 9px; font-weight: 650; }
.practice { padding: 30px clamp(24px, 5vw, 64px); margin-bottom: 64px; border: 1px solid var(--border); border-radius: 28px; background: var(--paper); }
.practice p { color: var(--muted); max-width: 65ch; margin-block: .7rem 1.05rem; }
.text-link { font-weight: 750; }

.subpage { padding-block: 54px 70px; }
.page-heading { padding: clamp(24px, 4.8vw, 52px); border-radius: 25px; background: #eee5fa; }
.page-heading h1 { font-size: clamp(2.35rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -.04em; }
.identity, .updated { color: var(--muted); margin-top: .7rem; }
.updated { font-size: .89rem; }
.identity code { font-size: .88em; }
.support-layout, .legal-layout { display: grid; gap: 24px; margin-top: 26px; align-items: start; }
.support-layout { grid-template-columns: 1fr 1.55fr; }
.contact, .faq, .legal, .toc { background: var(--paper); border: 1px solid var(--border); border-radius: 22px; padding: clamp(20px, 3.3vw, 36px); }
.contact p, .faq p, .legal p { margin-top: .75rem; color: var(--muted); }
.contact .button { margin-top: 1.3rem; }
.email { display: inline-block; margin-top: .7rem; font-weight: 700; overflow-wrap: anywhere; }
.faq h2 { margin-bottom: .85rem; }
.faq details { border-top: 1px solid var(--border); padding-block: .8rem; }
.faq details:last-child { padding-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq summary::marker { color: var(--purple); }
.legal-layout { grid-template-columns: minmax(175px, .38fr) minmax(0, 1fr); }
.toc { position: sticky; top: 20px; }
.toc ul { margin: 0; padding-left: 1.15rem; }
.toc li + li { margin-top: .52rem; }
.legal section { scroll-margin-top: 22px; overflow-wrap: break-word; }
.legal section + section { margin-top: 1.55rem; padding-top: 1.55rem; border-top: 1px solid var(--border); }
.legal h2 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
.legal p { max-width: 68ch; }

.site-footer { border-top: 1px solid var(--border); background: #f4eef8; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 26px; padding-block: 22px; }
.footer-inner strong, .footer-inner span { display: block; }
.footer-inner span { color: var(--muted); }
.footer-inner nav { display: flex; gap: 8px 19px; flex-wrap: wrap; }
.footer-inner nav a, .footer-inner span { font-size: .86rem; }

@media (max-width: 850px) {
  .hero { min-height: 376px; }
}
@media (max-width: 670px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; justify-content: flex-start; padding-block: 11px; gap: 8px; }
  .brand { min-height: 40px; }
  .main-nav { width: 100%; gap: 0 4px; }
  .main-nav a { padding-inline: .36rem; font-size: .82rem; }
  .hero { grid-template-columns: 1fr; margin-block: 18px 40px; border-radius: 24px; }
  .hero-copy { padding: 32px 24px 0; }
  .hero h1 { font-size: clamp(2.6rem, 9.5vw, 4.25rem); }
  :lang(zh) .hero h1 { font-size: clamp(2.25rem, 8.2vw, 3.5rem); }
  .hero-logo { width: min(54%, 210px); margin-block: 24px; }
  .activities { margin-bottom: 38px; }
  .activity-grid { grid-template-columns: 1fr; gap: 20px; }
  .practice { margin-bottom: 40px; }
  .support-layout, .legal-layout { grid-template-columns: 1fr; }
  .subpage { padding-block: 25px 44px; }
  .toc { position: static; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
