#slide3{
    background-image: url("../img/BG4.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    position: relative;
}

/* 全屏背景视频样式 - 填充整个slide3 */
.slide3-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: #000;
    -webkit-object-fit: cover;
    -moz-object-fit: cover;
    -o-object-fit: cover;
}

/* 隐藏video控制界面 */
.slide3-background-video::-webkit-media-controls {
    display: none !important;
}

.slide3-background-video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* video无法加载时的fallback处理 */
.slide3-background-video:not([src]),
.slide3-background-video[src=""] {
    display: none;
}

/* 当video加载失败时，确保静态背景图片可见 */
#slide3:has(.slide3-background-video[src=""]) {
    background-image: url(../img/BG4.jpg);
}

/* 响应式video背景优化 */
@media screen and (max-width: 1920px) {
    .slide3-background-video {
        object-position: center center;
    }
}

@media screen and (max-width: 1366px) {
    .slide3-background-video {
        object-position: center center;
    }
}

.character {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #000; /* 添加黑色背景作为fallback */
    z-index: 2; /* 确保在video背景之上 */
}

.character-left {
    width: 20vw;
    height: 60vh;
    /* background: forestgreen; */
    box-sizing: border-box;
    padding: 0;
    overflow: hidden;
    position: absolute;
    z-index: 50;
    left: 1vw;
    top: 20vh;
}

/* 角色轮播容器样式 */
.characterpc {
    width: 100%;
    height: 100%;
}

.character-left img {
    height: 6.5rem;
    object-fit: cover;
}

.character-left-role-r {
    position: relative;
    left: 1.125rem;
    transition: all 0.5s;
}

.character-left-role-r:hover {
    transform: translateX(5px);
}

.character-left-role-l {
    position: relative;
    left: -1.125rem;
    transition: all 0.5s;
}

.character-left-role-l:hover {
    transform: translateX(5px);
}
.charactertop{
    position: absolute;
    background-color: aliceblue;
    width: 50;
    height: 50%;
    top: 10%;
    left: 50%;
}

/* .character-right {
    width: 100%;
    height: 100%;
     background: url("../img/b.png") no-repeat center; 
    display: flex;
    justify-content: center;
    box-sizing: border-box;
} */

.character-right {
    width: 75%;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    z-index: 10; /* 确保在video背景之上 */
}

.character-right-left {
    width: 100%;
    /* background: url("../img/role/1bg.png") no-repeat center; */
    background-size: 110%;
    height: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    position: relative;
    left: 0;
    z-index: 15; /* 确保在video背景之上 */
}

/* 角色背景视频样式 - 作为背景填充 */
.character-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
    background: #000;
}

/* video加载失败时的fallback处理 */
.character-background-video:not([src]),
.character-background-video[src=""] {
    display: none;
}

/* 当video无法播放时，确保背景图片可见 */
.character-right-left:not(:has(video[src*=".mp4"])) .character-background-img:nth-child(2) {
    z-index: 1;
}

/* 响应式video背景 */
@media screen and (max-width: 1920px) {
    .character-background-video {
        min-width: 110%;
        min-height: 110%;
    }
}

@media screen and (max-width: 1366px) {
    .character-background-video {
        min-width: 120%;
        min-height: 120%;
    }
}

/* 角色背景图片样式 */
.character-background-img {
    height: 110%;
    object-fit: cover;
    position: absolute;
    z-index: 2;
}

.character-right-left img {
    height: 110%;
    object-fit: cover;
    position: absolute;
}

.character-background-img:nth-child(2), 
.character-right-left img:nth-child(2) {
    width: 60rem;
    object-fit: cover;
    position: absolute;
    left: -30px;
    top: -56px;
    z-index: 2;
}

.character-background-img:nth-child(3), 
.character-right-left img:nth-child(3) {
    width: 60rem;
    object-fit: cover;
    position: absolute;
    left: -30px;
    top: -56px;
    z-index: 2;
}

.character-right-right {
    /* box-sizing: border-box;
    padding-top: 10vh; */
    height: 100%;
    width: 100%;
    /* background: red; */
    position: relative;
    z-index: 51;
    pointer-events: none;
    /* right: 8.125rem; */
}

.character-right-right-title {
    width: 100%;
    height: 33.24vh;
    background: url("../img/character_bg.png") no-repeat center;
    background-size: 100% 100%;
    position: absolute;
    bottom: 10.7vh;
}

.character-right-right-title #roleTitle {
    position: absolute;
    top: -3vh;
    right: 0;
    height: 310px;
}

.character-right-right-title #roleQuality  {
    position: absolute;
    /* width: 82px;
    height: 82px; */
    top: 0;
    right: 0;
}

.character-right-right-str {
    height: 15%;
    /* background: red; */
    width: 100%;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(187, 168, 147, 1);
    text-align: left;
    font-family: "cn";
    line-height: 1.875rem;
    
}

.character-right-right-button {
    display: flex;
    /* justify-content: space-around; */
}

.character-right-right-button-left {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: url("../img/voicebg.png") no-repeat center; */
    
    background-size: 100%;
}

.character-right-right-button-left>img {
    width: 5.1875rem;
}

.character-right-right-button-right>img {
    width: 6.5rem;
}

#roleVoice:hover {
    animation-name: bigIcon;
    animation-duration: 0.8s;
}

#roleLive:hover {
    animation-name: bigIcon;
    animation-duration: 0.8s;
}

#roleVoiceing:hover {
    animation-name: bigIcon;
    animation-duration: 0.8s;
}

#roleLiveing:hover {
    animation-name: bigIcon;
    animation-duration: 0.8s;
}

.character-canvas {
    height: 61rem;
    position: absolute;
    bottom: 0;
    z-index: 3;
}

/* #player-container{
    position: absolute;
    width: 100%;
    height: 150%;
} */

/* 当video加载失败时的处理 */
.character-background-video::-webkit-media-controls {
    display: none !important;
}

.character-background-video::-webkit-media-controls-enclosure {
    display: none !important;
}