* {
    outline: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #fff;
    color: #333;
    -webkit-user-select: none;
}

/* 左右浮动 */
.fl {
    float: left;
}

.fr {
    float: right;
}

/* 清除浮动 */
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    visibility: hidden;
    clear: both;
}

.clearfix {
    *zoom: 1;
}

/* 一行文本隐藏 */
.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 两行文本隐藏 */
.ellipsis_two {
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 顶部导航栏 */
.unified-header {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 4.4rem;
    padding: 0 1.5rem;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    z-index: 99;
}

.unified-header-link {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.unified-header-link-img {
    width: 9px;
    height: auto;
}

.unified-header-text {
    width: 100%;
    height: auto;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    padding-right: 2.2rem;
    box-sizing: border-box;
}

/* 底部导航栏 */
.tabbar {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 5rem;
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99;
    box-shadow: 0 1px 6px 1px rgba(0, 0, 0, 0.16);
}

.tabbar-item {
    display: block;
    text-align: center;
    line-height: 0;
    color: #333;
}

.tabbar-item .tabbar-item-img {
    display: block;
    margin: 0 auto;
    width: 2rem;
    height: 2rem;
}

.tabbar-item-text {
    position: relative;
    display: block;
    width: 100%;
    height: 1.4rem;
    margin-top: 0.5rem;
    font-size: 1.4rem;
    line-height: 1.4rem;
    transform: scale(0.8);
    color: #999;
}

.tabbar .tabbar-item-active {
    color: #3586F9;
}
.tabbar .tabbar-item-active .tabbar-item-text{
    color: #3586F9;
    font-size: 1.5rem;
    font-weight: 900;
}
.tabbar .tabbar-item-active .tabbar-item-text::after{
    position: absolute;
    left: 50%;
    bottom: -0.3rem;
    content: '';
    width: 3.3rem;
    height: 0.7rem;
    background: #CDDDFC;
    border-radius: 0.4rem;
    transform: translateX(-50%);
    z-index: -1;
}

/* 按钮统一样式 */
.btn-default {
    display: block;
    width: 32rem;
    height: 4.4rem;
    font-size: 1.6rem;
    font-weight: bold;
    background: #3586F9;
    border: none;
    outline: none;
    border-radius: 5px;
    color: #fff;
}

.btn-default:active {
    transform: translate(0.5px, 0.5px);
}

/* iphonex底部适配 */
@supports(bottom: env(safe-area-inset-bottom)) {
    .tabbar {
        box-sizing: content-box;
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media screen and (min-width: 640px) {

    html,
    body {
        max-width: 375px;
        min-height: 667px;
    }

    html {
        margin: 10px auto 0 !important;
        box-shadow: 0 0 8px 3px rgb(0 0 0 / 10%);
        border-radius: 5px;
    }

    .tabbar {
        max-width: 375px;
        left: 50%;
        transform: translateX(-50%);
    }

    .unified-header {
        width: 375px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* 模拟骨架屏start */
.skeleton {
    background-image: linear-gradient(90deg, #ececec 25%, #e6e6e6 37%, #ececec 63%);
    list-style: none;
    background-size: 400% 100%;
    background-position: 100% 50%;
    animation: skeleton-animation 1.4s linear infinite;
    border-radius: 2px;
}

@keyframes skeleton-animation {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* 模拟骨架屏end */

/* 图片loading效果start */
.img-box {
    position: relative;
    width: 100%;
    height: auto;
}

.img-box::before {
    content: '';
    display: block;
    width: 100%;
    background: #f8f8f8 url('/zlm/img/loading.gif') center center no-repeat;
    background-size: 2rem auto;
}

/* 图片loading效果end */

/* 缺醒图start */
.no-data-wrap {
    display: none;
    margin: 0 auto;
    width: 24.3rem;
    height: auto;
}

.no-data-img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    z-index: 5;
}

.no-data-text {
    margin-top: 2rem;
    font-size: 1.8rem;
    color: #B8BABE;
    text-align: center;
}

/* 缺醒图end */

/* 浏览器限制提示样式 */
.wrap-tips {
    width: 100%;
    height: auto;
    margin-top: 35%;
}

.wrap-tips .tips-img {
    display: block;
    width: 5rem;
    height: auto;
    margin: 0 auto;
}

.wrap-tips .tips-text {
    text-align: center;
    line-height: 3rem;
    font-size: 1.7rem;
    margin-top: 2rem;
}

.wrap-tips .tips-copy-text {
    width: 57%;
    height: 3rem;
    text-align: center;
    line-height: 3rem;
    background-color: #3586F9;
    color: #fff;
    border-radius: .5rem;
    margin: 2rem auto 300px;
}

.course-item-img {
    display: block;
    width: 15.5rem;
    height: 9.5rem;
    object-fit: cover;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}