.help-center-header {
    background-image: url('https://img.tktoc.com/toc/ser-bg.jpeg');
    background-size: cover;
    background-position: center;
    padding: 0;
    margin-top: 0px;
    position: relative;
}

.search-section {
    padding: 40px 0 60px;
    text-align: center;
    margin-top:50px;
}
.help-center-title {
    font-size: 36px;
    color: #fff;
    font-weight: 800;
    margin-bottom: 30px;
}
.search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}
.search-input {
    height: 48px;
    border-radius: 24px;
    padding-left: 20px;
    padding-right: 50px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    width: 100%;
}
.search-btn {
    position: absolute;
    right: 15px;
    top: 12px;
    background: none;
    border: none;
    color: #999;
}
/* 热门搜索样式优化 */
.quick-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.hot-search-label {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-right: 10px;
    font-weight: 500;
}

.hot-search-label i {
    font-size: 16px;
    margin-right: 4px;
}
.quick-link {
    color: #666;
    margin: 0 10px;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
}

.quick-link:hover {
    color: #ff6b6b;
    text-decoration: none;
}

.quick-link:not(:last-child):after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #ff6b6b;
}

/* 夜间模式适配 */
.io-black-mode .hot-search-label,
.io-black-mode .quick-link {
    color: #aaa;
}

.io-black-mode .quick-link:hover {
    color: #ff6b6b;
}
.important-notice {
    display: flex;
}
.notice-icon {
    margin-right: 10px;
    color: #ffb300;
}
.notice-content {
    font-size: 14px;
   
}
.notice-date {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

/* 通知滚动样式 */
.notice-carousel {
  position: relative;
  overflow: hidden;
  height: 40px;
}

.notice-wrapper {
  position: absolute;
  width: 100%;
  transition: transform 0.5s ease;
}

.important-notice {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 15px;
}

.notice-icon {
  margin-right: 10px;
  color: #ffb300;
}

.notice-content {
  flex: 1;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice-content a {
  color: inherit;
  text-decoration: none;
}

.notice-content a:hover {
  color: #4e73df;
}

.notice-date {
  font-size: 12px;
  color: #999;
  margin-left: 10px;
}

/* 夜间模式适配 */
.io-black-mode .notice-content a:hover {
  color: #6c8fff;
}

.io-black-mode .important-notice {
  color: #e0e0e0;
}

.media {
    position: relative;
    display: block;
    overflow: hidden;
    padding-top: 50%; /* 修改为2:1比例 (1/2 = 50%) */
}
.media-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.3s ease;
}
.card-post {
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    height: 100%;
    transition: all 0.3s ease;
}
.card-post:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 卡片媒体内容样式 */
.media-content {
    display: block;
    position: relative;
    height: 0;
    padding-top: 50%; /* 修改为2:1比例 (1/2 = 50%) */
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.media1 {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.media-4x3 {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    padding-top: 50%; /* 修改为2:1比例 */
}
/* 卡片基本样式 */
.card-post.list-item {
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: #fff;
}

.io-black-mode .card-post.list-item {
    background-color: #2a2a2a;
}

.card-post.list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 列表内容样式 */
.list-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 8px 8px !important;
}

.list-body {
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-title {
    font-size: 14px;
    line-height: 1.3;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    max-height: 1.3em;
    color: #333;
}

/* 描述容器样式 */
.list-desc {
    margin-top: 3px !important;
    margin-bottom: 3px !important;
    height: 24px !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
}

/* 描述文本样式 - 提高优先级 */
.list-desc p,
.list-desc .text-muted,
.list-desc .topic-desc,
.list-desc > p {
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #6c757d !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    max-height: 2.4em !important;
}
/* 自定义描述文本样式 */
.topic-desc {
    font-size: 10px !important;
    line-height: 1.2 !important;
    color: #6c757d;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    text-align: center;
}

.list-footer {
    margin-top: auto;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 按钮样式 */
.btn-danger.btn-sm {
    font-size: 12px;
    padding: 0.1rem 0.5rem;
    line-height: 1.2;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 夜间模式适配 */
.io-black-mode .list-title {
    color: #e0e0e0;
}

.io-black-mode .topic-desc {
    color: #aaa !important;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .col-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .list-content {
        padding: 5px 5px !important;
    }
    
    .list-title {
        font-size: 12px;
    }
    
    .topic-desc {
        font-size: 9px !important;
    }
    
    .btn-danger.btn-sm {
        font-size: 10px;
        padding: 0.1rem 0.3rem;
    }
}
</style>



<style>
/* 标题溢出省略号样式 */
.title-ellipsis {
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.title-ellipsis a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: calc(100% - 30px); /* 减去序号的宽度 */
    vertical-align: middle;
}

/* 联系我们区域样式 */
.contact-item {
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
}

.contact-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.io-black-mode .contact-item:hover {
    background-color: #2d2d2d;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-title {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

/* 夜间模式下的标题颜色修复 */
.io-black-mode .contact-title {
    color: #e0e0e0;
}

.contact-desc {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 夜间模式下的描述文字颜色 */
.io-black-mode .contact-desc {
    color: #aaa;
}

@media (max-width: 768px) {
    .contact-item {
        padding: 10px;
    }
    
    .contact-icon img {
        width: 48px;
        height: 48px;
    }
    
    .contact-title {
        font-size: 14px;
    }
    
    .contact-desc {
        font-size: 12px;
    }
}

.hot-rank-border{
    border:1px solid #5a5a5a;
    padding:3px 7px;
}


 /* 分类美化分页导航样式 - 强制横排显示 */
                    .custom-pagination {
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        margin: 20px 0;
                    }
                    .custom-pagination ul {
                        display: flex !important;
                        flex-direction: row !important;
                        list-style: none !important;
                        padding: 0 !important;
                        margin: 0 !important;
                    }
                    .custom-pagination li {
                        margin: 0 5px !important;
                        display: inline-block !important;
                        float: none !important;
                    }
                    .custom-pagination a, 
                    .custom-pagination span {
                        display: flex !important;
                        align-items: center;
                        justify-content: center;
                        min-width: 36px;
                        height: 36px;
                        padding: 0 10px;
                        border-radius: 4px;
                        background-color: #2c2e2f;
                        color: #fff;
                        text-decoration: none;
                        transition: all 0.3s ease;
                    }
                    /* 修改悬停效果，只对非当前页应用 */
                    .custom-pagination a:hover {
                        background-color: #444;
                    }
                    /* 当前页样式 */
                    .custom-pagination .current {
                        background-color: #ff5f31 !important;
                        color: #fff !important;
                        cursor: default;
                        pointer-events: none;
                    }
                    /* 当前页悬停时保持样式不变 */
                    .custom-pagination a.current:hover {
                        background-color: #292929 !important;
                    }
                    .custom-pagination .dots {
                        background: none;
                    }