/* ===== 基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 浪漫温馨粉色配色方案 */
    --primary-color: #FFF0F5;         /* 温柔粉底色 (Lavender Blush) */
    --accent-color: #FFB6C1;          /* 玫瑰粉色 (Light Pink) */
    --text-color: #8B003B;            /* 深粉色文字 */
    --emphasis-color: #FF69B4;        /* 热情粉色 (Hot Pink) */
    --secondary-color: #DB7093;       /* 中等粉色 (Pale Violet Red) */
    --light-accent: #FFE4E1;          /* 淡粉色背景 (Misty Rose) */
    --gold-accent: #FFDAB9;           /* 金粉色强调 (Peach Puff) */
    --coral-accent: #FFA07A;         /* 浅珊瑚色 (Light Salmon) */
    --soft-pink: #FFFAFA;            /* 暖白色 (Snow) */
    --warm-white: #FFF0F5;            /* 温柔粉白 */
    --deep-rose: #C71585;             /* 深玫瑰色 */
    --pale-pink: #F0DCD1;            /* 淡粉色调 */
    --romantic-pink: #FF69B4;        /* 浪漫粉色 (与emphasis-color相同) */

    /* 阴影效果 */
    --card-shadow: 0 8px 32px rgba(255, 182, 193, 0.15);
    --hover-shadow: 0 12px 48px rgba(255, 182, 193, 0.25);
    --romantic-shadow: 0 4px 20px rgba(255, 105, 180, 0.2);

    /* 背景渐变 */
    --bg-gradient: linear-gradient(135deg, #FFF0F5 0%, #FFE4E1 25%, #FFFAFA 50%, #FFF0F5 75%, #FFDAB9 100%);
    --card-gradient: linear-gradient(135deg, rgba(255, 250, 250, 0.95), #FFE4E1 80%);
    --hero-gradient: linear-gradient(135deg, rgba(255, 240, 245, 0.9) 0%, rgba(255, 228, 225, 0.85) 100%);

    /* 字体颜色 */
    --primary-text: #8B003B;          /* 主要文字 - 深粉色 */
    --secondary-text: #DB7093;        /* 次要文字 - 中等粉色 */
    --accent-text: #FF69B4;           /* 强调文字 - 热情粉色 */
    --light-text: #FFA07A;            /* 浅色文字 - 珊瑚色 */
    --warm-text: #C71585;             /* 温暖文字 - 深玫瑰 */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', 'Source Han Sans', sans-serif;
    line-height: 1.6;
    color: var(--primary-text);
    background: linear-gradient(135deg, #FFF0F5 0%, #FFE4E1 20%, #FFFAFA 40%, #FFE4E1 60%, #FFF0F5 80%, #FFDAB9 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* 背景容器 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.romantic-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bg-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* 浮动花瓣容器 */
.floating-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

/* 粒子场 */
.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 字体样式 ===== */
.handwritten {
    font-family: 'Ma Shan Zheng', cursive;
}

.poem-text {
    font-family: 'Playfair Display', 'Source Han Serif', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
}

.italic {
    font-style: italic;
    opacity: 0.9;
}

/* ===== 导航栏 ===== */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 240, 245, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 182, 193, 0.3);
}

.nav-container.scrolled {
    padding: 0.5rem 0;
    background: rgba(255, 240, 245, 0.98);
}

.nav-logo {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ===== 通用区块样式 ===== */
.section {
    min-height: 100vh;
    padding: 6rem 0 4rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--secondary-color);
    opacity: 0.8;
}

/* ===== 开篇英雄区域 ===== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(255, 240, 245, 0.95) 0%,
        rgba(255, 228, 225, 0.95) 50%,
        rgba(255, 250, 250, 0.95) 100%),
        radial-gradient(circle at 20% 50%, rgba(255, 182, 193, 0.15) 0%, transparent 70%);
    overflow: hidden;
}

/* 固定背景装饰 */
.fixed-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-flowers {
    position: relative;
    width: 100%;
    height: 100%;
}

.left-flower {
    position: absolute;
    top: 10%;
    left: 5%;
    opacity: 0.6;
    animation: gentleFloat 8s ease-in-out infinite;
}

.right-flower {
    position: absolute;
    top: 15%;
    right: 5%;
    opacity: 0.6;
    animation: gentleFloat 8s ease-in-out infinite 2s;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-15px) rotate(2deg);
    }
    66% {
        transform: translateY(-8px) rotate(-1deg);
    }
}

