/* 微信收藏界面（全页） */
.favorites-page {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    flex-direction: column;
    background: #fff;
    z-index: 100;
    min-height: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.favorites-page.show {
    display: flex;
}

.favorites-page-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 20;
}

.favorites-back-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(116, 128, 152, 0.18);
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.favorites-page-title {
    flex: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 40px;
}

.favorites-page-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 收藏入口页：整块内容区可滚动，小屏可滑到底部入口 */
.favorites-page .favorites-page-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

/* 收藏详情页：头部/提示固定，列表区域内部滚动 */
.favorites-detail-page .favorites-page-body {
    overflow: hidden;
}

.favorites-tabs {
    flex-shrink: 0;
    display: flex;
    gap: 24px;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.favorites-action-tip {
    flex-shrink: 0;
    padding: 8px 16px 10px;
    font-size: 12px;
    color: #999;
    background: #fff;
    border-bottom: 1px solid #f4f4f4;
}

.favorites-tab {
    font-size: 15px;
    color: #999;
    cursor: pointer;
}

.favorites-tab.active {
    color: #07c160;
    font-weight: 500;
}

.favorites-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

.favorites-empty {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    padding-bottom: max(32px, env(safe-area-inset-bottom, 0px));
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.favorites-empty-text {
    font-size: 16px;
    color: #999;
    margin-bottom: 8px;
}

.favorites-empty-hint {
    font-size: 13px;
    color: #bbb;
    line-height: 1.5;
}

/* 聊天收藏 - 好友列表项 */
.favorites-chat-friend-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e8e8e8;
}

.favorites-chat-friend-item:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #f5f5f5 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.favorites-chat-friend-item:active {
    transform: scale(0.98);
}

.favorites-chat-friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #d4c5c7 0%, #b8a8aa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.favorites-chat-friend-avatar-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.favorites-chat-friend-info {
    flex: 1;
    min-width: 0;
}

.favorites-chat-friend-name {
    font-size: 15px;
    font-weight: 500;
    color: #6b6b6b;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-chat-friend-count {
    font-size: 12px;
    color: #999;
}

.favorites-chat-friend-arrow {
    font-size: 24px;
    color: #bbb;
    margin-left: 8px;
}

/* 聊天收藏详情列表容器 */
.favorites-chat-detail-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

