:root {
  --bg: #fff9f7;
  --paper: #ffffff;
  --ink: #231f20;
  --muted: #746a6b;
  --line: #f0dfdc;
  --coral: #ff5f73;
  --coral-deep: #e93f5a;
  --mint: #2fd6a3;
  --yellow: #ffd166;
  --shadow: 0 18px 45px rgba(233, 63, 90, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 209, 102, 0.35), transparent 30%),
    linear-gradient(180deg, #fff7f8 0%, var(--bg) 44%, #f3fff9 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border: 1px solid rgba(255, 95, 115, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 245, 236, 0.92)),
    linear-gradient(135deg, rgba(255, 95, 115, 0.22), rgba(47, 214, 163, 0.2));
  box-shadow: var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: #514446;
  font-size: 14px;
  font-weight: 700;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
  background: #2b0703;
  box-shadow: 0 8px 18px rgba(255, 95, 115, 0.28);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 118px;
  gap: 14px;
  align-items: end;
}

.hero h1 {
  margin: 0;
  max-width: 8em;
  font-size: clamp(32px, 9vw, 44px);
  line-height: 1.04;
  font-weight: 900;
}

.hero p {
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.primary-action,
.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(255, 95, 115, 0.28);
}

.primary-action {
  padding: 0 18px;
}

svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-card {
  position: relative;
  min-height: 204px;
  padding: 24px 10px 12px;
  border: 4px solid #252122;
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fff3f5);
  box-shadow: 0 16px 30px rgba(50, 34, 38, 0.14);
}

.phone-top {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 38px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #2b2728;
}

.chat-bubble {
  width: fit-content;
  max-width: 92px;
  margin-top: 12px;
  padding: 8px 9px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.chat-bubble.left {
  background: #f3f3f3;
}

.chat-bubble.right {
  margin-left: auto;
  background: #dffff4;
  color: #117c5d;
}

.mini-profile {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  box-shadow: 0 10px 20px rgba(39, 31, 34, 0.08);
}

.mini-profile span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--coral));
}

.download-card,
.steps,
.upload-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 30px rgba(60, 46, 48, 0.07);
}

.download-card {
  display: grid;
  grid-template-columns: 1fr 126px;
  gap: 14px;
  align-items: center;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 21px;
  line-height: 1.25;
}

.download-card p,
.steps p,
.upload-tip,
.proof-item em {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.download-card p {
  margin-bottom: 0;
}

.qr-wrap {
  margin: 0;
  text-align: center;
}

.qr-wrap img {
  display: block;
  width: 112px;
  height: 112px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-wrap figcaption {
  margin-top: 7px;
  color: var(--coral-deep);
  font-size: 13px;
  font-weight: 800;
}

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

.notice div {
  padding: 14px;
  border-radius: 8px;
  background: #1f1b1c;
  color: #fff;
}

.notice span,
.notice strong {
  display: block;
}

.notice span {
  color: #ffdbe1;
  font-size: 12px;
}

.notice strong {
  margin-top: 4px;
  font-size: 22px;
}

.steps ol {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}

.step-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #eafff8;
  color: #0f9270;
  font-weight: 900;
}

.steps h3 {
  margin-bottom: 3px;
  font-size: 16px;
}

.steps p {
  margin-bottom: 0;
}

.steps b {
  color: var(--coral-deep);
}

.copy-code-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid rgba(255, 95, 115, 0.24);
  border-radius: 8px;
  background: #fff2f4;
  color: var(--coral-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.copy-code-button strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.8px;
}

.copy-status {
  min-height: 18px;
  margin: 6px 0 0;
  color: #0f9270;
  font-size: 12px;
}

.example-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.example-shot {
  overflow: hidden;
  margin: 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.example-grid .example-shot {
  margin-top: 0;
}

.example-shot img {
  display: block;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  background: #f8f6f7;
}

.example-shot.landscape img {
  aspect-ratio: 2 / 1;
}

.example-shot.portrait img {
  aspect-ratio: 9 / 13;
}

.example-shot figcaption {
  padding: 9px 10px 10px;
  color: #514446;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.upload-tip {
  margin-bottom: 14px;
}

.proof-list {
  display: grid;
  gap: 10px;
}

.proof-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  min-height: 74px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.proof-index {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 8px;
  background: #eafff8;
  color: #0f9270;
  font-size: 13px;
  font-weight: 900;
}

.proof-item strong,
.proof-item em {
  display: block;
}

.proof-item strong {
  font-size: 15px;
}

.proof-item em {
  margin-top: 3px;
  font-style: normal;
}

.upload-input {
  display: none;
}

.upload-button {
  width: 100%;
  margin-top: 16px;
  cursor: pointer;
}

.upload-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #0f9270;
  font-size: 13px;
  text-align: center;
}

.contact-dialog {
  width: min(360px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
}

.contact-dialog::backdrop {
  background: rgba(35, 31, 32, 0.42);
}

.contact-card {
  position: relative;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 246, 238, 0.96)),
    linear-gradient(135deg, rgba(255, 95, 115, 0.18), rgba(47, 214, 163, 0.16));
  box-shadow: 0 24px 80px rgba(35, 31, 32, 0.2);
  text-align: center;
}

.contact-card h2 {
  margin: 8px 28px 16px;
  font-size: 21px;
  line-height: 1.35;
}

.contact-card img {
  display: block;
  width: 100%;
  max-width: 286px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contact-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #fff2f4;
  color: var(--coral-deep);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 370px) {
  .page-shell {
    padding-inline: 12px;
  }

  .hero {
    padding: 16px;
  }

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

  .phone-card {
    display: none;
  }

  .download-card {
    grid-template-columns: 1fr;
  }

  .qr-wrap img {
    margin: 0 auto;
  }
}
