/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 全局样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* 头部样式 */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.logo-text p {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

nav ul li a:hover,
nav ul li a.active {
    color: #667eea;
    background-color: rgba(102, 126, 234, 0.1);
}

/* 主要内容区域 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* 页面标题 */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.page-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem;
}

.page-title p {
    font-size: 1.125rem;
    color: #666;
}

.journal-stats {
    font-size: 0.9375rem;
    color: #666;
    font-weight: 500;
    margin-top: 0.5rem;
    text-align: center;
}

.journal-stat-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4b6af4;
    padding: 0 0.25rem;
}

@media (max-width: 768px) {
    .journal-stats {
        font-size: 0.8125rem;
        margin-top: 0.25rem;
    }
    
    .journal-stat-number {
        font-size: 0.9375rem;
        padding: 0 0.125rem;
    }
}

/* 统计信息卡片 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* 论文列表 */
.articles-section {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
}

.article-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem 0;
    transition: background-color 0.3s ease;
}

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

.article-item:hover {
    background-color: #f8f9fa;
}

.article-source {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background-color: #667eea;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #667eea;
}

.article-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.article-description {
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.article-doi {
    font-size: 0.875rem;
}

.article-doi a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: text-decoration 0.3s ease;
}

.article-doi a:hover {
    text-decoration: underline;
}

