/* *****************************************************
   HopeIDC Content Pages — Bootstrap 补充样式
   仅包含 Bootstrap 无法实现的效果
***************************************************** */

/* ========== Hero Banner 渐变遮罩（Bootstrap 无此组件）========== */
.ct-hero {
    padding: 60px 0;
    background: #10083b no-repeat center center;
    background-size: cover;
    position: relative;
}
.ct-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(16,8,59,0.85), rgba(26,115,232,0.6));
}
.ct-hero .container { position: relative; z-index: 1; }

/* Hero 搜索框胶囊样式（Bootstrap form-control 无圆角胶囊+内嵌圆形按钮）*/
.ct-hero-search {
    max-width: 520px;
    margin: 20px auto 0;
    position: relative;
}
.ct-hero-search input {
    width: 100%;
    height: 48px;
    font-size: 15px;
    border: none;
    border-radius: 24px;
    padding: 0 52px 0 22px;
    outline: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.ct-hero-search button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--color-primary, #4285f4);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}
.ct-hero-search button:hover { background: #1a73e8; }

/* ========== KB 分类卡片悬停上浮（Bootstrap card 无 translateY）========== */
.kb-cat-card {
    transition: box-shadow 0.2s, transform 0.2s;
}
.kb-cat-card:hover {
    transform: translateY(-2px);
}
.kb-cat-card:hover .card-title { color: var(--color-primary, #4285f4); }

/* KB 分类图标块（Bootstrap 无此组件）*/
.kb-cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eef4ff;
    color: var(--color-primary, #4285f4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

/* KB 分类描述截断（Bootstrap 无 line-clamp）*/
.kb-cat-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ========== 公告列表缩略图（JS 提取首图，Bootstrap 无固定尺寸封面图）========== */
.ann-thumb { width: 220px; }
.ann-thumb img { width: 100%; height: 180px; object-fit: cover; }
.ann-summary img { max-width: 100%; height: auto; border-radius: 4px; margin: 8px 0; }
@media (max-width: 767px) {
    .ann-thumb { width: 100%; }
    .ann-thumb img { height: 180px; }
}

/* ========== 文章正文排版增强（用户生成内容，Bootstrap 不覆盖）========== */
.ct-article-body { font-size: 15px; line-height: 1.8; }
.ct-article-body img { max-width: 100%; height: auto; border-radius: 4px; }
.ct-article-body pre {
    background: #f6f8fa;
    border: 1px solid #eaecef;
    border-radius: 6px;
    padding: 14px;
    overflow-x: auto;
}
.ct-article-body blockquote {
    border-left: 4px solid var(--color-primary, #4285f4);
    margin: 16px 0;
    padding: 12px 20px;
    background: #f8f9fb;
    color: #555;
}
.ct-article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.ct-article-body table th,
.ct-article-body table td { padding: 10px 14px; border: 1px solid #e5e8ec; }
.ct-article-body table th { background: #f5f7fa; font-weight: 600; }

/* ========== KB 文章列表悬停背景（list-group-item-action 只有灰色）========== */
.kb-article-hover:hover { background-color: #f8f9fb; }
.kb-article-hover:hover .text-muted { color: var(--color-primary, #4285f4) !important; }

/* ========== KB 子分类网格（Bootstrap 无 auto-fill minmax）========== */
.kb-subcats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

/* ========== 响应式补充 ========== */
@media (max-width: 991px) {
    .ct-hero { padding: 48px 0; }
}
@media (max-width: 575px) {
    .ct-hero { padding: 36px 0; }
}
