/* ===== Chat Screen ===== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ===== 聊天 Header ===== */
.chat-header {
    background: linear-gradient(135deg, rgba(216,180,254,0.65) 0%, rgba(249,168,212,0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 16px;
    padding-top: calc(16px + env(safe-area-inset-top));
    border-bottom: 1px solid rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 0;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chat-back-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.55);
    font-size: 20px;
    color: #5a2d82;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: all 0.15s;
}
.chat-back-btn:active { transform: scale(0.92); }

.ghost-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    position: relative;
    overflow: visible;
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.8);
    cursor: pointer;
}

.ghost-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.online-indicator {
    width: 11px;
    height: 11px;
    background: #4ade80;
    border-radius: 50%;
    position: absolute;
    bottom: 1px;
    right: 1px;
    border: 2px solid #e8d5f5;
    z-index: 10;
}

.chat-header-center {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.chat-header-center h3 {
    font-size: 15px;
    font-weight: 700;
    color: #3d1f66;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    line-height: 1.2;
}

.chat-header-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(90,45,130,0.6);
    white-space: nowrap;
}

.chat-header-dot { opacity: 0.35; }

.chat-header-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.call-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.6);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.call-btn:active { transform: scale(0.92); }

/* ===== 思想气泡按钮 ===== */
.thought-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 1px solid rgba(255,255,255,0.6);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
}
.thought-btn:active { transform: scale(0.92); }

/* ===== 思想气泡弹出 ===== */
.thought-bubble {
    display: none;
    position: fixed;
    top: calc(72px + env(safe-area-inset-top));
    right: 16px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200,160,240,0.4);
    border-radius: 16px 4px 16px 16px;
    padding: 10px 14px;
    font-size: 13px;
    color: #5a3a7a;
    box-shadow: 0 4px 20px rgba(180,120,220,0.25);
    z-index: 50;
    max-width: 160px;
    text-align: center;
    animation: bubblePop 0.2s ease;
}
.thought-bubble::after {
    content: '';
    position: absolute;
    top: 10px;
    right: -6px;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.95);
    border-right: 1px solid rgba(200,160,240,0.4);
    border-top: 1px solid rgba(200,160,240,0.4);
    transform: rotate(45deg);
}
.thought-bubble.show { display: block; }

@keyframes bubblePop {
    from { opacity: 0; transform: scale(0.85) translateY(-5px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== 消息区域 ===== */
.messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(245, 235, 255, 0.3);
}

.message {
    display: flex;
    gap: 10px;
    animation: slideIn 0.3s ease;
    align-items: flex-end;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 70%;
}

.message.user .message-content {
    align-items: flex-end;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 78vw;
    line-height: 1.4;
    font-size: 13px;
    white-space: pre-line;
}

.message.user .message-bubble {
    background: linear-gradient(135deg, rgba(192,132,252,0.75), rgba(244,114,182,0.7));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border-bottom-right-radius: 5px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 15px rgba(192,132,252,0.25);
}

.message.bot .message-bubble {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #5a3a7a;
    border-bottom-left-radius: 5px;
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 4px 15px rgba(180,120,200,0.12);
}

.bubble-en {
    font-size: 13px;
    line-height: 1.5;
    color: inherit;
}

.message.bot .bubble-zh {
    font-size: 11px;
    color: rgba(90,58,122,0.5);
    margin-top: 3px;
    line-height: 1.4;
}

.message.user .bubble-zh {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 3px;
    line-height: 1.4;
}

.message-time {
    font-size: 10px;
    color: rgba(130,80,170,0.45);
    padding: 0 4px;
}

.message-status {
    font-size: 10px;
    color: rgba(130,80,170,0.45);
    padding: 0 4px;
}

/* ===== 打字中动画 ===== */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.85);
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: typing 1.4s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.5; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-10px); }
}

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

/* ===== 时间分割线 ===== */
.time-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    padding: 0 4px;
}

.time-divider::before,
.time-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.2), transparent);
}

.time-divider span {
    font-size: 11px;
    color: rgba(130,80,170,0.6);
    white-space: nowrap;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(200,160,240,0.3);
}

/* ===== 输入框 ===== */
.input-area {
    background: rgba(255,255,255,0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.12);
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-field {
    flex: 1;
    border: 1px solid rgba(200,160,240,0.5);
    border-radius: 25px;
    padding: 10px 16px;
    font-size: 13px;
    font-family: -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif;
    outline: none;
    background: rgba(255,255,255,0.6);
    color: #6b3fa0;
}

.input-field::placeholder {
    color: rgba(160,120,200,0.6);
}

.input-field:focus {
    border-color: rgba(192,132,252,0.7);
    background: rgba(255,255,255,0.75);
    box-shadow: 0 0 15px rgba(192,132,252,0.2);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ba55d3, #ff6b9d);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(186,85,211,0.35);
}

.send-btn:active { transform: scale(0.92); }
.send-btn:hover { box-shadow: 0 6px 18px rgba(186,85,211,0.5); transform: scale(1.05); }

/* ===== 转账按钮 ===== */
.transfer-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(200,160,240,0.5);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}
.transfer-btn:active { transform: scale(0.92); }

