/* 确保关键布局样式优先渲染 - 添加在文件最前面 */
#likers-container-wrapper,
#likers-container,
.empty-state-container,
.empty-likers-state {
    box-sizing: border-box !important;
    border: none !important; /* 移除所有边框 */
    box-shadow: none !important; /* 移除显式阴影 */
}

#likers-container.grid-view {
    display: grid;
    box-sizing: border-box !important;
    text-align: initial !important;
    background: none !important; /* 移除背景 */
    /* 添加滑动弹性效果 */
    overscroll-behavior-x: contain; /* 控制X轴滑动到边缘的行为 */
    -webkit-overflow-scrolling: touch; /* 增强iOS滑动体验 */
    scroll-snap-type: x proximity; /* 使滑动更加自然 */
}

/* 修复空状态和网格视图的布局冲突 */
#likers-container.grid-view .empty-state-container {
    display: flex !important;
    width: 100% !important;
    grid-column: 1 / -1 !important; /* 确保在网格布局中跨越所有列 */
    background: none !important;
    border: none !important;
}

/* 防止JS延迟加载导致的布局跳动 */
#likers-section {
    min-height: 150px; /* 给容器一个最小高度，减少加载时的布局变化 */
    border: none !important; /* 移除边框 */
    background: none !important; /* 移除背景 */
    box-shadow: none !important; /* 移除显式阴影 */
}

/* 喜欢用户列表 - 方块设计 */
:root {
    --liker-bg: transparent; /* 透明背景 */
    --liker-text: #111827;
    --liker-subtext: #6b7280;
    --liker-border: transparent; /* 透明边框 */
    --liker-active: #3b82f6;
    --liker-online: #10b981;
    --liker-unread: #ef4444;
    --liker-card-bg: rgba(255, 255, 255, 0.7); /* 半透明背景 */
    --liker-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.03); /* 更微妙的阴影 */
    --liker-card-hover: 0 5px 15px rgba(0, 0, 0, 0.05);
    --liker-card-active: rgba(249, 250, 251, 0.8);
    --liker-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --liker-radius: 16px;
    --liker-card-radius: 16px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --liker-bg: transparent; /* 透明背景 */
        --liker-text: #f9fafb;
        --liker-subtext: #9ca3af;
        --liker-border: transparent; /* 透明边框 */
        --liker-active: #3b82f6;
        --liker-online: #10b981;
        --liker-unread: #ef4444;
        --liker-card-bg: rgba(17, 24, 39, 0.7); /* 半透明背景 */
        --liker-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        --liker-card-hover: 0 5px 15px rgba(0, 0, 0, 0.15);
        --liker-card-active: rgba(30, 41, 59, 0.8);
    }
}

/* 区域容器 */
#likers-section {
    background: none; /* 移除背景颜色 */
    margin: 16px 0;
    border-radius: var(--liker-radius);
    overflow: hidden;
    position: relative;
}

/* 区域标题 */
.likers-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: none; /* 移除背景 */
    border: none; /* 移除边框 */
    margin-bottom: 8px; /* 仅使用间距而非边框 */
}

.likers-section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--liker-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.likers-section-title svg {
    width: 20px;
    height: 20px;
    color: var(--liker-active);
}

.likers-count {
    background: linear-gradient(135deg, #ff6b6b, #ff5a5f); /* 渐变背景 */
    color: white;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 90, 95, 0.25); /* 微妙阴影 */
}

.likers-toggle-view {
    display: flex;
    align-items: center;
    gap: 8px;
}

.likers-view-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    color: var(--liker-subtext);
    transition: all var(--liker-transition);
}

.likers-view-btn:hover, 
.likers-view-btn.active {
    color: var(--liker-active);
    background-color: rgba(59, 130, 246, 0.05);
}

.likers-view-btn svg {
    width: 18px;
    height: 18px;
}

