@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-4px);
    }
}

@keyframes scale {
    0%, 100% {
        transform: translateX(-50%) scale(1);
    }
    50% {
        transform: translateX(-50%) scale(1.15);
    }
}

html,
body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: auto !important;
    background: black;
}

/* Ensure scrollbars are visible
::-webkit-scrollbar {
    width: 12px !important;
    height: 12px !important;
}

::-webkit-scrollbar-track {
    background: #1a1a1a !important;
}

::-webkit-scrollbar-thumb {
    background: #555 !important;
    border-radius: 6px !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #777 !important;
}

/* Firefox */
/* {
    scrollbar-width: auto !important;
    scrollbar-color: #555 #1a1a1a !important;
} */

#app,
#container {
    width: 100%;
    height: 100%;
}

.tools-wrap {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    align-items: center;
}

.hot-wrap {
    width: 71px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hot-wrap .title-wrap {
    width: 100%;
    height: 32px;
    background: url('./images/frame-1.png') no-repeat center center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.hot-wrap .title-wrap>span {
    color: #fff;
    font-weight: bold;
    font-family: AlimamaShuHeiTi, AlimamaShuHeiTi;
}

.hot-wrap .diamond-wrap .diamond-item:nth-child(1) {
    position: absolute;
    left: 50%;
    top: 37px;
    transform: translateX(-50%);
    z-index: 2;
    width: 23px;
    height: 23px;
    background: url('./images/diamond-1.png') no-repeat center center;
    background-size: 100% 100%;
    animation: bounce 1.5s ease-in-out infinite;
}

.hot-wrap .diamond-wrap .diamond-item:nth-child(2) {
    position: absolute;
    left: 50%;
    top: 52px;
    transform: translateX(-50%);
    z-index: 1;
    width: 30px;
    height: 24px;
    background: url('./images/doughnut-1.png') no-repeat center center;
    background-size: 100% 100%;
    animation: scale 2s ease-in-out infinite;
    transform-origin: center center;
}

.area-title > span{
  font-size: 9px;
}

.hot-wrap.selected .title-wrap {
    width: 100%;
    height: 32px;
    background: url('./images/frame-2.png') no-repeat center center;
    background-size: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hot-wrap.selected .diamond-wrap .diamond-item:nth-child(1) {
    position: absolute;
    left: 50%;
    top: 37px;
    transform: translateX(-50%);
    z-index: 2;
    width: 23px;
    height: 23px;
    background: url('./images/diamond-2.png') no-repeat center center;
    background-size: 100% 100%;
    animation: bounce 1.5s ease-in-out infinite;
}

.hot-wrap.selected .diamond-wrap .diamond-item:nth-child(2) {
    position: absolute;
    left: 50%;
    top: 52px;
    transform: translateX(-50%);
    z-index: 1;
    width: 30px;
    height: 24px;
    background: url('./images/doughnut-2.png') no-repeat center center;
    background-size: 100% 100%;
    animation: scale 2s ease-in-out infinite;
    transform-origin: center center;
}

.hot-icon{
    width: 36px;
    height: 36px;
}
.hot-camera-icon{
    background: url('./images/camera.png') no-repeat center center;
    background-size: 100% 100%;
}
.hot-sound-icon{
    background: url('./images/sound.png') no-repeat center center;
    background-size: 100% 100%;
}
.hot-water-icon{
    background: url('./images/water.png') no-repeat center center;
    background-size: 100% 100%;
}
.hot-weather-icon{
    background: url('./images/weather.png') no-repeat center center;
    background-size: 100% 100%;
}
.gray-icon.hot-camera-icon{
    background: url('./images/camera-2.png') no-repeat center center;
    background-size: 100% 100%;
}
.gray-icon.hot-sound-icon{
    background: url('./images/sound-2.png') no-repeat center center;
    background-size: 100% 100%;
}
.gray-icon.hot-water-icon{
    background: url('./images/water-2.png') no-repeat center center;
    background-size: 100% 100%;
}
.gray-icon.hot-weather-icon{
    background: url('./images/weather-2.png') no-repeat center center;
    background-size: 100% 100%;
}

/* =========================================
   手动实现 Animate.css 中用到的动画
   避免引入整个库导致与 3D 模型冲突
   ========================================= */
:root {
  --animate-duration: 1s;
  --animate-delay: 1s;
  --animate-repeat: 1;
}

.animate__animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-duration: var(--animate-duration);
  animation-duration: var(--animate-duration);
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

.animate__faster {
  -webkit-animation-duration: 500ms;
  animation-duration: 500ms;
}

/* Slide In/Out Left (左侧面板) */
@keyframes slideInLeft {
  from {
    transform: translate3d(-100%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
.animate__slideInLeft {
  animation-name: slideInLeft;
}

@keyframes slideOutLeft {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(-100%, 0, 0);
  }
}
.animate__slideOutLeft {
  animation-name: slideOutLeft;
}

/* Slide In/Out Right (右侧面板) */
@keyframes slideInRight {
  from {
    transform: translate3d(100%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
.animate__slideInRight {
  animation-name: slideInRight;
}

@keyframes slideOutRight {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(100%, 0, 0);
  }
}
.animate__slideOutRight {
  animation-name: slideOutRight;
}

/* Slide In Up / Out Down (中间面板) */
@keyframes slideInUp {
  from {
    transform: translate3d(0, 100%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
.animate__slideInUp {
  animation-name: slideInUp;
}

@keyframes slideOutDown {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, 100%, 0);
  }
}
.animate__slideOutDown {
  animation-name: slideOutDown;
}

/* Flip In/Out X (气象数据翻转) */
@keyframes flipInX {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}
.animate__flipInX {
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  animation-name: flipInX;
}

@keyframes flipOutX {
  from {
    transform: perspective(400px);
  }
  30% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }
  to {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}
.animate__flipOutX {
  animation-duration: 0.75s;
  animation-name: flipOutX;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}


.hot-icon .info-box{
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    position: absolute;
    top: -70%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    white-space: nowrap;
    padding: 5px;
    border-radius: 5px;
}
.hot-icon:hover .info-box{
    visibility: visible;
}