/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #FFF7EC;
    --pink: #FBDCD6;
    --rose: #E88884;
    --text: #5A5148;
    --dark: #2A2A2A;
    --mid: #7A6B60;
    --muted: #B8A9A0;
    --white: #FFFFFF;
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
    font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* App Container */
.app {
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Base Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Animations */
@keyframes hb {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.2); }
    60% { transform: scale(1.1); }
}

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

@keyframes bnc {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(7px); }
}

@keyframes slideD {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.5); }
    70% { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes rpl {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(2.6); opacity: 0; }
}

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

@keyframes heartPulse {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.95); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes msgPopIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.8);
    }
    60% {
        transform: translateY(-5px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heartBounce {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(0.95); }
    45% { transform: scale(1.15); }
    60% { transform: scale(0.98); }
    75% { transform: scale(1.05); }
}

.hb-anim { animation: hb 1.5s ease-in-out infinite; }
.flt { animation: flt 3s ease-in-out infinite; }
.bnc { animation: bnc 1.6s ease-in-out infinite; }
.pop { animation: popIn 0.38s var(--ease-out) forwards; }
.drawer { animation: slideD 0.28s var(--ease-out); }
.heart-bounce { animation: heartBounce 0.7s var(--ease-bounce) forwards; }
.msg-pop { animation: msgPopIn 0.5s var(--ease-out) forwards; }

/* Fade In Animation */
.fi {
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    will-change: transform, opacity;
}

.fi-vis {
    opacity: 1 !important;
    transform: translateY(0) translateZ(0) !important;
    animation: fadeInUp 0.6s var(--ease-out) forwards;
}

/* Buttons */
.btn-rose {
    background-color: var(--rose);
    color: var(--white);
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 13px;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
    letter-spacing: 0.5px;
    transition: background 0.2s var(--ease-out), transform 0.15s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    will-change: transform;
}

.btn-rose:active {
    transform: scale(0.96);
}

@media (hover: hover) {
    .btn-rose:hover {
        background: #D46A66 !important;
        transform: translateY(-1px);
    }
}

/* Mobile Header */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    background-color: rgba(255, 247, 236, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--pink);
}

.menu-btn {
    font-size: 19px;
    line-height: 1;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-header .logo {
    font-family: 'Dancing Script', cursive;
    font-size: 19px;
    color: var(--rose);
}

.music-btn {
    background: none;
    border: none;
    cursor: pointer;
}

/* Music Icon Transitions */
.music-btn .music-play,
.music-btn .music-mute,
.music-circle .music-play,
.music-circle .music-mute {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Mobile Drawer */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background-color: rgba(0, 0, 0, 0.35);
    display: none;
}

.mobile-drawer-overlay.active {
    display: block;
}

.mobile-drawer {
    position: absolute;
    top: 56px;
    left: 0;
    width: 240px;
    height: calc(100vh - 56px);
    background-color: var(--bg);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}

.drawer-link {
    text-align: left;
    padding: 12px 24px;
    font-size: 14px;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
    transition: background 0.2s;
    min-height: 44px;
}

.drawer-link:active {
    background-color: var(--pink);
}

@media (hover: hover) {
    .drawer-link:hover {
        background-color: var(--pink);
    }
}

/* Desktop Header */
.desktop-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    height: 64px;
    background-color: rgba(255, 247, 236, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--pink);
}

.desktop-header .logo {
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    color: var(--rose);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    position: relative;
    font-size: 14px;
    color: var(--text);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
    padding: 4px 0;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--rose);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.music-btn-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--pink);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.music-btn-circle.active {
    background-color: var(--rose);
}

.music-btn-circle.active svg {
    stroke: var(--white);
}

/* Hero - Mobile */
.hero-mobile {
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-mobile {
        display: none !important;
    }
}

.hero-photo-mobile {
    position: relative;
    flex: 1;
    min-height: 35vh;
    max-height: 42vh;
    overflow: hidden;
}

.hero-photo-mobile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(
        to bottom,
        rgba(255, 251, 245, 0) 0%,
        rgba(255, 251, 245, 0.3) 30%,
        rgba(255, 251, 245, 0.6) 55%,
        rgba(255, 251, 245, 0.85) 75%,
        rgba(255, 251, 245, 1) 100%
    );
    pointer-events: none;
    z-index: 10;
}

