/* ==========================================================
   CMS 栏目列表页
   简约 / 轻量 / 响应式
========================================================== */

#cmsListPage,
#cmsListPage * {
    box-sizing: border-box;
}

#cmsListPage {
    width: 100%;
    padding: 0 20px 60px;
    background: #ffffff;
}

#cmsListPage .cms-list-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================
   栏目顶部
========================================================== */

#cmsListPage .cms-list-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 180px;

    margin-bottom: 30px;
    padding: 34px 24px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            #faf7f5 0%,
            #ffffff 100%
        );

    border-bottom: 1px solid #f0e6e1;
}

#cmsListPage .cms-list-banner-title {
    margin: 0;

    color: #2b191a;

    font-size: 32px;
    font-weight: 600;

    line-height: 1.4;
    letter-spacing: -.3px;
}

#cmsListPage .cms-list-banner-desc {
    max-width: 760px;

    margin: 10px auto 0;

    color: #6b5553;

    font-size: 14px;
    line-height: 1.8;
}

/* ==========================================================
   主布局
========================================================== */

#cmsListPage .cms-list-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 32px;

    align-items: start;

    width: 100%;
}

#cmsListPage .cms-list-main,
#cmsListPage .cms-list-side {
    min-width: 0;
}

/* ==========================================================
   列表头部
========================================================== */

#cmsListPage .cms-list-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    width: 100%;

    margin-bottom: 18px;
    padding-bottom: 16px;

    border-bottom: 1px solid #f0e6e1;
}

#cmsListPage .cms-list-heading {
    margin: 0;

    color: #2b191a;

    font-size: 20px;
    font-weight: 600;

    line-height: 1.5;
}

/* ==========================================================
   排序
========================================================== */

#cmsListPage .cms-list-order {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 6px;
}

#cmsListPage .cms-list-order a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 30px;

    padding: 4px 11px;

    border-radius: 4px;

    background: #faf7f5;

    color: #6b5553;

    font-size: 12px;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color .15s ease,
        background-color .15s ease;
}

#cmsListPage .cms-list-order a:hover {
    background: #f7f2f1;
    color: #331d1e;
}

#cmsListPage .cms-list-order a.active {
    background: #f7f2f1;
    color: #331d1e;
}

/* ==========================================================
   文章列表
========================================================== */

#cmsListPage .cms-list-articles {
    margin: 0;
    padding: 0;

    list-style: none;
}

#cmsListPage .cms-list-item {
    display: grid;

    grid-template-columns:
        220px
        minmax(0, 1fr);

    gap: 22px;

    width: 100%;

    padding: 22px 0;

    border-bottom: 1px solid #f7f2f1;
}

#cmsListPage .cms-list-item:first-child {
    padding-top: 4px;
}

#cmsListPage .cms-list-thumb-link {
    display: block;

    min-width: 0;

    text-decoration: none;
}

#cmsListPage .cms-list-thumb {
    position: relative;

    width: 100%;
    height: 142px;

    overflow: hidden;

    border-radius: 7px;

    background: #f6f0ec;
}

#cmsListPage .cms-list-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .25s ease;
}

#cmsListPage .cms-list-thumb-link:hover img {
    transform:
        scale(1.025);
}

#cmsListPage .cms-list-thumb font {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    color: #9c8683;

    font-size: 12px;
}

#cmsListPage .cms-list-info {
    display: flex;

    flex-direction: column;
    justify-content: center;

    min-width: 0;
}

#cmsListPage .cms-list-title {
    margin: 0;
}

#cmsListPage .cms-list-title a {
    display: -webkit-box;

    overflow: hidden;

    color: #3f2d2c;

    font-size: 18px;
    font-weight: 500;

    line-height: 1.55;

    text-decoration: none;

    word-break: break-word;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    transition:
        color .15s ease;
}

#cmsListPage .cms-list-title a:hover {
    color: #331d1e;
}

#cmsListPage .cms-list-meta {
    display: flex;

    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-top: 10px;

    color: #9c8683;

    font-size: 12px;
    line-height: 1.5;
}

#cmsListPage .cms-list-meta-category {
    color: #6b5553;
}

#cmsListPage .cms-list-meta-dot {
    flex: 0 0 auto;

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #d8c8c3;
}

#cmsListPage .cms-list-desc {
    display: -webkit-box;

    margin-top: 11px;

    overflow: hidden;

    color: #6b5553;

    font-size: 14px;
    line-height: 1.75;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* ==========================================================
   空列表
========================================================== */

#cmsListPage .cms-list-empty {
    padding: 60px 20px;

    color: #9c8683;

    font-size: 14px;

    text-align: center;
}

/* ==========================================================
   加载更多
========================================================== */

