
/* 全局样式与背景渐变动画 */
body {
    margin: 0;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0074D9, #1C1C1E, #6F00FF);
    background-size: 400% 400%;
    animation: gradient-animation 15s ease infinite;
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
    box-sizing: border-box;
}
@keyframes gradient-animation {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* 页面标题与提示 */
h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #0074D9, #6F00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin-top: 20px;
}
.notice {
    text-align: center;
    font-size: 14px;
    color: #CCCCCC;
    margin-bottom: 20px;
}

/* 布局容器 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}
@media (min-width: 768px) {
    .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

/* 模块化内容卡片 */
.module {
    width: 100%;
    background: #1C1C1E;
    color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    transition: transform 0.3s ease;
    text-align: center;
}
@media (min-width: 768px) {
    .module {
        width: calc(33.33% - 20px);
    }
}
.module:hover {
    transform: scale(1.05);
}
.module img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* 示例文章区域 */
.article {
    background: #1C1C1E;
    color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin-top: 20px;
    text-align: left;
    overflow-wrap: break-word;
}
.article h2 {
    font-size: 24px;
    margin-bottom: 15px;
}
.article pre {
    background: #000000;
    color: #00FF00;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
}
.article code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* 动画效果 */
@keyframes rotate-model {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(360deg); }
}
.model img {
    animation: rotate-model 10s infinite linear;
}

/* 自适应布局调整 */
@media (max-width: 768px) {
    .module {
        width: 100%;
    }
    .article pre {
        font-size: 12px;
    }
}

