/* Global Overrides */
body {
    margin: 0;
    padding: 0;
    font-family: 'Noto Sans SC', sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-serif {
    font-family: 'Noto Serif SC', serif;
}

/* Custom Selection */
::selection {
    background: rgba(244, 182, 194, 0.4);
    color: #fff;
}

/* Glassmorphism Utilities */
.glass {
    background: rgba(15, 20, 40, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-card {
    background: rgba(20, 25, 50, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-card-hover:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(244, 182, 194, 0.3);
    box-shadow: 0 12px 40px rgba(244, 182, 194, 0.15);
}

.glass-nav {
    background: rgba(11, 16, 32, 0.7);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #f4b6c2 0%, #fda4af 50%, #f9a8d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.floating {
    animation: float 4s ease-in-out infinite;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    opacity: 0;
}

/* Scrollbar hide */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Typing Cursor */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Shooting Star */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.8));
    transform: rotate(-45deg);
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

/* Spotlight Effect */
.spotlight-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    /* Base glass */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.15),
            transparent 40%);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.spotlight-card:hover::before {
    opacity: 1;
}

.spotlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.spotlight-content {
    position: relative;
    z-index: 1;
}

/* Heart Particle */
.heart-particle {
    position: fixed;
    pointer-events: none;
    font-size: 20px;
    z-index: 100;
    animation: heart-float 3s ease-out forwards;
}

@keyframes heart-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: translateY(-150px) scale(0.5) rotate(20deg);
    }
}

/* Love Rain */
.love-rain {
    position: fixed;
    top: -20px;
    font-size: 16px;
    animation: rain-fall linear forwards;
    pointer-events: none;
    z-index: 100;
}

@keyframes rain-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Pulse Glow */
.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(244, 182, 194, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(244, 182, 194, 0.8), 0 0 60px rgba(244, 182, 194, 0.4);
    }
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Heartbeat Animation */
.heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {

    0%,
    100% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.15);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.15);
    }

    70% {
        transform: scale(1);
    }
}

