/* =============================================================================
   安装向导样式 v3 —— 左右分栏 · 高端医美风
   - 左侧：深色玫瑰金品牌叙事面板（动态光晕）
   - 右侧：纯净白色表单面板（顶部步骤条）
   ============================================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body.install-body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, sans-serif;
    color: #2a1f2d;
    background: #1a0d22;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ===========================================================================
   Shell —— 整体左右分栏
   =========================================================================== */
.iv-shell {
    display: grid;
    grid-template-columns: 460px 1fr;
    min-height: 100vh;
    background: #fff;
}

/* ===========================================================================
   左侧 Hero 品牌面板
   =========================================================================== */
.iv-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background:
        linear-gradient(160deg, #3e1445 0%, #2a1038 45%, #1d0a2e 100%);
}
/* 背景：用多层径向渐变代替大 blur + 动画，避免部分显卡触发 Chrome renderer STATUS_BREAKPOINT */
.iv-hero-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(320px 280px at 8% 12%, rgba(255,144,184,.55) 0%, transparent 65%),
        radial-gradient(380px 320px at 92% 90%, rgba(163,131,255,.45) 0%, transparent 65%),
        radial-gradient(300px 260px at 50% 50%, rgba(255,214,165,.12) 0%, transparent 70%);
}
/* 这些节点不再需要渲染光晕，保留 DOM 不影响结构 */
.iv-orb, .iv-noise { display: none; }

