/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.header-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* 导航样式 */
.nav {
    background: rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* 主要内容 */
.main-content {
    padding: 2rem;
}

.section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* 概述卡片网格 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.overview-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.overview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3498db;
}

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.overview-card p {
    color: #666;
    margin-bottom: 1rem;
}

.version-info {
    background: #e8f4fd;
    color: #2980b9;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* 前提条件 */
.prerequisites {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
}

.prerequisites h3 {
    color: #856404;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prerequisites ul {
    list-style: none;
    padding-left: 0;
}

.prerequisites li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.prerequisites li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* 步骤容器 */
.step-container {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    margin-bottom: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    padding: 2rem;
    flex: 1;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.step-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

/* 下载信息 */
.download-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.download-link, .file-info, .version-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.download-link i {
    color: #28a745;
}

.file-info i {
    color: #6c757d;
}

.version-note i {
    color: #17a2b8;
}

.download-link a {
    color: #007bff;
    text-decoration: none;
}

.download-link a:hover {
    text-decoration: underline;
}

/* 安装步骤 */
.install-steps ol {
    padding-left: 1.5rem;
}

.install-steps li {
    margin-bottom: 0.5rem;
    color: #555;
}

.install-steps ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

/* 环境配置 */
.env-config {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.env-step {
    margin-bottom: 1.5rem;
}

.env-step:last-child {
    margin-bottom: 0;
}

.env-step h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
}

/* 命令行样式 */
.cmd-block {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cmd-header {
    background: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.cmd-content {
    padding: 1rem;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.9rem;
}

.cmd-line {
    margin-bottom: 0.5rem;
}

.prompt {
    color: #4CAF50;
}

.command {
    color: #2196F3;
    margin-left: 0.5rem;
}

.cmd-output {
    color: #FFF;
    margin-left: 1rem;
    opacity: 0.8;
}

/* 配置文件 */
.config-file {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.file-path {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #6c757d;
    font-weight: 500;
}

/* 配置步骤 */
.config-steps {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.config-item {
    margin-bottom: 1.5rem;
}

.config-item:last-child {
    margin-bottom: 0;
}

.config-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.config-item ul {
    padding-left: 1.5rem;
}

.config-item li {
    margin-bottom: 0.3rem;
}

/* 密码提示 */
.password-tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #856404;
    margin-top: 0.5rem;
}

/* 服务配置 */
.service-config {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

/* 验证网格 */
.verification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.verify-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.verify-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.verify-header i {
    font-size: 1.5rem;
    color: #3498db;
}

.verify-content .cmd-block {
    margin-top: 0;
}

.verify-content ol {
    padding-left: 1.5rem;
}

.verify-content li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* 最终测试 */
.final-test {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 15px;
    padding: 2rem;
    margin-top: 3rem;
}

.final-test h3 {
    color: #155724;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.test-steps ol {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.test-steps li {
    margin-bottom: 0.5rem;
    color: #155724;
}

/* 底部 */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-content p {
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #5dade2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 0;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .header-content h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav {
        gap: 1rem;
        padding: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        width: 100%;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .verification-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 滚动行为 */
html {
    scroll-behavior: smooth;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step, .overview-card, .verify-card {
    animation: fadeInUp 0.6s ease-out;
}

/* 代码高亮 */
.code-block code {
    color: #e2e8f0;
}

.code-block .keyword {
    color: #f7fafc;
    font-weight: bold;
}

.code-block .string {
    color: #68d391;
}

.code-block .comment {
    color: #a0aec0;
    font-style: italic;
}