/* 容器 */
#likers-container-wrapper {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    background: none; /* 移除背景 */
    border: none; /* 移除边框 */
    box-shadow: none; /* 移除阴影 */
    padding: 0 8px; /* 仅使用内边距 */
}

/* 网格视图 */
#likers-container.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    padding: 16px 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
    background: none; /* 移除背景 */
    /* 添加滑动弹性效果 */
    overscroll-behavior-x: contain; /* 控制X轴滑动到边缘的行为 */
    -webkit-overflow-scrolling: touch; /* 增强iOS滑动体验 */
    scroll-snap-type: x proximity; /* 使滑动更加自然 */
}

/* 列表视图 */
#likers-container.list-view {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 8px;
    overflow-y: auto;
    scroll-behavior: smooth;
    max-height: 400px;
    background: none; /* 移除背景 */
    /* 添加垂直滑动弹性效果 */
    overscroll-behavior-y: contain; /* 控制Y轴滑动到边缘的行为 */
    -webkit-overflow-scrolling: touch; /* 增强iOS滑动体验 */
}

/* 网格项 */
.liker-item.grid-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    background: rgba(255, 255, 255, 0.05); /* 几乎透明的背景 */
    backdrop-filter: blur(8px); /* 玻璃效果 */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06); /* 柔和阴影 */
    transform-origin: center;
    border: none; /* 无边框 */
}

.liker-item.grid-item:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.09); /* 更明显的悬浮阴影 */
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.1); /* 轻微增加背景透明度 */
}

.liker-item.grid-item:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.liker-item.grid-item:hover:after {
    opacity: 1;
}

/* 头像容器样式恢复 */
.liker-avatar-container.grid {
    width: 100%;
    padding-bottom: 100%; /* 恢复 1:1 宽高比 */
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: none; /* 移除背景 */
    border: none; /* 移除边框 */
    padding: 0; /* 移除内边距 */
}

.liker-avatar.grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0; /* 移除圆角 */
    border: none; /* 移除边框 */
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.3s ease;
}

.liker-item:hover .liker-avatar.grid {
    transform: scale(1.05);
    filter: none;
}

/* 空状态 */
.empty-likers-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); /* 微妙渐变 */
    backdrop-filter: blur(8px); /* 玻璃效果 */
    border-radius: var(--liker-card-radius, 16px);
    margin: 20px auto;
    max-width: 560px;
    width: 90%;
    box-sizing: border-box;
    border: none !important; /* 移除边框 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* 轻微阴影 */
}

.empty-likers-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
    color: var(--liker-primary, #ff497c);
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.empty-likers-state h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--liker-text, #333);
}

.empty-likers-state p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 10px 0;
    text-align: center;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    white-space: pre-line;
    word-wrap: break-word;
}

/* 针对不同语言版本的文本优化 */
.empty-likers-state p span {
    display: none;
    text-align: center;
}

.empty-likers-state p span.zh {
    word-spacing: 0.1em;
    letter-spacing: 0.05em;
}

body.chinese .empty-likers-state p span.zh,
body.english .empty-likers-state p span.en,
body.japanese .empty-likers-state p span.ja,
body.russian .empty-likers-state p span.ru,
body.french .empty-likers-state p span.fr {
    display: block;
}

/* 移除以下会干扰正常布局的样式 */
.empty-likers-center-fix,
.empty-state-container,
.empty-state-content {
    /* 恢复默认, 不再使用特殊处理 */
    display: inherit;
    width: auto;
    margin: inherit;
}

/* 列表项 */
.liker-item.list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    cursor: pointer;
    transition: all var(--liker-transition);
    background-color: var(--liker-card-bg);
    border-radius: var(--liker-card-radius);
    box-shadow: var(--liker-card-shadow);
}

.liker-item.list-item:hover {
    box-shadow: var(--liker-card-hover);
    transform: translateX(4px);
}

