/* 文章详情页特定样式 */
.article-detail {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(50, 50, 93, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    margin-bottom: 50px;
}

.article-cover-container {
    position: relative;
    overflow: hidden;
    height: 400px;
}

.article-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.article-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 60px 40px 40px;
    color: white;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.article-content {
    padding: 40px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-meta .badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.article-meta span:not(.badge) {
    color: #95a5a6;
    font-size: 14px;
    font-weight: 500;
}

.article-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.article-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #667eea;
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-back {
    background: transparent;
    color: #7f8c8d;
    border: 2px solid rgba(127, 140, 141, 0.3);
}

.btn-back:hover {
    background: rgba(127, 140, 141, 0.1);
    transform: translateY(-2px);
}

/* 相关文章部分 */
.related-section {
    margin-top: 60px;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.related-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(50, 50, 93, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(50, 50, 93, 0.15), 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.related-cover {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.related-info {
    padding: 20px;
}

.related-title-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 13px;
    color: #95a5a6;
}

/* 加载和错误状态 */
.loading, .error-box {
    text-align: center;
    padding: 80px;
    color: #6c757d;
    font-size: 18px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(50, 50, 93, 0.1);
    margin: 20px 0;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loading-spinner {
    font-size: 2.5rem;
    color: #667eea;
}

.error-box {
    background: #fff5f5;
    border: 1px solid rgba(245, 87, 108, 0.2);
}

.error-box h3 {
    color: #f5576c;
    margin: 15px 0;
}

.error-box p {
    color: #666;
    margin-bottom: 25px;
}

/* 无障碍支持 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* 响应式设计 - 文章页面 */
@media (max-width: 1200px) {
    .article-title {
        font-size: 2.4rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .article-cover-container {
        height: 350px;
    }
    
    .article-title {
        font-size: 2.2rem;
    }
    
    .article-content {
        padding: 30px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .article-cover-container {
        height: 300px;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-cover-overlay {
        padding: 40px 25px 25px;
    }
    
    .related-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 15px;
    }
    
    .related-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .article-cover-container {
        height: 250px;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
}