:root {
  --bg: #0b0713;
  --bg-2: #120b1d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: #171021;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6f3fa;
  --muted: #b6aacb;
  --purple: #9b6cff;
  --purple-2: #e85cff;
  --pink: #ff2d6f;
  --green: #37d39a;
  --orange: #ff8f4d;
  --radius: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
}

html[lang="zh"] body { font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang="ru"] body { font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--purple-2); outline-offset: 2px; }

img, svg { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(22px, 5vw, 40px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 0 22px;
  border-radius: 14px; border: none; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 800;
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--purple), var(--purple-2) 55%, var(--pink));
  color: #fff;
  box-shadow: 0 12px 30px rgba(155, 108, 255, 0.35);
}
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05); color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:active { background: rgba(255, 255, 255, 0.1); }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 1.08rem; }

/* Header & Brand Logo */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px clamp(22px, 5vw, 40px);
}

.brand a{
  display: inline-flex;
  align-items: center;
  width: 104px;
  height: 36px;
  background: url('../images/logo.png') no-repeat left / contain;
  font-size: 0;
  color: transparent;
  overflow: hidden;
  flex: none;
  margin: 0;
}

.top-right { display: flex; align-items: center; gap: 10px; }
.live-pill {
  display: none; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 0.8rem; white-space: nowrap;
}
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(55, 211, 154, 0.16); animation: pulse 2.2s infinite; }

.lang-select { position: relative; }
    .lang-select select {
      appearance: none; -webkit-appearance: none;
      min-height: 38px; padding: 0 34px 0 14px;
      border: 1px solid var(--line); border-radius: 999px;
      background: rgba(255, 255, 255, 0.05); color: var(--text);
      font-family: inherit; font-size: 0.82rem; cursor: pointer;
    }
    .lang-select::after {
      content: ""; position: absolute; inset-inline-end: 13px; top: 50%;
      width: 7px; height: 7px; border-inline-end: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
      transform: translateY(-70%) rotate(45deg); pointer-events: none;
    }


/* ==========================================================================
   首页 (index.html) 专属核心样式
   ========================================================================== */
