
/* 全局样式与配色方案 */
:root {
    --primary-color: #000F2B;
    --secondary-color: #3A0CA3;
    --accent-color: #6EE7B7;
    --highlight-color: #FF00FF;
    --text-color: #FFFFFF;
    --bg-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

a {
    color: var(--highlight-color);
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--highlight-color);
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

a:hover::after {
    transform: scaleX(1);
}

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

.module {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.module:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 10%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
}

.module:hover::before {
    transform: scale(2);
}

.code-block {
    background: #1E1E1E;
    color: #6EE7B7;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
}

.code-block::before {
    content: 'CODE';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 12px;
    color: #888;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
    pointer-events: none;
}

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

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

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .container {
        grid-template-columns: repeat(3, 1fr);
    }
}

.header-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(135deg, #000F2B, #3A0CA3, #6EE7B7);
    background-size: 300% 300%;
    animation: gradientShift 10s infinite alternate;
}

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

.footer-section {
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #ccc;
}

