#sidebar {
    position: fixed;
    z-index: 9999;
    display: flex;
    backdrop-filter: blur(6px);
}

#sidebar.desktop {
    right: 1rem;
    top: 40%;
    flex-direction: column;
    gap: 1rem;
}

#sidebar.mobile {
    bottom: 0;
    left: 0;
    width: 100vw;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0;
}

/* 通用按鈕樣式 */
.sidebar-button {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: transform 0.3s ease, background 0.3s ease;
    color: white;
    background: linear-gradient(135deg, #d2b48c, #f5deb3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sidebar-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #9b111e, #e0115f, #9b111e, #e0115f);
}

#sidebar.mobile .sidebar-button {
    width: 100%;
    height: 56px;
    border-radius: 0;
    flex: 1;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.7), rgba(255, 70, 120, 0.7));
}