body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #fff;
    transition: background-color 0.8s ease; /* 平滑过渡到红色 */
}

#ui-container {
    position: absolute;
    left: 60px;
    top: 60px;
    z-index: 10;
}

.time-display {
    font-size: 28px;
    color: #333;
    margin-bottom: 50px;
}

.label {
    font-size: 16px;
    color: #aaa;
    margin: 0;
    letter-spacing: 2px;
}

.value {
    font-size: 72px;
    margin: 10px 0 40px 0;
    font-weight: 500;
}

#alarm-status {
    position: absolute;
    right: 40px;
    top: 40px;
    font-size: 30px;
    opacity: 0.2;
}

body.warning-active {
    background-color: #ff3b3b;
}

body.warning-active #alarm-status {
    opacity: 1;
    animation: blink 0.5s infinite alternate;
}

@keyframes blink {
    from { transform: scale(1); }
    to { transform: scale(1.3); }
}

/* .pan {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -30%);
    pointer-events: none;
} */

#pan-container {
    position: absolute;
    left: 50%;   /* 对应你参考图中的偏右位置 */
    top: 40%;
    transform: translate(-50%, -60%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1; /* 确保在 UI 文字层下方 */
}


#chart-entrance {
    position: relative;
    top: 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    z-index: 100;
    transition: transform 0.3s ease;
}

#chart-entrance:hover {
    transform: translateY(-5px);
}

.icon-circle {
    width: 50px;
    height: 50px;
    background-color: #f0f0f0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#chart-entrance span {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

body.warning-active #chart-entrance .icon-circle {
    background-color: rgba(255,255,255,0.2);
    color: white;
}
body.warning-active #chart-entrance span {
    color: white;
}

/* 如果你想让 canvas 响应式适配 div */
/* #pan-container canvas {
    max-width: 100%;
    height: auto !important;
} */