.nav{position:sticky;top:0;z-index:100;backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);background:rgba(13,13,17,.85);border-bottom:1px solid rgba(255,255,255,.06)}

.site-bg {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 10%, rgba(16, 185, 129, 0.04) 0%, rgba(13, 13, 17, 0) 50%), radial-gradient(circle at 80% 90%, rgba(59, 130, 246, 0.04) 0%, rgba(13, 13, 17, 0) 40%);
  z-index: -2;
}

.site-bg-mask {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 13, 17, 0.8) 0%, rgba(13, 13, 17, 0.6) 50%, rgba(13, 13, 17, 0.9) 100%);
  z-index: -1;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

.wrap > header {
  text-align: center;
  padding: 36px 0;
}

.wrap > header h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #10B981, #06B6D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.wrap > header p {
  font-size: 15px;
  color: rgba(243, 244, 246, 0.6);
  max-width: 600px;
  margin: 0 auto;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 20px;
}

.card {
  background: rgba(21, 21, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 20px;
  backdrop-filter: blur(20px);
}

.card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: rgba(243, 244, 246, 0.9);
}

.drop {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: .2s;
}

.drop:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.02);
}

.drop .ico {
  font-size: 32px;
  margin-bottom: 10px;
}

.drop .hint {
  font-size: 12px;
  color: rgba(243, 244, 246, 0.4);
  margin-top: 6px;
}

#previewWrap {
  margin-top: 16px;
}

#srcPreview {
  max-width: 100%;
  border-radius: 10px;
  display: none;
}

.result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.result-meta {
  font-size: 13px;
  color: rgba(243, 244, 246, 0.6);
  margin-top: 8px;
}

.dl {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.dl a {
  flex: 1;
  padding: 10px;
  text-align: center;
  background: rgba(16, 185, 129, 0.08);
  color: #10B981;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: .2s;
}

.dl a:hover {
  background: rgba(16, 185, 129, 0.14);
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(243, 244, 246, 0.9);
}

.seg {
  display: flex;
  gap: 8px;
}

.seg label {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: rgba(243, 244, 246, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seg label.on {
  background: rgba(16, 185, 129, 0.08);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.2);
}

.seg label input {
  display: none;
}

select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: rgba(13, 13, 17, 0.8);
  color: #F3F4F6;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  outline: none;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #10B981;
  cursor: pointer;
}

.rangeval {
  font-size: 13px;
  color: rgba(243, 244, 246, 0.8);
  min-width: 24px;
  text-align: center;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s;
  margin-top: 16px;
}

.btn:not(:disabled) {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
}

.btn:not(:disabled):hover {
  opacity: 0.9;
}

.btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  cursor: not-allowed;
}

.pricing {
  margin-top: 36px;
}

.pricing h2 {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}

.pcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.pc{background:#15151A;border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:16px;text-align:center;position:relative;transition:box-shadow .2s,border-color .2s}
.pc:hover{box-shadow:0 4px 16px rgba(0,0,0,.3);border-color:rgba(16,185,129,.2)}
.pc.featured{border:2px solid #10B981;box-shadow:0 2px 12px rgba(16,185,129,.15);background:#0D1F1A}
.pc .tag{position:absolute;top:-10px;left:50%;transform:translateX(-50%);background:#10B981;color:#fff;font-size:11px;font-weight:700;padding:2px 10px;border-radius:999px}
.pc .name{font-size:14px;font-weight:600}
.pc .price{font-size:24px;font-weight:600;color:#10B981;margin:8px 0 2px}
.pc .price small{font-size:13px;color:rgba(243,244,246,.55)}
.pc .unit{font-size:12px;color:rgba(243,244,246,.5);margin-bottom:12px}
.pc .btn{width:100%;padding:9px;border:none;border-radius:9px;background:rgba(16,185,129,.08);color:#10B981;font-weight:700;font-size:13px;cursor:pointer;transition:background .2s;font-family:inherit}
.pc .btn:hover{background:rgba(16,185,129,.14)}
.pc .btn.solid{background:#10B981;color:#fff}
.pc .btn.solid:hover{background:#059669}

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .wrap > header h1 {
    font-size: 28px;
  }
}

/* ===== Trust Badges ===== */
.trust-badges{display:flex;gap:16px;justify-content:center;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.04)}
.trust-badges span{font-size:12px;color:#9CA3AF;display:inline-flex;align-items:center;gap:4px}

/* ===== Process Overlay ===== */
.process-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:100000}
.process-overlay.show{display:flex}
.process-overlay .box{background:#1e1e2e;border-radius:16px;padding:28px 34px;text-align:center}
.spinner{width:38px;height:38px;border:4px solid rgba(255,255,255,.15);border-top-color:#10B981;border-radius:50%;margin:0 auto 14px;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.process-overlay .txt{font-size:14px;color:#fff}
.process-overlay .tm{font-size:12px;color:rgba(255,255,255,.6);margin-top:8px}

/* ===== Pay Modal ===== */
.pay-modal{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:100001}
.pay-modal.show{display:flex}
.pay-modal-content{background:#1e1e2e;color:#fff;border-radius:18px;padding:28px 30px;max-width:340px;width:90%;text-align:center}
.pay-channel-btn{flex:1;padding:12px 0;border:none;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer}
.pay-channel-btn.wechat{background:#07c160;color:#fff}
.pay-channel-btn.alipay{background:#1677ff;color:#fff}
.pay-cancel-btn{margin-top:16px;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:8px 26px;font-size:13px;cursor:pointer}

/* ===== Login Modal ===== */
.login-overlay{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:300}
.login-overlay.show{display:flex}
.login-modal{background:#15151A;border-radius:18px;padding:32px;max-width:340px;width:90%;position:relative}
.login-modal-close{position:absolute;top:12px;right:16px;font-size:24px;background:none;border:none;cursor:pointer;color:rgba(243,244,246,.4);line-height:1}
.login-modal-sub{font-size:13px;color:rgba(243,244,246,.5);margin-bottom:20px}
.login-phone-row{display:flex;align-items:center;gap:8px;margin-bottom:14px}
.phone-prefix{font-size:14px;color:rgba(243,244,246,.6);padding:9px 12px;border-radius:10px;background:#15151A}
.login-phone-row input,.login-code-row input{flex:1;padding:9px 11px;border-radius:10px;font-size:14px;background:#0D0D11;color:#F3F4F6;outline:none;border:none}
.login-code-row{display:flex;gap:8px;margin-bottom:20px}
.send-code-btn{padding:9px 16px;border-radius:10px;border:none;cursor:pointer;background:#10B981;color:#fff;font-size:13px;font-weight:600;white-space:nowrap}
.login-submit-btn{width:100%;padding:12px;border:none;border-radius:12px;cursor:pointer;font-size:15px;font-weight:600;background:#10B981;color:#fff}
.login-note{font-size:11px;color:rgba(243,244,246,.4);margin-top:12px;text-align:center}

/* ===== Avatar Dropdown ===== */
.avatar-dropdown{position:fixed;top:56px;right:22px;display:none;z-index:200;background:#15151A;border-radius:12px;padding:8px;min-width:160px}
.avatar-dropdown.show{display:block}
.dd-balance{padding:8px 12px;font-size:13px;color:rgba(243,244,246,.6)}
.dd-divider{height:1px;background:rgba(255,255,255,.06);margin:4px 0}
.dd-danger{color:#e53e3e!important}

/* ===== Footer ===== */
.site-footer {
  background:#08080A;
  border-top:1px solid rgba(255,255,255,0.08);
  padding:46px 24px 36px;
  text-align: center;
  margin-top: 56px;
}

.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 13px;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: .5px;
  transition: color .2s;
}

.footer-links a:hover {
  color: #10B981;
}

.footer-promise {
  font-size: 12px;
  color: #10B981;
  margin-bottom: 12px;
  letter-spacing: .3px;
}

.footer-text {
  font-size: 12px;
  color: #999999;
  margin-bottom: 6px;
  line-height: 1.6;
}

.footer-icp {
  font-size: 11.5px;
  color: #999999;
  text-decoration: none;
  letter-spacing: .3px;
  transition: color .2s;
  display: inline-block;
  margin-bottom: 4px;
}

.footer-icp:hover {
  color: #666666;
}

.footer-ga {
  font-size: 12px;
  color: #666666;
  text-decoration: none;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.footer-ga:hover {
  color: #333333;
}

.footer-ga img {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

@media(max-width:600px) {
  .footer-links {
    gap: 12px;
  }
  .footer-ga {
    font-size: 11px;
  }
  .footer-ga img {
    width: 16px;
    height: 16px;
  }
}

/* === Toast === */
.tmt-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e1e2e;
  color: #fff;
  padding: 12px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  pointer-events: none;
  white-space: nowrap;
}
.tmt-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}
.tmt-toast.error {
  background: #dc2626;
}
.tmt-toast.success {
  background: #10B981;
}
