/* ==========================================================================
   1. 基礎佈局與變數
   ========================================================================== */
body { 
    font-family: -apple-system, system-ui, "Microsoft JhengHei", sans-serif; 
    background: #f0f2f5; 
    margin: 0; 
    padding: 10px 10px 180px 10px; 
    -webkit-tap-highlight-color: transparent;
} 

.container { width: 100%; max-width: 600px; margin: 0 auto; }
h1 { font-size: 1.2rem; margin: 10px 0; color: #1c1e21; text-align: center; }
/* ==========================================================================
   2. 導航選單 (懸浮按鈕 + 動態選單)
   ========================================================================== */
.expandable-menu-container {
    position: fixed;
    bottom: 150px; /* 提高一點避開底部導航 */
    right: 15px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.floating-service-btn {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #1c1e21;
    color: #ffffff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #ffc107;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0; /* 如果有 padding，請設為 0，避免推擠圖標 */
}

/* 確保符號本身沒有多餘的邊隔 */
#serviceIcon {
    display: block; /* 改為 block 避免文字基線問題 */
    margin: 0 !important;
    padding: 0 !important;
    font-size: 100%; /* 或依您的需求調整大小 */
    line-height: 1; /* 確保沒有額外的行高 */
}

.floating-service-btn:hover { transform: scale(1.1); background: #000; }
#serviceText { display: none; }

.menu-content {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: rgba(28, 30, 33, 0.95);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #ffc107;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    min-width: 130px;
}

.expandable-menu-container.show-menu .menu-content {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.menu-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    border-radius: 8px;
}
.menu-item:hover { background: rgba(255, 193, 7, 0.1); color: #ffc107; }
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 修正後的「返回首頁」按鈕樣式 */
.back-home { 
    display: inline-block; 
    margin-bottom: 20px; 
    text-decoration: none; 
    
    /* 背景與邊框：使用您要求的 rgba 背景與金邊 */
    background: rgba(28, 30, 33, 0.95); 
    border: 1px solid #ffc107; 
    
    /* 字體顏色與間距 */
    color: #ffc107; 
    padding: 8px 16px;
    font-size: 0.9rem; 
    border-radius: 8px; /* 圓角與選單一致 */
    
    /* 動態效果：與懸浮按鈕一樣的過渡 */
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* 懸停效果：放大並加深背景，對齊懸浮按鈕風格 */
.back-home:hover { 
    transform: scale(1.05); 
    background: #000000; 
    color: #ffc107; /* 懸停時字體變金，增加互動感 */
}

footer {
    text-align: center;
    padding: 20px 20px 30px 20px; 
    background-color: transparent; 
    color: #999;
    font-size: 0.75rem; 
    line-height: 1.4;
    margin-top: 30px;
}

footer p { margin: 2px 0;}

footer p:last-child { font-size: 0.7rem; opacity: 0.6;}