.hero-photo-mobile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.92) saturate(0.82) contrast(0.9);
    display: block;
    mask-image: 
        radial-gradient(ellipse 60% 55% at 50% 38%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 40%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.5) 78%, rgba(0,0,0,0.2) 90%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 12%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 75%, rgba(0,0,0,0.7) 88%, rgba(0,0,0,0) 100%);
    mask-composite: intersect;
    -webkit-mask-image: 
        radial-gradient(ellipse 60% 55% at 50% 38%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.92) 40%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.5) 78%, rgba(0,0,0,0.2) 90%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 12%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 75%, rgba(0,0,0,0.7) 88%, rgba(0,0,0,0) 100%);
    -webkit-mask-composite: source-in;
}

.hero-text-mobile {
    position: relative;
    padding: 2.5rem 1.25rem 1rem;
    flex: 0 0 auto;
}

.carnation-top-right {
    position: absolute;
    top: 0;
    right: 8px;
    pointer-events: none;
}

.hero-subtitle {
    font-size: 11px;
    color: var(--rose);
    letter-spacing: 2px;
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 10px;
}

.hero-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 30px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--dark);
    margin-bottom: 12px;
}

.hero-desc {
    font-size: 13px;
    color: var(--mid);
    line-height: 1.85;
    margin-bottom: 20px;
    max-width: 250px;
}

.hero-fade-top {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 18%);
    pointer-events: none;
}

.hero-tag {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.tag-content {
    background-color: rgba(251, 220, 214, 0.92);
    color: var(--rose);
    border: 1px solid var(--rose);
    border-radius: 999px;
    padding: 4px 14px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

.arrow-down {
    color: var(--rose);
    font-size: 17px;
}

/* Hero - Desktop */
.hero-desktop {
    min-height: calc(100vh - 64px);
    position: relative;
    overflow: hidden;
    display: none;
}

@media (min-width: 768px) {
    .hero-desktop {
        display: flex !important;
    }
}

.hero-left {
    width: 48%;
    display: flex;
    align-items: center;
    padding: 60px 40px 60px 80px;
    position: relative;
    z-index: 1;
}

.carnation-decoration {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-60%);
    pointer-events: none;
}

.hero-content {
    max-width: 420px;
}

.hero-label {
    font-size: 11px;
    color: var(--rose);
    letter-spacing: 3px;
    font-family: 'Noto Serif SC', serif;
    margin-bottom: 18px;
}

.hero-title-desktop {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(38px, 4vw, 54px);
    font-weight: 600;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 18px;
}

.divider {
    width: 44px;
    height: 2px;
    background-color: var(--rose);
    margin-bottom: 18px;
}

.hero-desc-desktop {
    font-size: 15px;
    color: var(--mid);
    line-height: 1.95;
    margin-bottom: 30px;
}

.hero-footer {
    margin-top: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-footer span {
    font-size: 13px;
    color: var(--muted);
}

.hero-right {
    position: absolute;
    right: 0;
    top: 0;
    width: 56%;
    height: 100%;
    overflow: hidden;
}

.hero-right::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(
        to bottom,
        rgba(255, 251, 245, 0) 0%,
        rgba(255, 251, 245, 0.25) 25%,
        rgba(255, 251, 245, 0.55) 50%,
        rgba(255, 251, 245, 0.82) 75%,
        rgba(255, 251, 245, 1) 100%
    );
    pointer-events: none;
    z-index: 10;
}

.hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.92) saturate(0.82) contrast(0.9);
    mask-image: 
        radial-gradient(ellipse 65% 55% at 50% 45%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 40%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.2) 88%, rgba(0,0,0,0) 100%),
        linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 25%, rgba(0,0,0,0.85) 45%, rgba(0,0,0,0.6) 65%, rgba(0,0,0,0.3) 82%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 12%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 75%, rgba(0,0,0,0.7) 88%, rgba(0,0,0,0) 100%);
    mask-composite: intersect;
    -webkit-mask-image: 
        radial-gradient(ellipse 65% 55% at 50% 45%, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 40%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.5) 75%, rgba(0,0,0,0.2) 88%, rgba(0,0,0,0) 100%),
        linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.95) 25%, rgba(0,0,0,0.85) 45%, rgba(0,0,0,0.6) 65%, rgba(0,0,0,0.3) 82%, rgba(0,0,0,0) 100%),
        linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 12%, rgba(0,0,0,1) 25%, rgba(0,0,0,1) 75%, rgba(0,0,0,0.7) 88%, rgba(0,0,0,0) 100%);
    -webkit-mask-composite: source-in;
}

