/* 快企务官网安装程序 · 样式（品牌蓝/深蓝为主，橙色只用于主按钮） */
:root {
  --navy: #0b1240;
  --navy-2: #121a52;
  --deep: #212773;
  --brand: #092eb8;
  --sky: #809bff;
  --orange: #ff6a00;
  --orange-hover: #ff8a3d;
  --ink: #0f1633;
  --text: #2b3352;
  --muted: #5d6685;
  --line: #dfe3ef;
  --ok: #0f7a3d;
  --warn: #8a5a00;
  --fail: #b42318;
  --radius: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(1200px 600px at 85% -10%, rgba(128, 155, 255, .22), transparent 60%), linear-gradient(180deg, var(--navy) 0, var(--navy-2) 420px, #eef1f8 420px);
  line-height: 1.65;
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}
.shell { max-width: 880px; margin: 0 auto; padding: 28px 16px 40px; }
.top { display: flex; align-items: center; gap: 16px; color: #fff; }
.brand { width: 116px; height: 40px; display: block; }
.top-text { display: flex; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, .25); padding-left: 16px; }
.top-text strong { font-size: 17px; letter-spacing: .02em; }
.top-text span { font-size: 13px; color: #c9d3ff; }

.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 28px 0 18px; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; color: #b8c3f5; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); min-width: 0; }
.steps .num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: rgba(255, 255, 255, .12); color: #fff; }
.steps .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps .is-done .num { background: var(--sky); color: var(--navy); }
.steps .is-current { background: #fff; color: var(--ink); font-weight: 600; }
.steps .is-current .num { background: var(--brand); }

.card { background: #fff; border-radius: var(--radius); padding: 28px 28px 24px; box-shadow: 0 18px 48px rgba(11, 18, 64, .18); }
h1 { margin: 0 0 6px; font-size: 24px; color: var(--ink); letter-spacing: .01em; }
h2 { font-size: 16px; color: var(--ink); margin: 26px 0 10px; }
.lead { margin: 0 0 20px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
code { background: #f1f3fa; padding: 1px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; }

.alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; background: #eef2ff; color: var(--deep); border: 1px solid #c9d3ff; }
.alert-error { background: #fff1f0; color: var(--fail); border-color: #f5c2bd; }

.form { display: block; }
.form.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form .wide { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.form.grid .field { margin: 0; }
.field > span:first-child { font-weight: 600; color: var(--ink); font-size: 14px; }
.field small { color: var(--muted); font-size: 12.5px; }
.field small.ok { color: var(--ok); }
.field small.bad { color: var(--fail); }
input[type="text"], input:not([type]), input[type="password"], input[type="email"] {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); padding: 11px 12px; min-height: 46px;
  border: 1px solid #c7cde0; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(9, 46, 184, .18); }
.pw { position: relative; display: block; }
.pw input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: #eef1fb; color: var(--brand); border-radius: 8px; padding: 6px 10px; min-height: 34px; font: inherit; font-size: 13px; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.gen { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px;
  font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  border: 1px solid #c7cde0; background: #fff; color: var(--deep); transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn:focus-visible, .pw-toggle:focus-visible, .check input:focus-visible { outline: 3px solid rgba(9, 46, 184, .45); outline-offset: 2px; }
.btn-primary { background: var(--orange); border-color: var(--orange); color: #1a0b00; }
.btn-primary:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #1a0b00; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 13px; }

.checks-sum { font-weight: 600; color: var(--ink); margin: 0 0 6px; }
.checks section h2 { margin: 18px 0 8px; font-size: 14px; color: var(--deep); }
.checks ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.checks li { display: grid; grid-template-columns: 48px 150px 1fr; gap: 10px; align-items: baseline; padding: 10px 12px; border-top: 1px solid var(--line); font-size: 14px; }
.checks li:first-child { border-top: 0; }
.checks b { color: var(--ink); font-weight: 600; word-break: break-word; }
.checks .txt { color: var(--text); }
.tag { display: inline-block; text-align: center; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 1px 0; }
.lv-ok .tag { background: #e6f4ec; color: var(--ok); }
.lv-warn { background: #fffaf0; }
.lv-warn .tag { background: #fdf0d5; color: var(--warn); }
.lv-fail { background: #fff5f4; }
.lv-fail .tag { background: #fde3e0; color: var(--fail); }

.summary { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); }
.summary div:first-child { border-top: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); word-break: break-all; }

.progress { margin: 18px 0 4px; }
.bar { height: 12px; border-radius: 999px; background: #e6e9f4; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--sky)); border-radius: 999px; transition: width .3s ease; }

.todo { padding-left: 20px; margin: 0; }
.todo li { margin: 0 0 12px; }
.todo .btn { margin: 6px 10px 0 0; }
#cleanup-msg.ok { color: var(--ok); }
#cleanup-msg.bad { color: var(--fail); }

.foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 22px; }

.is-blocked { display: grid; place-items: center; padding: 24px; }
.blocked { max-width: 560px; background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 18px 48px rgba(11, 18, 64, .18); }
.blocked .brand { filter: none; background: var(--navy); border-radius: 8px; padding: 6px 10px; width: 136px; height: 52px; margin-bottom: 14px; }

@media (max-width: 720px) {
  .shell { padding: 18px 12px 32px; }
  .steps { gap: 4px; }
  .steps li { padding: 6px; justify-content: center; }
  .steps .lbl { display: none; }
  .steps .is-current .lbl { display: inline; }
  .steps .is-current { flex: 3; }
  .card { padding: 22px 16px 20px; }
  h1 { font-size: 21px; }
  .form.grid { grid-template-columns: 1fr; }
  .checks li { grid-template-columns: 44px 1fr; }
  .checks .txt { grid-column: 2; }
  .summary div { grid-template-columns: 1fr; gap: 2px; }
  .actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
