/* 按钮核心样式与动画效果 */
.btn-fav {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
    /* 确保按钮内容在波纹之上 */
}

/* 鼠标悬停放大效果 */
.btn-fav:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* 波纹效果容器 */
.btn-fav::before,
.btn-fav::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: -1;
    animation: ripple 3s infinite;
}

/* 第二个波纹，延迟动画开始时间以形成连续效果 */
.btn-fav::after {
    animation-delay: 1s;
}

/* 波纹动画 */
@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* 点击反馈效果 */
.btn-fav.clicked {
    transform: scale(0.95);
    background-color: #e05200;
}

.btn-fav:active::before,
.btn-fav:active::after {
    animation: none; /* 点击时暂停波纹动画 */
}

/* 自定义弹窗样式 */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    /* 渐变蓝半透明背景 */
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.95));
    border-radius: 16px; /* 圆角设计 */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-container {
    transform: translateY(0);
}

.popup-header {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0 8px;
}

.popup-close:hover {
    color: #fff;
}

.popup-content {
    padding: 24px;
    color: #fff;
    text-align: center;
}

.popup-content p {
    margin: 0 0 20px;
    line-height: 1.6;
    font-size: 15px;
}

.popup-content strong {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin: 0 2px;
}

.popup-buttons {
    margin-top: 15px;
}

.popup-btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.popup-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 响应式调整 */
@media (max-width: 480px) {
    .popup-container {
        border-radius: 12px;
    }
    
    .popup-header, .popup-content {
        padding: 15px 20px;
    }
    
    .popup-content p {
        font-size: 14px;
    }
}
    .footer2 {
        background: #333 !important;
    }
    /* 顶部收藏区背景 */
    .footer2-fav {
        position: relative;
        overflow: hidden;
        width: 100%;
        background-image: linear-gradient(to top, #9ae8ff, transparent);
        padding: 0 15px;
        box-sizing: border-box;
    }
    @media (min-width: 768px) {
        .footer2-fav {
            display: flex;
            overflow: visible;
            width: auto;
            padding: 0;
        }
    }
    .footer2-fav .footer2-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) {
        .footer2-fav {
            padding-bottom: 0;
        }
        .footer2-fav .girl-info,
        .footer2-fav .site-fav,
        .footer2-fav .site-p {
            display: none !important;
        }
        .footer2-fav .site-info {
            width: 50%;
            padding-right: 10px;
            box-sizing: border-box;
        }
        .footer2-fav .site-girl {
            position: static;
            width: 50%;
            display: flex;
            align-items: flex-start;
            justify-content: flex-end;
            padding-top: 10px;
            margin-left: auto;
        }
        .footer2-fav .site-girl .girl {
            position: static;
            width: 100%;
            max-width: 140px;
            height: auto;
        }
        .footer2-fav .footer2-fav-top {
            flex-wrap: wrap;
            padding-bottom: 20px;
        }
    }
    .footer2-fav .site-info {
        width: 60%;
    }
    @media (min-width: 768px) {
        .footer2-fav .site-info {
            width: auto;
        }
    }
    .footer2-fav .site-info h2 {
        margin-bottom: 10px;
        text-transform: uppercase;
        font-size: 20px;
        line-height: 1.4;
    }
    @media (min-width: 768px) {
        .footer2-fav .site-info h2 {
            font-size: 26px;
        }
    }
    .footer2-fav .site-info h2 a {
        color: #000;
        text-decoration: none;
    }
    .footer2-fav .site-info .site-p {
        margin-bottom: 10px;
        max-width: 500px;
    }
    .footer2-fav .site-info .site-p p:first-child:after {
        content: ',';
    }
    @media (min-width: 768px) {
        .footer2-fav .site-info .site-p {
            margin-bottom: 0;
        }
        .footer2-fav .site-info .site-p p:first-child:after {
            content: '';
        }
    }
    .footer2-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) {
        .footer2-fav .site-info p {
            display: block;
            margin-bottom: 0;
            font-size: 14px;
        }
    }
    .footer2-fav .site-fav {
        padding-top: 5px;
    }
    @media (min-width: 768px) {
        .footer2-fav .site-fav {
            padding-top: 24px;
        }
    }
    .footer2-fav .site-fav .btn-orange {
        padding: 0 1.2em;
        border-radius: 8px;
        background-color: var(--focus-color);
        color: #fff;
        font-size: 14px;
        line-height: 2.5;
        text-decoration: none;
        display: inline-block;
    }
    @media (min-width: 768px) {
        .footer2-fav .site-fav .btn-orange {
            padding: 0 2em;
            font-size: var(--hmbk--margin);
            line-height: 3.5;
        }
    }
    .footer2-fav .site-girl {
        position: absolute;
        bottom: 0;
        left: 50%;
    }
    .footer2-fav .site-girl .girl {
        position: absolute;
        bottom: 0;
        left: 50px;
        width: 180px; /* 图片容器宽度 - PC端 */
        transition: all 0.3s;
    }
    @media (min-width: 768px) {
        .footer2-fav .site-girl .girl {
            left: -50px;
        }
    }
    .footer2-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 0.3s;
    }
    
    /* 核心：确保图片完全显示的样式 */
    .thumb {
        position: relative;
        display: block;
        overflow: hidden;
        width: 100%;
        height: 0;
        background-color: transparent;
        background-position: center;
        background-size: contain; /* 改为contain确保图片完全显示 */
        background-repeat: no-repeat;
        transition: all 0.2s;
    }
    
    /* 关键：根据图片实际比例设置padding-top，确保完整显示 */
    /* 假设图片比例为3:4（宽3，高4），则padding-top = 4/3 * 100% ≈ 133.333% */
    .footer2-fav .site-girl .thumb {
        padding-top: 133.333%; /* 调整为图片实际比例 */
    }
    
    /* 核心样式调整 */