.liker-item.list-item:active {
    background-color: var(--liker-card-active);
    transform: scale(0.99);
}

/* 头像 - 列表 */
.liker-avatar-container.list {
    width: 60px;
    height: 60px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    flex-shrink: 0;
    border: none; /* 移除边框 */
    padding: 0; /* 移除内边距 */
    background: none; /* 移除背景 */
}

.liker-avatar.list {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--liker-transition);
    border-radius: 0; /* 移除圆角 */
    border: none; /* 移除边框 */
}

.liker-item:hover .liker-avatar.list {
    transform: scale(1.05);
}

/* 用户信息 - 网格 */
.liker-info.grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 12px 12px; /* 增加上方填充以容纳更多渐变 */
    background: linear-gradient(to top, 
        rgba(255,255,255,0.85) 0%, 
        rgba(255,255,255,0.7) 40%, 
        rgba(255,255,255,0.5) 70%, 
        rgba(255,255,255,0) 100%); /* 更平滑的白色背景渐变 */
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 5;
    opacity: 1; /* 默认可见 */
    transform: none;
}

.liker-name.grid {
    font-size: 14px;
    font-weight: 600;
    color: #333333; /* 深色文本 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5); /* 白色阴影使文字在深色背景上也可见 */
}

.liker-meta.grid {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #555555; /* 深色文本 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5); /* 白色阴影使文字在深色背景上也可见 */
}

/* 用户信息 - 列表 */
.liker-info.list {
    flex: 1;
    min-width: 0;
}

.liker-name.list {
    font-size: 15px;
    font-weight: 500;
    color: var(--liker-text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.liker-meta.list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.liker-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--liker-subtext);
}

.liker-meta-item svg {
    width: 14px;
    height: 14px;
}

/* 指示器 */
.liker-indicators.grid {
    top: 10px;
    left: 10px;
    z-index: 10;
}

.online-indicator, .unread-indicator {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.7) !important; /* 保留外部阴影用于视觉区分 */
    border: none !important; /* 移除边框 */
}

.online-indicator {
    background-color: #4CAF50 !important;
    border: none !important; /* 确保没有边框 */
}

.unread-indicator {
    background-color: #2196F3 !important;
    border: none !important; /* 确保没有边框 */
}

/* 操作按钮 */
.liker-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
}

.liker-item:hover .liker-actions {
    opacity: 1;
    pointer-events: auto;
}

.liker-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--liker-active);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.liker-action-btn:hover {
    transform: scale(1.1);
    background-color: var(--liker-active);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--liker-active-rgb, 59, 130, 246), 0.3);
}

/* 徽章 */
.liker-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 8px;
    background: linear-gradient(135deg, #ff6b6b, #ff5a5f); /* 渐变背景 */
    color: white;
    font-size: 10px;
    font-weight: 600;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 6; /* 在信息层之上 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: none; /* 移除边框 */
}

.liker-badge.list {
    position: static;
    display: inline-flex;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--liker-active);
}

.liker-badge svg {
    width: 12px;
    height: 12px;
}

/* 分页控制 */
.likers-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    margin-top: 8px;
    background: none; /* 移除背景 */
    border: none; /* 移除边框 */
}

.likers-page-item {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; /* 完全圆形 */
    background: rgba(255, 255, 255, 0.1); /* 微透明背景 */
    backdrop-filter: blur(4px); /* 玻璃效果 */
    color: var(--liker-text);
    font-size: 14px;
    transition: all 0.3s ease;
    border: none; /* 移除边框 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* 微妙阴影 */
}

.likers-page-item:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
}

.likers-page-item.active {
    background: linear-gradient(135deg, #ff6b6b, #ff5a5f);
    color: white;
    box-shadow: 0 3px 8px rgba(255, 90, 95, 0.25);
}

.likers-page-item.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 升级提示 */
#likers-non-member-prompt {
    padding: 30px 24px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border-radius: var(--liker-card-radius);
    margin: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: none; /* 移除边框 */
}

