/* =========================================================
   CJH Header Top
   Workday + News + Currency
   ========================================================= */

#header div[data-row="top"] .ct-container-fluid {
           width: 100% !important;
}

#header div[data-row="top"] .ct-container-fluid .cjh-header-top, #header div[data-row="top"] .ct-container-fluid .cjh-header-middle {
           padding-left: 3vw !important;
           padding-right: 3vw !important;
}

@media screen and (min-width: 1000px) {
#header div[data-row="top"] .ct-container-fluid .cjh-header-top, #header div[data-row="top"] .ct-container-fluid .cjh-header-middle {
           padding-left: 30px !important;
           padding-right: 30px !important;
}
}

#header div[data-row="top"]  .ct-container-fluid > div[data-column="middle"]{
           display: flex;
           flex-direction: column;
           justify-content: flex-start;
           align-items: stretch;
}


.cjh-header-top {
    display: grid;
    grid-template-columns: 1fr 38% 1fr;
    align-items: center;
    width: 100%;
    font-size: var(--cjh-font-size-9);
    gap: 2rem;
        background: linear-gradient(90deg, #29B6F6 0%, #039BE5 50%, #29B6F6 100%);
           height: 2.5rem;
}

.cjh-header-middle {
          height: 5rem;
          border-bottom: 1px solid var(--cjh-color-border-lower);
}
/* =========================================================
   左：工作时间
   ========================================================= */

.cjh-header-top-workday {
    display: flex;
    align-items: center;
    gap: 0.18rem;
    white-space: nowrap;
}

.cjh-header-top-workday__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--cjh-color-white);
    flex-shrink: 0;
}


.cjh-header-top-workday__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}


.cjh-header-top-workday__text {
    display: inline-flex;
    align-items: baseline;
    color: var(--cjh-color-white-90);
}

.cjh-header-top-workday__time {
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   中：新闻
   最大宽度：38%
   ========================================================= */

.cjh-header-top-news {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--cjh-color-white-90);
    overflow: hidden;
}

/* =========================================================
   News Viewport
   ========================================================= */

.cjh-header-top-news__viewport {
    position: relative;
    flex: auto;
    min-width: 0;
    height: 1.5rem;
    overflow: hidden;
}


/* =========================================================
   News List
   ========================================================= */

.cjh-header-top-news__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    will-change: transform;
    transition: transform 0.55s ease-out;
}


/* =========================================================
   Single News Item
   ========================================================= */

.cjh-header-top-news__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 1.5rem;
    min-height: 1.5rem;
    gap: 0.625rem;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}


/* =========================================================
   News Date
   ========================================================= */

.cjh-header-top-news__date {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 5.5rem;
    height: 1.25rem;
    padding: 0 0.5rem;
    border: 1px solid var(--cjh-color-white-30);
    border-radius: 4px;
    color: #ffffff;
    font-size: var(--cjh-font-size-10);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}


/* =========================================================
   News Title
   ========================================================= */

.cjh-header-top-news__title {
    min-width: 0;
    overflow: hidden;
    color: var(--cjh-color-white-90);
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    transition: opacity 0.3s ease-out;
    display: -webkit-box;
    -webkit-box-orient : vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 1;
}

/* =========================================================
   News Arrow
   ========================================================= */

.cjh-header-top-news__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    color: #ffffff;
    flex: 0 0 auto;
    flex-shrink: 0;
    will-change: transform;
    transform-origin: left;
    transition: transform .3s ease-out;
}

.cjh-header-top-news__arrow svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cjh-header-top-news__item:hover .cjh-header-top-news__arrow{
    transform: translateX(.3rem);
}


/* =========================================================
   Loading / Empty / Error
   ========================================================= */

.cjh-header-top-news__loading,
.cjh-header-top-news__empty,
.cjh-header-top-news__error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    color: var(--cjh-color-white-90);
    line-height: 1;
    opacity: 0.8;
}


@media (max-width: 999.98px) {

    .cjh-header-top {
        gap: 1.5rem;
    }

    .cjh-header-top {
        grid-template-columns: 1fr 1fr;
    }

    .cjh-header-top-workday {
        gap: 0.375rem;
    }

    .cjh-header-top-news {
        display: none;
    }


}


/* =========================================================
   Mobile
   <= 690px
   ========================================================= */

@media (max-width: 689.98px) {

    .cjh-header-top {
        gap: 1.3rem;
    }

    .cjh-header-top-workday__icon {
        display: none;
    }
}


/* =========================================================
   右：货币
   ========================================================= */


