
/* 基础样式与配色方案 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #121212, #1a1a1a);
    color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #7e57c2;
    text-align: center;
    margin: 20px 0;
}

p {
    font-size: 1rem;
    padding: 0 20px;
}

button {
    background-color: #6200ea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

button:hover {
    transform: scale(1.1);
}

/* 全屏模块化设计 */
.section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, #1a1a1a, #242424);
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #121212, #1a1a1a);
}

/* 网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

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

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

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-element {
    animation: fadeIn 1s ease-in-out;
    opacity: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .section {
        height: auto;
        padding: 20px;
    }

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

    pre code {
        white-space: pre-wrap;
        word-wrap: break-word;
    }
}

/* 图片装饰 */
.image-decorator {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* 提示文本 */
.notice {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
    margin: 20px 0;
}

/* 代码块样式 */
pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin: 20px;
}

code {
    color: #64ffda;
    font-family: 'Consolas', monospace;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.navbar a {
    color: #7e57c2;
    text-decoration: none;
    margin: 10px 20px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #6200ea;
}

