/* ==========================================================================
   微信收藏界面（全页）— 韩式极简 Korean Minimal 风格
   设计基调：大量留白、暖白卡片、1px 极细边框、精致大圆角、轻盈字重、
   柔和浅阴影；沿用原有淡紫 / 粉彩 / 雾蓝色调做微妙点缀。
   注意：仅调整视觉样式，布局 / 滚动 / 折叠等功能性规则保持原有行为。
   ========================================================================== */

.favorites-page {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    flex-direction: column;
    background: #faf9fc;
    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 rgba(107, 92, 150, 0.08);
    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;
    transition: box-shadow 0.3s ease, opacity 0.3s ease;
}

.favorites-back-btn:hover {
    box-shadow: 0 2px 8px rgba(107, 92, 150, 0.1);
    opacity: 0.85;
}

.favorites-page-title {
    flex: 1;
    margin: 0;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #4a4460;
    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 rgba(107, 92, 150, 0.08);
}

.favorites-action-tip {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #9a92ad;
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(107, 92, 150, 0.06);
}

.favorites-tab {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #9a92ad;
    cursor: pointer;
    transition: color 0.3s ease;
}

.favorites-tab.active {
    color: #6a5f8a;
    font-weight: 500;
}

.favorites-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 4px 12px;
    padding-bottom: max(16px, var(--safe-area-inset-bottom, 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, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
    text-align: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.favorites-empty-text {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #8a819f;
    margin-bottom: 10px;
}

.favorites-empty-hint {
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.03em;
    color: #b3abc4;
    line-height: 1.7;
}

/* ==========================================================================
   聊天收藏 - 好友列表项（极简卡片：暖白底 + 细边框 + 柔和阴影）
   ========================================================================== */
.favorites-chat-friend-item {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(107, 92, 150, 0.1);
    box-shadow: 0 4px 12px rgba(107, 92, 150, 0.05);
}

.favorites-chat-friend-item:hover {
    box-shadow: 0 8px 24px rgba(107, 92, 150, 0.08);
    border-color: rgba(107, 92, 150, 0.18);
}

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

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

.favorites-chat-friend-avatar-text {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #fff;
}

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

.favorites-chat-friend-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #4a4460;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-chat-friend-count {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #a29ab8;
}

.favorites-chat-friend-arrow {
    font-size: 20px;
    font-weight: 300;
    color: #c9c2d8;
    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, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

/* ==========================================================================
   聊天收藏 Memo 卡片 — 去除厚重色带，改为暖白卡片 + 细腻标签
   ========================================================================== */
.favorites-chat-memo-item {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(107, 92, 150, 0.05);
    border: 1px solid rgba(184, 158, 168, 0.22);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.favorites-chat-memo-item:hover {
    box-shadow: 0 8px 24px rgba(107, 92, 150, 0.08);
    border-color: rgba(184, 158, 168, 0.35);
}

/* 原顶部色带改为极细的粉彩发丝线 */
.favorites-chat-memo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 165, 181, 0), rgba(212, 165, 181, 0.55), rgba(212, 165, 181, 0));
    border-radius: 0;
}

/* Memo 标签：小巧的粉彩胶囊，替代原居中大字色带 */
.favorites-chat-memo-item::after {
    content: 'Memo';
    position: absolute;
    top: 14px;
    left: 16px;
    color: #ab7f8e;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    padding: 3px 12px;
    background: rgba(212, 165, 181, 0.14);
    border: 1px solid rgba(212, 165, 181, 0.3);
    border-radius: 999px;
    z-index: 1;
    text-shadow: none;
    transform: none;
}

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

