
/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: radial-gradient(circle, #0A0A0A, #1A1A1A);
    color: #C0C0C0;
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: linear-gradient(45deg, #00FFFF, #8A2BE2, #39FF14);
    color: #FFFFFF;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    text-shadow: 0 0 10px #00FFFF, 0 0 20px #8A2BE2;
}

nav a {
    color: #FFFFFF;
    margin-left: 20px;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #39FF14;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 60px 80px;
}

.sidebar {
    background: #1A1A1A;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.sidebar h2 {
    font-family: 'Roboto', sans-serif;
    font-size: 22px;
    margin-bottom: 15px;
    color: #00FFFF;
    text-shadow: 0 0 5px #00FFFF;
}

.sidebar p {
    font-size: 16px;
    margin-bottom: 20px;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

.sidebar .image-container img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.sidebar .image-container img:hover {
    transform: scale(1.05);
}

.content {
    background: #1A1A1A;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.5);
}

.content h2, .content h3 {
    font-family: 'Roboto', sans-serif;
    color: #8A2BE2;
    text-shadow: 0 0 5px #8A2BE2;
    margin-bottom: 15px;
}

.content p {
    margin-bottom: 20px;
    font-size: 16px;
}

.content code {
    background: #0A0A0A;
    color: #39FF14;
    padding: 5px 10px;
    border-radius: 4px;
    font-family: 'Courier New', Courier, monospace;
}

.content pre {
    background: #0A0A0A;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.button {
    background-color: #00FFFF;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    color: #0A0A0A;
    border-radius: 6px;
    box-shadow: 0 0 10px #00FFFF, inset 0 0 5px #00FFFF;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px #00FFFF, inset 0 0 10px #00FFFF;
}

.image-container {
    width: 100%;
    max-width: 320px;
    margin: 15px auto;
    overflow: hidden;
    border-radius: 8px;
}

.image-container img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.image-container img:hover {
    transform: scale(1.05);
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1440px) {
    .container {
        padding: 50px 60px;
    }
}

@media (max-width: 1200px) {
    header h1 {
        font-size: 24px;
    }
    nav a {
        font-size: 14px;
        margin-left: 15px;
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        padding: 40px 50px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 15px 30px;
    }
    nav a {
        margin: 10px 0;
    }
    .sidebar, .content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 20px;
    }
    nav a {
        font-size: 12px;
        margin-left: 10px;
    }
    .container {
        padding: 30px 20px;
    }
    .button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

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

.background-animation {
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2), transparent);
    animation: aurora-move 15s linear infinite;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    top: 0;
    left: 0;
}