/* 固定内容容器 */
.fixed-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

.poem-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.poem-title {
    font-size: 4rem;
    color: var(--emphasis-color);
    margin-bottom: 2rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    animation: titleGlow 4s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2),
                     0 0 30px rgba(198, 40, 40, 0.3);
    }
    100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2),
                     0 0 40px rgba(198, 40, 40, 0.5);
    }
}

.poem-verse {
    margin: 2rem 0;
}

.poem-line {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    margin: 1rem 0;
    font-family: 'Playfair Display', serif;
}

.main-line {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--emphasis-color);
    font-family: 'Ma Shan Zheng', cursive;
}

.sub-line {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-top: 1rem;
}

.decorative-divider {
    margin: 2rem auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

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

.poem-meaning {
    margin: 2rem 0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1s forwards;
}

.meaning-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-color);
    margin: 1rem 0;
}

.meaning-emphasis {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-color);
    font-family: 'Ma Shan Zheng', cursive;
    margin-top: 1.5rem;
}

.floating-hearts {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

.heart {
    font-size: 2rem;
    display: inline-block;
    animation: heartbeat 2s ease-in-out infinite;
}

.heart:nth-child(2) {
    animation-delay: 0.5s;
}

.heart:nth-child(3) {
    animation-delay: 1s;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.05);
    }
}

.floating-petals {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-petals::before,
.floating-petals::after {
    content: '🌸';
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float 8s infinite ease-in-out;
}

.floating-petals::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-petals::after {
    top: 60%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.8;
    }
    50% {
        transform: translateY(10px) rotate(-5deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-10px) rotate(3deg);
        opacity: 0.7;
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--emphasis-color);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
    font-style: italic;
}

.hero-quote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-quote p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color);
}

/* ===== 倒计时容器 ===== */
.countdown-container {
    background: linear-gradient(135deg, rgba(255, 250, 250, 0.9), rgba(255, 240, 245, 0.85));
    backdrop-filter: blur(15px);
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    padding: 3rem;
    margin: 2rem 0;
    box-shadow: 0 15px 50px rgba(255, 105, 180, 0.2);
    position: relative;
    overflow: hidden;
}

.countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(212, 175, 55, 0.1) 50%,
        transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.countdown-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 3.5rem;
    color: var(--emphasis-color);
    margin-bottom: 1.5rem;
    text-shadow: 3px 3px 6px rgba(139, 0, 59, 0.4);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3),
                     0 0 30px rgba(255, 107, 157, 0.3);
    }
    100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3),
                     0 0 30px rgba(255, 107, 157, 0.5);
    }
}

.countdown-subtitle {
    font-size: 1.3rem;
    color: var(--warm-text);
    margin-bottom: 2rem;
    font-style: italic;
}

/* 曼殊沙华装饰 */
.flower-decoration {
    position: absolute;
    top: -30px;
    right: -20px;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 倒计时显示 */
.countdown-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.time-unit {
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(255, 250, 250, 0.95), rgba(255, 240, 245, 0.9));
    border-radius: 15px;
    padding: 1.2rem 0.8rem;
    border: 1px solid rgba(255, 182, 193, 0.4);
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.2);
}

.time-value {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: #8B003B;
    text-shadow: 2px 2px 3px rgba(139, 0, 59, 0.3);
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    position: relative;
    z-index: 10;
}

.time-label {
    display: block;
    font-size: 0.9rem;
    color: #C71585;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(199, 21, 133, 0.2);
    position: relative;
    z-index: 10;
}