/* 装饰心形：改为极淡的水印点缀 */
.favorites-chat-memo-item .memo-heart {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 18px;
    color: #d4a5b5;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

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

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

.favorites-chat-memo-time {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #a29ab8;
}

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

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

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

.favorites-chat-memo-delete {
    background: rgba(212, 165, 181, 0.16);
    border: 1px solid rgba(212, 165, 181, 0.32);
    color: #a06a7c;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 999px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.favorites-chat-memo-delete:hover {
    background: rgba(212, 165, 181, 0.28);
    box-shadow: 0 2px 8px rgba(212, 165, 181, 0.2);
}

.favorites-chat-memo-delete:active {
    transform: scale(0.95);
    box-shadow: none;
}

/* 折叠状态：隐藏内容 */
.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 18px;
    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: 14px 16px;
    background: rgba(250, 248, 250, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(184, 158, 168, 0.16);
    font-size: 13px;
    font-weight: 400;
    color: #5c5570;
    line-height: 1.8;
    letter-spacing: 0.02em;
    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: 16px 18px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(107, 92, 150, 0.1);
    box-shadow: 0 4px 12px rgba(107, 92, 150, 0.05);
}

.favorites-moments-friend-item:hover {
    box-shadow: 0 8px 24px rgba(107, 92, 150, 0.08);
    border-color: rgba(107, 92, 150, 0.18);
}

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

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

.favorites-moments-friend-avatar-text {
    font-size: 19px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #fff;
}

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

.favorites-moments-friend-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #4a4460;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-moments-friend-count {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #a29ab8;
}

.favorites-moments-friend-arrow {
    font-size: 20px;
    font-weight: 300;
    color: #c9c2d8;
    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, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

/* ==========================================================================
   朋友圈收藏 Memo 卡片 — 雾蓝细节，与聊天收藏同构
   ========================================================================== */
.favorites-moments-memo-item {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(107, 92, 150, 0.05);
    border: 1px solid rgba(150, 168, 190, 0.26);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.favorites-moments-memo-item:hover {
    box-shadow: 0 8px 24px rgba(107, 92, 150, 0.08);
    border-color: rgba(150, 168, 190, 0.4);
}

/* 原顶部色带改为极细的雾蓝发丝线 */
.favorites-moments-memo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(168, 184, 200, 0), rgba(168, 184, 200, 0.6), rgba(168, 184, 200, 0));
    border-radius: 0;
}

/* Memo 标签：雾蓝胶囊 */
.favorites-moments-memo-item::after {
    content: 'Memo';
    position: absolute;
    top: 14px;
    left: 16px;
    color: #7488a0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    padding: 3px 12px;
    background: rgba(168, 184, 200, 0.16);
    border: 1px solid rgba(168, 184, 200, 0.34);
    border-radius: 999px;
    z-index: 1;
    text-shadow: none;
    transform: none;
}

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

/* 装饰心形：极淡水印 */
.favorites-moments-memo-item .memo-heart {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 18px;
    color: #a8b8c8;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

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

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

.favorites-moments-memo-time {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #a29ab8;
}

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

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

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

.favorites-moments-memo-delete {
    background: rgba(168, 184, 200, 0.18);
    border: 1px solid rgba(168, 184, 200, 0.38);
    color: #64788e;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 999px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.favorites-moments-memo-delete:hover {
    background: rgba(168, 184, 200, 0.3);
    box-shadow: 0 2px 8px rgba(168, 184, 200, 0.24);
}

.favorites-moments-memo-delete:active {
    transform: scale(0.95);
    box-shadow: none;
}

/* 折叠状态：隐藏内容 */
.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 18px;
    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: 14px 16px;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(150, 168, 190, 0.18);
    font-size: 13px;
    font-weight: 400;
    color: #5c5570;
    line-height: 1.8;
    letter-spacing: 0.02em;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 60px;
}

/* 心形装饰内容 */
.favorites-moments-memo-item .memo-heart::before {
    content: '♥';
}

/* ==========================================================================
   收藏分区入口卡片 — 韩式极简：横向卡片（粉彩图标底衬 + 左对齐文字 + 细箭头）
   仅通过 CSS Grid 重排原有三个子元素，HTML 结构与点击逻辑不变
   ========================================================================== */
.favorites-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(12px, 2.2vh, 16px);
    padding: clamp(16px, 3.5vh, 28px) 16px;
    padding-bottom: max(28px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.favorites-category-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 16px;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    padding: clamp(16px, 2.8vh, 22px) clamp(16px, 4vw, 22px);
    cursor: pointer;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(107, 92, 150, 0.05);
    border: 1px solid rgba(107, 92, 150, 0.1);
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.favorites-category-card:hover {
    box-shadow: 0 8px 24px rgba(107, 92, 150, 0.08);
    border-color: rgba(107, 92, 150, 0.18);
}

.favorites-category-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(107, 92, 150, 0.06);
}

