/* ============================================================
   好友手机 / 查手机 UI：自 style.css 拆出统一维护。
   · 好友列表 · 锁屏/桌面 · 明信片与 dock · 论坛 · 侵入内微信壳体等。
   须于 index.html 在 style.css 之后引入，以保证覆盖顺序一致。
   ============================================================ */


/* ===== 手机功能：好友手机（锁屏 + iOS 桌面）===== */
.phone-app-body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #f5f5f7;
    position: relative;
    /* phone-page 顶部居中“手机”栏已移除：给内容一点呼吸 */
    padding-top: 6px;
    display: flex;
    flex-direction: column;
}

.phone-friends-toolbar {
    position: absolute;
    top: 10px;
    left: 14px;
    right: 14px;
    z-index: 6;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    pointer-events: none;
}

.phone-friends-toolbar-copy {
    min-width: 0;
    pointer-events: auto;
}

.phone-friends-toolbar-title {
    font-size: 22px;
    font-weight: 800;
    color: rgba(28, 28, 30, 0.96);
    letter-spacing: -0.02em;
}

.phone-friends-toolbar-sub {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(28, 28, 30, 0.54);
}

.phone-friends-filter-btn {
    pointer-events: auto;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.32);
    color: #111;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(16px) saturate(150%);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255,255,255,0.45);
    cursor: pointer;
}

.phone-friends-grid {
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 78px 14px 112px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-content: start;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.phone-friends-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
}


/* 好友手机 · 应用面板内所有可滚动区域：轨道隐形（触控/滚轮/横向拖拽仍可用） */
#phone-friend-app-layer .phone-app-panel,
#phone-friend-app-layer .phone-app-panel * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#phone-friend-app-layer .phone-app-panel *::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.phone-friends-exitbar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    z-index: 5;
    padding: 8px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(22px) saturate(155%);
    box-shadow: 0 -2px 0 rgba(255,255,255,0.22) inset, 0 12px 40px rgba(15, 23, 42, 0.16);
}

.phone-friends-exitbtn {
    width: 100%;
    height: 44px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(180deg, rgba(255,255,255,0.38), rgba(255,255,255,0.18));
    color: #111;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(18px);
}

.phone-friends-exitbtn:active {
    transform: translateY(1px);
}

.phone-friend-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 12px 14px;
    border-radius: 24px;
    cursor: pointer;
    touch-action: manipulation;
    user-select: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.34), rgba(255,255,255,0.12));
    border: 1px solid rgba(255,255,255,0.36);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255,255,255,0.48);
    backdrop-filter: blur(22px) saturate(155%);
    overflow: hidden;
}

.phone-friend-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.12) 22%, transparent 42%);
    transform: translateX(-42%);
    transition: transform 420ms ease;
    pointer-events: none;
}

.phone-friend-tile:hover::before {
    transform: translateX(12%);
}

.phone-friend-avatar {
    position: relative;
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(230,231,235,0.9) 0%, rgba(215,216,222,0.9) 100%);
    overflow: hidden;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

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

.phone-friend-avatar span {
    font-weight: 700;
    color: #3a3a3c;
}

.phone-friend-meta {
    min-width: 0;
    flex: 1;
}

.phone-friend-name {
    font-size: 15px;
    font-weight: 800;
    color: rgba(17, 17, 17, 0.96);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-friend-time {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(17, 17, 17, 0.54);
    line-height: 1.35;
}

.phone-friends-picker {
    position: absolute;
    inset: 0;
    z-index: 9;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(10px);
}

.phone-friends-picker.show {
    display: flex;
}

.phone-friends-picker-panel {
    width: calc(100% - 20px);
    max-height: 72%;
    margin: 10px;
    padding: 16px;
    border-radius: 28px;
    background: rgba(255,255,255,0.42);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(28px) saturate(155%);
}

.phone-friends-picker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.phone-friends-picker-title {
    font-size: 18px;
    font-weight: 800;
    color: #111;
}

.phone-friends-picker-sub {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(17,17,17,0.56);
}

.phone-friends-picker-close {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,0.34);
    color: #111;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.phone-friends-picker-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 360px;
    overflow: auto;
    scrollbar-width: none;
}

.phone-friends-picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.28);
    border: 1px solid rgba(255,255,255,0.32);
}

.phone-friends-picker-check {
    width: 18px;
    height: 18px;
    accent-color: #111;
    flex-shrink: 0;
}

.phone-friends-picker-avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(230,231,235,0.92);
    color: #3a3a3c;
    font-weight: 800;
    flex-shrink: 0;
}

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

.phone-friends-picker-meta {
    min-width: 0;
}

.phone-friends-picker-name {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}

