/* b2bsort 首页 v2 —— 仅首页加载，不影响其他页面 */
html, body { overflow-x: hidden; }
body { background: #f5f6f8; }

.hx-home { color: #23282f; overflow-x: clip; }
.hx-home * { box-sizing: border-box; }
.hx-hero__inner > *,
.hx-ind-grid > *,
.hx-prod-grid > *,
.hx-indcat__grid > *,
.hx-supp-grid > * { min-width: 0; }
.hx-card__ttl,
.hx-supp__name,
.hx-supp__desc,
.hx-ind__name { overflow-wrap: anywhere; }
.hx-home h1, .hx-home h2, .hx-home h3 { margin: 0; font-weight: 700; line-height: 1.25; }
.hx-home a { text-decoration: none; }
.hx-home img { max-width: 100%; }

/* 顶部语言下拉：首页不加载 jQuery，用 CSS 悬停兜底 */
.tk23-tphdr .dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }

/* ---------- Hero ---------- */
.hx-hero {
    background: linear-gradient(120deg, #0b2947 0%, #123f6b 55%, #17507f 100%);
    color: #fff;
    padding: 46px 0 50px;
    position: relative;
    overflow: hidden;
}
.hx-hero::after {
    content: "";
    position: absolute;
    right: -140px;
    top: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,102,0,.32), rgba(255,102,0,0) 68%);
}
.hx-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}
.hx-hero__eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #ffb27a;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 16px;
}
.hx-hero__title {
    font-size: clamp(24px, 2.6vw, 38px);
    line-height: 1.18;
    letter-spacing: -.02em;
    color: #fff;
    max-width: 100%;
    overflow-wrap: break-word;
}
.hx-hero__sub {
    margin: 14px 0 0;
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, .78);
    max-width: 560px;
}
.hx-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: transform .15s ease, background .15s ease;
}
.hx-btn:hover { transform: translateY(-1px); }
.hx-btn--primary { background: #ff6600; color: #fff; }
.hx-btn--primary:hover { background: #e85c00; color: #fff; }
.hx-btn--ghost { border: 1px solid rgba(255, 255, 255, .45); color: #fff; }
.hx-btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hx-hero__stats { display: flex; gap: 36px; margin-top: 30px; }
.hx-hero__stats strong { display: block; font-size: 24px; color: #fff; }
.hx-hero__stats span { font-size: 12px; color: rgba(255, 255, 255, .62); letter-spacing: .04em; }

.hx-hero__panel {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 12px;
    padding: 22px;
    backdrop-filter: blur(4px);
}
.hx-hero__panel-hd {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #ffb27a;
    margin-bottom: 14px;
}
.hx-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hx-chips a {
    display: block;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    transition: background .15s ease;
}
.hx-chips a:hover { background: #ff6600; border-color: #ff6600; color: #fff; }
.hx-hero__panel-more { display: inline-block; margin-top: 18px; font-size: 13px; color: #ffb27a; }
.hx-hero__panel-more:hover { color: #fff; }

/* ---------- 通用区块 ---------- */
.hx-sec { padding: 42px 0; }
.hx-sec:nth-of-type(even) { background: #fff; }
.hx-sec__hd {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.hx-sec__hd h2 { font-size: 24px; color: #17202a; }
.hx-sec__hd a { font-size: 13px; color: #0e65bc; font-weight: 600; }
.hx-sec__hd a:hover { color: #ff6600; }

/* ---------- 行业网格 ---------- */
.hx-ind-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}
.hx-ind {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hx-ind:hover { border-color: #ffcfae; box-shadow: 0 8px 20px rgba(18, 63, 107, .1); transform: translateY(-2px); }
.hx-ind__ico {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef4fb;
    color: #0e65bc;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hx-ind:nth-child(6n+2) .hx-ind__ico { background: #fff1e8; color: #d75a00; }
.hx-ind:nth-child(6n+3) .hx-ind__ico { background: #eaf7ee; color: #1c7c3c; }
.hx-ind:nth-child(6n+4) .hx-ind__ico { background: #f3eeff; color: #6136c9; }
.hx-ind:nth-child(6n+5) .hx-ind__ico { background: #eaf6f8; color: #0a7b8c; }
.hx-ind:nth-child(6n+6) .hx-ind__ico { background: #fdeef1; color: #bc2a45; }
.hx-ind__body { min-width: 0; }
.hx-ind__name { display: block; font-size: 13px; font-weight: 600; color: #23282f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-ind__cnt { display: block; font-size: 11px; color: #8b95a1; margin-top: 2px; }

/* ---------- 产品卡片 ---------- */
.hx-prod-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.hx-card {
    display: block;
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.hx-card:hover { border-color: #ffcfae; box-shadow: 0 10px 26px rgba(18, 63, 107, .12); transform: translateY(-2px); }
.hx-card__img { display: block; aspect-ratio: 1 / 1; background: #f1f4f7; overflow: hidden; }
.hx-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hx-card__ttl {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 10px 11px 12px;
    font-size: 13px;
    line-height: 1.45;
    color: #38424f;
    min-height: 56px;
}
.hx-card:hover .hx-card__ttl { color: #0e65bc; }

/* ---------- 行业选品 ---------- */
.hx-indcat {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 18px;
}
.hx-indcat__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eef1f5;
}
.hx-indcat__head h3 { font-size: 18px; flex: 0 0 auto; }
.hx-indcat__head h3 a { color: #17202a; }
.hx-indcat__head h3 a:hover { color: #ff6600; }
.hx-indcat__subs { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; min-width: 0; }
.hx-indcat__subs a {
    font-size: 12px;
    color: #5a6674;
    background: #f4f6f9;
    border-radius: 999px;
    padding: 5px 10px;
}
.hx-indcat__subs a:hover { background: #fff1e8; color: #d75a00; }
.hx-indcat__all { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: #0e65bc; }
.hx-indcat__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.hx-card--sm .hx-card__ttl { font-size: 12px; min-height: 52px; padding: 8px 9px 10px; }

/* ---------- 供应商 ---------- */
.hx-supp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.hx-supp {
    background: #fff;
    border: 1px solid #e7eaee;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.hx-supp__hd { display: flex; align-items: center; gap: 10px; }
.hx-supp__logo {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #eef1f5;
    background: #fafbfc;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hx-supp__logo img { width: 100%; height: 100%; object-fit: contain; }
.hx-supp__name {
    font-size: 13px;
    font-weight: 700;
    color: #23282f;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hx-supp__desc {
    margin: 10px 0 12px;
    font-size: 12px;
    line-height: 1.6;
    color: #7a8593;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 57px;
}
.hx-supp__prods { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.hx-supp__prods a { display: block; aspect-ratio: 1 / 1; background: #f1f4f7; border-radius: 6px; overflow: hidden; }
.hx-supp__prods img { width: 100%; height: 100%; object-fit: contain; }
.hx-supp__link { margin-top: auto; font-size: 12px; font-weight: 600; color: #0e65bc; }
.hx-supp__link:hover { color: #ff6600; }

/* ---------- CTA ---------- */
.hx-cta { background: linear-gradient(120deg, #0b2947, #123f6b); color: #fff; padding: 40px 0; }
.hx-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hx-cta h2 { font-size: 26px; color: #fff; }
.hx-cta p { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.hx-cta__btns { display: flex; gap: 12px; flex: 0 0 auto; }
.hx-cta__btns a {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}
.hx-cta__btns a:first-child { background: #ff6600; color: #fff; }
.hx-cta__btns a:first-child:hover { background: #e85c00; }
.hx-cta__btns a:last-child { border: 1px solid rgba(255, 255, 255, .4); color: #fff; }
.hx-cta__btns a:last-child:hover { background: rgba(255, 255, 255, .12); }

/* ---------- 响应式 ---------- */
@media (max-width: 1199px) {
    .hx-hero__title { font-size: 32px; }
    .hx-ind-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hx-prod-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hx-indcat__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hx-supp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .hx-hero__inner { grid-template-columns: 1fr; gap: 26px; }
    .hx-hero { padding: 34px 0 38px; }
    .hx-hero__title { font-size: 28px; }
    .hx-ind-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hx-prod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hx-indcat__head { flex-wrap: wrap; }
    .hx-supp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hx-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
    .hx-sec { padding: 30px 0; }
    .hx-hero__title { font-size: 24px; }
    .hx-hero__stats { gap: 22px; }
    .hx-hero__stats strong { font-size: 20px; }
    .hx-ind-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hx-prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hx-indcat { padding: 14px; }
    .hx-indcat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hx-supp-grid { grid-template-columns: 1fr; }
    .hx-sec__hd h2 { font-size: 20px; }
    .hx-cta h2 { font-size: 21px; }
}
