/* 安装界面样式 - 简洁实用版 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    font-family: "Microsoft YaHei", Arial, sans-serif; 
    background: #f8f9fa; 
    color: #333; 
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 20px;
}

.install-container { 
    width: 100%;
    max-width: 800px; 
    margin: 0 auto; 
    background: white; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.install-header { 
    background: #3498db; 
    color: white; 
    padding: 25px; 
    text-align: center; 
}

.install-header h1 { 
    font-size: 24px; 
    margin-bottom: 5px; 
}

.install-header .version { 
    opacity: 0.9; 
    font-size: 13px;
}

.step-content { 
    padding: 30px; 
}

.step-content h2 { 
    margin-bottom: 20px; 
    color: #2c3e50; 
    font-size: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.btn { 
    display: inline-block; 
    padding: 10px 20px; 
    margin: 5px; 
    border: none; 
    border-radius: 4px; 
    text-decoration: none; 
    cursor: pointer; 
    font-size: 14px;
    transition: background 0.2s;
}

.btn-primary { 
    background: #3498db; 
    color: white; 
}

.btn-primary:hover { 
    background: #2980b9; 
}

.btn-secondary { 
    background: #95a5a6; 
    color: white; 
}

.btn-secondary:hover { 
    background: #7f8c8d; 
}

.btn-link { 
    background: none; 
    color: #3498db; 
    text-decoration: underline;
}

.btn-link:hover {
    color: #2980b9;
}

/* 环境检测样式 */
.check-list { 
    margin: 20px 0; 
}

.check-item { 
    display: flex; 
    align-items: center; 
    padding: 12px; 
    margin: 8px 0; 
    border-radius: 4px; 
    background: #f8f9fa;
    border-left: 4px solid #ccc;
}

.check-item.success { 
    background: #e8f5e8; 
    border-left-color: #27ae60;
}

.check-item.error { 
    background: #fdeaea; 
    border-left-color: #e74c3c;
}

