
/* 基础样式与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0A1F44, #000033);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
h1, h2, h3, h4 {
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
h1 {
    font-size: 3rem;
    text-align: center;
    margin: 2rem 0;
}
h2 {
    font-size: 2.5rem;
    margin: 2rem 0 1rem;
}
h3 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
}
p {
    font-size: 1.1rem;
    margin: 1rem 0;
}
ul {
    list-style: none;
    padding: 1rem 0;
}
li {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}
a {
    color: #00BFFF;
    text-decoration: none;
    transition: all 0.3s ease;
}
a:hover {
    color: #8A2BE2;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* 按钮样式 */
button {
    background: #00BFFF;
    color: #FFFFFF;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
button:hover {
    background: #8A2BE2;
    transform: scale(1.1);
}

/* 星河粒子动画 */
.star-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 50%;
    animation: starMovement 5s infinite alternate ease-in-out;
}
@keyframes starMovement {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-10px, 10px); }
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
}
code {
    color: #00BFFF;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

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

/* 响应式布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.8rem;
    }
    p, li {
        font-size: 1rem;
    }
    .star-container {
        display: none;
    }
}

