/* 情侣空间 - 温馨可爱高级感设计 */

#couple-space-page {
    background: linear-gradient(135deg, #ffeef8 0%, #fff5f7 50%, #f0f8ff 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: none;
}

/* 隐藏底部导航栏 */
#couple-space-page ~ .bottom-nav,
body:has(#couple-space-page[style*="display: block"]) .bottom-nav,
body:has(#couple-space-page[style*="display:block"]) .bottom-nav {
    display: none !important;
}

/* 字体导入 - 卷曲意大利斜体花体 */
@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&family=Italianno&family=Monsieur+La+Doulaise&family=Mr+De+Haviland&family=Pinyon+Script&family=Herr+Von+Muellerhoff&family=Ephesis&display=swap');

/* 本地手写字体 - 刘建毛草 */
@font-face {
    font-family: 'Liu Jian Mao Cao';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/LiuJianMaoCao-Regular.ttf') format('truetype');
}

/* 顶部导航 */
.couple-space-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(255, 182, 193, 0.1);
}

.back-btn,
.settings-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, #ffe4e9, #ffd4e0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
}

.back-btn:hover,
.settings-btn:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.3);
}

.back-btn svg,
.settings-btn svg {
    width: 20px;
    height: 20px;
    color: #ff6b9d;
}

.header-title {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.title-en {
    font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', 'Monsieur La Doulaise', 'Tangerine', cursive;
    font-size: 40px;
    font-weight: 400;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
    line-height: 1.2;
}

.title-zh {
    font-size: 12px;
    color: #ff8fab;
    font-weight: 500;
    letter-spacing: 2px;
}

/* 飘动的装饰元素 */
.floating-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart,
.floating-star,
.floating-cloud {
    position: absolute;
    font-size: 24px;
    opacity: 0.3;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.floating-heart {
    color: #ff6b9d;
}

.heart-1 {
    top: 10%;
    left: 10%;
    animation: float 8s infinite;
    animation-delay: 0s;
}

.heart-2 {
    top: 30%;
    right: 15%;
    animation: float 10s infinite;
    animation-delay: 2s;
}

.heart-3 {
    bottom: 20%;
    left: 20%;
    animation: float 9s infinite;
    animation-delay: 4s;
}

.floating-star {
    color: #ffd700;
}

.star-1 {
    top: 15%;
    right: 10%;
    animation: twinkle 6s infinite;
    animation-delay: 1s;
}

.star-2 {
    bottom: 30%;
    right: 20%;
    animation: twinkle 7s infinite;
    animation-delay: 3s;
}

.floating-cloud {
    color: #b0d4f1;
    font-size: 32px;
}

.cloud-1 {
    top: 20%;
    left: 5%;
    animation: drift 20s infinite;
}

.cloud-2 {
    top: 60%;
    right: 5%;
    animation: drift 25s infinite;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-30px) rotate(3deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2) rotate(180deg);
    }
}

@keyframes drift {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(30px);
    }
    100% {
        transform: translateX(0);
    }
}

/* 主内容区 */
.couple-space-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* 情侣卡片 */
.couple-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 245, 0.95));
    border-radius: 30px;
    padding: 30px 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(255, 182, 193, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
}

.couple-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.1) 0%, transparent 70%);
    animation: shimmer 10s infinite;
}

@keyframes shimmer {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10%, 10%);
    }
}

.couple-avatars {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 20px;
    position: relative;
}

.avatar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.avatar-frame {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.left-avatar .avatar-frame {
    animation-delay: 0s;
}

.right-avatar .avatar-frame {
    animation-delay: 1.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(255, 107, 157, 0.5);
    }
}

.avatar-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: white;
}

.avatar-name {
    font-size: 14px;
    font-weight: 600;
    color: #ff6b9d;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 心形连接器 */
.heart-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.heart-pulse {
    width: 60px;
    height: 60px;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.1);
    }
    20%, 40% {
        transform: scale(1);
    }
}

.heart-icon {
    width: 100%;
    height: 100%;
    color: #ff6b9d;
    filter: drop-shadow(0 4px 10px rgba(255, 107, 157, 0.4));
}

.connecting-line {
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, #ff6b9d, transparent);
    margin: 5px 0;
}

