@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Pacifico&display=swap');

body {
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow-x: hidden;
}

nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 850;
    height: 62px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.nav-logo {
    font-family: 'Pacifico', cursive;
    font-size: 26px;
    color: #ff6f61;
    text-decoration: none;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-logo:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

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

.nav-item {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #555555;
    text-decoration: none;
    position: relative;
    padding: 6px 2px;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.nav-item:hover {
    color: #ff6f61;
}

.nav-item.active {
    color: #ff6f61;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ff6f61;
    border-radius: 2px;
}

.nav-upload-btn {
    background: #ffebe8;
    color: #ff6f61 !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 111, 97, 0.28) !important;
    transition: all 0.2s ease !important;
}

.nav-upload-btn::after {
    display: none !important;
}

.nav-upload-btn:hover {
    background: #ff6f61 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 111, 97, 0.25);
}

main {
    margin-top: 80px;
}

#name {
    text-align: center;
    padding: 15px 0 5px 0;
}

#name h2 {
    font-family: 'Pacifico', cursive;
    font-size: 36px;
    color: #ff6f61;
    margin: 0;
    padding: 0;
}

#timer {
    text-align: center;
    padding: 15px 20px 0 20px;
}

#timer p {
    font-size: 20px;
    margin-bottom: 5px;
}

#timer h2 {
    font-size: 36px;
    color: #ff6f61;
}

#dates {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 30px 0;
}

.date-item {
    background-color: #ffffff;
    padding: 20px;
    margin: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 180px;
    transition: transform 0.3s;
    animation: fadeInUp 1s forwards;
    opacity: 0;
}

.date-item:nth-child(1) {
    animation-delay: 0.2s;
}

.date-item:nth-child(2) {
    animation-delay: 0.4s;
}

.date-item:nth-child(3) {
    animation-delay: 0.6s;
}

.date-item:hover {
    transform: translateY(-10px);
}

.date-item p {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.date-item span {
    font-size: 14px;
    color: #777;
}

/* ================= 筛选区域 (Filter Section) ================= */
#filterSection {
    max-width: 960px;
    margin: 10px auto 30px auto;
    padding: 0 20px;
}

.filter-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 111, 97, 0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    font-size: 15px;
    font-weight: 700;
    color: #ff6f61;
}

.filter-icon {
    font-size: 18px;
}

.filter-content {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

/* 搜索框 */
.search-box {
    position: relative;
    width: 100%;
    max-width: 460px;
}

.search-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 36px 10px 16px;
    border: 1.5px solid #e5e5e5;
    border-radius: 25px;
    font-size: 14px;
    font-family: inherit;
    color: #333;
    outline: none;
    transition: all 0.25s ease;
    background-color: #fafafa;
}

.search-box input:focus {
    border-color: #ff6f61;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.15);
}

.search-box input::placeholder {
    color: #aaa;
    font-size: 13px;
}

.search-box .clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 50%;
}

.search-box .clear-btn:hover {
    color: #ff6f61;
}

/* 选项按钮组 */
.options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-btn {
    background: #f7f7f8;
    border: 1px solid #e2e2e2;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    font-family: inherit;
    color: #555;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.filter-btn:hover {
    border-color: #ffb4ac;
    color: #ff6f61;
    background-color: #fff7f6;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #ff7e71 0%, #ff5240 100%);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(255, 111, 97, 0.35);
    transform: translateY(-1px);
}

/* 筛选底部状态 */
.filter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f2f2f2;
    padding-top: 14px;
    margin-top: 4px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-stats {
    font-size: 13px;
    color: #888;
}

.filter-stats strong {
    color: #ff6f61;
    font-weight: 700;
}

.reset-btn {
    background: transparent;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 5px 14px;
    font-size: 12px;
    color: #777;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    border-color: #ff6f61;
    color: #ff6f61;
    background-color: #fff5f4;
}

/* ================= 相册展示区 (Masonry 瀑布流画廊) ================= */
#gallery {
    column-count: 4;
    column-gap: 16px;
    padding: 10px 24px 60px 24px;
    max-width: 1560px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    min-height: 200px;
}

@media (min-width: 1600px) {
    #gallery {
        column-count: 5;
        column-gap: 18px;
    }
}

@media (max-width: 1280px) {
    #gallery {
        column-count: 4;
        column-gap: 14px;
    }
}

