/* --- Peek (偷看) 功能样式 --- */

/* Peek Screen General */
#peek-screen .time-widget,
#peek-screen .time-widget .date,
#peek-screen .app-icon .app-name {
    color: var(--white-color);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

#peek-screen .time-widget {
    text-align: center;
    margin-bottom: 40px;
}

#peek-screen .time-widget .time {
    font-size: 72px;
    font-weight: 200;
    letter-spacing: 2px;
    line-height: 1;
}

#peek-screen .time-widget .date {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 8px;
}

#peek-screen .app-grid {
    margin-top: 20px;
}

/* Peek Unlock Screen (Social Media) */
#peek-unlock-screen {
    background-color: #fff;
    color: #262626;
}

#peek-unlock-screen .app-header .title,
#peek-unlock-screen .app-header .back-btn,
#peek-unlock-screen .app-header .action-btn {
    color: #262626;
}

#peek-unlock-screen .content {
    padding: 0;
}

.unlock-profile-header {
    display: flex;
    align-items: center;
    padding: 16px;
}

.unlock-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-right: 28px;
    object-fit: cover;
}

.unlock-profile-info {
    flex-grow: 1;
}

.unlock-profile-username {
    font-size: 22px;
    font-weight: 300;
    margin: 0 0 4px 0;
}

.unlock-profile-handle {
    font-size: 14px;
    color: #8e8e8e;
    margin: 0;
}

.unlock-profile-bio {
    padding: 0 16px 16px;
    font-size: 14px;
    line-height: 1.4;
}

.unlock-profile-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 12px 0;
    border-top: 1px solid #efefef;
    border-bottom: 1px solid #efefef;
}

.unlock-profile-stat {
    font-size: 14px;
}

.unlock-profile-stat .count {
    font-weight: 600;
    display: block;
}

.unlock-profile-stat .label {
    color: #8e8e8e;
}

.unlock-post-feed {
    padding: 0;
    background-color: #f9f9f9;
}

.unlock-post-card {
    background-color: #fff;
    border-bottom: 1px solid #efefef;
    padding: 16px;
}

.unlock-post-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.unlock-post-card-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
}

.unlock-post-card-author-info {
    display: flex;
    flex-direction: column;
}

.unlock-post-card-author-info .username {
    font-weight: 600;
    font-size: 15px;
}

.unlock-post-card-author-info .timestamp {
    font-size: 12px;
    color: #8e8e8e;
}

.unlock-post-card-content {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.unlock-post-card-actions {
    display: flex;
    justify-content: space-around;
    color: #8e8e8e;
    font-size: 13px;
    padding-top: 12px;
    border-top: 1px solid #f5f5f5;
}

.unlock-post-card-actions .action {
    display: flex;
    align-items: center;
    gap: 6px;
}

.unlock-post-card-actions .action svg {
    width: 20px;
    height: 20px;
    fill: #8e8e8e;
}

.unlock-post-card[data-has-comments="true"] {
    cursor: pointer;
}

.unlock-comments-section {
    border-top: 1px solid #eee;
    padding-top: 12px;
}

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

.unlock-comment-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.unlock-comment-item:last-child {
    border-bottom: none;
}

.unlock-comment-author {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.unlock-comment-content {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}

.unlock-comment-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
}

.unlock-comment-item-reply {
    margin-left: 8px;
    padding-left: 12px;
    border-left: 3px solid #c8e6f5;
    background: rgba(200, 230, 245, 0.2);
    border-radius: 0 8px 8px 0;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-right: 10px;
}

.unlock-comment-reply-to {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

/* Peek Album Styles */
.album-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 2px;
}

.album-photo {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    background-color: #e9ecef;
    cursor: pointer;
}

.album-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-indicator svg {
    width: 14px;
    height: 14px;
    fill: white;
    margin-left: 2px;
}

#peek-photo-modal .modal-window {
    width: 90%;
    max-width: 420px;
    padding: 15px;
    background-color: #fff;
    border-radius: 15px;
}

#peek-photo-image-container {
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
}

#peek-photo-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

#peek-photo-description {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    text-align: left;
    white-space: pre-wrap;
    padding: 0 5px 5px 5px;
    border-top: 1px solid #eee;
    margin-top: 15px;
    padding-top: 15px;
}

/* Peek Messages Screen */
#peek-messages-screen .list-item:hover,
#peek-conversation-screen {
    background-color: #f8f9fa;
}

