.article-page {
    background: #ffffff;
    min-height: 100vh;
}

/* 顶部导航栏 */
.article-nav {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #3b82f6;
}

.nav-category {
    padding: 6px 16px;
    background: #eff6ff;
    color: #3b82f6;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 文章头部 */
.article-header {
    padding: 60px 20px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin-bottom: 24px;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    color: #6b7280;
    font-size: 14px;
    flex-wrap: wrap;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 文章正文容器 */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* 美化后的文章内容 */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

/* 段落 */
.article-content p {
    margin-bottom: 20px;
    text-align: justify;
}

/* 标题样式 */
.article-content h2 {
    font-size: 26px;
    color: #111827;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #f3f4f6;
    font-weight: 700;
}

.article-content h3 {
    font-size: 22px;
    color: #1f2937;
    margin: 32px 0 16px;
    font-weight: 600;
}

.article-content h4 {
    font-size: 19px;
    color: #374151;
    margin: 24px 0 12px;
    font-weight: 600;
}

/* 列表样式 */
.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.article-content li {
    margin: 10px 0;
    position: relative;
}

.article-content ul li::marker {
    color: #3b82f6;
    font-size: 1.2em;
}

.article-content ol li::marker {
    color: #3b82f6;
    font-weight: 600;
}

/* 引用块 */
.article-content blockquote {
    border-left: 4px solid #3b82f6;
    padding: 20px 24px;
    margin: 24px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0 12px 12px 0;
    color: #4b5563;
    font-style: italic;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    font-size: 48px;
    color: #3b82f6;
    opacity: 0.3;
    position: absolute;
    top: -10px;
    left: 10px;
    font-family: Georgia, serif;
}

/* 强调文字 */
.article-content strong {
    color: #111827;
    font-weight: 600;
    background: linear-gradient(transparent 60%, #fef3c7 60%);
    padding: 0 2px;
}

.article-content em {
    color: #4b5563;
    font-style: italic;
}

/* 分隔线 */
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
    margin: 40px 0;
}

/* 代码块 */
.article-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 14px;
    line-height: 1.6;
    margin: 20px 0;
}

.article-content code {
    background: #f3f4f6;
    color: #ef4444;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

/* 表格 */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.article-content th,
.article-content td {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.article-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #111827;
}

.article-content tr:nth-child(even) {
    background: #fafbfc;
}

/* 图片 */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 提示框样式 */
.article-content .tip,
.article-content div[class*="tip"] {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    position: relative;
    padding-left: 56px;
}

.article-content .tip::before,
.article-content div[class*="tip"]::before {
    content: '💡';
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 24px;
}

.article-content .warning,
.article-content div[class*="warning"] {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    position: relative;
    padding-left: 56px;
}

.article-content .warning::before,
.article-content div[class*="warning"]::before {
    content: '⚠️';
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 24px;
}

/* 文章底部 */
.article-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f3f4f6;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.tag {
    padding: 8px 16px;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.tag:hover {
    background: #e5e7eb;
    color: #111827;
}

/* 分享区域 */
.share-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 40px;
}

.share-title {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.share-btn:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.share-btn.primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.share-btn.primary:hover {
    background: #2563eb;
}

/* 相关文章 */
.related-section {
    margin-top: 40px;
}

.related-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.related-card:hover {
    background: white;
    border-color: #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.related-category {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.related-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-date {
    font-size: 13px;
    color: #9ca3af;
}

/* 响应式 */
@media (max-width: 768px) {
    .article-title {
        font-size: 24px;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 22px;
    }
    
    .article-content h3 {
        font-size: 19px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .share-section {
        flex-direction: column;
        text-align: center;
    }
}