
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{touch-action:manipulation}
body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background:linear-gradient(135deg,#f5f7fa 0%,#c3cfe2 100%);
  color:#1d1d1f;
  padding:120px 10px 95px;
}
a,button{touch-action:manipulation}
.container{max-width:800px;margin:0 auto}
.fixed-header{
  position:fixed;top:0;left:0;right:0;z-index:5000;
  background:rgba(20,20,20,.92);backdrop-filter:blur(18px);
  padding:14px 15px;box-shadow:0 4px 16px rgba(0,0,0,.28)
}
.fixed-content{max-width:900px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.line1{color:#ff3b30;font-size:17px;font-weight:900}
.line2{color:#fff;font-size:12px;opacity:.9;margin-top:4px}
.fixed-btn{
  flex:0 0 auto;background:#fff;color:#007aff;text-decoration:none;
  padding:10px 18px;border-radius:999px;font-weight:800;font-size:14px
}
.watermark{
  position:fixed;inset:0;pointer-events:none;z-index:3000;
  display:flex;align-items:center;justify-content:center;
  font-weight:900;font-size:72px;color:rgba(255,59,48,.16);
  transform:rotate(-35deg);white-space:nowrap
}
.card{
  background:#fff;border-radius:24px;box-shadow:0 10px 30px rgba(0,0,0,.06);
  margin-bottom:25px;padding:25px
}
.intro h1{font-size:22px;margin:0 0 14px}
.intro p{line-height:1.7;color:#48484a}
.notice{
  background:linear-gradient(135deg,#ff9f0a,#ff3b30);
  color:white;border-radius:20px;padding:18px;line-height:1.7;margin:18px 0
}
.notice b{display:block;font-size:18px;margin-bottom:8px}
.cta{
  display:block;text-align:center;text-decoration:none;color:#fff;
  background:linear-gradient(135deg,#ff4d4f,#ff7a1a);
  border-radius:999px;padding:14px 18px;font-weight:900
}
.cta.blue{background:#007aff}
.grid-card{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:30px}
.account-card{
  background:#fff;padding:18px;border-radius:22px;border:1px solid rgba(0,0,0,.05);
  box-shadow:0 4px 12px rgba(0,0,0,.04)
}
.card-header{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-bottom:12px}
.card-title{font-size:16px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.region-badge{background:#eef1f6;color:#007aff;padding:4px 9px;border-radius:8px;font-size:11px;font-weight:800}
.id-status-bar{margin-bottom:12px}
.status-row{display:flex;align-items:center;font-size:13px;font-weight:700;margin-bottom:4px}
.status-dot{width:8px;height:8px;border-radius:50%;margin-right:6px}
.status-normal{color:#34c759}.status-normal .status-dot{background:#34c759}
.status-error{color:#ff3b30}.status-error .status-dot{background:#ff3b30}
.status-2fa{color:#ff9500}.status-2fa .status-dot{background:#ff9500}
.time-row{font-size:11px;color:#aeaeb2;padding-left:14px}
.input-label{display:block;font-size:11px;color:#8e8e93;margin:9px 0 5px 4px;font-weight:700}
.input-field{
  width:100%;padding:12px 14px;background:#f5f5f7;border-radius:12px;
  font-size:14px;font-weight:700;font-family:"SF Mono",Menlo,monospace;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.button-group{display:flex;gap:10px;margin-top:12px}
.action-btn{
  flex:1;border-radius:999px;padding:11px 0;font-size:13px;font-weight:800;
  cursor:pointer
}
.btn-outline{background:#fff;border:1px solid rgba(0,122,255,.18);color:#007aff}
.btn-primary{background:#007aff;border:0;color:#fff}
.guide-card h2{text-align:center;margin-top:0}
.guide-note{background:#fff1f1;color:#333;border-radius:14px;padding:12px;text-align:center}
.guide-img{display:block;width:100%;border-radius:18px;margin-top:14px}
.img-placeholder{
  border:2px dashed #d1d5db;color:#6b7280;border-radius:18px;padding:28px;
  text-align:center;margin-top:14px;background:#f8fafc
}
.optional-img{display:none}
.support h2{margin-top:0}
.modal-overlay{
  position:fixed;inset:0;z-index:9000;background:rgba(0,0,0,.62);
  backdrop-filter:blur(10px);display:flex;align-items:center;justify-content:center;padding:18px
}
.modal-overlay.hidden{display:none}
.modal-box{
  width:100%;max-width:380px;background:#fff;border-radius:28px;padding:30px 25px;text-align:center;
  box-shadow:0 25px 50px rgba(0,0,0,.25)
}
.modal-title{font-size:22px;font-weight:900;margin-bottom:15px}
.modal-p{font-size:15px;line-height:1.7;color:#3a3a3c}
.modal-red{color:#ff3b30;font-weight:800;line-height:1.7}
.modal-buy-btn{
  display:block;text-decoration:none;color:#fff;background:linear-gradient(135deg,#ff4d4f,#ff7a1a);
  padding:14px;border-radius:999px;font-weight:900;margin:16px 0
}
.tutorial-mini{background:#111;color:#fff;border-radius:16px;padding:18px;margin-bottom:16px}
.timer-btn{
  width:100%;padding:14px;border:0;border-radius:999px;background:#f2f2f7;color:#8e8e93;
  font-weight:800
}
.timer-btn.active{background:#007aff;color:white;cursor:pointer}
.warn{border-top:6px solid #ff3b30}
.warn-icon{font-size:48px}
.warn-title{color:#ff3b30}
.warn-content{background:#fff2f2;border:1px solid rgba(255,59,48,.2);padding:15px;border-radius:12px;line-height:1.7}
.bottom-store-bar{
  position:fixed;left:50%;transform:translateX(-50%);bottom:12px;z-index:6000;
  width:min(760px,calc(100% - 24px));background:rgba(20,20,20,.94);color:#fff;
  border-radius:22px;padding:12px 14px;display:none;align-items:center;justify-content:space-between;
  gap:12px;box-shadow:0 14px 38px rgba(0,0,0,.28);backdrop-filter:blur(16px)
}
.bottom-store-bar.show{display:flex}
.bottom-store-bar b{display:block;font-size:13px}
.bottom-store-bar span{display:block;font-size:11px;opacity:.8;margin-top:3px}
.bottom-store-bar a{
  flex:0 0 auto;text-decoration:none;color:#fff;background:#ff4d3d;
  border-radius:999px;padding:11px 16px;font-size:13px;font-weight:900
}
.toast{
  position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:10000;
  background:rgba(0,0,0,.86);color:#fff;border-radius:999px;padding:15px 28px;
  font-weight:800;display:none
}
.empty{grid-column:1/-1;background:#fff;border-radius:22px;padding:30px;text-align:center;color:#64748b}

@media(max-width:600px){
  body{padding-top:116px}
  .fixed-btn{padding:9px 13px;font-size:13px}
  .line1{font-size:16px}
  .line2{font-size:11px}
  .grid-card{grid-template-columns:1fr 1fr;gap:8px}
  .account-card{padding:12px;border-radius:18px}
  .card-title{font-size:13px}
  .region-badge{padding:3px 6px;font-size:10px}
  .status-row{font-size:11px}
  .time-row{font-size:10px}
  .input-field{padding:9px 10px;font-size:12px}
  .button-group{gap:6px;margin-top:8px}
  .action-btn{padding:9px 0;font-size:12px}
  .card{padding:18px;border-radius:20px}
  .watermark{font-size:48px}
}

/* =========================
   4位访问密码
   ========================= */

.pin-box{
  margin-top:18px;
}

.pin-title{
  margin-bottom:12px;
  font-size:15px;
  font-weight:800;
  color:#1d1d1f;
}

.pin-input{
  width:100%;
  height:56px;
  padding-left:12px;
  border:2px solid #e5e7eb;
  border-radius:16px;
  outline:none;
  text-align:center;
  font-size:26px;
  font-weight:900;
  letter-spacing:12px;
  background:#f8fafc;
  color:#111827;
}

.pin-input:focus{
  border-color:#007aff;
  box-shadow:0 0 0 4px rgba(0,122,255,.10);
}

.pin-submit{
  width:100%;
  height:52px;
  margin-top:12px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  font-size:15px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg,#007aff,#2563eb);
  transition:transform .18s ease,opacity .18s ease;
}

.pin-submit:active{
  transform:scale(.98);
}

.pin-submit:disabled{
  cursor:not-allowed;
  opacity:.7;
}

.pin-error{
  min-height:20px;
  margin-top:10px;
  text-align:center;
  color:#ff3b30;
  font-size:13px;
  font-weight:700;
}

/* 首屏弹窗倒计时后隐藏继续按钮，再显示PIN区 */
.timer-btn.hidden,
.pin-box.hidden{
  display:none!important;
}


/* =========================
   访问弹窗美化优化
   ========================= */
.modal-box-access{
  max-width:400px;
  padding:32px 24px 24px;
  border-radius:30px;
  box-shadow:0 24px 60px rgba(0,0,0,.28);
}

.modal-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:999px;
  background:#fff8e6;
  color:#111827;
  font-size:17px;
  font-weight:900;
  margin-bottom:18px;
}

.modal-risk-box{
  background:linear-gradient(180deg,#fff7f7,#fffafa);
  border:1px solid rgba(255,59,48,.12);
  color:#ff3b30;
  font-size:15px;
  font-weight:800;
  line-height:1.75;
  border-radius:18px;
  padding:16px 14px;
}

.modal-desc-box{
  margin-top:12px;
  background:#f6f7fb;
  color:#4b5563;
  font-size:15px;
  line-height:1.8;
  border-radius:18px;
  padding:14px 14px;
}

.modal-buy-btn{
  display:block;
  text-decoration:none;
  color:#fff;
  background:linear-gradient(135deg,#ff5457,#ff7a1a);
  padding:15px 18px;
  border-radius:999px;
  font-weight:900;
  margin:18px 0 12px;
  box-shadow:0 10px 24px rgba(255,102,48,.28);
}

.timer-btn{
  width:100%;
  min-height:54px;
  padding:14px 18px;
  border:0;
  border-radius:999px;
  background:#eff1f6;
  color:#9aa1ad;
  font-size:15px;
  font-weight:900;
  transition:all .22s ease;
}

.timer-btn.active.ready{
  background:linear-gradient(135deg,#16181d,#0a0b0f);
  color:#fff;
  box-shadow:0 12px 26px rgba(0,0,0,.25);
  letter-spacing:.3px;
}

.pin-box{
  margin-top:16px;
  padding:18px 16px 14px;
  border-radius:22px;
  background:linear-gradient(180deg,#f8fbff,#f2f7ff);
  border:1px solid rgba(0,122,255,.10);
  animation:pinFadeIn .25s ease;
}

.pin-title{
  margin-bottom:6px;
  font-size:18px;
  font-weight:900;
  color:#111827;
}

.pin-subtitle{
  color:#6b7280;
  font-size:13px;
  line-height:1.6;
  margin-bottom:14px;
}

.pin-input-wrap{
  background:#fff;
  border:1px solid #dbe5f0;
  border-radius:18px;
  padding:10px 12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.pin-input{
  width:100%;
  height:54px;
  padding:0;
  border:0;
  outline:none;
  text-align:center;
  font-size:30px;
  font-weight:900;
  letter-spacing:14px;
  background:transparent;
  color:#111827;
}

.pin-input::placeholder{
  color:#c5ccd8;
  letter-spacing:10px;
}

.pin-submit{
  width:100%;
  height:52px;
  margin-top:12px;
  border:0;
  border-radius:16px;
  cursor:pointer;
  font-size:15px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg,#1677ff,#5b7cff);
  box-shadow:0 10px 22px rgba(22,119,255,.22);
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.pin-submit:hover{
  box-shadow:0 12px 26px rgba(22,119,255,.26);
}

.pin-submit:active{
  transform:scale(.985);
}

.pin-error{
  min-height:20px;
  margin-top:10px;
  text-align:center;
  color:#ff3b30;
  font-size:13px;
  font-weight:700;
}

@keyframes pinFadeIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

@media(max-width:600px){
  .modal-box-access{
    max-width:92vw;
    padding:28px 18px 20px;
    border-radius:28px;
  }
  .modal-badge{font-size:15px;min-height:44px;padding:0 16px;margin-bottom:16px}
  .modal-risk-box,.modal-desc-box{font-size:14px;border-radius:16px;padding:14px 12px}
  .modal-buy-btn,.timer-btn{font-size:15px;padding:14px 16px}
  .pin-box{padding:16px 14px 12px;border-radius:20px}
  .pin-title{font-size:17px}
  .pin-subtitle{font-size:12px;margin-bottom:12px}
  .pin-input{font-size:28px;letter-spacing:12px}
}


/* 倒计时结束后自动切换到密码输入卡片 */
.pin-box.show{
  display:block!important;
  animation:pinFadeIn .28s ease;
}
