:root {
  color-scheme: dark;
  --ink: #030713;
  --ink-soft: #081023;
  --panel: rgba(7, 14, 33, 0.78);
  --snow: #f5faff;
  --mist: #9caec9;
  --cyan: #6ce7f5;
  --blue: #4c8dff;
  --violet: #8f77ff;
  --hairline: rgba(136, 211, 255, 0.17);
  --mouse-x: 50%;
  --mouse-y: 50%;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
}

body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--snow);
  background:
    radial-gradient(circle at 18% 18%, rgba(76, 141, 255, 0.14), transparent 31rem),
    radial-gradient(circle at 88% 76%, rgba(143, 119, 255, 0.12), transparent 34rem),
    var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

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

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

button {
  font: inherit;
}

#signal-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.aurora {
  position: fixed;
  z-index: -2;
  width: 58vw;
  height: 22vw;
  min-width: 32rem;
  min-height: 11rem;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.aurora-one {
  top: -12vw;
  right: -8vw;
  background: rgba(74, 203, 255, 0.11);
  transform: rotate(-15deg);
  animation: aurora-breathe 8s ease-in-out infinite alternate;
}

.aurora-two {
  bottom: -12vw;
  left: -14vw;
  background: rgba(135, 91, 255, 0.09);
  transform: rotate(18deg);
  animation: aurora-breathe 10s 1.5s ease-in-out infinite alternate-reverse;
}

.cursor-light {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle 18rem at var(--mouse-x) var(--mouse-y), rgba(98, 220, 255, 0.075), transparent 70%);
}

.page-shell {
  display: grid;
  min-height: 100svh;
  grid-template-rows: 1fr auto;
  gap: 22px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: max(28px, 5vh) 0 20px;
}

.contact-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  min-height: min(760px, calc(100svh - 92px));
  padding: clamp(34px, 6vw, 78px);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 32px;
  background:
    linear-gradient(118deg, rgba(15, 27, 55, 0.82), rgba(4, 9, 24, 0.68) 58%, rgba(11, 18, 39, 0.76)),
    var(--panel);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(26px);
}

.contact-panel::before {
  position: absolute;
  top: 0;
  right: 11%;
  left: 11%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(108, 231, 245, 0.72), transparent);
  box-shadow: 0 0 24px rgba(108, 231, 245, 0.45);
}

.contact-panel::after {
  position: absolute;
  right: -17rem;
  top: 50%;
  z-index: -1;
  width: 40rem;
  height: 40rem;
  border: 1px solid rgba(107, 226, 245, 0.07);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
  box-shadow:
    0 0 0 5rem rgba(108, 231, 245, 0.018),
    0 0 0 10rem rgba(143, 119, 255, 0.014);
}

