
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: linear-gradient(135deg, #0A192F, #000000);
    color: #BABBBC;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
}
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.9);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}
header h1 {
    font-family: 'Neon Tubes', sans-serif;
    font-size: 24px;
    color: #64FFDA;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}
nav ul li a {
    color: #BABBBC;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: #64FFDA;
}
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: linear-gradient(135deg, #64FFDA, #C778DD);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}
nav ul li a:hover::after {
    width: 100%;
}
.main {
    padding: 100px 20px 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.section {
    margin-bottom: 50px;
}
.section h2 {
    font-family: 'Neon Tubes', sans-serif;
    font-size: 36px;
    color: #64FFDA;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.5);
}
.section p {
    font-size: 18px;
    margin-bottom: 20px;
}
.section pre {
    background: #1E293B;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
}
.section code {
    font-family: 'Roboto Mono', monospace;
    color: #64FFDA;
}
.button {
    background: linear-gradient(135deg, #64FFDA, #C778DD);
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    color: #000000;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 5px;
}
.button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px #64FFDA, 0 0 20px #C778DD;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.image-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.image-grid img:hover {
    transform: scale(1.05);
}
.footer {
    background: rgba(10, 25, 47, 0.9);
    padding: 20px 40px;
    text-align: center;
    color: #BABBBC;
    position: fixed;
    bottom: 0;
    width: 100%;
}
.footer p {
    font-size: 14px;
}
.code-preview {
    background: #1E293B;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
}
.code-preview code {
    display: block;
    color: #64FFDA;
    font-family: 'Roboto Mono', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .section h2 {
        font-size: 28px;
    }
    .section p, .section pre {
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    header {
        padding: 15px 20px;
    }
    header h1 {
        font-size: 20px;
    }
    nav ul li a {
        font-size: 14px;
    }
    .section h2 {
        font-size: 24px;
    }
    .section p, .section pre {
        font-size: 14px;
    }
}
@media (min-width: 1200px) {
    .main {
        padding: 150px 40px 80px 40px;
    }
    .section h2 {
        font-size: 40px;
    }
}
.background-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #64FFDA;
    border-radius: 50%;
    animation: pulse 3s infinite;
}
@keyframes pulse {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
.scroll-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}
.scroll-item.active {
    opacity: 1;
    transform: translateY(0);
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}
.item {
    background-color: #1E293B;
    color: #BABBBC;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

