﻿/* 全局基礎設定 */
body {
    font-family: "Microsoft JhengHei", "PingFang TC", "Helvetica Neue", Arial, sans-serif;
    background-color: #f9f9f9;
    font-size:medium;
    
}

/* 側邊選單主容器 */
.side-menu {
    width: 260px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    padding: 12px;
    box-sizing: border-box;
}

/* 選單分組容器 */
.menu-group {
    margin-bottom: 16px;
}

    .menu-group:last-child {
        margin-bottom: 0;
    }

/* -------------------------------------------------- */
/* 大標題 <a> 連結樣式 (點擊區域 + Hover 效果) */
/* -------------------------------------------------- */
.menu-header {
    background: linear-gradient(135deg, #2b3a4a, #3a4d61); /* 質感藍灰漸層 */
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none; /* 去掉連結底線 */
    transition: all 0.25s ease-in-out;
}

    /* 標題 Hover (滑鼠懸停) 效果 */
    .menu-header a:hover {
        background: linear-gradient(135deg, #1d2834, #2b3a4a); /* 顏色微深增強點擊感 */
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        text-decoration: none;
    }

    /* 標題點擊瞬間 */
    .menu-header:active {
        transform: translateY(0);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

.header-icon {
    font-size: 10px;
    color: #93c5fd; /* 淡藍點綴箭頭 */
    transition: transform 0.2s ease;
}

.menu-header:hover .header-icon {
    transform: translateX(2px); /* 箭頭向右微動 */
}

/* -------------------------------------------------- */
/* 純文字列表區域 (無連結 <a>) */
/* -------------------------------------------------- */
.menu-list {
    list-style: none;
    padding: 6px 0 0 0;
    margin: 0;
    text-align: left;
    
}

    .menu-list li {
        margin: 2px 0;
        text-align:left;
        
    }

    .menu-list a:hover {
        color: #0056b3; /* 主主題藍色 */
        background-color: #f0f4f8; /* 淡藍灰質感襯底 */
        text-decoration: none; /* 確保無底線 */
        /*transform: translateX(4px); /* 輕微向右偏移 
        padding-left: 28px;*/
    }

.menu-item {
    display: block;
    padding: 8px 12px 8px 24px;
    color: #4a5568; /* 深灰文字 */
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    position: relative;
    transition: all 0.2s ease-in-out;
    text-align:left;
     /* 非連結滑鼠樣式 */
}

    /* 左側小箭頭點綴 */
    .menu-item::before {
        content: "›";
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #a0aec0;
        font-size: 16px;
        font-weight: bold;
    }

    /* 懸停底色 (維持質感互動感，但不呈現連結視覺) */
    .menu-item:hover {
        background-color: #f7fafc;
        color: #2d3748;
    }