
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #000066, #4B0082, #00FF7F);
    background-size: 400% 400%;
    animation: gradientAnimation 10s ease infinite;
    color: #ffffff;
    line-height: 1.6;
}

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

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

p {
    font-size: 16px;
    line-height: 1.6;
    margin: 10px 0;
}

a {
    color: #00FF7F;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00FFFF;
}

code {
    display: block;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    color: #00FF7F;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

pre {
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.5);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.5);
}

th, td {
    padding: 10px;
    text-align: left;
    border: 1px solid #00FF7F;
}

th {
    background-color: #4B0082;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    z-index: 1000;
}

.navbar a {
    color: #00FF7F;
    margin: 10px 0;
    font-size: 16px;
}

.navbar a:hover {
    text-decoration: underline;
}

/* 主体内容 */
.container {
    margin-left: 220px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.5);
}

/* 图片样式 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 0 10px rgba(0, 255, 127, 0.5);
}

/* 响应式布局 */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
    }
    .container {
        margin-left: 0;
        padding: 10px;
    }
    h1, h2, h3 {
        font-size: 1.5em;
    }
    p {
        font-size: 14px;
    }
}

/* 提示信息 */
.tip {
    text-align: center;
    font-size: 14px;
    color: #00FF7F;
    margin: 20px 0;
}

