/* Child -> Parent migration shim for page-blog.php */
.ss-container--home{max-width:1230px;margin-left:auto;margin-right:auto;padding-left:20px;padding-right:20px;box-sizing:border-box;width:100%}
.ss-card{background:var(--bg-light,#fff);border-radius:12px;border:1px solid rgba(0,0,0,.06);box-shadow:0 10px 24px rgba(0,0,0,.10);transition:transform .18s ease-out,box-shadow .18s ease-out}
.ss-card:hover{transform:translateY(-4px);box-shadow:0 16px 32px rgba(0,0,0,.14)}
.ss-section-title{font-size:28px;font-weight:700;text-align:center;margin:15px 0 20px;text-transform:capitalize;color:var(--heading-primary-color,var(--primary-color,#000e4f))}
.blog-category-page .blog-category-header{margin-bottom:0}
.blog-category-page .blog-category-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;border-bottom:1px solid rgba(0,0,0,.08);padding-bottom:10px;margin-bottom:30px}
.blog-category-page .blog-category-tab{display:inline-flex;align-items:center;gap:4px;padding:8px 16px;border-radius:999px;background:#f5f5f5;color:var(--body-text-color,#333);text-decoration:none;font-size:14px;transition:background .2s ease,color .2s ease}
.blog-category-page .blog-category-tab:hover{background:#e0e0e0}
.blog-category-page .blog-category-tab--active{background:var(--accent-color,#FF9933);color:#fff}
.blog-category-page .blog-posts-grid,body.archive .blog-posts-grid,body.category .blog-posts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px;margin-top:80px;margin-bottom:40px}
.blog-category-page .blog-post-card,body.archive .blog-post-card,body.category .blog-post-card{padding:0;overflow:hidden;transition:transform .3s ease,box-shadow .3s ease;display:flex;flex-direction:column}
.blog-category-page .blog-post-card:hover,body.archive .blog-post-card:hover,body.category .blog-post-card:hover{transform:translateY(-5px);box-shadow:0 15px 30px rgba(0,0,0,.15)}
.blog-category-page .blog-post-card__thumbnail,body.archive .blog-post-card__thumbnail,body.category .blog-post-card__thumbnail{overflow:hidden;border-radius:8px 8px 0 0;width:100%;aspect-ratio:16/9;background-color:#f5f5f5}
.blog-category-page .blog-post-card__thumbnail a,body.archive .blog-post-card__thumbnail a,body.category .blog-post-card__thumbnail a{display:block;width:100%;height:100%}
.blog-category-page .blog-post-card__image,body.archive .blog-post-card__image,body.category .blog-post-card__image{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.blog-category-page .blog-post-card:hover .blog-post-card__image,body.archive .blog-post-card:hover .blog-post-card__image,body.category .blog-post-card:hover .blog-post-card__image{transform:scale(1.05)}
.blog-category-page .blog-post-card__body,body.archive .blog-post-card__body,body.category .blog-post-card__body{padding:18px 20px 20px;flex:1;display:flex;flex-direction:column}
.blog-category-page .blog-post-card__category,body.archive .blog-post-card__category,body.category .blog-post-card__category{display:inline-block;padding:3px 10px;border-radius:999px;background:#e3f2fd;color:#1976d2;font-size:11px;margin-right:6px;margin-bottom:4px;text-transform:uppercase;font-weight:600}
.blog-category-page .blog-post-card__title,body.archive .blog-post-card__title,body.category .blog-post-card__title{font-size:18px;line-height:1.4;margin:8px 0 12px;font-weight:700}
.blog-category-page .blog-post-card__title a,body.archive .blog-post-card__title a,body.category .blog-post-card__title a{color:var(--heading-primary-color,#1B3A5F);text-decoration:none}
.blog-category-page .post-meta,body.archive .post-meta,body.category .post-meta{display:flex;gap:15px;flex-wrap:wrap;margin-top:auto;font-size:14px;color:var(--body-text-color,#666);padding-top:12px;border-top:1px solid rgba(0,0,0,.08)}
.blog-pagination,body.category .blog-pagination,.archive-page .blog-pagination{margin-top:40px;text-align:center;display:flex;justify-content:center;width:100%}
.blog-pagination ul,body.category .blog-pagination ul,.archive-page .blog-pagination ul{list-style:none;padding:0;margin:0;display:inline-flex;gap:8px;flex-wrap:wrap;justify-content:center}
.blog-pagination a,.blog-pagination span,body.category .blog-pagination a,body.category .blog-pagination span,.archive-page .blog-pagination a,.archive-page .blog-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 14px;border-radius:4px;background:#f5f5f5;color:var(--body-text-color,#333);text-decoration:none;font-size:14px;transition:all .2s ease}
.blog-pagination a:hover,.archive-page .blog-pagination a:hover{background:var(--accent-color,#FF9933);color:#fff}
.blog-pagination .current,body.category .blog-pagination .current,.archive-page .blog-pagination .current{background:var(--accent-color,#FF9933);color:#fff}
@media (max-width:1024px){.blog-category-page .blog-posts-grid,body.archive .blog-posts-grid,body.category .blog-posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:768px){.blog-category-page .blog-posts-grid,body.archive .blog-posts-grid,body.category .blog-posts-grid{grid-template-columns:1fr;gap:20px}.blog-category-page .blog-category-tabs{grid-template-columns:repeat(2,1fr)}}
/* 隐藏桌面端汉堡菜单按钮 */
@media (min-width: 992px) {
  .tw-header .tw-header__hamburger,
  .tw-header__hamburger,
  button.tw-header__hamburger,
  button#menu-toggle,
  #menu-toggle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
/* 修复：确保产品分类下拉菜单的图片卡在右边（不是下方） */
header .menu-item.product-category > .sub-menu.sub-menu-product-category .sf-mega-inner {
  flex-wrap: nowrap !important;
  flex-direction: row !important;
  display: flex !important;
}
header .menu-item.product-category > .sub-menu.sub-menu-product-category .sf-mega-cards {
  flex: 0 0 calc(220px * 2 + 20px) !important;
  width: calc(220px * 2 + 20px) !important;
}