* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #3498db;
}

/* Main content */
main {
    margin-top: 80px;
}

.section {
    padding: 4rem 0;
}

.bg-light {
    background: #f8f9fa;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Requirements section */
.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.requirement-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.requirement-card:hover {
    transform: translateY(-5px);
}

.requirement-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.requirement-card ul {
    list-style-position: inside;
}

.requirement-card li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* Diagrams section */
.diagrams-container {
    margin-top: 2rem;
}

.diagram-item {
    margin-bottom: 3rem;
}

.diagram-item h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.diagram-wrapper {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

/* Features section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .requirements-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* 在现有CSS文件末尾添加以下样式 */

/* 图片样式 */
.diagram-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.diagram-image:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* 图片点击放大效果 */
.diagram-image:active {
    transform: scale(0.98);
}

/* 响应式图片 */
@media (max-width: 768px) {
    .diagram-image {
        border-radius: 4px;
    }
}

/* 图片加载动画 */
.diagram-image {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 部署说明部分样式 */
.deployment-content {
    max-width: 1000px;
    margin: 0 auto;
}

.deployment-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.deployment-methods {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.method-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.method-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.method-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.3rem;
}

.difficulty {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.difficulty.easy {
    background: #d4edda;
    color: #155724;
}

.difficulty.medium {
    background: #fff3cd;
    color: #856404;
}

.difficulty.hard {
    background: #f8d7da;
    color: #721c24;
}

.method-content h4 {
    color: #34495e;
    margin: 1.5rem 0 0.8rem 0;
    font-size: 1.1rem;
}

.method-content ol,
.method-content ul {
    margin-left: 1.2rem;
}

.method-content li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.platform-list {
    display: grid;
    gap: 1rem;
    margin: 1rem 0;
}

.platform-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.platform-item strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 0.5rem;
}

.platform-item p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.platform-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.platform-link:hover {
    color: #2980b9;
}

.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
}

.code-block code {
    background: none;
    color: #e74c3c;
    font-weight: bold;
}

.code-desc {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.deployment-tips {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.deployment-tips h3 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.tip-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tip-item h4 {
    color: #34495e;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.tip-item ul {
    margin: 0;
    padding-left: 1.2rem;
}

.tip-item li {
    margin-bottom: 0.5rem;
    color: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .method-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .deployment-content {
        padding: 0 1rem;
    }
}