:root {
    --main-color: #337a8c;
    --yellow: #ffc107;
}

html,
body {
    height: 100%;
}
#app {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* header */
.header {
    height: 42px;
    box-shadow: 0 0px 1px rgba(0, 0, 0, 0.5);
    
    display: none;
}
.header .nav {
    height: 42px;
    line-height: 42px;
    display: flex;
    align-items: center;
    text-align: center;
}
.header .nav .nav-home,
.header .nav .nav-back,
.header .nav .nav-more {
    width: 42px;
}
.header .nav .nav-title {
    flex: 1;
    text-align: center;
    height: 42px;
    overflow: hidden;
}

.main.mobile {
    background-color: #f9f9f9;
}
.main>.nav {
    height: 42px;
    line-height: 42px;
    display: flex;
    align-items: center;
    text-align: center;

    background-color: var(--main-color);
    color: #fff;
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    z-index: 999;
    transition: top .2s;
}
.main>.nav::after {
    content: '';
    position: absolute;
    z-index: 2;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0px;
    border-bottom: 1px solid #B2B2B2;
    -webkit-transform: scaleY(.33);
    transform: scaleY(.33);
    -webkit-transform-origin: 0 100%;
    transform-origin: 0 100%;
}
.main>.nav-hide {
    top: -43px;
}
.main>.nav-bg {
    height: 42px;
    line-height: 42px;
}
.main>.nav a {
    color: #fff;
}
.main>.nav .nav-home,
.main>.nav .nav-back,
.main>.nav .nav-more {
    width: 42px;
}
.main>.nav .nav-title {
    flex: 1;
    text-align: center;
    height: 42px;
    overflow: hidden;
}

/* footer */
.footer {
    height: 48px;
    display: flex;
    align-items: center;
    text-align: center;
    background-color: rgba(255, 255, 255, .96);
    position: relative;
}
.footer::after {
    content: '';
	position: absolute;
	z-index: 0;
	top: 0;
	left: 0;
	width: 100%;
	height: 0px;
	border-top: 1px solid #B2B2B2;
    -webkit-transform: scaleY(.33);
    transform: scaleY(.33);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
}
.footer .tab-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer .tab-item .xjzfont {
    color: #bbb8b8;
    font-size: 24px;
}
.footer .tab-item .xjzfont.icon-home {
    width: 30px;
    height: 30px;
    color: #fff;
    background-color: #bbb8b8;
    padding: 6px 4px 2px 4px;
    border-radius: 100%;
    margin-top: -12px;
    z-index: 1;
}
.footer .tab-item span {
    color: #666;
    font-size: 12px;
}

.footer .tab-item-hover .xjzfont {
    color: var(--main-color);
}
.footer .tab-item-hover .xjzfont.icon-home {
    color: #fff;
    background-color: var(--main-color);
}
.footer .tab-item-hover span {
    color: var(--main-color);
}

/* main */
.main {
    flex: 1;
    overflow-y: auto;
}
.banner {
    width: 94%;
    margin: auto;
    margin-top: 3%;
}
.banner img {
    width: 100%;
}

/* category */
.category {
    margin: 10px;
}
.cate-title {
    width: 100%;
    line-height: 36px;
    height: 36px;
    overflow: hidden;
    clear: both;
    text-align: center;
    border: 1px dashed var(--main-color);
    color: var(--main-color);
    margin-bottom: 5%;
    border-radius: 2px;
    background-color: var(--main-color)0a;
}
.cate-link {
    display: block;
    width: 48%;
    float: left;
    position: relative;
    margin-bottom: 5%;
    border-radius: 2px;
    overflow: hidden;
}
.cate-link:nth-child(2n) {
    margin-left: 4%;
}
.cate-link img {
    width: 100%;
}
.cate-link span {
    display: block;
    width: 100%;
    box-sizing: border-box;
    /* height: 22px; */
    line-height: 22px;
    text-align: center;
    overflow: hidden;
    padding: 0 10px;
    /* background-color: rgba(0, 0, 0, 0.3); */
    /* color: #fff; */
    font-size: 12px;
}

