/* 核心修改：移除固定定位，调整为内容流布局 */
.footer-container {
    width: 100%;
    margin-top: 30px;
}
.footer{display: none;}

.footer-fav {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-image: linear-gradient(to top,#00ffbb36,transparent);
    padding: 0 15px;
    box-sizing: border-box;
    margin-top: 20px;
}
.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.foot-copyright {
    flex: 1;
    text-align: left;
    padding: 0 10px;
}

.footer-custom-html {
    flex: 1;
    text-align: center;
    padding: 0 10px;
}

.footer-bottom-right {
    flex: 1;
    text-align: right;
    padding: 0 10px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

@media screen and (max-width:768px) {
    .footer-bottom-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .foot-copyright,
    .footer-custom-html,
    .footer-bottom-right {
        flex: none;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* 修复1：移动端不隐藏友情链接区域（删除原display: none） */
    .RuYan-footer .RuYan-footer-widget-in {
        display: none!important;
    }
    .footer-links {
        /* 仅隐藏桌面端布局，保留按钮 */
        padding: 10px 15px;
    }
    .link-content .link-heading {
        margin-right: 8px;
        font-size: 13px;
    }
    .apply-link {
        position: static;
        transform: none;
        margin-top: 10px;
        display: inline-block;
    }
}

.footer-fav {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-image: linear-gradient(to top,#00ffbb36,transparent);
    padding: 0 15px;
    box-sizing: border-box
}
@media(min-width:768px) {
    .footer-fav {
        display: flex;
        overflow: visible;
        width: auto;
        padding: 0
    }
}

.footer-fav .footer-fav-top {
    display: flex;
    align-items: center;
    overflow: visible;
    padding-top: 60px;
    padding-bottom: 36px;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box
}

.footer-fav .footer-fav-top {
    display: flex;
    align-items: center;
    overflow: visible;
    padding-top: 60px;
    padding-bottom: 36px;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box
}

@media(max-width:767px) {
    .footer-fav {
        padding-bottom: 0
    }

    .footer-fav .girl-info,.footer-fav .site-fav,.footer-fav .site-p {
        display: none!important
    }

    .footer-fav .site-info {
        width: 50%;
        padding-right: 10px;
        box-sizing: border-box
    }

    .footer-fav .site-girl {
        position: static;
        width: 50%;
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
        padding-top: 10px;
        margin-left: auto
    }

    .footer-fav .site-girl .girl {
        position: static;
        width: 100%;
        max-width: 140px;
        height: auto
    }

    .footer-fav .thumb {
        padding-top: 116.667%;
        max-height: 160px
    }

    .footer-fav .footer-fav-top {
        flex-wrap: wrap;
        padding-bottom: 20px;
        margin-top: 15px;
    }
}

.footer-fav .site-info {
    width: 60%
}

@media(min-width:768px) {
    .footer-fav .site-info {
        width: auto
    }
}

.footer-fav .site-info h2 {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.4
}

@media(min-width:768px) {
    .footer-fav .site-info h2 {
        font-size: 26px
    }
}

.footer-fav .site-info h2 a {
    color: #000;
    text-decoration: none
}

.footer-fav .site-info .site-p {
    margin-bottom: 10px;
    max-width: 500px
}

.footer-fav .site-info .site-p p:first-child::after {
    content: ','
}

@media(min-width:768px) {
    .footer-fav .site-info .site-p {
        margin-bottom: 0
    }

    .footer-fav .site-info .site-p p:first-child::after {
        content: ''
    }
}

.footer-fav .site-info p {
    margin-bottom: 10px;
    color: #797979;
    font-size: 12px;
    line-height: 1.8;
    white-space: normal;
    word-wrap: break-word
}

@media(min-width:768px) {
    .footer-fav .site-info p {
        display: block;
        margin-bottom: 0;
        font-size: 14px
    }
}

.footer-fav .site-fav {
    padding-top: 5px
}

@media(min-width:768px) {
    .footer-fav .site-fav {
        padding-top: 24px
    }
}

.footer-fav .site-fav .btn-orange {
    padding: 0 1.2em;
    border-radius: 8px;
    background-color: var(--focus-color);
    color: #fff;
    font-size: 14px;
    line-height: 2.5;
    text-decoration: none;
    display: inline-block
}

@media(min-width:768px) {
    .footer-fav .site-fav .btn-orange {
        padding: 0 2em;
        font-size: var(--RuYan--margin);
        line-height: 3.5
    }
}

.footer-fav .site-girl {
    position: absolute;
    bottom: 0;
    left: 50%
}

.footer-fav .site-girl .girl {
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 180px;
    transition: all .3s
}

@media(min-width:768px) {
    .footer-fav .site-girl .girl {
        left: -50px
    }
}

.footer-fav .site-girl .girl::after {
    position: absolute;
    top: 40%;
    left: 100%;
    display: block;
    visibility: hidden;
    color: #a7a7a7;
    content: 'Hi~';
    font-size: 20px;
    opacity: 0;
    transition: all .3s
}

.footer-fav .site-girl .thumb {
    padding-top: 116.667%
}

.footer-fav .site-girl .girl-info {
    margin-bottom: 55px;
    margin-left: 150px
}

.footer-fav .site-girl h4 {
    color: #797979;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.8
}

.footer-fav .site-girl a {
    color: #797979;
    text-decoration: none
}

.footer-fav .site-girl a:hover {
    color: #ff5c00
}

@media(min-width:768px) {
    .footer-fav:hover .site-girl .girl {
        left: -80px
    }

    .footer-fav:hover .site-girl .girl::after {
        visibility: visible;
        opacity: 1
    }
}

.thumb {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: 0;
    background-color: transparent;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: all .2s
}

.wrapper {
    max-width: 100%;
    margin: 0 auto
}

.Onecad_fl {
    float: left
}

.fr {
    float: right
}

.hide_md {
    display: none
}

@media(min-width:768px) {
    .hide_md {
        display: block
    }
}

#onecad_new_footer {
    clear: both;
    position: relative;
    width: 100%;
}

.RuYan-footer>.wrapper {
    border-bottom: 1px solid #9e9e9e3b
}

.footer {
    padding: 0!important
}

.RuYan-footer .widget-title {
    position: relative;
    border-bottom: 0;
    font-size: 18px;
    margin-bottom: 14px;
    color: #fff;
    text-align: left;
    margin-top: 25px;
    margin-left: 5px;
}

.RuYan-footer .widget-title::before {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #40e0d0!important;
    content: '';
    transition: width .3s ease
}

.RuYan-footer section:hover .widget-title::before {
    width: 80px
}

.RuYan-footer .textwidget {
    padding: 10px 0;
    line-height: 26px
}

.RuYan-footer section:first-child {
    width: 30%
}

.RuYan-footer #nav_menu-1 li {
    display: inline-block;
    width: 45%
}

.RuYan-footer #nav_menu-2,.RuYan-footer #nav_menu-3,.RuYan-footer #nav_menu-4 {
    width: 18%
}

.RuYan-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0
}

