/**
 * joe.readers.css - 读者墙样式（照搬 Typecho 版 Joe 主题）
 * 仅在读者墙页面模板 page_readers.php 中加载
 * 浅色模式与参考站完全一致；夜间模式用主题变量适配
 */
.joe_readers {
    background: var(--background, #fff);
    border-radius: 8px;
    padding: 18px;
    margin-top: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.joe_readers .head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #f2f6fc;
    margin-bottom: 15px;
}

.joe_readers .head .title {
    font-size: 17px;
    font-weight: 600;
    color: #303133;
}

.joe_readers .head .tips {
    font-size: 12px;
    color: #909399;
}

.joe_readers__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 26px 10px;
    padding: 6px 5px 0;
    margin: 0;
    list-style: none;
}

.joe_readers__list .item .link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}

/* 头像卡片：上下留足角标空间，保证评论数完整显示 */
.joe_readers__list .item .photo {
    position: relative;
    line-height: 0;
    margin-top: 5px;
}

.joe_readers__list .item .avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ebeef5;
    transition: transform .25s;
}

.joe_readers__list .item .link:hover .avatar {
    transform: scale(1.08);
}

.joe_readers__list .item .badge {
    position: absolute;
    top: -5px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    background: #ea5455;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    padding: 0 5px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.joe_readers__list .item .name {
    margin-top: 8px;
    font-size: 13px;
    color: #606266;
    max-width: 84px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.joe_readers__list .item .link:hover .name {
    color: var(--theme);
}

/* 内嵌于文章卡片内的变体：虚线边框、无背景 */
.joe_readers--inset {
    background: none;
    border-radius: 0;
    padding: 15px 0;
    margin: 15px 0;
    border: 2px dashed #f0f0f0;
    box-shadow: none;
}

.joe_readers--inset .head {
    padding: 0 15px 10px;
    border-bottom: none;
    margin-bottom: 16px;
}

.joe_readers--inset .joe_readers__list {
    padding: 0 5px;
}

/* 读者墙页版权块去掉顶部分隔线 */
.joe_detail--readers .joe_detail__copyright {
    border-top: none;
}

/* 夜间模式适配（浅色样式保持与参考站一致，仅夜间替换文字/边框颜色） */
html[data-night="night"] .joe_readers .head .title {
    color: var(--main, #ebeef5);
}

html[data-night="night"] .joe_readers .head .tips {
    color: var(--minor, #909399);
}

html[data-night="night"] .joe_readers__list .item .name {
    color: var(--routine, #a6abb2);
}

html[data-night="night"] .joe_readers--inset {
    border-color: var(--classC, #3a3d43);
}

html[data-night="night"] .joe_readers__list .item .avatar {
    border-color: var(--classC, #3a3d43);
}
