/* ===== DESIGN SYSTEM — 白粉金明亮主题 ===== */
:root {
    /* Colors - Light, Warm, Romantic */
    --bg-primary: #fff9f9;
    --bg-secondary: #fff0f3;
    --bg-warm: #fffaf5;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(214, 51, 132, 0.12);

    --text-primary: #3d2c3e;
    --text-secondary: rgba(61, 44, 62, 0.65);
    --text-muted: rgba(61, 44, 62, 0.4);

    --rose-gold: #c9886d;
    --rose-pink: #e84393;
    --rose-light: #fd79a8;
    --gold: #d4a056;
    --gold-light: #f0d48a;
    --purple-soft: #a29bfe;
    --pink-soft: #ff7eb3;
    --pink-pale: #ffeef4;
    --peach: #ffecd2;
    --blush: #fcb1b1;

    --gradient-primary: linear-gradient(135deg, var(--rose-pink), var(--gold), var(--rose-light));
    --gradient-alt: linear-gradient(135deg, var(--pink-soft), var(--gold));
    --gradient-card: linear-gradient(135deg, rgba(232, 67, 147, 0.04), rgba(212, 160, 86, 0.04));
    --gradient-bg: linear-gradient(180deg, #fff9f9 0%, #fff0f3 30%, #fffaf5 60%, #fff9f9 100%);
    --gradient-hero: linear-gradient(180deg, #fff0f3 0%, #ffecd2 40%, #ffeef4 100%);
    --shadow-soft: 0 4px 24px rgba(214, 51, 132, 0.08);
    --shadow-hover: 0 16px 48px rgba(214, 51, 132, 0.12);
    --shadow-gold: 0 8px 32px rgba(212, 160, 86, 0.1);

    /* Typography */
    --font-sans: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --font-serif: 'Noto Serif SC', 'Songti SC', serif;
    --font-display: 'Ma Shan Zheng', 'ZCOOL XiaoWei', cursive;
    --font-heading: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;

    /* Spacing */
    --section-padding: 120px 24px;
    --card-radius: 24px;
    --card-padding: 32px;

    /* Animation */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-base: 400ms var(--ease-out);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: rgba(232, 67, 147, 0.15);
    color: var(--text-primary);
}

/* ===== PETALS CONTAINER ===== */
#petals-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -40px;
    opacity: 0.7;
    font-size: 18px;
    animation: petalFall linear forwards;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(232, 67, 147, 0.15));
}

@keyframes petalFall {
    0% {
        transform: translateY(0) rotate(0deg) translateX(0);
        opacity: 0.75;
    }

    25% {
        transform: translateY(25vh) rotate(90deg) translateX(30px);
    }

    50% {
        transform: translateY(50vh) rotate(180deg) translateX(-20px);
    }

    75% {
        transform: translateY(75vh) rotate(270deg) translateX(15px);
    }

    100% {
        transform: translateY(110vh) rotate(360deg) translateX(-10px);
        opacity: 0;
    }
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite;
}

.gradient-text-alt {
    background: var(--gradient-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite reverse;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== SECTION BASE ===== */
.section {
    padding: 72px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
    max-width: 100%;
    padding-left: calc((100% - 1200px) / 2 + 24px);
    padding-right: calc((100% - 1200px) / 2 + 24px);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-family: 'Noto Serif SC', 'PingFang SC', 'Microsoft YaHei', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* ===== DECORATIVE DIVIDER ===== */
.section-header::after {
    content: '✦';
    display: block;
    margin-top: 20px;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.5em;
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 24px;
    background: var(--gradient-hero);
}

#heart-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroFadeIn 1.5s var(--ease-out) forwards;
    opacity: 0;
}

@keyframes heroFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-date {
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 0.5em;
    font-weight: 400;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 32px;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.3rem);
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.8;
}

.hero-hearts {
    font-size: 3rem;
    margin-top: 40px;
    animation: heartPulse 1.5s ease-in-out infinite;
}

@keyframes heartPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: rotate(45deg);
    opacity: 0.6;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ===== TIMELINE ===== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--rose-light), var(--gold), var(--rose-pink), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 50px;
    margin-bottom: 40px;
}

