/**
 * 自定义页脚二（收藏引导 + 五列导航页脚）
 *
 * 来源：用户提供的 footer HTML/CSS，已做插件作用域隔离（.mzt-ft2 前缀），
 * 并把主题变量（--focus-color / --footer-bg / --mian-max-width 等）
 * 全部替换为后台可配变量。配色由 inc/footer-two.php 内联注入。
 *
 * 可用变量（注入在 .mzt-ft2 上）：
 *   --mzt-ft2-accent     强调色（标题下划线/圆点/链接悬浮）
 *   --mzt-ft2-fav-btn    收藏按钮背景色
 *   --mzt-ft2-text       页脚文字色
 */

/* ============ 主题 footer 外壳处理 ============
   本样式表仅在「自定义页脚二」启用时入队，故可安全覆盖主题外壳。 */
body .footer { background: transparent !important; padding: 0 !important; }
body .footer .container-footer {
    max-width: none !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ============ 根容器 ============ */
.mzt-ft2 {
    position: relative;
    font-size: 13px;
    color: var(--mzt-ft2-text, #f5f5f5);
    line-height: 1.7;
    clear: both;
}
.mzt-ft2::after { content: ''; display: block; clear: both; }
.mzt-ft2 a { color: var(--mzt-ft2-text, #f5f5f5); text-decoration: none; transition: all .3s ease; font-size: 13px; }
.mzt-ft2 ul, .mzt-ft2 li { list-style: none; padding: 0; margin: 0; }
.mzt-ft2 h2, .mzt-ft2 h4 { margin: 0; font-weight: 400; }
.mzt-ft2 .wrapper { margin: 0 auto; max-width: 1200px; padding: 0 20px; box-sizing: border-box; }
.mzt-ft2 .Onecad_fl { float: left; }
.mzt-ft2 .fr { float: right; }
.mzt-ft2 .hide_md { display: none; }
@media (min-width: 768px) {
    .mzt-ft2 .hide_md { display: block; }
}

/* ============ 顶部收藏引导栏 ============ */
.mzt-ft2 .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) {
    .mzt-ft2 .footer-fav { display: flex; overflow: visible; width: auto; padding: 0; }
}
.mzt-ft2 .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;
}
@media (max-width: 767px) {
    .mzt-ft2 .footer-fav { padding-bottom: 0; }
    .mzt-ft2 .footer-fav .girl-info,
    .mzt-ft2 .footer-fav .site-fav,
    .mzt-ft2 .footer-fav .site-p { display: none !important; }
    .mzt-ft2 .footer-fav .site-info { width: 50%; padding-right: 10px; box-sizing: border-box; }
    .mzt-ft2 .footer-fav .site-girl {
        position: static; width: 50%; display: flex; align-items: flex-start;
        justify-content: flex-end; padding-top: 10px; margin-left: auto;
    }
    .mzt-ft2 .footer-fav .site-girl .girl { position: static; width: 100%; max-width: 140px; height: auto; }
    .mzt-ft2 .footer-fav .thumb { padding-top: 116.667%; max-height: 160px; }
    .mzt-ft2 .footer-fav .footer-fav-top { flex-wrap: wrap; padding-bottom: 20px; }
}
.mzt-ft2 .footer-fav .site-info { width: 60%; }
@media (min-width: 768px) {
    .mzt-ft2 .footer-fav .site-info { width: auto; }
}
.mzt-ft2 .footer-fav .site-info h2 {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.4;
    color: #000;
}
@media (min-width: 768px) {
    .mzt-ft2 .footer-fav .site-info h2 { font-size: 26px; }
}
.mzt-ft2 .footer-fav .site-info h2 a { color: #000; text-decoration: none; }
.mzt-ft2 .footer-fav .site-info .site-p { margin-bottom: 10px; max-width: 500px; }
@media (min-width: 768px) {
    .mzt-ft2 .footer-fav .site-info .site-p { margin-bottom: 0; }
}
.mzt-ft2 .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) {
    .mzt-ft2 .footer-fav .site-info p { display: block; margin-bottom: 0; font-size: 14px; }
}
.mzt-ft2 .footer-fav .site-fav { padding-top: 5px; }
@media (min-width: 768px) {
    .mzt-ft2 .footer-fav .site-fav { padding-top: 24px; }
}
.mzt-ft2 .footer-fav .site-fav .btn-orange {
    padding: 0 1.2em;
    border-radius: 8px;
    background-color: var(--mzt-ft2-fav-btn, #ff5c00);
    color: #fff;
    font-size: 14px;
    line-height: 2.5;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border: 0;
}
@media (min-width: 768px) {
    .mzt-ft2 .footer-fav .site-fav .btn-orange { padding: 0 2em; font-size: 16px; line-height: 3.5; }
}
.mzt-ft2 .footer-fav .site-girl { position: absolute; bottom: 0; left: 50%; }
.mzt-ft2 .footer-fav .site-girl .girl {
    position: absolute; bottom: 0; left: 50px; width: 180px; transition: all .3s;
}
@media (min-width: 768px) {
    .mzt-ft2 .footer-fav .site-girl .girl { left: -50px; }
}
.mzt-ft2 .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;
}
.mzt-ft2 .footer-fav .site-girl .thumb { padding-top: 116.667%; }
.mzt-ft2 .footer-fav .site-girl .girl-info { margin-bottom: 55px; margin-left: 150px; }
.mzt-ft2 .footer-fav .site-girl h4 { color: #797979; font-weight: 400; font-size: 14px; line-height: 1.8; }
.mzt-ft2 .footer-fav .site-girl a { color: #797979; text-decoration: none; }
.mzt-ft2 .footer-fav .site-girl a:hover { color: #ff5c00; }
@media (min-width: 768px) {
    .mzt-ft2 .footer-fav:hover .site-girl .girl { left: -80px; }
    .mzt-ft2 .footer-fav:hover .site-girl .girl:after { visibility: visible; opacity: 1; }
}
.mzt-ft2 .thumb {
    position: relative; display: block; overflow: hidden; width: 100%; height: 0;
    background-color: transparent; background-position: center bottom;
    background-size: contain; background-repeat: no-repeat; transition: all .2s;
}

/* ============ 主页脚（背景图由前台内联注入） ============ */
.mzt-ft2 .onecad_new_footer { clear: both; background-color: #000; background-position: center center; background-size: cover; background-repeat: no-repeat; }
.mzt-ft2 .tfbk-footer-bg { background-position: center center; background-size: cover; background-repeat: no-repeat; }
.mzt-ft2 .tfbk-footer > .wrapper { border-bottom: 1px solid #9e9e9e3b; }
@media (max-width: 768px) {
    .mzt-ft2 .tfbk-footer > .wrapper { border-bottom: none; }
}

/* ============ 五列 widget ============ */
.mzt-ft2 .tfbk-footer-widget-in { display: flex; justify-content: space-between; margin: 0 -10px; }
@media (max-width: 768px) {
    .mzt-ft2 .tfbk-footer-widget-in { display: none !important; }
}
.mzt-ft2 .tfbk-footer-widget-in > section { margin: 0; padding: 0 15px; box-sizing: border-box; }
.mzt-ft2 .tfbk-footer-widget-in > section:first-child { width: 30%; }
.mzt-ft2 .tfbk-footer-widget-in > .ft2-link-widget { width: 18%; }
@media (min-width: 769px) {
    .mzt-ft2 .tfbk-footer-widget-in > section:first-child { width: 25%; }
    .mzt-ft2 .tfbk-footer-widget-in > .ft2-link-widget { width: 15%; }
}
.mzt-ft2 .widget-title {
    position: relative;
    border-bottom: 0;
    font-size: 18px;
    margin: 25px 0 14px 5px;
    color: var(--mzt-ft2-text, #f5f5f5);
    text-align: left;
}
.mzt-ft2 .widget-title:before {
    position: absolute; bottom: -5px; left: 0; width: 40px; height: 2px;
    background-color: var(--mzt-ft2-accent, #40e0d0) !important;
    content: ''; transition: width .3s ease;
}
.mzt-ft2 section:hover .widget-title:before { width: 80px; }
.mzt-ft2 .textwidget { padding: 10px 0; line-height: 26px; }
.mzt-ft2 .widget ul { list-style: none; padding: 0; margin: 0; }
.mzt-ft2 .widget ul li {
    position: relative; padding: 7px 0 8px 15px;
    font-size: 13px; box-sizing: border-box;
}
.mzt-ft2 .widget ul li + li { margin-top: -8px; }
.mzt-ft2 .widget ul li:before {
    position: absolute; top: 9px; left: 1px;
    color: var(--mzt-ft2-accent, #40e0d0) !important;
    content: '•'; font-size: 16px; line-height: 1;
}
.mzt-ft2 .widget > h2 { font-size: 16px; font-weight: 600; line-height: 1; }
.mzt-ft2 a:hover { color: var(--mzt-ft2-accent, #40e0d0) !important; margin-left: 3px; }

/* ============ 二维码 ============ */
.mzt-ft2 .ft2-qr-widget .qr-container { display: flex; width: 100%; justify-content: space-around; padding-top: 5px; }
.mzt-ft2 .qr-item { text-align: center; padding: 0 5px; }
.mzt-ft2 .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;
}
.mzt-ft2 .qr-img {
    width: 100% !important; height: 100% !important; object-fit: contain;
    border-radius: 8px; transition: transform .3s ease;
}
.mzt-ft2 .qr-img:hover { transform: scale(1.05); }
.mzt-ft2 .qr-tips { margin: 8px 0 0; max-width: 90px; text-align: center; font-size: 13px; line-height: 1.2em; }

/* ============ 友情链接 ============ */
.mzt-ft2 .tfbk-footer-nav .wrapper { padding: 0; max-width: none; }
.mzt-ft2 .footer-links {
    padding: 5px 20px; margin: 10px auto; max-width: 1200px;
    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;
}
@media (max-width: 768px) {
    .mzt-ft2 .footer-links { display: none !important; }
}
.mzt-ft2 .link-content {
    display: flex; align-items: center; width: 100%; justify-content: flex-start;
    padding-right: 100px; box-sizing: border-box;
}
.mzt-ft2 .link-heading {
    color: #fff; font-weight: 600; font-size: 14px; margin-right: 4px;
    white-space: nowrap; padding: 5px 0;
}
.mzt-ft2 .link-items { display: flex; flex: 1 1 0; min-width: 0; flex-wrap: wrap; gap: 15px; margin: 0; padding: 0; justify-content: flex-start; }
.mzt-ft2 .link-items a { color: #f0f0f0 !important; font-size: 13px; white-space: nowrap; margin-right: 4px; }
.mzt-ft2 .link-items a:hover { color: var(--mzt-ft2-accent, #40e0d0) !important; }
.mzt-ft2 .apply-link {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    color: #f0f0f0 !important; font-weight: 500; white-space: nowrap; z-index: 1;
    background-color: rgb(64 224 208 / 20%); padding: 3px 10px; border-radius: 4px;
    transition: all .3s ease;
}
.mzt-ft2 .apply-link:hover { color: var(--mzt-ft2-accent, #40e0d0) !important; }
@media (min-width: 769px) {
    .mzt-ft2 .link-items { gap: 5px; }
    .mzt-ft2 .link-items a { font-size: 12px; }
}

/* ============ 底部版权 ============ */
.mzt-ft2 .footer-bottom {
    height: auto; line-height: 24px; color: #4e5358; font-size: 12px;
    padding: 15px 20px; background-color: #000; width: 100%; margin: 0;
    position: relative; left: 0; right: 0; box-sizing: border-box;
}
.mzt-ft2 .footer-bottom-container { max-width: 1200px; margin: 0 auto; }
.mzt-ft2 .footer-bottom a { color: #ccc; }
.mzt-ft2 .footer-bottom a:hover { color: #fff !important; margin-left: 0; }
@media (max-width: 768px) {
    .mzt-ft2 .tfbk-footer-nav { box-sizing: border-box; width: 100%; overflow: hidden; }
    .mzt-ft2 .footer-bottom { padding: 15px 20px; }
    .mzt-ft2 .footer-bottom-container { flex-direction: column; align-items: center; text-align: center; }
    .mzt-ft2 .footer-bottom-right {
        margin-top: 5px; display: flex; align-items: center; gap: 8px; justify-content: center;
        width: 100%; font-size: 10px; line-height: 1.8em;
    }
    .mzt-ft2 .foot-copyright { font-size: 10px; line-height: 1.8em; word-break: break-all; white-space: normal; width: 100%; }
}
@media (min-width: 769px) {
    .mzt-ft2 .footer-bottom-container { flex-direction: row; justify-content: space-between; display: flex; align-items: center; }
    .mzt-ft2 .foot-copyright { text-align: left; }
    .mzt-ft2 .footer-bottom-right { text-align: right; display: flex; gap: 15px; }
}
