
/* 全局样式设置 */
body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #1E2740, #34495E);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
}
a {
    color: #FFC300;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #0074D9, #1E2740);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}
.header .logo {
    font-size: 24px;
    font-weight: bold;
}
.tabs {
    display: flex;
    gap: 20px;
}
.tab-item {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-item:hover {
    background: rgba(255, 255, 255, 0.1);
}
.tab-item.active {
    background: #FFC300;
    color: #000000;
}
.main-content {
    margin-top: 80px;
    padding: 20px;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
}
.card img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.code-block {
    background: #1E2740;
    color: #FFC300;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 10px 0;
}
.footer {
    background: linear-gradient(90deg, #0074D9, #1E2740);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}
.footer p {
    margin: 0;
}
@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
        align-items: flex-start;
    }
    .tab-item {
        text-align: center;
        width: 100%;
    }
    .grid-container {
        grid-template-columns: 1fr;
    }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

