/* ===============================================
   統一深色模式按鈕樣式 (圓形深色底設計)
   作者：BAILUCODE AI IDE
   最後更新：2025/11/30
   =============================================== */

#themeToggle {
    /* 定位：固定在右上角 */
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;

    /* 尺寸與形狀 */
    width: 50px;
    height: 50px;
    border-radius: 50%;

    /* 顏色與邊框 */
    background-color: #2c3e50;
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    
    /* 排版與互動 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* 滑鼠移過效果 */
#themeToggle:hover {
    background-color: #34495e;
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* 點擊效果 */
#themeToggle:active {
    transform: scale(0.95);
}

/* 深色模式：按鈕變成亮色（太陽） */
body.dark-mode #themeToggle {
    background-color: #f39c12;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

body.dark-mode #themeToggle:hover {
    background-color: #e67e22;
    border-color: #ffffff;
}

/* 手機版適配 */
@media (max-width: 768px) {
    #themeToggle {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
        top: 15px;
        right: 15px;
        border-width: 2px;
    }
}

/* 平板裝置適配 */
@media (min-width: 769px) and (max-width: 1024px) {
    #themeToggle {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
}

/* 確保圖示置中 */
#themeToggle i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 防止按鈕被選取 */
#themeToggle {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    outline: none;
}

/* 鍵盤聚焦時的邊框（無障礙設計） */
#themeToggle:focus-visible {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}