#peek-messages-screen .app-header,
#peek-conversation-screen .app-header {
    background-color: rgba(248, 249, 250, 0.85);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

#peek-messages-screen .back-btn,
#peek-conversation-screen .back-btn,
#peek-messages-screen .title,
#peek-conversation-screen .title {
    color: #212529;
}

#peek-messages-screen .chat-avatar {
    border-radius: 12px;
}

#peek-messages-screen .app-header .action-btn,
#peek-conversation-screen .app-header .action-btn,
#peek-cart-screen .app-header .action-btn,
#peek-transfer-station-screen .app-header .action-btn,
#peek-browser-screen .app-header .action-btn,
#peek-drafts-screen .app-header .action-btn {
    color: #212529;
}

#peek-conversation-screen .message-bubble {
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#peek-conversation-screen .message-bubble.received {
    background-color: #e9ecef;
    color: #343a40;
}

#peek-conversation-screen .message-bubble.sent {
    background-color: #007bff;
    color: white;
}

/* Peek Memos Screen */
#peek-memos-screen {
    background-color: #f9f9f9;
}

#peek-memos-screen .app-header .title,
#peek-memos-screen .app-header .back-btn,
#peek-memos-screen .app-header .action-btn {
    color: #212529;
}

#peek-memos-screen .content {
    padding: 0;
}

#peek-memos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.memo-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.memo-item:hover {
    background-color: #f0f0f0;
}

.memo-item-title {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.memo-item-preview {
    font-size: 14px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Peek Memo Detail Screen */
#peek-memo-detail-screen {
    background-color: #fff;
}

#peek-memo-detail-screen .app-header .title,
#peek-memo-detail-screen .app-header .back-btn,
#peek-memo-detail-screen .app-header .action-btn {
    color: #212529;
}

#peek-memo-detail-screen .content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

#memo-title-input {
    border: none;
    padding: 20px;
    font-size: 22px;
    font-weight: bold;
    outline: none;
    border-bottom: 1px solid #eee;
}

#memo-content-textarea {
    flex-grow: 1;
    border: none;
    padding: 20px;
    font-size: 16px;
    line-height: 1.6;
    outline: none;
    resize: none;
    font-family: var(--font-family);
}

/* Peek Cart Screen */
#peek-cart-screen {
    background-color: #f8f9fa;
}

#peek-cart-screen .app-header .title,
#peek-cart-screen .app-header .back-btn {
    color: #212529;
}

#peek-cart-screen .content {
    padding: 0;
}

.cart-item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    margin-right: 15px;
    background-color: #eee;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin: 0 0 5px 0;
}

.cart-item-spec {
    font-size: 13px;
    color: #888;
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: bold;
    color: #e53935;
}

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    padding-bottom: 15px;
    background-color: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.cart-total-price {
    font-size: 18px;
    font-weight: bold;
    color: #e53935;
}

.cart-total-price .label {
    font-size: 14px;
    font-weight: normal;
    color: #333;
}

.checkout-btn {
    background-color: #e53935;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

/* Peek Transfer Station Screen */
#peek-transfer-station-screen {
    background-color: #ededed;
}

#peek-transfer-station-screen .app-header {
    background-color: #ededed;
    border-bottom: 1px solid #dcdcdc;
}

#peek-transfer-station-screen .app-header .title,
#peek-transfer-station-screen .app-header .back-btn {
    color: #000;
}

#peek-transfer-station-screen .content {
    display: flex;
    flex-direction: column;
    padding: 0;
}

#peek-transfer-station-screen .message-wrapper {
    display: block !important;
    text-align: right !important;
    margin-bottom: 12px !important;
    height: auto !important;
    flex: none !important;
}

#peek-transfer-station-screen .message-bubble-row {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    flex: none !important;
}

#peek-transfer-station-screen .message-bubble {
    display: inline-block !important;
    width: auto !important;
    max-width: 75% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 10px 14px !important;
    margin: 0 8px !important;
    line-height: 1.5 !important;
    flex: none !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.transfer-station-messages {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.transfer-station-input-area {
    flex-shrink: 0;
    padding: 8px;
    background-color: #f7f7f7;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.transfer-station-input-area .fake-input {
    flex-grow: 1;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    height: 36px;
}

.transfer-station-input-area .plus-btn {
    width: 36px;
    height: 36px;
    margin-left: 8px;
    background-image: url('https://i.postimg.cc/8PLqF514/icons8-48.png');
    background-size: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f7f7f7;
    border: none;
}

/* Peek Browser Screen */
#peek-browser-screen {
    background-color: #ffffff;
}