/* 诗意消息 */
.poetic-message {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.poetic-message p {
    margin: 0.5rem 0;
}

.poetic-message .highlight-text {
    color: var(--emphasis-color);
    font-weight: 600;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.3rem;
    display: block;
    margin-top: 1rem;
}

/* 浪漫消息 */
.romantic-message {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 5px solid var(--emphasis-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.romantic-message p {
    margin: 0.8rem 0;
}

.romantic-message .highlight-text {
    color: var(--emphasis-color);
    font-weight: 600;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    display: block;
    margin-top: 1rem;
}

/* ===== 滚动指示器 ===== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===== 内容网格 ===== */
.content-grid {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.text-card {
    background: linear-gradient(135deg, rgba(255, 250, 250, 0.85), rgba(255, 240, 245, 0.75));
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.25);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.text-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.text-card.highlight {
    background: linear-gradient(135deg,
        rgba(255, 182, 193, 0.2) 0%,
        rgba(255, 250, 250, 0.85) 50%,
        rgba(255, 228, 225, 0.8) 100%);
    border-color: var(--emphasis-color);
}

.text-card.highlight .poem-text {
    color: var(--emphasis-color);
    font-size: 1.2rem;
}

.highlight-text {
    color: var(--emphasis-color);
    font-weight: 600;
    font-size: 1.1rem;
}

/* ===== 时间轴 ===== */
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-color) 0%, var(--light-accent) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-icon {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    padding: 15px;
    background: linear-gradient(135deg, var(--accent-color), var(--emphasis-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4);
    z-index: 2;
    box-sizing: border-box;
}

.timeline-content {
    width: calc(50% - 40px);
    background: linear-gradient(135deg, rgba(255, 250, 250, 0.9), rgba(255, 240, 245, 0.8));
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.3);
    box-shadow: var(--card-shadow);
}

.timeline-content p {
    margin-bottom: 1rem;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.poetic-text {
    font-style: italic;
    color: var(--secondary-color);
    padding: 1rem;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
}

/* ===== 时刻容器 ===== */
.moment-container {
    max-width: 900px;
    margin: 0 auto;
}

.moment-text {
    text-align: center;
    margin-bottom: 3rem;
}

.date-highlight {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    color: var(--emphasis-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.moment-desc {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.metaphor-card {
    background: linear-gradient(135deg,
        rgba(255, 218, 185, 0.25) 0%,
        rgba(255, 250, 250, 0.9) 50%,
        rgba(255, 240, 245, 0.85) 100%);
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    margin: 3rem 0;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 182, 193, 0.4);
    box-shadow: 0 10px 40px rgba(255, 105, 180, 0.2);
}

.metaphor-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.heart-beat-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.3rem;
    color: var(--emphasis-color);
    animation: heartBeat 2s infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    10%, 30% {
        transform: scale(1.05);
    }
    20% {
        transform: scale(1.1);
    }
}

.journey-text {
    text-align: center;
    margin-top: 3rem;
}

/* ===== 对话流 ===== */
.conversation-flow {
    max-width: 900px;
    margin: 0 auto;
}

.flow-card {
    background: linear-gradient(135deg, rgba(255, 250, 250, 0.85), rgba(255, 240, 245, 0.75));
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.25);
    transition: all 0.3s ease;
}

.flow-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.flow-card.emotional {
    background: linear-gradient(135deg,
        rgba(255, 105, 180, 0.15) 0%,
        rgba(255, 250, 250, 0.9) 50%,
        rgba(255, 228, 225, 0.85) 100%);
    border-color: var(--emphasis-color);
}

.flow-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.dreams-list {
    background: linear-gradient(135deg, rgba(255, 250, 250, 0.85), rgba(255, 240, 245, 0.75));
    padding: 2.5rem;
    border-radius: 20px;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.25);
}

.dream-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.dream-items {
    list-style: none;
    padding: 0;
}

.dream-items li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.dream-items li:hover {
    transform: translateX(5px);
    box-shadow: var(--card-shadow);
}

.realization-card {
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.15) 0%,
        rgba(255, 255, 255, 0.9) 100%);
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    backdrop-filter: blur(15px);
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.realization-text {
    font-size: 1.2rem;
    line-height: 1.9;
}

.highlight-line {
    color: var(--emphasis-color);
    font-weight: 600;
    font-size: 1.3rem;
    display: block;
    margin-top: 1rem;
    font-family: 'Ma Shan Zheng', cursive;
}

/* ===== 相遇时刻 ===== */
.meeting-moment {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.moment-quote.large-text {
    margin-bottom: 3rem;
}

.large-text p {
    font-size: 1.4rem;
    line-height: 2;
    margin-bottom: 1rem;
}

.impact-text {
    color: var(--emphasis-color);
    font-weight: 700;
    font-size: 1.8rem;
    font-family: 'Ma Shan Zheng', cursive;
    display: block;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.emotional-release {
    margin: 3rem 0;
}

.release-text {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-color);
}

.gratitude-card {
    background: linear-gradient(135deg,
        rgba(198, 40, 40, 0.1) 0%,
        rgba(255, 255, 255, 0.9) 100%);
    padding: 3rem;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 2px solid var(--emphasis-color);
    box-shadow: 0 10px 40px rgba(198, 40, 40, 0.15);
}

.gratitude-text {
    font-size: 1.3rem;
    line-height: 2;
    color: var(--text-color);
}

/* ===== 未来憧憬 ===== */
.dreams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.dream-category {
    background: linear-gradient(135deg, rgba(255, 250, 250, 0.9), rgba(255, 240, 245, 0.8));
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.25);
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.dream-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.dream-category h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.dream-category ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.dream-category li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.3s ease;
}

.dream-category li:last-child {
    border-bottom: none;
}

.dream-category li:hover {
    color: var(--accent-color);
    padding-left: 10px;
}

.ending-promise {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg,
        rgba(255, 218, 185, 0.2) 0%,
        rgba(255, 250, 250, 0.9) 50%,
        rgba(255, 240, 245, 0.85) 100%);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 182, 193, 0.3);
}

