/* AutoLink 智能内链助手 前端样式 */
.autolink-keyword {
    display: inline-block;
    padding: 2px 0;
    margin: 0;
    color: inherit;
    font-weight: normal;
    border: 2px dashed transparent;
    transition: border-color 0.2s ease;
    cursor: default;
    white-space: nowrap;
    line-height: inherit;
    animation: borderPulse 3s infinite ease-in-out;
}

.autolink-keyword:hover,
.autolink-keyword.keep-border {
    border-color: #1e7eff;
    animation: none;
}

.autolink-tooltip {
    position: fixed;
    background-color: transparent;
    color: #0047b3;
    border-radius: 48% 52% 50% 50% / 50% 50% 50% 50%;
    border: 2px dashed #1e7eff;
    box-shadow: 0 4px 12px rgba(0, 70, 150, 0.1);
    padding: 20px 24px;
    z-index: 9999;
    width: 300px;
    font-size: 0.95rem;
    display: none;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.autolink-tooltip::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: transparent;
    border-radius: inherit;
    pointer-events: none;
}

.autolink-tooltip a {
    color: #0066cc;
    text-decoration: none;
    border-bottom: 1px dotted #4a8cff;
    display: inline;
    margin-bottom: 0;
    transition: all 0.2s;
}

.autolink-tooltip a:hover {
    color: #003d99;
    border-bottom: 1px solid #003d99;
}

.autolink-connector {
    position: fixed;
    height: 2px;
    background: repeating-linear-gradient(90deg, #1e7eff, #1e7eff 6px, transparent 6px, transparent 12px);
    background-size: 12px 2px;
    transform-origin: left center;
    pointer-events: auto;
    z-index: 9998;
    display: none;
    border-radius: 1px;
}

.autolink-connector::after {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    left: -4px;
    right: -4px;
    background: transparent;
    pointer-events: auto;
}
