.carousel-container {
    position: relative;
    height: 100%;  /* 使用父容器的全部高度 */
    aspect-ratio: 3/4;  /* 保持 3:4 的宽高比 */
    background: white;
    border-radius: 8px 0 0 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    font-size: calc(1.5vh);  /* 基础字体大小 */
}

.carousel-counter {
    position: absolute;
    top: 2vh;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0.5vh 1vh;
    border-radius: 1.2vh;
    font-size: 1.2vh;
    z-index: 2;
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: none;
}

.carousel-slide.active {
    display: block;
    opacity: 1;
}

.carousel-slide.cover-card {
    /* background: url('../img/cover-card.png') no-repeat center center; */
    background-size: 100% 100%;
}

.carousel-slide.detail-card {
    /* background: url('../img/detail-card.png') no-repeat center center; */
    background-size: 100% 100%;
}

.carousel-slide canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
}

.carousel-slide .slide-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3vh;
    box-sizing: border-box;
}

.cover-card .text-content {
    max-width: 50.625vh;  /* 810px equivalent at 1600px height */
    word-wrap: break-word;
    margin: 0 auto;
    font-size: 2vh;
    line-height: 2.25;  /* 1.5倍的原始行间距 */
    text-align: center;
}

.detail-card .title {
    max-width: 58.125vh;  /* 930px equivalent at 1600px height */
    word-wrap: break-word;
    margin: 0 auto 2vh;
    font-size: 2.5vh;
    line-height: 1.4;
    text-align: center;
}

.detail-card .point-content {
    max-width: 52.5vh;  /* 840px equivalent at 1600px height */
    word-wrap: break-word;
    margin: 1.5vh auto;
    font-size: 1.8vh;
    line-height: 1.5;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 1vh;
    cursor: pointer;
    z-index: 2;
    font-size: 2vh;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* 用于导出的画布样式 */
.export-canvas {
    width: 1200px;
    height: 1600px;
    display: none;
}