.cjh-header-top-currency {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cjh-currency-switcher {
    position: relative;

    display: inline-block;
}


/* =========================================================
   Trigger
   ========================================================= */

.cjh-currency-switcher__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: .5rem;

    border: none;
    border-radius: var(--cjh-border-radius-6);

    background-color: transparent;

    color: var(--cjh-color-white);

    font-size: var(--cjh-font-size-9);
    line-height: 1;

    cursor: pointer;

    transition:
        border-color 0.3s ease-out,
        background-color 0.3s ease-out;
}


/* =========================================================
   Trigger Currency
   国旗 + 货币代码
   ========================================================= */

.cjh-currency-switcher__trigger-currency {
    display: inline-flex;
    align-items: center;

    gap: 0.3rem;

    margin-left: auto;

    color: var(--cjh-color-white);
}


/* =========================================================
   Trigger Flag
   ========================================================= */

.cjh-currency-switcher__trigger-flag {
    width: 1rem;
    height: 1rem;

    border-radius: var(--cjh-border-radius-circle);

    object-fit: cover;
    object-position: center;

    flex-shrink: 0;
}


/* =========================================================
   Trigger Arrow
   ========================================================= */

.cjh-currency-switcher__trigger-arrow {
    display: inline-flex;
    align-items: center;

    color: var(--cjh-color-white);
    fill: var(--cjh-color-white);

    transition:
        transform 0.3s ease-out;
}


.cjh-currency-switcher.is-open
.cjh-currency-switcher__trigger-arrow {
    transform: rotate(180deg);
}


/* =========================================================
   Dropdown Menu
   ========================================================= */

.cjh-currency-switcher__menu {
    position: absolute;

    top: calc(100% + 1rem);
    right: 0;

    z-index: 9999;

    border: 1px solid var(--cjh-color-border-lower);
    border-radius: var(--cjh-border-radius-6);

    background: #ffffff;

    box-shadow:
        0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-0.3125rem);

    transition:
        opacity 0.15s ease-out,
        visibility 0.15s ease-out,
        transform 0.15s ease-out;
}


/* =========================================================
   Open
   ========================================================= */

.cjh-currency-switcher.is-open
.cjh-currency-switcher__menu {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* =========================================================
   Option
   ========================================================= */

.cjh-currency-switcher__option {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    gap: .88rem;

    padding: 1rem;
    border: none;
    background: transparent;

    color: var(--cjh-color-text-80);

    font-size: var(--cjh-font-size-8);
    line-height: 1;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.2s ease-out,
        color 0.2s ease-out;
}


/* =========================================================
   Option 左组
   货币符号 + 汇率
   ========================================================= */

.cjh-currency-switcher__option-value {
    display: inline-flex;
    align-items: center;

    gap: 0.25rem;

    flex-shrink: 0;
}


/* =========================================================
   Option 右组
   国旗 + 货币代码
   ========================================================= */

.cjh-currency-switcher__option-currency {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem;

    flex-shrink: 0;
}


/* =========================================================
   Hover
   ========================================================= */

.cjh-currency-switcher__option:hover {
    background: var(--cjh-color-mdcc-gery-200);
}


/* =========================================================
   Active
   ========================================================= */

.cjh-currency-switcher__option.is-active {
    background: var(--cjh-color-mdcc-gery-200);
}


/* =========================================================
   Option Flag
   ========================================================= */

.cjh-currency-switcher__option-flag {
    width: 1rem;
    height: 1rem;

    border-radius: var(--cjh-border-radius-circle);

    object-fit: cover;
    object-position: center;

    flex-shrink: 0;
}


/* =========================================================
   Option Code
   ========================================================= */

.cjh-currency-switcher__option-code {
    min-width: 2rem;
    white-space: nowrap;
    text-align: right;
}


/* =========================================================
   Option Symbol
   ========================================================= */

.cjh-currency-switcher__option-symbol {
    color: var(--cjh-color-text-80);
}


/* =========================================================
   Option Rate
   ========================================================= */

.cjh-currency-switcher__option-rate {
    color: var(--cjh-color-text-80);
}


/* =========================================================
   Currency Swap
   ========================================================= */

.cjh-currency-switcher__swap {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin-top: 0.45rem;
    margin-bottom: 0.45rem;

    color: var(--cjh-color-text-50);

    pointer-events: none;
    user-select: none;
}


/* =========================================================
   Currency Swap SVG
   原始 SVG 旋转 90°
   ========================================================= */

.cjh-currency-switcher__swap svg {
    display: block;

    width: 0.71rem;
    height: 0.71rem;

    flex-shrink: 0;

    color: var(--cjh-color-text-20);

    transform: rotate(90deg);
}


/* =========================================================
   Currency Mobile
   <= 690px
   ========================================================= */

@media (max-width: 689.98px) {

    .cjh-currency-switcher__menu {
        right: 0;
    }

}

/* 搜索区代码 开始 */
/* 搜索区代码 结束 */

