* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}
a {
    color: #337ab7;
    text-decoration: none;
    transition: color 0.3s;
}
a:hover {
    color: #23527c;
    text-decoration: underline;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}
ul, ol {
    list-style: none;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* ==================== 布局容器 ==================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.p40 { padding: 40px 0; }
.p30 { padding: 30px 0; }

/* ==================== 页面头部 ==================== */
#header {
    background: #1f2126;
    padding: 10px 0;
    border-bottom: 3px solid #d9534f;
}
#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.header-logo {
    display: flex;
    align-items: center;
}
.header-logo h1 {
    margin: 0 15px 0 0;
    font-size: 18px;
    color: #fff;
}
.header-logo .logo-url {
    display: inline-flex;
}
.header-logo img {
    height: 40px;
}
.header-menu ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-menu ul li {
    margin-left: 20px;
}
.header-menu ul li a {
    color: #fff;
    font-size: 16px;
    padding: 5px 0;
}
.header-menu ul li a:hover,
.header-menu ul li.current_page_item a {
    color: #d9534f;
    text-decoration: none;
    border-bottom: 2px solid #d9534f;
}

/* ==================== 面包屑导航 ==================== */
.crumbs {
    background: #eaeaea;
    padding: 10px 0;
    font-size: 13px;
}
.crumbs a {
    color: #666;
}

/* ==================== 主体内容区 ==================== */
#main {
    min-height: 500px;
}
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.col-md-9 {
    width: 75%;
    padding: 0 15px;
}
.col-md-3 {
    width: 25%;
    padding: 0 15px;
}

/* ==================== 核心：一行两列列表（含缩略图） ==================== */
.content-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.content-list li {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 15px;
    transition: box-shadow 0.3s;
}
.content-list li:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.content-list li article {
    display: flex;
    gap: 15px;
    height: 100%;
}
/* 缩略图样式 */
.post-thumb {
    flex-shrink: 0;
    width: 140px;
}
.post-thumb a {
    display: block;
    width: 100%;
    height: 100px;
    overflow: hidden;
    border-radius: 4px;
}
.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.post-thumb a:hover img {
    transform: scale(1.05);
}
/* 文字内容区 */
.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.post-content h2 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.4;
}
.post-content h2 a {
    color: #222;
}
.post-content h2 a:hover {
    color: #d9534f;
}
.single-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #eee;
}
.single-meta .author {
    float: right;
}
.single-meta::after {
    content: "";
    display: block;
    clear: both;
}
.post-content p {
    color: #666;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ==================== 分页 ==================== */
.navigation.pagination {
    text-align: center;
    margin: 30px 0;
}
.nav-links .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 4px;
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: #d9534f;
    color: #fff;
    border-color: #d9534f;
    text-decoration: none;
}

/* ==================== 侧边栏 ==================== */
.sidebar .widget {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 25px;
}
.widget-title {
    font-size: 16px;
    border-left: 4px solid #d9534f;
    padding-left: 10px;
    margin-bottom: 15px;
    color: #333;
}
.new-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    font-size: 13px;
}
.new-list li:last-child {
    border-bottom: none;
}
.new-list a {
    color: #555;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.new-list a:hover {
    color: #d9534f;
}

/* ==================== 底部 ==================== */
#footer {
    background: #1f2126;
    color: #aaa;
    font-size: 13px;
}
.copyr p {
    margin-bottom: 8px;
    line-height: 1.5;
}
.copyr a {
    color: #d9534f;
}
.btm-search {
    margin-top: 20px;
    max-width: 300px;
}
.searchform {
    position: relative;
}
.searchform .text {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 1px solid #444;
    border-radius: 20px;
    background: #2a2d33;
    color: #fff;
    outline: none;
}
.btn-search {
    position: absolute;
    right: 5px;
    top: 5px;
    background: #d9534f;
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 991px) {
    .col-md-9, .col-md-3 {
        width: 100%;
    }
    .col-md-3 {
        margin-top: 30px;
    }
}

@media (max-width: 767px) {
    #header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-menu {
        margin-top: 15px;
        width: 100%;
        overflow-x: auto;
    }
    .header-menu ul {
        flex-wrap: nowrap;
        min-width: 500px;
    }
    .header-menu ul li {
        margin: 0 15px 5px 0;
    }
    .content-list {
        grid-template-columns: 1fr;
    }
    .content-list li article {
        flex-direction: column; /* 移动端改为上下布局 */
    }
    .post-thumb {
        width: 100%;
    }
    .post-thumb a {
        height: 160px;
    }
    .p40 { padding: 20px 0; }
}