/* === slide3 基础容器 === */
#slide3 {
    background-image: url("../img/BG4.jpg");
    background-size: cover;
    background-position: center;
    overflow: hidden;
    position: relative;
}

/* === 左侧内容区 === */
.char-left-area {
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 100%;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 3vh 3vw;
    box-sizing: border-box;
}

/* 标题图 */
.char-title {
    width: 18vw;
    height: auto;
    margin-bottom: 1.5vh;
}

/* 角色简介文字条 */
.char-intro-bar {
    width: 48vw;
    /* background: linear-gradient(to right, rgba(0, 20, 40, 0.85), rgba(0, 20, 40, 0.4), transparent); */
    padding: 1.5vh 1.5vw;
    margin-bottom: 2vh;
    /* border-left: 3px solid rgba(100, 180, 255, 0.5); */
}

.char-intro-bar img {
    width: 100%;
    height: auto;
    display: block;
}

#charIntroText {
    width: auto;
}

/* === 六边形头像网格（蜂巢布局） === */
.char-hex-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    width: 650px;
    height: 300px;
    position: absolute;
    bottom: 24vh;
    left: 16vw;
    column-gap: 50px;
}

/* 六边形头像项 */
.char-hex-item {
    cursor: pointer;
    transition: transform 0.3s, filter 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.char-hex-item:hover {
    transform: scale(1.08);
    filter: brightness(1.2);
}

.char-hex-item.active {
    filter: brightness(1.1) drop-shadow(0 0 8px rgba(100, 200, 255, 0.6));
}

.char-avatar {
    width: 100%;
    height: auto;
    display: block;
}

/* 第一行：3个，占列 1-2, 3-4, 5-6 */
.char-hex-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.char-hex-item:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
.char-hex-item:nth-child(3) { grid-column: 5 / 7; grid-row: 1; }

/* 第二行：2个，偏移半格，占列 2-3, 4-5 */
.char-hex-item:nth-child(4) { grid-column: 2 / 4; grid-row: 2; margin-top: -85px; }
.char-hex-item:nth-child(5) { grid-column: 4 / 6; grid-row: 2; margin-top: -85px; }

/* 第三行：3个，占列 1-2, 3-4, 5-6 */
.char-hex-item:nth-child(6) { grid-column: 1 / 3; grid-row: 3; margin-top: -85px; }
.char-hex-item:nth-child(7) { grid-column: 3 / 5; grid-row: 3; margin-top: -85px; }
.char-hex-item:nth-child(8) { grid-column: 5 / 7; grid-row: 3; margin-top: -85px; }

/* === 右上装饰文字 === */
.char-brief-label {
    position: absolute;
    top: 3vh;
    right: 3vw;
    width: 16vw;
    height: auto;
    z-index: 5;
    opacity: 0.6;
}

/* === 右侧大立绘 === */
.char-illu-area {
    position: absolute;
    right: -2vw;
    top: 0;
    height: 100%;
    width: 55%;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: end;
    overflow: hidden;
}

.char-illu-area img {
    height: 100%;
    width: auto;
    object-fit: contain;
    transition: opacity 0.4s ease;
}

.char-illu-area img.fade-out {
    opacity: 0;
}

.char-illu-area img.fade-in {
    opacity: 1;
}

/* === 简介条底部背景装饰 === */
.char-deco {
    position: absolute;
    left: 0;
    width: 100vw;
    height: auto;
    z-index: -1;
}

/* === 保留 changeAllSwipperAbled 需要的函数兼容 === */
.character {
    display: flex;
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
}