.love-days {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #fff0f5, #ffe4e9);
    padding: 10px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
}

.days-number {
    font-family: 'Pacifico', cursive;
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.days-label {
    font-size: 20px;
    color: #ff8fab;
    letter-spacing: 1px;
    font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', 'Tangerine', 'Italianno', cursive;
    font-weight: 700;
    font-style: italic;
}

/* 情侣座右铭 */
.couple-motto {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    border: 1px dashed #ffb6c1;
}

.motto-icon {
    font-size: 20px;
    color: #ff8fab;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.motto-text {
    font-size: 15px;
    color: #c44569;
    font-weight: 500;
    text-align: center;
    letter-spacing: 1px;
}

/* 通用区块样式 */
.anniversary-section,
.love-records-section,
.couple-tasks-section,
.mood-weather-section,
.message-board-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px rgba(255, 182, 193, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 182, 193, 0.2);
}

.section-icon {
    font-size: 24px;
}

.section-title-en {
    font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', 'Mr De Haviland', 'Herr Von Muellerhoff', cursive;
    font-size: 30px;
    font-weight: 400;
    font-style: italic;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

.section-title-zh {
    font-size: 12px;
    color: #ff8fab;
    margin-left: 5px;
    letter-spacing: 1px;
}

/* 纪念日列表 */
.anniversary-list {
    display: grid;
    gap: 15px;
}

.anniversary-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff5f7, #fffafc);
    border-radius: 15px;
    border: 2px solid #ffe4e9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.anniversary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
    border-color: #ffb6c1;
}

.anniversary-item.add-anniversary {
    border-style: dashed;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
}

.anniversary-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe4e9, #ffd4e0);
    border-radius: 15px;
    flex-shrink: 0;
}

.anniversary-info {
    flex: 1;
}

.anniversary-name {
    font-size: 16px;
    font-weight: 600;
    color: #c44569;
    margin-bottom: 4px;
}

.anniversary-date {
    font-size: 14px;
    color: #ff8fab;
}

.anniversary-countdown {
    font-size: 14px;
    color: #ff6b9d;
    font-weight: 600;
}

/* 爱的记录网格 */
.records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.record-card {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #fff5f7, #fffafc);
    border: 2px solid #ffe4e9;
}

.record-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 182, 193, 0.3);
}

.record-card.add-record {
    border-style: dashed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.5);
}

.record-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.record-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.record-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.record-date {
    font-size: 12px;
    opacity: 0.9;
}

/* 任务列表 */
.tasks-list {
    display: grid;
    gap: 12px;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #fff5f7, #fffafc);
    border-radius: 15px;
    border: 2px solid #ffe4e9;
    transition: all 0.3s ease;
    cursor: pointer;
}

.task-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
}

.task-item.add-task {
    border-style: dashed;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
}

.task-item.completed {
    opacity: 0.6;
}

.task-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #ffb6c1;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.task-item.completed .task-checkbox {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border-color: #ff6b9d;
}

.task-checkbox::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: none;
}

.task-item.completed .task-checkbox::after {
    display: block;
}

