
/* 基础样式与全局设置 */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(180deg, #000033, #000000);
    color: white;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'DS-Digital', monospace;
    margin: 20px 0 10px;
}
a {
    color: #39FF14;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #A020F0;
}
p {
    margin-bottom: 20px;
}

/* 页面布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
header {
    text-align: center;
    margin-bottom: 40px;
}
header h1 {
    font-size: 3rem;
    letter-spacing: 2px;
}
header p {
    font-size: 1.2rem;
}

/* 图片展示区域 */
.module {
    margin: 40px 0;
    text-align: center;
}
.module img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    alt="";
}
.module p {
    margin-top: 10px;
    font-size: 1.1rem;
}

/* 示例文章展示 */
.article {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    margin: 40px 0;
    max-width: 800px;
    width: 100%;
}
.article h2, .article h3, .article h4 {
    color: #39FF14;
}
.article pre {
    background: #000;
    color: #39FF14;
    padding: 10px;
    overflow-x: auto;
    border-radius: 5px;
}
.article table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.article th, .article td {
    border: 1px solid #39FF14;
    padding: 10px;
    text-align: left;
}

/* 动效与交互 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1s ease-in-out;
}
.scroll-trigger {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}
.scroll-trigger.in-view {
    opacity: 1;
    transform: translateY(0);
}
footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1rem;
    color: #A020F0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }
    .module img {
        max-width: 320px;
    }
    .article pre {
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    .container {
        padding: 10px;
    }
}