.phone-friends-picker-time {
    margin-top: 4px;
    font-size: 11px;
    color: rgba(17,17,17,0.54);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-friend-layer {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 20;
    border-radius: inherit;
    overflow: hidden;
}

.phone-friend-layer.show {
    display: block;
}

.phone-lockscreen {
    position: relative;
    height: 100%;
    background: radial-gradient(1200px 600px at 30% 20%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
        linear-gradient(135deg, #2b2b2f 0%, #111114 60%, #050507 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: max(14px, env(safe-area-inset-top, 0px)) 16px max(22px, env(safe-area-inset-bottom, 0px));
    border-radius: inherit;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 18px 30px rgba(255, 255, 255, 0.06);
}

.phone-lockscreen::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.05), inset 0 -18px 28px rgba(0, 0, 0, 0.14);
    pointer-events: none;
}

.phone-lock-top {
    width: 100%;
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    align-items: center;
    margin-top: 4px;
    padding-top: 4px;
}

.phone-lock-back {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 36px;
    height: 32px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    backdrop-filter: blur(8px);
    justify-self: start;
}

.phone-lock-title {
    font-size: 16px;
    opacity: 0.95;
    text-align: center;
    justify-self: center;
    width: 100%;
    max-width: 100%;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.phone-lock-spacer {
    width: 36px;
    height: 32px;
    justify-self: end;
}

.phone-lock-clock {
    margin-top: 24px;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.phone-lock-hint {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.35;
}

.phone-lock-dots {
    margin-top: 14px;
    display: flex;
    gap: 12px;
}

.phone-lock-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.08);
}

.phone-lock-dots.filled-1 .dot:nth-child(-n+1),
.phone-lock-dots.filled-2 .dot:nth-child(-n+2),
.phone-lock-dots.filled-3 .dot:nth-child(-n+3),
.phone-lock-dots.filled-4 .dot:nth-child(-n+4) {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
}

.phone-lock-attempts {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.85;
}

.phone-lock-extra-hint {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    opacity: 0.92;
    text-align: center;
    max-width: 86%;
    min-height: 16px;
}

.phone-lock-force {
    width: 100%;
    max-width: 320px;
    margin-top: 14px;
    padding: 12px 12px 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.phone-lock-force-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    text-align: center;
}

.phone-lock-force-desc {
    font-size: 12px;
    line-height: 1.35;
    opacity: 0.9;
    text-align: center;
}

.phone-lock-force-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.phone-lock-force-btn {
    flex: 1;
    border: none;
    border-radius: 12px;
    padding: 10px 10px;
    font-size: 13px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.phone-lock-force-btn--danger {
    background: linear-gradient(135deg, rgba(255, 94, 94, 0.95), rgba(250, 157, 59, 0.95));
    color: #fff;
    font-weight: 700;
}

.phone-keypad {
    margin-top: auto;
    width: min(320px, 100%);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.phone-key {
    height: 54px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 20px;
    font-weight: 650;
    cursor: pointer;
}

.phone-key:active {
    transform: translateY(1px);
    background: rgba(255, 255, 255, 0.16);
}

.phone-key--ghost {
    opacity: 0.65;
}

.phone-home {
    height: 100%;
    background: #000;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.phone-home-top {
    display: none; /* 操作键已移入主卡片 */
}

.phone-home-top-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.phone-home-cmd {
    display: none; /* 隐藏“指令”，避免误操作影响指令库 */
}

.phone-home-cmd {
    border: none;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.phone-home-back {
    border: none;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    width: 36px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.phone-home-refresh {
    border: none;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    width: 36px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.phone-home-refresh:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.phone-refresh-icon {
    display: inline-block;
    transform-origin: 50% 50%;
}

@keyframes phone-refresh-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.phone-home-refresh.is-refresh-loading .phone-refresh-icon,
.phone-app-action-btn.is-refresh-loading .phone-refresh-icon,
.phone-app-action-btn.is-refresh-loading svg,
.phone-home-refresh.is-refresh-loading svg {
    animation: phone-refresh-spin 0.8s linear infinite;
}

.phone-refresh-selector-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: phone-refresh-selector-fade-in 0.18s ease;
}
@keyframes phone-refresh-selector-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.phone-refresh-selector-panel {
    background: #1e1e2e;
    border-radius: 16px;
    width: min(88vw, 340px);
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    overflow: hidden;
}
.phone-refresh-selector-header {
    padding: 16px 18px 10px;
    font-size: 15px;
    font-weight: 600;
    color: #e0e0e0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.phone-refresh-selector-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}
.phone-refresh-selector-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    cursor: pointer;
    color: #ccc;
    font-size: 14px;
    transition: background 0.12s;
}
.phone-refresh-selector-row:hover {
    background: rgba(255,255,255,0.06);
}
.phone-refresh-selector-cb {
    width: 18px;
    height: 18px;
    accent-color: #7c6ff0;
    cursor: pointer;
    flex-shrink: 0;
}
.phone-refresh-selector-actions-top {
    display: flex;
    justify-content: flex-end;
    padding: 6px 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.phone-refresh-selector-select-all {
    background: none;
    border: none;
    color: #8a80e0;
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
}
.phone-refresh-selector-select-all:hover {
    text-decoration: underline;
}
.phone-refresh-selector-footer {
    padding: 10px 18px 14px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: center;
}
.phone-refresh-selector-go {
    background: linear-gradient(135deg, #7c6ff0 0%, #a07cf0 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 0;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}
.phone-refresh-selector-go:hover {
    opacity: 0.88;
}
.phone-refresh-selector-go:active {
    transform: translateY(1px);
}

.friend-phone-private-api-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
        max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
}

.friend-phone-private-api-panel {
    width: min(92vw, 400px);
    max-height: min(88vh, 640px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: #f7f7f8;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.friend-phone-private-api-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.92);
}

.friend-phone-private-api-back {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #222;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.friend-phone-private-api-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
}

.friend-phone-private-api-lead {
    margin: 0;
    padding: 10px 16px 6px;
    font-size: 12px;
    line-height: 1.55;
    color: #64748b;
    background: #f7f7f8;
}

.friend-phone-private-api-body {
    padding: 10px 14px 14px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.friend-phone-private-api-group {
    margin-bottom: 12px;
}

.friend-phone-private-api-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.friend-phone-private-api-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    background: #fff;
    color: #111827;
}

.friend-phone-private-api-key-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.friend-phone-private-api-key-row .friend-phone-private-api-input {
    flex: 1 1 auto;
    min-width: 0;
}

.friend-phone-private-api-key-clear {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

.friend-phone-private-api-fetch {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 12px;
    border: none;
    border-radius: 10px;
    background: #07c160;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.friend-phone-private-api-fetch:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.friend-phone-private-api-models {
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

.friend-phone-private-api-model-item {
    padding: 9px 12px;
    font-size: 13px;
    color: #111827;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}

.friend-phone-private-api-model-item:last-child {
    border-bottom: none;
}

.friend-phone-private-api-model-item:hover {
    background: #f0fdf4;
}

.friend-phone-private-api-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.friend-phone-private-api-num {
    margin-top: 6px;
}

.friend-phone-private-api-actions {
    margin-top: 4px;
}

.friend-phone-private-api-save {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
}

.phone-inspection-prompt-modal-content {
    max-width: min(96vw, 720px);
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.phone-inspection-prompt-modal-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.phone-inspection-prompt-hint {
    font-size: 12px;
    color: #555;
    margin: 0 0 10px;
    line-height: 1.45;
}

.phone-inspection-prompt-hint code {
    font-size: 11px;
    background: #f0f0f0;
    padding: 1px 4px;
    border-radius: 4px;
}

.phone-inspection-prompt-textarea {
    width: 100%;
    min-height: 280px;
    flex: 1;
    box-sizing: border-box;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 12px;
    line-height: 1.45;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    resize: vertical;
}

.phone-inspection-prompt-modal-footer {
    flex-wrap: wrap;
    gap: 8px;
}

.phone-home-title {
    display: none; /* 去掉“XX 的手机”标题 */
}

.phone-home-wallpaper {
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 500px at 20% 30%, rgba(255, 155, 188, 0.35), rgba(0, 0, 0, 0) 60%),
        radial-gradient(900px 500px at 80% 60%, rgba(140, 215, 255, 0.26), rgba(0, 0, 0, 0) 60%),
        linear-gradient(135deg, #18181c 0%, #0b0b0f 70%, #000 100%);
    filter: saturate(1.2);
}

.phone-home-card {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 12px; /* 贴近顶部状态栏 */
    z-index: 2;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    display: none;
    height: 220px; /* iOS 主屏主卡片体量：固定高度更像小组件卡 */
}

.phone-home-card[aria-hidden="false"] {
    display: flex;
}

.phone-home-card-inner {
    width: 100%;
    height: 100%;
    padding: 42px 16px 18px; /* 顶部预留给返回/刷新按钮 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.phone-home-card-actions {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    z-index: 3;
    pointer-events: auto;
}

.phone-home-card-btn {
    pointer-events: auto;
}

.phone-home-back.phone-home-card-btn,
.phone-home-refresh.phone-home-card-btn {
    background: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.phone-home-back.phone-home-card-btn:active,
.phone-home-refresh.phone-home-card-btn:active {
    transform: translateY(1px);
}

.phone-home-card-avatar {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}

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

.phone-home-card-avatar .ph {
    font-size: 26px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.55);
}

.phone-home-card-sign {
    max-width: 92%;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.75);
    letter-spacing: 0.2px;
    word-break: break-word;
}

.phone-home-bottom {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px; /* 与底部状态栏/边缘保持 12px */
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-home-icons {
    position: relative;
    z-index: 2;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
}

.phone-home-dock {
    position: relative;
    padding: 12px 12px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.phone-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.phone-icon-tile {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    place-items: center;
    font-size: 22px;
}

.phone-icon-tile-img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
}

.phone-icon-name {
    font-size: 11px;
    opacity: 0.92;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================================
   好友手机桌面 · 明信片 / 标签本风（ins 蓝调静谧）
   ========================================================================= */

/* 整屏蓝调静谧渐变（仅在 .phone-home--postcard 容器内生效，避免影响其它入口） */
.phone-home--postcard .phone-home-wallpaper {
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(255, 220, 210, 0.32) 0%, rgba(255, 220, 210, 0) 55%),
        radial-gradient(80% 60% at 18% 80%, rgba(196, 178, 162, 0.22) 0%, rgba(196, 178, 162, 0) 60%),
        radial-gradient(90% 60% at 85% 90%, rgba(120, 142, 168, 0.28) 0%, rgba(120, 142, 168, 0) 60%),
        linear-gradient(180deg, #c7d4e2 0%, #a8b8cc 38%, #8fa3bb 70%, #c2b9b3 100%);
    filter: saturate(0.95) contrast(0.98);
}
.phone-home--postcard .phone-home-wallpaper::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(2px 2px at 18% 32%, rgba(255, 255, 255, 0.18), transparent 60%),
        radial-gradient(2px 2px at 72% 18%, rgba(255, 255, 255, 0.14), transparent 60%),
        radial-gradient(1.4px 1.4px at 44% 64%, rgba(255, 255, 255, 0.12), transparent 60%);
    mix-blend-mode: screen;
    opacity: 0.65;
}

/* 用户上传的桌面壁纸：保留原图色彩，仅轻覆颗粒 */
.phone-home--postcard .phone-home-wallpaper.phone-home-wallpaper--custom {
    filter: none;
}
.phone-home--postcard .phone-home-wallpaper.phone-home-wallpaper--custom::after {
    opacity: 0.16;
}

/* 明信片主卡片：取消圆角玻璃，改为 ins 风横版明信片 */
.phone-home-card.phone-home-card--postcard {
    height: 196px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 252, 248, 0.96) 0%, rgba(244, 240, 232, 0.94) 60%, rgba(228, 222, 214, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 -1px 0 rgba(0, 0, 0, 0.04) inset,
        0 14px 32px rgba(54, 70, 92, 0.22),
        0 2px 6px rgba(54, 70, 92, 0.10);
    overflow: hidden;
}
.phone-home-card.phone-home-card--postcard::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(135deg, rgba(178, 168, 156, 0.06) 0 2px, transparent 2px 6px),
        radial-gradient(120% 80% at 100% 0%, rgba(140, 162, 184, 0.10), transparent 55%);
    mix-blend-mode: multiply;
}
.phone-home-card.phone-home-card--postcard::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 14px;
    width: 56px;
    height: 38px;
    border: 1px dashed rgba(110, 124, 142, 0.35);
    border-radius: 4px;
    background:
        linear-gradient(45deg, rgba(120, 140, 162, 0.08) 25%, transparent 25%) 0 0/8px 8px,
        linear-gradient(-45deg, rgba(120, 140, 162, 0.08) 25%, transparent 25%) 0 0/8px 8px;
    pointer-events: none;
    opacity: 0.55;
}

.phone-home-postcard-inner {
    padding: 16px 16px 14px;
    flex-direction: row !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 14px;
    text-align: left;
}

/* 一寸彩色照片（左侧） */
.phone-home-postcard-photo {
    flex: 0 0 auto;
    width: 90px;
    height: 124px;
    align-self: center;
    margin-top: 16px; /* 让出顶部返回/刷新按钮位 */
    background: #fff;
    padding: 5px 5px 16px;
    box-sizing: border-box;
    border-radius: 3px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 8px 18px rgba(54, 70, 92, 0.18),
        0 2px 4px rgba(54, 70, 92, 0.12);
    transform: rotate(-1.2deg);
    position: relative;
}
.phone-home-postcard-photo::after {
    content: "1 inch";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    text-align: center;
    font-size: 8px;
    color: rgba(80, 92, 110, 0.55);
    letter-spacing: 1.5px;
    font-family: "Times New Roman", serif;
    font-style: italic;
}
.phone-home-postcard-photo .phone-home-card-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, #cdd8e6, #aab7c8) !important;
    border: none !important;
    box-shadow: 0 0 0 1px rgba(60, 76, 96, 0.10) inset;
}
.phone-home-postcard-photo .phone-home-card-avatar img {
    object-fit: cover;
    filter: saturate(0.92) contrast(1.02);
}

/* 右侧信息 */
.phone-home-postcard-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 6px 8px 0; /* 顶部预留按钮位 */
    gap: 10px;
    color: #4a5667;
    font-family: "Times New Roman", "Songti SC", "STSong", "Source Han Serif SC", serif;
}

.phone-home-postcard-date {
    display: flex;
    flex-direction: column;
    gap: 4px;
    line-height: 1.1;
    color: #2f3a4a;
}
.phone-home-postcard-date-main {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    font-family: "Georgia", "Times New Roman", serif;
}
.phone-home-postcard-date-sep {
    margin: 0 2px;
    opacity: 0.45;
    font-weight: 400;
}
.phone-home-postcard-date-sub {
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(80, 96, 118, 0.65);
    font-family: "Georgia", "Times New Roman", serif;
}

.phone-home-postcard-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(140, 156, 178, 0.55) 0%, rgba(140, 156, 178, 0.10) 100%);
}

.phone-home-card.phone-home-card--postcard .phone-home-card-sign {
    color: rgba(60, 72, 92, 0.82);
    font-size: 12.5px;
    line-height: 1.55;
    letter-spacing: 0.3px;
    max-width: 100%;
    font-style: italic;
    text-align: left;
    word-break: break-word;
    /* 限制 3 行省略，避免溢出 */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.phone-home-postcard-stamp {
    margin-top: auto;
    font-size: 9.5px;
    letter-spacing: 3px;
    color: rgba(120, 134, 156, 0.55);
    text-transform: uppercase;
    font-family: "Georgia", "Times New Roman", serif;
}

/* 主卡片操作按钮（返回 / 刷新）配色微调以贴合明信片 */
.phone-home-card.phone-home-card--postcard .phone-home-back.phone-home-card-btn,
.phone-home-card.phone-home-card--postcard .phone-home-refresh.phone-home-card-btn {
    background: rgba(255, 255, 255, 0.55);
    color: rgba(50, 64, 84, 0.85);
    border: 1px solid rgba(150, 168, 192, 0.40);
    box-shadow: 0 2px 6px rgba(60, 80, 110, 0.08);
}

/* =========================================================================
   桌面下半部分：照片大组件 + 4 个小组件 + 底栏 dock + 右侧分类标签
   ========================================================================= */

.phone-home--postcard .phone-home-bottom {
    right: 36px; /* 右侧给标签条留位 */
    align-items: stretch;
}

.phone-home--postcard .phone-home-icons {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 78px);
    gap: 12px 8px;
    align-items: center;
}

/* 照片大组件占据 2x2 区域 */
.phone-home-photo-widget {
    grid-column: span 2;
    grid-row: span 2;
    position: relative;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0%, rgba(220, 230, 240, 0.34) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 8px 22px rgba(40, 60, 90, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    min-height: 156px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.phone-home-photo-widget:hover {
    transform: translateY(-1px);
    box-shadow:
        0 12px 28px rgba(40, 60, 90, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.55) inset;
}
.phone-home-photo-widget:focus-visible {
    outline: 2px solid rgba(140, 168, 200, 0.85);
    outline-offset: 2px;
}

.phone-home-photo-widget-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    filter: saturate(0.92) contrast(1.02);
}
.phone-home-photo-widget.has-img .phone-home-photo-widget-img {
    display: block;
}

.phone-home-photo-widget-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(60, 78, 102, 0.78);
    text-align: center;
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0 8px, rgba(255, 255, 255, 0.05) 8px 16px);
}
.phone-home-photo-widget.has-img .phone-home-photo-widget-placeholder {
    display: none;
}

.phone-home-photo-widget-icon {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: rgba(60, 78, 102, 0.85);
    font-size: 22px;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 2px 8px rgba(40, 60, 90, 0.14);
}
.phone-home-photo-widget-tip {
    font-size: 11px;
    letter-spacing: 0.6px;
    color: rgba(50, 66, 88, 0.78);
}

.phone-home-photo-widget-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 10px 10px;
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(20, 32, 50, 0.55) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}
.phone-home-photo-widget.has-img:hover .phone-home-photo-widget-overlay {
    opacity: 1;
}

.phone-home-photo-widget-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: none;
    background: rgba(20, 32, 50, 0.55);
    color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    backdrop-filter: blur(4px);
}
.phone-home-photo-widget.has-img .phone-home-photo-widget-remove {
    display: inline-flex;
}

/* 主网格中 4 个小组件：素净瓷砖（蓝灰雾感） */
.phone-home--postcard .phone-home-icons .phone-icon .phone-icon-tile {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.46) 0%, rgba(218, 228, 240, 0.42) 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: rgba(40, 56, 80, 0.85);
    box-shadow:
        0 6px 14px rgba(40, 60, 90, 0.16),
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    width: 56px;
    height: 56px;
    border-radius: 16px;
}
.phone-home--postcard .phone-home-icons .phone-icon-name {
    color: rgba(40, 56, 80, 0.92);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* 不同色调瓷砖 */
.phone-home--postcard .phone-icon--mist .phone-icon-tile {
    background: linear-gradient(135deg, rgba(216, 224, 234, 0.85) 0%, rgba(178, 192, 210, 0.78) 100%);
}
.phone-home--postcard .phone-icon--sand .phone-icon-tile {
    background: linear-gradient(135deg, rgba(232, 224, 208, 0.88) 0%, rgba(206, 192, 168, 0.82) 100%);
}
.phone-home--postcard .phone-icon--sky .phone-icon-tile {
    background: linear-gradient(135deg, rgba(206, 222, 238, 0.88) 0%, rgba(168, 192, 218, 0.82) 100%);
}
.phone-home--postcard .phone-icon--cloud .phone-icon-tile {
    background: linear-gradient(135deg, rgba(238, 234, 226, 0.88) 0%, rgba(212, 212, 218, 0.82) 100%);
}

/* 底栏 dock：通话/短信/微信/设置——磨砂玻璃+暖白 */
.phone-home--postcard .phone-home-dock {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    padding-inline: 12px;
    box-sizing: border-box;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0.22) 100%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 8px 24px rgba(40, 60, 90, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.55) inset;
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.phone-home--postcard .phone-home-dock .phone-icon .phone-icon-tile {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78) 0%, rgba(228, 234, 244, 0.76) 100%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: rgba(40, 56, 80, 0.92);
    box-shadow: 0 4px 10px rgba(40, 60, 90, 0.14);
    width: 50px;
    height: 50px;
    border-radius: 14px;
}
.phone-home--postcard .phone-home-dock .phone-icon-name {
    color: rgba(40, 56, 80, 0.95);
}

/* 右侧分类标签按钮（莫兰迪色）—— 相对 .phone-home 全高定位，竖排贴右边框 */
.phone-home--postcard .phone-home-tabs {
    position: absolute;
    right: 0;
    top: 214px; /* 明信片区域下沿附近（card 约 196px + 顶距 12px） */
    bottom: 102px; /* 底栏 dock + 底边距，避免被裁切 */
    width: 40px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    gap: 8px;
    padding: 0;
    box-sizing: border-box;
    pointer-events: none;
}

.phone-home--postcard .phone-home-tab {
    pointer-events: auto;
    position: relative;
    width: 34px;
    min-height: 44px;
    flex: 0 0 auto; /* 禁止均分压缩为一条：每条独立高度，四条都能看见 */
    border: none;
    padding: 8px 4px;
    border-radius: 12px 0 0 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        -2px 4px 10px rgba(40, 60, 90, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.45) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease, width 0.18s ease;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}
.phone-home-tab:hover {
    transform: translateX(-3px);
    box-shadow:
        -3px 6px 14px rgba(40, 60, 90, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.55) inset;
}
.phone-home-tab:active {
    transform: translateX(-1px);
}

.phone-home-tab-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    line-height: 1.1;
    font-weight: 600;
    user-select: none;
    /* 中文「竖排正立」排版 */
}

/* 莫兰迪四色 */
.phone-home-tab--rose {
    background: linear-gradient(135deg, #d6a9a9 0%, #c89595 100%);
}
.phone-home-tab--sand {
    background: linear-gradient(135deg, #c9b89a 0%, #b8a482 100%);
}
.phone-home-tab--sage {
    background: linear-gradient(135deg, #a8b8a4 0%, #8fa68a 100%);
}
.phone-home-tab--lilac {
    background: linear-gradient(135deg, #b9a9c4 0%, #a294b0 100%);
}
.phone-home-tab--peach {
    background: linear-gradient(135deg, #e8baa8 0%, #d4a08f 100%);
}

/* 同读笔记（Ins 极简笔记本，正文与签名使用思源类长安体） */
@font-face {
    font-family: 'PingFangChangAnTi';
    src: url('assets/PingFangChangAnTi-2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.fp-coread-list {
    padding: 8px 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.fp-coread-list-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.fp-coread-list-date {
    font-size: 11px;
    color: #888;
    letter-spacing: 0.02em;
}
.fp-coread-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}
.fp-coread-notebook {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: linear-gradient(180deg, #faf8f5 0%, #f3f0eb 100%);
}
.fp-coread-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
}
.fp-coread-head-center {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #3a3a3a;
    line-height: 1.35;
    text-align: center;
}
.fp-coread-article {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 20px;
    -webkit-overflow-scrolling: touch;
}
.fp-coread-body {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 15px;
    line-height: 1.85;
    color: #2c2c2c;
}
.fp-coread-sign {
    margin-top: 28px;
    font-size: 14px;
    color: #555;
    text-align: right;
}
.fp-coread-font {
    font-family: 'PingFangChangAnTi', 'Songti SC', 'STSong', Georgia, serif;
}
.fp-coread-foot {
    display: flex;
    gap: 10px;
    padding: 10px 12px 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}
.fp-coread-page-btn {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
}
.fp-coread-page-btn:disabled {
    opacity: 0.38;
    cursor: default;
}

.phone-app-content--coread-note {
    padding: 0 !important;
    overflow: hidden;
}

.phone-app-panel {
    height: 100%;
    background:
        radial-gradient(circle at top right, rgba(211, 224, 242, 0.52), transparent 28%),
        linear-gradient(180deg, #eef3f8 0%, #e7edf5 42%, #edf2f8 100%);
    color: #111;
    display: flex;
    flex-direction: column;
}

.phone-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(123, 145, 179, 0.16);
    background: rgba(244, 248, 252, 0.72);
    backdrop-filter: blur(18px) saturate(150%);
}

.phone-app-back {
    border: 1px solid rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.34);
    color: #23324a;
    width: 36px;
    height: 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    /* iOS 优化：确保返回按钮在所有背景下可见 */
    position: relative;
    z-index: 10;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.phone-app-title {
    font-size: 15px;
    font-weight: 750;
    color: #1c2738;
    letter-spacing: -0.01em;
}

.phone-app-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 36px;
}

.phone-app-action-btn {
    border: 1px solid rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.34);
    color: #23324a;
    width: 36px;
    height: 32px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
    backdrop-filter: blur(14px);
}

.phone-app-action-btn:hover {
    background: rgba(255,255,255,0.46);
}

.phone-app-action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* hidden 属性默认 display:none 会被上面的 inline-flex 覆盖，空按钮会露出白底方块 */
.phone-app-action-btn[hidden] {
    display: none !important;
}

.phone-app-actions:has(#phone-app-action-btn[hidden]) {
    min-width: 0;
}

.phone-app-action-btn.friend-phone-char-header-settings-btn .friend-phone-char-header-settings-svg {
    display: block;
    width: 22px;
    height: 22px;
}

.phone-app-content {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 14px 16px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.phone-app-content::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* 查手机 · 微信对话：全宽灰底，减少内边距 */
.phone-app-content--wx-chat {
    padding: 0;
    background: #ededed;
}

.phone-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-list-item {
    border-radius: 18px;
    padding: 13px 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.56), rgba(255,255,255,0.24));
    border: 1px solid rgba(255,255,255,0.42);
    box-shadow: 0 10px 28px rgba(59, 77, 109, 0.08), inset 0 1px 0 rgba(255,255,255,0.52);
    backdrop-filter: blur(18px) saturate(145%);
}

.phone-list-item-title {
    font-size: 13px;
    font-weight: 720;
    margin-bottom: 4px;
    color: #1a2433;
    line-height: 1.35;
}

.phone-list-item-sub {
    font-size: 12px;
    color: rgba(50, 64, 86, 0.62);
    line-height: 1.45;
}

.phone-shop-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.phone-shop-card {
    border-radius: 18px;
    padding: 13px 14px;
    background: linear-gradient(145deg, rgba(255,255,255,0.56), rgba(255,255,255,0.24));
    border: 1px solid rgba(255,255,255,0.42);
    box-shadow: 0 10px 28px rgba(59, 77, 109, 0.08), inset 0 1px 0 rgba(255,255,255,0.52);
    backdrop-filter: blur(18px) saturate(145%);
}

.phone-shop-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.phone-shop-card-meta {
    font-size: 12px;
    color: rgba(50, 64, 86, 0.62);
    line-height: 1.45;
}

.phone-shop-title {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    text-align: left;
    font-size: 14px;
    font-weight: 720;
    color: #1a2433;
    line-height: 1.4;
    cursor: pointer;
}

.phone-shop-title:focus-visible {
    outline: none;
    color: #566a88;
}

.phone-shop-detail {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(50, 64, 86, 0.10);
}

.phone-shop-detail[hidden] {
    display: none !important;
}

.phone-shop-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-shop-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.phone-shop-detail-label {
    flex-shrink: 0;
    font-size: 12px;
    color: rgba(50, 64, 86, 0.56);
    line-height: 1.45;
}

.phone-shop-detail-value {
    flex: 1;
    min-width: 0;
    text-align: right;
    font-size: 12px;
    color: #1a2433;
    line-height: 1.55;
    word-break: break-word;
}

.phone-shop-idea-block {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(50, 64, 86, 0.14);
}

.phone-shop-idea-label {
    font-size: 12px;
    font-weight: 700;
    color: #1a2433;
    margin-bottom: 6px;
}

.phone-shop-idea-text {
    font-size: 12px;
    color: #5E5D65;
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.phone-app-empty {
    font-size: 13px;
    color: rgba(50, 64, 86, 0.56);
    line-height: 1.6;
    padding: 28px 10px;
    text-align: center;
    border-radius: 18px;
    background: rgba(255,255,255,0.28);
    border: 1px solid rgba(255,255,255,0.38);
    backdrop-filter: blur(16px);
}

.friend-forum-home {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* 底部留白：避免列表末卡与固定悬浮球重叠，并给系统条以上留出空隙 */
    padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom, 0px)));
}

.friend-forum-hero {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff6fb 0%, #f5f1ff 55%, #eef4ff 100%);
    border: 1px solid rgba(157, 78, 221, 0.12);
    box-shadow: 0 10px 26px rgba(110, 92, 164, 0.08);
}

.friend-forum-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.friend-forum-kicker,
.friend-forum-list-kicker {
    font-size: 11px;
    color: #8a62b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.friend-forum-title,
.friend-forum-list-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: #2d1c49;
}

.friend-forum-badge {
    flex-shrink: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(45, 28, 73, 0.08);
    color: #5f438d;
    font-size: 11px;
    font-weight: 700;
}

.friend-forum-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
    color: #574d67;
}

.friend-forum-highlight-card {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(95, 67, 141, 0.1);
}

.friend-forum-highlight-label {
    font-size: 11px;
    font-weight: 700;
    color: #7b5cae;
    margin-bottom: 6px;
}

.friend-forum-highlight-text {
    font-size: 12px;
    line-height: 1.7;
    color: #4f455f;
}

.friend-forum-section-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.friend-forum-tab {
    border: none;
    background: #f3f2f8;
    color: #5a5568;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
}

.friend-forum-tab.is-active {
    background: linear-gradient(135deg, #9d4edd 0%, #7b6dff 100%);
    color: #fff;
}

.friend-forum-board-grid,
.friend-forum-thread-list {
    display: grid;
    gap: 12px;
}

.friend-forum-thread-loading {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(80, 72, 98, 0.62);
    padding: 6px 2px;
}

.friend-forum-board-card,
.friend-forum-thread-card {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 22px rgba(18, 22, 33, 0.05);
}

.friend-forum-board-card {
    padding: 14px;
}

.friend-forum-board-head,
.friend-forum-list-head,
.friend-forum-thread-topline,
.friend-forum-thread-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.friend-forum-board-name {
    font-size: 15px;
    font-weight: 700;
    color: #241a35;
}

.friend-forum-board-subtitle,
.friend-forum-list-meta,
.friend-forum-thread-state,
.friend-forum-thread-heat,
.friend-forum-thread-role {
    font-size: 11px;
    color: #7b748a;
}

.friend-forum-board-tag,
.friend-forum-thread-board-pill,
.friend-forum-thread-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #f1ecff;
    color: #7445b8;
}

.friend-forum-board-tag,
.friend-forum-thread-board-pill {
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700;
}

.friend-forum-board-desc {
    margin: 10px 0 12px;
    font-size: 12px;
    line-height: 1.7;
    color: #4e475b;
}

.friend-forum-board-meta {
    font-size: 12px;
    color: #665e76;
}

.friend-forum-board-card--clickable {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.friend-forum-board-card--clickable:active {
    transform: scale(0.993);
}

.friend-forum-board-page {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
}

.friend-forum-board-page-hero {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff6fb 0%, #f5f1ff 55%, #eef4ff 100%);
    border: 1px solid rgba(157, 78, 221, 0.12);
    box-shadow: 0 8px 22px rgba(110, 92, 164, 0.07);
}

.friend-forum-board-page-kicker {
    font-size: 11px;
    color: #8a62b8;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.friend-forum-board-page-name {
    margin: 6px 0 4px;
    font-size: 20px;
    line-height: 1.25;
    color: #2d1c49;
}

.friend-forum-board-page-sub {
    margin: 0 0 8px;
    font-size: 13px;
    color: #5a4d72;
    font-weight: 600;
}

.friend-forum-board-page-desc {
    margin: 0 0 10px;
    font-size: 12px;
    line-height: 1.65;
    color: #574d67;
}

.friend-forum-board-page-meta {
    font-size: 11px;
    color: #6f6785;
}

.friend-forum-board-page-loading {
    font-size: 13px;
    color: #6b5f86;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.12);
}

.friend-forum-thread-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.friend-forum-thread-card {
    padding: 14px;
}

.friend-forum-thread-card--clickable {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.friend-forum-thread-card--clickable:active {
    transform: scale(0.992);
}

.friend-forum-thread-title {
    margin: 10px 0 8px;
    font-size: 15px;
    line-height: 1.45;
    color: #20182e;
}

.friend-forum-thread-snippet {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
    color: #544d63;
}

.friend-forum-thread-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.friend-forum-thread-tag {
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 600;
}

.friend-forum-profile-fab {
    position: fixed;
    /* #app 最大宽度 480px 且水平居中：贴视口 right 会溢出手机内容区，改为相对手机内容栏内缩进 */
    right: calc((100vw - min(100vw, 480px)) / 2 + max(10px, env(safe-area-inset-right, 0px)));
    /* 抬高：避免贴齐视口底被「小手机」圆角/底栏裁切 */
    bottom: calc(40px + max(0px, env(safe-area-inset-bottom, 0px)));
    width: 52px;
    height: 52px;
    border: 1px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, #9d4edd 0%, #6f7bf7 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(98, 69, 173, 0.35);
    cursor: pointer;
    z-index: 8;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition:
        background 0.45s ease,
        box-shadow 0.45s ease,
        border-color 0.4s ease,
        color 0.35s ease,
        -webkit-backdrop-filter 0.45s ease,
        backdrop-filter 0.45s ease,
        opacity 0.4s ease;
}

.friend-forum-profile-fab.is-idle {
    background: rgba(125, 90, 200, 0.4);
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow: 0 8px 22px rgba(98, 69, 173, 0.22);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* 论坛 · 帖子详情（热帖点击进入） */
.friend-forum-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 28px;
}

.friend-forum-detail-loading {
    font-size: 13px;
    color: #6b5f86;
    padding: 11px 13px;
    border-radius: 14px;
    background: rgba(157, 78, 221, 0.08);
    border: 1px solid rgba(157, 78, 221, 0.12);
}

.friend-forum-detail-card {
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 247, 255, 0.98));
    border: 1px solid rgba(96, 64, 154, 0.10);
    box-shadow: 0 14px 34px rgba(48, 29, 82, 0.08);
    padding: 16px 16px 20px;
}

.friend-forum-detail-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.friend-forum-detail-board {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1ecff;
    color: #7445b8;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.friend-forum-detail-state {
    font-size: 11px;
    color: #857b98;
}

.friend-forum-detail-title {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    letter-spacing: 0.01em;
    color: #20182e;
}

.friend-forum-detail-op {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: 12px;
    color: #5c546c;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(114, 86, 166, 0.10);
}

.friend-forum-detail-opnick {
    font-size: 13px;
    font-weight: 800;
    color: #4a3274;
}

.friend-forum-detail-opid {
    color: #8c7aa9;
    font-size: 11px;
}

.friend-forum-detail-time {
    font-size: 11px;
    color: #988dad;
}

.friend-forum-detail-heat-preview {
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 1.5;
    color: #7e7492;
}

.friend-forum-detail-body {
    font-size: 14px;
    line-height: 1.65;
    color: #332b42;
    /* 避免 anywhere 在窄屏把句末标点、引号甩到下一行单独成行 */
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
    text-wrap: pretty;
    letter-spacing: 0.015em;
    padding: 2px 2px 0;
}

/* 主贴内章节标题（如【一、xxx】），区别于帖子总标题 */
.friend-forum-detail-section-title {
    margin: 20px 0 12px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 800;
    color: #4a2d7a;
    letter-spacing: 0.02em;
}

.friend-forum-detail-body > .friend-forum-detail-section-title:first-child {
    margin-top: 0;
}

.friend-forum-detail-label-line {
    margin: 14px 0 8px;
    font-size: 14px;
    line-height: 1.65;
    color: #332b42;
}

.friend-forum-detail-label-text {
    font-weight: 800;
    color: #5f4292;
    margin-right: 4px;
}

.friend-forum-detail-heading {
    margin: 0 0 14px;
    font-size: 19px;
    line-height: 1.55;
    font-weight: 900;
    color: #3b2463;
    letter-spacing: 0.01em;
}

.friend-forum-detail-subheading {
    margin: 18px 0 10px;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 800;
    color: #5f4292;
    letter-spacing: 0.01em;
}

.friend-forum-detail-paragraph {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #332b42;
    text-align: justify;
    text-justify: inter-ideograph;
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
    text-wrap: pretty;
}

.friend-forum-detail-paragraph + .friend-forum-detail-paragraph {
    margin-top: 16px;
}

.friend-forum-detail-heading + .friend-forum-detail-paragraph,
.friend-forum-detail-subheading + .friend-forum-detail-paragraph {
    margin-top: 0;
}

.friend-forum-detail-section-title + .friend-forum-detail-paragraph,
.friend-forum-detail-section-title + .friend-forum-detail-label-line {
    margin-top: 0;
}

.friend-forum-detail-list {
    margin: 6px 0 4px;
    padding: 0;
    color: #332b42;
}

.friend-forum-detail-list--ordered {
    margin-left: 0;
    padding-left: 1.35em;
    list-style: decimal;
}

.friend-forum-detail-list--bullet {
    margin-left: 0;
    padding-left: 1.35em;
    list-style: disc;
}

.friend-forum-detail-list li {
    margin: 0 0 10px;
    padding-left: 4px;
    font-size: 14px;
    line-height: 1.65;
}

.friend-forum-detail-label-line + .friend-forum-detail-list {
    margin-top: 4px;
}

.friend-forum-detail-paragraph + .friend-forum-detail-subheading,
.friend-forum-detail-list + .friend-forum-detail-subheading,
.friend-forum-detail-paragraph + .friend-forum-detail-heading,
.friend-forum-detail-list + .friend-forum-detail-heading,
.friend-forum-detail-paragraph + .friend-forum-detail-section-title,
.friend-forum-detail-list + .friend-forum-detail-section-title {
    margin-top: 22px;
}

.friend-forum-detail-label-line + .friend-forum-detail-section-title,
.friend-forum-detail-list + .friend-forum-detail-section-title {
    margin-top: 20px;
}

.friend-forum-detail-comments {
    border-radius: 18px;
    padding: 14px 12px 4px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(114, 86, 166, 0.08);
}

.friend-forum-detail-comments-head {
    font-size: 14px;
    font-weight: 800;
    color: #2d1c49;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.friend-forum-comment {
    border-radius: 16px;
    padding: 13px 13px 12px;
    background: linear-gradient(180deg, #fbf9ff, #f6f2fd);
    border: 1px solid rgba(95, 67, 141, 0.10);
    box-shadow: 0 6px 18px rgba(73, 47, 122, 0.05);
    margin-bottom: 10px;
}

.friend-forum-comment-head {
    font-size: 12px;
    font-weight: 700;
    color: #5f5477;
    margin-bottom: 8px;
    line-height: 1.45;
}

.friend-forum-comment-body {
    font-size: 13px;
    line-height: 1.8;
    color: #352d45;
    white-space: pre-wrap;
    word-break: normal;
    overflow-wrap: break-word;
    line-break: strict;
    text-wrap: pretty;
}

.friend-forum-comment-meta {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.friend-forum-comment-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}

.friend-forum-comment-pill--like {
    color: #7a48c2;
    background: rgba(143, 107, 197, 0.12);
    border-color: rgba(143, 107, 197, 0.16);
}

.friend-forum-comment-pill--dislike {
    color: #9b6682;
    background: rgba(195, 124, 159, 0.12);
    border-color: rgba(195, 124, 159, 0.16);
}

.friend-forum-profile-panel {
    position: fixed;
    inset: 0;
    background: rgba(15, 10, 28, 0.36);
    align-items: flex-end;
    justify-content: center;
    padding: 20px 14px;
    z-index: 9;
}

/* [hidden] 须压过本类的 display，否则进入论坛时遮罩会误显示，且关闭无效 */
.friend-forum-profile-panel[hidden] {
    display: none !important;
}

.friend-forum-profile-panel:not([hidden]) {
    display: flex;
}

.friend-forum-profile-card {
    width: 100%;
    max-width: 420px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(21, 17, 31, 0.22);
    overflow: hidden;
}

.friend-forum-profile-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.friend-forum-profile-kicker {
    font-size: 11px;
    color: #8868bb;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.friend-forum-profile-title {
    margin-top: 4px;
    font-size: 18px;
    font-weight: 700;
    color: #231a32;
}

.friend-forum-profile-actions {
    display: flex;
    gap: 8px;
}

.friend-forum-profile-iconbtn {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 10px;
    background: #f2eff9;
    color: #3b3150;
    font-size: 18px;
    cursor: pointer;
}

.friend-forum-profile-body {
    display: flex;
    gap: 16px;
    padding: 16px;
}

.friend-forum-profile-avatar {
    width: 82px;
    height: 82px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ece7ff 0%, #f8f2ff 100%);
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d57a0;
    font-size: 28px;
    font-weight: 700;
}

.friend-forum-profile-avatar--clickable {
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.friend-forum-profile-avatar--clickable:focus-visible {
    outline: 2px solid rgba(110, 86, 180, 0.55);
    outline-offset: 2px;
}

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

.friend-forum-profile-fields {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.friend-forum-profile-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.friend-forum-profile-label {
    font-size: 11px;
    color: #887f98;
}

.friend-forum-profile-value {
    font-size: 13px;
    color: #221a31;
    line-height: 1.65;
    word-break: break-word;
}

.friend-forum-profile-input,
.friend-forum-profile-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 13px;
    line-height: 1.5;
    color: #221a31;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
    outline: none;
    font-family: inherit;
}

.friend-forum-profile-input:focus,
.friend-forum-profile-textarea:focus {
    border-color: rgba(110, 86, 180, 0.45);
    box-shadow: 0 0 0 2px rgba(110, 86, 180, 0.12);
}

.friend-forum-profile-textarea {
    resize: vertical;
    min-height: 64px;
}

.friend-forum-profile-row--signature .friend-forum-profile-textarea {
    background: #f7f4fd;
    border-color: rgba(0, 0, 0, 0.06);
}

.phone-wechat-list-hint {
    font-size: 11px;
    color: rgba(50, 64, 86, 0.5);
    margin-bottom: 10px;
    padding: 0 4px;
}

.phone-wechat-session-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 24px rgba(59, 77, 109, 0.05);
}

.phone-wechat-session-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    min-height: 62px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    background: #fff;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
    backdrop-filter: none;
}

.phone-wechat-session-row:last-child {
    border-bottom: none;
}

.phone-wechat-session-row:active {
    background: #f7f8fa;
}

.phone-wechat-session-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(145deg, #7f96b7, #5f7596);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: none;
}

.phone-wechat-session-avatar--group {
    background: linear-gradient(145deg, #7087aa, #526886);
    font-size: 14px;
}

.phone-wechat-session-avatar--group::after {
    content: '';
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #576b95 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E") center/11px no-repeat;
    border: 2px solid #fff;
}

.phone-wechat-session-mid {
    flex: 1;
    min-width: 0;
}

.phone-wechat-session-name {
    font-size: 16px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 3px;
}

.phone-wechat-session-preview {
    font-size: 13px;
    color: #8b95a7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-wechat-session-meta {
    font-size: 11px;
    color: #b0b8c5;
    flex-shrink: 0;
    align-self: flex-start;
    padding-top: 1px;
}

.phone-wechat-chat-wrap {
    margin-top: 8px;
}

.phone-wechat-detail-title {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.phone-wechat-detail-sub {
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.phone-wechat-detail-note {
    font-size: 11px;
    color: #999;
    margin-top: 12px;
    line-height: 1.45;
}

.phone-browser-item .phone-browser-note-zh {
    font-size: 12px;
    color: rgba(35, 48, 70, 0.78);
    line-height: 1.6;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(123, 145, 179, 0.18);
}

.phone-wechat-section-title {
    font-size: 12px;
    font-weight: 700;
    color: #07c160;
    margin: 10px 0 8px;
}

.phone-wechat-real-line {
    font-size: 12px;
    line-height: 1.45;
    padding: 6px 8px;
    border-radius: 8px;
    margin-bottom: 6px;
    max-width: 92%;
}

.phone-wechat-real-line--user {
    margin-left: auto;
    background: #e7f7ec;
    color: #111;
}

.phone-wechat-real-line--friend {
    background: #f7f7f7;
    color: #111;
}

/* 查手机 · 微信对话页（仿微信气泡） */
.phone-wx-chat-screen {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 14px 14px 18px;
    background: linear-gradient(180deg, rgba(233,239,247,0.92), rgba(224,232,241,0.92));
    border-radius: 0 0 16px 16px;
    min-height: 200px;
    box-sizing: border-box;
}

.phone-wx-chat-screen::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.phone-wx-chat-top {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1a2433;
    padding: 11px 8px;
    background: rgba(247,249,252,0.86);
    border-bottom: 1px solid rgba(123, 145, 179, 0.12);
    backdrop-filter: blur(12px);
}

.phone-wx-msg-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 12px;
    max-width: 100%;
}

.phone-wx-msg-row--other {
    flex-direction: row;
}

.phone-wx-msg-row--self {
    flex-direction: row-reverse;
}

/* 本人消息：气泡在左、昵称在右（靠屏幕右侧成组） */
.phone-wx-msg-row--self.phone-wx-msg-row--nick-only {
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-start;
}

/* 仅昵称+气泡（无头像），更像真实微信单聊 */
.phone-wx-msg-row--nick-only {
    align-items: flex-start;
    gap: 6px;
}

.phone-wx-msg-row--nick-only .phone-wx-msg-col {
    /* 预留昵称列 + 间距，避免长气泡贴到边框 */
    max-width: calc(100% - 64px);
}

.phone-wx-msg-nick {
    flex-shrink: 0;
    width: 52px;
    font-size: 11px;
    color: #888;
    line-height: 1.3;
    word-break: break-all;
    padding-top: 2px;
}

.phone-wx-msg-nick--other {
    text-align: left;
    color: #888;
}

.phone-wx-msg-nick--self {
    text-align: right;
    color: #576b95;
}

.phone-wx-msg-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    background: linear-gradient(145deg, #7f96b7, #5f7596);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(59, 77, 109, 0.14);
}

.phone-wx-msg-col {
    flex: 0 1 auto;
    max-width: calc(100% - 52px);
    min-width: 0;
}

.phone-wx-bubble {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.phone-wx-bubble--other {
    background: rgba(255,255,255,0.88);
    color: #1a2433;
    border: 1px solid rgba(255,255,255,0.52);
    box-shadow: 0 8px 18px rgba(59, 77, 109, 0.06);
}

.phone-wx-bubble--self {
    background: linear-gradient(145deg, rgba(143,170,210,0.86), rgba(121,143,176,0.86));
    color: #102033;
    border: 1px solid rgba(255,255,255,0.32);
    box-shadow: 0 8px 18px rgba(59, 77, 109, 0.08);
}

@font-face {
    font-family: 'LoveMiOfflineNarration';
    src: url('assets/AaGuDianKeBenSongYouMoBan-2.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'LoveMiOfflineDialogue';
    src: url('assets/FangZhengKaiTiJianTi-1.ttf') format('truetype');
    font-display: swap;
}

.phone-wx-bubble-text + .phone-wx-bubble-text {
    margin-top: 6px;
}

.phone-wx-bubble--other .phone-wx-bubble-text--narration {
    font-family: 'LoveMiOfflineNarration', 'PingFang SC', 'Microsoft YaHei', serif;
}

.phone-wx-bubble--other .phone-wx-bubble-text--dialogue {
    font-family: 'LoveMiOfflineDialogue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.phone-wx-emoji-fail {
    display: inline-block;
    font-size: 13px;
    color: #999;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
}

.phone-wx-bubble-img {
    display: block;
    max-width: 200px;
    max-height: 200px;
    border-radius: 6px;
    margin-top: 6px;
    object-fit: cover;
}

.phone-wx-bubble-img:first-child {
    margin-top: 0;
}

.phone-wx-chat-empty {
    font-size: 13px;
    color: #888;
    text-align: center;
    padding: 24px 12px;
    line-height: 1.5;
}

.phone-wx-last-preview {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    border: 1px dashed rgba(0, 0, 0, 0.12);
}

.phone-wechat-session-name {
    white-space: nowrap;
}

.phone-wx-load-more-hint {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    padding: 10px 0 6px;
    user-select: none;
}

.phone-wx-action-menu {
    position: fixed;
    z-index: 5100;
    display: none;
    width: 304px;
    min-height: 58px;
    padding: 6px;
    box-sizing: border-box;
    border-radius: 14px;
    background: rgba(248, 248, 248, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.phone-wx-action-menu.show {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 4px;
}

.phone-wx-action-item {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #1f2937;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}

.phone-wx-action-item:active {
    background: rgba(15, 23, 42, 0.08);
}

.phone-wx-action-icon {
    display: block;
    font-size: 18px;
    line-height: 1;
}

.phone-wx-chat-screen.phone-wx-multiselect-mode .phone-wx-msg-row {
    padding-top: 1px;
    padding-bottom: 1px;
}

.phone-wx-chat-screen.phone-wx-multiselect-mode .phone-wx-msg-row--other {
    padding-right: 34px;
}

.phone-wx-chat-screen.phone-wx-multiselect-mode .phone-wx-msg-row--self {
    padding-left: 34px;
}

.phone-wx-selector {
    position: absolute;
    top: 50%;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(107, 114, 128, 0.55);
    background: rgba(255, 255, 255, 0.82);
    transform: translateY(-50%);
    box-sizing: border-box;
    cursor: pointer;
    z-index: 2;
}

.phone-wx-msg-row--other .phone-wx-selector {
    right: 3px;
}

.phone-wx-msg-row--self .phone-wx-selector {
    left: 3px;
}

.phone-wx-selector.selected {
    border-color: #07c160;
    background: #07c160;
}

.phone-wx-selector.selected::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.phone-wx-msg-row--selected .phone-wx-bubble {
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.28), 0 8px 18px rgba(59, 77, 109, 0.08);
}

.phone-wx-multiselect-bar {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    background: rgba(247, 247, 247, 0.94);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.phone-wx-multiselect-bar.show {
    display: flex;
}

.phone-wx-multiselect-info {
    min-width: 0;
    flex: 1;
    color: #374151;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-wx-multiselect-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.phone-wx-multiselect-btn {
    min-width: 58px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.phone-wx-multiselect-btn--danger {
    background: #ef4444;
    color: #fff;
}

.phone-wx-quote-frame {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: #374151;
    font-size: 12px;
    box-sizing: border-box;
}

.phone-wx-quote-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 7px;
}

.phone-wx-quote-label {
    flex-shrink: 0;
    color: #07a553;
    font-weight: 700;
}

.phone-wx-quote-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.phone-wx-quote-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.08);
    color: #4b5563;
    cursor: pointer;
}

.phone-wx-delete-ok {
    color: #ef4444 !important;
}
/* 好友手机 · 健康（清雅简洁） */
.phone-health-actionbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

/* 好友手机 · 资产中心（清雅淡雅） */
.phone-assets {
    display: block;
}

.phone-assets-top {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    padding: 18px 16px 16px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255,255,255,0.42), rgba(255,255,255,0.18));
    border: 1px solid rgba(255,255,255,0.38);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255,255,255,0.52);
    backdrop-filter: blur(24px) saturate(160%);
}

.phone-assets-top::after {
    content: '';
    position: absolute;
    top: -24px;
    right: -10px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.38), transparent 68%);
    pointer-events: none;
}

.phone-assets-top-headline {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.phone-assets-top-title {
    font-size: 16px;
    font-weight: 800;
    color: rgba(17, 17, 17, 0.88);
    align-self: flex-start;
    line-height: 1.25;
}

.phone-assets-top-total {
    margin-top: 10px;
    font-size: 30px;
    line-height: 1.05;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.04em;
}

.phone-assets-top-sub {
    margin-top: 6px;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.42);
}

.phone-assets-section {
    margin: 14px 0 0;
}

.phone-assets-section-title {
    font-size: 14px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 8px 2px 10px;
}

.phone-assets-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    cursor: grab;
}

.phone-assets-cards::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.phone-assets-cards.phone-assets-cards--grabbing {
    cursor: grabbing;
}

.phone-assets-card {
    position: relative;
    flex: 0 0 220px;
    min-height: 136px;
    background: linear-gradient(155deg, rgba(255,255,255,0.42), rgba(255,255,255,0.16));
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255,255,255,0.48);
    backdrop-filter: blur(20px) saturate(150%);
    overflow: hidden;
}