.RuYan-footer .widget ul li {
    position: relative;
    padding: 7px 0 8px 15px
}

.RuYan-footer .widget ul li:before {
    position: absolute;
    top: 9px;
    left: 1px;
    color: #40e0d0!important;
    content: "•";
    font-size: 16px;
    line-height: 1
}

.RuYan-footer .RuYan-footer-widget-in {
    display: flex;
    justify-content: space-between
}

.RuYan-footer .widget {
    padding: 0 15px
}

.RuYan-footer section {
    margin: 0;
    margin-bottom: 0
}

.RuYan-footer .RuYan-footer-widget-in {
    margin: 0 -10px
}

.RuYan-footer section:last-child .qr-container {
    display: flex;
    width: 100%;
    justify-content: space-around;
    padding-top: 5px
}

.qr-item {
    text-align: center;
    padding: 0 5px
}

.qr-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,.08);
    padding: 5px
}

.qr-img {
    width: 100%!important;
    height: 100%!important;
    object-fit: contain;
    border-radius: 8px;
    transition: transform .3s ease
}

.qr-img:hover {
    transform: scale(1.05)
}

.RuYan-footer section:last-child .qr-tips {
    margin-top: 8px;
    max-width: 90px;
    text-align: center;
    font-size: 13px;
    line-height: 1.2em;
    margin-bottom: 0
}

