﻿/* search.css - 搜索页面专用样式 */

/* 顶部固定区域 */
.fixed-top-area {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

/* 搜索容器 - 更显眼的设计 */
.search-container {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem 0;
}

.search-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* 搜索输入框 - 更突出 */
.search-input {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1rem;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
    height: 46px;
}

    .search-input:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

/* 下拉选择框组 */
.search-filters {
    display: flex;
    gap: 0.75rem;
    min-width: 260px;
}

.search-select {
    flex: 1;
    min-width: 120px;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    height: 46px;
    border-radius: 6px;
    border: 2px solid #ced4da;
}

/* 按钮组 - 更突出 */
.search-buttons {
    display: flex;
    gap: 0.75rem;
    min-width: 240px;
    justify-content: flex-end;
}

.btn-search {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    height: 46px;
}

/* 高级搜索下拉菜单 */
.advanced-search-group .dropdown-menu {
    margin-top: 0.5rem;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-row {
        flex-wrap: wrap;
    }

    .search-filters {
        width: 100%;
        order: 1;
    }

    .search-input {
        width: 100%;
        order: 2;
    }

    .search-buttons {
        width: 100%;
        order: 3;
        justify-content: space-between;
    }

    .btn-search {
        flex: 1;
    }
}

/* 主容器响应式宽度 */
.main-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1.25rem;
}

@media (min-width: 992px) {
    .main-container {
        width: 90%;
    }
}

@media (min-width: 1400px) {
    .main-container {
        width: 1400px;
    }
}

@media (max-width: 768px) {
    .main-container {
        width: 100%;
        padding: 0 15px;
    }
}

/* 筛选侧边栏样式 */
.filter-sidebar {
    transition: transform 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-radius: 0 8px 8px 0;
    padding: 0;
    height: calc(100vh - 150px);
    overflow-y: auto;
}

.filter-card {
    border: 1px solid #e0e3e7;
    box-shadow: none;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.filter-card-header {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 10;
}

.filter-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #3498db;
}

.filter-card-body {
    padding: 0.5rem 1rem;
    flex: 1;
    overflow-y: auto;
}

.filter-category-title {
    padding: 0.75rem 0.5rem;
    margin: 0 -0.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #34495e;
    border-bottom: 1px solid #f1f3f5;
    transition: all 0.2s;
}

    .filter-category-title:hover {
        background-color: #f8f9fa;
        color: #1e88e5;
    }

    .filter-category-title i.fa-chevron-down {
        transition: transform 0.2s;
        font-size: 0.8rem;
        color: #7f8c8d;
    }

    .filter-category-title[aria-expanded="true"] i.fa-chevron-down {
        transform: rotate(180deg);
    }

.filter-category-content {
    padding: 0.25rem 0;
}

.filter-option {
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    display: flex;
    align-items: center;
    position: relative;
}



    .filter-option:hover {
        background-color: #f8f9fa;
    }

    .filter-option label {
        display: flex;
        align-items: center;
        width: 100%;
        cursor: pointer;
        margin: 0;
        font-size: 0.9rem;
        color: #4a5568;
    }
    /* 调整复选框和文字之间的间距 */
    .filter-option input[type="checkbox"] {
        margin-right: 0.5rem; /* 减少右边距 */
        flex-shrink: 0; /* 防止复选框被压缩 */
    }
/* 添加一个中间容器使文字能靠左 */
.filter-option-text {
    flex: 1; /* 占据剩余空间 */
    text-align: left; /* 确保文字左对齐 */
}
/* 保持数字靠右不变 */
.filter-option-count {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin-left: 0.5rem; /* 保持与文字的间距 */
    flex-shrink: 0; /* 防止数字被压缩 */
}

.filter-actions {
    padding: 1rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    position: sticky;
    bottom: 0;
    display: flex;
    gap: 0.75rem;
}

    .filter-actions .btn {
        flex: 1;
        padding: 0.5rem;
    }

/* 移动端样式优化 */
@media (max-width: 768px) {
    .filter-sidebar {
        width: 85%;
        max-width: 320px;
        height: 100vh;
        border-radius: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1060;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }

        .filter-sidebar.show {
            transform: translateX(0);
        }

    .filter-card-header {
        padding-top: 1.5rem;
    }

    .filter-card-body {
        padding-bottom: 5rem;
    }

    .filter-actions {
        padding-bottom: 1.5rem;
    }
}

/* 复选框样式优化 */
input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #1e88e5;
}

/* 滚动条样式 */
.filter-sidebar::-webkit-scrollbar {
    width: 6px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

    .filter-sidebar::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* 右侧结果区域整体样式 - 更紧凑 */
.results-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}



.results-sort {
    width: 120px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
}





/* 操作栏样式 */
.card-body > .d-flex {
    padding: 0.5rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0 !important;
}

.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.15em;
}

.text-primary {
    color: #1e88e5 !important;
}

/* 搜索结果项样式 - 更紧凑 */
.search-result-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.2s;
}

    .search-result-item:hover {
        background: #f8fafc;
    }

