/* ==========================================================================
   首页主体框架与标题设计
   ========================================================================== */
.home-main-content {
    background-color: #faf9f6; /* 宣纸般的暖白底色 */
    padding: 80px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-heading {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    color: #2c2c2c;
    margin: 0 0 15px;
    letter-spacing: 2px;
}

.title-divider {
    width: 60px;
    height: 3px;
    background-color: #8b3a3a; /* 传统印泥红，严肃感 */
    margin: 0 auto 15px;
}

.section-desc {
    color: #666;
    font-size: 1rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   文章网格与卡片设计 (CSS Grid)
   ========================================================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 40px;
}

.archive-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #eaeaea;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.archive-card:hover .card-image img {
    transform: scale(1.05);
}

.default-thumbnail {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e2e2 0%, #d4d4d4 100%);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(139, 58, 58, 0.9); /* 印泥红半透明 */
    color: #fff;
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 2px;
    letter-spacing: 1px;
    z-index: 2;
}

.card-text {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 10px;
    font-family: 'Georgia', serif; /* 日期使用衬线体更有档案感 */
}

.card-title {
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 0 0 15px;
}

.card-title a {
    color: #2c2c2c;
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: #8b3a3a;
}

.card-excerpt {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1; /* 让摘要区域自动撑开，对齐底部标签 */
}

/* 标签样式 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.tag-item {
    font-size: 0.8rem;
    color: #888;
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.tag-item:hover {
    background: #e0e0e0;
    color: #333;
}

/* ==========================================================================
   查看更多按钮
   ========================================================================== */
.view-more-wrapper {
    text-align: center;
    margin-top: 50px;
}

.btn-view-more {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid #8b3a3a;
    color: #8b3a3a;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.btn-view-more:hover {
    background-color: #8b3a3a;
    color: #fff;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .home-main-content { padding: 50px 0; }
    .article-grid { grid-template-columns: 1fr; gap: 30px; }
    .card-image { height: 200px; }
}