
/* CSS 样式代码块 */
:root {
    --primary-bg: linear-gradient(135deg, #121212, #1e1e1e);
    --secondary-bg: #1a1a1a;
    --neon-blue: #4CAF50;
    --neon-purple: #6C7AE0;
    --text-color: #ffffff;
    --card-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--secondary-bg);
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
}

header h1 {
    font-size: 1.8rem;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav ul li a {
    color: var(--neon-purple);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #fff;
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--neon-purple);
}

main {
    padding-top: 6rem;
    padding-bottom: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

section {
    background: var(--secondary-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0px 12px 20px rgba(0, 0, 0, 0.4);
}

h2, h3 {
    color: var(--neon-blue);
    font-weight: bold;
}

p {
    font-family: 'Helvetica Neue', sans-serif;
    line-height: 1.8;
    color: #ccc;
}

pre {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 0.9rem;
}

code {
    color: var(--neon-purple);
    font-family: 'Courier New', monospace;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

th, td {
    border: 1px solid #444;
    padding: 0.8rem;
    text-align: left;
    color: #ddd;
}

th {
    background: #333;
    color: var(--neon-blue);
}

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

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 400px) {
    pre {
        font-size: 0.8rem;
    }

    table {
        font-size: 0.9rem;
    }
}

