/* ============================================
   COUPLE APP - INS风 简约黑白可爱风 完整样式
   ============================================ */

/* ===== 容器 ===== */
#coupleApp {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%; height: 100%;
    z-index: 100;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== 页面 ===== */
.cp-page {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    background: #fafafa;
    overflow: hidden;
}
.cp-sub { z-index: 2; }

/* ===== 通用导航栏 ===== */
.cp-nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    height: calc(50px + env(safe-area-inset-top, 0px));
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    z-index: 5;
}
.cp-nav-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: none; background: none;
    font-size: 16px; color: #222;
    cursor: pointer; border-radius: 50%;
    transition: background 0.2s;
}
.cp-nav-btn:active { background: #f0f0f0; }
.cp-nav-title {
    font-size: 16px; font-weight: 700; color: #222;
    letter-spacing: 0.5px;
}
.cp-nav-right { width: 36px; }

/* ===== 通用子页面内容 ===== */
.cp-sub-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

/* ===== 通用输入 ===== */
.cp-input {
    flex: 1;
    height: 40px;
    border: 1px solid #e8e8e8;
    border-radius: 20px;
    padding: 0 16px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}
.cp-input:focus { border-color: #222; }
.cp-input-bar {
    flex-shrink: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #f0f0f0;
}
.cp-send-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: #222; color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.15s;
}
.cp-send-btn:active { transform: scale(0.9); }

/* ===== 分区标题 ===== */
.cp-section-title {
    padding: 18px 20px 8px;
    font-size: 13px; font-weight: 700; color: #999;
    letter-spacing: 1px;
}

/* ============================================
   首页
   ============================================ */
.cp-home-header {
    flex-shrink: 0;
    position: relative;
    background: #222;
    color: #fff;
    padding-top: calc(50px + env(safe-area-inset-top, 0px));
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0 0 28px 28px;
}
.cp-home-back {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 12px; color: #fff;
}
.cp-home-switch {
    position: absolute;
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px; color: #fff;
}
.cp-home-avatars {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 14px;
}
.cp-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.8);
    background: #444;
    background-size: cover;
    background-position: center;
}
.cp-heart-anim {
    font-size: 22px; color: #ff6b81;
    animation: cp-heartbeat 1.4s ease-in-out infinite;
}
@keyframes cp-heartbeat {
    0%,100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.2); }
    65% { transform: scale(1); }
}
.cp-home-days {
    text-align: center;
}
.cp-home-days span {
    font-size: 12px; opacity: 0.7;
}
.cp-home-days h2 {
    font-size: 40px; font-weight: 800;
    margin: 2px 0;
    letter-spacing: 2px;
}

.cp-home-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ===== 首页菜单网格 ===== */
.cp-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 20px 16px 10px;
    margin-top: -18px;
    position: relative;
    z-index: 3;
}
.cp-menu-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 0;
    display: flex; flex-direction: column;
    align-items: center; gap: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.cp-menu-card:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.cp-menu-icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}
.cp-menu-card span {
    font-size: 11px; font-weight: 600; color: #333;
}

/* ===== FAB 生成按钮 ===== */
.cp-fab {
    position: absolute;
    bottom: calc(28px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: #222; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
}
.cp-fab:active { transform: scale(0.9); }

/* ===== 小纠结 ===== */
.cp-dilemma-section {
    padding: 0 16px 10px;
}
.cp-dilemma-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px 0 12px;
    -webkit-overflow-scrolling: touch;
}
.cp-dilemma-scroll::-webkit-scrollbar { display: none; }
.cp-dilemma-card {
    flex-shrink: 0;
    width: 140px;
    min-height: 100px;
    padding: 14px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.6;
    color: #333;
    position: relative;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
    transform: rotate(-1deg);
    font-family: 'Courier New', monospace;
}
.cp-dilemma-card:nth-child(2n) { transform: rotate(1.5deg); }
.cp-dilemma-card:nth-child(3n) { transform: rotate(-0.5deg); }

/* ============================================
   绑定页面
   ============================================ */
