/* Logo 容器：核心定位参考 */
.cxlogo {
    position: relative;
    display: inline-block;
    /* z-index: 9999; */
    overflow: visible;

    /* ========== 自定义参数 ========== */
    --tip-padding: 2px 4px;
    --tip-bg-color: #ff6700;
    --tip-text-color: #ffffff;
    --tip-text-size: 12px;
    --tip-border-radius: 6px;
    --tip-position-top: -25px;
    --tip-position-right: 0px;
    --breath-duration: 2s;
    /* 提示图与logo的间距（可自定义） */
    --guide-gap: -20px;
}

/* 右上角收藏提示框 */
.guid-tips::before {
    content: "按Ctrl+D键，快速收藏本站";
    position: absolute;
    top: var(--tip-position-top);
    right: var(--tip-position-right);
    width: fit-content;
    height: fit-content;
    padding: var(--tip-padding);
    background-color: var(--tip-bg-color);
    color: var(--tip-text-color);
    font-size: var(--tip-text-size);
    border-radius: var(--tip-border-radius);
    text-align: center;
    white-space: nowrap;
    animation: breath var(--breath-duration) infinite ease-in-out;
    z-index: 10001;
    pointer-events: none;
    box-sizing: border-box;
}

/* 下方引导提示图：动态 top 适配 */
.guid-tips::after {
    content: "";
    position: absolute;
    /* 核心：100% 是logo的底部，+ --guide-gap 是额外间距 */
    top: calc(0% + var(--guide-gap));
    left: 0;
    width: 300px;
    height: 120px;
    background: url('../images/guide-drag.webp') center/contain no-repeat;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* 过渡动画保留 */
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    /* 防止滚动时溢出遮挡 */
    box-sizing: border-box;
}

/* hover 显示提示图 */
.guid-tips.show-tip::after {
    opacity: 1;
    visibility: visible;
}

/* 呼吸动画 */
@keyframes breath {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* .cxlogo {
        --tip-text-size: 8px;
        --tip-padding: 3px 6px;
        --tip-position-top: -8px;
        --tip-position-right: -8px;
        --guide-gap: 3px; /* 移动端缩小间距 */
    } */
    .guid-tips::after {
        left: 50%;
        transform: translateX(-50%);
        width: 200px;
        height: 80px;
    }
}