.hero-left-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--bg) 0%, rgba(255, 247, 236, 0.5) 18%, transparent 42%);
    pointer-events: none;
}

.hero-top-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--bg) 0%, transparent 12%);
    pointer-events: none;
}

/* Date Bar */
.date-bar {
    background-color: var(--pink);
    min-height: 60px;
}

.date-bar-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 80px;
    display: flex;
    align-items: center;
    gap: 28px;
}

@media (max-width: 767px) {
    .date-bar {
        display: none;
    }
}

.date-info {
    flex-shrink: 0;
}

.date-label {
    font-size: 11px;
    color: var(--rose);
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.date-number {
    font-family: 'Noto Serif SC', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.date-week {
    font-size: 12px;
    color: var(--mid);
    margin-top: 3px;
}

.date-divider {
    width: 1px;
    height: 52px;
    background-color: rgba(232, 136, 132, 0.3);
}

.date-icons {
    display: flex;
    gap: 40px;
}

.date-icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.date-icon-btn span {
    font-size: 12px;
    color: var(--mid);
}

/* Story Section */
.story-section {
    background-color: var(--bg);
    overflow: hidden;
    margin-top: 0;
    padding-top: 1.5rem;
    clear: both;
    position: relative;
    z-index: 10;
}

.story-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 80px;
}

@media (max-width: 767px) {
    .story-content {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .story-mobile {
        display: none !important;
    }
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

/* Story - Left */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
}

.section-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
}

.story-timeline-wrapper {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 24px;
    align-items: start;
}

.story-timeline {
    position: relative;
    padding-left: 20px;
}

.timeline-line {
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 0;
    width: 1px;
    background-color: var(--pink);
}

.timeline-item {
    position: relative;
    margin-bottom: 22px;
}

.timeline-dot {
    position: absolute;
    left: -14px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(232, 136, 132, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-inner {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--white);
}

.timeline-year {
    font-size: 12px;
    color: var(--rose);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.timeline-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}

.story-polaroids {
    position: relative;
    height: 340px;
}

.polaroid-wrap {
    position: absolute;
    width: 160px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.polaroid-wrap:active {
    transform: scale(1.02) rotate(0deg) !important;
}

@media (hover: hover) {
    .polaroid-wrap:hover {
        transform: scale(1.04) rotate(0deg) !important;
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
        z-index: 10 !important;
    }
}

.polaroid {
    background: var(--white);
    padding: 7px 7px 28px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    display: inline-block;
    width: 100%;
}

.polaroid img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.polaroid-label {
    text-align: center;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text);
    font-family: 'Noto Sans SC', sans-serif;
}

/* Story - Right */
.message-wrapper {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: start;
}

.message-card {
    position: relative;
    background-color: var(--white);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 4px 20px rgba(232, 136, 132, 0.1);
}

.quote-mark {
    position: absolute;
    top: -8px;
    left: 12px;
    font-family: 'Noto Serif SC', serif;
    font-size: 72px;
    color: var(--rose);
    opacity: 0.18;
    line-height: 1;
}

.message-content {
    position: relative;
    z-index: 1;
}

.message-text {
    font-size: 14px;
    color: var(--text);
    line-height: 2.05;
    margin-bottom: 16px;
}

.message-sign {
    font-size: 13px;
    color: var(--muted);
    font-family: 'Noto Serif SC', serif;
}

.message-sign span {
    font-size: 12px;
}

.message-actions {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    padding-left: 4px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--mid);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    min-height: 44px;
    padding: 8px;
    margin: -8px;
}

.action-btn.liked {
    color: var(--rose);
}

.action-btn.liked svg {
    fill: var(--rose);
    stroke: var(--rose);
}

/* Story - Mobile */
.story-mobile {
    padding: 2.5rem 1.25rem;
}

.section-header-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.section-title-mobile {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
}

.timeline-mobile {
    position: relative;
    padding-left: 20px;
    margin-bottom: 24px;
}

.timeline-line-mobile {
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 0;
    width: 1px;
    background-color: var(--pink);
}

.timeline-item-mobile {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot-mobile {
    position: absolute;
    left: -14px;
    top: 4px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(232, 136, 132, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-inner-mobile {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--white);
}

.timeline-year-mobile {
    font-size: 11px;
    color: var(--rose);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.timeline-text-mobile {
    font-size: 13px;
    color: var(--text);
}

.polaroid-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.polaroid-mobile-item {
    flex-shrink: 0;
    width: 155px;
    scroll-snap-align: start;
}

.view-album-btn {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--rose);
    background: none;
    border: none;
    cursor: pointer;
}

/* Album Section */
.album-section {
    background-color: #FDF4EE;
}

.album-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.25rem 3.5rem;
    position: relative;
}

.album-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.album-label {
    font-size: 11px;
    color: var(--rose);
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.album-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
}

.album-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.album-tab {
    flex-shrink: 0;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--pink);
    color: var(--text);
    transition: background 0.2s, color 0.2s;
}

.album-tab.active {
    background-color: var(--rose);
    color: var(--white);
}

.plus-btn {
    position: absolute;
    bottom: -18px;
    right: 4px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--rose);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(232, 136, 132, 0.45);
}

