/**
 * 文章详情页样式
 * 从 article.php 提取的内联样式
 */

/* 文章详情页样式 - 使用更具体的选择器避免冲突 */
.article-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

.article-detail-container .article-content-wrapper {
    margin-bottom: 60px;
}

.article-detail-container .article-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 0;
    border: none;
}

.article-detail-container .article-meta-top {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.article-detail-container .article-category-badge {
    background: rgba(52, 112, 255, 0.1);
    color: var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
}

.article-detail-container .article-main-title {
    font-size: 42px;
    line-height: 1.2;
    margin: 0 0 20px 0;
    padding: 0;
    color: var(--primary-color);
    border: none;
}

.article-detail-container .article-meta-bottom {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.article-detail-container .article-featured-image-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.article-detail-container .article-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 文章正文排版优化 */
.article-detail-container .article-body-content {
    font-size: 18px;
    line-height: 1.8;
    color: #374151;
}

.article-detail-container .article-body-content p {
    margin-bottom: 25px;
}

.article-detail-container .article-body-content h2 {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0;
    color: var(--primary-color);
    border: none;
}

.article-detail-container .article-body-content h3 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 0;
    border: none;
}

.article-detail-container .article-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-detail-container .article-footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 20px;
}

.article-detail-container .tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: white;
}

.article-detail-container .tag-pill.featured { background: #00d6b9; }
.article-detail-container .tag-pill.hot { background: #ef4444; }

.article-detail-container .share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-detail-container .share-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 5px;
}

.article-detail-container .share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
    border: none;
    cursor: pointer;
}

.article-detail-container .share-btn:hover { transform: translateY(-3px); }
.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #1da1f2; }
.share-btn.in { background: #0077b5; }
.share-btn.copy { background: var(--text-light); }

/* 文章导航 */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e5e7eb;
}

.article-navigation .nav-link {
    padding: 20px 24px;
    background: #f9fafb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.article-navigation .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color) 0%, rgba(52, 112, 255, 0.1) 100%);
    transition: width 0.4s ease;
    z-index: 0;
}

.article-navigation .nav-link:hover::before {
    width: 100%;
}

.article-navigation .nav-link:hover {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.article-navigation .nav-link.prev {
    text-align: left;
}

.article-navigation .nav-link.next {
    text-align: right;
}

.article-navigation .nav-link > * {
    position: relative;
    z-index: 1;
}

.article-navigation .nav-label {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.article-navigation .nav-link:hover .nav-label {
    color: var(--accent-color);
}

.article-navigation .nav-link.prev .nav-label {
    justify-content: flex-start;
}

.article-navigation .nav-link.next .nav-label {
    justify-content: flex-end;
}

.article-navigation .nav-label svg {
    transition: transform 0.3s;
}

.article-navigation .nav-link.prev:hover .nav-label svg {
    transform: translateX(-4px);
}

.article-navigation .nav-link.next:hover .nav-label svg {
    transform: translateX(4px);
}

.article-navigation .nav-title {
    font-weight: 600;
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.article-navigation .nav-link:hover .nav-title {
    color: var(--accent-color);
}

.article-navigation .nav-spacer {
    /* 占位元素，保持布局平衡 */
    display: block;
}

.section-subtitle {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-detail-container .article-main-title { 
        font-size: 32px; 
    }
    
    .article-navigation { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    
    .article-navigation .nav-link.next { 
        text-align: left; 
    }
    
    .article-detail-container .article-footer-section { 
        flex-direction: column; 
        align-items: flex-start; 
    }
}
