/* 提示工具样式 */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
    vertical-align: middle;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #f9f9f9;
    color: #aaaaaa;
    font-size: 10px;
    text-align: center;
    cursor: help;
    border: 0px solid #e0e0e0;
    transition: all 0.2s ease;
}

.tooltip:hover .tooltip-icon {
    background: #f0f0f0;
    color: #888888;
    border-color: #d0d0d0;
}

.tooltip-text {
    visibility: hidden;
    width: 220px;
    background-color: #fff;
    color: #333;
    text-align: left;
    border-radius: 8px;
    padding: 12px 15px;
    position: absolute;
    z-index: 100;
    bottom: 135%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid rgba(74, 144, 226, 0.15);
    transform: translateY(10px);
    letter-spacing: 0.3px;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #fff transparent transparent transparent;
    filter: drop-shadow(0 2px 1px rgba(0,0,0,0.05));
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* 确保提示框在权益项内正确显示 */
.menus-item-use-item span {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* 提示框标题样式 */
.tooltip-title {
    font-weight: bold;
    margin-bottom: 5px;
    color: #4a90e2;
    font-size: 14px;
    border-bottom: 1px solid rgba(74, 144, 226, 0.1);
    padding-bottom: 5px;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .tooltip-text {
        width: 180px;
        margin-left: -90px;
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .tooltip {
        margin-left: 3px;
    }
    
    .tooltip-icon {
        width: 12px;
        height: 12px;
    }
    
    .tooltip-icon svg {
        width: 6px;
        height: 6px;
    }
}