/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Template: astra
Author: Brainstorm Force
Author URI: https://wpastra.com/
Description: Astra Child Theme
Version: 1.0.0
Text Domain: astra-child
*/

/*2026.3.13 首页标题样式*/
/* 首页产品分类标题样式 */
.home-product-title {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 横线效果 - 使用伪元素 */
.home-product-title::before,
.home-product-title::after {
    content: "";
    width: 50px;
    height: 2px;
    background-color: #007cba;
    border-radius: 3px;
}

/* 标题文字样式 */
.home-product-title .elementor-heading-title {
    margin: 0;
    white-space: nowrap;
    font-size: 32px;
    border: 2px solid #007cba;
    padding: 5px;
    color: #007cba;
    border-radius: 8px;
    letter-spacing: 2px;
    background: #fff;
    z-index: 1;
    position: relative;
    box-shadow: 0 0 8px rgba(0,124,186,0.6), 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}


/* ===== 首页新闻列表样式 ===== */
.custom-posts-grid .grid-item .post-date {
    display: inline !important;
    margin-left: 8px !important;
    color: #666;
    font-size: 13px;
}

.custom-posts-grid .grid-item h4 {
    display: inline !important;
    margin-right: 5px;
}

/* ===== 产品分类页 - 统一布局 ===== */
.product-category-page .category-layout-grid {
    display: grid !important;
    grid-template-columns: 280px 1fr !important;
    gap: 40px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 40px 0 !important;
    align-items: start !important;
}

/* 左侧边栏 */
.product-category-page .category-sidebar {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* 右侧产品区域 */
.product-category-page .products-section {
    width: 100%;
    min-width: 0;
}

/* 2026.3.16===== 右侧产品网格 - 3列显示 ===== */
/* ===== 产品网格样式强化版 ===== */
.products-grid-shortcode {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
}

/* 产品卡片 - 确保所有卡片高度一致 */
.products-grid-shortcode .product-item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;    
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e0e0e0;  /* 添加灰色浅边框 */
    box-shadow: 0 0 0 1px rgba(200, 200, 200, 0.3);  /* 非常柔和的半透明边框 */
    transition: box-shadow 0.3s ease;  /* 添加过渡效果，让悬浮效果更平滑 */
}

/* 可选：添加悬浮效果，让卡片有轻微阴影 */
.products-grid-shortcode .product-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);  /* 悬浮时轻微阴影 */
    border-color: #d0d0d0;  /* 悬浮时边框颜色稍微加深 */
}

/* 图片容器 - 固定高度 */
.products-grid-shortcode .product-thumb {
    width: 100% !important;
    /* height: 200px !important;  固定高度 */
    overflow: hidden !important;
    /* background: #f8f8f8; */
    flex-shrink: 0 !important;  /* 防止被压缩 */
}

/* 图片本身 - 填充容器 */
.products-grid-shortcode .product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;  /* 保持比例，裁剪多余部分 */
    display: block !important;
}

/* 产品信息区域 - 自动填充剩余空间 */
.products-grid-shortcode .product-info {
    flex: 1 !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* 产品标题 - 防止换行 */
.products-grid-shortcode .product-title {
    margin: 0 0 12px 0 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    text-align: center;  /* 文字水平居中 */
}

/* 产品描述 - 固定行数 */
.products-grid-shortcode .product-short-description {
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    flex: 1 !important;
    text-align: center !important;  /* 文字水平居中 */
}

/* 产品列表页面没有图片显示产品图片占位符 - 高度自适应，和图片容器保持一致 */
.products-grid-shortcode .product-image-placeholder {
    width: 100%;
    height: 100%;  /* 占满父容器高度 */
    min-height: inherit;  /* 继承父容器的最小高度 */
    background: #f5f5f5;  /* 浅灰色背景 */
    display: block;
}

/* 确保图片容器有基础高度 */
.products-grid-shortcode .product-thumb {
    position: relative;
    background: #f5f5f5;
}

/* 如果图片容器高度由图片撑开，占位符也需要有基础高度 */
.products-grid-shortcode .product-thumb .product-image-placeholder {
    aspect-ratio: 1/1;  /* 设置宽高比，比如1:1正方形 */
    min-height: 180px;   /* 设置最小高度，防止塌陷 */
}

/* 按钮区域 - 底部对齐 */
/* .products-grid-shortcode .product-actions {
    text-align: right !important;
    margin-top: auto !important;
} */
/*2026.3.16*/


/* 2026.3.11 设置详情页内容 - 只针对详情页 */
body.single-product .banner-container,
body.single-product .breadcrumb-container,
body.single-product .main-container {

    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100% !important;
    display: block !important;
    float: none !important;
}


/* Banner区域 */
.single-product-page .category-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
    text-align: center;
    width: 100%;
}

