/* 全局样式 */
body {
    margin: 0;
    padding: 0;
}

/* 容器样式 */
.containers {
    width: 80%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

/* 头部样式 */
.lie {
    text-align: center;
    margin-bottom: 30px;
}

.lie h1 {
    font-size: 2em;
    margin: 0 0 15px 0;
    color: #1e40af;
}

/* 主体内容布局 */
main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

/* 文章列表样式 */
.article-list {
    flex: 1;
    min-width: 65%;
}

.article-item {
    display: flex;
    margin-bottom: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-image {
    flex: 0 0 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.article-item:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    flex: 1;
    padding: 20px;
}

.article-content h2 {
    margin: 0 0 10px 0;
    font-size: 1.4em;
}

.article-content h2 a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.article-content h2 a:hover {
    color: #f77f18;
}

.article-content .meta {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9em;
}

.article-content .summary {
    margin: 0;
    color: #555;
    line-height: 1.6;
}


/* 响应式设计 */
@media (max-width: 992px) {
    main {
        flex-direction: column;
    }

    .recommendations {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .containers {
        width: 95%;
        padding: 15px;
    }

    .article-item {
        flex-direction: column;
    }

    .article-image {
        flex: 0 0 200px;
        width: 100%;
    }

    .search-box input {
        width: 60%;
    }
}