
/* 全局样式定义 */
:root {
    --primary-color: #0F4C81; /* 深蓝色 */
    --secondary-color: #6C757D; /* 灰色 */
    --accent-color: #32CD32; /* 霓虹绿 */
    --highlight-color: #FFA500; /* 亮橙色 */
    --background-gradient: linear-gradient(135deg, #0F4C81, #1E3A5F);
    --font-family: 'Roboto', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: var(--background-gradient);
    color: white;
    line-height: 1.6;
}

/* 页面容器布局 */
.container {
    display: flex;
    flex-direction: row;
    min-height: 100vh;
}

/* 左侧导航栏 */
.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    position: fixed;
    height: 100%;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.sidebar h3 {
    font-weight: bold;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 10px 0;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: var(--highlight-color);
}

/* 右侧内容区 */
.content {
    margin-left: 280px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 40px;
}

/* 标题与文字样式 */
h1, h2, h3 {
    font-weight: bold;
    font-style: italic;
    color: var(--accent-color);
}

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

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

.image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 按钮样式 */
.button {
    background: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.button:hover {
    transform: scale(1.05);
}

.button:hover::before {
    width: 200%;
    height: 200%;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
        padding: 10px;
    }

    .content {
        margin-left: 0;
        padding: 10px;
    }
}

/* 动态粒子效果 */
.particle-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.particle {
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: absolute;
    animation: particle-animation 3s infinite;
}

@keyframes particle-animation {
    0% { transform: translate(0, 0); opacity: 1; }
    100% { transform: translate(100px, -100px); opacity: 0; }
}