.cp-bind-body {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center;
    padding: 40px 24px;
    overflow-y: auto;
}
.cp-bind-icon { font-size: 56px; margin-bottom: 16px; }
.cp-bind-title { font-size: 22px; font-weight: 800; color: #222; margin-bottom: 6px; }
.cp-bind-desc { font-size: 13px; color: #999; margin-bottom: 24px; }
.cp-bind-list {
    width: 100%;
    max-height: auto;
    overflow-y: auto;
}
.cp-bind-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 14px;
    margin-bottom: 8px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.cp-bind-item:active { background: #f8f8f8; transform: scale(0.98); }
.cp-bind-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #eee;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.cp-bind-name { font-size: 15px; font-weight: 600; color: #222; }
.cp-bind-switch-label {
    font-size: 12px; font-weight: 700; color: #999;
    padding: 12px 0 4px;
    letter-spacing: 1px;
}
.cp-bind-divider {
    height: 1px; background: #f0f0f0;
    margin: 12px 0;
}

/* ============================================
   照片墙
   ============================================ */
.cp-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    padding: 3px;
}
.cp-photo-item {
    aspect-ratio: 1;
    background: #eee;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    transition: opacity 0.15s;
}
.cp-photo-item:active { opacity: 0.8; }
.cp-photo-add {
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border: 1px dashed #ddd;
    color: #ccc; font-size: 28px;
    cursor: pointer;
}
.cp-photo-add:active { background: #f8f8f8; }

/* 照片预览弹窗 */
.cp-photo-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.cp-photo-modal img {
    max-width: 100%; max-height: 100%;
    object-fit: contain;
}
.cp-photo-modal-close {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top, 0px));
    right: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none; background: rgba(255,255,255,0.15);
    color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}
.cp-photo-modal-del {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: 16px;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none; background: rgba(255,60,60,0.3);
    color: #fff; font-size: 16px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
}

/* ============================================
   碎碎念
   ============================================ */
.cp-note-list {
    padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.cp-note-card {
    background: #fff;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    position: relative;
}
.cp-note-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 8px;
}
.cp-note-av {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #eee;
    background-size: cover; background-position: center;
    flex-shrink: 0;
}
.cp-note-name { font-size: 13px; font-weight: 700; color: #222; }
.cp-note-time {
    font-size: 11px; color: #bbb;
    margin-left: auto;
}
.cp-note-body {
    font-size: 14px; line-height: 1.6; color: #333;
}
.cp-note-actions {
    display: flex; gap: 10px;
    margin-top: 8px; justify-content: flex-end;
}
.cp-note-act-btn {
    border: none; background: none;
    font-size: 12px; color: #bbb;
    cursor: pointer; padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s;
}
.cp-note-act-btn:active { color: #ff4d4f; }

/* ============================================
   恋爱日记
   ============================================ */
.cp-diary-list {
    padding: 16px;
    display: flex; flex-direction: column; gap: 14px;
}
.cp-diary-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}
.cp-diary-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #f8f8f8;
}
.cp-diary-author {
    display: flex; align-items: center; gap: 8px;
}
.cp-diary-av {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #eee;
    background-size: cover; background-position: center;
}
.cp-diary-author-name { font-size: 13px; font-weight: 700; color: #222; }
.cp-diary-date { font-size: 11px; color: #bbb; }
.cp-diary-content {
    padding: 14px 16px;
    font-size: 14px; line-height: 1.7; color: #333;
    white-space: pre-wrap;
}
.cp-diary-cover {
    padding: 30px 16px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    color: #bbb; font-size: 13px;
    transition: background 0.2s;
}
.cp-diary-cover:active { background: #f0f0f0; }
.cp-diary-comments {
    border-top: 1px solid #f0f0f0;
    padding: 10px 16px;
}
.cp-diary-comment {
    display: flex; gap: 6px;
    padding: 6px 0;
    font-size: 13px; color: #555;
}
.cp-diary-comment b { color: #222; font-weight: 700; }
.cp-diary-comment-input {
    display: flex; gap: 6px;
    padding: 8px 0 2px;
}
.cp-diary-comment-input input {
    flex: 1; border: 1px solid #eee;
    border-radius: 16px; padding: 6px 12px;
    font-size: 13px; outline: none;
}
.cp-diary-comment-input button {
    border: none; background: #222;
    color: #fff; border-radius: 16px;
    padding: 0 14px; font-size: 12px;
    cursor: pointer;
}
.cp-diary-actions {
    display: flex; gap: 8px;
}
.cp-diary-act-btn {
    border: none; background: none;
    font-size: 11px; color: #bbb;
    cursor: pointer; padding: 2px 6px;
}

/* ============================================
   许愿树
   ============================================ */
.cp-tree-body { padding: 0 16px; }
.cp-tree-status {
    display: flex; flex-direction: column;
    align-items: center;
    padding: 28px 0 16px;
}
.cp-tree-visual {
    font-size: 64px;
    margin-bottom: 12px;
    transition: font-size 0.3s;
}
.cp-tree-health-bar {
    width: 160px; height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}
.cp-tree-health-fill {
    height: 100%;
    background: #4caf50;
    border-radius: 4px;
    transition: width 0.4s;
}
.cp-tree-health-text {
    font-size: 12px; color: #999;
}
.cp-tree-actions {
    display: flex; gap: 10px;
    justify-content: center;
    padding-bottom: 20px;
}
.cp-tree-btn {
    border: 1px solid #e8e8e8;
    background: #fff;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px; font-weight: 600;
    color: #333; cursor: pointer;
    transition: background 0.15s;
}
.cp-tree-btn:active { background: #f5f5f5; }
.cp-wish-list {
    display: flex; flex-direction: column; gap: 10px;
    padding-bottom: 16px;
}
.cp-wish-card {
    background: #fffde7;
    border: 1px solid #fff9c4;
    border-radius: 12px;
    padding: 12px 16px;
    position: relative;
}
.cp-wish-card::before {
    content: '🏷️';
    position: absolute; top: -8px; right: 12px;
    font-size: 16px;
}
.cp-wish-sender {
    font-size: 12px; font-weight: 700; color: #999;
    margin-bottom: 4px;
}
.cp-wish-text { font-size: 14px; line-height: 1.5; color: #333; }
.cp-wish-time { font-size: 11px; color: #ccc; margin-top: 6px; }
.cp-water-log-list {
    display: flex; flex-direction: column; gap: 8px;
    padding-bottom: 20px;
}
.cp-water-log-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}
.cp-water-log-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.cp-water-log-info { flex: 1; }
.cp-water-log-name { font-size: 13px; font-weight: 700; color: #222; }
.cp-water-log-msg { font-size: 12px; color: #666; margin-top: 2px; }
.cp-water-log-time { font-size: 11px; color: #ccc; margin-top: 3px; }

/* ============================================
   宠物
   ============================================ */
.cp-pet-options {
    display: flex; gap: 16px;
}
.cp-pet-option {
    width: 100px; height: 110px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    background: #fff;
    border-radius: 20px;
    border: 2px solid #f0f0f0;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}
.cp-pet-option:active { transform: scale(0.95); border-color: #222; }
.cp-pet-option-emoji { font-size: 36px; }
.cp-pet-option span:last-child { font-size: 13px; font-weight: 600; color: #333; }

.cp-pet-body { padding: 0 16px; }
.cp-pet-status-area {
    padding: 16px 0;
}
.cp-pet-bars { display: flex; flex-direction: column; gap: 8px; }
.cp-pet-bar-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: #666;
}
.cp-pet-bar-row > span:first-child { width: 60px; }
.cp-pet-bar-row > span:last-child { width: 30px; text-align: right; font-weight: 700; }
.cp-pet-bar {
    flex: 1; height: 8px;
    background: #f0f0f0; border-radius: 4px;
    overflow: hidden;
}
.cp-pet-bar-fill {
    height: 100%;
    background: #ff6b81;
    border-radius: 4px;
    transition: width 0.3s;
}

.cp-pet-display {
    display: flex; align-items: center; justify-content: center;
    padding: 20px 0;
    position: relative;
}
.cp-pet-emoji-display {
    font-size: 80px;
    animation: cp-pet-idle 2s ease-in-out infinite;
}
@keyframes cp-pet-idle {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.cp-pet-img-display {
    position: relative;
    width: 200px; height: 200px;
    border-radius: 20px;
    overflow: hidden;
}
.cp-pet-img-display img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.cp-pet-region {
    position: absolute;
    left: 0; right: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.05);
    cursor: pointer;
    transition: background 0.15s;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.cp-pet-region:active { background: rgba(255,255,255,0.25); }
.cp-pet-region-head { top: 0; height: 33%; border-bottom: 1px dashed rgba(255,255,255,0.3); }
.cp-pet-region-body { top: 33%; height: 34%; border-bottom: 1px dashed rgba(255,255,255,0.3); }
.cp-pet-region-tail { top: 67%; height: 33%; }

.cp-pet-touch-btns {
    display: flex; flex-wrap: wrap;
    gap: 8px; justify-content: center;
    padding: 0 0 12px;
}
.cp-pet-act {
    border: 1px solid #e8e8e8;
    background: #fff;
    border-radius: 18px;
    padding: 8px 18px;
    font-size: 13px; font-weight: 600;
    color: #333; cursor: pointer;
    transition: all 0.15s;
}
.cp-pet-act:active { background: #222; color: #fff; border-color: #222; }

.cp-pet-care-btns {
    display: flex; gap: 10px;
    justify-content: center;
    padding: 4px 0 16px;
}
.cp-pet-care {
    border: none;
    background: #f5f5f5;
    border-radius: 14px;
    padding: 10px 16px;
    font-size: 13px; font-weight: 600;
    color: #333; cursor: pointer;
    transition: background 0.15s;
}
.cp-pet-care:active { background: #e8e8e8; }

.cp-pet-feedback {
    min-height: 50px;
    padding: 14px 16px;
    margin: 0 0 10px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    font-size: 14px; line-height: 1.6; color: #333;
    text-align: center;
    transition: all 0.3s;
}
.cp-pet-feedback:empty { display: none; }
.cp-pet-char-comment {
    padding: 12px 16px;
    margin: 0 0 10px;
    background: #222; color: #fff;
    border-radius: 16px;
    font-size: 13px; line-height: 1.5;
    position: relative;
}
.cp-pet-char-comment::before {
    content: '';
    position: absolute;
    top: -6px; left: 20px;
    width: 12px; height: 12px;
    background: #222;
    transform: rotate(45deg);
}
.cp-pet-log {
    padding: 0 0 20px;
    display: flex; flex-direction: column; gap: 6px;
}
.cp-pet-log-item {
    padding: 8px 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #f5f5f5;
    font-size: 12px; color: #666;
}
.cp-pet-log-item span { color: #bbb; margin-left: 6px; }

/* ============================================
   贴贴
   ============================================ */
.cp-cuddle-body { padding: 0 16px; }
.cp-cuddle-scene {
    padding: 24px 0 16px;
    text-align: center;
}
.cp-cuddle-scene p {
    font-size: 14px; color: #666;
    line-height: 1.7;
    font-style: italic;
}
.cp-cuddle-response {
    padding: 0 0 16px;
}
.cp-cuddle-bubble {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 18px 18px 18px 4px;
    padding: 14px 18px;
    font-size: 14px; line-height: 1.6; color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cp-cuddle-actions {
    display: flex; flex-wrap: wrap;
    gap: 8px; justify-content: center;
    padding: 0 0 14px;
}
.cp-cuddle-act {
    border: 1px solid #e8e8e8;
    background: #fff;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 13px; font-weight: 600;
    color: #333; cursor: pointer;
    transition: all 0.15s;
}
.cp-cuddle-act:active { background: #ff6b81; color: #fff; border-color: #ff6b81; }
.cp-cuddle-chat {
    display: flex; gap: 8px;
    padding: 0 0 8px;
}
.cp-cuddle-custom {
    display: flex; gap: 8px;
    padding: 0 0 16px;
}
.cp-cuddle-log {
    padding: 0 0 20px;
    display: flex; flex-direction: column; gap: 8px;
}
.cp-cuddle-log-item {
    padding: 10px 14px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f5f5f5;
    font-size: 13px; color: #333;
    line-height: 1.5;
}
.cp-cuddle-log-time {
    font-size: 11px; color: #ccc;
    margin-top: 4px;
}

/* ============================================
   纪念日
   ============================================ */
.cp-anniversary-list {
    padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.cp-anniv-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 16px;
    display: flex; align-items: center; gap: 14px;
}
.cp-anniv-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #f5f5f5;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.cp-anniv-info { flex: 1; }
.cp-anniv-title { font-size: 15px; font-weight: 700; color: #222; }
.cp-anniv-date { font-size: 12px; color: #999; margin-top: 2px; }
.cp-anniv-countdown {
    font-size: 11px; font-weight: 700;
    color: #ff6b81;
    margin-top: 3px;
}
.cp-anniv-added-by { font-size: 11px; color: #ccc; }
.cp-anniv-del {
    border: none; background: none;
    color: #ddd; font-size: 14px;
    cursor: pointer; padding: 4px;
}
.cp-anniv-del:active { color: #ff4d4f; }

/* ============================================
   甜蜜打卡
   ============================================ */
.cp-task-list {
    padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
}
.cp-task-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.15s;
}
.cp-task-item:active { background: #f8f8f8; }
.cp-task-check {
    width: 22px; height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    font-size: 12px; color: transparent;
}
.cp-task-check.done {
    background: #222; border-color: #222;
    color: #fff;
}
.cp-task-text {
    flex: 1;
    font-size: 14px; color: #333;
    transition: all 0.2s;
}
.cp-task-text.done {
    text-decoration: line-through;
    color: #bbb;
}
.cp-task-del {
    border: none; background: none;
    color: #ddd; font-size: 13px;
    cursor: pointer;
}
.cp-task-del:active { color: #ff4d4f; }

/* ============================================
   Loading 遮罩
   ============================================ */
.cp-loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.85);
    z-index: 99999;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 16px;
}
.cp-loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid #eee;
    border-top-color: #222;
    border-radius: 50%;
    animation: cp-spin 0.8s linear infinite;
}
@keyframes cp-spin { to { transform: rotate(360deg); } }
.cp-loading-text {
    font-size: 13px; color: #999;
    font-weight: 600;
}

/* ===== iOS Safari ===== */
@supports (-webkit-touch-callout: none) {
    #coupleApp { height: -webkit-fill-available; }
}
            /* ========== 美观弹窗 ========== */
            .cp-modal-overlay {
                position: fixed;
                inset: 0;
                background: rgba(0,0,0,0.45);
                z-index: 99999;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 20px;
                animation: cp-modal-fadein 0.2s;
            }
            @keyframes cp-modal-fadein {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            .cp-modal-box {
                background: #fff;
                border-radius: 20px;
                padding: 28px 24px 20px;
                max-width: 340px;
                width: 100%;
                box-shadow: 0 10px 40px rgba(0,0,0,0.2);
                animation: cp-modal-pop 0.25s cubic-bezier(0.34,1.56,0.64,1);
                text-align: center;
            }
            @keyframes cp-modal-pop {
                from { transform: scale(0.8); opacity: 0; }
                to { transform: scale(1); opacity: 1; }
            }
            .cp-modal-title {
                font-size: 16px;
                font-weight: 700;
                color: #333;
                margin-bottom: 14px;
            }
            .cp-modal-content {
                font-size: 14px;
                line-height: 1.8;
                color: #555;
                margin-bottom: 20px;
                white-space: pre-wrap;
                word-break: break-word;
                max-height: auto;
                overflow-y: auto;
                text-align: left;
                padding: 0 4px;
            }
            .cp-modal-btn {
                padding: 10px 28px;
                border: none;
                border-radius: 24px;
                background: linear-gradient(135deg, #e74c3c, #ff6b81);
                color: #fff;
                font-size: 14px;
                font-weight: 600;
                cursor: pointer;
                transition: transform 0.15s;
                min-width: 80px;
            }
            .cp-modal-btn:active {
                transform: scale(0.95);
            }
            .cp-modal-btns {
                display: flex;
                gap: 12px;
                justify-content: center;
            }
            .cp-modal-cancel {
                background: #f0f0f0 !important;
                color: #666 !important;
            }

            /* ========== Toast美化 ========== */
            .cp-toast {
                position: fixed;
                bottom: 80px;
                left: 50%;
                transform: translateX(-50%);
                background: rgba(50,50,50,0.9);
                color: #fff;
                padding: 10px 24px;
                border-radius: 24px;
                font-size: 13px;
                z-index: 99999;
                animation: cp-toast-in 0.3s;
                max-width: 280px;
                text-align: center;
                backdrop-filter: blur(10px);
                box-shadow: 0 4px 15px rgba(0,0,0,0.15);
            }

            /* ========== 贴贴 - 单图模式 ========== */
            .cp-cuddle-single-img-box {
                width: 100%;
                border-radius: 14px;
                overflow: hidden;
                margin-bottom: 14px;
                position: relative;
                background: #f9f3ee;
                min-height: 160px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .cp-cuddle-single-img-box img {
                max-width: 100%;
                max-height: 350px;
                object-fit: contain;
                border-radius: 14px;
            }
            .cp-cuddle-single-room-bg {
                width: 100%;
                aspect-ratio: 16/10;
                background-size: cover;
                background-position: center;
                border-radius: 14px;
                margin-bottom: 14px;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
            }
            .cp-cuddle-single-room-bg .room-label {
                position: absolute;
                bottom: 8px;
                right: 12px;
                font-size: 11px;
                background: rgba(0,0,0,0.4);
                color: #fff;
                padding: 2px 8px;
                border-radius: 6px;
            }
