/* ============================================================================
   九龙科技 - 安装向导样式
   ----------------------------------------------------------------------------
   特点：渐变背景 + 卡片布局 + 现代化色彩，适配移动端
   ============================================================================ */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 30px 15px;
    color: #333;
    -webkit-font-smoothing: antialiased;
}

.install-wrap {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,.18);
    overflow: hidden;
}

/* 顶部 LOGO 栏 */
.install-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 36px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: #fff;
}
.install-header .logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #5b8def, #8b5cf6);
    color: #fff; font-weight: 700; font-size: 16px;
    box-shadow: 0 6px 16px rgba(91,141,239,.4);
}
.logo-text { font-size: 18px; font-weight: 600; letter-spacing: .5px; }
.header-tip { font-size: 13px; color: #94a3b8; }

/* 步骤指示器 */
.steps {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 28px 60px;
    background: #f8fafc;
    border-bottom: 1px solid #eef0f3;
    position: relative;
}
.steps li {
    flex: 1;
    text-align: center;
    position: relative;
    color: #94a3b8;
    transition: color .2s;
}
.steps li::after {
    content: '';
    position: absolute;
    top: 18px; left: 50%;
    width: 100%; height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.steps li:last-child::after { display: none; }
.steps li .num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #94a3b8;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-weight: 600;
    margin: 0 auto 8px;
    position: relative; z-index: 1;
    transition: all .25s;
}
.steps li .txt { font-size: 13px; }
.steps li.active { color: #5b8def; }
.steps li.active .num {
    background: linear-gradient(135deg, #5b8def, #8b5cf6);
    color: #fff;
    box-shadow: 0 6px 16px rgba(91,141,239,.35);
}
.steps li.done { color: #22c55e; }
.steps li.done .num {
    background: #22c55e; color: #fff;
}
.steps li.done::after { background: #22c55e; }

/* 主体内容区 */
.install-body { padding: 40px 60px; min-height: 380px; }
.step-title {
    font-size: 22px;
    color: #1e293b;
    margin-bottom: 8px;
    font-weight: 600;
}
.step-desc {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 14px;
}

/* 检测表 */
.check-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 28px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.check-table th, .check-table td {
    padding: 12px 18px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.check-table thead th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
}
.check-table tbody tr:hover { background: #f8fafc; }
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}
.badge-ok { background: #dcfce7; color: #16a34a; }
.badge-fail { background: #fee2e2; color: #dc2626; }

/* 表单 */
.form { max-width: 540px; }
.form-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.form-row label {
    width: 110px;
    font-size: 14px;
    color: #475569;
    flex-shrink: 0;
}
.form-row input,
.form-row select {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all .2s;
    background: #fff;
    color: #1e293b;
    font-family: inherit;
}
.form-row input:focus,
.form-row select:focus {
    outline: none;
    border-color: #5b8def;
    box-shadow: 0 0 0 3px rgba(91,141,239,.15);
}
.form-help {
    width: 100%;
    margin-left: 110px;
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
}

/* 按钮 */
.step-actions {
    margin-top: 32px;
    display: flex;
    gap: 12px;
    align-items: center;
}
.btn {
    display: inline-block;
    padding: 0 24px;
    height: 42px;
    line-height: 42px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: all .2s;
    text-align: center;
    font-family: inherit;
}
.btn-primary {
    background: linear-gradient(135deg, #5b8def 0%, #8b5cf6 100%);
    color: #fff;
    box-shadow: 0 6px 16px rgba(91,141,239,.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(91,141,239,.4); }
.btn-default {
    background: #f1f5f9;
    color: #475569;
}
.btn-default:hover { background: #e2e8f0; }
.btn-info {
    background: #fff;
    color: #5b8def;
    border: 1px solid #5b8def;
}
.btn-info:hover { background: #eef2ff; }
.btn-disabled {
    background: #e2e8f0; color: #94a3b8; cursor: not-allowed;
}
.btn-large {
    height: 50px; line-height: 50px; padding: 0 40px; font-size: 16px;
}

/* 结果提示 */
.test-result {
    margin: 16px 0;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
}
.test-result.ok {
    background: #f0fdf4; color: #16a34a;
    border: 1px solid #bbf7d0;
}
.test-result.fail {
    background: #fef2f2; color: #dc2626;
    border: 1px solid #fecaca;
}
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.alert-warn {
    background: #fffbeb; color: #d97706;
    border: 1px solid #fde68a;
}

/* 安装成功页 */
.install-success { text-align: center; padding: 20px 0; }
.success-icon { margin-bottom: 16px; }
.success-title { font-size: 26px; color: #1e293b; margin-bottom: 8px; }
.success-desc { color: #64748b; margin-bottom: 24px; }
.success-info {
    background: #f8fafc;
    border-radius: 10px;
    padding: 18px 24px;
    text-align: left;
    max-width: 460px;
    margin: 0 auto 20px;
    line-height: 2;
    color: #475569;
    font-size: 14px;
}
.success-tip {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    max-width: 540px;
    margin: 0 auto 24px;
    font-size: 13px;
}
.success-tip code { background: #fde68a; padding: 1px 6px; border-radius: 4px; }

/* 底部 */
.install-footer {
    text-align: center;
    padding: 18px 30px;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 12px;
    border-top: 1px solid #f1f5f9;
}

/* 响应式 */
@media (max-width: 768px) {
    .install-header { padding: 18px 20px; }
    .install-body { padding: 24px 20px; }
    .steps { padding: 20px 10px; }
    .form-row label { width: 100%; margin-bottom: 6px; }
    .form-help { margin-left: 0; }
    .step-actions { flex-direction: column; }
    .step-actions .btn { width: 100%; }
}
