.case-detail-bgcontainer {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 100px;
}
.case-detail-bgImg {
    width: 100%;
    height: 500px;
    position: relative;
}
.case-detail-bgImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-detail-nav {
    height: 59px;
    width: 100%;
    background-color: rgba(216,216,216,0.45);
    position: absolute;
    top: 0;
    left: 0;
    line-height: 59px;
    z-index: 1;
}

.case-detail-nav-content a {
    font-weight: 400;
    font-size: 16px;
    color: #FFFFFF;
    display: inline-block;
}
.case-detail-nav-content a i {
    transform: rotate(-90deg);
    display: inline-block;
}
.case-detail-title {
    color: #AFEFF5 !important;
}
.case-detail-nav-content a:hover {
    color: #AFEFF5 !important;
}

.case-detail-mbcont {
    width: 100%;
    height: 100%;
    background: rgba(47,47,47,0.6);
    position: absolute;
    top: 0;
    left: 0;
}
.case-detail-mbcont {
    box-sizing: border-box;
    padding-top: 120px;
}
.case-detail-mbcont-title {
    font-size: 48px;
    color: #FFFFFF;
}
.case-detail-mbcont-desc {
    padding-top: 15px;
    font-size: 18px;
    color: #FFFFFF;
    line-height: 24px;
}
.case-detail-mbcont-category {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}
.case-detail-mbcont-category a {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
}

/* 每三个标签循环颜色 */
.case-detail-mbcont-category a:nth-child(3n+1) {
    color: #117FEB;
    background: #E6F6FF;
}

.case-detail-mbcont-category a:nth-child(3n+2) {
    color: #FFA200;
    background: #FFFEEA;
}

.case-detail-mbcont-category a:nth-child(3n+3) {
    color: #00787B;
    background: #DCF5F2;
}
.case-detail-mbcont-bricks {
    position: relative;
}
.case-detail-mbcont-guide {
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0px 2px 32px 0px rgba(166,191,255,0.25);
    border-radius: 8px;
    padding: 68px 168px;
    box-sizing: border-box;
    position: absolute;
    top: 220px;
    left: 0;
}
.case-detail-mbcont-guide-desc {
    font-size: 18px;
    color: #666666;
    line-height: 36px;
    display : -webkit-box; /* 老语法适配 */ 
    -webkit-box-orient: vertical ; 
    -webkit-line-clamp: 3; /* 显示行数 */ 
    overflow: hidden;
}

.case-detail-mbcont-guide-name {
    font-size: 20px;
    color: #666666;
    padding-top: 30px;
    text-align: right;
}
.mbcont-guide-tquote {
    color: #E4F7F8;
    font-weight: bold;
    font-size: 100px;
    position: absolute;
    top: 10px;
    left: 80px;
}
.mbcont-guide-bquote {
    color: #E4F7F8;
    font-weight: bold;
    font-size: 100px;
    position: absolute;
    right: 80px;
    bottom: -44px;
}

.case-detail-wrapper {
    padding-top: 216px;
    display: flex;
    gap: 30px;
}
.case-detail-text {
    width: 70%;
}
.case-detail-text h1 {
    font-size: 26px;
    color: #333333;
    line-height: 60px;
    font-weight: bold;
    position: relative;
    padding-left: 14px;
    text-align: left !important;
}
.case-detail-text h1::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 25px;
    background: #FFA200;
    border-radius: 2px;
    top: 16px;
    left: 0px;
}
.case-detail-left p {
    font-size: 16px;
    color: #666666;
    line-height: 26px;
    padding: 10px 0px;
}

.case-detail-text h2 {
    font-size: 22px;
    color: #00B3B7;
    line-height: 50px;
    font-weight: bold;
}

.case-detail-text h3 {
    font-size: 20px;
    color: #333333;
    line-height: 28px;
    font-weight: bold;
}

.case-detail-text ul {
   padding: 10px 0px 10px 20px;
}
.case-detail-text ul li {
    list-style: disc;
    font-size: 16px;
    color: #666666;
    line-height: 26px;
    padding-bottom: 10px;
}

.case-detail-text ol {
    padding: 10px 0px 10px 20px;
}
.case-detail-text ol li {
    list-style: decimal;
    font-size: 16px;
    color: #666666;
    line-height: 26px;
    padding-bottom: 10px;
}

.case-detail-text img {
    width: 100%;
    height: 100%;
    padding-bottom: 20px;
}


.case-seo-pages {
	padding: 28px 0px;
	margin-top: 40px;
}