.single-product-page .banner-title {
    margin: 0;
    font-size: 42px;
    color: white;    
    margin: 0 auto;
    padding: 0 20px;
}

/* 面包屑导航 */
.single-product-page .category-breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    width: 100%;
}

.single-product-page .breadcrumb-container {
    margin: 0 10% 0 10%;
    padding: 0 10px;
}

/* 主内容区域 */
.single-product-page .category-main-content {
    padding: 20px 0;
    margin: 0 5% 0 5%;
        margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

.single-product-page .main-container {
    margin: 0 auto;
    padding: 0 20px;
}

/* 两列布局 */
.single-product-page .category-layout-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
        width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 左侧边栏 */
.single-product-page .category-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    border: 1px solid #e9ecef;
}

/* 产品分类导航 */
.single-product-page .product-categories h3 {
    margin: 0 0 10% 0;
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 2px solid #0073aa;
}

.single-product-page .product-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-product-page .product-categories li {
    margin-bottom: 10px;
}

.single-product-page .product-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #666;
    text-decoration: none;
    border-radius: 6px;
    background: #f8f9fa;
}

.single-product-page .product-categories li a:hover {
    background: #e9ecef;
    color: #0073aa;
}

.single-product-page .product-categories .count {
    font-size: 12px;
    color: #999;
}

/* 右侧产品内容 */
.single-product-page .category-products {
        width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.single-product-page .product-content {
    background: #fff;
    border-radius: 10px;   
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 隐藏更新时间 - 新增 */
.single-product-page .product-last-updated {
    display: none !important;
}

/* 产品标题 - 修改为在右侧信息区域内 */
.single-product-page .single-product-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #0073aa;
}

.single-product-page .product-image-column {
    grid-column: 1;
}

.single-product-page .product-info-column {
    grid-column: 2;
    display: flex;
    flex-direction: column;
}

/* 图片区域 */
.single-product-page .product-image-container {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee;
}

.single-product-page .product-main-image-container {
    /* height: 400px; */
    /* background: #f8f9fa; */
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product-page .main-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product-page .product-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* 缩略图 */
.single-product-page .product-thumbnails-container {
    padding: 15px;
    border-top: 1px solid #eee;
}

.single-product-page .thumbnails-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px;
}

.single-product-page .thumbnail-item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border: 2px solid #eee;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.single-product-page .thumbnail-item.active {
    border-color: #0073aa;
}

.single-product-page .thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 联系方式 */
.single-product-page .product-contact-info {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.single-product-page .contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.single-product-page .contact-item:last-child {
    margin-bottom: 0;
}

.single-product-page .contact-item i {
    color: #3498db;
    width: 20px;
}

/* 详细描述 */
.single-product-page .product-detail-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.single-product-page .section-header {
    margin-bottom: 20px;
}

.single-product-page .section-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.single-product-page .product-full-content {
    line-height: 1.8;
    color: #444;
}

/* 以下是在原有基础上新增的样式，放在原有代码之后 */

/* 产品简短描述优化 */
.single-product-page .product-short-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 25px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 0 8px 8px 0;
}

