:root {
  color-scheme: light;
  --ink: #152b44;
  --muted: #526276;
  --line: #e0e6ed;
  --green: #14754c;
  --blue: #2259b2;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f4f7fb; line-height: 1.65; }
button, input { font: inherit; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
svg { display: block; }
.page { width: min(100% - 2rem, 54rem); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .625rem; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.brand-icon { width: 2rem; height: 2rem; flex: 0 0 2rem; }
.header-label { font-size: .875rem; color: var(--muted); white-space: nowrap; }
.intro { margin: 2.5rem 0 1.5rem; }
.eyebrow { margin: 0 0 .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
h1 { margin: 0; font-size: clamp(1.8rem, 5.5vw, 2.8rem); line-height: 1.35; letter-spacing: -.025em; }
.intro-text { margin: .75rem 0 0; color: var(--muted); }
.demo-notice { display: inline-block; margin: 1rem 0 0; padding: .25rem .7rem; background: #fff4df; border: 1px solid #ead8ae; border-radius: .375rem; color: #6f4b0a; font-size: .875rem; }
.contacts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; scroll-margin-top: 1rem; }
.contact-card { --channel: var(--green); min-width: 0; background: white; padding: 1.5rem; border: 1px solid var(--line); border-top: 3px solid var(--channel); border-radius: 1rem; box-shadow: 0 5px 20px rgb(21 43 68 / 3%); }
.qq { --channel: var(--blue); }
.card-header { display: flex; align-items: center; gap: .875rem; }
.channel-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem; background: #eaf6ef; color: var(--channel); flex: 0 0 2.75rem; }
.qq .channel-icon { background: #edf3fd; }
.channel-icon svg { width: 1.625rem; height: 1.625rem; }
h2 { margin: 0; font-size: 1.125rem; line-height: 1.5; }
.card-header p { margin: .125rem 0 0; font-size: .875rem; color: var(--muted); }
.qr-figure { margin: 1.5rem 0; text-align: center; }
.qr-frame { display: grid; place-items: center; width: min(100%, 14rem); aspect-ratio: 1; margin-inline: auto; padding: .5rem; background: white; border: 1px solid var(--line); border-radius: .75rem; }
.qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-error { padding: 1rem; font-size: .875rem; color: var(--muted); }
figcaption { margin-top: .625rem; font-size: .875rem; color: var(--muted); }
.account-control label { display: block; margin-bottom: .4rem; font-size: .875rem; font-weight: 600; }
.account-row { display: flex; gap: .5rem; align-items: stretch; }
.account-row input { width: 100%; min-width: 0; min-height: 2.875rem; padding: .625rem .75rem; border: 1px solid var(--line); border-radius: .5rem; color: var(--ink); background: #f7f9fc; line-height: 1.4; }
.account-row button { flex: 0 0 auto; min-height: 2.875rem; padding: .625rem 1rem; background: var(--channel); color: white; font-weight: 600; border: 1px solid transparent; border-radius: .5rem; cursor: pointer; line-height: 1.4; }
.account-row button:disabled { background: #e9eef4; color: #536275; cursor: default; }
.account-row button:not(:disabled):hover { filter: brightness(.9); }
.account-row button:not(:disabled):active { transform: translateY(1px); }
.account-help { margin: .625rem 0 0; font-size: .875rem; color: var(--muted); }
.consultation-note { display: flex; gap: .75rem; margin-top: 1.25rem; padding: 1.25rem; background: #eaf0f8; border-radius: .75rem; }
.consultation-note svg { flex: 0 0 1.375rem; width: 1.375rem; height: 1.375rem; margin-top: .125rem; }
.consultation-note h2 { font-size: 1rem; }
.consultation-note p { margin: .375rem 0 0; color: var(--muted); }
footer { padding: 1.5rem 0 2rem; color: var(--muted); font-size: .875rem; }
footer p { margin: 0; }
.footer-caption { margin-top: .5rem; }
.toast { position: fixed; z-index: 10; bottom: max(1.5rem, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); background: var(--ink); color: white; border-radius: .625rem; box-shadow: 0 8px 28px rgb(21 43 68 / 15%); text-align: center; }
.toast:not(:empty) { padding: .75rem 1.25rem; }
.skip-link { position: absolute; top: .5rem; left: .5rem; z-index: 20; transform: translateY(-200%); background: white; color: var(--ink); padding: .75rem; border-radius: .5rem; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid #a96000; outline-offset: 3px; }
.noscript-note { padding: 1rem; border: 1px solid #ead8ae; border-radius: .5rem; }
@media (min-width: 44rem) {
  .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .intro { margin-top: 3rem; }
  .contact-card { padding: 1.75rem; }
}
@media (max-width: 23rem) {
  .contact-card { padding: 1.125rem; }
  .account-row { flex-direction: column; }
  .account-row button { width: 100%; }
  .site-header { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .account-row button:not(:disabled):active { transform: none; }
}

/* 真实二维码保留原图比例和全部内容，不裁切、不重绘。 */
.qr-frame.has-qr { width: min(100%, 20rem); aspect-ratio: auto; }
.qr-frame.has-qr img { height: auto; }
.contact-card { display: flex; flex-direction: column; }
.account-control { margin-top: auto; }
.card-header > div { min-width: 0; }
.pricing-note { margin: 0 0 1.25rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid #d9e2ed; border-left: 3px solid var(--ink); border-radius: .625rem; }
.pricing-note h2 { font-size: 1rem; }
.pricing-note p { margin: .375rem 0 0; color: var(--muted); }