.task-content {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.task-item.completed .task-content {
    text-decoration: line-through;
}

.task-date {
    font-size: 13px;
    color: #ff8fab;
}

/* 心情卡片 */
.mood-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.mood-card {
    padding: 20px;
    background: linear-gradient(135deg, #fff5f7, #fffafc);
    border-radius: 20px;
    border: 2px solid #ffe4e9;
    text-align: center;
}

.mood-label {
    font-size: 13px;
    color: #ff8fab;
    margin-bottom: 12px;
    font-weight: 500;
}

.mood-display {
    cursor: pointer;
    transition: all 0.3s ease;
}

.mood-display:hover {
    transform: scale(1.05);
}

.mood-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.mood-text {
    font-size: 14px;
    color: #c44569;
    font-weight: 600;
}

/* 情书区块 */
.love-letter-section,
.diary-section,
.moments-section {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px rgba(255, 182, 193, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.love-letter-content,
.diary-content,
.moments-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* AI 生成日记按钮 */
.diary-ai-generate {
    text-align: center;
    padding: 16px 0;
}

.generate-diary-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.generate-diary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}

.generate-diary-btn:active {
    transform: translateY(0);
}

.generate-diary-btn svg {
    width: 20px;
    height: 20px;
}

/* AI 生成徽章 */
.ai-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 11px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 500;
}

/* ==================== 日记本封面 ==================== */
.diary-book-cover {
    width: 280px;
    height: 360px;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    perspective: 1000px;
}

.diary-book-cover:hover {
    transform: translateY(-10px);
}

.book-spine {
    position: absolute;
    left: -20px;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(to right, #8b4513, #a0522d);
    border-radius: 4px 0 0 4px;
    box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.3);
}

.book-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d4a574 0%, #c89b60 100%);
    border-radius: 8px;
    padding: 40px 30px;
    box-shadow: 
        4px 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 0 0 2px rgba(139, 69, 19, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    border: 3px solid #8b4513;
}

.book-front::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(139, 69, 19, 0.2);
    border-radius: 4px;
    pointer-events: none;
}

.book-title {
    text-align: center;
    margin-top: 30px;
}

.book-title-main {
    font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', cursive;
    font-size: 42px;
    font-weight: 700;
    color: #5d4037;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
}

.book-title-sub {
    font-size: 16px;
    color: #6d4c41;
    letter-spacing: 3px;
    font-weight: 500;
}

.book-decoration {
    font-size: 48px;
    animation: bookSparkle 2s ease-in-out infinite;
}

@keyframes bookSparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) rotate(10deg);
        opacity: 1;
    }
}

.book-count {
    font-size: 18px;
    font-weight: 600;
    color: #5d4037;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.book-shadow {
    position: absolute;
    bottom: -15px;
    left: 10%;
    right: 10%;
    height: 10px;
    background: radial-gradient(ellipse, rgba(0, 0, 0, 0.3), transparent);
    border-radius: 50%;
}

/* ==================== 日记本翻页界面 ==================== */
.diary-book-modal {
    background: rgba(0, 0, 0, 0.8);
}

.diary-book-viewer {
    width: 98vw;
    max-width: 1600px;
    height: 90vh;
    background: transparent;
    box-shadow: none;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.diary-book-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 32px;
    color: #8b4513;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.diary-book-close:hover {
    background: #ffe4e9;
    transform: rotate(90deg);
}

.diary-book-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    width: 100%;
}

