/**
 * 文章统计插件样式
 */

/* 文章底部统计信息 */
.article-stats-plugin {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.article-stats-plugin h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat-item {
    text-align: center;
    padding: 8px 5px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-label {
    display: block;
    font-size: 10px;
    color: #666;
    margin-bottom: 3px;
}

.stat-value {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #667eea;
    line-height: 1.2;
}

/* 侧边栏热门文章插件样式 - 使用 widget-hot-articles 类名与模板保持一致 */
.widget-hot-articles {
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.widget-hot-articles h3 {
    margin: 0;
    padding: 0;
    color: inherit;
    font-size: inherit;
    border-bottom: none;
}

/* 热门文章列表样式 - 提高优先级 */
.widget-hot-articles .hot-list,
.side .hot-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 150px !important; /* 限制高度为原来的三分之一 */
    overflow: hidden !important; /* 隐藏超出部分 */
}

.widget-hot-articles .hot-list li,
.side .hot-list li {
    padding: 10px 0 !important;
    border-bottom: 1px solid #eee !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    list-style: none !important;
    gap: 8px !important;
}

.widget-hot-articles .hot-list li:last-child,
.side .hot-list li:last-child {
    border-bottom: none !important;
}

/* 热度图标样式 */
.widget-hot-articles .hot-icon,
.side .hot-icon {
    font-size: 14px !important;
    min-width: 20px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* 首页文章列表阅读量图标 */
.view-icon {
    display: inline-block;
    margin-right: 2px;
    font-size: 12px;
}

.view-icon.hot {
    color: #ff4444;
}

.view-icon.warm {
    color: #ffaa00;
}

.view-icon.normal {
    color: #999;
}

.widget-hot-articles .hot-list a,
.side .hot-list a {
    color: inherit !important;
    text-decoration: none !important;
    flex: 1 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    transition: color 0.3s !important;
}

.widget-hot-articles .hot-list a:hover,
.side .hot-list a:hover {
    color: #667eea !important;
}

.widget-hot-articles .view-count,
.side .view-count {
    font-size: 12px !important;
    color: #999 !important;
    margin-left: 10px !important;
    white-space: nowrap !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 10px;
    }
    
    .stat-value {
        font-size: 20px;
    }
}
