<?php
/* 排行榜挂件样式 */
.emlog-rank-widget {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.emlog-rank-widget h4 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #333;
}

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

.emlog-rank-widget .rank-list li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.emlog-rank-widget .rank-list li a {
    display: flex;
    width: 100%;
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.emlog-rank-widget .rank-list li a:hover {
    color: #3498db;
}

.emlog-rank-widget .rank-index {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
}

.emlog-rank-widget .top-1 .rank-index {
    background: #ffd700;
    color: #fff;
}

.emlog-rank-widget .top-2 .rank-index {
    background: #c0c0c0;
    color: #fff;
}

.emlog-rank-widget .top-3 .rank-index {
    background: #cd7f32;
    color: #fff;
}

.emlog-rank-widget .rank-title {
    flex-grow: 1;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emlog-rank-widget .rank-views {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    flex-shrink: 0;
}
