/* ========= 通用 ========= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft YaHei", sans-serif;
    background: #ffffff;
    color: #575555;
    overflow-x: hidden;
}

/* ========= 第一屏 ========= */
.screen1 {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}
.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: background-image 0.4s;
}
.light-effect {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 2;
    opacity: 0.7;
    animation: lightPulse 3s ease-in-out infinite;
    transition: background-image 0.4s;
}
@keyframes lightPulse {
    50% {
        opacity: 1;
    }
}
.character-name {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 60%;
    height: 80%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.4s;
}
.character-info {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    width: 80%;
    height: 60%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image 0.4s;
}
.character-illustration {
    position: absolute;
    right: 1%;
    top: 50%;
    transform: translateY(-50%) scale(1.6);
    z-index: 5;
    width: 55%;
    height: 66%;
    transition: transform 0.1s ease-out;
}
.character-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========= 左侧角色选择器 ========= */
.character-selector {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 120px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.character-list {
    width: 100px;
    height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0;
}
.character-list::-webkit-scrollbar {
    width: 4px;
}
.character-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

/* ===== 头像按钮 ===== */
.character-btn {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    background-size: cover;
    background-position: center;
    background-color: transparent;
}
.character-btn.active,
.character-btn:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== 上下按钮彻底透明 ===== */
.selector-up,
.selector-down {
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
    background-color: transparent;
}
.selector-up {
    background-image: url("image/btn_up.png");
}
.selector-down {
    background-image: url("image/btn_down.png");
}
.selector-up:hover,
.selector-down:hover {
    transform: scale(1.1);
}

/* ========= 左侧台词面板（透明 + 分割线） ========= */
.quote-panel {
    position: fixed;
    left: 10%;
    bottom: 100px;
    z-index: 10;
    max-width: 280px;
    padding: 20px;
    background: transparent;
    transition: opacity 0.4s;
}
.quote {
    font-style: italic;
    font-size: 20px;
    color: #1e1d1d;
    margin-bottom: 12px;
}
.divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 12px 0;
}
.description {
    font-size: 14px;
    line-height: 1.6;
    text-align: justify;
}

/* ========= 底部向下图片按钮（固定） ========= */
.btn-scroll-down {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 60px;
    height: 60px;
    background: url("image/btn_scroll_down.png") center/contain no-repeat;
    border: none;
    cursor: pointer;
    transition: transform 0.3s;
    animation: bounce 2s infinite;
}
.btn-scroll-down:hover {
    transform: translateX(-50%) scale(1.1);
}
@keyframes bounce {
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========= 第二屏 ========= */
.screen2 {
    height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

/* 控制隐藏 */
.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

/* ========= 涂鸦图层 ========= */
.doodle {
    position: absolute;
    z-index: 4;                 /* 与信息同级 */
    bottom: 0;                  /* 贴底 */
    left: 50%;
    transform: translateX(-50%);/* 水平居中 */
    width: 40%;                 /* 按需调大小 */
    height: auto;
    pointer-events: none;       /* 不挡鼠标 */
    transition: transform .1s ease-out;
}
.doodle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}