
/* 基础样式设置 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    color: #ffffff;
    background-color: #121212;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
h1, h2, h3 {
    font-weight: bold;
    color: #6c5ce7;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}
code {
    background-color: #2a2a2a;
    color: #ffeb3b;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}
pre {
    background-color: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #333;
}
th {
    background-color: #3f51b5;
    color: #fff;
}
td {
    background-color: #2a2a2a;
}
/* 背景渐变动画 */
body {
    background: linear-gradient(45deg, #000000, #1a2980, #26d0ce);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}
@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* 视差滚动模块 */
.parallax {
    position: relative;
    height: 100vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.parallax::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.parallax-content {
    position: relative;
    z-index: 2;
}
/* 图片懒加载效果 */
img.lazy {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
img.lazy.loaded {
    opacity: 1;
}
/* 悬停动画 */
.card {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.4);
}
/* 自适应布局 */
@media (max-width: 768px) {
    .parallax {
        height: 50vh;
    }
    h1, h2, h3 {
        font-size: 1.5rem;
    }
    p {
        font-size: 14px;
    }
}
@media (max-width: 480px) {
    h1, h2, h3 {
        font-size: 1.2rem;
    }
    p {
        font-size: 12px;
    }
}

