/* 安装向导样式 */
* { box-sizing: border-box; }
body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}
.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}
.card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.card h2 { margin: 0 0 20px; color: #333; font-size: 22px; }
.card h3 { margin: 26px 0 14px; color: #555; font-size: 16px; border-left: 3px solid #667eea; padding-left: 10px; }
.foot { text-align: center; color: rgba(255,255,255,0.85); padding: 24px 0; font-size: 13px; }

/* Steps */
.steps {
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 30px; padding: 20px 0;
}
.step {
  display: flex; flex-direction: column; align-items: center; min-width: 110px;
}
.step .num {
  width: 36px; height: 36px; border-radius: 50%;
  background: #e9ecef; color: #6c757d; display: flex; align-items: center; justify-content: center;
  font-weight: 700; margin-bottom: 6px;
}
.step .label { font-size: 13px; color: #6c757d; }
.step.active .num { background: #667eea; color: #fff; box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.step.active .label { color: #667eea; font-weight: 600; }
.step.done .num { background: #28a745; color: #fff; }
.step.done .label { color: #28a745; }
.arrow {
  width: 40px; height: 2px; background: #e9ecef; margin: -14px 4px 0; position: relative;
}
.arrow.done { background: #28a745; }

/* Check table */
.check { width: 100%; border-collapse: collapse; }
.check th, .check td { padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; text-align: left; }
.check th { background: #f8f9fa; font-weight: 600; }
.check tr.ok td { color: #333; }
.check tr.fail { background: #fff5f5; }
.check tr.fail td { color: #c0392b; }

/* Form */
.form .row { display: flex; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.form .row label { width: 160px; font-weight: 500; color: #444; }
.form .row input[type=text],
.form .row input[type=password],
.form .row input[type=number] {
  flex: 1; min-width: 260px;
  padding: 9px 12px; border: 1px solid #ced4da; border-radius: 5px; font-size: 14px; outline: none;
  transition: all 0.15s;
}
.form .row input:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102,126,234,0.15); }
.form .row small { width: 100%; margin: 6px 0 0 160px; color: #888; font-size: 12px; }

/* Buttons */
.btns { margin-top: 24px; display: flex; gap: 10px; justify-content: flex-end; }
.btn {
  display: inline-block; padding: 9px 22px; border: 1px solid #ced4da;
  background: #fff; color: #495057; text-decoration: none;
  border-radius: 5px; cursor: pointer; font-size: 14px; transition: all 0.15s;
}
.btn:hover { background: #f1f3f5; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border: none; }
.btn-primary:hover { filter: brightness(1.05); color: #fff; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 5px; margin-bottom: 18px; font-size: 14px; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }

/* Log */
.log {
  max-height: 480px;
  overflow-y: auto;
  background: #1e1e1e; color: #d4d4d4;
  padding: 18px; border-radius: 6px; font-family: "Cascadia Code", Consolas, Menlo, monospace;
  font-size: 13px; line-height: 1.7;
}
.log a { color: #ffd700; text-decoration: underline; }

@media (max-width: 640px) {
  .wrap { padding: 12px; }
  .card { padding: 20px; }
  .steps { flex-wrap: wrap; }
  .arrow { display: none; }
  .form .row label { width: 100%; margin-bottom: 6px; }
  .form .row small { margin-left: 0; }
}
