*{margin: 0;padding: 0;}
body,html{width: 100%;height: 100%;background: radial-gradient(circle, rgb(69, 69, 69), rgb(0, 0, 0));position: relative;overflow: hidden;touch-action:none;touch-action:pan-y;background-size: 100% 100%;-ms-overflow-style:none;scrollbar-width: none;-webkit-user-select: none; /* Safari */-ms-user-select: none; /* IE 10+ and Edge */user-select: none; /* Standard syntax */}
html::-webkit-scrollbar{width:0px}
ul,li{list-style: none;}
.container {
    display: flex;
    height: 100vh; /* 全屏高度 */
    position: relative;
}

/* 左侧主区域 */
.main-area {
    flex: 1; /* 自适应宽度 */
    position: relative;
}
.homeIcon{
    display: inline-block;
    margin-left:20px;
    width:30px;
    height:30px;
}
/* 右侧区域 */
.sidebar {
    position: relative;
    width: 720px;
    padding: 25px;
    box-sizing: border-box;
    transition: width 0.3s ease; /* 平滑过渡 */
    background: url(./image/msg-bg.svg) no-repeat;
    background-color: #6D1312;
    z-index:10;
}

/* 隐藏右侧区域 */
.sidebar.hidden {
    width: 0;
    padding: 0;
    overflow: hidden;
}

