
/* 基础样式与布局 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3443);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
    color: #00ff7f;
    margin: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #00ff7f;
}

main {
    margin-top: 80px;
    padding-bottom: 40px;
}

h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: #00ff7f;
    margin-top: 40px;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    color: #dcdcdc;
}

ul {
    padding-left: 20px;
    color: #dcdcdc;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #444;
    padding: 10px;
    text-align: left;
    color: #dcdcdc;
}

th {
    background: #1a1a2e;
}

pre {
    background: #16213e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}

code {
    color: #00ff7f;
    font-size: 0.9rem;
}

button {
    background: #00ff7f;
    border: none;
    padding: 10px 20px;
    color: #1a1a2e;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
}

button:hover {
    box-shadow: 0px 0px 15px rgba(0, 255, 0, 0.5);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.grid-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.05);
}

.grid-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

footer {
    background: #1a1a2e;
    color: #dcdcdc;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.section {
    animation: fadeIn 1s ease-in-out;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    animation: move 5s infinite;
}

@keyframes move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.2rem;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    pre {
        font-size: 0.8rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
    }
}

