

/* Main container */
.yingfang_head {
    font-family: var(--font-family);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
}

.yingfang_head .head-menu {
    width: 100%;
    background: transparent;
    transition: all 0.3s ease;
}



.yingfang_head .head-menu.fixed-top {
    background: var(--color-primary);
    animation: slide-down 0.5s ease;
}

@keyframes slide-down {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(0);
    }
}

/* Navbar base */
.yingfang_head .navbar {
    padding: 0 !important;
}

.yingfang_head .navbar-box {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.yingfang_head .navbar-brand {
    padding: 0;
    margin: 0;
    font-size: 0;
    flex-shrink: 0;
    aspect-ratio: 292/27;
    max-width: 292px;
}

.yingfang_head .navbar-brand img {
    object-fit: cover;
}

/* Navigation wrapper */
.yingfang_head .nav-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    padding: 0 50px;
    /* height: 80px; */
}

.yingfang_head .navbar-nav {
    display: flex;
    align-items: center;
    gap: 55px;
    margin: 0;
    padding: 0 10px;
    list-style: none;
    height: 100%;
}

/* Navigation items */
.yingfang_head .nav-link-item {
    position: relative;
    height: 100%;
}

.yingfang_head .nav-link {
    font-family: var(--medium-font-family);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.875;
    color: #fff;
    padding: var(--gap-25) 0px !important;
    /* height: 100%; */
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    border-bottom: 5px solid transparent;
}

.yingfang_head .nav-link .arrow-icon {
    width: 9px;
    height: 6px;
    transition: transform 0.3s ease;
}
.yingfang_head .nav-link .arrow-icon path{
    stroke:#fff;
}
.yingfang_head .fixed-top .nav-link .arrow-icon path{
    stroke:#fff;
}
.yingfang_head .nav-link-item:hover .arrow-icon {
    transform: rotate(180deg);
}




/* Active state */
.yingfang_head .nav-link-item.active .nav-link {
    border-bottom: 5px solid #fff;
}

/* Dropdown menu */
.yingfang_head .dropdown-menu {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 100%;
    left: -30px;
    min-width: 260px;
    padding: 0;
    /* margin-top: 20px; */
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: rotateX(-75deg);
    transform-origin: 0% 0%;
    transition: all 0.3s ease;
}

.yingfang_head .nav-link-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: rotateX(0deg);
}

.yingfang_head .dropdown-menu li {
    list-style: none;
    padding: 0 25px;
    /* border-bottom: 1px solid #DDD; */
}

.yingfang_head .dropdown-menu li:last-child {
    border-bottom: none;
}

.yingfang_head .dropdown-item {
    font-family: var(--font-family);
    font-size: var(--font-20);
    font-weight: 400;
    line-height: 2.5;
    color: #616161;
    padding: 3px 0;
    background: transparent;
    display: block;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
}
.yingfang_head .dropdown-item .nav-icon{
    opacity: 0;
}
.yingfang_head .dropdown-item:hover {
    color: #FF3221! IMPORTANT;
    background: transparent;
}
.yingfang_head .dropdown-item:hover .nav-icon{
    opacity: 1;
}

/* Submenu */
.yingfang_head .dropdown-submenu {
    position: relative;
}

.yingfang_head .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    display: none;
}

.yingfang_head .dropdown-submenu:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    display: block;
}

.yingfang_head .dropdown-submenu .dropdown-toggle::after {
    /* content: '\e609'; */
    font-family: "qico" !important;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    border: none;
}

/* Right actions */
.yingfang_head .right-actions {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-shrink: 0;
}

/* Menu icon */
.yingfang_head .menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease;
}

.yingfang_head .head-menu.fixed-top .menu-icon {
    color: var(--title-text-color);
}

/* Language selector wrapper */
.yingfang_head .lang-wrapper {
    display: flex;
    align-items: center;
}

.yingfang_head .lang-wrapper .lang-selector {
    width: auto !important;
}

.yingfang_head .lang-wrapper .lang-selector .current-lang {
    height: auto;
    padding: 0;
}