#cmsListPage .cms-list-more {
    display: flex;

    justify-content: center;

    width: 100%;

    padding-top: 28px;
}

#cmsListPage .cms-list-more-btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 112px;
    height: 36px;

    padding: 0 18px;

    border: 1px solid #dbe3ec;
    border-radius: 18px;

    background: #ffffff;

    color: #6b5553;

    font-size: 13px;
    line-height: 1;

    text-decoration: none;

    cursor: pointer;

    transition:
        color .15s ease,
        border-color .15s ease,
        background-color .15s ease;
}

#cmsListPage .cms-list-more-btn:hover {
    border-color: #e3d6d4;

    background: #f7f2f1;

    color: #331d1e;
}

#cmsListPage .cms-list-more-btn.is-disabled {
    border-color: #f0e6e1;

    background: #faf7f5;

    color: #d8c8c3;

    cursor: default;
    pointer-events: none;
}

/* ==========================================================
   <= 1200
========================================================== */

@media screen and (max-width: 1200px) {

    #cmsListPage {
        padding-left: 16px;
        padding-right: 16px;
    }

    #cmsListPage .cms-list-layout {
        grid-template-columns:
            minmax(0, 1fr)
            280px;

        gap: 26px;
    }

    #cmsListPage .cms-list-item {
        grid-template-columns:
            200px
            minmax(0, 1fr);
    }

    #cmsListPage .cms-list-thumb {
        height: 132px;
    }

}

/* ==========================================================
   <= 992
========================================================== */

@media screen and (max-width: 992px) {

    #cmsListPage {
        padding:
            0 15px
            46px;
    }

    #cmsListPage .cms-list-banner {
        min-height: 160px;

        margin-bottom: 24px;

        padding:
            30px 20px;
    }

    #cmsListPage .cms-list-banner-title {
        font-size: 28px;
    }

    #cmsListPage .cms-list-layout {
        grid-template-columns:
            minmax(0, 1fr);

        gap: 30px;
    }

    #cmsListPage .cms-list-side {
        width: 100%;
    }

}

/* ==========================================================
   <= 768
========================================================== */

@media screen and (max-width: 768px) {

    #cmsListPage {
        padding:
            0 15px
            38px;
    }

    #cmsListPage .cms-list-banner {
        min-height: 140px;

        margin-bottom: 20px;

        padding:
            26px 16px;
    }

    #cmsListPage .cms-list-banner-title {
        font-size: 24px;
    }

    #cmsListPage .cms-list-banner-desc {
        margin-top: 8px;

        font-size: 13px;
        line-height: 1.7;
    }

    #cmsListPage .cms-list-header {
        align-items: flex-start;

        flex-direction: column;

        gap: 12px;

        margin-bottom: 8px;
    }

    #cmsListPage .cms-list-heading {
        font-size: 18px;
    }

    #cmsListPage .cms-list-item {
        grid-template-columns:
            150px
            minmax(0, 1fr);

        gap: 15px;

        padding:
            18px 0;
    }

    #cmsListPage .cms-list-thumb {
        height: 102px;
    }

    #cmsListPage .cms-list-title a {
        font-size: 16px;
    }

    #cmsListPage .cms-list-meta {
        margin-top: 7px;
    }

    #cmsListPage .cms-list-desc {
        margin-top: 7px;

        font-size: 13px;

        -webkit-line-clamp: 1;
    }

}

/* ==========================================================
   <= 480
========================================================== */

@media screen and (max-width: 480px) {

    #cmsListPage {
        padding:
            0 15px
            34px;
    }

    #cmsListPage .cms-list-banner {
        min-height: 120px;

        padding:
            22px 14px;
    }

    #cmsListPage .cms-list-banner-title {
        font-size: 22px;
    }

    #cmsListPage .cms-list-item {
        grid-template-columns:
            112px
            minmax(0, 1fr);

        gap: 12px;

        padding:
            15px 0;
    }

    #cmsListPage .cms-list-thumb {
        height: 80px;

        border-radius: 5px;
    }

    #cmsListPage .cms-list-title a {
        font-size: 14px;
        line-height: 1.5;

        -webkit-line-clamp: 2;
    }

    #cmsListPage .cms-list-meta {
        gap: 6px;

        margin-top: 5px;

        font-size: 11px;
    }

    #cmsListPage .cms-list-desc {
        display: none;
    }

    #cmsListPage .cms-list-order {
        gap: 5px;
    }

    #cmsListPage .cms-list-order a {
        min-height: 28px;

        padding:
            3px 9px;

        font-size: 11px;
    }

    #cmsListPage .cms-list-more {
        padding-top: 22px;
    }

}
