/* 访客区域样式 */
.visitors-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: clamp(5px, 3vw, 5px);
    margin-top: 20px;
    padding: 0px;
}

.visitor {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    font-size: 14px;
    text-align: center;
    background-color: var(--background-hover, rgba(255, 255, 255, 0.05));
    padding: 12px;
    border-radius: 0;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.visitor:hover {
    transform: translateY(-5px);
    background-color: var(--background-hover, rgba(255, 255, 255, 0.1));
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.visitor img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--border-color, #555);
    transition: border-color 0.3s ease;
    object-fit: cover;
}

.visitor-name {
    margin-top: 10px;
    font-weight: bold;
    color: var(--text-color, #eee);
    transition: color 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.visitor-count {
    font-size: 12px;
    color: var(--text-secondary-color, #bbb);
    transition: color 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .visitors-container {
        grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
        gap: 8px;
    }
    
    .visitor img {
        width: 40px;
        height: 40px;
    }
    
    .visitor-name {
        font-size: 12px;
    }
    
    .visitor-count {
        font-size: 10px;
    }
}

/* 骨架屏加载状态 */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* 友情链接区域样式 */
.links-content {
    margin-top: 1rem;
}

.link-navigation {
    display: grid;
/*     grid-template-columns: repeat(3, 1fr); */
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 5px;
}

.card {
    font-size: 1rem;
    padding: 20px;
    border-radius: 0px;
    transition-duration: 0.15s;
    display: flex;
    flex-direction: row;
    min-height: 80px;
    box-sizing: border-box;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 245px; /* 添加最小宽度 */

}

/* 响应式布局调整 */
@media (max-width: 900px) {
    .link-navigation {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .link-navigation {
        grid-template-columns: 1fr;
    }
}

/* 头像样式 */
.card .ava {
    width: 4em!important;
    height: 4em!important;
    margin: 0!important;
    margin-right: 1.5em!important;
    border-radius: 0px;
    flex-shrink: 0; /* 防止头像缩小 */
    object-fit: cover!important; /* 确保图片覆盖整个区域 */
    object-position: center!important; /* 图片居中显示 */
}

/* 文本内容区域 */
.card .card-header {
    font-style: italic;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* 允许内容溢出 */
    flex-grow: 1; /* 让文本区域占据剩余空间 */

}

.card .card-header a {
    font-style: normal;
    color: #2bbc8a;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 4px;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    max-height: 2.4em;
    line-height: 1.2em;
}

.card .card-header .info {
    font-style: normal;
    color: #a3a3a3;
    font-size: 13px;
    overflow: hidden;
    white-space: normal;
    word-wrap: normal;
    max-height: 3.6em;
    line-height: 1.2em;
    webkit-line-clamp: 2; /* 最多显示2行 */
    text-overflow: ellipsis;   /* 溢出部分显示省略号 */

}

/* 交互效果 */
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

.card a {
    border: none;
}