/**
 * 页脚美化样式2 · 壹梦底部
 * 样式移植自壹梦网络主题 diy.css（Footer Statistics / Footer Fav / Footer concise / Footer wave / codesign 友链栏）
 * 深色模式：旧版 .ripro-dark → 补充 v5 的 html[data-bs-theme="dark"] 等效规则
 */

/* ---------- 页脚与上一个模块的间距 ---------- */
/* v5 主内容区底部无预留空隙，页脚顶边会紧贴上一个模块；补 20px 与站内模块间距一致 */
.site-footer.ymwl-f2-footer {
    margin-top: 20px;
}

/* ---------- 数据统计栏 ---------- */
.site-data-wp {
    height: 246px;
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-color: #7a99f2;
    background-position: center;
    text-align: center;
    font-size: 0;
    padding-top: 1px;
}
.site-data-wp .data-items {
    padding-top: 45px;
    padding-bottom: 32px;
    font-size: 0;
    min-height: 85px;
    margin: 0;
    padding-left: 0;
    list-style: none;
}
.site-data-wp li {
    display: inline-block;
    vertical-align: top;
    width: 220px;
}
.site-data-wp li i {
    display: inline-block;
    height: 25px;
}
.site-data-wp li strong {
    display: block;
    color: #abbae5;
    font-size: 12px;
    line-height: 1;
    transition: color .3s cubic-bezier(.31, 1, .34, 1);
}
.site-data-wp li span {
    display: block;
    line-height: 48px;
    font-size: 36px;
    color: #fff;
    position: relative;
}
.site-data-wp li span::after {
    content: '+';
    font-size: 18px;
    position: absolute;
    line-height: 1;
    padding-left: 3px;
    opacity: 0;
}
.site-data-wp li span.srcshujia::after {
    opacity: 1;
}
.site-data-wp li:hover strong {
    color: #fff;
}
.site-data-wp .btn-outlined {
    min-width: 100px;
    height: 40px;
    line-height: 36px;
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;
    display: inline-block;
    border-radius: 3px;
    transition: all .2s;
    margin-bottom: 30px;
}
.site-data-wp .btn-outlined:active,
.site-data-wp .btn-outlined:hover {
    background-color: rgba(255, 255, 255, .2);
}

/* ---------- 收藏栏 ---------- */
.footer-fav {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #edf3f9;
}
.footer-fav .container {
    overflow: visible;
    padding-top: 36px;
    padding-bottom: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
.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;
}
.footer-fav .site-info .site-p {
    margin-bottom: 10px;
}
.footer-fav .site-info p {
    display: inline;
    margin-bottom: 10px;
    color: #797979;
    font-size: 9pt;
    line-height: 1.8;
}
.footer-fav .site-fav {
    padding-top: 5px;
}
.footer-fav .site-fav .btn-fav {
    padding: 0 1.2em;
    font-size: 14px;
    line-height: 2.5;
    color: #fff;
    display: inline-block;
    border-radius: 4px;
    transition: opacity .2s;
}
.footer-fav .site-fav .btn-fav:hover {
    opacity: .85;
}
.footer-fav .site-girl {
    position: absolute;
    bottom: 0;
    left: 50%;
}
.footer-fav .site-girl .girl {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 180px;
    transition: all .3s;
    float: left;
}
.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;
}
.footer-fav .site-girl .thumb {
    display: block;
    padding-top: 116.667%;
    -moz-background-size: 100% 100%;
    background-size: 100% 100%;
}
.footer-fav .site-girl .girl-info {
    margin-bottom: 55px;
    margin-left: 150px;
}
.footer-fav .site-girl h4 {
    color: #797979;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.8;
}
.footer-fav .site-girl a {
    color: #797979;
}
.footer-fav .site-girl a:hover {
    color: #ff5c00;
}
.footer-fav:hover .site-girl .girl:after {
    visibility: visible;
    opacity: 1;
    transition: all .2s;
}

/* ---------- 三栏链接 ---------- */
.g-footer {
    padding: 20px 0;
}
.g-footer h4,
.g-footer p,
.g-footer ul {
    -webkit-tap-highlight-color: transparent;
    margin: 0;
    padding: 0;
}
.g-footer ol,
.g-footer ul {
    list-style-type: none;
    list-style-image: none;
    padding-left: 0;
}
.g-footer .logo {
    display: inline-block;
    margin: 0;
}
.g-footer .logo a {
    margin-right: 10px;
}
.g-footer .logo img {
    height: 36px;
}
.g-footer .links {
    display: inline-block;
    margin: 0;
    font-size: 14px;
    color: grey;
    width: 100%;
}
.g-footer .links:after,
.g-footer .links:before {
    display: table;
    content: "";
}
.g-footer .links:after {
    clear: both;
}
.g-footer .links .links-menu {
    float: left;
    max-width: 50%;
}
.g-footer .links .links-menu2 {
    float: right;
    display: block;
}
.g-footer .links h4 {
    float: left;
    width: 100px;
    line-height: 32px;
}
.g-footer .links .menu-items {
    padding-bottom: 10px;
}
.g-footer .links .menu-items ul {
    margin-left: 100px;
}
.g-footer .links ul:after,
.g-footer .links ul:before {
    display: table;
    content: "";
}
.g-footer .links ul:after {
    clear: both;
}
.g-footer .links li {
    float: left;
}
.g-footer .links li a {
    display: block;
    padding: 0 10px;
    line-height: 32px;
    color: grey;
    transition: color .2s ease-in;
}
.g-footer .links li a:hover {
    color: #4f4f4f;
}

