/* ================================
   B2风格页脚
   ================================ */

/* ---- 顶部横幅 ---- */
.zm-b2f-fav {
    position: relative;
    overflow: hidden;
    width: 100%;
    background-color: #333;
    background-image: linear-gradient(to top, rgba(0, 255, 187, .21), transparent);
    padding: 0 15px;
    box-sizing: border-box;
}
.zm-b2f-fav-top {
    display: flex;
    align-items: center;
    overflow: visible;
    padding: 36px 0;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}
.zm-b2f-wrapper {
    max-width: var(--mian-max-width, 1200px);
    margin: 0 auto;
    padding: 0 20px;
}
.zm-b2f-fl { float: left; }
.zm-b2f-fr { float: right; }
.zm-b2f-hide-md { display: none; }
@media (min-width: 768px) { .zm-b2f-hide-md { display: block; } }

.zm-b2f-site-info { width: 60%; }
@media (min-width: 768px) { .zm-b2f-site-info { width: auto; } }
.zm-b2f-site-info h2 {
    margin-bottom: 10px;
    text-transform: uppercase;
    font-size: 20px;
    line-height: 1.4;
    color: #fff;
}
@media (min-width: 768px) { .zm-b2f-site-info h2 { font-size: 26px; } }
.zm-b2f-site-p {
    margin-bottom: 10px;
    max-width: 500px;
}
.zm-b2f-site-p p {
    margin-bottom: 10px;
    color: #797979;
    font-size: 12px;
    line-height: 1.8;
    white-space: normal;
    word-wrap: break-word;
}
@media (min-width: 768px) {
    .zm-b2f-site-p { margin-bottom: 0; }
    .zm-b2f-site-p p { display: block; font-size: 14px; margin-bottom: 0; }
    .zm-b2f-fav { display: flex; overflow: visible; width: auto; padding: 0; }
}