.timeline-item.left {
    left: 0;
    text-align: right;
    padding-right: 60px;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
    padding-left: 60px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--rose-pink), var(--gold));
    border: 3px solid #fff;
    border-radius: 50%;
    top: 30px;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(232, 67, 147, 0.15), var(--shadow-soft);
}

.timeline-item.left .timeline-dot {
    right: -8px;
}

.timeline-item.right .timeline-dot {
    left: -8px;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 28px 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-base);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.timeline-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(232, 67, 147, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 8px;
}

.timeline-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 24px 20px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 400ms ease;
}

.stat-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1.2;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.stat-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ===== MEMORY GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.memory-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 32px 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.memory-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 400ms ease;
    pointer-events: none;
    border-radius: var(--card-radius);
}

.memory-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(232, 67, 147, 0.2);
    box-shadow: var(--shadow-hover);
}

.memory-card:hover::after {
    opacity: 1;
}

.memory-card.featured {
    border-color: rgba(212, 160, 86, 0.3);
    background: linear-gradient(135deg, #fff5f7, #fffaf0);
}

.memory-card.featured .memory-quote {
    color: var(--gold);
}

.memory-quote {
    font-size: 3rem;
    font-family: var(--font-serif);
    color: var(--rose-light);
    line-height: 1;
    opacity: 0.6;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.memory-content {
    font-size: 1.05rem;
    font-family: var(--font-serif);
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.memory-reply {
    display: block;
    margin-top: 8px;
    color: var(--rose-pink);
    font-style: italic;
}

.memory-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.memory-who {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rose-pink);
    background: var(--pink-pale);
    padding: 4px 14px;
    border-radius: 20px;
}

.memory-date {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== LOVE LETTER ===== */
.letter-container {
    max-width: 700px;
    margin: 0 auto;
}

.letter-paper {
    background: linear-gradient(145deg, #fffdf8, #fff8f0);
    border: 1px solid rgba(212, 160, 86, 0.25);
    border-radius: var(--card-radius);
    padding: 60px 48px;
    position: relative;
    box-shadow:
        var(--shadow-gold),
        inset 0 0 80px rgba(212, 160, 86, 0.04);
    min-height: 400px;
}

.letter-decoration {
    position: absolute;
    top: 20px;
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.35;
}

.letter-decoration.left {
    left: 24px;
}

.letter-decoration.right {
    right: 24px;
}

.letter-body {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    line-height: 2;
    color: var(--text-primary);
    white-space: pre-wrap;
    min-height: 300px;
}

.letter-cursor {
    display: inline;
    font-weight: 100;
    color: var(--rose-pink);
    animation: cursorBlink 0.8s ease-in-out infinite;
}

@keyframes cursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.letter-signature {
    margin-top: 40px;
    text-align: right;
    font-family: var(--font-serif);
    color: var(--rose-gold);
    opacity: 0;
    transition: opacity 1s ease;
}

.letter-signature.show {
    opacity: 1;
}

.letter-signature p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
}

.letter-date-sign {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== WISH FORM ===== */
.wish-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.wish-form-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.wish-form-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: giftBounce 2s ease-in-out infinite;
}

@keyframes giftBounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-3deg);
    }

    75% {
        transform: translateY(-4px) rotate(3deg);
    }
}

.wish-form-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.wish-form-hint {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(232, 67, 147, 0.12);
    border-radius: 14px;
    background: #fff;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-base);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--rose-pink);
    box-shadow: 0 0 0 4px rgba(232, 67, 147, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-divider {
    text-align: center;
    margin: 32px 0 24px;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 60px);
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border));
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
    background: linear-gradient(to left, transparent, var(--glass-border));
}

.form-divider span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gold);
    background: var(--bg-card);
    padding: 0 16px;
    position: relative;
}

.wish-submit-btn {
    width: 100%;
    margin-top: 28px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    background-size: 200% 200%;
    border: none;
    border-radius: 16px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(232, 67, 147, 0.25);
    animation: gradientShift 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.wish-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(232, 67, 147, 0.35);
}

