:root {
  --bg: #ffffff;
  --bg-raise: #f6f8fb;
  --card: #ffffff;
  --line: #e1e7ef;
  --text: #333333;
  --muted: #5c6778;
  --accent: #5346e0;
  --accent-ink: #ffffff;
  --hot: #f26723;
  --warn: #9a5b12;
  --danger: #c24141;
  --shadow: 0 16px 40px rgba(33, 37, 54, 0.08);
  --sans: "Poppins", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
  --max: 1120px;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/poppins-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/poppins-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: #f7f5ff;
  background-image:
    radial-gradient(900px 420px at 88% -10%, rgba(83, 70, 224, 0.16), transparent 60%),
    radial-gradient(700px 380px at -10% 30%, rgba(242, 103, 35, 0.1), transparent 55%),
    url("/bg.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 6px 10px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 14px max(20px, calc((100% - var(--max)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
}
.brand-name { display: grid; line-height: 1.1; color: #241f4a; }
.brand-name small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.brand img { height: 36px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: #3a4150; font-weight: 600; }
.nav a:hover { color: var(--accent); }
.nav-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 11px 18px;
  cursor: pointer;
}
.nav a.nav-cta,
.nav a.nav-cta:hover {
  padding: 8px 14px;
  color: #ffffff;
  background: var(--accent);
}
.nav a.nav-cta:hover { background: #4336c9; }
.btn:hover { background: #4336c9; }
.btn.ghost, .chip {
  background: #fff;
  color: var(--accent);
  border: 1px solid #c9c6f2;
}
.btn.ghost:hover, .chip:hover, .chip.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: #f4f2ff;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
}

.hero-visual { position: relative; min-height: 560px; display: grid; align-items: center; }
.hero-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.78) 48%, rgba(255,255,255,.35) 100%); }
.hero-copy { position: relative; z-index: 1; padding: 72px 0; }
.shot, .wide { width: 100%; border-radius: 16px; border: 1px solid var(--line); display: block; }
.live-map {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f4ff;
}
.live-map img {
  width: 100%;
  display: block;
  animation: map-drift 14s ease-in-out infinite;
  transform-origin: center;
}
.mdot {
  position: absolute;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
.mdot::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(122, 92, 255, 0.35), 0 0 16px #7a5cff;
  animation: dot-pulse 2.2s ease-in-out infinite;
}
.mdot.hot::before { box-shadow: 0 0 0 4px rgba(242, 103, 35, 0.35), 0 0 16px #f26723; }
.mdot::after {
  content: attr(data-country);
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(4px);
  background: #1d1a33;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}
.mdot:hover::after, .mdot:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.mdot:hover::before, .mdot:focus-visible::before { transform: scale(1.35); }
@keyframes dot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
@keyframes map-drift {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
.product-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; margin-bottom: 12px; }
.product ul, .plain { margin: 10px 0 16px; padding-left: 18px; color: var(--muted); }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 36px;
}
.hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -40px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(83, 70, 224, 0.2), transparent 68%);
  pointer-events: none;
  z-index: -1;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hot);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live-count { margin: 16px 0 0; color: #241f4a; font-weight: 700; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); }
h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.12; margin: 12px 0; letter-spacing: -0.03em; color: #1d1a33; }
h2 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; color: #1d1a33; }
h3 { margin: 0 0 6px; font-size: 18px; color: #1d1a33; }
.lede { color: var(--muted); font-size: 18px; max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.panel header, .slip header { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.rows { margin: 14px 0; display: grid; gap: 8px; }
.rows div, .meta { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 8px; min-width: 0; }
.rows span, .meta span { color: var(--muted); flex: 0 0 auto; }
.rows b, .meta b { min-width: 0; text-align: right; overflow-wrap: anywhere; color: #1d1a33; }
.mono, .rows b, .price { font-family: var(--mono); font-weight: 650; }
.price { color: var(--accent); }
.note { color: var(--warn); font-size: 13px; }

.section { padding: 36px 0; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 16px; }
.section-head p, .sub { color: var(--muted); margin: 0; }
.grid { display: grid; gap: 14px; }
.grid.regions, .grid.cards { grid-template-columns: repeat(3, 1fr); }
.grid.steps { grid-template-columns: repeat(4, 1fr); }
.card, .step, details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 1px 0 rgba(29, 26, 51, 0.02);
}
.card .code {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--hot);
  background: #fcefe5;
  border-radius: 999px;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.empty {
  grid-column: 1 / -1;
  padding: 36px 20px;
  text-align: center;
  background: var(--bg-raise);
  color: var(--muted);
}
.card p, .step p, details p { color: var(--muted); margin: 0; }
.step b { font-family: var(--mono); color: var(--accent); display: block; margin-bottom: 8px; }
.banner {
  border: 1px solid #f0d3a8;
  background: #fff8ee;
  color: var(--warn);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 8px 0 16px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { border-radius: 999px; padding: 6px 12px; cursor: pointer; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; }
tr[hidden] { display: none; }

form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-weight: 500;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; align-items: start; }
.error { color: var(--danger); min-height: 1.2em; margin: 0; font-weight: 600; }
.slip {
  white-space: pre-wrap;
  background: #f6f8fb;
  border-radius: 12px;
  padding: 12px;
  min-height: 220px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
details summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; }
.faq { display: grid; gap: 10px; }
.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.foot a { color: var(--accent); font-weight: 700; text-decoration: none; }
.band { background: #f6f8fb; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 28px 0; }
.stats b { display: block; font-size: 22px; color: #1d1a33; }
.stats span { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.facts { grid-template-columns: repeat(4, 1fr); }
.closing {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin: 12px auto 36px;
  padding: 28px;
  border-radius: 16px;
  background: #f4f2ff;
  border: 1px solid #ddd8ff;
}
.closing p { color: var(--muted); margin: 8px 0 0; }
.map-board {
  position: relative;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(500px 220px at 50% 60%, rgba(83, 70, 224, 0.12), transparent 70%),
    #fff;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-board svg { width: 100%; height: 420px; display: block; }
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #ddd8ff;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #241f4a;
  box-shadow: 0 8px 20px rgba(83, 70, 224, 0.12);
}
.codebox {
  background: #1d1a33;
  color: #efeaff;
  border-radius: 16px;
  padding: 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.site-foot {
  margin-top: 20px;
  background: #1d1a33;
  color: #d9d4ef;
}
.site-foot .wrap { padding: 36px 0 22px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.site-foot a { color: #fff; text-decoration: none; font-weight: 600; }
.site-foot p, .site-foot li { color: #b7b1d4; }
.site-foot h2 { color: #fff; font-size: 18px; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 22px;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #b7b1d4;
}
.stock-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 8px; }
button.stock-pick, a.stock-pick { width: 100%; text-align: left; cursor: pointer; color: inherit; text-decoration: none; }
.stock-pick.is-on, a.stock-pick:hover, button.stock-pick:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(83, 70, 224, 0.12); }
.order-form, .auth-card { display: grid; gap: 12px; max-width: 760px; margin-top: 8px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.auth-card h1, .card h2 { margin-top: 0; }

@media (max-width: 860px) {
  .hero, .grid.regions, .grid.cards, .form-layout, .form-grid, .stock-list, .admin-grid, .stats, .split, .facts, .product-duo { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; }
  .hero-visual::after { background: linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72)); }
  .closing, .foot-grid, .foot-bottom { flex-direction: column; align-items: flex-start; }
  .foot-grid { grid-template-columns: 1fr; }
  .grid.steps { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .section-head { flex-direction: column; align-items: start; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; max-width: 100%; }
  tr {
    border: 1px solid var(--line);
    border-radius: 14px;
    margin-bottom: 10px;
    padding: 6px 10px;
    background: #fff;
  }
  tr[hidden] { display: none; }
  td {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 8px;
    border-bottom: 0;
    padding: 7px 0;
    min-width: 0;
  }
  td::before { content: attr(data-label); color: var(--muted); }
}
@media (max-width: 560px) {
  .grid.steps { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
}