#peek-browser-screen .app-header .title,
#peek-browser-screen .app-header .back-btn {
    color: #212529;
}

#peek-browser-screen .content {
    padding: 15px 0;
}

.browser-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.browser-history-item {
    padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.browser-history-item:last-child {
    border-bottom: none;
}

.history-item-title {
    font-weight: 500;
    font-size: 16px;
    color: #0056b3;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-url {
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-annotation {
    font-size: 14px;
    color: #444;
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 8px;
    line-height: 1.5;
    position: relative;
}

.history-item-annotation::before {
    content: '批注：';
    font-weight: 600;
    color: #888;
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}

.browser-history-item.has-detail {
    cursor: pointer;
}

.browser-history-item.has-detail::after {
    content: '›';
    float: right;
    color: #ccc;
    font-size: 20px;
    margin-top: -20px;
}

/* Peek Browser Detail Screen */
#peek-browser-detail-screen {
    background-color: #ffffff;
}

#peek-browser-detail-screen .app-header .title,
#peek-browser-detail-screen .app-header .back-btn {
    color: #212529;
}

#peek-browser-detail-screen .app-header {
    flex-wrap: wrap;
    padding-bottom: 8px;
}

#peek-browser-detail-screen .app-header .back-btn {
    margin-right: auto;
}

#peek-browser-detail-screen .app-header .title-container {
    position: static;
    transform: none;
    width: 100%;
    order: 1;
    align-items: center;
    text-align: center;
}

#peek-browser-detail-screen .app-header .title {
    font-size: calc(15px * var(--app-font-scale, 1));
    font-weight: 500;
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

#peek-browser-detail-screen .content {
    padding: 20px;
    overflow-y: auto;
}

.browser-detail-url {
    font-size: 13px;
    color: #888;
    margin-bottom: 16px;
    word-break: break-all;
}

.browser-detail-body {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.browser-detail-annotation {
    font-size: 14px;
    color: #444;
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 8px;
    line-height: 1.5;
}

.browser-detail-annotation::before {
    content: '批注：';
    font-weight: 600;
    color: #888;
    font-size: 12px;
    display: block;
    margin-bottom: 4px;
}

/* Peek Drafts Screen */
#peek-drafts-screen {
    background-color: #fff;
    flex-direction: column;
}

#peek-drafts-screen .app-header .title,
#peek-drafts-screen .app-header .back-btn {
    color: #212529;
}

#peek-drafts-screen .content {
    padding: 30px 25px;
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #333;
    flex-grow: 1;
    overflow-y: auto;
}

.draft-paper {
    background-color: #fdfdfd;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.draft-to {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.draft-content {
    font-size: 17px;
    white-space: pre-wrap;
}

.strikethrough {
    text-decoration: line-through;
    color: #999;
}

/* INS Style Widget */
.ins-widget {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 10px;
    gap: 5px;
    box-sizing: border-box;
}

.ins-widget-row {
    display: flex;
    width: 100%;
    align-items: center;
}

.ins-widget-row.user {
    justify-content: flex-start;
}

.ins-widget-row.character {
    justify-content: flex-end;
}

.ins-widget-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.ins-widget-bubble {
    position: relative;
    background-color: #fff;
    border-radius: 15px;
    padding: 6px 10px;
    font-size: 12px;
    color: #333;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
    max-width: 70%;
}

.ins-widget-row.user .ins-widget-bubble {
    margin-left: 12px;
}

.ins-widget-row.character .ins-widget-bubble {
    margin-right: 12px;
}

.ins-widget-bubble::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.ins-widget-row.user .ins-widget-bubble::after {
    top: 50%;
    left: -5.5px;
    margin-top: -4px;
    border-width: 4px 6px 4px 0;
    border-color: transparent #fff transparent transparent;
}

.ins-widget-row.character .ins-widget-bubble::after {
    top: 50%;
    right: -5.5px;
    margin-top: -6px;
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #fff;
}

.ins-widget-divider {
    width: 90%;
    text-align: center;
    border-bottom: 1.5px dashed #d3d3d3;
    line-height: 0.1em;
    margin: 12px 0;
}

.ins-widget-divider span {
    background: transparent;
    padding: 0 10px;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: bold;
}

