/**
 * new-zibll-footer - 自定义底部样式
 */

/* ========== 全局重置 ========== */
.footer {
    background: #333 !important;
    padding: 0 !important;
    font-size: 13px;
}
.footer a {
    font-size: 13px;
}

/* ========== 顶部收藏栏 ========== */
.footer-fav {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-image: linear-gradient(to top, rgba(0, 81, 255, 0.212), transparent);
    padding: 0 15px;
    box-sizing: border-box;
}

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

.footer-fav .site-info {
    width: 60%;
}
.footer-fav .site-info h2 {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.4;
}
.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: ',';
}
.footer-fav .site-info p {
    margin-bottom: 10px;
    color: #797979;
    font-size: 12px;
    line-height: 1.8;
    white-space: normal;
    word-wrap: break-word;
}

.footer-fav .site-fav {
    padding-top: 5px;
}
.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;
}

/* ========== 底部背景设置 ========== */
#onecad_new_footer {
    clear: both;
}

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

/* ========== 底部栏目（widget 区域） ========== */
#tfbk-footer-new .tfbk-footer .widget-title {
    position: relative;
    border-bottom: 0;
    font-size: 18px;
    margin-bottom: 14px;
    color: var(--footer-bg);
    text-align: left;
    margin-top: 25px;
    margin-left: 5px;
}
#tfbk-footer-new .tfbk-footer .widget-title:before {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #165DFF !important;
    content: '';
    transition: width 0.3s ease;
}
#tfbk-footer-new .tfbk-footer section:hover .widget-title:before {
    width: 80px;
}
#tfbk-footer-new .tfbk-footer .textwidget {
    padding: 10px 0;
    line-height: 26px;
}
#tfbk-footer-new .tfbk-footer section:first-child {
    width: 30%;
}
#tfbk-footer-new .tfbk-footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#tfbk-footer-new .tfbk-footer .widget ul li {
    position: relative;
    padding: 7px 0 8px 15px;
}
#tfbk-footer-new .tfbk-footer .widget ul li:before {
    position: absolute;
    top: 9px;
    left: 1px;
    color: #165DFF !important;
    content: '•';
    font-size: 16px;
    line-height: 1;
}
#tfbk-footer-new .tfbk-footer .tfbk-footer-widget-in {
    display: flex;
    justify-content: space-between;
    margin: 0 -10px;
}
#tfbk-footer-new .tfbk-footer .widget {
    padding: 0 15px;
}
#tfbk-footer-new .tfbk-footer section {
    margin: 0;
    margin-bottom: 0;
}

/* ========== 二维码区域 ========== */
#tfbk-footer-new .tfbk-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, 0.08);
    padding: 5px;
}
.qr-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.qr-img:hover {
    transform: scale(1.05);
}
#tfbk-footer-new .tfbk-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;
}

/* ========== 链接样式 ========== */
#tfbk-footer-new a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--footer-bg);
}
#tfbk-footer-new a:hover {
    color: #165DFF !important;
    margin-left: 3px;
}

/* ========== 底部版权栏 ========== */
#tfbk-footer-new .footer-bottom {
    height: auto;
    line-height: 24px;
    color: #fff;
    font-size: 12px;
    padding: 15px 20px;
    background-color: #000;
    width: 100%;
    margin: 0;
    position: relative;
    left: 0;
    right: 0;
    box-sizing: border-box;
}
#tfbk-footer-new .footer-bottom a {
    color: #ccc;
}
#tfbk-footer-new .footer-bottom a:hover {
    color: #fff !important;
}
.footer-bottom-container {
    max-width: var(--mian-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ========== 友情链接 ========== */
.footer-links {
    padding: 5px 20px;
    margin: 10px auto;
    max-width: var(--mian-max-width);
    background: linear-gradient(135deg, rgb(22 93 255 /30%) 0, rgb(85 106 241/10%) 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    position: relative;
    min-height: 40px;
}
.link-content {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    padding-right: 100px;
    box-sizing: border-box;
}
.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 0.3s ease;
    text-decoration: none !important;
    white-space: nowrap;
}
.apply-link:hover,
.link-items a:hover {
    color: #165DFF !important;
}
.apply-link {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 500;
    white-space: nowrap;
    z-index: 1;
    background-color: rgba(22, 93, 255, 0.2);
    padding: 3px 10px;
    border-radius: 4px;
}

/* ========== 工具类 ========== */
.Onecad_fl { float: left; }
.fr { float: right; }
.hide_md { display: none; }

.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 0.2s;
}

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

#tfbk-footer-new .tfbk-footer-nav .wrapper {
    padding: 0;
    max-width: none;
}

.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;
}

/* ========== 修复：隐藏主题 TabBar 占位符 ========== */
.footer-tabbar-placeholder {
    display: none !important;
}

/* ====================================================================
 * 桌面端（≥768px）
 * ==================================================================== */
@media (min-width: 768px) {
    .footer-fav {
        display: flex;
        overflow: visible;
        width: auto;
        padding: 0;
    }
    .footer-fav .site-info {
        width: auto;
    }
    .footer-fav .site-info h2 {
        font-size: 26px;
    }
    .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 {
        display: block;
        margin-bottom: 0;
        font-size: 14px;
    }
    .footer-fav .site-fav {
        padding-top: 24px;
    }
    .footer-fav .site-fav .btn-orange {
        padding: 0 2em;
        font-size: var(--tfbk--margin);
        line-height: 3.5;
    }
    .hide_md {
        display: block;
    }
}