/* Fade In Up */
.fade-in-up {
    animation: fade-in-up 0.6s ease-out forwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale Up */
.scale-up {
    animation: scale-up 0.5s ease-out forwards;
}

@keyframes scale-up {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotate In */
.rotate-in {
    animation: rotate-in 0.6s ease-out forwards;
}

@keyframes rotate-in {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

/* Gallery Image Hover */
.gallery-img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-img:hover {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Music Player */
.music-btn {
    transition: all 0.3s ease;
}

.music-btn.playing {
    animation: music-pulse 1s ease-in-out infinite;
}

@keyframes music-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.music-wave {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 16px;
}

.music-wave span {
    width: 3px;
    background: #f4b6c2;
    border-radius: 2px;
    animation: wave 0.8s ease-in-out infinite;
}

.music-wave span:nth-child(1) {
    animation-delay: 0s;
    height: 8px;
}

.music-wave span:nth-child(2) {
    animation-delay: 0.1s;
    height: 12px;
}

.music-wave span:nth-child(3) {
    animation-delay: 0.2s;
    height: 6px;
}

.music-wave span:nth-child(4) {
    animation-delay: 0.3s;
    height: 14px;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.5);
    }
}

/* Counter Animation */
.counter-number {
    font-variant-numeric: tabular-nums;
}

/* Timeline Enhanced */
.timeline-dot {
    position: relative;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(244, 182, 194, 0.3);
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Wishlist Checkbox */
.wish-checkbox {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(244, 182, 194, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.wish-checkbox:checked {
    background: linear-gradient(135deg, #f4b6c2, #f9a8d4);
    border-color: transparent;
}

.wish-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
}

/* Tooltip */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tooltip:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

/* Progress Ring */
.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.5s ease;
}

/* Confetti */
.confetti {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
}

/* Safe Area for Mobile */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom, 16px);
}

/* Image Frame */
.polaroid-frame {
    background: white;
    padding: 12px 12px 40px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    transition: all 0.3s ease;
}

.polaroid-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Neon Glow */
.neon-pink {
    text-shadow: 0 0 10px #f4b6c2, 0 0 20px #f4b6c2, 0 0 30px #f4b6c2;
}

.neon-border {
    box-shadow: 0 0 10px rgba(244, 182, 194, 0.5),
        inset 0 0 10px rgba(244, 182, 194, 0.1);
}

/* Enhanced Animations */
@keyframes animate-scale-up {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-scale-up {
    animation: animate-scale-up 0.3s ease-out forwards;
}

/* Gradient Border Animation */
.gradient-border {
    position: relative;
    background: linear-gradient(var(--bg-color, #0b1020), var(--bg-color, #0b1020)) padding-box,
        linear-gradient(135deg, #f4b6c2, #a855f7, #f4b6c2) border-box;
    border: 2px solid transparent;
}

.gradient-border-animated {
    position: relative;
    background: linear-gradient(var(--bg-color, #0b1020), var(--bg-color, #0b1020)) padding-box,
        linear-gradient(var(--angle, 0deg), #f4b6c2, #a855f7, #f4b6c2) border-box;
    border: 2px solid transparent;
    animation: rotate-gradient 3s linear infinite;
}

@keyframes rotate-gradient {
    to {
        --angle: 360deg;
    }
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Love Counter Styles */
.love-counter {
    background: linear-gradient(135deg, rgba(244, 182, 194, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(244, 182, 194, 0.2);
}

/* Floating Hearts Background */
@keyframes float-hearts {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

.floating-heart {
    position: fixed;
    bottom: -20px;
    font-size: 20px;
    animation: float-hearts 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Glow Text */
.glow-text {
    text-shadow: 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
}

/* Card Hover Effects */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(5deg);
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    animation: bounce-scroll 2s ease-in-out infinite;
}

@keyframes bounce-scroll {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Image Shine Effect */
.image-shine {
    position: relative;
    overflow: hidden;
}

.image-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    transform: rotate(30deg);
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(30deg);
    }

    100% {
        transform: translateX(100%) rotate(30deg);
    }
}

/* Particle Trail */
.particle-trail {
    position: relative;
}

.particle-trail::before,
.particle-trail::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #f4b6c2;
    border-radius: 50%;
    opacity: 0;
    animation: particle-trail 1.5s ease-out infinite;
}

.particle-trail::before {
    left: 20%;
    animation-delay: 0s;
}

.particle-trail::after {
    right: 20%;
    animation-delay: 0.5s;
}

@keyframes particle-trail {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0);
    }
}

/* Enhanced Glass Card */
.glass-card-premium {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Animated Underline */
.animated-underline {
    position: relative;
    display: inline-block;
}

.animated-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #f4b6c2, #a855f7);
    transition: width 0.3s ease;
}

.animated-underline:hover::after {
    width: 100%;
}

/* Stagger Animation Helper */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

.stagger-6 {
    animation-delay: 0.6s;
}

/* Morphing Background */
.morph-bg {
    background: linear-gradient(-45deg, #0b1020, #1a1a3e, #2d1b4e, #1a2238);
    background-size: 400% 400%;
    animation: morph-gradient 15s ease infinite;
}

@keyframes morph-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Button Ripple Effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Text Gradient Animation */
.text-gradient-animated {
    background: linear-gradient(90deg, #f4b6c2, #a855f7, #f4b6c2);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-gradient-flow 3s linear infinite;
}

@keyframes text-gradient-flow {
    to {
        background-position: 200% center;
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Focus Ring */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 182, 194, 0.5);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive Navigation Enhancement */
@media (max-width: 768px) {
    .glass-nav {
        padding-bottom: env(safe-area-inset-bottom, 8px);
    }
}

/* Custom Scrollbar for Webkit */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(244, 182, 194, 0.3);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 182, 194, 0.5);
}

/* ==================== 时间轴增强动画 ==================== */

/* 光点流动效果 */
@keyframes glow-flow {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
}

.journey-glow-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #f4b6c2 0%, rgba(244, 182, 194, 0.3) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
    box-shadow:
        0 0 10px #f4b6c2,
        0 0 20px rgba(244, 182, 194, 0.5),
        0 0 30px rgba(168, 85, 247, 0.3);
    animation: glow-flow 4s linear infinite;
}

.journey-glow-particle:nth-child(2) {
    animation-delay: 1s;
    left: -2px;
}

.journey-glow-particle:nth-child(3) {
    animation-delay: 2s;
    left: 2px;
}

.journey-glow-particle:nth-child(4) {
    animation-delay: 3s;
}

/* 双层涟漪效果 */
@keyframes double-ripple {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.8);
        opacity: 0.3;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@keyframes double-ripple-delay {

    0%,
    40% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.journey-node-ripple {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(244, 182, 194, 0.4);
    animation: double-ripple 2.5s ease-out infinite;
}

.journey-node-ripple-delay {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(168, 85, 247, 0.3);
    animation: double-ripple-delay 2.5s ease-out infinite;
}

/* 卡片柔和进入动画 */
@keyframes card-soft-reveal {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.journey-card-reveal {
    animation: card-soft-reveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

/* 卡片悬浮增强效果 */
.journey-card-enhanced {
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: visible;
}

.journey-card-enhanced::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, rgba(244, 182, 194, 0.4), rgba(168, 85, 247, 0.4), rgba(244, 182, 194, 0.4));
    border-radius: inherit;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s, filter 0.5s;
    filter: blur(12px);
}

.journey-card-enhanced:hover::before {
    opacity: 0.6;
}

.journey-card-enhanced:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 50px rgba(244, 182, 194, 0.25),
        0 10px 20px rgba(0, 0, 0, 0.2);
}

/* 飘落花瓣动画 */
@keyframes petal-float {
    0% {
        transform: translateY(-20px) rotate(0deg) translateX(0);
        opacity: 0;
    }

    5% {
        opacity: 0.7;
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(30px);
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(100vh) rotate(360deg) translateX(-20px);
        opacity: 0;
    }
}

.falling-petal {
    position: fixed;
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
    animation: petal-float linear infinite;
    text-shadow: 0 0 10px rgba(244, 182, 194, 0.5);
}

/* 照片卡片增强光晕 */
.photo-card-enhanced {
    position: relative;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.photo-card-enhanced::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(244, 182, 194, 0.1) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.photo-card-enhanced:hover::after {
    opacity: 1;
    animation: shimmer 2s infinite;
}

.photo-card-enhanced:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow:
        0 15px 40px rgba(244, 182, 194, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 时间轴线条发光增强 */
.journey-line-enhanced {
    position: relative;
    overflow: visible;
}

.journey-line-enhanced::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(244, 182, 194, 0.8) 0%,
            rgba(168, 85, 247, 0.6) 50%,
            rgba(244, 182, 194, 0.8) 100%);
    filter: blur(6px);
    opacity: 0.6;
}

/* 节点呼吸发光 */
@keyframes node-breathe {

    0%,
    100% {
        box-shadow:
            0 0 15px rgba(244, 182, 194, 0.4),
            0 0 30px rgba(244, 182, 194, 0.2);
    }

    50% {
        box-shadow:
            0 0 25px rgba(244, 182, 194, 0.6),
            0 0 50px rgba(244, 182, 194, 0.3),
            0 0 80px rgba(168, 85, 247, 0.2);
    }
}

.journey-node-glow {
    animation: node-breathe 3s ease-in-out infinite;
}

/* 照片弹窗过渡增强 */
@keyframes modal-backdrop-in {
    from {
        backdrop-filter: blur(0);
        background: rgba(0, 0, 0, 0);
    }

    to {
        backdrop-filter: blur(12px);
        background: rgba(0, 0, 0, 0.9);
    }
}

.photo-modal-backdrop {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: modal-backdrop-in 0.4s ease-out forwards;
}

@keyframes photo-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.photo-modal-content {
    opacity: 1;
    transform: scale(1) translateY(0);
    animation: photo-zoom-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 缩略图进入动画 */
@keyframes thumbnail-pop {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.photo-thumbnail-animated {
    animation: thumbnail-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
}

/* 交错动画延迟 */
.journey-stagger-1 {
    animation-delay: 0.1s !important;
}

.journey-stagger-2 {
    animation-delay: 0.2s !important;
}

.journey-stagger-3 {
    animation-delay: 0.3s !important;
}

.journey-stagger-4 {
    animation-delay: 0.4s !important;
}

.journey-stagger-5 {
    animation-delay: 0.5s !important;
}

.journey-stagger-6 {
    animation-delay: 0.6s !important;
}

.journey-stagger-7 {
    animation-delay: 0.7s !important;
}

.journey-stagger-8 {
    animation-delay: 0.8s !important;
}

.journey-stagger-9 {
    animation-delay: 0.9s !important;
}

.journey-stagger-10 {
    animation-delay: 1.0s !important;
}

/* ==================== 移动端时间轴优化 ==================== */

@media (max-width: 768px) {

    /* 更大的触控区域 */
    .journey-event-mobile {
        padding-left: 4.5rem;
        margin-bottom: 2rem;
    }

    .journey-node-mobile {
        width: 3.5rem;
        height: 3.5rem;
        font-size: 1.1rem;
    }

    /* 卡片优化 */
    .journey-card-mobile {
        padding: 1.25rem;
        border-radius: 1.25rem;
        margin-left: 0.5rem;
    }

    /* 预览图更大 */
    .journey-preview-mobile {
        width: 4.5rem;
        height: 4.5rem;
        border-radius: 0.75rem;
    }

    /* 照片弹窗移动端优化 */
    .photo-modal-mobile {
        padding: 0.75rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .photo-main-mobile {
        max-height: 50vh;
        border-radius: 1rem;
    }

    .photo-thumbnail-mobile {
        width: 4rem;
        height: 4rem;
        flex-shrink: 0;
    }

    /* 滑动提示指示器 */
    .swipe-indicator {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.7rem;
        margin-top: 0.75rem;
        padding: 0.5rem;
    }

    .swipe-indicator i {
        animation: swipe-hint 1.5s ease-in-out infinite;
    }

    @keyframes swipe-hint {

        0%,
        100% {
            transform: translateX(0);
        }

        50% {
            transform: translateX(8px);
        }
    }

    /* 照片切换按钮更大 */
    .photo-nav-btn-mobile {
        width: 3rem;
        height: 3rem;
        font-size: 1.1rem;
    }

    /* 时间轴线条 */
    .journey-line-mobile {
        left: 1.75rem;
        width: 3px;
    }
}

/* 小屏幕额外优化 */
@media (max-width: 480px) {
    .journey-event-mobile {
        padding-left: 4rem;
    }

    .journey-node-mobile {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }

    .journey-card-mobile {
        padding: 1rem;
    }

    .journey-preview-mobile {
        width: 3.5rem;
        height: 3.5rem;
    }

    .photo-thumbnail-mobile {
        width: 3.5rem;
        height: 3.5rem;
    }
}

/* ==================== 浪漫装饰元素 ==================== */

/* 星星闪烁 */
@keyframes star-twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.decorative-star {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    color: rgba(244, 182, 194, 0.6);
    text-shadow: 0 0 10px currentColor;
    animation: star-twinkle 2s ease-in-out infinite;
}

/* 浮动心形 */
@keyframes heart-float-gentle {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

.floating-heart-deco {
    position: fixed;
    pointer-events: none;
    z-index: 1;
    opacity: 0.3;
    animation: heart-float-gentle 4s ease-in-out infinite;
}

/* 终点标记脉冲 */
@keyframes end-marker-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(244, 182, 194, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(244, 182, 194, 0.5);
    }
}

.journey-end-marker {
    animation: end-marker-pulse 2s ease-in-out infinite;
}

/* 渐变边框动画 */
@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.journey-gradient-border {
    background: linear-gradient(90deg,
            rgba(244, 182, 194, 0.3),
            rgba(168, 85, 247, 0.3),
            rgba(244, 182, 194, 0.3));
    background-size: 200% 200%;
    animation: gradient-rotate 4s ease infinite;
}