
/* 基础样式 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1A1A1A;
    color: #FFFFFF;
    line-height: 1.6;
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 100vh;
    overflow-x: hidden;
}

/* 导航栏样式 */
.sidebar {
    background-color: #2E2E2E;
    padding: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 200px;
    display: flex;
    flex-direction: column;
}

.sidebar h1 {
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar nav a {
    color: #FFFFFF;
    text-decoration: none;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.sidebar nav a:hover {
    background-color: #007BFF;
    transform: scale(1.05);
}

/* 主内容区样式 */
.main-content {
    margin-left: 220px;
    padding: 20px;
    background: radial-gradient(circle, rgba(30,30,30,1) 0%, rgba(20,20,20,1) 100%);
}

header {
    height: 100vh;
    background: linear-gradient(135deg, #007BFF, #00C8FF);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: aurora-move 15s linear infinite;
}

header h2 {
    font-size: 3em;
    color: #FFFFFF;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

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

.section {
    margin: 50px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.section .card {
    background-color: #2E2E2E;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 calc(33% - 40px);
    min-width: 250px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.section .card:hover {
    transform: translateY(-10px);
    background-color: #007BFF;
}

.section .card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.section .card h3 {
    margin: 15px 0 10px;
    font-size: 1.2em;
    color: #FFFFFF;
}

.section .card p {
    font-size: 0.95em;
    color: #DDDDDD;
}

.footer {
    text-align: center;
    padding: 20px;
    background-color: #2E2E2E;
    margin-top: 50px;
    border-top: 1px solid #444;
}

.footer p {
    color: #AAAAAA;
    font-size: 0.9em;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .section .card {
        flex: 1 1 calc(33% - 40px);
    }
}

@media (max-width: 1200px) {
    .section .card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 180px;
    }
    .main-content {
        margin-left: 200px;
    }
    .section .card {
        flex: 1 1 calc(50% - 40px);
    }
}

@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: fixed;
        bottom: 0;
        top: auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-around;
    }
    .main-content {
        margin-left: 0;
        margin-bottom: 60px;
    }
    .section .card {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    header h2 {
        font-size: 2em;
    }
    .sidebar nav a {
        padding: 8px;
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    .section .card {
        flex: 1 1 100%;
    }
    .sidebar h1 {
        font-size: 1.2em;
    }
}

/* 代码块样式 */
pre {
    background-color: #2E2E2E;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #00C8FF;
    font-family: 'Courier New', Courier, monospace;
}

/* 提示样式 */
.reference-note {
    background-color: #007BFF;
    color: #FFFFFF;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 30px;
    font-size: 1em;
}

/* 动画效果 */
.button {
    background-color: #007BFF;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button:hover {
    background-color: #00C8FF;
    transform: scale(1.1);
}

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

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

/* 图表样式 */
.chart-container {
    width: 100%;
    height: 300px;
    background-color: #1A1A1A;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.chart {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 图片样式 */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 5px;
}

