
/* 基础样式与布局 */
body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, #000066, #4B0082);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Mono', monospace;
    margin-top: 2rem;
    margin-bottom: 1rem;
}
a {
    color: #39FF14;
    text-decoration: none;
}
a:hover {
    text-shadow: 0 0 5px #39FF14;
}
p {
    margin-bottom: 1rem;
}
ul, ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}
th, td {
    padding: 0.75rem;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
th {
    background: rgba(255, 255, 255, 0.1);
}

/* 模块化网格布局 */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}
.module {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.module:hover {
    transform: scale(1.02);
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    font-family: 'Roboto Mono', monospace;
    color: #39FF14;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1.5s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .module {
        padding: 15px;
    }
}
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}

/* 背景与装饰 */
.background-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 1));
    z-index: -1;
    pointer-events: none;
}
.decorative-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

