/* ============================================================
   simsoft 官网样式 - 仿 trae.cn 风格
   深色科技感 / 紫青渐变 / 玻璃态
   ============================================================ */

:root {
  /* 背景色 */
  --bg: #08080c;
  --bg-2: #0e0e15;
  --bg-3: #15151f;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.06);

  /* 文字 */
  --text: #f5f5f7;
  --text-2: #a8a8b8;
  --text-3: #6b6b7b;

  /* 主色 */
  --accent: #7c5cff;
  --accent-2: #00d9ff;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #00d9ff 100%);
  --gradient-text: linear-gradient(135deg, #a78bff 0%, #5ee7ff 100%);

  /* 边框 / 效果 */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(124, 92, 255, 0.25);

  /* 布局 */
  --nav-h: 64px;
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- 背景装饰 ---------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.bg-decor::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.18), transparent 70%);
  filter: blur(40px);
}
.bg-decor::after {
  content: "";
  position: absolute;
  top: 30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.12), transparent 70%);
  filter: blur(60px);
}
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center top, black 30%, transparent 80%);
}

/* ---------- 导航栏 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 12, 0.8);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo-mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.logo-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo span { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
}
.nav-menu a {
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-user {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-2);
  cursor: pointer;
}
.nav-user .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gradient);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: #fff;
}

/* 移动端菜单按钮 */
.nav-toggle { display: none; font-size: 22px; color: var(--text); }
.lang-toggle {
  padding: 5px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.lang-toggle:hover { border-color: var(--border-hover); color: var(--text-2); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(124, 92, 255, 0.5); }
.btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--card-hover); border-color: var(--border-hover); }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- 容器 / 通用 ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 100px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 500;
  margin-bottom: 20px;
}
.section-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero p.lead {
  font-size: 20px;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
/* 产品截图区 */
.hero-visual {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
  position: relative;
}
.hero-visual .mock-window {
  display: flex;
  flex-direction: column;
  height: 460px;
}
.mock-bar {
  height: 38px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 12px; height: 12px; border-radius: 50%; background: #3a3a45; }
.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }
.mock-title { margin-left: 12px; font-size: 12px; color: var(--text-3); }
.mock-body {
  flex: 1;
  display: grid;
  grid-template-columns: 200px 1fr 240px;
}
.mock-side {
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  font-size: 13px;
  color: var(--text-3);
}
.mock-side .grp { margin-bottom: 16px; }
.mock-side .grp-title { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.mock-side .item { padding: 5px 8px; border-radius: 6px; }
.mock-side .item.active { background: rgba(124, 92, 255, 0.15); color: var(--accent-2); }
.mock-view {
  background:
    radial-gradient(circle at 50% 40%, rgba(124,92,255,0.12), transparent 60%),
    var(--bg);
  position: relative;
  display: grid;
  place-items: center;
}
.mock-view .building {
  width: 200px; height: 240px;
  background: linear-gradient(180deg, rgba(124,92,255,0.25), rgba(0,217,255,0.15));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px 4px 0 0;
  position: relative;
  transform: perspective(600px) rotateY(-15deg) rotateX(8deg);
  box-shadow: -20px 20px 40px rgba(0,0,0,0.4);
}
.mock-view .building::before,
.mock-view .building::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.1);
}
.mock-view .building::before { inset: 20px 30px auto 30px; height: 40px; border-radius: 2px; }
.mock-view .building::after { inset: 80px 30px 30px 30px; border-radius: 2px; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.08) 0 1px, transparent 1px 24px); }
.mock-export {
  position: absolute;
  bottom: 20px; right: 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.mock-export .ok { color: #28c840; }
.mock-panel {
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  padding: 16px;
  font-size: 12px;
  color: var(--text-3);
}
.mock-panel .row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); }
.mock-panel .row:last-child { border: none; }
.mock-panel .val { color: var(--accent-2); }