.result-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.result-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

    .result-title a {
        color: #1a73e8;
        text-decoration: none;
    }

        .result-title a:hover {
            color: #1e88e5;
            text-decoration: underline;
        }

.result-body {
    padding-left: 1.5rem;
}

.result-meta {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.result-meta-item {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: flex-start;
}

    .result-meta-item i {
        margin-right: 0.5rem;
        margin-top: 0.15rem;
        color: #95a5a6;
        min-width: 16px;
        font-size: 0.85rem;
    }

.result-keywords {
    font-size: 0.85rem;
    line-height: 1.4;
}

    .result-keywords strong {
        color: #2c3e50;
    }

/* 操作链接样式优化 */
.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

    .result-actions a {
        color: #6c757d;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        padding: 0.25rem 0.5rem;
        border-radius: 4px;
        transition: all 0.2s;
    }

        .result-actions a:hover {
            color: #1e88e5;
            background-color: #f1f8ff;
        }

    .result-actions i {
        margin-right: 0.4rem;
        font-size: 0.9em;
    }

/* 分页样式 */
.pagination-container {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

#pager {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    #pager a, #pager span {
        padding: 0.35rem 0.75rem;
        border-radius: 4px;
        color: #2c3e50;
        text-decoration: none;
        font-size: 0.9rem;
    }

    #pager a {
        border: 1px solid #dee2e6;
        background: #fff;
    }

        #pager a:hover {
            background: #f1f3f5;
        }

        #pager a[disabled] {
            color: #bdc3c7;
            cursor: not-allowed;
            background: #f8f9fa;
        }

    #pager span {
        font-weight: 500;
    }

        #pager span[style*="color:red"] {
            background: #1e88e5;
            color: white !important;
            border: 1px solid #1e88e5;
        }

/* 响应式调整 */
@media (max-width: 768px) {
    .nav-tabs {
        padding: 0 1rem;
        overflow-x: auto;
        white-space: nowrap;
        display: block;
        -webkit-overflow-scrolling: touch;
    }

        .nav-tabs .nav-link {
            padding: 0.5rem 0.75rem;
            font-size: 0.85rem;
        }

    .search-result-item {
        padding: 0.75rem;
    }

    .result-actions {
        gap: 0.5rem;
    }

    .result-title {
        font-size: 0.95rem;
    }
}

/* 动画效果 */
.search-result-item {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 期刊信息元数据优化样式 */
.result-meta-item {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: flex-start;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #555;
}

    .result-meta-item i.fas {
        color: #6c757d;
        margin-right: 0.5rem;
        margin-top: 0.15rem;
        min-width: 16px;
        text-align: center;
    }

    .result-meta-item a {
        color: #1a73e8;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s;
    }

        .result-meta-item a:hover {
            color: #0d5bbc;
            text-decoration: underline;
        }

/* 响应式调整 */
@media (max-width: 768px) {
    .result-meta-item {
        flex-wrap: wrap;
    }

        .result-meta-item span:not(:first-child):before {
            display: none;
        }

        .result-meta-item span {
            display: block;
            width: 100%;
            margin-bottom: 0.3rem;
        }
}

/* 添加悬浮按钮样式 */
.filter-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1e88e5;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border: none;
    transition: all 0.3s;
}

    .filter-toggle-btn:hover {
        background: #1565c0;
        transform: scale(1.1);
    }

.filter-close-btn {
    display: none;
}

@media (min-width: 769px) {
    .filter-toggle-btn,
    .filter-close-btn {
        display: none !important;
    }
}


/* 分类图标颜色 */
.filter-category-title i.fa-file-alt {
    color: #3498db;
}

.filter-category-title i.fa-database {
    color: #e74c3c;
}

.filter-category-title i.fa-star {
    color: #f39c12;
}

.filter-category-title i.fa-graduation-cap {
    color: #9b59b6;
}

.filter-category-title i.fa-check-circle {
    color: #2ecc71;
}

.filter-category-title i.fa-globe-americas {
    color: #1abc9c;
}

.filter-category-title i.fa-user-graduate {
    color: #34495e;
}

.filter-category-title i.fa-school {
    color: #e67e22;
}

.filter-category-title i.fa-language {
    color: #27ae60;
}

.filter-category-title i.fa-globe {
    color: #2980b9;
}

.filter-category-title i.fa-calendar-alt {
    color: #d35400;
}



/* 搜索容器样式 */
.search-container {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1.2rem 0;
}

/* 搜索行布局 */
.search-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

/* 椭圆形下拉框 */
.search-select {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    height: 46px;
    border-radius: 23px !important; /* 椭圆形 */
    border: 2px solid #ced4da;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
    transition: all 0.2s;
}

    .search-select:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

/* 椭圆形搜索框 */
.search-input {
    flex: 1;
    min-width: 120px;
    padding: 0.7rem 1.2rem;
    border: 2px solid #ced4da;
    border-radius: 23px !important; /* 椭圆形 */
    font-size: 1rem;
    transition: all 0.2s;
    height: 46px;
}

    .search-input:focus {
        border-color: #86b7fe;
        box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    }