.promise-text {
    font-size: 1.3rem;
    line-height: 1.9;
    color: var(--text-color);
}

.final-line {
    color: var(--emphasis-color);
    font-weight: 600;
    font-size: 1.5rem;
    font-family: 'Ma Shan Zheng', cursive;
    display: block;
    margin-top: 1rem;
}

/* ===== 相册 ===== */
.gallery-upload {
    text-align: center;
    margin-bottom: 3rem;
}

.upload-area {
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed var(--accent-color);
    border-radius: 20px;
    padding: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.upload-area:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: var(--emphasis-color);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.photo-placeholder {
    background: rgba(255, 255, 255, 0.6);
    border: 2px dashed var(--secondary-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    color: var(--secondary-color);
}

.placeholder-content span {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--text-color);
    color: var(--primary-color);
    padding: 3rem 0;
    text-align: center;
}

.footer-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-date {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(248, 244, 230, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        border-bottom: 2px solid var(--accent-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
        margin-left: 60px;
    }

    .timeline-content {
        width: calc(100% - 40px);
    }

    .timeline-icon {
        left: 30px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .dreams-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .content-grid,
    .moment-container,
    .conversation-flow,
    .meeting-moment {
        padding: 0 1rem;
    }

    .text-card,
    .flow-card,
    .metaphor-card,
    .realization-card,
    .gratitude-card,
    .dreams-list,
    .ending-promise {
        padding: 1.5rem;
    }

    .music-player {
        flex-direction: column;
        padding: 1.5rem;
    }

    .track-info {
        text-align: center;
    }

    /* 移动端倒计时文字居中优化 */
    .info-item {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1rem 0;
    }

    .info-text {
        width: 100%;
    }

    .info-text strong {
        font-size: 1.1rem;
    }

    .info-text span {
        font-size: 1rem;
    }

    .meeting-info {
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

/* ===== 倒计时页面样式 ===== */
.countdown-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg,
        rgba(255, 240, 245, 0.8) 0%,
        rgba(255, 228, 225, 0.75) 50%,
        rgba(255, 250, 250, 0.85) 100%);
    position: relative;
    overflow: hidden;
}

.countdown-wrapper {
    text-align: center;
    max-width: 800px;
    z-index: 10;
    position: relative;
}

.flower-decoration {
    position: absolute;
    top: -50px;
    right: -30px;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.man-shu-sha-hua {
    filter: drop-shadow(0 0 20px rgba(255, 107, 157, 0.3));
}

.countdown-title {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 4rem;
    color: var(--romantic-pink);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.countdown-subtitle {
    font-size: 1.5rem;
    color: var(--light-accent);
    margin-bottom: 3rem;
    font-style: italic;
}

.countdown-display {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.time-unit {
    text-align: center;
    position: relative;
}

.time-value {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--emphasis-color);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: pulse 2s ease-in-out infinite;
    /* 改进文本渲染 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /* 优化移动端显示 */
    transform: translateZ(0);
    backface-visibility: hidden;
    /* 保持渐变效果但提高清晰度 */
    background: linear-gradient(45deg, var(--emphasis-color), var(--romantic-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* 备用颜色方案，防止渐变失效时文字消失 */
    @supports not (-webkit-background-clip: text) {
        color: var(--emphasis-color);
        background: none;
        text-shadow: 2px 2px 8px rgba(255, 105, 180, 0.3),
                     0 0 20px rgba(255, 105, 180, 0.2);
    }
}

.time-label {
    font-size: 1rem;
    color: var(--light-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.meeting-info {
    background: linear-gradient(135deg, rgba(255, 250, 250, 0.8), rgba(255, 240, 245, 0.7));
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid rgba(255, 182, 193, 0.4);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    text-align: center;
}

.info-icon {
    color: var(--light-accent);
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.info-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-text strong {
    display: block;
    color: var(--emphasis-color);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    text-align: center;
    font-family: 'Ma Shan Zheng', cursive;
    text-shadow: 1px 1px 2px rgba(139, 0, 59, 0.2);
}

.info-text span {
    color: var(--primary-text);
    font-size: 1.1rem;
    text-align: center;
    font-weight: 500;
}

.romantic-message {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 250, 250, 0.85), rgba(255, 240, 245, 0.75));
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 182, 193, 0.3);
    margin-top: 2rem;
}

.romantic-message p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

.romantic-message .highlight-text {
    color: var(--emphasis-color);
    font-weight: 600;
    font-size: 1.4rem;
    font-family: 'Ma Shan Zheng', cursive;
    display: block;
    margin-top: 1rem;
    text-shadow: 1px 1px 2px rgba(139, 0, 59, 0.2);
}

/* ===== SVG场景样式 ===== */
.hero-svg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-flowers {
    width: 100%;
    height: 100%;
}

.flower-1, .flower-2, .flower-3 {
    animation: floatFlower 8s ease-in-out infinite;
}

.flower-2 {
    animation-delay: 2s;
}

.flower-3 {
    animation-delay: 4s;
}

@keyframes floatFlower {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(5px) rotate(-3deg);
    }
    75% {
        transform: translateY(-5px) rotate(2deg);
    }
}

.card-icon {
    width: 40px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.scene-svg {
    margin: 2rem 0;
    text-align: center;
}

.rain-scene, .map-scene {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.rain-drops line {
    animation: rainFall 1s linear infinite;
}

.rain-drops line:nth-child(2) { animation-delay: 0.2s; }
.rain-drops line:nth-child(3) { animation-delay: 0.4s; }
.rain-drops line:nth-child(4) { animation-delay: 0.6s; }
.rain-drops line:nth-child(5) { animation-delay: 0.8s; }
.rain-drops line:nth-child(6) { animation-delay: 1s; }

@keyframes rainFall {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(80px);
        opacity: 0;
    }
}

.svg-scene {
    margin: 2rem 0;
    text-align: center;
}

.svg-scene-large {
    margin: 3rem 0;
    text-align: center;
}

.dawn-scene, .crowd-scene {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.sun-rays line {
    animation: sunRaysPulse 3s ease-in-out infinite;
}

.sun-rays line:nth-child(2) { animation-delay: 0.5s; }
.sun-rays line:nth-child(3) { animation-delay: 1s; }
.sun-rays line:nth-child(4) { animation-delay: 1.5s; }

@keyframes sunRaysPulse {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
}

.dream-house-svg {
    margin: 3rem 0;
    text-align: center;
}

.dream-house {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

/* ===== 粒子效果 ===== */
.particle {
    position: absolute;
    background: var(--romantic-pink);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
    animation: particleFloat 10s infinite ease-in-out;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
        transform: translateY(80vh) translateX(10px) scale(1);
    }
    90% {
        opacity: 0.6;
        transform: translateY(10vh) translateX(-10px) scale(1);
    }
    100% {
        transform: translateY(-10vh) translateX(0) scale(0);
        opacity: 0;
    }
}

/* ===== 浮动花瓣 ===== */
.floating-petal {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: petalFall 15s linear infinite;
    pointer-events: none;
}

@keyframes petalFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) rotate(360deg);
        opacity: 0;
    }
}

/* ===== 动画增强 ===== */
@keyframes titleGlow {
    0% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3),
                     0 0 20px rgba(255, 107, 157, 0.3);
    }
    100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3),
                     0 0 30px rgba(255, 107, 157, 0.5);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}


/* ===== 相册样式 ===== */

/* 相册区域 */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg,
        var(--soft-pink) 0%,
        var(--light-accent) 25%,
        var(--warm-white) 50%,
        var(--light-accent) 75%,
        var(--soft-pink) 100%);
    position: relative;
    overflow: hidden;
}

