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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.install-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    box-sizing: border-box;
}

.install-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.header-text {
    text-align: center !important;
    flex: 1;
}

.header-text h1,
.header-text .subtitle {
    text-align: center !important;
}

.install-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
    color: white;
}

.subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.install-progress {
    background: #f8f9fa;
    padding: 30px;
    border-bottom: 1px solid #e9ecef;
}

.steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #6c757d;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.step.completed .step-label {
    color: #28a745;
}

.install-content {
    padding: 40px 30px;
    min-height: 500px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.step-content {
    animation: fadeIn 0.5s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section {
    text-align: center;
}

.welcome-icon {
    color: #667eea;
    margin-bottom: 30px;
}

.installed-notice h2,
.new-install-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.installed-notice p,
.new-install-section p {
    color: #666;
    margin-bottom: 30px;
}

.install-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.install-info h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.install-info ul {
    list-style: none;
}

.install-info li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.install-info li:last-child {
    border-bottom: none;
}

.install-info strong {
    display: inline-block;
    width: 100px;
    color: #667eea;
}

.reinstall-section {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.reinstall-section h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #856404;
}

.password-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    width: 100%;
    text-align: left;
}

.form-group .required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    text-align: left;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline;
}

.password-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 12px;
    margin-top: 15px;
    color: #721c24;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.feature-icon {
    color: #667eea;
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

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

.requirements {
    background: #e7f3ff;
    border: 1px solid #b8daff;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
}

.requirements h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #004085;
}

.requirements ul {
    list-style: none;
}

.requirements li {
    padding: 8px 0;
    color: #004085;
}

.requirements li:before {
    content: "✓";
    color: #28a745;
    margin-right: 10px;
    font-weight: bold;
}

.links {
    margin-top: 30px;
}

/* 环境检测部分样式 */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 16px;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.check-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

/* 进度条容器 */
.progress-container {
    margin: 30px 0;
    animation: fadeIn 0.5s ease;
}

.progress-bar {
    height: 10px;
    background: #f1f3f5;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 5px;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
}

/* 日志容器 */
.log-container {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 0;
    border-radius: 8px;
    margin: 30px 0;
    max-height: 400px;
    overflow-y: hidden;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.5s ease;
    display: flex;
    flex-direction: column;
}

.log-controls {
    background: #252526;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
    border-radius: 8px 8px 0 0;
}

.log-control-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.log-filter, .log-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.log-filter label, .log-search label {
    color: #868e96;
    font-size: 12px;
    font-weight: 500;
}