.wish-submit-btn:active {
    transform: translateY(0);
}

.wish-submit-btn .btn-icon {
    transition: transform 300ms var(--ease-spring);
}

.wish-submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* ===== SENDING ANIMATION ===== */
.wish-sending-overlay {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 0;
}

.sending-animation {
    text-align: center;
}

.package-journey {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 40px;
    position: relative;
    height: 100px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.package-box {
    font-size: 3rem;
    position: absolute;
    left: 0;
    animation: packageFly 3s var(--ease-out) forwards;
    z-index: 2;
    filter: drop-shadow(0 4px 12px rgba(232, 67, 147, 0.2));
}

@keyframes packageFly {
    0% {
        left: 0;
        transform: scale(1) rotate(0deg);
    }

    20% {
        transform: scale(1.2) rotate(-10deg) translateY(-20px);
    }

    50% {
        transform: scale(0.9) rotate(5deg) translateY(-40px);
    }

    80% {
        transform: scale(1.1) rotate(-5deg) translateY(-15px);
        left: 80%;
    }

    100% {
        left: 85%;
        transform: scale(1) rotate(0deg) translateY(0);
    }
}

.journey-trail {
    position: absolute;
    left: 40px;
    right: 60px;
    top: 50%;
    height: 2px;
    background: linear-gradient(to right, var(--rose-pink), var(--gold), transparent);
    transform: translateY(-50%);
    opacity: 0;
    animation: trailAppear 2s 0.5s ease forwards;
}

@keyframes trailAppear {
    0% {
        opacity: 0;
        width: 0;
    }

    100% {
        opacity: 0.4;
        width: 100%;
    }
}

.journey-destination {
    font-size: 2.5rem;
    position: absolute;
    right: 0;
    opacity: 0.3;
    animation: destinationPulse 3s 2.5s ease forwards;
}

@keyframes destinationPulse {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.sending-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 24px;
    min-height: 1.5em;
}

.sending-progress-bar {
    width: 100%;
    max-width: 300px;
    height: 6px;
    background: rgba(232, 67, 147, 0.1);
    border-radius: 3px;
    margin: 0 auto;
    overflow: hidden;
}

.sending-progress-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 400ms ease;
}

/* ===== SUCCESS STATE ===== */
.wish-success {
    max-width: 600px;
    margin: 0 auto;
}

.success-card {
    background: var(--bg-card);
    border: 1px solid rgba(212, 160, 86, 0.25);
    border-radius: var(--card-radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-gold);
    animation: successPop 600ms var(--ease-spring) forwards;
    transform: scale(0.8);
    opacity: 0;
}

@keyframes successPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: successBounce 600ms 300ms var(--ease-spring) both;
}

