// 页面容器 .lighting-box { // width: 100%; // height: 100%; position: relative; // background: linear-gradient(#badaff, #8cabeb, #7095de); // 照明设备功能总容器 .lighting-img-box { position: relative; width: 1280px; height: 720px; user-select: none; background-image: url(../image/bg.jpg); // 由于背景是俯视图,会产生有交点的透视效果,故使用透视属性 perspective: 1000px; perspective-origin: 850px -160px; // 左上角区域切换功能 .btn-box { width: 120px; position: sticky; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 8px; .btn-item { cursor: pointer; width: 100%; height: 40px; border-radius: 4px; background: rgba(39, 120, 255, 1); border: 1px solid rgba(51, 199, 255, 1); box-shadow: 0px 10px 15px rgba(0, 54, 136, 0.3); font-size: 18px; color: white; } .btn-item:hover { color: black; } } // 大区分区 .area{ position: absolute; bottom: 170px; left: 240px; width: 780px; height: 240px; transform: rotateX(79deg) rotateZ(-22deg) skew(29deg); display: flex; gap: 8px; .area1 { width: 170px; background: rgba(0, 251, 91, 0.3); border: 2px solid rgb(0, 251, 91); display: flex; } .area2 { width: 240px; background: rgba(255, 165, 0, 0.3); border: 2px solid rgb(255, 165, 0); display: flex; } .area3 { width: 110px; background: rgba(255, 0, 0, 0.3); border: 2px solid rgb(255, 0, 0); } .area4 { flex: 1; background: rgba(80, 236, 244, 0.3); border: 2px solid rgb(80, 236, 244); } // .area-item:hover { // transform: scale(1.05); // } .area-item { cursor: pointer; transition: all ease 0.2s; >.light-group { height: 100%; flex: 1; display:flex; justify-content: center; align-items: center; .group-shadow1 { width: 35px; height: 150px; border-radius: 20px; background: rgba(0, 0, 0, 0.1); } .group-shadow2 { width: 35px; height: 180px; border-radius: 20px; background: rgba(0, 0, 0, 0.1); } .group-shadow3 { width: 40px; height: 180px; border-radius: 20px; background: rgba(0, 0, 0, 0.1); } .group-shadow4 { width: 40px; height: 160px; border-radius: 20px; background: rgba(0, 0, 0, 0.1); } } // .group-shadow { // transition: all ease 0.2s; // } // .group-shadow:hover { // transform: scale(1.05); // } } } } } // 总容器与抽屉按钮 .ns-content-main { position: relative; // 抽屉打开按钮 .drawer-box-in { width: 30px; height: 40px; border-radius: 2px; position: fixed; right: 0; top: 0; bottom: 0; margin: auto; background: rgba(0, 0 ,0 ,0.5); display: flex; justify-content: center; align-items: center; cursor: pointer; } // 抽屉关闭按钮 .drawer-box-out { width: 30px; height: 40px; border-radius: 2px; position: fixed; right: 496px; top: 0; bottom: 0; margin: auto; background: rgba(0, 0 ,0 ,0.5); display: flex; justify-content: center; align-items: center; cursor: pointer; } }