:root {
  --accent: #10B981;
  --accent-deep: #059669;
  --text: #F3F4F6;
  --text-2: rgba(243, 244, 246, 0.6);
  --bg: #0D0D11;
  --card-bg: #15151A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ===== Nav ===== */
.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, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 12px 24px;
  justify-content: space-between;
}

.logo {
  font-weight: 600;
  font-size: 18px;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo svg {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  gap: 2px;
  margin: 0 auto;
}

.nav-links a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: .2s;
  letter-spacing: .3px;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 500;
}



.hamburger {
  display: none !important;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  margin-left: 20px;
}

@media(max-width:760px){
  .hamburger {
    display: block !important;
  }
}

@media(max-width:760px){
  .nav-links{display:none;position:absolute;top:56px;left:0;right:0;background:var(--card-bg);border-bottom:1px solid rgba(255,255,255,0.06);flex-direction:column;padding:16px 24px;gap:0}
  .nav-links.open{display:flex}
  .nav-links a{padding:12px 0;border-bottom:1px solid rgba(255,255,255,0.06);font-size:15px}
  .nav-links a:last-child{border-bottom:none}
  .hamburger{display:block}
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.06);
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
  border: none;
}

.buy-btn {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: .2s;
}

.buy-btn:hover {
  background: var(--accent-deep);
}

.login-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(243, 244, 246, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 5px 13px;
  border-radius: 8px;
  transition: .2s;
}

.login-link:hover {
  color: #10B981;
  background: rgba(16, 185, 129, 0.06);
}

.help-link {
  display: none;
}

.avatar-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: #10B981;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.avatar-btn.show {
  display: flex;
}

/* ===== Login Modal ===== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 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;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(243, 244, 246, 0.4);
  line-height: 1;
}

.login-modal h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #F3F4F6;
}

.login-modal-sub {
  font-size: 13px;
  color: rgba(243, 244, 246, 0.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, 0.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;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.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;
}

.send-code-btn:disabled {
  opacity: 0.5;
}

.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, 0.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;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  min-width: 160px;
}

.avatar-dropdown.show {
  display: block;
}

.avatar-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: #F3F4F6;
  text-decoration: none;
  border-radius: 8px;
}

.avatar-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dd-balance {
  padding: 8px 12px;
  font-size: 13px;
  color: rgba(243, 244, 246, 0.6);
}

.dd-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 0;
}

.dd-danger {
  color: #e53e3e !important;
}

/* ===== Pay Modal ===== */
.pay-modal {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  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;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.pay-modal-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

#paySubject {
  font-size: 13px;
  opacity: 0.6;
  margin-bottom: 16px;
}

#payAmount {
  font-size: 30px;
  font-weight: 600;
  color: #10B981;
  margin-bottom: 14px;
}

#payChannels {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 6px 0 4px;
}

.pay-channel-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pay-channel-btn.wechat {
  background: #07c160;
  color: #fff;
}

.pay-channel-btn.alipay {
  background: #1677ff;
  color: #fff;
}

#payQrWrap {
  display: none;
}

#payQrWrap.show {
  display: block;
}

#payQrWrap > div {
  background: #15151A;
  border-radius: 12px;
  padding: 12px;
  display: inline-block;
  margin-top: 14px;
}

#payQr {
  width: 200px;
  height: 200px;
  display: block;
}

#payHint {
  font-size: 12px;
  opacity: 0.55;
  margin-top: 14px;
}

#payStatus {
  font-size: 13px;
  color: #22c55e;
  margin-top: 8px;
  height: 18px;
}

.pay-cancel-btn {
  margin-top: 16px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 8px 26px;
  font-size: 13px;
  cursor: pointer;
}

/* ===== Process Overlay ===== */
.process-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  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, 0.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, 0.6);
  margin-top: 8px;
}

/* ===== Pricing Cards ===== */
.pc {
  background: #15151A;
  border: 1px solid rgba(255, 255, 255, 0.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, 0.3);
  border-color: rgba(16, 185, 129, 0.2);
}

