html, body {
    background: #E3EAF5 !important;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

.page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}
.search-container {
    padding: 20px 0 20px 0;
    position: sticky;
    top: 0;
    background: #E3EAF5;
    z-index: 10;
    display: flex;
    align-items: center;
}

/* 返回首页链接样式 */
.back-home {
    color: #3B5DA4;
    text-decoration: none;
    font-size: 14px;
    margin-right: 15px;
    white-space: nowrap;
}

.back-home:hover {
    text-decoration: underline;
}

.search-box {
    background: white;
    height: 50px;
    width: 80%;
    border-radius: 25px;
    border: 1px solid #3B5DA4;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.search-input {
    border: none;
    height: 100%;
    flex: 1;
    border-radius: 19px;
    font-size: 18px;
    color: #333;
    outline: none;
    padding: 0 10px;
}

.icon-search {
    font-size: 24px !important;
    color: #ACACAC;
    cursor: pointer;
}

.content-box {
    display: flex;
    gap: 20px;
}

.content-left {
    flex: 1;
    background: white;
    border-radius: 18px;
    padding: 20px;
}

.content-right {
    width: 300px;
    position: sticky;
    top: 0;
}

.filter-bar {
    display: flex;
    gap: 15px;
    padding-bottom: 16px;
    align-items: center;
    border-bottom: 1px solid #E5E5E5;
}

.filter-btn {
    color: #3B5DA4;
    min-width: 80px !important;
}

.dropdown-toggle {
    min-width: 120px;
    text-align: left;
    position: relative;
    padding-right: 30px;
}

.dropdown-toggle::after {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-item.active {
    background-color: #3B5DA4;
    color: white;
}

.dropdown-item:hover {
    background-color: rgba(59, 93, 164, 0.1);
}

.article-item {
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.article-item h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.4;
}

.article-desc {
    color: #616161;
    font-size: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.article-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 12px;
    color: #3B5DA4;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
    flex-wrap: wrap;
}

.page-numbers {
    display: flex;
    gap: 5px;
}

.page-num {
    padding: 5px 10px;
    cursor: pointer;
}

.page-num.active {
    color: #3B5DA4;
}

.article-item-content {
    display: flex;
}
.article-item-img {
    width: 70px;
    height: 70px;
    margin-right: 10px;
    border-radius: 6px;
    object-fit: contain;
}

.page-btn {
    padding: 5px 15px;
    border: 1px solid #e0e0e0;
    background: none;
    cursor: pointer;
}
.dropdown-item {
    cursor: pointer;
}

/* 新增公告和广告样式 */
.announcement-ad {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.announcement {
    flex: 1;
    background: white;
    width: 150px;
    height: 200px;
    border-radius: 19px;
    position: relative;
}

.announcement-img {
    width: 150px;
    height: 200px;
    border-radius: 19px;
}

.announcement-title {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 14px;
    color: white;
    padding: 5px;
    text-shadow: 0px 0px 5px #3B5DA4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.announcement-content {
    background: #f8f9fd;
    padding: 15px;
    border-radius: 4px;
}

.ad-carousel {
    width: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.hot-section {
    background: white;
    padding: 0 0 20px 0;
    border-radius: 15px;
    margin-top: 20px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 30px;
    background: #3B5DA4;
    border-radius: 15px;
    padding: 16px 16px;
}

.section-title h3 {
    margin: 0;
    font-size: 16px;
    color: white;
}

.more-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.hot-item {
    cursor: pointer;
    font-size: 14px;
}

.hot-item:hover {
    color: #3B5DA4;
}

/* 更新高亮样式 */
.highlight {
    color: #ff4d4f;
    font-weight: bold;
    padding: 0 2px;
}

.title-tag {
    background: #D0091D;
    border-radius: 5px;
    padding: 2px 8px;
    color: white;
    font-size: 12px;
}
.chapter-title {
    text-decoration: none;
    color: #616161;
    font-size: 24px;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.article-title-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}
.article-title-status {
    font-size: 12px;
    color: white;
    padding: 2px 4px;
    border-radius: 4px;
}
.article-title-status.invalid {
    background: #f56c6c;
}
.article-title-status.partInvalid {
    background: #909399;
}
/* 添加文章标题样式 */
.article-title {
    text-decoration: none;
    color: #3B5DA4;
    font-size: 24px;
    flex: 1;
}

.article-title:hover {
    color: #3B5DA4;
}

/* 确保高亮文本在标题中也能正确显示 */
.article-item h3 .highlight {
    color: #ff4d4f;
    font-weight: bold;
    background: rgba(255, 77, 79, 0.1);
}

.article-meta {
    display: flex;
    gap: 15px;
    align-items: center;
}

.article-category {
    background: #909399;
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
}

.article-date {
    margin-left: auto;
    color: #999;
    font-size: 14px;
}

.encyclopedia-btn {
    background: #3B5DA4;
    color: white;
    font-size: 18px;
    text-align: center;
    margin: 16px 0;
    padding: 12px 0;
    border-radius: 15px;
    transition: all .3s;
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.encyclopedia-btn:hover {
    background: #264e9a;
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 15px;
}

.page-jump span {
    font-size: 14px;
    color: #666;
}

.jump-page-input {
    width: 60px;
    height: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    outline: none;
}

.jump-page-input:focus {
    border-color: #3B5DA4;
}

.jump-btn {
    padding: 5px 12px;
    background: #3B5DA4;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all .3s;
}

.jump-btn:hover {
    background: #2d4881;
}

/* 热点刷新图标样式 */
.hot-refresh-icon {
    color: white;
    cursor: pointer;
    font-size: 16px;
    margin-left: auto;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.hot-refresh-icon:hover {
    opacity: 0.8;
}

.hot-refresh-icon.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* 热点链接样式 */
.hot-item {
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hot-item:hover {
    color: #3B5DA4;
}

/* 热点页面标题样式 */
.page-title {
    color: #3B5DA4;
    font-size: 24px;
    margin: 0;
    flex: 1;
    text-align: center;
}
