/* 安装向导专用样式：浅色主题、无外部资源、无内联脚本 */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --line: #e3e8f0;
  --text: #1b2434;
  --muted: #6b778c;
  --primary: #1f6feb;
  --primary-dark: #1757bd;
  --green: #14855b;
  --green-bg: #e9f7f0;
  --amber: #a2600a;
  --amber-bg: #fff5e4;
  --red: #c02b3a;
  --red-bg: #fdecee;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 35, 65, .04), 0 8px 28px rgba(20, 35, 65, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 32px 20px 64px; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-size: 20px; font-weight: 700;
  box-shadow: 0 6px 16px rgba(31, 111, 235, .25);
}
.brand strong { display: block; font-size: 18px; letter-spacing: .2px; }
.brand small { display: block; color: var(--muted); font-size: 12px; }
.badge {
  font-size: 12px; color: var(--primary-dark); background: #e8f0fe;
  border: 1px solid #cfe0fd; border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 24px; gap: 8px; }
.steps li {
  flex: 1; display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 13px; color: var(--muted);
}
.steps li.active { border-color: #a9c6fb; color: var(--primary-dark); background: #f2f7ff; font-weight: 600; }
.steps li.done { color: var(--green); }
.num {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: #eef1f6; color: var(--muted);
}
.steps li.active .num { background: var(--primary); color: #fff; }
.steps li.done .num { background: var(--green-bg); color: var(--green); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 18px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card h2 { font-size: 16px; margin: 0; font-weight: 650; }
.pill { font-size: 12px; color: var(--muted); background: #f2f5fa; border-radius: 999px; padding: 3px 10px; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.check { display: flex; align-items: baseline; gap: 8px; font-size: 13px; padding: 3px 0; min-width: 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; transform: translateY(-1px); }
.check.ok .dot { background: var(--green); }
.check.warn .dot { background: #e5a33a; }
.check.bad .dot { background: var(--red); }
.ck-label { font-weight: 550; white-space: nowrap; }
.ck-note { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.check.bad .ck-note { color: var(--red); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: #3a465a; }
.field input, .field textarea {
  width: 100%; border: 1px solid #d7dfea; border-radius: 8px; padding: 9px 11px;
  font: inherit; font-size: 14px; color: var(--text); background: #fff;
  transition: border-color .15s, box-shadow .15s; outline: none;
}
.field input:focus, .field textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 111, 235, .12);
}
.field input::placeholder { color: #a4aec0; }
.field small { color: var(--muted); font-size: 12px; line-height: 1.5; }

.notice {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px;
  border-radius: 9px; font-size: 13px; margin: 0 0 16px; border: 1px solid transparent;
}
.notice strong { font-weight: 650; }
.notice span { line-height: 1.6; }
.notice.info { background: #f0f6ff; border-color: #d4e4ff; color: #1c4f9c; }
.notice.ok { background: var(--green-bg); border-color: #c7ecd9; color: #0f6b49; }
.notice.warn { background: var(--amber-bg); border-color: #f6dfae; color: var(--amber); }
.notice.err { background: var(--red-bg); border-color: #f6c9cf; color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 8px; padding: 9px 16px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); color: #fff; }
.btn.primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn.ghost { background: #fff; border-color: #d3dce8; color: #3a465a; }
.btn.ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary-dark); }
.btn.tiny { padding: 5px 11px; font-size: 12px; background: #f2f5fa; border-color: #e3e8f0; color: #3a465a; white-space: nowrap; }
.btn.tiny:hover { border-color: var(--primary); color: var(--primary-dark); }
.row-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.test-result { font-size: 13px; color: var(--muted); }
.test-result.ok { color: var(--green); }
.test-result.bad { color: var(--red); }

.submit-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 18px;
}
.submit-bar strong { display: block; font-size: 15px; }
.submit-bar small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; max-width: 520px; }

.success-card { text-align: center; padding-top: 30px; }
.success-icon {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px;
  background: var(--green-bg); color: var(--green); font-size: 28px; font-weight: 700;
  display: grid; place-items: center;
}
.success-card h2 { font-size: 22px; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 13px; max-width: 560px; margin: 0 auto 22px; }
.cred-table { text-align: left; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cred-row {
  display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; align-items: center;
  gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.cred-row:last-child { border-bottom: 0; }
.cred-row:nth-child(odd) { background: #fafbfe; }
.cred-label { font-size: 12px; color: var(--muted); }
.cred-row code {
  font: 13px/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  overflow-wrap: anywhere; color: #20304a;
}
.success-card .row-actions { justify-content: center; }
.code {
  background: #f6f8fc; border: 1px solid var(--line); border-radius: 9px;
  padding: 14px; font: 12.5px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 12px;
}
.muted { color: var(--muted); font-size: 12px; margin: 0; }
.todo { margin: 0; padding-left: 20px; font-size: 13px; line-height: 2; }
.todo li { padding-left: 4px; }
.todo code, .muted code { background: #f0f3f8; padding: 1px 5px; border-radius: 4px; font-size: 12px; }
footer { text-align: center; color: #9aa5b6; font-size: 12px; margin-top: 30px; }

@media (max-width: 720px) {
  .wrap { padding: 20px 14px 48px; }
  .steps { flex-direction: column; gap: 6px; }
  .steps li { padding: 8px 12px; }
  .checks, .grid { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; }
  .submit-bar { flex-direction: column; align-items: stretch; }
  .submit-bar .btn { width: 100%; }
  .cred-row { grid-template-columns: 1fr auto; }
  .cred-label { grid-column: 1 / -1; }
  .hero { flex-wrap: wrap; }
}
