﻿/* 浮动按钮容器 */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 浮动按钮样式 */
.floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    font-size: 18px;
    color: white;
    border: none;
    outline: none;
    pointer-events: auto;
}

/* 回到顶部按钮 */
.floating-button-top {
    background-color: #007bff;
    display: none; /* 初始隐藏 */
}

    .floating-button-top:hover {
        background-color: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

/* 快速发表文章按钮 */
.floating-button-publish {
    background-color: #28a745;
}

    .floating-button-publish:hover {
        background-color: #1e7e34;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

/* 按钮点击效果 */
.floating-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }

    .floating-button {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .floating-buttons {
        right: 10px;
        bottom: 10px;
    }

    .floating-button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* 确保不会被其他元素遮挡 */
.floating-buttons {
    pointer-events: auto;
}
