/**
 * 友情链接页面样式
 */

.friends-page {
    padding: 40px 60px;
}

/* 页面标题和介绍 */
.friends-header {
    margin-bottom: 50px;
}

.friends-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #24292e;
    display: flex;
    align-items: center;
    gap: 12px;
}

.friends-title .title-icon {
    width: 32px;
    height: 32px;
    color: #24292e;
}

.friends-description {
    font-size: 16px;
    line-height: 1.8;
    color: #586069;
    max-width: 800px;
}

.friends-description p {
    margin-bottom: 12px;
}

/* 友情链接网格 */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* 友情链接卡片 */
.friend-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fafbfc;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

/* 头像 */
.friend-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: #f6f8fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.friend-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.friend-avatar-placeholder svg {
    width: 32px;
    height: 32px;
}

/* 信息 */
.friend-info {
    flex: 1;
    min-width: 0;
}

.friend-name {
    font-size: 18px;
    font-weight: 600;
    color: #24292e;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.friend-description {
    font-size: 14px;
    color: #586069;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 链接图标 */
.friend-link-icon {
    flex-shrink: 0;
    opacity: 0.5;
}

.friend-link-icon svg {
    width: 20px;
    height: 20px;
    color: #24292e;
}

/* 空状态 */
.friends-empty {
    text-align: center;
    padding: 80px 20px;
    color: #586069;
}

.friends-empty .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    opacity: 0.5;
}

.friends-empty p {
    margin: 10px 0;
    font-size: 16px;
}

.friends-empty .empty-hint {
    font-size: 14px;
    color: #959da5;
}

/* 响应式 - 平板 */
@media (max-width: 992px) {
    .friends-page {
        padding: 30px 40px;
    }
    
    .friends-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

/* 响应式 - 手机 */
@media (max-width: 768px) {
    .friends-page {
        padding: 20px;
    }
    
    .friends-header {
        margin-bottom: 30px;
    }
    
    .friends-title {
        font-size: 26px;
    }
    
    .friends-title .title-icon {
        width: 26px;
        height: 26px;
    }
    
    .friends-description {
        font-size: 15px;
    }
    
    .friends-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .friend-card {
        padding: 16px;
    }
    
    .friend-avatar {
        width: 56px;
        height: 56px;
    }
    
    .friend-name {
        font-size: 16px;
    }
    
    .friend-description {
        font-size: 13px;
    }
    
}

/* 夜间模式 */
body.dark-mode .friends-title {
    color: #fff;
}

body.dark-mode .friends-title .title-icon {
    color: #e0e0e0;
}

body.dark-mode .friends-description {
    color: #aaa;
}

body.dark-mode .friend-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: #333;
}

body.dark-mode .friend-avatar {
    background: #2a2a2a;
}

body.dark-mode .friend-avatar-placeholder {
    color: #666;
}

body.dark-mode .friend-name {
    color: #fff;
}

body.dark-mode .friend-description {
    color: #aaa;
}

body.dark-mode .friend-link-icon svg {
    color: #aaa;
}

body.dark-mode .friends-empty {
    color: #666;
}

body.dark-mode .friends-empty .empty-hint {
    color: #555;
}

