#resources {
    padding-bottom: 50px;
}

#resources .banner {
    width: 100%;
    height: 20vw;
}

#resources .resources-box {
    background: #FFFFFF;
    padding: 0 15px;
    border-radius: 8px;
    margin-top: 50px;
}

.resources-box .box-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #dcdfe6;
}

.resources-box .box-item:last-child {
    border-bottom: none;
}

.box-item img {
    border-radius: 5px;
    border: 1px solid #dcdfe6;
    height: 120px;
    width: 100%;
}

.box-item .item-title {
    margin: 0;
    font-size: 16px;
    color: #303133;
    font-weight: normal;
}

.box-item .item-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #606266;
    margin-bottom: 0;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.box-item .item-button {
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    color: #FFF;
    background-color: #409EFF;
    border-radius: 20px;
    padding: 7px 15px;
    font-size: 12px;
}

.box-item .item-button:hover {
    background: #66b1ff;
}

/* 手机端：缩小按钮与间距，避免窄屏溢出 */
@media only screen and (max-width: 767px) {
    #resources .resources-box {
        margin-top: 20px;
        padding: 0 10px;
    }

    .box-item .item-title {
        font-size: 15px;
    }

    .box-item .item-button {
        padding: 5px 6px;
        font-size: 11px;
        border-radius: 15px;
        white-space: nowrap;
    }

    /* 按钮列改为自适应宽度，避免文字换行 */
    .resources-box .box-item > .col-xs-3 {
        flex: 0 0 auto;
        max-width: none;
    }
}