:root {
  --bg: #080c17;
  --bg2: #0d1424;
  --card: #121a2e;
  --line: #233149;
  --text: #eaf0fb;
  --muted: #93a0bd;
  --accent: #6366f1;
  --accent2: #22d3ee;
  --grad: linear-gradient(120deg, #818cf8 0%, #a78bfa 45%, #22d3ee 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.lp, body.auth-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- 品牌标 ---------- */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: .2px; }
.brand-logo {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--grad); color: #0a0e1a; font-size: 14px; transform: rotate(0deg);
}
.brand-name b { color: #a5b4fc; font-weight: 700; }

/* ---------- 按钮 ---------- */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 11px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s;
}
.btn-primary { background: var(--grad); color: #0a0e1a; box-shadow: 0 6px 24px rgba(129,140,248,.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 32px rgba(129,140,248,.4); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); }
.lg { padding: 13px 26px; font-size: 15px; border-radius: 13px; }

/* ---------- 导航 ---------- */
.lp-nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 5vw, 56px);
  background: rgba(8,12,23,.72); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(35,49,73,.6);
}
.lp-nav-links { display: flex; align-items: center; gap: 22px; }
.lp-nav-links > a:not(.btn-primary):not(.btn-ghost) { color: var(--muted); font-size: 14px; }
.lp-nav-links > a:not(.btn-primary):not(.btn-ghost):hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 56px) clamp(40px, 6vw, 80px); }
.hero-glow {
  position: absolute; top: -240px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99,102,241,.30), rgba(34,211,238,.10) 55%, transparent 75%);
  filter: blur(20px);
}
.hero-inner {
  position: relative; max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #a5b4fc; padding: 5px 12px; border: 1px solid rgba(129,140,248,.35); border-radius: 999px;
  background: rgba(129,140,248,.08); margin-bottom: 20px;
}
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.12; margin: 0 0 18px; font-weight: 800; letter-spacing: -.5px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--muted); margin: 0 0 28px; max-width: 560px; }
.lead b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; font-size: 13px; color: var(--muted); }

/* Hero 流程可视化 */
.hero-visual { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.flow-card {
  background: linear-gradient(180deg, var(--card), #0f1626);
  border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
}
.flow-card.fc-out { border-color: rgba(129,140,248,.5); box-shadow: 0 18px 60px rgba(99,102,241,.22); }
.fc-tag { font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.fc-en { color: #fb923c; }
.fc-zh { color: #a5b4fc; }
.fc-text { font-size: 14.5px; line-height: 1.55; }
.fc-stats { margin-top: 10px; font-size: 12px; color: var(--muted); }
.fc-foot { margin-top: 12px; display: flex; justify-content: space-between; font-size: 12.5px; }
.fc-acct { color: var(--muted); }
.fc-pub { color: #34d399; font-weight: 600; }
.flow-arrow { text-align: center; color: var(--muted); font-size: 13px; padding: 2px 0; }
.flow-arrow span { font-size: 12px; }

/* ---------- 区块 ---------- */
main { display: block; }
.section { max-width: 1140px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(18px, 5vw, 56px); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 12px; font-weight: 800; letter-spacing: -.3px; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: linear-gradient(180deg, rgba(18,26,46,.9), rgba(13,20,36,.9));
  border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px; transition: transform .15s ease, border-color .2s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(129,140,248,.5); }
.f-ico { font-size: 26px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* 流程步骤 */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  position: relative; background: rgba(18,26,46,.6); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 22px;
}
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #0a0e1a; font-weight: 800; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* CTA 横幅 */
.cta-band {
  position: relative; overflow: hidden; max-width: 1000px; margin: 0 auto clamp(40px,6vw,72px);
  text-align: center; padding: clamp(40px,6vw,64px) 24px; border-radius: 24px;
  background: radial-gradient(120% 140% at 50% 0%, rgba(99,102,241,.22), rgba(13,20,36,.6) 60%);
  border: 1px solid rgba(129,140,248,.35);
}
.cta-band h2 { font-size: clamp(22px,3vw,30px); margin: 0 0 10px; font-weight: 800; }
.cta-band p { color: var(--muted); margin: 0 0 24px; }

/* 页脚 */
.lp-foot {
  border-top: 1px solid var(--line); padding: 28px clamp(18px,5vw,56px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.lp-foot-meta { color: var(--muted); font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 登录/注册页 ---------- */
.auth-page { min-height: 100vh; position: relative; overflow-x: hidden; }
.auth-bg-glow {
  position: fixed; top: -260px; right: -180px; width: 760px; height: 760px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(99,102,241,.28), rgba(34,211,238,.08) 55%, transparent 75%);
  filter: blur(10px);
}
.auth-brand { position: relative; z-index: 2; display: inline-flex; margin: 22px 0 0 clamp(18px,5vw,40px); }
.auth-split {
  position: relative; z-index: 1; max-width: 980px; margin: clamp(24px,6vh,70px) auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,60px); align-items: center;
}
.auth-aside .eyebrow { margin-bottom: 18px; }
.auth-aside h2 { font-size: clamp(26px,3.4vw,38px); line-height: 1.18; margin: 0 0 24px; font-weight: 800; letter-spacing: -.3px; }
.auth-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 13px; }
.auth-points li { color: var(--muted); font-size: 15px; }

.auth-card {
  background: linear-gradient(180deg, var(--card), #0f1626);
  border: 1px solid var(--line); border-radius: 20px; padding: 28px 26px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5); width: 100%; max-width: 400px; justify-self: end;
}
.auth-tabs { display: flex; gap: 6px; background: rgba(8,12,23,.6); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 9px; border: none; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; border-radius: 9px; cursor: pointer; }
.auth-tab.active { background: var(--grad); color: #0a0e1a; }
.field-label { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 6px; }
.auth-card input {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: #0b1120; color: var(--text); font-size: 15px; outline: none; transition: border-color .15s;
}
.auth-card input:focus { border-color: var(--accent); }
.auth-submit {
  width: 100%; margin-top: 22px; padding: 13px; border: none; border-radius: 12px;
  background: var(--grad); color: #0a0e1a; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .2s;
}
.auth-submit:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(129,140,248,.35); }
.auth-submit:disabled { opacity: .6; cursor: default; transform: none; }
.auth-msg { margin-top: 14px; font-size: 13.5px; color: #f87171; min-height: 18px; text-align: center; }
.auth-back { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.auth-back:hover { color: var(--text); }

/* ---------- 响应式 ---------- */
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: 2; max-width: 460px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-card { justify-self: center; }
  .lp-nav-links a:not(.btn-primary):not(.btn-ghost) { display: none; }
}
@media (max-width: 520px) {
  .feature-grid { grid-template-columns: 1fr; }
}