.hero { position: relative; overflow: hidden; width: 100%; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.4; }
.hero-bg .b1 { width: 520px; height: 520px; background: #4a1a6e; top: -180px; inset-inline-start: -150px; }
.hero-bg .b2 { width: 430px; height: 430px; background: #1a2a6e; bottom: -150px; inset-inline-end: -90px; }

.hero-grid {
  position: relative; z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 40px;
  /* 上下保持原样，左右两侧的 padding 从 22px/40px 调大到 36px / 8vw / 64px */
  padding: clamp(24px, 5vw, 64px) clamp(36px, 8vw, 64px) clamp(36px, 6vw, 72px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 auto 16px; color: var(--purple-2);
  font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--purple), var(--purple-2)); }
h1 { margin: 0 auto 16px; font-size: clamp(2.15rem, 9.5vw, 4.1rem); line-height: 1.08; font-weight: 900; letter-spacing: -0.5px; }
.accent {
  background: linear-gradient(90deg, var(--purple), var(--purple-2) 55%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sub { max-width:80ch; margin: 0 auto 24px; color: var(--muted); font-size: clamp(0.98rem, 4vw, 1.15rem); line-height: 1.6; }
.hero-actions { display: grid; gap: 11px; max-width: 420px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.trust .pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04);
  color: var(--muted); font-size: 0.78rem; font-weight: 600; white-space: nowrap;
}
.trust .pill svg { width: 13px; height: 13px; flex: none; }
.trust .pill.good svg { fill: var(--green); }
.trust .pill.hot svg { fill: var(--orange); }
.trust .pill.num svg { fill: var(--purple-2); }

/* Mini chart stage */
.stage { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
.chart-card {
  position: relative; z-index: 2;
  padding: 22px 20px 18px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  text-align: left;
}
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chart-head .lbl { font-size: 0.8rem; font-weight: 800; color: var(--text); }
.chart-head .sub { inset: unset; margin: 0; color: var(--muted); font-size: 0.7rem; font-weight: 500; text-align: end; }
.bars { display: flex; align-items: flex-end; gap: clamp(6px, 2vw, 10px); height: 130px; }
.bar {
  flex: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px;
}
.bar-track { width: 100%; height: 100%; display: flex; align-items: flex-end; }
.bar .h {
  width: 100%; border-radius: 6px;
  background: linear-gradient(180deg, var(--purple-2), var(--purple));
  transform-origin: bottom;
  height: var(--h);
}
.chart-card.in .bar .h {
  animation: barGrow 0.9s cubic-bezier(.2,.7,.3,1) both;
  animation-delay: calc(var(--i) * 0.09s);
}
@keyframes barGrow {
  from { height: 6px; }
  to { height: var(--h); }
}
.bar .l { color: var(--muted); font-size: 0.68rem; white-space: nowrap; }
.chart-card .note { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.72rem; display: flex; align-items: center; gap: 8px; }
.chart-card .note svg { width: 13px; height: 13px; fill: var(--green); flex: none; }

/* Sections */
.section { padding-top: clamp(16px, 3vw, 22px); padding-bottom: clamp(44px, 7vw, 76px); }
.sec-head { max-width: 620px; margin-bottom: clamp(20px, 3.4vw, 34px); }
.sec-head .kicker { color: var(--purple-2); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin: 0 0 8px; }
.sec-head h2 { margin: 0 0 10px; font-size: clamp(1.55rem, 6vw, 2.4rem); line-height: 1.16; font-weight: 900; letter-spacing: -0.4px; }
.sec-head p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* Stats */
.stats-inner {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 10px;
  padding: clamp(20px, 4vw, 32px);
  border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  margin-bottom: clamp(40px, 7vw, 76px);
}
.stat { text-align: center; }
.stat .val { font-size: clamp(1.35rem, 7vw, 2.1rem); font-weight: 900; letter-spacing: -0.5px; line-height: 1.1; }
.stat .val em { font-style: normal; background: linear-gradient(90deg, var(--purple), var(--purple-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { margin-top: 4px; color: var(--muted); font-size: 0.78rem; }

/* Feature Cards */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 18px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
}
.card .ic {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(155, 108, 255, 0.18), rgba(232, 92, 255, 0.18));
  border: 1px solid rgba(232, 92, 255, 0.25);
}
.card .ic svg { width: 21px; height: 21px; stroke: var(--purple-2); }
.card h3 { margin: 0 0 5px; font-size: 1.05rem; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* Steps */
.steps { display: grid; gap: 12px; counter-reset: step; }
.step {
  position: relative; padding: 22px 20px 20px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 18px; inset-inline-end: 18px;
  font-size: 1.4rem; font-weight: 900; color: rgba(255, 255, 255, 0.14);
}
.step h3 { margin: 0 0 6px; font-size: 1.08rem; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* CTA Band */
.band {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(40px, 7vw, 68px) clamp(18px, 4vw, 40px);
  border: 1px solid var(--line); border-radius: 24px;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(155, 108, 255, 0.2), transparent 60%),
    radial-gradient(60% 120% at 50% 110%, rgba(232, 92, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #16102a, #0d0a16);
  margin-bottom: clamp(40px, 7vw, 76px);
}
.band h2 { margin: 0 0 12px; font-size: clamp(1.7rem, 7vw, 2.7rem); font-weight: 900; letter-spacing: -0.4px; line-height: 1.15; }
.band p { margin: 0 0 26px; color: var(--muted); font-size: 1rem; }
.band .btn { width: 100%; max-width: 420px; margin-inline: auto; }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.03); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 18px; background: none; border: none; cursor: pointer;
  color: var(--text); font-family: inherit; font-size: 0.96rem; font-weight: 700; text-align: start;
}
.faq-q .chev { flex: none; width: 16px; height: 16px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s ease; }
.faq-item.open .faq-q .chev { transform: rotate(-135deg); margin-top: 4px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* Sticky CTA */
.sticky-cta {
  position: fixed; 
  z-index: 99; 
  bottom: 0; 
  inset-inline: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 10px clamp(20px, 5vw, 40px) calc(10px + var(--safe-b, 0px));
  background: rgba(11, 7, 19, 0.94);
  backdrop-filter: blur(16px); 
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.4);
  transform: translateY(105%); 
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-inner { 
  max-width: var(--maxw); 
  margin: 0 auto; 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 12px; 
  width: 100%;
}

.sticky-txt { 
  display: flex;
  flex-direction: column;
  gap: 1px; 
  line-height: 1.25; 
  text-align: left;
  min-width: 0;
  flex: 1;
}

.sticky-txt strong { 
  font-size: 0.88rem; 
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-txt span { 
  color: var(--muted); 
  font-size: 0.72rem; 
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta .btn { 
  min-height: 44px; 
  padding: 0 18px; 
  font-size: 0.88rem; 
  flex: none;
  white-space: nowrap;
}

/* ==========================================================================
   注册页面 (register.html) 专属卡片和表单样式
   ========================================================================== */
.register-section {
  position: relative;
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px clamp(20px, 5vw, 40px) 80px;
}

.register-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  padding: clamp(28px, 5vw, 40px);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.6);
  text-align: left;
}

.register-header { text-align: center; margin-bottom: 28px; }
.register-header h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); font-weight: 900; margin: 0 0 8px; letter-spacing: -0.4px; }
.register-header p { color: var(--muted); font-size: 0.92rem; margin: 0; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.84rem; font-weight: 700; color: var(--text); margin-bottom: 7px; }

.input-wrapper { position: relative; display: flex; align-items: center; }

.form-control {
  width: 100%; height: 50px; padding: 0 44px 0 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-control:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(155, 108, 255, 0.18); }
.form-control.no-icon { padding-right: 16px; }

.toggle-password {
  position: absolute; right: 14px; background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px; display: flex; align-items: center; justify-content: center;
  transition: color 0.2s ease;
}
.toggle-password:hover { color: var(--text); }
.toggle-password svg { width: 18px; height: 18px; fill: currentColor; }

.register-btn { width: 100%; margin-top: 10px; }

.register-footer-text { text-align: center; margin-top: 20px; color: var(--muted); font-size: 0.85rem; }
.register-footer-text a { color: var(--purple-2); font-weight: 700; }
.register-footer-text a:hover { text-decoration: underline; }

/* ==========================================================================
   Footer 样式
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  /* 底部预留 85px 的内距空间，保证页面滚到底部时内容可完美滑出 Sticky CTA 上方 */
  padding: 36px clamp(22px, 5vw, 40px) calc(85px + var(--safe-b, 0px));
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.02));
}

.footer-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
}

