
/* 全局样式与字体设置 */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: radial-gradient(circle, #1e3c72, #2a5298);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}
p {
    font-size: 1rem;
    font-weight: normal;
    color: #f0f8ff;
}
pre {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
}
ul {
    list-style-type: disc;
    padding-left: 20px;
}
li {
    margin-bottom: 10px;
}

/* 模块化布局与滚动效果 */
section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}
section:hover {
    filter: blur(2px);
}
.content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
.content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.content p {
    margin-bottom: 15px;
}

/* 导航栏与按钮样式 */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}
nav a {
    color: #ff6f00;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #ffffff;
}
button {
    background: #ff6f00;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
button:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 图片与装饰样式 */
img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    mix-blend-mode: multiply;
    transition: opacity 0.3s ease;
}
img:hover {
    opacity: 1;
}

/* 动画与交互 */
@keyframes gradient-move {
    from { background-position: 0% 50%; }
    to { background-position: 100% 50%; }
}
body {
    animation: gradient-move 10s infinite alternate;
}
@media (max-width: 768px) {
    section {
        height: auto;
        padding: 40px 20px;
    }
    .content {
        padding: 15px;
    }
    nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