/* === 时光想说 - 便签墙样式 === */
#peek-time-thoughts-screen {
    background: #ffffff;
    overflow-y: auto;
}

#peek-time-thoughts-screen .app-header {
    background: #fff;
}

#peek-time-thoughts-screen .app-header .title,
#peek-time-thoughts-screen .app-header .back-btn,
#peek-time-thoughts-screen .app-header .action-btn {
    color: #333;
}

.time-thoughts-container {
    padding: 16px 12px;
    min-height: calc(100vh - 60px);
    position: relative;
}

.time-thoughts-wall {
    position: relative;
    width: 100%;
    min-height: 200px;
    padding: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
    align-items: flex-start;
}

/* 正方形便签，不要太大 */
.time-thought-note {
    position: relative;
    width: calc(50% - 6px);
    max-width: 140px;
    aspect-ratio: 1;
    background: #feffcc;
    border-radius: 3px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    flex-shrink: 0;
}

.time-thought-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 0 0 2px 2px;
    z-index: 1;
}

.time-thought-note:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.time-thought-note:nth-child(6n+1) {
    transform: rotate(-2deg);
    background: #feffcc;
}

.time-thought-note:nth-child(6n+2) {
    transform: rotate(1.5deg);
    background: #ffe4e1;
}

.time-thought-note:nth-child(6n+3) {
    transform: rotate(-1deg);
    background: #e0f7fa;
}

.time-thought-note:nth-child(6n+4) {
    transform: rotate(2deg);
    background: #f3e5f5;
}

.time-thought-note:nth-child(6n+5) {
    transform: rotate(-1.5deg);
    background: #fff9c4;
}

.time-thought-note:nth-child(6n) {
    transform: rotate(1deg);
    background: #ffe0b2;
}

.time-thought-note:hover {
    transform: rotate(0deg) translateY(-4px) scale(1.03) !important;
}

