@charset "utf-8";
/*
Theme ID: ecms160
Author: 懒鸟飞移植
Author QQ：1430826160
Author Email：1430826160@qq.com
Author URL: http://www.lanniaofei.com/
*/
/* ===== 基础重置 ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333; /* 加深字体颜色 */
    background-color: #f8f9fa; /* 微微的背景灰，衬托内容 */
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    color: #ff5500;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 容器 ===== */
.container {
    max-width: 1200px; /* 稍微收窄一点，阅读更舒适 */
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 头部 ===== */
header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #000; /* 标题更黑 */
    overflow: hidden;
}
header h1 .logo{
float: left;
display:inline-block;
}

/* ===== 搜索框 ===== */
.search-form {
float: right;
}

.search-form input[type="text"] {
padding: 8px 12px;
width: 220px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
}

.search-form button {
padding: 8px 14px;
border: none;
background: #1a73e8;
color: #fff;
border-radius: 4px;
font-size: 14px;
cursor: pointer;
}


nav{}
nav li{
display: inline-block;
}

nav  a {
    color: #555;
    font-size: 14px;
    padding: 10px 10px;
    font-weight: bold;
}
nav .on,nav a:hover{
    color: #ff5500;
    text-decoration: none;
}
nav .subnav{
    position: absolute;
    border: 1px solid #eee;
    background: #fff;
    display:none;
}
nav li:hover .subnav{
    display:block;
}

nav .subnav a{
    display: block;
}

/* ===== 主体布局 ===== */
.layout {
    display: grid;
    grid-template-columns: 1fr 280px; /* 侧边栏稍微加宽 */
    gap: 30px;
}

/* ===== 文章列表 ===== */
main {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

article {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); /* 轻微阴影 */
    display: flex;
    gap: 20px;
    align-items: flex-start;
}


.artbody {
background: #fff; padding: 30px; border-radius: 8px;
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.artbody h1 {
font-size: 26px;
margin-bottom: 12px;
color: #000;
}

.meta {
font-size: 13px;
color: #999;
margin-bottom: 24px;
}

.artbody img.cover {
width: 100%;
border-radius: 6px;
margin-bottom: 24px;
}

.artbody .artcont{
line-height: 2rem;
}
.artbody .artcont img{
max-width: 100%;
height: auto !important;
display: block;
}

.artbody p {
font-size: 16px;
color: #444;
margin-bottom: 20px;
}

.artbody h2 {
font-size: 22px;
margin: 36px 0 16px;
color: #222;
}

.artbody h3 {
font-size: 18px;
margin: 28px 0 12px;
color: #333;
}

.artbody ul {
padding-left: 20px;
margin-bottom: 20px;
}

.artbody li {
margin-bottom: 8px;
}

.thumbnail{
    width: 120px; /* 加宽缩略图 */
    height: 100px;
    display:inline-block;
    background: #eee; /* 占位背景 */
    flex-shrink: 0;
}
.thumbnail img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;

}
.content{
    font-size: 14px;
}

.content h2 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #1a73e8;
}

.content .date {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.content p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ===== 侧边栏 ===== */
aside {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    align-self: start; /* 顶部对齐 */
    position: sticky; /* 粘性定位，滚动时跟随 */
    top: 20px;
}
aside .widget{

}

aside h3 {
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

aside ul {
    list-style: none;
    margin-bottom: 20px;
}

aside li {
    margin-bottom: 8px;
    font-size: 14px;
}
aside li a{
    display: block;
    padding: 3px;
    /*text-overflow:ellipsis; 
    overflow:hidden; 
    white-space:nowrap; */
}
aside .on{
    color: #ff5500;
}
aside ul.henglist{}
aside ul.henglist li{
    width: 48%;
    display: inline-block;
    border: 1px solid #eee;
    text-align: center;
    border-radius: 5px;
}
aside ul.henglist li:hover{
    background: #eee;
}

aside p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ===== 底部 ===== */
footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    font-size: 12px;
    color: #999;
    background: #fff;
    border-top: 1px solid #eee;
}


/* ===== 分页导航样式 ===== */
.pagination {
text-align: center;
}

.pagination nav {
display: inline-flex;
gap: 8px;
flex-wrap: wrap;
justify-content: center;
}

.pagination a,
.pagination strong {
padding: 8px 14px;
border: 1px solid #ddd;
border-radius: 4px;
font-size: 14px;
color: #1a73e8;
background: #fff;
}

.pagination strong,.pagination a:hover {
background: #1a73e8;
color: #fff;
border-color: #1a73e8;
font-weight: 600;
}

.pagination span {
padding: 8px 10px;
color: #999;
font-size: 14px;
}

.page-info {
margin-top: 12px;
font-size: 13px;
color: #777;
}


/* ===== 面包屑 ===== */
.breadcrumb {
font-size: 13px;
color: #999;
margin-bottom: 20px;
}
.breadcrumb a { color: #999; }


/* ===== 上一篇 / 下一篇 ===== */
.post-nav {
margin-top: 40px;
padding-top: 20px;
border-top: 1px solid #eee;
font-size: 14px;
line-height: 2rem;
}
.post-nav a{

}




/* ===== 响应式：手机端 ===== */
@media (max-width: 768px) {
.search-form{
max-width: 60%;
}

.search-form input[type="text"] { width: 70%; }
.search-form button{
padding: 6px 10px;
}

    .layout {
        grid-template-columns: 1fr; /* 手机端变成单列 */
    }
    
    article {
        flex-direction: column; /* 图片在上，文字在下 */
    }
    
    .thumbnail {
        width: 100%;
        height: 150px; /* 手机端图片高一点 */
    }
    
    aside {
        position: static; /* 取消粘性 */
    }
}


.weizhi{
margin-bottom: 10px;
}