
/* 基本重置与字体设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 布局设置 */
.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    flex: 1;
}

.navbar {
    background: rgba(30, 39, 46, 0.9);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    width: 250px;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.navbar.hidden {
    transform: translateX(-100%);
}

.navbar a {
    color: #81ecec;
    text-decoration: none;
    margin-bottom: 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ffffff;
}

.navbar a img {
    margin-right: 10px;
    width: 20px;
    height: 20px;
}

.main-content {
    margin-left: 250px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    overflow-y: auto;
    transition: margin-left 0.3s ease;
}

.header {
    text-align: center;
    padding: 40px 0;
    background: radial-gradient(circle, rgba(255,87,34,1) 0%, rgba(255,87,34,0) 70%);
    animation: aurora-move 15s linear infinite;
}

.header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8.5px);
    -webkit-backdrop-filter: blur(8.5px);
    margin-bottom: 40px;
}

.article h2, .article h3, .article h4 {
    font-family: 'Roboto', sans-serif;
    color: #81ecec;
    margin-bottom: 20px;
}

.article p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.article ul {
    list-style: disc inside;
    margin-bottom: 20px;
}

.article ul li {
    margin-bottom: 10px;
}

.article pre {
    background: #2d3436;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.article code {
    color: #dfe6e9;
    font-family: 'Courier New', Courier, monospace;
}

.article table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.article table, .article th, .article td {
    border: 1px solid #636e72;
}

.article th, .article td {
    padding: 10px;
    text-align: left;
}

.article th {
    background: #0984e3;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

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

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

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(30, 39, 46, 0.9);
    color: #81ecec;
    font-size: 14px;
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .navbar {
        width: 220px;
    }

    .main-content {
        margin-left: 220px;
    }
}

@media (max-width: 1200px) {
    .navbar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        position: relative;
        width: 100%;
        height: auto;
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }

    .navbar a {
        margin-right: 10px;
    }

    .header h1 {
        font-size: 28px;
    }

    .article {
        padding: 20px;
    }

    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 24px;
    }

    .article h2 {
        font-size: 24px;
    }

    .article h3 {
        font-size: 20px;
    }

    .article h4 {
        font-size: 18px;
    }

    .article p, .article ul, .article table {
        font-size: 14px;
    }
}

@media (max-width: 320px) {
    .navbar a {
        font-size: 14px;
    }

    .article {
        padding: 15px;
    }
}