/* ---------- 功能特性卡片 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
}
.feature-card:hover {
  background: var(--card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(124, 92, 255, 0.12);
  display: grid; place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-2); }

/* ---------- 大特性区 (两栏) ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 100px;
}
.showcase:last-child { margin-bottom: 0; }
.showcase.reverse .showcase-text { order: 2; }
.showcase-visual {
  height: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.showcase-text h2 { font-size: 32px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.5px; }
.showcase-text p { color: var(--text-2); margin-bottom: 20px; }
.showcase-text ul.checks li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  color: var(--text-2);
  font-size: 15px;
}
.showcase-text ul.checks li::before {
  content: "✓";
  color: var(--accent-2);
  font-weight: 700;
}

/* showcase 视觉装饰 */
.vis-bars { display: flex; align-items: flex-end; gap: 6px; height: 60%; width: 60%; }
.vis-bars .bar { flex: 1; background: var(--gradient); border-radius: 4px 4px 0 0; opacity: 0.8; }
.vis-versions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 30px; }
.vis-versions .ver {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-2);
}
.vis-versions .ver.hl { background: rgba(124,92,255,0.15); border-color: var(--accent); color: var(--accent-2); }
.vis-langs { display: flex; flex-direction: column; gap: 14px; width: 70%; }
.vis-langs .lang { display: flex; align-items: center; gap: 12px; }
.vis-langs .flag { width: 32px; font-size: 22px; text-align: center; }
.vis-langs .name { flex: 1; font-size: 14px; color: var(--text-2); }

/* ---------- 版本支持 ---------- */
.version-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}
.version-grid .v {
  padding: 18px 0;
  text-align: center;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  transition: all 0.2s;
}
.version-grid .v:hover { border-color: var(--accent); color: var(--accent-2); }
.version-grid .v.new { background: rgba(0, 217, 255, 0.08); border-color: rgba(0, 217, 255, 0.3); color: var(--accent-2); }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: 80px 40px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 0%, rgba(124,92,255,0.2), transparent 70%),
    var(--bg-2);
  border: 1px solid var(--border);
}
.cta h2 { font-size: 38px; font-weight: 700; margin-bottom: 16px; letter-spacing: -1px; }
.cta p { color: var(--text-2); margin-bottom: 32px; font-size: 17px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-3); font-size: 14px; margin-top: 12px; max-width: 280px; }
.footer-col h4 { font-size: 14px; margin-bottom: 16px; color: var(--text); }
.footer-col a { display: block; color: var(--text-3); font-size: 14px; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-2); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  color: var(--text-3);
  font-size: 13px;
}
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { text-decoration: underline; color: var(--text-2); }

/* ============================================================
   认证页面 (登录 / 注册)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  padding-top: calc(var(--nav-h) + 40px);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.auth-card .logo { justify-content: center; margin-bottom: 28px; }
.auth-card h1 { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 8px; }
.auth-card .sub { text-align: center; color: var(--text-2); font-size: 14px; margin-bottom: 32px; }

/* 表单 */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder { color: var(--text-3); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}
.field.error input { border-color: #ff5f57; }
.field .err-msg { color: #ff7468; font-size: 12px; margin-top: 6px; display: none; }
.field.error .err-msg { display: block; }

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}
.checkbox { display: flex; align-items: center; gap: 8px; color: var(--text-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-row a { color: var(--accent-2); }

.auth-msg {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}
.auth-msg.show { display: block; }
.auth-msg.ok { background: rgba(40, 200, 64, 0.1); color: #5ee89a; border: 1px solid rgba(40, 200, 64, 0.3); }
.auth-msg.bad { background: rgba(255, 95, 87, 0.1); color: #ff8a82; border: 1px solid rgba(255, 95, 87, 0.3); }

.auth-foot { text-align: center; color: var(--text-2); font-size: 14px; margin-top: 24px; }
.auth-foot a { color: var(--accent-2); font-weight: 500; }

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--text-3);
  font-size: 12px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--border);
}

/* ============================================================
   下载页
   ============================================================ */
.dl-hero { text-align: center; padding: calc(var(--nav-h) + 80px) 0 60px; }
.dl-hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 16px; }
.dl-hero p { color: var(--text-2); font-size: 18px; max-width: 560px; margin: 0 auto 40px; }

.dl-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto 60px;
}
.dl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.25s;
}
.dl-card:hover { border-color: var(--border-hover); background: var(--card-hover); }
.dl-card.featured {
  background: linear-gradient(180deg, rgba(124,92,255,0.08), var(--card));
  border-color: rgba(124, 92, 255, 0.3);
}
.dl-icon { font-size: 44px; margin-bottom: 16px; }
.dl-card h3 { font-size: 22px; margin-bottom: 6px; }
.dl-card .ver-tag { color: var(--text-3); font-size: 13px; margin-bottom: 20px; }
.dl-card .size { color: var(--text-3); font-size: 13px; margin-top: 14px; }