/* Message Section - Mobile */
.message-section-mobile {
    background-color: var(--bg);
    padding: 3.5rem 1.25rem 2.5rem;
}

.message-card-mobile {
    position: relative;
    background-color: var(--white);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 4px 20px rgba(232, 136, 132, 0.1);
    margin-bottom: 16px;
}

.quote-mark-mobile {
    position: absolute;
    top: -6px;
    left: 10px;
    font-family: 'Noto Serif SC', serif;
    font-size: 64px;
    color: var(--rose);
    opacity: 0.18;
    line-height: 1;
}

.message-content-mobile {
    position: relative;
    z-index: 1;
}

.message-text-mobile {
    font-size: 14px;
    color: var(--text);
    line-height: 2.05;
    margin-bottom: 14px;
}

.message-sign-mobile {
    font-size: 13px;
    color: var(--muted);
    font-family: 'Noto Serif SC', serif;
}

.message-sign-mobile span {
    font-size: 12px;
}

.message-actions-mobile {
    display: flex;
    gap: 20px;
}

.action-btn-mobile {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--mid);
    background: none;
    border: none;
    cursor: pointer;
    min-height: 44px;
    padding: 8px;
    margin: -8px;
}

.action-btn-mobile.liked {
    color: var(--rose);
}

.action-btn-mobile.liked svg {
    fill: var(--rose);
    stroke: var(--rose);
}

/* 手写字体样式 */
.handwriting {
    font-family: 'Ma Shan Zheng', 'ZCOOL XiaoWei', 'Noto Serif SC', serif !important;
    text-align: center;
    line-height: 1.9;
}

.handwriting-sign {
    font-family: 'Ma Shan Zheng', 'ZCOOL XiaoWei', 'Noto Serif SC', serif !important;
    text-align: center;
    margin-top: 16px;
}

/* Timeline Section */
.timeline-section {
    background-color: #FDF4EE;
}

.timeline-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 48px;
}

.timeline-label {
    font-size: 11px;
    color: var(--rose);
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.timeline-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 24px;
}

.timeline-section-wrapper {
    position: relative;
    padding-left: 16px;
}

.timeline-section-line {
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 0;
    width: 1px;
    background-color: var(--pink);
}

