/* Main container */
.yingfang_foot {
    font-family: var(--font-family);
}

.yingfang_foot .foot-main {
    background: #222;
    padding-top: var(--gap-60);
    padding-bottom: 20px;
}

/* Content layout: logo-section + nav-columns in a row */
.yingfang_foot .foot-content {
    display: flex;
    gap: var(--gap-175);
    justify-content: space-between;
}

/* Logo Section - Left */
.yingfang_foot .logo-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: var(--gap-70);
}

.yingfang_foot .foot-logo-wrap {
    aspect-ratio: 292/27;
    max-width: 292px;
}

.yingfang_foot .foot-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Social media icons below logo */
.yingfang_foot .social-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.yingfang_foot .social-icon {
    width: 30px;
    height: 30px;
    border-radius: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.yingfang_foot .social-icon i {
    font-size: 16px;
    color: #222;
    transition: color 0.3s ease;
}

.yingfang_foot .social-icon:hover {background: var(--color-primary);}
.yingfang_foot .social-icon:hover i{color: #fff;}

/* Navigation columns */
.yingfang_foot .nav-columns{
    display: flex;
    gap: var(--gap-72);
    width: 100%;
}

.yingfang_foot .nav-column {
    display: flex;
    flex-direction: column;
    max-width: 220px;
    flex: 1;
}

/* Column title */
.yingfang_foot .nav-title {
    color: #fff;
    font-family: var(--medium-font-family);
    font-size: var(--font-22);
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    margin-bottom: var(--gap-24);
}

/* Separator line below title */
.yingfang_foot .nav-line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Navigation list */
.yingfang_foot .nav-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 47px;
}

.yingfang_foot .nav-list li {
    margin-bottom: 0;
}

.yingfang_foot .nav-list a {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family);
    font-size: var(--font-16);
    font-weight: 400;
    line-height: 2.19;
    transition: color 0.3s ease;
    display: inline-block;
}

.yingfang_foot .nav-list a:hover {
    color: #fff;
    text-decoration: none;
}

/* Contact column */
.yingfang_foot .contact-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 47px;
}

.yingfang_foot .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: var(--text-gap-sm);
}

.yingfang_foot .contact-item:last-child {
    margin-bottom: 0;
}

.yingfang_foot .contact-icon {
    flex-shrink: 0;
}

.yingfang_foot .contact-icon svg {
    width: 16px;
    height: 16px;
}

.yingfang_foot .contact-item a,
.yingfang_foot .contact-item span {
    word-break: break-word;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-family);
    font-size: var(--font-16);
    font-weight: 400;
    line-height: 2.19;
    transition: color 0.3s ease;
    display: inline-block;
}

.yingfang_foot .contact-item a:hover {
    color: #fff;
    text-decoration: none;
}

/* Bottom section */
.yingfang_foot .foot-bottom {
    margin-top: var(--component-gap-sm);
}

.yingfang_foot .divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: var(--text-gap);
}

.yingfang_foot .copyright-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
}

.yingfang_foot .copyright {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.57;
    margin: 0;
}

.yingfang_foot .privacy-link {
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.57;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.yingfang_foot .privacy-link:hover {
    color: #fff;
    text-decoration: none;
}

/* ===================================
   Responsive Styles
   =================================== */

@media screen and (max-width: 1500px) {
    .yingfang_foot .foot-logo-wrap {
        max-width: 170px;
    }
}

@media screen and (max-width: 1280px) {
    .yingfang_foot .foot-logo-wrap {
        max-width: 150px;
    }
    .yingfang_foot .social-icon {
        width: 28px;
        height: 28px;
    }
    .yingfang_foot .social-icon i {
        font-size: 14px;
    }
}

@media screen and (max-width: 1200px) {
    .yingfang_foot .foot-content {
        flex-wrap: wrap;
        gap: var(--gap-50) var(--gap-80);
    }
    .yingfang_foot .logo-section {
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: var(--gap-80);
    }
}

@media screen and (max-width: 992px) {
    .yingfang_foot .foot-main {
        padding: var(--gap-50) 0 var(--gap-20);
    }
    .yingfang_foot .foot-content {
        gap: var(--gap-50);
    }
    .yingfang_foot .logo-section {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gap-20);
    }
    .yingfang_foot .nav-list a {
        font-size: 14px;
    }
    .yingfang_foot .contact-item a,
    .yingfang_foot .contact-item span {
        font-size: 14px;
    }
    .yingfang_foot .copyright-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gap-18);
    }
}

@media screen and (max-width: 768px) {
    .yingfang_foot .foot-content {
        flex-direction: column;
        gap: 0;
    }
    .yingfang_foot .logo-section {
        margin-bottom: var(--gap-20);
    }
    .yingfang_foot .foot-logo-wrap {
        max-width: 140px;
    }
    .yingfang_foot .nav-column {
        max-width: 100%;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: var(--gap-20) 0;
    }
    .yingfang_foot .nav-column:last-child {
        border-bottom: none;
    }
    .yingfang_foot .nav-title {
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .yingfang_foot .nav-title::after {
        content: '';
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid #fff;
        transition: transform 0.3s ease;
    }
    .yingfang_foot .nav-title.active::after {
        transform: rotate(180deg);
    }
    .yingfang_foot .nav-line {
        display: none;
    }
    .yingfang_foot .nav-list,
    .yingfang_foot .contact-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, margin-top 0.3s ease;
        margin-top: 0;
    }
    .yingfang_foot .nav-title.active ~ .nav-list,
    .yingfang_foot .nav-title.active ~ .contact-list {
        max-height: 500px;
        margin-top: var(--gap-18);
    }
    .yingfang_foot .nav-list a {
        font-size: 13px;
    }
    .yingfang_foot .contact-item a,
    .yingfang_foot .contact-item span {
        font-size: 13px;
    }
    .yingfang_foot .copyright-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--gap-18);
    }
    .yingfang_foot .social-icon {
        width: 26px;
        height: 26px;
    }
    .yingfang_foot .social-icon i {
        font-size: 13px;
    }
    .yingfang-third-app{
        transform: translateY(-110%);
    }
}

@media screen and (max-width: 576px) {
    .yingfang_foot .foot-logo-wrap {
        max-width: 120px;
    }

    .yingfang_foot .nav-columns{
        display: grid;
    }

    .yingfang_foot .logo-section {
        gap: 20px;
    }
    .yingfang_foot .social-icon {
        width: 24px;
        height: 24px;
    }
    .yingfang_foot .social-icon i {
        font-size: 12px;
    }
}