
/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(to bottom, #f0f4f8, #d9e2ec);
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
    padding: 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #2c3e50;
}

a {
    color: #4c6eff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: #7e5bff;
}

.container {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(to right, #4c6eff, #7e5bff);
    color: white;
    width: 100%;
    position: relative;
    z-index: 10;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: -1;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.module {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.module:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

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

.article {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    line-height: 1.8;
    font-size: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.article h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.article h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #34495e;
}

.article p {
    margin-bottom: 15px;
    color: #444;
}

.article pre {
    background: #f4f6f8;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article code {
    font-family: 'Courier New', Courier, monospace;
    color: #e74c3c;
}

.footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(to right, #4c6eff, #7e5bff);
    color: white;
    width: 100%;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .header p {
        font-size: 1rem;
    }

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

    .article {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .header {
        padding: 30px 0;
    }

    .module {
        padding: 15px;
    }

    .article {
        padding: 15px;
    }
}

