/**
 * Site-wide Theme B — 与主页方案 B 一致的深色科技风
 * 应用于：搜索、产品分类列表、产品详情
 */
body.site-theme-b {
    --hb-bg: #0f1117;
    --hb-surface: #1a1d27;
    --hb-surface-2: #242836;
    --hb-purple: #7c3aed;
    --hb-cyan: #06b6d4;
    --hb-text: #e2e8f0;
    --hb-muted: #94a3b8;
    --hb-glow: rgba(124, 58, 237, 0.4);
    --hb-border: rgba(255, 255, 255, 0.08);
    --primary-color: #7c3aed;
    --secondary-color: #e2e8f0;
    --text-color: #e2e8f0;
    --light-bg: #1a1d27;
    background: var(--hb-bg);
    color: var(--hb-text);
}

body.site-theme-b .site-page {
    padding: 24px 0 64px;
    min-height: 60vh;
}

/* Breadcrumb */
body.site-theme-b .bread {
    padding: 12px 0 20px;
}
body.site-theme-b .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}
body.site-theme-b .breadcrumb > li + li:before {
    color: var(--hb-muted);
}
body.site-theme-b .breadcrumb a {
    color: var(--hb-cyan);
}
body.site-theme-b .breadcrumb a:hover {
    color: #67e8f9;
}
body.site-theme-b .breadcrumb > .active,
body.site-theme-b .breadcrumb > li > span {
    color: var(--hb-muted);
}

/* Page headers */
body.site-theme-b .catalog-page-head,
body.site-theme-b .search-results-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--hb-border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
body.site-theme-b .catalog-page-head h1,
body.site-theme-b .catalog-page-head h2,
body.site-theme-b .search-results-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
body.site-theme-b .catalog-page-head .catalog-count {
    color: var(--hb-muted);
    font-weight: 400;
    font-size: 1rem;
}

/* Buttons */
body.site-theme-b .btn-primary {
    background: linear-gradient(135deg, var(--hb-purple), #6366f1);
    border-color: transparent;
    border-radius: 8px;
}
body.site-theme-b .btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9, #4f46e5);
    border-color: transparent;
}
body.site-theme-b .btn-default {
    background: var(--hb-surface-2);
    border-color: var(--hb-border);
    color: var(--hb-text);
    border-radius: 8px;
}
body.site-theme-b .btn-default:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.4);
    color: #fff;
}
body.site-theme-b .btn-success {
    background: rgba(6, 182, 212, 0.2);
    border-color: rgba(6, 182, 212, 0.5);
    color: var(--hb-cyan);
    border-radius: 8px;
}

/* Alerts */
body.site-theme-b .alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d;
}
body.site-theme-b .alert-info {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.35);
    color: #67e8f9;
}

/* Pagination */
body.site-theme-b .pagination > li > a,
body.site-theme-b .pagination > li > span {
    background: var(--hb-surface);
    border-color: var(--hb-border);
    color: var(--hb-text);
}
body.site-theme-b .pagination > .active > a,
body.site-theme-b .pagination > .active > span {
    background: var(--hb-purple);
    border-color: var(--hb-purple);
}
body.site-theme-b .pagination > li > a:hover {
    background: var(--hb-surface-2);
    color: var(--hb-cyan);
}

/* Catalog product cards (list pages) */
body.site-theme-b .catalog-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
body.site-theme-b .catalog-card {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s;
}
body.site-theme-b .catalog-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    text-decoration: none;
    color: inherit;
}
body.site-theme-b .catalog-card-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: #0f1117;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
body.site-theme-b .catalog-card-img img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}
body.site-theme-b .catalog-card-body {
    flex: 1;
    min-width: 0;
}
body.site-theme-b .catalog-card-sn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hb-cyan);
    margin-bottom: 6px;
}
body.site-theme-b .catalog-card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.4;
}
body.site-theme-b .catalog-card-sub {
    font-size: 0.88rem;
    color: var(--hb-muted);
    margin: 0 0 10px;
    line-height: 1.5;
}
body.site-theme-b .catalog-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    font-size: 0.85rem;
    color: var(--hb-muted);
}
body.site-theme-b .catalog-card-meta span {
    color: var(--hb-text);
}

body.site-theme-b #main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    float: none;
}

body.site-theme-b .catalog-paging {
    margin-top: 32px;
    text-align: center;
}