@keyframes successBounce {
    0% {
        transform: scale(0) rotate(-20deg);
    }

    60% {
        transform: scale(1.3) rotate(5deg);
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.success-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.success-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.success-details {
    background: linear-gradient(135deg, #fff5f7, #fffaf0);
    border-radius: 16px;
    padding: 20px 24px;
    text-align: left;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 2;
    margin-bottom: 24px;
    border: 1px solid rgba(232, 67, 147, 0.08);
}

.success-hearts {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 1.5rem;
}

.success-hearts span {
    animation: floatHeart 2s ease-in-out infinite;
}

.success-hearts span:nth-child(1) {
    animation-delay: 0s;
}

.success-hearts span:nth-child(2) {
    animation-delay: 0.2s;
}

.success-hearts span:nth-child(3) {
    animation-delay: 0.4s;
}

.success-hearts span:nth-child(4) {
    animation-delay: 0.6s;
}

.success-hearts span:nth-child(5) {
    animation-delay: 0.8s;
}

@keyframes floatHeart {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== FOOTER ===== */
.footer-section {
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    background: var(--gradient-hero);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-heart {
    font-size: 4rem;
    margin-bottom: 32px;
    animation: heartPulse 1.5s ease-in-out infinite;
    display: inline-block;
}

.footer-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
}

.footer-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 32px;
}

.footer-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--rose-pink);
    font-style: italic;
    margin-bottom: 40px;
    opacity: 0.8;
}

.footer-signature {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .section:nth-child(even) {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Timeline mobile */
    .timeline-line {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding: 15px 15px 15px 55px;
        text-align: left;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        padding-left: 55px;
        padding-right: 15px;
        text-align: left;
    }

    .timeline-item.left .timeline-dot,
    .timeline-item.right .timeline-dot {
        left: 12px;
        right: auto;
    }
}

@media (max-width: 600px) {
    :root {
        --section-padding: 80px 16px;
        --card-padding: 24px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .letter-paper {
        padding: 40px 24px;
    }

    .stat-card {
        padding: 24px 16px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .petal {
        display: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ===== RED ENVELOPE TRIGGER BUTTON ===== */
.redenvelope-trigger-btn {
    margin-top: 24px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #e84393, #d63384);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-glow 2s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(232, 67, 147, 0.3);
}

.redenvelope-trigger-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 28px rgba(232, 67, 147, 0.45);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(232, 67, 147, 0.3);
    }

    50% {
        box-shadow: 0 4px 32px rgba(232, 67, 147, 0.55);
    }
}

/* ===== PASSWORD MODAL ===== */
.password-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.password-modal {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(232, 67, 147, 0.15);
    border-radius: 24px;
    padding: 40px 36px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modal-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modal-pop {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.password-modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 1.5rem;
    color: rgba(61, 44, 62, 0.3);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.password-modal-close:hover {
    color: #e84393;
}

.password-modal-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.password-modal-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.password-modal-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.password-input-group {
    display: flex;
    gap: 10px;
}

.password-input-group input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(232, 67, 147, 0.15);
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
}

.password-input-group input:focus {
    border-color: #e84393;
}

.password-submit-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #e84393, #d63384);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.password-submit-btn:hover {
    transform: scale(1.05);
}

.password-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.password-error {
    color: #e84393;
    font-size: 0.85rem;
    margin-top: 12px;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-8px);
    }

    40%,
    80% {
        transform: translateX(8px);
    }
}

.shake {
    animation: shake 0.4s ease;
}

/* ===== RED ENVELOPE OVERLAY ===== */
.redenvelope-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(180, 20, 20, 0.25);
    backdrop-filter: blur(6px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.redenvelope-card {
    width: 340px;
    max-width: 90%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(180, 20, 20, 0.3);
    animation: envelope-open 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

@keyframes envelope-open {
    0% {
        opacity: 0;
        transform: scale(0.5) rotateY(20deg);
    }

    100% {
        opacity: 1;
        transform: scale(1) rotateY(0);
    }
}

.redenvelope-top {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 32px 24px 24px;
    text-align: center;
    position: relative;
}

.redenvelope-seal {
    font-size: 3.5rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.redenvelope-title {
    color: #ffd700;
    font-size: 1.6rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 4px;
    font-family: var(--font-display, 'Ma Shan Zheng', cursive);
}

.redenvelope-from {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 6px;
}

.redenvelope-blessings {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.redenvelope-blessings span {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.25);
    animation: blessings-scroll 12s linear infinite;
    flex-shrink: 0;
}

@keyframes blessings-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-120%);
    }
}

.redenvelope-wishes {
    margin-bottom: 16px;
}

.redenvelope-wishes p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    line-height: 2;
    letter-spacing: 0.5px;
}

.redenvelope-body {
    background: linear-gradient(180deg, #c0392b, #a93226);
    padding: 28px 24px 32px;
    text-align: center;
}

.redenvelope-amount {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
}

.redenvelope-message {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.redenvelope-code-section {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 20px 16px;
}

.redenvelope-code-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.redenvelope-code {
    background: rgba(255, 255, 255, 0.15);
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 12px 16px;
    border-radius: 10px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    word-break: break-all;
    border: 1px dashed rgba(255, 215, 0, 0.3);
}

.redenvelope-copy-btn {
    padding: 10px 28px;
    background: linear-gradient(135deg, #ffd700, #f0c040);
    color: #8b0000;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.redenvelope-copy-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.redenvelope-copy-tip {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    margin-top: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}