
/* =====回到顶部与锚点

Top 按钮 ===== */
#backTop {
    position: fixed !important;
    bottom: 0.75rem !important;
    right: 0.15rem !important;
    z-index: 999999 !important;
    width: 0.55rem !important;
    height: 0.55rem !important;
    background: rgba(0, 122, 255, 0.92) !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 0.03rem 0.1rem rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease !important;
    opacity: 0 !important;
    pointer-events: none !important;
    user-select: none !important;
    border: 0.01rem solid rgba(255,255,255,0.2) !important;
    flex-direction: column !important;
    line-height: 1.2 !important;
    padding: 0 !important;
}

#backTop.show {
    opacity: 1 !important;
    pointer-events: auto !important;
}

#backTop:active {
    transform: scale(0.92) !important;
}

#backTop .btn-icon {
    font-size: 0.26rem !important;
    line-height: 0.26rem !important;
}

#backTop .btn-label {
    font-size: 0.16rem !important;
    line-height: 0.20rem !important;
    font-weight: normal !important;
}

/* 提示标签 */
#backTop .mode-hint {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 0.1rem;
    padding: 0.02rem 0.08rem;
    border-radius: 0.04rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
#backTop:hover .mode-hint {
    opacity: 1;
}

/* ===== 弹出菜单 - 独立于 #backTop 外部 ===== */
#anchorPopup {
    display: none !important;
    position: fixed !important;
    bottom: 1.4rem !important;
    right: 0.15rem !important;
    min-width: 2.4rem !important;
    max-width: 3rem !important;
    max-height: 4rem !important;
    background: #fff !important;
    border-radius: 0.08rem !important;
    box-shadow: 0 0.05rem 0.25rem rgba(0,0,0,0.4) !important;
    padding: 0.06rem 0 !important;
    z-index: 9999999 !important;
    overflow-y: auto !important;
    border: 0.01rem solid #e0e0e0 !important;
    pointer-events: auto !important;
}

#anchorPopup.show {
    display: block !important;
}

#anchorPopup .popup-title {
    padding: 0.06rem 0.14rem !important;
    font-size: 0.13rem !important;
    font-weight: bold !important;
    color: #007AFF !important;
    border-bottom: 0.01rem solid #eee !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: sticky !important;
    top: 0 !important;
    background: #fff !important;
    z-index: 1 !important;
    pointer-events: auto !important;
}

#anchorPopup .popup-title .close-btn {
    cursor: pointer !important;
    font-size: 0.16rem !important;
    color: #999 !important;
    padding: 0 0.04rem !important;
    font-weight: normal !important;
    pointer-events: auto !important;
}

#anchorPopup .popup-title .close-btn:hover {
    color: #333 !important;
}

/* 锚点链接 */
#anchorPopup .anchor-link {
    display: block !important;
    padding: 0.07rem 0.14rem !important;
    color: #333 !important;
    text-decoration: none !important;
    font-size: 0.13rem !important;
    border-bottom: 0.01rem solid #f0f0f0 !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: background 0.15s !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    pointer-events: auto !important;
}
#anchorPopup .anchor-link:last-child {
    border-bottom: none !important;
}
#anchorPopup .anchor-link:hover {
    background: #e8f0fe !important;
}
#anchorPopup .anchor-link:active {
    background: #d0e0f8 !important;
}
#anchorPopup .anchor-link .item-icon {
    margin-right: 0.06rem !important;
}

/* 遮罩 */
#anchorMask {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999997 !important;
    background: rgba(0,0,0,0.15) !important;
}
#anchorMask.show {
    display: block !important;
}

/* 滚动条美化 */
#anchorPopup::-webkit-scrollbar {
    width: 0.04rem !important;
}
#anchorPopup::-webkit-scrollbar-track {
    background: #f0f0f0 !important;
    border-radius: 0.02rem !important;
}
#anchorPopup::-webkit-scrollbar-thumb {
    background: #ccc !important;
    border-radius: 0.02rem !important;
}

/* 锚点高亮动画 */
@keyframes anchorHighlight {
    0% { background-color: rgba(0, 122, 255, 0.4); }
    100% { background-color: transparent; }
}
.anchor-highlight {
    animation: anchorHighlight 1.5s ease-out;
}

/* 锚点标题样式 */
.lc6 .hlf {
    display: flex;
    align-items: center;
    gap: 0.05rem;
}

.anchor-icon {
    display: inline-block;
    font-size: 0.16rem;
}


