/* template-banner-start */
#template-banner {
    padding-top: 88px;
    text-align: center;
    padding-bottom: 90px;
    background: var(--theme-background-linear);
}

#template-banner h1 {
    font-size: 48px;
    padding-bottom: 30px;
}

#template-banner p {
    font-size: 18px;
}
/* template-banner-end */

/* template-list-start */
#template-list {
    padding-top: 66px;
    padding-bottom: 70px;
}

#template-list-filter {
    top: 16px;
    position: sticky;
    height: min-content;
}

#template-list-search {
    height: 42px;
    display: flex;
    border-radius: 8px;
    padding-left: 24px;
    align-items: center;
    margin-bottom: 30px;
    border: var(--theme-border);
}

#template-list-search svg {
    width: 12px;
    height: 12px;
    fill: var(--theme-text-lighter);
}

#template-list-search input {
    border: none;
    box-shadow: none;
}

.template-list-label {
    font-size: 16px;
    line-height: 42px;
}

.template-list-options {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.template-list-checkbox {
    height: 32px;
    display: flex;
    min-width: 100px;
    padding-left: 16px;
    align-items: center;
}

.en  .template-list-checkbox {
    min-width: 50%;
}
.template-list-checkbox * {
    cursor: pointer;
}

.template-list-checkbox input {
    flex-shrink: 0;
    margin-top: 0px;
}

.template-list-checkbox label {
    flex-grow: 1;
    line-height: 16px;
    padding-left: 15px;
    color: var(--theme-text-main);
}

.template-list-label.difficulty input {
    margin-top: 0px;
    margin-right: 15px;
    min-width: 1em;
    max-width: 1em;
}

.template-list-checkbox label:hover {
    color: var(--theme-primary-main);
}

.template-list-checkbox.hide {
    display: none;
}

.template-list-category {
    height: 54px;
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    justify-content: space-between;
}

.template-list-category p {
    font-size: 14px;
    cursor: pointer;
    color: var(--theme-primary-main);
}

.product-template-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 40px;
    border: var(--theme-border);
    background: var(--theme-background-light);
}

.product-template-item-cover {
    height: 170px;
    background-size: cover;
}

.product-template-item-description {
    padding: 20px;
    padding-bottom: 24px;
}

.product-template-item-description h6 {
    font-size: 16px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-template-item-description p {
    height: 76px;
    font-size: 14px;
    padding-top: 10px;
    line-height: 22px;
}

.product-template-item:hover {
    box-shadow: var(--theme-elevation2);
}

#template-list-empty {
    text-align: center;
    line-height: 200px;
}

@media (max-width: 992px) {
    #template-list-filter {
        position: inherit;
        padding-bottom: 40px;
    }

    .product-template-item-cover {
        height: 187px;
    }
}

@media (max-width: 768px) {
    .product-template-item-cover {
        height: 178px;
    }
}
/* template-list-end */

/* template-detail-header-start */
#template-detail-header {
    background: var(--theme-background-linear);
}

#template-detail-header-return {
    font-weight: 500;
    margin: 30px 0px;
    color: var(--theme-text-main);
}

#template-detail-header-return:hover {
    cursor: pointer;
    color: var(--theme-primary-main);
}

#template-detail-header-return i {
    margin-left: 5px;
    margin-right: 14px;
}

#template-detail-header-cover {
    overflow: hidden;
    border-radius: 8px 8px 0px 0px;
}

#template-detail-header-cover img {
    width: 100%;
}

#template-detail-header-description {
    padding: 0px 0px 40px 40px;
}

#template-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    margin-bottom: 16px;
    color: var(--theme-primary-main);
}

#template-label span {
    margin-right: 8px;
}

#template-detail-header-description p {
    padding-top: 0px;
    padding-bottom: 30px;
}

#template-detail-header-description button {
    height: 48px;
    min-width: 156px;
    overflow: hidden;
    line-height: 37px;
}

@media (max-width: 992px) {
    #template-detail-header-description {
        padding: 30px 0px 40px;
    }
}
/* template-detail-header-end */

/* template-detail-config-start */
#template-detail-config {
    padding-bottom: 100px;
}

#template-detail-config h5 {
    padding-top: 60px;
    padding-bottom: 30px;
}

.template-detail-config-item {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
    border: var(--theme-border);
}

