body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 50px auto;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease;
    scroll-behavior: smooth;
}

.carousel-item {
    min-width: 25%; /* Each item takes 25% of the container width */
    box-sizing: border-box;
    margin-right: 20px;
    flex-shrink: 0; /* Prevent items from shrinking */
}

.card {
    width: 100%;
    height: 340px; /* Fixed height for the card */
    background-color: lightgray;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card2 {
    width: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 顶部对齐，不会把文字挤掉 */
    text-align: center;
    padding: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card video {
    width: 100%;
    height: 250px; /* Fixed height for the video */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.card2 video {
    width: 100%;
    height: 250px; /* 或者使用 auto 保持比例 */
    object-fit: cover;  /* 或者使用 contain 完整显示 */
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;  /* 确保块级显示 */
}

.card-content {
    font-size: 16px;
    color: #333;
    text-align: center;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.carousel-control.left {
    left: 10px;
}

.carousel-control.right {
    right: 10px;
}
