@charset "UTF-8";
@import url(frame.css);
/*-------------------------
       L A Y O U T
-------------------------*/

.header__info {
    position: relative;
    padding: 15px 30px 15px 15px;
    background-color: white;
    height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 桌機主選單 */
.desktop-nav {
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 51;
}
.desktop-nav__list {
    display: flex;
    position: relative;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    margin: 0;
    list-style: none;
    height: 64px;
}
.desktop-nav__item {
    height: 100%;
    display: flex;
    align-items: center;
}
.desktop-nav__btn {
    background: none;
    border: none;
    outline: none;
    font-size: 1.1rem;
    color: #000;
    width: 100%;
    cursor: pointer;
    transition: color 0.2s;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0 10px;
    border-left: 1px solid #E8E8E8;
}
.desktop-nav__item:first-child .desktop-nav__btn {
    border-left: none;
}

.desktop-nav__btn a {
    color: #000;
    text-decoration: none;
}

.desktop-nav__btn:hover,
.desktop-nav__btn--active {
    color: #005BAC;
}

.desktop-nav__btn:hover a,
.desktop-nav__btn--active a {
    color: #005BAC;
}

.desktop-nav__dropdown {
    position: absolute;
    left: 0;
    top: 74px;
    width: 830px;
    min-width: 800px;
    background: #fff;
    border-radius: 0 0 20px 20px;
    border: 1px solid #E8E8E8;
    border-top: 0;
    padding: 10px 20px;
    z-index: 100;
    display: none;
    flex-direction: row;
    box-sizing: border-box;
    gap: 20px;
}
.desktop-nav__dropdown::before {
    content: "";
    display: block;
    position: absolute;
    top: -21px;
    left: 0;
    width: 100%;
    height: 20px;
    background: #fff;
    border-bottom: 1px solid #E8E8E8;
    border-radius: 20px 20px 0 0;
    z-index: -1;
}

.desktop-nav__dropdown-title {
    color: #005BAC;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    padding-left: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #E8E8E8;
}
.desktop-nav__dropdown-title::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    width: 6px;
    height: 20px;
    background: #005BAC;
    border-radius: 50px;
}


.desktop-nav__dropdown-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 197px;
}
.desktop-nav__dropdown-col--right {
    border-right: none;
}

.desktop-nav__dropdown-list {
    padding-left: 14px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}
.desktop-nav__dropdown-list > div {
    min-width: 180px;
    flex: 1 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.desktop-nav__dropdown-item {
    line-height: 1.5;
    min-width: 197px;
    cursor: pointer;
}

.desktop-nav__dropdown-item a {
    color: #000;
    text-decoration: none;
}

.desktop-nav__dropdown-item a:hover {
    color: #3197FA;
}

.desktop-nav__dropdown-item--blue {
    min-width: 198px;
    width: 100%;
    color: #005BAC;
}

/* 2. 滑鼠移到主選單項目時顯示下拉選單，並橫向分欄 */
.desktop-nav__item:hover > .desktop-nav__dropdown,
.desktop-nav__item:focus-within > .desktop-nav__dropdown {
    display: flex;
    flex-direction: row;
}

/* 3. hover 時主選單按鈕加上 active 樣式 */
.desktop-nav__item:hover > .desktop-nav__btn,
.desktop-nav__item:focus-within > .desktop-nav__btn {
    color: #005BAC;
}
