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

body, html {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(135deg, #4c6ef5, #8e44ad);
    height: 100%;
    overflow-x: hidden;
}

/* 主容器布局 */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    min-height: 100vh;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.header h1 {
    font-size: 3rem;
    letter-spacing: 2px;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* 网格布局模块 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

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

.module h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

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

/* 文章区域样式 */
.article-container {
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 15px;
    max-width: 1200px;
    width: 100%;
}

.article-container h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.article-container pre {
    background: rgba(0, 0, 0, 0.6);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
    color: #fff;
    margin: 10px 0;
}

.article-container code {
    color: #ff9a9e;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff9a9e, #fad0c4);
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button:hover {
    background: linear-gradient(45deg, #fad0c4, #ff9a9e);
    transform: scale(1.05);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

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

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

    .module {
        padding: 15px;
    }

    .article-container pre {
        font-size: 0.8rem;
    }
}