/* 按钮样式 */
.toggle-button {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.toggle-button:hover {
    background-color: #0056b3;
}
#container3d{
    position: fixed;
    top:0;
    width:100%;
    height:100%;
}
/* #container3d canvas{
    width:100% !important;
    height:100% !important;
} */
#p{width: 300px;position: absolute;box-sizing: border-box;padding: 10px 20px 0;left:50%;top: 20px;margin-left: -148px;background: rgba(0,0,0,.3);color: snow;display: none;overflow-x: hidden;z-index: 1;}
#bottom{width: 100%;height: 90px;position: absolute;bottom: 30px;left: 0;display: flex;flex-direction:row;justify-content: space-evenly;align-items: center;z-index: 3;}
#bottom div{display: flex;flex-direction:column;align-items: center;cursor: pointer;color:#fff;font-size:20px;}
#bottom label{
    display: block;
    padding-top:10px;
}
.rig_top{position: absolute;right: 10px;top: 20px;width: 34px;height: 34px;object-fit: none;object-position: 0px 0px;z-index: 2;}
.mid_bot{position: absolute;width: 60px;left: 50%;margin-left: -30px;bottom: 200px;}
.lef_bot{width: 38px;}
#text{width:100%;height:100px;position: absolute;bottom: 140px;font-size: 20px;font-family: Kaiti SC;font-weight: 400;color: darkgray;z-index: 0;}
#text p{font-family: KaiTi;font-weight: 400;color: #fff;position: absolute;top: 50%;left: 50%;transform: translate(-50%, -5%);}
#text img{width: 40px;position: absolute;left: 50%;margin-left: -20px;}
@keyframes breath{
    0% {opacity: 0.7;}
    50% {opacity: 1;}
    100% {opacity: 0.7;}
}
#myCanvas{display:none;position: absolute;top: 700px;left: 45px;width: 300px;height: 300px;margin-bottom: 50px;z-index: 21;border-radius: 50%;overflow: hidden;-webkit-mask-image:radial-gradient(circle, #000000 40%, transparent, transparent);animation: breath 3s linear infinite;}
#candle{position: absolute;bottom: 0;left:125px;display:none;width:60px;height:60px;z-index:25;-webkit-touch-callout: none;pointer-events: none;}
#logo{width: 120px;position: absolute;right: 70px;top: 20px;}
#loading{position: absolute;left: 0;top: 0;color: #fff;width: 100%;height: 100%;z-index: 100;font-size: 22px;}
#closeBtn1{width: 15px;position: absolute;left: 50%;margin-left: 120px;top: 30px;z-index: 19;display: none;}
#layer {width: 30%;height: 40px;border-radius:20px;background:#fff;font-size: 18px;position: fixed;left:50%;top:50%;transform: translate(-50%,-50%);color:#5c5c5c;text-align: center;line-height: 40px;}
.sq_btn{width: 50%;height: 60px;float: left;border: none;font-family: KaiTi;font-weight: 400;color: #4C77B3;font-size: 22px;}
#mask{width: 100%;height: 100%;background: rgba(0,0,0,.8);position: fixed;left: 0;top: 0;z-index: 20;display: none;}
/* #text3{float: left;padding-left: 20px;padding-right: 20px;margin-top: 4px;} */
#text4{font-size: 20px;font-weight: 600;display: block;}
.mask-plane {position: absolute;height: 100%;width: 100%;top: 0;left: 0;background: rgba(0,0,0,.5);pointer-events: none;-webkit-filter: blur(15px);z-index: 20;}
#toLeft{width: 30px;position: absolute;left: 0;top: 75px;}
#toRight{width: 30px;position: absolute;right: 0;top: 75px;}
#page{display: block;width: 100%;text-align: center;}
#text3{height: 110px;overflow-y: auto;display: inline-block;padding:5px 4px 5px 5px;box-sizing: border-box;}
#loadingImg{width: 100%;height: 50%;background-repeat: no-repeat;background-position: center;background-size: contain;position: absolute;top:25%;text-align: center;filter: blur(7px);}
#progress{position: absolute;top:70%;left: calc(50% - 100px);z-index: 10;width: 200px;}
.szImg{width: 72px;height:72px;object-fit: none;object-position: 0px 0px;-webkit-touch-callout: none;pointer-events: none; position: relative;left: 0;top: 0;}
.zgImg{width: 72px;height:72px;object-fit: none;object-position: -72px 0;-webkit-touch-callout: none;pointer-events: none; position: relative;left: 0;top: 0;}
.bzImg{width: 72px;height:72px;object-fit: none;object-position: -144px 0;-webkit-touch-callout: none;pointer-events: none; position: relative;left: 0;top: 0;}
.bzImg.active,#knowledge:hover .bzImg{object-position: -144px -72px;}
.bdImg{width: 72px;height:72px;object-fit: none;object-position: -50px 0px;-webkit-touch-callout: none;pointer-events: none; position: relative;left: 0;top: 0;}
.calImg{width: 72px;height:72px;object-fit: none;object-position: -360px 0;-webkit-touch-callout: none;pointer-events: none; position: relative;left: 0;top: 0;}
.calImg.active,#calDom:hover .calImg{object-position: -360px -72px;}
.tpImg{width: 72px;height:72px;object-fit: none;object-position: -50px -150px;-webkit-touch-callout: none;pointer-events: none; position: relative;left: 0;top: 0;}
.bzImg_2{width: 72px;height:72px;object-fit: none;object-position: 0px -100px;-webkit-touch-callout: none;pointer-events: none; position: relative;left: 0;top: 0;}
.bdImg_2{width: 72px;height:72px;object-fit: none;object-position: 0px -200px;-webkit-touch-callout: none;pointer-events: none; position: relative;left: 0;top: 0;}
.rig_bot{width: 72px;height:72px;object-fit: none;object-position: -216px 0;-webkit-touch-callout: none;pointer-events: none; position: relative;left: 0;top: 0;}
.slider {
    position: absolute;
    cursor: ew-resize;
    width: 36px;
    height: 36px;
    padding:10px;
    background: url(drag.png) no-repeat;
    background-position: center;
    background-size: 100% 100%;
    top: calc(50% - 20px);
    left: calc(50% - 29px);
    display: none;
    z-index:10;
}
#audioDom{
    position: absolute;
    top:44px;
    right:44px;
    padding:8px 10px 8px 29px;
    z-index:10;
    cursor: pointer;
    background: url(./image/audio-icon.png) no-repeat;
    background-position:10px center;
    background-color: rgb(113, 22, 21);
    border-radius: 10px;
    color:rgb(255, 247, 212);
}
img{
    font-size: 0;
    color: transparent;
}
.thumbnailImg{
    display: block;
    margin: 20px auto 0;
    height:280px;
    border-radius: 20px;
}
.thumbnailImg[src]:is([src=""]){
    display: none;
}
.sizeImg{
    position: absolute;
    bottom:50px;
    right:25px;
}
.textDom{
    height: 250px;
    overflow-y: auto;
    padding-right:20px;
    margin: 333px 35px 35px 35px;
    box-sizing: border-box;
    color:#444;
    font-size:16px;
    text-align: justify;
}
.thumbnailImg[src]:not([src=""]) + .textDom {
    margin-top: 30px;
}
.textDom .point{
    text-decoration: underline;
    color:#315efb;
    cursor: pointer;
}
.detail-box{
    padding-top:20px;
}
#detail-title{
    display: inline-block;
    min-width:255px;
    height:64px;
    /* padding: 0 10px; */
    line-height: 64px;
    font-size:38px;
    /* background: url(./image/title-bg.png) no-repeat; */
    /* background-size: 100% 100%; */
    text-align: left;
}
#detail-des{
    display: flex;
    padding:8px 0;
    font-size:20px;
}
#detail-des li{
    color: rgb(255, 247, 212);
    font-size:20px;
    padding:0 10px;
    border-right: 1px solid rgb(255, 247, 212);
}
#detail-des li:first-child{
    padding-left:0;
}
#detail-des li:last-child{
    border-right:none;
}
#detail-local{
    display: inline-block;
    padding:3px 10px 3px 33px;
    background: url(./image/local-point.png) no-repeat;
    background-color: rgba(24, 1, 1, 0.4);
    background-position: 10px center;
    border-radius: 4px;
    font-size:16px;
    border-radius: 4px;
    color:rgb(255, 247, 212);
}
.local-label,.msg-label,.character-label{
    color:rgb(255, 234, 140);
}
#detail-content{
    /* display: flex; */
    margin-top: 15px;
    color:rgb(255, 247, 212);
    font-size:16px;
    line-height: 24px;
    height:200px;
}
.detail-character{
    margin-bottom:10px;
    padding:10px 10px 10px 33px;
    /* width: 405px; */
    max-height: 90px;
    background: url(./image/character-icon.svg) no-repeat;
    background-position: 10px 15px;
    background-color: rgba(24, 1, 1,0.4);
    border-radius: 4px;
    overflow-y: auto;
}
.detail-msg{
    padding:10px 10px 10px 33px;
    /* width: 405px; */
    max-height: 130px;
    background: url(./image/msg-icon.svg) no-repeat;
    background-position: 10px 15px;
    background-color: rgba(24, 1, 1,0.4);
    border-radius: 4px;
    overflow-y: auto;
}
#tpBox{
    position: relative;
    z-index:-1;
}
#stage-plane{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: #cdccd0;
}
.btnGroup{
    display: flex;
    position: fixed;
    bottom:120px;
    left:43%;
    z-index:1;
}
.opsBtn{
    padding:10px 34px;
    border:2px solid #000;
    border-radius: 8px;
    color:#fff;
    background: #000;
    font-size:30px;
    cursor: pointer;
}
.opsBtn:first-child{
    border-top-right-radius:0;
    border-bottom-right-radius:0;
}
.opsBtn:nth-child(2){
    border-top-left-radius:0;
    border-bottom-left-radius:0;
    border-left:0;
}
.opsBtn.currBtn{
    color:#080505;
    background: #fff;
}
#tpDom{
    display:none;
}
#bottom div#bd{
    display:none;
}
.main-top{
    position: relative;
    margin:50px 50px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}
