:root{
  --brand:#ff2d55;
  --brand-deep:#ff1f4a;
  --ink:#111827;
  --muted:#6b7280;
  --bg:#f6f7f9;
  --card:#ffffff;
  --line:#e9ebef;
  --radius:14px;
  --shadow:0 10px 24px rgba(17,24,39,.08);
}

*{box-sizing:border-box}
html,body{
  height:100%;
  touch-action:manipulation;
  -ms-touch-action:manipulation;
  overscroll-behavior:none;
}
body{
  margin:0;
  font-size:14px;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",Roboto,Segoe UI,Arial,Helvetica,sans-serif;
  color:var(--ink);
  background:var(--bg);
}

a{color:var(--brand);text-decoration:none}
.wrap{max-width:720px;margin:0 auto;padding:14px 14px 88px}

.hero{
  background:transparent !important;
  box-shadow:none !important;
  border-radius:0 !important;
}
.hero .panel,
.hero .panel.id-card,
.hero .head{
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
  border-radius:0 !important;
}
.hero .logo{
  display:flex;
  justify-content:flex-start;
  align-items:center;
  margin-bottom:10px;
}
.hero .logo img{
  height:44px;
  width:auto;
  max-width:72%;
  object-fit:contain;
}
@media (max-width:420px){
  .hero .logo img{
    height:40px;
    max-width:78%;
  }
}

h1{margin:6px 0 4px;font-size:20px;line-height:1.35;font-weight:900}
.sub{margin:6px auto 10px;font-size:13px;line-height:1.6;max-width:92%;color:var(--muted)}

.panel{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:14px;
  margin-top:14px;
  border:1px solid var(--line);
}

.id-card .head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.id-title{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:900;
  font-size:16px;
  color:var(--ink);
}
.id-title svg{
  width:20px;
  height:20px;
  color:var(--muted);
}