#likers-non-member-prompt h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--liker-text);
    margin-bottom: 10px;
}

#likers-non-member-prompt p {
    color: var(--liker-subtext);
    margin-bottom: 24px;
    line-height: 1.5;
}

#likers-upgrade-btn {
    background: linear-gradient(135deg, #ff5a5f, #ff3347);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 13px 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(255, 90, 95, 0.4);
    animation: pulse-upgrade 2s infinite;
}

#likers-upgrade-btn:hover {
    background: linear-gradient(135deg, #ff3347, #ff2036);
    box-shadow: 0 8px 15px rgba(255, 90, 95, 0.5);
    transform: translateY(-2px);
}

#likers-upgrade-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(255, 90, 95, 0.4);
}

@keyframes pulse-upgrade {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* 错误状态 */
.error-likers-state {
    padding: 50px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    backdrop-filter: blur(8px);
    border-radius: var(--liker-card-radius);
    border: none; /* 移除边框 */
}

.error-likers-state svg {
    width: 48px;
    height: 48px;
    color: var(--liker-unread);
    opacity: 0.6;
}

.error-likers-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--liker-text);
}

.error-likers-state p {
    color: var(--liker-subtext);
    max-width: 300px;
    margin: 0 auto 16px;
    line-height: 1.5;
}

.retry-button {
    background-color: var(--liker-active);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--liker-transition);
}

.retry-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.retry-button:active {
    transform: scale(0.98);
}

/* 加载状态 */
.likers-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 100%;
}

.likers-loading-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    position: relative;
}

.likers-loading-spinner::before,
.likers-loading-spinner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.likers-loading-spinner::before {
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--liker-active) 0%, transparent 100%);
    animation: spinner-rotate 1s linear infinite;
}

.likers-loading-spinner::after {
    width: 75%;
    height: 75%;
    background-color: var(--liker-bg);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spinner-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 确保资料overlay在消息页面正确显示 */
body.messages-active #profileOverlay {
    z-index: 9999;
}

body.messages-active #profileOverlay.visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* 移动端优化 */
@media (max-width: 640px) {
    #likers-container.grid-view {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 12px 16px;
        gap: 12px;
        background: none !important; /* 确保无背景 */
        /* 增强的滑动弹性体验 */
        overscroll-behavior-x: contain; /* 控制横向滑动的弹性边界行为 */
        scroll-snap-type: x mandatory; /* 使滑动更精确贴合子元素 */
    }
    
    /* 为网格项添加滑动吸附点 */
    .liker-item.grid-item {
        flex-shrink: 0;
        width: 120px;
        background: rgba(255, 255, 255, 0.05); /* 半透明背景 */
        backdrop-filter: blur(8px);
        scroll-snap-align: center; /* 滑动吸附中心对齐 */
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* 更平滑的动画曲线 */
    }
    
    /* 滑动触及边缘时的过渡动画 */
    #likers-container.grid-view::-webkit-scrollbar {
        display: none; /* 隐藏滚动条但保留功能 */
    }
    
    /* 确保移动端也遵循无边界设计 */
    #likers-section,
    #likers-container-wrapper,
    .likers-section-header,
    #likers-non-member-prompt {
        border: none !important;
        box-shadow: none !important;
        background: none !important;
    }
    
    .liker-info.grid {
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.2) 85%, transparent 100%);
        padding-top: 40px;
    }
}

/* 确保空状态容器正确居中 */
.empty-state-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important; /* 移除背景 */
    border: none !important; /* 移除边框 */
}

/* 确保多语言支持在空状态下工作正常 */
.empty-likers-state h3 .zh,
.empty-likers-state h3 .en,
.empty-likers-state h3 .ja,
.empty-likers-state h3 .ru,
.empty-likers-state h3 .fr,
.empty-likers-state p .zh,
.empty-likers-state p .en,
.empty-likers-state p .ja,
.empty-likers-state p .ru,
.empty-likers-state p .fr {
    display: none;
}