.template-detail-config-item.active .template-detail-config-item-content {
    display: flex;
}

.template-detail-config-item.active .template-detail-config-item-header i {
    transform: rotate(90deg);
}

.template-detail-config-item-header {
    height: 48px;
    display: flex;
    cursor: pointer;
    padding: 0px 30px;
    align-items: center;
    color: var(--theme-text-light);
}

.template-detail-config-item-header i {
    transition: transform .2s;
}

.template-detail-config-item-header:hover i {
    color: var(--theme-primary-main);
}

.template-detail-config-item-count {
    font-weight: 500;
    margin-right: 15px;
    color: var(--theme-text-main);
}

.template-detail-config-item-header p {
    flex-grow: 1;
}

.template-detail-config-item-content {
    display: none;
    flex-wrap: wrap;
    padding-left: 30px;
    padding-bottom: 15px;
    border-top: var(--theme-border);
    background-color: var(--theme-background-lighter);
}

.template-detail-config-item-wiki {
    display: none;
    padding: 30px;
    border-top: var(--theme-border);
    background-color: var(--theme-background-lighter);
}

.template-detail-config-item.active .template-detail-config-item-wiki {
    display: block;
}

.template-detail-wiki-list {
    height: 32px;
    display: flex;
    align-items: center;
}

.template-detail-wiki-list:hover {
    cursor: pointer;
    background: var(--theme-primary-light);
}

.template-detail-wiki-list .icon {
    width: 24px;
    display: flex;
    align-items: center;
}

.template-detail-wiki-list svg {
    width: 14px;
    height: 14px;
    fill: var(--theme-text-light);
}

.template-config-item {
    height: 18px;
    display: flex;
    margin-top: 15px;
    margin-right: 50px;
    align-items: center;
}

.template-config-item p {
    font-size: 14px;
    margin-left: 10px;
    color: var(--theme-text-main);
}

.template-config-status {
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.template-config-type {
    font-size: 14px;
    padding: 0px 8px;
    line-height: 20px;
    border-radius: 4px;
    color: var(--theme-background-light);
}

.template-config-item svg {
    width: 14px;
    height: 14px;
    fill: var(--theme-text-light);
}

#template-detail-description {
    line-height: 28px;
    margin-bottom: 32px;
    color: var(--theme-text-main);
}

#template-detail-snap {
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    margin-bottom: 24px;
    border: var(--theme-border);
}

#template-detail-snap > img {
    width: 100%;
}

#template-detail-snap > .snap-prev,
#template-detail-snap > .snap-next {
    top: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    cursor: pointer;
    margin-top: -16px;
    position: absolute;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: var(--theme-elevation3);
    background: var(--theme-primary-main);
}

#template-detail-snap > .snap-prev {
    left: 16px;
    transform: rotate(180deg);
}

#template-detail-snap > .snap-next {
    right: 16px;
}

#template-detail-snap pgyericon {
    height: 16px;
    display: inline-block;
}

#template-detail-snap svg {
    fill: var(--theme-background-lighter);
}

#template-detail-snaps {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    align-items: center;
}

#template-detail-snaps > img {
    height: 100px;
    cursor: pointer;
    margin-right: 16px;
    border-radius: 4px;
    border: var(--theme-border);
}

#template-detail-snaps > img.active {
    border-color: var(--theme-primary-main);
}

#template-create-info > img {
    height: 80px;
}

#template-right {
    top: 0px;
    max-height: 100vh;
    overflow: auto;
    position: sticky;
    padding-bottom: 40px;
}

#template-blog-dir > a {
    height: 32px;
    display: flex;
    font-size: 14px;
    padding-right: 8px;
    align-items: center;
}

#template-blog-dir > a > div {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#template-blog-dir > a:hover {
    border-radius: 4px;
    color: var(--theme-text-main);
    background: var(--theme-background-main);
}

#template-blog-dir > a:hover svg {
    opacity: 1;
}

#template-blog-dir svg {
    opacity: 0;
    width: 8px;
    height: 8px;
    margin-left: 10px;
    margin-right: 8px;
    fill: var(--theme-primary-main);
}

#template-reference-header {
    padding-top: 40px !important;
}

.template-reference-title {
    height: 40px;
    display: flex;
    cursor: pointer;
    align-items: center;
    border-bottom: var(--theme-border);
}

