.carousel-item {
    height: 400px;
    background-color: #343a40; /* 背景颜色 */
}
.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    opacity: 0.8; /* 图片透明度 */
}
.carousel-caption {
    left: 10%;
    right: 10%;
    color: white; /* 文本颜色 */
}
.carousel-caption h5 {
    font-size: 2rem;
}
.carousel-caption p {
    font-size: 1.2rem;
}
.carousel-indicators {
    bottom: -40px; /* 调整指示器位置 */
}
.carousel-indicators [data-bs-target] {
    background-color: #fff; /* 指示器颜色 */
}
.category-links {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    background-color: #e9a6b2;
}
.category-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}
.category-links a:hover {
    text-decoration: underline;
}

/** 首页块组件 */

.custom-card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 0;
}
.custom-card {
    position: relative;
    width: calc(16.66% - 10px); /* 每行显示 6 个卡片，并且有间距 */
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.custom-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    cursor: pointer;
}
.custom-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-image: linear-gradient(-180deg, transparent, rgba(0, 0, 0, .72) 98%);
    color: white;
    padding: 5px;
    margin: 0;
    display: flex;
}
.custom-card-title span:nth-child(1) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.custom-card-title span:nth-child(2) {
    display: flex;
    justify-content: space-between;
    margin-left: auto;
}
.custom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 0 0;
}
.custom-header h2 {
    font-size: 1.5rem;
    margin: 0;
}
.custom-category-links {
    display: flex;
    align-items: center;
}
.custom-category-links a {
    color: #f0a500;
    margin-right: 20px;
    text-decoration: none;
    font-weight: bold;
}
.custom-category-links a:hover {
    text-decoration: underline;
}

.btn-link {
    border: 1px solid #edeff2;
    border-radius: 2px;
    color: #92939b;
    cursor: pointer;
    width: 59px;
}

.custom-card-title span{
    font-size: .8rem;
}
.custom-card-title i {
    margin-right: 2px;
}
/** 第二个块 */

.col-lg-2-4 {
    flex: 0 0 20%;
    max-width: 20%;
    padding-top: 10px;
}
.card-title {
    font-size: 14px;
    margin: 4px 6px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    color:#333;
}
.card-bottom {
    display: flex;
    margin: 4px 6px;
}
.card-bottom .card-text2{
    display: flex;
    justify-content: space-between;
    margin-left: auto;
    font-size: 12px;
    color: #999;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.card img {
    height: 192px;
    border-radius: 10px;
}

.card-text {
    color: #999;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.rank-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.rank-list li {
    display: flex;
    align-items: center;
    padding: 5px 0;
}
.rank-list li .rank-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 10px;
}
.rank-list li .rank-content {
    flex: 1;
}
.rank-list li .rank-update {
    color: red;
    font-size: 0.875rem;
}
.rank-list .rank-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}
.rank-item img {
    width: 60px;
    height: 80px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}
.rank-item .rank-info {
    flex: 1;
}
.rank-item .rank-info h4 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.rank-item .rank-info p {
    margin: 0;
    color: #666;
    font-size: 0.875rem;
}
.card-body{
    padding: 0;
}
.card {
    border:0;
}

.col-4-right-h3 {
    font-size: 24px;
     font-weight: 400;
     line-height: 30px;
    padding-bottom: 22px;
    color: #333;
}

.list-group li {
    border: 0;
    cursor: pointer;
    padding: 0 0 16px;
    width: 100%;
}
.list-group strong {
    color: #b8b8b8;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    padding-right: 15px;
    width: 10px;
}
.list-group span {
    color: #333;
    font-size: 14px;
    line-height: 20px;
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.list-group .rank-content {
    display: flex;
    width: 100%;
    margin-left: 6px;
}
.list-group small {
    font-size: 12px;
    color: #666;
    margin-left: auto;
}

.list-group-item .hovers{
    display: flex;
    margin-bottom: 5px;
    width: 100%;
}

.list-group-item .hovers img {
    height: 162px;
    width: 120px;
    border-radius: 10px;
}

.hovers-item{
  margin-left: 12px;
}

.hovers-item .hovers-item-title{
    color: #333;
    font-size: 18px;
    line-height: 26px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.hovers-item .hovers-item-content{
    color: #999;
    cursor: default;
    display: block;
    font-size: 14px;
    height: 40px;
    line-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 224px;
}

.hovers-item .hovers-item-update{
    display: block;
    padding-top: 16px;
    color: pink;
}
/** 第三个块*/
.mt-4 .mb-4{
    padding-bottom: 1.5rem !important;
}
.mt-4 .card-title {
    font-size: 1rem;
    color: #333;
    margin: 4px 0 0 6px;
}
.mt-4 .card-text,.mt-4 .card-text2  {
    margin-bottom: 0;
}
.mt-4 .col-6{
    margin-top:0;
}
.mt-4 .card-bottom {
    margin-bottom: 10px;
}
.mt-4 .badge {
    position: absolute;
    bottom: 0;
    right: 0;
}

.card .coverBox img{
    height: 240px;
    border-radius: 10px;
}

.card .coverBox{
    position: relative;
}

.card .coverBox span {
    background: rgba(0, 0, 0, .5);
    border-radius: 2px;
    color: #fff;
    font-size: 12px;
    height: 16px;
    line-height: 16px;
    margin-left: 4px;
    max-width: 34%;
    overflow: hidden;
    padding: 0 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.card .coverBox span a{
    color: #fff;
}

/** rank */
.rank-info {
    font-size: 0.875rem;
    color: #ffd700;
}
.rank-title {
    color: #ffd700;
    font-size: 1.2rem;
}

.rank-nav-tabs{
    display: flex;
    align-items: center;
}
.rank-nav-tabs-title{font-size: 22px;font-weight: bold;margin-right: 50px;}
.rank-nav-tabs .rank-nav-tabs-item{margin-left: 20px;}
.rank-nav{
    display: flex;
    padding-top: 20px;
    padding-bottom: 10px;
}

.rank-nav .rank-more{
    margin-left: auto;
}
.rank-card{
    display: flex;
}
.rank-card img{
    height: 180px;
    width: 180px;
    border-radius: 10px;
}
.rank-card .card-body{
    padding-left: 20px;
}
.rank-card .card-body p{
    margin-left: 0;
    width: 200px;
}

.rank-card .card-body .card-body-title {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.card-body-author{
    font-weight: lighter;
    height: 20px;
    opacity: .8;
    padding-top: 2px;
    white-space: nowrap;
    font-size: 14px;
}

.card-body-des{
    padding-top: 26px;
    position: absolute;
    bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-body-tags{
    margin-top: 10px;
}

.card-body-tags span{
    margin-right: 5px;
    box-sizing: border-box;
    padding: 3px 5px;
    font-size: 12px;
    background-color: #e9a6b2;
    color: #fff;
    border-radius: 10px;
}
/** 更新的box */
.update-box .update-nav {
    display: flex;
    align-items: baseline;
    margin: 20px 0 0;
}
.update-nav .update-nav-title{
    font-size: 22px;
    font-weight: bold;
}
.update-nav .update-more{
    margin-left: auto;
}
.update-body .coverBox img{
    height: 140px;
}
.cover-bottom{
    bottom: 0;
    padding: 4px 6px;
    background-image: linear-gradient(-180deg, transparent, rgba(0, 0, 0, .78));
    width: 100%;
}
.cover-bottom span{
    color: #fff;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cover-bottom .float-end{
    margin-left: auto;
}
.update-box .card-body{
    display: flex;
    align-items: baseline;
    padding: 4px 6px 0;
}

.update-box .card-body p{
    font-size: 14px;
}
