.search-container {
    top:0;
    position: fixed;
    display: flex;
    align-items: center;
    left: 0;
    right: 0;
    background: #ff6600;
    z-index: 1000;
    /*box-shadow: 0 -2px 10px rgba(0,0,0,0.1);*/
    padding: 5px 10px; /* 添加内边距 */
    /*background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));*/
}

.search-container input {
    margin-right: 5px;
    margin-left: 10px;
    border-radius: 30px; /* 添加圆角 */
    border-color: white;
    box-shadow: none;
}

.search-container input:focus {
    border-color: white;
    outline: none;
    box-shadow: none;
}


.search-container button:hover {
    background-color: #ffffff; /* 悬停时颜色加深 */
    outline: none;
    border: none; /* 去掉边框 */
}
.search-container button:focus {
    outline: none;
    border: none; /* 去掉边框 */
}

/* 收藏按钮样式 */
.favorite-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 20px;
    transition: background-color 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* 移动端样式优化 */
@media (max-width: 768px) {
    .favorite-btn {
        padding: 10px 15px; /* 增大点击区域 */
        margin: -5px;  /* 负边距扩大可点击范围 */
    }
    
    .favorite-btn i {
        font-size: 18px; /* 增大图标大小 */
    }
    
    .favorite-btn .star-count {
        font-size: 14px;
    }
    
    /* 点击状态反馈 */
    .favorite-btn:active {
        background-color: rgba(0, 0, 0, 0.05);
    }
}

/* 收藏按钮容器 */
.favorite-item {
    position: relative;
    display: flex;
    align-items: center;
}

/* 收藏图标和文字的对齐 */
.favorite-btn i,
.favorite-btn .star-count {
    pointer-events: none; /* 防止事件冒泡导致的点击问题 */
}

/* 已收藏状态的悬停效果 */
.favorite-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* 添加触摸反馈 */
.favorite-btn.touched {
    background-color: rgba(0, 0, 0, 0.1);
}

/* 用户信息模态框样式 */
.user-profile {
    padding: 20px;
}

.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-header .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-header .username {
    font-size: 1.5rem;
    margin: 0;
}

.profile-info {
    margin-bottom: 20px;
}

.profile-info p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-info i {
    width: 20px;
    color: #666;
}

.profile-actions {
    text-align: center;
}

/* 用户名点击样式 */
.stat-item span {
    cursor: pointer;
}

.stat-item span:hover {
    color: #ff6600;
}

/* 好友列表样式 */
.friends-list {
    max-height: 400px;
    overflow-y: auto;
}

.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.friend-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* 防止内容溢出 */
}

.friend-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.friend-name {
    font-size: 1rem;
    color: #333;
}

/* 个人资料样式优化 */
.profile-header {
    text-align: center;
    margin-bottom: 20px;
}

.profile-header .avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 10px;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.friends-count {
    cursor: pointer;
    transition: color 0.2s;
}

.friends-count:hover {
    color: #ff6600;
}

/* 头像上传样式 */
.avatar-upload {
    margin-bottom: 20px;
}

.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

/* 头像容器样式 */
.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

/* 头像编辑按钮样式 */
.avatar-edit-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 1;
}

.avatar-edit-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.avatar-edit-btn i {
    color: #666;
    font-size: 16px;
}

/* 头像样式 */
#currentAvatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

#currentAvatar:hover {
    transform: scale(1.05);
}

/* 好友列表 Tab 样式 */
.nav-tabs .nav-link {
    font-size: 16px;
    color: #666;
    border: none;
    padding: 5px 10px;
    margin-right: 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
}

.nav-tabs .nav-link.active {
    color: #ff6600;
    background: rgba(255, 102, 0, 0.1);
    border: none;
}

/* 好友列表项样式优化 */
.friend-details {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    flex: 1;
}

.friend-details .friend-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-details .friend-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.friend-details small {
    font-size: 12px;
}

.friends-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.friend-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* 好友关系标签样式 */
.friend-details .badge {
    margin-left: 8px;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

/* 相互关注标签特殊样式 */
.badge.bg-success {
    background-color: #fff !important;
    color: #666;
}

/* 好友操作按钮统一样式 */
.friend-item .btn {
    min-width: 80px;
    padding: 6px 12px;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
}

/* 取消关注按钮样式 */
.friend-item .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

.friend-item .btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* 回关按钮样式 */
.friend-item .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.friend-item .btn-primary:hover {
    background-color: #0069d9;
    border-color: #0062cc;
}

/* 统一按钮动效 */
.friend-item .btn:active {
    transform: scale(0.95);
}

/* 确保关系标签样式一致 */
.follow_me {
    color: #28a745;
    font-weight: 500;
}