.timeline-section-item {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.timeline-section-dot {
    position: absolute;
    left: -10px;
    top: 5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background-color: var(--rose);
    box-shadow: 0 0 0 3px rgba(232, 136, 132, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-section-dot-inner {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--white);
}

.timeline-section-year {
    font-size: 12px;
    color: var(--rose);
    font-family: 'Noto Serif SC', serif;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.timeline-section-text {
    font-size: 14px;
    color: var(--text);
    line-height: 1.6;
    flex: 1;
    display: block;
}

.timeline-section-photo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-section-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Interaction Section */
.interaction-section {
    background-color: var(--bg);
    padding: 3.75rem 1.25rem;
    text-align: center;
}

.interaction-content {
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.interaction-label {
    font-size: 11px;
    color: var(--rose);
    letter-spacing: 3px;
    margin-bottom: 4px;
}

.interaction-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 32px;
}

.heart-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.heart-button {
    cursor: pointer;
    transition: transform 0.2s var(--ease-out);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform: translateZ(0);
}

.heart-button:active {
    transform: scale(0.92) translateZ(0);
}

@media (hover: hover) {
    .heart-button:hover {
        transform: scale(1.05) translateZ(0);
    }
}

.heart-button.clicked {
    animation: heartBounce 0.7s var(--ease-bounce) forwards;
}

.heart-message {
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--rose);
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    max-width: 200px;
    text-align: center;
    background-color: var(--pink-light);
    border-radius: 16px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(232, 136, 132, 0.2);
}

.heart-message.show {
    opacity: 1;
    animation: msgPopIn 0.5s var(--ease-out) forwards;
}

.interaction-hint {
    margin-top: 40px;
    font-size: 13px;
    color: var(--mid);
}

/* Ending Section */
.ending-section {
    background-color: #FDF4EE;
    padding: 5rem 1.25rem 3.75rem;
    text-align: center;
}

.candle-wrapper {
    margin-bottom: 32px;
}

.ending-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
}

.ending-text {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 8px;
}

.ending-date {
    font-size: 13px;
    color: var(--mid);
    margin-bottom: 32px;
}

.back-top-btn {
    padding: 10px 24px;
    border: 1px solid var(--rose);
    background: none;
    color: var(--rose);
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Noto Sans SC', sans-serif;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    min-height: 44px;
}

.back-top-btn:active {
    transform: scale(0.96);
}

@media (hover: hover) {
    .back-top-btn:hover {
        background: var(--rose);
        color: var(--white);
    }
}

/* Responsive Styles */
@media (min-width: 768px) {
    .album-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .album-content,
    .story-content {
        padding: 56px 80px !important;
        max-width: 1280px;
        margin: 0 auto;
    }
    
    .timeline-content {
        padding: 40px 80px !important;
    }
    
    /* Desktop visible */
    .hidden.md\:flex {
        display: flex !important;
    }
    
    .hidden.md\:block {
        display: block !important;
    }
    
    /* md:hidden - hide on desktop */
    .md\:hidden {
        display: none !important;
    }
}

/* Greeting Card Section */
.greeting-section {
    background-color: #FDF4EE;
    padding: 3rem 1.25rem;
}

.greeting-content {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.25rem;
}

.greeting-title {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.greeting-subtitle {
    font-family: 'Noto Serif SC', serif;
    font-size: 16px;
    color: var(--rose);
    margin-bottom: 24px;
}

.envelope-wrapper {
    margin-bottom: 28px;
    display: inline-block;
}

.greeting-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.save-card-btn {
    width: 100%;
    padding: 13px 0;
}

.btn-share {
    width: 100%;
    padding: 12px 0;
    border-radius: 999px;
    background: white;
    color: var(--rose);
    border: 1px solid var(--rose);
    cursor: pointer;
    font-size: 14px;
    font-family: 'Noto Sans SC', sans-serif;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    min-height: 44px;
}

.btn-share:active {
    transform: scale(0.96);
}

@media (hover: hover) {
    .btn-share:hover {
        background: var(--rose);
        color: white;
    }
}

/* Footer */
.site-footer {
    background-color: var(--pink);
    padding: 16px;
    text-align: center;
}

.site-footer p {
    font-size: 12px;
    color: var(--muted);
}

/* RPL Ring Animation */
.rpl-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--rose);
    animation: rpl 1.6s ease-out infinite;
}

@keyframes rpl {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* Ending Logo */
.ending-logo {
    font-family: 'Dancing Script', cursive;
    font-size: 22px;
    color: var(--rose);
}

.ending-text-top {
    font-family: 'Noto Serif SC', serif;
    font-size: 20px;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 20px;
}

.ending-date {
    font-family: 'Noto Serif SC', serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}

.ending-week {
    font-size: 13px;
    color: var(--muted);
    margin-top: 6px;
    letter-spacing: 2px;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
}

.back-to-top:hover {
    color: var(--rose);
}

.bg-carnation-left,
.bg-carnation-right {
    position: absolute;
    top: 0;
    opacity: 0.12;
    pointer-events: none;
}

.bg-carnation-left {
    left: 0;
}

.bg-carnation-right {
    right: 0;
    transform: scaleX(-1);
}

/* Back to Top Button */
.back-to-top-wrapper {
    background-color: var(--bg);
    padding: 24px 20px;
    text-align: center;
}

.back-to-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans SC', sans-serif;
    padding: 8px 16px;
    border-radius: 999px;
    transition: all 0.2s;
    min-height: 44px;
}

.back-to-top-btn:active {
    color: var(--rose);
    background-color: var(--pink);
}

@media (hover: hover) {
    .back-to-top-btn:hover {
        color: var(--rose);
        background-color: var(--pink);
    }
}