/* ===== 转账弹窗 ===== */
.transfer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    z-index: 100;
}
.transfer-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: linear-gradient(160deg, rgba(245,235,255,0.98), rgba(255,240,250,0.98));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 28px 28px 0 0;
    padding: 12px 24px calc(32px + env(safe-area-inset-bottom));
    z-index: 101;
    box-shadow: 0 -8px 40px rgba(180,120,220,0.25);
    border-top: 1px solid rgba(255,255,255,0.8);
}
.transfer-overlay.show, .transfer-modal.show { display: block; }
.transfer-modal-handle {
    width: 36px;
    height: 4px;
    background: rgba(200,160,240,0.4);
    border-radius: 2px;
    margin: 0 auto 20px;
}
.transfer-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #3d1f66;
    text-align: center;
    margin-bottom: 6px;
}
.transfer-modal-balance {
    font-size: 12px;
    color: rgba(90,45,130,0.5);
    text-align: center;
    margin-bottom: 20px;
}
.transfer-input {
    width: 100%;
    border: 1.5px solid rgba(200,160,240,0.6);
    border-radius: 16px;
    padding: 14px 18px;
    font-size: 20px;
    font-family: 'Playfair Display', serif;
    color: #3d1f66;
    background: rgba(255,255,255,0.7);
    outline: none;
    text-align: center;
    box-sizing: border-box;
    margin-bottom: 16px;
}
.transfer-input:focus {
    border-color: rgba(192,132,252,0.8);
    box-shadow: 0 0 15px rgba(192,132,252,0.2);
}
.transfer-modal-btns {
    display: flex;
    gap: 12px;
}
.transfer-cancel-btn, .transfer-confirm-btn {
    flex: 1;
    padding: 13px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.transfer-cancel-btn {
    background: rgba(200,160,240,0.2);
    color: #6b3fa0;
}
.transfer-confirm-btn {
    background: linear-gradient(135deg, #ba55d3, #ff6b9d);
    color: white;
    box-shadow: 0 4px 12px rgba(186,85,211,0.35);
}
.transfer-confirm-btn:active { transform: scale(0.97); }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .messages { padding: 8px; gap: 6px; }
    .message-bubble { font-size: 12px; padding: 8px 12px; border-radius: 10px; }
    .input-area { padding: 8px; gap: 4px; }
    .input-field { font-size: 11px; padding: 8px 10px; }
    .send-btn { width: 32px; height: 32px; font-size: 14px; }
}

/* ===== 资料页 ===== */
.profile-screen-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(16px + env(safe-area-inset-top)) 20px 14px;
    background: linear-gradient(135deg, rgba(216,180,254,0.5), rgba(249,168,212,0.45));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-shrink: 0;
}
.profile-nav-back {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #5a2d82;
    cursor: pointer;
    flex-shrink: 0;
}
.profile-nav-title {
    font-size: 17px;
    font-weight: 700;
    color: #3d1f66;
}
.profile-container {
    padding: 20px 20px calc(40px + env(safe-area-inset-bottom));
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(245,235,255,0.15);
}
.profile-header {
    text-align: center;
    margin-bottom: 20px;
}
.profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(216,180,254,0.5), rgba(249,168,212,0.45));
    backdrop-filter: blur(10px);
    border: 3px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 25px rgba(180,120,200,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 12px;
    position: relative;
}
.profile-online-dot {
    width: 14px;
    height: 14px;
    background: #4ade80;
    border-radius: 50%;
    border: 2.5px solid white;
    position: absolute;
    bottom: 4px;
    right: 4px;
    box-shadow: 0 0 6px rgba(74,222,128,0.5);
}
.profile-name {
    font-size: 22px;
    font-weight: 700;
    color: #4a2d6e;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}
.profile-name-sub {
    font-size: 12px;
    color: rgba(130,80,170,0.6);
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.profile-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(216,180,254,0.5), rgba(249,168,212,0.45));
    border: 1px solid rgba(192,132,252,0.35);
    color: #7c4daa;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 1px;
}
.profile-signature {
    background: rgba(240,220,255,0.55);
    backdrop-filter: blur(10px);
    padding: 12px 14px;
    border-radius: 10px;
    border-left: 4px solid rgba(192,132,252,0.6);
    margin-bottom: 20px;
    line-height: 1.5;
}
.sig-en {
    font-size: 13px;
    color: rgba(130,80,170,0.9);
    font-style: italic;
}
.sig-zh {
    font-size: 11px;
    color: rgba(130,80,170,0.5);
    margin-top: 4px;
}
.profile-info-table {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(180,120,200,0.1);
    border: 1px solid rgba(255,255,255,0.7);
}
.profile-item {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(200,160,240,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.profile-item:last-child { border-bottom: none; }
.profile-label { color: #aaa; font-weight: 500; }
.profile-value { color: #5a3a7a; font-weight: 600; }
.profile-note {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.7);
    margin-bottom: 20px;
}
.profile-note-label {
    font-size: 12px;
    color: rgba(130,80,170,0.7);
    margin-bottom: 8px;
    display: block;
}
.profile-note-input {
    width: 100%;
    border: 1px solid rgba(200,160,240,0.3);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    background: rgba(255,255,255,0.6);
    color: #6b3fa0;
    font-family: inherit;
    box-sizing: border-box;
}
.profile-note-input::placeholder { color: rgba(160,120,200,0.5); }
.profile-note-input:focus {
    border-color: rgba(192,132,252,0.6);
    box-shadow: 0 0 10px rgba(192,132,252,0.2);
}
.profile-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, rgba(192,132,252,0.7), rgba(244,114,182,0.65));
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.profile-btn:active { transform: scale(0.98); opacity: 0.9; }


/* ===== 情侣空间 ===== */
.couple-page-header {
    display: flex; align-items: center;
    padding: calc(52px + env(safe-area-inset-top)) 20px 14px;
    position: absolute; top: 0; left: 0; right: 0;
    z-index: 10;
}
.couple-back-btn {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.55); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #6b3fa0;
    cursor: pointer; border: none; flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.couple-page-title {
    flex: 1; text-align: center;
    font-size: 17px; font-weight: 600; color: rgba(255,255,255,0.92);
    margin-right: 34px;
    text-shadow: 0 1px 6px rgba(80,30,120,0.3);
}

/* 花瓣 */
.couple-petal-container {
    position: absolute; inset: 0;
    pointer-events: none; z-index: 999; overflow: hidden;
}
.couple-petal {
    position: absolute; top: -20px;
    animation: couplePetalFall linear forwards;
    opacity: 0.85;
}
@keyframes couplePetalFall {
    0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: 0.9; }
    50%  { transform: translateY(400px) rotate(180deg) translateX(30px); opacity: 0.7; }
    100% { transform: translateY(900px) rotate(360deg) translateX(-20px); opacity: 0; }
}

/* 封面 */
.couple-cover-section {
    margin: 0;
    border-radius: 0 0 22px 22px;
    overflow: visible;
    background: linear-gradient(135deg,
        rgba(220,180,255,0.55) 0%,
        rgba(230,180,240,0.5) 40%,
        rgba(255,180,210,0.5) 70%,
        rgba(255,200,220,0.48) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 8px 32px rgba(180,100,220,0.15);
    position: relative;
}
.couple-cover-top {
    display: flex; align-items: center;
    justify-content: center; gap: 22px;
    margin-bottom: 20px;
}
.couple-cover-avatar {
    width: 62px; height: 62px; border-radius: 50%;
    background: rgba(255,255,255,0.45);
    border: 2.5px solid rgba(255,255,255,0.85);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 18px rgba(180,100,220,0.2);
}
.couple-cover-heart {
    font-size: 26px;
    animation: coverHb 1.8s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255,100,150,0.5));
}
@keyframes coverHb {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}
.couple-cover-bottom {
    display: flex; align-items: flex-end; justify-content: space-between;
}
.couple-cover-main { font-size: 16px; font-weight: 700; color: #3d1f66; letter-spacing: 0.3px; }
.couple-cover-sub { font-size: 11px; color: rgba(100,50,160,0.55); margin-top: 3px; }
.couple-days-num { font-size: 30px; font-weight: 800; color: #3d1f66; line-height: 1; }
.couple-days-label { font-size: 11px; color: rgba(100,50,160,0.55); margin-top: 2px; text-align: right; }

/* Feed区 */
.couple-feed-section { padding: 14px 16px 80px; }

/* 帖子卡片 */
.couple-post-card {
    background: rgba(255,255,255,0.72); backdrop-filter: blur(20px);
    border-radius: 18px; padding: 15px 15px 12px; margin-bottom: 11px;
    border: 1px solid rgba(255,255,255,0.92);
    animation: coupleFadeUp 0.35s ease both;
}
@keyframes coupleFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.couple-post-card:nth-child(1) { animation-delay: 0s; }
.couple-post-card:nth-child(2) { animation-delay: 0.06s; }
.couple-post-card:nth-child(3) { animation-delay: 0.12s; }
.couple-post-card:nth-child(4) { animation-delay: 0.18s; }

/* 置顶婚帖 */
.couple-wedding {
    background: linear-gradient(135deg, rgba(224,85,128,0.08), rgba(107,63,160,0.08));
    border-color: rgba(224,85,128,0.2);
}
.couple-pinned-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(224,85,128,0.1); color: #e05580;
    font-size: 10px; font-weight: 600;
    padding: 3px 9px; border-radius: 10px; margin-bottom: 10px;
}
.couple-double-avatar {
    position: relative; width: 48px; height: 40px; flex-shrink: 0;
}
.couple-av1 {
    position: absolute; left: 0; top: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #3a3a4a, #2a2a3a);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; border: 2px solid rgba(255,255,255,0.9); z-index: 2;
}
.couple-av2 {
    position: absolute; right: 0; bottom: 0;
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, #c060a0, #e08080);
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; border: 2px solid rgba(255,255,255,0.9); z-index: 1;
}
.couple-post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.couple-post-name { font-size: 14px; font-weight: 700; color: #4a2880; }
.couple-post-time { font-size: 11px; color: #ccc; margin-top: 1px; }
.couple-post-en { font-size: 14px; line-height: 1.65; color: #222; margin-bottom: 3px; }
.couple-post-zh { font-size: 12px; line-height: 1.55; color: #8a7a9a; margin-bottom: 6px; }
.couple-post-sig { font-size: 12px; color: #b090c0; font-style: italic; margin-bottom: 10px; }
.couple-divider { height: 1px; background: rgba(200,160,240,0.2); margin: 10px 0; }

/* 头像 */
.couple-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, #3a3a4a, #2a2a3a);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.85);
}
.couple-avatar-sm {
    width: 30px; height: 30px; font-size: 15px;
    border-width: 1.5px;
}

/* 评论 */
.couple-comments { display: flex; flex-direction: column; gap: 8px; }
.couple-comment { display: flex; align-items: flex-start; gap: 8px; }
.couple-comment-body { flex: 1; }
.couple-comment-name { font-size: 12px; font-weight: 700; margin-bottom: 1px; }
.couple-ghost-name { color: #5a2d82; }
.couple-soap-name  { color: #2d6a8a; }
.couple-gaz-name   { color: #2d7a4a; }
.couple-price-name { color: #7c4daa; }
.couple-comment-en { font-size: 13px; color: #444; line-height: 1.4; }
.couple-comment-zh { font-size: 11px; color: #8a7a9a; margin-top: 1px; }
.couple-reply-to { font-size: 11px; color: #c0a0d0; margin-bottom: 2px; }

/* 点赞+底部 */
.couple-post-footer { margin-top: 10px; display: flex; align-items: center; }
.couple-like-btn {
    background: none; border: none; cursor: pointer;
    font-size: 13px; color: #bbb; padding: 0;
}
.couple-like-btn.couple-liked { color: #e05580; }

/* 空状态 */
.couple-empty {
    text-align: center; color: rgba(130,80,170,0.4);
    font-size: 13px; padding: 30px 0;
}
.couple-loading {
    text-align: center; color: rgba(130,80,170,0.4);
    font-size: 13px; padding: 30px 0;
    animation: pulse 1.5s ease-in-out infinite;
}


@keyframes coupleTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.3); }
}
@keyframes coupleGlow {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
}

/* ===== 阴阳帖 ===== */
.couple-sassy {
    border-color: rgba(200,80,110,0.25);
    background: rgba(255,235,242,0.75);
    position: relative;
    overflow: hidden;
}
.couple-sassy-bar {
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, #e05580, #c060a0);
    border-radius: 2px;
    width: 100%;
}
.couple-deleting-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(224,85,128,0.1);
    color: #e05580;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.couple-mention {
    color: #7c4daa;
    font-weight: 600;
}


/* ===== 钱包页 ===== */
.screen-header {
    display: flex;
    align-items: center;
    padding: calc(16px + env(safe-area-inset-top)) 20px 14px;
    flex-shrink: 0;
}
.screen-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #4a2880;
    margin-right: 34px;
}
#walletScreen {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.wallet-container {
    padding: 0 16px calc(40px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.wallet-card {
    background: linear-gradient(135deg, rgba(180,140,240,0.65) 0%, rgba(160,100,220,0.55) 50%, rgba(200,120,200,0.5) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    padding: 24px 24px 20px;
    box-shadow: 0 8px 32px rgba(140,80,200,0.15);
    border: 1px solid rgba(255,255,255,0.45);
    color: white;
}
.wallet-card-label {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.balance-display {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', Georgia, serif;
}
.wallet-stats {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 12px 20px;
    gap: 0;
}
.wallet-stat {
    flex: 1;
    text-align: center;
}
.wallet-stat-divider {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.25);
}
.wallet-stat-label {
    font-size: 11px;
    opacity: 0.75;
    margin-bottom: 4px;
}
.wallet-stat-value {
    font-size: 16px;
    font-weight: 700;
}
.wallet-stat-value.income { color: rgba(255,255,255,0.95); }
.wallet-stat-value.expense { color: rgba(255,220,235,0.9); }

/* 交易记录 */
.transaction-section {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(180,120,200,0.1);
    border: 1px solid rgba(255,255,255,0.8);
}
.transaction-header {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(200,160,240,0.2);
    font-size: 13px;
    font-weight: 600;
    color: #6b3fa0;
}
.transaction-item {
    padding: 13px 18px;
    border-bottom: 1px solid rgba(200,160,240,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.15s;
}
.transaction-item:last-child { border-bottom: none; }
.transaction-item:active { background: rgba(200,160,240,0.08); }
.transaction-icon { font-size: 26px; min-width: 38px; text-align: center; }
.transaction-info { flex: 1; }
.transaction-name {
    font-size: 13px;
    font-weight: 600;
    color: #5a3a7a;
    margin-bottom: 2px;
}
.transaction-time {
    font-size: 11px;
    color: rgba(130,80,170,0.55);
}
.transaction-amount {
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.transaction-amount.in { color: #16a34a; }
.transaction-amount.out { color: #dc2626; }

/* 折叠按钮 */
.transaction-toggle {
    padding: 13px 18px;
    text-align: center;
    font-size: 13px;
    color: #8b5cf6;
    cursor: pointer;
    border-top: 1px solid rgba(200,160,240,0.15);
    user-select: none;
    transition: background 0.15s;
}
.transaction-toggle:active { background: rgba(200,160,240,0.08); }
.toggle-arrow {
    display: inline-block;
    transition: transform 0.25s;
    margin-left: 2px;
}
.toggle-arrow.open { transform: rotate(180deg); }


/* ===== 转账卡片 ===== */
/* ===== 转账卡片 F1风格 ===== */
.transfer-card {
    width: 230px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 20px rgba(180,100,220,0.15);
}

/* 顶部彩条 */
.transfer-card::before {
    content: '';
    display: block;
    height: 3px;
}
.user-transfer-card::before {
    background: linear-gradient(90deg, #c084fc, #f472b6, #fb7185);
}
.ghost-transfer-card::before {
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
}
.refund-card::before {
    background: linear-gradient(90deg, #9ca3af, #6b7280, #9ca3af);
}

/* 用户转出卡片（右侧，粉色调） */
.user-transfer-card {
    background: linear-gradient(145deg, #fff0f9, #fce7f3);
    border: 1px solid rgba(244,114,182,0.3);
}
/* 英镑水印 */
.user-transfer-card::after {
    content: '£';
    position: absolute; right: -6px; top: 50%;
    transform: translateY(-50%);
    font-family: Georgia, serif;
    font-size: 110px; font-weight: 700;
    color: rgba(192,132,252,0.07);
    line-height: 1; pointer-events: none;
}

/* Ghost转出卡片（左侧，深色调） */
.ghost-transfer-card {
    background: linear-gradient(145deg, #1a1a2e, #2d2b55);
    border: 1px solid rgba(168,85,247,0.3);
}
.ghost-transfer-card::after {
    content: '£';
    position: absolute; right: -6px; top: 50%;
    transform: translateY(-50%);
    font-family: Georgia, serif;
    font-size: 110px; font-weight: 700;
    color: rgba(168,85,247,0.08);
    line-height: 1; pointer-events: none;
}

/* 退款卡片 */
.refund-card {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border: 1px solid rgba(120,120,140,0.3);
    opacity: 0.9;
}
.refund-card::after {
    content: '£';
    position: absolute; right: -6px; top: 50%;
    transform: translateY(-50%);
    font-family: Georgia, serif;
    font-size: 110px; font-weight: 700;
    color: rgba(150,150,170,0.07);
    line-height: 1; pointer-events: none;
}

.transfer-card-top { padding: 12px 16px 8px; }
.transfer-info { flex: 1; }

.transfer-label {
    font-size: 9px; letter-spacing: 2px;
    text-transform: uppercase; font-weight: 600;
    color: rgba(190,60,120,0.6);
}
.ghost-transfer-card .transfer-label { color: rgba(200,180,255,0.5); }
.refund-card .transfer-label { color: rgba(160,160,180,0.5); }

.transfer-name {
    font-size: 15px; font-weight: 700;
    color: #831843; margin: 3px 0;
}
.ghost-transfer-card .transfer-name { color: rgba(230,210,255,0.9); }
.refund-card .transfer-name { color: rgba(200,200,220,0.8); }

.transfer-amount-block {
    margin: 8px 16px 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
    padding: 8px 14px;
    text-align: center;
}
.ghost-transfer-card .transfer-amount-block {
    background: rgba(255,255,255,0.06);
}
.refund-card .transfer-amount-block {
    background: rgba(255,255,255,0.05);
}

.transfer-amount-label {
    font-size: 9px; letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(190,60,120,0.45); margin-bottom: 2px;
}
.ghost-transfer-card .transfer-amount-label { color: rgba(200,180,255,0.4); }
.refund-card .transfer-amount-label { color: rgba(160,160,180,0.4); }

.transfer-amount {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 40px; font-weight: 700;
    color: #be185d; line-height: 1;
}
.ghost-transfer-card .transfer-amount { color: #c084fc; }
.refund-card .transfer-amount { color: #9ca3af; }

.transfer-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 16px 12px;
}
.transfer-status {
    font-size: 10px; font-weight: 700;
    color: #db2777;
    display: flex; align-items: center; gap: 3px;
}
.transfer-status::before { content: '🌸'; font-size: 9px; }
.ghost-transfer-card .transfer-status { color: #a855f7; }
.refund-card .transfer-status { color: #9ca3af; }
.refund-status::before { content: '↩'; }
.transfer-time {
    font-size: 10px; color: rgba(190,60,120,0.4);
}
.ghost-transfer-card .transfer-time { color: rgba(200,180,255,0.35); }
.refund-card .transfer-time { color: rgba(160,160,180,0.35); }


/* ===== 打工页面 ===== */
.work-container {
    padding: 16px 16px 40px;
    overflow-y: auto;
    height: calc(100% - 56px);
}
.work-income-bar {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(200,160,240,0.25);
    border-radius: 14px; padding: 10px 16px;
    font-size: 13px; color: #3a1a60; font-weight: 600;
    margin-bottom: 16px;
}
.work-quota { font-size: 11px; color: rgba(120,80,160,0.5); font-weight: 400; margin-left: auto; }
.pomodoro-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.75), rgba(245,230,255,0.7));
    border: 1px solid rgba(200,160,240,0.3);
    border-radius: 20px; padding: 20px 16px; margin-bottom: 16px;
    display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.pomodoro-job-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.job-option {
    background: rgba(255,255,255,0.6);
    border: 1.5px solid rgba(200,160,240,0.25);
    border-radius: 14px; padding: 12px 8px; text-align: center; cursor: pointer; transition: all 0.18s;
}
.job-option.active {
    background: linear-gradient(135deg, rgba(216,180,254,0.45), rgba(249,168,212,0.4));
    border-color: rgba(192,132,252,0.5);
    box-shadow: 0 2px 12px rgba(180,100,220,0.12);
}
.job-emoji { font-size: 24px; margin-bottom: 4px; }
.job-name { font-size: 12px; font-weight: 700; color: #3a1a60; }
.job-detail { font-size: 10px; color: rgba(120,80,160,0.5); margin-top: 2px; }
.pomodoro-timer-wrap { flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.pomodoro-job-label { font-size: 13px; font-weight: 700; color: #3a1a60; }
.pomodoro-ring { position: relative; width: 160px; height: 160px; }
.pomodoro-svg { width: 160px; height: 160px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(200,160,240,0.2); stroke-width: 8; }
.ring-progress { fill: none; stroke: url(#ringGrad); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.pomodoro-time { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 32px; font-weight: 800; color: #3a1a60; letter-spacing: -1px; }
.pomodoro-start-btn {
    background: linear-gradient(135deg, rgba(192,132,252,0.8), rgba(244,114,182,0.75));
    color: white; border: none; border-radius: 50px; padding: 12px 40px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 16px rgba(180,100,220,0.2); transition: transform 0.15s;
}
.pomodoro-start-btn:active { transform: scale(0.97); }
.pomodoro-cancel-btn {
    background: rgba(255,255,255,0.5); border: 1px solid rgba(200,160,240,0.3);
    border-radius: 20px; padding: 6px 20px; font-size: 12px; color: rgba(120,80,160,0.6); cursor: pointer;
}
.pomodoro-done { flex-direction: column; align-items: center; gap: 6px; padding: 10px; }
.done-emoji { font-size: 36px; }
.done-text { font-size: 13px; color: #3a1a60; font-weight: 600; }
.done-amount { font-size: 24px; font-weight: 800; color: #7c3aed; }
.work-log { margin-bottom: 12px; }
.work-log-title { font-size: 11px; font-weight: 700; color: rgba(100,60,150,0.5); letter-spacing: 1px; margin-bottom: 8px; }
.work-log-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,0.5); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; font-size: 12px; color: #3a1a60; }
.work-log-pay { font-weight: 700; color: #7c3aed; }
.noah-tag { text-align: center; font-size: 10px; color: rgba(120,80,160,0.35); padding: 8px 0; letter-spacing: 0.5px; }


/* ===== 单词学习页面 ===== */
#vocabScreen { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vocab-container { padding: 16px 16px 40px; }
.vocab-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.vocab-stat-card { background: rgba(255,255,255,0.65); border: 1px solid rgba(180,220,200,0.3); border-radius: 14px; padding: 12px; text-align: center; }
.vocab-stat-num { font-size: 24px; font-weight: 800; color: #1a4a3a; }
.vocab-stat-label { font-size: 11px; color: rgba(40,100,70,0.5); margin-top: 2px; }
.vocab-today-title { font-size: 11px; font-weight: 700; color: rgba(40,100,70,0.5); letter-spacing: 1px; margin-bottom: 8px; }
.vocab-preview-list { margin-bottom: 16px; }
.vocab-preview-item { display: flex; align-items: center; background: rgba(255,255,255,0.55); border: 1px solid rgba(180,220,200,0.25); border-radius: 10px; padding: 8px 12px; margin-bottom: 6px; gap: 10px; }
.vocab-preview-item.learned { background: rgba(200,255,220,0.35); border-color: rgba(100,200,140,0.3); }
.vocab-preview-word { font-size: 13px; font-weight: 700; color: #1a4a3a; flex: 1; }
.vocab-preview-zh { font-size: 11px; color: rgba(40,100,70,0.55); }
.vocab-preview-check { font-size: 13px; color: #22c55e; font-weight: 700; }
.vocab-action-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.vocab-btn-learn, .vocab-btn-test { border: none; border-radius: 14px; padding: 12px 8px; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform 0.15s; }
.vocab-btn-learn { background: linear-gradient(135deg, rgba(100,200,160,0.7), rgba(60,180,120,0.65)); color: #fff; }
.vocab-btn-test  { background: linear-gradient(135deg, rgba(100,160,255,0.7), rgba(60,120,220,0.65)); color: #fff; }
.vocab-btn-learn:active, .vocab-btn-test:active { transform: scale(0.97); }
.vocab-ghost-quote { background: rgba(255,255,255,0.45); border-left: 3px solid rgba(100,180,140,0.5); border-radius: 0 12px 12px 0; padding: 10px 14px; font-size: 11px; font-style: italic; color: #1a4a3a; line-height: 1.6; }
.vocab-ghost-quote-zh { display: block; font-style: normal; color: rgba(40,100,70,0.5); font-size: 10px; margin-top: 4px; }
.vocab-mode-progress { font-size: 12px; color: rgba(40,100,70,0.5); font-weight: 600; }
.vocab-flip-card { width: 100%; height: 200px; perspective: 1000px; cursor: pointer; }
.vocab-flip-inner { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.45s ease; }
.vocab-flip-card.flipped .vocab-flip-inner { transform: rotateY(180deg); }
.vocab-flip-front, .vocab-flip-back { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.vocab-flip-front { background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(220,255,240,0.8)); border: 1.5px solid rgba(100,200,160,0.3); }
.vocab-flip-back { background: linear-gradient(135deg, rgba(230,255,245,0.85), rgba(200,240,255,0.8)); border: 1.5px solid rgba(100,180,220,0.3); transform: rotateY(180deg); text-align: center; gap: 10px; }
.vocab-front-word { font-size: 32px; font-weight: 800; color: #1a4a3a; letter-spacing: -1px; }
.vocab-flip-hint { font-size: 10px; color: rgba(40,100,70,0.35); margin-top: 8px; }
.vocab-zh { font-size: 20px; font-weight: 700; color: #1a4a3a; }
.vocab-ghost-line { font-size: 11px; font-style: italic; color: #2d6a50; line-height: 1.5; text-align: center; }
.vocab-ghost-line-zh { font-size: 10px; color: rgba(40,100,70,0.45); text-align: center; }
.vocab-learn-btns { display: flex; gap: 10px; }
.vocab-btn-next { background: linear-gradient(135deg, rgba(100,200,160,0.7), rgba(60,180,120,0.65)); color: white; border: none; border-radius: 50px; padding: 10px 28px; font-size: 13px; font-weight: 700; cursor: pointer; }
.vocab-btn-back-home { background: rgba(255,255,255,0.5); border: 1px solid rgba(100,200,160,0.3); border-radius: 50px; padding: 10px 20px; font-size: 12px; color: rgba(40,100,70,0.6); cursor: pointer; }
.vocab-test-word { font-size: 36px; font-weight: 800; color: #1a3a6a; letter-spacing: -1px; }
.vocab-test-question { font-size: 12px; color: rgba(40,60,120,0.45); }
.vocab-test-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.vocab-option { background: rgba(255,255,255,0.65); border: 1.5px solid rgba(160,180,240,0.3); border-radius: 12px; padding: 12px 8px; font-size: 13px; font-weight: 600; color: #1a3a6a; cursor: pointer; transition: all 0.15s; }
.vocab-option.correct { background: rgba(100,220,140,0.4); border-color: #22c55e; color: #166534; }
.vocab-option.wrong   { background: rgba(255,100,100,0.25); border-color: #ef4444; color: #7f1d1d; }
.vocab-feedback { font-size: 13px; font-family: 'Georgia', cursive; font-style: italic; min-height: 36px; text-align: center; line-height: 1.5; padding: 8px 18px; border-radius: 20px; width: fit-content; max-width: 90%; margin: 0 auto; transition: all 0.2s; }
.vocab-feedback.correct { color: #166534; background: rgba(134,239,172,0.25); border: 1px solid rgba(34,197,94,0.3); }
.vocab-feedback.wrong   { color: #991b1b; background: rgba(252,165,165,0.25); border: 1px solid rgba(239,68,68,0.3); }
.vocab-done-msg { font-size: 16px; font-weight: 700; color: #1a4a3a; font-style: italic; text-align: center; padding: 0 20px; }
.vocab-dot-row { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.vocab-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(160,180,240,0.25); border: 1.5px solid rgba(160,180,240,0.3); transition: all 0.2s; }
.vocab-dot.current { background: rgba(130,100,220,0.5); border-color: rgba(130,100,220,0.6); transform: scale(1.3); }
.vocab-dot.done-correct { background: #22c55e; border-color: #16a34a; }
.vocab-dot.done-wrong   { background: #ef4444; border-color: #dc2626; }
.vocab-ghost-hint { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.45); border: 1px solid rgba(160,180,240,0.2); border-radius: 16px; padding: 10px 16px; width: 100%; box-sizing: border-box; margin-top: 4px; }
.vocab-ghost-avatar { font-size: 24px; flex-shrink: 0; }
.vocab-ghost-hint-text { font-size: 12px; color: #1a3a6a; font-style: italic; line-height: 1.4; }


/* ===== 收藏页面 ===== */
#collectionScreen { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.collection-container {
    padding: 16px 16px 40px;
    overflow-y: auto;
    flex: 1;
    background: rgba(245,235,255,0.15);
}
.collection-item {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 14px 40px 14px 15px;
    border-radius: 14px;
    margin-bottom: 10px;
    border-left: 3.5px solid rgba(192,132,252,0.7);
    border-top: 1px solid rgba(255,255,255,0.85);
    border-right: 1px solid rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.6);
    box-shadow: 0 4px 15px rgba(180,120,200,0.08);
    position: relative;
}
.collection-message {
    font-size: 13px;
    color: #5a3a7a;
    margin-bottom: 6px;
    line-height: 1.6;
}
.collection-time {
    font-size: 11px;
    color: rgba(130,80,170,0.45);
}
.collection-delete {
    position: absolute;
    top: 12px; right: 12px;
    color: rgba(200,170,220,0.5);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s;
    line-height: 1;
}
.collection-delete:hover { color: #ba55d3; }

/* 收藏按钮 */
.message-actions {
    margin-top: 4px;
    display: flex;
    gap: 6px;
}
.message-action-btn {
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 6px;
    opacity: 0.45;
    transition: opacity 0.2s, transform 0.15s;
}
.message-action-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}


/* ===== 日历页面 ===== */
#calendarScreen { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.calendar-container {
    padding: 12px 12px 40px;
    background: rgba(245,235,255,0.15);
}
.marriage-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.stat-card {
    background: rgba(240,220,255,0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.7);
    text-align: center;
    box-shadow: 0 4px 15px rgba(180,120,200,0.12);
}
.stat-label { font-size: 12px; color: rgba(130,80,170,0.8); margin-bottom: 5px; }
.stat-value {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #ba55d3, #ff6b9d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.milestone-section {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 15px rgba(180,120,200,0.08);
}
.milestone-title { font-size: 14px; font-weight: 600; color: #6b3fa0; margin-bottom: 12px; }
.milestone-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(200,160,240,0.2);
}
.milestone-item:last-child { border-bottom: none; }
.milestone-icon { font-size: 22px; }
.milestone-info { flex: 1; }
.milestone-name { font-size: 13px; font-weight: 600; color: #6b3fa0; }
.milestone-date { font-size: 11px; color: rgba(130,80,170,0.55); margin-top: 2px; }
.milestone-badge {
    font-size: 11px;
    background: linear-gradient(135deg, #ba55d3, #ff6b9d);
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.milestone-badge.passed { background: rgba(160,120,200,0.3); color: #6b3fa0; }
.marriage-date-display {
    background: rgba(255,255,255,0.5);
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 4px solid rgba(192,132,252,0.7);
    font-size: 12px;
    color: rgba(130,80,170,0.8);
    margin-bottom: 14px;
    text-align: center;
}
.marriage-date-display strong { color: #e879f9; font-size: 14px; }
.calendar {
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 12px 6px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 4px 15px rgba(180,120,200,0.08);
}
.calendar-title { text-align: center; font-size: 15px; font-weight: 700; margin-bottom: 12px; color: #4a2d6e; }
.weekdays { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; margin-bottom: 4px; }
.weekday { text-align: center; font-size: 10px; font-weight: 700; color: rgba(100,50,150,0.7); padding: 6px 0; }
.days { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.day {
    aspect-ratio: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 11px; font-weight: 600; color: #6b3fa0;
    background: rgba(255,255,255,0.5); position: relative; padding: 2px; gap: 1px;
    border: 1px solid rgba(255,255,255,0.65);
}
.day.today {
    background: linear-gradient(135deg, rgba(192,132,252,0.85), rgba(244,114,182,0.8));
    color: white; font-weight: 700; box-shadow: 0 4px 12px rgba(192,132,252,0.3);
}
.day.festival {
    background: linear-gradient(135deg, rgba(249,168,212,0.55), rgba(216,180,254,0.5));
    color: #7a3fa0; font-weight: 700;
}
.day.payday {
    background: linear-gradient(135deg, rgba(134,239,172,0.5), rgba(52,211,153,0.45));
    color: #166534; font-weight: 700;
}
.day.milestone-day {
    background: linear-gradient(135deg, rgba(255,200,100,0.6), rgba(255,150,180,0.55));
    color: #7a2d6e; font-weight: 700;
    box-shadow: 0 2px 8px rgba(255,150,100,0.2);
}
.day-number { font-size: 11px; font-weight: 700; }
.festival-emoji { font-size: 12px; line-height: 1; }
.festival-label { font-size: 7px; font-weight: 700; line-height: 1; text-align: center; color: inherit; max-width: 100%; }

/* 粒子特效 */
.cal-particle {
    position: absolute;
    font-size: 20px;
    animation: calParticleFall linear forwards;
    pointer-events: none;
}
@keyframes calParticleFall {
    0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg); opacity: 0; }
}


/* ===== 秘密页面 ===== */
#secretScreen { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.secret-container { padding: 0 16px 30px; }
.secret-envelope-top { margin: 16px 0 20px; text-align: center; }
.secret-envelope-flap {
    width: 100%; height: 60px;
    background: linear-gradient(160deg, rgba(255,210,235,0.7), rgba(216,180,254,0.6));
    clip-path: polygon(0 0, 50% 100%, 100% 0);
    border-radius: 4px; margin: 0 auto 10px;
    box-shadow: 0 4px 16px rgba(200,130,200,0.2);
}
.secret-envelope-hint { font-size: 12px; color: rgba(130,80,170,0.65); font-style: italic; }
.secret-section {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 20px; padding: 18px 16px; margin-bottom: 14px;
    box-shadow: 0 4px 16px rgba(180,120,200,0.08);
}
.secret-section-title { font-size: 13px; font-weight: 700; color: #4a2d6e; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid rgba(200,160,240,0.25); }
.secret-field { margin-bottom: 14px; }
.secret-field:last-child { margin-bottom: 0; }
.secret-label { display: block; font-size: 11px; color: rgba(130,80,170,0.7); font-weight: 600; margin-bottom: 6px; letter-spacing: 0.3px; }
.secret-input {
    width: 100%; padding: 10px 14px; border-radius: 12px;
    border: 1px solid rgba(200,160,240,0.4); background: rgba(255,255,255,0.7);
    font-size: 13px; color: #4a2d6e; outline: none; box-sizing: border-box; transition: border 0.2s;
}
.secret-input:focus { border-color: rgba(192,132,252,0.7); background: rgba(255,255,255,0.9); }
.secret-textarea {
    width: 100%; padding: 10px 14px; border-radius: 12px;
    border: 1px solid rgba(200,160,240,0.4); background: rgba(255,255,255,0.7);
    font-size: 13px; color: #4a2d6e; outline: none; box-sizing: border-box;
    resize: none; min-height: 70px; line-height: 1.6; transition: border 0.2s;
}
.secret-textarea:focus { border-color: rgba(192,132,252,0.7); }
.secret-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.secret-chip { padding: 4px 12px; border-radius: 20px; font-size: 11px; border: 1px solid rgba(200,160,240,0.4); background: rgba(255,255,255,0.6); color: #6b3fa0; cursor: pointer; transition: all 0.2s; }
.secret-chip.selected { background: linear-gradient(135deg, rgba(192,132,252,0.5), rgba(244,114,182,0.45)); border-color: rgba(192,132,252,0.7); color: #4a1d8e; font-weight: 600; }
.secret-color-row { display: flex; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.secret-country-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.country-chip { padding: 5px 10px; border-radius: 20px; font-size: 12px; cursor: pointer; border: 1.5px solid rgba(160,100,220,0.25); background: rgba(255,255,255,0.6); color: #7a3db5; transition: all 0.2s; user-select: none; }
.country-chip.selected { background: linear-gradient(135deg, #c084fc, #f472b6); color: white; border-color: transparent; font-weight: 600; }
.secret-color-dot { width: 28px; height: 28px; border-radius: 50%; cursor: pointer; border: 2.5px solid transparent; transition: all 0.2s; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.secret-color-dot.selected { border-color: #4a2d6e; transform: scale(1.15); }
.secret-save-hint { text-align: center; font-size: 11px; color: rgba(130,80,170,0.5); margin-top: 8px; font-style: italic; }

/* 头像上传 */
.secret-avatar-wrap { display: flex; align-items: center; gap: 16px; }
.secret-avatar-preview {
    width: 70px; height: 70px; border-radius: 50%;
    background: rgba(240,220,255,0.6);
    border: 2px solid rgba(192,132,252,0.5);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; flex-shrink: 0; overflow: hidden;
}
.secret-avatar-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.secret-avatar-btn-wrap { flex: 1; }
.secret-avatar-btn {
    display: inline-block; padding: 8px 16px;
    background: linear-gradient(135deg, rgba(192,132,252,0.6), rgba(244,114,182,0.55));
    color: white; border-radius: 20px; font-size: 12px; font-weight: 600;
    cursor: pointer; transition: transform 0.15s;
}
.secret-avatar-btn:active { transform: scale(0.96); }
.secret-avatar-hint { font-size: 10px; color: rgba(130,80,170,0.5); margin-top: 6px; }


/* ===== 商城页面 ===== */
#marketScreen { flex-direction: column; overflow: hidden; }
.market-balance-bar {
    background: linear-gradient(135deg, rgba(216,180,254,0.4), rgba(249,168,212,0.35));
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    padding: 10px 20px; display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; font-weight: 600; color: #5a3a7a;
    border-bottom: 1px solid rgba(255,255,255,0.4); flex-shrink: 0;
}
#marketBalanceDisplay { font-size: 16px; font-weight: 700; color: #4a2d6e; }
.market-container { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* 分类tabs */
.category-tabs {
    display: flex; gap: 8px; padding: 12px 12px 0; overflow-x: auto;
    -webkit-overflow-scrolling: touch; white-space: nowrap;
}
.category-tab {
    padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 600;
    cursor: pointer; border: 1.5px solid rgba(200,160,240,0.35);
    background: rgba(255,255,255,0.6); color: #6b3fa0;
    transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}
.category-tab.active {
    background: linear-gradient(135deg, rgba(192,132,252,0.7), rgba(244,114,182,0.65));
    color: white; border-color: transparent;
}

/* 商品网格 */
.products-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 10px; padding: 12px 12px 30px;
}
.product-card {
    background: rgba(255,255,255,0.65); backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.8); border-radius: 18px;
    padding: 14px 10px 12px; text-align: center;
    box-shadow: 0 4px 16px rgba(180,120,200,0.08);
    cursor: pointer; transition: transform 0.15s; position: relative;
}
.product-card:active { transform: scale(0.97); }
.product-emoji { font-size: 36px; margin-bottom: 6px; }
.product-name { font-size: 12px; font-weight: 700; color: #4a2d6e; margin-bottom: 4px; }
.product-desc { font-size: 10px; color: rgba(130,80,170,0.6); line-height: 1.4; margin-bottom: 6px; }
.product-price { font-size: 14px; font-weight: 700; color: #7c3fa0; margin-bottom: 6px; }
.product-buy-btn {
    padding: 5px 14px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, rgba(192,132,252,0.7), rgba(244,114,182,0.65));
    color: white; font-size: 11px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.product-buy-btn:active { transform: scale(0.95); }
.product-owned-tag { font-size: 11px; color: #059669; font-weight: 700; margin-top: 4px; }

/* 高亮触发 */
.ghost-mentioned {
    border: 1.5px solid rgba(139,92,246,0.5) !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.75), rgba(237,233,254,0.6)) !important;
}
.ghost-mentioned-tag {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    color: white; font-size: 9px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px; white-space: nowrap;
}

/* 已购/售罄 */
.owned-card { opacity: 0.6; filter: grayscale(60%); pointer-events: none; position: relative; }
.owned-card::after {
    content: '已寄出'; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%) rotate(-18deg);
    font-size: 18px; font-weight: 900; color: rgba(180,60,80,0.75);
    border: 2.5px solid rgba(180,60,80,0.6); border-radius: 6px;
    padding: 3px 8px; letter-spacing: 3px; pointer-events: none;
}

/* 心愿单 */
.wishlist-card {
    border: 1px solid rgba(244,114,182,0.35) !important;
    background: linear-gradient(145deg, rgba(255,255,255,0.7), rgba(253,230,244,0.6)) !important;
}
.wishlist-price { color: #be185d !important; font-weight: 800; }
.wishlist-buy-btn { background: linear-gradient(135deg, rgba(244,114,182,0.8), rgba(192,132,252,0.75)) !important; }
.product-badge-preview {
    font-size: 10px; color: rgba(160,80,140,0.75);
    background: rgba(244,114,182,0.12); border-radius: 8px;
    padding: 2px 8px; margin: 2px 0 4px;
}

/* 精品专柜 */
.luxury-card {
    background: linear-gradient(145deg, rgba(30,20,50,0.85), rgba(50,30,70,0.8)) !important;
    border: 1px solid rgba(200,160,60,0.3) !important;
    color: #f5e8c0 !important;
}
.luxury-card .product-name { color: #f5e8c0 !important; }
.luxury-card .product-desc { color: rgba(245,232,192,0.6) !important; }
.luxury-card .product-price { color: #fcd34d !important; }

/* 限时打折卡片 */
.on-sale-card {
    border: 1px solid rgba(252,211,77,0.6) !important;
    box-shadow: 0 0 16px rgba(252,180,30,0.25), inset 0 0 20px rgba(252,211,77,0.05) !important;
    position: relative; overflow: hidden;
}
.on-sale-card::before {
    content: '';
    position: absolute; top: -1px; right: -1px;
    width: 0; height: 0; border-style: solid;
    border-width: 0 52px 52px 0;
    border-color: transparent rgba(252,180,30,0.9) transparent transparent;
    z-index: 2;
}
.sale-corner-text {
    position: absolute; top: 6px; right: 2px;
    font-size: 9px; font-weight: 800; color: #1a1200;
    letter-spacing: 0.3px; z-index: 3;
    transform: rotate(45deg); text-align: center;
    line-height: 1.2; pointer-events: none;
}
.sale-discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f59e0b, #fcd34d);
    color: #1a1200; font-size: 10px; font-weight: 800;
    padding: 2px 8px; border-radius: 20px;
    margin-bottom: 4px; letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(245,158,11,0.4);
}
.sale-original-price {
    text-decoration: line-through; opacity: 0.4;
    font-size: 10px; margin-right: 4px;
}

/* 购买弹窗 */
.buy-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(80,40,120,0.35); backdrop-filter: blur(6px); z-index: 9999; justify-content: center; align-items: center; }
.buy-modal-overlay.show { display: flex; }
.buy-modal {
    background: rgba(255,255,255,0.9); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9); border-radius: 24px;
    padding: 28px 22px; width: 85%; max-width: 320px; text-align: center;
    box-shadow: 0 20px 60px rgba(180,120,200,0.3);
    animation: modalPop 0.25s ease;
}
@keyframes modalPop { from { transform: scale(0.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.buy-modal-emoji { font-size: 52px; margin-bottom: 10px; }
.buy-modal-name { font-size: 17px; font-weight: 700; color: #4a2d6e; margin-bottom: 6px; }
.buy-modal-desc { font-size: 12px; color: rgba(130,80,170,0.7); margin-bottom: 10px; line-height: 1.5; }
.buy-modal-price { font-size: 26px; font-weight: 700; color: #7c3fa0; margin-bottom: 4px; }
.buy-modal-balance { font-size: 12px; color: rgba(130,80,170,0.65); margin-bottom: 18px; }
.buy-modal-btns { display: flex; gap: 10px; width: 100%; }
.buy-modal-cancel {
    flex: 1; padding: 12px; border: 1.5px solid rgba(160,124,192,0.35);
    border-radius: 14px; background: rgba(255,255,255,0.6);
    color: #a07cc0; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.buy-modal-cancel:active { background: rgba(160,124,192,0.1); transform: scale(0.97); }
.buy-modal-confirm {
    flex: 2; padding: 12px; border: none; border-radius: 14px;
    background: linear-gradient(135deg, rgba(192,132,252,0.85), rgba(244,114,182,0.8));
    color: white; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(192,132,252,0.35);
}
.buy-modal-confirm:active { transform: scale(0.97); }
.buy-modal-confirm:disabled {
    background: rgba(180,180,180,0.3);
    color: rgba(100,100,100,0.6);
    box-shadow: none; cursor: not-allowed;
}
.buy-cancel-btn { flex: 1; padding: 12px; border-radius: 14px; border: 1px solid rgba(200,160,240,0.5); background: rgba(255,255,255,0.6); color: #8a6aaa; font-size: 13px; font-weight: 600; cursor: pointer; }
.buy-confirm-btn { flex: 2; padding: 12px; border-radius: 14px; border: none; background: linear-gradient(135deg, rgba(192,132,252,0.8), rgba(244,114,182,0.75)); color: white; font-size: 13px; font-weight: 700; cursor: pointer; }
.buy-confirm-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* 快递追踪 */
.delivery-tag {
    display: inline-flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.85); border: 1px solid rgba(180,130,240,0.4);
    border-radius: 20px; padding: 5px 12px; margin-right: 8px;
    cursor: pointer; font-size: 11px; font-weight: 600; color: #5a2d8a;
    white-space: nowrap; box-shadow: 0 2px 8px rgba(140,80,200,0.15);
}
.delivery-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: #a855f7; animation: delivPulse 1.5s infinite; }
@keyframes delivPulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

/* ===== 快递详情浮窗 ===== */
.delivery-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(80,40,120,0.4);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex; justify-content: center; align-items: flex-end;
  padding-bottom: env(safe-area-inset-bottom);
}
.delivery-modal {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 20px 20px 24px;
  width: calc(100% - 32px); max-width: 480px;
  max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 40px rgba(120,60,200,0.25);
  animation: slideUp 0.3s ease;
  margin-bottom: 24px;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.delivery-modal-title {
  font-size: 16px; font-weight: 700; color: #4a2d6e;
  margin-bottom: 4px; text-align: center;
}
.delivery-modal-subtitle {
  font-size: 11px; color: rgba(130,80,170,0.5);
  text-align: center; margin-bottom: 16px;
}
.delivery-modal-content {
  flex: 1; overflow-y: auto; margin-bottom: 16px;
  padding: 0 4px;
}
.delivery-modal-handle {
  width: 36px; height: 4px;
  background: rgba(180,140,220,0.3);
  border-radius: 2px; margin: 0 auto 16px;
}
.delivery-modal-close {
  background: linear-gradient(135deg, rgba(192,132,252,0.75), rgba(244,114,182,0.7));
  color: white; border: none; border-radius: 14px;
  padding: 12px; font-size: 14px; font-weight: 600;
  cursor: pointer; width: 100%;
  box-shadow: 0 4px 12px rgba(192,132,252,0.3);
}

/* ===== 气泡内心独白 ===== */
.inner-thought {
  background: rgba(30,15,50,0.82);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: 6px;
  max-width: 78vw;
  border: 1px solid rgba(168,85,247,0.25);
  animation: fadeInThought 0.3s ease;
}
@keyframes fadeInThought {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.inner-thought-label {
  font-size: 10px;
  color: rgba(200,160,255,0.5);
  letter-spacing: 1px;
  display: block;
  margin-bottom: 6px;
}
.it-en {
  font-size: 13px;
  color: rgba(240,220,255,0.9);
  line-height: 1.5;
  font-style: italic;
}
.it-zh {
  font-size: 11px;
  color: rgba(180,140,240,0.6);
  margin-top: 3px;
  line-height: 1.4;
}
