:root {
  color-scheme: light;
  --navy: #17365d;
  --navy-deep: #0d2442;
  --blue: #2b67b1;
  --gold: #c79128;
  --paper: #ffffff;
  --canvas: #f4f7fb;
  --ink: #10213a;
  --muted: #65748a;
  --line: #d7e0eb;
  --soft-blue: #eaf2fb;
  --success: #16845b;
  --shadow: 0 24px 60px rgba(29, 58, 95, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(43, 103, 177, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 103, 177, 0.05) 1px, transparent 1px),
    var(--canvas);
  background-size: 30px 30px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  width: min(100%, 560px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
  display: grid;
  align-content: start;
  align-content: safe center;
  gap: 18px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(23, 54, 93, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0 68%, var(--gold) 68% 100%);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 13px;
  color: #fff;
  background: var(--navy);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 19px;
  letter-spacing: 0.04em;
  transform: skew(-4deg);
}

.brand-name,
.brand-note,
.eyebrow,
.intro,
.feedback,
footer {
  margin: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.06em;
}

.brand-note {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.status-chip {
  min-height: 32px;
  margin-left: auto;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #c9e8dc;
  border-radius: 999px;
  color: #126343;
  background: #effaf5;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 132, 91, 0.11);
}

.hero-copy {
  margin-top: 34px;
}

.eyebrow {
  color: var(--blue);
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

h1 {
  margin: 9px 0 12px;
  color: var(--navy-deep);
  font-size: clamp(34px, 10vw, 49px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.intro {
  max-width: 390px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.qr-panel {
  margin: 28px auto 20px;
  text-align: center;
}

.qr-frame {
  width: min(68vw, 246px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(23, 54, 93, 0.1);
}

.qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  user-select: auto;
  -webkit-user-select: auto;
  -webkit-touch-callout: default;
}

.qr-panel figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.wechat-id {
  min-height: 62px;
  padding: 10px 10px 10px 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #f9fbfd;
}

.wechat-id > span {
  color: var(--muted);
  font-size: 11px;
}

.wechat-id strong {
  grid-column: 1;
  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0.035em;
}

.mini-copy {
  width: 44px;
  height: 44px;
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 13px;
  color: var(--navy);
  background: var(--soft-blue);
  cursor: pointer;
}

.mini-copy svg,
.button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.button {
  min-height: 52px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 15px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button-primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 9px 20px rgba(23, 54, 93, 0.22);
}

.button-secondary {
  color: var(--navy);
  border-color: #c5d5e8;
  background: var(--soft-blue);
}

.button:hover,
.mini-copy:hover {
  transform: translateY(-1px);
}

.button:active,
.mini-copy:active {
  transform: scale(0.97);
}

.button:focus-visible,
.mini-copy:focus-visible {
  outline: 3px solid rgba(43, 103, 177, 0.34);
  outline-offset: 3px;
}

.feedback {
  min-height: 23px;
  padding-top: 9px;
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.steps {
  margin: 12px 0 0;
  padding: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 1px dashed #cbd6e3;
  list-style: none;
}

.steps li {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.steps span {
  width: 22px;
  height: 22px;
  margin: 0 auto 7px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--soft-blue);
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

footer {
  color: #728197;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 380px) {
  .contact-card {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-copy {
    margin-top: 28px;
  }

  .actions {
    grid-template-columns: 1fr;
  }

  .button {
    min-height: 50px;
  }
}

@media (min-width: 720px) {
  .contact-card {
    padding: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
