/* 自定义样式 */
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    background-color: #f8f9fa;
}

.container.pages {
    min-height: 400px;
    padding-top: 20px;
}

.card {
    margin-bottom: 20px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.card-img-150 {
    height: 150px;
    overflow: hidden;
}

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

/* 搜索结果高亮 */
mark {
    background-color: #ffc107;
    color: #333;
    padding: 2px 4px;
    border-radius: 2px;
}

/* 在线客服样式 */
.online {
    position: fixed;
    right: 20px;
    bottom: 150px;
    z-index: 9999;
}

.online dl {
    margin-bottom: 10px;
}

.online dt {
    display: none;
    position: absolute;
    right: 45px;
    bottom: 0;
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.online dt.show {
    display: block;
}

.online dd {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #E56600 0%, #cc3333 100%);
    color: #fff;
    text-align: center;
    line-height: 18px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
    padding: 5px;
    font-size: 12px;
    transition: all 0.3s ease;
}

.online dd:hover {
    transform: translateX(-5px);
}

.online dd i {
    font-size: 18px;
    display: block;
    margin-top: 3px;
}

.online .scroll-top {
    background: #666;
}

.online .remove {
    float: right;
    cursor: pointer;
}

/* ========== 搜索页面选择框修复 ========== */
.search-box select.form-control {
    min-width: 150px !important;
    height: auto !important;
    padding: 12px 18px !important;
    line-height: normal !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
}

.search-box select.form-control option {
    padding: 10px !important;
}

@media (max-width: 768px) {
    .search-box select.form-control {
        min-width: 100% !important;
        font-size: 16px !important;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .online {
        display: none;
    }
}

/* 搜索页面样式 */
.search-form {
    margin-bottom: 30px;
}

.search-form select,
.search-form input {
    margin-right: 10px;
}

/* 文章列表样式 */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.article-list li:last-child {
    border-bottom: none;
}

.article-list a {
    color: #333;
    text-decoration: none;
}

.article-list a:hover {
    color: #E56600;
}

/* 分页样式 */
.pagination {
    justify-content: center;
}

.pagination .page-link {
    color: #E56600;
}

.pagination .page-item.active .page-link {
    background-color: #E56600;
    border-color: #E56600;
}
