/* 安装向导与发行拒绝页 — 天空影像风格（系统字体，避免境外 CDN） */
.install-wizard-page {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #e8f0ff;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(91, 159, 255, 0.35), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(138, 99, 255, 0.22), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(15, 90, 140, 0.45), transparent 60%),
    linear-gradient(165deg, #050a12 0%, #0c1525 38%, #0a1220 100%);
  background-attachment: fixed;
}

.install-wizard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.install-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, 94vw);
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.install-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.install-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.install-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5b9fff, #6b5cff 55%, #3d7ae8);
  box-shadow: 0 8px 28px rgba(45, 125, 255, 0.35);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.install-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.install-brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.install-brand-sub {
  font-size: 0.78rem;
  color: rgba(200, 220, 255, 0.55);
}

.install-host-pill {
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(220, 235, 255, 0.85);
}

.install-host-pill code {
  background: transparent;
  padding: 0;
  font-size: inherit;
  color: #9fd4ff;
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (max-width: 860px) {
  .install-grid {
    grid-template-columns: 1fr;
  }
}

.install-steps-card {
  background: rgba(18, 28, 48, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.install-steps-card h2 {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(159, 200, 255, 0.65);
}

.install-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.install-step-list li {
  position: relative;
  padding: 0.85rem 0 0.85rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(225, 235, 255, 0.88);
}

.install-step-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.install-step-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(91, 159, 255, 0.35), rgba(107, 92, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
}

.install-official {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: rgba(45, 125, 255, 0.12);
  border: 1px solid rgba(91, 159, 255, 0.35);
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(210, 230, 255, 0.92);
}

.install-official a {
  color: #9fd4ff;
  font-weight: 600;
  word-break: break-all;
}

.install-form-card {
  background: rgba(14, 22, 38, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 1.75rem 1.85rem 2rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.install-form-card > h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.install-lead {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  color: rgba(180, 205, 240, 0.75);
  line-height: 1.55;
}

.install-section {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.install-section:first-of-type {
  margin-top: 0.5rem;
  padding-top: 0;
  border-top: 0;
}

.install-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #cfe6ff;
}

.install-section-title span.icon {
  font-size: 1.1rem;
  opacity: 0.9;
}

.install-form-card .form label {
  display: block;
  margin: 0.55rem 0 0.3rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(170, 200, 235, 0.85);
}

.install-form-card .form input[type="text"],
.install-form-card .form input[type="password"],
.install-form-card .form input[type="number"],
.install-form-card .form input[type="file"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(6, 12, 24, 0.85);
  color: #f0f6ff;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.install-form-card .form input:focus {
  outline: none;
  border-color: rgba(91, 159, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(45, 125, 255, 0.2);
}

.install-form-card .form label.chk {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.75rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(190, 210, 240, 0.8);
  cursor: pointer;
}

.install-form-card .form label.chk input {
  margin-top: 0.2rem;
  width: auto;
}

.install-btn-primary {
  margin-top: 1.75rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 0;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #3d8bff, #5b66ff 48%, #4a7ae8);
  box-shadow: 0 10px 32px rgba(45, 125, 255, 0.38);
  transition: transform 0.12s, box-shadow 0.12s;
}

.install-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(45, 125, 255, 0.45);
}

.install-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.install-btn-inline {
  display: inline-block;
  width: auto;
  text-decoration: none;
  text-align: center;
}

.install-error {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(255, 100, 100, 0.12);
  border: 1px solid rgba(255, 120, 120, 0.35);
  color: #ffc8c8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.install-muted {
  font-size: 0.86rem;
  color: rgba(170, 200, 235, 0.65);
  line-height: 1.55;
}

.install-form-card code {
  background: rgba(255, 255, 255, 0.08);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.84em;
}

/* 403 拒绝页 */
.install-denied-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.install-denied-card {
  max-width: 420px;
  text-align: center;
  padding: 2rem 1.75rem;
  background: rgba(18, 28, 48, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.install-denied-card h1 {
  margin: 1rem 0 0.75rem;
  font-size: 1.25rem;
}

.install-denied-card .install-lead {
  margin-bottom: 1rem;
}
