body.body-help {
    background: #f3f3f3;
}

.template-showcase {
    min-height: 720px;
    padding: 48px 48px 70px;
    color: #333;
}

.template-hero {
    max-width: 1180px;
    margin: 0 auto 30px;
    text-align: center;
}

.template-hero h1 {
    margin: 0;
    font: 400 28px/1.35 "Microsoft YaHei", Arial, sans-serif;
    color: #222;
}

.template-hero p {
    margin: 4px 0 32px;
    font: 16px/1.4 Arial, sans-serif;
    color: #888;
}

.template-hero--compact {
    margin-bottom: 34px;
}

.template-search {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 6px;
}

.template-search input {
    width: 390px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #333;
    font: 14px/44px "Microsoft YaHei", Arial, sans-serif;
    box-sizing: border-box;
    outline: none;
}

.template-search input:focus {
    border-color: #1c9add;
}

.template-search button {
    width: 88px;
    height: 44px;
    border: 1px solid #d8d8d8;
    background: #f1f1f1;
    color: #555;
    font: 14px/42px "Microsoft YaHei", Arial, sans-serif;
    cursor: pointer;
}

.template-search button:hover,
.template-search button:focus {
    border-color: #1c9add;
    background: #1c9add;
    color: #fff;
}

.template-filter {
    max-width: 1540px;
    margin: 0 auto 36px;
    color: #555;
    font: 14px/2 "Microsoft YaHei", Arial, sans-serif;
}

.template-filter__row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 14px;
    margin-bottom: 8px;
}

.template-filter b {
    flex: 0 0 auto;
    color: #333;
    font-weight: 700;
}

.template-filter a {
    color: #555;
    text-decoration: none;
    white-space: nowrap;
}

.template-filter a:hover,
.template-filter a.active {
    color: #1c9add;
}

.template-grid-wrap {
    max-width: 1540px;
    margin: 0 auto;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 42px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.template-grid li {
    min-width: 0;
}

.template-card {
    display: block;
    overflow: hidden;
    background: #fff;
    color: #333;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
    transition: transform .18s ease, box-shadow .18s ease;
}

.template-card:hover,
.template-card:focus {
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .20);
}

.template-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 312 / 278;
    overflow: hidden;
    background: #ececec;
}

.template-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-card__body {
    display: block;
    padding: 14px 16px 17px;
}

.template-card__body strong {
    display: block;
    overflow: hidden;
    margin-bottom: 6px;
    color: #168bd0;
    font: 14px/1.35 "Microsoft YaHei", Arial, sans-serif;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.template-card__body em {
    display: block;
    color: #777;
    font: normal 13px/1.35 "Microsoft YaHei", Arial, sans-serif;
}

.template-empty {
    margin: 38px auto 50px;
    padding: 70px 30px;
    max-width: 760px;
    border: 1px solid #e2e2e2;
    background: #fff;
    text-align: center;
    color: #666;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.template-empty h2 {
    margin-bottom: 12px;
    font: 400 24px/1.4 "Microsoft YaHei", Arial, sans-serif;
    color: #333;
}

.template-empty p {
    font: 14px/1.8 "Microsoft YaHei", Arial, sans-serif;
}

.template-pagination {
    margin: 56px auto 24px;
    text-align: center;
}

.template-pagination a,
.template-pagination span,
.template-pagination .page-num,
.template-pagination .page-status {
    display: inline-block;
    min-width: 30px;
    height: 30px;
    margin: 0 4px 8px;
    padding: 0 8px;
    border: 1px solid #d8d8d8;
    background: #fff;
    color: #777;
    font: 13px/30px "Microsoft YaHei", Arial, sans-serif;
    text-align: center;
    box-sizing: border-box;
}

.template-pagination a:hover,
.template-pagination span:hover {
    border-color: #1c9add;
    color: #1c9add;
}

.template-pagination .page-num-current,
.template-pagination .active,
.template-pagination span.current {
    border-color: #1c9add;
    background: #1c9add;
    color: #fff;
}

.template-detail {
    max-width: 1100px;
    margin: 40px auto;
    padding: 36px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e2e2;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
}

.template-detail__media {
    float: left;
    width: 260px;
    margin-right: 36px;
    text-align: center;
}

.template-detail__media img {
    max-width: 100%;
    max-height: 180px;
}

.template-detail__body {
    overflow: hidden;
}

.template-detail__body h1 {
    margin-bottom: 16px;
    font: 400 28px/1.4 "Microsoft YaHei", Arial, sans-serif;
    color: #222;
}

.template-detail__desc,
.template-detail__content {
    color: #555;
    line-height: 1.9;
}

.template-detail__download {
    display: inline-block;
    margin-top: 18px;
    padding: 0 28px;
    height: 42px;
    line-height: 42px;
    background: #198ede;
    color: #fff;
}

.template-detail__download:hover {
    color: #fff;
    background: #1378bd;
}

@media screen and (max-width: 1320px) {
    .template-showcase {
        padding-left: 28px;
        padding-right: 28px;
    }

    .template-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media screen and (max-width: 980px) {
    .template-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px 20px;
    }
}

@media screen and (max-width: 768px) {
    .template-showcase {
        padding: 30px 14px 50px;
    }

    .template-hero h1 {
        font-size: 24px;
    }

    .template-search {
        max-width: 100%;
    }

    .template-search input {
        width: 100%;
        min-width: 0;
    }

    .template-search button {
        flex: 0 0 78px;
    }

    .template-filter {
        margin-bottom: 24px;
    }

    .template-filter__row {
        display: block;
        line-height: 2.1;
    }

    .template-filter b {
        display: block;
        margin-bottom: 4px;
    }

    .template-filter a {
        display: inline-block;
        margin-right: 12px;
    }

    .template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .template-card__body {
        padding: 11px 12px 13px;
    }

    .template-detail {
        margin: 20px 10px;
        padding: 22px;
    }

    .template-detail__media {
        float: none;
        width: auto;
        margin: 0 0 20px;
    }
}

@media screen and (max-width: 460px) {
    .template-grid {
        grid-template-columns: 1fr;
    }
}