.phone-assets-card:nth-child(3n + 1) {
    background: linear-gradient(155deg, rgba(255,255,255,0.42), rgba(183,213,255,0.18));
}

.phone-assets-card:nth-child(3n + 2) {
    background: linear-gradient(155deg, rgba(255,255,255,0.42), rgba(255,214,184,0.18));
}

.phone-assets-card:nth-child(3n + 3) {
    background: linear-gradient(155deg, rgba(255,255,255,0.42), rgba(205,255,226,0.18));
}

.phone-assets-card::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -18px;
    width: 128px;
    height: 52px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.34), transparent);
    transform: rotate(-12deg);
}

.phone-assets-card-chip {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 20px;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,0.42), rgba(255,255,255,0.16));
    border: 1px solid rgba(255,255,255,0.32);
}

.phone-assets-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-right: 36px;
}

.phone-assets-card-bank {
    font-size: 13px;
    font-weight: 800;
    color: #111;
}

.phone-assets-card-type {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.50);
}

.phone-assets-card-no {
    margin-top: 24px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    letter-spacing: 1.2px;
    color: rgba(0, 0, 0, 0.65);
}

.phone-assets-card-bal {
    margin-top: 28px;
    font-size: 22px;
    font-weight: 900;
    color: #111;
    letter-spacing: -0.03em;
}

