/* 博客卡片的基础样式 - 水平布局 */
.blog-card {
    width: 90%;
    height: 170px;
    margin: 20px;
    border-radius: 7px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
}

/* 卡片内链接的样式 */
.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 卡片内容 */
.blog-card-content {
    display: flex;
    flex-direction: row;
    width: 100%;
}

/* 博客图片样式 */
.blog-card-image {
    width: 40%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-right: 2px solid #eee;
}

/* 博客简介文本区域 */
.blog-card-text {
    width: 60%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 标题样式 */
.blog-card-text h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    font-family: "Simsun", serif;
    transition: color 0.3s ease;
}

/* 简介文本样式 */
.blog-card-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 悬浮效果 */
.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-card:hover .blog-card-text h3 {
    color: #2e6061;
}

/* 文章页面容器样式 */
.articles-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 文章页面头部 */
.articles-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.articles-header h1 {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.articles-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #87CEEB, #2e6061);
    border-radius: 2px;
}

/* 响应式设计 - 博客卡片移动端适配 */
@media screen and (max-width: 768px) {
    .blog-card {
        width: 100%;
        height: auto;
        margin: 10px 0;
        flex-direction: column;
    }

    .blog-card-content {
        flex-direction: column;
        height: auto;
    }

    .blog-card-image {
        width: 100%;
        height: 180px;
        border-right: none;
        border-bottom: 2px solid #eee;
    }

    .blog-card-text {
        width: 100%;
        padding: 15px;
        text-align: center;
    }

    .blog-card-text h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .blog-card-text p {
        font-size: 14px;
        line-height: 1.5;
    }

    .articles-container {
        padding: 0 10px;
    }

    .articles-header {
        margin-bottom: 20px;
    }

    .articles-header h1 {
        font-size: 28px;
    }

    .articles-header h1::after {
        width: 60px;
        bottom: -8px;
    }
}

@media screen and (max-width: 480px) {
    .blog-card {
        margin: 8px 0;
    }

    .blog-card-image {
        height: 140px;
    }

    .blog-card-text {
        padding: 12px;
    }

    .blog-card-text h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }

    .blog-card-text p {
        font-size: 13px;
    }

    .articles-header h1 {
        font-size: 24px;
    }

    .articles-header h1::after {
        width: 50px;
    }
}
