﻿/* journal-detail.css - 期刊详情页专用样式 */

/* 期刊详情容器 */
.journal-detail-container {
    padding: 1rem 0.5rem;
    max-width: 1400px;
}

/* 期刊信息卡片 */
.journal-info-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #e0e3e7;
    overflow: hidden;
}

.journal-header {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #f1f3f5;
    background: linear-gradient(to right, #f8f9fa, #f1f5f9);
}

.journal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.journal-title-cn {
    display: block;
    font-size: 0.9rem;
    color: #5a6a7e;
    margin-top: 0.3rem;
    font-weight: 500;
}

.journal-meta-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    font-size: 0.9rem;
    color: #4a5568;
    display: flex;
    align-items: center;
}

.meta-label {
    font-weight: 500;
    color: #5a6a7e;
    min-width: 70px;
    display: inline-block;
    margin-right: 0.3rem;
}

.journal-actions {
    margin-top: 1rem;
}

.btn-subscribe {
    min-width: 120px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

.journal-stats-container {
    padding: 0.8rem 1.5rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.journal-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 6px;
    min-width: 100px;
    border: 1px solid #e0e3e7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e88e5;
}

.stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.journal-description {
    padding: 1.2rem 1.5rem;
}

    .journal-description h3 {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2c3e50;
        margin-bottom: 0.8rem;
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 0.5rem;
    }

    .journal-description p {
        color: #4a5568;
        line-height: 1.6;
        font-size: 0.95rem;
        margin-bottom: 0;
    }

/* 期刊内检索框 */
.journal-search-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e0e3e7;
}

/* 主内容区布局 */
.journal-content-area {
    display: flex;
    gap: 1.5rem;
    position: relative;
}

.journal-issue-nav {
    flex: 0 0 280px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: 1px solid #e0e3e7;
    height: fit-content;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.journal-article-list {
    flex: 1;
}

.issue-nav-header {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, #f8f9fa, #f1f5f9);
    position: sticky;
    top: 0;
    z-index: 10;
}

    .issue-nav-header h3 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
        color: #3498db;
    }

.issue-nav-body {
    padding: 0.5rem 0;
}

.year-accordion {
    padding: 0 0.5rem;
}

.year-item, .volume-item {
    margin-bottom: 0.25rem;
}

.year-header, .volume-header {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #34495e;
    transition: all 0.2s;
    border-radius: 4px;
}

.year-header {
    background: rgba(52, 152, 219, 0.1);
    font-weight: 600;
}

    .year-header:hover, .volume-header:hover {
        background-color: #f8f9fa;
    }

    .year-header i, .volume-header i {
        transition: transform 0.2s;
        font-size: 0.8rem;
        color: #7f8c8d;
    }

.year-item.active .year-header i,
.volume-item.active .volume-header i {
    transform: rotate(180deg);
}

.volume-list, .issue-list {
    padding-left: 1rem;
}

.year-item.active .volume-list {
    display: block;
}

.volume-item.active .issue-list {
    display: block;
}

.issue-item {
    display: block;
    padding: 0.6rem 1rem;
    margin: 0.2rem 0;
    color: #4a5568;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

    .issue-item:hover, .issue-item.active {
        background-color: #e3f2fd;
        color: #1a73e8;
    }

/* 年卷期导航样式 */
.year-selector {
    padding: 0 1rem;
}

.year-dropdown {
    border-radius: 20px;
    border: 2px solid #ced4da;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.volume-issue-year {
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.year-title {
    font-weight: 600;
    color: #1e88e5;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 1rem;
}

.volume-item {
    margin-bottom: 1rem;
}

.volume-title {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.issue-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    color: #4a5568;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
    text-align: center;
    border: 1px solid #e9ecef;
}

    .issue-item:hover, .issue-item.active {
        background-color: #e3f2fd;
        color: #1a73e8;
        border-color: #bbdefb;
    }

/* 按钮组 */
.search-buttons1 {
    display: flex;
    gap: 0.75rem;
    min-width: 240px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .journal-detail-container {
        padding: 0.5rem;
    }

    .journal-header {
        padding: 1rem;
    }

    .journal-title {
        font-size: 1.3rem;
    }

    .meta-row {
        gap: 1rem;
    }

    .meta-item {
        font-size: 0.85rem;
    }

    .meta-label {
        min-width: 40px;
    }

    .journal-stats {
        gap: 1rem;
    }

    .stat-item {
        min-width: 80px;
        padding: 0.5rem 0.75rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .journal-content-area {
        flex-direction: column;
    }

    .journal-issue-nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        z-index: 1060;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-radius: 0;
        box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    }

        .journal-issue-nav.show {
            transform: translateX(0);
        }

    .journal-nav-toggle {
        display: flex;
    }

    .journal-article-list {
        width: 100%;
    }

    .issues-grid {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    }

    .issue-item {
        padding: 0.3rem 0.4rem;
        font-size: 0.8rem;
    }
}

/* 紧凑布局调整 */
.search-result-item {
    padding: 0.8rem 1rem;
    margin-bottom: 0.5rem;
}

.result-title {
    font-size: 0.95rem;
}

.result-meta-item {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.result-actions a {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* 期刊导航切换按钮 */
.journal-nav-toggle {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a73e8;
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1050;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .journal-nav-toggle {
        display: flex;
    }
}

/* 移动端导航遮罩 */
.filter-overlay.journal-nav-overlay {
    z-index: 1055;
}


/* 添加在journalview.css中 */

.journal-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.journal-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0;
}

.stat-item {
    text-align: center;
    padding: 0.5rem 1rem;
    background: #fff;
    border-radius: 6px;
    min-width: 80px;
    border: 1px solid #e0e3e7;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1e88e5;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .journal-actions-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .journal-stats {
        width: 100%;
        justify-content: space-between;
    }

    .stat-item {
        min-width: calc(33.33% - 0.7rem);
        padding: 0.5rem;
    }

    .stat-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .stat-item {
        min-width: calc(50% - 0.5rem);
    }
}