/**
 * 咯吱岛小工具样式
 * 颜色全部引用主题 CSS 变量，自动适配亮色/暗色模式
 */

/* ===== 榜单（贝壳富翁榜 / 人气作者榜共用） ===== */
.gezhi-rank {
    list-style: none;
    margin: 0;
    padding: 0;
}
.gezhi-rank-item {
    display: flex;
    align-items: center;
    padding: 7px 2px;
    border-bottom: 1px dashed var(--muted-border-color);
}
.gezhi-rank-item:last-child {
    border-bottom: none;
}
.gezhi-rank-no {
    flex: 0 0 28px;
    width: 28px;
    text-align: center;
    font-size: 15px;
}
.gezhi-rank-item .avatar-img {
    margin-right: 8px;
    flex: 0 0 auto;
}
.gezhi-rank-item .avatar-img img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}
.gezhi-rank-name {
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gezhi-rank-points {
    flex: 0 0 auto;
    font-weight: 600;
}

/* ===== 岛民展示墙 ===== */
.gezhi-wall-title {
    font-size: 12px;
    margin: 4px 0 8px;
}
.gezhi-wall-grid {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -4px;
}
.gezhi-wall-item {
    display: block;
    width: 20%;
    padding: 4px;
    box-sizing: border-box;
    text-align: center;
}
.gezhi-wall-item .avatar-img {
    position: relative;
    display: inline-block;
}
.gezhi-wall-item .avatar-img img {
    width: 100%;
    height: auto;
    border-radius: 50%;
}
.gezhi-wall-name {
    display: block;
    font-size: 12px;
    margin-top: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== 岛屿统计卡 ===== */
.gezhi-stats {
    margin: 0 -5px;
}
.gezhi-stat-box {
    width: 33.33%;
    padding: 5px;
    box-sizing: border-box;
}
.gezhi-stat-num {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

/* ===== 移动端 ===== */
@media (max-width: 768px) {
    .gezhi-wall-item {
        width: 25%;
    }
    .gezhi-stat-num {
        font-size: 17px;
    }
}