/* 收藏按钮 */
.zm-b2f-site-fav { padding-top: 5px; }
@media (min-width: 768px) { .zm-b2f-site-fav { padding-top: 24px; } }
.zm-b2f-btn-fav {
    padding: 0 1.2em;
    border-radius: 8px;
    background-color: var(--zm-b2f-accent, #40e0d0);
    color: #fff !important;
    font-size: 14px;
    line-height: 2.5;
    text-decoration: none;
    display: inline-block;
    transition: opacity .3s;
}
.zm-b2f-btn-fav:hover { opacity: .85; color: #fff !important; }
@media (min-width: 768px) {
    .zm-b2f-btn-fav { padding: 0 2em; font-size: 16px; line-height: 3.5; }
}

/* 角色立绘 */
.zm-b2f-site-girl { position: absolute; bottom: 0; left: 50%; }
.zm-b2f-girl { position: absolute; bottom: 0; left: 50px; width: 180px; transition: all .3s; }
@media (min-width: 768px) { .zm-b2f-girl { left: -50px; } }
.zm-b2f-girl::after {
    position: absolute; top: 40%; left: 100%;
    display: block; visibility: hidden;
    color: #a7a7a7; content: 'Hi~'; font-size: 20px;
    opacity: 0; transition: all .3s;
}
.zm-b2f-thumb {
    position: relative; display: block; overflow: hidden;
    width: 100%; height: 0; padding-top: 116.667%;
    background-color: transparent; background-position: center;
    background-size: cover; background-repeat: no-repeat;
    transition: all .2s;
}
.zm-b2f-girl-info { margin-bottom: 55px; margin-left: 150px; }
.zm-b2f-girl-info h4 { color: #797979; font-weight: 400; font-size: 14px; line-height: 1.8; }
.zm-b2f-site-girl a { color: #797979; text-decoration: none; }
.zm-b2f-site-girl a:hover { color: var(--zm-b2f-accent, #40e0d0); }
@media (min-width: 768px) {
    .zm-b2f-fav:hover .zm-b2f-girl { left: -80px; }
    .zm-b2f-fav:hover .zm-b2f-girl::after { visibility: visible; opacity: 1; }
}

/* 手机端 */
@media (max-width: 767px) {
    .zm-b2f-fav { padding-bottom: 0; }
    .zm-b2f-girl-info, .zm-b2f-site-fav, .zm-b2f-site-p { display: none !important; }
    .zm-b2f-site-info { width: 50%; padding-right: 10px; box-sizing: border-box; }
    .zm-b2f-site-girl {
        position: static; width: 50%;
        display: flex; align-items: flex-start; justify-content: flex-end;
        padding-top: 10px; margin-left: auto;
    }
    .zm-b2f-girl { position: static; width: 100%; max-width: 140px; height: auto; }
    .zm-b2f-thumb { padding-top: 116.667%; max-height: 160px; }
    .zm-b2f-fav-top { flex-wrap: wrap; padding-bottom: 20px; margin-top: 15px; }
}

/* ---- 主体页脚 ---- */
.zm-b2f-footer { background: #333; padding: 0 !important; clear: both; font-size: 13px; }
.zm-b2f-footer a { font-size: 13px; }
.zm-b2f-main { background-size: cover; background-position: center; }
.zm-b2f-content { border-bottom: 1px solid rgba(158, 158, 158, .23); }
.zm-b2f-nav > .zm-b2f-wrapper { max-width: none; padding: 0; }

/* 多栏小工具 */
.zm-b2f-widget-row {
    display: flex;
    justify-content: space-between;
    margin: 0 -10px;
}
.zm-b2f-widget { padding: 0 15px; margin: 0; }
.zm-b2f-widget-about { width: 25%; }
.zm-b2f-widget-nav { width: 15%; }
.zm-b2f-widget-qr { width: auto; }

.zm-b2f-widget-title {
    position: relative;
    border-bottom: 0;
    font-size: 18px;
    margin-bottom: 14px;
    color: #fff;
    text-align: left;
    margin-top: 25px;
    margin-left: 5px;
}
.zm-b2f-widget-title::before {
    position: absolute; bottom: -5px; left: 0;
    width: 40px; height: 2px;
    background-color: var(--zm-b2f-accent, #40e0d0);
    content: ''; transition: width .3s ease;
}
.zm-b2f-widget:hover .zm-b2f-widget-title::before { width: 80px; }

.zm-b2f-textwidget { padding: 10px 0; line-height: 26px; color: #ccc; font-size: 13px; }

/* 菜单列表 */
.zm-b2f-menu { list-style: none; padding: 0; margin: 0; }
.zm-b2f-menu li {
    position: relative;
    padding: 7px 0 8px 15px;
    font-size: 13px;
}
.zm-b2f-menu li::before {
    position: absolute; top: 9px; left: 1px;
    color: var(--zm-b2f-accent, #40e0d0);
    content: "•"; font-size: 16px; line-height: 1;
}
.zm-b2f-menu a {
    color: #fff; text-decoration: none;
    transition: all .3s ease;
}
.zm-b2f-menu a:hover { color: var(--zm-b2f-accent, #40e0d0) !important; margin-left: 3px; }

/* 二维码 */
.zm-b2f-qr-container {
    display: flex; width: 100%;
    justify-content: space-around; padding-top: 5px;
}
.zm-b2f-qr-item { text-align: center; padding: 0 5px; }
.zm-b2f-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;
}
.zm-b2f-qr-img {
    width: 100% !important; height: 100% !important;
    object-fit: contain; border-radius: 8px; transition: transform .3s ease;
}
.zm-b2f-qr-img:hover { transform: scale(1.05); }
.zm-b2f-qr-tips {
    margin-top: 8px; max-width: 90px; text-align: center;
    font-size: 13px; line-height: 1.2em; color: #ccc; margin-bottom: 0;
}

/* ---- 友情链接 ---- */
.zm-b2f-links {
    padding: 5px 20px; margin: 10px auto;
    max-width: var(--mian-max-width, 1200px); box-sizing: border-box;
    background: linear-gradient(135deg, rgba(120, 234, 180, .3) 0, rgba(85, 106, 241, .1) 100%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
    display: flex; align-items: center;
    position: relative; min-height: 40px;
}
.zm-b2f-link-content {
    display: flex; align-items: center; width: 100%;
    justify-content: center; padding-right: 100px; box-sizing: border-box;
}
.zm-b2f-link-heading {
    color: #fff; font-weight: 600; font-size: 14px;
    margin-right: 12px; white-space: nowrap; padding: 5px 0;
}
.zm-b2f-link-items {
    display: flex; flex-wrap: wrap; gap: 15px;
    margin: 0; padding: 0; justify-content: center;
}
.zm-b2f-link-items a {
    color: #f0f0f0 !important; font-size: 13px;
    transition: all .3s ease; text-decoration: none !important; white-space: nowrap;
}
.zm-b2f-link-items a:hover { color: var(--zm-b2f-accent, #40e0d0) !important; }
.zm-b2f-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;
    color: #f0f0f0 !important; font-size: 13px;
    text-decoration: none !important; transition: all .3s ease;
}
.zm-b2f-apply-link:hover { color: var(--zm-b2f-accent, #40e0d0) !important; }

/* ---- 底栏 ---- */
.zm-b2f-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;
}
.zm-b2f-bottom-container {
    max-width: var(--mian-max-width, 1200px);
    margin: 0 auto; display: flex;
    justify-content: space-between; align-items: center;
}
.zm-b2f-bottom a { color: #ccc; text-decoration: none; transition: color .3s; }
.zm-b2f-bottom a:hover { color: #fff !important; }
.zm-b2f-bottom-right { display: flex; gap: 15px; }

/* ---- 手机端隐藏 ---- */
@media (max-width: 768px) {
    .zm-b2f-widget-row, .zm-b2f-links { display: none !important; }
    .zm-b2f-content { border-bottom: none; }
    .zm-b2f-nav { box-sizing: border-box; width: 100%; overflow: hidden; }
    .zm-b2f-bottom { padding: 15px 20px; }
    .zm-b2f-bottom-container { flex-direction: column; align-items: center; text-align: center; }
    .zm-b2f-copyright { font-size: 10px; line-height: 1.8em; word-break: break-all; white-space: normal; width: 100%; }
    .zm-b2f-bottom-right { margin-top: 5px; display: flex; align-items: center; gap: 8px; justify-content: center; width: 100%; font-size: 10px; line-height: 1.8em; }
}
@media (min-width: 769px) {
    .zm-b2f-link-items { gap: 5px; margin-top: 1px; }
    .zm-b2f-link-items a { font-size: 12px; }
    .zm-b2f-bottom-container { flex-direction: row; justify-content: space-between; }
    .zm-b2f-copyright { text-align: left; }
    .zm-b2f-bottom-right { text-align: right; }
}

/* ---- 暗黑模式 ---- */
.dark-theme .zm-b2f-fav { background-color: var(--main-bg-color, #1a1a2e); }
.dark-theme .zm-b2f-footer { background: var(--main-bg-color, #1a1a2e); }
.dark-theme .zm-b2f-bottom { background-color: var(--body-bg-color, #111); }
.dark-theme .zm-b2f-textwidget { color: var(--muted-2-color, #aaa); }
.dark-theme .zm-b2f-site-info h2 { color: var(--body-color, #e0e0e0); }
