/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('https://bing.img.run/rand_uhd.php') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

/* 添加背景遮罩，让内容更清晰 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
    color: #764ba2;
}

.logo i {
    font-size: 1.6rem;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: #667eea;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-btn i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #764ba2;
    transform: scale(1.1);
}

.nav {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-link i {
    font-size: 1rem;
}

.nav-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    background: #667eea;
    color: white;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #667eea;
    background: transparent;
    color: #667eea;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.category-link.active {
    background: #667eea;
    color: white;
}

/* 主要内容区域 */
.main {
    padding: 100px 0 50px;
}

/* 时间轴样式 */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 50%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 50%;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 25px;
    width: 16px;
    height: 16px;
    background: white;
    border: 4px solid #667eea;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background: #667eea;
    transform: translateX(-50%) scale(1.2);
}

.timeline-content {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin: 0 20px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: bold;
    font-size: 0.95rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0.8rem;
}

.date-day {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.timeline-content .category {
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.timeline-content .category.travel {
    background: #999;
    color: white;
}

.timeline-content .category.food {
    background: #999;
    color: white;
}

.timeline-content .category.family {
    background: #999;
    color: white;
}

.timeline-content .category.work {
    background: #999;
    color: white;
}

.timeline-content .category.life {
    background: #999;
    color: white;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
    max-width: 700px;
}

.timeline-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
    max-width: 700px;
}

.media-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16/9;
}

.media-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.8));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover::before {
    opacity: 1;
}

.media-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    /*修改了object-fit: cover*/
    object-fit: fill;
    display: block;
    transition: transform 0.4s ease;
}

.media-item:hover img,
.media-item:hover video {
    transform: scale(1.1);
}

.media-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    padding: 2rem 0.8rem 0.8rem;
    font-size: 0.85rem;
    text-align: center;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    opacity: 0;
}

.media-item:hover .media-caption {
    transform: translateY(0);
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 3;
    transition: all 0.3s ease;
}

.media-item:hover .video-overlay {
    transform: translate(-50%, -50%) scale(1.2);
}

.video-overlay i {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* 查看全部按钮样式优化 */
.view-all-link {
    text-align: center;
    margin-top: 3rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

.view-all-btn i {
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateY(3px);
}

/* 空状态样式优化 */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
    animation: fadeInUp 0.6s ease;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.5);
}

.upload-btn i {
    font-size: 1.2rem;
}

/* 媒体查看器 */
.media-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: 2rem;
}

.media-viewer-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /*增加overflow-y: auto*/
    overflow-y: auto
}

.media-container {
    width: 100%;
    max-width: 900px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.media-viewer-main {
    position: relative;
    max-width: 90%;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.media-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    pointer-events: none;
    z-index: 10;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 50px;
    min-height: 50px;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.media-display {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 60vh;
}

.media-display img,
.media-display video {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: 10px;
}

.media-info {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    color: white;
    width: 100%;
    pointer-events: none;
}

.media-info > * {
    pointer-events: auto;
}

.media-info h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.media-info .category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.media-caption-detail {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.5rem 0;
    font-size: 1rem;
}

.media-info > p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

.media-counter {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* 欢迎区域样式 */
.welcome-section {
    text-align: center;
    padding: 3rem 0;
}

.home-welcome {
    margin-bottom: 3rem;
}

.welcome-header h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.welcome-header h2 i {
    font-size: 2.8rem;
}

.welcome-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* 分类网格 */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.category-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    text-decoration: none;
    color: white;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
}

.category-card.travel {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border-color: rgba(102, 126, 234, 0.4);
}

.category-card.food {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(255, 142, 83, 0.3));
    border-color: rgba(255, 107, 107, 0.4);
}

.category-card.family {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.3), rgba(85, 98, 112, 0.3));
    border-color: rgba(78, 205, 196, 0.4);
}

.category-card.work {
    background: linear-gradient(135deg, rgba(69, 183, 209, 0.3), rgba(108, 92, 231, 0.3));
    border-color: rgba(69, 183, 209, 0.4);
}

.category-card.life {
    background: linear-gradient(135deg, rgba(150, 206, 180, 0.3), rgba(72, 201, 176, 0.3));
    border-color: rgba(150, 206, 180, 0.4);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
}

.category-icon i {
    font-size: 2rem;
}

