/*
Theme Name: 明白保博客主题
Theme URI: https://mingbaibao.com
Description: 基于深蓝保风格的保险博客主题，清晰的分类导航、文章列表和侧边栏布局
Version: 1.0.0
Author: 明白保团队
Template: twentytwentyfive
*/

/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #333;
    background: #f5f5f5;
}

/* 顶部导航区域 */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 15px 0;
}

.site-logo {
    display: inline-block;
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

/* 分类导航菜单 */
.category-nav {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 0;
}

.category-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

.category-nav li {
    margin: 0;
}

.category-nav a {
    display: block;
    padding: 15px 25px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.category-nav a:hover,
.category-nav .current-menu-item a {
    color: #0066cc;
    border-bottom-color: #0066cc;
    background: #f8f9fa;
}

/* 主内容区域 */
.site-content {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 350px;
    flex-shrink: 0;
}

/* 文章列表样式 */
.posts-list {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.post-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s;
}

.post-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
}

.post-item:last-child {
    border-bottom: none;
}

.post-thumbnail {
    width: 254px;
    height: 150px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

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

.post-title a:hover {
    color: #0066cc;
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.post-meta {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 14px;
}

.post-meta i {
    margin-right: 5px;
}

/* 侧边栏样式 */
.widget {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    margin-bottom: 15px;
}

.widget-post-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    transition: all 0.3s;
}

.widget-post-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
    margin-left: -10px;
}

.widget-post-number {
    width: 24px;
    height: 24px;
    background: #f0f0f0;
    color: #999;
    text-align: center;
    line-height: 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    flex-shrink: 0;
}

.widget-post-item:nth-child(1) .widget-post-number {
    background: #ff6b6b;
    color: #fff;
}

.widget-post-item:nth-child(2) .widget-post-number {
    background: #ffa500;
    color: #fff;
}

.widget-post-item:nth-child(3) .widget-post-number {
    background: #ffd700;
    color: #fff;
}

.widget-post-thumbnail {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

.widget-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-post-content {
    flex: 1;
    min-width: 0;
}

.widget-post-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0 0 5px 0;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.widget-post-title a {
    color: #333;
    text-decoration: none;
}

.widget-post-title a:hover {
    color: #0066cc;
}

.widget-post-meta {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 12px;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .site-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .category-nav ul {
        flex-direction: column;
    }
}