.phone-assets-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.phone-assets-item {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 18px;
    padding: 13px 13px;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.phone-assets-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.phone-assets-item-name {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    line-height: 1.25;
}

.phone-assets-item-tag {
    font-size: 11px;
    color: rgba(58, 78, 110, 0.78);
    background: rgba(143, 170, 210, 0.12);
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(143, 170, 210, 0.22);
    flex-shrink: 0;
}

.phone-assets-item-kv {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: rgba(46, 60, 82, 0.62);
}

.phone-assets-item-kv strong {
    color: #182235;
    font-size: 14px;
}

.phone-assets-list .phone-assets-item:first-child {
    padding-top: 15px;
}

.phone-assets-profit.is-pos {
    color: #3b6f87;
}

.phone-assets-profit.is-neg {
    color: #7b5c74;
}

.phone-assets-profit strong {
    font-size: 14px;
}

.phone-assets-item-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(123, 145, 179, 0.14);
    font-size: 12px;
    line-height: 1.55;
    color: rgba(32, 44, 63, 0.58);
}

.phone-assets-bill-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.phone-assets-bill-title {
    font-size: 14px;
    font-weight: 800;
    color: #111;
    line-height: 1.25;
}

.phone-assets-bill-amt {
    font-size: 16px;
    font-weight: 900;
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.phone-assets-bill-amt.is-pos {
    color: #3b6f87;
}

.phone-assets-bill-amt.is-neg {
    color: #7b5c74;
}

.phone-assets-bill-sub {
    margin-top: 7px;
    font-size: 11px;
    color: rgba(46, 60, 82, 0.42);
}

.phone-health-actionbar-tip {
    flex: 1;
    font-size: 12px;
    color: rgba(0, 0, 0, 0.55);
    line-height: 1.4;
}

.phone-health-refresh-btn {
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.80);
    height: 32px;
    padding: 0 12px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.phone-health-refresh-btn:hover {
    background: rgba(0, 0, 0, 0.10);
}

.phone-health-refresh-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.phone-health {
    display: block;
}

.phone-health-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 10px;
}

.phone-health-head-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.phone-health-head-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.phone-health-head-sub {
    font-size: 11px;
    color: rgba(0, 0, 0, 0.45);
}

.phone-health-refresh-icon-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.78);
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.phone-health-refresh-icon-btn:hover {
    background: rgba(0, 0, 0, 0.10);
}

.phone-health-refresh-icon-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.phone-health-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.phone-health-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.56), rgba(255,255,255,0.24));
    border: 1px solid rgba(255,255,255,0.42);
    border-radius: 18px;
    padding: 12px 12px;
    box-shadow: 0 10px 28px rgba(59, 77, 109, 0.08), inset 0 1px 0 rgba(255,255,255,0.52);
    backdrop-filter: blur(18px);
}

.phone-health-card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.phone-health-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.phone-health-metric {
    background: rgba(143, 170, 210, 0.10);
    border-radius: 12px;
    padding: 8px 10px;
    border: 1px solid rgba(143, 170, 210, 0.14);
}

.phone-health-metric .k {
    font-size: 11px;
    color: rgba(50, 64, 86, 0.52);
}

.phone-health-metric .v {
    font-size: 16px;
    font-weight: 700;
    color: #182235;
    margin-top: 2px;
}

.phone-health-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.phone-health-row-main {
    font-size: 13px;
    color: #1a1a1a;
    font-weight: 600;
}

.phone-health-row-sub {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    margin-top: 2px;
}

.phone-health-empty {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.45);
    padding: 6px 0;
}

.phone-health-note {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed rgba(0, 0, 0, 0.08);
    font-size: 12px;
    color: rgba(0, 0, 0, 0.66);
    line-height: 1.55;
}

.phone-health-sleep-line {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.78);
    margin-bottom: 8px;
}

.phone-health-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 0;
    align-items: flex-start;
}

.phone-health-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(143, 170, 210, 0.12);
    color: #536784;
    border: 1px solid rgba(143, 170, 210, 0.18);
    line-height: 1.45;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.phone-health-ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: rgba(0, 0, 0, 0.72);
    font-size: 12px;
    line-height: 1.55;
    word-break: break-all;
    overflow-wrap: break-word;
}

.phone-health-meal {
    padding: 10px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.phone-health-meal:first-child {
    border-top: none;
    padding-top: 0;
}

.phone-health-meal-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-health-check {
    width: 18px;
    text-align: center;
    color: rgba(0, 0, 0, 0.75);
    font-size: 14px;
}

.phone-health-meal-name {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

.phone-health-meal-items {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.65);
    margin-top: 4px;
}

.phone-health-meal-review {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.75);
    margin-top: 6px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    padding: 8px 10px;
    line-height: 1.55;
}

.phone-health-collapse-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.phone-health-collapse-score {
    margin-left: auto;
    font-size: 20px;
    font-weight: 800;
    color: #111;
}

.phone-health-collapse-score-label {
    font-size: 11px;
    font-weight: 400;
    color: rgba(0,0,0,0.5);
}

.phone-health-collapse-arrow {
    font-size: 13px;
    color: rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.phone-health-collapse-body {
    margin-top: 12px;
}

.phone-health-score {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.phone-health-score .s {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    letter-spacing: 0.5px;
}

.phone-health-score .t {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.55);
}

.phone-health-kv {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.phone-health-kv .k {
    display: block;
    font-size: 11px;
    color: rgba(0, 0, 0, 0.55);
}

.phone-health-kv .v {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.82);
    margin-top: 2px;
}



/* （自 style.css 迁入）夜间：查手机微信会话列表（原与主微信选择器共用一条规则） */
html[data-appearance="dark"] .phone-wechat-session-list,
html[data-appearance="dark"] .phone-wechat-session-row {
    background: rgba(44, 44, 46, 0.94);
    color: #f5f5f7;
    border-color: rgba(255, 255, 255, 0.06);
}

html[data-appearance="dark"] .phone-wechat-session-name {
    color: #f5f5f7;
}

html[data-appearance="dark"] .phone-wechat-session-preview,
html[data-appearance="dark"] .phone-wechat-session-meta {
    color: rgba(235, 235, 245, 0.62);
}

html[data-appearance="dark"] .phone-wechat-session-row:active {
    background: rgba(58, 58, 60, 0.96);
}

html[data-appearance="dark"] #phone-page .phone-app-body {
    background: transparent;
    color: rgba(245, 245, 250, 0.92);
}

