/* 文章头部 */
.article-header {
    padding: 40px 50px 30px;
    background: linear-gradient(135deg, #FAFBFC 0%, #F8F9FA 100%);
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.article-category {
    margin-bottom: 16px;
}

.category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-primary-light) 100%);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 20px;
    position: relative;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item i {
    color: var(--theme-primary);
}

/* 文章正文 */
.article-content {
    padding: 50px;
    line-height: 1.8;
}

/* 附件下载 */
.attachments-section {
    padding: 40px 50px;
    border-top: 1px solid var(--border-light);
    background: var(--white);
}

.attachments-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
}

.attachments-title i {
    color: var(--theme-primary);
    font-size: 16px;
}

.attachments-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--theme-primary);
}

.attachments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.attachment-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 81, 142, 0.02) 0%, rgba(0, 81, 142, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.attachment-item:hover::before {
    opacity: 1;
}

.attachment-item:hover {
    border-color: var(--theme-primary);
    transform: translateY(-2px);
}

.attachment-item:hover .attachment-icon {
    color: var(--theme-primary);
    transform: scale(1.1);
}

.attachment-item:hover .attachment-action {
    color: var(--theme-primary);
    transform: scale(1.1);
}

.attachment-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 81, 142, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary);
    font-size: 20px;
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.attachment-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.attachment-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    transition: color 0.3s;
}

.attachment-item:hover .attachment-name {
    color: var(--theme-primary);
}

.attachment-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.attachment-size {
    font-weight: 500;
}

.attachment-downloads {
    display: flex;
    align-items: center;
    gap: 6px;
}

.attachment-downloads i {
    font-size: 12px;
    color: var(--theme-primary);
}

.download-count {
    font-weight: 600;
    color: var(--theme-primary);
}

.attachment-action {
    width: 40px;
    height: 40px;
    background: rgba(0, 81, 142, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary);
    font-size: 16px;
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* 内容分页导航 */
.content-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 30px 50px;
    border-top: 1px solid var(--border-light);
    background: #FAFBFC;
}

.page-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 80px;
    justify-content: center;
}

.page-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: rgba(0, 81, 142, 0.02);
}

.page-btn i {
    font-size: 12px;
}

.page-info {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
    padding: 0 10px;
}

/* 文章底部 */
.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    border-top: 1px solid var(--border-light);
    background: #FAFBFC;
    flex-wrap: wrap;
    gap: 20px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tag-label {
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}

.tag {
    padding: 4px 12px;
    background: rgba(0, 81, 142, 0.08);
    color: var(--theme-primary);
    font-size: 12px;
    font-weight: 600;
    border-radius: 16px;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--theme-primary);
    color: var(--white);
}

.article-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-gray);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.action-btn:hover {
    border-color: var(--theme-primary);
    color: var(--theme-primary);
    background: rgba(0, 81, 142, 0.02);
}

/* 上一页/下一页导航 */
.article-nav {
    display: flex;
    justify-content: space-between;
    padding: 30px 50px;
    border-top: 1px solid var(--border-light);
    background: var(--white);
    gap: 20px;
}

.nav-prev,
.nav-next {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    max-width: 45%;
    position: relative;
    overflow: hidden;
}

.nav-prev::before,
.nav-next::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 81, 142, 0.02) 0%, rgba(0, 81, 142, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.nav-prev:hover::before,
.nav-next:hover::before {
    opacity: 1;
}

.nav-prev:hover,
.nav-next:hover {
    border-color: var(--theme-primary);
    transform: translateY(-2px);
}

.nav-prev:hover .nav-icon,
.nav-next:hover .nav-icon {
    color: var(--theme-primary);
    transform: scale(1.1);
}

.nav-prev:hover .nav-title,
.nav-next:hover .nav-title {
    color: var(--theme-primary);
}

.nav-icon {
    width: 40px;
    height: 40px;
    background: rgba(0, 81, 142, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary);
    font-size: 16px;
    transition: all 0.3s;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.nav-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.nav-next {
    text-align: right;
}

.nav-next .nav-content {
    align-items: flex-end;
}


/* 响应式设计 */
@media (max-width: 1200px) {
    .article-content,
    .article-footer,
    .article-nav,
    .content-pagination,
    .attachments-section {
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .article-header {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 20px;
    }
    
    .article-content,
    .article-footer,
    .article-nav,
    .content-pagination,
    .attachments-section {
        padding: 20px;
    }
    
    .article-title {
        font-size: 24px;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .article-actions {
        width: 100%;
        justify-content: center;
    }
    
    .article-nav {
        flex-direction: column;
        gap: 16px;
    }
    
    .nav-prev,
    .nav-next {
        max-width: 100%;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .nav-next .nav-content {
        align-items: flex-start;
    }
    
    .content-pagination {
        gap: 15px;
    }
    
    .page-btn {
        padding: 6px 12px;
        font-size: 12px;
        min-width: 70px;
    }
    
    .page-info {
        font-size: 12px;
    }
    
    .attachment-item {
        padding: 16px;
        gap: 12px;
    }
    
    .attachment-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .attachment-name {
        font-size: 15px;
    }
    
    .attachment-meta {
        gap: 16px;
        font-size: 12px;
    }
    
    .attachment-action {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .article-header,
    .article-content,
    .article-footer,
    .article-nav,
    .content-pagination,
    .attachments-section {
        padding: 15px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .nav-prev,
    .nav-next {
        padding: 16px 20px;
    }
    
    .nav-icon {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .nav-title {
        font-size: 14px;
    }
    
    .content-pagination {
        gap: 10px;
    }
    
    .page-btn {
        padding: 5px 10px;
        font-size: 11px;
        min-width: 60px;
        gap: 6px;
    }
    
    .page-info {
        font-size: 11px;
        padding: 0 5px;
    }
    
    .attachment-item {
        padding: 12px;
        gap: 10px;
    }
    
    .attachment-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .attachment-name {
        font-size: 14px;
    }
    
    .attachment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 11px;
    }
    
    .attachment-action {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .attachments-title {
        font-size: 16px;
    }
}

/* 打印样式 */
@media print {
    .top-bar,
    .main-header,
    .nav-menu,
    .breadcrumb-nav,
    .sidebar-nav,
    .article-footer,
    .article-nav,
    .content-pagination,
    .attachments-section,
    .footer {
        display: none;
    }
    
    .content-main {
        grid-template-columns: 1fr;
        padding: 0;
        max-width: none;
        margin: 0;
    }
    
    .content-area {
        border: none;
    }
    
    .article-header {
        border-bottom: 2px solid #000;
    }
    
    .article-title {
        color: #000;
    }
    
    .article-content {
        padding: 20px 0;
    }
}