:root {
  --surround: #d4e5df;
  --paper: #f3faf3;
  --ink: #103c34;
  --muted: #304e45;
  --hero: #103d37;
  --hero-ink: #f5fff5;
  --accent: #164d43;
  --brand-fill: #164d43;
  --brand-mark: #e1f5d9;
  --focus: #164d43;
  --lime: #d9f5c9;
  --info: #def0e6;
  --card: #fbfefa;
  --line: #b8d0c5;
  --control-line: #527367;
  --danger: #812925;
  --gutter: clamp(18px, 6.15vw, 32px);
  --target: max(64px, 4rem);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif; }
html.large-type { font-size: 125%; }
body {
  margin: 0;
  background: var(--surround);
  color: var(--ink);
  font-size: max(20px, 1.25rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, ul, fieldset { margin: 0; }
h1 { font-size: max(36px, 2.75rem); line-height: 1.18; letter-spacing: -.045em; }
h2 { font-size: clamp(1.55rem, 5vw, 1.875rem); line-height: 1.3; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-frame { max-width: 76rem; min-height: 100svh; margin-inline: auto; background: var(--paper); }
.wrap {
  max-width: 48rem;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 8px;
  min-height: 88px;
  padding: max(12px, env(safe-area-inset-top)) max(var(--gutter), env(safe-area-inset-right)) 12px
    max(var(--gutter), env(safe-area-inset-left));
}
.wordmark { display: flex; align-items: center; gap: 9px; font-weight: 750; white-space: nowrap; }
.mark { width: 34px; height: 34px; flex: none; }
.type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--target);
  padding: 8px 12px;
  border: 1px solid var(--control-line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.type svg { width: 20px; height: 20px; flex: none; }
.type .check, .type[aria-pressed="true"] .plus { display: none; }
.type[aria-pressed="true"] { border-color: var(--accent); background: var(--info); }
.nav { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.nav a {
  display: grid;
  place-items: center;
  min-width: 64px;
  min-height: var(--target);
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
}
.nav a[aria-current="page"] { background: var(--info); }
.nav a:hover { text-decoration: underline; }

.hero {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 24px var(--gutter) 44px;
  background: var(--hero);
  color: var(--hero-ink);
}
.hero figure { width: min(100%, 19rem); margin: 0; }
.portrait { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 55% 40%; border-radius: 999px 999px 24px 24px; box-shadow: 0 18px 40px #05201c66; }
.message { width: min(100%, 28rem); }
.location { margin-bottom: .5rem; color: #cbead9; font-weight: 700; }
.lead { margin-top: .75rem; color: #e6f4eb; }
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: max(68px, 4.25rem);
  margin-top: 1.25rem;
  padding: .75rem 1rem;
  border-radius: 18px;
  box-shadow: 0 5px 0 #092a27, 0 12px 25px #092a276b;
  background: var(--lime);
  color: #123d32;
  font-size: max(20px, 1.375rem);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}
.cta:hover { background: #ecffd9; }
.cta svg { width: 24px; height: 24px; flex: none; }
.hero :focus-visible, .join-header :focus-visible { outline-color: var(--hero-ink); }
@media (prefers-reduced-motion: no-preference) {
  .light-shift { animation: settle 3s ease-out both; }
  @keyframes settle {
    from { opacity: .42; transform: translateY(4px); }
    to { opacity: .7; transform: translateY(0); }
  }
}

.info { background: var(--info); padding-block: 2.375rem 1.875rem; }
.info p, .status span { margin-top: .625rem; color: var(--muted); }
#start { scroll-margin-block-start: 1rem; }
.status {
  display: grid;
  margin-top: 1.25rem;
  padding: .9375rem 1.0625rem;
  border-radius: 1rem;
  background: var(--paper);
}
.status span { margin-top: .25rem; }
.btns { display: grid; gap: .75rem; margin-top: 1rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--target);
  padding: .625rem 1.125rem;
  border: 1px solid var(--accent);
  border-radius: .8125rem;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover:enabled, a.btn:hover { background: var(--hero); }
.btn.secondary { background: var(--card); color: var(--ink); }
a.btn.secondary:hover { background: var(--paper); }
button:disabled { cursor: wait; }
.btn:disabled { background: var(--info); color: var(--ink); }
.steps, .safe ul, .sos ul, .prices { padding: 0; list-style: none; }
.steps { display: grid; gap: .875rem; margin-top: 1.5rem; }
.steps li { padding-left: .875rem; border-left: 2px solid var(--control-line); }
.steps p { margin-top: .2rem; }

.safety { padding-top: 2rem; }
.safe { border: 1px solid var(--line); border-radius: 1rem; background: var(--card); padding: 1.25rem 1rem; }
.safe ul { display: grid; gap: .875rem; margin-top: .875rem; }
.safe li { display: grid; grid-template-columns: 1.375rem minmax(0, 1fr); gap: .65rem; }
.safe svg { width: 1.375rem; height: 1.375rem; margin-top: .23rem; }

footer.wrap { padding-block: 2rem max(2.125rem, env(safe-area-inset-bottom)); }
.sos p, .fees p, .contact { color: var(--muted); }
.sos p { margin-top: .625rem; }
.sos ul, .prices { margin-top: .625rem; }
.sos li, .prices li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .25rem .75rem;
  min-height: 2.75rem;
  padding-block: .4375rem;
  border-bottom: 1px solid var(--line);
}
.sos strong, .prices strong { font-variant-numeric: tabular-nums; }
.sos strong { white-space: nowrap; }
.fees { margin-top: 1.25rem; border-bottom: 1px solid var(--line); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--target);
  padding-block: .4rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  flex: 0 0 .6rem;
  height: .6rem;
  margin: -.25rem .25rem 0 0;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
details[open] summary::after { margin-top: .25rem; transform: rotate(225deg); }
.prices { padding-bottom: .75rem; }
.prices li:last-child { border-bottom: 0; }
.prices small { font-size: inherit; }
.contact { margin-top: .4rem; }
.fees + .contact { margin-top: 1rem; }
.contact a { display: inline-flex; align-items: center; max-width: 100%; min-height: var(--target); font-weight: 700; }

.join-header, .admin-header { padding-block: 1.375rem; background: var(--hero); color: var(--hero-ink); }
.join-content { padding-top: 1.25rem; }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: .875rem; }
.tabs button {
  min-height: var(--target);
  padding: .375rem;
  border: 1px solid var(--control-line);
  border-radius: .75rem;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.tabs button[aria-selected="true"] { border-color: var(--hero); background: var(--hero); color: #fff; }
.panel { min-width: 0; padding: 1.125rem 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--card); }
.demo { padding: .75rem; border-radius: .75rem; background: var(--info); font-weight: 700; }
.f { min-width: 0; margin-bottom: 1.15rem; padding: 0; border: 0; }
.f > label:not(.agree), legend { display: block; margin-bottom: .375rem; padding: 0; font-weight: 700; }
input:not([type="checkbox"], [type="radio"]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: var(--target);
  max-width: 100%;
  padding: .4rem .65rem;
  border: 1px solid var(--control-line);
  border-radius: .65rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.opt, .agree { display: flex; gap: .5rem; min-height: var(--target); cursor: pointer; }
.opt {
  align-items: center;
  padding: .375rem .45rem;
  border: 1px solid var(--control-line);
  border-radius: .65rem;
  background: #fff;
  line-height: 1.35;
}
.opt input, .agree input { width: 1.25rem; height: 1.25rem; margin: 0; flex: none; accent-color: var(--accent); }
:is(.opt, .agree):has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
:is(.opt, .agree) input:focus-visible { outline: none; }
.opt:has(input:checked) { border-color: var(--accent); background: var(--info); }
.agree { align-items: flex-start; padding-block: .5rem; line-height: 1.55; }
.agree input { margin-top: .2rem; }
#join .btn { width: 100%; }
.err { margin-top: .35rem; color: var(--danger); font-weight: 700; }
.err:empty, .trap { display: none; }
.submit-error:not(:empty) { margin-bottom: .75rem; }
.bad input[aria-invalid="true"], .bad .opt { border-color: var(--danger); }
.done { text-align: center; }
.done p { margin-block: .5rem 1rem; }
.privacy { margin-top: 1rem; padding-inline: .25rem; }
.privacy p { margin-top: .45rem; color: var(--muted); }

.missing { padding-block: 2rem; }
.missing .btn { margin-top: 1.25rem; }

@media (max-width: 359px) {
  .type { padding-inline: 8px; }
  .large-type .mast { row-gap: 8px; }
  .large-type .opts { grid-template-columns: 1fr; }
}
@media (min-width: 520px) {
  .btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .nav { flex: 0 1 auto; margin: 0; }
  .type { margin-left: auto; }
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    padding-block: clamp(40px, 5vw, 80px);
  }
  .hero figure { width: min(100%, 30rem); justify-self: end; }
  .message { justify-self: start; }
  .hero h1 { font-size: clamp(2.75rem, 5vw, 4.25rem); }
  .large-type .hero h1 { font-size: clamp(2.75rem, 6.25vw, 4.25rem); }
  .cta { width: fit-content; padding-inline: 1.5rem; }
  .safe, .panel { padding: 1.5rem; }
}
@media (min-width: 760px) {
  .opts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.view:not([hidden]), [role="tabpanel"]:not([hidden]), details[open] > :not(summary), .done:not([hidden]) { animation: rise .35s ease-out both; }
:is(button, .btn, .cta, .opt, .nav a, summary) { transition: transform .12s, filter .12s, background-color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
:is(button:enabled, .btn, .cta, .opt, summary):active { transform: translateY(2px); filter: brightness(.92); }
.cta:hover { filter: brightness(1.05); }
[aria-busy="true"].btn::after { content: ""; width: 1.1em; height: 1.1em; margin-left: .6rem; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* 专业化版式 */
.mast { row-gap: 10px; }
.nav { margin-top: 0; padding: 4px; gap: 4px; flex-wrap: nowrap; border-radius: 18px; background: var(--info); }
.nav a { flex: 1; border-radius: 14px; }
.nav a[aria-current="page"] { background: var(--card); box-shadow: 0 2px 8px #05201c1f; }
@media (min-width: 640px) { .nav { flex: 0 0 15rem; } }
.info, .safety { padding-block: 3rem; }
h2 { letter-spacing: -.02em; }
.safe { padding: 0; border: 0; background: none; }
.safe ul { gap: 1rem; margin-top: 1.25rem; }
.safe li { display: block; padding: 1.5rem 1.25rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--card); box-shadow: 0 10px 30px #05201c0f; }
.safe li svg { width: 3rem; height: 3rem; margin: 0 0 .75rem; padding: .6rem; border-radius: 1rem; background: var(--info); color: var(--accent); }
.safe h3 { font-size: 1.375rem; line-height: 1.35; }
.safe li p { margin-top: .35rem; color: var(--muted); }
.faq { padding-bottom: 3rem; }
.faq h2 { margin-bottom: .75rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details p { padding-bottom: 1rem; color: var(--muted); }
footer.wrap { border-top: 1px solid var(--line); }

.demo-banner { margin: 0; padding: .75rem 1rem; background: #ffe3d9; color: #5a1f14; font-weight: 700; text-align: center; }
.demo-banner a { display: inline-flex; align-items: center; min-height: 64px; color: inherit; }
