
/* Top bar */
.csy-top {
    width: 100%;
    background: #1e2e61;
    color: #fff;
    font-size: 12px;
}

.csy-top-inner {
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.csy-top-welcome {
    color: #fff;
    white-space: nowrap;
}

.csy-top-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.csy-top-right a {
    color: #fff;
    text-decoration: none;
}

.csy-top-right a:hover {
    color: #83b7ff;
}

.csy-top-link {
    padding: 0 15px;
    line-height: 14px;
    border-right: 1px solid rgba(255,255,255,.3);
}

.csy-top-phone {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 15px;
    line-height: 14px;
    border-right: 1px solid rgba(255,255,255,.3);
    white-space: nowrap;
}

.csy-top-phone i {
    font-size: 15px;
}

.csy-top-language {
    position: relative;
    padding-left: 15px;
}

.csy-top-language-title {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    line-height: 45px;
    cursor: pointer;
}

.csy-top-language-title i {
    font-size: 12px;
}

.csy-top-language-list {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    padding: 8px 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 8px 25px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    z-index: 9999;
}

.csy-top-language:hover .csy-top-language-list,
.csy-top-language:focus-within .csy-top-language-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.csy-top-language-list a {
    display: block;
    padding: 9px 16px;
    color: #333;
    line-height: 20px;
    white-space: nowrap;
}

.csy-top-language-list a:hover,
.csy-top-language-list a.current {
    background: #f0f5ff;
    color: #0663de;
}

/* Mobile */
@media screen and (max-width: 767px) {
    .csy-top-inner {
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 8px 0;
    }

    .csy-top-welcome {
        text-align: center;
        white-space: normal;
        line-height: 20px;
    }

    .csy-top-right {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 8px;
    }

    .csy-top-link,
    .csy-top-phone {
        padding: 0 10px;
    }

    .csy-top-language {
        padding-left: 10px;
    }

    .csy-top-language-title {
        line-height: 24px;
    }
}


/* Header */
.csy-header {
    width: 100%;
    background: #fff;
}

.csy-header-main {
    min-height: 124px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}

/* Logo */
.csy-header-logo {
    flex: 0 0 235px;
    text-align: left;
}

.csy-header-logo a {
    display: block;
}

.csy-header-logo img {
    width: 201px;
    max-width: 100%;
    height: auto;
}

.csy-header-logo p {
    margin: 5px 0 0;
    color: #666;
    font-size: 12px;
    line-height: 18px;
    white-space: nowrap;
}

/* Search */
.csy-header-search {
    flex: 1;
    min-width: 0;
}

.csy-search-box {
    display: flex;
    width: 100%;
    height: 50px;
    overflow: hidden;
    border: 2px solid #0663de;
    border-radius: 8px;
    background: #fff;
}

.csy-search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 16px;
    border: none;
    outline: none;
    background: transparent;
    color: #333;
    font-size: 15px;
}

.csy-search-box input:focus {
    border: none !important;
}

.csy-search-box button {
    flex: 0 0 84px;
    height: 100%;
    padding: 0;
    border: none;
    background: #0663de;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: background .2s ease;
}

.csy-search-box button:hover {
    background: #044fb5;
}

.csy-hot-search {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 12px;
    overflow: hidden;
    white-space: nowrap;
    font-size: 12px;
    line-height: 20px;
}

.csy-hot-search span {
    color: #111;
    flex-shrink: 0;
}

.csy-hot-search a {
    color: #0663de;
    flex-shrink: 0;
}

.csy-hot-search a:hover {
    color: #044fb5;
}

/* Actions */
.csy-header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 35px;
}

.csy-header-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #465673;
    text-align: center;
    white-space: nowrap;
    font-size: 14px;
    line-height: 20px;
}

.csy-header-action img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.csy-header-action:hover {
    color: #0663de;
}

/* Mobile toggle */
.csy-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 5px;
    background: #0663de;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

/* Navigation */
.csy-nav {
    width: 100%;
    background: #1e2e61;
}

.csy-nav-list {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    margin: 0;
    padding: 0;
}

.csy-nav-list li {
    flex: 1 1 auto;
    list-style: none;
}

