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

body {
    font-family: 'Roboto Mono', monospace;
    background: linear-gradient(135deg, #0000FF, #8A2BE2, #32CD32);
    background-size: 200% 200%;
    animation: gradient-animation 15s ease infinite;
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 50px 0;
}

header h1 {
    font-size: 3em;
    background: linear-gradient(90deg, #FFD700, #FF4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-rotate 3s linear infinite;
}

@keyframes text-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.module {
    background-color: rgba(46, 139, 87, 0.8);
    flex: 1 1 calc(33.333% - 40px);
    min-width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
}

.module:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.7);
}

.module img {
    width: 100px;
    height: 100px;
    border-radius: 5px;
}

.module .info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: #FFFFFF;
    font-size: 1em;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.article {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    margin-top: 40px;
    border-radius: 10px;
}

.article h2, .article h3, .article h4 {
    color: #FFD700;
    margin-bottom: 20px;
}

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

.article ul {
    list-style: disc inside;
    margin-bottom: 15px;
}

.article pre {
    background-color: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 15px;
}

.footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

.footer p {
    font-size: 1em;
    color: #FFFFFF;
}

/* 按钮样式 */
button {
    background-color: rgba(255, 69, 0, 0.8);
    border: none;
    padding: 15px 30px;
    color: #FFF;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: rgba(255, 140, 0, 0.8);
}

/* 链接样式 */
a {
    color: #32CD32;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* 响应式设计 */

@media (max-width: 1440px) {
    .module {
        flex: 1 1 calc(25% - 40px);
    }
}

@media (max-width: 1200px) {
    .module {
        flex: 1 1 calc(33.333% - 40px);
    }
}

@media (max-width: 1024px) {
    .module {
        flex: 1 1 calc(50% - 40px);
    }

    header h1 {
        font-size: 2.5em;
    }
}

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

    .module {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5em;
    }

    .module {
        flex: 1 1 100%;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.2em;
    }

    .module {
        flex: 1 1 100%;
    }

    .article {
        padding: 10px;
    }
}

/* 视觉元素补充 */
.shape {
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

.shape:nth-child(1) {
    top: 10%;
    left: 5%;
}

.shape:nth-child(2) {
    bottom: 15%;
    right: 10%;
}

.shape:nth-child(3) {
    top: 40%;
    right: 20%;
}

