/* ==========================================================================
   Footprint - Components CSS (UI Elements, Buttons, Cards, Modals, Forms)
   ========================================================================== */

/* Header (Invisible Floating Minimalist Navigation) */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 28px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(11, 14, 20, 0.5) !important;
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: none !important;
}

[data-theme="light"] .header {
    background: rgba(248, 246, 240, 0.65) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    cursor: pointer;
}

.logo-icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover .logo-icon-svg {
    transform: rotate(-6deg) scale(1.06);
}

.logo-icon {
    display: none;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Buttons */
.btn {
    padding: 10px 18px;
    min-height: 44px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
    text-decoration: none;
}

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

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glow);
}

.btn-ghost {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--glass);
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-sm {
    padding: 8px 14px;
    min-height: 36px;
    font-size: 13px;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Mode Bar & Switcher */
.mode-bar {
    padding: 8px 24px;
    display: flex;
    justify-content: center;
}

.mode-switcher {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 4px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.mode-pill {
    min-width: 112px;
    height: 42px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-sec);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: var(--transition);
}

.mode-pill > span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.mode-pill:hover {
    color: var(--text);
    background: var(--glass);
}

.mode-pill.active {
    color: white;
    background: var(--gradient);
    box-shadow: 0 4px 14px var(--glow);
}

/* Quick Feature Bar */
.feature-bar-section {
    margin-bottom: 20px;
}

.feature-bar-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
}

.feature-bar-scroll::-webkit-scrollbar {
    height: 4px;
}

.feature-bar-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.feature-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.feature-pill-btn:hover {
    border-color: var(--primary);
    background: var(--mode-bg);
    transform: translateY(-2px);
}

/* Quick Stats Bar */
.quick-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.quick-stat {
    text-align: center;
}

.quick-stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quick-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Content Area */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

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

.section-title {
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Photo Grid - Polaroid Cards */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.photo-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    padding: 12px 12px 16px;
    position: relative;
}

[data-theme="dark"] .photo-card {
    background: rgba(30, 30, 40, 0.95);
}

.photo-card:hover {
    transform: translateY(-8px) rotate(-1deg);
    box-shadow: 0 14px 28px rgba(0,0,0,0.25);
}

.photo-card:nth-child(even):hover {
    transform: translateY(-8px) rotate(1deg);
}

.photo-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 2px;
    display: block;
}

.photo-card-body {
    padding: 12px 4px 4px;
}

.photo-card-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.photo-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
    align-items: center;
}

.photo-card-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.tag-travel {
    background: rgba(59, 130, 246, 0.2);
    color: #60A5FA;
}

.tag-food {
    background: rgba(245, 158, 11, 0.2);
    color: #FBBF24;
}

.tag-love {
    background: rgba(236, 72, 153, 0.2);
    color: #F472B6;
}

/* Price & Rating Badge */
.food-price-badge {
    color: #F59E0B;
    font-weight: 700;
    margin-left: auto;
}

/* Empty State */
.empty {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 72px;
    margin-bottom: 20px;
    line-height: 1;
    animation: float 3s ease-in-out infinite;
}

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

.empty h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.empty p {
    color: var(--text-sec);
    margin-bottom: 24px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px var(--glow);
    transition: var(--transition);
    font-size: 28px;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--glow);
}

.fab:active {
    transform: scale(0.96);
}

.fab-icon {
    line-height: 1;
}

/* Modals */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.3s ease;
}

.modal-lg {
    max-width: 800px;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
    z-index: 10;
}

.modal-title {
    font-size: 17px;
    font-weight: 600;
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    position: sticky;
    bottom: 0;
    background: var(--glass);
    backdrop-filter: blur(20px);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    font-family: var(--font);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--glow);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 10px;
}

.form-row .form-group {
    flex: 1;
}

/* Record Type Selector */
.record-type-selector {
    display: flex;
    gap: 8px;
}

.record-type-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-sec);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.record-type-btn.active {
    border-color: var(--primary);
    background: var(--mode-bg);
    color: var(--primary);
}

/* Upload Tabs & Zone */
.upload-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 5px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.upload-tab {
    flex: 1;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-sec);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.upload-tab:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.upload-tab.active {
    background: var(--bg-card);
    color: var(--primary);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.upload-tab-content {
    display: none;
}

.upload-tab-content.active {
    display: block;
}

.upload-zone {
    border: 2px dashed rgba(59, 130, 246, 0.35);
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    background: var(--bg-elevated);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.06);
    transform: scale(1.005);
}

.upload-zone-icon {
    font-size: 42px;
    margin-bottom: 10px;
    line-height: 1;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.25));
}

.upload-zone h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.upload-zone p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.desktop-only {
    display: flex !important;
    gap: 10px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.mobile-only {
    display: none !important;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
        gap: 10px;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }
}

.url-upload-zone {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
}

.url-provider-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-sec);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.url-provider-tag:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.08);
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
    background: #0B0E14;
    transition: transform 0.2s ease;
}

.preview-item:hover {
    transform: scale(1.04);
    border-color: var(--primary);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.15s ease;
}

.preview-remove:hover {
    transform: scale(1.15);
}

.preview-badge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: rgba(245, 158, 11, 0.9);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.upload-progress {
    margin-top: 16px;
    display: none;
}

.progress-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Hub Tool Dock */
.hub-tool-dock {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
}