/* list-tab */
.list-tab {
    display: flex;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin-bottom: 6px;
}
.list-tab-item {
    flex: 1;
    line-height: 46px;
    text-align: center;
    color: #999;
    position: relative;
}
.list-tab-item a {
    display: block;
}
.list-tab-item.hover a,
.list-tab-item:hover a {
    color: var(--main-color);
}
.list-tab-item.hover a::after,
.list-tab-item:hover a::after {
    content: '';
	position: absolute;
	z-index: 0;
	bottom: 5px;
	left: 30%;
    right: 30%;
	height: 4px;
    border-radius: 2px;
    background-color: var(--main-color);
}

/* list(news) */
.news {
    padding: 10px;
    background-color: #f9f9f9;
    overflow: hidden;
}
.news-item {
    display: flex;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    border-radius: 5px;
    position: relative;
    background-color: #fff;
}
.news-item-huodong {
    padding-bottom: 30px;
}
.news-image {
    width: 110px;
    max-height: 110px;
    overflow: hidden;
    margin: 10px;
    display: block;
    position: relative;
    border-radius: 8px;
}
.news-image img {
    width: 100%;
    display: block;
}
.news-image .news-state {
    position: absolute;
    left: 0;
    top: 0;
    line-height: 1.8;
    padding: 1px 2px;
    text-align: center;
    width: 50%;
    font-size: 11px;
    background-color: #fc1943c0;
    background: linear-gradient(to right, #fc1943c0, #fc4e19c0);
    color: white;
    border-bottom-right-radius: 8px;
}
.news-image .news-state-3 {
    background: #181f2086;
}
.news-image .news-people {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    line-height: 2;
    text-indent: 0.5em;
    font-size: 11px;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
}
.news-body {
    flex: 1;
}
.news-title {
    margin: 10px 10px 10px 0;
    font-size: 15px;
    font-weight: bold;
}
.news-desc {
    min-height: 5px;
}
.news-feedback {
    color: #666;
    margin: 10px 10px 10px 0;
}
.news-info-text {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}
.news-info-dot {
    font-size: 16px;
    color: var(--main-color);
    font-weight: bold;
    padding-right: 3px;
}
.news-item-bottom {
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.news-item-tag {
    color: var(--yellow);
    border: 1px solid var(--yellow);
    border-radius: 6px;
    padding: 1px 6px;
    font-size: 12px;
}
.news-item-baoming {
    display: block;
    height: 28px;
    line-height: 28px;
    border-radius: 15px;
    text-align: center;
    padding: 0 15px;
    color: white;
    background-color: var(--main-color);
    border: 1px solid var(--main-color);
}
.news-item-baoming-1,
.news-item-baoming-3 {
    padding: 0 15px;
    color: var(--main-color);
    background-color: white;
}

/* content */
.content {
    margin: 10px;
    line-height: 1.8;
}
.content .title {
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    padding: 10px 0;
}
.content .feedback {
    background: #f9f9f9;
    border: 1px dotted #f0f0f0;
    border-left: 0;
    border-right: 0;
    padding: 0 10px;
    line-height: 1.6;
    margin: 5px 0 15px;
    color: #999;
}
.content .feedback i {
    vertical-align: -1px;
}
.content img {
    display: block;
    max-width: 100%;
}

/* teacher */
.teacher {
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}
.teacher .icon-star {
    color: var(--yellow);
    margin: 0 1px;
}
/* huodong */
.huodong {
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
}
.huodong .huodong-head {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
}
.huodong .icon-dianhua {
    color: white;
    margin: 0 1px;
    width: 24px;
    line-height: 24px;
    padding: 3px;
    border-radius: 100%;
    background-color: var(--main-color);
}

/* pagination */
.pagination {
    overflow: hidden;
    margin-top: 20px;
}
.pagination li {
    float: left;
    line-height: 24px;
    padding: 0 8px;
    margin: 0 2px;
    border: 1px solid #ccc;
}
.pagination li.active {
    border: 1px solid var(--main-color);
    background-color: var(--main-color);
    color: white;
}

/* share-code */
#share-code {
    width: 200px;
    height: 200px;
    margin: 15px auto 0;
    display: none;
}
#share-code-text {
    width: 200px;
    height: 20px;
    line-height: 20px;
    margin: auto;
    text-align: center;
    font-size: 12px;
    display: none;
}

/* home */
.swiper a {
    display: block;
}
.swiper img {
    width: 100%;
}