.custom-footer-content {
    display: flex;
    flex-direction: column;
    /* 移除了背景颜色、padding 和 margin-bottom */
    /* 移除 border-top */
    position: relative;
    overflow: hidden;
    background-color: white;
}

.custom-footer-content>* {
    position: relative;
    z-index: 1;
}

.footer-logo-menu-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    /* 移除了 margin-bottom */
    flex-wrap: wrap;
}

.footer-logo {
    flex: 1;
    text-align: left;
    background-color: white;
    padding: 0 0 0 20px;
    height: stretch;
    display: flex;
    align-items: center;
}

.footer-logo .custom-logo-link img {
    max-width: 200px;
}

.footer-logo .site-title {
    margin: 0;
    font-size: 1.5em;
    color: #013BA6;
    /* Logo 文字颜色为深蓝色，确保在白色背景上可见 */
}

.footer-menu-and-copyright {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* 左对齐 */
    text-align: left;
    background: #013BA6;
    /* 菱形斜角背景效果 */
    /* padding-left: 5%; */
    /* 与 logo 部分对齐 */
    position: relative;
    /* overflow: hidden; */
    height: stretch;
    /* 高度填满 */
    flex-grow: 1;
    /* 占据剩余空间 */
}

/* 在 .footer-menu-and-copyright 上添加菱形斜角效果在左边 */
.footer-menu-and-copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 100%;
    height: 100%;
    background-color: #013BA6;
    z-index: 0;
    transform: skewX(-40deg);
    transform-origin: top left;
    border-top-left-radius: 20px;
    clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 100%);
}

/* 添加菱形斜角背景效果 */
/* .footer-menu-and-copyright::after {
    content: '';
    position: absolute;
    top: 0;
    right: -25%;
    width: 35%;
    height: 100%;
    background-color: #1A4FAF;
    z-index: 0;
    transform: skewX(-50deg);
    transform-origin: top right;
} */

.footer-menu-and-copyright>* {
    position: relative;
    z-index: 1;
}

.footer-menu {
    text-align: left;
    margin-bottom: 10px;
    flex-grow: 1;
    /* 让菜单部分占据可用空间 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 20px 0px 0px 0px;
    /* 垂直居中菜单项目 */
}

.footer-menu-ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    /* 水平排列菜单项 */
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 20px;
    /* 菜单项之间的间距 */
}

.footer-menu-ul li {
    display: block;
    margin: 0;
    position: relative;
}

.footer-menu-ul a {
    text-decoration: none;
    color: white;
    /* 默认文字颜色为白色 */
    text-transform: uppercase;
    font-size: 0.9em;
    transition: color 0.3s ease;
    padding-bottom: 5px;
    /* 为下划线预留空间 */
    position: relative;
    display: inline-block;
}

/* 当前页和鼠标悬停时的样式 */
.footer-menu-ul li.current-menu-item a,
.footer-menu-ul a:hover {
    color: #FF6A17 !important;
    /* 文字颜色 FF6A17 */
}

/* 默认状态下划线隐藏 - 从左边开始 */
/* .footer-menu-ul a::after { */
/* content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #FF6A17;
    transform: scaleX(0);
    transform-origin: left; */
/* 关键：设置变换原点为左边 */
/* transition: transform 0.3s ease; */
/* } */

/* 下划线 */
.footer-menu-ul li.current-menu-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 2px;
    background-color: #FF6A17;
    /* 下划线颜色 FF6A17 */
    /* transform: scaleX(1); */
    /* transform-origin: left; */
    /* 关键：设置变换原点为左边 */
    /* transition: transform 0.3s ease; */
}

.footer-copyright {
    width: 100%;
    margin-top: auto;
    margin: 10px 0px 20px 0px;
    /* 版权信息推到底部 */
}

.footer-copyright p {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.85em;
    color: white;
    /* 版权信息文字颜色为白色 */
}

@media (max-width: 991px) {
    .footer-logo-menu-container {
        flex-direction: column;
        background: #013BA6;
    }

    .footer-menu-and-copyright {
        margin-top: 0;
        width: 100%;
    }

    .footer-logo {
        width: 100%;
        background-color: #013BA6;
        padding: 20px;
        display: flex;
        justify-content: center;
    }

    .footer-menu {
        display: none;
    }

    .footer-menu-and-copyright::before,
    .footer-menu-and-copyright::after {
        content: none;
    }

    .footer-menu-ul {
        flex-direction: column;
        /* 在小屏幕上垂直排列 */
        gap: 10px;
    }

    .footer-copyright {
        display: flex;
        justify-content: center;
    }

    .footer-copyright p {
        text-align: center;
    }
}