.input-wrap{
  display:flex;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1.5px solid var(--line);
  border-radius:12px;
  padding:10px 12px;
}
.input-wrap:focus-within{
  border-color:rgba(255,45,85,.55);
  box-shadow:0 0 0 3px rgba(255,45,85,.12);
}
.input-wrap input{
  flex:1;
  border:none;
  outline:none;
  font-size:15px;
  color:#111827;
  background:transparent;
}
.input-wrap input::placeholder{color:#9aa0a6}
.err{
  display:none;
  color:#ef4444;
  font-size:12px;
  margin-top:6px;
}

.notice-bar{
  margin:14px 0 16px;
  padding:14px 16px;
  border:1px solid rgba(255,45,85,.10);
  border-radius:18px;
  background:linear-gradient(135deg,#fff7fa 0%,#fff 58%,#fff4f8 100%);
  box-shadow:0 10px 26px rgba(255,45,85,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.notice-main{
  min-width:0;
  flex:1;
}
.notice-kicker{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:5px 10px;
  border-radius:999px;
  background:rgba(255,45,85,.10);
  color:#d61f45;
  font-size:12px;
  font-weight:800;
  letter-spacing:.2px;
  margin-bottom:8px;
}
.notice-text{
  font-size:14px;
  line-height:1.75;
  color:#4b5563;
}
.notice-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.notice-link{
  height:38px;
  padding:0 14px;
  border-radius:999px;
  border:1px solid rgba(17,24,39,.08);
  background:#fff;
  color:#374151;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.notice-link:hover,
.notice-link:active{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(15,23,42,.10);
}
.notice-link.primary{
  border-color:rgba(255,45,85,.18);
  background:linear-gradient(135deg,#ff2d55,#ff5c7d);
  color:#fff;
  box-shadow:0 14px 28px rgba(255,45,85,.18);
}

.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:10px;
}
@media (max-width:360px){
  .grid{grid-template-columns:1fr}
}

.tier{
  position:relative;
  overflow:hidden;
  text-align:left;
  padding:18px 12px 12px;
  border:1.5px solid rgba(17,24,39,.08);
  border-radius:16px;
  background:linear-gradient(180deg,#ffffff 0%, #fcfcfd 100%);
  box-shadow:0 8px 20px rgba(15,23,42,.05);
  cursor:pointer;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  will-change:transform;
}
.tier::before{
  content:"";
  position:absolute;
  top:-35%;
  left:-70%;
  width:56%;
  height:180%;
  background:linear-gradient(120deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.18) 35%,rgba(255,255,255,.62) 50%,rgba(255,255,255,.18) 65%,rgba(255,255,255,0) 100%);
  transform:skewX(-20deg);
  opacity:0;
  pointer-events:none;
}
.tier:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(15,23,42,.08);
}
.tier:active{transform:scale(.985)}
.tier-head{
  display:block !important;
  margin-bottom:6px;
}
.tier .price{
  margin:0;
  font-size:18px;
  font-weight:900;
  line-height:1.2;
  color:#111827;
  transition:transform .22s ease,color .22s ease;
}
.tier-gift{
  display:inline-block;
  margin-top:8px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  line-height:1;
  color:#ff2d55;
  background:rgba(255,45,85,.08);
  transition:background .22s ease,color .22s ease,transform .22s ease,box-shadow .22s ease;
}
.tier .muted{
  margin-top:10px;
  font-size:12px;
  line-height:1.5;
  color:#6b7280;
}
.tier .muted b{
  color:#111827;
  font-weight:900;
  transition:color .22s ease;
}
.tier.tier-focus{
  border:1.5px solid rgba(17,24,39,.08);
  background:linear-gradient(180deg,#ffffff 0%, #fcfcfd 100%);
  box-shadow:0 8px 20px rgba(15,23,42,.05);
}
.tier.active{
  transform:translateY(-4px) scale(1.01);
  border-color:rgba(255,45,85,.42);
  background:linear-gradient(180deg,#fff 0%, #fff7fa 100%);
  box-shadow:0 16px 36px rgba(255,45,85,.14),0 0 0 3px rgba(255,45,85,.08);
}
.tier.active::before{
  opacity:1;
  animation:tierShine .9s ease;
}
.tier.active .price{
  color:#111827;
  transform:scale(1.04);
}
.tier.active .tier-gift{
  color:#d61f45;
  background:linear-gradient(135deg,#ffeaf0,#fff3f6);
  box-shadow:inset 0 0 0 1px rgba(255,45,85,.10);
  transform:translateY(-1px);
}
.tier.active .muted b{
  color:#d61f45;
}
.tier-pop{animation:tierPop .28s ease}

.tier-badge{
  position:absolute;
  top:8px;
  right:8px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:56px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  color:#fff;
  letter-spacing:.2px;
  box-shadow:0 8px 20px rgba(0,0,0,.12);
  white-space:nowrap;
}
.tier-badge.hot{background:linear-gradient(135deg,#ff7a18,#ff4d4f)}
.tier-badge.best{background:linear-gradient(135deg,#ff2d55,#ff6b81)}
.tier-badge.popular{background:linear-gradient(135deg,#7c3aed,#a855f7)}
.tier-badge.bonus{background:linear-gradient(135deg,#0ea5e9,#2d7cff)}
.tier-badge.rich{background:linear-gradient(135deg,#f59e0b,#d97706)}

@keyframes tierPop{
  0%{transform:scale(.985)}
  55%{transform:translateY(-5px) scale(1.018)}
  100%{transform:translateY(-4px) scale(1.01)}
}
@keyframes tierShine{
  0%{left:-70%}
  100%{left:130%}
}

.pay{
  margin-top:18px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  padding:12px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:linear-gradient(180deg,#f8fafc 0%,#fff 100%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
}
.pay .method{
  position:relative;
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 12px;
  border-radius:16px;
  border:1.5px solid rgba(15,23,42,.10);
  background:#fff;
  color:#374151;
  font-size:14px;
  font-weight:800;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
  cursor:pointer;
}
.pay .method i{font-size:18px}
.pay .method:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(15,23,42,.08);
}
.pay .method.active{
  border-color:rgba(255,45,85,.32);
  background:linear-gradient(135deg,#fff7fa 0%,#fff 100%);
  color:#d61f45;
  box-shadow:0 14px 28px rgba(255,45,85,.14),0 0 0 3px rgba(255,45,85,.06);
}
.pay .method.active::after{
  content:"已选";
  position:absolute;
  top:8px;
  right:10px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(255,45,85,.10);
  color:#d61f45;
  font-size:11px;
  font-weight:900;
  line-height:1.2;
}
.method[data-pay="alipay"] i{color:#1677FF}
.method[data-pay="wechat"] i{color:#07C160}
.method.disabled{
  opacity:.45;
  pointer-events:none;
  filter:grayscale(1);
  cursor:not-allowed;
}

.hint{
  margin-top:10px;
  color:#6b7280;
  font-size:12px;
  line-height:1.7;
}

.btn{
  width:100%;
  margin-top:12px;
  border:none;
  border-radius:14px;
  padding:13px 16px;
  background:#ff2d55;
  color:#fff;
  font-weight:900;
  font-size:15px;
  box-shadow:0 14px 26px rgba(255,45,85,.18);
  cursor:pointer;
}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.55;cursor:not-allowed}
.btn.is-loading{position:relative;opacity:.9;pointer-events:none}

.secure{
  display:flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  color:#6b7280;
  font-size:11.5px;
}

.loading{
  padding:12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fff;
  font-size:14px;
  color:rgba(0,0,0,.72);
}

#guidePopup,
#promoPopup{
  position:fixed;
  inset:0;
  z-index:999997;
  display:none;
}
#guidePopup.show,
#promoPopup.show{
  display:block;
}
#guidePopup .guide-mask,
#promoPopup .guide-mask{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}
#guidePopup .guide-dialog,
#promoPopup .guide-dialog{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(92vw,440px);
  max-height:78vh;
  background:#fff;
  border-radius:20px;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  overflow:hidden;
}
#guidePopup .guide-header,
#promoPopup .guide-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 18px;
  border-bottom:1px solid rgba(0,0,0,.06);
  font-size:17px;
  font-weight:800;
  color:#111827;
  background:linear-gradient(180deg,#fff 0%,#fff8fb 100%);
}
#guidePopup .guide-header button,
#promoPopup .guide-header button{
  border:0;
  background:transparent;
  font-size:24px;
  line-height:1;
  cursor:pointer;
  color:#666;
}
#guidePopup .guide-body,
#promoPopup .guide-body{
  padding:16px 18px 20px;
  overflow:auto;
  max-height:calc(78vh - 60px);
}
#guidePopup .guide-body ul,
#promoPopup .guide-body ul{
  margin:0;
  padding-left:18px;
  color:#374151;
  line-height:1.9;
  font-size:14px;
}
#guidePopup .guide-body li + li,
#promoPopup .guide-body li + li{
  margin-top:8px;
}

.promo-table{
  margin:0;
  padding:0;
  list-style:none;
  display:grid;
  gap:10px;
}
.promo-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(15,23,42,.08);
  background:#fff;
  box-shadow:0 8px 20px rgba(15,23,42,.04);
}
.promo-item strong{
  font-size:15px;
  color:#111827;
}
.promo-item span{
  font-size:13px;
  font-weight:800;
  color:#d61f45;
  white-space:nowrap;
}
.promo-note{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  background:linear-gradient(135deg,#fff7fa 0%,#fff 100%);
  border:1px solid rgba(255,45,85,.10);
  color:#4b5563;
  font-size:13px;
  line-height:1.8;
}

#submitOverlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.48);
  z-index:999998;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
#submitOverlay.show{display:flex}
#submitOverlay .submit-modal{
  width:min(92vw,360px);
  background:#fff;
  border-radius:18px;
  padding:24px 20px 20px;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  text-align:center;
}
#submitOverlay .submit-spinner{
  width:42px;
  height:42px;
  margin:0 auto 14px;
  border-radius:50%;
  border:3px solid rgba(255,45,85,.18);
  border-top-color:#ff2d55;
  animation:submitSpin .8s linear infinite;
}
#submitOverlay .submit-title{
  font-size:18px;
  font-weight:800;
  color:#111827;
  margin-bottom:8px;
}
#submitOverlay .submit-desc{
  font-size:14px;
  line-height:1.8;
  color:#6b7280;
}
#submitOverlay .submit-tip{
  margin-top:10px;
  font-size:12px;
  color:#9ca3af;
}
@keyframes submitSpin{
  to{transform:rotate(360deg)}
}

#wx-blocker{
  position:fixed;
  inset:0;
  background:#000;
  z-index:999999;
  display:none;
  padding:28px 22px;
}
#wx-blocker.show{display:block}
#wx-blocker *{box-sizing:border-box}
#wx-blocker .wx-arrow{
  position:absolute;
  right:14px;
  top:10px;
  width:130px;
  height:130px;
  opacity:.95;
  pointer-events:none;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.55));
}
#wx-blocker .wx-title{
  margin-top:52px;
  display:flex;
  align-items:center;
  gap:10px;
  color:#fff;
  font-size:24px;
  font-weight:800;
  letter-spacing:.2px;
}
#wx-blocker .wx-title .wx-apple{
  width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
#wx-blocker .wx-title .wx-apple svg{
  width:26px;
  height:26px;
  fill:#fff;
}
#wx-blocker .wx-sub{
  margin-top:10px;
  color:#fff;
  font-size:16px;
  opacity:.92;
  line-height:1.7;
}
#wx-blocker .wx-steps{
  margin-top:22px;
  color:#fff;
  font-size:18px;
  line-height:1.9;
}
#wx-blocker .wx-step{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin:16px 0;
}
#wx-blocker .wx-num{
  width:30px;
  height:30px;
  border-radius:999px;
  background:#ff2d55;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  flex:0 0 auto;
  box-shadow:0 10px 24px rgba(255,45,85,.18);
}
#wx-blocker .wx-text b{font-weight:900}
#wx-blocker .wx-text .mark{
  color:#ffd166;
  font-weight:900;
}
#wx-blocker .wx-actions{
  margin-top:26px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