.time-thought-note-inner {
    position: absolute;
    inset: 0;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.note-age-tag {
    display: inline-block;
    background: rgba(0, 0, 0, 0.08);
    color: #666;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 8px;
    margin-bottom: 6px;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.note-title {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-shrink: 0;
}

.note-preview {
    font-size: 11px;
    color: #555;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.note-emotion-tag {
    display: inline-block;
    font-size: 10px;
    color: #999;
    font-style: italic;
    margin-top: 4px;
    flex-shrink: 0;
}

/* 便签详情弹窗 */
.time-thought-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.time-thought-detail-modal.visible {
    display: flex;
}

.detail-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.detail-modal-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    flex: 1;
}

.detail-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.detail-modal-close:hover {
    background: #e0e0e0;
    color: #333;
}

.detail-modal-body {
    padding: 20px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section-title {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.detail-section-content {
    font-size: 15px;
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.detail-age-info {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.detail-age-badge {
    background: #5a5a5a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.placeholder-text-thoughts {
    text-align: center;
    color: #666;
    font-size: 15px;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 12px;
}

/* --- Peek Wallet (钱包) 样式 --- */
#peek-wallet-screen {
    background: linear-gradient(180deg, #fff5f8 0%, #fafafa 100%);
    color: #333;
}

#peek-wallet-screen .app-header .title,
#peek-wallet-screen .app-header .back-btn,
#peek-wallet-screen .app-header .action-btn {
    color: #333;
}

#peek-wallet-screen .wallet-header-icon {
    display: block;
    flex-shrink: 0;
}

#peek-wallet-screen .wallet-content {
    padding: 16px;
    padding-bottom: 24px;
}

.wallet-summary-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.wallet-summary-card {
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.95) 0%, rgba(255, 250, 252, 0.98) 100%);
    border: 1px solid rgba(255, 182, 193, 0.35);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.wallet-summary-card.balance {
    background: linear-gradient(135deg, rgba(255, 228, 235, 0.95) 0%, rgba(255, 240, 245, 0.98) 100%);
    border-color: rgba(255, 182, 193, 0.5);
}

.wallet-summary-label {
    font-size: 12px;
    color: #b76e79;
    margin-bottom: 4px;
}

.wallet-summary-value {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

.wallet-summary-value.income {
    color: #2e7d5e;
}

.wallet-summary-value.expense {
    color: #c62828;
}

.wallet-tabs {
    display: flex;
    padding: 0 4px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.wallet-tab {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-tab.active {
    color: #e91e63;
    border-bottom-color: #e91e63;
    font-weight: 500;
}

.wallet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wallet-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f5f5f5;
}

.wallet-list-item .left {
    flex: 1;
    min-width: 0;
}

.wallet-list-item .remark {
    font-size: 15px;
    color: #333;
    margin-bottom: 2px;
}

.wallet-list-item .meta {
    font-size: 12px;
    color: #999;
}

.wallet-list-item .amount {
    font-size: 16px;
    font-weight: 600;
    margin-left: 12px;
}

.wallet-list-item .amount.income {
    color: #2e7d5e;
}

.wallet-list-item .amount.expense {
    color: #c62828;
}

.wallet-empty-hint {
    text-align: center;
    color: #999;
    font-size: 14px;
    padding: 30px 20px;
}

/* ---------- 钱包 INS 风黑白简约样式（仅 UI，内容不变） ---------- */
#peek-wallet-screen[data-wallet-theme="ins"] .app-header .title,
#peek-wallet-screen[data-wallet-theme="ins"] .app-header .back-btn,
#peek-wallet-screen[data-wallet-theme="ins"] .app-header .action-btn {
    color: #111;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-content {
    padding: 24px 20px 32px;
    background: #fff;
    min-height: calc(100vh - 56px);
}

/* INS：重新排版 - 顶部大余额 + 单行收支摘要 */
#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-cards {
    flex-direction: column;
    gap: 0;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e5e5e5;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 12px 0;
    box-shadow: none;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card.balance {
    background: transparent;
    border: none;
    order: -1;
    padding: 0 0 20px;
    margin-bottom: 8px;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card.balance .wallet-summary-label {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card.balance .wallet-summary-value {
    font-size: 36px;
    font-weight: 300;
    color: #111;
    letter-spacing: -0.02em;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card:not(.balance) {
    display: inline-block;
    width: auto;
    padding: 0 16px 0 0;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-cards {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card:not(.balance) .wallet-summary-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card:not(.balance) .wallet-summary-value {
    font-size: 16px;
    font-weight: 500;
    color: #111;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card:not(.balance) .wallet-summary-value.income {
    color: #111;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card:not(.balance) .wallet-summary-value.expense {
    color: #111;
}

/* INS：收入/支出两栏并排放在余额下方一行 */
#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-cards {
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card.balance {
    width: 100%;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card:nth-child(2),
#peek-wallet-screen[data-wallet-theme="ins"] .wallet-summary-card:nth-child(3) {
    flex: 1;
    min-width: 0;
}

/* INS：Tab 简约 */
#peek-wallet-screen[data-wallet-theme="ins"] .wallet-tabs {
    padding: 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e5e5;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-tab {
    padding: 14px 0;
    color: #999;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-tab.active {
    color: #111;
    border-bottom-color: #111;
    font-weight: 500;
}

/* INS：列表无卡片，仅底部分割线 */
#peek-wallet-screen[data-wallet-theme="ins"] .wallet-list {
    margin-top: 0;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-list-item {
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 18px 0;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-list-item .remark {
    font-size: 15px;
    color: #111;
    font-weight: 400;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-list-item .meta {
    font-size: 11px;
    color: #999;
    letter-spacing: 0.02em;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-list-item .amount {
    font-size: 15px;
    font-weight: 500;
    color: #111;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-list-item .amount.income {
    color: #111;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-list-item .amount.expense {
    color: #333;
}

#peek-wallet-screen[data-wallet-theme="ins"] .wallet-empty-hint {
    color: #999;
    font-size: 13px;
    padding: 40px 20px;
}

/* 代发消息（冒充）输入栏 */
#peek-conversation-screen .peek-impersonate-bar {
    padding: 10px 12px;
    background: var(--panel-bg, #f8f8f8);
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.peek-impersonate-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.peek-impersonate-input-row input {
    flex: 1 1 70%;
    min-width: 0;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}
.peek-impersonate-input-row input:focus {
    border-color: var(--primary-color, #5b8ef4);
}
.peek-impersonate-input-row .btn {
    flex: 0 0 30%;
    padding: 8px 12px;
    white-space: nowrap;
}
.peek-impersonate-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.peek-impersonate-actions .btn-small {
    padding: 6px 12px;
    font-size: 12px;
}
#peek-conversation-screen .content {
    display: flex;
    flex-direction: column;
    padding: 0;
}
#peek-conversation-screen .message-area {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px 8px;
}