.diary-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(139, 69, 19, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #8b4513;
    flex-shrink: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.diary-prev-btn {
    left: 8px;
}

.diary-next-btn {
    right: 8px;
}

.diary-nav-btn:hover:not(:disabled) {
    background: white;
    border-color: #8b4513;
    transform: translateY(-50%) scale(1.1);
}

.diary-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.diary-page-display {
    flex: 1;
    width: 100%;
    max-width: none;
    height: 85vh;
    max-height: 800px;
    transition: all 0.3s ease;
}

/* ==================== 日记本页面样式 ==================== */
.diary-book-page-full {
    background: linear-gradient(135deg, #fffef9 0%, #fff9f0 100%);
    border-radius: 8px;
    box-shadow: 
        4px 4px 15px rgba(139, 69, 19, 0.2),
        0 0 0 1px rgba(139, 69, 19, 0.1);
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

/* ==================== 日记本页面样式（列表中的） ================== */
.diary-book-page {
    background: linear-gradient(135deg, #fffef9 0%, #fff9f0 100%);
    border-radius: 8px;
    padding: 0;
    margin-bottom: 20px;
    box-shadow: 
        2px 2px 8px rgba(139, 69, 19, 0.1),
        0 0 0 1px rgba(139, 69, 19, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 180px;
}

.diary-book-page:hover {
    transform: translateY(-3px) rotate(0.5deg);
    box-shadow: 
        3px 3px 12px rgba(139, 69, 19, 0.15),
        0 0 0 1px rgba(139, 69, 19, 0.08);
}

/* 左侧装订线区域 */
.diary-page-left {
    width: 30px;
    background: linear-gradient(to right, #f5e6d3, #fffef9);
    border-right: 2px dashed rgba(139, 69, 19, 0.15);
    position: relative;
    flex-shrink: 0;
}

.page-decoration-line {
    position: absolute;
    left: 12px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(210, 105, 30, 0.3) 0px,
        rgba(210, 105, 30, 0.3) 8px,
        transparent 8px,
        transparent 16px
    );
}

/* 日记页内容区 */
.diary-page-content {
    flex: 1;
    width: 100%;
    padding: 24px 40px;
    background: 
        repeating-linear-gradient(
            transparent 0,
            transparent 31px,
            rgba(139, 69, 19, 0.08) 31px,
            rgba(139, 69, 19, 0.08) 32px
        );
    position: relative;
    overflow-y: auto;
}

/* 日记页头部 */
.diary-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(139, 69, 19, 0.15);
}

.diary-page-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.date-number {
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 16px;
    font-weight: 600;
    color: #8b4513;
    letter-spacing: 0.5px;
}

.date-weekday {
    font-size: 12px;
    color: #a0826d;
    font-weight: 500;
}

.diary-page-mood {
    font-size: 36px;
    line-height: 1;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.1));
}

/* 日记标题 */
.diary-page-title {
    font-size: 20px;
    font-weight: 700;
    color: #3e2723;
    margin-bottom: 18px;
    font-family: 'Microsoft YaHei', '微软雅黑', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

/* 日记正文 */
.diary-page-text {
    font-size: 15px;
    line-height: 2;
    color: #333333;
    font-family: 'Microsoft YaHei', '微软雅黑', 'STXingkai', '华文行楷', sans-serif;
    margin-bottom: 16px;
    word-break: break-word;
    text-align: justify;
}

.diary-page-text p {
    margin-bottom: 12px;
    text-indent: 2em;
}

.diary-page-text p:last-child {
    margin-bottom: 0;
}

/* 日记页脚 */
.diary-page-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid rgba(139, 69, 19, 0.1);
}

.diary-author {
    font-size: 13px;
    color: #8b4513;
    font-style: italic;
    font-family: 'STXingkai', '华文行楷', 'KaiTi', '楷体', serif;
}

/* AI 徽章在日记本中的样式 */
.diary-page-title .ai-badge {
    font-size: 10px;
    padding: 2px 6px;
    vertical-align: middle;
}

/* 瞬间列表项 */
#couple-space-page .moment-item {
    background: linear-gradient(135deg, #fff5f7, #fffafc);
    border-radius: 20px;
    padding: 20px;
    border: 2px solid #ffe4e9;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

#couple-space-page .moment-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
    border-color: #ffb6c1;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.item-icon {
    font-size: 40px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe4e9, #ffd4e0);
    border-radius: 15px;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #c44569;
    margin-bottom: 6px;
}

.item-meta {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #ff8fab;
}

.item-author {
    font-weight: 500;
}

.item-time {
    opacity: 0.8;
}

.item-content {
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* 空提示 */
.empty-hint {
    text-align: center;
    padding: 40px 20px;
    color: #ff8fab;
    font-size: 14px;
    opacity: 0.8;
}

/* 信匣子入口 */
.letter-mailbox {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5f7, #fffafc);
    border-radius: 20px;
    border: 2px solid #ffe4e9;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.letter-mailbox::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 182, 193, 0.2), transparent);
    transform: rotate(45deg);
    animation: mailboxShimmer 3s infinite;
}

@keyframes mailboxShimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(200%) rotate(45deg);
    }
}

.letter-mailbox:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
    border-color: #ffb6c1;
}

.mailbox-icon {
    font-size: 48px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe4e9, #ffd4e0);
    border-radius: 18px;
    flex-shrink: 0;
    animation: mailboxPulse 2s ease-in-out infinite;
}

@keyframes mailboxPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.mailbox-info {
    flex: 1;
}

.mailbox-title {
    font-size: 18px;
    font-weight: 600;
    color: #c44569;
    margin-bottom: 6px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.mailbox-count {
    font-size: 14px;
    color: #ff8fab;
    font-weight: 500;
}

.mailbox-arrow {
    font-size: 32px;
    color: #ff6b9d;
    font-weight: 300;
    animation: mailboxArrow 1.5s ease-in-out infinite;
}

@keyframes mailboxArrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

/* 信匣子模态框 */
.letter-mailbox-modal .modal-content {
    max-width: 600px;
}

.letter-list-body {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* 信封卡片 */
.letter-envelope-item {
    aspect-ratio: 1.5;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.letter-envelope-item:hover {
    transform: translateY(-8px) rotateX(5deg);
}

.envelope-item-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f7, #ffe4e9);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid #ffb6c1;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.letter-envelope-item:hover .envelope-item-front {
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.35);
    border-color: #ff8fab;
}

.envelope-item-seal {
    font-size: 32px;
    animation: sealFloat 2s ease-in-out infinite;
}

@keyframes sealFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-5px) rotate(10deg);
    }
}