html[data-appearance="dark"] #phone-page .phone-friends-toolbar-title {
    color: rgba(245, 245, 250, 0.96);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

html[data-appearance="dark"] #phone-page .phone-friends-toolbar-sub {
    color: rgba(235, 235, 245, 0.55);
}

html[data-appearance="dark"] #phone-page .phone-friends-filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(32, 32, 36, 0.58);
    color: rgba(245, 245, 250, 0.92);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.08),
        0 0 22px rgba(110, 150, 255, 0.14),
        0 0 40px rgba(60, 90, 160, 0.06),
        0 8px 22px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

html[data-appearance="dark"] #phone-page .phone-friend-tile {
    background: rgba(30, 30, 34, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.07),
        0 0 20px rgba(100, 145, 255, 0.1),
        0 10px 28px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

html[data-appearance="dark"] #phone-page .phone-friend-tile::before {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 22%, transparent 42%);
}

html[data-appearance="dark"] #phone-page .phone-friend-name,
html[data-appearance="dark"] #phone-page .phone-friend-avatar span {
    color: rgba(245, 245, 250, 0.94);
}

html[data-appearance="dark"] #phone-page .phone-friend-time {
    color: rgba(235, 235, 245, 0.55);
}

html[data-appearance="dark"] #phone-page .phone-friend-avatar {
    background: rgba(44, 44, 48, 0.85);
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 6px 16px rgba(0, 0, 0, 0.35);
}

html[data-appearance="dark"] #phone-page .phone-friends-exitbar {
    background: rgba(22, 22, 26, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.06),
        0 0 18px rgba(100, 140, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
}

html[data-appearance="dark"] #phone-page .phone-friends-exitbtn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(40, 40, 45, 0.65);
    color: rgba(245, 245, 250, 0.95);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.08),
        0 0 20px rgba(110, 155, 255, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html[data-appearance="dark"] #phone-page .phone-friends-picker {
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

html[data-appearance="dark"] #phone-page .phone-friends-picker-panel {
    background: rgba(34, 34, 38, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.06), 0 0 24px rgba(100, 140, 255, 0.1), 0 18px 50px rgba(0, 0, 0, 0.45);
}

html[data-appearance="dark"] #phone-page .phone-friends-picker-title,
html[data-appearance="dark"] #phone-page .phone-friends-picker-name {
    color: rgba(245, 245, 250, 0.95);
}

html[data-appearance="dark"] #phone-page .phone-friends-picker-sub,
html[data-appearance="dark"] #phone-page .phone-friends-picker-time {
    color: rgba(235, 235, 245, 0.58);
}

html[data-appearance="dark"] #phone-page .phone-friends-picker-item {
    background: rgba(44, 44, 48, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-appearance="dark"] #phone-page .phone-friends-picker-close {
    background: rgba(50, 50, 55, 0.75);
    color: #f5f5f7;
    box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 0 16px rgba(120, 160, 255, 0.12);
}

html[data-appearance="dark"] #phone-page .phone-friends-picker-avatar {
    background: rgba(48, 48, 52, 0.9);
    color: rgba(245, 245, 250, 0.9);
}

html[data-appearance="dark"] #phone-page .phone-app-panel {
    background: linear-gradient(180deg, #121214 0%, #1a1a1c 100%);
    color: rgba(245, 245, 250, 0.92);
}

/* 有全局图时子面板仍用半透明深色叠在底图上 */
html[data-appearance="dark"][data-user-global-wallpaper="1"] #phone-page .phone-app-panel {
    background: linear-gradient(180deg, rgba(10, 10, 12, 0.82) 0%, rgba(18, 18, 20, 0.9) 100%);
}

html[data-appearance="dark"] #phone-page .phone-app-header {
    background: rgba(24, 24, 28, 0.88);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

html[data-appearance="dark"] #phone-page .phone-app-title {
    color: #f5f5f7;
}

html[data-appearance="dark"] #phone-page .phone-app-back,
html[data-appearance="dark"] #phone-page .phone-app-action-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(40, 40, 45, 0.62);
    color: rgba(245, 245, 250, 0.95);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.08),
        0 0 20px rgba(110, 150, 255, 0.14),
        0 4px 14px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
}

html[data-appearance="dark"] #phone-page .phone-app-action-btn:hover {
    background: rgba(52, 52, 58, 0.78);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.12),
        0 0 24px rgba(120, 170, 255, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-appearance="dark"] #phone-page .phone-app-content--wx-chat {
    background: #111112;
}

html[data-appearance="dark"] .phone-wechat-list-hint {
    color: rgba(235, 235, 245, 0.55) !important;
}
/* 好友手机桌面 · 微信独立页 */
.phone-app-content--friend-wechat {
    padding: 0;
    overflow: hidden;
    background: #f2f4f7;
    display: flex;
    flex-direction: column;
    min-height: 0;
}


.friend-phone-wechat-shell {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #f2f4f7;
    color: #111827;
}

.friend-phone-wechat-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.friend-phone-wechat-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    background: transparent;
}

.friend-phone-wechat-body--messages,
.friend-phone-wechat-body--discover,
.friend-phone-wechat-body--me {
    padding: 14px 16px 18px;
    box-sizing: border-box;
}

.friend-phone-wechat-body--messages.phone-app-content--wx-chat {
    padding: 0;
    background: #ededed;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Char 本机微信聊天（入侵手机）：仿 User 聊天头部 / 底部栏（无「接收」） */
.friend-phone-char-chat-root {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #ededed;
}

.friend-phone-wechat-body--subpage.friend-phone-char-peer-chat {
    padding: 0 !important;
    overflow: hidden !important;
    display: flex;
    flex-direction: column;
    background: #ededed !important;
    flex: 1;
    min-height: 0;
}

.friend-phone-char-chat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 48px 10px 12px;
    background: rgba(247, 249, 252, 0.94);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.friend-phone-char-chat-header-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a2433;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.friend-phone-char-chat-header-settings {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 8px;
    line-height: 0;
    cursor: pointer;
    border-radius: 10px;
    color: #1a2433;
}

.friend-phone-char-chat-header-settings:active {
    opacity: 0.72;
}

.friend-phone-char-chat-settings-svg {
    display: block;
    width: 22px;
    height: 22px;
}

.friend-phone-char-composer-wrap {
    flex-shrink: 0;
    background: #f7f7f7;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.friend-phone-char-more-panel {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #ececec;
}

.friend-phone-char-more-panel[hidden] {
    display: none !important;
}

.friend-phone-char-more-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px 12px;
    box-sizing: border-box;
}

.friend-phone-char-more-item {
    font-size: 11px;
    padding: 10px 4px;
    border: none;
    border-radius: 10px;
    background: #fff;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    line-height: 1.25;
}

.friend-phone-char-more-item:active {
    opacity: 0.85;
}

.friend-phone-char-input-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px 10px;
    box-sizing: border-box;
}

.friend-phone-char-fn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: #1a2433;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.friend-phone-char-fn--mention {
    font-weight: 700;
    font-size: 16px;
}

.friend-phone-char-input {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 14px;
    background: #fff;
    color: #888;
    box-sizing: border-box;
}

.friend-phone-wechat-body--messages.phone-app-content--wx-chat .phone-wx-chat-screen {
    flex: 1;
    min-height: 0;
    border-radius: 0;
}

.friend-phone-wechat-body--subpage.friend-phone-char-peer-chat .phone-wx-chat-screen {
    flex: 1;
    min-height: 0;
    border-radius: 0;
}

.friend-phone-char-chat-settings {
    padding: 14px 16px 22px;
    box-sizing: border-box;
}

.friend-phone-char-chat-settings .friend-phone-wechat-row {
    width: 100%;
    margin-bottom: 10px;
}

.friend-phone-char-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    cursor: pointer;
}

.friend-phone-char-settings-row.is-danger .friend-phone-char-settings-label {
    color: #e54d42;
}

.friend-phone-char-settings-label {
    font-size: 15px;
    color: #111827;
}

.friend-phone-char-settings-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.friend-phone-char-settings-switch input {
    position: absolute;
    opacity: 0;
    width: 44px;
    height: 26px;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.friend-phone-char-settings-switch i {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 26px;
    border-radius: 13px;
    background: #e0e4ea;
    transition: background 0.15s ease;
    pointer-events: none;
}

.friend-phone-char-settings-switch i::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: transform 0.15s ease;
}

.friend-phone-char-settings-switch input:checked + i {
    background: #07c160;
}

.friend-phone-char-settings-switch input:checked + i::after {
    transform: translateX(18px);
}

.friend-phone-char-delete-exit {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: #fff;
    color: #e54d42;
    font-size: 15px;
    cursor: pointer;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
}

.friend-phone-char-delete-exit:active {
    opacity: 0.85;
}

.friend-phone-char-friend-settings {
    padding: 16px 16px 24px;
    box-sizing: border-box;
}

.friend-phone-char-fset-avatar-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.friend-phone-char-fset-avatar {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: #e8ecf2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-phone-char-fset-avatar .file-input {
    display: none;
}

.friend-phone-char-fset-hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #8b95a7;
}

.friend-phone-char-fset-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
}

/* 覆盖全局 .form-group label { display: none }，否则 Char 手机「好友设置」字段名全部不可见 */
.friend-phone-char-friend-settings .form-group label.friend-phone-char-fset-label {
    display: block;
}

.friend-phone-char-fset-wb-btn {
    width: 100%;
    text-align: left;
    cursor: pointer;
    background: #fff;
    font: inherit;
    color: #334155;
}

.friend-phone-char-fset-textarea {
    min-height: 72px;
    resize: vertical;
}

.friend-phone-char-fset-tip {
    margin: 6px 2px 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: #94a3b8;
}

.friend-phone-char-fset-actions {
    margin-top: 18px;
}

.friend-phone-wechat-tabbar {
    height: 58px;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.friend-phone-wechat-tabbar[hidden] {
    display: none !important;
}

/* 对话区 body 带 wx-chat 时禁止显示底栏（Char↔User / 群聊等直渲 body，不经过 setSubPage） */
.friend-phone-wechat-shell .friend-phone-wechat-body.phone-app-content--wx-chat ~ .friend-phone-wechat-tabbar {
    display: none !important;
}

.friend-phone-wechat-tab {
    border: none;
    background: transparent;
    color: #7b8496;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.friend-phone-wechat-tab.active {
    color: #07c160;
}

.friend-phone-wechat-tab-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.friend-phone-wechat-tab-icon svg {
    width: 22px;
    height: 22px;
}

.friend-phone-wechat-tab-text {
    font-size: 11px;
    line-height: 1.15;
}

.friend-phone-wechat-discover-list,
.friend-phone-wechat-profile-list {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 24px rgba(59, 77, 109, 0.05);
}

.friend-phone-wechat-row {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    background: #fff;
    color: #111827;
    padding: 0 14px;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.friend-phone-wechat-row:last-child {
    border-bottom: none;
}

.friend-phone-wechat-row:active {
    background: #f7f8fa;
}

.friend-phone-wechat-row-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 500;
}

.friend-phone-wechat-row-value {
    max-width: 52%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #8b95a7;
    font-size: 13px;
}

.friend-phone-wechat-chevron {
    flex-shrink: 0;
    color: #c2c8d2;
    font-size: 20px;
    line-height: 1;
}

.friend-phone-wechat-me-hero {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 24px rgba(59, 77, 109, 0.05);
}

.friend-phone-wechat-me-avatar,
.friend-phone-wechat-avatar,
.friend-phone-wechat-moments-avatar,
.friend-phone-wechat-memory-avatar {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(145deg, #7f96b7, #5f7596);
    color: #fff;
    font-weight: 700;
}

.friend-phone-wechat-me-avatar {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    font-size: 22px;
}

.friend-phone-wechat-me-avatar img,
.friend-phone-wechat-avatar img,
.friend-phone-wechat-moments-avatar img,
.friend-phone-wechat-memory-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.friend-phone-wechat-me-main {
    min-width: 0;
    flex: 1;
}

.friend-phone-wechat-me-name {
    font-size: 20px;
    font-weight: 750;
    color: #111827;
    line-height: 1.25;
}

.friend-phone-wechat-me-wxid {
    margin-top: 6px;
    font-size: 13px;
    color: #8b95a7;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.friend-phone-wechat-body--memory,
.friend-phone-wechat-body--memory-detail,
.friend-phone-wechat-body--favorites,
.friend-phone-wechat-body--wallet,
.friend-phone-wechat-body--wallet-bills,
.friend-phone-wechat-body--contact-chat,
.friend-phone-wechat-body--settings,
.friend-phone-wechat-body--role-detail,
.friend-phone-wechat-body--schedule,
.friend-phone-wechat-body--game-handbook,
.friend-phone-wechat-body--game-handbook-game,
.friend-phone-wechat-body--game-handbook-detail,
.friend-phone-wechat-body--add-friend-entry,
.friend-phone-wechat-body--mutual-import {
    padding: 14px 16px 18px;
    box-sizing: border-box;
    background: #f2f4f7;
}

.friend-phone-wechat-body--add-contact {
    padding: 0;
    box-sizing: border-box;
    background: #f7f7f7;
}

.friend-phone-wechat-header-plus {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.friend-phone-wechat-header-plus::before,
.friend-phone-wechat-header-plus::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    border-radius: 999px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.friend-phone-wechat-header-plus::before {
    width: 18px;
    height: 2px;
}

.friend-phone-wechat-header-plus::after {
    width: 2px;
    height: 18px;
}

.friend-phone-wechat-memory-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 24px rgba(59, 77, 109, 0.05);
}

.friend-phone-wechat-memory-hero-meta {
    flex: 1;
    min-width: 0;
}

.friend-phone-wechat-memory-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
}

.friend-phone-wechat-memory-name {
    font-size: 17px;
    font-weight: 750;
    color: #111827;
}

.friend-phone-wechat-game-handbook-page {
    display: grid;
    gap: 12px;
}

.friend-phone-wechat-game-handbook-hero,
.friend-phone-wechat-game-handbook-game,
.friend-phone-wechat-game-handbook-note,
.friend-phone-wechat-game-handbook-detail header,
.friend-phone-wechat-game-handbook-detail-content {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 24px rgba(59, 77, 109, 0.05);
}

.friend-phone-wechat-game-handbook-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border-radius: 16px;
}

.friend-phone-wechat-game-handbook-hero-meta {
    min-width: 0;
    flex: 1;
}

.friend-phone-wechat-game-handbook-list {
    display: grid;
    gap: 9px;
}

.friend-phone-wechat-game-handbook-game,
.friend-phone-wechat-game-handbook-note {
    width: 100%;
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    color: #111827;
    text-align: left;
    cursor: pointer;
}

.friend-phone-wechat-game-handbook-game:active,
.friend-phone-wechat-game-handbook-note:active {
    transform: translateY(1px);
}

.friend-phone-wechat-game-handbook-game-main,
.friend-phone-wechat-game-handbook-note-main {
    min-width: 0;
}

.friend-phone-wechat-game-handbook-game-main strong,
.friend-phone-wechat-game-handbook-note-main strong {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 750;
}

.friend-phone-wechat-game-handbook-game-main small,
.friend-phone-wechat-game-handbook-note-main small {
    display: block;
    margin-top: 4px;
    color: #8b95a7;
    font-size: 12px;
    line-height: 1.35;
}

.friend-phone-wechat-game-handbook-detail {
    display: grid;
    gap: 12px;
}

.friend-phone-wechat-game-handbook-detail header {
    padding: 15px;
    border-radius: 16px;
}

.friend-phone-wechat-game-handbook-detail-meta {
    color: #8b95a7;
    font-size: 12px;
    font-weight: 700;
}

.friend-phone-wechat-game-handbook-detail h3 {
    margin: 6px 0 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.28;
}

.friend-phone-wechat-game-handbook-detail-content {
    padding: 16px;
    border-radius: 16px;
    color: #1f2937;
    font-size: 15px;
    line-height: 1.72;
    word-break: break-word;
}

.friend-phone-wechat-memory-sub {
    margin-top: 4px;
    font-size: 12px;
    color: #8b95a7;
}

.friend-phone-wechat-memory-month-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    padding: 4px 0;
    font: inherit;
    text-align: left;
}