/* 产品规格参数 */
.single-product-page .product-specs {
    margin-bottom: 25px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.single-product-page .spec-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.single-product-page .spec-item:last-child {
    border-bottom: none;
}

.single-product-page .spec-label {
    width: 100px;
    font-weight: 600;
    color: #333;
}

.single-product-page .spec-value {
    flex: 1;
    color: #666;
}

/* 保修信息 */
.single-product-page .product-warranty {
    font-size: 15px;
    color: #ff9800;
    margin-bottom: 25px;
    padding: 12px 15px;
    background: #fff3e0;
    border-radius: 8px;
    border: 1px solid #ffe0b2;
}

/* 按钮组 */
.single-product-page .product-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.single-product-page .btn {
    display: inline-block;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.single-product-page .btn-quote {
    background: #0073aa;
    color: white;
}

.single-product-page .btn-quote:hover {
    background: #005a87;
    color: white;
}

.single-product-page .btn-email {
    background: #6c757d;
    color: white;
}

.single-product-page .btn-email:hover {
    background: #545b62;
    color: white;
}

.single-product-page .btn-whatsapp {
    background: #25d366;
    color: white;
}

.single-product-page .btn-whatsapp:hover {
    background: #1da851;
    color: white;
}

.single-product-page .btn-cart {
    background: #ff9900;
    color: white;
}

.single-product-page .btn-cart:hover {
    background: #e68a00;
    color: white;
}

/* 标签页导航 */
.single-product-page .product-tabs {
    margin-top: 10px;   
    border-radius: 10px;   
    overflow: hidden;
}

.single-product-page .tabs-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    border-bottom: 1px solid #dee2e6;
}

.single-product-page .tabs-nav li {
    margin: 0;
}

.single-product-page .tabs-nav li a {
    display: block;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.single-product-page .tabs-nav li.active a {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: white;
}

.single-product-page .tabs-nav li a:hover {
    color: #0073aa;
}

/* 标签页内容 */
.single-product-page .tabs-content {
    padding: 30px;
}

.single-product-page .tab-panel {
    display: none;
}

.single-product-page .tab-panel.active {
    display: block;
}

/* 响应式 */
@media (max-width: 768px) {
    .single-product-page .category-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .single-product-page .product-image-column,
    .single-product-page .product-info-column {
        grid-column: 1;
            width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    }
    
    .single-product-page .banner-title {
        font-size: 28px;
    }
    
    .single-product-page .product-action-buttons {
        grid-template-columns: 1fr;
    }
    
    .single-product-page .tabs-nav {
        flex-wrap: wrap;
    }
    
    .single-product-page .tabs-nav li {
        flex: 1 1 auto;
    }
    
    .single-product-page .tabs-nav li a {
        padding: 12px 15px;
        font-size: 14px;
        text-align: center;
    }
    
    .single-product-page .spec-item {
        flex-direction: column;
    }
    
    .single-product-page .spec-label {
        width: 100%;
        margin-bottom: 5px;
    }
}
/*2026.3.16 产品详情*/

/* ===== 博客文章列表页样式 ===== */
.custom-blog-archive aside ul li a:hover {
    background: #f0f7ff !important;
    color: #0073aa !important;
}

.custom-blog-archive article:hover h2 a {
    color: #0073aa;
}

/* 分页样式 */
.custom-blog-archive .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #666;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.custom-blog-archive .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* 响应式 */
@media (max-width: 768px) {
    .custom-blog-archive [style*="display: flex"] {
        flex-direction: column;
    }
    
    .custom-blog-archive aside {
        width: 100% !important;
        position: static !important;
    }
}



/* =====2026.3.11  产品详情页新增样式 ===== */

/* 更新时间 */
.single-product-page .product-last-updated {
    font-size: 14px;
    color: #999;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

/* 产品简短描述 */
.single-product-page .product-short-description {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 4px solid #0073aa;
    border-radius: 0 8px 8px 0;
}

/* 产品规格参数 */
.single-product-page .product-specs {
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.single-product-page .spec-item {
    display: flex;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.single-product-page .spec-item:last-child {
    border-bottom: none;
}

.single-product-page .spec-label {
    width: 100px;
    font-weight: 600;
    color: #333;
}

.single-product-page .spec-value {
    flex: 1;
    color: #666;
}

/* 价格区间 */
.single-product-page .product-price-range {
    font-size: 24px;
    font-weight: 700;
    color: #e4393c;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #fff1f0;
    border-radius: 8px;
    border: 1px solid #ffd9d8;
}

/* 库存信息 */
.single-product-page .product-stock {
    font-size: 16px;
    color: #4caf50;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #e8f5e9;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
}

/* 保修信息 */
.single-product-page .product-warranty {
    font-size: 16px;
    color: #ff9800;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #fff3e0;
    border-radius: 8px;
    border: 1px solid #ffe0b2;
}

/* 按钮组 */
.single-product-page .product-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.single-product-page .btn {
    display: inline-block;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.single-product-page .btn-quote {
    background: #0073aa;
    color: white;
}

.single-product-page .btn-quote:hover {
    background: #005a87;
    color: white;
}

.single-product-page .btn-email {
    background: #6c757d;
    color: white;
}

.single-product-page .btn-email:hover {
    background: #545b62;
    color: white;
}

.single-product-page .btn-whatsapp {
    background: #25d366;
    color: white;
}

.single-product-page .btn-whatsapp:hover {
    background: #1da851;
    color: white;
}

.single-product-page .btn-cart {
    background: #ff9900;
    color: white;
}

.single-product-page .btn-cart:hover {
    background: #e68a00;
    color: white;
}

/* 服务承诺 */
.single-product-page .product-guarantees {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.single-product-page .guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #555;
}

.single-product-page .guarantee-item:last-child {
    margin-bottom: 0;
}

.single-product-page .guarantee-item i {
    color: #28a745;
    font-size: 16px;
    width: 20px;
}

.single-product-page .tabs-nav li {
    margin: 0;
}

.single-product-page .tabs-nav li a {
    display: block;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.single-product-page .tabs-nav li.active a {
    color: #0073aa;
    border-bottom-color: #0073aa;
    background: white;
}

.single-product-page .tabs-nav li a:hover {
    color: #0073aa;
}

/* 标签页内容 */
.single-product-page .tabs-content {
    padding: 30px;
}

.single-product-page .tab-panel {
    display: none;
}

.single-product-page .tab-panel.active {
    display: block;
}

/* 为什么选择本产品 */
.single-product-page .why-choose-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.single-product-page .why-choose-section h2 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #0073aa;
}

/* 视频区域 */
.single-product-page .video-item {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.single-product-page .video-item iframe,
.single-product-page .video-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 联系方式区域（新样式） */
.single-product-page .product-contact-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.single-product-page .product-contact-info .contact-item {
    color: white;
}

.single-product-page .product-contact-info .contact-item i {
    color: white;
    opacity: 0.9;
}

.single-product-page .product-contact-info .contact-item span {
    color: white;
}

/* 左侧分类导航激活状态 */
.single-product-page .product-categories li.active a {
    background: #0073aa;
    color: white;
}

.single-product-page .product-categories li.active .count {
    color: white;
    opacity: 0.8;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .single-product-page .product-action-buttons {
        grid-template-columns: 1fr;
    }
    
    .single-product-page .tabs-nav li {
        flex: 1 1 auto;
    }
    
    .single-product-page .tabs-nav li a {
        padding: 12px 15px;
        font-size: 14px;
        text-align: center;
    }
    
    .single-product-page .spec-item {
        flex-direction: column;
    }
    
    .single-product-page .spec-label {
        width: 100%;
        margin-bottom: 5px;
    }
}

/* 打印样式 */
@media print {
    .single-product-page .category-sidebar,
    .single-product-page .product-contact-info,
    .single-product-page .product-action-buttons,
    .single-product-page .tabs-nav {
        display: none;
    }
    
    .single-product-page .category-layout-grid {
        grid-template-columns: 1fr;
    }
    
    .single-product-page .tab-panel {
        display: block !important;
    }
}

/* 2026.3.13 News 分类页面样式 - 左右分栏布局 */

/* News 分类页面样式 - 左右分栏布局 */
.news-container {
    display: flex !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
    gap: 40px !important;
    flex-direction: row !important;
}


/* 左侧分类导航 */
.news-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 8px;
}

.sidebar-title {
    font-size: 24px;
    color: #333;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #007cba;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    color: #555;
    text-decoration: none;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.3s;
}

.category-list a:hover {
    background: #e9ecef;
    color: #007cba;
}

.category-list .active a {
    background: #007cba;
    color: white;
}

.cat-count {
    color: inherit;
    opacity: 0.7;
    font-size: 13px;
}

/* 右侧内容区 */
.news-content {
    flex: 1;
    min-width: 0;
}

.content-title {
    font-size: 28px;
    color: #333;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.news-item {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
}

.news-title {
    margin: 0 0 12px 0;
    font-size: 20px;
}

.news-title a {
    color: #333;
    text-decoration: none;
}

.news-title a:hover {
    color: #007cba;
}

.product-cat-note {
    background: #f0f7ff;
    padding: 8px 12px;
    margin: 10px 0 12px 0;
    border-left: 3px solid #007cba;
    font-size: 14px;
    color: #333;
}

.news-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 12px;
}

.news-cat-label {
    color: #007cba;
    margin-left: 12px;
}

.news-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.read-more {
    color: #007cba;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.read-more:hover {
    text-decoration: underline;
}

/* 分页 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination .current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* 响应式 */
@media (max-width: 768px) {
    .news-container {
        flex-direction: column;
    }
    
    .news-sidebar {
        width: 100%;
    }
}


/* 面包屑导航 - 全宽，独立在上方2026.3.13 */
/* =============================================
   新闻分类页面样式 (category-news.php)
   ============================================= */

/* 容器样式 */
.container { 
    width:90%;
    margin-left: auto !important;    /* 强制左边距自动 */
    margin-right: auto !important;   /* 强制右边距自动 */
    padding: 20px 15px;
    display: block !important;       /* 确保是块级元素 */
    float: none !important;          /* 清除浮动 */
    clear: both !important;          /* 清除浮动影响 */
}

/* 面包屑导航样式 */
.breadcrumb-wrapper {
    margin-bottom: 30px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumb-nav {
    font-size: 14px;
    color: #666;
}

.breadcrumb-nav a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #007bff;
}

.breadcrumb-nav .separator {
    margin: 0 8px;
    color: #999;
}

.breadcrumb-nav .current {
    color: #007bff;
    font-weight: 500;
}

/* 内容包装器 - 使用flex布局 */
.content-wrapper {
    display: flex;
    gap: 30px;
    min-height: 500px;
}

/* 左侧边栏样式 */
.sidebar-left {
    flex: 0 0 260px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: fit-content;
}

/* 分类导航样式 */
.category-nav {
    margin-bottom: 30px;
}

.category-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #007bff;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    display: block;
    padding: 10px 15px;
    background: #fff;
    border-radius: 6px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.category-list li a:hover {
    background: #007bff;
    color: #fff;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,123,255,0.3);
}

.category-list li.active a {
    background: #007bff;
    color: #fff;
    font-weight: 500;
}

.category-list .count {
    float: right;
    font-size: 12px;
    color: #999;
}

.category-list li.active .count {
    color: #fff;
}

/* 新闻搜索样式 */
.news-search {
    margin-bottom: 30px;
}

.search-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    outline: none;
    border-color: #007bff;
}

.search-submit {
    padding: 10px 15px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #0056b3;
}

/* 热门新闻样式 */
.hot-news-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.hot-news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hot-news-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #eee;
}

.hot-news-list li:last-child {
    border-bottom: none;
}

.hot-news-list a {
    display: block;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.hot-news-list a:hover {
    color: #007bff;
}

.hot-news-list .date {
    font-size: 12px;
    color: #999;
}

/* 右侧内容区样式 */
.content-right {
    flex: 1;
    width: 100%;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* 新闻列表头部 */
.news-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
    position: relative;
    padding-left: 15px;
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: #007bff;
    border-radius: 2px;
}

.news-sort {
    font-size: 14px;
}

.news-sort span {
    color: #999;
    margin-right: 10px;
}

.news-sort a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.news-sort a:hover,
.news-sort a.active {
    background: #007bff;
    color: #fff;
}

.news-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-thumbnail {
    flex: 0 0 300px;
    overflow: hidden;
    border-radius: 6px;
}

.news-thumbnail img {
    width: 100%;    
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    line-height: 1.4;        
}

.news-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #007bff;
}

/* 新闻元信息样式 */
.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
}

.news-meta i {
    margin-right: 5px;
    font-size: 14px;
}

.news-meta a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-meta a:hover {
    color: #007bff;
}

/* 新闻摘要样式 */
.news-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
    overflow: visible !important;   
}

/* 阅读更多按钮 */
.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.read-more:hover {
    background: #0056b3;
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #f5f5f5;
    border-color: #007bff;
    color: #007bff;
}

.pagination .current {
    background: #007bff;
    border-color: #007bff;
    color: #fff;
}

/* 无新闻提示 */
.no-news {
    text-align: center;
    padding: 50px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar-left {
        flex: auto;
        width: 100%;
    }
    
    .news-item {
        flex-direction: column;
    }
    
    .news-thumbnail {
        flex: auto;
        width: 100%;
    }
    
    .news-thumbnail img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .news-list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .news-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* 图标字体（如果需要） */
@font-face {
    font-family: 'icomoon';
    src: url('fonts/icomoon.eot');
    src: url('fonts/icomoon.eot') format('embedded-opentype'),
         url('fonts/icomoon.ttf') format('truetype'),
         url('fonts/icomoon.woff') format('woff'),
         url('fonts/icomoon.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

[class^="icon-"], [class*=" icon-"] {
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-calendar:before {
    content: "\e900";
}

.icon-user:before {
    content: "\e901";
}

.icon-folder:before {
    content: "\e902";
}

.icon-eye:before {
    content: "\e903";
}

/* 2026.3.17，新闻分类页面，右侧老是有块空白，彻底移除侧边栏区域 */
.category .widget-area,
.category .secondary,
#secondary {
    display: none !important;
}

/* 让主内容区域占满 */
.category .content-area,
.category #primary {
    width: 100% !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
}


/*2026.3.18 新闻详情页样式*/
/* ===== 新闻详情页单独样式 ===== */
/* ===== 新闻详情页单独样式 ===== */
.single-post-article {
    width: 100% !important;
}

.single-post-title {
    margin-bottom: 15px !important;
    font-size: 32px !important;
    line-height: 1.4 !important;
    color: #333 !important;
    display: block !important;
    width: 100% !important;
}

.single-post-meta {
    width: 100% !important;
    margin-bottom: 25px !important;
    clear: both !important;
    display: block !important;
}

.single-post-meta .news-date {
    display: inline-block !important;
    color: #666 !important;
    font-size: 14px !important;
}

.single-post-meta .news-date i {
    margin-right: 5px !important;
    color: #007cba !important;
}

.single-post-content {
    border-left: none !important;
    padding-left: 0 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #333 !important;
    display: block !important;
    width: 100% !important;
}

.single-post-content p {
    margin-bottom: 20px !important;
}

.single-post-content h2,
.single-post-content h3,
.single-post-content h4 {
    margin: 25px 0 15px !important;
}

.single-post-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
}

/* 强制新闻详情页三个元素各占一行 */
.single-post .single-post-title,
.single-post .single-post-meta,
.single-post .single-post-content {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* 确保父容器不干扰 */
.single-post .content-right,
.single-post .news-item,
.single-post .single-post-article {
    display: block !important;
    width: 100% !important;
}

/* 时间那一行的容器 */
.single-post .single-post-meta {
    margin-bottom: 25px !important;
}

.single-post .single-post-meta .news-date {
    display: inline-block !important;
}

隐藏右侧侧边栏
body.single-post .widget-area,
body.single-post #secondary,
body.single-post .sidebar {
    display: none !important;
}

/* 让内容区占满 */
body.single-post .content-area {
    width: 100% !important;
    flex: 1 1 100% !important;
    max-width: 100% !important;
}

/* ===== 终极强制新闻列表页页脚显示 ===== */
body.category .footer-widget-area,
body.category .ast-footer-widget-1,
body.category .ast-footer-widget-2,
body.category .ast-footer-widget-3,
body.category .ast-footer-widget-4 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 25% !important;
    min-width: 200px !important;
    height: auto !important;
    min-height: 100px !important;
    float: left !important;
    clear: none !important;
    margin: 0 !important;
    padding: 15px !important;
    color: black !important;
    z-index: 9999 !important;
    position: relative !important;
    overflow: visible !important;
}

/* 确保父容器不裁剪 */
/* 强制所有分类页页脚 margin-top 为 0 */
body.category .site-footer,
body.category footer,
body.tax-product_cat .site-footer,
body.tax-product_cat footer {
    margin-top: 0 !important;
}

/* 强制修复 fixed-width-layout 的宽度问题 */
.fixed-width-layout {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* 限制所有子容器的宽度 */
.fixed-width-layout .category-main-content,
.fixed-width-layout .main-container,
.fixed-width-layout .category-layout-grid,
.fixed-width-layout .category-products,
.fixed-width-layout .product-content {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 设置主容器的最大宽度 */
.fixed-width-layout .main-container {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* 修复 grid 布局 */
.fixed-width-layout .category-layout-grid {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    gap: 40px !important;
    width: 100% !important;
    align-items: start !important;  /* 改为 start，不拉伸子元素 */
}

/* 修复 flex 布局 */
.fixed-width-layout .product-main-area {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    width: 100% !important;
    margin-bottom: 10px !important;
    box-sizing: border-box !important;
}

.fixed-width-layout .product-image-column {
    flex: 0 0 auto !important;
    width: 320px !important;  /* 图片区域宽度，可根据需要调整 */
    max-width: 100% !important;
}

.fixed-width-layout .product-info-column {
    flex: 1 !important;
    min-width: 200px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* 确保所有内容换行 */
.fixed-width-layout .product-info-column * {
    max-width: 100% !important;
    word-break: break-word !important;
    white-space: normal !important;
}

/* 按钮组换行 */
.fixed-width-layout .product-action-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    width: 100% !important;
}

.fixed-width-layout .btn {
    flex: 1 1 auto !important;
    min-width: 120px !important;
    white-space: nowrap !important;
}

/* 小屏幕适配 */
@media (max-width: 768px) {
    .fixed-width-layout .category-layout-grid {
        grid-template-columns: 1fr !important;
    }
    
    .fixed-width-layout .product-main-area {
        flex-direction: column !important;
    }
    
    .fixed-width-layout .product-image-column {
        max-width: 100% !important;
    }
    
    .fixed-width-layout .btn {
        white-space: normal !important;
    }
}

/*2026.3.26 新闻列表样式*/
/* ===== 新闻列表 - 两列布局 ===== */
.news-list {
    display: grid !important;
    grid-template-columns: 400px minmax(0, 1fr) !important;
    gap: 25px !important;
        width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;  /* 改为 visible */
}

.news-content-card,
.news-content-card * {
    max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
}

/* 新闻卡片 - 水平布局 */
.news-list .news-item {
    display: flex !important;
    gap: 15px !important;
    background: #fff !important;
    border-radius: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    transition: all 0.2s ease !important;
    overflow: hidden !important;
}

.news-list .news-item:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12) !important;
}

/* 左侧图片列 - 宽度自适应，最大300px */
.news-list .news-thumbnail {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 300px !important;
    min-width: 100px !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    align-self: flex-start !important;
}

.news-list .news-thumbnail a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    text-decoration: none !important;
}

.news-list .news-thumbnail img {
    width: 100% !important;
    height: auto !important;
    max-width: 300px !important;
    max-height: 300px !important;
    object-fit: contain !important;
    display: block !important;
}

/* 占位符样式 - 无图片时显示 */
.thumbnail-placeholder {
    width: 120px !important;
    min-width: 100px !important;
    max-width: 300px !important;
    height: 120px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.thumbnail-placeholder span {
    font-size: 40px !important;
    color: rgba(255,255,255,0.8) !important;
}

/* 右侧内容列 */
.news-list .news-content {
    flex: 1 !important;
    padding: 12px 12px 12px 0 !important;
    display: flex !important;
    flex-direction: column !important;

        max-width: 100% !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
    overflow: visible !important;
}

/* 标题 */
.news-list .news-title {
            display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    overflow: visible !important;
    height: auto !important;
    
    /* 关键：重置可能存在的截断相关属性 */
    text-overflow: clip !important;
    -webkit-line-clamp: none !important;
    -webkit-box-orient: vertical !important;  /* 即使不用 box 模式也要重置 */
}

.news-list .news-title a {
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
}

.news-list .news-title a:hover {
    color: #007cba !important;
}

/* 元信息 */
.news-list .news-meta {
    margin-bottom: 8px !important;
    font-size: 12px !important;
    color: #999 !important;
}

/* 摘要 - 限制2行 */
.news-list .news-excerpt {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #666 !important;
    margin-bottom: 10px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;   
    overflow: hidden !important; /* ✅ 这行是你漏掉的关键！ */
    word-break: break-all !important; /* 自动换行，更稳定 */ 
}

/* 响应式：平板显示单列 */
@media (max-width: 768px) {
    .news-list {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}

/* 响应式：手机卡片改为上下布局 */
@media (max-width: 480px) {
    .news-list .news-item {
        flex-direction: column !important;
    }
    
    .news-list .news-thumbnail {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .news-list .news-thumbnail img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .thumbnail-placeholder {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .news-list .news-content {
        padding: 15px !important;
    }
    
    .news-list .news-title a {
        white-space: normal !important;
    }
}

/*2026.3.26 页脚添加联系方式 样式不换行*/
/* 页脚联系信息横向排列 */
.footer-contact .contact-items {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 10px;
}

.footer-contact .contact-item {
    white-space: nowrap;
}

/* 移动端自动换行 */
@media (max-width: 768px) {
    .footer-contact .contact-item {
        white-space: normal;
    }
}

/*2026.3.26 创建首页新闻列表样式*/
/* ===== 首页新闻列表样式（2列布局，左侧图片右侧内容）===== */
/* 新闻网格 - 2列布局，奇数条时右侧不留白 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin: 20px 0;
}

/* 新闻卡片 - 添加边框 */
.news-card {
    display: flex !important;
    gap: 20px !important;    
    border-radius: 12px !important;
    border: 1px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    align-items: center;
}
.news-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: #ccc !important;
}

/* 左侧缩略图 - 固定宽度 */
.news-card-thumbnail {
    flex: 0 0 200px !important;
    margin-left: 10px;
    overflow: hidden !important;
}

.news-card-thumbnail a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.news-card-thumbnail img {
    width: 200px !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
}

/* 缩略图占位符 */
.news-thumb-placeholder {
    width: 200px !important;
    height: 140px !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.news-thumb-placeholder span {
    font-size: 40px !important;
    color: rgba(255, 255, 255, 0.8) !important;
}

/* 右侧内容区 */
.news-card-content {
    flex: 1 !important;
    padding: 12px 15px 12px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

/* 标题 */
.news-card-title {
    margin: 0 0 8px 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.news-card-title a {
    color: #333 !important;
    text-decoration: none !important;
}

.news-card-title a:hover {
    color: #007cba !important;
}

/* 日期 */
.news-card-date {
    font-size: 12px !important;
    color: #999 !important;
    margin-bottom: 10px !important;
}

/* 摘要 - 限制2行 */
.news-card-excerpt {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #666 !important;
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Read More 按钮 */
.news-card-readmore {
    display: inline-block !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #007cba !important;
    text-decoration: none !important;
    margin-top: auto !important;
}

.news-card-readmore:hover {
    text-decoration: underline !important;
}

/* 如果只有一个 .news-card，让它只占一列 */
.news-card:first-child:last-child {
    grid-column: span 1;
}


/* 当新闻数量为奇数时，最后一个不撑满整行 */
.news-card:last-child:nth-child(odd) {
    grid-column: span 1;
}

/* 当只有一个新闻时，居中显示 */
.news-grid:has(> .news-card:only-child) {
    grid-template-columns: 1fr;
    justify-items: center;
}

.news-grid:has(> .news-card:only-child) .news-card {
    max-width: 50%;
}

/* 强制新闻列表图片统一大小 */
.news-image-card {
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 8px !important;
}

.news-image-card img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

/*2026.3.30 产品分类页 页数样式*/
/* ========== 产品分页样式 ========== */
.products-pagination {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.products-pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.products-pagination .page-numbers li {
    display: inline-block;
    margin: 0 2px;
}

.products-pagination .page-numbers a,
.products-pagination .page-numbers span {
    display: inline-block;
    padding: 8px 12px;
    min-width: 36px;
    text-align: center;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.products-pagination .page-numbers a:hover {
    background-color: #f5f5f5;
    border-color: #007cba;
    color: #007cba;
}

.products-pagination .page-numbers .current {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
}

.products-pagination .page-numbers .dots {
    border: none;
    background: transparent;
}

/*404页面样式*/
/* ------------------------------ */
/* 404 Page Style
/* ------------------------------ */
.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}
.page-404__wrapper {
    max-width: 600px;
    width: 100%;
}
.page-404__title {
    font-size: 80px;
    font-weight: 700;
    color: #222;
    margin: 0 0 10px;
    line-height: 1;
}
.page-404__subtitle {
    font-size: 24px;
    color: #555;
    margin-bottom: 20px;
}
.page-404__text {
    font-size: 16px;
    color: #777;
    margin-bottom: 35px;
    line-height: 1.6;
}
.page-404__btn {
    display: inline-block;
    padding: 14px 32px;
    background-color: #000;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s;
    margin-bottom: 30px;
}
.page-404__btn:hover {
    background-color: #333;
    color: #fff !important;
}
.page-404 .search-form {
    max-width: 400px;
    margin: 0 auto;
}
.page-404 .search-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
}