.leftBlock,
.rightBlock {
    overflow: unset;
}

.menu_container {
    display: none;
    flex-direction: column;
    /* overflow: hidden; */
    max-height: 0;
    transition: max-height 0.6s ease-out;
    margin-left: 1.25rem;
}

/* 新增 active 狀態 */
.menu_container.active {
    display: block;
    max-height: 125rem;
    transition: max-height 0.6s ease-in;
}

/* btn_title 的 active 狀態 */
.btn_title.active,
.menu_button.active {
    border-radius: 0;
}

.menu_button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    margin-bottom: 0.0625rem;
}

.menu_button span.icon {
    width: 3.75rem;
    height: 2.5rem;
    text-align: center;
    background-color: white;
    border: 0.0625rem solid rgb(216, 215, 215);
    border-radius: 0.375rem 0 0 0.375rem;
}

.menu_button img {
    width: 3.75rem;
    height: 2.5rem;
    margin: 0;
}

.menu_button span.text {
    width: 100%;
    height: 2.5rem;
    line-height: 2.5rem;
    text-align: center;
    vertical-align: middle;
    font-size: 110%;
    /* text-shadow: 1px 1px 2px #000000; */
    border-radius: 0 0.375rem 0.375rem 0;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: -1rem;
    width: calc(100% - 3.75rem);
    border: 0.0625rem solid #ffffff;
    border-radius: 0.375rem;
    /* overflow: hidden; */
    transition: max-height 0.5s ease-in-out;
    z-index: 1000;
    /* 提高按鈕的 z-index，使其在子選單上方 */
    box-shadow: rgba(0, 0, 0, 0.5) 0px 0.0625em 0.0625em, rgba(0, 0, 0, 0.5) 0px 0.125em 0.5em, rgba(255, 255, 255, 0.1) 0px 0px 0px 1px inset;
}

.submenu .menu_button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* border-bottom: 1px solid #ffffff; */
    margin: 0.0625rem 0;
}

.submenu .menu_button span.text {
    border-radius: 0.375rem;
}

.menu_button:hover .submenu {
    display: block;
    max-height: 31.25rem;
    /* 設定一個合適的高度或 max-height，用於動畫展開效果 */
}