/* 文章页面增强样式 */

/* 文章卡片优化 */
.article-detail-card {
    position: relative;
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.article-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.article-detail-card:hover {
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2);
    transform: translateY(-8px);
}

/* 文章图片区域 */
.article-detail-image {
    position: relative;
    overflow: hidden;
}

.article-detail-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.article-detail-card:hover .article-detail-image::after {
    opacity: 1;
}

/* 文章内容区域 */
.article-detail-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to bottom, rgba(240, 253, 244, 0.3) 0%, var(--color-white) 100%);
}

/* 文章元信息 */
.article-detail-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(16, 185, 129, 0.1);
}

.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-gray-600);
    font-size: 0.9375rem;
    font-weight: 600;
}

.detail-meta-item i {
    color: #10b981;
    font-size: 1.1rem;
}

/* 文章标题 */
.article-detail-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-dark);
    line-height: 1.3;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #1f2937 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 文章摘要 */
.article-detail-excerpt {
    font-size: 1.0625rem;
    color: var(--color-gray-600);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* 文章底部 */
.article-detail-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(16, 185, 129, 0.1);
    gap: 1rem;
    flex-wrap: wrap;
}

/* 标签优化 */
.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    flex: 1;
    min-width: 0;
}

.detail-tag {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #059669;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 12px;
    border: 2px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.detail-tag:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* 阅读更多按钮 */
.article-detail-readmore {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 140px;
    justify-content: center;
}

.article-detail-readmore:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    color: var(--color-white);
}

.article-detail-readmore i {
    transition: transform 0.3s ease;
}

.article-detail-readmore:hover i {
    transform: translateX(5px);
}

/* 筛选栏优化 */
.articles-filter {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 3rem;
    border: 3px solid rgba(16, 185, 129, 0.1);
}

.filter-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(to bottom, #10b981, #059669);
    border-radius: 2px;
}

/* 筛选标签 */
.filter-tab {
    padding: 0.75rem 1.75rem;
    background: var(--color-gray-100);
    color: var(--color-gray-700);
    border: 2px solid transparent;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-tab:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.filter-tab.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.filter-tab.active * {
    color: #ffffff !important;
}

/* 分页优化 */
.articles-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 4rem;
}

.pagination-btn {
    min-width: 48px;
    height: 48px;
    background: var(--color-white);
    border: 2px solid var(--color-gray-300);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-700);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1rem;
}

.pagination-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--color-white);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* 页脚样式 */
.footer-modern {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.footer-brand h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: var(--color-white);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a::before {
    content: '▸';
    color: #10b981;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #10b981;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact i {
    color: #10b981;
    font-size: 1.125rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* 响应式优化 */
@media (max-width: 992px) {
    .article-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .article-detail-image {
        min-height: 280px;
    }
    
    .article-detail-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .article-detail-content {
        padding: 2rem;
    }
    
    .article-detail-title {
        font-size: 1.5rem;
    }
    
    .article-detail-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .article-detail-tags {
        width: 100%;
    }
    
    .article-detail-readmore {
        width: 100%;
        justify-content: center;
    }
    
    .article-detail-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .filter-tabs {
        gap: 0.5rem;
    }
    
    .filter-tab {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}