/* Parallax Decoration */
.parallax-bg {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.parallax-hearts {
    top: 20%;
    left: 0;
    width: 200px;
    height: 400px;
}

.parallax-petals {
    top: 40%;
    right: 0;
    width: 180px;
    height: 350px;
}

/* Dynamic Font Scaling */
.responsive-title {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark);
}

.responsive-title-sm {
    font-family: 'Noto Serif SC', serif;
    font-size: clamp(1.1rem, 1.5vw + 0.75rem, 1.5rem);
    font-weight: 600;
    line-height: 1.35;
    color: var(--dark);
}

.responsive-body {
    font-size: clamp(0.875rem, 0.8vw + 0.5rem, 1rem);
    line-height: 1.7;
    color: var(--text);
}

.responsive-label {
    font-size: clamp(0.625rem, 0.5vw + 0.3rem, 0.75rem);
    letter-spacing: 0.15em;
    color: var(--rose);
}

/* Enhanced Heart Button */
.heart-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.heart-button {
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transform: translateZ(0);
    transition: transform 0.2s var(--ease-out);
}

.heart-button:active {
    transform: scale(0.92) translateZ(0);
}

@media (hover: hover) {
    .heart-button:hover {
        transform: scale(1.05) translateZ(0);
    }
}

.heart-button.clicked {
    animation: heartBounce 0.7s var(--ease-bounce) forwards;
}

.heart-message {
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: var(--rose);
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    white-space: normal;
    max-width: 200px;
    text-align: center;
    background-color: var(--pink-light);
    border-radius: 16px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(232, 136, 132, 0.2);
}

.heart-message.show {
    opacity: 1;
    animation: msgPopIn 0.5s var(--ease-out) forwards;
}

/* RPL Ring with GPU Acceleration */
.rpl-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--rose);
    animation: rpl 1.6s ease-out infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
    pointer-events: none;
}

@keyframes rpl {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(2.6); opacity: 0; }
}

/* GPU Accelerated Elements */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* Envelope Open Animation */
.envelope-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.envelope-body {
    position: relative;
}

.envelope-flap {
    transform-origin: top center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.envelope-container.opened .envelope-flap {
    transform: rotateX(-180deg);
}

.envelope-letter {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition-delay: 0.5s;
}

.envelope-container.opened .envelope-letter {
    transform: translateX(-50%) translateY(-120px) scale(1.1);
    opacity: 1;
}

.envelope-back {
    position: relative;
    z-index: 1;
}

.envelope-front {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

@keyframes envelopeOpen {
    0% {
        transform: rotateX(0deg);
    }
    100% {
        transform: rotateX(-180deg);
    }
}

@keyframes letterSlideUp {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-120px) scale(1.1);
        opacity: 1;
    }
}

.envelope-hint {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--rose);
    opacity: 0.8;
    white-space: nowrap;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Shimmer Effect for Share Button */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.btn-share.shimmer-effect {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, var(--rose) 0%, var(--rose) 40%, rgba(255,255,255,0.5) 50%, var(--rose) 60%, var(--rose) 100%);
    background-size: 200% 100%;
    animation: shimmer 2.5s ease-in-out infinite;
    color: var(--white);
    border-color: var(--rose);
}

.btn-share.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmerSweep 2.5s ease-in-out infinite;
}

@keyframes shimmerSweep {
    0% { left: -100%; }
    100% { left: 200%; }
}

.skeleton {
    position: relative;
    overflow: hidden;
    background-color: var(--pink);
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: skeleton-loading 1.5s ease-in-out infinite;
    background-size: 200px 100%;
}

/* Album Grid - Mobile Waterfall Layout */
.album-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 768px) {
    .album-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        column-count: unset;
    }
}

@media (max-width: 767px) {
    .album-grid {
        column-count: 2;
        column-gap: 10px;
    }
}

.album-cell {
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    break-inside: avoid;
    margin-bottom: 10px;
    position: relative;
    background-color: var(--pink);
}

.album-cell img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, opacity 0.4s ease;
    opacity: 0;
}

.album-cell img.loaded {
    opacity: 1;
}

.album-cell:hover img {
    transform: scale(1.06);
}

@media (hover: none) {
    .album-cell:active img {
        transform: scale(1.03);
    }
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: var(--pink);
}

.skeleton-img.tall {
    aspect-ratio: 1 / 1.4;
}

.skeleton-img.wide {
    aspect-ratio: 1 / 0.8;
}
