/* HiMVC 安装界面自定义样式 - 基于 Bootstrap 5 */

:root {
    --himvc-primary: #00A7BA;
    --himvc-primary-dark: #008A9C;
    --himvc-primary-light: #E6F7F9;
    --himvc-primary-rgb: 0, 167, 186;
    --bs-primary: #00A7BA;
    --bs-primary-rgb: 0, 167, 186;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.install-wrap {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
}

.install-card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ===== 头部 ===== */
.install-header {
    background: var(--himvc-primary);
    color: #fff;
    padding: 1.75rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.install-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0.08));
}

.install-header .logo {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.install-header .logo i {
    opacity: 0.85;
    margin-right: 0.25rem;
}

.install-header .version {
    font-size: 0.8rem;
    opacity: 0.7;
    background: rgba(255,255,255,0.15);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
}

/* ===== 步骤条 ===== */
.install-step {
    background: #fff;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.install-step .step-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: center;
    gap: 2.5rem;
}

.install-step .step-item {
    display: flex;
    align-items: center;
    color: #bbb;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.install-step .step-num {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    background: #eee;
    color: #bbb;
    margin-right: 0.5rem;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.install-step .step-item.active .step-num {
    background: var(--himvc-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 167, 186, 0.35);
}

.install-step .step-item.active {
    color: var(--himvc-primary-dark);
    font-weight: 600;
}

.install-step .step-item.done .step-num {
    background: var(--himvc-primary);
    color: #fff;
}

.install-step .step-item.done {
    color: var(--himvc-primary);
}

/* ===== 主体 ===== */
.install-body {
    padding: 2rem 2.5rem;
}

/* ===== 页脚 ===== */
.install-footer {
    text-align: center;
    padding: 1rem 2.5rem 1.5rem;
    color: #bbb;
    font-size: 0.8rem;
    border-top: 1px solid #f5f5f5;
    background: #fafafa;
}

.install-footer a {
    color: var(--himvc-primary);
    text-decoration: none;
}

.install-footer a:hover {
    color: var(--himvc-primary-dark);
    text-decoration: underline;
}

/* ===== 表单分区标题 ===== */
.form-section-title {
    color: var(--himvc-primary-dark);
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--himvc-primary);
    position: relative;
}

.form-section-title i {
    color: var(--himvc-primary);
    margin-right: 0.25rem;
}

.tips-error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.tips-success {
    color: var(--himvc-primary);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ===== 安装日志 ===== */
.install-log {
    height: 320px;
    overflow-y: auto;
    background: #fafbfc;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.8125rem;
    font-family: 'Consolas', 'Monaco', monospace;
}

.install-log ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.install-log li {
    padding: 0.2rem 0;
    line-height: 1.6;
}

/* ===== 协议文本 ===== */
.agreement-box {
    height: 320px;
    overflow-y: auto;
    background: #fafbfc;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ===== Bootstrap 5 主题色覆盖 ===== */
.btn-primary {
    --bs-btn-bg: #00A7BA;
    --bs-btn-border-color: #00A7BA;
    --bs-btn-hover-bg: #008A9C;
    --bs-btn-hover-border-color: #008A9C;
    --bs-btn-active-bg: #007A8A;
    --bs-btn-active-border-color: #007A8A;
    --bs-btn-disabled-bg: #00A7BA;
    --bs-btn-disabled-border-color: #00A7BA;
    --bs-btn-focus-shadow-rgb: 0, 167, 186;
}

.btn-outline-primary {
    --bs-btn-color: #00A7BA;
    --bs-btn-border-color: #00A7BA;
    --bs-btn-hover-bg: #00A7BA;
    --bs-btn-hover-border-color: #00A7BA;
    --bs-btn-active-bg: #00A7BA;
    --bs-btn-active-border-color: #00A7BA;
    --bs-btn-focus-shadow-rgb: 0, 167, 186;
}

.text-primary {
    color: #00A7BA !important;
}

.bg-primary {
    background-color: #00A7BA !important;
}

.border-primary {
    border-color: #00A7BA !important;
}

a {
    color: #00A7BA;
}

a:hover {
    color: #008A9C;
}

.form-control:focus,
.form-select:focus {
    border-color: #00A7BA;
    box-shadow: 0 0 0 0.2rem rgba(0, 167, 186, 0.2);
}

.form-check-input:checked {
    background-color: #00A7BA;
    border-color: #00A7BA;
}

.progress-bar {
    background-color: #00A7BA;
}

.spinner-border.text-primary {
    color: #00A7BA !important;
}

/* ===== 表格主题 ===== */
.table thead.table-light th {
    background: var(--himvc-primary-light);
    border-color: #d0eff3;
    color: var(--himvc-primary-dark);
    font-weight: 600;
}

.table-bordered > :not(caption) > * > * {
    border-color: #eef0f2;
}

/* ===== 成功页大图标 ===== */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--himvc-primary-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.success-icon i {
    font-size: 2.5rem;
    color: var(--himvc-primary);
}

/* ===== 响应式 ===== */
@media (max-width: 576px) {
    .install-wrap {
        max-width: 100%;
    }

    .install-header,
    .install-body,
    .install-step {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .install-step .step-list {
        gap: 1rem;
    }

    .install-step .step-item {
        font-size: 0.8rem;
    }
}