.dl-info {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.info-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-box h3 { font-size: 17px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.info-box ul li { padding: 7px 0; color: var(--text-2); font-size: 14px; display: flex; gap: 10px; }
.info-box ul li::before { content: "•"; color: var(--accent); }

/* 版本历史 */
.changelog { max-width: 820px; margin: 60px auto 0; }
.changelog h2 { font-size: 28px; margin-bottom: 28px; text-align: center; }
.release {
  border-left: 2px solid var(--border);
  padding: 0 0 28px 24px;
  margin-left: 8px;
  position: relative;
}
.release::before {
  content: "";
  position: absolute;
  left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.2);
}
.release .ver-line { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.release .ver-line .vnum { font-size: 18px; font-weight: 700; }
.release .vdate { color: var(--text-3); font-size: 13px; }
.release .badge { padding: 2px 8px; border-radius: 6px; background: rgba(0, 217, 255, 0.12); color: var(--accent-2); font-size: 11px; font-weight: 600; }
.release ul li { color: var(--text-2); font-size: 14px; padding: 4px 0; padding-left: 16px; position: relative; }
.release ul li::before { content: "-"; position: absolute; left: 0; color: var(--text-3); }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 14px;
  box-shadow: var(--shadow);
  z-index: 200;
  transition: transform 0.3s;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------- 滚动渐入 ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 32px; }
  .showcase.reverse .showcase-text { order: 0; }
  .version-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 44px; }
  .section-title { font-size: 32px; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side, .mock-panel { display: none; }
  .dl-cards, .dl-info { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-menu, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: rgba(8, 8, 12, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }
  .features { grid-template-columns: 1fr; }
  .version-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }
  .section { padding: 70px 0; }
  .section-title { font-size: 26px; }
  .auth-card { padding: 28px 22px; }
  .dl-hero h1 { font-size: 34px; }
  .cta h2 { font-size: 26px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   图形验证码 + 短信验证码行
   ============================================================ */
.captcha-widget { margin-bottom: 18px; }
.captcha-img {
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-3);
  display: block;
}
.captcha-input-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.captcha-input {
  flex: 1;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  text-align: center;
  letter-spacing: 3px;
}
.captcha-input::placeholder { color: var(--text-3); font-size: 13px; letter-spacing: 0; }
.captcha-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.15);
}
.captcha-input-row .btn { white-space: nowrap; }
.captcha-actions { margin-top: 8px; font-size: 13px; color: var(--text-3); min-height: 18px; }
.captcha-refresh { color: var(--accent-2); }
.captcha-status.ok { color: #5ee89a; }
.captcha-status.bad { color: #ff8a82; }
.captcha-widget.fail .captcha-img { animation: captcha-shake 0.4s; }
@keyframes captcha-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* 短信验证码行（输入框 + 发送按钮） */
.code-row { display: flex; gap: 10px; }
.code-row input { flex: 1; }
.code-row .btn { white-space: nowrap; min-width: 110px; }
.code-row .btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* 注册方式切换（手机号 / 邮箱） */
.hidden { display: none !important; }
.auth-tabs {
  display: flex;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1;
  padding: 10px 0;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
}

/* 法律条款页（用户协议 / 服务条款 / 隐私政策） */
.legal-page { padding: 48px 0 72px; }
.legal-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 48px;
}
.legal-card h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.legal-card .legal-sub {
  color: var(--text-3);
  font-size: 14px;
  margin-bottom: 28px;
}
.legal-toc {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.legal-toc a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 13px;
  transition: all 0.2s;
}
.legal-toc a:hover {
  color: var(--text);
  border-color: var(--border-hover);
}
.legal-section { margin-bottom: 36px; scroll-margin-top: 80px; }
.legal-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  padding-left: 12px;
  border-left: 3px solid var(--accent-2);
}
.legal-section h3 {
  font-size: 15px;
  color: var(--text-2);
  margin: 18px 0 8px;
}
.legal-section p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-3);
  margin-bottom: 10px;
}
.legal-section ul { margin: 6px 0 14px 20px; }
.legal-section li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-3);
}
@media (max-width: 640px) {
  .legal-card { padding: 28px 20px; }
  .legal-card h1 { font-size: 24px; }
}

/* ============================================================
   ✨ 增强视觉层 - 动态极光 / 流光文字 / 微交互聚光灯
   仅增强视觉效果，不改动原有布局与业务逻辑
   ============================================================ */

