/* ============================================================
 * umi 云端版 · 通用样式
 * 不引任何 CDN —— 服务器出网受限时样式也不会崩
 * ============================================================ */

:root {
  --brand: #6d5efc;
  --brand-2: #a855f7;
  --brand-soft: #f2f0ff;
  --ink: #16162a;
  --ink-2: #4a4a68;
  --ink-3: #8b8ba7;
  --line: #e8e8f2;
  --bg: #ffffff;
  --bg-2: #fafaff;
  --ok: #12b76a;
  --warn: #f79009;
  --err: #f04438;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 22, 42, .04), 0 8px 24px rgba(22, 22, 42, .06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 460px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶栏 ---------------- */

.nav {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner {
  display: flex; align-items: center; gap: 14px;
  height: 62px;
}
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 17px; color: var(--ink);
  letter-spacing: -.2px;
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; display: grid; place-items: center;
  font-size: 15px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(109, 94, 252, .3);
}
.nav-spacer { flex: 1; }
.nav-link { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--ink); text-decoration: none; }

/* ---------------- 按钮 ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--bg-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 14px rgba(109, 94, 252, .3);
}
.btn-primary:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ---------------- 表单 ---------------- */

.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px;
}
.field input[type=text], .field input[type=password] {
  width: 100%; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; font-family: inherit; color: var(--ink);
  background: #fff; transition: .15s;
}
.field input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(109, 94, 252, .12);
}
.field .hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.alert {
  padding: 11px 14px; border-radius: 10px; font-size: 13.5px;
  margin-bottom: 16px; display: none;
}
.alert.show { display: block; }
.alert-err { background: #fef3f2; color: #b42318; border: 1px solid #fee4e2; }
.alert-ok { background: #ecfdf3; color: #027a48; border: 1px solid #d1fadf; }

/* ---------------- 卡片 ---------------- */

.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ---------------- 落地页 ---------------- */

.hero { padding: 76px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% 20% auto;
  height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109, 94, 252, .12), transparent 68%);
  pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 600; margin-bottom: 22px;
}
.hero h1 {
  font-size: 46px; line-height: 1.2; letter-spacing: -1.2px;
  font-weight: 800; margin-bottom: 18px; position: relative;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead {
  font-size: 17px; color: var(--ink-2); max-width: 620px;
  margin: 0 auto 32px; position: relative;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

.steps { padding: 56px 0; }
.steps h2 { font-size: 27px; text-align: center; margin-bottom: 10px; letter-spacing: -.5px; }
.steps .sub { text-align: center; color: var(--ink-2); margin-bottom: 40px; font-size: 15px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { padding: 26px 22px; }
.step-num {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 16px; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--ink-2); }

.feat { padding: 56px 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat-item { padding: 22px; }
.feat-item h3 { font-size: 15.5px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.feat-item p { font-size: 14px; color: var(--ink-2); }

.footer { padding: 34px 0; text-align: center; color: var(--ink-3); font-size: 13px; }

/* ---------------- 响应式 ---------------- */

@media (max-width: 820px) {
  .grid, .feat-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 15.5px; }
  .steps, .feat { padding: 40px 0; }
}
