
/* CSS 样式部分 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #002b36, #1e482f);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #073642, #002b36);
    position: relative;
    z-index: 999;
}

.header h1 {
    font-family: 'Bodoni', serif;
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    color: #f5f5dc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(to right, #002b36, #1e482f);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px 20px;
}

.nav-item {
    display: inline-block;
    margin-right: 20px;
    color: #f5f5dc;
    font-weight: bold;
    cursor: pointer;
    position: relative;
}

.nav-item:hover .submenu {
    display: block;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #073642;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.card {
    flex: 1 1 calc(33.33% - 20px);
    margin: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

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

.card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.content {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.content h2 {
    font-family: 'Bodoni', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #f5f5dc;
}

.content p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.8;
}

.code-block {
    background: #002b36;
    color: #f5f5dc;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    margin: 10px 0;
}

.footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(to top, #002b36, #1e482f);
    margin-top: 40px;
    font-size: 0.9rem;
    color: #ccc;
}

@media (max-width: 768px) {
    .card {
        flex: 1 1 100%;
    }

    .header h1 {
        font-size: 2rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

