/*
Theme Name: Astra Child
Template: astra
Version:1.0
*/

.naibabiji-b2b-view-details-button, .naibabiji-b2b-inquiry-button, .naibabiji-b2b-category-button{background-color: #fff;border: 1px solid #F96D16;color:#333 !important}
.naibabiji-b2b-product-card:hover{border-color: #0f8a2f;background: #0f8a2f;}
.naibabiji-b2b-product-card:hover a,.naibabiji-b2b-product-card:hover .naibabiji-b2b-product-excerpt{color:#fff;}
.naibabiji-b2b-view-details-button:hover, .naibabiji-b2b-inquiry-button:hover, .naibabiji-b2b-category-button:hover, .naibabiji-b2b-view-details-button:focus, .naibabiji-b2b-inquiry-button:focus, .naibabiji-b2b-category-button:focus{background-color: #F96D16;border-color: #F96D16;}
.naibabiji-b2b-product-card:hover .naibabiji-b2b-view-details-button, .naibabiji-b2b-product-card:hover .naibabiji-b2b-inquiry-button, .naibabiji-b2b-product-card:hover .naibabiji-b2b-category-button{background-color: #fff;border-color: #fff;color:#000 !important}

/*====Naibabiji B2B产品全局美化 #294293====*/
.b2b-products-wrap {
    display: grid !important;
    grid-template-columns: repeat(3,1fr) !important;
    gap:32px !important;
    padding:5px 0;
}
/*单个产品卡片*/
.b2b-product-item {
    background:#fff;
    border:1px solid #e7ecf6;
    border-radius:10px;
    padding:18px;
    transition: all 0.3s ease;
}
/*hover上浮+边框变色*/
.b2b-product-item:hover {
    transform: translateY(-6px);
    box-shadow:0 8px 22px rgba(41,66,147,0.13);
    border-color:#294293;
}
/*产品封面图*/
.b2b-product-thumb img {
    width:100%;
    height:230px;
    object-fit:cover;
    border-radius:6px;
    display:block;
}
/*产品标题*/
.b2b-product-title {
    margin:15px 0 12px;
}
.b2b-product-title a {
    color:#222;
    font-size:17px;
    font-weight:500;
    text-decoration:none;
}
.b2b-product-title a:hover {
    color:#294293;
}
/*询价按钮（主题深蓝色）*/
.b2b-inquiry-btn {
    display:inline-block;
    background:#294293;
    color:#fff !important;
    padding:8px 22px;
    border-radius:5px;
    font-size:14px;
    text-decoration:none;
    transition:0.25s;
}
.b2b-inquiry-btn:hover {
    background:#1f3275;
}
/*移动端：768px以下自动1列*/
@media screen and (max-width:767px){
    .b2b-products-wrap {
        grid-template-columns:1fr !important;
        gap:25px !important;
    }
}

/* 新闻整体容器 */
.news-container{width:1320px;margin:0 auto;padding:40px 15px;}
/* 顶部子分类导航 */
.news-tab-nav{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:35px;}
.news-tab-nav a{padding:7px 18px;border:1px solid #255ed9;border-radius:30px;color:#255ed9;text-decoration:none;font-size:14px;}
.news-tab-nav a.active,.news-tab-nav a:hover{background:#255ed9;color:#fff;border-color:#255ed9;}

/* 三栏布局核心 */
.news-three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;}
/* 移动端自适应 */
@media(max-width:991px){
    .news-three-col{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:640px){
    .news-three-col{grid-template-columns:1fr;}
}

/* 单张新闻卡片 */
.news-card-item{background:#fff;overflow:hidden;}
.news-card-img img{width:100%;height:230px;object-fit:cover;display:block;}

/* 卡片文字区域内边距 */
.news-card-title,.news-card-date,.news-card-desc{padding:0 20px;}
.news-card-title{font-size:18px;margin:18px 0 8px;line-height:1.4;}
.news-card-title a{color:#222;text-decoration:none;}
.news-card-title a:hover{color:#255ed9;}

.news-card-date{color:#999;font-size:14px;margin-bottom:12px;}
.news-card-desc{font-size:15px;color:#555;padding-bottom:25px;line-height:1.7;}

/* 分页居中 */
.news-page-wrap{text-align:center;margin-top:50px;}
.news-page-wrap .page-numbers{padding:8px 13px;border:1px solid #eee;margin:0 4px;border-radius:3px;}
.news-page-wrap .current{background:#255ed9;color:#fff;border-color:#255ed9;}

/* 新闻卡片悬浮效果（高级感） */
.news-card-item {
  transition: all 0.3s ease;
}
.news-card-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  background: #fff;
}
.news-card-item:hover img {
  transform: scale(1.04);
  transition: transform 0.3s ease;
}
.news-card-img {
  overflow: hidden;
}

.ekit-wid-con .elementskit-post-image-card .elementskit-entry-header .elementskit-entry-thumb>img{height:230px;}

/* 显示 Astra 相关文章的阅读更多按钮 */
.ast-related-post-cta .ast-related-post-link {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: auto !important;
    width: auto !important;
}

/* 给按钮添加文字和样式 */
.ast-related-post-cta .ast-related-post-link::after {
    content: "Read More"; /* 可修改为“查看详情”等文字 */
    display: inline-block;
    padding: 8px 18px;
    background-color: #f96d16; /* 你的品牌蓝色 */
    color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
}

/* 鼠标悬停效果 */
.ast-related-post-cta .ast-related-post-link:hover::after {
    background-color: #f96d16;
}

/* ===== Naibabiji B2B 产品归档列表美化 精准类名 ===== */
/* 外层网格容器（原生grid布局，一行3列 naibabiji-b2b-columns-3） */
.naibabiji-b2b-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 35px 0;
}

/* 产品卡片主体 */
.naibabiji-b2b-product-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    border: 1px solid #f3f3f3;
}
/* 卡片悬浮上浮+加深阴影 */
.naibabiji-b2b-product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.11);
}

/* 产品缩略图容器 */
.naibabiji-b2b-product-thumbnail {
    height: 220px;
    overflow: hidden;
}
.naibabiji-b2b-product-thumbnail a,
.naibabiji-b2b-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
/* 鼠标悬浮图片放大 */
.naibabiji-b2b-product-card:hover .naibabiji-b2b-product-thumbnail img {
    transform: scale(1.07);
}

/* 产品信息内容区 */
.naibabiji-b2b-product-info {
    padding: 20px;
}
/* 产品标题、参数、价格、咨询按钮统一排版优化 */
.naibabiji-b2b-product-info h3 {
    font-size: 17px;
    margin: 0 0 12px;
    line-height:1.4;
}
.naibabiji-b2b-product-info h3 a {
    color:#222;
    text-decoration: none;
}
.naibabiji-b2b-product-info h3 a:hover {
    color:#0066cc;
}
.naibabiji-b2b-product-meta{
	display:none;
}

/* B2B报价价格样式（红色醒目） */
.naibabiji-b2b-product-price {
    font-size:19px;
    font-weight:700;
    color:#d82626;
    margin:10px 0 16px;
}

/* 详情/询价按钮 */
.naibabiji-b2b-product-info .naibabiji-b2b-btn {
    display: inline-block;
    padding:9px 24px;
    background:#0066cc;
    color:#fff !important;
    border-radius:6px;
    text-decoration:none;
    transition:background 0.3s;
}
.naibabiji-b2b-product-info .naibabiji-b2b-btn:hover {
    background:#004b99;
}

/* ===== 响应式适配 ===== */
/* 平板：一行2列 */
@media screen and (max-width:992px){
    .naibabiji-b2b-products-grid {
        grid-template-columns: repeat(2,1fr);
    }
}
/* 手机：一行1列 */
@media screen and (max-width:576px){
    .naibabiji-b2b-products-grid {
        grid-template-columns: 1fr;
    }
}

/* 筛选栏微调（上方筛选区域） */
.naibabiji-b2b-product-filters {
    padding:18px;
    background:#f8f9fa;
    border-radius:10px;
    margin-bottom:25px;
}
