hr {
    border-top: 1px solid #ECECEC;
}

header {
    display: flex;
    align-items: center;
}

header a,
header a:hover,
header a:focus {
    text-decoration: none;
}

header a:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

footer a,
footer a:hover,
footer a:focus {
    text-decoration: none;
}

footer a:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
}

footer a:hover {
    color: #231815;
}

header input {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 348px;
    height: 48px;
    padding-left: 40px;
    border: 1px solid #F9F9F9;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box;
    border-radius: 8px;
    color: #909090;
    background-color: #F9F9F9;
}

header input:hover {
    outline: none;
    border: 1px solid #000000;
    transition: 0.3s ease;
    background-color: white;
}

header input:focus {
    outline: none;
    border: 1px solid #022EB3;
    transition: 0.3s ease;
    background-color: white;
}

header .search-input {
    position: relative;
    margin-left: 24px;
    width: 340px;
    padding-left: 8px;
}

.search {
    position: relative;
    z-index: 1;
}

header.search-input .input {
    background-color: #F9F9F9;
}

header.search-input .search {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

header .search-input .cancel {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    cursor: pointer;
}



header .nav-item-group {
    display: flex;
    align-items: center;
    margin-left: auto;
    color: #4B4B4B;
}

header .nav-item {
    display: flex;
    align-items: center;
    margin-left: auto;
    color: #4B4B4B;
    padding: 8px;
    margin-right: 16px;
}

header .nav-item:hover {
    color: #4B4B4B;
    text-decoration: none;
    background-color: #F9F9F9;
    border-radius: 8px;
    transition: 0.3s ease;
}

header .nav-item img {
    margin-right: 4px;
}

header .avatar {
    position: relative;
    display: block;
    width: 40px;
}

header .avatar .red-dot {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #FF0000;
    border: 1px solid #FFFFFF;
}

header .dropdown {
    position: relative;
}

header .dropdown-avatar {
    position: relative;
    width: 72px;
    padding: 8px;
}

header .dropdown-avatar:hover {
    background-color: #F9F9F9;
    border-radius: 8px;
}

header .dropdown-avatar .icon {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translatey(-50%);
    cursor: pointer;
    z-index: 1;
}

header .dropdown-menu {
    border-radius: 8px;
    width: 260px;
    padding: 0 0 8px 0;
    overflow: hidden;
    top: 95%;
    border: none;
    box-shadow: drop-shadow(0px 4px 40px rgba(0, 0, 0, 0.12));
}

header .dropdown-menu .item {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-weight: 600;
    color: #4B4B4B;
    margin: 0 8px;
}

.dropdown-order {
    position: relative;
}

header .dropdown-menu .item-title {
    display: block;
    padding: 16px 24px;
    font-size: 16px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-weight: 600;
    color: #231815;
    background: #F9F9F9;
}

header .dropdown-menu .item .desc {
    font-size: 14px;
    color: #4B4B4B;
    font-weight: 400;
}

header .dropdown-menu .item-title .desc {
    font-size: 14px;
    color: #4B4B4B;
    font-weight: 400;
}

header .dropdown-menu .item:hover {
    background-color: #F9F9F9;
    color: #4B4B4B !important;
    transition: 0.3s ease;
    border-radius: 8px;
}

header .dropdown-menu .item .count {
    border-radius: 50%;
    background-color: #EE4055;
    min-width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    color: #FFFFFF;
    margin-left: auto;
    font-size: 14px;
}

header .dropdown-menu .item a {
    color: #4B4B4B;
}

header .dropdown-menu .item .light {
    font-size: 14px;
    font-weight: 400;
}

header .dropdown-menu .item.bg {
    background: #F9F9F9;
}

header .dropdown-menu .hr.bg {
    background: #F9F9F9;
}

header .dropdown-menu .item.border-bottom {
    border-bottom: 1px solid #F9F9F9;
}

header .dropdown-menu .item.title {
    font-weight: 600;
    font-size: 18px;
    color: #231815;
    margin: 0;
}

header .dropdown-menu .item.title:hover {
    background-color: #F9F9F9;
    color: #231815 !important
}


header .primary {
    color: #022EB3;
    margin-left: auto;
    font-weight: 400;
}

footer {
    display: flex;
    flex-wrap: wrap;
    line-height: 150%;
}


.dropdown-menu-triger:hover+.dropdown-menu {
    display: block;
    opacity: 1;
    transition: 0.3s ease;
}

.dropdown-menu:hover {
    display: block;
    opacity: 1;
}

.dropdown-menu-triger:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transition: 0.3s ease;
}


@media (min-width: 768px) {
    footer {
        flex-wrap: nowrap;
    }
}

footer .flex {
    display: flex;
}

footer .introduce-col {
    width: 100%;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    footer .introduce-col {
        width: 272px;
        margin-right: 60px;

    }
}

footer .introduce {
    margin-top: 16px;
    color: #4B4B4B;
    font-size: 14px;
}

footer .site-map-group-col {
    width: 100%;
}


@media (min-width: 768px) {
    footer .site-map-group-col {
        width: auto;
    }

    footer .site-map-group-col.mr-60 {
        margin-right: 60px;
    }
}

footer .site-map-group {
    width: 120px;
    margin-bottom: 32px;
    margin-right: 40px;
}

footer .site-map-group.mr-0 {
    margin-right: 0;
}


footer h6 {
    display: block;
    color: #231815;
    font-size: 16px;
}

footer .site-map-item {
    display: block;
    color: #4B4B4B;
    font-size: 14px;
    margin-top: 16px;
    white-space: nowrap;
}

/* 聯絡區域 */
footer .contact {
    margin-top: 16px;
    color: #4B4B4B;
    font-size: 14px;
}

footer .contact-item {
    display: block;
    color: #4B4B4B;
    font-size: 16px;
    margin-top: 16px;
    white-space: nowrap;
}

footer .contact-item:hover {
    color: #4B4B4B;
    text-decoration: none;
}

.footer-privacy {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-privacy .flex {
    display: flex;
    align-items: center;
}

.footer-privacy p {
    color: #4B4B4B;
    font-size: 12px;
    margin: 0;
}

.footer-privacy a {
    display: block;
    padding: 0 8px;
    border-right: 1px solid #ECECEC;
    color: #4B4B4B;
    font-size: 12px;
}

.footer-privacy a:last-child {
    border-right: none;
}