.envelope-item-info {
    text-align: center;
    width: 100%;
}

.envelope-item-title {
    font-size: 13px;
    font-weight: 600;
    color: #c44569;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.envelope-item-from {
    font-size: 11px;
    color: #ff8fab;
    margin-bottom: 2px;
}

.envelope-item-time {
    font-size: 10px;
    color: #ffb6c1;
}

/* 信件详情模态框 */
.letter-detail-modal {
    z-index: 1001;
}

.letter-detail-modal .modal-content {
    max-width: 700px;
    background: transparent;
    box-shadow: none;
    padding: 0;
    position: relative;
}

.letter-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #ffe4e9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.letter-close-btn:hover {
    background: #ffe4e9;
    border-color: #ffb6c1;
}

/* 信封动画 */
.letter-envelope {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1.6;
    margin: 0 auto;
    position: relative;
    cursor: pointer;
    transition: all 0.6s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.envelope-front {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%);
    border-radius: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 3px solid #ffb6c1;
    box-shadow: 0 10px 40px rgba(255, 107, 157, 0.3);
    transition: all 0.6s ease;
}

.envelope-seal {
    font-size: 64px;
    animation: sealPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(255, 107, 157, 0.3));
}

@keyframes sealPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.envelope-from {
    font-size: 20px;
    font-weight: 600;
    color: #c44569;
    text-align: center;
    font-family: 'Snell Roundhand', 'Brush Script MT', cursive;
    letter-spacing: 1px;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(135deg, #ffe4e9 0%, #ffd4e0 100%);
    border-radius: 20px 20px 0 0;
    border: 3px solid #ffb6c1;
    border-bottom: none;
    transform-origin: top center;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1;
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.2);
}

.envelope-flap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-top: 100px solid #ffe4e9;
    filter: drop-shadow(0 2px 8px rgba(255, 107, 157, 0.2));
}

/* 拆信后的状态 */
.letter-envelope.opened .envelope-flap {
    transform: rotateX(-180deg);
    opacity: 0.3;
}

.letter-envelope.opened .envelope-front {
    opacity: 0.3;
    transform: scale(0.95);
}

/* 信纸 */
.letter-paper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 450px;
    background: #fffef9;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-height: 70vh;
    overflow-y: auto;
    border: 2px solid #f5e6d3;
}

/* 信纸打开后全屏显示 */
.letter-paper.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    padding: 40px;
}

.letter-paper-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5e6d3;
    margin-bottom: 20px;
}

.letter-title {
    font-size: 24px;
    font-weight: 600;
    color: #c44569;
    margin-bottom: 12px;
    font-family: 'Snell Roundhand', 'Brush Script MT', cursive;
}

.letter-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 13px;
}

.letter-author {
    color: #ff6b9d;
    font-weight: 600;
}

.letter-time {
    color: #ff8fab;
}

.letter-paper-body {
    font-size: 18px;
    line-height: 2.2;
    color: #2c3e50;
    white-space: pre-wrap;
    word-wrap: break-word;
    /* 使用优雅手写字体 - 华文行楷为主，工整又有艺术感 */
    font-family: 'STXingkai', '华文行楷', 'KaiTi', '楷体', 
                 'Microsoft YaHei', '微软雅黑', serif;
    text-align: left;
    text-indent: 2em;
    /* 优雅的字间距 */
    letter-spacing: 0.05em;
    word-spacing: 0.1em;
    font-weight: 400;
    /* 柔和的墨迹效果 */
    text-shadow: 0.5px 0.5px 0.8px rgba(0, 0, 0, 0.12);
}

.letter-paper-footer {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px dashed rgba(255, 139, 171, 0.2);
  text-align: center;
}

/* 字体切换按钮 */
.letter-font-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 139, 171, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ff8fab;
}

