/* 主容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 90px auto 30px;
    padding: 0 20px;
    flex: 1;
}

/* 面包屑导航 */
.position {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 14px;
}

.position a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.position a:hover {
    color: #00b22d;
}

.position a:not(:last-child)::after {
    content: ">";
    margin: 0 8px;
    color: #999;
}

/* 内容标题区域 */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.content-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0;
}

.image-count {
    background: #f5f5f5;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* 图片网格布局 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 图片卡片样式 - 优化版 */
.image-link {
    display: block;
    text-decoration: none;
    color: inherit;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.image-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.image-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.image-item img {
    width: 100%;
    height: 200px; /* 统一图片高度 */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.image-link:hover .image-item img {
    transform: scale(1.05);
}

/* 图片信息区域 - 优化版 */
.image-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.image-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.4;
    min-height: 44px; /* 确保标题区域高度一致 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto; /* 推到卡片底部 */
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* 分类标签 - 简化版 */
.category-tag {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.category-tag.nature {
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
}

.category-tag.city {
    background: rgba(33, 150, 243, 0.12);
    color: #1565c0;
}

.category-tag.art {
    background: rgba(156, 39, 176, 0.12);
    color: #7b1fa2;
}

.category-tag.animal {
    background: rgba(255, 152, 0, 0.12);
    color: #ef6c00;
}

.category-tag.food {
    background: rgba(244, 67, 54, 0.12);
    color: #d32f2f;
}

.category-tag.travel {
    background: rgba(0, 150, 136, 0.12);
    color: #00796b;
}

/* 浏览量 */
.image-views {
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
}

.image-views i {
    margin-right: 4px;
    color: #888;
    font-size: 11px;
}

/* 加载更多区域 */
.load-more {
    text-align: center;
    padding: 30px 0;
    color: #666;
    font-size: 14px;
    border-top: 1px solid #eee;
}

/* 响应式设计 - 优化版 */
@media (max-width: 1200px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .container {
        margin-top: 80px;
    }
    
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .image-item img {
        height: 180px;
    }
    
    .image-info {
        padding: 14px;
    }
    
    .image-title {
        font-size: 15px;
        min-height: 42px;
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 130px;
        padding: 0 15px;
    }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    
    .image-item img {
        height: 160px;
    }
    
    .image-info {
        padding: 12px;
    }
    
    .image-title {
        font-size: 14px;
        min-height: 40px;
        margin-bottom: 10px;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .content-header h2 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .image-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .image-item img {
        height: 180px;
    }
    
    .image-title {
        font-size: 15px;
    }
    
    .position {
        font-size: 13px;
        margin-bottom: 15px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }
    
    .image-item img {
        height: 160px;
    }
    
    .image-info {
        padding: 10px;
    }
    
    .image-title {
        font-size: 14px;
        min-height: 38px;
    }
    
    .category-tag {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* 隐藏移动端导航（只在需要时显示） */
.mobile-categories {
    display: none;
}

/* 简化页脚样式 */
footer {
    margin-top: 40px;
    padding: 20px 0;
    background: #f8f9fa;
    text-align: center;
}

.copyright {
    font-size: 13px;
    color: #666;
}