/*
 * 轩玮导航 - 页脚样式
 * @package XuWbk
 * @author 轩玮
 * @version 1.0.0
 * @description 参考《轩玮博客》页脚（品牌区 / 栏目导航 / 友情链接条 / 版权条），静态化改写
 * @contact QQ:6050640 邮箱：6050640@qq.com 网址：www.xuwbk.com
 * @copyright Copyright (c) 2026 by XuWbk.Com, All Rights Reserved.
 */

#xuwbk-footer {
    /* 页脚内容宽度跟随页面：默认不限制（满宽），≥1920 时与内容区一致限制为 1900px */
    --mian-max-width: none;
    --focus-color: #ff5c00;
    clear: both;
    font-size: 13px;
}

#xuwbk-footer .wrapper { max-width: var(--mian-max-width); margin: 0 auto; padding: 0 30px; box-sizing: border-box; }
#xuwbk-footer .Onecad_fl { float: left; }
#xuwbk-footer .fr { float: right; }
#xuwbk-footer .hide_md { display: none; }
#xuwbk-footer .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; }

/* ------------------------------ 品牌区 ------------------------------ */
#xuwbk-footer .footer-fav {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 0;
    background-image: linear-gradient(to top, #00ffbb36, transparent);
    box-sizing: border-box;
}

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

#xuwbk-footer .footer-fav .site-info { width: 60%; }
#xuwbk-footer .footer-fav .site-info h2 { margin-bottom: 10px; text-transform: uppercase; font-size: 18px; line-height: 1.4; color: #20262e; }
#xuwbk-footer .footer-fav .site-info .site-p { margin-bottom: 10px; max-width: 500px; }
#xuwbk-footer .footer-fav .site-info p { margin-bottom: 10px; color: #797979; font-size: 12px; line-height: 1.8; white-space: normal; word-wrap: break-word; }
#xuwbk-footer .footer-fav .site-info .site-p p:first-child::after { content: ','; }
#xuwbk-footer .footer-fav .site-fav { padding-top: 5px; }

#xuwbk-footer .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;
    border: none;
    cursor: pointer;
}

#xuwbk-footer .footer-fav .site-girl { position: absolute; bottom: 0; left: 50%; }
#xuwbk-footer .footer-fav .site-girl .girl { position: absolute; bottom: 0; left: 50px; width: 180px; transition: all .3s; }
#xuwbk-footer .footer-fav .site-girl .girl::after {
    position: absolute; top: 40%; left: 100%; display: block; visibility: hidden;
    color: #a7a7a7; content: 'Hi~'; font-size: 18px; opacity: 0; transition: all .3s;
}
#xuwbk-footer .footer-fav .site-girl .thumb { padding-top: 116.667%; }
#xuwbk-footer .footer-fav .site-girl .girl-info { margin-bottom: 55px; margin-left: 150px; }
#xuwbk-footer .footer-fav .site-girl h4 { color: #797979; font-weight: 400; font-size: 14px; line-height: 1.8; }

/* ------------------------------ 主题色块 ------------------------------ */
#xuwbk-footer .footer { background: #333; padding: 0; font-size: 13px; }
#xuwbk-footer .footer a { color: #fff; text-decoration: none; transition: all .3s ease; }
#xuwbk-footer .footer a:hover { color: #40e0d0; margin-left: 3px; }
#xuwbk-footer .onecad_new_footer { background: #333; }
/* 深色区段落：覆盖全局 p 的深色文字（#1d232b 在 #333 上看不清），改浅色 */
#xuwbk-footer .footer .textwidget p { color: #bdbdbd; line-height: 1.8; }
#xuwbk-footer .tfbk-footer > .wrapper { border-bottom: 1px solid #9e9e9e3b; }
#xuwbk-footer .tfbk-footer-nav .wrapper { padding: 0; max-width: none; }

#xuwbk-footer .tfbk-footer-widget-in { display: flex; justify-content: space-between; margin: 0 -10px; width: 100% !important; max-width: none !important; }
#xuwbk-footer .tfbk-footer section { margin: 0; }
#xuwbk-footer .tfbk-footer .widget { padding: 0 15px; margin-bottom: 0; }
#xuwbk-footer .tfbk-footer section:first-child { width: 30%; }
#xuwbk-footer .tfbk-footer .widget-menu { width: 18%; }