/* 右侧细箭头，暗示可点击进入 */
.favorites-category-card::after {
    content: '\203A';
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    color: #c9c2d8;
}

/* 图标收进柔和的粉彩圆角底衬，弱化大 emoji 的视觉重量 */
.favorites-category-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: clamp(48px, 7vh, 56px);
    height: clamp(48px, 7vh, 56px);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(22px, 3.5vh, 26px);
    line-height: 1;
    border-radius: 18px;
    background: rgba(196, 181, 224, 0.14);
    border: 1px solid rgba(196, 181, 224, 0.24);
    text-align: center;
}

/* 三个入口各用一种粉彩点缀色：淡紫 / 雾蓝 / 淡粉 */
.favorites-category-card:nth-child(2) .favorites-category-icon {
    background: rgba(168, 184, 200, 0.16);
    border-color: rgba(168, 184, 200, 0.28);
}

.favorites-category-card:nth-child(3) .favorites-category-icon {
    background: rgba(212, 165, 181, 0.14);
    border-color: rgba(212, 165, 181, 0.26);
}

.favorites-category-name {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: clamp(15px, 4vw, 16px);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #4a4460;
    text-align: left;
    margin-bottom: 4px;
}

.favorites-category-desc {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    font-size: clamp(12px, 3.2vw, 13px);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #a29ab8;
    text-align: left;
    line-height: 1.6;
    opacity: 1;
}

/* 收藏详情页面 */
.favorites-detail-page {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    flex-direction: column;
    background: #faf9fc;
    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: 14px 12px;
    padding-bottom: max(16px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
}

.favorites-heartbeat-friend-item {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    border: 1px solid rgba(107, 92, 150, 0.1);
    box-shadow: 0 4px 12px rgba(107, 92, 150, 0.05);
}

.favorites-heartbeat-friend-item:hover {
    box-shadow: 0 8px 24px rgba(107, 92, 150, 0.08);
    border-color: rgba(107, 92, 150, 0.18);
}

.favorites-heartbeat-friend-item:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.95);
}

.favorites-heartbeat-friend-avatar {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e5d7ea, #cbbce0);
    margin-right: 14px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

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

.favorites-heartbeat-friend-name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: #4a4460;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.favorites-heartbeat-friend-count {
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #a29ab8;
}

.favorites-heartbeat-friend-arrow {
    font-size: 20px;
    font-weight: 300;
    color: #c9c2d8;
    margin-left: 8px;
}

/* 心跳监控收藏 - 记录列表：去掉高饱和渐变底，回归留白 */
.favorites-heartbeat-records-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px 14px;
    padding-bottom: max(18px, var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px)));
    background: transparent;
}

/* ==========================================================================
   心跳记录卡片 — 去除深紫色带横幅，改为轻盈的粉彩标签卡片
   ========================================================================== */
.favorites-heartbeat-record-item {
    background: rgba(255, 255, 255, 0.88);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 14px;
    box-shadow: 0 4px 12px rgba(107, 92, 150, 0.05);
    border: 1px solid rgba(212, 165, 181, 0.28);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.favorites-heartbeat-record-item:hover {
    box-shadow: 0 8px 24px rgba(107, 92, 150, 0.08);
    border-color: rgba(212, 165, 181, 0.42);
}

/* 原深紫横幅改为极细的粉彩发丝线 */
.favorites-heartbeat-record-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 165, 181, 0), rgba(212, 165, 181, 0.6), rgba(212, 165, 181, 0));
    border-radius: 0;
}

/* 标签：小巧粉彩胶囊，保留 his heart 的浪漫语义 */
.favorites-heartbeat-record-item::after {
    content: '♥ his heart';
    position: absolute;
    top: 14px;
    left: 16px;
    color: #ab7f8e;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    padding: 3px 12px;
    background: rgba(212, 165, 181, 0.14);
    border: 1px solid rgba(212, 165, 181, 0.3);
    border-radius: 999px;
    z-index: 1;
    text-shadow: none;
    transform: none;
}

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

/* 装饰圆点：韩式极简去除多余装饰 */
.favorites-heartbeat-record-item .hb-decoration-dots {
    display: none;
}

