/* 文章详情页样式 */

/* 文章头部区域 */
.article-header-section {
    background: var(--light-secondary);
    border-bottom: 1px solid var(--border-color);
}

.article-meta {
    padding: 1rem 0;
}

.article-type-badge .badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.article-dates {
    margin-top: 0.5rem;
}

.article-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.article-actions .btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    font-size: 0.8rem;
    line-height: 1;
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
}

.article-actions .btn i {
    font-size: 1rem;
    margin: 0;
}

/* 文章标题 */
.article-title-main {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

/* 作者信息 */
.article-authors {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.authors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.affiliation-number {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
    margin-left: 0.2rem;
}

.affiliations-list {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
}

.affiliation-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.affiliation-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1;
}

/* 联系信息 */
.contact-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.contact-email-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-email-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Footer联系人信息 - 独立样式，避免冲突 */
.footer-contact-info {
    /* 重置继承的样式 */
    display: block !important;
    align-items: unset !important;
}

.footer-contact-info p {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    display: block;
}

.footer-icon {
    color: var(--primary-color) !important;
    font-size: 1rem !important;
}

.doi-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.doi-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition);
    font-weight: 400;
    word-break: break-all;
}

.doi-link:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* 文章统计 */
.article-stats {
    background: var(--light-tertiary);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.stat-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 文章内容区域 */
.article-content-section {
    background: var(--light-bg);
}

.article-section {
    margin-bottom: 3rem;
}

.article-section .section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.abstract-content .lead {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.content-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.content-text h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
}

/* 参考文献 */
.references-list {
    background: var(--light-tertiary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.reference-item {
    display: flex;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ref-number {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 0.5rem;
    min-width: 2rem;
}

.ref-text {
    flex: 1;
    color: var(--text-primary);
}

/* 侧边栏 */
.article-sidebar {
    position: sticky;
    top: 180px;
}

.sidebar-card {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.sidebar-card h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Article Actions - 独立的文章操作按钮区域 */
.article-actions-card {
    padding: 1.5rem;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.action-buttons .btn {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.action-buttons .btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
}

.action-buttons .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.article-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 0.9rem;
}

.info-item strong {
    color: var(--text-primary);
    min-width: 80px;
}

.info-item span {
    color: var(--text-secondary);
    text-align: right;
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.related-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-title {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.3rem;
}

.related-title:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.related-articles .related-item .authors {
    font-size: 14px;
}

.journal-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* 发表目标 */
.citation-format {
    background: var(--light-tertiary);
    padding: 1.5rem;
    border-radius: var(--border-radius);
}

.citation-text {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 1rem 0;
}

/* 发表历史 */
.publication-history {
    font-size: 0.9rem;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.history-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.history-item strong {
    color: #334155;
    font-weight: 600;
    flex: 1;
    margin-right: 1rem;
}

.history-item span {
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

/* 封面图通用样式 */
.issue-cover-section,
.journal-cover-section {
    text-align: center;
}

.issue-cover-small .cover-placeholder,
.journal-cover .cover-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.issue-cover-small .cover-placeholder i,
.journal-cover .cover-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.issue-cover-small .cover-placeholder span,
.journal-cover .cover-placeholder span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Issue封面图 - 文章信息区域，增大到绿框尺寸 */
.issue-cover-small {
    width: 100%;
    display: flex;
    justify-content: center;
}

.issue-cover-small .cover-placeholder {
    width: 150px;
    height: 200px;
    flex-shrink: 0;
}

.issue-cover-small .cover-placeholder:hover {
    transform: translateY(-2px);
}

.issue-title {
    text-align: center;
    font-size: 18px;
}

.issue-title .issue-title-link:hover{
    text-decoration: underline;
}

/* 期刊封面图 - 期刊信息区域，增大到充分利用空间 */
.journal-cover {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
}

.journal-cover .cover-placeholder {
    width: 150px;
    height: 200px;
    flex-shrink: 0;
}

/* 期刊详情样式 */
.journal-details {
    text-align: center;
}

.journal-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.journal-title a {
    color: #334155;
    text-decoration: none;
    transition: color 0.3s ease;
}

.journal-title a:hover {
    color: #334155;
    text-decoration: underline;
}

/* 期刊封面链接 */
.journal-cover-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.journal-cover-link:hover {
    transform: translateY(-2px);
}

.journal-cover-link:hover .cover-placeholder {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Issue封面链接 */
.issue-cover-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.issue-cover-link:hover {
    transform: translateY(-2px);
}

.issue-cover-link:hover .cover-placeholder {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.journal-meta {
    text-align: left;
    font-size: 0.85rem;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.meta-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.meta-item strong {
    color: #475569;
    font-weight: 600;
    flex: 1;
    margin-right: 0.5rem;
}

.meta-item span {
    color: #64748b;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-title-main {
        font-size: 2rem;
    }
    
    .article-stats .row {
        gap: 1rem;
    }
    
    .stat-item {
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .article-sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .authors-list {
        gap: 0.8rem;
    }
    
    .author-item {
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .affiliations-list {
        padding-left: 0.5rem;
    }
    
    .affiliation-item {
        gap: 0.3rem;
    }
    
    .keywords-list {
        gap: 0.3rem;
    }
    
    .keyword-tag {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
}

@media (max-width: 576px) {
    .article-title-main {
        font-size: 1.8rem;
    }
    
    .article-actions {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .article-actions .btn {
        flex: 1;
        max-width: 120px;
    }
    
    .info-item {
        gap: 0.3rem;
    }
    
    .info-item span {
        text-align: left;
    }
}
