/* 大型搜索区域样式 */
.hero-search {
    background-color: #f1f1f1;
    height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* 搜索表单样式 */
.hero-search form {
    width: 100%;
    margin-bottom: 20px;
}

.hero-search::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(241,241,241,0.9) 0%, rgba(241,241,241,0.95) 100%);
    z-index: 1;
}

.search-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.search-content h1 {
    font-size: 42px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.search-content p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.search-box-large {
    display: flex;
    margin-bottom: 20px;
    height: 56px;
}

.search-box-large input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px 0 0 4px;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-btn-large {
    background-color: #3498db;
    padding: 0 30px;
    font-size: 16px;
    border-radius: 0 4px 4px 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.search-tags span {
    color: #666;
}

.search-tags a {
    color: #3498db;
    background-color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-tags a:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(52, 152, 219, 0.2);
}

/* 期刊分类区域样式 */
.journal-categories {
    padding: 60px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.section-header p {
    color: #666;
    font-size: 16px;
}

.category-section {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.category-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.category-header h3 {
    font-size: 22px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-more {
    color: #3498db;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.view-more:hover {
    color: #2980b9;
}

.category-journals {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.journal-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    text-align: center;
    padding: 15px;
}

.journal-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.journal-item .journal-cover {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.journal-item h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.journal-item h4 a {
    color: #2c3e50;
    transition: color 0.3s;
}

.journal-item h4 a:hover {
    color: #3498db;
}

.journal-item p {
    color: #666;
    font-size: 14px;
}

/* 论文和文章列表样式 */
.research-content {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.research-content .content-wrapper {
    display: flex;
    gap: 40px;
}

.papers-section {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.papers-section .section-header h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 24px;
}

.papers-list {
    margin-bottom: 20px;
}

.paper-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: transform 0.2s;
}

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

.paper-item:hover {
    transform: translateX(5px);
}

.paper-item h4 {
    margin-bottom: 5px;
}

.paper-item h4 a {
    color: #2c3e50;
    font-size: 16px;
    transition: color 0.3s;
}

.paper-item h4 a:hover {
    color: #3498db;
}

.paper-item p {
    color: #666;
    font-size: 14px;
}

.paper-item p i {
    color: #3498db;
    margin-right: 5px;
}

.articles-section {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.articles-section .section-header h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 24px;
}

.articles-list {
    margin-bottom: 20px;
}

.article-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: transform 0.2s;
}

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

.article-item:hover {
    transform: translateX(5px);
}

.article-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.article-info {
    flex: 1;
}

.article-info h4 {
    margin-bottom: 8px;
}

.article-info h4 a {
    color: #2c3e50;
    font-size: 16px;
    transition: color 0.3s;
}

.article-info h4 a:hover {
    color: #3498db;
}

.article-info p {
    color: #666;
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.5;
}

.section-footer {
    text-align: right;
    margin-top: 20px;
}

/* 出版机构列表样式 */
.publishers {
    background-color: #f8f9fa;
    padding: 60px 0;
}

.publishers-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 30px 0;
    justify-content: center;
}

.publisher-item {
    flex: 1 1 280px;
    max-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.publisher-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.publisher-logo {
    max-width: 150px;
    max-height: 80px;
    margin: 0 auto 20px;
    object-fit: contain;
}

.publisher-item h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: #333;
}

.publisher-item p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* 确保导航在响应式状态下正常显示 */
.nav-links {
    transition: all 0.3s ease;
}

.user-actions {
    transition: all 0.3s ease;
}

/* 关于我们区域样式 */
.about-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.about-section .section-header h2 {
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .search-content h1 {
        font-size: 36px;
    }
    
    .hero-search {
        height: 350px;
    }
    
    .research-content .content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .category-journals {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .journal-item .journal-cover {
        height: 240px;
    }
    
    .publishers-slider {
        justify-content: center;
    }
    
    .publisher-item {
        flex: 1 1 250px;
    }
}

@media (max-width: 768px) {
    .search-content h1 {
        font-size: 28px;
    }
    
    .search-content p {
        font-size: 16px;
    }
    
    .hero-search {
        height: 300px;
    }
    
    .search-box-large {
        flex-direction: column;
        height: auto;
    }
    
    .search-box-large input, .search-btn-large {
        width: 100%;
        border-radius: 4px;
    }
    
    .search-btn-large {
        margin-top: 10px;
        height: 50px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .category-journals {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    .journal-item .journal-cover {
        height: 200px;
    }
    
    .article-item {
        flex-direction: column;
        gap: 10px;
    }
    
    .article-image {
        width: 100%;
        height: 180px;
    }
    
    /* 确保移动端导航正确显示 */
    .menu-toggle {
        display: block !important;
    }
    
    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        flex-direction: column;
        padding: 20px 0;
    }
    
    .nav-links.show {
        display: flex !important;
    }
    
    .user-actions {
        display: none !important;
        position: absolute;
        top: calc(100% + 85px);
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        flex-direction: column;
        padding: 20px;
        gap: 10px;
    }
    
    .user-actions.show {
        display: flex !important;
    }
    
    .publisher-item {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .search-content h1 {
        font-size: 24px;
    }
    
    .hero-search {
        height: 250px;
        padding: 20px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .category-journals {
        grid-template-columns: 1fr;
    }
    
    .journal-item .journal-cover {
        height: 250px;
    }
    
    .papers-section, .articles-section {
        padding: 20px;
    }
    
    .papers-section .section-header h2,
    .articles-section .section-header h2 {
        font-size: 20px;
    }
    
    .section-footer {
        text-align: center;
    }
}