/* 根据body类名显示对应语言 */
body.chinese .empty-likers-state h3 .zh,
body.chinese .empty-likers-state p .zh,
body.english .empty-likers-state h3 .en,
body.english .empty-likers-state p .en,
body.japanese .empty-likers-state h3 .ja,
body.japanese .empty-likers-state p .ja,
body.russian .empty-likers-state h3 .ru,
body.russian .empty-likers-state p .ru,
body.french .empty-likers-state h3 .fr,
body.french .empty-likers-state p .fr {
    display: inline;
}

/* 默认显示中文 */
body:not(.chinese):not(.english):not(.japanese):not(.russian):not(.french) .empty-likers-state h3 .zh,
body:not(.chinese):not(.english):not(.japanese):not(.russian):not(.french) .empty-likers-state p .zh {
    display: inline;
}

/* 修改聊天列表项样式 */
#messages-list li {
    margin-bottom: 10px;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none !important; /* 移除边框 */
    background: none !important; /* 移除背景 */
    box-shadow: none !important; /* 移除明显阴影 */
}

#messages-list .thread-item {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.6)) !important; /* 渐变背景 */
    backdrop-filter: blur(10px) !important; /* 玻璃效果 */
    border: none !important; /* 移除边框 */
    border-radius: 16px !important; /* 圆角 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important; /* 微妙阴影 */
}

#messages-list li:hover .thread-item {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7)) !important;
}

/* 使用间距和透明度代替线条 */
.likers-section-header:after {
    display: none; /* 将原来的after伪元素隐藏，移除黑线 */
}

/* 替换传统分隔线效果 */
.likers-pagination:before {
    content: '';
    display: block;
    position: absolute;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0,0,0,0.05), transparent);
    margin-top: -16px;
    opacity: 0.5;
}

/* 喜欢用户列表 - Robinhood游戏风格设计（品牌色整合） */

/* 品牌色变量定义 */
:root {
  --liker-primary: #ff497c; /* 主要品牌色 */
  --liker-primary-rgb: 255, 73, 124;
  --liker-secondary: #8c53ff; /* 次要品牌色 */
  --liker-secondary-rgb: 140, 83, 255;
  --liker-accent: #01c4e7; /* 强调色 */
  --liker-accent-rgb: 1, 196, 231;
  --liker-surface: #ffffff;
  --liker-surface-dark: #111827;
  --liker-text: #292d32;
  --liker-text-secondary: #6e7582;
  --liker-skeleton: 230, 230, 230;
}

[data-theme="dark"] {
  --liker-surface: #1f2937;
  --liker-text: #f3f4f6;
  --liker-text-secondary: #d1d5db;
  --liker-skeleton: 60, 60, 70;
}

/* 基础动画 */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

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

@keyframes appear {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(var(--liker-primary-rgb), 0.5); }
  50% { box-shadow: 0 0 15px rgba(var(--liker-primary-rgb), 0.8); }
}

/* 容器样式 */
.likers-container {
  --card-radius: 16px;
  --card-shadow: 0 8px 24px rgba(0,0,0,0.1);
  --card-bg: var(--liker-surface);
  --card-hover-translate: translateY(-6px);
  --card-transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  padding: 10px;
  margin-top: 20px;
  perspective: 1000px;
}

/* 头部样式 */
.likers-header {
  display: flex;
  align-items: center;
  padding: 0 15px 15px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(var(--liker-primary-rgb), 0.15);
  position: relative;
}

.likers-header::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, 
    var(--liker-primary), 
    var(--liker-secondary));
  border-radius: 2px;
}

.likers-title {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--liker-primary), var(--liker-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
  padding-right: 15px;
  position: relative;
}

