:root {
  color-scheme: light;
  --page-bg: #edf5fb;
  --surface: #ffffff;
  --surface-muted: #f6f9fc;
  --ink: #17283d;
  --muted: #6b7b8d;
  --line: #dbe7f1;
  --accent: #1674c8;
  --accent-dark: #0d5ba2;
  --accent-soft: #e3f0fb;
  --shadow: 0 12px 30px rgba(27, 84, 127, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 32px 16px 28px;
}

.hero {
  padding: 8px 8px 26px;
  text-align: center;
}

.brand-mark {
  width: 104px;
  height: 104px;
  margin: 0 auto 14px;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 10px 24px rgba(24, 91, 144, 0.18);
}

.brand-mark img,
.wechat-avatar img,
.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 8px 0 8px;
  font-size: clamp(1.65rem, 7vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.15rem, 4.5vw, 1.55rem);
  font-weight: 700;
}

.contact-card,
.qr-card {
  border: 1px solid rgba(219, 231, 241, 0.95);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card {
  padding: 22px;
  text-align: center;
}

.contact-card .section-heading {
  text-align: center;
}

.section-heading h2,
.qr-heading h2 {
  margin: 4px 0 0;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.section-heading h2 {
  color: var(--ink);
  font-size: 1.55rem;
}

.wechat-id {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(1.65rem, 7vw, 2.2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
}

.action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.button {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  color: #fff;
  background: var(--accent);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--accent-dark);
  border-color: #b9d6ed;
  background: var(--accent-soft);
}

.button-secondary:hover {
  border-color: var(--accent);
  background: #d6eafb;
}

.button:focus-visible {
  outline: 3px solid rgba(22, 116, 200, 0.35);
  outline-offset: 2px;
}

.action-note,
.qr-caption {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-card .action-note {
  margin: 22px 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

.qr-card {
  margin-top: 0;
  padding: 22px;
  scroll-margin-top: 20px;
}

.qr-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.qr-status {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--accent-soft);
  font-size: 0.72rem;
  white-space: nowrap;
}

.qr-frame {
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  margin: 16px auto 0;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(23, 40, 61, 0.12);
}

.qr-frame img {
  object-fit: contain;
}

.qr-caption {
  text-align: center;
}

.page-footer {
  padding: 20px 8px 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.8rem;
}

.qr-card + .contact-card {
  margin-top: 16px;
}

.page-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 10;
  max-width: calc(100vw - 32px);
  padding: 11px 14px;
  border-radius: 7px;
  color: #fff;
  background: #1d344d;
  box-shadow: 0 8px 22px rgba(23, 40, 61, 0.2);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 680px) {
  .page-shell {
    padding-top: 56px;
  }

  .hero {
    padding-bottom: 34px;
  }

  .contact-card,
  .qr-card {
    padding: 28px;
  }
}