.category-card.travel .category-icon i { color: #667eea; }
.category-card.food .category-icon i { color: #ff6b6b; }
.category-card.family .category-icon i { color: #4ecdc4; }
.category-card.work .category-icon i { color: #45b7d1; }
.category-card.life .category-icon i { color: #96ceb4; }

.category-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.category-info p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* 过滤区域 */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-header {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-header h3 {
    font-size: 1.2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.filter-header h3 i {
    color: #667eea;
}

/* 最新时间轴 */
.recent-timeline {
    margin-top: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-header h3 {
    font-size: 1.8rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.section-header h3 i {
    font-size: 2rem;
}

.section-subtitle {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

/* 时间筛选容器 - 左右布局 */
.time-filter-container {
    margin: 1.5rem 0;
}

/* 时间轴容器 - 左侧 */
.timeline-container {
    flex: 1;
    min-width: 0;
}

/* 时间选择器 - 右侧 */
.time-selector {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.time-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: white;
    border: 2px solid #333;
    border-radius: 20px;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
    font-weight: 500;
}

.time-toggle:hover {
    background: #f8f9fa;
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.time-toggle i {
    color: #667eea;
}

.time-toggle i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

#timeArrow.rotated {
    transform: rotate(180deg);
}

.time-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 0.5rem;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transform-origin: top center;
}

.time-dropdown.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInMobile {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.time-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.time-group {
    width: 100%;
}

.time-group h4 {
    color: white;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.3rem;
    font-weight: 600;
}

.time-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
}

.time-btn {
    padding: 0.3rem 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 500;
}

.time-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.time-btn.active {
    background: rgba(255, 255, 255, 0.4);
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
}

.time-actions {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.clear-filter {
    padding: 0.4rem 0.9rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.clear-filter:hover {
    background: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* 分类控制区域 */
.category-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* 分类页面时间选择器样式 */
.time-selector {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

.time-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
}

.time-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.time-toggle i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

#timeArrow.rotated {
    transform: rotate(180deg);
}

.time-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.2rem;
    margin-top: 0.5rem;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    z-index: 1000;
}

.time-dropdown.show {
    display: block;
}

.time-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.time-group {
    width: 100%;
}

.time-group h4 {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.2rem;
}

.time-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
}

.time-btn {
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.time-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.time-actions {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.clear-filter {
    padding: 0.4rem 0.8rem;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.clear-filter:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .time-filter-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .time-selector {
        align-self: stretch;
        display: flex;
        justify-content: center;
    }
    
    .time-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 280px;
        animation: fadeInMobile 0.3s ease;
    }

    .time-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .category-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filters {
        justify-content: center;
    }
    
    .time-selector {
        align-self: stretch;
        display: flex;
        justify-content: center;
    }
    
    .time-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        animation: fadeInMobile 0.3s ease;
    }

    .time-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* 统计信息样式 */
.record-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.stats-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.stats-number {
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
}

.stats-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* 分类预览样式 */
.category-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.preview-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.preview-date {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.5rem;
}

.preview-day {
    font-size: 1.8rem;
    font-weight: bold;
    color: #667eea;
}

.preview-month {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.preview-content h4 {
    font-size: 1rem;
    color: white;
    margin-bottom: 0.3rem;
}

.preview-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.preview-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.preview-empty i {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* 分类时间轴样式 */
.category-timeline {
    margin-top: 2rem;
    padding: 1rem 0;
}

.category-timeline h3 {
    text-align: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-timeline h3 i {
    font-size: 1.8rem;
}

.category-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.category-card i {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: block;
}

.category-card.travel i { color: #667eea; }
.category-card.food i { color: #ff6b6b; }
.category-card.family i { color: #4ecdc4; }
.category-card.work i { color: #45b7d1; }
.category-card.life i { color: #96ceb4; }

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #666;
    line-height: 1.6;
}

/* 最新时间轴样式 */
.recent-timeline {
    margin-top: 4rem;
    padding: 2rem 0;
}

.recent-timeline h3 {
    text-align: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.view-all-link {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 500;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 页面标题样式 */
.page-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* 添加动画效果到元素 */
.home-welcome .welcome-header {
    animation: fadeInUp 0.8s ease;
}

.home-welcome .record-stats {
    animation: fadeInUp 0.8s ease 0.2s both;
}

.home-welcome .categories-grid {
    animation: fadeInUp 0.8s ease 0.4s both;
}

.category-card {
    animation: fadeInUp 0.6s ease both;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }
.category-card:nth-child(5) { animation-delay: 0.5s; }

.stats-item:hover {
    animation: pulse 0.6s ease;
}

/* 时间轴项目的延迟动画 */
.timeline-item {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

/* 响应式设计 */
@media (max-width: 768px) {
    .header {
        padding: 0.6rem 0;
    }

    .header .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.4rem;
    }

    /* 显示移动端菜单按钮 */
    .mobile-menu-btn {
        display: flex;
    }

    /* 导航菜单默认隐藏，激活时显示 */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        gap: 0.5rem;
        margin-top: 0.5rem;
        border-radius: 0 0 15px 15px;
    }

    .nav.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }

    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 20px;
        text-align: left;
    }

    .timeline-item::before {
        left: 30px;
        top: 20px;
    }

    .timeline-media {
        max-width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .timeline-date {
        padding: 0.4rem 0.8rem;
    }

    .upload-modal-content {
        margin: 1rem;
        padding: 1.5rem;
    }

    /* 首页特定响应式 */
    .welcome-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
    }

    .welcome-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .filter-header {
        flex-direction: column;
        padding: 1rem 1.2rem;
        align-items: stretch;
    }

    .filter-header h3 {
        font-size: 1.1rem;
    }

    .time-selector {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .time-toggle {
        width: 100%;
        max-width: 280px;
        background: white;
        color: #333;
        border-color: #333;
    }

    .time-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        min-width: 260px;
        max-width: 300px;
        animation: fadeInMobile 0.3s ease;
    }

    .time-dropdown.show {
        transform: translateX(-50%) translateY(0);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .section-header h3 {
        font-size: 1.5rem;
    }

    .view-all-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.5rem 0;
    }

    .header .container {
        padding: 0 10px;
    }

    .logo {
        font-size: 1.1rem;
    }

    .logo i {
        font-size: 1.3rem;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }

    .mobile-menu-btn i {
        font-size: 1.3rem;
    }

    .nav {
        padding: 0.8rem;
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 10px;
    }

    .welcome-section {
        padding: 2rem 0;
    }

    .welcome-header h2 {
        font-size: 1.5rem;
    }

    .welcome-header p {
        font-size: 0.95rem;
    }

    .record-stats {
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    .stats-item {
        padding: 0.5rem 0.7rem;
        flex: 1 1 auto;
    }

    .stats-icon {
        font-size: 1rem;
    }

    .stats-number {
        font-size: 1rem;
    }

    .stats-label {
        font-size: 0.7rem;
    }

    .filter-header {
        padding: 0.8rem 1rem;
    }

    .filter-header h3 {
        font-size: 1rem;
    }

    .time-toggle {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        white-space: nowrap;
    }

    .upload-btn {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .timeline-content {
        margin: 0 10px;
        padding: 1rem;
    }

    .timeline-date {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }

    .date-day {
        font-size: 1.1rem;
    }

    .timeline-item::before {
        left: 20px;
        width: 15px;
        height: 15px;
        top: 20px;
    }

    .nav-btn {
        width: 60px;
        height: 60px;
        font-size: 2.5rem;
        min-width: 60px;
        min-height: 60px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 45px;
        margin-right: 10px;
    }

    .timeline-media {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 0.4rem;
    }
}

/* 底部样式 */
.footer {
    padding: 1rem 0;
    margin-top: 3rem;
    background: transparent;
}

.footer-content {
    text-align: center;
}

.footer-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 800px;
    margin: 0 auto;
}

.footer-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    flex-shrink: 0;
}

.footer-copyright i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-site-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    padding: 0 0.1rem;
}

.footer-site-link:hover {
    color: white;
    border-bottom-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.footer-ba {
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-ba a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.footer-ba a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-1px);
}

.footer-ba i {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer {
        padding: 0.8rem 0;
        margin-top: 2rem;
    }

    .footer-card {
        padding: 0.6rem 1rem;
        border-radius: 12px;
        max-width: 95%;
    }

    .footer-info {
        gap: 1rem;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-copyright i {
        font-size: 0.85rem;
    }

    .footer-site-link {
        font-size: 0.8rem;
    }

    .footer-ba {
        gap: 0.5rem;
    }

    .footer-ba a {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .footer-ba i {
        font-size: 0.8rem;
    }
}