/* header */
header{
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, var(--c-blue-light), var(--c-blue-dark));
}
.header-chs{
    width: 100%;
    padding: 10px 0 0 0;
    text-align: center;
    font-size: var(--f-logo);
    color: var(--c-white);
    font-weight: 600;
}
.header-en{
    width: 100%;
    text-align: center;
    font-size: var(--f-title-big);
    color: var(--c-white);
    letter-spacing: 2px;
}
.header-search{
    width: 100%;
    text-align: center;
}
.header-search-text {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    outline: none;
    display: inline-block;
    border: 2px solid var(--c-blue-dark);
    border-radius: 8px 0 0 8px;
    width: 720px;
    height: 48px;
    padding: 8px;
    font-size: var(--f-title);
    vertical-align: middle;
}

.header-search-btn {
    cursor: pointer;
    border: none;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    display: inline-block;
    border-radius: 0 8px 8px 0;
    height: 44px;
    padding: 8px 16px;
    font-size: var(--f-title);
    font-weight: 400;
    background-color: var(--c-divider);
    vertical-align: middle;
}
.header-search-btn:hover{
    color: var(--c-white);
    background-color: var(--c-second-text);
}
/* main */
main{
    width: 100%;
}
/* 推荐信息 */
.recommend{
    display: grid;
    grid-template-columns: repeat(4,280px);
    grid-template-rows: repeat(5,240px);
    grid-auto-flow: row;
    justify-content: center;
    column-gap: 16px;
    row-gap: 16px;
    width: 1400px;
    margin: 0 auto;
    padding: 16px 0;
}
.recommend-card{
    border: 1px solid var(--c-divider);
    background-color: var(--c-white);
    border-radius: 8px;
    font-size: var(--f-title-big);
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}
.recommend-card:first-child{
    grid-column: 1/3;
}
.recommend-card:nth-child(9){
    grid-column: 2/4;
}
.recommend-card:last-child{
    grid-column: 3/5;
}
/* 全图 */
.full-img{
    position: relative;
}
.full-img > img{
    width: 100%;
    height: 100%;
    border-radius: 8px;
    z-index: 1;
}
.full-img > .mark{
    position: absolute;
    width: 100%;
    border-radius: 0 0 8px 8px;
    height: 42%;
    bottom: 0;
    background: linear-gradient(0, rgb(0, 0, 0), rgba(255, 255, 255, 0));
    z-index: 10;
}
.mark > .title{
    width: calc(100% - 32px);
    height: 40px;
    padding: 0 16px 16px 16px;
    margin: 0 0 20px 0;
    font-size: var(--f-title-big);
    font-weight: 600;
    z-index: 10;
    color: var(--c-white);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 可以设置为所需的行数 */
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.mark > .source{
    position: absolute;
    width: calc(100% - 32px);
    border-radius: 0 0 8px 8px;
    bottom: 10px;
    padding: 0 16px;
    color: var(--c-white);
    font-size: var(--f-small);
    z-index: 11;
}
/* 一半图 */
.half-img{
    text-decoration: none;
}
.half-img > img{
    width: 100%;
    height: 60%;
    border-radius: 8px 8px 0 0;
}
.half-img > .title{
    width: 90%;
    height: 48px;
    margin: 8px auto 0 auto;
    text-align: left;
    font-size: var(--f-title);
    font-weight: 600;
    color: var(--c-black);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 可以设置为所需的行数 */
    overflow: hidden;
    text-overflow: ellipsis;
}
.half-img > .source{
    width: 90%;
    margin: 8px auto 0 auto;
    text-align: left;
    font-size: var(--f-small);
    color: var(--c-black);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 可以设置为所需的行数 */
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 纯文字 */
.text-link{
    display: block;
    text-decoration: none;
}
.text-link > p{
    font-size: var(--f-title);
    font-weight: 600;
    padding: 16px 0 8px 8px;
    color: var(--c-blue-dark);
    counter-reset: def;
}
.text-link > a:before{
    counter-increment: def;
    content: counter(def)". ";
}
.text-link > a{
    display: block;
    width: calc(100% - 24px);
    padding: 4px;
    margin: 8px auto;
    border-radius: 5px;
    text-decoration: none;
    font-size: var(--f-content);
    font-weight: 600;
    color: var(--c-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
.text-link > a:hover{
    background-color: var(--c-divider);
}
/* 轮播-card */
.carousel{
    overflow: hidden;
    position: relative;
}
.carousel-left{
    cursor: pointer;
    position: absolute;
    top: calc(50% - 40px);
    left: 0;
    border-radius: 0 8px 8px 0;
    width: 24px;
    height: 30px;
    padding: 24px 0;
    color: var(--c-divider);
    z-index: 12;
    font-size: var(--f-title-big);
    text-align: center;
    background-color:  rgba(0, 0, 0, 0.5);
}
.carousel-right{
    cursor: pointer;
    position: absolute;
    top: calc(50% - 40px);
    right: 0;
    border-radius: 8px 0 0 8px;
    width: 24px;
    height: 30px;
    padding: 24px 0;
    color: var(--c-divider);
    z-index: 12;
    font-size: var(--f-title-big);
    text-align: center;
    background-color:  rgba(0, 0, 0, 0.5);
    z-index: 10;
}
.carousel-option{
    position: absolute;
    bottom: 2px;
    border-radius: 5px;
    left: calc(50% - 105px);
    width: 210px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10;
}
.carousel-option > div{
    display: inline-block;
    margin: 8px;
    cursor: pointer;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--c-second-text);
}
.carousel-option > div[data=check]{
    display: inline-block;
    margin: 8px;
    cursor: pointer;
    width: 24px;
    height: 8px;
    border-radius: 10px;
    background-color: var(--c-white);
    animation: widthAn 0.2s;
}
@keyframes widthAn {
    from{width: 8px;}
    to{width: 24px;}
}
.carousel-a{
    display: none;
}
.carousel-a[data=check]{
    text-decoration: none;
    width: 100%;
    display: block;
    position: relative;
    height: 100%;
}
.carousel-a[data=check] > img{
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    z-index: 1;
}

.carousel-a[data=check] > .mark{
    position: absolute;
    width: 100%;
    border-radius: 0 0 8px 8px;
    height: 42%;
    bottom: 0;
    background: linear-gradient(0, rgb(0, 0, 0), rgba(255, 255, 255, 0));
    z-index: 8;
}
.carousel-a[data=check] > .mark > .title{
    width: calc(100% - 32px);
    height: 40px;
    padding: 0 16px 16px 16px;
    margin: 0 0 20px 0;
    font-size: var(--f-title-big);
    font-weight: 600;
    z-index: 10;
    color: var(--c-white);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 可以设置为所需的行数 */
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}
.carousel-a[data=check] > .mark > .source{
    position: absolute;
    width: calc(100% - 32px);
    border-radius: 0 0 8px 8px;
    bottom: 10px;
    padding: 0 16px;
    color: var(--c-white);
    font-size: var(--f-small);
    z-index: 11;
}
/* control-refresh */
.control-refresh{
    width: 100%;
    height: 90px;
    text-align: center;
}
.control-refresh > svg{
    cursor: pointer;
    width: 88px;
    height: 88px;
}
.control-refresh > svg:hover path{
    fill: #3f51b5;
}
/*footer */
footer {
    width: 100%;
    height: 80px;
    margin: 40px 0 8px 0;
    text-align: center;
}

.foot-column {
    display: inline-block;
    vertical-align: top;
}

.foot-line-right {
    display: inline-block;
    font-size: var(--f-small);
    color: var(--c-second-text);
    vertical-align: middle;
}

.foot-line-ga {
    display: inline-block;
    width: 24px;
    height: 24px;
    padding: 0 8px 0 0;
    vertical-align: middle;
}

.foot-line-qr {
    width: 56px;
    height: 56px;
    padding: 0 0 0 16px;
}