/* —— 正文中的脚注触发器样式 —— */
.fn {
    cursor: crosshair;
    color: #988b32;
    font-size: 0.9em;
    font-weight: normal;
    font-family: 'ZCOOLQingKeHuangYou-Regular', monospace;
    border-bottom: 1px dashed #988b32;
    padding: 0 2px;
    transition: all 0.3s ease;
}

.fn:hover {
    color: #fff;
    background: rgba(152, 139, 50, 0.2);
    text-shadow: 0 0 5px rgba(152, 139, 50, 0.8);
}

#fn-popup {
    position: fixed;
    top: 40px;
    left: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    padding: 25px 15px 15px 15px;
    background: rgba(10, 15, 10, 0.95);
    border: 1px solid #988b32;
    box-shadow:
        0 0 15px rgba(152, 139, 50, 0.15),
        inset 0 0 10px rgba(152, 139, 50, 0.1);
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.7;
    text-align: justify;
    z-index: 9999;
    opacity: 0;
    transform: translateX(-15px);
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

#fn-popup::before {
    content: '[ 附加数据 RECORD ]';
    position: absolute;
    top: 0;
    left: 0;
    background: #988b32;
    color: #000;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 8px;
    font-family: 'ZCOOLQingKeHuangYou-Regular', monospace;
    letter-spacing: 1px;
}

#fn-popup.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

#fn-popup a {
    color: #988b32;
    text-decoration: none;
}

#fn-popup a:hover {
    text-decoration: underline;
}
