/* 全局样式 */
body {
    margin: 0;
    padding: 0;
}
/* 容器样式 */
.contain {
    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: 20px;
}

.lie h1 {
    font-size: 2em;
    margin: 0;
    color: #1e40af;
}

/* 搜索框样式 */
.search-box {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.search-box input {
    padding: 10px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
}

.search-box button {
    padding: 10px 20px;
    margin-left: 10px;
    background-color: #f77f18;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.search-box button:hover {
    background-color: #0056b3;
}

/* 主体内容布局 */
main {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* 文章列表样式 */
.article-list {
    width: 100%;
}

.article-item {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #f77f18;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.article-item h2 {
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.article-item h2 a {
    text-decoration: none;
    color: #333;
}

.article-item h2 a:hover {
    color: #007BFF;
}

.article-item .meta {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

.article-item .summary {
    margin: 10px 0;
    color: #555;
}

/* 推荐阅读样式 */
.recommendations {
    width: 25%;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.recommendations h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #1e40af;
}

.recommendation-item {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #fff;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.recommendation-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.recommendation-item a {
    text-decoration: none;
    color: #1e40af;
    font-weight: bold;
}

.recommendation-item a:hover {
    text-decoration: underline;
}

.recommendation-item p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9em;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    margin: 0 5px;
    padding: 10px 15px;
    text-decoration: none;
    color: black;
    border: 1px solid #f77f18;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.pagination a:hover {
    background-color: #f77f18;
    color: #fff;
}
