/* ==========================================
   Blogs 页
   ========================================== */

/* ---------- Hero (已对齐全站高级风格) ---------- */
.bl-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    padding: 100px 20px;
    color: #fff;
    overflow: hidden;
    background: #0a1f3d;
}
.bl-hero-bg {
    position: absolute; inset: 0;
    background: url('/images/banner/banner-heavy-duty-profile-cnc-machining.webp') center/cover no-repeat;
    opacity: 0.4;
    z-index: 1;
}
.bl-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(15,42,74,0.92) 0%, rgba(15,42,74,0.6) 55%, rgba(15,42,74,0.35) 100%);
    z-index: 2;
}
.bl-hero-content {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* 面包屑 */
.bl-hero-breadcrumb {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}
.bl-hero-breadcrumb a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
.bl-hero-breadcrumb a:hover { color: #38bdf8; }
.bl-bc-sep { margin: 0 8px; color: #475569; }
.bl-bc-current { color: #cbd5e1; font-weight: 600; }

/* 标签小字 */
.bl-hero-label {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 12px;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
    font-weight: 600;
    text-transform: uppercase;
}

/* 主标题 */
.bl-hero h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin: 0 0 20px;
    color: #fff;
}

/* 副标题 */
.bl-hero p {
    font-size: 17px;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 680px;
    margin: 0 0 32px;
}

/* 按钮组 */
.bl-hero-cta { 
    display: flex; 
    gap: 14px; 
    flex-wrap: wrap; 
}
.bl-hero-btn { 
    display: inline-block; 
    background: #1d6fe8; 
    color: #fff; 
    padding: 14px 30px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-size: 15px; 
    font-weight: 600; 
    transition: all 0.25s; 
    border: 1px solid #1d6fe8; 
}
.bl-hero-btn:hover { 
    background: #1557b8; 
    border-color: #1557b8; 
    transform: translateY(-2px); 
}
.bl-hero-btn-outline { 
    display: inline-block; 
    background: transparent; 
    color: #fff; 
    padding: 14px 30px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-size: 15px; 
    font-weight: 600; 
    border: 1px solid rgba(255,255,255,0.4); 
    transition: all 0.25s; 
}
.bl-hero-btn-outline:hover { 
    background: rgba(255,255,255,0.1); 
    border-color: #fff; 
    transform: translateY(-2px); 
}

/* ---------- Main ---------- */
.bl-main {
    padding: 60px 20px 80px;
    background: var(--c-bg-soft);
    position: relative;
    z-index: 1;
}
.bl-container { max-width: 1200px; margin: 0 auto; }

.bl-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ---------- Card ---------- */
.bl-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.bl-card:hover {
    transform: translateY(-6px);
    border-color: #bfdbfe;
    box-shadow: 0 20px 40px -16px rgba(29,111,232,0.18);
}
.bl-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f1f5f9;
}
.bl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.bl-card:hover .bl-card-img img { transform: scale(1.06); }
.bl-card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.bl-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}
.bl-card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--c-dark);
    margin: 0 0 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}
.bl-card:hover .bl-card-title { color: var(--c-primary); }
.bl-card-excerpt {
    font-size: 13.5px;
    color: var(--c-text-muted);
    line-height: 1.65;
    margin: 0 0 18px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bl-card-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.3px;
    transition: transform 0.25s;
}
.bl-card:hover .bl-card-link { transform: translateX(4px); }

/* ---------- Empty ---------- */
.bl-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 30px;
    background: #fff;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
}
.bl-empty-icon { font-size: 42px; margin-bottom: 16px; opacity: 0.6; }
.bl-empty h3 { font-size: 20px; font-weight: 700; color: var(--c-dark); margin: 0 0 10px; }
.bl-empty p { font-size: 14.5px; color: var(--c-text-muted); margin: 0 0 24px; }
.bl-empty-btn {
    display: inline-block;
    background: var(--c-primary); color: #fff;
    padding: 14px 30px; border-radius: 8px;
    text-decoration: none; font-size: 14.5px; font-weight: 700;
    transition: background 0.25s, transform 0.25s;
}
.bl-empty-btn:hover { background: var(--c-primary-hover); transform: translateY(-2px); }

/* ---------- Pagination ---------- */
.bl-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
    flex-wrap: wrap;
}
.bl-page-num,
.bl-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--c-border);
    background: #fff;
    color: #475569;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.bl-page-num:hover,
.bl-page-btn:hover {
    background: #e0f2fe;
    border-color: #bfdbfe;
    color: var(--c-primary);
}
.bl-page-num.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
}

/* ---------- CTA ---------- */
.bl-cta {
    background: linear-gradient(135deg, #0a2540 0%, #1e3c72 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.bl-cta-inner { max-width: 720px; margin: 0 auto; }
.bl-cta h2 { font-size: 32px; font-weight: 800; margin: 0 0 16px; letter-spacing: -0.3px; }
.bl-cta p { font-size: 15px; color: #cbd5e1; margin: 0 0 32px; line-height: 1.65; }
.bl-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.bl-cta-primary {
    background: var(--c-primary); color: #fff;
    padding: 14px 32px; border-radius: 6px;
    text-decoration: none; font-size: 15px; font-weight: 700;
    transition: background 0.25s, transform 0.25s;
}
.bl-cta-primary:hover { background: var(--c-primary-hover); transform: translateY(-2px); }
.bl-cta-secondary {
    background: transparent; color: #fff;
    padding: 14px 32px; border-radius: 6px;
    text-decoration: none; font-size: 15px; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.25s;
}
.bl-cta-secondary:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .bl-hero h1 { font-size: 42px; }
    .bl-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 700px) {
    .bl-hero { min-height: 340px; padding: 60px 20px; }
    .bl-hero h1 { font-size: 34px; }
    .bl-hero p { font-size: 15px; }
    .bl-main { padding: 40px 16px 60px; }
    .bl-grid { grid-template-columns: 1fr; gap: 18px; }
    .bl-cta { padding: 60px 20px; }
    .bl-cta h2 { font-size: 24px; }
    .bl-cta-buttons { flex-direction: column; align-items: stretch; }
    .bl-hero-cta { flex-direction: column; }
    .bl-hero-btn, .bl-hero-btn-outline { text-align: center; }
}

/* ==========================================
   修复：博客页主导航栏置顶（topbar 不置顶）
   ========================================== */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}
.topbar {
    position: relative;
    z-index: 1;
}
.bl-hero,
.bl-main,
.bl-cta {
    position: relative;
    z-index: 1;
}
html {
    overflow-x: hidden;
}
body {
    overflow-x: visible;
}