/* 顶部品牌 */
.iv-hero-top { position: relative; z-index: 1; }
.iv-brand { display: flex; align-items: center; gap: 14px; }
.iv-logo {
    width: 44px; height: 44px; border-radius: 12px;
    background: linear-gradient(135deg, #ffd1c1, #f7a5c0 50%, #c25a94);
    color: #5a1f46; font-weight: 700; font-size: 20px;
    display: grid; place-items: center;
    box-shadow: 0 12px 28px -8px rgba(247,165,192,.5), inset 0 1px 0 rgba(255,255,255,.7);
}
.iv-brand-name { font-size: 15px; font-weight: 600; letter-spacing: .5px; color: #fff; }
.iv-brand-sub { font-size: 11px; color: rgba(255,255,255,.5); letter-spacing: 2.5px; margin-top: 3px; }

/* 中部叙事 */
.iv-hero-center { position: relative; z-index: 1; margin: 48px 0; }
.iv-tag {
    display: inline-block;
    font-size: 10.5px; letter-spacing: 4px;
    color: rgba(255,255,255,.7);
    padding: 6px 14px; border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    margin-bottom: 22px;
}
.iv-headline {
    font-size: 30px; line-height: 1.45; font-weight: 500;
    margin: 0 0 18px; letter-spacing: .5px; color: #fff;
}
.iv-headline em {
    font-style: normal; font-weight: 600;
    background: linear-gradient(90deg, #ffd1c1 0%, #f7a5c0 50%, #c8a1ff 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.iv-subline {
    font-size: 13.5px; line-height: 1.85;
    color: rgba(255,255,255,.65);
    margin: 0 0 28px;
    max-width: 380px;
}

.iv-features { list-style: none; padding: 0; margin: 0; }
.iv-features li {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 0;
    font-size: 13px;
    color: rgba(255,255,255,.82);
    letter-spacing: .3px;
}
.iv-features li i {
    width: 18px; height: 18px; flex-shrink: 0;
    border-radius: 6px;
    background: linear-gradient(135deg, #ffd1c1, #c25a94);
    display: grid; place-items: center;
    position: relative;
}
.iv-features li i::after {
    content: ""; width: 8px; height: 5px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translate(1px, -1px);
}

/* 底部进度 */
.iv-hero-bottom { position: relative; z-index: 1; }
.iv-progress-meta {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 10px;
}
.iv-progress-label { font-size: 11px; letter-spacing: 3px; color: rgba(255,255,255,.45); }
.iv-progress-num   { font-size: 22px; font-weight: 600; color: #fff; }
.iv-progress-num em { font-style: normal; font-size: 13px; color: rgba(255,255,255,.45); font-weight: 400; margin-left: 4px; }
.iv-progress-bar {
    height: 4px; border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.iv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffd1c1, #f7a5c0 40%, #c8a1ff);
    border-radius: 999px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 10px rgba(247,165,192,.5);
}
.iv-progress-now { margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.55); letter-spacing: .3px; }

/* ===========================================================================
   右侧主面板
   =========================================================================== */
.iv-main {
    display: flex; flex-direction: column;
    min-height: 100vh;
    background: #fff;
}

/* 顶部横向步骤条 */
.iv-main-top {
    padding: 36px 60px 0;
    border-bottom: 1px solid rgba(42, 31, 45, .06);
    padding-bottom: 28px;
}
.iv-stepper { display: flex; align-items: center; position: relative; }
.iv-step {
    flex: 1;
    display: flex; align-items: center; gap: 10px;
    position: relative;
    color: #b5a6b0;
    transition: color .2s;
}
.iv-step-dot {
    width: 26px; height: 26px; flex-shrink: 0;
    border-radius: 50%;
    display: grid; place-items: center;
    background: #fff;
    border: 1.5px solid #e6dbe4;
    color: #b5a6b0;
    font-size: 12px; font-weight: 600;
    transition: all .25s;
    position: relative; z-index: 1;
}
.iv-step-text { font-size: 13px; font-weight: 500; white-space: nowrap; color: inherit; }
.iv-step-line {
    flex: 1;
    height: 1.5px;
    background: #eee3eb;
    margin: 0 14px;
    position: relative; top: 0;
}
.iv-step.active { color: #2a1f2d; }
.iv-step.active .iv-step-dot {
    background: linear-gradient(135deg, #f7a5c0, #9a58a0);
    border-color: transparent; color: #fff;
    box-shadow: 0 0 0 4px rgba(247,165,192,.18), 0 8px 20px -6px rgba(154,88,160,.4);
}
.iv-step.done { color: #2a1f2d; }
.iv-step.done .iv-step-dot {
    background: linear-gradient(135deg, #f7a5c0, #9a58a0);
    border-color: transparent; color: #fff;
}
.iv-step.done + .iv-step .iv-step-line,
.iv-step.done .iv-step-line { background: linear-gradient(90deg, #f7a5c0, #eee3eb 80%); }

/* 中部内容 */
.iv-content {
    flex: 1;
    padding: 40px 60px;
    animation: iv-fade .4s ease both;
}
@keyframes iv-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 底部 */
.iv-foot {
    padding: 18px 60px;
    border-top: 1px solid rgba(42, 31, 45, .06);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
    color: #8a7a83;
    background: #faf6f9;
}
.iv-foot-tip { color: #b5a6b0; }

/* ===========================================================================
   表单 / 标题 / 信息通用样式（右侧内容区）
   =========================================================================== */

.step-title { margin-bottom: 28px; }
.step-title h2 {
    margin: 0 0 8px;
    font-size: 24px;
    color: #2a1f2d;
    font-weight: 600;
    letter-spacing: .5px;
}
.step-title p { margin: 0; font-size: 13.5px; color: #8a7a83; line-height: 1.7; }
.step-title.success h2 {
    background: linear-gradient(90deg, #c25a94 0%, #9a58a0 50%, #6a4fb4 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =============================================================================
   Step3 安装小节：系统名称卡片 + 管理员卡片（视觉分块）
   ============================================================================= */
.install-section {
    margin-bottom: 20px;
    padding: 22px 24px;
    border-radius: 14px;
    background: #faf6f9;
    border: 1px solid rgba(42, 31, 45, .06);
}
.install-section + .install-section { margin-top: 18px; }

.section-title {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(42, 31, 45, .07);
}
.section-badge {
    width: 26px; height: 26px; flex-shrink: 0;
    border-radius: 50%; display: grid; place-items: center;
    color: #fff; font-size: 13px; font-weight: 600;
    background: linear-gradient(135deg, #f7a5c0, #9a58a0);
    box-shadow: 0 6px 14px -4px rgba(154,88,160,.45);
}
.section-title-main { font-size: 15px; font-weight: 600; color: #2a1f2d; letter-spacing: .3px; }
.section-title-sub  { font-size: 12px; color: #8a7a83; margin-top: 3px; letter-spacing: .2px; }

/* 实时预览片 —— 视觉上模拟后台侧栏的品牌块 */
.name-preview {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2d1033 0%, #3a1742 50%, #2a1040 100%);
    color: #fff;
    position: relative; overflow: hidden;
}
.name-preview::after {
    content: ""; position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(247,165,192,.22), transparent 70%);
}
.name-preview-label {
    font-size: 11px; letter-spacing: 3px;
    color: rgba(255,255,255,.45);
    margin-bottom: 10px;
}
.name-preview-chip {
    display: flex; align-items: center; gap: 12px;
    position: relative; z-index: 1;
}
.name-preview-logo {
    width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
    background: linear-gradient(135deg, #ffd1c1, #f7a5c0);
    color: #7a2b5a; font-weight: 700; font-size: 18px;
    display: grid; place-items: center;
    box-shadow: 0 8px 18px -4px rgba(247,165,192,.4);
}
.name-preview-title {
    font-size: 14.5px; font-weight: 600; letter-spacing: .5px; color: #fff;
    min-height: 20px;
}
.name-preview-sub {
    font-size: 11px; color: rgba(255,255,255,.55); letter-spacing: 2.2px; margin-top: 4px;
}

/* 环境检测卡片 */
.check-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.check-grid .check-card:nth-child(3) { grid-column: span 2; }
.check-card {
    padding: 20px 22px;
    border-radius: 14px;
    background: #faf6f9;
    border: 1px solid rgba(42, 31, 45, .06);
}
.check-card-title {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 13.5px;
    color: #2a1f2d;
    margin-bottom: 12px;
    letter-spacing: .3px;
}
.check-card-title::before {
    content: ""; width: 3px; height: 14px; border-radius: 2px;
    background: linear-gradient(180deg, #f7a5c0, #9a58a0);
}
.check-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0;
    font-size: 13px;
    color: #5a4c55;
    border-bottom: 1px dashed rgba(42, 31, 45, .05);
}
.check-row:last-child { border-bottom: 0; }
.check-row b { color: #2a1f2d; font-weight: 500; }

.badge {
    padding: 3px 10px; border-radius: 999px;
    font-size: 11.5px; letter-spacing: .3px;
    flex-shrink: 0;
}
.badge.ok   { background: rgba(87, 184, 132, .12); color: #2b8a5f; border: 1px solid rgba(87, 184, 132, .25); }
.badge.fail { background: rgba(229, 92, 108, .10); color: #c43a4a; border: 1px solid rgba(229, 92, 108, .25); }

/* 表单 */
.form { max-width: 560px; }
.form-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.form-row label {
    font-size: 13px;
    color: #5a4c55;
    font-weight: 500;
}
.form-row input {
    height: 44px; padding: 0 16px;
    border-radius: 10px;
    border: 1.5px solid #eee3eb;
    background: #faf6f9;
    color: #2a1f2d;
    font-size: 13.5px;
    outline: none;
    transition: all .2s;
    width: 100%;
}
.form-row input::placeholder { color: #b5a6b0; }
.form-row input:focus {
    border-color: #c25a94;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(194, 90, 148, .12);
}

/* 动作按钮 */
.actions {
    margin-top: 32px;
    display: flex; align-items: center; gap: 12px;
    flex-wrap: wrap;
}
.actions.center { justify-content: center; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 42px; padding: 0 22px;
    border-radius: 10px;
    font-size: 13.5px; font-weight: 500; letter-spacing: .5px;
    cursor: pointer; user-select: none;
    border: 1.5px solid #eee3eb;
    background: #fff; color: #5a2a66;
    text-decoration: none;
    transition: all .2s;
}
.btn:hover { border-color: #c25a94; color: #c25a94; background: #fff8fc; }

.btn-primary {
    color: #fff; border-color: transparent;
    background: linear-gradient(135deg, #f7a5c0 0%, #c25a94 50%, #7a4ebd 100%);
    box-shadow: 0 14px 32px -10px rgba(194, 90, 148, .5), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #f7a5c0 0%, #c25a94 50%, #7a4ebd 100%);
}
.btn-primary:active { transform: translateY(0); }
.btn-lg { height: 50px; padding: 0 36px; font-size: 14.5px; letter-spacing: 1px; border-radius: 12px; }

/* 小提示 */
.hint     { font-size: 12px; color: #8a7a83; margin-left: 4px; }
.hint-ok  { color: #2b8a5f; }
.hint-err { color: #c43a4a; }

/* 错误条 */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
}
.alert-error {
    background: rgba(229, 92, 108, .08); color: #c43a4a;
    border: 1px solid rgba(229, 92, 108, .22);
}

/* ===========================================================================
   完成页 / 已安装页 专用
   =========================================================================== */
.iv-done-wrap { max-width: 620px; margin: 0 auto; text-align: center; }

.done-ico {
    margin: 0 auto 24px;
    width: 96px; height: 96px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(247, 165, 192, .15), rgba(154, 88, 160, .08));
    box-shadow: 0 0 0 10px rgba(247, 165, 192, .06);
}

.hero-title {
    margin: 0 0 14px;
    font-size: 32px; font-weight: 600; letter-spacing: 1.5px;
    background: linear-gradient(90deg, #c25a94 0%, #9a58a0 50%, #6a4fb4 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    font-size: 14px;
    color: #8a7a83;
    line-height: 1.85;
    margin: 0 auto 28px;
    max-width: 460px;
}
.hero-sub code {
    background: rgba(194, 90, 148, .08);
    padding: 2px 8px;
    border-radius: 6px;
    color: #c25a94;
    font-family: Consolas, monospace;
    font-size: 12.5px;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; }

.finish-card {
    margin: 28px auto 32px;
    padding: 4px 22px;
    border-radius: 14px;
    background: #faf6f9;
    border: 1px solid rgba(42, 31, 45, .06);
    text-align: left;
    max-width: 520px;
}
.finish-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(42, 31, 45, .06);
    font-size: 13px;
}
.finish-row:last-child { border-bottom: 0; }
.finish-row span { color: #8a7a83; }
.finish-row b {
    color: #2a1f2d;
    font-family: Consolas, monospace;
    font-weight: 500;
}

/* ===========================================================================
   响应式（<= 980px 转为单列，隐藏左侧 Hero 或上下布局）
   =========================================================================== */
@media (max-width: 980px) {
    .iv-shell { grid-template-columns: 1fr; }
    .iv-hero {
        padding: 32px 28px;
        min-height: auto;
    }
    .iv-hero-center { margin: 28px 0; }
    .iv-headline { font-size: 22px; }
    .iv-subline { max-width: none; }
    .iv-features li { font-size: 12.5px; padding: 6px 0; }
    .iv-main-top { padding: 24px 24px 20px; }
    .iv-content { padding: 28px 24px; }
    .iv-foot { padding: 14px 24px; flex-direction: column; gap: 4px; text-align: center; }

    .iv-stepper { overflow-x: auto; }
    .iv-step-text { display: none; }
    .iv-step-line { margin: 0 6px; }

    .check-grid { grid-template-columns: 1fr; }
    .check-grid .check-card:nth-child(3) { grid-column: span 1; }
    .form-row { grid-template-columns: 1fr; gap: 6px; }
    .form-row label { font-size: 12.5px; }
    .hero-title { font-size: 24px; }
}
