:root {
  --bg: #ececec;
  --text: #111111;
  --muted: #7b7b7b;
  --accent: #f57c00;
  --green: #22b35e;
  --card: #ffffff;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  --radius: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}

button { font: inherit; }

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
}

.security-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #777;
  font-size: clamp(14px, 1.6vw, 28px);
  font-weight: 700;
  margin-bottom: 26px;
  line-height: 1.25;
}

.security-tip-icon {
  width: clamp(18px, 2vw, 30px);
  height: clamp(18px, 2vw, 30px);
  flex-shrink: 0;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.05;
  font-weight: 900;
}

.subtitle {
  margin: 16px auto 0;
  max-width: 760px;
  font-size: clamp(16px, 1.8vw, 24px);
  color: var(--muted);
}

.phone-stage {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  justify-items: center;
  margin: 16px 0 28px;
}

.phone {
  width: min(340px, 100%);
  background: #1f1f1f;
  border-radius: 44px;
  padding: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 44px;
  border: 4px solid #2f2f2f;
  pointer-events: none;
}

.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 14px;
  border-radius: 10px;
  background: #0f0f0f;
  z-index: 3;
}

.screen {
  width: min(360px, 100%);
  min-height: 520px;
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  padding: 28px 20px 24px;
  box-shadow: var(--shadow);
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.brand-dot {
  width: 16px;
  height: 16px;
  background: #111;
  border-radius: 4px;
}

.mock-body {
  padding-top: 54px;
  text-align: center;
}

.mock-logo {
  width: 70px;
  height: 70px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, #222, #666);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
}

.mock-body h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.mock-body p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.5;
}

.mock-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f4f4f4;
  border-radius: 16px;
  padding: 12px;
  text-align: left;
}

.mock-thumb {
  width: 78px;
  min-width: 78px;
  height: 78px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6b1dff, #ca8cff);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.mock-text strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.mock-text span {
  color: var(--muted);
  font-size: 14px;
}

.stage-arrow {
  color: var(--accent);
  text-align: center;
  font-weight: 800;
  font-size: 26px;
}

.stage-arrow svg {
  display: block;
  width: 120px;
  margin-top: 6px;
}

.consult-screen {
  padding-top: 26px;
  text-align: center;
}

.consult-screen h3 {
  margin: 0 0 44px;
  font-size: 28px;
}

.wechat-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.wechat-icon {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.cta-button {
  border: 0;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  padding: 14px 18px;
  width: min(100%, 260px);
  cursor: pointer;
}

.muted {
  margin-top: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.wechat-box {
  background: #f7f7f7;
  border-radius: 18px;
  padding: 18px 20px;
  border: 1px solid #e7e7e7;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.wechat-id {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  word-break: break-all;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 16px;
  font-weight: 800;
  cursor: pointer;
}

.btn-dark {
  background: #111;
  color: #fff;
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.helper {
  margin-top: 18px;
  background: #fafafa;
  border-radius: 16px;
  padding: 18px 20px;
  color: #565656;
}

.helper h4 {
  margin: 0 0 10px;
  color: #222;
}

.helper ol {
  margin: 0;
  padding-left: 20px;
  line-height: 1.75;
}

.status {
  min-height: 24px;
  margin: 14px 0 0;
  font-weight: 700;
}

.status.ok { color: #178c4d; }
.status.error { color: #cc3131; }

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

.qr-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.qr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.qr-dialog {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.qr-close {
  position: absolute;
  right: 10px;
  top: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: #f1f1f1;
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.qr-dialog h4 {
  margin: 0 0 14px;
  font-size: 22px;
}

.qr-image {
  display: block;
  width: min(280px, 100%);
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
}

.qr-tip {
  margin: 14px 0;
  color: #666;
  line-height: 1.6;
}

.qr-download {
  display: inline-block;
  text-decoration: none;
  min-width: 160px;
}

.qr-download[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 980px) {
  .phone-stage {
    grid-template-columns: 1fr;
  }

  .stage-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 640px) {
  .page { width: min(100% - 20px, 100%); padding: 24px 0 36px; }
  .screen { min-height: 520px; }
  .actions { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
}
