/* 先约好 · 落地页样式
   设计原则：手机端优先，深色克制，不依赖任何外部字体或图片资源 */

:root {
  --bg: #141821;
  --surface: #1e2430;
  --surface-2: #262e3c;
  --text: #f2efe9;
  --text-dim: #8b93a3;
  --accent: #e8743b;
  --accent-soft: rgba(232, 116, 59, 0.12);
  --line: #2c3442;
  --radius: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
               "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px calc(60px + env(safe-area-inset-bottom));
}

/* ---------- Hero ---------- */

.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.badge {
  display: inline-block;
  margin: 0 0 24px;
  padding: 5px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-title {
  margin: 0 0 18px;
  font-size: 38px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-sub {
  margin: 0 0 32px;
  color: var(--text-dim);
  font-size: 16px;
}

.hero-note {
  margin: 14px 0 0;
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- 通用区块 ---------- */

.section {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.section-highlight {
  border-top-color: var(--accent);
}

.section-title {
  margin: 0 0 20px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
}

.section-desc {
  margin: -12px 0 20px;
  color: var(--text-dim);
  font-size: 15px;
}

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

.btn {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:active { transform: scale(0.97); }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-block {
  display: block;
  width: 100%;
  margin-top: 8px;
}

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

.cards { display: grid; gap: 12px; }

.card {
  padding: 18px 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- 清单 ---------- */

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.plain-list li:last-child { border-bottom: none; }

.mark {
  display: inline-block;
  min-width: 44px;
  margin-right: 8px;
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

.mark-no {
  background: var(--surface-2);
  color: var(--text-dim);
}

.mark-yes {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- 步骤 ---------- */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 20px;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

.steps h3 {
  margin: 2px 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- 条款预览 ---------- */

.clause-list { display: grid; gap: 10px; }

.clause {
  padding: 14px 16px;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.clause-tag {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.clause p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ---------- 引用块 ---------- */

.quote {
  margin: 0 0 16px;
  padding: 24px 22px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 116, 59, 0.25);
}

.quote p {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.quote-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

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

.form { margin-top: 8px; }

.field {
  margin: 0 0 26px;
  padding: 0;
  border: none;
}

.field label,
.field legend {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}

.req { color: var(--accent); }

.optional {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 400;
}

.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
}

.field input[type="text"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.field input::placeholder,
.field textarea::placeholder { color: #5c6472; }

.field textarea { resize: vertical; min-height: 76px; }

.options { display: grid; gap: 9px; }

.options-inline { grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); }

.opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.options-inline .opt { justify-content: center; padding: 11px 8px; }

.opt input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.opt:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.field-hint,
.field-error {
  margin: 8px 0 0;
  font-size: 13px;
}

.field-hint { color: var(--text-dim); }
.field-error { color: #ff7a6b; }

.form-note {
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: 13px;
  text-align: center;
}

/* ---------- 成功态 ---------- */

.success {
  margin-top: 8px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  text-align: center;
}

.success h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.success p {
  margin: 0 0 8px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.success-note {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px !important;
  color: var(--text) !important;
}

/* ---------- footer ---------- */

.footer {
  padding: 36px 0 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
}

.footer p { margin: 0 0 8px; }

.footer-note { line-height: 1.7; }

/* ---------- 小屏微调 ---------- */

@media (max-width: 360px) {
  .hero-title { font-size: 32px; }
  .hero { padding-top: 48px; }
}
