
/* 全局样式设置 */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0A1931, #12355B);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1em;
}

a {
    color: #FFA07A;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #FFD700;
}

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

.module {
    background: linear-gradient(135deg, #4E6C50, #283F3B);
    border: 2px solid #FFA07A;
    border-radius: 10px;
    padding: 20px;
    margin: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 calc(33.33% - 40px);
    min-width: 300px;
    position: relative;
}

.module:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
}

.module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module:hover::before {
    opacity: 1;
}

.button {
    background-color: #FFA07A;
    color: #0A1931;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: 'VT323', monospace;
    font-size: 1.2em;
}

.button:hover {
    background-color: #FFD700;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

code {
    background: #1E293B;
    color: #FFA07A;
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    display: block;
    margin: 10px 0;
}

pre {
    background: #1E293B;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #FFA07A;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #4E6C50;
    color: #FFFFFF;
}

td {
    background-color: #283F3B;
    color: #FFA07A;
}

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

    .matrix-grid {
        grid-template-columns: 1fr;
    }
}

.background-texture {
    position: relative;
}

.background-texture::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, #f5f5dc, #dcdcdc);
    opacity: 0.1;
    z-index: -1;
}

