/* 容器固定在左側中下方 */
.fab-menu {
position: fixed;
left: 0;
bottom: 120px;
display: flex;
flex-direction: column;
gap: 12px;
z-index: 9999;
}

/* 共用樣式：讓 <a> 也能套用 */
.fab-btn {
display: inline-flex;
align-items: center;
justify-content: center;
background: #fedc80;
border-radius: 8px;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
cursor: pointer;
transition: background 0.2s ease, transform 0.1s ease;
text-decoration: none;
padding: 10px;
}

.fab-btn:hover {
background: #fbbf24;
}
.fab-btn:active {
transform: translateY(1px);
}

/* 圖片尺寸控制 */
.fab-btn img {
object-fit: contain;
pointer-events: none;
}

/* 提示文字 */
.fab-btn[data-tip] {
position: relative;
}

.fab-btn[data-tip]::after {
content: attr(data-tip);
position: absolute;
left: calc(100% + 10px);
top: 50%;
transform: translateY(-50%);
white-space: nowrap;
font: 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans",
Arial;
color: #475569;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 6px;
padding: 6px 8px;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
opacity: 0;
pointer-events: none;
transition: opacity 0.15s ease;
}

.fab-btn:hover::after {
opacity: 1;
}

@media (max-width: 768px) {
.fab-menu {
gap: 8px;
}
.fab-menu img {
width: 24px;
}
}