
/* 页面整体样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif; /* 使用Roboto字体 */
    background: linear-gradient(135deg, #1E3C72, #2A5298, #5A3F37, #A8C0FF, #3F2B96); /* 渐变背景色 */
    color: #ffffff; /* 白色文字 */
    transition: background 0.5s ease;
}

/* 导航栏样式 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px;
    background: rgba(0, 0, 0, 0.9);
}

/* 侧边导航栏样式 */
.sidebar {
    position: fixed;
    left: 0;
    top: 80px;
    width: 200px;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    transition: width 0.3s ease;
}

.sidebar.collapsed {
    width: 60px;
}

/* 导航链接样式 */
.sidebar a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    margin: 15px 0;
    transition: color 0.3s ease;
}

.sidebar a:hover {
    color: #A8C0FF;
}

/* 主内容区样式 */
.main-content {
    margin-left: 220px;
    padding: 100px 20px 20px 20px;
    background: rgba(0, 0, 0, 0.5);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* 模块化卡片样式 */
.module-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    flex: 1 1 calc(33.333% - 20px);
    padding: 20px;
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, transform 0.3s ease;
}

.card:hover {
    background: linear-gradient(135deg, #6B73FF 0%, #000DFF 100%);
    transform: translateY(-10px);
}

/* 图片样式 */
.image-decor {
    width: 320px;
    height: 320px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-decor:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .main-content {
        margin-left: 20px;
    }
    .card {
        flex: 1 1 100%;
    }
}