.log-filter select, .log-search input {
    background: #3c3c3c;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 6px 10px;
    color: #d4d4d4;
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.log-filter select:focus, .log-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.log-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.log-stats {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #333;
    font-size: 11px;
}

.log-stat {
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.info-count {
    color: #667eea;
}

.warning-count {
    color: #ffc107;
}

.error-count {
    color: #dc3545;
}

.total-count {
    color: #868e96;
}

.log-container .log-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    flex: 1;
}

.log-entry {
    padding: 12px 0;
    border-bottom: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.log-entry:hover {
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 15px;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-entry.log-info:hover {
    border-left: 3px solid #667eea;
}

.log-entry.log-success:hover {
    border-left: 3px solid #28a745;
}

.log-entry.log-warning:hover {
    border-left: 3px solid #ffc107;
}

.log-entry.log-error:hover {
    border-left: 3px solid #dc3545;
}

.log-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.log-entry:hover .log-icon {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.log-time {
    color: #868e96;
    font-size: 12px;
    flex-shrink: 0;
    min-width: 90px;
    font-family: 'Courier New', monospace;
}

.log-message {
    flex: 1;
    font-size: 13px;
    line-height: 1.5;
    padding-right: 10px;
}

.log-success {
    border-left: 3px solid transparent;
}

.log-success .log-icon {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

.log-success .log-message {
    color: #d4edda;
}

.log-error {
    border-left: 3px solid transparent;
}

.log-error .log-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.log-error .log-message {
    color: #f8d7da;
    font-weight: 500;
}

.log-warning {
    border-left: 3px solid transparent;
}

.log-warning .log-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #333;
}

.log-warning .log-message {
    color: #fff3cd;
}

.log-info {
    border-left: 3px solid transparent;
}

.log-info .log-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.log-info .log-message {
    color: #d4d4d4;
}

/* 结果容器 */
.results-container {
    animation: fadeInUp 0.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 系统信息卡片 */
.system-info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid #e9ecef;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.info-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.php-icon {
    background: linear-gradient(135deg, #777bb4 0%, #8892d6 100%);
    color: white;
}

.server-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.os-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.info-card-content {
    flex: 1;
}

.info-card-title {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 5px;
}

.info-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* 详情容器 */
.details-container {
    margin-bottom: 30px;
}

.details-container > section {
    background: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    overflow: hidden;
}

.details-container > section h3 {
    background: #f8f9fa;
    padding: 20px 25px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

/* 环境检测项 */
.env-check-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.2s ease;
}

.env-check-item:hover {
    background-color: #f8f9fa;
}

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

.env-check-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.env-check-icon.success {
    background: #d4edda;
    color: #28a745;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
}

.env-check-icon.warning {
    background: #fff3cd;
    color: #ffc107;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.env-check-icon.error {
    background: #f8d7da;
    color: #dc3545;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2);
}

.env-check-content {
    flex: 1;
}

.env-check-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
    margin-bottom: 5px;
}

.env-check-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.env-check-details {
    font-size: 13px;
    color: #868e96;
    margin-bottom: 5px;
}

.env-check-solution {
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

/* 消息容器 */
.message-container {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: fadeIn 0.5s ease;
}

.error-container {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    color: #b91c1c;
}

.warning-container {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
}

.message-container h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-container h4 {
    color: #b91c1c;
}

.warning-container h4 {
    color: #92400e;
}

.message-container ul {
    margin: 0;
    padding-left: 20px;
}

.message-container li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 环境检测操作按钮 */
.env-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ecef;
}

/* 帮助部分 */
.help-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.help-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    text-align: center;
}

.help-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.help-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e9ecef;
}

.help-question {
    cursor: pointer;
    font-weight: 600;
    color: #333;
    padding: 20px 25px;
    background: #f8f9fa;
    border: none;
    outline: none;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.help-question:hover {
    background: #f1f3f5;
}

.help-question::after {
    content: '▼';
    font-size: 12px;
    color: #667eea;
    transition: transform 0.3s ease;
}

.help-item[open] .help-question::after {
    transform: rotate(180deg);
}

.help-answer {
    padding: 20px 25px;
    background: white;
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 加载动画 */
.spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 按钮加载状态 */
.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline-flex;
    align-items: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section-title {
        font-size: 24px;
    }
    
    .system-info-cards {
        grid-template-columns: 1fr;
    }
    
    .info-card {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .info-card-icon {
        margin-bottom: 15px;
    }
    
    .env-check-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    
    .env-check-icon {
        margin-bottom: 15px;
    }
    
    .env-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .env-actions .btn {
        width: 100%;
    }
    
    .help-question {
        padding: 15px 20px;
    }
    
    .help-answer {
        padding: 15px 20px;
    }
    
    /* 环境检测页面特定响应式调整 */
    .section-description {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .check-actions {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .log-container {
        font-size: 12px;
        padding: 15px;
    }
    
    .progress-text {
        font-size: 12px;
    }
    
    .details-container > section h3 {
        font-size: 14px;
        padding: 15px 20px;
    }
    
    .env-check-name {
        font-size: 14px;
    }
    
    .env-check-message {
        font-size: 13px;
    }
    
    .env-check-details {
        font-size: 12px;
    }
    
    .env-check-solution {
        font-size: 12px;
    }
    
    .message-container {
        padding: 15px;
    }
    
    .message-container h4 {
        font-size: 14px;
    }
}

.db-test-result {
    padding: 24px 32px !important;
    border-radius: 8px !important;
    margin: 24px auto !important;
    max-width: 704px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    text-align: center !important;
}

.db-test-result::before {
    content: '' !important;
    display: inline-block !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    flex-shrink: 0 !important;
    margin-right: 0 !important;
}

.db-test-result.success::before {
    background: #10b981;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'%3E%3C/path%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.db-test-result.error::before {
    background: #ef4444;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M18 6L6 18M6 6l12 12'%3E%3C/path%3E%3C/svg%3E");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
}

.db-test-result.success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.db-test-result.error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    font-size: 16px;
    color: #667eea;
    z-index: 1;
}

.input-group input {
    padding-left: 45px !important;
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #6c757d;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background: #f8f9fa;
    color: #667eea;
}

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 8px;
    background: #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.strength-fill.weak {
    width: 33%;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.strength-fill.medium {
    width: 66%;
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.strength-fill.strong {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
}

.strength-text {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.admin-form-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    animation: fadeIn 0.5s ease;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
    width: 100%;
    text-align: left;
}

.label-text {
    flex: 1;
}

.btn-icon {
    margin: 0 5px;
    font-size: 14px;
}

.security-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tip-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.tip-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
    transform: translateY(-2px);
}

.tip-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #667eea;
}

.tip-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.error-messages {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: #b91c1c;
    box-shadow: 0 2px 8px rgba(220, 37, 55, 0.1);
    animation: fadeIn 0.3s ease;
}

.error-messages .error-item {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.error-messages .error-item::before {
    content: "⚠️";
    position: absolute;
    left: 0;
    top: 0;
}

.install-progress-container {
    margin: 30px 0;
}

.progress-bar {
    height: 30px;
    background: #dee2e6;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
}

.install-log {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    max-height: 300px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid #333;
}

.log-entry:last-child {
    border-bottom: none;
}

.install-options {
    margin: 30px 0;
}

.reinstall-options {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.reinstall-options h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #856404;
}

.option-group {
    margin-top: 15px;
}

.radio-label {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #667eea;
}

.radio-label input[type="radio"] {
    margin-right: 15px;
    margin-top: 3px;
}

.radio-content strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.radio-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.install-actions {
    text-align: center;
    margin-top: 20px;
}

.install-result {
    text-align: center;
    padding: 40px 20px;
}

.result-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.result-icon.success {
    color: #28a745;
}

.result-icon.error {
    color: #dc3545;
}

.result-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.install-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
}

.system-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6c757d;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #adb5bd;
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .theme-switch-wrapper {
        justify-content: center;
    }
    
    .install-header h1 {
        font-size: 24px;
    }
    
    .steps {
        flex-wrap: wrap;
    }
    
    .step {
        flex: 0 0 20%;
        margin-bottom: 10px;
    }
    
    .step-label {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .env-summary {
        grid-template-columns: 1fr;
    }
    
    .install-content {
        padding: 20px 15px;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .result-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .install-content {
        padding: 12px 8px;
    }

    .install-footer {
        padding: 14px 10px;
    }
}

/* 许可协议页面样式 */
.license-section {
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.license-header {
    background: #e9ecef;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.license-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.license-content {
    padding: 25px;
    max-height: min(500px, 55vh);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    overscroll-behavior: contain;
    touch-action: pan-y;
    border-radius: 0 0 22px 22px;
    text-align: left;
    line-height: 1.8;
    scrollbar-width: thin;
    scrollbar-color: #6c757d #e9ecef;
}

.license-content h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
}

.license-content h3 {
    font-size: 18px;
    color: #333;
    margin: 25px 0 15px 0;
    font-weight: 600;
}

.license-content p {
    margin-bottom: 15px;
    color: #333;
}

.license-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.license-content li {
    margin-bottom: 15px;
    color: #333;
}

.license-actions {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #dee2e6;
}

.license-actions .btn {
    padding: 12px 40px;
    font-size: 16px;
    background: #007bff;
}

.license-actions .btn:hover {
    background: #0056b3;
}

.copyright {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #666;
}