/*
Theme Name: portal4
Author: Custom
Version: 1.0
Description: 全新浅灰极简主题
*/
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", sans-serif;
    font-size: 15px;
    color: #333;
    background: #f5f7fa;
    line-height: 1.7;
}
a { color: #333; text-decoration: none; }
a:hover { color: #409eff; }
img { max-width: 100%; height: auto; display: block; border-radius: 6px; }
ul { list-style: none; }

/* 容器 */
.lg-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 头部 */
.lg-header {
    background: #fff;
    padding: 22px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.lg-logo {
    font-size: 24px;
    font-weight: bold;
    color: #409eff;
}

/* 面包屑 */
.lg-bread {
    background: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

/* 布局 */
.lg-row { display: flex; gap: 25px; margin-bottom: 30px; }
.lg-main { flex: 1; }
.lg-side { width: 300px; }
@media (max-width: 900px) {
    .lg-row { flex-direction: column; }
    .lg-side { width: 100%; }
}

/* 双列文章 */
.lg-grid-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .lg-grid-box { grid-template-columns: 1fr; }
}
.lg-post {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.lg-thumb { height: 130px; border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.lg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lg-title { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.lg-meta { font-size: 12px; color: #999; margin-bottom: 8px; }
.lg-desc { font-size: 14px; color: #666; }

/* 分页 */
.lg-pager { text-align: center; margin: 30px 0; }
.lg-pager a, .lg-pager span {
    display: inline-block;
    padding: 7px 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    margin: 0 3px;
}
.lg-pager .current { background: #409eff; color: #fff; border-color: #409eff; }

/* 侧边栏 */
.lg-widget {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.lg-widget h3 {
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #409eff;
    margin-bottom: 15px;
}
.lg-widget li { padding: 6px 0; border-bottom: 1px dashed #eee; }

/* 内容页 */
.lg-single { background: #fff; padding: 40px; border-radius: 10px; }
.lg-single h1 { font-size: 24px; text-align: center; margin-bottom: 20px; }
.lg-content { font-size: 16px; line-height: 2; }

/* 上下篇 */
.lg-postnav { display: flex; justify-content: space-between; margin: 30px 0; }
.lg-postnav a { background: #fff; padding: 12px 18px; border-radius: 8px; border: 1px solid #eee; }

/* 相关文章 */
.lg-related { background: #fff; padding: 25px; border-radius: 10px; margin-top: 20px; }

/* 猜你喜欢 4 列 */
.lg-like {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 30px 0;
}
@media (max-width: 900px) { .lg-like { grid-template-columns: repeat(2, 1fr); } }
.lg-like-item { background: #fff; border-radius: 8px; overflow: hidden; }
.lg-like-img { height: 110px; }
.lg-like-img img { width: 100%; height: 100%; object-fit: cover; }
.lg-like-title {
    padding: 12px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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