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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    line-height: 1.8;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

p {
    font-size: 16px;
    text-align: justify;
    padding: 0 20px;
}

code, pre {
    font-family: 'Roboto Mono', monospace;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    color: #00ff99;
    display: block;
    overflow-x: auto;
    white-space: pre-wrap;
}

pre {
    max-width: 100%;
    margin: 20px auto;
}

a {
    color: #00ff99;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1cb5e0;
}

img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 20px;
}

.section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #1cb5e0, #000046);
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, #000046, #1cb5e0);
}

.card {
    background: rgba(28, 181, 224, 0.8);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(28, 181, 224, 0.5);
    padding: 20px;
    margin: 20px;
    transition: transform 0.3s ease;
    width: 90%;
    max-width: 400px;
}

.card:hover {
    transform: scale(1.05);
}

.star {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: starMovement 5s infinite ease-in-out;
}

@keyframes starMovement {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@media (max-width: 768px) {
    .section {
        height: auto;
        padding: 40px 0;
    }

    h1, h2, h3, h4 {
        font-size: 1.5rem;
    }

    p {
        font-size: 14px;
    }
}