.template-reference-title > div {
    flex-grow: 1;
    height: 100%;
    display: flex;
    align-items: center;
}

.template-reference-title h6 {
    font-size: 16px;
    font-weight: 600;
    margin-right: 12px;
}

.template-reference-title a {
    width: 18px;
    height: 18px;
    display: block;
}

.template-reference-title img {
    width: 18px;
    height: 18px;
    vertical-align: top;
}

.template-reference-title svg {
    width: 12px;
    height: 12px;
    margin-right: 8px;
    fill: var(--theme-text-light);
}

.template-reference-item.active .template-reference-title svg {
    transform: rotate(90deg);
}

.template-reference-detail {
    display: none;
}

.template-reference-item.active .template-reference-detail {
    display: block;
}

.template-reference-infos p {
    font-size: 13px;
    color: var(--theme-text-main);
    font-family: var(--theme-font-family);
}

.template-reference-description {
    font-size: 13px;
    line-height: 20px;
    padding: 16px 0px;
    color: var(--theme-text-main);
}

.template-reference-infos {
    padding: 0px 16px;
    border-radius: 4px;
    margin-bottom: 30px;
    border: var(--theme-border);
}

.template-reference-infos > div {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: var(--theme-border);
}

.template-reference-infos > div:last-child {
    border: none;
}

.template-reference-infos img {
    width: 18px;
    height: 18px;
}

.template-reference-infos a:hover p {
    color: var(--theme-primary-main);
}

.template-reference-comments > div {
    font-size: 13px;
    max-height: 80px;
    overflow: hidden;
    line-height: 20px;
    position: relative;
    margin-bottom: 16px;
}

.template-reference-comments .username {
    font-weight: 600;
}

.template-reference-comments img {
    width: 16px;
    height: 16px;
    margin: 0px 2px;
}

.template-reference-comments a {
    color: var(--theme-primary-main) !important;
}

.outlined-button {
    height: 40px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    line-height: 40px;
    text-align: center;
    border-radius: 4px;
    margin-bottom: 16px;
    color: var(--theme-primary-main);
    border: 1px solid var(--theme-primary-main);
}

.outlined-button svg {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    vertical-align: -2px;
    fill: var(--theme-primary-main);
}

.template-reference-comments .comment-date {
    right: 0;
    bottom: 0;
    padding: 0px 8px;
    position: absolute;
    color: var(--theme-text-light);
    background: var(--theme-background-light);
}

.template-reference-comments .comment-description {
    width: 0px;
    height: 0px;
    overflow: hidden;
}

#template-detail-recommend {
    padding-top: 50px;
    padding-bottom: 60px;
}

#template-detail-recommend .more svg {
    fill: var(--theme-primary-main);
    width: 12px;
    margin-left: 10px;
}
/* template-detail-config-start */

/* reference-add-comment-start */
#reference-add-comment {
    top: 0;
    left: 0;
    z-index: 10;
    width: 100vw;
    display: none;
    height: 100vh;
    position: fixed;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.7);
}

#reference-add-comment.show {
    display: flex;
}

#reference-add-comment-form {
    width: 800px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--theme-background-light);
}

#reference-add-comment-header {
    position: relative;
}

#reference-add-comment-close {
    top: 24px;
    right: 24px;
    position: absolute;
}

#reference-add-comment-close svg {
    width: 14px;
    height: 14px;
    cursor: pointer;
    fill: var(--theme-text-light);
}

#reference-add-comment-header h6 {
    font-size: 16px;
    font-weight: 600;
    line-height: 72px;
    text-align: center;
}

#reference-add-comment-header h6 span {
    color: var(--theme-text-light);
}

#reference-add-comment-content {
    overflow: hidden;
    margin: 0px 24px;
    border-radius: 4px;
    border: var(--theme-border);
}

#reference-add-comment-content textarea {
    width: 100%;
    border: none;
    resize: none;
    outline: none;
    font-size: 14px;
    padding: 16px 24px;
}

#reference-add-comment-content textarea::placeholder {
    color: var(--theme-text-lighter);
}

#reference-add-comment-footer {
    padding: 24px;
    text-align: right;
}

#reference-add-comment-footer button {
    min-width: 120px;
    margin-left: 10px;
}

#reference-share {
    display: flex;
    padding-bottom: 64px;
    justify-content: flex-end;
}

