.one-page-box {
    width: 100%;
    overflow: hidden; 
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
}

.carousel-item video {
    width: 85vw;
    height: 80vh;
    max-height: 80vh;
    border-radius: 10px;
    object-fit: contain;
}

/* 视频轮播中的视频样式 - 简化居中 */
.video-carousel .carousel-item video {
    max-width: 100%;
    width: auto !important;
    height: auto !important;
    max-height: 85vh !important;
    border-radius: 10px;
    object-fit: contain;
    display: inline-block;
}

.iframe-container {
    position: relative;
    width: 100%;
    max-height: 480px;
    padding-top: 33.33%;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 20px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    color: #666;
    background-color: #EAF2FD;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.carousel-btn:hover {
    background-color: #cdd7e4;
}
.carousel-btn img {
    width: 18px;
    height: 18px;
}

.carousel-btn.prev {
    margin-right: auto;
}

.carousel-btn.next {
    margin-left: auto;
}

.carousel-ctrl {
    align-items: center;
    justify-content: center;
    position: relative;
    margin: auto;
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
    display: inline-flex;
    margin: 5px;
}

.dot.active {
    transform: scale(1.5);
}

/* PDF Figures Section */
.figures-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.figure-item {
    text-align: center;
    margin-bottom: 50px;
}

.figure-item img {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a3a5a;
    background: #1c253a;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.figure-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.figure-item p {
    text-align: center;
    margin-top: 20px;
    color: #EAF2FD;
    font-size: 1.2em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .figure-item img {
        max-width: 100%;
        border-radius: 10px;
    }

    .figure-item p {
        font-size: 1.1em;
    }
}

/* Video carousel specific styles */
.video-carousel {
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    padding: 0;
    box-sizing: border-box;
}

.video-carousel .carousel {
    width: 100%;
    max-width: none;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.video-carousel .carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.video-carousel .carousel-item {
    min-width: 100%;
    width: 100%;
    text-align: center;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.video-container {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 75vh;
    max-height: 90vh;
    text-align: center;
}


.video-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 20px;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 10;
}

.video-controls:hover {
    opacity: 1;
}

.play-pause-btn, .mute-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: rgba(26, 37, 62, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: background-color 0.3s;
}

.play-pause-btn:hover, .mute-btn:hover {
    background-color: rgba(40, 55, 90, 0.95);
}

.play-pause-btn img, .mute-btn img {
    width: 30px;
    height: 30px;
}

.video-carousel .carousel-item p {
    text-align: center;
    margin-top: 10px;
    color: #EAF2FD;
    font-size: 1.1em;
}

/* PDF Figures Section */
.figures-section {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.figure-item {
    text-align: center;
    margin-bottom: 50px;
}

.figure-item img {
    width: 100%;
    max-width: 900px;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a3a5a;
    background: #1c253a;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.figure-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.figure-item p {
    text-align: center;
    margin-top: 20px;
    color: #EAF2FD;
    font-size: 1.2em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .figure-item img {
        max-width: 100%;
        border-radius: 10px;
    }

    .figure-item p {
        font-size: 1.1em;
    }
}

/* 增强的图片布局样式 */
.figure-item {
    margin-bottom: 70px;
    position: relative;
}

.figure-item p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* 第一个图（teaser）突出显示 */
.figure-item:first-child {
    margin-bottom: 80px;
}

.figure-item:first-child img {
    max-width: 950px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

/* 第二个图（pipeline）特殊背景 */
.figure-item:nth-child(2) {
    margin-bottom: 80px;
    padding: 20px 0;
    background: rgba(26, 37, 62, 0.3);
    border-radius: 20px;
}

/* 第三个图（task） */
.figure-item:nth-child(3) {
    margin-bottom: 60px;
}

/* 左右左交替布局样式 */
.alternating-layout {
    padding: 40px 0;
}

.alternating-layout .figure-item {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 80px;
    text-align: left;
}

.alternating-layout .figure-item:nth-child(odd) {
    flex-direction: row;
}

.alternating-layout .figure-item:nth-child(even) {
    flex-direction: row-reverse;
}

.alternating-layout .figure-item img {
    flex: 1;
    max-width: 600px;
    margin: 0;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a3a5a;
    background: #1c253a;
    object-fit: contain;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.alternating-layout .figure-item .figure-content {
    flex: 1;
    padding: 20px;
}

.alternating-layout .figure-item h3 {
    color: #EAF2FD;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-family: 'GeForce';
}

.alternating-layout .figure-item p {
    color: #93a1b3;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
    max-width: none;
}

/* 悬停效果和动画 */
.alternating-layout .figure-item img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.alternating-layout .figure-item .figure-content h3 {
    background-image: linear-gradient(to right, #08C5FF, #6DE2B4);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-family: 'GeForce';
}

/* 移动端响应式布局 */
@media (max-width: 768px) {
    .alternating-layout .figure-item {
        flex-direction: column !important;
        text-align: center;
    }

    .alternating-layout .figure-item img {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .alternating-layout .figure-item .figure-content {
        padding: 10px;
    }
}

/* 确保轮播只显示当前视频，隐藏上一个视频的边缘 */
.video-carousel .carousel-inner {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.video-carousel .carousel-item {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
}

/* 移动端视频显示优化 */
@media (max-width: 768px) {
    .video-carousel .carousel-item {
        min-height: 75vh;
    }

    .video-carousel .carousel-item video {
        max-height: 80vh;
        border-radius: 8px;
    }

    .video-container {
        min-height: 70vh;
        max-height: 85vh;
    }
}

/* 大屏幕视频显示优化 */
@media (min-width: 1200px) {
    .video-carousel .carousel-item {
        min-height: 90vh;
    }

    .video-carousel .carousel-item video {
        max-height: 90vh;
    }

    .video-container {
        min-height: 80vh;
        max-height: 95vh;
    }
}

/* 视频轮播控制按钮响应式布局 */
@media (max-width: 768px) {
    .video-controls {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .play-pause-btn, .mute-btn {
        width: 45px;
        height: 45px;
        padding: 10px;
    }

    .play-pause-btn img, .mute-btn img {
        width: 20px;
        height: 20px;
    }
}

/* 大屏幕视频轮播容器优化 */
@media (min-width: 1200px) {
    .video-carousel {
        width: 100%;
        max-width: 100%;
        margin: 40px 0;
        padding: 0;
    }
}
