body{
    background-color: #f5f5f5;
}
.main-content{
    margin-top: 80px;
    background-image: url(../images/bg-detail.jpg);
    background-repeat: repeat-y;
    background-size: cover;
    background-position: center;
    width: 100%;
}
.breadcrumb-section{
    padding: 20px 0;
}
.breadcrumb-container{
    max-width: 1226px;
    margin: 0 auto;
    /* padding: 0 40px; */
}
.breadcrumb-container a{
    color: #333;
}
.breadcrumb-container a:hover{
    color: #000;
}
.breadcrumb-container span{
    color: #999;
}

/* 分类区域样式 */
.category-section {
    max-width: 1226px;
    margin: 0 auto;
    padding: 0 40px;
    background-color: #fff;
    /* border-radius: 4px; */
    /* box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); */
    border: 1px solid #e8e8e8;
}

.category-container {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.category-row {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.category-row:last-child {
    margin-bottom: 0;
}

.category-title {
    width: 120px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.category-items {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
}

.category-item {
    margin-right: 20px;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    padding: 2px 8px;
    border-radius: 2px;
    transition: all 0.3s;
}

.category-item:hover {
    color: #fff;
    background-color: #E10000;
}

.category-item.active {
    color: #fff;
    background-color: #E10000;
}

/* 排序区域样式 */
.sort-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.sort-options {
    display: flex;
}

.sort-option {
    margin-right: 20px;
    font-size: 14px;
    color: #666;
    text-decoration: none;
    padding-bottom: 3px;
    position: relative;
}

.sort-option.active {
    color: #E10000;
    border-bottom: 2px solid #E10000;
}

.sort-option i {
    margin-left: 3px;
}

.right-container {
    display: flex;
    align-items: center;
}

.case-count {
    font-size: 14px;
    color: #666;
    margin-right: 15px;
}

.case-count span {
    color: #E10000;
    font-weight: 500;
}

.pagination {
    font-size: 14px;
    color: #666;
}

.pagination a {
    color: #666;
    text-decoration: none;
}

.pagination i {
    margin: 0 5px;
}

/* 案例列表区域样式 */
.case-list-section {
    margin: 20px 0;
}

.case-list-container {
    max-width: 1226px;
    margin: 0 auto;
}

.case-items {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.case-item {
    width: calc(25% - 20px);
    margin: 0 10px 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    overflow: hidden;
}

.case-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.case-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.case-img img {
    padding: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s;
}

.case-item:hover .case-img img {
    transform: scale(1.05);
}

.case-tag {
    margin-right: 5px;
    padding: 2px 8px;
    font-size: 12px;
    color: #fff;
    border-radius: 2px;
}

.case-tag.hot {
    background-color: #f39c12;
}
.case-tag.new {
    background-color: #1688f1;
}
.case-tag.recommend {
    background-color: #f75444;
}
.case-tag.top {
    background-color: #18bc9c;
}
.case-tag.focus {
    background-color: #f39c12;
}

.case-info {
    padding: 12px;
}

.case-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.case-item:hover .case-title {
    color: #E10000;
}

.case-desc {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.case-tags .tag {
    font-size: 14px;
    color: #666;
    padding: 4px 6px;
    border-radius: 2px;
    border: 1px solid #D0D0D0;
}

.case-tags a:hover {
    background-color: #D0D0D0;
}

.case-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.case-views {
    font-size: 12px;
    color: #999;
}

.case-views i {
    margin-right: 3px;
}

@media (max-width: 1024px) {
    .breadcrumb-container{
        padding: 0 20px;
    }

    .category-section {
        padding: 0 20px;
    }

    .category-title {
        width: 100px;
    }

    .category-item {
        margin-right: 15px;
    }

    .sort-option {
        margin-right: 15px;
    }

    .case-list-container {
        padding: 0 20px;
    }

    .case-item {
        width: calc(33.33% - 20px);
    }

    .case-img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .main-content{
        margin-top: 60px;
    }

    .breadcrumb-container{
        padding: 0 10px;
    }

    .category-section {
        padding: 0 10px;
    }

    .category-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .category-title {
        width: 100%;
        margin-bottom: 10px;
    }

    .category-items {
        width: 100%;
    }

    .category-item {
        margin-right: 10px;
        font-size: 13px;
    }

    .sort-option {
        margin-right: 15px;
        font-size: 13px;
    }

    .right-container {
        display: flex;
        align-items: center;
        margin-left: auto;
    }

    .case-count {
        margin-right: 15px;
        font-size: 13px;
    }

    .pagination {
        font-size: 13px;
    }

    .case-list-container {
        padding: 0 10px;
    }

    .case-item {
        width: calc(50% - 20px);
    }

    .case-img {
        height: 150px;
    }

    .case-title {
        font-size: 15px;
    }

    .case-desc {
        height: 54px;
        font-size: 12px;
    }
}