/* ===== 文章列表页 ===== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.article-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 24px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #F0F4F8;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.article-item:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border-color: #E8F0FE;
    transform: translateY(-2px);
}

.article-thumb {
    width: 200px;
    /* height: 140px; */
    /* background: #E8F0FE; */
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.article-thumb .placeholder {
    font-size: 48px;
    color: #2E6DB4;
    /* opacity: 0.3; */
}

.article-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #999;
}

.article-category {
    color: #2E6DB4;
    background: #E8F0FE;
    padding: 2px 10px;
    border-radius: 4px;
}

.article-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s;
}

.article-item:hover .article-info h3 {
    color: #2E6DB4;
}

.article-info p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    margin-bottom: 12px;
}

.article-more {
    font-size: 13px;
    color: #2E6DB4;
    font-weight: 500;
}

/* ===== 文章详情页 ===== */
.article-detail {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    border: 1px solid #F0F4F8;
}

.article-header {
    border-bottom: 1px solid #F0F4F8;
    padding-bottom: 24px;
    margin-bottom: 30px;
}

.article-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1B3A6B;
    line-height: 1.4;
    margin-bottom: 16px;
}

.article-header .meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.article-body {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1B3A6B;
    margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F0F4F8;
}

.article-body h3 {
    font-size: 17px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px;
}

.article-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.article-body ul,
.article-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #F0F4F8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.article-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.article-tags span {
    font-size: 13px;
    color: #666;
}

.article-tags a {
    font-size: 13px;
    color: #2E6DB4;
    background: #E8F0FE;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
}

.article-nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== 单页通用 ===== */
.page-content h2 {
    font-size: 24px;
    font-weight: 600;
    color: #1B3A6B;
    margin: 32px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F0F4F8;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 24px 0 12px;
}

.page-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 16px;
}

.page-content ul,
.page-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.page-content li {
    margin-bottom: 8px;
    color: #666;
}

.page-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

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

.page-content th {
    background: #F8FAFC;
    color: #1B3A6B;
    font-weight: 600;
}

.page-content td {
    color: #666;
}

/* ===== 时间线 ===== */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E8F0FE;
}

.timeline-item {
    position: relative;
    padding-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #2E6DB4;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #E8F0FE;
}

.timeline-item .year {
    font-size: 16px;
    font-weight: 600;
    color: #1B3A6B;
    margin-bottom: 6px;
}

.timeline-item .text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .article-item {
        grid-template-columns: 1fr;
    }
    .article-thumb {
        width: 100%;
        height: 180px;
    }
    .article-header h1 {
        font-size: 22px;
    }
    .article-detail {
        padding: 24px;
    }
}