@media (max-width: 960px) {
    #gallery {
        column-count: 3;
        column-gap: 12px;
        padding: 10px 16px 50px 16px;
    }
}

@media (max-width: 600px) {
    #gallery {
        column-count: 2;
        column-gap: 10px;
        padding: 10px 10px 40px 10px;
    }
}

.photo-card {
    position: relative;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    margin-bottom: 16px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f7f7f7;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s;
    user-select: none;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(255, 111, 97, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    image-orientation: from-image;
    transition: transform 0.4s ease;
}

.photo-card:hover img {
    transform: scale(1.025);
}

.photo-card .photo-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 12px 10px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
    color: #ffffff;
    font-size: 11px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    pointer-events: none;
    opacity: 0.9;
    transition: opacity 0.25s ease;
}

.photo-card:hover .photo-badge {
    opacity: 1;
}

.badge-date {
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.badge-location {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    color: #ffd8d3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* 空相册提示 */
.empty-gallery {
    column-span: all;
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.empty-text {
    font-size: 16px;
    margin-bottom: 16px;
    color: #666;
}

.empty-reset-btn {
    background: #ff6f61;
    color: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 8px 22px;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s;
}

.empty-reset-btn:hover {
    opacity: 0.9;
}

/* ================= 全屏单图精致相框展示 (Popup Frame - 仿地图缩放平滑渐入) ================= */
#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 20, 18, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    padding: 20px;
}

#popup.popup-active {
    opacity: 1;
    pointer-events: auto;
}

/* 仿地图放大/flyTo质感的独立相框卡片 */
.popup-frame {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #ffffff;
    padding: 14px 14px 16px 14px;
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.28), 0 0 35px rgba(255, 111, 97, 0.18);
    border: 3px solid #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    /* 核心：仿 Leaflet flyTo / 地图放大的平滑渐入动效 (从 0.72 放大到 1) */
    transform: scale(0.72);
    opacity: 0;
    transition: transform 0.38s cubic-bezier(0.18, 0.89, 0.32, 1.22), opacity 0.3s ease;
}

#popup.popup-active .popup-frame {
    transform: scale(1);
    opacity: 1;
}

/* 右上角关闭按钮 */
.popup-close-btn {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    background: #ff6f61;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(255, 111, 97, 0.45);
    transition: transform 0.2s ease, background-color 0.2s ease;
    z-index: 10;
}

.popup-close-btn:hover {
    transform: scale(1.12) rotate(90deg);
    background-color: #ff5240;
}

.popup-img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    background-color: #f7f7f7;
    max-width: 100%;
}

#popupImg {
    max-width: 82vw;
    max-height: 72vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    user-select: none;
    -webkit-user-drag: none;
}

/* 相框底部信息标签 */
.popup-meta {
    width: 100%;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.popup-meta-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-meta-location {
    font-size: 15px;
    font-weight: 700;
    color: #ff6f61;
}

.popup-meta-date {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
}

.popup-meta-desc {
    font-size: 13px;
    color: #555555;
    margin: 2px 0 0 0;
    text-align: center;
    max-width: 90%;
    line-height: 1.4;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .filter-card {
        padding: 18px 16px;
    }
    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .filter-title {
        min-width: unset;
    }
    .search-box {
        max-width: 100%;
    }
    #popupImg {
        max-width: 92%;
        max-height: 70%;
        top: 56%;
    }
    #closeBtn {
        top: 15px;
        right: 20px;
        font-size: 38px;
    }
}

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

@keyframes rotateBackground {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

body::before {
    content: '';
    position: fixed;
    top: -50px;
    left: -50px;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle at center, rgba(255, 111, 97, 0.2), transparent 70%);
    animation: rotateBackground 30s linear infinite;
    z-index: -1;
}

#heartCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 99;
}

/* 隐藏切换箭头：专注于单张照片独立相框展示 */
.arrow,
#leftArrow,
#rightArrow {
    display: none !important;
    pointer-events: none !important;
}

.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    font: 16px 'Montserrat', sans-serif;
    color: #9b9b9b;
    justify-content: center;
    text-align: center;
    font-size: 14px;
}

.container a {
    color: #9b9b9b;
    text-decoration: underline;
}

.container a:hover {
    color: #2b2b2b;
}

