/* 文献中心页面样式 */

/* 面包屑导航 */
.breadcrumb-section {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #764ba2;
}

.breadcrumb-separator {
    color: #adb5bd;
    margin: 0 0.25rem;
}

.breadcrumb-current {
    color: #6c757d;
    font-weight: 500;
}

/* 页面头部 */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.page-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-description {
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
    opacity: 0.9;
}

.page-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* 筛选区域 */
.filter-section {
    background: white;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* 搜索区域 */
.search-area {
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-main {
    width: 100%;
    padding: 0.875rem 3rem 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input-main:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn-main {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn-main:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 筛选控件 */
.filter-controls {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    white-space: nowrap;
}

.filter-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-reset {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-reset:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

/* 排序控件 */
.sort-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.sort-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
}

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    background: white;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 文献列表区域 */
/* 文献列表区域 */
.literature-section {
    padding: 40px 0;
    background: #f8f9fa;
}

.literature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.result-info {
    font-size: 18px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-text {
    color: #666;
}

.result-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.literature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* 文献条目 */
.literature-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    position: relative;
    margin-bottom: 0.75rem;
}

.literature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

.literature-item:hover {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
    cursor: pointer;
    border-color: rgba(102, 126, 234, 0.2);
}

.literature-item:hover::before {
    width: 6px;
}

/* 文献内容区域 */
.literature-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

/* 第一行：文献标题 */
.literature-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
    margin-bottom: 0.5rem; /* 增加标题和下方内容的垂直间距 */
}

.title-link {
    color: #1a202c;
    text-decoration: none;
    transition: color 0.3s ease;
}

.title-link:hover {
    color: #667eea;
}

/* 第二行：期刊名称和作者 */
.literature-journal-authors {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    flex-wrap: nowrap;
    margin-bottom: 0.5rem; 
}

/* 第三行：年份、IF、货号 */
.literature-details {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.8rem;
    flex-wrap: nowrap;
    justify-content: flex-start;
    white-space: nowrap;
    overflow: hidden;
}

.journal-name {
    font-weight: 600;
    color: #2d3748;
    background: #f7fafc;
    padding: 0.25rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
}

.authors {
    color: #4a5568;
    font-style: italic;
}

.year {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.8rem;
}

.impact-factor {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.8rem;
}

.product-info {
    color: #4a5568;
    font-weight: 500;
    display: inline;
    white-space: nowrap;
}

.product-code {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-left: 0.3rem;
    display: inline;
    white-space: nowrap;
}

.product-code:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}



/* 分页样式 */
.pagination-section {
    margin-top: 2rem;
    text-align: center;
}

.pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #4a5568;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.pagination-number {
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

.pagination-number.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.pagination-info {
    color: #6c757d;
    font-size: 0.875rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .literature-item {
        padding: 0.75rem 1rem;
    }

    .literature-journal-authors {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .literature-details {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .search-input-main {
        padding: 0.75rem 2.5rem 0.75rem 0.875rem;
        font-size: 0.875rem;
    }
    
    .page-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-controls {
        padding: 0 1rem;
    }

    .literature-title {
        font-size: 1rem;
    }

    .literature-journal-authors,
    .literature-details {
        font-size: 0.8rem;
    }

    .product-code {
        font-size: 0.65rem;
        padding: 0.1rem 0.4rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .pagination-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .pagination-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
} 

/* PHPCMS Paginator Styles */
#pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

#pages a, #pages span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border: 1px solid #e2e8f0;
    background: white;
    color: #4a5568;
    border-radius: 6px;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#pages a:hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
}

#pages span {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    cursor: default;
}

#pages a.a1:first-child {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border-color: transparent;
    font-weight: 600;
    padding: 0 1rem;
    cursor: default;
    pointer-events: none;
}

#pages a.a1:not(:first-child) {
    background: white;
    border-color: #e2e8f0;
    color: #4a5568;
}

#pages a.a1:not(:first-child):hover {
    background: #f7fafc;
    border-color: #667eea;
    color: #667eea;
} 