#xuwbk-footer .tfbk-footer .widget-title {
    position: relative;
    border-bottom: 0;
    font-size: 18px;
    margin: 25px 0 14px 5px;
    color: #fff;
    text-align: left;
    font-weight: 600;
}
#xuwbk-footer .tfbk-footer .widget-title::before {
    position: absolute; bottom: -5px; left: 0; width: 40px; height: 2px;
    background-color: #40e0d0; content: ''; transition: width .3s ease;
}
#xuwbk-footer .tfbk-footer section:hover .widget-title::before { width: 80px; }
#xuwbk-footer .tfbk-footer .textwidget { padding: 10px 0; line-height: 26px; }
#xuwbk-footer .tfbk-footer .widget ul { list-style: none; padding: 0; margin: 0; }
#xuwbk-footer .tfbk-footer .widget ul li { position: relative; padding: 7px 0 8px 15px; font-size: 13px; box-sizing: border-box; }
#xuwbk-footer .tfbk-footer .widget ul li + li { margin-top: -8px; }
#xuwbk-footer .tfbk-footer .widget ul li:before {
    position: absolute; top: 9px; left: 1px; color: #40e0d0; content: "•"; font-size: 16px; line-height: 1;
}

/* ------------------------------ 关注我们 ------------------------------ */
#xuwbk-footer .qr-container { display: flex; width: 100%; justify-content: space-around; padding-top: 5px; }
#xuwbk-footer .qr-item { text-align: center; padding: 0 5px; }
#xuwbk-footer .qr-wrapper {
    width: 90px;height: 90px;ht: 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; box-sizing: border-box;
}
#xuwbk-footer .qr-img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; transition: transform .3s ease; }
#xuwbk-footer .qr-img:hover { transform: scale(1.05); }
#xuwbk-footer .qr-tips { margin: 8px 0 0; max-width: 90px; text-align: center; font-size: 13px; line-height: 1.2em; color: #fff; }

/* ------------------------------ 友情链接条 ------------------------------ */
#xuwbk-footer .footer-links {
    padding: 5px 30px;
    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;
    box-sizing: border-box;
}
#xuwbk-footer .link-content { display: flex; align-items: center; width: 100%; justify-content: center; padding-right: 100px; box-sizing: border-box; }
#xuwbk-footer .link-heading { color: #fff; font-weight: 600; font-size: 14px; margin-right: 12px; white-space: nowrap; padding: 5px 0; }
#xuwbk-footer .link-items { display: flex; flex-wrap: wrap; gap: 15px; margin: 0; padding: 0; justify-content: center; }
#xuwbk-footer .link-items a,
#xuwbk-footer .apply-link { color: #f0f0f0; font-size: 13px; transition: all .3s ease; text-decoration: none; white-space: nowrap; }
#xuwbk-footer .link-items a:hover,
#xuwbk-footer .apply-link:hover { color: #40e0d0; margin-left: 0; }
#xuwbk-footer .apply-link {
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-weight: 500; background-color: rgba(64, 224, 208, .2); padding: 3px 10px; border-radius: 4px;
}

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

/* ------------------------------ 响应式 ------------------------------ */
/* 页脚内容左右内边距跟随内容区：≥768px 为 30px，<768px 为 15px（与 .content-site 一致） */
@media (max-width: 767.98px) {
    #xuwbk-footer .wrapper { padding: 0 15px; }
    #xuwbk-footer .footer-links { padding: 5px 15px; }
    #xuwbk-footer .footer-bottom { padding: 15px 15px; }
}
@media (min-width: 1920px) {
    #xuwbk-footer { --mian-max-width: 1900px; }
}

/* 通栏：当存在左侧栏（170px）时，把深色背景向左延伸覆盖侧栏下方，使页脚铺满整个窗口；
   内容仍从 170（侧栏）+ 30（内容区内边距）= 200px 起，与卡片左边缘对齐 */
