/* 友链样式 */
.friend-links-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.friend-link-card {
    width: calc(33.33% - 20px);
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

/* 响应式布局 */
@media (max-width: 992px) {
    .friend-link-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .friend-link-card {
        width: calc(100% - 20px);
    }
}

.friend-link-card a {
    display: flex;
    height: 100%;
    padding: 15px;
    text-decoration: none;
    color: #333 !important;
    position: relative;
    z-index: 1;
    border-bottom: none !important;
}

/* 悬停效果 - 背景色填充 */
.friend-link-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background-color: rgb(226,95,79);
    transition: width 0.3s ease;
    z-index: 0;
}

.friend-link-card:hover::before {
    width: 100%;
}

.friend-link-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

.friend-link-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* 悬停时头像旋转效果 */
.friend-link-card:hover .friend-link-avatar img {
    transform: rotate(360deg) scale(1.1);
}

.friend-link-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.friend-link-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: rgb(166, 167, 157);
}

.friend-link-description {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 悬停时文字颜色变化 */
.friend-link-card:hover .friend-link-name,
.friend-link-card:hover .friend-link-description {
    color: #fff !important;
    position: relative;
    z-index: 2;
}