
/* 引入字体 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Montserrat:wght@400;700&display=swap');

/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0A2463, #B721FF);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 头部样式 */
header {
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: aurora-move 15s linear infinite;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3em;
    font-weight: 700;
    margin: 0 20px;
}

header p {
    font-size: 1.2em;
    margin-top: 20px;
}

/* 主内容样式 */
main {
    padding: 50px 20px;
}

section {
    margin-bottom: 50px;
}

section h2, section h3, section h4 {
    font-family: 'Montserrat', sans-serif;
    color: #B721FF;
}

section p, section ul, section pre {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
}

ul {
    list-style: disc;
    margin-left: 20px;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
}

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

/* 链接样式 */
a {
    color: #C0C0C0;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* 示例展示样式 */
.sample-article {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
}

.sample-article h2 {
    color: #FF5722;
}

.sample-article pre {
    background: #1e1e1e;
    color: #00ff00;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1200px) {
    main {
        padding: 40px 15px;
    }
}

@media (max-width: 1024px) {
    header h1 {
        font-size: 2em;
    }
    main {
        padding: 30px 10px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }
    section h2 {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2em;
    }
    section h2 {
        font-size: 1.5em;
    }
    section p, section ul, section pre {
        font-size: 1em;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1em;
    }
    section h2 {
        font-size: 1.2em;
    }
    section p, section ul, section pre {
        font-size: 0.9em;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.5s ease;
}

.element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 鼠标悬停效果 */
.button:hover {
    transform: scale(1.1) rotate(5deg);
    transition: all 0.3s ease;
}