.letter-font-btn:hover {
  background: rgba(255, 139, 171, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.letter-font-btn svg {
  width: 18px;
  height: 18px;
}

/* 字体选择列表 */
.letter-font-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.letter-font-option {
  padding: 16px;
  border: 2px solid rgba(255, 139, 171, 0.2);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  background: #fff;
}

.letter-font-option:hover {
  border-color: rgba(255, 139, 171, 0.4);
  background: rgba(255, 244, 248, 0.5);
}

.letter-font-option.selected {
  border-color: #ff8fab;
  background: rgba(255, 244, 248, 0.8);
}

.font-option-preview {
  display: block;
  font-size: 24px;
  color: #c44569;
  margin-bottom: 8px;
}

.font-option-name {
  display: block;
  font-size: 13px;
  color: #666;
}

.delete-letter-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-letter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(238, 90, 111, 0.4);
}

/* 信纸纹理效果 */
.letter-paper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 31px,
            rgba(245, 230, 211, 0.3) 31px,
            rgba(245, 230, 211, 0.3) 32px
        );
    pointer-events: none;
    border-radius: 15px;
}

.letter-paper > * {
    position: relative;
    z-index: 1;
}

.letter-input-wrapper,
.diary-input-wrapper,
.moment-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(135deg, #fff5f7, #fffafc);
    border-radius: 15px;
    border: 2px solid #ffe4e9;
}

#letter-title,
#diary-title,
#moment-title {
    padding: 12px 15px;
    border: 2px solid #ffe4e9;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
}

#letter-content,
#diary-content,
#moment-content {
    padding: 12px 15px;
    border: 2px solid #ffe4e9;
    border-radius: 12px;
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    min-height: 100px;
}

#letter-title:focus,
#diary-title:focus,
#moment-title:focus,
#letter-content:focus,
#diary-content:focus,
#moment-content:focus {
    outline: none;
    border-color: #ffb6c1;
    background: #fffafc;
}

.diary-mood-selector,
.moment-type-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.diary-mood-selector label,
.moment-type-selector label {
    font-size: 14px;
    font-weight: 600;
    color: #c44569;
}

#diary-mood,
#moment-type {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #ffe4e9;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#diary-mood:focus,
#moment-type:focus {
    outline: none;
    border-color: #ffb6c1;
}

.send-letter-btn,
.save-diary-btn,
.record-moment-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.send-letter-btn:hover,
.save-diary-btn:hover,
.record-moment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.send-letter-btn svg,
.save-diary-btn svg,
.record-moment-btn svg {
    width: 16px;
    height: 16px;
}

.letter-list-body::-webkit-scrollbar,
.letter-paper::-webkit-scrollbar,
.diaries-list::-webkit-scrollbar,
.moments-list::-webkit-scrollbar {
    width: 6px;
}

.letter-list-body::-webkit-scrollbar-track,
.letter-paper::-webkit-scrollbar-track,
.diaries-list::-webkit-scrollbar-track,
.moments-list::-webkit-scrollbar-track {
    background: rgba(255, 182, 193, 0.1);
    border-radius: 3px;
}

.letter-list-body::-webkit-scrollbar-thumb,
.letter-paper::-webkit-scrollbar-thumb,
.diaries-list::-webkit-scrollbar-thumb,
.moments-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    border-radius: 3px;
}

.letter-list-body::-webkit-scrollbar-thumb:hover,
.letter-paper::-webkit-scrollbar-thumb:hover,
.diaries-list::-webkit-scrollbar-thumb:hover,
.moments-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c44569, #ff6b9d);
}

.diaries-list,
.moments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.letter-item,
.diary-item,
#couple-space-page .moment-item {
    padding: 15px;
    background: linear-gradient(135deg, #fff5f7, #fffafc);
    border-radius: 15px;
    border-left: 4px solid #ff6b9d;
    transition: all 0.3s ease;
}

.letter-item:hover,
.diary-item:hover,
#couple-space-page .moment-item:hover {
    transform: translateX(3px);
    box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
}

