/* ============================================================
 * 安装向导样式 —— 毛玻璃 Glassmorphism
 * 主色 #2563EB / 辅助 #06B6D4 / 强调 #F59E0B
 * ============================================================ */

:root {
    --primary: #2563eb;
    --cyan: #06b6d4;
    --accent: #f59e0b;
    --ok: #10b981;
    --bad: #ef4444;
    --text: #1e293b;
    --muted: #64748b;
    --radius-card: 20px;
    --radius-btn: 12px;
    --radius-input: 12px;
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow: 0 8px 32px rgba(31, 38, 135, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    color: var(--text);
    background: linear-gradient(135deg, #e0f2fe 0%, #ede9fe 45%, #fce7f3 100%);
    overflow-x: hidden;
}

/* ---------- 背景光斑 ---------- */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    z-index: 0;
    pointer-events: none;
}
.blob-1 { width: 420px; height: 420px; background: #3b82f6; top: -120px; left: -100px; }
.blob-2 { width: 380px; height: 380px; background: #06b6d4; bottom: -140px; right: -80px; }
.blob-3 { width: 320px; height: 320px; background: #f59e0b; top: 40%; left: 55%; opacity: .35; }

/* ---------- 容器 ---------- */
.install-wrap {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.glass-card {
    width: 100%;
    max-width: 760px;
    padding: 32px 28px 24px;
    border-radius: var(--radius-card);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow), 0 2px 8px rgba(0, 0, 0, .04) inset;
}

.card-head { text-align: center; margin-bottom: 24px; }
.logo { font-size: 26px; font-weight: 800; letter-spacing: .5px; }
.logo span {
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.card-head .sub { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------- 步骤条 ---------- */
.steps {
    display: flex;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    gap: 8px;
    flex-wrap: wrap;
}
.steps li {
    flex: 1 1 90px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}
.steps .dot {
    width: 24px; height: 24px;
    border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(255, 255, 255, .8);
    font-size: 12px;
}
.steps li.active .dot { background: var(--primary); color: #fff; border-color: var(--primary); }
.steps li.done .dot { background: var(--ok); color: #fff; border-color: var(--ok); }
.steps li.active { color: var(--primary); font-weight: 600; }

/* ---------- 标题 ---------- */
.title { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.sub-title { margin: 24px 0 8px; font-size: 16px; font-weight: 600; }
.desc { margin: 0 0 18px; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* ---------- 表格 ---------- */
.env-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, .5);
    border-radius: 12px;
    overflow: hidden;
}
.env-table th, .env-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}
.env-table th { background: rgba(255, 255, 255, .6); font-weight: 600; }
.env-table tr:last-child td { border-bottom: none; }
.muted { color: var(--muted); }

/* ---------- 标签 ---------- */
.tag { padding: 2px 10px; border-radius: 999px; font-size: 12px; }
.tag-ok { background: rgba(16, 185, 129, .15); color: #047857; }
.tag-bad { background: rgba(239, 68, 68, .15); color: #b91c1c; }

/* ---------- 表单 ---------- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field .label { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--muted); }
.input {
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-input);
    border: 1px solid rgba(148, 163, 184, .35);
    background: rgba(255, 255, 255, .75);
    font-size: 14px;
    color: var(--text);
    transition: all .2s;
}
.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.btn {
    min-height: 44px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-btn);
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    color: #fff;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37, 99, 235, .38); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost {
    background: rgba(255, 255, 255, .6);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, .3);
}

/* ---------- 提示 ---------- */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    margin-bottom: 16px;
}
.alert-error { background: rgba(239, 68, 68, .12); color: #b91c1c; border: 1px solid rgba(239, 68, 68, .25); }

.notice {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(148, 163, 184, .2);
    font-size: 13px;
    margin-bottom: 18px;
}
.notice ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.9; }
.notice-warn { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); }
.notice-info { background: rgba(37, 99, 235, .10); border-color: rgba(37, 99, 235, .28); }
code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(15, 23, 42, .08);
    font-family: ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
}

/* ---------- 进度与日志 ---------- */
.progress {
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .6);
    overflow: hidden;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, .7);
}
.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    text-align: center;
    transition: width .3s ease;
}

.log {
    list-style: none;
    margin: 0;
    padding: 12px;
    max-height: 260px;
    overflow-y: auto;
    background: rgba(15, 23, 42, .04);
    border-radius: 12px;
    font-size: 13px;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}
.log li { padding: 5px 0; display: flex; gap: 8px; }
.log .ic { font-weight: 700; }
.log li.ok .ic { color: var(--ok); }
.log li.bad .ic { color: var(--bad); }

/* ---------- 结果 ---------- */
.result { margin-bottom: 18px; }
.result-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    margin-bottom: 8px;
    font-size: 13px;
}
.result-item .k { color: var(--muted); }

.code {
    margin: 0;
    padding: 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, .85);
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.7;
    overflow-x: auto;
    font-family: ui-monospace, Menlo, Consolas, monospace;
}

.card-foot {
    margin-top: 22px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, .2);
    text-align: center;
    font-size: 12px;
    color: var(--muted);
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    .glass-card { padding: 22px 18px 18px; border-radius: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .logo { font-size: 21px; }
    .steps .label { display: none; }
    .steps li { flex: 0 0 auto; }
    .btn { width: 100%; }
    .form-actions { flex-direction: column; }
}
