﻿header {
    width: 100%;
    display: flex;
    position: relative;
    align-items: center;
    color: var(--white);
    background: var(--blue-new);
    z-index: 2;
}

/* 手機版開始 */

header.cellphone {
    height: 60px;
    justify-content: space-between;
    padding: 12px;
}

header.cellphone h1 {
    font-size: 16px;
}

header.cellphone .btn-wrapper {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}

header.cellphone .btn-wrapper button {
    width: 32px;
    height: 32px;
    color: var(--white);
    background-color: transparent;
    display: flex;
}

/* 手機版結束 */

/* 電腦版開始 */

header.desktop .headerbox {
    width: 100%;
    padding-inline: 10px;
    padding-block: 10px;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

header.desktop .headerbox .navigation {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}

header.desktop .navigation .icon-btn,
header.desktop .operation .icon-btn {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    border: 1px solid var(--white);
    background-color: transparent;
}

header.desktop .navigation .icon-btn:hover,
header.desktop .operation .icon-btn:hover {
    background-color: var(--bluedeep-new);
}

header.desktop .navigation .icon-btn img,
header.desktop .operation .icon-btn img {
    width: 24px;
    height: 24px;
}

header.desktop .navigation .breadcrumb {
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    border: 1px solid var(--white);
    gap: 10px;
    padding-inline: 15px;
}

header.desktop .navigation .breadcrumb li,
header.desktop .navigation .breadcrumb li a {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

header.desktop .navigation .breadcrumb li a {
    padding: 12px 0;
    color: var(--white);
    font-weight: 700;
}

header.desktop .navigation .breadcrumb li:not(:last-child):after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: url(../images/chevron_right_white.svg) no-repeat 50%;
    background-size: 20px 20px;
}

header.desktop .navigation .breadcrumb li a img {
    vertical-align: middle;
    width: 24px;
    height: 24px;
}

header.desktop .header_bar {
    position: relative;
}

header.desktop .header_bar .header_bar_btn {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    width: 48px !important;
    height: 48px;
    color: var(--white);
    font-size: 16px;
    font-weight: 700;
    border: 1px solid var(--white);
    background: var(--blue-new) url(../images/rotate_white.svg) no-repeat center;
    background-size: auto 20px;
    padding: 0 0 0 48px;
    cursor: pointer !important;
}

header.desktop .header_bar .active.header_bar_btn,
header.desktop .header_bar .header_bar_btn:hover {
    background-color: var(--bluedeep-new);
}

header.desktop .header_bar .dropdown-menu {
    display: none;
    position: absolute;
    top: 52px;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, .25);
    z-index: 10;
    overflow-y: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
    opacity: 0;
    transition: opacity .3s ease-out;
    cursor: pointer;
    border-radius: 10px;
}

header.desktop .header_bar .dropdown-menu.show {
    display: flex;
    flex-direction: column;
    opacity: 1;
    padding: 7px;
    gap: 4px;
}

header.desktop .header_bar .dropdown-menu li {
    padding: 10px;
    cursor: pointer;
    border-radius: 4px;
    background-color: #f0f0f0;
    color: #324053;
}

header.desktop .dropdown-menu li.active,
header.desktop .dropdown-menu li:hover {
    background-color: #2181bf;
    color: #fff;
}

header.desktop .header_search {
    position: relative;
    display: flex;
}

header.desktop .header_search .search_input {
    background-color: #d9dbe8;
    padding-right: 40px;
    padding-left: 15px;
    font-size: 16px;
    width: 180px;
}

header.desktop .header_search .search_btn {
    display: flex;
    position: absolute;
    justify-content: center;
    align-items: center;
    right: 0;
    height: 48px;
    padding: 14px 15px 14px 0;
    background-color: transparent;
}

header.desktop .header_search .search_btn img {
    width: 20px;
    height: 20px;
}

header.desktop .operation {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 10px;
}

header.desktop .operation .group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 14px;
}

header.desktop .operation .countdown {
    display: flex;
    gap: 10px;
}

header.desktop .operation .countdown .alarm {
    width: 20px;
    height: 20px;
}

header.desktop .operation .date {
    width: max-content;
}

header.desktop .operation .buttons {
    display: flex;
    gap: 4px;
}

.dropdown_search_menu,
.version {
    display: none;
}

/* 電腦版結束 */

@media only screen and (max-width: 767px) {
    header.desktop {
        display: none;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    header.cellphone {
        display: none;
    }

    header.desktop .navigation {
        gap: 4px;
    }

    header.desktop .navigation .breadcrumb {
        display: none;
    }

    header.desktop .navigation .breadcrumb.breadcrumb-pad {
        display: flex;
        margin-left: 0;
        padding-left: 0;
    }

    header.desktop .navigation .breadcrumb.breadcrumb-pad {
        padding: 12px 15px;
    }

    header.desktop .navigation .breadcrumb-pad li:after {
        content: "";
        display: inline-block;
        width: 20px;
        height: 20px;
        background: url(../images/chevron_right_white.svg) no-repeat 50%;
        background-size: 20px 20px;
        transform: rotate(90deg);
    }

    header.desktop .header_bar {
        display: none;
    }

    header.desktop .header_search {
        display: none;
    }
}

@media only screen and (min-width: 1025px) {
    header.cellphone {
        display: none;
    }

    header.desktop .navigation {
        gap: 10px;
    }

    header.desktop .navigation .breadcrumb-pad {
        display: none;
    }

    header.desktop .navigation .nav-bar-pad {
        display: none;
    }

    header.desktop .dropdown-menu.show {
        width: 170px !important;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media only screen and (min-width: 1600px) {
    header.desktop .operation .group {
        flex-direction: row;
    }
}