.pc.hot,
.pc.featured {
  border: 2px solid #10B981;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.15);
  background: #0D1F1A;
}

.pc .tag,
.pc .badge {
  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,
.pc .lab {
  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, 0.55);
}

.pc .unit {
  font-size: 12px;
  color: rgba(243, 244, 246, 0.5);
  margin-bottom: 12px;
}

.pc button,
.pc .btn {
  width: 100%;
  padding: 9px;
  border: none;
  border-radius: 9px;
  background: rgba(16, 185, 129, 0.08);
  color: #10B981;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: .2s;
  font-family: inherit;
}

.pc button:hover,
.pc .btn:hover {
  background: rgba(16, 185, 129, 0.14);
}

.pc .btn.solid {
  background: #10B981;
  color: #fff;
}

.pc .btn.solid:hover {
  background: #059669;
}

/* ===== Footer ===== */

/* ---- 分享按钮 ---- */
.share-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.share-label {
  font-size: 12.5px;
  color: #888;
  white-space: nowrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  color: #ccc;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.share-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.share-btn.wechat:hover { background: rgba(7,193,96,0.18); border-color: #07C160; color: #07C160; }
.share-btn.weibo:hover  { background: rgba(230,22,45,0.18); border-color: #E6162D; color: #E6162D; }
.share-btn.copy:hover   { background: rgba(16,185,129,0.18); border-color: #10B981; color: #10B981; }

/* ---- 分享弹窗 ---- */
.share-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.share-modal-overlay.show {
  opacity: 1; pointer-events: auto;
}
.share-modal {
  background: #1a1a22;
  border-radius: 16px;
  padding: 28px 32px 24px;
  text-align: center;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.share-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.share-modal-qr {
  width: 180px; height: 180px;
  background: #fff;
  border-radius: 10px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #999;
}
.share-modal-tip {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
}
.share-modal-close {
  display: inline-block;
  padding: 8px 28px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #ccc;
  font-size: 13px;
  cursor: pointer;
  transition: .2s;
}
.share-modal-close:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ---- 友情链接 ---- */
.footer-friends {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-friends-title {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
  letter-spacing: .5px;
}
.footer-friends a {
  font-size: 12px;
  color: #888;
  text-decoration: none;
  transition: color .2s;
  letter-spacing: .3px;
}
.footer-friends a:hover { color: #10B981; }

.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;
  }
}

/* ===== 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, 0.04);
}

.trust-badges span {
  font-size: 12px;
  color: #9CA3AF;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trust-badges svg {
  width: 14px;
  height: 14px;
  stroke: #10B981;
  fill: none;
  stroke-width: 2.5;
}

/* ===== Dark Theme Fixes ===== */
body {
  background: #0D0D11 !important;
}

.nav {
  background: rgba(13, 13, 17, 0.85) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.login-modal input,
.login-phone-row input,
.login-code-row input {
  background: #0D0D11 !important;
  color: #F3F4F6 !important;
}

.login-phone-row .phone-prefix {
  background: #15151A !important;
  color: #9CA3AF !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

select {
  background: #15151A !important;
  color: #F3F4F6 !important;
}

select option {
  background: #15151A !important;
  color: #F3F4F6 !important;
}

.avatar-dropdown a:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.dd-balance {
  color: #9CA3AF !important;
}

.login-submit-btn {
  color: #0D0D11 !important;
}

.send-code-btn {
  color: #0D0D11 !important;
}

.buy-btn {
  color: #0D0D11 !important;
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(13, 13, 17, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 0;
    z-index: 200;
    transform: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 14px 24px;
    font-size: 16px;
    border-radius: 0;
  }

  .nav-links .nav-help {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 8px;
    padding-top: 16px;
    color: var(--text-2);
  }

  .help-link {
    display: none;
  }
}

@media (max-width: 680px) {
  .hero h1,
  .wrap > header h1 {
    font-size: 28px !important;
  }
}