
/* 基础样式与全局设置 */
body {
    margin: 0;
    font-family: 'Roboto', 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #6C3483);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-weight: bold;
    color: #8E44AD;
    margin-bottom: 15px;
}
p {
    font-weight: normal;
    margin-bottom: 20px;
}
code {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}
pre {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}
a {
    color: #FF7F50;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #FFA07A;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}
.module {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    transition: transform 0.3s ease-in-out;
}
.module:hover {
    transform: scale(1.05);
}
.header {
    grid-column: span 12;
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #8E44AD, #6C3483);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.header h1 {
    font-size: 2.5em;
    margin: 0;
}
.header p {
    font-size: 1.2em;
    margin: 10px 0 0;
}
.content {
    grid-column: span 8;
}
.sidebar {
    grid-column: span 4;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}
.image-grid img:hover {
    transform: scale(1.1);
}
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .content {
        grid-column: span 12;
    }
    .sidebar {
        grid-column: span 12;
    }
}

