
/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 设置全局字体和背景渐变动画 */
body {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #00008B, #8A2BE2);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景渐变关键帧动画 */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 全屏滚动设置 */
html, body {
    height: 100%;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

/* 每个全屏模块的样式 */
section {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

/* 头部样式 */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 1000;
}

header h1 {
    font-size: 36px;
    color: #00FF7F;
}

/* 标题样式 */
h2, h3, h4 {
    color: #00FF7F;
    margin-bottom: 20px;
}

/* 段落文本样式 */
p {
    font-size: 18px;
    color: #D3D3D3;
    margin-bottom: 20px;
}

/* 强调文本样式 */
b {
    color: #00FFFF;
}

/* 代码块样式 */
pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00FF7F;
}

/* 按钮样式 */
button {
    background-color: #4B0082;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 255, 127, 0.5);
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

/* 几何图形样式 */
.shape {
    width: 120px;
    height: 120px;
    background: #00FF7F;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    margin: 20px auto;
}

/* 文章样式 */
article {
    background: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    width: 100%;
    overflow-y: auto;
}

article h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

article h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

article h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

article p {
    font-size: 16px;
    margin-bottom: 15px;
}

/* 列表样式 */
ul {
    list-style: none;
}

ul li {
    margin-bottom: 15px;
    font-size: 16px;
}

/* 结尾提示 */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer p {
    font-size: 18px;
    color: #FFFFFF;
}

/* 响应式设计 */
@media (max-width: 320px) {
    header h1 {
        font-size: 24px;
    }
    h2 {
        font-size: 22px;
    }
    p, li {
        font-size: 14px;
    }
    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (min-width: 321px) and (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }
    h2 {
        font-size: 24px;
    }
    p, li {
        font-size: 15px;
    }
    button {
        padding: 12px 25px;
        font-size: 15px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    header h1 {
        font-size: 32px;
    }
    h2 {
        font-size: 26px;
    }
    p, li {
        font-size: 16px;
    }
    button {
        padding: 14px 28px;
        font-size: 16px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    header h1 {
        font-size: 36px;
    }
    h2 {
        font-size: 28px;
    }
    p, li {
        font-size: 17px;
    }
    button {
        padding: 16px 30px;
        font-size: 17px;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    header h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 30px;
    }
    p, li {
        font-size: 18px;
    }
    button {
        padding: 18px 32px;
        font-size: 18px;
    }
}

@media (min-width: 1201px) {
    header h1 {
        font-size: 44px;
    }
    h2 {
        font-size: 32px;
    }
    p, li {
        font-size: 19px;
    }
    button {
        padding: 20px 35px;
        font-size: 19px;
    }
}

