/* General Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #ffffff;
    background-color: #1a1a1a;
    scroll-behavior: smooth; /* 平滑滚动 */
}

/* Fixed Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px 20px;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    display: inline;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.navbar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Section Styles */
.section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* 给固定导航栏预留空间 */
}

/* Header Section with Background Image */
#header {
    background: url('./image/blacground.png') no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}



.header-content h1 {
    font-size: 4rem; /* 调整标题字体大小 */
    font-weight: bold;
    line-height: 1.2;
}

.header-content p {
    font-size: 1.5rem; /* 调整段落字体大小 */
    margin-top: 10px;
}



/* Semester1 Section */
#semester1 {
    background: url('./image/backgrounds.jpg') no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.semester1-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.semester1-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.semester1-links {
    display: flex;
    flex-direction: column; /* 纵向排列 */
    align-items: center; /* 水平居中 */
    gap: 15px; /* 链接之间的间距 */
}

.semester1-link {
    font-size: 1.5rem;
    color: #00aced; /* 链接文字颜色 */
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #00aced; /* 边框 */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.semester1-link:hover {
    background-color: #00aced; /* 悬停时背景色 */
    color: white; /* 悬停时文字颜色 */
}

/* Semester2 Section */
#semester2 {
    background: url('./image/S2\ Background1.jpg') no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.semester2-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.semester2-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.semester2-links {
    display: flex;
    flex-direction: column; /* 纵向排列 */
    align-items: center; /* 水平居中 */
    gap: 15px; /* 链接之间的间距 */
}

.semester2-link {
    font-size: 1.5rem;
    color: #00aced; /* 链接文字颜色 */
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #00aced; /* 边框 */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.semester2-link:hover {
    background-color: #00aced; /* 悬停时背景色 */
    color: white; /* 悬停时文字颜色 */
}

/* Final Report Section */
#FinalReport {
    background: url('./image/backgroundt1.jpg') no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.FinalReport-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Task Section */
/* Task Section */
#task {
    background: url('./image/backgroundt.jpg') no-repeat center center/cover;
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column; /* 垂直排列内容 */
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 20px; /* 增加内边距 */
}

/* Task Content Styling */
.task-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px; /* 标题与文字间距 */
}

.task-content p {
    font-size: 1.2rem;
    margin-bottom: 20px; /* 每段文字间距 */
}

/* Task Image Links */
.task-image-link {
    display: inline-block;
    margin: 20px 30px; /* 上下间距为 20px，左右间距为 30px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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); /* 鼠标悬停时增加阴影 */
}

/* Text Below Images */
.task-item {
    display: inline-block;
    margin: 15px;
    text-align: center;
}

.task-item p {
    margin-top: 10px;
    font-size: 1rem; /* 设置文字大小 */
    color: #ddd; /* 文字颜色 */
}