.case-seo-up {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	min-height: 48px;
	font-size: 14px;
	color: #333333;
}


.case-prev-post {
	order: 1;
	width: 320px;
	flex-shrink: 0;
}

.case-next-post {
	order: 2;
	width: 320px;
	flex-shrink: 0;
}

.case-prev-post.placeholder {
	visibility: hidden;
}

.case-seo-up>div {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	height: 48px;
	background: #FFFFFF;
	border-radius: 24px;
	border: 1px solid #D8DBDF;
	padding: 0 20px;
}


.case-seo-up>div:hover a {
	color: #333333;
	font-weight: bold;
}

.case-seo-up a {
	font-size: 14px;
	color: #333333;
	line-height: 24px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	flex: 1;
}

.case-seo-up img {
	width: 20px;
	height: 20px;
}

.seo-post-arrow {
	font-size: 20px;
	display: inline-block;
	color: #333333;
	transform: rotate(90deg);
	font-weight: bolder;
}

.seo-next-arrow {
	font-size: 20px;
	display: inline-block;
	color: #333333;
	transform: rotate(270deg);
	font-weight: bolder;
}

.case-rel-cont {
    margin-top: 30px;
}
.case-rel-cont-title {
    display: flex;
    justify-content: space-between;
}
.case-rel-cont-title-text {
    font-size: 26px;
    color: #333333;
    line-height: 35px;
    font-weight: bold;
    position: relative;
    padding-left: 10px;
}
.case-rel-cont-title-text::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 25px;
    position: absolute;
    background: #FFA200;
    border-radius: 2px;
    top: 4px;
    left: 0px;
}

.case-rel-cont-title-more {
    width: 100px;
    height: 34px;
    background: #FFFFFF;
    border-radius: 24px;
    border: 1px solid #D8DBDF;
    color: #666666;
    text-align: center;
    line-height: 32px;
    font-size: 14px;
}
.case-rel-cont-title-more:hover {
    color: #333333;
    font-weight: bold;
}


.case-rel-cont-item {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #E8E8E9;
    padding: 30px 0px;
}
.case-rel-cont-item:last-child {
    border-bottom: none;
}
.case-rel-cont-item-left {
    width: 170px;
    height: 158px;
    flex: 0 0 170px;
    background: #D8D8D8;
    border-radius: 8px;
    overflow: hidden;
}
.case-rel-cont-item-left img {
    display: block;
    width: 170px;
    height: 158px;
    object-fit: cover;
    zoom: 1.2;
}
.case-rel-cont-item-right-title {
    font-weight: 500;
    font-size: 20px;
    color: #333333;
    line-height: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 20px);
}
.case-rel-cont-item-right-date {
    font-size: 12px;
    color: #7E8FA3;
    padding-top: 10px;
}
.case-rel-cont-item-right-desc {
    font-size: 14px;
    color: #666666;
    line-height: 22px;
    padding-top: 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 58px;
}
.case-rel-cont-item-right-category {
    margin-top: 16px;
}
.case-rel-cont-item-right-category a {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin: 0 2px;
}

/* 每三个标签循环颜色 */
.case-rel-cont-item-right-category a:nth-child(3n+1) {
    color: #117FEB;
    background: #E6F6FF;
}

.case-rel-cont-item-right-category a:nth-child(3n+2) {
    color: #FFA200;
    background: #FFFEEA;
}

.case-rel-cont-item-right-category a:nth-child(3n+3) {
    color: #00787B;
    background: #DCF5F2;
}

.case-detail-right {
    width: 280px;
}
.case-detail-right-adImg {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
}
.case-detail-right-adImg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-detail-right-ml {
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0px 2px 32px 0px rgba(166,191,255,0.25);
    border-radius: 8px;
    margin-top: 20px;
    position: sticky;
    top: 80px;
}
.case-detail-right-ml-title {
    padding: 10px 24px;
    box-sizing: border-box;
    border-bottom: 1px solid #EDEDED;
}
.case-detail-right-ml-content {
    margin-top: 15px;
    padding-bottom: 10px;
}
.case-detail-right-ml-content ul li {
    margin-bottom: 15px;
}

