body {
    cursor: url('https://static.igem.wiki/teams/5481/ico-64.png'),auto; /* auto 是备用的默认光标 */
}

.flexbox{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.goTop {
    visibility: hidden;
}
.swiper-container {
    position: relative;
    width: 75%;
    margin: auto;
    overflow: hidden;
}

.swiper-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.swiper-slide {
    min-width: calc((100% - 4vw) / 5);/* 100% / 5 slides */
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-right: 0.8vw;

}

.swiper-slide-1 {
    min-width: calc((100% - 4vw) / 5);/* 100% / 5 slides */
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-right: 0.8vw;

}

.swiper-slide-2 {
    min-width: calc((100% - 4vw) / 5);/* 100% / 5 slides */
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-right: 0.8vw;

}

.swiper-slide-3 {
    min-width: calc((100% - 4vw) / 5);/* 100% / 5 slides */
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-right: 0.8vw;

}

.swiper-slide:last-child {
    margin-right: 0; /* 最后一个滑块不需要右边距 */
}
.swiper-slide-1:last-child {
    margin-right: 0; /* 最后一个滑块不需要右边距 */
}
.swiper-slide-2:last-child {
    margin-right: 0; /* 最后一个滑块不需要右边距 */
}
.swiper-slide-3:last-child {
    margin-right: 0; /* 最后一个滑块不需要右边距 */
}


.swiper-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    z-index: 9;
}


.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    cursor: pointer;
    user-select: none;
    z-index: 10; /* 确保箭头在图片之上 */
}

.left-arrow {
    left: 10px;
}

.right-arrow {
    right: 10px;
    z-index: 11;
}

.progress-bar-container {
    width: 100%;
    height: 5px;
    background-color: #ddd;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    background-color: #4caf50; /* 进度条颜色 */
    width: 0%; /* 初始宽度 */
    transition: width 0.5s ease;
}


.swiper-slide {
    transition: border-color 0.3s; /* 添加过渡效果 */
}

.active-slide {
    border: 5px solid rgba(247, 47, 187, 0.75); /* 荧光色边框 */
}

.swiper-container {
    overflow: hidden; /* 防止内容溢出 */
}
.introduction{
    width: 100%;
    padding: 5em;
    display: flex;
    justify-content: center;
    align-items: center;

}

.card {
    width: 40%;
    height: 30vw;
    display: flex;
    padding: 2.5em;
    margin: 20px 0;
    border: 1px solid rgb(152, 23, 23);
    border-radius: 5px;
    background-color: #FFD9D9;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 3em;
}

.card-left, .card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    border: 1px dashed #D12424; /* 左右部分中间的边框 */
}

.card-left {
    align-items: center;
    border: 1px dashed #D12424; /* 左右部分中间的边框 */
}

.card-left img {
    max-width: 15vw;
    max-height: 20vw;
    margin-bottom: 10px;
    border-radius: 2vw;
    background: #f3f3f3;
}

.card-text {
    text-align: center;
}

.card-text h3 {
    font-size: 18px;
    font-weight: bold;
}

.card-text p {
    margin: 5px 0 0;
    font-size: 14px;
}

.card-right {
    padding-left: 20px;
    overflow-y: auto;
}

.card-right p {
    font-size: 16px;
    line-height: 1.5;
}


/* 进度条样式 */
.progress-container {
    width: 80%; /* 进度条宽度，可以根据需要调整 */
    margin: 20px auto; /* 居中显示 */
}

.progress-bar {
    width: 100%;
    -webkit-appearance: none;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
}

.progress-bar::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4CAF50;
    cursor: pointer;
    border-radius: 50%;
}

.cover-container {
    position: relative; /* 相对定位容器 */
    text-align: center; /* 中心对齐 */
}

.cover-img {
    width: 100%; /* 自适应宽度 */
    height: auto; /* 自适应高度 */
}

.cover-text {
    position: absolute; /* 绝对定位 */
    top: 50%; /* 垂直居中 */
    left: 50%; /* 水平居中 */
    transform: translate(-50%, -50%); /* 完全居中 */
    font-size: 4rem; /* 字体大小 */
    color: #c0f21c; /* 文字颜色 */
    font-family: 'Lucida Handwriting', cursive;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* 添加阴影效果 */
}