.check-icon { 
    margin-right: 10px; 
    font-weight: bold; 
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.check-name { 
    flex: 1; 
    font-weight: 500; 
}

.check-required { 
    color: #666; 
    font-size: 12px;
    margin-right: 10px;
}

.check-current { 
    color: #666; 
    font-size: 12px;
}

.error-message { 
    background: #fdeaea; 
    color: #721c24; 
    padding: 15px; 
    border-radius: 4px; 
    margin: 15px 0; 
    border-left: 4px solid #e74c3c;
}

.success-message { 
    background: #e8f5e8; 
    color: #155724; 
    padding: 15px; 
    border-radius: 4px; 
    margin: 15px 0; 
    border-left: 4px solid #27ae60;
}

/* 安装进度样式 */
.install-progress { 
    margin: 20px 0; 
}

.progress-bar { 
    background: #eee; 
    height: 8px; 
    border-radius: 4px; 
    overflow: hidden; 
    margin-bottom: 10px;
}

.progress { 
    background: #27ae60; 
    height: 100%; 
    transition: width 0.3s; 
    width: 0%;
}

.progress-text { 
    margin: 10px 0; 
    text-align: center; 
    color: #555;
}

.install-steps { 
    list-style: none; 
    margin: 20px 0; 
}

.install-steps li { 
    padding: 10px; 
    margin: 5px 0; 
    background: #f8f9fa; 
    border-left: 3px solid #ccc; 
}

.install-steps li.completed { 
    border-left-color: #27ae60; 
    background: #e8f5e8; 
}

.install-steps li.active { 
    border-left-color: #3498db; 
    background: #e3f2fd;
}

.install-log { 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    margin-top: 20px; 
}

.log-header { 
    background: #f5f5f5; 
    padding: 10px 15px; 
    font-weight: 500;
    border-bottom: 1px solid #ddd;
}

.log-content { 
    height: 150px; 
    overflow-y: auto; 
    padding: 10px; 
    background: #fafafa;
    font-family: monospace;
    font-size: 12px;
}

.log-entry { 
    margin-bottom: 5px; 
    padding: 2px 0;
}

/* 完成页面样式 */
.complete-panel { 
    text-align: center; 
}

.success-icon { 
    font-size: 50px; 
    color: #27ae60; 
    margin: 15px 0; 
}

.install-summary { 
    background: #f8f9fa; 
    padding: 20px; 
    border-radius: 4px; 
    margin: 20px 0; 
}

.summary-grid { 
    margin-top: 15px; 
}

.summary-item { 
    display: flex; 
    justify-content: space-between; 
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.summary-item:last-child { 
    border-bottom: none; 
}

.summary-label { 
    font-weight: 500; 
    color: #555;
}

.summary-value { 
    color: #333; 
}

.account-display { 
    background: #e8f5e8; 
    padding: 20px; 
    border-radius: 4px; 
    margin: 20px 0; 
}

.account-info { 
    margin: 8px 0; 
}

.important-notice { 
    background: #fff3cd; 
    padding: 15px; 
    border-radius: 4px; 
    margin: 20px 0; 
    border-left: 4px solid #ffc107;
}

.steps-grid { 
    margin-top: 15px; 
}

.step-card { 
    background: white; 
    border: 1px solid #eee; 
    border-radius: 4px; 
    padding: 15px; 
    margin: 10px 0;
    text-align: center;
}

.step-icon { 
    font-size: 24px; 
    margin-bottom: 10px; 
}

.step-card h4 { 
    margin-bottom: 8px; 
    color: #2c3e50;
}

.step-card p { 
    color: #666; 
    font-size: 13px;
}

.support-info { 
    background: #e3f2fd; 
    padding: 15px; 
    border-radius: 4px; 
    margin-top: 20px;
    border-left: 4px solid #2196f3;
}

.step-actions { 
    text-align: center; 
    margin-top: 30px; 
    padding-top: 20px; 
    border-top: 1px solid #eee;
}

/* 错误页面样式 */
.error-panel { 
    text-align: center; 
}

.error-icon { 
    font-size: 50px; 
    color: #e74c3c; 
    margin: 15px 0; 
}

.suggestions ul { 
    list-style: disc; 
    margin-left: 20px; 
    margin-top: 10px;
    text-align: left;
}

.suggestions li { 
    margin: 5px 0; 
}

/* 欢迎页面样式 */
.welcome-info p { 
    margin-bottom: 10px; 
}

.features ul { 
    list-style: none; 
    margin: 15px 0;
}

.features li { 
    padding: 5px 0; 
    color: #27ae60;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .install-container {
        border-radius: 4px;
    }
    
    .install-header {
        padding: 20px;
    }
    
    .install-header h1 {
        font-size: 20px;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-content h2 {
        font-size: 18px;
    }
    
    .check-item {
        flex-wrap: wrap;
    }
    
    .check-required,
    .check-current {
        width: 100%;
        margin-top: 5px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 8px 0;
    }
    
    .log-content {
        height: 120px;
    }
}

/* 简单的动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.install-container {
    animation: fadeIn 0.3s ease;
}

/* 进度条动画 */
@keyframes progressPulse {
    0% { background-position: 0% 0; }
    100% { background-position: 200% 0; }
}

.progress {
    background: linear-gradient(90deg, #27ae60, #2ecc71, #27ae60);
    background-size: 200% 100%;
    animation: progressPulse 2s linear infinite;
}

/* 简单的悬停效果 */
.check-item:hover {
    transform: translateX(2px);
    transition: transform 0.2s;
}

.step-card:hover {
    border-color: #3498db;
    transition: border-color 0.2s;
}

/* 打印优化 */
@media print {
    .install-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid #333;
    }
    
    .btn {
        display: none;
    }
}

/* 辅助类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }

.hidden { display: none; }
.visible { display: block; }