.friend-phone-wechat-memory-month-trigger:active {
    opacity: 0.72;
}

.friend-phone-wechat-memory-month-chevron {
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.7;
}

.friend-phone-wechat-memory-notes-entry {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: rgba(255, 255, 255, 0.85);
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.friend-phone-wechat-memory-notes-entry svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

.friend-phone-wechat-memory-notes-entry:active {
    background: rgba(15, 23, 42, 0.06);
}

.friend-phone-wechat-memory-notes-entry:hover {
    border-color: #94a3b8;
    color: #1f2937;
}

.friend-phone-wechat-memory-notes-entry-label {
    line-height: 1;
}

/* 旅行记忆入口按钮 */
.friend-phone-wechat-memory-travel-entry {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.1) 0%, rgba(123, 44, 191, 0.1) 100%);
    color: #7b2cbf;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s ease;
}

.friend-phone-wechat-memory-travel-entry svg {
    width: 16px;
    height: 16px;
    color: inherit;
}

.friend-phone-wechat-memory-travel-entry:active {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
}

.friend-phone-wechat-memory-travel-entry:hover {
    border-color: #9d4edd;
    color: #5a189a;
}

/* 旅行记忆页面 */
.friend-phone-wechat-travel-memory-page {
    padding: 16px;
}

.friend-phone-wechat-travel-month-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 16px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.friend-phone-wechat-travel-month-label {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-width: 120px;
    text-align: center;
}

.friend-phone-wechat-travel-month-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.friend-phone-wechat-travel-month-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.friend-phone-wechat-travel-month-btn:active {
    transform: scale(0.95);
}

/* 旅行记忆日历卡片 */
.friend-phone-wechat-travel-calendar-card {
    background: linear-gradient(135deg, #e8e4f3 0%, #d4c5e8 100%);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
}

.friend-phone-wechat-travel-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.friend-phone-wechat-travel-calendar-cell {
    aspect-ratio: 1;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 14px;
    color: #999;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.friend-phone-wechat-travel-calendar-cell.empty {
    background: transparent;
}

.friend-phone-wechat-travel-calendar-cell.has-travel {
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(157, 78, 221, 0.3);
}

.friend-phone-wechat-travel-calendar-cell.has-travel:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(157, 78, 221, 0.4);
}

.friend-phone-wechat-travel-calendar-cell.has-travel:active {
    transform: scale(0.95);
}

.friend-phone-wechat-travel-calendar-hint {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    padding: 8px;
}

/* 旅行日记页面 */
.friend-phone-wechat-travel-diary-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: linear-gradient(to bottom, #fef9f3 0%, #fef5e7 100%);
}

.friend-phone-wechat-travel-diary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f4ed 0%, #f5ebe0 100%);
    border-bottom: 2px solid rgba(139, 69, 19, 0.1);
    position: relative;
}

.friend-phone-wechat-travel-diary-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(139, 69, 19, 0.2), transparent);
}

.friend-phone-wechat-travel-diary-date {
    font-size: 16px;
    font-weight: 600;
    color: #5d4037;
    text-align: center;
    flex: 1;
}

.friend-phone-wechat-travel-diary-refresh {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.friend-phone-wechat-travel-diary-refresh:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.friend-phone-wechat-travel-diary-refresh svg {
    width: 18px;
    height: 18px;
    stroke: #8b4513;
}

.friend-phone-wechat-travel-diary-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    position: relative;
}

/* 信签纹理效果 */
.friend-phone-wechat-travel-diary-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    bottom: 0;
    background-image: repeating-linear-gradient(
        transparent,
        transparent 31px,
        rgba(139, 69, 19, 0.08) 31px,
        rgba(139, 69, 19, 0.08) 32px
    );
    pointer-events: none;
}

.friend-phone-wechat-travel-diary-loading {
    text-align: center;
    padding: 40px 20px;
    color: #8b4513;
    font-size: 14px;
}

.friend-phone-wechat-travel-diary-content {
    font-family: 'QingSongShouXieTi1-2', 'Microsoft YaHei', sans-serif;
    font-size: 16px;
    line-height: 32px;
    color: #3e2723;
    white-space: pre-wrap;
    word-wrap: break-word;
    position: relative;
    z-index: 1;
    text-align: justify;
    letter-spacing: 0.5px;
}

/* 月份选择子页 */
.friend-phone-wechat-memory-month-picker-page {
    padding: 4px 4px 24px;
}

.friend-phone-wechat-memory-month-picker-year-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 8px 18px rgba(59, 77, 109, 0.05);
    margin-bottom: 14px;
}

.friend-phone-wechat-memory-month-picker-year-text {
    flex: 1;
    text-align: center;
    color: #1f2937;
}

.friend-phone-wechat-memory-month-picker-year-text strong {
    display: block;
    font-size: 18px;
    font-weight: 750;
    margin-top: 2px;
}

.friend-phone-wechat-memory-month-picker-kicker {
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.08em;
}

.friend-phone-wechat-memory-month-picker-year-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 12px;
    background: #eef2f7;
    color: #4b5563;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.friend-phone-wechat-memory-month-picker-year-btn:active {
    transform: translateY(1px);
}

.friend-phone-wechat-memory-month-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.friend-phone-wechat-memory-month-cell {
    position: relative;
    height: 48px;
    border: none;
    border-radius: 14px;
    background: #f1f5f9;
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.friend-phone-wechat-memory-month-cell.is-active {
    background: linear-gradient(135deg, #4f5d80 0%, #2f3a55 100%);
    color: #fff;
    box-shadow: 0 8px 20px rgba(47, 58, 85, 0.22);
}

.friend-phone-wechat-memory-month-cell.has-diary .dot {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #07c160;
}

.friend-phone-wechat-memory-month-picker-tip {
    margin-top: 12px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.5;
    padding: 0 4px;
}

.friend-phone-wechat-memory-month-picker-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.friend-phone-wechat-memory-month-picker-jump {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #475569;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.friend-phone-wechat-memory-month-picker-jump:active {
    background: #eef2f7;
}

/* 记忆空间页：标题居中 + 顶栏右侧「旅行记忆」入口（见 #phone-app-action-btn.friend-phone-memory-travel-header-btn） */
#phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory) .phone-app-header {
    position: relative;
}

#phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory) .phone-app-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 46%;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory) .phone-app-back,
#phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory) .phone-app-actions {
    position: relative;
    z-index: 10;
}

#phone-app-action-btn.friend-phone-memory-travel-header-btn {
    border: none;
    background: linear-gradient(135deg, #9d4edd 0%, #7b2cbf 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(123, 44, 191, 0.32);
    border-radius: 999px;
    width: 38px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#phone-app-action-btn.friend-phone-memory-travel-header-btn:hover {
    filter: brightness(1.06);
}

#phone-app-action-btn.friend-phone-memory-travel-header-btn .friend-phone-memory-travel-header-svg {
    width: 18px;
    height: 18px;
}

/* 记忆便签页：顶栏标题绝对居中 + 右侧「+」见 #phone-app-action-btn.friend-phone-memory-notes-header-add-btn */
#phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory-notes) .phone-app-header {
    position: relative;
}

#phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory-notes) .phone-app-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 52%;
    text-align: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory-notes) .phone-app-back,
#phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory-notes) .phone-app-actions {
    position: relative;
    z-index: 10;
}

#phone-app-action-btn.friend-phone-memory-notes-header-add-btn {
    border: none;
    background: linear-gradient(135deg, #5d6bee 0%, #4456d6 100%);
    color: #fff;
    box-shadow: 0 6px 14px rgba(93, 107, 238, 0.35);
    border-radius: 999px;
    width: 36px;
    height: 32px;
}

#phone-app-action-btn.friend-phone-memory-notes-header-add-btn:hover {
    filter: brightness(1.05);
}

#phone-app-action-btn.friend-phone-memory-notes-header-add-btn .friend-phone-memory-notes-header-plus-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
}

.friend-phone-wechat-memory-notes-page {
    padding: 12px 0 24px;
}

.friend-phone-wechat-memory-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.friend-phone-wechat-memory-note-empty {
    padding: 22px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    color: #6b7280;
    text-align: center;
}

.friend-phone-wechat-memory-note-empty strong {
    display: block;
    font-size: 14px;
    color: #1f2937;
    margin-bottom: 6px;
}

.friend-phone-wechat-memory-note-empty p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.friend-phone-wechat-memory-note {
    --note-color: #fff5d8;
    display: flex;
    gap: 12px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: var(--note-color);
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 8px 18px rgba(74, 67, 41, 0.08);
}

.friend-phone-wechat-memory-note-check {
    flex-shrink: 0;
    display: inline-flex;
    align-items: flex-start;
    cursor: pointer;
    padding-top: 1px;
}

.friend-phone-wechat-memory-note-check input[type='checkbox'] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.friend-phone-wechat-memory-note-check-box {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(31, 41, 55, 0.45);
    background: rgba(255, 255, 255, 0.7);
    display: inline-block;
    position: relative;
}

.friend-phone-wechat-memory-note-check input[type='checkbox']:checked + .friend-phone-wechat-memory-note-check-box {
    background: #2f3a55;
    border-color: #2f3a55;
}

.friend-phone-wechat-memory-note-check input[type='checkbox']:checked + .friend-phone-wechat-memory-note-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 11px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.friend-phone-wechat-memory-note-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.friend-phone-wechat-memory-note-time {
    font-size: 11.5px;
    color: rgba(31, 41, 55, 0.62);
    letter-spacing: 0.02em;
}

.friend-phone-wechat-memory-note-content {
    font-size: 14px;
    color: #1f2937;
    line-height: 1.6;
    word-break: break-word;
    white-space: pre-wrap;
}

.friend-phone-wechat-memory-note-keywords {
    margin-top: 2px;
    font-size: 11.5px;
    color: rgba(31, 41, 55, 0.58);
}

.friend-phone-wechat-memory-note-meta {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.friend-phone-wechat-memory-note-source {
    font-size: 11px;
    color: rgba(31, 41, 55, 0.52);
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.friend-phone-wechat-memory-note-actions {
    display: flex;
    gap: 6px;
}

.friend-phone-wechat-memory-note-actions button {
    border: none;
    background: rgba(255, 255, 255, 0.7);
    color: #374151;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    cursor: pointer;
}

.friend-phone-wechat-memory-note-actions button:active {
    background: rgba(255, 255, 255, 0.92);
}

.friend-phone-wechat-memory-note-actions button[data-action='delete-note'] {
    color: #b91c1c;
}

/* 记忆便签编辑器蒙层：垂直居中 + 四周留白，避免小屏/圆角机身下底部贴边被裁切 */
.friend-phone-wechat-memory-note-editor-mask {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(15, 23, 42, 0.42);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px))
        max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.friend-phone-wechat-memory-note-editor {
    width: min(420px, 100%);
    max-height: min(82vh, calc(100vh - 48px));
    min-height: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
    display: flex;
    flex-direction: column;
}

.friend-phone-wechat-memory-note-editor-header {
    display: grid;
    grid-template-columns: 64px 1fr 64px;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.friend-phone-wechat-memory-note-editor-title {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.friend-phone-wechat-memory-note-editor-close,
.friend-phone-wechat-memory-note-editor-save {
    border: none;
    background: transparent;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
}

.friend-phone-wechat-memory-note-editor-save {
    color: #4456d6;
    font-weight: 700;
    text-align: right;
}

.friend-phone-wechat-memory-note-editor-body {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.friend-phone-wechat-memory-note-editor-label {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.friend-phone-wechat-memory-note-editor-textarea,
.friend-phone-wechat-memory-note-editor-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    font-family: inherit;
}

.friend-phone-wechat-memory-note-editor-textarea {
    min-height: 90px;
    resize: vertical;
}

.friend-phone-wechat-memory-note-editor-textarea:focus,
.friend-phone-wechat-memory-note-editor-input:focus {
    border-color: #4456d6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(68, 86, 214, 0.16);
}

.friend-phone-wechat-memory-note-editor-counter {
    font-size: 11px;
    color: #94a3b8;
    text-align: right;
}

.friend-phone-wechat-memory-note-color-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.friend-phone-wechat-memory-note-color-swatch {
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    cursor: pointer;
}

.friend-phone-wechat-memory-note-color-swatch.is-active {
    box-shadow: 0 0 0 2px #4456d6, 0 6px 12px rgba(68, 86, 214, 0.18);
    transform: translateY(-1px);
}

.friend-phone-wechat-memory-calendar,
.friend-phone-wechat-memory-diary-list,
.friend-phone-wechat-simple-page,
.friend-phone-wechat-wallet-page,
.friend-phone-wechat-settings-page {
    margin-top: 14px;
}

.friend-phone-wechat-memory-calendar {
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.friend-phone-wechat-memory-weekdays,
.friend-phone-wechat-memory-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.friend-phone-wechat-memory-weekdays {
    margin-bottom: 8px;
    color: #8b95a7;
    font-size: 11px;
    text-align: center;
}

.friend-phone-wechat-memory-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    min-width: 0;
    border: none;
    border-radius: 10px;
    background: #f4f6f9;
    color: #8b95a7;
    font-size: 12px;
    display: grid;
    place-items: center;
}

.friend-phone-wechat-memory-cell.has-chat {
    color: #fff;
    background: #8fa1bd;
}

.friend-phone-wechat-memory-cell.level-2 {
    background: #7288aa;
}

.friend-phone-wechat-memory-cell.level-3,
.friend-phone-wechat-memory-cell.level-4 {
    background: #536b90;
}

.friend-phone-wechat-memory-cell.has-travel-journal::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #9d4edd;
}

.friend-phone-wechat-memory-cell.has-travel-journal.has-diary::before {
    margin-left: -10px;
}

.friend-phone-wechat-memory-cell.has-diary::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #07c160;
}

.friend-phone-wechat-memory-cell.has-travel-journal.has-diary::after {
    margin-left: 6px;
}

.friend-phone-wechat-memory-cell.is-empty {
    background: transparent;
}

.friend-phone-wechat-memory-cell:disabled {
    opacity: 0.62;
}

.friend-phone-wechat-memory-hint {
    margin-top: 10px;
    color: #8b95a7;
    font-size: 12px;
    line-height: 1.45;
}

.friend-phone-wechat-section-title {
    font-size: 13px;
    font-weight: 750;
    color: #4b5563;
    margin: 0 0 8px;
}

.friend-phone-wechat-memory-diary-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
    padding: 4px 0;
    margin: 0 0 8px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    font: inherit;
    color: inherit;
}

.friend-phone-wechat-memory-diary-toggle:active {
    opacity: 0.72;
}

.friend-phone-wechat-section-title--toggle {
    margin: 0;
    flex: 1;
    text-align: left;
}

.friend-phone-wechat-memory-diary-panel.is-collapsed {
    display: none;
}

.friend-phone-wechat-memory-diary-panel {
    display: flex;
    flex-direction: column;
}

.friend-phone-wechat-memory-diary-chevron {
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    font-weight: 600;
    color: #9ca3af;
    transform: rotate(0deg);
    transition: transform 0.18s ease;
}

.friend-phone-wechat-memory-diary-list.is-expanded .friend-phone-wechat-memory-diary-chevron {
    transform: rotate(90deg);
}

.friend-phone-wechat-diary-row,
.friend-phone-wechat-favorite-item,
.friend-phone-wechat-empty-card {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, 0.06);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(59, 77, 109, 0.05);
}