.likers-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(var(--liker-primary-rgb), 0.1), 
    rgba(var(--liker-secondary-rgb), 0.1));
  border-radius: 20px;
  padding: 5px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--liker-text);
  margin-left: auto;
  border: 1px solid rgba(var(--liker-primary-rgb), 0.15);
  transition: all 0.3s ease;
}

.likers-counter:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, 
    rgba(var(--liker-primary-rgb), 0.15), 
    rgba(var(--liker-secondary-rgb), 0.15));
}

/* 卡片样式 */
.liker-card {
  background: var(--card-bg);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: var(--card-transition), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--liker-border);
  animation: appear 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.liker-card:nth-child(3n+1) { animation-delay: 0.1s; }
.liker-card:nth-child(3n+2) { animation-delay: 0.2s; }
.liker-card:nth-child(3n+3) { animation-delay: 0.3s; }

.liker-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(var(--liker-primary-rgb), 0.05) 0%, 
    rgba(var(--liker-secondary-rgb), 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.liker-card:hover {
  transform: var(--card-hover-translate);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  border-color: rgba(var(--liker-primary-rgb), 0.2);
}

.liker-card:hover::before {
  opacity: 1;
}

/* 头像容器 */
.liker-avatar-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  border-radius: 50%;
  z-index: 1;
  padding: 0; /* 移除内边距 */
  background: none; /* 移除渐变背景 */
  box-shadow: none; /* 移除阴影 */
  transition: all 0.3s ease;
}

.liker-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: none; /* 移除边框 */
  transition: all 0.3s ease;
  filter: none; /* 移除saturate滤镜 */
  display: block;
}

.liker-card:hover .liker-avatar-container {
  background: none; /* 移除悬停时的渐变背景 */
  box-shadow: none; /* 移除悬停时的阴影 */
  transform: scale(1.03);
}

.liker-card:hover .liker-avatar {
  /* Optional: Slightly scale avatar image too */
  /* transform: scale(1.05); */
}

/* 用户信息 */
.liker-info {
  text-align: center;
  width: 100%;
  z-index: 1;
}

.liker-name {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 5px;
  color: var(--liker-text);
  transition: all 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.liker-card:hover .liker-name {
  color: var(--liker-primary);
}

.liker-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--liker-text-secondary);
  font-size: 0.8rem;
}

.liker-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.liker-meta-item i {
  font-size: 0.9rem;
  color: rgba(var(--liker-secondary-rgb), 0.7);
}

/* 指示器 */
.liker-indicators {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.online-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #4caf50;
  border: 2px solid var(--card-bg);
  position: relative;
}

.online-indicator::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: inherit;
  animation: pulse 2s infinite;
  z-index: -1;
}

.new-liker-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(135deg, var(--liker-primary), #ff7e9e);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 2;
  transform: rotate(-10deg);
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* 动作按钮 */
.liker-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.liker-card:hover .liker-actions {
  opacity: 1;
  transform: translateY(0);
}

.liker-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--liker-border);
  color: var(--liker-text);
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.liker-action-btn:hover {
  transform: scale(1.1);
  background: var(--liker-primary);
  color: white;
}

/* 加载状态 */
.liker-card.loading {
  pointer-events: none;
}

.liker-card.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(270deg,
    rgba(var(--liker-skeleton), 0.1),
    rgba(var(--liker-skeleton), 0.2),
    rgba(var(--liker-skeleton), 0.1)
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* 分页控制 */
.likers-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding: 10px 0;
  position: relative;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--card-bg);
  border: 1px solid var(--liker-border);
  color: var(--liker-text);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
}

.page-btn:hover {
  background: rgba(var(--liker-primary-rgb), 0.1);
  border-color: rgba(var(--liker-primary-rgb), 0.3);
  transform: translateY(-2px);
}

.page-btn.active {
  background: linear-gradient(135deg, var(--liker-primary), var(--liker-secondary));
  color: white;
  border: none;
}

