/* ===============================================================
   引流宝 - 安装向导 CSS (独立、不依赖任何第三方)
   =============================================================== */
:root {
    --color-bg: #f6f8fb;
    --color-card: #ffffff;
    --color-text: #1f2937;
    --color-sub: #6b7280;
    --color-border: #e5e7eb;
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-success: #10b981;
    --color-warn: #f59e0b;
    --color-danger: #ef4444;
    --radius: 12px;
    --shadow: 0 6px 24px rgba(31, 41, 55, .06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #eef2ff 0%, var(--color-bg) 70%);
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.install-wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 36px 20px 60px;
}
.install-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--color-primary);
    color: white;
    display: grid; place-items: center;
    font-weight: 700;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 10px rgba(79, 70, 229, .25);
}
.brand-name {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
}
.brand-sub {
    color: var(--color-sub);
    font-size: 13px;
    border-left: 1px solid var(--color-border);
    padding-left: 12px;
    margin-left: 8px;
}
.brand-status {
    color: var(--color-sub);
    font-size: 12px;
}

.stepper {
    display: flex;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    background: var(--color-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.stepper li {
    flex: 1;
    padding: 18px 16px;
    text-align: center;
    color: var(--color-sub);
    font-size: 13px;
    border-right: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}
.stepper li:last-child { border-right: none; }
.stepper li i {
    display: grid; place-items: center;
    width: 24px; height: 24px;
    border-radius: 50%;
    font-style: normal;
    font-weight: 600;
    background: #eef2ff;
    color: #6366f1;
    font-size: 12px;
}
.stepper li.active {
    background: linear-gradient(0deg, #eef2ff, transparent);
    color: var(--color-text);
    font-weight: 600;
}
.stepper li.active i {
    background: var(--color-primary);
    color: white;
}
.stepper li.done { color: var(--color-success); }
.stepper li.done i { background: var(--color-success); color: white; }

.alert {
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid var(--color-border);
}
.alert.err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert p { margin: 4px 0; font-size: 14px; }
.alert.inline { padding: 10px 14px; font-size: 13px; }

.panel {
    background: var(--color-card);
    border-radius: var(--radius);
    padding: 32px 36px;
    box-shadow: var(--shadow);
    border: 1px solid var(--color-border);
}
.panel h2 { margin: 0 0 6px; font-size: 22px; }
.panel .lead { color: var(--color-sub); margin: 0 0 24px; font-size: 14px; }

.check-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    background: #fff;
}
.check-list li:last-child { border-bottom: none; }
.check-list li .label { flex: 0 0 180px; font-weight: 500; }
.check-list li .detail { color: var(--color-sub); font-size: 13px; }
.check-list li.ok { background: #f0fdf4; }
.check-list li.warn { background: #fffbeb; }
.check-list li.bad { background: #fef2f2; }
.check-list.compact li { padding: 8px 12px; font-size: 13px; }
.check-list.compact li .label { flex: 0 0 140px; }
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--color-success);
    display: inline-block;
}
.dot.warn { background: var(--color-warn); }
.dot.bad { background: var(--color-danger); }

.form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #374151;
}
.form label span em {
    color: var(--color-sub);
    font-style: normal;
    font-size: 12px;
    margin-left: 4px;
}
.form input, .form select, .form textarea {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.hint {
    color: var(--color-sub);
    font-size: 12px;
    margin: 4px 0 0;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.btn {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .15s ease;
    background: white;
    color: var(--color-text);
    font-family: inherit;
}
.btn.primary {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.btn.primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); }
.btn.primary:disabled { background: #c7d2fe; border-color: #c7d2fe; cursor: not-allowed; }
.btn.ghost { color: #4b5563; border-color: var(--color-border); }
.btn.ghost:hover { background: #f9fafb; }
.btn.large { padding: 14px 28px; font-size: 15px; }

.success {
    text-align: center;
    padding: 48px 36px;
}
.success-icon {
    color: var(--color-success);
    margin: 0 auto 12px;
    width: 64px; height: 64px;
}
.success .check-list { text-align: left; margin: 24px 0; }
.success .actions { justify-content: center; }

.install-foot {
    margin-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-sub);
    font-size: 12px;
}

@media (max-width: 600px) {
    .install-wrap { padding: 20px 12px; }
    .panel { padding: 22px 18px; }
    .stepper { flex-direction: column; }
    .stepper li { border-right: none; border-bottom: 1px solid var(--color-border); }
    .check-list li .label { flex: 1 1 auto; }
}