.feature-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    user-select: none;
}

.feature-pill-btn .pill-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.feature-pill-btn:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

.feature-pill-btn:hover .pill-icon-box {
    transform: scale(1.2);
}

.feature-pill-btn.pill-amber {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.35);
    color: #F59E0B;
}
.feature-pill-btn.pill-amber:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25);
}

.feature-pill-btn.pill-emerald {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.35);
    color: #10B981;
}
.feature-pill-btn.pill-emerald:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

.feature-pill-btn.pill-sky {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.35);
    color: #0EA5E9;
}
.feature-pill-btn.pill-sky:hover {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(14, 165, 233, 0.6);
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.25);
}

.feature-pill-btn.pill-purple {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.35);
    color: #A855F7;
}
.feature-pill-btn.pill-purple:hover {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.25);
}

.feature-pill-btn.pill-rose {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.35);
    color: #F43F5E;
}
.feature-pill-btn.pill-rose:hover {
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(244, 63, 94, 0.6);
    box-shadow: 0 4px 16px rgba(244, 63, 94, 0.25);
}

[data-theme="light"] .hub-tool-dock {
    background: rgba(255, 255, 255, 0.65);
    border-color: rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .feature-pill-btn {
    background: #FFFFFF;
    color: #0F172A;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .feature-pill-btn:hover {
    border-color: var(--primary);
    background: #FFFFFF;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* User Menu & Dropdown */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-avatar {
    font-size: 18px;
}

.user-arrow {
    font-size: 10px;
    color: var(--text-muted);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-elevated);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px;
    min-width: 160px;
    z-index: 200;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.user-dropdown-item {
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text);
    transition: var(--transition);
}

.user-dropdown-item:hover {
    background: var(--glass);
}

.user-dropdown-logout {
    color: #EF4444;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* Toast */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: var(--glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 14px;
    z-index: 2000;
    transition: var(--transition);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   Photo Card Mosaic Layouts (1, 4, 9 Grid Support)
   ========================================================================== */
.photo-mosaic-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-elevated, #F1F5F9);
}

.photo-mosaic-1 {
    width: 100%;
    height: 100%;
}
.photo-mosaic-1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.photo-card:hover .photo-mosaic-1 img {
    transform: scale(1.04);
}

.photo-mosaic-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
}
.photo-mosaic-4 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.photo-card:hover .photo-mosaic-4 img {
    transform: scale(1.05);
}

.photo-mosaic-9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
}
.photo-mosaic-9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.photo-card:hover .photo-mosaic-9 img {
    transform: scale(1.08);
}

.photo-mosaic-cell {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-card, #E2E8F0);
}

/* 宫格未填满时的艺术模糊卡片占位 (告别漆黑一片) */
.photo-mosaic-cell.photo-mosaic-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px dashed rgba(255, 255, 255, 0.16);
    overflow: hidden;
}

.photo-mosaic-placeholder-blur {
    position: absolute;
    inset: -24px;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.88) saturate(1.25);
    opacity: 0.55;
    transform: scale(1.25);
    pointer-events: none;
}

.photo-mosaic-placeholder-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, rgba(15, 23, 42, 0.3) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.photo-mosaic-placeholder-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255, 255, 255, 0.85);
    user-select: none;
    pointer-events: none;
}

.photo-mosaic-placeholder-icon {
    font-size: 16px;
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.photo-mosaic-more-badge {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    font-family: ui-monospace, monospace;
}

.photo-count-pill {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(11, 14, 20, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   Luxury Journey Timeline (时光轨迹 优雅重构)
   ========================================================================== */
.luxury-timeline {
    position: relative;
    padding: 10px 0 20px 24px;
}

.luxury-timeline::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 8px;
    width: 2px;
    background: linear-gradient(180deg, #3B82F6 0%, #EC4899 45%, #F59E0B 80%, rgba(16,185,129,0.3) 100%);
    border-radius: 2px;
}

.timeline-month-header {
    position: relative;
    margin: 24px 0 16px -24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.timeline-month-tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.timeline-entry {
    position: relative;
    margin-bottom: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.timeline-entry:hover {
    transform: translateX(4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.timeline-node-dot {
    position: absolute;
    left: -20px;
    top: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    z-index: 2;
}

.timeline-node-dot.dot-food {
    background: #F59E0B;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.timeline-node-dot.dot-love {
    background: #EC4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.3);
}

.timeline-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-date-chip {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-sec);
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-title-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.timeline-desc-text {
    font-size: 13px;
    color: var(--text-sec);
    line-height: 1.6;
    margin-bottom: 12px;
}

.timeline-gallery-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}
.timeline-gallery-row::-webkit-scrollbar {
    display: none;
}

.timeline-gallery-thumb {
    width: 110px;
    height: 82px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
    cursor: pointer;
}
.timeline-gallery-thumb:hover {
    transform: scale(1.06);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .mode-switcher { width: min(100%, 420px); }
    .quick-stats { padding: 12px 16px; }
    .quick-stat-num { font-size: 22px; }
    .fab { bottom: 20px; right: 20px; width: 54px; height: 54px; font-size: 24px; }
}

@media (max-width: 480px) {
    .photo-grid { grid-template-columns: 1fr; }
    .content-section { padding: 0 16px 100px; }
    .mode-bar { padding: 8px 16px; }
}

