/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@100..900&display=swap');

/* Reset styles */
html, body {
    height:280%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* 禁止横向滚动 */
    overflow-y: auto; /* 允许垂直滚动 */
}

body {
    font-family: 'Helvetica', sans-serif; /* 使用 Helvetica 字体 */
    color: #333;
    background-color: #fff;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.logo {
    width: 60px;
    margin-right: 20px;
}


nav {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
    align-items: center;
    margin-top: 5px;
}

nav ul li {
    margin-left: 20px;
}

nav ul li:first-child {
    margin-left: 0;
}

nav ul li a {
    position: relative; /* 相对定位，让伪元素基于 a 元素定位 */
    text-decoration: none;
    font-family: "Helvetica", sans-serif;
    font-weight: 700;
    font-size: 10px;
    padding-bottom: 5px; /* 为下划线留出空间 */
    color: rgb(58, 58, 58);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px; /* 下划线的高度 */
    background-color: #333; /* 下划线的颜色 */
    left: 0;
    bottom: 0;
    transition: width 0.3s ease-in-out; /* 添加过渡效果 */
    transform: scaleX(0);
    transform-origin: bottom left;
}

nav ul li a:hover::after {
    width: 100%;
    transform: scaleX(1); /* 悬停时展开下划线 */
}

nav ul li a.clicked::after, 
nav ul li a.active::after {
    width: 100%;
    transform: scaleX(1); /* 点击时保持下划线 */
}



/* 确保图片容器居中 */
a {
    display: block;
    text-align: center;
}

/* 确保图片在容器中居中 */
a img {
    display:inline-block;
    max-width: 100%; /* 使图片适应容器宽度 */
    height: auto;    /* 保持图片的纵横比 */
}


/* Main content styles */
main {
    padding: 0; /* 去掉之前的 padding 设置 */
}

.image-container-1 {
    display: inline-block;
    flex-direction: column;
    align-items: center; /* 使 container 和内容水平居中 */
    justify-content: center; /* 使 container 和内容垂直居中 */
    margin-top: 200px; /* 只影响图片上方的间距，不影响导航栏 */
    animation: fadeInUp 1s ease-out; /* 1.5秒淡入动画 */
    text-align: center;
    font-family: "Helvetica", sans-serif;
    font-weight: 700;
    font-size: 10px;
}

.image-container-1 a {
    display: inline-block;
    text-decoration: none; /* 去除下划线 */
    color: inherit; /* 继承父元素的字体颜色 */
    margin-top: 10px;
    width: 75%;
}

.image-container-1 img {
    display: block;
    margin: 0 auto; /* 水平居中图片 */
    max-width: 100%; /* 图片宽度不超过 container */
    height: auto; /* 保持图片的纵横比 */
    width: 100%;
    box-sizing: border-box; /* 包括 padding 和 border 在 width 计算中 */
    
}
.image-container-2 {
    display: inline-block;
    justify-content: center; /* 水平居中内容 */
    flex-direction: column; /* 使内容在垂直方向上排列 */
    align-items: center; /* 垂直居中内容 */
    margin-top: 200px; /* 只影响图片上方的间距，不影响导航栏 */
    margin-left: 170px;
    animation: fadeInUp 1s ease-out;
    text-align: center;
    font-family: "Helvetica", sans-serif;
    width: 75%; /* 根据需要调整宽度 */
    flex-direction: column;
}

.image-container-2 img {
    display: block; /* 使每个图片占据独立的行，避免间隙 */
    float:inline-start; /* 图片并排 */
    height: 200px; 
    width: auto;
    align-items:start;
    margin-bottom: 40px;
}


.image-title
{
    display: block;
    text-decoration: none; /* 去除下划线 */
    color: inherit; /* 继承父元素的字体颜色 */
    margin-top: 40px;
    font-size: 15px;
}

.small-text{
    font-family: "Helvetica", sans-serif;
    font-weight: 700;
    font-size: 10px;
    margin-top: -5px;
    text-align: center;
    
}

.image-gradient {
    width: 100%; /* 根据需要设置宽度 */
    height: auto; /* 保持图片的纵横比 */
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 20%, rgb(0, 0, 0) 60%);
}

.image-gradient-2 {
    width: 100%; /* 根据需要设置宽度 */
    height: auto; /* 保持图片的纵横比 */
    mask-image: linear-gradient(to right, rgb(0, 0, 0) 60%, rgba(0, 0, 0, 0) 100%);
}


/* 调整小文字的间距 */
.image-container-1 .small-text {
    margin-top: -5px; /* 确保小文字没有额外的间距 */
    margin-bottom: 0; /* 确保小文字没有额外的间距 */
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px); /* 从30px的下方开始 */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* 逐渐移动到原始位置 */
    }
}

a.image-link {
    display: block;
    text-align: center;
    margin-top: 150px; /* 上间距，调整此值以增减距离 */
    margin-bottom: 20px; /* 下间距，调整此值以增减距离 */
}

.navigation {
    margin-bottom: 20px; /* 根据需要调整 */
}



/* Footer styles */
footer {
    position: fixed;
    height: 12px;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    font-size: 8px;
    font-weight: 400;
    padding: 0;
    padding-bottom: 0px;
}


.back-link
{
    
    font-size: 10px;
    text-decoration: none; /* 去掉下划线 */
    color: #000000; /* 设置链接颜色 */
    font-weight: 1000;
    transition: color 0.3s ease; /* 鼠标悬停时颜色过渡效果 */
    animation: fadeInUp 1.5s ease-out; /* 1.5秒淡入动画 */
    margin-top: 40px;
    text-align: center;
    padding: 5px 10px; /* 增加内边距，使椭圆圈更明显 */
    display: flex; /* 让元素根据内容大小调整自身宽度 */
    justify-content: center; /* 垂直居中 */
    margin: 200px auto; /* 自动左右边距使容器水平居中 */
    width: 1000px;
    line-height: 1;
}