
/* 全局样式与配色方案 */
body {
    background: linear-gradient(135deg, #0A192F 0%, #162447 100%);
    color: #EAEAEA;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #646FF0;
}

a {
    color: #FFC700;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #39FF14;
}

.highlight {
    background-color: #39FF14;
    color: #0A192F;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
}

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

/* 模块化布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.module {
    background: #EAEAEA;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: transform 0.3s ease;
    position: relative;
}

.module:hover {
    transform: scale(1.05);
}

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

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

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.scroll-parallax {
    position: relative;
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.scroll-parallax.active {
    transform: translateY(-50px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .module {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1, h2, h3 {
        font-size: 1.5em;
    }
}

/* 代码块样式 */
pre {
    background: #1E1E1E;
    color: #D4D4D4;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin: 20px 0;
}

code {
    background: #1E1E1E;
    color: #D4D4D4;
    padding: 2px 5px;
    border-radius: 3px;
}

/* 特殊提示样式 */
.notice {
    background: #646FF0;
    color: #EAEAEA;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    margin: 20px 0;
    font-weight: bold;
}

