/* 稿件详情页样式 */

.submission-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 15px;
    box-sizing: border-box;
}

.submission-detail-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    box-sizing: border-box;
}

/* 左侧边栏 */
.submission-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-block {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.sidebar-block:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.sidebar-block h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #2563eb;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-block h3 i {
    color: #2563eb;
    font-size: 16px;
}

.sidebar-block p,
.sidebar-block a {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 10px;
    word-wrap: break-word;
    word-break: break-all;
    overflow-wrap: break-word;
}

.sidebar-block a {
    color: #2563eb;
    text-decoration: none;
}

.sidebar-block a:hover {
    text-decoration: underline;
}

/* 图表区域 */
.figure-container {
    margin-bottom: 20px;
    text-align: center;
}

.figure-container img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.figure-label {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* 按钮组 */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-download,
.btn-view-pdf {
    display: block;
    padding: 12px 18px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-download {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
}

.btn-download:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.btn-view-pdf {
    background-color: #fff;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.btn-view-pdf:hover {
    background-color: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

/* 文章标题 - 放在最上面 */
.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #002b5c;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

/* 主内容区 */
.submission-main-content {
    flex: 1;
    min-width: 0;
}

/* 作者和单位 */
.authors-section {
    margin-bottom: 30px;
}

.author-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-left: 35px;
}

.author-item:last-child {
    border-bottom: none;
}

.author-item::before {
    content: "\f007";
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    top: 0;
    color: #2563eb;
    font-size: 22px;
    font-weight: normal;
}

.author-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 20px;
}

.author-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    color: #2563eb;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.author-icon-link:hover {
    background-color: #e3f2fd;
    color: #1976d2;
}

.author-icon-link i {
    font-size: 16px;
    display: inline-block;
    line-height: 1;
}

.author-orcid-link {
    padding: 2px;
}

.author-orcid-link img {
    display: block;
    width: 20px;
    height: 20px;
}

.author-affiliation {
    color: #2563eb;
    font-size: 16px;
    line-height: 1.6;
    margin-left: 0;
    margin-top: 8px;
    font-weight: 500;
}

/* 日期信息 */
.publication-dates {
    margin-bottom: 40px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #2563eb;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.publication-dates .dates-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    font-size: 14px;
    color: #555;
}

.publication-dates .date-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.publication-dates strong {
    color: #333;
    font-weight: 600;
}

/* Abstract */
.abstract-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    color: #002b5c;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #2563eb;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #2563eb;
    font-size: 20px;
}

.abstract-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

/* Keywords */
.keywords-section {
    margin-bottom: 40px;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.keyword-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f4ff 100%);
    color: #1976d2;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #bbdefb;
    font-weight: 500;
}

.keyword-tag:hover {
    background: linear-gradient(135deg, #bbdefb 0%, #e3f2fd 100%);
    color: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(25, 118, 210, 0.2);
}

/* Full Text */
.full-text-section {
    margin-bottom: 30px;
}

.full-text-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.full-text-content p {
    margin-bottom: 15px;
}

.full-text-content h1,
.full-text-content h2,
.full-text-content h3,
.full-text-content h4 {
    color: #002b5c;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* References */
.references-section {
    margin-bottom: 40px;
}

.references-list {
    list-style: decimal;
    padding-left: 25px;
    margin-top: 15px;
}

.references-list li {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.7;
    color: #444;
}

/* How to Cite */
.citation-text {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    font-style: italic;
}

/* Issue Info */
.issue-info {
    font-size: 14px;
    color: #555;
}

/* Copyright */
.copyright-text {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.license-info {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.license-icon {
    font-size: 18px;
}

.license-text {
    font-size: 13px;
    color: #555;
}

/* 图片预览模态框 */
.image-preview-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.image-preview-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh;
    margin-top: 50px;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-preview-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10001;
}

.image-preview-close:hover,
.image-preview-close:focus {
    color: #fff;
    text-decoration: none;
}

.image-preview-caption {
    margin: 20px auto;
    text-align: center;
    color: #fff;
    font-size: 18px;
    max-width: 90%;
}

.preview-image {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.preview-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 全局重置，防止溢出 */
    * {
        max-width: 100%;
    }
    
    /* 重置容器样式 */
    .submission-detail-container {
        padding: 0px 10px !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* 重置面包屑容器的 padding */
    .container {
        padding: 15px 10px !important;
        max-width: 100% !important;
        box-sizing: border-box;
        margin: 0 !important;
        width: 100% !important;
    }
    
    .article-title {
        font-size: 24px;
        margin-bottom: 20px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .submission-detail-row {
        flex-direction: column;
        gap: 20px;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .submission-sidebar {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 30px;
        box-sizing: border-box;
        padding: 0;
        flex-shrink: 1;
    }
    
    .submission-main-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 0;
    }
    
    .sidebar-block {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 15px !important;
        margin-left: 0;
        margin-right: 0;
    }
    
    .figure-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .figure-container img {
        max-width: 100% !important;
        height: auto;
        width: 100% !important;
    }
    
    .action-buttons {
        flex-direction: row;
        width: 100%;
        box-sizing: border-box;
    }
    
    .btn-download,
    .btn-view-pdf {
        flex: 1;
        box-sizing: border-box;
        min-width: 0;
    }
    
    /* 确保所有文本内容不溢出 */
    .sidebar-block p,
    .sidebar-block a,
    .sidebar-block h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .author-name-row {
        flex-wrap: wrap;
    }
    
    .image-preview-close {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
    
    .image-preview-content {
        max-width: 95%;
        margin-top: 40px;
    }
    
    .image-preview-caption {
        font-size: 16px;
        margin: 15px auto;
    }
}