/* ================= 右下角悬浮音乐播放器 (Music Player) ================= */
.music-player {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

/* 展开信息卡片 */
.music-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(255, 111, 97, 0.22), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 111, 97, 0.25);
    transform: translateX(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-player:hover .music-card,
.music-player.playing .music-card {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.music-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.music-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.3px;
}

.music-status {
    font-size: 11px;
    color: #ff6f61;
    margin-top: 2px;
}

/* 动态音波跳动 */
.music-waves {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 16px;
}

.music-wave-bar {
    width: 3px;
    height: 4px;
    background: #ff6f61;
    border-radius: 2px;
    transition: height 0.2s ease;
}

.music-player.playing .music-wave-bar:nth-child(1) {
    animation: musicWaveAnim 0.8s ease-in-out infinite alternate;
}
.music-player.playing .music-wave-bar:nth-child(2) {
    animation: musicWaveAnim 1.1s ease-in-out infinite alternate 0.2s;
}
.music-player.playing .music-wave-bar:nth-child(3) {
    animation: musicWaveAnim 0.7s ease-in-out infinite alternate 0.4s;
}
.music-player.playing .music-wave-bar:nth-child(4) {
    animation: musicWaveAnim 1.0s ease-in-out infinite alternate 0.15s;
}

@keyframes musicWaveAnim {
    0% { height: 4px; }
    100% { height: 16px; }
}

/* 黑胶唱片旋转按钮外框 */
.music-disc-wrapper {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.music-player:hover .music-disc-wrapper {
    transform: scale(1.08);
}

/* 黑胶唱片盘体 */
.music-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, #333333 0%, #151515 70%, #080808 100%);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 2.5px rgba(255, 111, 97, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: spinDisc 5s linear infinite;
    animation-play-state: paused;
}

.music-player.playing .music-disc {
    animation-play-state: running;
    box-shadow: 0 6px 22px rgba(255, 111, 97, 0.5), 0 0 0 2.5px #ff6f61;
}

/* 唱片同心沟槽效果 */
.disc-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 74%;
    height: 74%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    pointer-events: none;
}

/* 唱片中心标贴 */
.disc-label {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7e71, #ff5240);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.disc-note {
    font-size: 12px;
    color: #ffffff;
    user-select: none;
}

/* 播放/暂停状态角标 */
.music-play-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    background: #ff6f61;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.music-player.playing .music-play-badge {
    background: #ff5240;
}

.badge-icon {
    font-size: 9px;
    color: #ffffff;
    margin-left: 1px;
}

.music-player.playing .badge-icon {
    margin-left: 0;
    font-size: 8px;
}

@keyframes spinDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 移动端响应式 */
@media (max-width: 768px) {
    .music-player {
        bottom: 20px;
        right: 20px;
    }
    .music-disc-wrapper {
        width: 48px;
        height: 48px;
    }
    .music-card {
        padding: 8px 14px;
        gap: 8px;
    }
    .music-title {
        font-size: 11px;
    }
    .music-status {
        font-size: 9px;
    }
}

/* ================= 地图足迹视图 (Map View) ================= */
#mapSection {
    max-width: 1100px;
    margin: 10px auto 40px auto;
    padding: 0 20px;
}

.map-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid rgba(255, 111, 97, 0.12);
}

.map-header {
    text-align: center;
    margin-bottom: 22px;
}

.map-header h2 {
    font-family: 'Pacifico', cursive;
    font-size: 32px;
    color: #ff6f61;
    margin: 0 0 6px 0;
}

.map-header p {
    color: #777;
    font-size: 14px;
    margin: 0;
}

.couple-map {
    width: 100%;
    height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e2e2;
    z-index: 10;
}

/* 地图真实照片标记 (Photo Pin Marker) */
.custom-map-photo-icon {
    background: transparent !important;
    border: none !important;
}

.map-photo-marker {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.28));
}

.map-photo-marker:hover,
.map-photo-marker.active-pin {
    transform: translateY(-8px) scale(1.22);
    z-index: 9999 !important;
}

.map-photo-bubble {
    width: var(--marker-size, 50px);
    height: var(--marker-size, 50px);
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 2.5px #ff6f61;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
}

.map-photo-marker.active-pin .map-photo-bubble {
    box-shadow: 0 0 0 3.5px #ff6f61, 0 0 16px rgba(255, 111, 97, 0.6);
}

