
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #000c7f, #6a00ff, #00ff8f);
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
    position: relative;
    overflow-x: hidden;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

header {
    text-align: center;
    padding: 60px 0;
    font-size: 2.5em;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    margin: 20px;
}

h1, h2, h3, h4 {
    font-weight: bold;
    margin-bottom: 20px;
    color: #00ff8f;
}

p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

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

code {
    color: #00ff8f;
    font-family: 'Fira Sans', monospace;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 10px 0;
}

button {
    background-color: #00ff8f;
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #00c853;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

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

a:hover {
    color: #6a00ff;
}

.module {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    border: 1px solid #00ff8f;
    box-shadow: 0 4px 15px rgba(0, 255, 143, 0.3);
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.flex-item {
    flex: 1 1 calc(33.33% - 20px);
    margin-bottom: 20px;
}

@media (max-width: 1440px) {
    .flex-item {
        flex: 1 1 calc(33.33% - 20px);
    }
}

@media (max-width: 1200px) {
    .flex-item {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 1024px) {
    .flex-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    header {
        font-size: 2em;
        padding: 40px 0;
    }
    .flex-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 0;
    }
    .container {
        width: 95%;
        padding: 20px 0;
    }
    h1 {
        font-size: 1.8em;
    }
    p {
        font-size: 1em;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }
    button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: transparent;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: #00ff8f;
    border-radius: 50%;
    opacity: 0.7;
    animation: float 5s infinite;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.7; }
}

/* 动态粒子效果 */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 143, 0.2), transparent),
                linear-gradient(90deg, #000c7f, #6a00ff);
    z-index: -2;
    animation: aurora-pulse 10s infinite alternate;
}

@keyframes aurora-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* 提示信息样式 */
.reference-note {
    text-align: center;
    font-size: 1em;
    color: #ffffff;
    margin-top: 30px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
}