.yingfang_head .lang-wrapper .lang-selector .current-lang em {
    color: #fff !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.875 !important;
}

.yingfang_head .head-menu.fixed-top .lang-wrapper .lang-selector .current-lang em {
    color: #fff !important;
}

.yingfang_head .lang-wrapper .lang-selector .current-lang i {
    color: #fff !important;
}

.yingfang_head .head-menu.fixed-top .lang-wrapper .lang-selector .current-lang i {
    color: #fff !important;
}

/* Search wrapper */
.yingfang_head .search-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    /* background: #fff; */
    border-radius: 100px;
    padding: 10px;
    /* min-width: 150px; */
    max-width: 180px;
}

.yingfang_head .search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.yingfang_head .fixed-top .search-icon {
    color: var(--text-color);
}
.yingfang_head .search-input {
    border: none;
    outline: none;
    background: transparent;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.875;
    color: #333;
    width: 100%;
}

.yingfang_head .search-input::placeholder {
    color: #666;
    opacity: 0.5;
}

/* Search box overlay */
.yingfang_head .serchbox {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.yingfang_head .serchbox.active {
    display: flex;
}

.yingfang_head .serchbox form {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    position: relative;
}

.yingfang_head .serchbox .submit_text {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    height: 50px;
    line-height: 50px;
    color: #333;
    padding: 10px 60px 10px 20px;
    border: none;
    font-size: var(--text-size);
}

.yingfang_head .serchbox .submit_btn {
    position: absolute;
    right: 10px;
    top: 50%;
    background: transparent;
    transform: translateY(-50%);
    border: none;
    cursor: pointer;
    padding: 10px;
}

.yingfang_head .serchbox .submit_btn i {
    font-size: 20px;
    color: var(--color-primary);
}

/* Mobile menu toggle */
.yingfang_head .navbar-toggler {
    display: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
}

.yingfang_head .navbar-toggler i {
    font-size: 24px;
    color: #fff !important;
}

/* Mobile actions */
.yingfang_head .mobile-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.yingfang_head .mobile-actions .head-search em i {
    font-size: 20px;
    color: #fff;
}

.yingfang_head .mobile-actions .head-info-lang .lang-selector {
    width: auto !important;
}

.yingfang_head .mobile-actions .head-info-lang .lang-selector .current-lang em {
    color: #fff !important;
    font-size: var(--text-size) !important;
}

.yingfang_head .mobile-actions .head-info-lang .lang-selector .current-lang i {
    color: #fff !important;
}

/* Mobile menu */
.yingfang_head .mobile-menu {
    display: none;
}

/* Regardless of breakpoint: ensure show state always visible */
.yingfang_head .mobile-menu.show {
    left: 0 !important;
    display: block !important;
}

/* ===================================
   Responsive Styles
   Bootstrap breakpoints with max-width descending
   =================================== */

@media screen and (max-width: 1500px) {
    .yingfang_head .navbar-nav {
        gap: 30px;
    }

    .yingfang_head .navbar-brand img {
    }
}

@media screen and (max-width: 1280px) {
    .yingfang_head .navbar-nav {
        gap: 20px;
    }

    
    .yingfang_head .right-actions{
        gap:10px;
    }
}

@media screen and (max-width: 1200px) {
    .yingfang_head .navbar-nav {
        gap: 15px;
    }

    .yingfang_head .nav-link {
        font-size: 15px;
    }
    .yingfang_head .navbar-brand{
        width:100px;
    }
    .yingfang_head .navbar-brand img {
    }

    .yingfang_head .search-wrapper {
        /* min-width: 100px; */
        padding: 6px 12px;
    }

    .yingfang_head .search-input {
        font-size: 14px;
    }

    .yingfang_head .dropdown-menu {
        min-width: 220px;
    }
}

@media screen and (max-width: 992px) {
    /* Show mobile navigation */
    .yingfang_head .nav-wrapper,
    .yingfang_head .right-actions {
        display: none !important;
    }

    .yingfang_head .navbar-toggler {
        display: block;
    }

    .yingfang_head .navbar-box{
        padding: 12px 0;
    }
    /* Mobile menu */
    .yingfang_head .mobile-menu {
        width: 70vw;
        max-width: 400px;
        height: 100vh;
        position: fixed;
        top: 0;
        left: -100%;
        background: #fff;
        padding: 20px;
        z-index: 99999;
        overflow-y: auto;
        transition: left 0.3s ease;
        display: block;
    }

    .yingfang_head .mobile-menu.show {
        left: 0;
        display: block !important;
    }

    .yingfang_head .mobile-menu .logo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 15px;
    }

    .yingfang_head .mobile-menu .logo .navbar-brand img {
        height: 28px;
    }

    .yingfang_head .mobile-menu .logo .qico {
        font-size: 20px;
        cursor: pointer;
        color: var(--title-text-color);
    }

    /* Mobile search */
    .yingfang_head .mobile-search {
        margin-bottom: 20px;
    }

    .yingfang_head .mobile-search form {
        position: relative;
        display: flex;
        align-items: center;
    }

    .yingfang_head .mobile-search .submit_text {
        width: 100%;
        padding: 10px 50px 10px 15px;
        border: 1px solid #ddd;
        border-radius: 100px;
        font-size: var(--text-size);
        background: #f5f5f5;
    }

    .yingfang_head .mobile-search .submit_btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        background: transparent;
        border: none;
        padding: 5px;
    }

    .yingfang_head .mobile-search .submit_btn i {
        font-size: 18px;
        color: #666;
    }

    /* Mobile nav list */
    .yingfang_head .mobile-menu .navbar-nav {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .yingfang_head .mobile-menu .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .yingfang_head .mobile-menu .nav-link {
        color: var(--title-text-color);
        padding: 15px 10px !important;
        display: block;
        font-size: var(--text-title-size);
    }

    .yingfang_head .mobile-menu .nav-link span {
        display: block;
        line-height: 1.8;
    }

    .yingfang_head .mobile-menu .hasSubNav {
        position: relative;
    }

    .yingfang_head .mobile-menu .hasSubNav::after {
        content: '\e64c';
        font-family: 'iconfont';
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 14px;
        color: var(--title-text-color);
    }

    .yingfang_head .mobile-menu .dropdown-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8f8f8;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        box-shadow: none;
        min-width: auto;
    }

    .yingfang_head .mobile-menu .dropdown-menu.d-block {
        display: block;
    }

    .yingfang_head .mobile-menu .dropdown-menu li {
        padding: 0 15px;
    }

    .yingfang_head .mobile-menu .dropdown-item {
        color: var(--title-text-color);
        padding: 12px 0;
        font-size: var(--text-size);
        line-height: 1.6;
    }

    .yingfang_head .mobile-menu .dropdown-submenu .dropdown-menu {
        margin-left: 15px;
    }
}

