body {
    margin: 0;
    overflow: hidden;
    background-color: #000;
    font-family: "Microsoft YaHei", sans-serif;
}

#renderCanvas {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 让鼠标穿透UI层以便交互3D内容，如果有的话 */
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#subtitle-box {
    background: rgba(0, 0, 0, 0.7);
    border-top: 2px solid #00ffcc;
    padding: 20px;
    margin: 0 10% 20px 10%;
    border-radius: 8px;
    color: #fff;
    pointer-events: auto;
    transition: opacity 0.5s;
}

#speaker-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #00ffcc;
    margin-bottom: 10px;
}

#dialogue-text {
    font-size: 1.5rem;
    line-height: 1.5;
}

#controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    pointer-events: auto;
}

button {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

button:hover {
    background: #555;
}

#scene-indicator {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}
