/* 单词泡泡龙游戏样式 */

/* 游戏容器 */
.word-bubble-container {
    position: relative;
    width: 100%;
    height: 600px;
    background-color: #f0f8ff;
    border-radius: 10px;
    overflow: hidden;
}

/* 泡泡容器 */
.bubble-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    padding: 0 10px;
    box-sizing: border-box;
}

/* 词义选择区域 */
.meaning-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 80px;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    /* 防止文本选择 */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 词义选择区域内容容器 */
.meaning-container-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    width: 100%;
}

/* 大炮容器 */
.cannon-container {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 100%;    
    padding: 5px;
    box-sizing: border-box;
    z-index: 5;
    border-bottom: 2px solid #eaa48a;
}

/* 词义按钮 */
.meaning-button {
    padding: 8px;
    color: #fd1c7a;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    min-width: 60px;
    min-height: 40px;
    max-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-width: 0;
}

/* 词义按钮选中状态 */
.meaning-button.selected {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.4);
}

/* 词义按钮悬停状态 */
.meaning-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 词义按钮选中状态悬停 */
.meaning-button.selected:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.5);
}

/* 媒体查询 - 平板设备 */
@media (max-width: 1024px) {
    .meaning-button {
        font-size: 13px;
        padding: 7px 12px;
        max-width: 180px;
    }
}

/* 媒体查询 - 手机设备 */
@media (max-width: 768px) {
    .meaning-button {
        font-size: 12px;
        padding: 6px 10px;
        max-width: 150px;
        min-width: 50px;
        min-height: 35px;
    }
}

/* 媒体查询 - 小屏幕手机 */
@media (max-width: 480px) {
    .meaning-button {
        font-size: 11px;
        padding: 5px 8px;
        max-width: 120px;
        min-width: 45px;
        min-height: 32px;
    }
}

/* 媒体查询 - 超小屏幕手机 */
@media (max-width: 360px) {
    .meaning-button {
        font-size: 10px;
        padding: 4px 6px;
        max-width: 100px;
        min-width: 40px;
        min-height: 30px;
    }
}

/* 大炮 */
.cannon {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 53px;
    background-image: url('../images/dapao.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    z-index: 6;
}

/* 媒体查询 - 平板设备 */
@media (max-width: 1024px) {
    .cannon {
        width: 35px;
        height: 47px;
    }
}

/* 媒体查询 - 手机设备 */
@media (max-width: 768px) {
    .cannon {
        width: 30px;
        height: 40px;
    }
}

/* 媒体查询 - 小屏幕手机 */
@media (max-width: 480px) {
    .cannon {
        width: 25px;
        height: 33px;
    }
}

/* 媒体查询 - 超小屏幕手机 */
@media (max-width: 360px) {
    .cannon {
        width: 20px;
        height: 27px;
    }
}



/* 泡泡 */
.bubble {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s ease;
    /* 透明玻璃罩效果 */
    box-shadow: 
        0 2px 5px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.4),
        inset 0 -1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
}

/* 媒体查询 - 平板设备 */
@media (max-width: 1024px) {
    .bubble {
        width: 85px;
        height: 85px;
        font-size: 18px;
    }
}

/* 媒体查询 - 手机设备 */
@media (max-width: 768px) {
    .bubble {
        width: 75px;
        height: 75px;
        font-size: 16px;
    }
}

/* 媒体查询 - 小屏幕手机 */
@media (max-width: 480px) {
    .bubble {
        width: 65px;
        height: 65px;
        font-size: 14px;
    }
}

/* 媒体查询 - 超小屏幕手机 */
@media (max-width: 360px) {
    .bubble {
        width: 60px;
        height: 60px;
        font-size: 12px;
    }
}

/* 炮弹 */
.projectile {
    position: absolute;
    width: 38px;
    height: 38px;
    background-image: url('../images/paodan.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 10;
}

/* 爆炸动画 */
@keyframes bubblePop {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}
