﻿/* 文章列表 */
.articleList {
    /*box-shadow: 0px 1px 2px 0px #26262626;*/
}

.articleList-type2 {
    border-bottom: 1px solid transparent;
    background-color: #fff;
    box-shadow: 0px 0px 5px 0px #2626260D;
}

.articleList__head {
    display: grid;
    grid-template-columns: 120px auto 90px 60px 60px;
    border-radius: 3px 3px 0 0;
    padding: 8px 16px;
    border-bottom: 1px solid #bfbfbf;
    background-color: #e4e4e4;
}

.articleList__th {
    padding: 4px 12px;
    border-left: 1px solid #bfbfbf;
}

.articleList__th:first-child {
    border-left: none;
}


/* 共用樣式 */
.articleCollectBtn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 4px;
    border: none;
    background-color: unset;
}


.articleCollectBtn__icon {
    color: #f39ea3;
}

.articleCollectBtn__text {
    color: #595959;
}

/* articleBar 文章第二檢視模式 */
.articleBar {
    display: block;
    padding-left: 16px;
    padding-right: 16px;
}

.articleBar .articleCollectBtn {
    margin-left: auto;
    margin-right: auto;
}

.articleBar .articleCollectBtn__text {
    display: none;
}

.articleBar__content {
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9d9d9;
}

.articleBar__title {
    text-align: left;
}

.articleBar__title a {
    color: #3b5998;
}

.articleBar__title a:hover {
    text-decoration: none;
    color: #f90;
}

.articleBar__menu {
    display: grid;
    grid-template-columns: 120px auto 90px 60px 60px;
    align-items: center;
}

.articleBar__item {
    text-align: center;
}

.articleBar__shareBtn {
    border: unset;
    background-color: unset;
}

.articleBar__iconCont {
    display: inline-block;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.articleBar__iconCont .icon {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.articleBar__date {
    text-align: left;
    padding-left: 12px;
    padding-right: 12px;
    height: 40px;
    line-height: 40px;
}

/* articleCard 文章第一檢視模式 */
.articleCard {
    margin-bottom: 15px;
}

.articleCard a:hover {
    text-decoration: underline;
}

.articleCard .btn {
    border: none;
    outline: unset;
}

.articleCard__wrap {
    padding: 16px;
    border-radius: 3px;
    background-color: #fff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), -1px 0 0 rgba(0, 0, 0, 0.03), 1px 0 0 rgba(0, 0, 0, 0.03), 0 1px 0 rgba(0, 0, 0, 0.12);
}

.articleCard__head {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.articleCard__title {
    margin-bottom: 5px;
}

.articleCard__title a:hover {
    text-decoration: none;
    color: #f90;
}

.articleCard__public {
    padding: 1px 10px;
    margin-bottom: 5px;
    width: fit-content;
    color: #666;
    font-size: 13px;
    background-color: #eee;
}

.articleCard__infoMenu {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1em;
}

.articleCard__infoItem {
    display: flex;
    font-size: 13px;
    line-height: 20px;
}

.articleCard__infoItem:before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(../images/icon.png);
    opacity: .4;
}

.articleCard__infoItem--time::before {
    background-position: -58px 0;
}

.articleCard__infoItem--count::before {
    background-position: -39px 0;
}

.articleCard__infoItem--author::before {
    background-position: -98px 1px;
}

.articleCard__infoItem--tag {
    flex-basis: 100%;
}

.articleCard__infoItem--tag::before {
    background-position: -79px 1px;
}

.articleCard__infoItem a {
    display: inline-block;
}

.articleCard__calendar {
    width: 74px;
    font-size: 11px;
    text-align: center;
    padding-top: 7px;
    color: #fff;
    background: #E7594F;
    cursor: pointer;
    transition: all .3s ease;
}

.articleCard__calendar:hover {
    transform: rotate(-10deg);
}

.articleCard__collect {
    flex-shrink: 0;
    margin-left: auto;
}

.articleCard .articleCollectBtn:hover {
    background: #f6f6f6;
}


.articleCard__body {
    display: flex;
    gap: 15px;
}

.articleCard__linkCont {
    margin-top: 5px;
}

.articleCard__linkCont .articleCard__link {
    display: block;
    overflow: hidden;
    width: 290px;
    height: 150px;
}

.articleCard__linkCont .articleCard__link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    z-index: 1;
    transition: all .7s ease-in-out;
}

.articleCard__link:hover img {
    transform: scale(1.2);
}

.articleCard__link:hover::before {
    opacity: 1;
}

.articleCard__imgCont {
    width: 100%;
    height: 100%;
}

.articleCard__imgCont img {
    object-fit: cover;
    width: 100%;
    height: auto;
    transition: all 0.5s ease-in-out;
}

.articleCard__operation {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
    padding: 16px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ccc;
    box-shadow: 0 2px 2px #ddd inset;
}


/* 控制文章顯示模式 */
.articleList-type1 .articleBar {
    display: none;
}

.articleList-type1 .articleList__head {
    display: none;
}

.articleList-type2 .articleCard {
    display: none;
}



@media (max-width: 768px) {
    .articleCard__body {
        flex-direction: column;
        gap: 0;
    }

    .articleCard__collect {
        display: none;
    }

}

@media (max-width: 480px) {
    .articleCard__body {
        flex-direction: row;
        gap: 15px;
    }


    .articleCard__linkCont .articleCard__link {
        width: 130px;
        height: 85px;
    }

    .articleCard__text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
    }
}