/* IcePro — footer.css (split from main.css) */

body.icepro-footer-takeover footer.footer {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.icepro-footer-takeover footer.footer > :not(.container-footer) {
    display: none !important;
}

body.icepro-footer-takeover footer.footer > .container-footer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.icepro-footer-takeover footer.footer > .container-footer > :not(.icepro-footer) {
    display: none !important;
}

/* 底栏色挂到 body：tabbar 占位在 .icepro-footer 外，需继承同变量 */
body.icepro-footer-takeover {
    --icepro-bottom-bg: #000;
}

body.icepro-footer-takeover.dark-theme {
    --icepro-bottom-bg: #1f2023;
}

/* 与版权条同色，避免 tabbar 占位垫片与 IcePro 底栏色断层 */
body.icepro-footer-takeover .footer-tabbar-placeholder {
    background: var(--icepro-bottom-bg);
}

.icepro-footer {
    --icepro-max-width: 1400px;
    --icepro-focus-color: #556af1;
    --icepro-accent-color: #40e0d0;
    --icepro-footer-bg: #fff;
    --icepro-top-bg: linear-gradient(to top, #00ffbb36, transparent);
    --icepro-top-title: var(--main-color, #4e5358);
    --icepro-top-text: var(--muted-color, #797979);
    --icepro-panel-bg: #333;
    --icepro-panel-text: #999;
    --icepro-panel-muted: #a7a7a7;
    --icepro-panel-border: #9e9e9e3b;
    --icepro-card-bg: linear-gradient(135deg, rgba(64, 224, 208, 0.12), rgba(85, 106, 241, 0.1));
    --icepro-card-border: rgba(64, 224, 208, 0.18);
    --icepro-chip-bg: rgba(255, 255, 255, 0.08);
    --icepro-contact-bg: linear-gradient(135deg, rgb(120 234 180 / 30%) 0, rgb(85 106 241 / 10%) 100%);
    --icepro-contact-text: #f0f0f0;
    /* --icepro-bottom-bg 定义在 body.icepro-footer-takeover，供版权条与 tabbar 占位共用 */
    --icepro-bottom-text: #fff;
    --icepro-bottom-link: #ccc;
    --icepro-margin: 14px;
    color: var(--icepro-panel-text);
    font-size: 13px;
}

body.dark-theme .icepro-footer {
    --icepro-footer-bg: #eef6f8;
    --icepro-top-bg: linear-gradient(to top, rgba(64, 224, 208, 0.1), rgba(45, 46, 49, 0.92));
    --icepro-top-title: var(--main-color, #e5eef7);
    --icepro-top-text: var(--muted-color, #b4b6bb);
    --icepro-panel-bg: var(--main-bg-color, #323335);
    --icepro-panel-text: var(--muted-2-color, #888a8f);
    --icepro-panel-muted: var(--muted-color, #b4b6bb);
    --icepro-panel-border: rgba(255, 255, 255, 0.08);
    --icepro-card-bg: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(85, 106, 241, 0.16));
    --icepro-card-border: rgba(255, 255, 255, 0.08);
    --icepro-chip-bg: rgba(255, 255, 255, 0.06);
    --icepro-contact-bg: linear-gradient(135deg, rgba(64, 224, 208, 0.16) 0, rgba(85, 106, 241, 0.16) 100%);
    --icepro-contact-text: #eef6f8;
    --icepro-bottom-text: var(--main-color, #e5eef7);
    --icepro-bottom-link: var(--muted-color, #b4b6bb);
}

.icepro-footer *,
.icepro-footer *::after,
.icepro-footer *::before {
    box-sizing: border-box;
}

.icepro-footer a {
    color: inherit;
    text-decoration: none;
}

/* 移动端专用块默认隐藏，小屏再显示 */
.icepro-footer .icepro-footer-mobile {
    display: none;
}

.icepro-footer .icepro-footer-panel {
    padding: 0 !important;
    background: var(--icepro-panel-bg) !important;
    color: var(--icepro-panel-text);
    font-size: 13px;
}

.icepro-footer .icepro-footer-panel a {
    font-size: 13px;
}

.icepro-footer .footer-fav {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 250px;
    padding: 0 15px;
    background-image: var(--icepro-top-bg);
}

.icepro-footer .footer-fav .footer-fav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: visible;
    width: 100%;
    padding-top: 46px;
    padding-bottom: 36px;
}

.icepro-footer .footer-fav .site-info {
    width: 60%;
}

.icepro-footer .footer-fav .site-info h2 {
    margin: 20px 0 10px;
    color: var(--icepro-top-title);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0;
    text-transform: uppercase;
}

.icepro-footer .footer-fav .site-info .site-p {
    max-width: 500px;
    margin-bottom: 10px;
}

.icepro-footer .footer-fav .site-info .site-p p:first-child::after {
    content: ",";
}

.icepro-footer .footer-fav .site-info p {
    margin: 0 0 10px;
    color: var(--icepro-top-text);
    font-size: 12px;
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: break-word;
}

.icepro-footer .footer-fav .site-fav {
    padding-top: 5px;
}

.icepro-footer .footer-fav .site-fav .btn-orange {
    display: inline-block;
    padding: 0 1.2em;
    border-radius: 8px;
    background-color: var(--icepro-focus-color);
    color: #fff !important;
    font-size: 14px;
    line-height: 2.5;
    cursor: pointer;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.icepro-footer .footer-fav .site-fav .btn-orange:hover {
    transform: translateY(-1px);
    background-color: #495de8;
}

.icepro-footer .footer-fav .site-girl {
    position: absolute;
    bottom: 0;
    left: 50%;
    top: 20px;
    min-height: 230px;
}

.icepro-footer .footer-fav .site-girl .girl {
    position: absolute;
    bottom: 0;
    left: 50px;
    width: 168px;
    max-width: 168px;
    transition: all 0.3s;
}

.icepro-footer .footer-fav .site-girl .girl::after {
    content: "Hi~";
    position: absolute;
    top: 40%;
    left: 100%;
    display: block;
    visibility: hidden;
    color: var(--icepro-panel-muted);
    font-size: 20px;
    opacity: 0;
    transition: all 0.3s;
}

.icepro-footer .footer-fav .site-girl .thumb {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    background-color: transparent;
    background-position: center bottom;
    background-repeat: no-repeat;
    background-size: contain;
    transition: all 0.2s;
}

.icepro-footer .footer-fav .site-girl .girl-info {
    position: absolute;
    top: 72px;
    left: 150px;
    min-width: 180px;
    margin: 0;
}

.icepro-footer .footer-fav .site-girl h4 {
    margin: 10px 0;
    color: var(--icepro-top-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
}

.icepro-footer .wrapper {
    max-width: var(--icepro-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.icepro-footer .Onecad_fl {
    float: left;
}

.icepro-footer .fr {
    float: right;
}

.icepro-footer .hide_md {
    display: none;
}

.icepro-footer #onecad_new_footer {
    clear: both;
    min-height: 0;
    background-color: var(--icepro-panel-bg);
}

.icepro-footer .icepro-footer-panel-bg {
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
}

.icepro-footer .icepro-footer-panel .tfbk-footer > .wrapper {
    border-bottom: 1px solid var(--icepro-panel-border);
}

.icepro-footer .icepro-footer-panel .tfbk-footer .widget-title {
    position: relative;
    margin: 25px 0 14px 5px;
    border-bottom: 0;
    color: var(--icepro-footer-bg);
    text-align: left;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
}

.icepro-footer .icepro-footer-panel .tfbk-footer .widget-title::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--icepro-accent-color) !important;
    transition: width 0.3s ease;
}

.icepro-footer .icepro-footer-panel .tfbk-footer section:hover .widget-title::before {
    width: 80px;
}

.icepro-footer .icepro-footer-panel .tfbk-footer .textwidget {
    padding: 10px 0;
    line-height: 26px;
}

.icepro-footer .icepro-footer-panel .tfbk-footer section:first-child {
    width: 30%;
}

.icepro-footer .icepro-footer-panel .tfbk-footer #nav_menu-2,
.icepro-footer .icepro-footer-panel .tfbk-footer #nav_menu-3,
.icepro-footer .icepro-footer-panel .tfbk-footer #nav_menu-4 {
    width: 18%;
}

.icepro-footer .icepro-footer-panel .tfbk-footer .widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.icepro-footer .icepro-footer-panel .tfbk-footer .widget ul li {
    position: relative;
    padding: 7px 0 8px 15px;
}

.icepro-footer .icepro-footer-panel .tfbk-footer .widget ul li::before {
    content: "•";
    position: absolute;
    top: 9px;
    left: 1px;
    color: var(--icepro-accent-color) !important;
    font-size: 16px;
    line-height: 1;
}

.icepro-footer .icepro-footer-panel .tfbk-footer .widget ul li span {
    color: var(--icepro-footer-bg);
}

.icepro-footer .icepro-footer-panel .tfbk-footer .tfbk-footer-widget-in {
    display: flex;
    justify-content: space-between;
    margin: 0 -10px;
}

.icepro-footer .icepro-footer-panel .tfbk-footer .widget {
    padding: 0 15px;
}

.icepro-footer .icepro-footer-panel .tfbk-footer section {
    margin: 0;
    margin-bottom: 0;
}

.icepro-footer .meow-supply-card {
    margin-top: 24px;
    padding: 12px;
    border: 1px solid var(--icepro-card-border);
    border-radius: 8px;
    background: var(--icepro-card-bg);
}

.icepro-footer .meow-supply-kicker {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(64, 224, 208, 0.12);
    color: var(--icepro-accent-color);
    font-size: 12px;
    line-height: 1.5;
}

.icepro-footer .meow-supply-title {
    margin: 8px 0 4px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.icepro-footer .meow-supply-desc {
    margin: 0;
    color: var(--icepro-panel-muted);
    font-size: 13px;
    line-height: 1.7;
}

.icepro-footer .meow-supply-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.icepro-footer .meow-supply-tags a,
.icepro-footer .meow-supply-tags span {
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--icepro-chip-bg);
    color: #e8edf2 !important;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}

.icepro-footer .meow-supply-tags a:hover {
    margin-left: 0 !important;
    background: rgba(64, 224, 208, 0.18);
    color: var(--icepro-accent-color) !important;
}

.icepro-footer .icepro-footer-panel a {
    color: var(--icepro-footer-bg);
    transition: all 0.3s ease;
}

.icepro-footer .icepro-footer-panel a:hover {
    color: var(--icepro-accent-color) !important;
    margin-left: 3px;
}

.icepro-footer .footer-links {
    position: relative;
    min-height: 40px;
    max-width: var(--icepro-max-width);
    display: flex;
    align-items: center;
    margin: 10px auto;
    padding: 5px 20px;
    border-radius: 8px;
    background: var(--icepro-contact-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.icepro-footer .link-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-right: 100px;
}

.icepro-footer .link-heading {
    margin-right: 10px;
    color: var(--icepro-contact-text);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.icepro-footer .link-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.icepro-footer .apply-link,
.icepro-footer .link-items a,
.icepro-footer .link-items span {
    display: inline-block;
    color: var(--icepro-contact-text) !important;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.icepro-footer .apply-link:hover,
.icepro-footer .link-items a:hover,
.icepro-footer .link-items span:hover {
    color: var(--icepro-accent-color) !important;
    margin-left: 3px;
}

.icepro-footer .apply-link {
    position: absolute;
    top: 50%;
    right: 20px;
    z-index: 1;
    padding: 3px 10px;
    border-radius: 4px;
    background-color: rgba(64, 224, 208, 0.2);
    font-weight: 500;
    transform: translateY(-50%);
}

.icepro-footer .icepro-footer-panel .footer-bottom {
    position: relative;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 15px 20px;
    background-color: var(--icepro-bottom-bg);
    color: var(--icepro-bottom-text);
    font-size: 12px;
    line-height: 24px;
}

.icepro-footer .icepro-footer-panel .tfbk-footer-nav .wrapper {
    max-width: none;
    padding: 0;
}

.icepro-footer .footer-bottom-container {
    max-width: var(--icepro-max-width);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.icepro-footer .foot-copyright {
    text-align: left;
}

.icepro-footer .footer-bottom-right {
    display: flex;
    gap: 15px;
    text-align: right;
}

.icepro-footer .icepro-footer-panel .footer-bottom a {
    color: var(--icepro-bottom-link);
}

.icepro-footer .icepro-footer-panel .footer-bottom a:hover {
    color: #fff !important;
}

.icepro-footer .widget ul li {
    padding: 12px 16px;
    font-size: 13px;
}

.icepro-footer .widget ul li + li {
    margin-top: -8px;
}

.icepro-footer .widget > h2 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
}

@media (min-width: 768px) {
    .icepro-footer .footer-fav {
        display: flex;
        overflow: visible;
        width: auto;
        min-height: 250px;
        padding: 0;
    }

    .icepro-footer .footer-fav .site-info {
        width: auto;
    }

    .icepro-footer .footer-fav .site-info h2 {
        font-size: 26px;
    }

    .icepro-footer .footer-fav .site-info .site-p {
        margin-bottom: 0;
    }

    .icepro-footer .footer-fav .site-info .site-p p:first-child::after {
        content: "";
    }

    .icepro-footer .footer-fav .site-info p {
        display: block;
        margin-bottom: 0;
        font-size: 14px;
    }

    .icepro-footer .footer-fav .site-fav {
        padding-top: 24px;
    }

    .icepro-footer .footer-fav .site-fav .btn-orange {
        padding: 0 2em;
        font-size: var(--icepro-margin);
        line-height: 3.5;
    }

    .icepro-footer .footer-fav .site-girl .girl {
        left: -50px;
    }

    .icepro-footer .footer-fav .site-girl .girl-info {
        top: 72px;
        left: 150px;
    }

    .icepro-footer .footer-fav:hover .site-girl .girl {
        left: -80px;
    }

    .icepro-footer .footer-fav:hover .site-girl .girl::after {
        visibility: visible;
        opacity: 1;
    }

    .icepro-footer .hide_md {
        display: block;
    }
}

@media screen and (min-width: 769px) {
    .icepro-footer .icepro-footer-panel .tfbk-footer section:first-child {
        width: 25%;
    }

    .icepro-footer .icepro-footer-panel .tfbk-footer #nav_menu-2,
    .icepro-footer .icepro-footer-panel .tfbk-footer #nav_menu-3,
    .icepro-footer .icepro-footer-panel .tfbk-footer #nav_menu-4 {
        width: 15%;
    }

    .icepro-footer .link-items {
        gap: 5px;
        margin-top: 1px;
    }

    .icepro-footer .link-items a,
    .icepro-footer .link-items span {
        font-size: 13px;
    }

    .icepro-footer .footer-bottom-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media screen and (max-width: 768px) {
    /*
     * 移动端：左文案 + 右角色，整体居中，压高度
     * favicon+标题 / 简介 / 链接 / 版权 | 角色
     */
    body.icepro-footer-takeover {
        --icepro-bottom-bg: #333;
    }

    body.icepro-footer-takeover.dark-theme {
        --icepro-bottom-bg: var(--main-bg-color, #323335);
    }

    .icepro-footer {
        background: var(--icepro-panel-bg);
        color: var(--icepro-panel-text);
    }

    .icepro-footer .icepro-footer-desktop {
        display: none !important;
    }

    .icepro-footer .icepro-footer-mobile {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 16px 14px 14px;
    }

    .icepro-footer .icepro-m-main {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        max-width: 420px;
    }

    .icepro-footer .icepro-m-body {
        flex: 1 1 auto;
        min-width: 0;
        text-align: left;
    }

    /* 角色：独立右侧，完整人物、高度贴齐文案区 */
    .icepro-footer .icepro-m-character {
        flex: 0 0 auto;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 78px;
        height: 92px;
        margin: 0;
    }

    .icepro-footer .icepro-m-character-thumb {
        display: block;
        width: 78px;
        height: 92px;
        background-position: center bottom;
        background-repeat: no-repeat;
        background-size: contain;
    }

    .icepro-footer .icepro-m-title {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        width: fit-content;
        max-width: 100%;
        margin: 0 0 8px;
        padding: 0 0 7px;
        color: #f2f3f5;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.3;
        letter-spacing: 0.01em;
    }

    body.dark-theme .icepro-footer .icepro-m-title {
        color: var(--main-color, #e5eef7);
    }

    .icepro-footer .icepro-m-favicon {
        flex: 0 0 auto;
        width: 18px;
        height: 18px;
        border-radius: 4px;
        object-fit: contain;
        background: rgba(255, 255, 255, 0.06);
    }

    .icepro-footer .icepro-m-title-text {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .icepro-footer .icepro-m-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        width: 24px;
        height: 2px;
        border-radius: 2px;
        background: var(--icepro-accent-color);
    }

    .icepro-footer .icepro-m-desc {
        margin: 0 0 8px;
        color: var(--icepro-panel-muted);
        font-size: 11px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .icepro-footer .icepro-m-links {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        margin: 0 0 6px;
        padding: 0;
        color: var(--icepro-panel-muted);
        font-size: 11px;
        line-height: 1.55;
    }

    .icepro-footer .icepro-m-links a,
    .icepro-footer .icepro-m-links span {
        display: inline;
        color: var(--icepro-panel-muted) !important;
        font-size: 11px;
        line-height: 1.55;
        white-space: nowrap;
    }

    .icepro-footer .icepro-m-links a:hover {
        color: var(--icepro-accent-color) !important;
    }

    .icepro-footer .icepro-m-links a + a,
    .icepro-footer .icepro-m-links a + span,
    .icepro-footer .icepro-m-links span + a,
    .icepro-footer .icepro-m-links span + span {
        margin-left: 0.45em;
    }

    .icepro-footer .icepro-m-links a + a::before,
    .icepro-footer .icepro-m-links a + span::before,
    .icepro-footer .icepro-m-links span + a::before,
    .icepro-footer .icepro-m-links span + span::before {
        content: "·";
        display: inline-block;
        margin-right: 0.45em;
        color: rgba(167, 167, 167, 0.75);
        pointer-events: none;
    }

    .icepro-footer .icepro-m-note {
        margin: 0 0 4px;
        color: var(--icepro-accent-color);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.45;
    }

    .icepro-footer .icepro-m-copy {
        margin: 0;
        color: rgba(167, 167, 167, 0.85);
        font-size: 10px;
        line-height: 1.45;
        overflow-wrap: break-word;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }
}
