/* Local-first fonts: avoid blocking on fonts.googleapis.com in CN */
:root {
  --ink: #152033;
  --muted: #5a6b7d;
  --line: rgba(21, 32, 51, 0.12);
  --accent: #0b6bcb;
  --accent-dark: #084e96;
  --paper: #f3f6fa;
  --white: #ffffff;
  --hero-haze: #9eb6cf;
  --max: 1080px;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-display: Georgia, "Songti SC", "SimSun", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  background: linear-gradient(to bottom, rgba(243,246,250,0.94), rgba(243,246,250,0));
  backdrop-filter: blur(8px);
}
.nav-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.nav-links { display: flex; gap: 18px; align-items: center; font-size: 0.95rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 4px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 28px rgba(11, 107, 203, 0.28);
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost {
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; }

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--paper);
}
.hero-media {
  position: absolute;
  inset: 0;
  background: var(--paper);
}
.hero-menu {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12vh 0 0;
  animation: heroMenuIn .45s ease both;
}
.hero-menu picture {
  display: block;
  width: min(var(--max), calc(100% - 48px));
  line-height: 0;
}
.hero-menu img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 36px rgba(21, 32, 51, 0.18));
  border-radius: 6px;
}
@keyframes heroMenuIn {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: none; }
}
.hero-inner {
  position: absolute;
  z-index: 2;
  /* Over the right half of the centered base image */
  top: calc(12vh + 18%);
  left: 50%;
  width: min(340px, 32%);
  margin: 0;
  padding: 0;
  --hero-shift: clamp(40px, 8vw, 120px);
  transform: translateX(var(--hero-shift));
  text-align: left;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  animation: heroCopyIn 0.9s ease both;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  animation: rise .8s ease both;
}
.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  max-width: 14em;
  animation: rise .9s ease both;
}
.hero p {
  margin: 0 0 22px;
  max-width: 22em;
  color: rgba(255,255,255,0.88);
  font-size: 0.98rem;
  animation: rise 1s ease both;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
  animation: rise 1.1s ease both;
}
@keyframes heroCopyIn {
  from { opacity: 0; transform: translateX(var(--hero-shift)) translateY(16px); }
  to { opacity: 1; transform: translateX(var(--hero-shift)); }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.section .lead {
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 34em;
  font-size: 1.05rem;
}

.styles-shot {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(21, 32, 51, 0.16);
  border: 1px solid var(--line);
  animation: floatIn 1s ease both;
}
.styles-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1536 / 1024;
  object-fit: contain;
  object-position: center;
}
@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

.price-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
}
.price-num {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: 1;
  margin: 0;
}
.price-num span { font-size: 0.45em; vertical-align: super; margin-right: 4px; }
.price-note { color: var(--muted); margin: 10px 0 0; }

.footer {
  border-top: 1px solid var(--line);
  padding: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Buy page */
.buy-page { min-height: 100vh; padding: 100px 0 60px; }
.buy-shell {
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
}
.buy-shell h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  margin: 0 0 8px;
}
.pay-options { display: grid; gap: 12px; margin: 28px 0; }
.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
.pay-option:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11,107,203,0.12);
}
.pay-option input { accent-color: var(--accent); }

.wx-qr-box {
  margin-top: 20px;
  padding: 20px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.wx-qr-hint {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--ink);
}
.wx-qr-box img {
  margin: 0 auto;
  border-radius: 4px;
  background: #fff;
}
.wx-qr-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 38, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
  animation: rise .35s ease both;
}
.modal h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.8rem;
}
.modal p { color: var(--muted); margin: 0 0 16px; }
.code-box {
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  word-break: break-all;
  margin-bottom: 16px;
}
.status { min-height: 1.4em; color: var(--muted); font-size: 0.95rem; margin-top: 12px; }
.error { color: #b42318; }

@media (max-width: 900px) {
  .hero-inner {
    top: calc(12vh + 12%);
    width: min(300px, 38%);
    --hero-shift: clamp(16px, 4vw, 64px);
  }
}
@media (max-width: 720px) {
  .nav { padding: 14px 16px; }
  .hero-menu picture {
    width: calc(100% - 32px);
  }
  .hero-inner {
    top: auto;
    bottom: 10%;
    left: 16px;
    right: 16px;
    width: auto;
    --hero-shift: 0px;
    transform: none;
    text-align: center;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
  }
  .hero h1,
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .section { width: calc(100% - 32px); padding: 64px 0; }
  .price-block { grid-template-columns: 1fr; gap: 20px; }
  .nav-links a:not(.btn) { display: none; }
}