/* 应对区块编辑器可能残留的 p 标签 */
.filter-list a p,
.filter-list li p,
.newslist .info-bar p,
.newslist .loading p,
.newslist .no-results p {
    margin: 0 !important;
    padding: 0 !important;
    display: contents !important;
}

.subleft {
    width: 280px !important;
    max-width: 280px !important;
    flex-shrink: 0;
    float: left;
    margin-right: 20px;
    box-sizing: border-box;
}
.newslist {
    overflow: hidden;
    box-sizing: border-box;
}
.wp-block-columns .subleft {
    float: none;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0;
}

.filter-panel {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.filter-panel-title {
    margin: 0 0 15px 0 !important;
    font-size: 24px !important;
    color: #2c3e50 !important;
    font-weight: bold !important;
    line-height: 1.3 !important;
}
.filter-group {
    margin-bottom: 22px;
}
.filter-title {
    font-size: 16px;
    color: #2c3e50;
    margin: 0 0 10px;
    font-weight: bold;
    border-left: 4px solid #3498db;
    padding-left: 10px;
}
.filter-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.filter-list li {
    margin: 6px 0 !important;
    list-style: none !important;
}

/* 确保 a 标签为 flex 同行布局（内联样式已包含，此处为备用增强） */
.filter-list a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    line-height: 1.4 !important;
    padding: 6px 10px !important;
    color: #34495e !important;
    text-decoration: none !important;
    font-size: 14px !important;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    background: transparent !important;
    border: none !important;
}
.filter-list a::before, .filter-list a::after { display: none !important; content: none !important; }
.filter-list a:hover { background-color: #f0f7ff !important; color: #3498db !important; }
.filter-list a.disabled { opacity: 0.5; pointer-events: none; }

.filter-checkbox {
    width: 16px; height: 16px; border: 1px solid #ccc; border-radius: 3px;
    flex-shrink: 0; transition: all 0.2s; position: relative; pointer-events: none;
    margin: 0 !important; padding: 0 !important; align-self: center !important;
    display: inline-flex; align-items: center; justify-content: center;
}
.filter-checkbox.checked { background-color: #3498db !important; border-color: #3498db !important; }
.filter-checkbox.checked::after {
    content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 10px;
    border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* 名称与计数垂直居中 */
.filter-list .name,
.filter-list .count {
    pointer-events: none;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    align-self: center !important;
}
.filter-list .name { flex: 1; }
.filter-list .count { color: #7f8c8d !important; font-size: 12px !important; min-width: 40px; text-align: right; }

.selected-filters {
    margin-bottom: 15px; padding: 10px; background: #f8f9fa; border-radius: 6px;
    font-size: 15px; border: 1px solid #e9ecef; min-height: 36px;
}
.selected-filter {
    display: inline-block; margin: 2px; padding: 4px 10px; background: #e3f2fd;
    border-radius: 12px; color: #1976d2; border: 1px solid #bbdefb; font-size: 15px;
}
.remove-filter { margin-left: 4px; cursor: pointer; font-weight: bold; background: none; border: none; padding: 0; color: #999; font-size: 14px; }
.no-filter { color: #999; font-style: italic; }

.info-bar {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px;
    padding: 10px 15px; background: #f8f9fa; border-left: 4px solid #3498db; border-radius: 6px;
    font-size: 14px; color: #666;
}

.loading-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3498db; animation: pulse 1.5s infinite ease-in-out; margin: 0 3px; }
.loading-dot:nth-child(2) { animation-delay: 0.2s; }
.loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

.newslist ul { list-style: none; padding: 0; margin: 0; }
.article-item {
    margin-bottom: 15px; background: #fff; border-radius: 4px; overflow: hidden;
    border: 1px solid #e0e0e0;transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-item:hover { border-color: #3498db; box-shadow: 0 2px 8px rgba(52,152,219,0.15); }
.article-link { display: flex; text-decoration: none; color: inherit; gap: 24px; }
.img-container {
    width: 180px; flex-shrink: 0; border: 1px solid #e0e0e0; border-radius: 4px;
    margin: 5px; box-sizing: border-box; overflow: hidden;
}
.img-container img { width: 100%; height: 100%; object-fit: cover; display: block; }
.content-container { flex: 1; padding: 12px 0; display: flex; flex-direction: column; justify-content: flex-start; min-width: 0; }
.article-title { font-size: 20px; font-weight: bold; color: #2c3e50; margin: 0 0 4px; line-height: 1.3; }
.article-catalog { font-size: 14px; color: #555; margin-bottom: 0; }
.article-gap { height: 1em; }
.article-detail { font-size: 14px; color: #555; line-height: 1.5; }
.no-results { text-align: center; padding: 60px 20px; color: #999; }

.pglist { text-align: center; margin: 20px 0; }
.pagination-links { display: inline-flex; gap: 5px; }
.page-link {
    display: inline-block; padding: 6px 12px; background: #f0f0f0; color: #333;
    text-decoration: none; border-radius: 4px; transition: background 0.2s;
}
.page-link.active { background: #007cba; color: #fff; }
.page-link:hover:not(.active) { background: #ddd; }

@media (max-width: 768px) {
    .subleft, .newslist { float: none; width: 100% !important; max-width: 100% !important; margin-right: 0; }
    .img-container { width: 120px; margin: 4px; }
}

/* 产品筛选面板默认隐藏，重组蛋白初始显示 */
.product-filters {
    display: none;
}
.recombinant-filters {
    display: block;
}

/* 修复结果列表顶部多余空白段落 */
#biojx-filter-results-main > p:first-child {
    display: none;
}

/* 文章卡片样式 */
.article-item {
    margin-bottom: 15px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
    border: 1px solid #e0e0e0;
}

.article-item:hover {
    transform: translateY(-6px);               /* 上浮幅度增加 */
    border-color: #178b30;                     /* 主题色边框 */
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);  /* 更深的阴影 */
}

/* 图片容器 */
.img-container {
    width: 180px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin: 5px;
}
.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-item:hover .img-container img {
    transform: scale(1.08);                    /* 图片放大更多 */
}

/* 内容区域 */
.content-container {
    flex: 1;
    padding: 12px 15px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

/* 标题 */
.article-title {
    font-size: 20px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0 0 4px;
    line-height: 1.3;
}

/* 货号 */
.article-catalog {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;                         /* 与下方标签统一间距 */
}

/* 空行（如果不需要可移除） */
.article-gap {
    height: 0;
    margin: 0;
}

/* 标签容器 */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;                         /* 与摘要间距 */
}

/* 单个标签 */
.article-tag {
    display: inline-block;
    background: #f0f4f0;                        /* 浅绿背景 */
    color: #2c3e50;
    font-size: 13px;
    padding: 3px 10px;
    border-radius: 12px;
    border: 1px solid #e0e8e0;
}

/* 摘要 */
.article-abstract {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-top: 0;                               /* 由 .article-tags 的 margin-bottom 控制间距 */
}

/* 无结果等其他样式保持不变 */