/* 视图切换按钮 */
.likers-toggle-view {
  display: flex;
  gap: 8px;
  margin-left: 15px;
}

.likers-view-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--liker-border);
  color: var(--liker-text-secondary);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.likers-view-btn:hover, 
.likers-view-btn.active {
  background: linear-gradient(135deg, rgba(var(--liker-primary-rgb), 0.1), rgba(var(--liker-secondary-rgb), 0.1));
  color: var(--liker-primary);
  transform: translateY(-2px);
  border-color: rgba(var(--liker-primary-rgb), 0.3);
}

.likers-view-btn.active {
  background: linear-gradient(135deg, var(--liker-primary), var(--liker-secondary));
  color: white;
}

/* 响应式适配 */
@media (max-width: 768px) {
  .likers-container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .liker-avatar-container {
    width: 65px;
    height: 65px;
  }
  
  .likers-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .likers-counter {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .likers-container {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }
  
  .liker-name {
    font-size: 0.9rem;
  }
  
  .liker-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .liker-avatar-container {
    width: 55px;
    height: 55px;
  }
}

/* 确保空状态容器正确居中 */
.empty-state-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important; /* 移除背景 */
    border: none !important; /* 移除边框 */
}

/* 确保多语言支持在空状态下工作正常 */
.empty-likers-state h3 .zh,
.empty-likers-state h3 .en,
.empty-likers-state h3 .ja,
.empty-likers-state h3 .ru,
.empty-likers-state h3 .fr,
.empty-likers-state p .zh,
.empty-likers-state p .en,
.empty-likers-state p .ja,
.empty-likers-state p .ru,
.empty-likers-state p .fr {
    display: none;
}

/* 根据body类名显示对应语言 */
body.chinese .empty-likers-state h3 .zh,
body.chinese .empty-likers-state p .zh,
body.english .empty-likers-state h3 .en,
body.english .empty-likers-state p .en,
body.japanese .empty-likers-state h3 .ja,
body.japanese .empty-likers-state p .ja,
body.russian .empty-likers-state h3 .ru,
body.russian .empty-likers-state p .ru,
body.french .empty-likers-state h3 .fr,
body.french .empty-likers-state p .fr {
    display: inline;
}

/* 默认显示中文 */
body:not(.chinese):not(.english):not(.japanese):not(.russian):not(.french) .empty-likers-state h3 .zh,
body:not(.chinese):not(.english):not(.japanese):not(.russian):not(.french) .empty-likers-state p .zh {
    display: inline;
}

/* 修复thread-name显示问题，加强可见性并隐藏thread-id-tag */
.thread-name {
    font-weight: 800 !important;
    font-size: 16px !important;
    color: #000 !important;
    text-shadow: 0 1px 1px rgba(255,255,255,0.5) !important;
}

@media (prefers-color-scheme: dark) {
    .thread-name {
        color: #fff !important;
        text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
    }
}

/* 隐藏所有thread-id-tag */
.thread-id-tag {
    display: none !important;
}

/* 第4种风格：全图风格 - 应用于喜欢列表 */
/* 覆盖基础样式以应用新风格 */
#likers-container.grid-view {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 8px;
    justify-content: center;
    /* 增强滑动体验 */
    overscroll-behavior: contain; /* 控制滑动边界效果 */
    -webkit-overflow-scrolling: touch; /* 平滑滑动 */
}

/* 卡片样式 */
.liker-item.grid-item {
    flex: 0 0 200px !important;
    height: 250px !important;
    margin: 0 !important;
    position: relative !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 3px 15px rgba(0,0,0,0.15) !important;
    background: none !important;
    backdrop-filter: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.liker-item.grid-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2) !important;
}

/* 头像容器 - 覆盖整个卡片 */
.liker-avatar-container.grid {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    padding-bottom: 0 !important;
    border-radius: 0 !important; /* 移除圆角 */
    background: none !important; /* 移除背景 */
    padding: 0 !important; /* 移除内边距 */
    border: none !important; /* 移除边框 */
}

