/* ====== ARTICLE PAGE EXCLUSIVE STYLES ====== */
/* Article Header */
.article-header {
    background: var(--gradient-light);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/template/giaxi/images/12.jpg') center/cover no-repeat;
    opacity: 0.05;
}

.article-header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.article-header h1 {
    margin-bottom: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    color: var(--dark-secondary);
    font-size: 0.95rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.article-meta-item i {
    color: var(--primary);
}

.article-category {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-top: 1.5rem;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--dark-secondary);
    font-size: 0.95rem;
}

.breadcrumb a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    color: var(--gray);
}

/* Article Content */
.article-content-section {
    background: var(--light);
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Article Content Styling */
.article-content {
    width: 100%;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--dark-secondary);
}

/* 文章标题样式 */
.article-content h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-light);
}

.article-content h2:after {
    display: none;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--dark);
}

.article-content h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.article-content h5 {
    font-size: 1.125rem;
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    color: var(--dark);
    font-weight: 600;
}

/* 段落样式 */
.article-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--dark-secondary);
}

/* 图片样式 */
.article-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-light);
}

.article-content figure {
    margin: 2rem 0;
    text-align: center;
}

.article-content figcaption {
    font-size: 0.875rem;
    color: var(--gray);
    margin-top: 0.5rem;
    font-style: italic;
}

/* 列表样式 */
.article-content ul, 
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.article-content ul li::marker {
    color: var(--primary);
}

/* 引用样式 */
.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--dark);
    background: rgba(0, 102, 204, 0.05);
    padding: 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* 表格样式 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.article-content th, 
.article-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

.article-content th {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    font-weight: 600;
}

.article-content tr:hover {
    background: rgba(0, 102, 204, 0.05);
}

/* 代码块样式 */
.article-content pre {
    background: #1a202c;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.article-content code {
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

/* 高亮样式 */
.article-content .highlight {
    background: linear-gradient(120deg, rgba(255, 235, 59, 0.3) 0%, rgba(255, 235, 59, 0.1) 100%);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    border-left: 4px solid #ffc107;
    margin: 1.5rem 0;
}

/* 文章导航 */
.article-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
    flex-wrap: wrap;
    gap: 1rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    transition: var(--transition);
    max-width: 48%;
    min-width: 200px;
}

.nav-btn:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.nav-btn.prev {
    text-align: left;
}

.nav-btn.next {
    text-align: right;
    margin-left: auto;
}

.nav-btn i {
    color: var(--primary);
    font-size: 1.25rem;
}

.nav-btn-content h4 {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.nav-btn-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--dark);
    font-weight: 600;
    line-height: 1.4;
}

/* 相关文章 */
.related-articles {
    background: var(--light-bg);
    padding-top: 3rem;
}

.related-articles .section-title {
    margin-bottom: 2rem;
}

.related-articles .section-title h2 {
    font-size: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.related-image {
    height: 180px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-category {
    display: inline-block;
    background: rgba(0, 102, 204, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.related-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-content h3 a {
    text-decoration: none;
    color: var(--dark);
    transition: var(--transition);
}

.related-content h3 a:hover {
    color: var(--primary);
}

.related-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 1rem;
}

/* 文章分享 */
.article-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-light);
}

.share-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    font-weight: 500;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.share-btn.linkedin {
    color: #0077B5;
    border-color: rgba(0, 119, 181, 0.3);
}

.share-btn.linkedin:hover {
    background: rgba(0, 119, 181, 0.1);
}

.share-btn.twitter {
    color: #1DA1F2;
    border-color: rgba(29, 161, 242, 0.3);
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.1);
}

.share-btn.facebook {
    color: #4267B2;
    border-color: rgba(66, 103, 178, 0.3);
}

.share-btn.facebook:hover {
    background: rgba(66, 103, 178, 0.1);
}

.share-btn.copy {
    color: var(--primary);
    border-color: rgba(0, 102, 204, 0.3);
}

.share-btn.copy:hover {
    background: rgba(0, 102, 204, 0.1);
}

/* 文章作者信息 */
.article-author {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid var(--gray-light);
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.author-title {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.author-bio {
    color: var(--dark-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Article Page Specific Responsive */
@media (max-width: 1024px) {
    .article-content h2 {
        font-size: 1.75rem;
    }
    
    .article-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-navigation {
        flex-direction: column;
    }
    
    .nav-btn {
        max-width: 100%;
        width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .article-header {
        padding: 3rem 0 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-content h2 {
        font-size: 1.5rem;
    }
    
    .article-content h3 {
        font-size: 1.25rem;
    }
    
    .article-content h4 {
        font-size: 1.125rem;
    }
    
    .article-author {
        flex-direction: column;
        text-align: center;
    }
}