/* 零辞OS V2.0 一键安装程序样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}
.install-container {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
}
.install-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 30px 40px;
    text-align: center;
}
.install-header h1 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}
.install-header p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.install-body {
    padding: 30px 40px 40px;
}
.steps-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}
.steps-bar::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}
.step-num {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    transition: all 0.3s;
}
.step-item.active .step-num { background: #667eea; color: #fff; }
.step-item.done .step-num { background: #52c41a; color: #fff; }
.step-label {
    font-size: 12px;
    color: #999;
}
.step-item.active .step-label { color: #667eea; font-weight: 600; }
.step-item.done .step-label { color: #52c41a; }

h2 { font-size: 20px; color: #333; margin-bottom: 20px; }
h3 { font-size: 16px; color: #555; margin-bottom: 12px; margin-top: 20px; }

.check-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}
.check-table th, .check-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}
.check-table th {
    background: #fafafa;
    color: #666;
    font-weight: 600;
}
.check-table td:last-child { text-align: center; width: 80px; }
.pass { color: #52c41a; font-weight: 700; }
.fail { color: #ff4d4f; font-weight: 700; }
.warn { color: #faad14; font-weight: 700; }

.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    font-size: 14px;
    color: #555;
    font-weight: 600;
    margin-bottom: 6px;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
    outline: none;
}
.form-group input:focus, .form-group select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102,126,234,0.2);
}
.form-row {
    display: flex;
    gap: 12px;
}
.form-row .form-group { flex: 1; }

.btn-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 24px;
}
.btn {
    padding: 10px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}
.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(102,126,234,0.4); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary {
    background: #f0f0f0;
    color: #555;
}
.btn-secondary:hover { background: #e0e0e0; }
.btn-success {
    background: linear-gradient(135deg, #52c41a, #389e0d);
    color: #fff;
}
.btn-success:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(82,196,26,0.4); }

.msg-box {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}
.msg-box.error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.msg-box.success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.msg-box.info { background: #e6f7ff; border: 1px solid #91d5ff; color: #096dd9; }

.progress-list {
    list-style: none;
    padding: 0;
}
.progress-list li {
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 14px;
    background: #fafafa;
    border-left: 3px solid #d9d9d9;
}
.progress-list li.done { border-left-color: #52c41a; background: #f6ffed; }
.progress-list li.fail { border-left-color: #ff4d4f; background: #fff2f0; }
.progress-list li .status-icon { margin-right: 8px; }

.finish-icon {
    text-align: center;
    font-size: 64px;
    margin-bottom: 16px;
}
.finish-info {
    text-align: center;
    margin-bottom: 20px;
}
.finish-info p { color: #666; font-size: 14px; line-height: 1.8; }
.finish-info strong { color: #333; }

@media (max-width: 600px) {
    .install-body { padding: 20px; }
    .install-header { padding: 20px; }
    .form-row { flex-direction: column; gap: 0; }
    .step-label { font-size: 10px; }
}