/* 用户信息弹窗样式 */
.user-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.user-info-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
    width: 400px;
    overflow: hidden;
}

.user-info-header {
    background: #f5f5f5;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-family: 'SimSun', '宋体', serif;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #e0e0e0;
}

.user-info-body {
    padding: 20px;
}

.user-info-item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.user-info-item:last-child {
    margin-bottom: 0;
}

.user-info-item label {
    font-weight: bold;
    color: #333;
    margin-right: 10px;
    min-width: 80px;
    font-family: 'SimSun', '宋体', serif;
}

.user-info-item span {
    color: #666;
    font-family: 'SimSun', '宋体', serif;
    flex: 1;
}

.user-info-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'SimSun', '宋体', serif;
    transition: background-color 0.2s;
}

.logout-btn:hover {
    background: #c82333;
}

/* 登录提示弹窗样式 */
.login-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.login-prompt-content {
    background: rgba(255, 255, 255, 0.9); /* 增加透明度 */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
    width: 450px; /* 增加弹窗宽度 */
}

.login-prompt h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-family: 'SimSun', '宋体', serif;
}

.login-prompt p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
    font-family: 'SimSun', '宋体', serif;
}

.login-prompt-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.prompt-btn {
    padding: 8px 20px; /* 减小上下内边距 */
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'SimSun', '宋体', serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prompt-btn-register {
    background: #000; /* 改为黑色 */
    color: white;
}

.prompt-btn-register:hover {
    background: #333; /* 悬停时稍微亮一点的黑色 */
}

.prompt-btn-login {
    background: #000; /* 改为黑色 */
    color: white;
}

.prompt-btn-login:hover {
    background: #333; /* 悬停时稍微亮一点的黑色 */
}

.prompt-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.prompt-close:hover {
    color: #333;
}

/* 禁用点击状态 - 通过JavaScript控制点击事件，CSS中不需要样式 */

/* 登录提示弹窗响应式设计 */
@media screen and (max-width: 768px) {
    .login-prompt-content {
        width: 90%; /* 移动端使用90%宽度 */
        padding: 20px;
    }
    
    .login-prompt h3 {
        font-size: 20px;
    }
    
    .login-prompt p {
        font-size: 14px;
    }
    
    .prompt-btn {
        padding: 6px 16px; /* 移动端进一步减小按钮高度 */
        font-size: 14px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100vw;
    height: 100vh;
}

/* 场景容器 - 自动适配任何窗口尺寸 */
#scene-container {
    position: relative;
    width: 1920px;
    height: 1020px; /* 1080 - 50(导航栏) - 10(margin) = 1020px */
    overflow: hidden;
    transform-origin: center center;
    margin-top: 10px; /* 向下移动10px */
}

/* 所有图层的基础样式 */
.layer {
    position: absolute;
    display: block;
}

/* 背景不动 */
#background {
    top: 0;
    left: 0;
    width: 1920px;
    height: 1080px;
    z-index: 1;
}

/* 黄色云雾 (Vector 1826) */
#yellow-mist {
    top: 156px;
    left: -4px;
    width: 1928px;
    height: 794px;
    z-index: 2;
}

/* 怪兽 - 正片叠底 */
#monster {
    top: -94px;
    left: -150px;
    width: 1080px;
    height: auto;
    z-index: 3;
    transform: rotate(10deg); /* 顺时针旋转7度 */
}

/* 建筑 */
#building {
    top: 7px;
    left: 1509px;
    width: 511px;
    height: 970px;
    z-index: 4;
    transition: all 0.3s ease; /* 添加过渡动画 */
}