#reference-share #reference-share-button {
    width: 120px;
    margin-bottom: 0;
}
/* reference-add-comment-end */

/* reference-container-start */
#reference-container {
    padding-top: 80px;
    padding-bottom: 60px;
    border-bottom: var(--theme-border);
}

#reference-name {
    font-size: 28px;
    padding-bottom: 64px;
}

#reference-description {
    font-size: 14px;
    padding-top: 16px;
    padding-bottom: 30px;
    color: var(--theme-text-main);
    border-bottom: var(--theme-border);
}

#reference-comment-header {
    height: 100px;
    display: flex;
    padding: 30px 0px;
    align-items: center;
    justify-content: space-between;
}

#reference-comment-header #reference-add-comment-button {
    margin-bottom: 0;
    min-width: 200px;
}

.reference-comment-item {
    padding-bottom: 40px;
}

.reference-comment-item p {
    font-size: 14px;
    line-height: 22px;
    color: var(--theme-text-main);
}

.reference-comment-item .username {
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 8px;
}

.reference-comment-item img {
    width: 16px;
    height: 16px;
    margin: 0px 2px;
}

.reference-comment-item .comment-description {
    padding-bottom: 8px;
}

.reference-comment-item .comment-date {
    color: var(--theme-text-light);
}

#reference-right {
    top: 64px;
    position: sticky;
    height: min-content;
}
/* reference-container-end */

/* reference-share-container-start */
#reference-share-container {
    top: 0;
    left: 0;
    z-index: 10;
    width: 100vw;
    display: none;
    height: 100vh;
    position: fixed;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.7);
}

#reference-share-container.show {
    display: flex;
}

#reference-share-container > div {
    width: 640px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--theme-background-light);
}

#reference-share-header {
    position: relative;
}

#reference-share-close {
    top: 24px;
    right: 24px;
    position: absolute;
}

#reference-share-close svg {
    width: 14px;
    height: 14px;
    cursor: pointer;
    fill: var(--theme-text-light);
}

#reference-share-header h6 {
    font-size: 16px;
    font-weight: 600;
    line-height: 72px;
    text-align: center;
    border-bottom: var(--theme-border);
}

#reference-share-content {
    padding: 60px;
}

#reference-share-buttons {
    display: flex;
    justify-content: space-between;
}

.reference-share-button {
    height: 40px;
    display: flex;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    width: calc(50% - 20px);
    color: var(--theme-background-light);
}

.reference-share-button.facebook {
    background: #1877F2;;
}

.reference-share-button.twitter {
    background: #1D9BF0;
}

.reference-share-button svg {
    margin-right: 8px;
    fill: var(--theme-background-light);
}

#reference-share-url {
    cursor: pointer;
    font-weight: 500;
    margin-top: 32px;
    line-height: 40px;
    border-radius: 6px;
    text-align: center;
    border: var(--theme-border);
    color: var(--theme-text-main);
}
/* reference-share-container-end */

#post-content {
    margin-top: 0 !important;
}

#post-content h1,
#post-content h2,
#post-content h3 {
    color: #141414;
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

#post-content h3 {
    line-height: 1.4;
}

#post-content h2 {
    line-height: 2.0;
}

#post-content h1 {
    line-height: 2.5;
}

#post-content a {
    text-decoration: underline;
}

#post-content a:hover {
    color: #2359F5;
}

#post-content blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
}

#post-content hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
}

#post-content p {
    color: #212433;
    /* font-size: 18px; */
    font-size: 16px;
    color: #7C859C;
    line-height: 1.75;
    margin: 0 0 10px;
}

#post-content li {
    color: #8A97A9;
}

#post-content img {
    max-width: 100%;
    max-height: 450px;
    margin: 48px auto;
    display: block;
}

#post-content table {
    max-width: 100%;
    margin: 24px auto;
}

#post-content table thead tr {
    font-weight: 800;
    background: rgb(245, 246, 247);
    border-bottom: 1px solid #34495e;
}

#post-content table tbody tr:nth-child(even) {
    background: rgb(245, 246, 247);
}

#post-content table td, #post-content table th {
    padding: 4px 32px;
}

#post-content table tbody td:not(:first-child) {
    text-align: center;
}

#template-list-data {
    width: 0px;
    height: 0px;
    overflow: hidden;
}