/* ========== BLOG PAGE 样式 ========== */
.blog-hero {
    height: 40vh;
    min-height: 510px;
    color: #fff;
}
.blog-hero-bg {
    width: 100%;
    height: 100%;
    background: url('../images/banner2.png') center center / cover no-repeat;
    position: relative;
}
.blog-hero h1 {
    font-size: 40px;
    line-height: 1.25;
    margin-bottom: 12px;
}
.yellow-text {
    color: var(--yellow);
}
.blog-main-section {
    padding: 48px 0;
}
.blog-grid-wrap {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 32px;
}
.blog-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sort-select {
    border: 1px solid #ddd;
    padding: 6px 10px;
    border-radius: 4px;
    background: #fff;
}
.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.blog-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: 0.25s ease;
}
.blog-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.blog-card-img {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-tag {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 3px;
}
.tag-yellow {
    background: var(--yellow);
    color: #000;
}
.blog-card h3 {
    font-size: 16px;
    padding: 12px 14px 0;
    line-height: 1.4;
}
.blog-card h3 a {
    color: #111;
    text-decoration: none;
}
.blog-card p {
    font-size: 13px;
    color: #666;
    padding: 8px 14px;
    line-height: 1.5;
    margin: 0;
}
.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px 14px;
    font-size: 12px;
    color: #777;
}
.blog-card-meta span {
    display: inline-flex;
    align-items: center;
    gap:4px;
    margin-right: 10px;
}
.read-more {
    color: var(--yellow);
    text-decoration: none;
}
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}
.page-btn {

     display: flex;
    align-items: center;
    justify-content: center;


    
    width: 34px;
    height: 34px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.page-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #000;
}

/* Sidebar Widgets */
.sidebar-widget {
    margin-bottom: 24px;
}
.sidebar-widget h3 {
    font-size: 18px;
    margin-bottom:14px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}
.blog-search-box {
    display: flex;
}
.blog-search-box input {
    flex:1;
    border:1px solid #ddd;
    padding: 9px 12px;
    border-radius: 4px 0 0 4px;
    outline: none;
}
.blog-search-box button {
    width:40px;
    border: none;
    background: #111;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}
.cat-list {
    list-style: none;
    padding:0;
}
.cat-list li {
    padding:7px 0;
    border-bottom: 1px solid #f2f2f2;
}
.cat-list li a {
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
}
.cat-list li a span {
    color: #888;
}
.recent-post-list {
    list-style: none;
    padding: 0;
}
.recent-post-list li {
    display: flex;
    gap:10px;
    padding: 10px 0;
    border-bottom:1px solid #f2f2f2;
}
.recent-post-list li img {
    width: 64px;
    height: 64px;
    border-radius:4px;
    object-fit: cover;
}
.recent-post-list li a {
    font-size: 13px;
    color:#222;
    text-decoration: none;
    line-height:1.4;
    display:block;
}
.recent-post-list li span {
    font-size:11px;
    color:#777;
    margin-top:4px;
    display:block;
}
.cta-widget {
    background: #0f2540;
    color:#fff;
    padding:22px;
    border-radius:8px;
}
.cta-widget h3 {
    border-bottom: none;
    color:#fff;
}
.cta-widget p {
    font-size:14px;
    margin:8px 0 16px;
    opacity: 0.9;
}

/* Responsive */
@media(max-width: 992px) {
    .blog-grid-wrap {
        grid-template-columns: 1fr;
    }
    .blog-cards-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
@media(max-width: 768px) {
    .blog-cards-grid {
        grid-template-columns: 1fr;
    }
    .blog-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap:12px;
    }
    .blog-hero h1 {
        font-size:30px;
    }
}







/* ========== Blog 博客页 Hero （修复顶导航问题，和产品详情hero风格统一） ========== */
.blog-hero {
    width: 100%;
}
.blog-hero-bg {
    position: relative;
    min-height: 420px;
    padding-top: 100px;  /* 预留固定导航高度，避免内容挤导航 */
    display: flex;
    align-items: center;
    background: #0f2038;
    background-image: url("../images/banner2.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.blog-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 25, 45, 0.68);
    z-index: 1;
}
.blog-hero .container.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero-left {
    max-width: 700px;
    color: #fff;
}
.hero-left .pre-title {
    color: #ffc800;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 12px;
}
.hero-left h1 {
    font-size: 40px;
    line-height: 1.3;
    margin: 0 0 14px;
    font-weight: 700;
}
.yellow-text {
    color: #ffc800;
}
.hero-left p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

/* 响应式适配，和其他Hero保持一套节奏 */
@media(max-width:992px) {
    .blog-hero-bg {
        min-height: 360px;
        padding-top: 80px;
    }
    .hero-left h1 {
        font-size: 32px;
    }
}
@media(max-width:576px) {
    .blog-hero-bg {
        min-height: 320px;
        padding-top: 70px;
    }
    .hero-left h1 {
        font-size: 26px;
    }
}





/* 博客侧边分类列表 优化版 cat-list */
.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.cat-list li {
    border-bottom: 1px solid #eee;
}
.cat-list li:last-child {
    border-bottom: none;
}
.cat-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
}
/* 左侧加箭头 */
.cat-list li a::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #ffc800;
    margin-right: 10px;
    transition: transform 0.2s ease;
}
.cat-list li a:hover {
    color: #ffc800;
    padding-left: 6px;
}
.cat-list li a:hover::before {
    transform: translateX(3px);
}
.cat-list li a span {
    background: #f4f4f4;
    color: #666;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    transition: 0.2s;
}
.cat-list li a:hover span {
    background: #ffc800;
    color: #000;
}


