        /* 父级为flex,gird时，子级可以使用百分比定宽高*/
        .cardwrap {
            display: inline-flex;
            display: flex;
            overflow: hidden;
            padding: 0px 15px 0px 15px;
        }

        .cardtext {
            font-size: 16px;
            overflow: hidden;
            /* width: 800px; */
            line-height: 24px;
            /* em*父级元素字体大小 */
            max-height: 7.6em;
            text-overflow: ellipsis;
            text-align: justify;
            position: relative;
            padding-bottom:20px;
        }

        

        /* 右浮动，使文字环绕,高度设置为它父级的高度，减去下方展开收起按钮的高度 */
        .cardtext::before {
            content: "";
            float: right;
            height: 100%;
            margin-bottom: -0.4em;
            font-size: 14px;
            background: red;
        }

        /* 障眼法,字数没有超出时,将展开收起用伪元素覆盖 */
        .cardtext::after {
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
        }

        /* 清除右浮动，使其位于下方位置， */
        .sbtn {
            float: right;
            clear: both;
            position: relative;
            font-size: 16px;
            margin-left: 20px;
            padding: 0px 8px 0px 8px;
            ;
            background: #e6532a;
            line-height: 24px;
            border-radius: 4px;
            cursor: pointer;
            /* margin-top: -30px; */
        }

        /* 自行打省略号... */
        .sbtn::before {
            content: '...';
            position: absolute;
            left: -5px;
            transform: translateX(-100%);
        }

        .sbtn::after {
            content: "展開";
            background:#e6532a;
            color: #fff;
            border-radius: 2px;
            display: inline-block;
        }

        .inp {
            display: none;
        }

        .inp:checked+.cardtext {
            max-height: 1000em;
        }

        /* 借助input+lable 来做展开收起的交互效果 */
        .inp:checked+.cardtext .sbtn::before {
            visibility: hidden;
        }

        .inp:checked+.cardtext .sbtn::after {
            content: "收起";
        }

        .inp:checked+.cardtext::after {
            /* background: transparent; */
            display: none;
        }