/* ==========================================
   文献列表页面样式 - lists_literature.css
   与 view_literature.htm 保持一致的现代化风格
   采用移动端优先（Mobile First）响应式设计
   ========================================== */

/* ==========================================
   页面主容器
   ========================================== */
.literature-list-main {
    min-height: 100vh;
    background: var(--bg-secondary);
}

/* ==========================================
   文献列表英雄区域 - 与详情页保持一致
   ========================================== */
.literature-list-hero-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.literature-list-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.literature-list-hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
    max-width: 100%;
    margin: 0;
}

/* 面包屑导航 */
.breadcrumb {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    text-align: left;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #ffffff;
}

/* 英雄区域标题 */
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 英雄区域描述 */
.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   文献列表内容区域
   ========================================== */
.literature-list-section {
    padding: 3rem 0;
}

/* 已废弃：原section-header样式保留用于其他页面 */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-light);
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem 0;
}

.section-header h2 i {
    color: var(--primary-color);
    font-size: 2rem;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ==========================================
   栏目分类标签 - 简洁文本式导航
   ========================================== */
.category-tabs {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.category-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: flex-start;
    align-items: center;
}

/* 第一行：主分类（大字） */
.category-tabs-wrapper.primary-tabs {
    margin-bottom: 0.5rem;
}

/* 第二行：次级分类（小字） */
.category-tabs-wrapper.secondary-tabs {
    gap: 1.2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.category-tab {
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #999999;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    line-height: 1.5;
    padding-bottom: 0.25rem;
    border-bottom: 3px solid transparent;
}

.category-tab:hover {
    color: #333333;
}

.category-tab.active {
    color: #000000;
    font-weight: 700;
    border-bottom-color: #000000;
}

/* 第二行小字标签样式 */
.category-tab-small {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    line-height: 1.5;
}

.category-tab-small:hover {
    color: #333333;
}

.category-tab-small.active {
    color: #000000;
    font-weight: 600;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.2rem;
}

/* 手机端优化 (<768px) */
@media (max-width: 767px) {
    .category-tabs {
        padding-bottom: 1rem;
    }

    .category-tabs-wrapper {
        justify-content: flex-start;
        gap: 1.25rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .category-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        font-size: 1.25rem;
        flex-shrink: 0;
    }

    .category-tab-small {
        font-size: 1rem;
        flex-shrink: 0;
    }

    .category-tabs-wrapper.secondary-tabs {
        gap: 0.8rem;
        padding-top: 0.8rem;
    }
}

/* ==========================================
   文献列表网格
   ========================================== */
.literature-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* ==========================================
   文献卡片 - 现代化设计
   ========================================== */
.literature-item {
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    transition: border-color 0.3s ease;
}

.literature-item:hover {
    border-color: var(--primary-color);
}

.literature-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* 文献封面区域 */
.literature-cover {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 宽高比 */
    background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
    overflow: hidden;
}

.literature-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 占位符图标 */
.literature-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

.literature-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.4);
}


/* 文献信息区域 */
.literature-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* 分类徽章 */
.literature-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: var(--primary-alpha-15);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 6px;
    margin-bottom: 1rem;
    align-self: flex-start;
    border: 1px solid var(--primary-alpha-30);
    transition: all 0.2s ease;
}

.literature-category-badge i {
    font-size: 0.75rem;
}

.literature-item:hover .literature-category-badge {
    background: var(--primary-alpha-30);
    border-color: var(--primary-color);
}

/* 文献标题 */
.literature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
    transition: color 0.3s ease;
}

.literature-item:hover .literature-title {
    color: var(--primary-color);
}

/* 文献副标题 */
.literature-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.85rem;
}

/* 文献元信息 */
.literature-meta {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 左右分布 */
    gap: 1rem; /* 左右间距 */
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.literature-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* 图标始终显示，不缩小 */
.literature-meta .meta-item i {
    font-size: 0.85rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

/* 第一个meta-item（期刊名）：允许省略 */
.literature-meta .meta-item:first-child {
    flex: 1;
    min-width: 0;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
}

/* 图标浮动显示在左侧 */
.literature-meta .meta-item:first-child i {
    float: left;
    margin-right: 0.4rem;
    line-height: 1.5;
}

/* 最后一个meta-item（IF值）：保持flex显示，固定宽度 */
.literature-meta .meta-item:last-child {
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
}

.literature-meta .meta-highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.literature-meta .meta-highlight i {
    color: var(--primary-color);
}

/* 隐藏分隔符（已不需要） */
.literature-meta .meta-divider {
    display: none;
}

/* 文献底部信息 */
.literature-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.meta-date,
.meta-views {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.meta-date i,
.meta-views i {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================
   响应式设计 - Mobile First
   断点说明：
   - 手机端：<768px（默认样式 + @media (max-width: 767px)）
   - iPad端：768px-1023px（@media (min-width: 768px)）
   - PC端：≥1024px（@media (min-width: 1024px)）
   ========================================== */

/* 手机端：<768px */
@media (max-width: 767px) {
    .literature-list-hero-section {
        padding: 80px 0 40px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .literature-list-section {
        padding: 2rem 0;
    }

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

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header h2 i {
        font-size: 1.5rem;
    }

    .literature-list {
        gap: 1.5rem;
    }

    .literature-info {
        padding: 1.25rem;
    }

    .literature-title {
        font-size: 1.1rem;
        min-height: auto;
    }

    .literature-subtitle {
        font-size: 0.9rem;
        min-height: auto;
    }

    .view-details {
        font-size: 0.85rem;
        padding: 0.6rem 1.25rem;
    }
}

/* iPad端：768px - 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    .literature-list-hero-section {
        padding: 120px 0 70px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-description {
        font-size: 1.15rem;
    }

    .literature-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .literature-info {
        padding: 1.75rem;
    }

    .literature-title {
        font-size: 1.3rem;
    }

    .literature-subtitle {
        font-size: 1rem;
    }
}

/* PC端：≥1024px */
@media (min-width: 1024px) {
    .literature-list-hero-section {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-description {
        font-size: 1.2rem;
    }

    .literature-list-section {
        padding: 4rem 0;
    }

    .literature-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }

    .literature-info {
        padding: 2rem;
    }

    .literature-title {
        font-size: 1.35rem;
    }

    .literature-subtitle {
        font-size: 1.05rem;
    }
}
