body {
    margin: 0;
    overflow: hidden;
    font-family: 'Arial', sans-serif;
    cursor: none; /* 隐藏默认鼠标 */
}

/* 所有全屏覆盖层 */
#start-overlay,
.transition-page,
#loading,
#image-popup,
#custom-cursor,
#in-game-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 开始页面 - 全屏无黑边 */
#start-overlay {
    background-image: url('01source/Start Page.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #000;
    z-index: 1000;
    cursor: pointer;
    transition: opacity 0.5s ease;
}

#start-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 过渡页（信封、藏宝图）- 全屏无黑边 */
.transition-page {
    background-color: black;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    cursor: pointer;
}

.transition-page.show {
    opacity: 1;
    pointer-events: auto;
}

.transition-page img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 全局加载提示（位于左下角） */
#loading {
    bottom: auto;
    top: auto;
    left: 20px;
    bottom: 20px;
    width: auto;
    height: auto;
    background: rgba(0,0,0,0.6);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 100;
    pointer-events: none;
    backdrop-filter: blur(5px);
    color: white;
    display: block;
}

/* 游戏内加载提示（左上角小弹窗） */
#in-game-loading {
    top: 20px;
    left: 20px;
    width: auto;
    height: auto;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: #ffaa66;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 14px;
    z-index: 1000;
    pointer-events: none;
    border-left: 3px solid #ffaa66;
    display: none; /* 初始隐藏 */
}

/* 照片弹窗 */
#image-popup {
    background: transparent;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    pointer-events: none;
    animation: fadeIn 0.2s ease;
}

#image-popup img {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    transform: scale(1.5);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* 自定义鼠标 */
#custom-cursor {
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.05s ease;
    display: block;
}

#custom-cursor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.error-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(30,30,40,0.95);
    color: white;
    padding: 24px;
    border-radius: 12px;
    max-width: 400px;
    z-index: 200;
    backdrop-filter: blur(10px);
    border: 1px solid #ff5555;
}