/* ==========================================================================
   网站首页 / 自助注册页样式（无构建，纯 CSS）
   设计约束：
   - 与工作台（console/app.css）、帮助中心（help/help.css）完全隔离，各带各的变量；
   - 单文件、不依赖任何框架，离线部署也能正常显示；
   - 颜色以冷色主色 + 大面积留白为主，营销页与后台的“工具感”区分开。
   ========================================================================== */

:root {
  --ink: #0f172a;
  --ink-soft: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f6f8fc;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eef4ff;
  --danger: #dc2626;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, .12);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 15px/1.7 -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; }
p { margin: 0 0 12px; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; background: #f8fafc; }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; margin-top: 10px; }

/* ---------------- 顶部导航 ---------------- */
.site-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-top-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.site-brand:hover { text-decoration: none; }
.site-brand-mark {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #60a5fa);
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .5px;
}
.site-brand-text { font-size: 16px; }
.site-nav { display: flex; gap: 18px; margin-left: 12px; }
.site-nav a { color: var(--ink-soft); font-size: 14px; }
.site-nav a:hover { color: var(--brand); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------------- 首页 Hero ---------------- */
.hero { background: linear-gradient(180deg, #f7f9ff, #ffffff 70%); border-bottom: 1px solid var(--line); }
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 20px 72px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
/* 网格项的 min-width 默认是 auto：只要里面有个“固有宽度较大”的东西
   （比如固定 380px 的浮窗示意图），就会把整列顶宽，窄屏直接横向溢出。 */
.hero-inner > * { min-width: 0; }
.pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 { font-size: 40px; letter-spacing: -.5px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-sub { color: var(--ink-soft); font-size: 16px; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 0; color: var(--muted); font-size: 13.5px; }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 6px; }

.hero-visual { display: flex; justify-content: center; }
.mock-window {
  width: min(380px, 100%);
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-titlebar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}
.mock-titlebar span { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.mock-titlebar em { margin-left: 10px; font-style: normal; font-size: 12.5px; color: var(--muted); }
.mock-body { padding: 16px 14px 6px; display: flex; flex-direction: column; gap: 14px; }
.mock-msg { display: flex; gap: 8px; align-items: flex-start; }
.mock-msg-user { justify-content: flex-end; }
.mock-avatar {
  width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 50%; background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.mock-bubble {
  background: var(--surface-alt);
  border-radius: 12px 12px 12px 4px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink-soft);
  max-width: 76%;
}
.mock-msg-user .mock-bubble {
  background: var(--brand);
  color: #fff;
  border-radius: 12px 12px 4px 12px;
}
.mock-input {
  margin: 6px 14px 16px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13px;
}

/* ---------------- 通用区块 ---------------- */
.section { padding: 66px 0; }.section-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section-title { font-size: 27px; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 38px; }

/* 功能卡片 */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: var(--brand-soft);
  font-size: 20px;
  margin-bottom: 12px;
}
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* 步骤 */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 18px;
  counter-reset: step;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff; font-size: 13px; font-weight: 700;
  margin-bottom: 10px;
}
.steps h3 { font-size: 15.5px; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* 底部行动区 */
.cta { padding: 60px 0; }
.cta-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 32px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb 60%, #3b82f6);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.cta-inner h2 { font-size: 23px; margin-bottom: 6px; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 14.5px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--brand-dark); }
.cta .btn-primary:hover { background: #eef4ff; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------------- 注册页 ---------------- */
.auth { padding: 54px 0 72px; background: linear-gradient(180deg, #f7f9ff, #fff 60%); min-height: 70vh; }
.auth-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 44px;
  align-items: start;
}
.auth-inner > * { min-width: 0; }
.auth-side h1 { font-size: 30px; }
.auth-sub { color: var(--ink-soft); }
.auth-list { list-style: none; padding: 0; margin: 20px 0 0; }
.auth-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.auth-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}
.auth-list strong { color: var(--ink); }

.auth-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 26px;
}
.auth-card h2 { font-size: 20px; margin-bottom: 4px; }
.auth-card .muted { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

/* 表单 */
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field-label .req { color: var(--danger); font-style: normal; margin-left: 3px; }
.input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.field-hint { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
.field-error { display: block; color: var(--danger); font-size: 12.5px; margin-top: 5px; }
.form-errorlist {
  list-style: none;
  padding: 10px 12px;
  margin: 0 0 14px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--danger);
  font-size: 13px;
}

/* ---------------- 页脚 ---------------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface-alt); }
.site-foot-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 20px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 22px;
}
.site-foot-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 46ch; }
.site-foot-brand p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.site-foot-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; align-items: center; }
.site-foot-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px 28px;
  color: var(--muted);
  font-size: 12.5px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 44px 20px 52px; }
  .hero h1 { font-size: 32px; }
  .hero-visual { order: 2; }
  .auth-inner { grid-template-columns: 1fr; }
  .auth-card { order: -1; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .hero h1 { font-size: 27px; }
  .section { padding: 48px 0; }
  .cta-inner { padding: 26px 20px; }
  .site-top-inner { padding: 10px 14px; gap: 10px; }
  .site-actions .btn { padding: 8px 12px; font-size: 13px; }
}