/* --- 滚动条与选区 --- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #8d6dff, #2ee0ff); }
::selection { background: rgba(124, 92, 255, 0.35); color: #fff; }

/* --- 顶部滚动进度条 --- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 200;
  box-shadow: 0 0 12px rgba(124, 92, 255, 0.7);
}

/* --- 动态极光背景（全站） --- */
.bg-decor {
  background:
    radial-gradient(circle at 12% 18%, rgba(124, 92, 255, 0.16), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(0, 217, 255, 0.14), transparent 40%),
    radial-gradient(circle at 75% 82%, rgba(255, 92, 200, 0.10), transparent 42%);
}
.bg-decor::before { animation: orb-1 20s ease-in-out infinite; }
.bg-decor::after { animation: orb-2 26s ease-in-out infinite; }
@keyframes orb-1 {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  33% { transform: translateX(-58%) translateY(50px) scale(1.12); }
  66% { transform: translateX(-44%) translateY(-30px) scale(0.95); }
}
@keyframes orb-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 50px) scale(0.9); }
}
.grid-overlay { animation: grid-pan 30s linear infinite; }
@keyframes grid-pan {
  0% { background-position: 0 0, 0 0; }
  100% { background-position: 50px 50px, 50px 50px; }
}

/* --- Hero 浮动光球（首页） --- */
.hero { overflow: hidden; }
.hero .container { position: relative; z-index: 1; }
.hero-orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); }
.orb-1 { width: 420px; height: 420px; top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.55), transparent 70%); animation: orb-float 14s ease-in-out infinite; }
.orb-2 { width: 360px; height: 360px; top: 40px; right: -100px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.45), transparent 70%); animation: orb-float 18s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; bottom: -60px; left: 40%;
  background: radial-gradient(circle, rgba(255, 92, 200, 0.35), transparent 70%); animation: orb-float 16s ease-in-out infinite; animation-delay: -4s; }
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -40px) scale(1.15); }
}

/* --- Hero 入场动画 --- */
.hero .eyebrow, .hero h1, .hero p.lead, .hero-actions {
  animation: hero-in 0.9s cubic-bezier(.2, .7, .2, 1) backwards;
}
.hero h1 { animation-delay: 0.08s; }
.hero p.lead { animation-delay: 0.18s; }
.hero-actions { animation-delay: 0.28s; }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 流光渐变文字 --- */
.gradient-text {
  background-size: 220% auto;
  animation: text-shimmer 5s linear infinite;
  filter: drop-shadow(0 0 26px rgba(124, 92, 255, 0.35));
}
@keyframes text-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

/* --- 小标签发光 --- */
.eyebrow { text-shadow: 0 0 12px rgba(0, 217, 255, 0.4); }

/* --- 按钮：流光扫过 + 呼吸色相 --- */
.btn-primary {
  position: relative;
  overflow: hidden;
  background-size: 200% auto;
  animation: btn-hue 5s linear infinite;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.45) 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.btn-primary:hover::before { transform: translateX(120%); }
@keyframes btn-hue {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
.btn-ghost { position: relative; overflow: hidden; }
.btn-ghost:hover { border-color: rgba(124, 92, 255, 0.5); box-shadow: 0 0 24px rgba(124, 92, 255, 0.2); }

/* --- 卡片聚光灯（鼠标跟随高光） --- */
.feature-card, .dl-card, .version-grid .v, .info-box {
  position: relative;
  overflow: hidden;
}
.feature-card::before, .dl-card::before, .version-grid .v::before, .info-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%),
    rgba(124, 92, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 0;
}
.feature-card:hover::before, .dl-card:hover::before,
.version-grid .v:hover::before, .info-box:hover::before { opacity: 1; }
.feature-card > *, .dl-card > *, .info-box > * { position: relative; z-index: 1; }

/* --- 功能卡片悬停发光 --- */
.feature-card:hover {
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 18px 50px rgba(124, 92, 255, 0.18), 0 0 0 1px rgba(124, 92, 255, 0.25);
}
.feature-icon {
  box-shadow: 0 0 22px rgba(124, 92, 255, 0.3);
  transition: box-shadow 0.3s, transform 0.3s;
}
.feature-card:hover .feature-icon {
  transform: scale(1.08);
  animation: icon-glow 1.6s ease-in-out infinite;
}
@keyframes icon-glow {
  0%, 100% { box-shadow: 0 0 22px rgba(124, 92, 255, 0.35); }
  50% { box-shadow: 0 0 34px rgba(0, 217, 255, 0.5); }
}

/* --- 版本格子悬停发光 + 最新版脉冲 --- */
.version-grid .v:hover {
  border-color: rgba(124, 92, 255, 0.5);
  box-shadow: 0 0 22px rgba(124, 92, 255, 0.22);
  transform: translateY(-3px);
}
.version-grid .v.new { animation: new-pulse 2.4s ease-in-out infinite; }
@keyframes new-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.4); }
  50% { box-shadow: 0 0 22px 4px rgba(0, 217, 255, 0.25); }
}

