/* ============================================
   定制样式 - 滚动提示、返回顶部
   版本: 3.0
   ============================================ */

.scroll-down-hint {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.5s ease;
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: auto;
    padding: 0;
}

.scroll-hint-arrow {
    font-size: clamp(24px, 8vw, 32px);
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 20px rgba(129, 140, 248, 0.8), 0 0 40px rgba(129, 140, 248, 0.3);
    margin-bottom: -4px;
    animation: floatDown 2.5s ease-in-out infinite;
    transition: all 0.3s ease;
}

.scroll-hint-text {
    font-size: clamp(12px, 4vw, 13px);
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 12px rgba(129, 140, 248, 0.5);
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
}

.scroll-down-hint:hover .scroll-hint-arrow {
    color: #fff;
    text-shadow: 0 0 28px rgba(129, 140, 248, 1), 0 0 48px rgba(129, 140, 248, 0.5);
}

/* 返回顶部按钮 */
.scroll-top-hint {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 999;
    opacity: 0;
    cursor: pointer;
    display: none;
    pointer-events: auto;
    background: rgba(129, 140, 248, 0.35);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-align: center;
    line-height: 44px;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 24px rgba(129, 140, 248, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-top-hint:hover {
    background: rgba(129, 140, 248, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 8px 36px rgba(129, 140, 248, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.scroll-top-hint::after {
    content: "↑";
}

@keyframes floatDown {
    0%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    50% {
        transform: translateY(-14px) translateX(-50%);
    }
}

/* 移动端 */
@media (hover: none) {
    .scroll-down-hint {
        bottom: 60px;
    }

    .scroll-top-hint {
        bottom: 90px;
        right: 20px;
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    .scroll-down-hint:active {
        transform: translateX(-50%) scale(0.92);
        opacity: 0.4 !important;
    }

    .scroll-top-hint:active {
        transform: scale(0.9);
        opacity: 0.4 !important;
    }
}

@media screen and (max-width: 480px) {
    .scroll-top-hint {
        bottom: 80px;
        right: 16px;
        width: 38px;
        height: 38px;
        line-height: 38px;
        font-size: 18px;
    }
}
