html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    text-align: center;
}
span{
    font-weight: bolder;
}

.logo-container {
    text-align: left;
    padding: 20px 0;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

.banner {
    background-image: url('/static/img/banner.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 50px 0;
}

.banner h1 {
    margin: 0;
    font-size: 2em;
    color: #023592;
    font-weight: bolder;
}

.search-form {
    padding-top: 10px;
    width: 100%;
    max-width: 600px;
}

.search-form form {
    display: flex;
    justify-content: flex-start;
}

.search-form .form-control {
    flex: 1;
    max-width: 300px;
    margin-right: 10px;
}

.pagination-container {
    display: flex;
    justify-content: flex-end;
}

.red-background {
    background-color: red;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.green-background {
    background-color: green;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.row-container {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    /* 可选：添加间距 */
}

/* .list-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 10px;
    padding-top: 10px;
}

.left-div {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-div {
    padding: 10px;
} */

/* 修改 list-container 的布局方式 */


/* 修改 list-container 的布局方式 */
.list-container {
    position: relative; /* 相对定位 */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 10px;
    padding-top: 10px;
}

/* 修改 left-div 的样式 */
.left-div {
    /* padding: 10px; */
    padding-right: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%; /* 占满宽度 */
}

/* 修改 right-div 的样式 */
.right-div {
    position: absolute; /* 绝对定位 */
    top: 10px; /* 距离顶部10px */
    right: 10px; /* 距离右侧10px */
}

.right-div img {
    max-width: 100%;
    height: auto;
}

.top-row {
    display: flex;
    align-items: center;
}

.bottom-row {
    display: flex;
    align-items: center;
    margin-top: 10px;
    /* 可选：添加间距 */
}

.red-background {
    background-color: red;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
    white-space: nowrap;
    align-items: flex-start;
}

.green-background {
    background-color: green;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 10px;
    /* 可选：添加间距 */
    white-space: nowrap;
    /* 确保文本不换行 */
    align-items: flex-start;
}

.flex-grow-1 {
    flex: 1;
    white-space: nowrap;
}

.date-div {
    /* margin-left: 10px; */
    color: rgb(171, 171, 171);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.flex-container {
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .flex-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .date-div {
        margin-left: 0;
        margin-top: 5px;
    }
}

/* 添加媒体查询，针对手机端调整布局 */
@media (max-width: 768px) {
    .top-row {
        flex-direction: row; /* 保持水平排列 */
        align-items: center; /* 居中对齐 */
    }

    .date-div {
        /* margin-left: 10px; 恢复左边距 */
        margin-top: 0; /* 移除上边距 */
        max-width: 100%; /* 保持最大宽度 */
    }
}

.margin-top {
    margin-top: 20px;
}

.question-bottom {
    margin-bottom: 10px;
}