.gallery-section::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: floatingLight 15s ease-in-out infinite;
}

@keyframes floatingLight {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-50px, -50px) rotate(180deg); }
}

/* 上传区域 */
.upload-container {
    margin-bottom: 60px;
}

.upload-area {
    background: rgba(255, 255, 255, 0.9);
    border: 3px dashed var(--accent-color);
    border-radius: 25px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.upload-area::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle,
        rgba(255, 105, 180, 0.1) 0%,
        transparent 70%);
    transition: all 0.6s ease;
    opacity: 0;
}

.upload-area:hover::before {
    top: -150%;
    left: -150%;
    opacity: 1;
}

.upload-area:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 182, 193, 0.3);
    border-color: var(--emphasis-color);
    background: rgba(255, 255, 255, 0.95);
}

.upload-area.drag-over {
    background: rgba(255, 215, 0, 0.1);
    border-color: var(--gold-accent);
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(255, 215, 0, 0.4);
}

.upload-content {
    position: relative;
    z-index: 2;
}

.upload-icon {
    color: var(--accent-color);
    margin-bottom: 20px;
    display: inline-block;
    width: 60px;
    height: 60px;
    transition: all 0.4s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--emphasis-color);
}

.upload-content h3 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.upload-content p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 相册网格容器 */
.gallery-grid-container {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 20px 0;
    position: relative;
}