.panel-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(108, 231, 245, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 231, 245, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.signal-rail {
  position: absolute;
  top: 42px;
  left: 0;
  display: grid;
  gap: 7px;
}

.signal-rail span {
  display: block;
  width: 3px;
  height: 13px;
  background: rgba(108, 231, 245, 0.26);
}

.signal-rail span:nth-child(2),
.signal-rail span:nth-child(4) {
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(108, 231, 245, 0.9);
}

.intro {
  position: relative;
  z-index: 2;
  max-width: 530px;
}

.identity-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #c2d4ea;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.signal-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}

.signal-mark i {
  position: absolute;
  border: 1px solid var(--cyan);
  border-radius: 50%;
}

.signal-mark i:nth-child(1) {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.signal-mark i:nth-child(2) {
  width: 20px;
  height: 20px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(45deg);
}

.signal-mark i:nth-child(3) {
  width: 32px;
  height: 32px;
  border-right-color: transparent;
  border-bottom-color: transparent;
  opacity: 0.42;
  transform: rotate(45deg);
}

.headline-wrap {
  margin: clamp(54px, 8vh, 92px) 0 38px;
}

.hello {
  margin: 0 0 12px;
  color: var(--mist);
  font-size: clamp(16px, 1.7vw, 20px);
  letter-spacing: 0.08em;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(45px, 5.5vw, 76px);
  font-weight: 680;
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
  text-shadow: 0 14px 44px rgba(76, 141, 255, 0.18);
}

.medal {
  display: inline-block;
  margin-left: 0.08em;
  font-size: 0.48em;
  vertical-align: 0.78em;
  filter: drop-shadow(0 0 12px rgba(255, 211, 99, 0.35));
}

.lead {
  max-width: 33em;
  margin: 25px 0 0;
  color: var(--mist);
  font-size: clamp(16px, 1.45vw, 18px);
  line-height: 1.85;
}

.contact-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  color: #bed0e8;
  font-size: 13px;
}

.contact-status time {
  margin-left: auto;
  color: #7689a8;
  font-variant-numeric: tabular-nums;
}

.status-pulse {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(108, 231, 245, 0.95);
}

.status-pulse::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(108, 231, 245, 0.55);
  border-radius: inherit;
  content: "";
  animation: ping 2s ease-out infinite;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.primary-action {
  color: #02111a;
  background: var(--cyan);
  box-shadow: 0 10px 28px rgba(49, 204, 224, 0.2);
}

.secondary-action {
  color: #c7d8ed;
  border-color: rgba(142, 186, 224, 0.22);
  background: rgba(255, 255, 255, 0.035);
}

.primary-action svg,
.secondary-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.primary-action:hover {
  background: #90f2fd;
  box-shadow: 0 14px 32px rgba(49, 204, 224, 0.28);
}

.secondary-action:hover {
  border-color: rgba(108, 231, 245, 0.36);
  background: rgba(108, 231, 245, 0.07);
}

.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 3px solid rgba(108, 231, 245, 0.34);
  outline-offset: 4px;
}

.privacy-note {
  margin: 20px 0 0;
  color: #6f829f;
  font-size: 12px;
  line-height: 1.7;
}

.qr-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.qr-frame {
  --shift-x: 0px;
  --shift-y: 0px;
  position: relative;
  width: min(100%, 424px);
  padding: 16px;
  border: 1px solid rgba(121, 225, 244, 0.27);
  border-radius: 27px;
  background: linear-gradient(145deg, rgba(108, 231, 245, 0.1), rgba(143, 119, 255, 0.055));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.44),
    0 0 70px rgba(76, 141, 255, 0.12),
    inset 0 0 28px rgba(108, 231, 245, 0.045);
  transform: translate3d(var(--shift-x), var(--shift-y), 0);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.qr-frame::before {
  position: absolute;
  inset: 6px;
  z-index: -1;
  border: 1px dashed rgba(108, 231, 245, 0.16);
  border-radius: 22px;
  content: "";
}

.qr-card {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-radius: 15px;
  background: white;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.qr-card img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-touch-callout: default;
  user-select: auto;
}

.frame-corner {
  position: absolute;
  z-index: 4;
  width: 22px;
  height: 22px;
  border-color: var(--cyan);
  filter: drop-shadow(0 0 7px rgba(108, 231, 245, 0.75));
}

.corner-tl {
  top: 8px;
  left: 8px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-radius: 4px 0 0;
}

.corner-tr {
  top: 8px;
  right: 8px;
  border-top: 2px solid;
  border-right: 2px solid;
  border-radius: 0 4px 0 0;
}

.corner-bl {
  bottom: 8px;
  left: 8px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  border-radius: 0 0 0 4px;
}

.corner-br {
  right: 8px;
  bottom: 8px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  border-radius: 0 0 4px;
}

.scan-track {
  position: absolute;
  top: 5px;
  left: 16px;
  z-index: 5;
  width: 72px;
  height: 2px;
  border-radius: 4px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 16px var(--cyan);
  animation: edge-scan 4.8s cubic-bezier(0.64, 0, 0.36, 1) infinite;
}

