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 {
  width: 100%;
  padding: 10px 0; /* 上下内边距 */
  text-align: center; /* 水平居中 */
  box-sizing: border-box; /* 确保 padding 不影响宽度 */
}

.banner img {
  max-width: 100%; /* 保持比例，不超出容器 */
  height: auto; /* 自动计算高度 */
  display: inline-block; /* 使图片能被 flex 布局控制 */
}

.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;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 800px;
}

.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;
        /* 居中对齐 */
        width: 100%;
        overflow: hidden;
    }

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

    /* 手机模式下分页部分样式调整 */
    .pagination-container {
        flex-direction: column;
        align-items: center;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    .pagination li {
        margin: 2px 5px !important;
        display: flex;
        align-items: center;
    }

    .pagination li:not(:has(.page-link)) {
        margin-top: 8px !important;
        white-space: nowrap;
    }

    .pagination input.form-control {
        width: 50px !important;
        margin: 0 5px;
    }

    /* 手机模式下标题文本溢出修复 */
    .flex-grow-1 {
        /*max-width: calc(100vw - 100px);*/
        /* 根据屏幕宽度动态计算 */
        max-width: calc(100vw - 150px);
        /* 根据屏幕宽度动态计算，增加留白 */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

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

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