/* ---------- 友链栏 ---------- */
.codesign-dw {
    border: 1px dashed #dedede;
    background-color: #f7f8fa03;
    border-radius: 6px;
    margin-bottom: 10px;
}
.codesign-fl {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 10px;
    margin: 0;
    font-size: 13px;
}
.codesign-fl li {
    margin-left: 10px;
    color: #171819;
}
.codesign-fl a {
    color: #171819;
}
.codesign-fl a:hover {
    color: #2778ff;
}
.codesign-fl a.ctrl-apply {
    border: 1px solid #c3c3c3;
    border-radius: 3px;
    font-size: 12px;
    color: #999;
    text-align: center;
    padding: 0 9px;
    margin-left: 10px;
    display: inline-block;
    line-height: 22px;
}
.codesign-fl a.ctrl-apply svg {
    fill: #999;
    display: inline-block;
    vertical-align: middle;
}
.codesign-fl a.ctrl-apply:hover {
    color: #2778ff;
    border-color: #2778ff;
}
.codesign-fl a.ctrl-apply:hover svg {
    fill: #2778ff;
}

/* ---------- 版权栏 ---------- */
.ymwl-f2-footer .ymwl-f2-info {
    max-width: 100%;
    padding: 10px 0 20px;
    text-align: center;
    font-size: 13px;
    color: #797979;
}
.ymwl-f2-footer .ymwl-f2-info a {
    color: #797979;
}
.ymwl-f2-footer .ymwl-f2-info a:hover {
    color: #2778ff;
}

/* ---------- 波浪动画 ---------- */
.waveHorizontals {
    width: 100%;
    height: 20px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: #fff !important;
}
.waveHorizontal {
    width: 200%;
    height: 100%;
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    background-repeat: repeat-x;
    background-position: left bottom;
    background-size: 350px 100%;
    transform-origin: 0 100% 0;
    animation-name: ymwlWaveMove;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
#waveHorizontal1,
#waveHorizontal2,
#waveHorizontal3 {
    background-image: linear-gradient(20deg, #18cef2 0, #448aff 100%) !important;
}
#waveHorizontal1 {
    -webkit-mask: url(../images/sucaihu_001.svg);
    mask: url(../images/sucaihu_001.svg);
    animation-delay: -2s;
    animation-duration: 12s;
}
#waveHorizontal2 {
    -webkit-mask: url(../images/sucaihu_002.svg);
    mask: url(../images/sucaihu_002.svg);
    animation-delay: -2s;
    animation-duration: 5s;
}
#waveHorizontal3 {
    -webkit-mask: url(../images/sucaihu_003.svg);
    mask: url(../images/sucaihu_003.svg);
    animation-delay: -1s;
    animation-duration: 3s;
}
@keyframes ymwlWaveMove {
    0%   { transform: translate(-175px, 0) scale(1, 1); }
    50%  { transform: translate(-87px, 0) scale(1, 0.5); }
    100% { transform: translate(0, 0) scale(1, 1); }
}

/* ---------- 深色模式（v5 html[data-bs-theme="dark"]） ---------- */
html[data-bs-theme="dark"] .footer-fav {
    background: #1f2937;
}
html[data-bs-theme="dark"] .footer-fav .site-info h2 a {
    color: #eee;
}
html[data-bs-theme="dark"] .footer-fav .site-info p,
html[data-bs-theme="dark"] .footer-fav .site-girl h4 {
    color: #dadada;
}
html[data-bs-theme="dark"] .g-footer .links,
html[data-bs-theme="dark"] .g-footer .links li a {
    color: #9ca3af;
}
html[data-bs-theme="dark"] .g-footer .links li a:hover {
    color: #e5e7eb;
}
html[data-bs-theme="dark"] .codesign-dw {
    border: 1px dashed #444;
    background-color: #2d2d2d;
}
html[data-bs-theme="dark"] .codesign-fl li,
html[data-bs-theme="dark"] .codesign-fl a {
    color: #d1d5db;
}
html[data-bs-theme="dark"] .ymwl-f2-footer .ymwl-f2-info,
html[data-bs-theme="dark"] .ymwl-f2-footer .ymwl-f2-info a {
    color: #9ca3af;
}
html[data-bs-theme="dark"] .waveHorizontals {
    background-color: #181616 !important;
}
html[data-bs-theme="dark"] #waveHorizontal1,
html[data-bs-theme="dark"] #waveHorizontal2,
html[data-bs-theme="dark"] #waveHorizontal3 {
    background-image: linear-gradient(20deg, #ececec 0, #bbbbbb 100%) !important;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
    .site-data-wp {
        height: auto;
        padding-bottom: 20px;
    }
    .site-data-wp li {
        width: 33.3%;
        margin-bottom: 14px;
    }
    .site-data-wp li span {
        font-size: 24px;
        line-height: 36px;
    }
    .footer-fav .site-info {
        width: 100%;
    }
    .footer-fav .site-girl {
        display: none;
    }
    .footer-fav .site-fav {
        margin-top: 10px;
    }
    .g-footer .links h4 {
        float: none;
        width: 100%;
    }
    .g-footer .links .menu-items ul {
        margin-left: 0;
        overflow: hidden;
    }
    .g-footer .links .links-menu,
    .g-footer .links .links-menu2 {
        float: none;
        max-width: 100%;
    }
}