.csy-nav-list li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 65px;
    padding: 0 20px;
    color: #fff;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    white-space: nowrap;
    transition: background .2s ease;
}

/* Hover only - no active state */
.csy-nav-list li a:hover {
    background: #0663de;
    color: #fff;
}

/* Tablet */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .csy-header-main {
        gap: 20px;
    }

    .csy-header-logo {
        flex-basis: 190px;
    }

    .csy-header-logo img {
        width: 180px;
    }

    .csy-header-actions {
        gap: 16px;
    }

    .csy-header-action {
        font-size: 12px;
    }

    .csy-hot-search {
        gap: 12px;
    }

    .csy-nav-list li a {
        padding: 0 10px;
        font-size: 13px;
    }
}

/* Mobile */
@media screen and (max-width: 767px) {
    .csy-header-main {
        min-height: 0;
        flex-wrap: wrap;
        gap: 12px;
        padding: 15px 0;
    }

    .csy-header-logo {
        flex: 1 1 auto;
    }

    .csy-header-logo img {
        width: 150px;
    }

    .csy-header-logo p {
        margin-top: 2px;
        font-size: 10px;
    }

    .csy-header-actions {
        gap: 15px;
    }

    .csy-header-action {
        gap: 3px;
        font-size: 10px;
    }

    .csy-header-action img {
        width: 24px;
        height: 24px;
    }

    .csy-header-action span {
        display: none;
    }

    .csy-menu-toggle {
        display: flex;
    }

    .csy-header-search {
        order: 3;
        flex: 0 0 100%;
    }

    .csy-search-box {
        height: 44px;
        border-radius: 6px;
    }

    .csy-search-box button {
        flex-basis: 55px;
        font-size: 20px;
    }

    .csy-hot-search {
        gap: 15px;
        margin-top: 8px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .csy-hot-search::-webkit-scrollbar {
        display: none;
    }

    .csy-nav {
        display: none;
    }

    .csy-nav.is-open {
        display: block;
    }

    .csy-nav-list {
        display: block;
        padding: 8px 0;
    }

    .csy-nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .csy-nav-list li:last-child {
        border-bottom: none;
    }

    .csy-nav-list li a {
        justify-content: flex-start;
        min-height: 46px;
        padding: 10px 15px;
        font-size: 14px;
        text-align: left;
    }
}



/* Sticky navigation */
.csy-nav.current {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9998;
    background: #1e2e61;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
    animation: csyNavSlideDown .3s ease both;
}

/* Navigation entrance */
@keyframes csyNavSlideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */
@media screen and (max-width: 767px) {
    .csy-nav.current {
        position: static;
        box-shadow: none;
        animation: none;
    }
}


/* Header quick search */
.csy-header-search {
    position: relative;
}

.csy-search-window {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 9997;
    max-height: 370px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #d8e5f8;
    border-radius: 0 0 10px 10px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(30, 46, 97, .15);
}

.csy-search-results {
    margin: 0;
    padding: 6px 0;
    list-style: none;
}

.csy-search-results > li {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #edf2fa;
}

.csy-search-results > li:last-child {
    border-bottom: 0;
}

.csy-search-results > li > a {
    display: block;
    padding: 12px 16px;
    color: #33435e;
    font-size: 14px;
    line-height: 22px;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: background .2s ease, color .2s ease;
}

.csy-search-results > li > a:hover,
.csy-search-results > li > a:focus {
    background: #f0f6ff;
    color: #0663de;
}

.csy-search-results > li.csy-search-status {
    padding: 14px 16px;
    color: #62718a;
    font-size: 13px;
    line-height: 22px;
}

.csy-search-results > li.csy-search-error {
    color: #b54738;
}

@media screen and (max-width: 767px) {
    .csy-search-window {
        top: 46px;
        max-height: 300px;
    }

    .csy-search-results > li > a {
        padding: 11px 13px;
        font-size: 13px;
    }
}


/* Header User Links */

.csy-user-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.csy-user-menu .csy-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

@media screen and (max-width: 767px) {
    .csy-user-menu {
        justify-content: center;
    }

    .csy-user-menu .csy-top-link {
        padding: 0 10px;
    }
}
