/* ©邦大科技版权所有：首次安装页面与进度弹窗使用统一主题。 */
:root {
  font-family: "Microsoft YaHei", system-ui, sans-serif;
  color: #152238;
  background: #f6f8fb;
  --progress-primary: #0a84ff;
  --progress-muted: #7b8798;
  --progress-track: #eaf1fb;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 15% 10%, #dbeafe 0, transparent 34%), #f6f8fb; }
main { width: min(880px, calc(100% - 32px)); margin: 0 auto; padding: 7vh 0 30px; }
.install-card { padding: 40px; border: 1px solid #e1e8f2; border-radius: 24px; background: #fff; box-shadow: 0 18px 48px rgb(15 23 42 / 8%); }
.install-card header > span { color: var(--progress-primary); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 8px 0; font-size: 32px; letter-spacing: -.04em; }
p { margin: 0; color: #64748b; line-height: 1.7; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 30px 0; }
label { display: grid; gap: 8px; color: #334155; font-size: 14px; font-weight: 700; }
input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d7e1ee; border-radius: 10px; outline: 0; font: inherit; }
input:focus { border-color: var(--progress-primary); box-shadow: 0 0 0 3px rgb(10 132 255 / 14%); }
button { min-width: 140px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 10px; color: #fff; background: var(--progress-primary); font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
main > footer { margin-top: 20px; text-align: center; color: #94a3b8; font-size: 13px; }
body:has(.progress-dialog[open]) { overflow: hidden; }
.progress-dialog {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 28px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #152238;
  box-shadow: 0 28px 80px rgb(15 23 42 / 22%);
}
.progress-dialog::backdrop { background: rgb(15 23 42 / 38%); backdrop-filter: blur(5px); }
.progress-dialog [hidden] { display: none; }
.progress-heading, .progress-current > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.progress-eyebrow { color: var(--progress-muted); font-size: 12px; }
.progress-heading h2 { margin: 6px 0 0; font-size: 22px; }
.progress-overall { flex-shrink: 0; text-align: right; }
.progress-overall > span { display: block; color: var(--progress-muted); font-size: 12px; }
.progress-overall > strong { color: var(--progress-primary); font-size: 30px; font-variant-numeric: tabular-nums; }
.progress-track { height: 10px; margin: 22px 0; overflow: hidden; border-radius: 999px; background: var(--progress-track); }
.progress-track > span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--progress-primary); transition: width .3s ease; }
.progress-current { padding: 16px 18px; border-radius: 14px; background: #eaf4ff; }
.progress-current strong { font-size: 15px; line-height: 1.6; }
.progress-current > div > span { flex-shrink: 0; color: var(--progress-primary); font-size: 13px; font-variant-numeric: tabular-nums; }
.progress-dialog progress { display: block; width: 100%; height: 6px; margin-top: 9px; overflow: hidden; appearance: none; border: 0; border-radius: 999px; background: var(--progress-track); accent-color: var(--progress-primary); }
.progress-current progress { height: 8px; }
.progress-dialog progress::-webkit-progress-bar { border-radius: inherit; background: transparent; }
.progress-dialog progress::-webkit-progress-value { border-radius: inherit; background: var(--progress-fill, var(--progress-primary)); transition: width .3s ease; }
.progress-dialog progress::-moz-progress-bar { border-radius: inherit; background: var(--progress-fill, var(--progress-primary)); }
.progress-dialog progress:not([value]) { background: linear-gradient(90deg, var(--progress-track) 25%, #9bccff 50%, var(--progress-track) 75%); background-size: 200% 100%; animation: progress-pending 1.5s linear infinite; }
.progress-steps { max-height: 34vh; margin: 20px 0; padding: 0 6px 0 0; overflow: auto; list-style: none; counter-reset: installation-step; }
.progress-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); align-items: center; column-gap: 12px; padding: 10px 0; color: var(--progress-muted); counter-increment: installation-step; }
.progress-steps li::before { grid-row: span 2; display: grid; width: 26px; height: 26px; border-radius: 50%; background: #f1f5f9; font-size: 12px; place-items: center; content: counter(installation-step); }
.progress-steps li > span { font-size: 13px; line-height: 1.6; }
.progress-steps li > progress { grid-column: 2; }
.progress-steps .step-current { color: #152238; font-weight: 700; }
.progress-steps .step-current::before { color: var(--progress-primary); background: #eaf4ff; }
.progress-steps .step-completed::before { color: #16a34a; background: #eaf8f0; }
.progress-steps .step-completed progress { --progress-fill: #16a34a; }
.progress-footer { padding-top: 16px; border-top: 1px solid #edf1f5; }
.progress-footer p { color: var(--progress-muted); font-size: 12px; }
.progress-footer button { width: 100%; margin-top: 14px; }
@keyframes progress-pending { to { background-position: -200% 0; } }
@media (max-width: 680px) {
  main { padding-top: 20px; }
  .install-card { padding: 24px; }
  .fields { grid-template-columns: 1fr; }
  h1 { font-size: 26px; }
  .progress-dialog { padding: 22px; }
  .progress-heading h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .progress-dialog progress:not([value]) { animation: none; }
  .progress-track > span, .progress-dialog progress::-webkit-progress-value { transition: none; }
}
