*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --pink: #e8758a;
    --rose: #b5294f;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #fff0f4;
    color: #2c1020;
    overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--pink); border-radius: 3px; }

#hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(150deg, #ff9a9e 0%, #fad0c4 45%, #ffecd2 100%);
}

#petals { position: absolute; inset: 0; pointer-events: none; }

.petal {
    position: absolute;
    top: -60px;
    animation: petalDrop var(--dur) var(--del) ease-in-out infinite;
}

@keyframes petalDrop {
    0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    8%   { opacity: .9; }
    90%  { opacity: .8; }
    100% { transform: translateY(110vh) translateX(var(--sw)) rotate(540deg); opacity: 0; }
}

.hero-num {
    font-size: clamp(80px, 18vw, 180px);
    font-weight: 900;
    color: #fff;
    letter-spacing: .08em;
    line-height: 1;
    text-shadow: 0 6px 40px rgba(180,30,70,.25);
    animation: breathe 3.5s ease-in-out infinite;
}

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

.hero-name {
    margin-top: 24px;
    font-size: clamp(22px, 5vw, 50px);
    color: rgba(255,255,255,.97);
    letter-spacing: .38em;
    font-weight: 300;
    text-shadow: 0 2px 16px rgba(100,0,30,.55), 0 1px 4px rgba(0,0,0,.2);
}

.hero-pill {
    margin-top: 36px;
    padding: 16px 44px;
    background: rgba(255,255,255,.52);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(255,255,255,.75);
    border-radius: 999px;
    color: #4a1025;
    font-size: 18px;
    letter-spacing: .15em;
}

.hero-hl {
    color: #c8415a;
    font-weight: 900;
    font-size: 1.15em;
    letter-spacing: .05em;
}

.down-arrow {
    position: absolute;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
    letter-spacing: .18em;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(100,0,30,.55), 0 1px 3px rgba(0,0,0,.2);
    animation: arrowBounce 2s ease-in-out infinite;
}

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

#memories {
    padding: 100px 24px 80px;
    background: linear-gradient(180deg, #fff0f4, #fde8f0);
}

.sec-head { text-align: center; margin-bottom: 80px; }

.sec-head h2 {
    font-size: clamp(30px, 6vw, 54px);
    color: var(--rose);
    font-weight: 700;
}

.sec-deco {
    margin-top: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.deco-line {
    flex: 0 0 55px;
    height: 2px;
    border-radius: 1px;
    background: linear-gradient(90deg, transparent, var(--pink));
}

.deco-line.r { background: linear-gradient(270deg, transparent, var(--pink)); }

.tl { max-width: 920px; margin: 0 auto; position: relative; }

.tl-spine {
    position: absolute;
    left: 50%; top: 10px; bottom: 10px;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #e8758a, #ffb3c8 50%, #e8758a);
}

.tl-card {
    display: flex;
    align-items: center;
    margin-bottom: 72px;
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}

.tl-card.sl { transform: translateX(-50px); }
.tl-card.sr { transform: translateX(50px); }
.tl-card.in { opacity: 1 !important; transform: none !important; }

.tl-photo {
    width: calc(50% - 24px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 44px rgba(180,30,70,.15);
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    flex-shrink: 0;
}

.tl-photo img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .5s ease;
}

.tl-photo:hover img { transform: scale(1.07); }

.tl-dot-wrap { width: 48px; display: flex; justify-content: center; flex-shrink: 0; }

.tl-dot {
    width: 18px; height: 18px;
    background: var(--pink);
    border-radius: 50%;
    border: 4px solid #fff0f4;
    box-shadow: 0 0 0 3px var(--pink);
}

.tl-text { width: calc(50% - 24px); padding: 20px 28px; flex-shrink: 0; }

.tl-date {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--pink);
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tl-caption { font-size: clamp(15px, 2.2vw, 22px); line-height: 1.78; color: #3a1028; }

#love {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at 50% 40%, #20083a 0%, #0d0320 65%, #060010 100%);
}

.love-inner {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 80px 24px;
    pointer-events: none;
}

.love-h {
    font-size: clamp(30px, 6vw, 60px);
    color: #ffa8c0;
    font-weight: 700;
    text-shadow: 0 0 40px rgba(255,100,160,.5);
}

.love-sub { margin-top: 14px; font-size: 15px; color: rgba(255,168,192,.55); letter-spacing: .2em; }

.star-dot {
    position: absolute;
    border-radius: 50%;
    background: white;
    pointer-events: none;
    animation: starTwinkle var(--st) ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% { opacity: .1; transform: scale(.8); }
    50%       { opacity: .9; transform: scale(1.5); }
}

.snow {
    position: absolute;
    pointer-events: none;
    color: #ffa8c0;
    white-space: nowrap;
    text-shadow: 0 0 8px rgba(255,80,140,.45);
    animation: snowFall linear infinite;
    opacity: 0;
}

@keyframes snowFall {
    0%   { opacity: 0;   transform: translateY(-80px)              translateX(0)        rotate(-4deg); }
    6%   { opacity: .9; }
    88%  { opacity: .85; }
    100% { opacity: 0;   transform: translateY(calc(100vh + 80px)) translateX(var(--sx)) rotate(5deg); }
}

#collage {
    min-height: 100vh;
    background: #05000f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 80px;
}

.collage-wrap { width: 100%; max-width: 1400px; }

#photoGrid { position: relative; width: 100%; }

.cp {
    position: absolute;
    border-radius: 3px;
    overflow: hidden;
    animation: cpIn .35s ease both;
}

@keyframes cpIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.cp img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

.collage-end { margin-top: 56px; text-align: center; }

.collage-big {
    font-size: clamp(22px, 4.5vw, 46px);
    color: #ff9eb5;
    letter-spacing: .18em;
    animation: glow2 2.8s ease-in-out infinite;
}

@keyframes glow2 {
    0%, 100% { text-shadow: 0 0 12px rgba(255,100,150,.4); }
    50%       { text-shadow: 0 0 50px rgba(255,100,150,1), 0 0 100px rgba(255,100,150,.35); }
}

.collage-small { margin-top: 18px; font-size: 14px; letter-spacing: .28em; color: rgba(255,158,181,.45); }

@media (max-width: 640px) {
    .tl-spine { left: 22px; }

    .tl-card { flex-direction: column; padding-left: 52px; position: relative; }
    .tl-card.rev { flex-direction: column-reverse; }

    .tl-dot-wrap { position: absolute; left: 11px; top: 28px; width: 22px; }

    .tl-photo { width: 100%; }
    .tl-text  { width: 100%; padding: 14px 2px; }
    .tl-text[style] { text-align: left !important; }
}