#msgName{
    display: inline-block;
    color:#fff;
    font-size:48px;
    font-weight: 700;
}
.font{
    display: inline-block;
    padding:12px;
    margin-right:10px;
    background: linear-gradient(rgb(229, 196, 101),
    rgb(249, 223, 148));
    color:#2E1E0B;
    font-size:24px;
    border-radius: 8px;
    vertical-align: text-top;
}
.btn-toggle{
    display: flex;
    color:rgb(229, 196, 101);
    font-size:38px;
    align-items: center;
    cursor: pointer;
}
.btn-toggle label{
    display: inline-block;
    padding:3px 10px 0;
}
.toggle-icon{
    display: inline-block;
    width:50px;
    height:50px;
    background: url(../../assets/image/toggle-icon-3d.png) no-repeat;
    background-size: 200% 500%;
    background-position: -50px 0;
}
.triangle {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgb(229, 196, 101);
}
.sider{
    position: absolute;
    top:125px;
    width:140px;
    display: flex;
    flex-direction: column;
    z-index:10;
}
.sider.hidden{
    display: none;
}
.sider.left-sider{
    left:70px;
}
.sider.right-sider{
    right:70px;
}
.sider-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom:10px;
    width:100%;
    height:140px;
    background: url(../../assets/image/btn-bg.png) no-repeat;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
}
.sider-item.active{
    color:rgb(229, 196, 101)
}
.sider-item span{
    display: block;
    width:50px;
    height:50px;
    margin-bottom:10px;
    background: url(../../assets/image/toggle-icon-3d.png) no-repeat;
    background-position: 0 0;
}
.sider-item:first-child span{background-position: 0 0;}
.sider-item:nth-child(2) span{background-position: 0 -50px;}
.sider-item:nth-child(3) span{background-position: 0 -100px;}
.sider-item:nth-child(4) span{background-position: 0 -150px;}
.sider-item:nth-child(5) span{background-position: 0 -200px;}
.sider-item:first-child.active span{background-position: -50px 0;}
.sider-item:nth-child(2).active span{background-position: -50px -50px;}
.sider-item:nth-child(3).active span{background-position: -50px -100px;}
.sider-item:nth-child(4).active span{background-position: -50px -150px;}
.sider-item:nth-child(5).active span{background-position: -50px -200px;}
/* 添加太阳控制器样式 */
.progress-container {
    position: fixed;
    bottom: 30px;
    right: 60px;
    width: 180px;
    height: 180px;
    pointer-events: all;
    z-index: 5;
}

.progress-circle {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
}

.sun-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    transform: rotate(90deg);
    /* 
    太阳图标的运动路径
    M 30,0 - 起始点,从圆形顶部中心开始
    a 30,30 - 圆弧半径为30px
    0 1,1 - 圆弧旋转角度和方向标志
    0,60 - 圆弧终点相对坐标
    a 30,30 0 1,1 0,-60 - 闭合圆形的第二条圆弧
    
    修改方法:
    1. 调整数字30可以改变圆形大小
    2. 调整60可以改变圆形高度
    3. 保持比例关系(半径:高度=1:2)以维持圆形
    */
    offset-path: path('M 90,0 a 90,90 0 1,1 0,180 a 90,90 0 1,1 0,-180');
    offset-rotate: auto;
    cursor: pointer;
}

.sun-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: 50%;
    background: url('./image/sun.svg') no-repeat center center;
    background-size: contain;
    z-index: 1;
}

/* 添加中心正方形样式 */
.center-square {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    /* 正方形大小 */
    height: 60px;
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
}