/* 技能库页面样式 - 用于 page-skills.php, archive-skill.php, taxonomy-skill_category.php */

/* 技能网格布局 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

/* 技能卡片 */
.skill-card {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.skill-card:hover {
    border-color: #0066FF;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.1);
    transform: translateY(-4px);
}

.skill-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* 缩略图 */
.skill-card-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #F5F5F7;
}

.skill-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-card-thumbnail img {
    transform: scale(1.05);
}

.skill-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #999;
}

/* 卡片内容 */
.skill-card-body {
    padding: 20px;
}

/* 徽章 */
.skill-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    background: rgba(0, 102, 255, 0.1);
    color: #0066FF;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

/* 标题 */
.skill-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #000;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 描述 */
.skill-card-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 底部 */
.skill-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #F0F0F0;
}

.skill-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.skill-author img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.skill-stats {
    font-size: 13px;
    color: #999;
}

/* 无技能提示 */
.no-skills {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-skills p {
    font-size: 18px;
    margin-bottom: 24px;
}

/* 分类导航 */
.category-nav {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #E5E5E5;
}

.category-list {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background: #F5F5F7;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.category-tag:hover {
    background: #E5E5E5;
    color: #000;
}

.category-tag.active {
    background: #0066FF;
    color: #fff;
}

.category-tag .count {
    opacity: 0.7;
    margin-left: 4px;
}

/* 分页 */
.pagination {
    text-align: center;
    margin-top: 48px;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 4px;
    border-radius: 8px;
    background: #fff;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #E5E5E5;
}

.pagination .page-numbers:hover {
    background: #F5F5F7;
    color: #000;
}

.pagination .page-numbers.current {
    background: #0066FF;
    color: #fff;
    border-color: #0066FF;
}

/* CTA横幅 */
.cta-banner {
    text-align: center;
    margin-top: 80px;
    padding: 60px 40px;
    background: #0066FF;
    border-radius: 16px;
}

/* 响应式 */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .category-list {
        justify-content: center;
    }
    
    .cta-banner {
        padding: 40px 24px;
    }
}