.friend-phone-wechat-diary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    margin-bottom: 8px;
    padding: 0 14px;
    color: #111827;
    cursor: pointer;
}

.friend-phone-wechat-diary-row span:last-child {
    color: #8b95a7;
    font-size: 12px;
}

.friend-phone-wechat-empty-card {
    padding: 16px;
    color: #8b95a7;
    font-size: 13px;
    line-height: 1.6;
}

.friend-phone-wechat-diary-page {
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    padding: 16px;
}

.friend-phone-wechat-diary-title {
    font-size: 16px;
    font-weight: 750;
    color: #111827;
    margin-bottom: 12px;
}

.friend-phone-wechat-diary-content {
    white-space: pre-wrap;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.76;
}

.friend-phone-wechat-favorite-item {
    padding: 14px;
    margin-bottom: 10px;
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.friend-phone-wechat-favorite-item.pending-delete {
    border-color: rgba(255, 77, 79, 0.38);
    background: #fff7f7;
    box-shadow: 0 12px 28px rgba(255, 77, 79, 0.12);
    transform: translateY(-1px);
}

.friend-phone-wechat-favorite-confirm {
    position: absolute;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.friend-phone-wechat-favorite-confirm.show {
    display: flex;
}

.friend-phone-wechat-favorite-confirm[hidden] {
    display: none !important;
}

.friend-phone-wechat-favorite-confirm-dialog {
    width: min(100%, 300px);
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
}

.friend-phone-wechat-favorite-confirm-text {
    margin: 0;
    padding: 24px 20px 18px;
    text-align: center;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
}

.friend-phone-wechat-favorite-confirm-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.friend-phone-wechat-favorite-confirm-actions button {
    min-width: 0;
    height: 46px;
    border: none;
    background: #fff;
    color: #374151;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
}

.friend-phone-wechat-favorite-confirm-actions button + button {
    border-left: 1px solid rgba(15, 23, 42, 0.08);
}

.friend-phone-wechat-favorite-confirm-actions button:active {
    background: #f3f4f6;
}

.friend-phone-wechat-favorite-confirm-ok {
    color: #07a553 !important;
}

.friend-phone-wechat-favorites-page,
.friend-phone-wechat-contact-chat-page {
    margin-top: 14px;
    animation: friendPhoneWechatSubpageIn 0.24s ease both;
}

.friend-phone-wechat-add-contact-page {
    margin-top: 0;
    animation: friendPhoneWechatSubpageIn 0.24s ease both;
}

.friend-phone-wechat-char-add-friend-scroll {
    padding: 24px 22px 18px;
    box-sizing: border-box;
}

.friend-phone-wechat-char-add-friend-panel .avatar-upload-area {
    margin-bottom: 24px;
}

.friend-phone-wechat-char-add-friend-actions.add-friend-footer {
    padding-left: max(22px, env(safe-area-inset-left, 0px));
    padding-right: max(22px, env(safe-area-inset-right, 0px));
}

.friend-phone-wechat-char-role-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.friend-phone-wechat-char-role-shell {
    position: relative;
}

.friend-phone-wechat-char-role-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 92px;
    padding: 12px 42px 12px 14px;
    line-height: 1.52;
    resize: vertical;
    overflow: auto;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    color: #111827;
}

.friend-phone-wechat-char-role-textarea:focus {
    outline: none;
    border-color: rgba(7, 193, 96, 0.55);
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.12);
}

.friend-phone-wechat-char-role-expand {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.1);
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.friend-phone-wechat-char-role-expand:active {
    background: #f8fafc;
}

.friend-phone-wechat-char-role-expand svg {
    display: block;
}

.friend-phone-wechat-favorite-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.friend-phone-wechat-favorite-tabs button {
    min-width: 0;
    height: 34px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 8px;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.friend-phone-wechat-favorite-tabs button.active {
    border-color: rgba(7, 193, 96, 0.22);
    background: #eaf8f0;
    color: #07a553;
}

.friend-phone-wechat-favorite-meta,
.friend-phone-wechat-favorite-time {
    color: #8b95a7;
    font-size: 12px;
}

.friend-phone-wechat-favorite-body {
    margin: 7px 0;
    color: #111827;
    font-size: 14px;
    line-height: 1.55;
}

.friend-phone-wechat-favorite-images {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
}

.friend-phone-wechat-favorite-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    background: #eef2f7;
}

.friend-phone-wechat-char-entry-footnote {
    margin: 18px 4px 0;
    padding: 0 6px;
    font-size: 12px;
    line-height: 1.62;
    color: #64748b;
}

.friend-phone-wechat-mutual-page {
    display: flex;
    flex-direction: column;
    min-height: min(420px, 100%);
}

.friend-phone-wechat-mutual-lead {
    margin: 0 0 14px;
    padding: 0 4px;
    font-size: 12px;
    line-height: 1.65;
    color: #64748b;
}

.friend-phone-wechat-mutual-list {
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.friend-phone-wechat-mutual-empty {
    margin: 12px;
}

.friend-phone-wechat-mutual-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-sizing: border-box;
    cursor: pointer;
    font-size: 15px;
    color: #111827;
}

.friend-phone-wechat-mutual-row:last-child {
    border-bottom: none;
}

.friend-phone-wechat-mutual-row.is-added {
    opacity: 0.78;
    cursor: default;
}

.friend-phone-wechat-mutual-check {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    accent-color: #07c160;
}

.friend-phone-wechat-mutual-check:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.friend-phone-wechat-mutual-avatar {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e8eef6;
    color: #43668d;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.friend-phone-wechat-mutual-avatar.is-image {
    background-size: cover;
    background-position: center;
    color: transparent;
}

.friend-phone-wechat-mutual-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 650;
}

.friend-phone-wechat-mutual-badge {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
    color: #07a553;
    background: rgba(7, 193, 96, 0.1);
    padding: 3px 8px;
    border-radius: 999px;
}

.friend-phone-wechat-mutual-footer {
    flex: 0 0 auto;
    margin-top: 16px;
    padding-bottom: max(4px, env(safe-area-inset-bottom, 0px));
    display: flex;
    justify-content: center;
}

.friend-phone-wechat-mutual-confirm {
    width: 100%;
    max-width: 280px;
}

.friend-phone-wechat-contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 24px rgba(59, 77, 109, 0.05);
}

.friend-phone-wechat-contact-avatar {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-size: 18px;
}

.friend-phone-wechat-contact-card-main {
    min-width: 0;
}

.friend-phone-wechat-contact-card-name {
    color: #111827;
    font-size: 16px;
    font-weight: 750;
}

.friend-phone-wechat-contact-card-sub {
    margin-top: 3px;
    color: #8b95a7;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.friend-phone-wechat-contact-chat-list {
    margin-top: 12px;
}

.friend-phone-wechat-contact-msg {
    display: flex;
    margin-bottom: 9px;
}

.friend-phone-wechat-contact-msg.is-self {
    justify-content: flex-end;
}

.friend-phone-wechat-contact-msg-bubble {
    max-width: 78%;
    padding: 9px 11px;
    border-radius: 12px;
    background: #fff;
    color: #111827;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    box-shadow: 0 8px 18px rgba(59, 77, 109, 0.05);
}

.friend-phone-wechat-contact-msg.is-self .friend-phone-wechat-contact-msg-bubble {
    background: #95ec69;
}

@keyframes friendPhoneWechatSubpageIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.friend-phone-wechat-wallet-balance {
    padding: 18px;
    border-radius: 16px;
    background: linear-gradient(145deg, #2f3a48, #111827);
    color: #fff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.18);
}

.friend-phone-wechat-wallet-label {
    font-size: 13px;
    opacity: 0.74;
}

.friend-phone-wechat-wallet-amount {
    margin-top: 8px;
    font-size: 26px;
    font-weight: 750;
}

.friend-phone-wechat-wallet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.friend-phone-wechat-wallet-currency {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.86);
    font-size: 11px;
    font-weight: 700;
}

.friend-phone-wechat-wallet-range {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.45;
}

.friend-phone-wechat-wallet-section {
    margin-top: 14px;
}

.friend-phone-wechat-wallet-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 28px;
    padding: 0 2px 6px;
    color: #111827;
    font-size: 15px;
    font-weight: 750;
}

.friend-phone-wechat-wallet-section-toggle {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.friend-phone-wechat-wallet-section-toggle::after {
    content: '';
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid #8b95a7;
    border-bottom: 2px solid #8b95a7;
    transform: rotate(45deg);
    transition: transform 0.22s ease;
}

.friend-phone-wechat-wallet-section--cards.is-expanded .friend-phone-wechat-wallet-section-toggle::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.friend-phone-wechat-wallet-section-head span:last-child {
    flex: 0 0 auto;
    color: #8b95a7;
    font-size: 12px;
    font-weight: 600;
}

.friend-phone-wechat-wallet-section-head--static {
    padding-right: 2px;
}

.friend-phone-wechat-bank-card-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.2s ease;
}

.friend-phone-wechat-wallet-section--cards.is-expanded .friend-phone-wechat-bank-card-panel {
    max-height: 1600px;
    opacity: 1;
    transform: translateY(0);
}

.friend-phone-wechat-bank-card-list {
    display: grid;
    gap: 10px;
    padding-top: 8px;
}