.item-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.item-icon {
    font-size: 32px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffe4e9, #ffd4e0);
    border-radius: 12px;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-title {
    font-size: 16px;
    font-weight: 600;
    color: #c44569;
    margin-bottom: 4px;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.item-author {
    color: #ff6b9d;
    font-weight: 600;
}

.item-time {
    color: #ff8fab;
}

.item-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.empty-hint {
    text-align: center;
    padding: 40px 20px;
    color: #ff8fab;
    font-size: 14px;
}

/* 通用添加按钮样式 */
.add-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffe4e9, #ffd4e0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ff6b9d;
    font-weight: 300;
}

.add-text {
    font-size: 14px;
    color: #ff8fab;
    font-weight: 500;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 25px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px;
    border-bottom: 2px solid #ffe4e9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 400;
    color: #c44569;
    font-family: 'Snell Roundhand', 'Brush Script MT', 'Segoe Script', 'Pinyon Script', 'Ephesis', cursive;
    font-style: italic;
    letter-spacing: 1px;
}

.close-modal {
    width: 32px;
    height: 32px;
    border: none;
    background: #ffe4e9;
    border-radius: 50%;
    font-size: 24px;
    color: #ff6b9d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #ffd4e0;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #c44569;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ffe4e9;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffb6c1;
    background: #fffafc;
}

.icon-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icon-option {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid #ffe4e9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-option:hover {
    border-color: #ffb6c1;
    background: #fff5f7;
    transform: scale(1.1);
}

.icon-option.selected {
    border-color: #ff6b9d;
    background: #ffe4e9;
}

.mood-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.mood-option {
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 2px solid #ffe4e9;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mood-option:hover {
    border-color: #ffb6c1;
    background: #fff5f7;
    transform: translateY(-3px);
}

.mood-option.selected {
    border-color: #ff6b9d;
    background: #ffe4e9;
}

.mood-option .mood-emoji {
    font-size: 36px;
    margin-bottom: 0;
}

.mood-option span:last-child {
    font-size: 13px;
    color: #c44569;
    font-weight: 500;
}

.modal-footer {
    padding: 20px;
    border-top: 2px solid #ffe4e9;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-secondary,
.btn-primary,
.btn-delete {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.btn-secondary:hover {
    background: #e5e5e5;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #c44569);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.btn-delete {
    background: #fee;
    color: #f56c6c;
}

.btn-delete:hover {
    background: #fdd;
    transform: translateY(-2px);
}

/* 删除日记按钮（固定在右上角） */
.delete-diary-page-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 143, 171, 0.3);
    color: #ff8fab;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(255, 143, 171, 0.15);
}

.delete-diary-page-btn:hover {
    background: #fff0f5;
    border-color: #ff8fab;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(255, 143, 171, 0.3);
}

.delete-diary-page-btn:active {
    transform: scale(1.05);
}

/* 日记页码指示器 */
.diary-page-indicator {
    text-align: center;
    padding: 16px 20px;
    font-size: 15px;
    color: #8b4513;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 25px;
    box-shadow: 0 2px 12px rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.15);
    backdrop-filter: blur(10px);
    display: inline-block;
    min-width: 120px;
    margin: 0 auto;
}

.diary-page-indicator #diary-page-num {
    font-size: 18px;
    font-weight: 700;
    color: #c44569;
    margin: 0 4px;
}

.diary-page-indicator #diary-total-pages {
    font-weight: 600;
}

/* 日记页面全文显示 */
.diary-page-text-full {
    font-size: 16px;
    line-height: 2;
    color: #333333;
    font-family: 'Microsoft YaHei', '微软雅黑', 'STXingkai', '华文行楷', sans-serif;
    margin-bottom: 20px;
    word-break: break-word;
    text-align: justify;
    white-space: pre-wrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .couple-space-content {
        padding: 15px;
    }

    .couple-card {
        padding: 25px 15px;
    }

    .avatar-frame {
        width: 70px;
        height: 70px;
    }

    .title-en {
        font-size: 32px;
    }

    .section-title-en {
        font-size: 26px;
    }

    .records-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .mood-cards {
        grid-template-columns: 1fr;
    }

    .mood-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .header-title {
        gap: 1px;
    }

    .title-en {
        font-size: 30px;
    }

    .title-zh {
        font-size: 10px;
    }

    .couple-avatars {
        gap: 10px;
    }

    .avatar-frame {
        width: 60px;
        height: 60px;
    }

    .days-number {
        font-size: 24px;
    }

    .icon-selector {
        gap: 8px;
    }

    .icon-option {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
}
