:root {
    --primary: #006bdd;
    --primary-b1: #005ab9;
    --primary-b2: #004c9d;
}

@media screen and (max-width: 768px) {
    html {
        font-size: 18px;
    }
}

body {
    background-color: rgb(242, 243, 244);
}
#article_content img {
    height: auto !important;
    max-width: 100%;
}

#article_content {
    word-wrap: break-word;
}

.text-em {
    color: var(--primary);
}

.hero-img {
    height: 200px;
    /*background-color: #006bdd;*/
    background: linear-gradient(to bottom, #008bdd 0%, #06c 100%);
}
main section, aside section {
    border-radius: 6px;
    overflow: hidden;
    background-color: #fff;
}

.thumbnail-wrap {
    margin-top: -120px;
    border-radius: 50%;
    border: 5px solid #FFF;
    overflow: hidden;
    width: 160px;
    height: 160px;
}
.thumbnail-wrap .thumbnail {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
.section-title-wrap {
    /*padding-left: 0;*/
    position: relative;
}
.section-title{
    font-size: 20px;
    font-weight: 600;
    color: black;
    padding-left: .6em;
}
.section-title:after {
    left: 0;
}
.content p {
    font-size: 1rem;
    margin-bottom: 2em;
    line-height: 1.75em;
}
h1 {
    font-size: 1.75rem;
    color: #000;
    font-weight: 600;
}
.expert-title {
    color: #666;
    font-size: 1.25rem;
}
.expert-tags .badge {
    font-size: 100%;
    font-weight: 400;
    margin-bottom: .5rem;
}
.expert-actions button {
    margin-right: .5em;
    border-radius: 20px;
    padding-left: 2em;
    padding-right: 2em;
}
.medals {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: .4rem;
    margin-right: -1rem;
}
.medals span {
    display: inline-flex;
    width: 40px;
    height: 40px;
}
.medals span img {
    margin: auto;
    width: 1.6rem;
    height: 1.6rem;
}
.empty-list-placeholder {
  width: 100%;
  color: #aaa;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.empty-list-placeholder img {
  max-width: 100px;
  margin-bottom: 10px;
}

aside section .headtitle h2 {
    font-size: 20px;
    font-weight: 600;
}

ul.aside-list-expert > li {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

ul.aside-list-expert .thumbnail {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}
ul.aside-list-expert .post-title {
    font-size: 1.25rem;
    font-weight: bold;
}
ul.aside-list-expert p {
    color: #aaa;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.875rem;
}

.fixed-bottom-layer {
    display: none;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #343a40; /* 可以根据需要修改颜色 */
    padding: 20px;
    text-align: center;
    z-index: 1000; /* 确保在最上层 */
}
.fixed-bottom-layer .btn {
    margin: 0 10px;
}

ul.list-card {
    grid-template-columns: repeat(2,minmax(0,1fr));
    display: grid;
    gap: 1.2rem;
    /*margin: 1.2rem 1.6rem;*/
    list-style-type: none;
}



ul.list-card > li {
    display: flex;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease-in-out;
}

ul.list-card > li:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

ul.list-card .thumbnail {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
}

ul.list-card > li:hover .thumbnail {
    box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

ul.list-card .card-body {
    position: relative;
}

ul.list-card .card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

ul.list-card .card-main h2 {
    font-size: 20px;
    margin-top: .5em;
    font-weight: 600;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

ul.list-card .card-main p {
    color: #666;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

ul.list-card .card-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.2rem;
    text-align: center;
}


@media screen and (min-width: 992px) {
    ul.list-card {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media screen and (min-width: 1200px) {
    ul.list-card {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
}



.pagination {
    justify-content: center;
}

.pagination .page-link:focus, .pagination .page-link:hover {
    background-color: var(--primary-b1);
    border-color: var(--primary-b2);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary-b1);
}
