* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* 顶部装饰条 */
.header {
    background-color: yellow;
    color: black;
    padding: 8px 20px;
    text-align: center;
    font-size: 18px;
    position: fixed; /* 修改为 fixed */
    top: 0; /* 固定在页面顶部 */
    width: 100%; /* 确保顶部栏宽度为 100% */
    z-index: 1001; /* 确保顶部栏在其他内容之上 */
}
/* 左侧首页按钮 */
.home-button {
    position: absolute;
    left: 20px;
    top: 10px;
    font-size: 18px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}
.back-button {
    background-color: yellow;
    border: none;
    position: absolute;
    left: 50px;
    top: 10px;
    font-size: 18px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}

/* 右侧登录按钮 */
.login-button, .user-button {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 18px;
    text-decoration: none;
    color: black;
    font-weight: bold;
}
.user-button {
    top: 3px;
}

/* 底部菜单栏 */
.footer {
    background-color: #f0f0f0;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #ccc;
    z-index: 1000;
}

.footer a {
    text-decoration: none;
    color: black;
    font-size: 16px;
}

/* 让布局适合手机 */
@media (max-width: 600px) {
    .header {
        font-size: 20px;
    }

    .home-button, .login-button {
        font-size: 16px;
    }

    .footer a {
        font-size: 14px;
    }
}

.CourseDashboard {
    color: black;
    text-decoration: none;
}
.CourseDashboard h3, .CourseDashboard p {
    color: black;
}
.CourseDashboard span {
    font-size: 20px;
}

a {
    color: yellow;
}