.favorites-heartbeat-record-item .hb-decoration-dot {
    display: none;
}

.favorites-heartbeat-record-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 44px 16px 12px;
    cursor: pointer;
    user-select: none;
    -webkit-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: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: #a29ab8;
    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: 11px;
    color: #c3bad4;
    transition: transform 0.3s ease;
}

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

.favorites-heartbeat-record-delete {
    background: rgba(212, 165, 181, 0.16);
    border: 1px solid rgba(212, 165, 181, 0.32);
    color: #a06a7c;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.06em;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 999px;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

.favorites-heartbeat-record-delete:hover {
    background: rgba(212, 165, 181, 0.28);
    box-shadow: 0 2px 8px rgba(212, 165, 181, 0.2);
}

.favorites-heartbeat-record-delete:active {
    transform: scale(0.95);
    box-shadow: none;
}

/* 折叠状态：隐藏内容 */
.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 18px;
    transition: max-height 0.5s ease, opacity 0.3s ease 0.1s, padding 0.3s ease;
}

/* 心跳监控收藏 - 内容区域 */
.favorites-heartbeat-content {
    background: transparent;
    border-radius: 0;
    padding: 0 18px 18px;
    box-shadow: none;
}

/* 心跳记录项 - 细边框卡片 + 小巧心形标记 */
.favorites-heartbeat-record-entry {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 13px 14px;
    background: rgba(250, 248, 250, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(196, 181, 224, 0.22);
    border-left: 1px solid rgba(196, 181, 224, 0.22);
    position: relative;
}

.favorites-heartbeat-record-entry::before {
    content: '♥';
    position: static;
    transform: none;
    font-size: 13px;
    line-height: 1.7;
    color: #cbaab6;
    margin-right: 10px;
    flex-shrink: 0;
}

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

.favorites-heartbeat-record-icon {
    font-size: 16px;
    margin-right: 10px;
    flex-shrink: 0;
    margin-left: 0;
    line-height: 1.5;
}

.favorites-heartbeat-record-text {
    flex: 1;
    font-size: 13px;
    font-weight: 400;
    color: #5c5570;
    line-height: 1.8;
    letter-spacing: 0.02em;
    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: rgba(250, 248, 250, 0.9);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid rgba(196, 181, 224, 0.24);
}

.favorites-heartbeat-data-label {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #a29ab8;
    margin-bottom: 8px;
}

.favorites-heartbeat-data-value {
    font-size: 26px;
    font-weight: 300;
    letter-spacing: 0.02em;
    color: #6a5f8a;
}

.favorites-heartbeat-data-unit {
    font-size: 11px;
    font-weight: 300;
    color: #b3abc4;
    margin-left: 3px;
}

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

.favorites-heartbeat-emotion-tag {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(212, 165, 181, 0.14);
    color: #a06a7c;
    font-size: 11px;
    border-radius: 999px;
    font-weight: 400;
    letter-spacing: 0.06em;
    border: 1px solid rgba(212, 165, 181, 0.28);
}

/* 心跳内心独白 - 细虚线分隔 */
.favorites-heartbeat-thought-section {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed rgba(196, 181, 224, 0.4);
}

.favorites-heartbeat-thought {
    padding: 14px 16px;
    background: rgba(250, 248, 250, 0.9);
    border-radius: 14px;
    border: 1px solid rgba(196, 181, 224, 0.24);
    font-size: 13px;
    font-weight: 400;
    color: #5c5570;
    line-height: 1.85;
    letter-spacing: 0.02em;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 大心形装饰：极淡水印 */
.favorites-heartbeat-record-item .hb-big-heart {
    position: absolute;
    bottom: 14px;
    right: 18px;
    font-size: 40px;
    color: #d4a5b5;
    opacity: 0.08;
    z-index: 0;
    pointer-events: none;
}

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

    .favorites-category-card {
        border-radius: 18px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .favorites-category-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
        border-radius: 16px;
        margin-bottom: 10px;
    }
}

@media (min-width: 768px) {
    /* 应用容器为手机窗体宽度，保持单列横向卡片以延续留白节奏 */
    .favorites-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 28px 22px;
    }

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