
/* CSS 样式代码 */
:root {
    --primary-color: #4CAF50;
    --secondary-color: #87CEEB;
    --accent-color: #FFA500;
    --text-color: #333;
    --background-gradient: linear-gradient(to right, #f9f9f9, #e6ffe6);
    --module-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: var(--background-gradient);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-x: hidden;
}

header {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 20px 10px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 1.5rem;
    position: relative;
    z-index: 100;
}

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

footer {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: center;
    font-size: 0.9rem;
    margin-top: auto;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.module {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--module-shadow);
    transition: transform 0.3s ease-in-out;
}

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

h2, h3 {
    font-family: 'Helvetica', sans-serif;
    color: var(--secondary-color);
}

p {
    font-size: 1rem;
    margin-bottom: 15px;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 5px;
}

pre {
    background: #f4f4f4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #555;
}

code {
    background: #f4f4f4;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    color: #333;
}

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

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

th {
    background: var(--secondary-color);
    color: white;
}

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

@media (max-width: 768px) {
    main {
        padding: 10px;
    }

    header, footer {
        font-size: 1.2rem;
    }

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

@media (min-width: 1024px) {
    main {
        padding: 30px;
    }

    .module {
        padding: 25px;
    }
}

