/* 全局样式 */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    color: white;
    scroll-behavior: smooth;
}

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

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    color: white;
}

.navbar .menu a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
}

.navbar .menu a:hover {
    text-decoration: underline;
}


/* 各部分内容样式 */
.section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.section.home {
    background: url('./image/home\ page.jpg') no-repeat center center/cover;
    color: white;
    
}
.section.semester2 {
    background: url('./image/S\ 2Back.jpg') no-repeat center center/cover;
    color: white;
    
}

.scroll-down {
    position: absolute;
    bottom: 20px; /* 距离底部位置 */
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px; /* 箭头大小 */
    color: white;
    animation: bounce 1.5s infinite; /* 添加动画 */
    cursor: pointer;
}

/* 滚动指示符的动画 */
@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0); /* 初始位置 */
    }
    50% {
        transform: translate(-50%, 10px); /* 向下移动 */
    }
}

.section.about {
    background: url('./image/9b3b18a407baf16779c72e8fe0e2073\(1\).jpg') no-repeat center center/cover;
    color: rgb(0, 0, 0);
}

.section.about p {
    font-size: 50px;  /* 调整文字大小 */
    color: rgb(0, 0, 0);     /* 设置文字颜色为白色 */
    text-shadow: 
        1px 1px 0 white, /* 描边效果 */
        -1px 1px 0 white,
        1px -1px 0 white,
        -1px -1px 0 white;
    line-height: 1.8; /* 调整行高，增加可读性 */
    margin-top: 10px; /* 可选：调整顶部间距 */
}

.section.weekly-task {
    background: url('./image/the-lovers-1928\(1\).jpg') no-repeat center center/cover; 
    color: white;
}
/* Task Image */
.task-image-link {
    display: inline-block;
    margin: 20px 30px; /* 上下间距为 20px，左右间距为 30px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.task-title {
    margin-top: 10px; /* 与图片的间距 */
    font-size: 32px;  /* 字体大小 */
    color: white;     /* 设置文字为白色 */
    font-weight: bold;
    text-transform: uppercase; /* 可选：文字大写 */
}

.task-image {
    width: 200px; /* 图片宽度 */
    height: auto; /* 自动调整高度以保持比例 */
    border-radius: 15px; /* 图片圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); /* 图片阴影 */
    cursor: pointer;
}

.task-image-link:hover .task-image {
    transform: scale(1.1); /* 鼠标悬停放大 */
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.7); /* 鼠标悬停阴影 */
}

.section.portfolio {
    background: url('./image/捕获1.PNG') no-repeat center center/cover; /* 替换为你的实际图片路径 */
    color: white;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.section p {
    font-size: 18px;
    line-height: 1.6;
}

/* 返回顶部按钮 */
.footer {
    text-align: center;
    padding: 20px;
    background: black;
}

.footer .back-to-top {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.footer .back-to-top:hover {
    text-decoration: underline;
}

