/* ========== 博客列表页 ========== */

/* 文章列表 */
.blog-list { padding: 60px 0; }
.blog-grid { display: flex; flex-direction: column; gap: 28px; max-width: 800px; margin: 0 auto; }

.blog-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
    border: 1px solid #f3f4f6;
    transition: all .3s;
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    box-shadow: 0 8px 30px rgba(124,58,237,.1);
    border-color: #e9d5ff;
    transform: translateY(-2px);
}

.blog-card-top {
    padding: 28px 28px 0;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: #f3e8ff;
    color: #7C3AED;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 20px;
}
.blog-date {
    font-size: .8rem;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.blog-reading {
    font-size: .8rem;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.blog-card-top h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
    line-height: 1.5;
}
.blog-card-top h2 a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.blog-card-top h2 a:hover {
    color: #7C3AED;
}

.blog-excerpt {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

.blog-card-bottom {
    padding: 16px 28px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    border-top: 1px solid #f9fafb;
}

.blog-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.keyword-tag {
    display: inline-block;
    padding: 3px 10px;
    background: #f9fafb;
    color: #6b7280;
    font-size: .72rem;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    transition: all .2s;
}
.blog-card:hover .keyword-tag {
    border-color: #e9d5ff;
    color: #7C3AED;
    background: #faf5ff;
}

.blog-read-more {
    font-size: .875rem;
    color: #7C3AED;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.blog-read-more:hover { text-decoration: underline; }

/* 分页 */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.blog-pagination .page-btn {
    width: 36px; height: 36px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-size: .875rem;
    color: #374151;
    display: flex; align-items: center; justify-content: center;
    transition: all .2s;
}
.blog-pagination .page-btn:hover:not(.disabled) {
    border-color: #7C3AED; color: #7C3AED;
}
.blog-pagination .page-btn.active {
    background: #7C3AED; color: #fff; border-color: #7C3AED;
}
.blog-pagination .page-btn.disabled {
    opacity: .4; cursor: not-allowed;
}

/* ========== 博客文章页 ========== */
.blog-article-page { padding-bottom: 60px; }

/* 面包屑 */
.blog-article-page .breadcrumbs {
    padding: 16px 0;
    font-size: .85rem;
    color: #6b7280;
    border-bottom: 1px solid #f3f4f6;
}
.blog-article-page .breadcrumbs a {
    color: #6b7280;
    text-decoration: none;
}
.blog-article-page .breadcrumbs a:hover { color: #7C3AED; }
.blog-article-page .breadcrumbs .current { color: #374151; font-weight: 600; }
.blog-article-page .breadcrumbs i { font-size: .65rem; margin: 0 8px; color: #d1d5db; }

/* 文章 */
.blog-article { }

.article-header { margin-bottom: 36px; }
.article-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.article-date { font-size: .85rem; color: #9ca3af; }
.article-reading { font-size: .85rem; color: #9ca3af; }
.article-reading i { margin-right: 4px; }

.article-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 12px;
}
.article-subtitle {
    font-size: 1.05rem;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* 正文 */
.article-content {
    font-size: .95rem;
    line-height: 1.9;
    color: #374151;
}
.article-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f2937;
    margin: 2.5rem 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid #f3e8ff;
}
.article-content p { margin-bottom: 1.2rem; }
.article-content ul {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}
.article-content li { margin-bottom: .5rem; }
.article-content strong { color: #1f2937; }

.article-content blockquote {
    border-left: 4px solid #7C3AED;
    background: #faf5ff;
    padding: 16px 20px;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-size: .9rem;
    color: #4b5563;
}
.article-content blockquote p { margin: 0; }

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: .875rem;
}
.article-content th, .article-content td {
    border: 1px solid #e5e7eb;
    padding: 10px 14px;
    text-align: left;
}
.article-content th {
    background: #f9fafb;
    font-weight: 600;
    color: #1f2937;
}

.article-content a {
    color: #7C3AED;
    text-decoration: none;
    font-weight: 600;
}
.article-content a:hover { text-decoration: underline; }

/* 高亮框 */
.article-highlight {
    background: #f0f9ff;
    border-left: 4px solid #7C3AED;
    padding: 14px 18px;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}
.article-highlight p {
    margin: 0;
    font-size: .875rem;
    color: #374151;
}
.article-highlight i { color: #7C3AED; margin-right: 6px; }

/* 文章底部 */
.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}
.article-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.article-tag-label { font-size: .85rem; color: #6b7280; }
.article-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: .8rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all .2s;
}
.article-tag:hover { background: #f3e8ff; color: #7C3AED; }

.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .85rem;
    color: #6b7280;
}
.article-share a {
    color: #9ca3af;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color .2s;
}
.article-share a:hover { color: #7C3AED; }

/* 返回 */
.article-back {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}
.article-back a {
    color: #7C3AED;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.article-back a:hover { text-decoration: underline; }

/* ========== 文章详情双栏布局 ========== */
.blog-detail-layout {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    align-items: flex-start;
}
.blog-main {
    flex: 1;
    min-width: 0;
}
.blog-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 108px;
    max-height: calc(100vh - 128px);
    overflow-y: auto;
}

/* ========== 更多文章 ========== */
.blog-more {
    margin: 0;
    padding: 0;
    border-top: none;
}
.blog-more h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3e8ff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-more h3::before {
    content: '\f0ca';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #7C3AED;
    font-size: .85rem;
}
.blog-more-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.blog-more-item {
    display: block;
    padding: 14px 16px;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    text-decoration: none;
    transition: all .25s;
    position: relative;
}
.blog-more-item:hover {
    background: #faf5ff;
    border-color: #e9d5ff;
}
.blog-more-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}
.blog-more-tag {
    display: inline-block;
    padding: 2px 8px;
    background: #f3e8ff;
    color: #7C3AED;
    font-size: .65rem;
    font-weight: 600;
    border-radius: 12px;
}
.blog-more-date {
    font-size: .7rem;
    color: #b0b0b0;
}
.blog-more-item h4 {
    font-size: .82rem;
    font-weight: 600;
    color: #374151;
    margin: 0;
    line-height: 1.5;
    transition: color .2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-more-item:hover h4 { color: #7C3AED; }
.blog-more-item::after {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #d1d5db;
    font-size: .6rem;
    transition: all .25s;
}
.blog-more-item:hover::after {
    color: #7C3AED;
}

/* ========== 响应式 ========== */
@media (max-width: 768px) {
    .article-header h1 { font-size: 1.4rem; }
    .article-content h2 { font-size: 1.15rem; }
    .article-footer { flex-direction: column; align-items: flex-start; }
    .blog-card-bottom { flex-direction: column; align-items: flex-start; }
    .blog-detail-layout { flex-direction: column; gap: 0; }
    .blog-sidebar { width: 100%; position: static; }
    .blog-more { margin-top: 36px; padding-top: 24px; border-top: 1px solid #e5e7eb; }
}
