tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
    margin-right: auto;
    vertical-align: middle;
    user-select: none;
}

/* 内部自动生成的图标样式 */
tooltip .tooltip-icon {
    color: #2196F3;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.15s;
}
tooltip .tooltip-icon:hover {
    color: #0b7dda;
}

/* 内部自动生成的提示气泡框 */
tooltip .tooltip-box {
    display: none; /* 默认隐藏 */
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    background-color: rgba(33, 33, 33, 0.95);
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 9999;
}

/* 气泡小箭头 */
tooltip .tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(33, 33, 33, 0.95) transparent transparent transparent;
}

/* 激活显示状态 */
tooltip.active .tooltip-box {
    display: block;
    animation: fadeInTooltip 0.15s ease-out;
}

@keyframes fadeInTooltip {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}