:root {
  --ink: #1b2a41;
  --ink2: #5c6b80;
  --ink3: #8d99a8;
  --accent: #165dff;
  --accent-soft: #eaf0ff;
  --line: #e3e8f0;
  --soft: #f6f8fc;
  --ok: #0f9d58;
  --warn: #d9822b;
  --bg: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--ink);
  background: var(--soft);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: 880px; margin: 0 auto; padding: 0 20px 64px; }
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.topbar .inner {
  max-width: 880px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { font-weight: 600; font-size: 15px; letter-spacing: .2px; }
.brand span { color: var(--accent); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.muted { color: var(--ink2); font-size: 13px; }
.hero { padding: 44px 0 26px; }
.hero h1 { font-size: 30px; line-height: 1.32; margin: 0 0 12px; font-weight: 600; letter-spacing: -.3px; }
.hero p { margin: 0; color: var(--ink2); font-size: 15px; }
.steps { display: flex; gap: 10px; margin: 26px 0 22px; flex-wrap: wrap; }
.step {
  flex: 1 1 180px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px;
}
.step b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.step i {
  font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 2px 8px; display: inline-block; margin-bottom: 8px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 26px 22px; margin-top: 18px;
}
.card h2 { font-size: 16px; margin: 0 0 4px; font-weight: 600; }
.card .sub { color: var(--ink3); font-size: 12.5px; margin-bottom: 20px; }
label.field { display: block; margin-bottom: 16px; }
label.field > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
label.field em { font-style: normal; color: var(--ink3); font-weight: 400; margin-left: 4px; }
input[type=text], input[type=email], input[type=number], textarea, select {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(22,93,255,.1); }
textarea { resize: vertical; min-height: 96px; line-height: 1.65; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > .field { flex: 1 1 180px; }
.btn {
  appearance: none; border: none; cursor: pointer; font: inherit; font-size: 15px; font-weight: 500;
  background: var(--accent); color: #fff; padding: 12px 26px; border-radius: 10px;
  transition: opacity .15s;
}
.btn:hover { opacity: .9; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.hint { font-size: 12.5px; color: var(--ink3); margin-top: 10px; }
.err { color: #d93a3a; font-size: 13px; margin-top: 12px; min-height: 18px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500;
  border-radius: 999px; padding: 4px 12px; background: var(--accent-soft); color: var(--accent);
}
.pill.ok { background: #e8f7ee; color: var(--ok); }
.pill.warn { background: #fdf1e3; color: var(--warn); }
.track { display: flex; gap: 8px; margin: 22px 0 8px; }
.track div {
  flex: 1; height: 4px; border-radius: 2px; background: var(--line);
}
.track div.on { background: var(--accent); }
.track-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink3); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 22px 0 0; }
.meta div { background: var(--soft); border-radius: 10px; padding: 12px 14px; }
.meta small { display: block; color: var(--ink3); font-size: 11.5px; margin-bottom: 3px; }
.meta b { font-size: 14px; font-weight: 500; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 18px; }
.thumbs img { width: 100%; border: 1px solid var(--line); border-radius: 8px; display: block; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--ink3); font-weight: 500; font-size: 12px; }
code { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: var(--soft); padding: 1px 5px; border-radius: 4px; }
.note { font-size: 12.5px; color: var(--ink3); border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; }
.spin {
  width: 15px; height: 15px; border: 2px solid var(--accent-soft); border-top-color: var(--accent);
  border-radius: 50%; animation: sp .8s linear infinite; display: inline-block; vertical-align: -2px; margin-right: 7px;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* --- upload slots & toggles --- */
input[type=file] {
  width: 100%; font: inherit; font-size: 13px; color: var(--ink2);
  border: 1px dashed var(--line); border-radius: 10px; padding: 9px 12px;
  background: #fcfdff; cursor: pointer;
}
input[type=file]:hover { border-color: var(--accent); background: var(--accent-soft); }
input[type=file]::file-selector-button {
  font: inherit; font-size: 12.5px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); border-radius: 7px; padding: 4px 10px; margin-right: 10px; cursor: pointer;
}
.checkline {
  display: flex; align-items: flex-start; gap: 9px; font-size: 13px;
  color: var(--ink2); margin: 2px 0 18px; cursor: pointer;
}
.checkline input { margin-top: 3px; accent-color: var(--accent); }
.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.bar .grow { flex: 1; }
.kv { font-size: 12.5px; color: var(--ink3); }
.kv b { color: var(--ink); font-weight: 500; }