/* 建筑图层发光效果 - 像素边缘外发光 + 像素内发光 */
#building.building-glow {
    /* 使用filter给图片内部像素边缘添加外发光效果 */
    filter: 
        drop-shadow(0 0 8px rgba(51, 72, 156, 0.7)) /* 外发光 - 蓝色，70%透明度 */
        drop-shadow(0 0 15px rgba(51, 72, 156, 0.5)) /* 更大的外发光扩散，50%透明度 */
        drop-shadow(0 0 25px rgba(51, 72, 156, 0.3)) /* 最大的外发光扩散，30%透明度 */
        /* 使用brightness和contrast模拟内发光效果 */
        brightness(1.2) /* 增加亮度模拟内发光 */
        contrast(1.1); /* 增加对比度让内发光更明显 */
    
    /* 使用伪元素技术实现真正的内发光 */
    position: relative;
}

/* 使用伪元素实现像素级别的内发光 */
#building.building-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(244, 180, 22, 0.3) 0%, transparent 70%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
}

/* 小草 */
#grass {
    top: 740px;
    left: 1764px;
    width: 159px;
    height: auto;
    z-index: 5;
    transition: all 0.3s ease; /* 添加过渡动画 */
}

/* 小草hover时的放大效果和向下移动 */
#grass.grass-hover {
    transform: scale(1.12) translateY(3px); /* 放大1.12倍并向下移动3px */
}

/* 地面 */
#ground {
    top: 929px;
    left: 0;
    width: 1920px;
    height: 151px;
    z-index: 6;
}

/* 凳子 */
#bench {
    top: 707px;
    left: 1377px;
    width: 171px;
    height: auto;
    z-index: 7;
}

/* 男 */
#boy {
    top: 325px;
    left: 1154px;
    width: 361px;
    height: 622px;
    z-index: 8;
}

/* 女 */
#girl {
    top: 309px;
    left: 716px;
    width: 314px;
    height: auto;
    z-index: 10;
}

/* 桌子 */
#table {
    top: 653px;
    left: 753px;
    width: 509px;
    height: 324px;
    z-index: 11;
}

/* 电脑 */
#computer {
    top: 404px;
    left: 843px;
    width: 370px;
    height: 529px;
    z-index: 12;
    transition: all 0.3s ease; /* 添加过渡动画 */
}

/* 电脑图层发光效果 - 像素边缘外发光 + 像素内发光 */
#computer.computer-glow {
    /* 使用filter给图片内部像素边缘添加外发光效果 */
    filter: 
        drop-shadow(0 0 8px rgba(51, 72, 156, 0.7)) /* 外发光 - 蓝色，60%透明度 */
        drop-shadow(0 0 15px rgba(51, 72, 156, 0.5)) /* 更大的外发光扩散，40%透明度 */
        drop-shadow(0 0 25px rgba(51, 72, 156, 0.3)) /* 最大的外发光扩散，20%透明度 */
        /* 使用brightness和contrast模拟内发光效果 */
        brightness(1.2) /* 增加亮度模拟内发光 */
        contrast(1.1); /* 增加对比度让内发光更明显 */
    
    /* 使用伪元素技术实现真正的内发光 */
    position: relative;
}

/* 使用伪元素实现像素级别的内发光 */
#computer.computer-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(244, 180, 22, 0.3) 0%, transparent 70%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
}

/* 猫 */
#cat {
    top: 689px;
    left: 630px;
    width: 236px;
    height: 312px;
    z-index: 13;
}

/* 树 - 带模糊效果 + 80% 不透明度 */
#tree {
    top: -175px;
    left: 992px;
    width: 800px; /* 从878px缩小到800px，保持比例 */
    height: auto;
    opacity: 0.9;
    z-index: 14;
    transition: all 2s ease; /* 减慢过渡动画速度，与电脑保持一致 */
}

/* 树图层发光效果 - 像素边缘外发光 + 像素内发光 + 更亮效果 */
#tree.tree-glow {
    /* 使用filter给图片内部像素边缘添加外发光效果 */
    filter: 
        drop-shadow(0 0 4px rgba(51, 72, 156, 0.1)) /* 外发光 - 蓝色，40%透明度 */
        drop-shadow(0 0 8px rgba(51, 72, 156, 0.1)) /* 更大的外发光扩散，20%透明度 */
        /* 使用brightness和contrast让树更亮 */
        brightness(1.05) /* 轻微增加亮度 */
        saturate(1.05); /* 轻微增加饱和度 */
    
    /* 使用伪元素技术实现真正的内发光 */
    position: relative;
}