/* 椭圆形按钮 */
.btn-search {
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    height: 46px;
    border-radius: 23px !important; /* 椭圆形 */
    transition: all 0.2s;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* 橙色重新检索按钮 */
.btn-search-orange {
    background-color: #fd7e14;
    color: white;
    border: 1px solid #fd7e14;
}

    .btn-search-orange:hover {
        background-color: #e66a00;
        border-color: #d86200;
        color: white;
    }

/* 蓝色结果中搜索按钮 */
.btn-search-blue {
    background-color: #0d6efd;
    color: white;
    border: 1px solid #0d6efd;
}

    .btn-search-blue:hover {
        background-color: #0b5ed7;
        border-color: #0a58ca;
        color: white;
    }

/* 高级搜索按钮 */
.btn-search-advanced {
    background-color: transparent;
    color: #0d6efd;
    border: 1px solid #0d6efd;
    width: 46px;
    padding: 0;
}

    .btn-search-advanced:hover {
        background-color: rgba(13, 110, 253, 0.1);
    }








/* search.css - 搜索页面专用样式 (增强分割效果版) */

/* ==================== 原有全部样式保留 ==================== */
/* 此处应保留原有search.css文件的全部内容，不做任何删减 */
/* 只需要在下方添加新的增强样式即可 */


/* ==================== 新增增强样式 ==================== */

/* 1. 增强模块间分割效果 */
.results-card {
    border: 1px solid #e0e3e7;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    margin-bottom: 2rem; /* 增加模块下边距 */
}

.results-card-header {
    border-bottom: 2px solid #e0e3e7; /* 加粗分割线 */
    background: linear-gradient(to bottom, #f8f9fa, #f1f5f9); /* 渐变背景 */
    padding: 0.6rem 1.5rem;
}

/* 2. 增强项与项之间分割 */
.search-result-item {
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0.5rem;
    background-color: rgba(255,255,255,0.9);
    transition: all 0.3s ease;
    box-shadow: inset 0 0 0 1px #e0e3e7; /* 内阴影增强分割 */
}

    .search-result-item:hover {
        background-color: #f8fafc;
        
    }

    .search-result-item:last-child {
        border-bottom: none;
    }



/* 4. 强化选项卡效果 */
.nav-tabs {
    border-bottom: 2px solid #e0e3e7;
    background: #f5f7fa;
    padding: 0.2rem 1.5rem 0 1.5rem; /* 增加上内边距 */
}

    .nav-tabs .nav-link {
        border: 1px solid transparent;
        border-bottom: none;
        padding: 0.8rem 1.8rem;
        margin: 0 0.3rem;
        position: relative;
        top: 2px;
        border-radius: 6px 6px 0 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        font-weight: 600;
        color: #5a6a7e;
    }

        .nav-tabs .nav-link:hover {
            background: rgba(30, 136, 229, 0.08);
            color: #1e88e5;
            border-color: #e0e3e7;
        }

        .nav-tabs .nav-link.active {
            background: white;
            border-color: #e0e3e7 #e0e3e7 white;
            color: #1e88e5;
            box-shadow: 0 -3px 6px rgba(0,0,0,0.03);
        }

            .nav-tabs .nav-link.active:after {
                content: "";
                position: absolute;
                bottom: -2px;
                left: 0;
                right: 0;
                height: 3px; /* 加粗激活状态指示线 */
                background: linear-gradient(to right, #1e88e5, #64b5f6);
                border-radius: 3px 3px 0 0;
            }

/* 5. 操作链接区域增强 */
.result-actions {
    
    padding: 0.2rem;
    border-radius: 6px;
}

    .result-actions a {
        box-shadow: 0 1px 2px rgba(13, 110, 253, 0.25);
        border: 1px solid rgba(13, 110, 253, 0.25);
        color: #0d6efd;
    }

        .result-actions a:hover {
            box-shadow: 0 2px 5px rgba(0,0,0,0.15);
            transform: translateY(-1px);
            border-color: #c5d5e6;
        }

/* 6. 筛选侧边栏增强 */
.filter-category-title {
    background: linear-gradient(to right, #f8f9fa, #f1f5f9);
    border-left: 3px solid #3498db; /* 左侧装饰线 */
    padding-left: 1.2rem;
}

.filter-option {
    border-left: 2px solid transparent;
    transition: all 0.2s;
}

    .filter-option:hover {
        border-left-color: #1e88e5;
        background: rgba(30, 136, 229, 0.05);
    }

/* 7. 移动端适配调整 */
@media (max-width: 768px) {
    .search-result-item {
        padding: 1rem;
        margin-bottom: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .nav-tabs .nav-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .result-actions a {
        padding: 0.3rem 0.6rem;
    }
}










/* 在search.css中添加以下样式 */
.filter-card-body {
    position: relative;
    min-height: 200px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 0 0 8px 8px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #1e88e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    color: #1e88e5;
    font-weight: 500;
    font-size: 1.1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}



.filter-category-title {
    font-size: 1rem;
    padding: 0.75rem 1rem;
}