/**
 * 侧边栏 / 顶部 / 底部 / 左侧 / 右侧 五大模块
 * 装饰元素尽量用 CSS/SVG 绘制，避免外部图片断图。
 */

/* ===================== 侧边栏 ===================== */
/* 标签云七彩 */
body.xy-sb-tagcloud .sidebar .widget .tagcloud a,
body.xy-sb-tagcloud .tagcloud a {
    display: inline-block;
    margin: 3px 4px 3px 0;
    padding: 2px 10px;
    border-radius: 14px;
    color: #fff !important;
    font-size: 13px !important;
    background: linear-gradient(135deg, #ff6b6b, #ffa94d);
    transition: transform .2s, box-shadow .2s;
}
body.xy-sb-tagcloud .sidebar .widget .tagcloud a:nth-child(3n+1) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
body.xy-sb-tagcloud .sidebar .widget .tagcloud a:nth-child(3n+2) { background: linear-gradient(135deg, #43e97b, #38f9d7); }
body.xy-sb-tagcloud .sidebar .widget .tagcloud a:nth-child(3n+3) { background: linear-gradient(135deg, #fa709a, #fee140); }
body.xy-sb-tagcloud .sidebar .widget .tagcloud a:nth-child(4n)   { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
body.xy-sb-tagcloud .sidebar .widget .tagcloud a:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,.18);
}

/* 签到五彩缤纷背景 */
body.xy-sb-signin .sidebar .widget.xy-signin-widget,
body.xy-sb-signin .sidebar .widget:has(.sign-box),
body.xy-sb-signin .sidebar .xy-signin-widget {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 25%, #a1c4fd 50%, #c2e9fb 75%, #fbc2eb 100%) !important;
    border: none !important;
    color: #333 !important;
}
body.xy-sb-signin .sidebar .widget.xy-signin-widget .but,
body.xy-sb-signin .sidebar .xy-signin-widget .but {
    background: linear-gradient(135deg, #ff6b6b, #ffa94d) !important;
    border: none !important;
    color: #fff !important;
}

/* 侧边栏评论小工具（背景+边框） */
body.xy-sb-comment .sidebar .widget.xy-comment-widget,
body.xy-sb-comment .sidebar .widget.widget_recent_comments,
body.xy-sb-comment .sidebar .xy-comment-widget {
    background: rgba(255,255,255,.7) !important;
    border: 2px solid transparent !important;
    border-image: linear-gradient(135deg, #ff6b6b, #4facfe, #43e97b) 1 !important;
    border-radius: 10px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,.06) !important;
    overflow: hidden;
}

/* 用户信息小工具底部两按钮圆角 */
body.xy-sb-userinfo .sidebar .widget.xy-userinfo-widget .user-buttons a,
body.xy-sb-userinfo .sidebar .xy-userinfo-widget .but,
body.xy-sb-userinfo .sidebar .widget:has(.user-avatar) .but {
    border-radius: 20px !important;
}

/* ===================== 顶部 ===================== */
/* 顶部彩色进度条 */
.xy-top-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0;
    z-index: 99999;
    background: linear-gradient(90deg, #ff6b6b, #ffa94d, #43e97b, #4facfe, #a18cd1);
    background-size: 300% 100%;
    transition: width .1s linear;
    animation: xy-progress-flow 3s linear infinite;
}
@keyframes xy-progress-flow { 0%{background-position:0 0} 100%{background-position:300% 0} }

/* FPS 帧率 */
.xy-fps {
    position: fixed;
    top: 8px; right: 8px;
    z-index: 99999;
    padding: 2px 8px;
    font: 12px/1.4 monospace;
    color: #0f0;
    background: rgba(0,0,0,.6);
    border-radius: 4px;
    pointer-events: none;
}

.xy-deng-box,
.xy-deng-box1 {
    position: fixed;
    top: 20px;
    z-index: 9998;
    pointer-events: none;
}
.xy-deng-box  { left: 10px; }
.xy-deng-box1 { right: 10px; }

.xy-deng {
    position: relative;
    width: 120px;
    height: 90px;
    background: rgba(216, 0, 15, .85);
    border-radius: 50% 50%;
    transform-origin: 50% -100px;
    animation: xy-swing 3s ease-in-out infinite;
    box-shadow: -5px 5px 50px 4px rgba(250, 108, 0, 1);
}
.xy-deng .xy-xian {
    position: absolute;
    top: -20px; left: 60px;
    width: 2px; height: 20px;
    background: #dc8f03;
}
.xy-deng .xy-deng-a,
.xy-deng .xy-deng-b {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 2px solid #dc8f03;
    border-radius: 50% 50%;
    box-sizing: border-box;
}
.xy-deng::before,
.xy-deng::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80px; height: 12px;
    background: linear-gradient(#dc8f03, #ffa500);
    border-radius: 6px;
    z-index: 2;
}
.xy-deng::before { top: -6px; }
.xy-deng::after  { bottom: -6px; }

.xy-deng-t {
    position: absolute;
    left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    font-family: '华文行楷', 'STXingkai', 'KaiTi', '楷体', serif;
    font-size: 26px;
    line-height: 1;
    color: #dc8f03;
    font-weight: 700;
    z-index: 3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
    white-space: nowrap;
}
.xy-deng .xy-shuishui-a {
    position: absolute;
    left: 50%; bottom: -34px;
    transform: translateX(-50%);
    width: 6px;
    z-index: 1;
}
.xy-deng .xy-shui-c {
    width: 6px; height: 18px;
    margin: 0 auto;
    background: linear-gradient(#ffa500, #ffd54f);
    border-radius: 3px;
}
.xy-deng .xy-shui-b {
    width: 2px; height: 16px;
    margin: 0 auto;
    background: #ffa500;
}
@keyframes xy-swing {
    0%   { transform: rotate(-10deg); box-shadow: -5px 5px 50px 4px rgba(250, 108, 0, 1); }
    50%  { transform: rotate(10deg);  box-shadow: -5px 5px 50px 12px rgba(250, 180, 0, 1); }
    100% { transform: rotate(-10deg); box-shadow: -5px 5px 50px 4px rgba(250, 108, 0, 1); }
}
@media (max-width: 760px) {
    .xy-deng-box, .xy-deng-box1 { display: none; }
}
body.dark-theme .xy-deng-box,
body.dark-theme .xy-deng-box1,
body.dark-theme .xy-deng { background: transparent !important; box-shadow: none !important; }

/* 顶部彩灯串（xy-top-lightstring，纯 CSS 仿参考图：青/黄/粉/绿循环灯泡 + 白色电线 + 发光闪烁，DOM 由 JS 注入） */
.xy-lightstring {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 46px;
    z-index: 9997;
    pointer-events: none;
    overflow: hidden;
}
.xy-lightstring .xy-ls-wire {
    position: absolute;
    top: 4px; left: -2%;
    width: 104%; height: 40px;
    border-bottom: 2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 255, 255, .5);
}
.xy-lightstring .xy-ls-bulb {
    position: absolute;
    top: 8px;
    width: 12px; height: 12px;
    border-radius: 50%;
    transform: translateX(-50%);
    animation: xy-ls-twinkle 1.4s ease-in-out infinite;
}
.xy-lightstring .xy-ls-bulb::after {
    content: '';
    position: absolute;
    top: 11px; left: 50%;
    width: 1px; height: 8px;
    background: rgba(255, 255, 255, .6);
    transform: translateX(-50%);
}
.xy-lightstring .xy-ls-bulb.c1 { background: #00e5ff; box-shadow: 0 0 10px #00e5ff; }
.xy-lightstring .xy-ls-bulb.c2 { background: #ffd54f; box-shadow: 0 0 10px #ffd54f; }
.xy-lightstring .xy-ls-bulb.c3 { background: #ff7eb3; box-shadow: 0 0 10px #ff7eb3; }
.xy-lightstring .xy-ls-bulb.c4 { background: #69f0ae; box-shadow: 0 0 10px #69f0ae; }
@keyframes xy-ls-twinkle {
    0%, 100% { opacity: .35; }
    50%      { opacity: 1; }
}

/* 幻灯片指示器圆角 */
body.xy-top-slide-indicator .swiper-pagination-bullet,
body.xy-top-slide-indicator .carousel-indicators li {
    border-radius: 8px !important;
    transition: width .3s;
}

/* 自定义顶部切换标签 / 轮播标签 */
.xy-top-switch-tab {
    position: fixed;
    top: 50%; left: 0;
    transform: translateY(-50%);
    z-index: 9990;
    background: linear-gradient(135deg, #ff6b6b, #ffa94d);
    color: #fff;
    padding: 8px 14px 8px 10px;
    border-radius: 0 14px 14px 0;
    writing-mode: vertical-rl;
    font-size: 13px;
    box-shadow: 2px 2px 10px rgba(0,0,0,.15);
    cursor: pointer;
}
.xy-top-carousel-tab {
    position: fixed;
    left: 0; bottom: 80px;
    z-index: 9990;
    background: rgba(0,0,0,.6);
    color: #fff;
    padding: 6px 12px;
    border-radius: 0 12px 12px 0;
    font-size: 13px;
    max-width: 200px;
    overflow: hidden;
    white-space: nowrap;
}

/* ===================== 底部 ===================== */

/* 底部波浪（本地图片 xy-foot-wave-1/2.png，源自 wml-zib-diy footer 波浪） */
.xy-foot-wave {
    position: relative;
    width: 100%;
    height: 60px;
    line-height: 0;
    margin-bottom: -6px;
    overflow: hidden;
}
.xy-foot-wave .xy-wave-layer {
    position: absolute;
    left: 0; top: 0;
    width: 200%; height: 60px;
    background-repeat: repeat-x;
    background-size: auto 100%;
}
.xy-foot-wave .xy-wave-back {
    background-image: url(../img/xy-foot-wave-2.png);
    opacity: .7;
    animation: xy-wave-scroll 14s linear infinite;
}
.xy-foot-wave .xy-wave-front {
    background-image: url(../img/xy-foot-wave-1.png);
    animation: xy-wave-scroll 8s linear infinite reverse;
}
@keyframes xy-wave-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* 底部导航栏 */
.xy-foot-navbar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9995;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,.12);
    padding: 6px 0;
}
.xy-foot-navbar a {
    flex: 1;
    text-align: center;
    color: #555;
    font-size: 12px;
}
.xy-foot-navbar a .xy-nav-ico { display: block; font-size: 18px; margin-bottom: 2px; }

/* 底部导航悬浮模块 */
.xy-foot-nav-float {
    position: fixed;
    right: 16px; bottom: 90px;
    z-index: 9990;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.xy-foot-nav-float a {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    display: flex; align-items: center; justify-content: center;
    color: #333;
}

/* 底部运行时间 */
.xy-foot-runtime {
    display: inline-block;
    margin: 6px 8px;
    padding: 4px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.12);
    color: #eee;
    font-size: 13px;
}
/* 底部二维码美化 */
body.xy-foot-qrcode .footer .qrcode,
body.xy-foot-qrcode .footer img.qr {
    border-radius: 12px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,.18) !important;
    padding: 6px;
    background: #fff;
}

/* ===================== 左侧 ===================== */
/* 联系站长（粉色兔子跳跳） */
.xy-left-contact {
    position: fixed;
    left: 14px; top: 40%;
    z-index: 9990;
    width: 54px; height: 64px;
    display: block;
}
.xy-rabbit {
    display: block;
    width: 100%; height: 100%;
    background:
        radial-gradient(circle at 32% 30%, #ffd6e7 0 9px, transparent 10px),
        radial-gradient(circle at 68% 30%, #ffd6e7 0 9px, transparent 10px),
        radial-gradient(circle at 50% 60%, #ffb6c1 0 16px, transparent 17px);
    position: relative;
    animation: xy-rabbit-jump 1.2s ease-in-out infinite;
}
.xy-rabbit::before, .xy-rabbit::after {
    content: '';
    position: absolute;
    top: -14px;
    width: 10px; height: 26px;
    background: #ffc1d6;
    border-radius: 6px 6px 0 0;
}
.xy-rabbit::before { left: 14px; transform: rotate(-12deg); }
.xy-rabbit::after { right: 14px; transform: rotate(12deg); }
@keyframes xy-rabbit-jump {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
/* 随便看看 */
.xy-left-random {
    position: fixed;
    left: 14px; top: calc(40% + 76px);
    z-index: 9990;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    font-size: 22px;
}
/* 悬浮排行榜 */
.xy-left-ranking {
    position: fixed;
    left: 14px; top: 120px;
    z-index: 9990;
    width: 220px;
    background: rgba(255,255,255,.92);
    border-radius: 12px;
    box-shadow: 0 6px 22px rgba(0,0,0,.14);
    padding: 10px 12px;
    backdrop-filter: blur(6px);
}
.xy-left-ranking h4 { margin: 0 0 8px; font-size: 14px; color: #ff6b6b; }
.xy-left-ranking ol { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.9; }
.xy-left-ranking ol a { color: #333; }
.xy-left-ranking .xy-rank-close {
    float: right; cursor: pointer; color: #999; font-size: 12px;
}

/* ===================== 右侧 ===================== */
/* 纵向彩色滚动条 */
body.xy-right-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #ff6b6b #f1f1f1;
}
body.xy-right-scrollbar::-webkit-scrollbar { width: 10px; }
body.xy-right-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; }
body.xy-right-scrollbar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b, #ffa94d, #43e97b, #4facfe, #a18cd1);
    border-radius: 6px;
}

/* 萌萌猫耳朵 */
.xy-catear {
    position: fixed;
    right: 18px; top: 30%;
    z-index: 9990;
    width: 60px; height: 40px;
    pointer-events: none;
}
.xy-catear::before, .xy-catear::after {
    content: '';
    position: absolute;
    top: 0;
    width: 0; height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 36px solid #ffb6c1;
}
.xy-catear::before { left: 0; transform: rotate(-18deg); }
.xy-catear::after { right: 0; transform: rotate(18deg); }

.gotop {
    position: fixed;
    bottom: 20%;
    right: 1%;
    z-index: 9991;
}
.gotop-box {
    box-shadow: 0 4px 23px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    background: #fff;
}
.gotop .gotop-item {
    color: rgba(23,23,24,0.8);
    text-align: center;
    cursor: pointer;
    width: 54px;
    padding-bottom: 10px;
    box-sizing: initial;
    align-items: center;
    display: block;
}
.gotop .gotop-item i {
    font-size: 22px!important;
    z-index: 2;
    position: relative;
    color: #171718;
}
.gotop .gotop-item a {
    color: rgba(23,23,24,0.8);
    font-size: 12px;
    text-decoration: none;
}
.gotop .gotop-item a:hover {
    color: var(--primary-color)!important;
}
.gotop .gotop-item img {
    width: 24px;
}
.gotop .gotop-item p.text {
    font-size: 12px;
    margin-top: 5px;
}
.gotop .gotop-item:hover p.text {
    color: var(--primary-color)!important;
}
.gotop .gotop-item.gotops {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
.gotop .activity {
    background: transparent;
    position: relative;
    height: 128px;
    padding-bottom: 0;
}
.gotop .activity a { display: block; }
.gotop .activity .a1 {
    width: 100%;
    height: 100%;
    border-radius: 7px 7px 0px 0px;
}
.gotop .activity .a2 {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 33px;
    height: 43px;
    animation: red-envelope-shake 0.8s linear infinite;
    transition: all .3s;
}
@keyframes red-envelope-shake {
    0% { transform: rotate(-7deg) }
    50%  { transform: rotate(7deg) }
    100% {transform: rotate(-7deg) }
}
.gotop .activity .popover {
    position: absolute;
    width: 251px;
    height: 128px;
    right: 0;
    left: -196px;
    bottom: 0;
    display: none;
}
.gotop .activity:hover .popover { display: block; }
.gotop-box .gotop-vip {
    background: linear-gradient(10deg,#fedd92,#fef6e1);
    color: #803300;
    padding-top: 10px;
    margin-bottom: 10px;
}
.gotop-box .gotop-vip a { color: #803300!important; }
.gotop-box .gotop-vip:hover p.text {
    color: #803300!important;
    font-weight: 600;
}
.gotop-service { position: relative; }
.gotop-service:hover .gotop-service-box {
    display: block;
    transition: all .3s;
}
.gotop-service-box {
    display: none;
    position: absolute;
    z-index: 999;
    right: 55px;
    bottom: 0px;
    width: 150px;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    -webkit-box-shadow: 0 0 3px 1px rgba(0,0,0,.05);
    box-shadow: 0 0 3px 1px rgba(0,0,0,.05);
    transition: all .3s;
    background: #fff;
}
.gotop-service-box .tops {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf1f2;
}
.gotop-service-box .tops a {
    display: block;
    height: 26px;
    line-height: 26px;
    margin: 15px auto 10px auto;
    border: 1px solid #b5b9bc;
    font-size: 12px;
    border-radius: 4px;
}
.gotop-service-box .tops a:hover {
    background:#fff0;
    color: var(--primary-color)!important;
    border: 1px solid var(--primary-color)!important;
}
.gotop-service-box .tops p { font-size: 13px; }
.gotop-service-box .btms { text-align: center; }
.gotop-service-box .btms em {
    font-size: 14px;
    color: #5f6575;
    font-weight: 500;
    margin-bottom: 10px;
    height: 20px;
    line-height: 20px;
    display: block;
}
.gotop-service-box .btms p {
    height: 25px;
    font-weight: 500;
    line-height: 25px;
    font-size: 18px;
    color: #4775FF;
    margin-bottom: 10px;
    display: inline-block;
}
.gotop-service-box .btms span {
    height: 25px;
    line-height: 25px;
    overflow: hidden;
    font-size: 12px;
    color: #FF5151;
    margin-bottom: 10px;
}
.gotop-wx-box { margin-bottom: 15px; }
.gotop-wx-box .boxs p {
    font-size: 14px;
    color: #5f6575;
    font-weight: 500;
    margin-bottom: 10px;
    height: 20px;
    line-height: 20px;
}
.gotop-wx-box .boxs img {
    width: 100%;
    height: 100%;
    display: block;
    margin-top: 10px;
    padding: 5px;
    border: 1px solid var(--border-color);
    margin: 10px auto 0px auto;
}
.gotop-ma { position: relative; }
.gotop-ma:hover .gotop-ma-box {
    display: block;
    transition: all .3s;
}
.gotop-ma-box {
    display: none;
    position: absolute;
    z-index: 999;
    right: 54px;
    bottom: 0px;
    width: 170px;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
    -webkit-box-shadow: 0 0 3px 1px rgba(0,0,0,.05);
    box-shadow: 0 0 3px 1px rgba(0,0,0,.05);
    transition: all .3s;
    background: var(--primary-color);
}
.gotop-ma-box i {
    display: block;
    width: 31px;
    height: 5px;
    margin: 0 auto 10px;
    border-radius: 2px;
    background: #6f96ff;
}
.gotop-ma-box em {
    display: block;
    margin: 10px auto 0;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background: #6f96ff;
}
.gotop-ma-box .tops {
    padding: 10px;
    background: #fff;
    border-radius: 4px;
    text-align: center;
}
.gotop-ma-box .tops p {
    font-size: 12px;
    color: #5f6575;
    overflow: hidden;
    height: 23px;
    line-height: 23px;
}
.gotop-ma-box .tops img {
    width: 100%;
    height: 100%;
    display: block;
    margin-top: 10px;
    margin: 10px auto 0px auto;
}

/* 右侧悬浮猫猫（本地图片 xy-right-cat.svg，源自 wml-zib-diy mao.svg） */
.xy-right-cat {
    position: fixed;
    right: -5px; bottom: 60vh;
    z-index: 9990;
    width: 57px; height: 70px;
    background-image: url(../img/xy-right-cat.svg);
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform .3s;
}
.xy-right-cat:hover { transform: scale(1.12); }

/* 调皮小萝莉（本地图片 xy-right-loli.png，源自 wml-zib-diy decorate1.png） */
.xy-right-loli {
    position: fixed;
    right: 60px; bottom: 60vh;
    z-index: 9990;
    width: 57px; height: 70px;
    background-image: url(../img/xy-right-loli.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: transform .3s;
}
.xy-right-loli:hover { transform: scale(1.12); }

body.xy-right-lkuba-float .float-right.position-bottom.scroll-down-hide {
    display: none !important;
}

@media screen and (max-width: 767px) {
    body.xy-right-lkuba-mobile-hide .gotop { display: none !important; }
}

/* ===================== 暗夜模式适配 ===================== */
body.dark-theme .xy-left-ranking { background: rgba(30,30,40,.92); }
body.dark-theme .xy-left-ranking ol a { color: #ddd; }
body.dark-theme .xy-foot-navbar { background: #1c1e24; }
body.dark-theme .xy-foot-navbar a { color: #bbb; }
body.dark-theme .xy-foot-nav-float a { background: #2a2d35; color: #eee; }

/* ===================== 底部页脚美化 4 套样式 ===================== */
/* 覆盖父主题 .footer 默认样式（美化开启时接管） */
.xy-fb.footer {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #ccc;
    position: relative;
}
.xy-fb.footer a { text-decoration: none; }

.xy-fb-inner { max-width: 1440px; margin: 0 auto; padding: 34px 20px 18px; }
.xy-fb-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px; }
.xy-fb-about { flex: 1 1 250px; min-width: 220px; max-width: 480px; }
.xy-fb-sitename { font-size: 19px; font-weight: 700; margin: 0 0 10px; line-height: 1.4; }
.xy-fb-desc { font-size: 13px; line-height: 1.9; margin: 0 0 10px; opacity: .85; }
.xy-fb-meta { font-size: 12px; opacity: .6; margin: 0; }
.xy-fb-navs { display: flex; gap: 44px; flex-wrap: wrap; }
.xy-fb-nav-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.xy-fb-nav-list { list-style: none; margin: 0; padding: 0; }
.xy-fb-nav-list li { margin: 6px 0; }
.xy-fb-nav-list a { font-size: 13px; opacity: .85; }
.xy-fb-nav-list a:hover { opacity: 1; }
.xy-fb-side { flex: 0 0 auto; }
.xy-fb-friend { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.xy-fb-fl-title { font-size: 13px; font-weight: 700; white-space: nowrap; }
.xy-fb-fl-links { display: inline; font-size: 13px; opacity: .8; }
.xy-fb-fl-links span { margin: 0 10px; }
.xy-fb-fl-links a { opacity: .8; }
.xy-fb-fl-links a:hover { opacity: 1; }
.xy-fb-fl-apply { font-size: 13px; color: #0078ff !important; margin-left: auto; white-space: nowrap; }
.xy-fb-copy { text-align: center; padding-top: 14px; font-size: 13px; opacity: .8; }
.xy-fb-copy-text { margin: 0; line-height: 1.9; }
.xy-fb-copy a { opacity: .9; }

.xy-fb-style-3.footer { background: #121212 !important; color: #ccc; }
.xy-fb-style-3 .xy-fb-sitename { color: #fff; }
.xy-fb-style-3 a { color: #c9c9c9; }
.xy-fb-style-3 a:hover { color: #fff; }
.xy-fb-style-3 .xy-fb-nav-title { color: #fff; }
/* 顶部滚动彩色条（对齐参考站 footer-colors 动画） */
.xy-fb-style-3 .xy-fb-colors {
    width: 100%; height: 4px; margin-top: 0;
    background-image: repeating-linear-gradient(90deg,#68103b,#68103b 50px,#703f28 0,#703f28 100px,#a16b13 0,#a16b13 150px,#a5a02c 0,#a5a02c 200px,#5e812d 0,#5e812d 250px,#1c6075 0,#1c6075 300px,#403161 0,#403161 350px);
    background-position: 0 0; background-repeat: repeat;
    animation: xy-fb-colors-move 200s linear infinite; opacity: 1;
}
@keyframes xy-fb-colors-move { 0% { background-position: 0 0; } to { background-position: 7000px 0; } }
.xy-fb-style-3 .xy-fb-colors-shadow { height: 1px; opacity: .25; }
/* 动物图（参考站 dw1.webp）+ 底部装饰条（参考站 dw2.webp） */
.xy-fb-animal { position: relative; max-width: min(974px, 100vw); margin: 0 auto; }
.xy-fb-animal-img { display: block; width: 100%; margin: 0 auto; }
.xy-fb-animal::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 36px; background: url(../img/footer/dw2.webp) repeat-x center/auto 100%; box-shadow: 0 4px 7px rgba(0,0,0,.15); }
.xy-fb-heart { display: flex; gap: 7px; margin-bottom: 10px; }
.xy-fb-heart i { width: 10px; height: 10px; background: #e74c3c; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); animation: xy-fb-heart-beat .8s ease-in-out infinite alternate; }
.xy-fb-heart .xy-fb-heart-r { animation-delay: .12s; }
@keyframes xy-fb-heart-beat { 0% { transform: rotate(-45deg) scale(1); } 100% { transform: rotate(-45deg) scale(1.3); } }
/* 三列导航：对齐参考站，居中均分 */
.xy-fb-style-3 .xy-fb-navs { display: flex; flex: 1 1 0; justify-content: space-around; flex-wrap: wrap; }
.xy-fb-style-3 .xy-fb-nav { flex: 1 1 0; text-align: center; }
/* 二维码卡片（1:1 还原参考站 qr-wrapper：主题色卡片 / 圆角 / 阴影） */
.xy-fb-qrs { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.xy-fb-qr { text-align: center; }
.xy-fb-qr-img { display: block; width: 120px; height: 120px; background-size: cover; background-position: center; border-radius: 12px; margin: 0 auto; box-shadow: 0 3px 10px rgba(0,0,0,.08); padding: 5px; background-color: var(--main-color); }
.xy-fb-qr-text { font-size: 13px; margin: 8px 0 0; opacity: .9; color: var(--main-color); }
/* 样式三 昼夜 */
body.dark-theme .xy-fb-style-3.footer { background: #101010 !important; }

/* 色条（样式一/三 footer-colors 效果） */
.xy-fb-colors { height: 2px; background: linear-gradient(90deg, #4579e2, #2d55aa); margin-top: 20px; opacity: .5; }
.xy-fb-colors-shadow { height: 1px; margin-top: 3px; opacity: .25; }
.xy-fb-style-3 .xy-fb-colors { background: linear-gradient(90deg, #ff5252, #ffb300, #69f0ae, #448aff, #e040fb); }

/* 样式三：运行时间行 */
.xy-fb-runtime-line { margin: 4px 0 0; font-size: 12px; opacity: .6; }
.xy-fb-runtime { color: inherit; }

/* ---------- 样式四：已移除（仅 3 套样式，与参考包一致） ---------- */

/* 页脚美化 移动端适配 */
@media (max-width: 768px) {
    .xy-fb-main { flex-direction: column; gap: 18px; }
    .xy-fb-about { max-width: 100%; }
    .xy-fb-navs { gap: 24px; }
    .xy-fb-side { width: 100%; }
    .xy-fb-qrs { justify-content: flex-start; }
    .xy-fb-animal-img { max-width: 320px; }
}