/* Product detail */
body.site-theme-b .goods-detail-kangti-page,
body.site-theme-b .goods-detail-shenghua-page {
    color: var(--hb-text);
}
body.site-theme-b .detail-category-title h1,
body.site-theme-b .item-title h1 {
    color: #fff;
}
body.site-theme-b .item-title-actions a {
    color: var(--hb-cyan) !important;
}
body.site-theme-b .item-title-actions .btn-datasheet-link {
    color: #fbbf24 !important;
}
body.site-theme-b .goods-detail-top {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 24px;
}
body.site-theme-b .goods-detail-kangti-page .right-order-sticky,
body.site-theme-b .goods-detail-shenghua-page .right-order-sticky {
    position: sticky;
    top: calc(var(--header-height) + 16px);
    flex: 1;
    min-width: 280px;
    max-width: 420px;
}
body.site-theme-b .buy {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 16px;
    padding: 20px;
}
body.site-theme-b .buy-tit {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 0;
}
body.site-theme-b .buy .table {
    background: transparent;
    color: var(--hb-text);
    margin-bottom: 16px;
}
body.site-theme-b .buy .table > thead > tr > th,
body.site-theme-b .buy .table > tbody > tr > td {
    border-color: var(--hb-border);
    background: transparent;
    color: var(--hb-text);
}
body.site-theme-b .buy .table-striped > tbody > tr:nth-of-type(odd) {
    background: rgba(255, 255, 255, 0.03);
}
body.site-theme-b .buy .add-to-cart,
body.site-theme-b .buy .ask-price {
    color: var(--hb-cyan);
}
body.site-theme-b .detail-tit {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow-x: auto;
}
body.site-theme-b .detail-tit ul {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
    list-style: none;
}
body.site-theme-b .detail-tit li {
    padding: 14px 18px;
    cursor: pointer;
    border-right: 1px solid var(--hb-border);
    white-space: nowrap;
}
body.site-theme-b .detail-tit li:hover {
    background: rgba(124, 58, 237, 0.12);
}
body.site-theme-b .detail-tit h2 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--hb-muted);
    font-weight: 600;
}
body.site-theme-b .detail-tit li:hover h2 {
    color: var(--hb-cyan);
}
body.site-theme-b .detail-info .table {
    background: var(--hb-surface);
    border-color: var(--hb-border);
    color: var(--hb-text);
    border-radius: 12px;
    overflow: hidden;
}
body.site-theme-b .detail-info .table > thead > tr > th,
body.site-theme-b .detail-info .table > tbody > tr > th {
    background: var(--hb-surface-2);
    border-color: var(--hb-border);
    color: var(--hb-cyan);
    font-weight: 600;
    width: 180px;
}
body.site-theme-b .detail-info .table > tbody > tr > td {
    border-color: var(--hb-border);
    background: transparent;
    color: var(--hb-text);
}
body.site-theme-b .detail-info .table-striped > tbody > tr:nth-of-type(odd) > td,
body.site-theme-b .detail-info .table-striped > tbody > tr:nth-of-type(odd) > th {
    background: rgba(255, 255, 255, 0.02);
}
body.site-theme-b .detail-hero-tag {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.35);
    color: #c4b5fd;
}
body.site-theme-b .detail-hero-tag--app {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.35);
    color: #67e8f9;
}
body.site-theme-b .related-product-card {
    background: var(--hb-surface);
    border-color: var(--hb-border);
}
body.site-theme-b .related-product-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
body.site-theme-b .related-product-card h4 {
    color: #fff;
}
body.site-theme-b .modal-content {
    background: var(--hb-surface);
    border-color: var(--hb-border);
    color: var(--hb-text);
}
body.site-theme-b .modal-header {
    border-color: var(--hb-border);
}
body.site-theme-b .modal-footer {
    border-color: var(--hb-border);
}
body.site-theme-b .form-control {
    background: var(--hb-surface-2);
    border-color: var(--hb-border);
    color: var(--hb-text);
}

body.site-theme-b .category_tit-with-advisor h1 {
    color: #fff;
    font-size: 1.6rem;
}
body.site-theme-b .category_tit-with-advisor small {
    color: var(--hb-muted);
}
body.site-theme-b .detail-citation-badge a {
    color: var(--hb-cyan);
}
body.site-theme-b .goods-detail-carousel {
    background: var(--hb-surface);
    border: 1px solid var(--hb-border);
    border-radius: 16px;
    padding: 16px;
    flex: 1;
    min-width: 280px;
}
body.site-theme-b .goods-detail-carousel .right-con p {
    color: var(--hb-muted);
}
body.site-theme-b .product-title h4 {
    color: #fff;
    font-weight: 700;
    margin: 28px 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--hb-border);
}
body.site-theme-b .mobile-buy-bar {
    background: var(--hb-surface);
    border-top: 1px solid var(--hb-border);
    color: var(--hb-text);
}
body.site-theme-b .mobile-buy-bar__sn {
    color: var(--hb-cyan);
}

@media (max-width: 768px) {
    body.site-theme-b .catalog-card {
        flex-direction: column;
    }
    body.site-theme-b .catalog-card-img {
        width: 100%;
        height: 160px;
    }
    body.site-theme-b .goods-detail-kangti-page .right-order-sticky,
    body.site-theme-b .goods-detail-shenghua-page .right-order-sticky {
        position: static;
        max-width: none;
    }
}
