/* ==================== life 页面专属样式 ====================
   全局基础样式已移至 base.css
   本文件只包含 life 页面的独特设计
   ==================== */

.life-hero__kicker {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.life-hero__title {
    font-size: clamp(var(--text-4xl), 5vw, var(--text-5xl));
    font-weight: 800;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.life-hero__description {
    max-width: 640px;
    margin: 0 auto var(--space-2xl);
    color: var(--text-secondary);
    font-size: var(--text-lg);
    line-height: 1.8;
}

.life-hero > * {
    position: relative;
    z-index: 1;
}

.life-hero__stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
}

.life-hero__stat {
    padding: var(--space-lg) var(--space-xl);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(111, 207, 151, 0.2);
    text-align: left;
    box-shadow: var(--shadow-md);
}

.life-hero__stat-label {
    font-size: var(--text-xs);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.life-hero__stat-value {
    margin-top: var(--space-xs);
    font-weight: 600;
    color: var(--text-primary);
}

/* 筛选栏 */
.filter-section {
    margin-bottom: var(--space-3xl);
}

.filter-bar {
    padding: var(--space-lg);
    background: rgba(248, 250, 252, 0.9);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.category-filter {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-sm) var(--space-lg);
    border: 1px solid var(--border-color);
    background: white;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.filter-btn:hover {
    border-color: rgba(111, 207, 151, 0.6);
    color: var(--life-primary);
    box-shadow: 0 6px 16px rgba(111, 207, 151, 0.15);
}

.filter-btn.active {
    background: var(--life-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(111, 207, 151, 0.25);
.life-page .search-btn {
    background: var(--life-gradient);
}

.life-hint {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    text-align: left;
}

/* 内容布局 */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-3xl);
    align-items: start;
}

.posts-main {
    min-width: 0; /* 防止网格溢出 */
}

/* 文章网格 */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

/* 文章卡片 */
.post-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    border: 2px solid transparent;
    position: relative;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(111, 207, 151, 0.15);
    border-color: var(--life-primary);
}

/* 带图片的卡片 */
.post-card.has-image {
    display: flex;
    flex-direction: column;
}

.post-image {
    position: relative;
    height: 200px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--life-gradient);
}

.image-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: rgba(255, 255, 255, 0.95);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    font-size: var(--text-sm);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.post-content {
    padding: var(--space-lg);
}

.post-card:not(.has-image) {
    padding: var(--space-lg);
}

/* 精选标记 */
.post-card.featured {
    border: 2px solid var(--life-primary);
}

.featured-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--life-gradient);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    z-index: 10;
}

/* 文章元信息顶部 */
.post-meta-top {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.post-category {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--life-gradient);
    color: white;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.location-tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: rgba(111, 207, 151, 0.1);
    color: var(--life-primary);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    border: 1px solid rgba(111, 207, 151, 0.2);
}

/* 文章标题 */
.post-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    line-height: 1.4;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.post-title a:hover {
    color: var(--life-primary);
}

/* 文章摘要 */
.post-excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章底部 */
.post-footer {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-md);
}

.post-meta {
    display: flex;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.mood-tag {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(111, 207, 151, 0.15);
    color: var(--life-primary);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.post-tags {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.tag {
    padding: var(--space-xs) var(--space-md);
    background: rgba(111, 207, 151, 0.1);
    color: var(--life-primary);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    transition: all var(--transition-base);
}

.tag:hover {
    background: var(--life-gradient);
    color: white;
    cursor: pointer;
}

/* 加载更多 */
.load-more {
    text-align: center;
    margin: var(--space-xl) 0;
}

.btn-load-more {
    padding: var(--space-md) var(--space-2xl);
    background: white;
    border: 2px solid var(--life-primary);
    color: var(--life-primary);
    border-radius: var(--radius-xl);
    font-size: var(--text-base);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-load-more:hover {
    background: var(--life-gradient);
    color: white;
    border-color: transparent;
}

/* 音乐列表 */
.music-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.music-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.music-item:hover {
    background: rgba(111, 207, 151, 0.1);
}

.music-cover {
    width: 48px;
    height: 48px;
    background: var(--life-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    flex-shrink: 0;
}

.music-info {
    flex: 1;
    min-width: 0;
}

.music-info h4 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-artist {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.play-btn {
    background: none;
    border: none;
    font-size: var(--text-xl);
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-base);
}

.play-btn:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* 影片列表 */
.movie-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.movie-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.movie-item:hover {
    background: rgba(111, 207, 151, 0.1);
}

.movie-cover {
    width: 48px;
    height: 64px;
    background: var(--life-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    flex-shrink: 0;
}

.movie-info {
    flex: 1;
}

.movie-info h4 {
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.movie-meta {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.movie-rating {
    font-size: var(--text-sm);
    color: var(--life-primary);
    font-weight: 500;
}

/* 统计数据 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.stat-item {
    text-align: center;
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.stat-item:hover {
    background: var(--life-gradient);
    color: white;
}

.stat-item:hover .stat-value,
.stat-item:hover .stat-label {
    color: white;
}

.stat-value {
    display: block;
    font-size: var(--text-3xl);
    font-weight: bold;
    color: var(--life-primary);
    margin-bottom: var(--space-xs);
}

.stat-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.cloud-tag {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(111, 207, 151, 0.1);
    color: var(--life-primary);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    font-weight: 500;
}

.cloud-tag:hover {
    background: var(--life-gradient);
    color: white;
    transform: scale(1.05);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .life-hero {
        padding: var(--space-2xl);
    }

    .life-hero__title {
        font-size: var(--text-4xl);
    }

    .filter-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
        min-width: 0;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== 隐藏跳转按钮 ==================== */
.c-skip-to-content {
    display: none !important;
}
