:root {
  color-scheme: dark;
  --bg: #090d12;
  --bg-soft: #101820;
  --ink: #f8fafc;
  --muted: #aeb9c8;
  --line: rgba(255, 255, 255, 0.13);
  --panel: rgba(17, 25, 35, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.065);
  --gold: #f4c542;
  --cyan: #38d5c8;
  --blue: #5f8cff;
  --orange: #ff8b3d;
  --green: #94e185;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 14%, rgba(244, 197, 66, 0.16), transparent 24rem),
    radial-gradient(circle at 86% 8%, rgba(56, 213, 200, 0.12), transparent 26rem),
    linear-gradient(140deg, #090d12 0%, #151018 42%, #091219 100%);
  line-height: 1.65;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 13, 18, 0.86);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.trust-strip,
.exchange-top,
.id-cloud {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(244, 197, 66, 0.5);
  border-radius: 8px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 243, 166, 0.2), transparent 28px),
    linear-gradient(145deg, rgba(244, 197, 66, 0.14), rgba(56, 213, 200, 0.06)),
    #101820;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 30px rgba(0, 0, 0, 0.28);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.logo-q {
  fill: none;
  stroke: url("#qnLogoGold");
  stroke-width: 5;
  stroke-linejoin: round;
}

.logo-n,
.logo-tail {
  fill: none;
  stroke: url("#qnLogoGold");
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-n {
  stroke-width: 5;
}

.logo-tail {
  stroke-width: 4;
}

.brand-name {
  letter-spacing: 0;
}

.exchange-logo {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), #fff0a3);
  color: #17120a;
  font-size: 14px;
  font-weight: 950;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 15px;
}

.nav-links a:hover,
.nav-cta:hover,
.text-link:hover {
  color: var(--ink);
}

.nav-cta,
.text-link {
  color: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.hero,
.section,
.poster-section,
.risk-section {
  padding: clamp(72px, 8vw, 112px) clamp(18px, 4vw, 56px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
  min-height: calc(100vh - 72px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(50px, 8vw, 96px);
  line-height: 0.98;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.12;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.22;
}

.hero-lede,
.section-heading p,
.poster-copy p,
.contact-copy p,
.faq-grid p,
.benefit-list p,
.timeline p,
.risk-section p,
.hero-panel p {
  color: var(--muted);
}

.hero-lede {
  max-width: 760px;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 24px;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 20px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

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

.button.primary {
  background: var(--gold);
  color: #17120a;
}

.button.secondary,
.copy-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
}

.button.wide {
  width: 100%;
}

.trust-strip {
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span,
.id-cloud span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 14px;
}

.hero-panel,
.exchange-card,
.benefit-list article,
.timeline article,
.faq-grid details,
.contact-panel,
.risk-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.hero-panel {
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.panel-header {
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}

.panel-header span,
.quick-rates span,
.contact-list dt {
  color: var(--muted);
  font-size: 14px;
}

.panel-header strong {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  word-break: break-word;
}

.quick-rates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.quick-rates div {
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.055);
}

.quick-rates strong {
  display: block;
  margin: 6px 0 2px;
  font-size: 34px;
  line-height: 1;
}

.quick-rates small {
  color: var(--gold);
  font-weight: 800;
}

.poster-section {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.poster-frame {
  margin: 0;
  border: 1px solid rgba(244, 197, 66, 0.35);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.poster-frame img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
}

.hero-poster {
  align-self: center;
}

.poster-copy {
  max-width: 760px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-tint {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.exchange-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.exchange-card {
  display: grid;
  gap: 22px;
  min-height: 264px;
  padding: 22px;
}

.exchange-top {
  gap: 14px;
}

.exchange-top p {
  margin-bottom: 0;
  color: var(--muted);
  word-break: break-word;
}

.exchange-logo {
  flex: 0 0 auto;
}

.accent-blue .exchange-logo {
  background: linear-gradient(135deg, var(--blue), #b2c5ff);
}

.accent-orange .exchange-logo {
  background: linear-gradient(135deg, var(--orange), #ffd0a8);
}

.accent-cyan .exchange-logo {
  background: linear-gradient(135deg, var(--cyan), #c8fff8);
}

.rate-line strong {
  display: block;
  font-size: 54px;
  line-height: 1;
}

.rate-line span {
  color: var(--muted);
}

.copy-button {
  width: 100%;
  align-self: end;
}

.card-actions {
  display: grid;
  gap: 10px;
  align-self: end;
}

.link-button {
  background: var(--gold);
  color: #17120a;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(28px, 6vw, 80px);
}

.benefit-list {
  display: grid;
  gap: 14px;
}

.benefit-list article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.benefit-list span {
  color: var(--cyan);
  font-weight: 900;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.partner-section {
  padding-top: 0;
}

.partner-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(22px, 4vw, 48px);
  border: 1px solid rgba(244, 197, 66, 0.28);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(135deg, rgba(244, 197, 66, 0.12), rgba(56, 213, 200, 0.055)),
    var(--panel);
}

.partner-copy p,
.partner-rules p {
  color: var(--muted);
}

.partner-rules {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.partner-rules p {
  margin-bottom: 22px;
}

.timeline article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
}

.timeline strong {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--green);
  color: #08110b;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(300px, 0.88fr) minmax(280px, 0.78fr);
  align-items: start;
  gap: 18px;
}

.id-cloud {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.contact-panel {
  padding: 26px;
}

.contact-action-panel {
  display: grid;
  gap: 18px;
}

.wechat-card {
  display: grid;
  grid-template-columns: minmax(136px, 180px) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 28px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.055);
}

.wechat-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  background: #fff;
}

.qr-open {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
}

.wechat-card figcaption {
  display: grid;
  gap: 6px;
}

.wechat-card strong {
  font-size: 18px;
}

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

.text-button {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 20px 0 22px;
}

.contact-list div {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.contact-list dt,
.contact-list dd {
  margin: 0;
}

.contact-list dd {
  word-break: break-word;
  font-weight: 750;
}

.contact-list a {
  color: var(--gold);
}

.contact-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  text-align: center;
}

.qr-placeholder span {
  display: block;
  font-weight: 850;
}

.qr-placeholder small {
  color: var(--muted);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-grid details {
  padding: 20px 22px;
}

.faq-grid summary {
  font-weight: 850;
  cursor: pointer;
}

.faq-grid p {
  margin: 12px 0 0;
}

.risk-section {
  margin: clamp(32px, 5vw, 56px) clamp(18px, 4vw, 56px) clamp(72px, 8vw, 112px);
  padding: 24px;
  background: rgba(244, 197, 66, 0.08);
}

.risk-section strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.risk-section p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

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

.qr-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.76);
  cursor: zoom-out;
}

.qr-dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 520px);
  border: 1px solid rgba(244, 197, 66, 0.36);
  border-radius: 8px;
  padding: 18px;
  background: #0f1720;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.qr-dialog img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}

.qr-dialog p {
  margin: 12px 0 0;
  font-weight: 850;
}

.qr-dialog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.qr-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 13, 18, 0.86);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1080px) {
  .exchange-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .poster-section,
  .split-section,
  .partner-card,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .poster-frame {
    max-width: 560px;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .section,
  .poster-section {
    padding: 56px 18px;
  }

  h1 {
    font-size: 46px;
  }

  .quick-rates,
  .exchange-grid,
  .timeline,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .exchange-card {
    min-height: 0;
  }

  .contact-list div,
  .wechat-card {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer {
    flex-direction: column;
  }

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