/* --- 下载卡片悬停发光 --- */
.dl-card:hover {
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 18px 50px rgba(124, 92, 255, 0.16);
  transform: translateY(-4px);
}
.dl-card.featured { box-shadow: 0 0 40px rgba(124, 92, 255, 0.12); }
.info-box { transition: border-color 0.3s, box-shadow 0.3s; }
.info-box:hover { border-color: rgba(124, 92, 255, 0.3); box-shadow: 0 0 30px rgba(124, 92, 255, 0.1); }

/* --- Hero 产品窗：渐变描边 + 浮动 + 光晕 --- */
.hero-visual {
  background:
    linear-gradient(var(--bg-2), var(--bg-2)) padding-box,
    linear-gradient(135deg, rgba(124, 92, 255, 0.5), rgba(0, 217, 255, 0.3), transparent) border-box;
  border: 1px solid transparent;
  box-shadow: var(--shadow), 0 0 50px rgba(124, 92, 255, 0.28);
}
.mock-window { animation: win-float 7s ease-in-out infinite; }
@keyframes win-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.mock-view::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.3), transparent 70%);
  filter: blur(30px);
  animation: glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.18); }
}
.mock-view .building { animation: bldg-float 6s ease-in-out infinite; }
@keyframes bldg-float {
  0%, 100% { transform: perspective(600px) rotateY(-15deg) rotateX(8deg); }
  50% { transform: perspective(600px) rotateY(-12deg) rotateX(6deg) translateY(-8px); }
}

/* --- 减面条形图入场（滚动到位触发） --- */
.showcase.reveal .vis-bars .bar { transform: scaleY(0); transform-origin: bottom; }
.showcase.reveal.visible .vis-bars .bar { animation: bar-up 0.9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes bar-up { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.showcase.reveal.visible .vis-bars .bar:nth-child(1) { animation-delay: .05s; }
.showcase.reveal.visible .vis-bars .bar:nth-child(2) { animation-delay: .13s; }
.showcase.reveal.visible .vis-bars .bar:nth-child(3) { animation-delay: .21s; }
.showcase.reveal.visible .vis-bars .bar:nth-child(4) { animation-delay: .29s; }
.showcase.reveal.visible .vis-bars .bar:nth-child(5) { animation-delay: .37s; }
.showcase.reveal.visible .vis-bars .bar:nth-child(6) { animation-delay: .45s; }
.showcase.reveal.visible .vis-bars .bar:nth-child(7) { animation-delay: .53s; }
.showcase.reveal.visible .vis-bars .bar:nth-child(8) { animation-delay: .61s; }

/* --- 版本药丸 / 语言项交错入场 --- */
.showcase.reveal .vis-versions .ver,
.showcase.reveal .vis-langs .lang { opacity: 0; }
.showcase.reveal.visible .vis-versions .ver,
.showcase.reveal.visible .vis-langs .lang {
  animation: pop-in 0.5s cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.showcase.reveal.visible .vis-versions .ver:nth-child(1),
.showcase.reveal.visible .vis-langs .lang:nth-child(1) { animation-delay: .10s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(2),
.showcase.reveal.visible .vis-langs .lang:nth-child(2) { animation-delay: .16s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(3),
.showcase.reveal.visible .vis-langs .lang:nth-child(3) { animation-delay: .22s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(4),
.showcase.reveal.visible .vis-langs .lang:nth-child(4) { animation-delay: .28s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(5),
.showcase.reveal.visible .vis-langs .lang:nth-child(5) { animation-delay: .34s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(6),
.showcase.reveal.visible .vis-langs .lang:nth-child(6) { animation-delay: .40s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(7) { animation-delay: .46s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(8) { animation-delay: .52s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(9) { animation-delay: .58s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(10) { animation-delay: .64s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(11) { animation-delay: .70s; }
.showcase.reveal.visible .vis-versions .ver:nth-child(12) { animation-delay: .76s; }

/* --- 导航栏滚动后投影 --- */
.nav.scrolled { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); }

/* --- 滚动渐入（增强缓动） --- */
.reveal { opacity: 0; transform: translateY(40px) scale(0.985); transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1), transform 0.8s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0) scale(1); }

/* --- 认证卡片发光边 --- */
.auth-card { box-shadow: var(--shadow), 0 0 60px rgba(124, 92, 255, 0.12); }

/* --- 尊重「减少动态」偏好 --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .showcase.reveal .vis-bars .bar,
  .showcase.reveal .vis-versions .ver,
  .showcase.reveal .vis-langs .lang { opacity: 1; transform: none; }
}

