

.openModaltop {
    /*padding: 10px 20px;
    font-size: 16px;
    color: #fff;
    background-color: #007bff;
    text-decoration: none;
    border-radius: 5px;*/
    cursor: pointer;
}

.openModaltop:hover {
    /*background-color: #0056b3;*/
}

.modaltop {
 display: none;
 position: fixed;
 z-index: 9999; /* 确保在最顶层 */
 left: 0;
 top: 0;
 width: 100%;
 height: 100%;
 overflow: auto;
 background-color: rgba(0, 0, 0, 0.8);
}

.modaltop-content {
 background-color: #fefefe;
margin: 10% auto; /* 调整垂直居中位置 */
padding: 20px;
border: 1px solid #888;
width: 90%;
max-width: 850px;
position: relative;
z-index: 10000; /* 内容层更高 */
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.carouseltop {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carouseltop-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carouseltop-item {
    min-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.carouseltop-item h3 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

.carouseltop-item img,
.carouseltop-item video{
 max-width: 100%;
max-height: 60vh;
width: auto;
height: auto;
object-fit: contain;
}

.carouseltop-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 9;
}

.carouseltop-control.prev {
    left: 10px;
}

.carouseltop-control.next {
    right: 10px;
}

.pagination {
    text-align: center;
    margin-top: 10px;
    font-size: 9px;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.pagination span {
    display: inline-block;
    /*padding: 5px 10px;
    border: 2px solid #333;
    border-radius: 5px;
    background-color: #f1f1f1;*/
}

.image-hover-change {
  position: relative;
  width: 100%;
}

.image-hover-change .hover-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.image-hover-change:hover .hover-img {
  opacity: 1;
}