/* 搜索区域 */
.search-section {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.search-container {
    width: 100%;
    margin: 0 auto;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.search-input-wrapper {
    display: flex;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.search-input {
    width: 100%;
    padding: 1rem 3.5rem 1rem 1.25rem;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background-color: #f9fafb;
    color: #1f2937;
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

.search-input:focus {
    border-color: #667eea;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    background-color: #667eea;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #5a6fd8;
    transform: translateY(-50%) scale(1.05);
}

.search-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-clear {
    font-size: 0.875rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.search-clear:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .search-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .search-form {
        gap: 0.5rem;
    }

    .search-input {
        padding: 0.625rem 2.5rem 0.625rem 0.75rem;
        font-size: 0.8125rem;
    }

    .search-btn {
        width: 2rem;
        height: 2rem;
        right: 0.375rem;
    }

    .search-btn svg {
        width: 16px;
        height: 16px;
    }

    .search-clear {
        font-size: 0.75rem;
    }
}

/* 分类筛选面板 */
.filter-section {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #f0f2f5;
}

.filter-container h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-container h3::before {
    content: "🔍";
    font-size: 1.2rem;
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.filter-form .filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
    padding: 0.5rem 0;
}

.filter-form .filter-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
    min-width: 60px;
    white-space: nowrap;
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
}

.filter-form .filter-select {
    flex: 1;
    min-width: 120px;
    margin: 0;
    padding: 0;
    position: relative;
}

.filter-form .filter-select-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2d3748;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%234a5568" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 100%;
}

.filter-form .filter-select-input option {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* 移动设备上的特殊处理 */
@media (max-width: 768px) {
    .filter-form .filter-select {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 100%;
    }
    
    .filter-form .filter-select-input {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        position: relative;
        z-index: 2;
        min-width: 100%;
        overflow: hidden;
    }
    
    .filter-form .filter-select-input:-webkit-autofill,
    .filter-form .filter-select-input:-webkit-autofill:hover,
    .filter-form .filter-select-input:-webkit-autofill:focus {
        width: 100%;
    }
    
    .filter-form .filter-select-input option {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0.5rem;
        font-size: 0.875rem;
        width: 100%;
        box-sizing: border-box;
    }
}

/* 小屏幕移动设备优化 */
@media (max-width: 480px) {
    .filter-form .filter-select {
        width: 100%;
        max-width: 100%;
    }
    
    .filter-form .filter-select-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        width: 100%;
        max-width: 100%;
        min-width: 100%;
        overflow: hidden;
        background-position: right 0.5rem center;
        background-size: 14px 14px;
    }
    
    .filter-form .filter-select-input option {
        font-size: 0.8125rem;
        padding: 0.375rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
        box-sizing: border-box;
    }
}

/* 超小屏幕移动设备优化 - 确保下拉菜单不会超出屏幕 */
@media (max-width: 375px) {
    .filter-form .filter-select-input {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .filter-form .filter-select-input option {
        font-size: 0.75rem;
        padding: 0.25rem;
    }
}

/* 确保下拉菜单在移动设备上正确显示 */
@media screen and (max-width: 768px) {
    .filter-form .filter-select-input {
        /* 使用vw单位确保宽度相对于视口 */
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        /* 防止下拉菜单超出容器 */
        box-sizing: border-box !important;
        /* 确保文本不会溢出 */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }
    
    /* 确保下拉选项不会超出屏幕 */
    .filter-form .filter-select-input option {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* 使用更小的字体确保内容可见 */
        font-size: 0.75rem !important;
        /* 确保文本不会溢出 */
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        /* 减小内边距 */
        padding: 0.25rem 0.5rem !important;
    }
}

/* 超小屏幕特殊处理 */
@media screen and (max-width: 480px) {
    .filter-form .filter-select-input option {
        font-size: 0.7rem !important;
        padding: 0.2rem 0.4rem !important;
    }
}

/* 自定义下拉菜单样式 */
.custom-select {
    position: relative;
    width: 100%;
    z-index: 1;
}

.custom-select:has(.custom-select-options.active) {
    z-index: 1001;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2d3748;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.custom-select-trigger:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.custom-select-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-arrow {
    flex-shrink: 0;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    box-sizing: border-box;
    margin-top: -2px;
}

.custom-select-options.active {
    display: block;
}

.custom-select-option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
    color: #2d3748;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select-option:hover {
    background-color: #f7fafc;
}

.custom-select-option.selected {
    background-color: #ebf8ff;
    color: #3182ce;
}

/* 移动设备上的自定义下拉菜单优化 */
@media screen and (max-width: 768px) {
    .custom-select {
        position: relative;
        z-index: 100;
    }
    
    .custom-select-trigger {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        position: relative;
        z-index: 101;
    }
    
    .custom-select-options {
        max-height: 180px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 0 0 8px 8px;
        z-index: 1000;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border: 2px solid #e2e8f0;
        border-top: none;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    
    .custom-select-options.active {
        display: block;
    }
    
    .custom-select-option {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
        position: relative;
        z-index: 1001;
    }
}

@media screen and (max-width: 480px) {
    .custom-select-trigger {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .custom-select-option {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

/* 辅助类用于JavaScript控制显示 - 已不再使用，由CSS媒体查询控制 */
/* .mobile-visible { display: flex; } */
/* .mobile-hidden { display: none; } */
/* .desktop-visible { display: block; } */

.filter-form .filter-select-input:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.filter-form .filter-select-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    transform: translateY(-1px);
}

/* 响应式设计 - 移动设备优化 */
@media (max-width: 768px) {
    .filter-form {
        gap: 0.75rem;
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-form .filter-group {
        flex: 1 1 100%;
        min-width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0;
    }
    
    .filter-form .filter-label {
        min-width: 100%;
        font-size: 0.875rem;
        margin-bottom: 0.25rem;
    }
    
    .filter-form .filter-select {
        min-width: 100%;
        width: 100%;
    }
    
    .filter-form .filter-select-input {
        width: 100%;
        max-width: 100%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .filter-actions {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: center;
        margin-top: 0.75rem;
        flex-wrap: wrap;
    }
    
    .filter-btn,
    .reset-btn {
        flex: 1;
        min-width: 140px;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 小屏幕移动设备优化 */
@media (max-width: 480px) {
    .filter-section {
        padding: 1.25rem;
    }
    
    .filter-form {
        gap: 0.625rem;
        padding: 0.875rem;
    }
    
    .filter-form .filter-select-input {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .filter-btn,
    .reset-btn {
        width: 100%;
        min-width: 100%;
        text-align: center;
    }
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.filter-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.filter-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
}

.filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.reset-btn {
    background-color: #ffffff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reset-btn:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    flex: 1;
}

.filter-select-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    color: #2d3748;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-select-input:hover {
    border-color: #cbd5e0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}

.filter-select-input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
    transform: translateY(-1px);
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1rem;
    white-space: nowrap;
    padding: 0.5rem 0;
}

.filter-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.filter-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(66, 153, 225, 0.4);
}

.filter-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.3);
}

.reset-btn {
    background-color: #ffffff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Inter', system-ui, sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.reset-btn:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.reset-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.filter-tag input[type="radio"] {
    display: none;
}

.filter-tag span {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 5px;
    background-color: #f8f9fa;
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.filter-tag:hover span {
    background-color: #e9ecef;
    color: #333;
}

.filter-tag input[type="radio"]:checked + span {
    background-color: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.filter-btn, .reset-btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn {
    background-color: #667eea;
    color: #ffffff;
    border: none;
}

.filter-btn:hover {
    background-color: #5a6fd8;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.reset-btn {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

.reset-btn:hover {
    background-color: #e9ecef;
    color: #333;
}

@media (max-width: 768px) {
    .filter-section {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .filter-container h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .filter-form {
        gap: 0.5rem;
    }

    .filter-group {
        gap: 0.5rem;
        margin-bottom: 0.25rem;
    }

    .filter-label {
        font-size: 0.8125rem;
        min-width: 50px;
    }

    .filter-tags {
        gap: 0.375rem;
    }

    .filter-tag span {
        padding: 0.3125rem 0.625rem;
        font-size: 0.75rem;
    }

    .filter-actions {
        gap: 0.5rem;
        margin-top: 0.5rem;
    }

    .filter-btn, .reset-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
    }

    .footer-section h3 {
        font-size: 1rem;
    }

    .footer-section ul li {
        font-size: 0.8125rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: 0.75rem;
    }
}

/* 页脚样式 */
footer {
    background-color: #3b424f;
    color: #ffffff;
    padding: 3rem 0;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #667eea;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #495057;
    color: #adb5bd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }

    .logo img {
        width: 36px;
        height: 36px;
        margin-right: 0.5rem;
    }

    .logo-text h1 {
        font-size: 1.125rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.25rem;
    }

    nav ul li {
        margin: 0.25rem;
    }

    nav ul li a {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .main-content {
        padding: 0.5rem;
    }

    .page-title {
        margin-bottom: 1rem;
    }

    .page-title h2 {
        font-size: 1.375rem;
        margin-bottom: 0.25rem;
    }

    .page-title p {
        font-size: 0.8125rem;
    }

    .stats-section {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.8125rem;
    }

    .articles-section {
        padding: 0.75rem;
    }
}

/* 分页样式 */
.pagination-section {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-top: 2rem;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: #667eea;
    color: #ffffff;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-btn.active {
    background-color: #667eea;
    color: #ffffff;
    border-color: #667eea;
    cursor: default;
}

.pagination-btn.active:hover {
    transform: none;
    box-shadow: none;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 768px) {
    .pagination-section {
        padding: 0.75rem;
        margin-top: 1rem;
    }

    .pagination-container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .pagination-info {
        font-size: 0.75rem;
    }
    
    .pagination-controls {
        justify-content: center;
        gap: 0.25rem;
    }
    
    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
        padding: 0 0.5rem;
    }

    .pagination-ellipsis {
        font-size: 0.75rem;
    }
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #667eea;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 9999;
}

.back-to-top:hover {
    background-color: #5a6fd8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.back-to-top:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

.journal-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.status-loading {
    color: #667eea;
}

.status-success {
    color: #28a745;
}

.status-error {
    color: #dc3545;
}

.journals-section {
    margin-bottom: 2rem;
}

/* 表格式布局样式 */
.journals-table-header {
    display: flex;
    background: linear-gradient(135deg, #284db4 0%, #3b82f6 100%);
    color: #ffffff !important;
    border-radius: 12px 12px 0 0;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.4);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

.journals-table-header .table-col {
    color: #ffffff !important;
}

.journals-table {
    background-color: #ffffff;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-top: none;
}

.journal-table-row {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.25s ease;
    background-color: #ffffff;
}

.journal-table-row:last-child {
    border-bottom: none;
}

.journal-table-row:hover {
    background-color: #f8fafc;
    transform: translateX(4px);
}

.journal-table-row:nth-child(even) {
    background-color: #fafbfc;
}

.journal-table-row:nth-child(even):hover {
    background-color: #f1f5f9;
}

.table-col {
    padding: 0 0.75rem;
    overflow: hidden;
}

.table-col:first-child {
    padding-left: 0;
}

.table-col:last-child {
    padding-right: 0;
}

.col-name {
    width: 30%;
    font-weight: 600;
    color: #1f2937;
}

.col-discipline {
    width: 40%;
    color: #4b5563;
}

.col-category {
    width: 25%;
    color: #6b7280;
}

.col-action {
    width: 5%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cell-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
}

.visit-icon {
    color: #667eea;
    transition: all 0.3s ease;
    cursor: pointer;
}

.journal-table-row:hover .visit-icon {
    color: #764ba2;
    transform: scale(1.15);
}

/* Tooltip 样式 */
.table-col[title] {
    position: relative;
}

/* 旧的卡片样式保留但不再使用 */
.journals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.journal-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.journal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d1d5db;
}

.journal-card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journal-card-header {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

.journal-header-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.journal-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    text-align: left;
    line-height: 1.4;
    white-space: normal;
    flex: 1;
}

.journal-header-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    flex: 0 0 auto;
}

.journal-meta-item {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.journal-meta-item.language {
    display: none;
}

.journal-meta-item.database {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.journal-card-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journal-tags-section {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.tags-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.tags-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.journal-tag {
    display: inline-block;
    padding: 0.4375rem 0.9375rem;
    background-color: #f9fafb;
    color: #4b5563;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

/* 专业标签颜色 */
.journal-tag.color1 {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.journal-tag.color2 {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.2);
}

.journal-tag.color3 {
    background-color: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.2);
}

.journal-tag.color4 {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.journal-tag.color5 {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.2);
}

.journal-tag.color6 {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    border-color: rgba(139, 92, 246, 0.2);
}

.journal-tag.color7 {
    background-color: rgba(192, 132, 252, 0.1);
    color: #c084fc;
    border-color: rgba(192, 132, 252, 0.2);
}

.journal-tag.color8 {
    background-color: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border-color: rgba(236, 72, 153, 0.2);
}

.journal-tag.color9 {
    background-color: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-color: rgba(14, 165, 233, 0.2);
}

.journal-tag.color10 {
    background-color: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
    border-color: rgba(6, 182, 212, 0.2);
}

/* 分区标签颜色 */
.journal-tag.cat1 {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.2);
}

.journal-tag.cat2 {
    background-color: rgba(249, 115, 22, 0.1);
    color: #f97316;
    border-color: rgba(249, 115, 22, 0.2);
}

.journal-tag.cat3 {
    background-color: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.2);
}

.journal-tag.cat4 {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.info-label {
    font-size: 0.8125rem;
    color: #6b7280;
    font-weight: 500;
    min-width: 60px;
    flex-shrink: 0;
}

.info-text {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 400;
    line-height: 1.5;
}

.journal-card-hint {
    text-align: center;
    padding: 0.5rem;
    background-color: rgba(102, 126, 234, 0.1);
    color: #667eea;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 6px;
}

.journal-card-status {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.875rem;
}

.journal-card-articles {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .journals-grid {
        gap: 0.75rem;
    }

    .journal-card {
        border-radius: 8px;
    }

    .journal-card-content {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .journal-card-header {
        gap: 0.375rem;
        padding-bottom: 0.375rem;
    }

    .journal-card-title {
        font-size: 1rem;
        text-align: left;
        line-height: 1.3;
    }

    .journal-header-meta {
        gap: 0.375rem;
    }

    .journal-meta-item {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }

    .journal-card-details {
        gap: 0.5rem;
    }

    .journal-tags-section {
        gap: 0.375rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .tags-label {
        font-size: 0.75rem;
    }

    .tags-list {
        gap: 0.375rem;
        width: 100%;
    }

    .journal-tag {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }

    .journal-info-item {
        width: 100%;
    }

    /* 表格式布局移动端适配 */
    .journals-table-header {
        padding: 0.75rem 1rem;
        font-size: 0.8125rem;
    }

    .journal-table-row {
        padding: 0.75rem 1rem;
    }

    .table-col {
        padding: 0 0.375rem;
        font-size: 0.8125rem;
    }

    .col-name {
        width: 35%;
    }

    .col-discipline {
        width: 35%;
    }

    .col-category {
        width: 20%;
    }

    .col-action {
        width: 10%;
    }

    .visit-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .journals-table-header {
        padding: 0.625rem 0.75rem;
        font-size: 0.75rem;
    }

    .journal-table-row {
        padding: 0.625rem 0.75rem;
    }

    .table-col {
        font-size: 0.75rem;
    }

    .col-name {
        width: 40%;
    }

    .col-discipline {
        width: 30%;
    }

    .col-category {
        width: 20%;
    }

    .col-action {
        width: 10%;
    }
}

.fetch-btn {
    padding: 0.5rem 1rem;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}

.fetch-btn:hover {
    background-color: #5a6fd8;
}

.fetch-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.journal-articles {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.journal-articles-list h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.journal-article-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.journal-article-item:last-child {
    margin-bottom: 0;
}

.journal-article-item .article-source {
    font-size: 0.875rem;
    color: #667eea;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.journal-article-item .article-title {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.journal-article-item .article-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.journal-article-item .article-title a:hover {
    color: #667eea;
}

.journal-article-item .article-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.journal-article-item .article-authors {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.journal-article-item .article-description {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.journal-article-item .article-doi {
    font-size: 0.875rem;
    color: #667eea;
}

.journal-article-item .article-doi a {
    color: #667eea;
    text-decoration: none;
}

.journal-article-item .article-doi a:hover {
    text-decoration: underline;
}

.no-articles,
.error-message {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.error-message {
    color: #dc3545;
}



.journal-detail {
            max-width: 1200px;
            margin: 20px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .journal-detail-header {
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #e0e0e0;
        }
        .journal-detail-title {
            font-size: 28px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }
        .journal-detail-aliases {
            font-size: 16px;
            color: #666;
            margin-bottom: 15px;
        }
        .journal-detail-info {
            margin-bottom: 30px;
        }
        .info-item {
            margin-bottom: 15px;
        }
        .info-label {
            font-weight: bold;
            color: #555;
            display: inline-block;
            width: 120px;
        }
        .info-value {
            color: #333;
        }
        .journal-detail-description {
            margin-bottom: 30px;
            line-height: 1.6;
        }
        .description-title {
            font-size: 18px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #333;
        }
        .description-content {
            color: #333;
            text-align: justify;
        }
        .journal-tags {
            margin-bottom: 20px;
        }
        .tags-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 10px;
            color: #555;
        }
        .tags-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .tag {
            padding: 5px 12px;
            border-radius: 5px;
            font-size: 14px;
            background-color: #f0f0f0;
            color: #333;
        }
        .journal-detail-footer {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid #e0e0e0;
            color: #999;
            font-size: 14px;
        }
        .homepage-link {
            color: #1890ff;
            text-decoration: none;
        }
        .homepage-link:hover {
            text-decoration: underline;
        }
        .access-btn {
            display: inline-block;
            padding: 8px 16px;
            background-color: #1890ff;
            color: white;
            text-decoration: none;
            border-radius: 4px;
            font-size: 14px;
            font-weight: bold;
            margin-left: 15px;
            white-space: nowrap;
            transition: background-color 0.3s ease;
        }
        .access-btn:hover {
            background-color: #40a9ff;
        }
        .journal-detail-header {
            display: flex;
            align-items: center;
            flex-wrap: wrap;
        }
        .journal-detail-title {
            margin-bottom: 0;
        }

        /* 移动端响应式设计 */
        @media (max-width: 768px) {
            .journal-detail {
                margin: 10px auto;
                padding: 15px;
            }
            .journal-detail-header {
                margin-bottom: 20px;
                padding-bottom: 15px;
                flex-direction: column;
                align-items: flex-start;
            }
            .journal-detail-title {
                font-size: 20px;
                margin-bottom: 10px;
            }
            .access-btn {
                padding: 6px 12px;
                font-size: 12px;
                margin-left: 0;
                margin-top: 5px;
            }
            .journal-detail-aliases {
                font-size: 14px;
                margin-bottom: 10px;
            }
            .journal-detail-info {
                margin-bottom: 20px;
            }
            .info-item {
                margin-bottom: 10px;
            }
            .info-label {
                width: 100px;
                font-size: 14px;
            }
            .info-value {
                font-size: 14px;
            }
            .journal-detail-description {
                margin-bottom: 20px;
            }
            .description-title {
                font-size: 16px;
                margin-bottom: 8px;
            }
            .journal-tags {
                margin-bottom: 15px;
            }
            .tags-title {
                font-size: 14px;
                margin-bottom: 8px;
            }
            .tag {
                padding: 4px 8px;
                font-size: 12px;
                gap: 6px;
            }
            .journal-detail-footer {
                margin-top: 20px;
                padding-top: 15px;
                font-size: 12px;
            }
        }