/*
 Theme Name:   Extra Child Theme
 Theme URI:    https://yourwebsite.com
 Description:  Extra Theme 的子主题
 Author:       你的名字
 Author URI:   https://yourwebsite.com
 Template:     Extra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  extra-child
*/

/* 在这里添加你自己的CSS */

.btzx_et_pb_extra_column_main {
    width: 100%;
}

.gonggao-li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.btzx-feiyehu {
    width: 100%;
    text-align: center;
    color: #931d1d;
    letter-spacing: 4px;
    font-size: 20px;
    font-weight: bolder;
}

.btzx-gonggao {
    list-style-type: none;
}

.gonggao-time {
    float: right;
}

/* 全局布局容器，自适应屏幕 */
body {
    margin: 0;
    padding: 0;
}

.post-list {
    width: 100%;
    max-width: 1200px; /* 桌面端最大宽度限制 */
    margin: 0 auto;    /* 居中屏幕 */
    padding: 0 10px;   /* 左右留间距防止贴边 */
    box-sizing: border-box;
}

/* 文章列表单条记录 */
.post-item {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 10px;
    box-sizing: border-box;
}

/* 图片区域（桌面端固定尺寸） */
.post-thumb {
    flex: 0 0 500px;
    height: 300px;
    margin-right: 15px;
    overflow: hidden;
    background: #000;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 文字内容区域 */
.post-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.post-title {
    margin: 5px 0;
    font-size: 18px;
    text-align: center;
}

.post-title a {
    text-decoration: none;
    color: inherit;
}

.post-title a:hover {
    color: #931d1d;
}

.new-label {
    color: red;
}

.post-meta {
    color: #999;
    font-size: 12px;
    margin-bottom: 5px;
    text-align: center;
}

.post-excerpt {
    text-indent: 2em;
    margin-bottom: 5px;
}

.read-more-link {
    text-align: right;
}

.read-more-link a {
    color: #931d1d;
    text-decoration: none;
}

.read-more-link a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    .post-item {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* 特色图容器：宽度100%，高度由图片决定 */
    .post-thumb {
        width: 100%;
        max-width: 100%;
        height: 200px;            /* 调整移动端高度 */
        margin: 0 0 8px 0;
        padding: 0;
        overflow: hidden;
        background: none;        /* 移除黑色背景 */
        position: relative;
        box-sizing: border-box;
    }

    /* 图片：自适应宽度，撑满容器，高度按比例变化 */
    .post-thumb img {
        width: 100%;
        height: 100%;            /* 等比缩放 */
        display: block;
        object-fit: cover;       /* 保持比例填满容器 */
        background: none;
        margin: 0;
        padding: 0;
    }

    .post-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 6px;
    }

    .post-title {
        font-size: 16px;
        margin-top: 0;
    }
}

/* 分页区域简单居中 */
.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
}

.pagination ul li {
    display: inline;
    margin: 0 8px;
}

.pagination ul li a,
.pagination ul li span {
    display: inline-block;
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #931d1d;
}

.pagination ul li a:hover {
    background-color: #f5f5f5;
}

.pagination ul li .current {
    background-color: #931d1d;
    color: white;
    border-color: #931d1d;
}
