/* Case 开始 */

.case-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    width: 100%; /* 确保父容器全屏 */
}

/* 背景图开始*/
.case-bg-container {
    background-image: url('../img/case-pic.jpg.webp');
    background-repeat: no-repeat;
    background-size: cover; /* 确保背景图片覆盖整个容器 */
    background-position: center;
    width: 100vw; /* 使用视口宽度，确保全屏 */
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 20px;
    box-sizing: border-box; /* 确保padding和border不会增加额外宽度 */
}

@media (max-width: 768px) {
    .case-pic {
        height: auto;
        min-height: 150px; /*确保移动端内容不足时 支撑图片高度，显示图片*/
    }
}
/* 背景图结束 */


.case-main-body {
    width: 100%;
    max-width: 100rem;
    margin: 6.25rem auto;
    padding: 0 1rem;
    transform: translateX(-1rem); /* 左移效果 */
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: flex-start; /* 顶部对齐 */
    gap: 2rem;
}

/* 左侧菜单样式 */
.case-anchorpoint-menu {
    width: 100%;
    max-width: 249px;
    border: 2px solid #c1d5e6;
    border-radius: 3px;
    padding: 1.5rem 1rem;
    margin-right: 2rem;
    position: relative;
    z-index: 1;
}

/* 标题间距处理 */
.case-anchorpoint-menu > .case-h2-title {
    margin: 0.9375rem 0;
    font-size: 1.5rem;
    color: #333;
    padding-left: 0.5rem;
}

/* 菜单项通用样式 */
.case-menu-title {
    min-height: 3.75rem;
    background-color: #eff8ff;
    margin-bottom: 0.625rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.case-menu-title:hover {
    background-color: #d6edff;
    transform: translateX(0.5rem);
}

.anchor-title {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
}

.menu-mo{
    display: none;
}

.layui-icon-right {
    margin-left: 1rem;
    font-size: 30px;
    color: rgb(0,166,90);
}

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    .case-main-body {
        flex-direction: column;
    }

    .text-content-wrapper,
    .image-content-wrapper {
        min-width: 100%;
        max-width: 100%;
    }

    .case-text {
        padding-right: 0;
    }

    .case-container {
        padding: 0.5rem;
    }

    .case-anchorpoint-menu {
        max-height: 3.75rem;
        overflow: hidden;
        transition: all 0.3s ease;
        margin-bottom: 0;
        padding: 0px 0px;
    }

    .case-anchorpoint-menu.active {
        max-height: 31.25rem;
    }

    .case-anchorpoint-menu > .case-h2-title {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 1rem;
    }

    .case-menu-title {
        flex-direction: row !important; /* 保持水平排列 */
    }

    .layui-icon-right {
        display: block;
        margin: 0 !important;
        transform: rotate(0) !important;
        transition: transform 0.3s ease;
    }
}

@media (max-width: 480px) {
    .case-menu-title {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }

    .layui-icon-right {
        display: block;
        margin: 0.5rem 0 0;
        font-size: 20px;
        color: rgb(0,166,90);
    }
}

/* case-subcon 开始 */
.case-subcon {
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    padding: 1.25rem 0;
}

/* CASE标题样式 */
.case-title {
    color: #0056b3;
    margin: 0 0 1.25rem; /* 下间距20px */
    font-size: 2.3rem;
    text-align: left;
    width: 100%;
}

/* 弹性内容容器 */
.case-content {
    display: flex;
    gap: 1.875rem;
    align-items: stretch; /* 等高对齐 */
}

/* 文本区块优化 */
.text-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 50%; /* 基础占比 */
}

/* 文本容器 */
.case-text {
    flex: 1 1 50%;
    min-width: 18.75rem;
    line-height: 1.6;
    overflow-wrap: break-word;
    padding-right: 2rem;
}

.image-content-wrapper {
    flex: 1;
    min-width: 45%; /* 弹性基准 */
    max-width: 55%;
    transition: width 0.3s ease; /* 动态响应 */
}

/* 图片容器 */
.case-img-container {
    flex: 1 1 50%;
    min-width: 18.75rem;
    position: relative;
}

/* 图片样式 */
.case-pic {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .case-content {
        flex-direction: column;
    }

    .case-text,
    .case-img-container {
        flex: 1 1 100%;
        width: 100%;
    }

    .case-title {
        font-size: 1.8rem;
        margin: 0.9375rem 0;
    }
}
/* case-subcon 结束 */

/* Case 结束 */