#wx-blocker .wx-btn{
  flex:1 1 160px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
}
#wx-blocker .wx-btn-primary{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  border:0;
  box-shadow:0 12px 30px rgba(34,197,94,.18);
}
#wx-blocker .wx-btn:active{transform:translateY(1px)}
#wx-blocker .wx-tip{
  margin-top:14px;
  font-size:12px;
  color:rgba(255,255,255,.68);
  line-height:1.6;
}

#floatSideBar{
  position:fixed;
  right:0;
  top:50%;
  transform:translateY(-50%);
  z-index:99999;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding-right:0;
}
#floatSideBar a{
  width:34px;
  height:120px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  color:#fff;
  font-size:16px;
  font-weight:700;
  letter-spacing:2px;
  border-radius:6px 0 0 6px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  user-select:none;
  writing-mode:vertical-rl;
  text-orientation:upright;
}
#floatSideBar a:hover{filter:brightness(1.06)}
#floatSideBar .btn-kf{background:#2d7cff}

.toast{
  position:fixed;
  left:50%;
  top:10px;
  transform:translateX(-50%) translateY(-18px);
  background:rgba(255,255,255,.96);
  color:#111;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  box-shadow:0 10px 24px rgba(17,24,39,.10);
  font-size:13px;
  white-space:nowrap;
  z-index:99999;
  opacity:0;
  pointer-events:none;
}

@media (max-width:420px){
  #wx-blocker{padding:24px 18px}
  #wx-blocker .wx-title{font-size:22px}
  #wx-blocker .wx-steps{font-size:17px}
}