.aisg-term {
    position: relative;
    cursor: help;
    color: #2563eb;
    box-shadow: 0 -2px 0 rgba(37, 99, 235, 0.35) inset;
    transition: color 0.15s ease, box-shadow 0.15s ease;
}

.aisg-term:hover {
    color: #1e40af;
    box-shadow:
        0 -2px 0 rgba(37, 99, 235, 0.6) inset,
        0 1px 0 rgba(15, 23, 42, 0.05);
}

/* tooltip 容器 */
.aisg-tooltip {
    position: absolute;
    z-index: 9999;
    max-width: 260px;
    transform: translate(-50%, -8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.aisg-tooltip-inner {
    background: #111827;
    color: #e5e7eb;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.45),
        0 0 0 1px rgba(15, 23, 42, 0.6);
}

.aisg-tooltip-arrow {
    position: absolute;
    left: 50%;
    bottom: -6px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #111827 transparent transparent transparent;
    transform: translateX(-50%);
}

.aisg-tooltip-visible {
    opacity: 1;
    transform: translate(-50%, -12px);
}

/* 移动端适配 */
@media (max-width: 640px) {
    .aisg-tooltip {
        max-width: 80vw;
    }
}
