/* ========================================
   编程分享首页样式 - programming_index_page
   ======================================== */

/* 页面特有背景色 */
body {
    background-color: #f5f5f5;
}

/* Hero 渐变 - 青色主题（仅覆盖背景） */
.programming-hero {
    background: linear-gradient(135deg, #36d1dc 0%, #5b86e5 100%);
    border-radius: 0;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

/* 分类卡片 - 完全参考 type-card 样式 */
.category-card {
    height: 100%;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 0.75rem;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card .card-content {
    padding: 1.25rem 1rem;
}

.category-icon {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.category-card .title {
    font-size: 1.1rem !important;
    margin-bottom: 0.25rem;
}

.category-card .subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 0.25rem;
}

.category-card .is-size-7 {
    font-size: 0.75rem !important;
}

/* 文章卡片样式 */
.post-card {
    overflow: hidden;
    height: 100%;
    transition: all var(--transition-speed) ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.post-cover {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.post-cover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    pointer-events: none;
}

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.post-card:hover .post-cover img {
    transform: scale(1.08);
}

.post-body {
    padding: 1.25rem;
}

.post-body .tags {
    margin-bottom: 0.75rem;
}

.post-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

.post-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7rem;
}

.post-meta {
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

/* 分类标签颜色 */
.tag-category.tool { background-color: #e3f2fd; color: #1976d2; }
.tag-category.news { background-color: #e8f5e9; color: #388e3c; }
.tag-category.tip { background-color: #fff3e0; color: #f57c00; }
.tag-category.share { background-color: #fce4ec; color: #c2185b; }

/* 移动端 Hero 字体调整 */
@media (max-width: 768px) {
    .programming-hero .title {
        font-size: 1.8rem;
    }
}