/* 照片项 */
.photo-item {
    position: relative;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.photo-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(255, 105, 180, 0.1) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-item:hover::before {
    opacity: 1;
}

.photo-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 70px rgba(255, 182, 193, 0.35);
    border-radius: 25px;
}

/* 上传中遮罩 */
.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
    backdrop-filter: blur(5px);
}

.upload-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 105, 180, 0.2);
    border-top: 4px solid var(--emphasis-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

.upload-overlay span {
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.upload-error-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.photo-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(1);
}

.photo-item:hover .photo-image {
    transform: scale(1.15);
    filter: brightness(1.1) saturate(1.2);
}

/* 照片覆盖层 */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

/* 照片操作按钮 */
.photo-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    transform: translateY(-10px);
    transition: transform 0.4s ease;
}

.photo-item:hover .photo-actions {
    transform: translateY(0);
}

.photo-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--text-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.photo-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.2) rotate(5deg);
    box-shadow: 0 8px 30px rgba(255, 182, 193, 0.4);
}

.photo-btn.delete-btn:hover {
    background: var(--emphasis-color);
    transform: scale(1.2) rotate(-5deg);
    box-shadow: 0 8px 30px rgba(255, 105, 180, 0.5);
}

/* 照片信息 */
.photo-info {
    color: white;
    transform: translateY(10px);
    transition: transform 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.photo-item:hover .photo-info {
    transform: translateY(0);
}

.photo-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-date {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* 占位符 */
.photo-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 2px dashed var(--accent-color);
    backdrop-filter: blur(10px);
}

.placeholder-content {
    opacity: 0.7;
}

.placeholder-content span {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.placeholder-content p {
    font-style: italic;
    color: var(--secondary-color);
}

/* 照片模态框 */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(20px);
    padding: 2rem;
}

.photo-modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.photo-modal.show .modal-content {
    transform: scale(1);
}

/* 模态框工具栏 */
.modal-toolbar {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    gap: 1rem;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.8));
    z-index: 10;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.modal-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modal-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
}

.delete-btn:hover {
    background: var(--emphasis-color);
    box-shadow: 0 5px 15px rgba(255, 105, 180, 0.5);
}

/* 图片容器（支持缩放） */
.modal-image-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.02);
    min-height: 200px;
    width: 100%;
}

.modal-image {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.modal-image:active {
    cursor: grabbing;
}

.modal-info {
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg,
        var(--soft-pink) 0%,
        var(--light-accent) 100%);
    z-index: 10;
    flex-shrink: 0;
}

.modal-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-info p {
    color: var(--secondary-color);
    font-size: 1rem;
    opacity: 0.9;
}

/* 动画效果 */
@keyframes photoEntry {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.8) rotate(-5deg);
    }
    50% {
        transform: translateY(-10px) scale(1.05) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes photoExit {
    0% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.6) rotate(-10deg);
    }
}

/* 删除确认对话框样式 */
.delete-confirm-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.delete-confirm-dialog.show {
    opacity: 1;
}

.delete-dialog-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.delete-confirm-dialog.show .delete-dialog-content {
    transform: scale(1);
}

.delete-dialog-icon {
    margin-bottom: 1.5rem;
}

.delete-dialog-content h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.delete-dialog-content p {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.delete-warning {
    color: var(--emphasis-color) !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin-top: 0.5rem !important;
}

.delete-dialog-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.delete-btn-cancel,
.delete-btn-confirm {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 100px;
}

.delete-btn-cancel {
    background: var(--light-accent);
    color: var(--text-color);
}

.delete-btn-cancel:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 182, 193, 0.3);
}

