/* ============================================================
   install.css —— 安装向导样式
   ============================================================ */
.install-body {
    background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 60%, #f5f3ff 100%);
    font-family: var(--font-sans, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    color: #1f2430;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 40px 16px;
}
.install-wrap { width: 100%; max-width: 880px; }

.install-header { text-align: center; margin-bottom: 28px; }
.install-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}
.install-logo h1 { font-size: 24px; }
.install-logo p { color: #5b6472; font-size: 13px; }
.logo-dot {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f6ef7, #8b5cf6);
    box-shadow: 0 6px 18px rgba(79, 110, 247, 0.4);
}

.install-steps {
    display: flex;
    justify-content: center;
    gap: 0;
    list-style: none;
    flex-wrap: wrap;
}
.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #9aa3b2;
    font-size: 14px;
}
.step-item .step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e8ef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.step-item.active { color: #4f6ef7; font-weight: 600; }
.step-item.active .step-num { background: #4f6ef7; color: #fff; }
.step-item.done { color: #16a34a; }
.step-item.done .step-num { background: #16a34a; color: #fff; }

.install-main { min-height: 300px; }
.install-card {
    background: #fff;
    border: 1px solid #e5e8ef;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(16, 24, 40, 0.08);
    margin-bottom: 20px;
}
.install-card h2 { font-size: 20px; margin-bottom: 6px; }
.install-card .desc { color: #5b6472; margin-bottom: 18px; font-size: 14px; }
.install-card .sub-title { font-size: 16px; margin: 20px 0 12px; }

.env-summary {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}
.env-summary.ok { background: #e8f8ee; color: #14532d; }
.env-summary.bad { background: #fdeef1; color: #881337; }

.env-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.env-table th, .env-table td { padding: 10px 12px; border-bottom: 1px solid #eef0f4; text-align: left; }
.env-table th { background: #f8fafc; color: #5b6472; }
.row-ok td { }
.row-bad td { color: #be123c; }
.row-tip td { background: #fdf3e2; color: #78350f; font-size: 12px; }

.install-card .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.install-card .form-item { margin-bottom: 16px; }
.install-card .form-item-full { grid-column: 1 / -1; }
.install-card label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; }
.install-card .req { color: #e11d48; }
.install-card .input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e8ef;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    background: #fff;
}
.install-card .input:focus { border-color: #4f6ef7; box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.15); }
.install-card .textarea { resize: vertical; }

.actions { display: flex; gap: 12px; margin-top: 22px; justify-content: space-between; }
.actions-center { justify-content: center; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}
.btn-primary { background: #4f6ef7; color: #fff; }
.btn-primary:hover { background: #3d5ce0; }
.btn-ghost { background: #fff; border-color: #e5e8ef; color: #1f2430; }
.btn-ghost:hover { border-color: #4f6ef7; color: #4f6ef7; }
.btn-disabled { background: #e5e8ef; color: #9aa3b2; cursor: not-allowed; }
.btn-lg { padding: 13px 30px; font-size: 16px; }

.alert { padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.alert-error { background: #fdeef1; border-color: #f5c2d0; color: #881337; }
.alert-warn { background: #fdf3e2; border-color: #f3d49b; color: #78350f; }
.alert ul, .alert ol { padding-left: 20px; margin-top: 6px; }

.info-box { background: #f8fafc; border: 1px dashed #e5e8ef; border-radius: 12px; padding: 14px 16px; margin: 12px 0; font-size: 14px; }
.info-box code { background: #eef0f4; padding: 2px 6px; border-radius: 6px; }

.install-done { text-align: center; }
.done-icon { font-size: 60px; margin-bottom: 8px; }
.done-info { text-align: left; margin: 20px 0; }
.done-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid #eef0f4;
}
.done-row span { color: #5b6472; }
.install-footer { text-align: center; color: #9aa3b2; font-size: 12px; margin-top: 12px; }

@media (max-width: 640px) {
    .install-card .form-grid { grid-template-columns: 1fr; }
}
