/* 全局样式 */
body {
    background-color: #f8f9fa;
    /*padding-top: 56px;*/ /* 为固定导航栏留出空间 */
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: all 0.3s ease;
}

.navbar.fixed-top {
    background-color: rgba(33, 37, 41, 0.98) !important;
    backdrop-filter: blur(10px);
}

/* 文章卡片样式 */
.article-card {
    margin-bottom: 20px;
    transition: transform 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
}

.article-card .card {
    border: none;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.article-card .card-body {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.article-card .card-title {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card .text-muted {
    font-size: 0.85rem;
}

.article-card .card-img {
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.article-card .card-img-wrapper {
    height: 100%;
    padding: 0.5rem;
}

.article-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card .card-text {
    font-size: 0.875rem;
    color: #6c757d;
}

/* 头条文章样式 */
.featured-article .card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.featured-article img {
    height: 300px;
    object-fit: cover;
}

/* 右侧推荐区样式 */
.sidebar {
   /* background-color: #fff;
     padding: 20px; */
    padding: 0;
    border-radius: 4px;
    /*box-shadow: 0 2px 4px rgba(0,0,0,.05);
    position: sticky;
    top: 20px;*/
}

.recommended-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.recommended-item:last-child {
    border-bottom: none;
}

.recommended-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 4px;
    
}

.recommended-card {
    transition: transform 0.2s ease;
}

.recommended-card:hover {
    transform: translateY(-3px);
}

.recommended-card img {
    aspect-ratio: 16/9;
    object-fit: cover;
    width: 100%;
    min-height: 120px
}

.recommended-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .featured-article img {
        height: 200px;
    }
    
    .article-card .card-img-wrapper {
        height: 80px;
        padding: 0.25rem;
    }
    
    .article-card .card-body {
        padding: 0.25rem 0.5rem;
    }
    
    .recommended-item img {
        height: 120px;
    }
    .col-lg-8{
        padding-right: 0px;
        padding-left: 0px;
    }
    .all-img-gif{
        gap: 10px !important;
    }
    .detail-more {
        gap: 10px !important;
    }
    .right-content{
        margin-top: 20px;
    }
}

/* 排行榜样式 */
.ranking-item {
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background-color: #f8f9fa;
}

.ranking-item a {
    color: #333;
}

.rank-number {
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px;
    flex-shrink: 0;
}

.rank-1 {
    background-color: #ff4d4f;
    color: white;
}

.rank-2 {
    background-color: #ff7a45;
    color: white;
}

.rank-3 {
    background-color: #ffa940;
    color: white;
}

.rank-other {
    background-color: #f0f0f0;
    color: #999;
}

.rank-title {
    font-size: 15px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    white-space: normal;
    font-weight: 500;
}

.ranking-item:hover .rank-title {
    color: #1a73e8 !important;
}

#loadMoreBtn {
    min-width: 120px;
    transition: all 0.3s ease;
}

#loadMoreBtn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

#loadMoreBtn .spinner-border {
    margin-left: 8px;
    vertical-align: middle;
}

.sidebar-container1 {
    position: sticky;
    top: 76px; /* 导航栏高度 + 一些间距 */
    max-height: calc(100vh - 86px); /* 减少一点高度，防止出现滚动条 */
    overflow: hidden; /* 改为hidden，防止出现滚动条 */
    padding-right: 10px; /* 添加右侧内边距 */
}

/* 自定义滚动条样式 */
.sidebar-container::-webkit-scrollbar {
    width: 4px;
}

.sidebar-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.sidebar-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.recommended-list .row {
    margin-right: -10px; /* 修正row的右边距 */
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

/* 响应式调整 */
@media (max-width: 991.98px) {
    .sidebar-container {
        position: static;
        max-height: none;
        padding-right: 20px;
        padding-left: 10px;
    }
} 
.text-center{
    display: none;
}
img[src=""] {
    display: none;
}
.row{
    margin-right: 0px;
    margin-left: 0px;
}
.lang{
    width: 20px;
    height: 20px;
    cursor: pointer;
    object-fit: cover;
    transition: opacity 0.2s ease;
}
.all-cate{
    /*margin-top: 20px;*/
}
.cate-title{
    cursor: pointer;
}
.all-img-gif{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}
.gif-class{
    width: 163px;
    height: 163px;
    object-fit: cover;
    cursor: pointer;
}
.right-content{
    padding-left: 0;
    padding-right: 0;
    margin-bottom: 10px;
    background-color:#dfecff;
    height: 700px;
}
.right-img{
    margin-top: 10px;
    text-align: center;
    margin-bottom: 10px;
    flex: 0 0 calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    padding: 0 !important;
}
.detail-gif-class{
    width: 300px;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
}
.all-detail-img-gif{
    margin-top:20px;
    margin-bottom: 30px;
    text-align: center;
}
.gif-a{
    margin-top: 30px;
}
.gif-span{
    background: #258500;
    padding: 5px 10px;
    color: white;
    cursor: pointer;
}
.pointer{
    width: 30px;
    height: 30px;
}
.detail-div{
    gap: 10px;
    display:flex;
    margin-top:20px;
}
.note1{
    font-size: 30px;
    font-weight: 500;
    color: red;
}
.img-desc{
    margin-bottom: 20px;
}
.detail-get-more{
    margin-top: 10px;
    font-size: 25px;
    font-weight: 600;
}
.detail-more{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    margin-top: 20px;
}
.see-all{
    background: #258500;
    padding: 5px 10px;
    color: white;
    cursor: pointer;
    font-size: 20px;
}

/* 语言选择弹框样式 */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.language-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.language-item:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,123,255,0.15);
}

