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;
}

.nav-link2 {
    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-link3 {
    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-link3: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: 55%;
}

.BOX2-1-1 {
    height: 30%;
    width: 100%;
    padding-top: 20px;
    margin-left: 50px;
    display: flex;
    align-items: flex-end;
}

.field {
    position: relative;          
    width: 600px;              
    height: 120px;
}

.peashooter {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 75px;
}

.pea {
    position: absolute;
    width: 18px;
    height: 18px;
    background: #05dede;
    border-radius: 50%;
    pointer-events: none;
}

.target {
    position: absolute;        
    left: 300px;               
    bottom: 0;
    width: 210px;
}


.box {
    height: 70%;
    width: 100%;
    display: flex;
}

.BOX2-1-2 {
    height: 100%;
    width: 45%;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}

#Tobacco_vs_SHSHealth {
    width: 100%;
    height: 340px;
    margin-top: 20px;
    box-shadow: 0 2px 10px #3c5b61;
    border-radius: 20px;
}

.BOX2-1-3 {
    height: 100%;
    width: 53%;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
}

.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 19px;
    width: 100%;
    height: 100%;
}

.pie-chart {
    width: 320px;
    height: 342px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px #3c5b61;
}


.container {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 12px;
    box-shadow: 0 2px 10px #3c5b61;
}

#bubbleChart {
    width: 100%;
    height: 495px;
    min-width: 400px;
}

.BOX2-2 {
    height: 100%;
    width: 45%;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    box-sizing: border-box;
    margin-top: 10px;
}


/* ============================================
   图片版肺部卡通人物
   ============================================ */

.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-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);
}