@media (min-width: 768px) {
    .page-container:has(#sidebar) #xuwbk-footer .footer-fav,
    .page-container:has(#sidebar) #xuwbk-footer .footer,
    .page-container:has(#sidebar) #xuwbk-footer .onecad_new_footer {
        margin-left: -170px;
        padding-left: 170px;
        width: calc(100% + 170px);
        box-sizing: border-box;
    }
}

@media (min-width: 768px) {
    #xuwbk-footer .hide_md { display: block; }
    #xuwbk-footer .footer-fav { display: flex; overflow: visible; width: auto; padding: 0; }
    #xuwbk-footer .footer-fav .site-info { width: auto; }
    #xuwbk-footer .footer-fav .site-info h2 { font-size: 26px; }
    #xuwbk-footer .footer-fav .site-info .site-p { margin-bottom: 0; }
    #xuwbk-footer .footer-fav .site-info .site-p p:first-child::after { content: ''; }
    #xuwbk-footer .footer-fav .site-info p { display: block; margin-bottom: 0; font-size: 14px; }
    #xuwbk-footer .footer-fav .site-fav { padding-top: 24px; }
    #xuwbk-footer .btn-orange { padding: 0 2em; line-height: 3.5; }
    #xuwbk-footer .footer-fav .site-girl .girl { left: -50px; }
    #xuwbk-footer .footer-fav:hover .site-girl .girl { left: -80px; }
    #xuwbk-footer .footer-fav:hover .site-girl .girl::after { visibility: visible; opacity: 1; }
}

@media (max-width: 767px) {
    #xuwbk-footer .footer-fav { padding-bottom: 0; }
    #xuwbk-footer .footer-fav .girl-info,
    #xuwbk-footer .footer-fav .site-fav,
    #xuwbk-footer .footer-fav .site-p { display: none !important; }
    #xuwbk-footer .footer-fav .site-info { width: 65%; padding-right: 5px; box-sizing: border-box; }
    #xuwbk-footer .footer-fav .site-info h2 { font-size: 16px; line-height: 1.2; word-wrap: break-word; white-space: normal; }
    #xuwbk-footer .site-title-mobile { display: block; white-space: nowrap; }
    #xuwbk-footer .site-domain-mobile { display: block; white-space: nowrap; font-size: 18px; }
    #xuwbk-footer .footer-fav .site-girl { position: static; width: 35%; display: flex; align-items: flex-start; justify-content: flex-end; padding-top: 10px; margin-left: auto; }
    #xuwbk-footer .footer-fav .site-girl .girl { position: static; width: 100%; max-width: 118px; height: auto; }
    #xuwbk-footer .footer-fav .thumb { padding-top: 116.667%; max-height: 160px; }
    #xuwbk-footer .footer-fav .footer-fav-top { flex-wrap: wrap; padding-bottom: 18px; margin-top: 15px; }
}

@media (max-width: 480px) {
    #xuwbk-footer .footer-fav .site-info { width: 70%; padding-right: 5px; }
    #xuwbk-footer .footer-fav .site-girl { width: 30%; }
    #xuwbk-footer .footer-fav .site-info h2 { font-size: 14px; line-height: 1.1; }
    #xuwbk-footer .site-title-mobile,
    #xuwbk-footer .site-domain-mobile { font-size: 18px; }
}

@media (min-width: 769px) {
    #xuwbk-footer .tfbk-footer section:first-child { width: 25%; }
    #xuwbk-footer .tfbk-footer .widget-menu { width: 15%; }
    #xuwbk-footer .link-items { gap: 5px; margin-top: 1px; }
    #xuwbk-footer .link-items a { font-size: 12px; }
    #xuwbk-footer .foot-copyright { text-align: left; }
    #xuwbk-footer .footer-bottom-right { text-align: right; }
}

@media screen and (max-width: 768px) {
    #xuwbk-footer .tfbk-footer .tfbk-footer-widget-in,
    #xuwbk-footer .footer-links { display: none !important; }
    #xuwbk-footer .tfbk-footer > .wrapper { border-bottom: none; }
    #xuwbk-footer .footer-bottom-container { flex-direction: column; align-items: center; text-align: center; }
    #xuwbk-footer .foot-copyright { font-size: 10px; line-height: 1.8em; word-break: break-all; white-space: normal; width: 100%; }
    #xuwbk-footer .footer-bottom-right { margin-top: 5px; justify-content: center; width: 100%; font-size: 10px; line-height: 1.8em; }
}

/* ------------------------------ 夜间模式 ------------------------------ */
body.night #xuwbk-footer .footer,
body.io-black-mode #xuwbk-footer .footer,
body.night #xuwbk-footer .onecad_new_footer,
body.io-black-mode #xuwbk-footer .onecad_new_footer { background: #22262d; }
body.night #xuwbk-footer .footer-fav,
body.io-black-mode #xuwbk-footer .footer-fav { background-image: linear-gradient(to top, #00ffbb1f, transparent); }
body.night #xuwbk-footer .footer-fav .site-info h2,
body.io-black-mode #xuwbk-footer .footer-fav .site-info h2 { color: #eee; }