.map-photo-bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.map-photo-pointer {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid #ff6f61;
    margin-top: -1px;
}

/* 地图层级自适应图钉尺寸 (随地图放大对应变大) */
.map-zoom-low .map-photo-bubble {
    --marker-size: 44px;
}
.map-zoom-mid .map-photo-bubble {
    --marker-size: 56px;
}
.map-zoom-high .map-photo-bubble {
    --marker-size: 70px;
}

/* 地图大弹窗样式与大图放大联动 */
.map-popup-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 240px;
    max-width: 280px;
    padding: 2px;
}

.map-popup-img-box {
    position: relative;
    width: 100%;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background-color: #f2f2f2;
}

.map-popup-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.map-popup-img-box:hover img {
    transform: scale(1.06);
}

.map-popup-zoom-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 11px;
    padding: 4px 9px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.map-popup-img-box:hover .map-popup-zoom-tag {
    background: rgba(255, 111, 97, 0.95);
}

.map-popup-title {
    font-weight: 700;
    font-size: 14px;
    color: #222;
    margin: 0;
}

.map-popup-date {
    font-size: 12px;
    color: #ff6f61;
    font-weight: 600;
    margin: 0;
}

.map-popup-desc {
    font-size: 11px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

/* 足迹清单 */
.footprint-summary {
    margin-top: 28px;
    border-top: 1px solid #f0f0f0;
    padding-top: 22px;
}

.footprint-summary h3 {
    font-size: 17px;
    color: #333;
    margin: 0 0 16px 0;
}

.footprint-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.footprint-item {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.footprint-item:hover {
    background: #fff7f6;
    border-color: #ffb4ac;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 111, 97, 0.15);
}

.footprint-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.footprint-info {
    flex: 1;
    overflow: hidden;
}

.footprint-city {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footprint-date {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* 导航栏响应式 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 18px;
    }
    .nav-logo {
        font-size: 22px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-item {
        font-size: 14px;
    }
    .couple-map {
        height: 380px;
    }
    .map-card {
        padding: 20px 16px;
    }
}

/* ================= 3D 照片球视图 (Photo Ball 纯白浪漫主题) ================= */
#ballView {
    margin-top: -18px; /* 紧贴顶部 fixed 导航栏 (height: 62px) 底边，彻底消除 18px 间隔 */
    height: calc(100vh - 62px);
    min-height: calc(100vh - 62px);
    max-height: calc(100vh - 62px);
    background: radial-gradient(circle at 50% 50%, #ffffff 0%, #fff8f7 55%, #ffebe8 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    padding: 0;
}

.ball-scene {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.ball-scene:active {
    cursor: grabbing;
}

/* 背景艺术字 (MEMORIES & Photo Ball 柔和浪漫粉白水印质感) */
.ball-bg-title {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 1;
    width: 100%;
}

.ball-title-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(64px, 13vw, 160px);
    font-weight: 700;
    color: rgba(255, 111, 97, 0.13);
    margin: 0;
    line-height: 0.9;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(255, 111, 97, 0.08);
}

.ball-subtitle-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}

.ball-line {
    width: clamp(40px, 8vw, 120px);
    height: 1px;
    background: rgba(255, 111, 97, 0.25);
}

.ball-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    letter-spacing: 6px;
    font-weight: 600;
    color: rgba(255, 111, 97, 0.45);
    text-transform: uppercase;
}

/* 3D 视口 */
.ball-viewport {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    perspective-origin: 50% 50%;
    z-index: 2;
    overflow: hidden;
}

/* 3D 球体 */
.ball-sphere {
    position: relative;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    will-change: transform;
}

/* 球面照片卡片 (纯白微立体相框质感) */
.ball-card {
    position: absolute;
    left: -80px;
    top: -62px;
    width: 160px;
    height: 124px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(255, 111, 97, 0.16);
    background-color: #ffffff;
    cursor: pointer;
    transform-style: preserve-3d;
    backface-visibility: visible;
    transition: border-color 0.25s, filter 0.25s, box-shadow 0.25s;
}

.ball-card:hover {
    border-color: #ff6f61;
    filter: brightness(1.08);
    box-shadow: 0 0 26px rgba(255, 111, 97, 0.5), 0 14px 30px rgba(0, 0, 0, 0.22);
    z-index: 999;
}

.ball-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}