.footer2-fav .site-girl .thumb {
    padding-top: 120%; /* 根据实际图片比例调整 */
    aspect-ratio: 1/1; /* 示例比例，可替换为实际值 */
    background-size: contain;
    background-position: center center;
}

/* 移动端单独优化 */
@media (max-width: 767px) {
    .footer2-fav .site-girl .girl {
        max-width: 120px;
    }
}
    /* 移动端图片设置 */
    @media (max-width: 767px) {
        .footer2-fav .thumb {
            padding-top: 133.333%; /* 保持相同比例 */
            max-height: none; /* 移除最大高度限制 */
        }
    }
    
    .footer2-fav .site-girl .girl-info {
        margin-bottom: 55px;
        margin-left: 150px;
    }
    .footer2-fav .site-girl h4 {
        color: #797979;
        font-weight: 400;
        font-size: 14px;
        line-height: 1.8;
    }
    .footer2-fav .site-girl a {
        color: #797979;
        text-decoration: none;
    }
    .footer2-fav .site-girl a:hover {
        color: #ff5c00;
    }
    @media (min-width: 768px) {
        .footer2-fav:hover .site-girl .girl {
            left: -80px;
        }
        .footer2-fav:hover .site-girl .girl:after {
            visibility: visible;
            opacity: 1;
        }
    }
    .wrapper {
        max-width: 100%;
        margin: 0 auto;
    }
    .Onecad_fl {
        float: left;
    }
    .fr {
        float: right;
    }
    .hide_md {
        display: none;
    }
    @media (min-width: 768px) {
        .hide_md {
            display: block;
        }
    }
    #onecad_new_footer2 {
        clear: both;
    }
    #hmbk-footer2-new .hmbk-footer2 > .wrapper {
        border-bottom: 1px solid #9e9e9e3b;
    }
    .footer2 {
        padding: 0 !important;
    }
    #hmbk-footer2-new .hmbk-footer2 .widget-title {
        position: relative;
        border-bottom: 0;
        font-size: 18px;
        margin-bottom: 14px;
        color: #fff;
        text-align: left;
        margin-top: 25px;
        margin-left: 5px;
    }

    #hmbk-footer2-new .hmbk-footer2 .widget-title:before {
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 40px;
        height: 2px;
        background-color: #3B82F6 !important;
        content: '';
        transition: width 0.3s ease;
    }
    .dark-theme .footer2-fav .site-info p {
    color: #fff;
    }
    .dark-theme .footer2-fav .site-girl h4 {
    color: #fff;

}