/* 添加右侧目录标题溢出省略号 */
.case-detail-right-ml-content ul li h1,
.case-detail-right-ml-content ul li h2 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    color: #333333;
    line-height: 20px;
    cursor: pointer;
}
.case-detail-right-ml-content ul li h2 {
    padding-left: 12px;
    color: #333333;
    padding-left: 38px;
    padding-top: 10px;
}
.case-detail-right-ml-content ul li h2:hover {
    color: #00B3B7;
}
.case-detail-right-ml-h1-active {
    color: #00B3B7 !important;
    position: relative;
}
.case-detail-right-ml-h1-active::before {
    content: '';
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid #00B3B7;
}
.case-detail-right-ml-content ul li h2.case-detail-right-ml-h1-active::before {
    display: none;
}
.case-detail-right-ml-content ul li h1 {
    padding-left: 20px;
    font-weight: 500;
}


/* 移动端适配 */
@media screen and (max-width: 768px) {
    .case-detail-bgcontainer {
        margin-bottom: 100px;
    }

    .case-detail-bgImg {
        height: 400px;
    }

    .case-detail-nav {
        height: 40px;
        line-height: 40px;
    }

    .case-detail-nav-content a {
        font-size: 14px;
    }

    .case-detail-mbcont {
        padding-top: 60px;
    }

    .case-detail-mbcont-title {
        font-size: 24px;
        line-height: 1.4;
    }

    .case-detail-mbcont-desc {
        padding-top: 10px;
        font-size: 14px;
        line-height: 20px;
    }

    .case-detail-mbcont-category {
        gap: 8px;
        margin-top: 20px;
    }

    .case-detail-mbcont-category a {
        padding: 5px 10px;
        font-size: 12px;
    }

    /* 引导内容区域移动端样式 */
    .case-detail-mbcont-guide {
        width: 92%;
        padding: 30px 20px;
        top: 200px;
        margin: 0 4%;
    }

    .case-detail-mbcont-guide-desc {
        font-size: 14px;
        line-height: 24px;
    }

    .case-detail-mbcont-guide-name {
        font-size: 16px;
        padding-top: 15px;
    }

    /* 隐藏引号 */
    .mbcont-guide-tquote,
    .mbcont-guide-bquote {
        display: none;
    }

    /* case-seo-pages 移动端适配 */
    .case-seo-pages {
        padding: 20px 0px;
        margin-top: 20px;
    }

    .case-seo-up {
        flex-direction: column;
        gap: 12px;
    }

    .case-prev-post,
    .case-next-post {
        width: 100%;
        order: unset;
    }

    .case-seo-up > div {
        height: 40px;
        padding: 0 15px;
    }

    .case-seo-up a {
        font-size: 13px;
        line-height: 20px;
    }

    .case-seo-up img {
        width: 16px;
        height: 16px;
    }

    .seo-post-arrow,
    .seo-next-arrow {
        font-size: 16px;
    }

    /* 调整 wrapper 布局 */
    .case-detail-wrapper {
        padding-top: 120px;
        flex-direction: column;
        gap: 20px;
    }

    /* 调整文本区域宽度为100% */
    .case-detail-text {
        width: 100%;
    }

    /* 隐藏右侧内容 */
    .case-detail-right {
        display: none;
    }

    .case-rel-cont-item {
        gap: 0;
        padding: 20px 0px;
    }

    .case-rel-cont-item-left {
        display: none;
    }

    .case-rel-cont-item-right-title {
        max-width: 100%;
    }
}

/* 小屏手机适配 */
@media screen and (max-width: 375px) {
    .case-detail-bgImg {
        height: 350px;
    }

    .case-detail-mbcont-title {
        font-size: 20px;
    }

    .case-detail-mbcont-guide {
        padding: 20px 15px;
    }

    .case-detail-mbcont-guide-desc {
        font-size: 13px;
        line-height: 22px;
    }

    /* 删除小屏幕下的引号样式，因为已经在768px断点处隐藏了 */
    .mbcont-guide-tquote,
    .mbcont-guide-bquote {
        display: none;
    }

    .case-seo-pages {
        padding: 15px 0px;
        margin-top: 15px;
    }

    .case-seo-up > div {
        height: 36px;
        padding: 0 12px;
    }

    .case-seo-up a {
        font-size: 12px;
    }

    .case-detail-wrapper {
        gap: 15px;
    }

    .case-rel-cont-item {
        padding: 15px 0px;
    }

    .case-rel-cont-item-left {
        display: none;
    }

    .case-rel-cont-item-right-title {
        font-size: 14px;
        line-height: 20px;
    }

    .case-rel-cont-item-right-desc {
        font-size: 12px;
        line-height: 18px;
        padding-top: 6px;
    }

    .case-rel-cont-item-right-category {
        margin-top: 10px;
    }
    
    .case-rel-cont-item-right-category a {
        padding: 2px 5px;
        font-size: 10px;
    }
}