/* Memo风格的聊天收藏卡片 - 莫兰迪色调 */
.favorites-chat-memo-item {
    background: linear-gradient(135deg, #f8f6f7 0%, #f0eff0 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 2px solid #e5e1e3;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.favorites-chat-memo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(135deg, #d4c5c7 0%, #c4b5b7 100%);
    border-radius: 10px 10px 0 0;
}

.favorites-chat-memo-item::after {
    content: '• Memo •';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.favorites-chat-memo-item:last-child {
    margin-bottom: 0;
}

/* 装饰心形 */
.favorites-chat-memo-item .memo-heart {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 20px;
    color: #6b6b6b;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.favorites-chat-memo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 46px 16px 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 2;
}

.favorites-chat-memo-header:hover {
    opacity: 0.9;
}

.favorites-chat-memo-time {
    font-size: 12px;
    color: #8b7d7f;
    font-weight: 500;
}

.favorites-chat-memo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorites-chat-memo-toggle {
    font-size: 12px;
    color: #a89a9c;
    transition: transform 0.3s ease;
}

.favorites-chat-memo-item.expanded .favorites-chat-memo-toggle {
    transform: rotate(180deg);
}

.favorites-chat-memo-delete {
    background: linear-gradient(135deg, #d4c5c7, #c4b5b7);
    border: none;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.favorites-chat-memo-delete:hover {
    background: linear-gradient(135deg, #c4b5b7, #b4a5a7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.favorites-chat-memo-delete:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 折叠状态：隐藏内容 */
.favorites-chat-memo-item.collapsed .favorites-chat-memo-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 16px;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.favorites-chat-memo-item.collapsed .memo-heart {
    display: none;
}

/* 展开状态：显示内容 */
.favorites-chat-memo-item.expanded .favorites-chat-memo-content {
    max-height: 2000px;
    opacity: 1;
    padding: 0 16px 16px;
    transition: max-height 0.5s ease, opacity 0.3s ease 0.1s, padding 0.3s ease;
}

.favorites-chat-memo-item.expanded .memo-heart {
    display: block;
}

/* Memo内容区域 */
.favorites-chat-memo-content {
    background: transparent;
    position: relative;
    z-index: 1;
}

.favorites-chat-memo-text {
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid #e5e1e3;
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 60px;
}

/* 添加心形装饰到每个卡片 */
.favorites-chat-memo-item .memo-heart::before {
    content: '♥';
}

/* 朋友圈收藏 - 好友列表项 */
.favorites-moments-friend-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e8e8e8;
}

.favorites-moments-friend-item:hover {
    background: linear-gradient(135deg, #f0f0f0 0%, #f5f5f5 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.favorites-moments-friend-item:active {
    transform: scale(0.98);
}

.favorites-moments-friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #b8c5d4 0%, #a0b0c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.favorites-moments-friend-avatar-text {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.favorites-moments-friend-info {
    flex: 1;
    min-width: 0;
}

.favorites-moments-friend-name {
    font-size: 15px;
    font-weight: 500;
    color: #6b6b6b;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-moments-friend-count {
    font-size: 12px;
    color: #999;
}

.favorites-moments-friend-arrow {
    font-size: 24px;
    color: #bbb;
    margin-left: 8px;
}

/* 朋友圈收藏详情列表容器 */
.favorites-moments-detail-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

/* Memo风格的朋友圈收藏卡片 - 莫兰迪蓝色调 */
.favorites-moments-memo-item {
    background: linear-gradient(135deg, #f6f8fa 0%, #eef2f5 100%);
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 2px solid #dfe5eb;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.favorites-moments-memo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(135deg, #b8c5d4 0%, #a8b8c8 100%);
    border-radius: 10px 10px 0 0;
}

.favorites-moments-memo-item::after {
    content: '• Memo •';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.favorites-moments-memo-item:last-child {
    margin-bottom: 0;
}

/* 装饰心形 */
.favorites-moments-memo-item .memo-heart {
    position: absolute;
    bottom: 12px;
    right: 12px;
    font-size: 20px;
    color: #6b7a8a;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

.favorites-moments-memo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 46px 16px 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 2;
}

.favorites-moments-memo-header:hover {
    opacity: 0.9;
}

.favorites-moments-memo-time {
    font-size: 12px;
    color: #7a8a9a;
    font-weight: 500;
}

.favorites-moments-memo-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.favorites-moments-memo-toggle {
    font-size: 12px;
    color: #9aa8b8;
    transition: transform 0.3s ease;
}

.favorites-moments-memo-item.expanded .favorites-moments-memo-toggle {
    transform: rotate(180deg);
}

.favorites-moments-memo-delete {
    background: linear-gradient(135deg, #b8c5d4, #a8b8c8);
    border: none;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.favorites-moments-memo-delete:hover {
    background: linear-gradient(135deg, #a8b8c8, #98a8b8);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.favorites-moments-memo-delete:active {
    transform: scale(0.95);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 折叠状态：隐藏内容 */
.favorites-moments-memo-item.collapsed .favorites-moments-memo-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 16px;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.favorites-moments-memo-item.collapsed .memo-heart {
    display: none;
}

/* 展开状态：显示内容 */
.favorites-moments-memo-item.expanded .favorites-moments-memo-content {
    max-height: 2000px;
    opacity: 1;
    padding: 0 16px 16px;
    transition: max-height 0.5s ease, opacity 0.3s ease 0.1s, padding 0.3s ease;
}

.favorites-moments-memo-item.expanded .memo-heart {
    display: block;
}

/* Memo内容区域 */
.favorites-moments-memo-content {
    background: transparent;
    position: relative;
    z-index: 1;
}

.favorites-moments-memo-text {
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    border: 1px solid #dfe5eb;
    font-size: 13px;
    color: #6b6b6b;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 60px;
}

/* 添加心形装饰到每个卡片 */
.favorites-moments-memo-item .memo-heart::before {
    content: '♥';
}

/* 收藏分区入口卡片 */
.favorites-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(10px, 2.5vh, 16px);
    padding: clamp(12px, 3vh, 20px) 16px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.favorites-category-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 16px;
    padding: clamp(14px, 3.5vh, 24px) clamp(14px, 4vw, 20px);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.08);
    border: 2px solid transparent;
}

.favorites-category-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(156, 39, 176, 0.12);
}

.favorites-category-icon {
    font-size: clamp(32px, 7vh, 48px);
    margin-bottom: clamp(6px, 1.5vh, 12px);
    text-align: center;
}

.favorites-category-name {
    font-size: clamp(16px, 4vw, 18px);
    font-weight: 600;
    color: #5e35b1;
    text-align: center;
    margin-bottom: 4px;
}

.favorites-category-desc {
    font-size: clamp(12px, 3.2vw, 13px);
    color: #7e57c2;
    text-align: center;
    opacity: 0.8;
}

/* 收藏详情页面 */
.favorites-detail-page {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    flex-direction: column;
    background: #fff;
    z-index: 101;
    overflow: hidden;
    min-height: 0;
    box-sizing: border-box;
}

.favorites-detail-page.show {
    display: flex;
}

/* 心跳监控收藏 - 好友列表 */
.favorites-heartbeat-friends-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 12px 0;
    padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
}

.favorites-heartbeat-friend-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.favorites-heartbeat-friend-item:active {
    background: #f8f8f8;
}

.favorites-heartbeat-friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #e1bee7, #b39ddb);
    margin-right: 12px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.favorites-heartbeat-friend-info {
    flex: 1;
    min-width: 0;
}

.favorites-heartbeat-friend-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
}

.favorites-heartbeat-friend-count {
    font-size: 13px;
    color: #999;
}

.favorites-heartbeat-friend-arrow {
    font-size: 18px;
    color: #ccc;
    margin-left: 8px;
}

/* 心跳监控收藏 - 记录列表 */
.favorites-heartbeat-records-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 10px 12px;
    padding-bottom: max(18px, env(safe-area-inset-bottom, 0px));
    background: linear-gradient(135deg, #fce4ec 0%, #e1f5fe 100%);
}

/* WISH LIST 风格的心跳记录卡片 */
.favorites-heartbeat-record-item {
    background: linear-gradient(135deg, #fff5f8 0%, #f0f4ff 100%);
    border-radius: 18px;
    padding: 0;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.12);
    border: 2px solid #e1bee7;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.favorites-heartbeat-record-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 46px;
    background: linear-gradient(135deg, #4a148c 0%, #6a1b9a 100%);
    border-radius: 16px 16px 0 0;
}

.favorites-heartbeat-record-item::after {
    content: '♥ His heart ♥';
    position: absolute;
    top: 13px;
    left: 50%;
    transform: translateX(-50%);
    color: #fce4ec;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.favorites-heartbeat-record-item:last-child {
    margin-bottom: 0;
}

/* 装饰圆点 */
.favorites-heartbeat-record-item .hb-decoration-dots {
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 0 10px;
    z-index: 2;
}

.favorites-heartbeat-record-item .hb-decoration-dot {
    width: 7px;
    height: 7px;
    background: #9575cd;
    border-radius: 50%;
    opacity: 0.4;
}

.favorites-heartbeat-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 64px 14px 12px;
    cursor: pointer;
    user-select: none;
    position: relative;
    z-index: 3;
}

.favorites-heartbeat-record-header:hover {
    opacity: 0.9;
}

.favorites-heartbeat-record-time {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    color: #6a1b9a;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-heartbeat-record-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.favorites-heartbeat-record-toggle {
    font-size: 14px;
    color: #8e24aa;
    transition: transform 0.3s ease;
}

.favorites-heartbeat-record-item.expanded .favorites-heartbeat-record-toggle {
    transform: rotate(180deg);
}

.favorites-heartbeat-record-delete {
    background: linear-gradient(135deg, #f48fb1, #ce93d8);
    border: none;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(233, 30, 99, 0.2);
    -webkit-tap-highlight-color: transparent;
}

.favorites-heartbeat-record-delete:hover {
    background: linear-gradient(135deg, #f06292, #ba68c8);
    box-shadow: 0 3px 6px rgba(233, 30, 99, 0.3);
}

.favorites-heartbeat-record-delete:active {
    transform: scale(0.95);
    box-shadow: 0 1px 3px rgba(233, 30, 99, 0.2);
}

/* 折叠状态：隐藏内容 */
.favorites-heartbeat-record-item.collapsed .favorites-heartbeat-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 14px;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

/* 展开状态：显示内容 */
.favorites-heartbeat-record-item.expanded .favorites-heartbeat-content {
    max-height: 5000px;
    opacity: 1;
    padding: 0 14px 16px;
    transition: max-height 0.5s ease, opacity 0.3s ease 0.1s, padding 0.3s ease;
}

/* 心跳监控收藏 - 内容区域（WISH LIST风格） */
.favorites-heartbeat-content {
    background: transparent;
    border-radius: 0;
    padding: 0 20px 20px;
    box-shadow: none;
}

/* 心跳记录项 - 带心形图标 */
.favorites-heartbeat-record-entry {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border-left: 4px solid #ba68c8;
    position: relative;
}

.favorites-heartbeat-record-entry::before {
    content: '♥';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #4a148c;
}

.favorites-heartbeat-record-entry:last-child {
    margin-bottom: 0;
}

.favorites-heartbeat-record-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-left: 20px;
}

.favorites-heartbeat-record-text {
    flex: 1;
    font-size: 13px;
    color: #4a148c;
    line-height: 1.6;
    word-break: break-word;
}

/* 心跳数据展示 */
.favorites-heartbeat-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.favorites-heartbeat-data-item {
    background: linear-gradient(135deg, rgba(227, 242, 253, 0.8), rgba(243, 229, 245, 0.8));
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    border: 2px solid rgba(156, 39, 176, 0.2);
}

.favorites-heartbeat-data-label {
    font-size: 11px;
    color: #7e57c2;
    margin-bottom: 4px;
    font-weight: 600;
}

.favorites-heartbeat-data-value {
    font-size: 24px;
    font-weight: 700;
    color: #5e35b1;
}

.favorites-heartbeat-data-unit {
    font-size: 11px;
    color: #9575cd;
    margin-left: 2px;
}

/* 心跳情绪标签 */
.favorites-heartbeat-emotions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.favorites-heartbeat-emotion-tag {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #f8bbd0, #e1bee7);
    color: #4a148c;
    font-size: 11px;
    border-radius: 16px;
    font-weight: 600;
    border: 1px solid rgba(156, 39, 176, 0.3);
}

/* 心跳内心独白 - 虚线分隔 */
.favorites-heartbeat-thought-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px dashed #ce93d8;
}

.favorites-heartbeat-thought {
    padding: 14px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 2px solid #e1bee7;
    font-size: 13px;
    color: #4a148c;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 大心形装饰 */
.favorites-heartbeat-record-item .hb-big-heart {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 48px;
    color: #4a148c;
    opacity: 0.15;
    z-index: 0;
    pointer-events: none;
}

/* 响应式适配 */
@media (max-height: 640px) {
    .favorites-category-grid {
        gap: 10px;
        padding-top: 10px;
    }

    .favorites-category-card {
        border-radius: 14px;
    }
}

@media (min-width: 768px) {
    .favorites-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        padding: 24px 20px;
    }

    .favorites-heartbeat-data {
        grid-template-columns: repeat(4, 1fr);
    }
}