.friend-phone-wechat-bank-card {
    min-height: 112px;
    padding: 14px;
    border-radius: 8px;
    color: #fff;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.friend-phone-wechat-bank-card.tone-1 {
    background: linear-gradient(135deg, #155e75, #0f766e);
}

.friend-phone-wechat-bank-card.tone-2 {
    background: linear-gradient(135deg, #9f1239, #b45309);
}

.friend-phone-wechat-bank-card.tone-3 {
    background: linear-gradient(135deg, #4338ca, #334155);
}

.friend-phone-wechat-bank-card.tone-4 {
    background: linear-gradient(135deg, #047857, #365314);
}

.friend-phone-wechat-bank-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
}

.friend-phone-wechat-bank-card-bank {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 750;
    line-height: 1.35;
}

.friend-phone-wechat-bank-card-type {
    flex: 0 0 auto;
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
}

.friend-phone-wechat-bank-card-balance {
    margin-top: 18px;
    overflow-wrap: anywhere;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.friend-phone-wechat-bank-card-no {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0;
}

.friend-phone-wechat-wallet-bill-list {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.friend-phone-wechat-wallet-bill {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    cursor: default;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

.friend-phone-wechat-wallet-bill:last-child {
    border-bottom: none;
}

.friend-phone-wechat-wallet-bill.pending-delete {
    background: #fff7f7;
    box-shadow: inset 3px 0 0 rgba(255, 77, 79, 0.66);
}

.friend-phone-wechat-wallet-bill-main {
    min-width: 0;
}

.friend-phone-wechat-wallet-bill-title {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.friend-phone-wechat-wallet-bill-meta,
.friend-phone-wechat-wallet-bill-detail {
    margin-top: 4px;
    color: #8b95a7;
    font-size: 12px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.friend-phone-wechat-wallet-bill-amount {
    flex: 0 0 auto;
    max-width: 42%;
    color: #dc2626;
    font-size: 14px;
    font-weight: 750;
    text-align: right;
    overflow-wrap: anywhere;
}

.friend-phone-wechat-wallet-bill-amount.is-income {
    color: #059669;
}

.friend-phone-wechat-wallet-bill-amount.is-expense {
    color: #dc2626;
}

.friend-phone-wechat-wallet-bills-page {
    margin-top: 14px;
    animation: friendPhoneWechatWalletBillsIn 0.24s ease both;
}

.friend-phone-wechat-bill-summary-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.friend-phone-wechat-bill-summary-card {
    min-width: 0;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.friend-phone-wechat-bill-summary-title {
    color: #111827;
    font-size: 13px;
    font-weight: 750;
}

.friend-phone-wechat-bill-summary-grid {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.friend-phone-wechat-bill-summary-grid span {
    display: block;
    color: #8b95a7;
    font-size: 11px;
}

.friend-phone-wechat-bill-summary-grid strong {
    display: block;
    margin-top: 2px;
    color: #111827;
    font-size: 14px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

@keyframes friendPhoneWechatWalletBillsIn {
    from {
        opacity: 0;
        transform: translateX(14px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.friend-phone-wechat-wallet-extra {
    margin-top: 14px;
}

.friend-phone-wechat-switch-row {
    position: relative;
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #111827;
}

.friend-phone-wechat-switch-row span {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
}

.friend-phone-wechat-switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.friend-phone-wechat-switch-row i {
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #d1d5db;
    position: relative;
    transition: background 0.18s ease;
}

.friend-phone-wechat-switch-row i::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
    transition: transform 0.18s ease;
}

.friend-phone-wechat-switch-row input:checked + i {
    background: #07c160;
}

.friend-phone-wechat-switch-row input:checked + i::before {
    transform: translateX(20px);
}

.friend-phone-wechat-auto-chat-host:not([hidden]) {
    margin-top: 10px;
}

.friend-phone-wechat-auto-chat-panel {
    padding: 12px 14px 14px;
    border-radius: 14px;
    background: rgba(7, 193, 96, 0.06);
    border: 1px solid rgba(7, 193, 96, 0.22);
    margin-bottom: 12px;
}

.friend-phone-wechat-auto-chat-title {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 750;
    color: #111827;
}

.friend-phone-wechat-auto-chat-lead {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.55;
    color: #475569;
}

.friend-phone-wechat-auto-chat-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.friend-phone-wechat-auto-chat-row.is-disabled {
    opacity: 0.72;
}

.friend-phone-wechat-auto-chat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.friend-phone-wechat-auto-chat-check {
    flex: 1;
    min-width: 180px;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}

.friend-phone-wechat-auto-chat-avatar {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: #e8f4ee;
    color: #059669;
    font-size: 14px;
    font-weight: 750;
    background-size: cover;
    background-position: center;
}

.friend-phone-wechat-auto-chat-avatar.has-photo {
    color: transparent;
}

.friend-phone-wechat-auto-chat-peer-name {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 500;
}

.friend-phone-wechat-auto-chat-peer-main,
.friend-phone-wechat-auto-chat-peer-detail {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-phone-wechat-auto-chat-peer-main {
    color: #111827;
    font-size: 13px;
    font-weight: 700;
}

.friend-phone-wechat-auto-chat-peer-detail {
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
}

.friend-phone-wechat-auto-chat-interval {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.friend-phone-wechat-auto-chat-interval input[type='number'] {
    width: 76px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 13px;
}

.friend-phone-wechat-auto-chat-interval input[type='number']:disabled {
    opacity: 0.58;
}

.friend-phone-wechat-role-text {
    white-space: pre-wrap;
    color: #1f2937;
}

html[data-appearance="dark"] .phone-app-content--friend-wechat,
html[data-appearance="dark"] .friend-phone-wechat-shell,
html[data-appearance="dark"] .friend-phone-wechat-body--memory,
html[data-appearance="dark"] .friend-phone-wechat-body--memory-detail,
html[data-appearance="dark"] .friend-phone-wechat-body--favorites,
html[data-appearance="dark"] .friend-phone-wechat-body--wallet,
html[data-appearance="dark"] .friend-phone-wechat-body--wallet-bills,
html[data-appearance="dark"] .friend-phone-wechat-body--add-contact,
html[data-appearance="dark"] .friend-phone-wechat-body--add-friend-entry,
html[data-appearance="dark"] .friend-phone-wechat-body--mutual-import,
html[data-appearance="dark"] .friend-phone-wechat-body--contact-chat,
html[data-appearance="dark"] .friend-phone-wechat-body--char-chat-settings,
html[data-appearance="dark"] .friend-phone-wechat-body--char-friend-settings,
html[data-appearance="dark"] .friend-phone-char-peer-chat,
html[data-appearance="dark"] .friend-phone-wechat-body--settings,
html[data-appearance="dark"] .friend-phone-wechat-body--role-detail,
html[data-appearance="dark"] .friend-phone-wechat-body--schedule,
html[data-appearance="dark"] .friend-phone-wechat-body--game-handbook,
html[data-appearance="dark"] .friend-phone-wechat-body--game-handbook-game,
html[data-appearance="dark"] .friend-phone-wechat-body--game-handbook-detail,
html[data-appearance="dark"] .friend-phone-wechat-body--moments,
html[data-appearance="dark"] .friend-phone-wechat-moments-page {
    background: #111827;
    color: #e5e7eb;
}

html[data-appearance="dark"] .friend-phone-wechat-tabbar,
html[data-appearance="dark"] .friend-phone-wechat-discover-list,
html[data-appearance="dark"] .friend-phone-wechat-profile-list,
html[data-appearance="dark"] .friend-phone-wechat-me-hero,
html[data-appearance="dark"] .friend-phone-wechat-memory-hero,
html[data-appearance="dark"] .friend-phone-wechat-memory-calendar,
html[data-appearance="dark"] .friend-phone-wechat-diary-row,
html[data-appearance="dark"] .friend-phone-wechat-favorite-item,
html[data-appearance="dark"] .friend-phone-wechat-empty-card,
html[data-appearance="dark"] .friend-phone-wechat-game-handbook-hero,
html[data-appearance="dark"] .friend-phone-wechat-game-handbook-game,
html[data-appearance="dark"] .friend-phone-wechat-game-handbook-note,
html[data-appearance="dark"] .friend-phone-wechat-game-handbook-detail header,
html[data-appearance="dark"] .friend-phone-wechat-game-handbook-detail-content,
html[data-appearance="dark"] .friend-phone-wechat-diary-page,
html[data-appearance="dark"] .friend-phone-wechat-switch-row,
html[data-appearance="dark"] .friend-phone-wechat-feed-container,
html[data-appearance="dark"] .friend-phone-wechat-detail-page,
html[data-appearance="dark"] .friend-phone-wechat-wallet-bill-list,
html[data-appearance="dark"] .friend-phone-wechat-bill-summary-card,
html[data-appearance="dark"] .friend-phone-wechat-favorite-tabs button,
html[data-appearance="dark"] .friend-phone-wechat-contact-card,
html[data-appearance="dark"] .friend-phone-wechat-contact-msg-bubble,
html[data-appearance="dark"] .friend-phone-wechat-auto-chat-panel {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-appearance="dark"] .friend-phone-wechat-auto-chat-row {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-appearance="dark"] .friend-phone-wechat-auto-chat-lead,
html[data-appearance="dark"] .friend-phone-wechat-auto-chat-interval,
html[data-appearance="dark"] .friend-phone-wechat-auto-chat-peer-detail {
    color: #94a3b8;
}

html[data-appearance="dark"] .friend-phone-wechat-auto-chat-title,
html[data-appearance="dark"] .friend-phone-wechat-auto-chat-check,
html[data-appearance="dark"] .friend-phone-wechat-auto-chat-peer-main {
    color: #f1f5f9;
}

html[data-appearance="dark"] .friend-phone-wechat-game-handbook-game,
html[data-appearance="dark"] .friend-phone-wechat-game-handbook-note,
html[data-appearance="dark"] .friend-phone-wechat-game-handbook-detail h3,
html[data-appearance="dark"] .friend-phone-wechat-game-handbook-detail-content {
    color: #f1f5f9;
}

html[data-appearance="dark"] .friend-phone-wechat-auto-chat-avatar {
    background: rgba(7, 193, 96, 0.16);
    color: #86efac;
}

html[data-appearance="dark"] .friend-phone-wechat-auto-chat-avatar.has-photo {
    color: transparent;
}

html[data-appearance="dark"] .friend-phone-wechat-favorite-item.pending-delete {
    background: rgba(127, 29, 29, 0.26);
    border-color: rgba(248, 113, 113, 0.42);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

html[data-appearance="dark"] .friend-phone-wechat-favorite-confirm {
    background: rgba(2, 6, 23, 0.48);
}

html[data-appearance="dark"] .friend-phone-wechat-favorite-confirm-dialog,
html[data-appearance="dark"] .friend-phone-wechat-favorite-confirm-actions button {
    background: #1f2937;
    color: #e5e7eb;
}

html[data-appearance="dark"] .friend-phone-wechat-favorite-confirm-dialog,
html[data-appearance="dark"] .friend-phone-wechat-favorite-confirm-actions,
html[data-appearance="dark"] .friend-phone-wechat-favorite-confirm-actions button + button {
    border-color: rgba(255, 255, 255, 0.1);
}

html[data-appearance="dark"] .friend-phone-wechat-favorite-confirm-text {
    color: #f9fafb;
}

html[data-appearance="dark"] .friend-phone-wechat-favorite-confirm-actions button:active {
    background: #111827;
}

html[data-appearance="dark"] .phone-wx-action-menu,
html[data-appearance="dark"] .phone-wx-multiselect-bar,
html[data-appearance="dark"] .phone-wx-quote-frame {
    background: rgba(31, 41, 55, 0.94);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

html[data-appearance="dark"] .phone-wx-action-item,
html[data-appearance="dark"] .phone-wx-multiselect-info,
html[data-appearance="dark"] .phone-wx-quote-frame {
    color: #e5e7eb;
}

html[data-appearance="dark"] .phone-wx-action-item:active,
html[data-appearance="dark"] .phone-wx-quote-close {
    background: rgba(255, 255, 255, 0.1);
}

html[data-appearance="dark"] .phone-wx-multiselect-btn,
html[data-appearance="dark"] .phone-wx-selector {
    background: #111827;
    color: #e5e7eb;
}

html[data-appearance="dark"] .friend-phone-wechat-auto-chat-interval input[type='number'] {
    background: #111827;
    border-color: rgba(255, 255, 255, 0.14);
    color: #e5e7eb;
}

html[data-appearance="dark"] .friend-phone-wechat-body--add-contact .form-input {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
}

html[data-appearance="dark"] .friend-phone-wechat-body--add-contact .form-input:focus {
    border-color: rgba(7, 193, 96, 0.55);
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.12);
}

html[data-appearance="dark"] .friend-phone-wechat-char-role-label {
    color: #e5e7eb;
}

html[data-appearance="dark"] .friend-phone-wechat-char-role-expand {
    background: rgba(31, 41, 55, 0.96);
    border-color: rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

html[data-appearance="dark"] .friend-phone-wechat-char-role-expand:active {
    background: #111827;
}

html[data-appearance="dark"] .friend-phone-wechat-body--add-contact .avatar-placeholder {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-appearance="dark"] .friend-phone-wechat-body--add-contact .avatar-plus {
    color: rgba(255, 255, 255, 0.35);
}

html[data-appearance="dark"] .friend-phone-wechat-body--add-contact .add-friend-footer {
    background: rgba(17, 24, 39, 0.94);
    border-top-color: rgba(255, 255, 255, 0.08);
}

html[data-appearance="dark"] .friend-phone-wechat-body--add-contact .btn-cancel {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
}

html[data-appearance="dark"] .friend-phone-wechat-char-entry-footnote,
html[data-appearance="dark"] .friend-phone-wechat-mutual-lead {
    color: #94a3b8;
}

html[data-appearance="dark"] .friend-phone-wechat-mutual-list {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-appearance="dark"] .friend-phone-wechat-mutual-row {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #f9fafb;
}

html[data-appearance="dark"] .friend-phone-wechat-mutual-avatar {
    background: #273244;
    color: #cbd5e1;
}

html[data-appearance="dark"] .friend-phone-wechat-mutual-badge {
    background: rgba(7, 193, 96, 0.2);
    color: #61d996;
}

html[data-appearance="dark"] .friend-phone-wechat-row {
    background: #1f2937;
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

html[data-appearance="dark"] .friend-phone-wechat-row:active {
    background: #273244;
}

html[data-appearance="dark"] .friend-phone-wechat-section-title--toggle {
    color: #cbd5e1;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-diary-chevron {
    color: #94a3b8;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-month-trigger {
    color: #cbd5e1;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-notes-entry {
    background: rgba(31, 41, 55, 0.85);
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-notes-entry:hover {
    color: #f9fafb;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-travel-entry {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2) 0%, rgba(123, 44, 191, 0.2) 100%);
    border-color: rgba(157, 78, 221, 0.3);
    color: #c084fc;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-travel-entry:hover {
    color: #e9d5ff;
    border-color: #9d4edd;
}

html[data-appearance="dark"] .friend-phone-wechat-travel-month-nav {
    background: rgba(31, 41, 55, 0.6);
}

html[data-appearance="dark"] .friend-phone-wechat-travel-month-label {
    color: #e5e7eb;
}

html[data-appearance="dark"] .friend-phone-wechat-travel-month-btn {
    background: rgba(55, 65, 81, 0.8);
    color: #9ca3af;
}

html[data-appearance="dark"] .friend-phone-wechat-travel-month-btn:hover {
    background: rgba(75, 85, 99, 1);
}

html[data-appearance="dark"] .friend-phone-wechat-travel-calendar-card {
    background: linear-gradient(135deg, #2d2438 0%, #3a2f47 100%);
    border-color: rgba(157, 78, 221, 0.3);
}

html[data-appearance="dark"] .friend-phone-wechat-travel-calendar-cell {
    background: rgba(55, 65, 81, 0.4);
    color: #6b7280;
}

html[data-appearance="dark"] .friend-phone-wechat-travel-calendar-hint {
    color: #9ca3af;
}

html[data-appearance="dark"] .friend-phone-wechat-travel-diary-page {
    background: linear-gradient(to bottom, #1f2937 0%, #111827 100%);
}

html[data-appearance="dark"] .friend-phone-wechat-travel-diary-header {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-appearance="dark"] .friend-phone-wechat-travel-diary-date {
    color: #e5e7eb;
}

html[data-appearance="dark"] .friend-phone-wechat-travel-diary-refresh {
    background: rgba(55, 65, 81, 0.6);
}

html[data-appearance="dark"] .friend-phone-wechat-travel-diary-refresh svg {
    stroke: #d1d5db;
}

html[data-appearance="dark"] .friend-phone-wechat-travel-diary-body::before {
    background-image: repeating-linear-gradient(
        transparent,
        transparent 31px,
        rgba(255, 255, 255, 0.05) 31px,
        rgba(255, 255, 255, 0.05) 32px
    );
}

html[data-appearance="dark"] .friend-phone-wechat-travel-diary-loading {
    color: #9ca3af;
}

html[data-appearance="dark"] .friend-phone-wechat-travel-diary-content {
    color: #d1d5db;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-month-picker-year-bar,
html[data-appearance="dark"] .friend-phone-wechat-memory-month-picker-grid,
html[data-appearance="dark"] .friend-phone-wechat-memory-note-empty {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.08);
    color: #e5e7eb;
}

html[data-appearance="dark"] #phone-app-action-btn.friend-phone-memory-notes-header-add-btn {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #f8fafc;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.42);
}

html[data-appearance="dark"] #phone-app-action-btn.friend-phone-memory-travel-header-btn {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
    color: #faf5ff;
    box-shadow: 0 6px 18px rgba(126, 34, 206, 0.38);
}

html[data-appearance="dark"] .friend-phone-wechat-memory-month-picker-year-text {
    color: #f9fafb;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-month-picker-tip {
    color: #94a3b8;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-month-cell {
    background: #273244;
    color: #cbd5e1;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-month-picker-jump {
    background: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-month-picker-year-btn {
    background: #273244;
    color: #cbd5e1;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-note-editor {
    background: #1f2937;
    color: #f9fafb;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-note-editor-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-appearance="dark"] .friend-phone-wechat-memory-note-editor-title {
    color: #f9fafb;
}

html[data-appearance="dark"] .friend-phone-wechat-memory-note-editor-textarea,
html[data-appearance="dark"] .friend-phone-wechat-memory-note-editor-input {
    background: #273244;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f9fafb;
}

/* 暗色下便签卡的字色仍以浅卡背景为前提，保留深色字以确保可读 */
html[data-appearance="dark"] .friend-phone-wechat-memory-note {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

html[data-appearance="dark"] .friend-phone-wechat-me-name,
html[data-appearance="dark"] .friend-phone-wechat-memory-name,
html[data-appearance="dark"] .friend-phone-wechat-diary-title,
html[data-appearance="dark"] .friend-phone-wechat-favorite-body,
html[data-appearance="dark"] .friend-phone-wechat-diary-content,
html[data-appearance="dark"] .friend-phone-wechat-role-text,
html[data-appearance="dark"] .friend-phone-wechat-wallet-section-head,
html[data-appearance="dark"] .friend-phone-wechat-wallet-bill-title,
html[data-appearance="dark"] .friend-phone-wechat-bill-summary-title,
html[data-appearance="dark"] .friend-phone-wechat-bill-summary-grid strong,
html[data-appearance="dark"] .friend-phone-wechat-contact-card-name,
html[data-appearance="dark"] .friend-phone-wechat-contact-msg-bubble {
    color: #f9fafb;
}

html[data-appearance="dark"] .friend-phone-wechat-wallet-bill {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-appearance="dark"] .friend-phone-wechat-wallet-bill.pending-delete {
    background: rgba(127, 29, 29, 0.28);
    box-shadow: inset 3px 0 0 rgba(248, 113, 113, 0.74);
}

html[data-appearance="dark"] .friend-phone-wechat-favorite-tabs button.active {
    background: rgba(7, 193, 96, 0.16);
    color: #61d996;
}

html[data-appearance="dark"] .friend-phone-wechat-contact-msg.is-self .friend-phone-wechat-contact-msg-bubble {
    background: #238636;
}

/* ===== Char 手机微信 · 共同好友资料页面 ===== */
.friend-phone-char-common-profile {
    padding: 0;
    background: #ededed;
    min-height: 100%;
}

.friend-phone-char-profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 32px 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.friend-phone-char-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.friend-phone-char-profile-name-wrap {
    flex: 1;
    min-width: 0;
}

.friend-phone-char-profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.friend-phone-char-profile-trip-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.friend-phone-char-profile-info {
    background: #ffffff;
    margin: 12px 12px 0;
    border-radius: 12px;
    overflow: hidden;
}

.friend-phone-char-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.friend-phone-char-profile-row:last-child {
    border-bottom: none;
}

.friend-phone-char-profile-row--readonly {
    opacity: 0.7;
}

.friend-phone-char-profile-label {
    font-size: 15px;
    color: #333333;
    font-weight: 500;
}

.friend-phone-char-profile-value {
    font-size: 15px;
    color: #666666;
    text-align: right;
    max-width: 60%;
    word-break: break-word;
}

/* 暗色模式适配 */
html[data-appearance="dark"] .friend-phone-char-common-profile {
    background: #1a1a1a;
}

html[data-appearance="dark"] .friend-phone-char-profile-info {
    background: #2a2a2a;
}

html[data-appearance="dark"] .friend-phone-char-profile-row {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

html[data-appearance="dark"] .friend-phone-char-profile-label {
    color: #e5e5e5;
}

html[data-appearance="dark"] .friend-phone-char-profile-value {
    color: #999999;
}

/* ===== iOS 系统优化：确保返回按钮在所有情况下可见 ===== */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari 特定优化 */
    .phone-app-back {
        /* 增强背景不透明度，确保在iOS上可见 */
        background: rgba(255,255,255,0.75) !important;
        /* 增强边框可见度 */
        border: 1px solid rgba(35, 50, 74, 0.15) !important;
        /* 确保文字颜色足够深 */
        color: #1a2332 !important;
        /* 强制硬件加速 */
        transform: translateZ(0);
        will-change: transform;
        /* 确保层级最高 */
        z-index: 999 !important;
    }

    /* 暗色模式下的iOS优化 */
    html[data-appearance="dark"] #phone-page .phone-app-back {
        background: rgba(40, 40, 45, 0.85) !important;
        border: 1px solid rgba(255, 255, 255, 0.25) !important;
        color: rgba(245, 245, 250, 1) !important;
    }

    /* 记忆空间页面的返回按钮iOS优化 */
    #phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory) .phone-app-back,
    #phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory-notes) .phone-app-back {
        z-index: 999 !important;
        background: rgba(255,255,255,0.85) !important;
    }

    html[data-appearance="dark"] #phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory) .phone-app-back,
    html[data-appearance="dark"] #phone-page .phone-app-panel:has(#phone-app-content .friend-phone-wechat-body--memory-notes) .phone-app-back {
        background: rgba(40, 40, 45, 0.9) !important;
    }
}