/* 使用伪元素实现像素级别的内发光 */
#tree.tree-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, rgba(244, 180, 22, 0.15) 0%, transparent 60%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: -1;
}

/* Title 标题图片 */
#title {
    top: 40px;
    left: 760px;
    width: 560px;
    height: auto;
    z-index: 15;
}

/* 不可见的检测区域 - 用于tree图片切换交互 */
.hover-detection-area {
    position: absolute;
    background: transparent;
    cursor: pointer;
    z-index: 20; /* 确保在最上层，能够接收鼠标事件 */
}

/* 首页黑色矩形标签样式 */
.home-hover-label {
    position: absolute;
    background: #000000;
    color: white;
    width: auto;
    min-width: 28px; /* 减小最小宽度从32px到28px */
    height: auto; 
    border-radius: 25px; /* 增大圆角从15px到25px */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    font-family: 'SimSun', '宋体', serif;
    writing-mode: vertical-rl;
    text-orientation: upright;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 25; /* 确保在最顶层 */
    padding: 12px 6px; /* 减小左右padding从8px到6px */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* 不阻挡鼠标事件 */
}

.home-hover-label.show {
    opacity: 1;
}

/* 检测区域1 - 第一个黑色矩形（横条） */
#hover-area-1 {
    top: 64px;
    left: 1248px;
    width: 514px;
    height: 122px;
}

/* 检测区域2 - 第二个黑色矩形（竖条） */
#hover-area-2 {
    top: 186px;
    left: 1496px;
    width: 166px;
    height: 341px;
}

/* 检测区域3 - 第三个黑色矩形（之前的数据） */
#hover-area-3 {
    top: 527px;
    left: 1496px;
    width: 243px;
    height: 575px;
}

/* 检测区域4 - grass图片切换区域 */
#hover-area-grass {
    top: 800px;
    left: 1807px;
    width: 98px;
    height: 88px;
}

/* 检测区域5 - 电脑图层发光效果区域 */
#hover-area-computer {
    top: 555px;
    left: 932px;
    width: 207px;
    height: 166px;
}

/* 检测区域6-8 - building图层发光效果区域 */
#hover-area-building-1 {
    top: 73px;
    left: 1762px;
    width: 158px;
    height: 171px;
}

#hover-area-building-2 {
    top: 244px;
    left: 1807px;
    width: 125px;
    height: 73px;
}

#hover-area-building-3 {
    top: 317px;
    left: 1849px;
    width: 71px;
    height: 613px;
}

/* 检测区域9-11 - 男孩图层交互效果区域 */
#hover-area-boy-1 {
    top: 400px;
    left: 1240px;
    width: 121px;
    height: 147px;
}

#hover-area-boy-2 {
    top: 547px;
    left: 1288px;
    width: 162px;
    height: 147px;
}

#hover-area-boy-3 {
    top: 694px;
    left: 1268px;
    width: 236px;
    height: 166px;
}

/* 检测区域12 - 女孩图层交互效果区域 */
#hover-area-girl {
    top: 382px;
    left: 766px;
    width: 126px;
    height: 358px; /* 根据需求设置的高度 */
}

/* 特殊效果 */
.blend-multiply {
    mix-blend-mode: multiply;
}

.blur-effect {
    filter: blur(4px);
    transition: all 2s ease; /* 与tree保持一致的长过渡动画 */
}

/* 男孩放大效果 */
#boy {
    transform: scale(1.08);
    transition: all 0.3s ease;
}

/* 响应式适配现在由page-wrapper统一处理 */

/* 全屏模式优化现在由page-wrapper统一处理 */

/* 加载进度条样式 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-container {
    width: 80%;
    max-width: 600px;
    text-align: center;
}

.loading-text {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffcc00, #ff6600);
    transition: width 0.3s ease;
}

.loading-percentage {
    color: #fff;
    font-size: 18px;
}