/* ====================================================================
 * 桌面端（≥769px）：5 列 + 友链紧凑布局
 * ==================================================================== */
@media screen and (min-width: 769px) {
    #tfbk-footer-new .tfbk-footer section:first-child {
        width: 25%;
    }
    #tfbk-footer-new .tfbk-footer #nav_menu-2,
    #tfbk-footer-new .tfbk-footer #nav_menu-3,
    #tfbk-footer-new .tfbk-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;
    }
}

/* ====================================================================
 * 移动端（≤768px）：全部内容显示，垂直堆叠，排版优化
 * ==================================================================== */
@media screen and (max-width: 768px) {

    /* 容器内边距 */
    .wrapper {
        padding: 0 15px;
    }

    /* --- 顶部收藏栏：全部显示，垂直排列 --- */
    .footer-fav {
        padding: 0 15px;
    }
    .footer-fav .footer-fav-top {
        flex-direction: column;
        align-items: center;
        padding-top: 20px;
        padding-bottom: 20px;
        text-align: center;
    }
    .footer-fav .site-info {
        width: 100%;
        margin-bottom: 12px;
    }
    .footer-fav .site-info h2 {
        font-size: 18px;
        text-align: center;
    }
    .footer-fav .site-info .site-p {
        max-width: 100%;
    }
    .footer-fav .site-info .site-p p:first-child:after {
        content: '';
    }
    .footer-fav .site-info p {
        font-size: 14px;
        margin-bottom: 0;
    }
    .footer-fav .site-fav {
        width: 100%;
        text-align: center;
        padding-top: 0;
    }
    .footer-fav .site-fav .btn-orange {
        display: inline-block;
        width: auto;
        font-size: 14px;
        line-height: 2.6;
        padding: 0 1.2em;
    }

    /* --- 底部栏目：2×2 双栏布局 --- */
    #tfbk-footer-new .tfbk-footer .tfbk-footer-widget-in {
        flex-wrap: wrap;
    }
    #tfbk-footer-new .tfbk-footer section:first-child {
        width: 100%;
    }
    #tfbk-footer-new .tfbk-footer #nav_menu-2,
    #tfbk-footer-new .tfbk-footer #nav_menu-3 {
        width: 50%;
    }
    #tfbk-footer-new .tfbk-footer #nav_menu-4,
    #tfbk-footer-new .tfbk-footer #custom_html-3 {
        width: 50%;
    }
    #tfbk-footer-new .tfbk-footer .widget-title {
        margin-top: 18px;
        font-size: 16px;
    }
    #tfbk-footer-new .tfbk-footer .widget {
        padding: 0 5px;
    }
    #tfbk-footer-new .tfbk-footer .textwidget {
        padding: 5px 0;
    }
    #tfbk-footer-new .tfbk-footer .textwidget p {
        font-size: 14px;
        line-height: 1.7;
    }
    .widget ul li {
        padding: 6px 8px;
        font-size: 14px;
    }
    .widget ul li + li {
        margin-top: 0;
    }
    #tfbk-footer-new .tfbk-footer .widget ul li {
        padding: 6px 0 6px 14px;
        font-size: 14px;
    }
    #tfbk-footer-new .tfbk-footer > .wrapper {
        border-bottom: none;
        padding: 0 15px;
    }

    /* --- 二维码：紧凑水平居中 --- */
    #tfbk-footer-new .tfbk-footer section:last-child {
        padding-bottom: 15px;
    }
    #tfbk-footer-new .tfbk-footer section:last-child .qr-container {
        justify-content: center;
        gap: 8px;
        padding-top: 5px;
    }
    .qr-wrapper {
        width: 75px;
        height: 75px;
        padding: 4px;
    }
    .qr-wrapper .qr-img {
        border-radius: 6px;
    }
    #tfbk-footer-new .tfbk-footer section:last-child .qr-tips {
        font-size: 12px;
        margin-top: 5px;
        max-width: 75px;
    }

    /* --- 友情链接：全宽堆叠 --- */
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 12px 15px;
        margin: 8px auto;
        min-height: auto;
    }
    .footer-links .link-content {
        flex-direction: column;
        padding-right: 0;
        align-items: center;
    }
    .footer-links .link-heading {
        margin-bottom: 8px;
        margin-right: 0;
        font-size: 14px;
    }
    .footer-links .link-items {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .apply-link,
    .link-items a {
        font-size: 13px;
    }
    .apply-link {
        position: static;
        transform: none;
        margin-top: 8px;
        align-self: center;
    }

    /* --- 版权栏 --- */
    .tfbk-footer-nav {
        box-sizing: border-box;
        width: 100%;
        overflow: hidden;
    }
    #tfbk-footer-new .footer-bottom {
        padding: 12px 15px;
    }
    .footer-bottom-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-bottom-right {
        margin-top: 4px;
        display: flex;
        align-items: center;
        gap: 6px;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }
    .foot-copyright {
        font-size: 11px;
        line-height: 1.6em;
        word-break: break-all;
        white-space: normal;
        width: 100%;
    }
    .footer-bottom-right {
        font-size: 11px;
        line-height: 1.6em;
    }
}
