/**
 * 首页文章列表布局样式
 * 
 * @package MOE
 * @since 1.0
 */

/* 文章摘要 */
.theme-excerpt { 
    font-size: 17px; 
    margin-bottom: 30px;
    line-height: 1.8;
    color: #666;
}

.theme-excerpt strong { 
    color: #2e2f34; 
}

/* 浏览器窗口样式 */
.browser { 
    background: #f5f5f5; 
    border: 1px solid #b2b2b2; 
    border-radius: 4px;
    margin: 0 -1px 30px;
    -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.1);
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

/* 浏览器视图 */
.browser-view { 
    position: relative;
    overflow: hidden;
    border-radius: 0 0 2px 2px;
}

.browser-view img { 
    display: block; 
    width: 100%; 
    height: auto;
    -webkit-border-radius: 0 0 2px 2px; 
    border-radius: 0 0 2px 2px;
}

.browser-view a {
    display: block;
    position: relative;
}

/* 覆盖层 */
.b-overlay { 
    opacity: 0; 
    background: rgba(46,47,52,0.85); 
    color: #fff; 
    text-align: center; 
    position: absolute; 
    top: 0; 
    right: 0; 
    bottom: 0; 
    left: 0;
    -webkit-border-radius: 0 0 3px 3px; 
    border-radius: 0 0 3px 3px;
    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-view:hover .b-overlay { 
    opacity: 1; 
}

.b-overlay:active { 
    opacity: 0.9; 
}

.b-overlay img {
    max-width: 80px;
    width: auto;
    height: auto;
    opacity: 0.7;
}

/* 底部元信息 */
.post-meta.bottom { 
    margin-bottom: 0; 
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* 文章卡片整体样式 */
.home .post,
.blog .post,
.archive .post,
.search .post {
    margin-bottom: 50px;
    padding-bottom: 0;
}

.home .post:last-child,
.blog .post:last-child,
.archive .post:last-child,
.search .post:last-child {
    margin-bottom: 40px;
}

/* 首页文章标题样式 */
.home .post-title,
.blog .post-title,
.archive .post-title,
.search .post-title {
    font-size: 26px;
    margin-bottom: 20px;
}

/* 响应式优化 */
@media only screen and (max-width: 860px) {
    .theme-excerpt { 
        font-size: 16px; 
    }
    
    .browser {
        margin: 0 0 20px;
    }
}

@media only screen and (max-width: 719px) {
    .theme-excerpt { 
        font-size: 16px; 
    }
    
    .home .post-title,
    .blog .post-title,
    .archive .post-title,
    .search .post-title {
        font-size: 22px;
    }
    
    .post-meta.bottom {
        font-size: 13px;
    }
}

@media only screen and (max-width: 480px) {
    .theme-excerpt { 
        font-size: 14px; 
        line-height: 1.8em; 
    }
    
    .home .post-title,
    .blog .post-title,
    .archive .post-title,
    .search .post-title {
        font-size: 20px;
    }
    
    .browser {
        margin: 0 0 15px;
    }
    
    .post-meta.bottom {
        margin-top: 20px;
        padding-top: 15px;
    }
}

/* 分页样式 */
#loli.pagination {
    text-align: center;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

#loli.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

#loli.pagination ul li {
    display: inline-block;
}

#loli.pagination ul li a {
    display: inline-block;
    padding: 8px 15px;
    background: #f5f5f5;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#loli.pagination ul li a:hover,
#loli.pagination ul li a.current {
    background: #24a5db;
    color: #fff;
}

#loli.pagination .prev,
#loli.pagination .next {
    font-weight: bold;
}

/* IE8 兼容 */
.ie8 .b-overlay { 
    display: none; 
}

/* 打印样式 */
@media print {
    .browser,
    .b-overlay {
        display: none;
    }
    
    .theme-excerpt {
        font-size: 12pt;
    }
}