.dark-theme .footer2-fav .site-girl .girl:after {
   color: #fff;
}
    #hmbk-footer2-new .hmbk-footer2 section:hover .widget-title:before {
        width: 80px;
    }
    #hmbk-footer2-new .hmbk-footer2 .textwidget {
        padding: 10px 0;
        line-height: 26px;
    }
    /* 将“关于我们”介绍文本颜色设置为白色 */
    #hmbk-footer2-new .hmbk-footer2 #text-3 .textwidget p {
        color: #fff;
    }
    #hmbk-footer2-new .hmbk-footer2 section:first-child {
        width: 30%;
    }
    #hmbk-footer2-new .hmbk-footer2 #nav_menu-1 li {
        display: inline-block;
        width: 45%;
    }
    #hmbk-footer2-new .hmbk-footer2 #nav_menu-2,
    #hmbk-footer2-new .hmbk-footer2 #nav_menu-3,
    #hmbk-footer2-new .hmbk-footer2 #nav_menu-4 {
        width: 18%;
    }
    #hmbk-footer2-new .hmbk-footer2 .widget ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    #hmbk-footer2-new .hmbk-footer2 .widget ul li {
        position: relative;
        padding: 7px 0 8px 15px;
    }
    #hmbk-footer2-new .hmbk-footer2 .widget ul li:before {
        position: absolute;
        top: 9px;
        left: 1px;
        color: #3B82F6 !important;
        content: '•';
        font-size: 16px;
        line-height: 1;
    }
    #hmbk-footer2-new .hmbk-footer2 .hmbk-footer2-widget-in {
        display: flex;
        justify-content: space-between;
    }
    #hmbk-footer2-new .hmbk-footer2 .widget {
        padding: 0 15px;
    }
    #hmbk-footer2-new .hmbk-footer2 section {
        margin: 0;
        margin-bottom: 0;
    }
    #hmbk-footer2-new .hmbk-footer2 .hmbk-footer2-widget-in {
        margin: 0 -10px;
    }
    #hmbk-footer2-new .hmbk-footer2 section:last-child .qr-container {
        display: flex;
        width: 100%;
        justify-content: space-around;
        padding-top: 5px;
    }
    .qr-item {
        text-align: center;
        padding: 0 5px;
    }
    .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, 0.08);
        padding: 5px;
    }
    .qr-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
        border-radius: 8px;
        transition: transform 0.3s ease;
    }
    .qr-img:hover {
        transform: scale(1.05);
    }
    #hmbk-footer2-new .hmbk-footer2 section:last-child .qr-tips {
        margin-top: 8px;
        max-width: 90px;
        text-align: center;
        font-size: 13px;
        line-height: 1.2em;
        margin-bottom: 0;
        color: #fff;
    }
    #hmbk-footer2-new a {
        text-decoration: none;
        transition: all 0.3s ease;
        color: #fff;
    }
    #hmbk-footer2-new a:hover {
        color: #3B82F6 !important;
        margin-left: 3px;
    }
    #hmbk-footer2-new .footer2-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;
        clear: both;
    }
    .footer2-links {
        padding: 8px 16px;
        margin: 10px auto;
        max-width: var(--mian-max-width);
        background: linear-gradient(135deg, rgba(154, 232, 255, 0.3) 0, rgba(154, 232, 255, 0.1) 100%);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .link-content {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 10px;
        box-sizing: border-box;
    }
    .link-heading {
        color: #fff;
        font-weight: 600;
        font-size: 14px;
        margin-right: 12px;
        white-space: nowrap;
        padding: 5px 0;
    }
    .link-items {
        display: flex;
        flex-wrap: wrap;
        row-gap: 6px;
        column-gap: 15px;
        margin: 0;
        padding: 0;
        justify-content: flex-start;
    }
    .apply-link,
    .link-items a {
        color: #f0f0f0 !important;
        font-size: 13px;
        transition: all 0.3s ease;
        text-decoration: none !important;
        white-space: nowrap;
    }
    .apply-link:hover,
    .link-items a:hover {
        color: #3B82F6 !important;
    }
    .apply-link {
        margin-left: auto;
        font-weight: 500;
        white-space: nowrap;
        background-color: rgba(59, 130, 246, 0.2);
        padding: 4px 10px;
        border-radius: 4px;
    }
    #hmbk-footer2-new .hmbk-footer2-nav .wrapper {
        padding: 0;
        max-width: none;
    }
    .footer2-bottom-container {
        max-width: var(--mian-max-width);
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
    }
    .foot-left {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .foot-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .foot-menu a {
        color: #ccc;
        font-size: 12px;
    }
    #hmbk-footer2-new .footer2-bottom a:hover {
        color: #fff !important;
    }
    @media screen and (max-width: 768px) {
        #hmbk-footer2-new .hmbk-footer2 .hmbk-footer2-widget-in,
        .footer2-links {
            display: none !important;
        }
        #hmbk-footer2-new .hmbk-footer2 > .wrapper {
            border-bottom: none;
        }
        .hmbk-footer2-nav {
            box-sizing: border-box;
            width: 100%;
            overflow: hidden;
        }
        #hmbk-footer2-new .footer2-bottom {
            padding: 15px 20px;
        }
        .footer2-bottom-container {
            flex-direction: column;
            align-items: center;
            text-align: center;
        }
        .foot-left { align-items: center; }
        .foot-menu { justify-content: center; }
        .footer2-bottom-right {
            margin-top: 5px;
            display: flex;
            align-items: center;
            gap: 8px;
            justify-content: center;
            width: 100%;
        }
        .foot-copyright {
            font-size: 10px;
            line-height: 1.8em;
            word-break: break-all;
            white-space: normal;
            width: 100%;
        }
        .footer2-bottom-right {
            font-size: 10px;
            line-height: 1.8em;
        }
    }
    @media screen and (min-width: 769px) {
        #hmbk-footer2-new .hmbk-footer2 section:first-child {
            width: 25%;
        }
        #hmbk-footer2-new .hmbk-footer2 #nav_menu-2,
        #hmbk-footer2-new .hmbk-footer2 #nav_menu-3,
        #hmbk-footer2-new .hmbk-footer2 #nav_menu-4 {
            width: 15%;
        }
        .link-items {
            gap: 5px;
            margin-top: 1px;
        }
        .link-items a {
            font-size: 12px;
        }
        .footer2-bottom-container {
            flex-wrap: nowrap;
            gap: 0;
        }
        .foot-copyright {
            text-align: left;
            width: auto;
        }
        .footer2-bottom-right {
            text-align: right;
            display: flex;
            gap: 15px;
            align-items: center;
        }
    }
    .wrapper {
        margin: 0 auto;
        max-width: var(--mian-max-width);
        padding: 0 20px;
    }
    .entry-content > ol li::marker,
    .entry-content > ul li::marker {
        color: #999;
        font-family: DIN-Medium;
    }
    .widget ul li {
        font-size: 13px;
        padding: 12px 16px;
        box-sizing: border-box;
    }
    .widget ul li + li {
        margin-top: -8px;
    }
    .widget > h2 {
        font-size: 16px;
        font-weight: 600;
        line-height: 1;
    }
    .footer2 {
        font-size: 13px;
    }

    /* CSS变量定义 */
    :root {
        --focus-color: #ff5c00;
        --hmbk--margin: 14px;
        --footer2-bg: #fff;
        --mian-max-width: 1200px;
    }
    .footer{display: none;}
    