
/* 全局样式定义 */
:root {
    --main-bg: linear-gradient(135deg, #1E213A, #2C3E50);
    --highlight-color: #3A86FF;
    --accent-color: #6EE7B7;
    --text-color: #ECF0F1;
    --code-bg: rgba(58, 134, 255, 0.1);
    --font-family: 'Roboto', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--main-bg);
    color: var(--text-color);
    line-height: 1.6;
}

header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to bottom, #1E213A, #2C3E50);
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

header p {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

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

.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.section:hover {
    transform: translateY(-10px);
}

.section img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.section h2 {
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-bottom: 10px;
}

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

.code-block {
    background: var(--code-bg);
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    white-space: pre-wrap;
}

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

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

.particle {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

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

.button {
    display: inline-block;
    background: var(--highlight-color);
    color: #000;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.button:hover::before {
    width: 200px;
    height: 200px;
}

