/* readers-wall.css */

/* 容器样式 */
.readers-section {
    margin-bottom: 50px;
    /* 隐藏无序列表的默认标记 */
    list-style: none;
    /* 隐藏下划线 */
    border-bottom: none;
    padding: 0; /* 移除默认的内边距 */
    margin: 0; /* 重置默认外边距，如果需要的话 */
}

.readers-section h2.entry-title {
    font-size: 12px;
    margin-bottom: 12px;
    color: #333;
}

/* 头像列表样式 */
.readers-list { 
    display: flex; 
    flex-wrap: wrap; 
    list-style: none; 
    padding: 0;
    margin: 0;
}
.readers-list li {
    list-style-type: none!important; /* 确保没有列表项前的小圆圈 */
    position: relative;
    margin: 20px;
    width: 50px; /* 调整头像大小 */
    height: 55px;
    border-bottom: none!important;/* 隐藏下划线 */
    
}
.readers-list li a {
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    text-decoration: none;
    position: relative;
}
.readers-list li img {
    width: 100%;
    height: 100%;
    border-radius: 50%!important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.readers-list li a:hover img,
.readers-list li a:focus img {
    transform: scale(1.1);
}

/* 悬停信息框样式 */
.readers-list li .tooltip {
    visibility: hidden;
    opacity: 0;
    width: 90px;
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    bottom: 60px; /* 头像上方 */
    left: 50%;
    transform: translateX(-50%);
    transition: opacity 0.3s ease;
    z-index: 10;
    font-size: 12px;
}
.readers-list li .tooltip::after {
    content: "";
    position: absolute;
    top: 100%; /* 箭头指向头像 */
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.75) transparent transparent transparent;
}
.readers-list li:hover .tooltip,
.readers-list li a:focus .tooltip {
    visibility: visible;
    opacity: 1;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .readers-list li {
        width: 40px;
        height: 40px;
    }
    .readers-section h2.entry-title {
        font-size: 12px;
    }
    .readers-list li .tooltip {
        width: 80px;
        font-size: 12px;
    }
}