.language-item .flag {
    font-size: 20px;
    margin-right: 12px;
}

.language-item .name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.language-item .code {
    font-size: 12px;
    color: #666;
    font-weight: 600;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 4px;
}

.modal-dialog {
    max-width: 600px;
}

.modal-body {
    padding: 20px;
}

.lang:hover {
    opacity: 0.8;
}

/* 防止点击时的抖动 */
.lang:active {
    transform: scale(0.95);
}

/* 防止模态框显示时的页面抖动 */
.modal-open {
    overflow: hidden;
}

.modal {
    overflow-y: auto;
}

/* 确保导航栏在模态框显示时保持稳定 */
.navbar {
    position: relative;
    z-index: 1030;
}

/* 防止模态框背景滚动 */
body.modal-open {
    padding-right: 0 !important;
}
.about{
    display: flex; 
    justify-content: center;
    gap: 20px;
}
.about a {
    color: #666;
}
.about span{
    cursor: pointer;
    color:#666;
}
.copyright{
    color:#666;
    text-align: center;
}
.help-containt{
    margin-top: 20px; 
    padding: 15px; 
    background-color: #f8f9fa; 
    border-radius: 8px;
}
.help-h4{
    margin-bottom: 15px;
    color: #333;
}
.help-block{
    line-height: 1.6; 
    color: #666;
}
.help-p1{
    margin-bottom: 8px;
}
.help-block2{
    text-align: left;
    margin-bottom: 20px;
}
.help-block2 img{
    width:393px; 
    height: auto; 
    border-radius: 4px;
}
.help-p2{
    margin-bottom: 8px;
    margin-top: 10px;
    font-size: 20px;
    font-weight: 600;
}
.help-h5{
    margin-bottom: 4px;
    color: #333;
}
.faq{
    margin-top: 20px !important;
}
#articleList p{
    font-size: 20px;
}
.help-block3{
    text-align: left;
    margin-bottom: 20px;
}
.help-block3 img{
    width:393px; 
    height: auto; 
    border-radius: 4px;
}
.logoImg{
    width: 30px;
    height: 30px;
    object-fit: cover;
}

/* 星级评分样式 */
.section-container5{
    margin-top: 20px;
}
.section-rate h2{
    text-align: center;
}

.star-rating {
    display: inline-block;
    direction: rtl;
    unicode-bidi: bidi-override;
}

.star-rating input {
    display: none;
}

.star-rating label {
    display: inline-block;
    width: 30px;
    height: 30px;
    margin: 0 2px;
    cursor: pointer;
    background-image: url('/images/stars_kong.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    background-image: url('/images/stars.png');
}

.star-rating input:checked ~ label {
    background-image: url('/images/stars.png');
}

/* 评分区域样式 */
.rate {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.rate__title {
    color: #13141c;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

.rate__stars {
    height: 24px;
    display: flex;
    align-items: center;
}

.rate__numbers {
    font-size: 16px;
    color: #13141c;
}

.rate__votes {
    font-size: 14px;
    color: #666;
}

.section-lang {
    max-width: 1000px;
    margin: 0 auto;
    margin: 10px auto 50px;
    text-align: center;
}
.links {
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 12px;
    justify-content: center;
}
.links__link.active {
    font-weight: 700;
    color: #ffbf5a !important;
}
.links__link {
    background-color: #fff;
    color: #13141c;
    font-size: 13px;
    margin: 10px;
    padding: 10px;
    width: calc(25% - 45px);
    line-height: 24px;
    font-weight: 400;
    -webkit-box-shadow: 0 0 20px rgba(0, 0, 0, .1);
    box-shadow: 0 0 20px rgba(0, 0, 0, .1);
    display: block;
    text-align: center;
    border-radius: 10px;
    text-decoration: none !important;
    text-transform: uppercase;
}
