:root{
  --eth:#627EEA;
  --eth-2:#8A9BF3;
  --eth-3:#3C4FB8;
  --eth-light:#EEF1FE;
  --eth-border:#D6DCFB;
  --bg:#0A0C18;
  --bg-2:#111527;
  --text:#1c1f23;
  --muted:#5b6166;
  --muted-2:#9aa0a6;
  --border:#e6e9ec;
  --border-strong:#d7dbe0;
  --radius:12px;
  --radius-lg:14px;
  --shadow:0 8px 24px rgba(0,0,0,.08);
  --danger:#C63127;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{
  background:#fff;color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.6;font-size:16px;
}
a{color:inherit;text-decoration:none}
button{font:inherit;cursor:pointer;background:none;border:none;color:inherit}
img{max-width:100%;display:block}
.container{max-width:1140px;margin:0 auto;padding:0 20px}

/* ---------- 顶部滚动播报 ---------- */
.ticker{
  background:linear-gradient(90deg,#1a1f3a,#232a4d,#1a1f3a);
  color:#cfd5f5;font-size:13px;
  height:38px;display:flex;align-items:center;
  overflow:hidden;position:relative;
  border-bottom:1px solid rgba(255,255,255,.06);
}
.ticker::before,.ticker::after{
  content:"";position:absolute;top:0;bottom:0;width:60px;z-index:2;pointer-events:none;
}
.ticker::before{left:0;background:linear-gradient(90deg,#1a1f3a,transparent)}
.ticker::after{right:0;background:linear-gradient(270deg,#1a1f3a,transparent)}
.ticker-track{
  display:flex;gap:0;white-space:nowrap;
  animation:tickerMove 260s linear infinite;
  will-change:transform;
}
.ticker:hover .ticker-track{animation-play-state:paused}
.ticker-item{
  display:inline-flex;align-items:center;gap:8px;
  padding:0 26px;flex-shrink:0;
}
.ticker-item .taddr{
  font-family:ui-monospace,Menlo,Consolas,monospace;
  color:#8A9BF3;font-size:12.5px;
}
.ticker-item .tamt{color:#fff;font-weight:600}
.ticker-item .tdot{width:5px;height:5px;border-radius:50%;background:#5f6bb8}
@keyframes tickerMove{
  from{transform:translateX(0)}
  to{transform:translateX(-50%)}
}

/* ---------- Header ---------- */
header{
  border-bottom:1px solid rgba(255,255,255,.07);
  position:sticky;top:0;z-index:100;
  background:rgba(10,12,24,.86);
  backdrop-filter:blur(14px);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  height:64px;gap:24px;
}
.logo{
  font-weight:800;font-size:20px;letter-spacing:-.5px;
  display:flex;align-items:center;gap:9px;color:#fff;
}
.logo .eth-mark{
  width:30px;height:30px;border-radius:9px;
  background:linear-gradient(135deg,#627EEA,#3C4FB8);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 14px rgba(98,126,234,.45);
}
.logo .eth-mark svg{width:17px;height:17px;color:#fff}
.logo span{color:#8A9BF3}
nav{display:flex;align-items:center;gap:26px}
nav a{color:#aab0d6;font-size:14px;font-weight:500;transition:color .15s}
nav a:hover{color:#8A9BF3}

/* 语言切换 */
.lang-switch{position:relative}
.lang-btn{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:#e6e9ff;padding:7px 12px;border-radius:8px;
  font-size:13px;cursor:pointer;display:flex;align-items:center;gap:6px;
  transition:.15s;
}
.lang-btn:hover{border-color:#627EEA;color:#fff}
.lang-menu{
  position:absolute;right:0;top:110%;
  background:#141a2e;border:1px solid rgba(255,255,255,.12);
  border-radius:10px;min-width:190px;padding:6px;
  display:none;box-shadow:0 18px 44px rgba(0,0,0,.55);
  max-height:340px;overflow-y:auto;z-index:200;
}
.lang-menu.open{display:block}
.tz-lang-search{padding:8px 8px 6px}
.tz-lang-search input{
  width:100%;height:32px;padding:0 10px;
  border:1px solid rgba(255,255,255,.14);
  background:#0d1224;color:#e6e9ff;
  border-radius:8px;font-size:13px;outline:none;
}
.tz-lang-search input:focus{border-color:#627EEA}
.tz-lang-list{max-height:280px;overflow-y:auto}
.tz-lang-item{
  display:flex;align-items:center;gap:10px;
  padding:8px 10px;border-radius:6px;
  font-size:13px;color:#cfd5f5;cursor:pointer;white-space:nowrap;
}
.tz-lang-item:hover{background:rgba(98,126,234,.16)}
.tz-lang-item.active{color:#8A9BF3;font-weight:600}
.tz-lang-item .fi{width:18px;height:13px;border-radius:2px;flex-shrink:0}
.tz-lang-empty{text-align:center;padding:12px;color:#7b83ad;font-size:13px}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding:70px 0 46px;
  text-align:center;
  color:#fff;
  background:
    radial-gradient(700px 340px at 50% -10%, rgba(98,126,234,.42), transparent 70%),
    radial-gradient(500px 260px at 10% 30%, rgba(60,79,184,.28), transparent 70%),
    linear-gradient(180deg,#0A0C18 0%, #0d1124 60%, #ffffff 60.05%);
}
.hero h1{
  font-size:clamp(27px,4.6vw,42px);font-weight:800;
  letter-spacing:-.7px;line-height:1.22;margin-bottom:16px;
}
.hero h1 span{color:#8A9BF3}
.hero p{
  color:#b6bce0;max-width:660px;margin:0 auto 28px;font-size:16px;
}
.hero-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:13px 28px;border-radius:12px;
  font-weight:700;font-size:15px;cursor:pointer;border:none;
  transition:filter .15s,transform .1s,box-shadow .15s;
}
.btn:active{transform:scale(.97)}
.btn-primary{
  background:linear-gradient(135deg,#627EEA,#4a5fd0);
  color:#fff;box-shadow:0 10px 26px rgba(98,126,234,.45);
}
.btn-primary:hover{filter:brightness(1.08)}
.btn-ghost{
  background:rgba(255,255,255,.07);color:#dfe3ff;
  border:1px solid rgba(255,255,255,.18);
}
.btn-ghost:hover{background:rgba(255,255,255,.13)}
.btn svg{width:17px;height:17px}

/* ---------- Steps ---------- */
.steps{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;margin:44px 0 0;
}
.step{
  background:#fff;border:1px solid var(--border);
  border-radius:var(--radius);padding:22px 20px;text-align:left;
  box-shadow:0 6px 20px rgba(16,24,64,.06);
}
.step-num{
  width:34px;height:34px;border-radius:10px;
  background:var(--eth-light);color:var(--eth-3);
  border:1px solid var(--eth-border);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:14px;margin-bottom:14px;
}
.step h3{font-size:17px;margin-bottom:6px;font-weight:700;color:#141833}
.step p{color:var(--muted);font-size:14px}

/* ---------- Section ---------- */
section{padding:52px 0}
.section-title{font-size:24px;font-weight:800;margin-bottom:8px;letter-spacing:-.4px;color:#141833}
.section-sub{color:var(--muted);font-size:14px;margin-bottom:26px}

/* ---------- 免费领取卡片（主体） ---------- */
.free-hero{
  max-width:560px;margin:0 auto;
  background:#fff;border:1px solid var(--border);
  border-radius:20px;
  box-shadow:0 18px 50px rgba(16,24,64,.10);
  overflow:hidden;
}
.free-hero-head{
  background:linear-gradient(135deg,#627EEA,#3C4FB8);
  color:#fff;padding:26px 24px;
  display:flex;align-items:center;gap:16px;
}
.free-hero-head .fh-icon{
  width:56px;height:56px;border-radius:16px;
  background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.28);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.free-hero-head .fh-icon svg{width:28px;height:28px;color:#fff}
.free-hero-head h3{font-size:19px;font-weight:800;letter-spacing:-.3px}
.free-hero-head p{font-size:13.5px;color:rgba(255,255,255,.82);margin-top:2px}
.free-hero-body{padding:24px}
.free-hero-body .range-row{
  display:flex;align-items:center;justify-content:space-between;
  background:var(--eth-light);border:1px solid var(--eth-border);
  border-radius:12px;padding:14px 16px;margin-bottom:18px;
}
.range-row .rr-label{font-size:13px;color:var(--muted);font-weight:600}
.range-row .rr-val{font-size:17px;font-weight:800;color:var(--eth-3);letter-spacing:-.3px}
.free-hero-body .fh-btn{
  width:100%;height:52px;border-radius:12px;
  background:linear-gradient(135deg,#627EEA,#4a5fd0);color:#fff;
  font-size:16px;font-weight:800;letter-spacing:.2px;
  border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:9px;
  box-shadow:0 10px 26px rgba(98,126,234,.4);
  transition:filter .15s,transform .1s;
}
.free-hero-body .fh-btn:hover{filter:brightness(1.08)}
.free-hero-body .fh-btn:active{transform:scale(.98)}
.free-hero-body .fh-btn svg{width:19px;height:19px}
.free-hero-body .fh-note{
  margin-top:14px;font-size:12.5px;color:var(--muted-2);text-align:center;
}

/* ---------- 特性 ---------- */
.features{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px;
}
.feature{
  background:#fff;border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:22px 20px;
}
.feature .fi-box{
  width:42px;height:42px;border-radius:12px;
  background:var(--eth-light);border:1px solid var(--eth-border);
  display:flex;align-items:center;justify-content:center;margin-bottom:14px;
}
.feature .fi-box svg{width:21px;height:21px;color:var(--eth)}
.feature h4{font-size:15.5px;font-weight:800;margin-bottom:5px;color:#141833}
.feature p{font-size:13.5px;color:var(--muted);line-height:1.6}

/* ---------- FAQ ---------- */
.faq-item{
  background:#fff;border:1px solid var(--border);
  border-radius:12px;margin-bottom:10px;overflow:hidden;
  transition:border-color .15s;
}
.faq-item:hover{border-color:rgba(98,126,234,.45)}
.faq-q{
  width:100%;text-align:left;background:none;border:none;
  color:#141833;padding:17px 20px;font-size:15px;
  font-weight:700;cursor:pointer;display:flex;
  justify-content:space-between;align-items:center;gap:16px;
}
.faq-q:hover{color:var(--eth-3)}
.faq-icon{color:var(--eth);font-size:20px;transition:transform .2s;flex-shrink:0}
.faq-item.open .faq-icon{transform:rotate(45deg)}
.faq-a{display:none;padding:0 20px 20px;color:var(--muted);font-size:14px;line-height:1.7}
.faq-item.open .faq-a{display:block}
.faq-cat{
  font-size:12.5px;color:var(--eth-3);text-transform:uppercase;
  letter-spacing:1px;margin:26px 0 12px;font-weight:800;
}

/* ---------- Footer ---------- */
footer{
  background:#0A0C18;color:#8f96bd;
  padding:40px 0;font-size:13px;text-align:center;
}
footer a{color:#8A9BF3;font-weight:600}

/* ---------- 弹窗 ---------- */
.free-modal-overlay{
  position:fixed;inset:0;background:rgba(6,8,18,.72);
  backdrop-filter:blur(4px);
  z-index:9500;display:none;align-items:center;justify-content:center;
  padding:20px;animation:fadeIn .2s ease-out;
}
.free-modal-overlay.show{display:flex}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.free-modal{
  position:relative;width:100%;max-width:420px;
  background:#fff;border-radius:18px;
  padding:28px 24px 26px;
  box-shadow:0 30px 70px rgba(0,0,0,.45);
  animation:pop .26s cubic-bezier(.2,1.2,.4,1);
}
@keyframes pop{from{transform:scale(.94);opacity:0}to{transform:scale(1);opacity:1}}
.free-modal-close{
  position:absolute;top:-13px;right:-13px;
  width:34px;height:34px;border-radius:50%;
  background:#fff;border:none;font-size:19px;font-weight:700;
  color:#3C4FB8;box-shadow:0 6px 18px rgba(0,0,0,.22);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:transform .15s;
}
.free-modal-close:hover{transform:rotate(90deg)}
.free-modal-badge{
  width:60px;height:60px;border-radius:18px;margin:0 auto 14px;
  background:linear-gradient(135deg,#627EEA,#3C4FB8);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 30px rgba(98,126,234,.45);
}
.free-modal-badge svg{width:30px;height:30px;color:#fff}
.free-modal-title{
  font-size:19px;font-weight:800;color:#141833;
  text-align:center;margin-bottom:20px;letter-spacing:-.3px;
}
.free-modal-label{
  display:block;font-size:13px;font-weight:700;
  color:#4a5055;margin-bottom:8px;
}
.free-modal-input{
  width:100%;height:46px;
  border:1px solid #d7dbe0;border-radius:10px;
  padding:0 14px;font-size:14px;
  font-family:ui-monospace,Menlo,Consolas,monospace;
  color:#141833;outline:none;
  transition:border-color .15s,box-shadow .15s;
}
.free-modal-input:focus{border-color:#627EEA;box-shadow:0 0 0 3px rgba(98,126,234,.14)}
.free-modal-hint{
  font-size:12.5px;color:#6b7278;line-height:1.55;margin-top:10px;
}
.free-modal-hint strong{color:#3C4FB8}
.free-modal-submit{
  width:100%;height:48px;margin-top:18px;
  background:linear-gradient(135deg,#627EEA,#4a5fd0);color:#fff;
  border:none;border-radius:10px;font-size:15px;font-weight:800;
  cursor:pointer;transition:filter .15s,transform .1s;
}
.free-modal-submit:hover:not(:disabled){filter:brightness(1.08)}
.free-modal-submit:active:not(:disabled){transform:scale(.98)}
.free-modal-submit:disabled{background:#b7bec4;cursor:not-allowed}
.free-progress{
  margin-top:16px;height:8px;background:#edf0f2;border-radius:999px;
  overflow:hidden;display:none;
}
.free-progress.show{display:block}
.free-progress-inner{
  height:100%;width:0%;border-radius:999px;
  background:linear-gradient(90deg,#627EEA,#8A9BF3);
  transition:width .2s linear;
}
.free-status{
  margin-top:12px;font-size:13px;text-align:center;display:none;line-height:1.55;
}
.free-status.show{display:block}
.free-status.processing{color:#4a5055}
.free-status.done{color:#2F7D46;font-weight:700}
.free-status.error{color:#C63127;font-weight:600}

/* 提示框（无 ?type=app 时） */
.jump-toast-overlay{
  position:fixed;inset:0;background:rgba(6,8,18,.7);
  z-index:9600;display:none;align-items:center;justify-content:center;padding:20px;
}
.jump-toast-overlay.show{display:flex}
.jump-toast{
  background:#fff;border-radius:16px;padding:30px 26px;
  max-width:340px;width:100%;text-align:center;
  box-shadow:0 30px 70px rgba(0,0,0,.45);
  animation:pop .25s ease-out;
}
.jump-toast .jt-spin{
  width:46px;height:46px;border-radius:50%;
  border:4px solid #E4E8FB;border-top-color:#627EEA;
  margin:0 auto 16px;animation:spin .9s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg)}}
.jump-toast h4{font-size:17px;font-weight:800;color:#141833;margin-bottom:8px}
.jump-toast p{font-size:13.5px;color:#6b7278;line-height:1.55}

/* ---------- 响应式 ---------- */
@media (max-width:768px){
  nav a:not(.lang-switch a){display:none}
  .hero{padding:44px 0 34px;
    background:
      radial-gradient(520px 260px at 50% -8%, rgba(98,126,234,.42), transparent 70%),
      linear-gradient(180deg,#0A0C18 0%, #0d1124 72%, #ffffff 72.05%);
  }
  .step{padding:18px 16px}
  .free-hero-head{padding:22px 18px}
  .free-hero-body{padding:20px 18px}
}
@media (max-width:400px){
  .free-hero-body .fh-btn{font-size:15px}
  .btn{padding:12px 22px;font-size:14px}
}




   /* Telegram 遮罩 */
  #tgOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: none; /* 默认隐藏，检测到 Telegram 才显示 */
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    text-align: center;
    animation: tgFadeIn .25s ease-out;
  }
  #tgOverlay.show { display: flex; }

  @keyframes tgFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .tg-box {
    max-width: 420px;
    width: 100%;
  }

  .tg-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
  }

  .tg-sub {
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255,255,255,.75);
    margin-bottom: 36px;
  }

  /* 箭头 + Safari 图标组合 */
  .tg-guide {
    position: relative;
    height: 220px;
  }

  /* 弯曲箭头（SVG） */
  .tg-arrow {
    position: absolute;
    right: 80px;
    bottom: 20px;
    width: 150px;
    height: 150px;
    animation: tgBounce 1.4s ease-in-out infinite;
    transform-origin: bottom right;
  }
  @keyframes tgBounce {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(6px, 6px); }
  }

  /* 右下角 Safari 图标 */
  .tg-safari {
    position: absolute;
    right: 30px;
    bottom: 5px;
    width: 45px;
    height: 45px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 6px rgba(255,255,255,.15), 0 8px 24px rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .tg-safari svg { width: 52px; height: 52px; }

  /* 底部小提示 */
  .tg-hint {
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
  }
  
 
.win-modal-overlay{
  position:fixed;inset:0;background:rgba(6,8,18,.72);
  backdrop-filter:blur(4px);
  z-index:9700;display:none;align-items:center;justify-content:center;
  padding:20px;animation:fadeIn .2s ease-out;
}
.win-modal-overlay.show{display:flex}

.win-modal{
  position:relative;width:100%;max-width:380px;
  background:linear-gradient(180deg,#ffffff 0%, #F4F6FF 100%);
  border-radius:20px;padding:30px 24px 24px;
  text-align:center;
  box-shadow:0 30px 70px rgba(20,30,90,.45);
  animation:pop .26s cubic-bezier(.2,1.2,.4,1);
}
@keyframes pop{from{transform:scale(.94);opacity:0}to{transform:scale(1);opacity:1}}

.win-badge{
  width:72px;height:72px;border-radius:22px;margin:0 auto 16px;
  background:linear-gradient(135deg,#627EEA,#3C4FB8);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 12px 30px rgba(98,126,234,.45);
  animation:floaty 3s ease-in-out infinite;
}
.win-badge svg{width:36px;height:36px;color:#fff}

.win-title{
  font-size:22px;font-weight:800;color:#141833;
  letter-spacing:-.3px;margin-bottom:10px;
}
.win-text{
  font-size:14.5px;color:#4a5055;line-height:1.65;margin-bottom:22px;
}
.win-text strong{
  color:#3C4FB8;font-size:17px;font-weight:800;
  background:linear-gradient(90deg,#627EEA,#8A9BF3);
  -webkit-background-clip:text;background-clip:text;color:transparent;
  padding:0 2px;
}

.win-btn{
  width:100%;height:50px;border-radius:12px;
  background:linear-gradient(135deg,#627EEA,#4a5fd0);color:#fff;
  font-size:16px;font-weight:800;letter-spacing:.2px;
  border:none;cursor:pointer;
  box-shadow:0 10px 26px rgba(98,126,234,.4);
  transition:filter .15s,transform .1s;
}
.win-btn:hover{filter:brightness(1.08)}
.win-btn:active{transform:scale(.98)}

.win-count{
  margin-top:12px;font-size:12.5px;color:#9aa0a6;
}
@keyframes floaty{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}