body {
    background-color: #163160;
}

.BOX1 {
    height: 8%;
    background-color: #163160;
}

.nav {
    height: 60%;
    width: 100%;
    list-style: none;
    display: flex;
    margin-top: -15px;
    margin-left: 370px;
}

.nav-item {
    margin: 10px;
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 0px 0px;
    margin-bottom: 0px;
    display: flex;
}

.nav-link3 {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    padding: 4px 6px;
    display: inline-block;
    background-color: #031c47;

}

.nav-link1 {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 4px 6px;
}

.nav-link2 {
    color: #ffffff;
    text-decoration: none;
    display: block;
    padding: 4px 6px;
}

.nav-link1:hover {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    font-size: 17px;
    font-weight: 700;
    background-color: #163160;
}

.nav-link2:hover {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    font-size: 17px;
    font-weight: 700;
    background-color: #163160;
}

.BOX2 {
    height: 90%;
    margin-top: -17px;
    background-color: #163160;
    display: flex;
}

.BOX2-1 {
    height: 100%;
    width: 30%;
}

.BOX2-1-1 {
    height: 30%;
    width: 100%;
    padding-top: 20px;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

.control-data-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.control-data-list li {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    /* 渐变球体：从青色到蓝色，模拟科技感金属光泽 */
    background: radial-gradient(circle at 30% 30%, #02f3ef, #0066cc);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 0 20px rgba(2, 243, 239, 0.4),

        0 0 40px rgba(0, 102, 204, 0.3),

        inset 0 0 15px rgba(255, 255, 255, 0.3);
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.BOX2-1-1 ul {
    list-style: none;
    display: flex;
}

.control-data-list li>div {
    text-align: center;
    color: #ffffff;
    z-index: 1;
    padding: 10px;
}

.control-data-list li p:first-child {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px 0;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.control-data-list li p:last-child {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 8px rgba(2, 243, 239, 0.8);
    letter-spacing: 1px;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }

    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.control-data-list li>div {
    animation: float 4s ease-in-out infinite;
}

/* 错开动画时间，营造错落效果 */
.control-data-list li:nth-child(1)>div {
    animation-delay: 0s;
}

.control-data-list li:nth-child(2)>div {
    animation-delay: 0.5s;
}

.control-data-list li:nth-child(3)>div {
    animation-delay: 1s;
}

.control-data-list li:nth-child(4)>div {
    animation-delay: 1.5s;
}


#chart {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    margin-top: 60px;
    padding-top: 15px;
}

.BOX2-2 {
    height: 100%;
    width: 40%;
    padding-top: 5px;
    margin: 10px 10px;
}


#heatMapContainer {
    width: 100%;
    height: 495px;
}

.BOX2-3 {
    height: 100%;
    width: 30%;
    display: flex; 
    flex-direction: column; 
}

.BOX2-3-2 {
    height: 33%;
    width: 100%;
}

#secondhand-smoke-rate-chart {
    width: 100%;
    height: 330px;
    margin-top: 70px;
}

.BOX2-3-3 {
    height: 33%;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

#smoking-related-diseases-chart {
    width: 100%;
    height: 100%;
    margin-top: -40px;
    min-width: 330px;
    min-height: 230px;
}




/* ============================================
   图片版肺部卡通人物
   ============================================ */

.global-lung-character {
    position: fixed;
    width: 85px;
    height: 85px;
    z-index: 9999;
    cursor: pointer;
    pointer-events: all;
    /* 左上角固定定位 */
    top: 20px;
    left: 20px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 图片样式 */
.character-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
}

.global-lung-character:hover .character-image {
    transform: scale(1.08);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* 飞行动画（无旋转） */
.global-lung-character.flying {
    animation: smoothFly 0.5s ease-in-out;
}

@keyframes smoothFly {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.speech-bubble {
    position: absolute;
    top: 50%;
    left: 95px;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #000000;
    border-radius: 15px;
    padding: 14px 18px;
    min-width: 200px;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 0 #333333, 0 6px 8px rgba(0, 0, 0, 0.2);
}

.speech-bubble.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

.bubble-arrow::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #ffffff;
    border: 3px solid #000000;
    border-right: none;
    border-bottom: none;
    transform: translateY(-50%) rotate(-45deg);
}

/* 提示文字 */
.bubble-text {
    margin: 0;
    font-size: 13px;
    color: #000000;
    line-height: 1.5;
    text-align: left;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.bubble-text strong {
    color: #0056b3;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

/* 空闲浮动动画 */
.global-lung-character.idle {
    animation: floatIdle 3s ease-in-out infinite;
}

@keyframes floatIdle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* 模块联动效果 */
[data-lung-character-bound="true"] {
    transition: all 0.3s ease;
    cursor: pointer;
}

[data-lung-character-bound="true"]:hover {
    box-shadow: 0 0 12px rgba(0, 123, 255, 0.3);
}