.RuYan-footer a {
    text-decoration: none;
    transition: all .3s ease;
    color: #fff;
}

.RuYan-footer a:hover {
    color: #40e0d0!important;
    margin-left: 3px
}

.footer-bottom {
    height: auto;
    line-height: 24px;
    color: #fff;
    font-size: 12px;
    padding: 15px 20px;
    background-color: #000;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    position: relative;
    left: auto;
    right: auto;
}

.footer-links {
    padding: 5px 20px;
    margin: 10px auto;
    max-width: var(--mian-max-width);
    background: linear-gradient(135deg,rgb(120 234 180 / 30%) 0,rgb(85 106 241 / 10%) 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    display: flex;
    align-items: center;
    position: relative;
    min-height: 40px;
    /* 修复2：确保容器显示 */
    display: flex !important;
}

.link-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    padding-right: 100px; /* 为右侧按钮预留空间 */
    box-sizing: border-box
}

@media(max-width:768px) {
    .link-content {
        flex-direction: column; /* 移动端垂直排列 */
        padding-right: 0;
    }
}

.link-heading {
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    margin-right: 12px;
    white-space: nowrap;
    padding: 5px 0
}

.link-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0;
    padding: 0;
    justify-content: center
}

.apply-link,.link-items a {
    color: #f0f0f0!important;
    font-size: 13px;
    transition: all .3s ease;
    text-decoration: none!important;
    white-space: nowrap
}

.apply-link:hover,.link-items a:hover {
    color: #40e0d0!important
}

.apply-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 500;
    white-space: nowrap;
    z-index: 1;
    background-color: rgba(64,224,208,.2);
    padding: 3px 10px;
    border-radius: 4px;
    /* 修复3：强制显示按钮，避免被覆盖 */
    display: inline-block !important;
    min-width: 80px; /* 确保按钮有足够宽度 */
    text-align: center;
}

.RuYan-footer-nav .wrapper {
    padding: 0;
    max-width: none
}

.footer-bottom-container {
    max-width: var(--mian-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.footer-bottom a {
    color: #ccc
}

.footer-bottom a:hover {
    color: #fff!important
}

@media screen and (max-width:768px) {
    .RuYan-footer .RuYan-footer-widget-in {
        display: none!important
    }

    .RuYan-footer-nav {
        box-sizing: border-box;
        width: 100%;
        overflow: hidden
    }

    .footer-bottom {
        padding: 15px 20px
    }

    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .footer-bottom-right {
        margin-top: 5px;
        display: flex;
        align-items: center;
        gap: 8px;
        justify-content: center;
        width: 100%
    }

    .foot-copyright {
        font-size: 10px;
        line-height: 1.8em;
        word-break: break-all;
        white-space: normal;
        width: 100%
    }

    .footer-bottom-right {
        font-size: 10px;
        line-height: 1.8em
    }
}

@media screen and (min-width:769px) {
    .RuYan-footer section:first-child {
        width: 25%
    }

    .RuYan-footer #nav_menu-2,.RuYan-footer #nav_menu-3,.RuYan-footer #nav_menu-4 {
        width: 15%
    }

    .link-items {
        gap: 5px;
        margin-top: 1px
    }

    .link-items a {
        font-size: 12px
    }

    .footer-bottom-container {
        flex-direction: row;
        justify-content: space-between
    }

    .foot-copyright {
        text-align: left
    }

    .footer-bottom-right {
        text-align: right;
        display: flex;
        gap: 15px
    }
}

.wrapper {
    margin: 0 auto;
    max-width: var(--mian-max-width);
    padding: 0 20px
}

.entry-content>ol li::marker,.entry-content>ul li::marker {
    color: #999;
    font-family: DIN-Medium
}

.widget ul li {
    font-size: 13px;
    padding: 12px 16px;
    box-sizing: border-box
}

.widget ul li+li {
    margin-top: -8px
}

.widget>h2 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1
}

.RuYan-footer {
    font-size: 13px;
    background: #333!important

}

.RuYan-footer a {
    font-size: 13px
}