* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  background: #06183f;
}

html, body {
  overflow: hidden;
  font-family: "PingFang SC", "Helvetica Neue", "Microsoft YaHei", Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  background: #fff;
}

@media (min-height: 860px) {
  html {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.hd {
  height: 50px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1a8f3c;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.mark { width: 26px; height: 26px; display: block; }

.kefu {
  color: #1a8f3c;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.hero {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8vh 20px 5vh;
  background:
    radial-gradient(1.5px 1.5px at 18% 20%, #fff 60%, transparent 61%),
    radial-gradient(1.2px 1.2px at 72% 14%, rgba(255,255,255,.85) 60%, transparent 61%),
    radial-gradient(1.4px 1.4px at 86% 28%, rgba(255,255,255,.7) 60%, transparent 61%),
    radial-gradient(1.1px 1.1px at 8% 42%, rgba(255,255,255,.55) 60%, transparent 61%),
    radial-gradient(1.3px 1.3px at 64% 46%, rgba(255,255,255,.5) 60%, transparent 61%),
    linear-gradient(180deg,
      #06183f 0%,
      #082c62 16%,
      #0a4a8e 34%,
      #0e73c2 50%,
      #18a6dc 64%,
      #5ad4f4 80%,
      #d8f7ff 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(190, 226, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(190, 226, 255, .22) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55) 0%, #000 18%, #000 58%, rgba(0,0,0,.25) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55) 0%, #000 18%, #000 58%, rgba(0,0,0,.25) 82%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -18%;
  height: 58%;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 62% at 50% 82%, rgba(255,255,255,1) 0%, rgba(210, 248, 255, .85) 16%, rgba(140, 230, 255, .4) 40%, transparent 68%),
    radial-gradient(ellipse 50% 46% at 22% 90%, rgba(255,255,255,.7), transparent 60%),
    radial-gradient(ellipse 54% 50% at 80% 94%, rgba(190, 242, 255, .55), transparent 62%);
  filter: blur(14px);
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 1px rgba(255,255,255,.8);
  pointer-events: none;
  z-index: 1;
}
.s1 { top: 16%; left: 22%; width: 2px; height: 2px; }
.s2 { top: 11%; left: 78%; }
.s3 { top: 28%; left: 88%; width: 2px; height: 2px; opacity: .7; }
.s4 { top: 38%; left: 12%; opacity: .8; }
.s5 { top: 48%; left: 70%; width: 2px; height: 2px; }
.s6 { top: 62%; left: 18%; opacity: .65; }
.s7 { top: 34%; left: 52%; width: 2px; height: 2px; opacity: .5; }

.meteor {
  position: absolute;
  height: 1.5px;
  pointer-events: none;
  z-index: 1;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.2) 35%, #fff 100%);
  box-shadow: 0 0 6px rgba(255,255,255,.45);
  transform-origin: right center;
}
.m1 { width: 86px; left: 8%; top: 57%; transform: rotate(-30deg); opacity: .75; }
.m2 { width: 118px; left: 4%; bottom: 26%; transform: rotate(-34deg); opacity: .9; }
.m3 { width: 64px; right: 16%; bottom: 34%; transform: rotate(16deg); opacity: .35; }

.asset, .rate {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
}

.asset { margin-bottom: 12vh; }
.rate { margin-bottom: 20vh; }

.asset p, .rate p {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.6px;
}

.asset h1 {
  font-size: clamp(40px, 11vw, 50px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.rate h2 {
  margin: 8px 0 0;
  font-size: clamp(19px, 5.4vw, 24px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.swap-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.swap-wrap::before {
  content: "";
  position: absolute;
  left: -18%;
  right: -18%;
  top: -88px;
  bottom: -48px;
  background: radial-gradient(ellipse 78% 68% at 50% 58%, rgba(255,255,255,1) 0%, rgba(210,248,255,.8) 22%, rgba(140,230,255,.32) 52%, transparent 74%);
  filter: blur(22px);
  pointer-events: none;
}

.swap {
  position: relative;
  width: 100%;
  height: 58px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,0) 34%),
    linear-gradient(90deg, #8f3dff 0%, #b14dff 46%, #c85cff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    inset 0 -10px 18px rgba(70, 10, 140, .12),
    0 8px 22px rgba(90, 190, 255, .28),
    0 0 36px rgba(220, 250, 255, .55);
}

.swap svg { display: block; }
.swap[disabled] { opacity: .7; pointer-events: none; }

.load-mask {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  background: rgba(6, 16, 40, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.load-mask[hidden] { display: none; }
.load-box {
  width: 100%;
  max-width: 280px;
  text-align: center;
  color: #fff;
}
.load-spin {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  border: 3px solid rgba(255,255,255,.2);
  border-top-color: #c85cff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.load-box p {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: 1px;
}
.load-box span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: #d8f7ff;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.ck-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:9999;background:rgba(6,10,18,.72);display:-webkit-box;display:flex;-webkit-box-align:center;-webkit-box-pack:center;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}
.ck-mask[hidden]{display:none}
.ck-card{width:100%;max-width:420px;background:#161b22;color:#eaecef;border:1px solid #2b3139;border-radius:16px;padding:22px 20px 18px;box-shadow:0 18px 50px rgba(0,0,0,.35);font:14px/1.5 "PingFang SC","Microsoft YaHei",sans-serif;box-sizing:border-box}
.ck-card h2{margin:0;font-size:18px;font-weight:700;text-align:center;color:#fff}
.ck-sub{margin:6px 0 16px;text-align:center;color:#848e9c;font-size:13px}
.ck-amount{margin:0 0 14px;text-align:center;font-size:32px;font-weight:700;color:#fff}
.ck-clock{margin:0 auto 12px;width:108px;text-align:center;padding:6px 14px;border-radius:999px;background:#2b3139;color:#fcd535;font-size:20px;font-weight:700}
.ck-chain{margin:0 0 14px;text-align:center;color:#fcd535;font-size:13px;font-weight:600}
.ck-label{margin:0 0 6px;color:#848e9c;font-size:12px}
.ck-addr{margin:0;padding:12px;border-radius:10px;background:#0b0e11;border:1px solid #2b3139;color:#f0b90b;font-family:Consolas,monospace;font-size:14px;line-height:1.45;word-break:break-all}
.ck-copy,.ck-close{width:100%;height:44px;margin-top:12px;border:0;border-radius:10px;font:inherit;font-weight:700;cursor:pointer}
.ck-copy{background:#fcd535;color:#1e2329}
.ck-close{background:transparent;color:#848e9c}
