/* 生活记录页面样式 */
.life-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.container {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* 生活分类导航 */
.life-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.life-nav button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 25px;
    background-color: #f0f0f0;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.life-nav button:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.life-nav button.active {
    background-color: #00a8ff;
    color: #fff;
}

/* 生活记录时间线 */
.life-timeline {
    position: relative;
    padding: 2rem 0;
}

.life-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: #e0e0e0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #00a8ff;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 1;
}

.timeline-content {
    display: flex;
    gap: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.timeline-image {
    flex: 0 0 300px;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

.timeline-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.timeline-content:hover .timeline-image img {
    transform: scale(1.1);
}

.timeline-info {
    flex: 1;
}

.timeline-info h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tags span {
    background-color: #e8f4ff;
    color: #0066cc;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

/* 生活统计 */
.life-stats {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.life-stats h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stats-item {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.stats-item:hover {
    transform: translateY(-5px);
}

.stats-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #00a8ff;
    margin-bottom: 0.5rem;
}

.stats-label {
    color: #666;
    font-size: 1rem;
}

/* 生活感悟 */
.life-thoughts {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #f0f0f0;
}

.life-thoughts h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.thoughts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.thought-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.thought-item:hover {
    transform: translateY(-5px);
}

.thought-item blockquote {
    color: #2c3e50;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    font-style: italic;
}

.thought-date {
    color: #00a8ff;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* 动画效果 */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.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; }

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .life-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .life-nav button {
        width: 100%;
    }

    .timeline-content {
        flex-direction: column;
    }

    .timeline-image {
        flex: 0 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .thoughts-grid {
        grid-template-columns: 1fr;
    }

    .life-timeline::before {
        left: 2rem;
    }

    .timeline-date {
        left: 2rem;
        transform: none;
    }
}

/* 悬停效果 */
.timeline-content:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.timeline-tags span:hover {
    background-color: #d0e8ff;
}

/* 时间线装饰 */
.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 2rem;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background-color: #00a8ff;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 2.3rem;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #00a8ff;
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: translateX(-50%) scale(1.5);
        opacity: 0;
    }
} 