.delete-btn-confirm {
    background: var(--emphasis-color);
    color: white;
}

.delete-btn-confirm:hover {
    background: #C62828;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(198, 40, 40, 0.3);
}

/* 删除通知样式 */
.delete-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.delete-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 200px;
}

.delete-notification.success .notification-content {
    border-left: 4px solid #4caf50;
}

.delete-notification.error .notification-content {
    border-left: 4px solid #f44336;
}

.notification-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.delete-notification.success .notification-icon {
    color: #4caf50;
}

.delete-notification.error .notification-icon {
    color: #f44336;
}

.notification-text {
    color: var(--text-color);
    font-weight: 500;
}

/* ===== 日志样式 ===== */

/* 日志区域 */
.journal-section {
    padding: 80px 0;
    background: linear-gradient(135deg,
        var(--warm-white) 0%,
        var(--soft-pink) 25%,
        var(--gold-accent) 50%,
        var(--soft-pink) 75%,
        var(--warm-white) 100%);
    position: relative;
    overflow: hidden;
}

.journal-section::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle,
        rgba(255, 182, 193, 0.08) 0%,
        transparent 60%);
    animation: gentleFloat 20s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -20px) rotate(180deg); }
}

/* 写日志按钮 */
.write-journal-container {
    margin-bottom: 60px;
    text-align: center;
}

.write-journal-btn {
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 250, 250, 0.9) 100%);
    border: none;
    border-radius: 25px;
    padding: 2rem 3rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.write-journal-btn::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle,
        rgba(255, 105, 180, 0.1) 0%,
        transparent 70%);
    transition: all 0.6s ease;
    opacity: 0;
}

.write-journal-btn:hover::before {
    top: -150%;
    left: -150%;
    opacity: 1;
}

.write-journal-btn:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 60px rgba(255, 182, 193, 0.3);
}

.btn-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: all 0.4s ease;
}

.write-journal-btn:hover .btn-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--emphasis-color);
}

.btn-text h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.btn-text p {
    color: var(--secondary-color);
    font-size: 1rem;
    opacity: 0.9;
}

/* 日志容器 */
.journal-container {
    max-width: 800px;
    margin: 0 auto;
}

.journal-list {
    margin-top: 40px;
}

/* 日志列表项 */
.journal-list-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(255, 182, 193, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.journal-list-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(255, 182, 193, 0.2);
}

.journal-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.journal-item-header:hover {
    background: rgba(255, 182, 193, 0.05);
}

.journal-item-left {
    flex: 1;
}

.journal-item-title {
    color: var(--text-color);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0 0 0.8rem 0;
    line-height: 1.3;
}

.journal-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.journal-item-mood {
    font-size: 1.2rem;
    display: inline-block;
    animation: moodBounce 2s ease-in-out infinite;
}

.journal-item-date {
    color: var(--secondary-color);
    font-size: 0.85rem;
    opacity: 0.8;
}

.journal-item-image-count {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--secondary-color);
    font-size: 0.85rem;
    opacity: 0.8;
}

.journal-item-preview {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journal-item-arrow {
    color: var(--secondary-color);
    opacity: 0.6;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.journal-item-header:hover .journal-item-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.journal-item-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 182, 193, 0.1);
}

.journal-item-action-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--secondary-color);
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
}

.journal-item-action-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.journal-item-action-btn.edit-btn:hover {
    background: var(--gold-accent);
    color: var(--text-color);
}

.journal-item-action-btn.delete-btn:hover {
    background: var(--emphasis-color);
    color: white;
}

/* 日志详情模态框 */
.journal-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10005;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    padding: 2rem;
}

.journal-detail-modal.show {
    opacity: 1;
}

.journal-detail-content {
    background: white;
    border-radius: 25px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.journal-detail-modal.show .journal-detail-content {
    transform: scale(1);
}

.journal-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
}

.journal-detail-title-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.journal-detail-title {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.journal-detail-mood {
    font-size: 2rem;
    display: inline-block;
    animation: moodBounce 2s ease-in-out infinite;
}

.journal-detail-close {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
    flex-shrink: 0;
}

.journal-detail-close:hover {
    background: var(--emphasis-color);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.journal-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 182, 193, 0.05);
}

.journal-detail-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    opacity: 0.8;
}

.journal-detail-actions {
    display: flex;
    gap: 0.8rem;
}

