#carousel {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
    margin-top: 100px; /* 根据需要调整间距 */
}

#carousel img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.25s ease-in-out;
}

.carousel-buttons {
    position: absolute; /* 设置绝对定位，相对于最近的相对定位的祖先元素 */
    bottom: 10px; /* 将按钮放置在底部 */
    left: 50%; /* 水平居中 */
    transform: translateX(-50%); /* 修正居中问题 */
    z-index: 10; /* 确保按钮在图片上方 */
}

/*.carousel-button {*/
/*    cursor: pointer;*/
/*    background-color: transparent; !* 设置背景为透明 *!*/
/*    color: white; !* 保持文字颜色为白色 *!*/
/*    border: 1px solid white; !* 使用1px宽的白色边框 *!*/
/*    border-radius: 5px; !* 可选：如果想要按钮有圆角，可以添加这个属性 *!*/
/*    padding: 10px 20px;*/
/*    margin: 0 50px; !* 增加水平间距 *!*/
/*    font-size: 16px;*/
/*}*/
/*.active-button {*/
/*    background-color: rgba(255, 255, 255, 0.3); !* 按钮亮起时的背景颜色 *!*/
/*}*/

#carousel-buttons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100vh;
    background: #031628;
}

.carousel-button {
    border: 1px solid;
    background-color: transparent;
    text-transform: uppercase;
    font-size: 14px;
    padding: 5px 10px;
    font-weight: 300;
    color: #d9d9d9;
}


.carousel-button:hover {
    color: white;
    border: 0;
}

.carousel-button:hover {
    background-color: #4cc9f0;
    -webkit-box-shadow: 10px 10px 99px 6px rgba(76,201,240,1);
    -moz-box-shadow: 10px 10px 99px 6px rgba(76,201,240,1);
    box-shadow: 10px 10px 99px 6px rgba(76,201,240,1);
}
.active-button {
    background-color: #d9d9d9;
    -webkit-box-shadow: 10px 10px 99px 6px rgba(76,201,240,1);
    -moz-box-shadow: 10px 10px 99px 6px rgba(76,201,240,1);
    box-shadow: 10px 10px 99px 6px rgba(76,201,240,1); /* 按钮亮起时的背景颜色 */
}
