
/* 全局样式定义 */
:root {
    --primary-color: #0F4C81; /* 深蓝色 */
    --secondary-color: #353535; /* 灰色 */
    --accent-color: #32CD32; /* 微光绿 */
    --metallic-silver: #C0C0C0; /* 金属银 */
    --background-gradient: linear-gradient(135deg, #0F4C81, #1E3A5F);
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    letter-spacing: 0.5px;
    background: var(--background-gradient);
    color: #fff;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.header {
    grid-column: span 12;
    text-align: center;
    padding: 40px 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(50, 205, 50, 0.2), transparent);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

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

.hero-title {
    font-size: 2.5rem;
    color: var(--metallic-silver);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.module {
    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;
}

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

.module img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}

.code-block {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .module {
        grid-column: span 12;
    }

    h1 {
        font-size: 2rem;
    }
}

.footer {
    text-align: center;
    padding: 20px;
    background: var(--primary-color);
    color: var(--metallic-silver);
    margin-top: 40px;
}