@media screen and (max-width: 768px) {
    .yingfang_head .mobile-menu {
        width: 80vw;
    }

    .yingfang_head .mobile-actions {
        gap: 12px;
    }

    .yingfang_head .mobile-actions .head-search em i {
        font-size: 18px;
    }

    .yingfang_head .navbar-toggler i {
        font-size: 22px;
    }
}

@media screen and (max-width: 576px) {
    .yingfang_head .mobile-menu {
        width: 85vw;
    }

    .yingfang_head .mobile-actions {
        gap: 10px;
    }

    .yingfang_head .mobile-actions .head-search em i {
        font-size: 16px;
    }

    .yingfang_head .navbar-toggler i {
        font-size: 20px;
    }

    .yingfang_head .mobile-menu .logo .navbar-brand img {
        height: 24px;
    }
}

@media screen and (max-width: 480px) {
    .yingfang_head .mobile-menu {
        width: 90vw;
    }

    .yingfang_head .mobile-actions {
        gap: 8px;
    }
}

@media screen and (max-width: 1200px) {
    .yingfang-banner .banner-sub-title {
        line-height: 40px!important;
    }
}


@media screen and (max-width: 1500px) {
    .yingfang-banner .banner-sub-title {
        line-height: 62px;
        font-size: 36px!important;
    }
}