.journal-detail-action-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--secondary-color);
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.journal-detail-action-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.journal-detail-action-btn.edit-btn:hover {
    background: var(--gold-accent);
    color: var(--text-color);
}

.journal-detail-action-btn.delete-btn:hover {
    background: var(--emphasis-color);
    color: white;
}

.journal-detail-content-text {
    padding: 2rem;
}

.journal-detail-text {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.1rem;
    white-space: pre-wrap;
}

.journal-detail-images {
    padding: 0 2rem 2rem;
}

.journal-detail-images-title {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.journal-detail-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.journal-detail-image-item {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.journal-detail-image-item:hover {
    transform: scale(1.05);
}

.journal-detail-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.journal-detail-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.journal-detail-image-item:hover .journal-detail-image-overlay {
    opacity: 1;
}

/* 图片查看模态框 */
.image-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10006;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.image-view-modal.show {
    opacity: 1;
}

.image-view-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-view-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    backdrop-filter: blur(10px);
}

.image-view-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.image-view-container {
    position: relative;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-view-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.image-view-info {
    background: white;
    padding: 1rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.image-view-info h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
    word-break: break-all;
}

/* 日志占位符 */
.journal-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    border: 2px dashed var(--accent-color);
    backdrop-filter: blur(10px);
}

.journal-placeholder .placeholder-content span {
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.journal-placeholder h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.journal-placeholder p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

/* 日志模态框 */
.journal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10003;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
    padding: 2rem;
}

.journal-modal.show {
    opacity: 1;
}

.journal-modal-content {
    background: white;
    border-radius: 25px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.journal-modal.show .journal-modal-content {
    transform: scale(1);
}

.journal-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
}

.journal-modal-header h2 {
    color: var(--text-color);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.journal-modal-close {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.journal-modal-close:hover {
    background: var(--emphasis-color);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.journal-modal-body {
    padding: 2rem;
}

.journal-form-group {
    margin-bottom: 2rem;
}

.journal-form-group label {
    display: block;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.journal-form-group input,
.journal-form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--light-accent);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--warm-white);
    color: var(--text-color);
}

.journal-form-group input:focus,
.journal-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.1);
}

.journal-form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.char-count {
    text-align: right;
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.7;
}

/* 心情选择器 */
.mood-selector {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.mood-btn {
    background: var(--warm-white);
    border: 2px solid var(--light-accent);
    border-radius: 20px;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mood-btn:hover {
    border-color: var(--accent-color);
    background: rgba(255, 182, 193, 0.1);
    transform: translateY(-2px);
}

.mood-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: scale(1.05);
}

/* 图片上传区域 */
.image-upload-area {
    border: 2px dashed var(--accent-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    background: var(--warm-white);
    transition: all 0.3s ease;
}

.image-upload-area:hover {
    border-color: var(--emphasis-color);
    background: rgba(255, 182, 193, 0.05);
}

.add-image-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.add-image-btn:hover {
    background: var(--emphasis-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.3);
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.image-preview-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: var(--emphasis-color);
    transform: scale(1.1);
}

/* 日志模态框底部 */
.journal-modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem 2rem;
    border-top: 1px solid rgba(255, 182, 193, 0.2);
}

.journal-btn-cancel,
.journal-btn-save {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.journal-btn-cancel {
    background: var(--light-accent);
    color: var(--text-color);
}

.journal-btn-cancel:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.journal-btn-save {
    background: var(--accent-color);
    color: white;
}

.journal-btn-save:hover {
    background: var(--emphasis-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 105, 180, 0.3);
}

/* 日志通知 */
.journal-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10004;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.journal-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.journal-notification .notification-content {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 200px;
}

.journal-notification.success .notification-content {
    border-left: 4px solid #4caf50;
}

.journal-notification.error .notification-content {
    border-left: 4px solid #f44336;
}

/* 导航栏认证选项样式 */
.nav-auth-item {
    display: none;
    transition: all 0.3s ease;
}

.nav-auth-item a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--accent-color) !important;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.nav-auth-item:hover a {
    color: var(--emphasis-color) !important;
    opacity: 1;
    transform: translateY(-1px);
}

.nav-auth-item svg {
    transition: all 0.3s ease;
}

.nav-auth-item:hover svg {
    transform: scale(1.1);
}

/* 移动端认证选项优化 */
@media (max-width: 768px) {
    .nav-auth-item {
        display: none !important;
    }
}

/* 减少动画偏好支持 */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}