.orbit {
  position: absolute;
  z-index: -1;
  width: 115%;
  aspect-ratio: 1;
  border: 1px solid rgba(108, 231, 245, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.orbit::before,
.orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.orbit::before {
  top: 14%;
  right: 6%;
  width: 7px;
  height: 7px;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.orbit::after {
  bottom: 17%;
  left: 5%;
  width: 4px;
  height: 4px;
  background: var(--violet);
  box-shadow: 0 0 15px var(--violet);
}

.orbit-one {
  animation: orbit 18s linear infinite;
}

.orbit-two {
  width: 132%;
  border-style: dashed;
  border-color: rgba(143, 119, 255, 0.08);
  animation: orbit 30s linear infinite reverse;
}

.qr-caption {
  display: grid;
  grid-template-columns: minmax(32px, 74px) auto minmax(32px, 74px);
  align-items: center;
  gap: 14px;
  width: min(100%, 424px);
  margin-top: 22px;
  color: #91a6c2;
  font-size: 13px;
  letter-spacing: 0.12em;
}

.qr-caption p {
  margin: 0;
  white-space: nowrap;
}

.qr-caption span {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 231, 245, 0.38));
}

.qr-caption span:last-child {
  background: linear-gradient(90deg, rgba(108, 231, 245, 0.38), transparent);
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #647793;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #4c607d;
}

.toast {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 20;
  padding: 12px 18px;
  border: 1px solid rgba(108, 231, 245, 0.26);
  border-radius: 999px;
  color: #dffcff;
  background: rgba(6, 18, 32, 0.92);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(14px);
}

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

@keyframes ping {
  0% { opacity: 0.9; transform: scale(0.65); }
  75%, 100% { opacity: 0; transform: scale(1.5); }
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes edge-scan {
  0%, 12% { left: 16px; opacity: 0; }
  18% { opacity: 1; }
  76% { opacity: 1; }
  84%, 100% { left: calc(100% - 88px); opacity: 0; }
}

@keyframes aurora-breathe {
  from { opacity: 0.65; transform: rotate(-12deg) scale(0.92); }
  to { opacity: 1; transform: rotate(-18deg) scale(1.08); }
}

@media (max-width: 900px) {
  .page-shell {
    width: min(680px, calc(100% - 28px));
    padding-top: 14px;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 46px;
    min-height: auto;
    padding: 42px clamp(22px, 7vw, 52px) 48px;
  }

  .intro {
    grid-row: 2;
    max-width: none;
    text-align: center;
  }

  .qr-zone {
    grid-row: 1;
  }

  .identity-lockup,
  .actions,
  .contact-status {
    justify-content: center;
  }

  .headline-wrap {
    margin: 34px auto 28px;
  }

  h1,
  .lead {
    margin-right: auto;
    margin-left: auto;
  }

  h1 {
    max-width: 11ch;
  }

  .lead {
    max-width: 31em;
  }

  .contact-status {
    max-width: 340px;
    margin: 0 auto;
  }

  .privacy-note {
    margin-right: auto;
    margin-left: auto;
  }

  .qr-frame {
    width: min(82vw, 424px);
  }

  .qr-caption {
    width: min(82vw, 424px);
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: calc(100% - 18px);
    gap: 16px;
    padding: 9px 0 16px;
  }

  .contact-panel {
    gap: 38px;
    padding: 31px 16px 38px;
    border-radius: 24px;
  }

  .identity-lockup {
    font-size: 13px;
  }

  .headline-wrap {
    margin-top: 28px;
  }

  h1 {
    font-size: clamp(39px, 12vw, 56px);
    letter-spacing: -0.045em;
  }

  .lead {
    padding: 0 4px;
    font-size: 15px;
    line-height: 1.75;
  }

  .contact-status time {
    display: none;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .primary-action,
  .secondary-action {
    min-width: 0;
    padding: 0 12px;
    font-size: 13px;
  }

  .privacy-note {
    max-width: 25em;
    padding: 0 8px;
  }

  .qr-frame,
  .qr-caption {
    width: min(88vw, 394px);
  }

  .qr-frame {
    padding: 11px;
    border-radius: 20px;
  }

  .qr-card {
    border-radius: 11px;
  }

  .qr-caption {
    grid-template-columns: minmax(18px, 1fr) auto minmax(18px, 1fr);
    gap: 9px;
    font-size: 11px;
  }

  footer {
    gap: 9px;
    font-size: 9px;
  }
}

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