.liker-avatar.grid {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important; /* 移除圆角 */
    border: none !important; /* 移除边框 */
    transition: transform 0.5s ease !important;
}

.liker-item.grid-item:hover .liker-avatar.grid {
    transform: scale(1.05) !important;
}

/* 用户信息 - 底部渐变遮罩 */
.liker-info.grid {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.5) 60%, transparent 100%) !important;
    color: white !important;
    padding: 50px 15px 15px !important;
    z-index: 2 !important;
}

.liker-name.grid {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 5px !important;
    color: white !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

.liker-meta.grid {
    font-size: 13px !important;
    color: rgba(255,255,255,0.9) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5) !important;
}

/* 状态指示器位置调整 */
.liker-indicators.grid {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
}

.online-indicator, .unread-indicator {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.7) !important; /* 保留外部阴影用于视觉区分 */
    border: none !important; /* 移除边框 */
}

.online-indicator {
    background-color: #4CAF50 !important;
    border: none !important; /* 确保没有边框 */
}

.unread-indicator {
    background-color: #2196F3 !important;
    border: none !important; /* 确保没有边框 */
}

/* 互相喜欢徽章样式 */
.liker-badge {
    position: absolute !important;
    top: 12px !important;
    left: 12px !important;
    background: linear-gradient(135deg, #ff6b81, #ff5a65) !important;
    color: white !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    border-radius: 30px !important;
    display: flex !important;
    align-items: center !important;
    box-shadow: 0 3px 8px rgba(255,107,129,0.3) !important;
    z-index: 10 !important;
}

/* 操作按钮重新定位 */
.liker-actions {
    position: absolute !important;
    bottom: 15px !important;
    right: 15px !important;
    z-index: 10 !important;
}

.liker-action-btn {
    background: rgba(255,255,255,0.9) !important;
    color: #ff5a5f !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

.liker-action-btn:hover {
    background: #ff5a5f !important;
    color: white !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
    #likers-container.grid-view {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        /* 增强的弹性滑动体验 */
        overscroll-behavior-x: contain !important; /* 弹性边界 */
        -webkit-overflow-scrolling: touch !important; /* 平滑滑动 */
        scroll-snap-type: x mandatory !important; /* 强制吸附 */
        scroll-padding: 16px !important; /* 滑动边缘填充 */
        animation: bounce-horizontal-scroll 0.5s cubic-bezier(0.1, 0.9, 0.2, 1) forwards;
    }
    
    /* 为列表项添加吸附点 */
    .liker-item.grid-item {
        flex: 0 0 180px !important;
        height: 240px !important;
        margin-right: 15px !important;
        scroll-snap-align: center !important; /* 滑动吸附 */
    }
    
    /* 添加滑动到边缘的反弹动画 */
    @keyframes bounce-horizontal-scroll {
        0% { transform: translateX(0); }
        10% { transform: translateX(-10px); }
        30% { transform: translateX(5px); }
        50% { transform: translateX(-3px); }
        70% { transform: translateX(2px); }
        100% { transform: translateX(0); }
    }
    
    /* 添加滑动反馈触感CSS */
    .liker-item.grid-item:active {
        transform: none !important;
        transition: none !important;
    }
}

/* 增加触感滑动响应 */
@media (hover: none) and (pointer: coarse) {
    /* 针对触摸屏设备 */
    #likers-container.grid-view,
    #likers-container.list-view {
        /* 增强的滑动物理效果 */
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    
    /* 触摸反馈效果移除 */
    .liker-item:active {
        transform: none;
        opacity: 1;
        transition: none;
    }
    
    /* 保持正常过渡效果，但移除不必要的filter效果 */
    .liker-item {
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                    box-shadow 0.3s ease;
    }
}