.footer-col-left {
  display: flex; align-items: center; gap: 16px;
  max-width: 650px; margin: 0; padding: 0; width: 100%;
}

.footer-note { margin: 0; color: var(--muted); font-size: 0.76rem; line-height: 1.5; text-align: left; }

.footer-col-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.footer-rights { color: var(--muted); font-size: 0.76rem; text-align: right; }
.footer-socials { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }

.social-icon {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid #211b2c; background: #211b2c;
  color: var(--text); font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.social-icon svg { width: 14px; height: 14px; fill: currentColor; flex: none; }
.social-icon:hover { border-color: #4b2b79; color: #8b42f0; background: #2a2238; }
.social-icon:active { transform: scale(0.96); }

/* ==========================================================================
   动画与响应式断点适配
   ========================================================================== */
@keyframes pulse { 
  0%, 100% { box-shadow: 0 0 0 4px rgba(55, 211, 154, 0.16); } 
  50% { box-shadow: 0 0 0 7px rgba(55, 211, 154, 0.05); } 
}

html.js-anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js-anim .reveal.in { opacity: 1; transform: none; }

html.js-anim .hero .hero-copy > *,
html.js-anim .hero .stage {
  opacity: 0;
  animation: riseIn 0.7s cubic-bezier(.2,.7,.3,1) forwards;
}
html.js-anim .hero .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
html.js-anim .hero .hero-copy > :nth-child(2) { animation-delay: 0.14s; }
html.js-anim .hero .hero-copy > :nth-child(3) { animation-delay: 0.22s; }
html.js-anim .hero .hero-copy > :nth-child(4) { animation-delay: 0.3s; }
html.js-anim .hero .hero-copy > :nth-child(5) { animation-delay: 0.38s; }
html.js-anim .hero .stage { animation-delay: 0.2s; }

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

@media (max-width: 1023px) {
  .footer-inner { flex-direction: column; align-items: center; gap: 24px; text-align: center; }
  .footer-col-left { align-items: center; justify-content: center; margin: 0 auto; width: 100%; }
  .footer-note { text-align: left; }
  .footer-col-right, .footer-rights, .footer-socials { align-items: center; justify-content: center; width: 100%; text-align: center; }
}

@media (min-width: 560px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .band .btn { width: auto; }
}

@media (min-width: 720px) {
  .brand { width: 121px; height: 42px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .live-pill { display: inline-flex; }
  .hero-grid { flex-direction: row; justify-content: center; gap: clamp(40px, 6vw, 80px); }
  .hero-copy { align-items: flex-start; text-align: left; }
  .hero-actions { margin: 0; display: flex; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .eyebrow, h1, .sub { margin: 0 0 16px 0; }
  .sub { margin-bottom: 24px; }
  .trust { justify-content: flex-start; }
  .stats-inner { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sticky-cta {
    display: none !important;
  }
  .footer {
    padding-bottom: calc(36px + var(--safe-b, 0px));
  }

}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    animation-duration: 0.01ms !important; 
    animation-iteration-count: 1 !important; 
    transition-duration: 0.01ms !important; 
  }
}