:root {
  --ink: #141815;
  --muted: #626963;
  --paper: #f7f8f7;
  --surface: #ffffff;
  --line: #dfe4df;
  --wechat: #07c160;
  --wechat-deep: #059d4e;
  --accent: #ffcf48;
  --shadow: 0 16px 48px rgba(20, 24, 21, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(7, 193, 96, 0.06), transparent 240px),
    var(--paper);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  letter-spacing: 0;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 22px 20px calc(128px + env(safe-area-inset-bottom));
}

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
}

.brand-name {
  font-size: 12px;
  font-weight: 800;
}

.intro {
  padding: 34px 2px 22px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--wechat-deep);
  font-size: 11px;
  font-weight: 800;
}

h1 {
  max-width: 390px;
  margin: 0;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(38px, 11vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0;
}

.title-en {
  max-width: 350px;
  margin: 10px 0 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.lead {
  max-width: 370px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.lead span {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.55;
}

.photo-request {
  display: flex;
  max-width: 390px;
  align-items: center;
  gap: 11px;
  margin-top: 17px;
  padding: 12px 13px;
  border-left: 3px solid var(--wechat);
  background: rgba(255, 255, 255, 0.72);
}

.photo-icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--wechat);
  font-size: 19px;
  line-height: 1;
}

.photo-request p {
  margin: 0;
}

.photo-request strong,
.photo-request p span {
  display: block;
}

.photo-request strong {
  font-size: 13px;
  line-height: 1.45;
}

.photo-request p span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.trust-item {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.78);
}

.trust-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-weight: 800;
}

.trust-item p {
  margin: 0;
}

.trust-item strong,
.trust-item p span,
.trust-item small {
  display: block;
}

.trust-item strong {
  font-size: 12px;
  line-height: 1.4;
}

.trust-item p span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.trust-item small {
  margin-top: 3px;
  color: #8a908b;
  font-size: 8px;
  line-height: 1.25;
}

.wechat-panel {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.wechat-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: 5px;
  background: var(--accent);
  content: "";
}

.qr-frame {
  position: relative;
  width: min(76vw, 250px);
  aspect-ratio: 1;
  margin: 4px auto 16px;
  padding: 9px;
  border: 1px solid #e7eae7;
  background: #fff;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-missing {
  position: absolute;
  inset: 9px;
  display: grid;
  place-content: center;
  gap: 7px;
  padding: 20px;
  color: var(--ink);
  background: #f1f5f2;
  text-align: center;
}

.qr-missing[hidden] {
  display: none;
}

.qr-missing strong {
  font-size: 14px;
}

.qr-missing span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.scan-label {
  margin: 0 0 18px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.scan-label span {
  font-size: 11px;
}

.wechat-id-row {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf8;
}

.field-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

#wechat-id {
  display: block;
  max-width: 210px;
  overflow: hidden;
  font-family: Consolas, monospace;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-mini {
  display: inline-flex;
  min-width: 92px;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 5px;
  color: var(--wechat-deep);
  background: #eaf8f0;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.steps p {
  margin: 0;
}

.steps small {
  display: block;
  margin-top: 2px;
  color: #8a908b;
  font-size: 9px;
}

.steps span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #cfd5cf;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font-size: 10px;
  font-weight: 800;
}

.privacy-note {
  margin: 22px 0 0;
  color: #8a908b;
  text-align: center;
  font-size: 11px;
}

.privacy-note span {
  font-size: 10px;
}

.sticky-action {
  position: fixed;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(20, 24, 21, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.primary-button {
  display: flex;
  width: min(100%, 444px);
  height: 56px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: var(--wechat);
  box-shadow: 0 10px 24px rgba(7, 193, 96, 0.24);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:active {
  background: var(--wechat-deep);
  transform: scale(0.985);
}

.wechat-dot {
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.copy-mini:focus-visible,
.primary-button:focus-visible {
  outline: 3px solid rgba(7, 193, 96, 0.28);
  outline-offset: 3px;
}

.toast {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  display: flex;
  width: max-content;
  max-width: calc(100% - 32px);
  min-height: 48px;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 6px;
  color: #fff;
  background: rgba(20, 24, 21, 0.94);
  box-shadow: 0 10px 30px rgba(20, 24, 21, 0.2);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast small {
  color: #dfe4df;
  font-size: 10px;
  line-height: 1.4;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-check {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

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

@media (max-width: 360px) {
  .page-shell {
    padding-right: 15px;
    padding-left: 15px;
  }

  .wechat-panel {
    padding: 17px;
  }

  .steps li {
    gap: 3px;
    font-size: 11px;
  }

  .trust-item {
    align-items: flex-start;
    padding: 9px;
  }
}

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