
/* 基础样式与配色方案 */
:root {
    --primary-color: #0A2463;
    --secondary-color: #1C1C1C;
    --accent-color: #FFC107;
    --highlight-color: #4CAF50;
    --text-color: #FFFFFF;
    --background-gradient: linear-gradient(135deg, #0A2463, #1C1C1C);
    --code-bg: #2B2B2B;
    --code-text: #E0E0E0;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #0A2463, #1C1C1C);
    position: relative;
    overflow: hidden;
}

header h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 10%, transparent 70%);
    animation: particleFlow 10s infinite linear;
    z-index: -1;
}

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

section {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--highlight-color), transparent);
    opacity: 0.1;
    filter: blur(10px);
}

h2, h3, h4 {
    color: var(--accent-color);
    margin-top: 0;
}

p {
    font-size: 1rem;
    color: var(--text-color);
}

pre {
    background: var(--code-bg);
    color: var(--code-text);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
}

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

th, td {
    border: 1px solid var(--accent-color);
    padding: 10px;
    text-align: left;
}

th {
    background: var(--highlight-color);
    color: var(--secondary-color);
}

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

button {
    background: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--highlight-color);
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--accent-color);
}

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

    section {
        padding: 15px;
    }

    pre {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 1.5rem;
    }
}

