/* =====================================================================
   home.css — b2b.jiawei.net 前台主站主题（51sole 工业风）
   主色 #1e6fff / 强调橙 #ff6a00 / AI 紫渐变 · 卡片圆角 · 徽章体系
   ===================================================================== */

/* ---------- 变量与重置 ---------- */
/* hidden 属性必须优先于组件的 display 声明，避免弹层遮罩常驻挡住页面 */
[hidden] {
    display: none !important;
}

:root {
    --primary: #1e6fff;
    --primary-dark: #1559d8;
    --primary-light: #eaf1ff;
    --accent: #ff6a00;
    --accent-dark: #e05e00;
    --ai-1: #6a5cff;
    --ai-2: #1e6fff;
    --text: #22272e;
    --muted: #8a94a6;
    --line: #e6ebf2;
    --bg: #f5f7fa;
    --card: #ffffff;
    --ok: #0a9d5c;
    --danger: #e5484d;
    --radius: 8px;
    --radius-sm: 6px;
    --shadow: 0 2px 8px rgba(30, 60, 120, .06);
    --shadow-hover: 0 6px 18px rgba(30, 60, 120, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font: 14px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; border: 0; vertical-align: middle; }
b, strong { font-weight: 600; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--text); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 12px; }
.muted { color: var(--muted); font-size: 13px; }

.main-wrap { min-height: 60vh; padding-bottom: 24px; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; border: 1px solid transparent; border-radius: var(--radius-sm);
    padding: 8px 18px; font-size: 14px; line-height: 1.4;
    transition: all .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-ai {
    background: linear-gradient(135deg, var(--ai-1), var(--ai-2));
    color: #fff;
}
.btn-ai:hover { filter: brightness(1.08); color: #fff; }
.btn-lg { padding: 12px 26px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-xs { padding: 3px 9px; font-size: 12px; }
.btn-block { width: 100%; }
.badge {
    display: inline-block; padding: 1px 8px; border-radius: 4px;
    font-size: 12px; line-height: 1.6; font-weight: 400; vertical-align: 1px;
}
.badge-ai {
    background: linear-gradient(135deg, var(--ai-1), var(--ai-2));
    color: #fff; font-size: 11px; font-weight: 600;
    padding: 2px 7px; border-radius: 5px;
}
.badge-claim { background: #e5f8ef; color: var(--ok); border: 1px solid #bfe9d5; }
.badge-status { background: var(--primary-light); color: var(--primary); }
.badge-inquiry { background: #fff3e8; color: var(--accent); border: 1px solid #ffd9b8; }
.badge-source { background: #f1f3f7; color: var(--muted); }
.badge-cat { background: var(--primary-light); color: var(--primary); }
.badge-corner { position: absolute; top: 6px; left: 6px; z-index: 2; }
.badge-lg { font-size: 13px; padding: 3px 10px; }

/* ---------- 顶栏 ---------- */
.topbar { background: #202a3c; color: #9fb0c8; font-size: 12px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.topbar-welcome b { color: #fff; font-weight: 500; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-link { color: #c3cfe0; }
.topbar-link:hover { color: #fff; }
.topbar-hot { color: #ffb36b; }
.topbar-sep { color: #46546c; }

/* ---------- 头部主区 ---------- */
.header-main {
    display: flex; align-items: center; gap: 30px;
    padding-top: 18px; padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; line-height: 1.2; flex-shrink: 0; }
.brand-name { font-size: 26px; font-weight: 700; color: var(--primary); letter-spacing: 1px; }
.brand-name em { font-style: normal; color: var(--accent); }
.brand-sub { font-size: 11px; color: var(--muted); margin-top: 2px; letter-spacing: 2px; }

.global-search { flex: 1; max-width: 620px; }
.global-search-box {
    display: flex; border: 3px solid var(--primary); border-radius: var(--radius);
    background: #fff; height: 46px; overflow: hidden;
}
.gs-input {
    flex: 1; border: 0; outline: none; padding: 0 14px; font-size: 15px;
    background: transparent; min-width: 0;
}
.gs-btn {
    width: 108px; border: 0; background: var(--primary); color: #fff;
    font-size: 17px; letter-spacing: 4px; transition: background .15s;
}
.gs-btn:hover { background: var(--primary-dark); }
.gs-hot { margin-top: 7px; font-size: 12px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-hot a { color: var(--muted); margin-right: 10px; }
.gs-hot a:hover { color: var(--primary); }
.gs-hot-label { color: #c0c8d4; }

.ai-assistant-entry {
    display: flex; align-items: center; gap: 10px;
    border: 1px dashed #c9bfe8; border-radius: var(--radius);
    background: linear-gradient(135deg, #f4f1ff, #eef4ff);
    padding: 8px 16px; margin-left: auto; flex-shrink: 0;
}
.ai-assistant-entry:hover { border-color: var(--ai-1); box-shadow: var(--shadow); }
.ai-assistant-icon {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--ai-1), var(--ai-2));
    color: #fff; font-size: 15px; font-weight: 700; display: flex;
    align-items: center; justify-content: center;
}
.ai-assistant-text { display: flex; flex-direction: column; line-height: 1.25; }
.ai-assistant-text b { color: var(--text); font-size: 13px; }
.ai-assistant-text i { color: var(--muted); font-size: 11px; font-style: normal; }

/* ---------- 主导航 ---------- */
.main-nav { background: var(--primary); }
.main-nav-in { display: flex; align-items: center; height: 42px; }
.cat-trigger {
    display: flex; align-items: center; gap: 8px;
    background: var(--primary-dark); color: #fff;
    padding: 0 20px; height: 100%; font-size: 15px; cursor: pointer;
    user-select: none;
}
.cat-trigger-icon { font-size: 17px; }
.nav-links { display: flex; align-items: center; height: 100%; }
.nav-links a {
    color: rgba(255, 255, 255, .92); padding: 0 22px; height: 100%;
    display: flex; align-items: center; font-size: 15px;
}
.nav-links a:hover { background: var(--primary-dark); color: #fff; }

/* ---------- 分类下拉 ---------- */
.cat-dropdown {
    background: var(--card); box-shadow: var(--shadow-hover);
    border-bottom: 1px solid var(--line); display: none;
}
.cat-dropdown.open { display: block; }
.cat-dropdown-in {
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 8px; padding: 14px 4px;
}
.cat-col { border-right: 1px dashed var(--line); padding: 4px 14px; }
.cat-col:last-child { border-right: 0; }
.cat-col-title { display: block; font-size: 15px; color: var(--text); margin-bottom: 8px; }
.cat-col-title b { color: var(--primary); }
.cat-col-sub { display: flex; flex-direction: column; gap: 2px; }
.cat-col-sub a { color: var(--muted); font-size: 12px; }
.cat-col-sub a:hover { color: var(--primary); }
.cat-dropdown-foot {
    grid-column: 1 / -1; border-top: 1px solid var(--line);
    padding: 10px 14px 2px; display: flex; gap: 26px; font-size: 13px;
}

/* ---------- Banner ---------- */
.home-banner-row { margin-top: 14px; }
.banner {
    position: relative; height: 320px; border-radius: var(--radius);
    overflow: hidden; background: linear-gradient(120deg, #16305e, #1c4a94 55%, #2368e0);
}
.banner-item {
    position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
    background-size: cover; background-position: center; display: block;
}
.banner-item.active { opacity: 1; }
.banner-fallback-wrap {
    position: absolute; left: 6%; top: 50%; transform: translateY(-50%);
    color: #fff;
}
.banner-fallback-text { display: block; font-size: 34px; font-weight: 700; line-height: 1.3; }
.banner-fallback-sub { display: block; margin-top: 10px; font-size: 15px; color: rgba(255,255,255,.75); letter-spacing: 2px; }
.banner-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.banner-dots .dot {
    width: 22px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.4);
    cursor: pointer;
}
.banner-dots .dot.on { background: var(--accent); }

/* ---------- 区块 ---------- */
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.section-title {
    font-size: 20px; color: var(--text); display: flex; align-items: center; gap: 9px;
}
.section-title i { display: inline-block; width: 5px; height: 20px; border-radius: 3px; background: var(--accent); }
.section-title.ai-title i { background: linear-gradient(180deg, var(--ai-1), var(--ai-2)); }
.section-sub { color: var(--muted); font-size: 13px; }
.section-more { margin-left: auto; color: var(--muted); font-size: 13px; }
.section-more:hover { color: var(--primary); }
.ai-tag { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 4px; }

/* ---------- 商品网格与卡片 ---------- */
.goods-grid {
    display: grid; gap: 14px;
}
.goods-grid-4 { grid-template-columns: repeat(4, 1fr); }
.goods-grid-8 { grid-template-columns: repeat(4, 1fr); }
.goods-grid-list { grid-template-columns: repeat(4, 1fr); }

.goods-card {
    display: flex; flex-direction: column; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: all .18s ease; color: var(--text);
}
.goods-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d6e2ff; }
.goods-card-img {
    position: relative; display: block; aspect-ratio: 1 / 1; background: #f2f5f9;
}
.goods-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.goods-card-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.goods-card-title {
    font-size: 14px; color: var(--text); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 38px;
}
.goods-card-price { color: var(--accent); font-size: 17px; font-weight: 600; }
.goods-card-price em { font-style: normal; font-size: 12px; margin-right: 1px; }
.goods-card-price .face-price { color: var(--muted); font-size: 14px; font-weight: 400; }
.goods-card-meta {
    display: flex; flex-wrap: wrap; gap: 4px 10px;
    color: var(--muted); font-size: 12px;
}
.goods-card-meta i { font-style: normal; }
.goods-card-brand { color: var(--primary); font-size: 12px; }

/* ---------- 优选厂商 ---------- */
.company-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.company-card {
    display: flex; flex-direction: column; gap: 9px;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px; color: var(--text);
    transition: all .18s ease;
}
.company-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.company-card-top { display: flex; align-items: center; gap: 10px; }
.company-card-name { font-weight: 600; font-size: 14px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.company-logo {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #4a8dff);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 600;
}
.company-logo-lg { width: 46px; height: 46px; font-size: 20px; }
.company-logo-xl { width: 64px; height: 64px; font-size: 26px; }
.company-logo-sm { width: 34px; height: 34px; font-size: 15px; }
.company-card-main {
    color: var(--muted); font-size: 12px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    min-height: 36px;
}
.company-card-foot {
    display: flex; justify-content: space-between; align-items: center;
    color: var(--muted); font-size: 12px; border-top: 1px dashed var(--line); padding-top: 9px;
}
.company-main-words {
    color: var(--primary); font-size: 12px; max-width: 55%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- 瀑布区块 ---------- */
.river-block { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px; margin-top: 14px; }
.river-head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.river-title { font-size: 18px; font-weight: 700; color: var(--primary); flex-shrink: 0; }
.river-sub { display: flex; flex-wrap: wrap; gap: 0 14px; }
.river-sub a { color: var(--muted); font-size: 13px; }
.river-sub a:hover { color: var(--primary); }

/* ---------- AI 推荐区 ---------- */
.section-ai {
    border: 1px solid #d9d2f7; border-radius: var(--radius);
    background: linear-gradient(180deg, #f7f5ff, #f2f6ff);
    padding: 16px 16px 18px;
}

/* ---------- 承诺条 ---------- */
.promise-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    margin-top: 26px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 10px;
}
.promise-item { text-align: center; border-right: 1px dashed var(--line); }
.promise-item:last-child { border-right: 0; }
.promise-item b { display: block; color: var(--primary); font-size: 16px; }
.promise-item span { color: var(--muted); font-size: 12px; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 34px; background: #1b2434; color: #93a1b8; }
.footer-top {
    display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 30px;
    padding: 30px 12px 22px;
}
.footer-brand { font-size: 22px; font-weight: 700; color: #fff; }
.footer-brand em { font-style: normal; color: var(--accent); }
.footer-slogan { margin-top: 10px; font-size: 13px; line-height: 1.7; }
.footer-ai { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.footer-col a { display: block; color: #93a1b8; font-size: 13px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid #2c3a52; padding: 16px 12px;
    display: flex; flex-wrap: wrap; gap: 22px; font-size: 12px; color: #73829b;
}
.footer-bottom a { color: #93a1b8; }

/* ---------- 面包屑 ---------- */
.crumbs { padding: 14px 0 10px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumb-sep { margin: 0 7px; color: #c3cbda; }
.crumb-cur { color: var(--text); }

/* ---------- 通用块与空态 ---------- */
.block {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); margin-top: 14px; padding: 16px;
}
.block-head {
    font-size: 16px; font-weight: 600; color: var(--text);
    padding-bottom: 10px; margin-bottom: 12px;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 8px;
}
.empty-tip {
    background: var(--card); border: 1px dashed #d5dce8;
    border-radius: var(--radius); padding: 36px 20px;
    text-align: center; color: var(--muted); font-size: 14px;
}
.empty-tip p + p { margin-top: 8px; }
.empty-tip a { color: var(--primary); }
.empty-page {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 70px 30px; text-align: center; margin-top: 20px;
}
.empty-page-code { font-size: 72px; font-weight: 700; color: #dbe2ee; line-height: 1; }
.empty-page h1 { font-size: 22px; margin: 14px 0 8px; }
.empty-page-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 6px; flex-wrap: wrap; }
.pg {
    min-width: 34px; height: 34px; padding: 0 10px; display: inline-flex;
    align-items: center; justify-content: center; border-radius: var(--radius-sm);
    background: var(--card); border: 1px solid var(--line); color: var(--text); font-size: 13px;
}
.pg:hover { border-color: var(--primary); color: var(--primary); }
.pg.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager-total, .pager-now { color: var(--muted); font-size: 12px; }

/* ---------- 列表工具条 / 排序 ---------- */
.list-toolbar {
    display: flex; align-items: center; gap: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px 14px; margin: 12px 0;
}
.sort-tabs { display: flex; gap: 6px; }
.sort-tab {
    padding: 5px 12px; border-radius: 16px; font-size: 13px; color: var(--text);
    background: #f2f5fa; border: 1px solid transparent;
}
.sort-tab:hover { color: var(--primary); }
.sort-tab.on { background: var(--primary); color: #fff; }

/* ---------- 搜索页 ---------- */
.page-search { display: grid; grid-template-columns: 220px 1fr; gap: 16px; margin-top: 14px; align-items: start; }
.filter-side { display: flex; flex-direction: column; gap: 12px; }
.filter-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.filter-title {
    font-size: 14px; font-weight: 600; padding: 11px 14px;
    border-bottom: 1px solid var(--line); color: var(--text);
}
.filter-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.filter-body-scroll { max-height: 260px; overflow-y: auto; }
.filter-link { display: block; padding: 5px 8px; border-radius: 5px; font-size: 13px; color: var(--muted); }
.filter-link:hover { color: var(--primary); background: var(--primary-light); }
.filter-link.on { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.price-form { padding: 12px 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.price-input {
    width: 76px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 6px 8px; outline: none; flex: 1; min-width: 60px;
}
.price-input:focus { border-color: var(--primary); }
.price-sep { color: var(--muted); }
.ai-side-box {
    background: linear-gradient(150deg, #f2efff, #eaf3ff);
    border: 1px dashed #c9bfe8; border-radius: var(--radius);
    padding: 16px 14px; text-align: center;
}
.ai-side-badge {
    width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 10px;
    background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); color: #fff;
    font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.ai-side-box b { font-size: 14px; }
.ai-side-box p { color: var(--muted); font-size: 12px; margin: 6px 0 12px; }
.aj-link { font-size: 12px; color: var(--ai-1); }

.list-panel { min-width: 0; }
.list-head { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 2px; }
.list-title { font-size: 17px; font-weight: 600; }
.list-title b { color: var(--primary); }
.list-count { color: var(--muted); font-size: 13px; }
.list-count b { color: var(--accent); font-size: 15px; }

.ai-result-panel {
    margin-top: 14px; background: linear-gradient(135deg, #f7f5ff, #f2f6ff);
    border: 1px solid #d9d2f7; border-radius: var(--radius); padding: 16px;
}
.ai-result-head { font-weight: 600; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.empty-hot-line { margin-top: 10px; }
.empty-hot {
    display: inline-block; background: #eef2f9; color: var(--text);
    border-radius: 14px; padding: 3px 12px; margin: 0 4px 6px 0; font-size: 12px;
}
.empty-hot:hover { background: var(--primary-light); color: var(--primary); }

/* ---------- 分类页 ---------- */
.page-category { margin-top: 4px; }
.cat-header {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px;
}
.cat-header-title { display: flex; align-items: baseline; gap: 16px; }
.cat-header-title h1 { font-size: 22px; }
.cat-icon { font-size: 20px; }
.cat-sub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cat-sub-tab {
    padding: 5px 14px; border-radius: 16px; font-size: 13px; color: var(--text);
    background: #f2f5fa; border: 1px solid transparent;
}
.cat-sub-tab.on { background: var(--primary-light); color: var(--primary); border-color: #cddfff; font-weight: 600; }
.cat-toolbar {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 11px 16px; margin: 12px 0;
}
.cat-filter-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.f-item { display: flex; align-items: center; gap: 6px; }
.f-label { color: var(--muted); font-size: 13px; }
.f-select {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 6px 8px; background: #fff; outline: none; color: var(--text);
}
.f-select:focus { border-color: var(--primary); }
.f-input {
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 6px 10px; outline: none; background: #fff; width: 150px;
}
.f-input:focus { border-color: var(--primary); }
.f-input.f-price { width: 92px; }
.f-sep { color: var(--muted); }

/* ---------- 产品详情 ---------- */
.page-goods { margin-top: 2px; }
.goods-detail {
    display: grid; grid-template-columns: 360px 1fr 270px; gap: 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.goods-main-img {
    position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line);
    border-radius: var(--radius); background: #f2f5f9; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.goods-main-img img { width: 100%; height: 100%; object-fit: contain; }
.goods-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumb {
    width: 60px; height: 60px; border: 2px solid var(--line); border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer; display: block;
}
.thumb.on { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.goods-info { display: flex; flex-direction: column; gap: 12px; }
.goods-name { font-size: 21px; line-height: 1.4; }
.goods-subtitle { color: var(--muted); font-size: 14px; }
.goods-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
    display: inline-flex; align-items: baseline; gap: 6px;
    background: #f4f6fa; border-radius: 5px; padding: 3px 10px; font-size: 13px; color: var(--text);
}
.tag i { color: var(--muted); font-style: normal; font-size: 12px; }
.goods-price-box {
    background: #fff8f2; border: 1px solid #ffe4c9; border-radius: var(--radius);
    padding: 14px 16px;
}
.goods-price-box.price-inquiry { background: #f7f5ff; border-color: #ddd4f7; }
.goods-price { display: flex; align-items: baseline; gap: 10px; }
.gp-label { color: var(--muted); font-size: 13px; }
.gp-value { color: var(--accent); font-size: 26px; font-weight: 700; }
.gp-value em { font-style: normal; font-size: 15px; }
.gp-value.inquiry { color: var(--ai-1); font-size: 20px; }
.gp-value.face-price { color: var(--muted); font-size: 18px; }
.gp-tip { color: var(--muted); font-size: 12px; margin-top: 6px; }
.gp-actions { display: flex; gap: 12px; margin-top: 14px; }

.goods-meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px;
    border-top: 1px dashed var(--line); padding-top: 12px;
}
.gm-item dt { color: var(--muted); font-size: 12px; }
.gm-item dd { font-size: 13px; }

.goods-seller {
    border-left: 1px dashed var(--line); padding-left: 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.seller-name { display: flex; align-items: center; gap: 10px; color: var(--text); }
.seller-name b { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.seller-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.seller-info li { display: flex; gap: 8px; font-size: 13px; padding: 4px 0; }
.seller-info i { color: var(--muted); font-style: normal; flex-shrink: 0; }
.seller-empty { display: flex; flex-direction: column; gap: 8px; }

.ai-intro-block { border-color: #d9d2f7; background: linear-gradient(180deg, #faf8ff, #fff); }
.ai-intro-text { font-size: 14px; line-height: 1.8; }
.ai-intro-tip { margin-top: 8px; font-size: 12px; }

.goods-detail-bottom { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.goods-detail-html { font-size: 14px; line-height: 1.9; word-break: break-word; }
.goods-detail-html img { max-width: 100%; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th, .spec-table td {
    border: 1px solid var(--line); padding: 8px 12px; text-align: left;
}
.spec-table th { background: #f6f8fb; color: var(--muted); font-weight: 400; width: 200px; }
.muted a { color: var(--primary); }

.related-list li { border-bottom: 1px dashed var(--line); padding: 8px 0; }
.related-list li:last-child { border-bottom: 0; }
.related-list a { display: flex; gap: 10px; color: var(--text); align-items: center; }
.related-list img {
    width: 52px; height: 52px; border-radius: var(--radius-sm);
    object-fit: cover; background: #f2f5f9; flex-shrink: 0; border: 1px solid var(--line);
}
.rl-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rl-body b {
    font-size: 13px; font-weight: 400; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rl-price { color: var(--accent); font-size: 14px; font-weight: 600; font-style: normal; }

/* ---------- 询价/表单弹窗 ---------- */
.inquiry-form h3 { font-size: 16px; margin-bottom: 4px; }
.inquiry-product { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.iform-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.iform-row > span { width: 64px; color: var(--muted); font-size: 13px; flex-shrink: 0; text-align: right; }
.iform-input {
    flex: 1; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 8px 12px; outline: none; background: #fff; min-width: 0;
}
.iform-input:focus { border-color: var(--primary); }
.iform-code-row { flex: 1; display: flex; gap: 8px; min-width: 0; }
.iform-code-row .iform-input { max-width: 140px; }
.iform-actions { margin-top: 4px; }
.iform-optional > span:first-child { opacity: .8; }

/* ---------- 模态框 / Toast ---------- */
.modal-mask {
    position: fixed; inset: 0; background: rgba(15, 23, 42, .55);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modal {
    background: #fff; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: 460px; max-width: calc(100vw - 32px); max-height: 86vh;
    overflow-y: auto; position: relative; padding: 22px;
}
.modal-close {
    position: absolute; top: 8px; right: 8px; width: 32px; height: 32px;
    border: 0; background: #f1f3f7; color: var(--muted); border-radius: 50%;
    font-size: 18px; line-height: 1;
}
.modal-close:hover { background: #e4e9f2; color: var(--text); }
.toast {
    position: fixed; top: 70px; left: 50%; transform: translateX(-50%);
    background: rgba(20, 28, 44, .92); color: #fff; border-radius: 8px;
    padding: 10px 22px; font-size: 14px; z-index: 1200; white-space: nowrap; max-width: 80vw;
}

/* AI 助手面板 */
.ai-panel .ai-panel-head { text-align: center; margin-bottom: 14px; }
.ai-panel-badge {
    display: inline-block; width: 40px; height: 40px; line-height: 40px;
    border-radius: 10px; background: linear-gradient(135deg, var(--ai-1), var(--ai-2));
    color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 8px;
}
.ai-panel h3 { font-size: 17px; }
.ai-panel-input {
    width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px; outline: none; resize: vertical; font-size: 14px;
}
.ai-panel-input:focus { border-color: var(--ai-1); }
.ai-panel-actions { display: flex; gap: 10px; margin-top: 12px; }
.ai-panel-actions .btn { flex: 1; }

/* ---------- 企业库 ---------- */
.page-company { margin-top: 14px; }
.page-title-row { display: flex; align-items: center; gap: 16px; margin: 6px 0 14px; flex-wrap: wrap; }
.page-title-row h1 { font-size: 21px; }
.page-title-sub { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 8px; }
.company-search-form { display: flex; gap: 8px; margin-left: auto; }
.company-filter-bar {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 10px 16px; margin-bottom: 12px;
}
.idustry-tabs, .industry-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.industry-tab {
    padding: 6px 14px; border-radius: 16px; font-size: 13px;
    background: var(--card); border: 1px solid var(--line); color: var(--text);
}
.industry-tab.on { background: var(--primary); color: #fff; border-color: var(--primary); }

.company-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.company-box {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 15px 16px; color: var(--text); transition: all .18s ease;
}
.company-box:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.company-box-head { display: flex; align-items: center; gap: 12px; }
.company-box-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.company-box-name b {
    font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.company-box-name i { color: var(--muted); font-size: 12px; font-style: normal; }
.company-box-main {
    color: var(--muted); font-size: 13px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.company-box-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-top: 1px dashed var(--line); padding-top: 9px; }
.tag-sm {
    display: inline-block; background: #f2f5fa; color: var(--muted);
    border-radius: 4px; padding: 1px 8px; font-size: 12px;
}
.tag-sm-deadline { background: #fff3e8; color: var(--accent); }
.tag-sm-more { margin-left: auto; color: var(--primary); background: var(--primary-light); }

/* ---------- 公司主页 ---------- */
.company-profile {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; margin-top: 4px;
}
.company-profile-mid { flex: 1; min-width: 0; }
.cp-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cp-title h1 { font-size: 21px; }
.cp-main { margin-top: 10px; font-size: 14px; }
.cp-main i { color: var(--muted); font-style: normal; }
.cp-company-meta {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px;
    margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line);
}
.cp-company-meta li { font-size: 13px; }
.cp-company-meta i { color: var(--muted); font-style: normal; margin-right: 6px; }
.company-profile-side {
    width: 190px; flex-shrink: 0; border-left: 1px dashed var(--line);
    padding-left: 18px;
}
.cp-contact-name { font-size: 16px; font-weight: 600; margin: 4px 0; }
.cp-contact-phone { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.company-show-cols { display: grid; grid-template-columns: 1fr 300px; gap: 16px; align-items: start; }
.rich-text { font-size: 14px; line-height: 1.9; word-break: break-word; }
.rich-text img { max-width: 100%; }
.scope-text { font-size: 13px; color: var(--text); line-height: 1.9; text-align: justify; }
.contact-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.contact-table th, .contact-table td {
    border: 1px solid var(--line); padding: 8px 12px; text-align: left;
}
.contact-table th { background: #f6f8fb; color: var(--muted); font-weight: 400; width: 110px; }

/* ---------- 求购大厅 ---------- */
.page-buy { margin-top: 6px; }
.buy-filter-bar {
    display: flex; align-items: center; gap: 14px; justify-content: space-between; flex-wrap: wrap;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 16px; margin-bottom: 12px;
}
.buy-filter-form { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.buy-list { display: flex; flex-direction: column; gap: 12px; }
.buy-item {
    display: flex; justify-content: space-between; gap: 18px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 18px; color: var(--text); transition: all .15s ease;
}
.buy-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.buy-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.buy-item-title { font-size: 16px; font-weight: 600; }
.buy-item-title:hover { color: var(--primary); }
.buy-item-desc {
    color: var(--muted); font-size: 13px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.buy-item-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.buy-item-side { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; gap: 6px; }
.buy-item-budget b { color: var(--accent); font-size: 17px; font-weight: 700; }
.buy-item-region { color: var(--muted); font-size: 12px; }

/* 求购详情 */
.buy-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.buy-head h1 { font-size: 20px; flex: 1; }
.buy-meta-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    background: #f8f9fc; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 12px;
}
.bm-item dt { color: var(--muted); font-size: 12px; }
.bm-item dd { font-size: 14px; margin-top: 2px; }
.bm-price { color: var(--accent); font-weight: 700; }
.buy-content { padding: 10px 0 8px; }
.buy-show-cols { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }

.ai-match-block { border-color: #d9d2f7; background: linear-gradient(180deg, #faf8ff, #fff); }
.ai-match-list { display: flex; flex-direction: column; }
.ai-match-item {
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px dashed var(--line); padding: 10px 2px; color: var(--text);
}
.ai-match-item:last-child { border-bottom: 0; }
.ai-match-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ai-match-body b { font-size: 14px; }
.ai-match-body i { color: var(--muted); font-size: 12px; font-style: normal;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-match-go { color: var(--primary); font-size: 13px; }
.ai-match-tip { margin-top: 8px; font-size: 12px; }
.buy-show-side .block:first-child { margin-top: 0; }

/* ---------- 资讯 ---------- */
.page-news { margin-top: 14px; }
.news-channels { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.news-channel {
    padding: 7px 18px; border-radius: 18px; background: var(--card);
    border: 1px solid var(--line); color: var(--text); font-size: 14px;
}
.news-channel.on { background: var(--primary); color: #fff; border-color: var(--primary); }
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item {
    display: flex; gap: 16px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; color: var(--text); transition: all .15s ease;
}
.news-item:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.news-item-img {
    width: 150px; height: 90px; border-radius: var(--radius-sm); flex-shrink: 0;
    overflow: hidden; background: #eef1f6;
}
.news-item-img img { width: 100%; height: 100%; object-fit: cover; }
.news-item-img-fallback {
    display: flex; align-items: center; justify-content: center;
    color: #b7c1d0; font-size: 15px; letter-spacing: 4px;
}
.news-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.news-item-title { font-size: 16px; font-weight: 600; }
.news-item-title .badge { margin-left: 6px; vertical-align: 2px; }
.news-item-summary {
    color: var(--muted); font-size: 13px; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item-meta { display: flex; gap: 16px; color: #b0bac9; font-size: 12px; }
.news-item-meta i { font-style: normal; }

.news-article {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 26px; max-width: 820px; margin: 0 auto;
}
.news-article-title { font-size: 22px; line-height: 1.45; }
.news-article-title .badge { margin-left: 8px; vertical-align: 3px; }
.news-article-meta {
    display: flex; flex-wrap: wrap; gap: 18px; color: #b0bac9;
    font-size: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); margin: 10px 0 14px;
}
.news-article-summary {
    background: #f7f9fd; border-left: 3px solid var(--primary);
    padding: 10px 14px; color: var(--muted); font-size: 13px; margin-bottom: 14px;
}
.news-article-content { font-size: 15px; line-height: 2; word-break: break-word; }
.news-article-content img { max-width: 100%; }
.ai-article-tip { margin-top: 14px; font-size: 12px; }
.news-footer-actions { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }

/* ---------- 登录/注册/中心 ---------- */
.auth-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    max-width: 420px; margin: 40px auto; padding: 30px 34px;
}
.auth-title { font-size: 22px; text-align: center; }
.auth-sub { text-align: center; color: var(--muted); font-size: 13px; margin: 8px 0 22px; }
.auth-form .iform-row > span { width: 74px; }
.auth-error {
    background: #fdf0f0; color: var(--danger); border-radius: var(--radius-sm);
    padding: 8px 12px; font-size: 13px; margin-bottom: 12px;
}
.auth-alt { text-align: center; margin-top: 16px; font-size: 13px; }
.auth-note { text-align: center; margin-top: 10px; font-size: 12px; }

.page-center { margin-top: 18px; }
.center-card {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    max-width: 860px; margin: 0 auto; padding: 28px 30px;
}
.center-head { display: flex; align-items: center; gap: 16px; }
.center-avatar {
    width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary), #4a8dff); color: #fff;
    font-size: 26px; display: flex; align-items: center; justify-content: center;
}
.center-identity h1 { font-size: 20px; }
.center-meta {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 30px;
    background: #f8f9fc; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 20px; margin: 20px 0;
}
.cm-item { display: flex; gap: 10px; font-size: 13px; padding: 5px 0; }
.cm-item dt { color: var(--muted); }
.center-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 14px; }
.center-action {
    display: flex; flex-direction: column; gap: 2px;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px 16px; color: var(--text); transition: all .15s;
}
.center-action:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.center-action b { font-size: 15px; color: var(--primary); }
.center-action i { color: var(--muted); font-size: 12px; font-style: normal; }

/* ---------- AI 助手页 ---------- */
.assistant-hero {
    max-width: 780px; margin: 34px auto 0; text-align: center;
    background: linear-gradient(160deg, #f6f3ff, #eef4ff);
    border: 1px solid #dcd4f8; border-radius: 16px; padding: 44px 40px;
}
.assistant-hero-title { font-size: 30px; margin: 12px 0 8px; }
.assistant-hero-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.assistant-input-row { display: flex; gap: 10px; }
.assistant-input-row textarea {
    flex: 1; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 14px; outline: none; font-size: 14px; resize: vertical; background: #fff;
}
.assistant-input-row textarea:focus { border-color: var(--ai-1); }
.assistant-status { margin-top: 12px; font-size: 12px; }
.assistant-features {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px;
    text-align: left;
}
.af-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 14px;
}
.af-item b { display: block; color: var(--ai-1); font-size: 14px; margin-bottom: 4px; }
.af-item span { color: var(--muted); font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
    .goods-grid-8, .goods-grid-list { grid-template-columns: repeat(3, 1fr); }
    .company-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .goods-detail { grid-template-columns: 300px 1fr; }
    .goods-seller { border-left: 0; border-top: 1px dashed var(--line); padding-left: 0; padding-top: 14px; grid-column: 1 / -1; }
    .company-profile { flex-wrap: wrap; }
    .company-profile-side { width: 100%; border-left: 0; border-top: 1px dashed var(--line); padding-left: 0; padding-top: 14px; }
    .buy-show-cols, .company-show-cols, .goods-detail-bottom { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .header-main { flex-wrap: wrap; gap: 14px; }
    .global-search { order: 3; max-width: 100%; flex-basis: 100%; }
    .goods-grid-4, .goods-grid-8, .goods-grid-list { grid-template-columns: repeat(2, 1fr); }
    .company-strip { grid-template-columns: repeat(2, 1fr); }
    .company-grid { grid-template-columns: 1fr; }
    .promise-bar { grid-template-columns: repeat(2, 1fr); }
    .page-search { grid-template-columns: 1fr; }
    .ai-assistant-entry { display: none; }
    .company-search-form { margin-left: 0; }
}
@media (max-width: 480px) {
    .goods-grid-4, .goods-grid-8, .goods-grid-list { grid-template-columns: repeat(2, 1fr); }
    .goods-card-title { font-size: 13px; }
}

/* ---------- AI 采购助手对话（A4） ---------- */
.assistant-examples {
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 8px; margin: 0 auto 20px; max-width: 760px;
}
.assistant-examples-label { font-size: 12px; color: var(--muted); margin-right: 2px; }
.assistant-example-chip {
    border: 1px solid #dcd4f8; background: #fff; color: var(--ai-1);
    border-radius: 20px; padding: 6px 14px; font-size: 12px; line-height: 1.5;
    max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transition: all .15s ease;
}
.assistant-example-chip:hover {
    border-color: var(--ai-1); background: #f6f3ff; box-shadow: var(--shadow);
}
.assistant-degraded {
    background: #fff7e8; border: 1px solid #ffdfb0; color: #8a5a00;
    border-radius: var(--radius); padding: 10px 14px; font-size: 13px;
    margin-bottom: 16px; text-align: left;
}
.assistant-degraded b { color: #b26a00; }

/* 对话面板 */
.assistant-chat {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); overflow: hidden; text-align: left;
}
.chat-messages {
    max-height: 560px; overflow-y: auto; padding: 18px 18px 4px;
    background: linear-gradient(#fbfcff, #fff);
}
.chat-msg { display: flex; gap: 10px; margin-bottom: 16px; align-items: flex-start; }
.chat-msg-user { flex-direction: row-reverse; }
.chat-avatar {
    width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff;
}
.chat-avatar-ai { background: linear-gradient(135deg, var(--ai-1), var(--ai-2)); }
.chat-avatar-user { background: #dbe6f8; color: var(--primary); }
.chat-bubble {
    max-width: 82%; background: #f4f6fb; border: 1px solid #edf1f7;
    border-radius: 2px 12px 12px 12px; padding: 10px 14px;
    line-height: 1.75; font-size: 14px; color: var(--text);
    word-break: break-word; min-width: 0;
}
.chat-msg-user .chat-bubble {
    background: linear-gradient(135deg, var(--ai-1), var(--ai-2));
    border: 0; color: #fff; border-radius: 12px 2px 12px 12px;
}

/* 加载动画 */
.chat-typing .chat-bubble { background: #f4f6fb; }
.chat-typing .dot {
    display: inline-block; width: 6px; height: 6px; border-radius: 50%;
    background: var(--ai-1); margin-right: 5px; vertical-align: middle;
    animation: chat-bounce 1.2s infinite ease-in-out;
}
.chat-typing .dot:nth-child(2) { animation-delay: .16s; }
.chat-typing .dot:nth-child(3) { animation-delay: .32s; }
.chat-typing em { font-style: normal; color: var(--muted); font-size: 12px; margin-left: 4px; }
@keyframes chat-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .55; }
    30% { transform: translateY(-4px); opacity: 1; }
}

/* 错误气泡 */
.chat-msg-error .chat-bubble {
    background: #fdf0f0; border: 1px solid #f6d5d6; color: var(--danger);
}
.chat-error-title { font-weight: 600; }
.chat-error-text { font-size: 13px; opacity: .9; }

/* AI 回复：总结 / 提示 */
.chat-reply-summary {
    font-size: 14px; font-weight: 600; color: var(--text);
    background: #f6f3ff; border-left: 3px solid var(--ai-1);
    border-radius: 0 8px 8px 0; padding: 8px 12px; margin-bottom: 10px;
}
.chat-reply-note { font-size: 12px; color: var(--muted); margin: 6px 0; }

/* 需求解析卡片 */
.req-card {
    border: 1px solid #e3e9f4; background: #f9fbff; border-radius: 10px;
    padding: 12px 14px; margin: 10px 0;
}
.req-card-title {
    font-size: 13px; font-weight: 600; color: var(--ai-1);
    margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.req-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}
.req-item {
    background: #fff; border: 1px solid var(--line); border-radius: 8px;
    padding: 7px 10px; display: flex; flex-direction: column; gap: 2px;
}
.req-k { font-size: 11px; color: var(--muted); }
.req-v { font-size: 13px; font-weight: 500; word-break: break-all; }

/* 推荐列表 */
.rec-section { margin-top: 12px; }
.rec-section-title {
    font-size: 13px; font-weight: 600; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.rec-section-title em {
    font-style: normal; font-weight: 400; color: var(--muted); font-size: 12px;
}
.rec-list { display: flex; flex-direction: column; gap: 8px; }
.rec-item {
    display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
    border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
    background: #fff; color: var(--text); transition: all .15s ease;
}
.rec-item:hover { border-color: var(--ai-1); box-shadow: var(--shadow); color: var(--text); }
.rec-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.rec-name { font-size: 14px; font-weight: 600; color: var(--text); word-break: break-all; }
.rec-desc {
    font-size: 12px; color: var(--muted); line-height: 1.6;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.rec-desc.muted { color: #b6becb; }
.rec-reason { font-size: 12px; color: var(--ai-1); }
.rec-side {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 4px; flex: 0 0 auto; font-size: 12px; color: var(--muted);
}
.rec-region { color: var(--muted); }
.rec-price { font-size: 17px; font-weight: 600; color: var(--accent); line-height: 1.2; }
.rec-price.is-face { font-size: 13px; font-weight: 400; color: var(--muted); }
.rec-go { color: var(--primary); font-size: 12px; white-space: nowrap; }

/* 空态 */
.chat-empty {
    background: #f7f9fd; border: 1px dashed var(--line); border-radius: 10px;
    padding: 12px 14px; color: var(--muted); font-size: 13px; margin-top: 10px;
    line-height: 1.7;
}

/* 输入区 */
.chat-input-bar {
    display: flex; gap: 10px; align-items: flex-end;
    padding: 12px 14px; border-top: 1px solid var(--line); background: #fff;
}
.chat-input-bar textarea {
    flex: 1; border: 1px solid var(--line); border-radius: 10px;
    padding: 10px 12px; resize: none; min-height: 48px; max-height: 120px;
    outline: none; line-height: 1.6; font-size: 14px; background: #fff;
}
.chat-input-bar textarea:focus { border-color: var(--ai-1); box-shadow: 0 0 0 3px rgba(106, 92, 255, .12); }
.chat-send-btn { flex: 0 0 auto; height: 48px; padding: 0 26px; border-radius: 10px; }
.chat-send-btn:disabled { opacity: .6; cursor: not-allowed; filter: none; }
.chat-input-tip {
    margin: 0; padding: 0 16px 12px; font-size: 12px; color: var(--muted); text-align: left;
}

/* AI 助手对话 移动端 */
@media (max-width: 720px) {
    .assistant-hero { padding: 26px 18px; }
    .assistant-example-chip { white-space: normal; max-width: 100%; }
    .chat-messages { max-height: 62vh; padding: 14px 12px 4px; }
    .chat-bubble { max-width: 88%; }
    .chat-input-bar { padding: 10px; }
    .chat-send-btn { height: 44px; padding: 0 18px; }
    .req-grid { grid-template-columns: repeat(2, 1fr); }
    .rec-item { flex-direction: column; gap: 6px; }
    .rec-side { flex-direction: row; align-items: center; gap: 10px; }
}
/* =====================================================================
   品牌库（/brand 品牌墙 + /brand/{id}.html 品牌详情）
   ===================================================================== */
.page-brand { margin-top: 14px; }
.brand-search-form { display: flex; gap: 8px; margin-left: auto; }
.brand-search-form .f-input { width: 320px; }

/* 五大类筛选 Tab */
.brand-tabs {
    display: flex; flex-wrap: wrap; gap: 8px;
    border-bottom: 1px solid var(--line); padding-bottom: 12px; margin: 2px 0 14px;
}
.brand-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border: 1px solid var(--line); border-radius: 20px;
    background: var(--card); color: var(--text); font-size: 13px; transition: all .15s;
}
.brand-tab em { font-style: normal; font-size: 12px; color: var(--muted); }
.brand-tab:hover { border-color: var(--primary); color: var(--primary); }
.brand-tab.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.brand-tab.on em { color: #d8e6ff; }
.brand-filter-note {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--card); border: 1px dashed #d5dce8; border-radius: var(--radius);
    padding: 10px 14px; font-size: 13px; color: var(--muted); margin-bottom: 12px;
}
.brand-filter-note b { color: var(--text); }
.brand-filter-note .btn { margin-left: auto; }

/* 品牌墙 */
.brand-wall {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px; margin: 4px 0 8px;
}
.brand-card {
    display: flex; align-items: center; gap: 12px; min-width: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 12px 14px; color: var(--text); transition: all .15s ease;
}
.brand-card:hover {
    border-color: var(--primary); box-shadow: var(--shadow-hover); color: var(--text);
    transform: translateY(-1px);
}
.brand-logo {
    position: relative; width: 62px; height: 62px; flex-shrink: 0;
    border-radius: 10px; overflow: hidden; background: #f7f9fc; border: 1px solid #eef2f8;
    display: flex; align-items: center; justify-content: center;
}
.brand-logo img {
    position: relative; z-index: 1; max-width: 52px; max-height: 52px;
    width: auto; height: auto; object-fit: contain; background: #fff;
}
.brand-initial {
    position: absolute; inset: 0; z-index: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 600; color: var(--primary);
    background: linear-gradient(135deg, #eef4ff, #f7fbff);
}
.brand-card-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.brand-card-name {
    font-size: 14px; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand-card-en {
    font-style: normal; font-size: 11px; color: var(--muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand-card-cat {
    margin-top: 2px; align-self: flex-start; font-size: 11px; color: var(--primary);
    background: var(--primary-light); border-radius: 3px; padding: 0 6px;
}

/* 品牌详情档案卡 */
.page-brand-show { margin-top: 6px; }
.brand-profile {
    display: flex; gap: 22px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 22px 24px; margin-top: 6px;
}
.brand-logo-xl { width: 110px; height: 110px; border-radius: 14px; }
.brand-logo-xl img { max-width: 88px; max-height: 88px; }
.brand-logo-xl .brand-initial { font-size: 46px; }
.brand-profile-mid { flex: 1; min-width: 0; }
.bp-title { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.bp-title h1 { font-size: 25px; }
.badge-en { background: #f1f3f7; color: #5b6472; font-size: 12px; }
.bp-desc { margin-top: 10px; color: #4a5361; font-size: 14px; line-height: 1.8; }
.bp-meta {
    margin-top: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 26px; font-size: 13px;
}
.bp-meta li { display: flex; gap: 10px; min-width: 0; }
.bp-meta i { font-style: normal; color: var(--muted); flex-shrink: 0; width: 58px; }
.bp-meta span, .bp-meta a { overflow-wrap: anywhere; }
.brand-profile-side {
    width: 220px; flex-shrink: 0; text-align: center;
    border-left: 1px dashed var(--line); padding-left: 20px;
}
.bp-count { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.bp-count b { font-size: 30px; color: var(--primary); }
.brand-products .goods-grid { margin-top: 2px; }
.brand-same .brand-wall { margin-bottom: 0; }

/* 产品详情品牌徽章链接 */
.tag-brand { color: var(--primary); background: #f2f7ff; border: 1px solid #bcd3ff; }
.tag-brand:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.tag-brand:hover i { color: #eaf1ff; }

@media (max-width: 900px) {
    .brand-profile { flex-wrap: wrap; }
    .brand-profile-side {
        width: 100%; border-left: 0; border-top: 1px dashed var(--line);
        padding-left: 0; padding-top: 14px;
    }
    .bp-meta { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .brand-search-form { margin-left: 0; width: 100%; }
    .brand-search-form .f-input { flex: 1; width: auto; }
    .brand-wall { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .brand-profile { padding: 16px; }
}

/* =====================================================================
   多语言（i18n）与响应式断点体系（任务追加，不删除既有规则；覆盖噪声断点）
   断点：≥1440 超大屏 / 1200-1439 大屏 / 992-1199 中屏 / 768-991 平板竖 /
         576-767 手机横 / <576 小屏手机
   ===================================================================== */

/* ---------- 语言切换器（顶栏） ---------- */
.lang-switch{position:relative;display:inline-block;margin-left:6px}
.lang-switch>summary{list-style:none;cursor:pointer;color:#c3cfe0;display:inline-flex;align-items:center;gap:4px;font-size:12px;padding:2px 6px;border-radius:4px;min-height:24px}
.lang-switch>summary:hover,.lang-switch[open]>summary{color:#fff;background:rgba(255,255,255,.08)}
.lang-switch>summary::-webkit-details-marker{display:none}
.lang-globe{font-size:12px;line-height:1}
.lang-caret{font-style:normal;font-size:9px;color:#7f8ea9;transition:transform .15s}
.lang-switch[open] .lang-caret{transform:rotate(180deg)}
.lang-menu{display:grid;grid-template-columns:repeat(2,minmax(124px,1fr));gap:2px;max-height:70vh;overflow-y:auto;
    position:absolute;right:-4px;top:30px;z-index:95;min-width:300px;padding:6px;
    background:#fff;border:1px solid #e4e8ef;border-radius:8px;box-shadow:0 12px 30px rgba(15,23,42,.18)}
.lang-menu a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;border-radius:5px;color:#333;font-size:13px;text-decoration:none;white-space:nowrap}
.lang-menu a:hover{background:#f0f5ff;text-decoration:none}
.lang-menu a.on{background:#eaf1ff;color:#0a5cd6;font-weight:600}
.lang-menu-code{color:#a0aabb;font-size:11px}
[dir="rtl"] .lang-menu{right:auto;left:-4px}

/* ---------- 移动端导航汉堡按钮 ---------- */
.nav-toggle{display:none;background:transparent;border:0;color:#fff;width:44px;height:44px;align-items:center;justify-content:center;flex-shrink:0;padding:0;cursor:pointer}
.nav-toggle-bars,.nav-toggle-bars::before,.nav-toggle-bars::after{content:"";display:block;width:20px;height:2px;background:#fff;border-radius:2px;position:absolute;left:0}
.nav-toggle-bars{position:relative;top:0}
.nav-toggle-bars::before{top:-6px}
.nav-toggle-bars::after{top:6px}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars{background:transparent}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before{top:0;transform:rotate(45deg)}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after{top:0;transform:rotate(-45deg)}

/* ---------- 筛选抽屉（搜索页平板以下） ---------- */
.filter-toggle{display:none;align-items:center;gap:6px;border:1px solid var(--line);background:var(--card);color:var(--text);border-radius:8px;padding:9px 16px;font-size:14px;min-height:42px;margin-bottom:4px;width:100%;justify-content:center}
[dir="rtl"] .filter-toggle{justify-content:center}

/* ---------- 表格横向滚动容器 ---------- */
.table-scroll{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.table-scroll table{min-width:520px}

/* ---------- 产品详情富文本：中文阅读习惯段落首行缩进（协调任务追加） ---------- */
.goods-detail-html p{text-indent:2em;line-height:1.85;margin:0 0 10px}
.goods-detail-html ul,.goods-detail-html ol,.goods-detail-html table,.goods-detail-html blockquote,
.goods-detail-html img,.goods-detail-html figure,.goods-detail-html pre,.goods-detail-html h1,
.goods-detail-html h2,.goods-detail-html h3,.goods-detail-html h4,
.goods-detail-html .table-scroll{text-indent:0}
@media (max-width:575px){
    .goods-detail-html p{line-height:1.75;margin:0 0 7px}
}

/* ---------- 超大屏 ≥1440 ---------- */
@media (min-width:1440px){
    .container{max-width:1400px}
    .banner{height:360px}
    .goods-grid{gap:18px}
    .company-strip{gap:18px}
    .footer-top{gap:36px}
}

/* ---------- 中屏及以下 fallback（1200-1439 保持默认 1200 容器） ---------- */
@media (max-width:1199px){
    .goods-grid-4,.goods-grid-8,.goods-grid-list{grid-template-columns:repeat(3,1fr)}
    .company-strip{grid-template-columns:repeat(3,1fr)}
    .cat-dropdown-in{grid-template-columns:repeat(3,1fr)}
    .footer-top{grid-template-columns:repeat(2,1fr);gap:22px 30px}
    .nav-links{overflow-x:auto;scrollbar-width:none}
    .nav-links::-webkit-scrollbar{display:none}
    .nav-links a{flex-shrink:0}
    .goods-detail{grid-template-columns:320px 1fr}
    .goods-seller{grid-column:1/-1;border-left:0;border-top:1px dashed var(--line);padding-left:0;padding-top:14px}
}

/* ---------- 平板竖 768-991 ---------- */
@media (max-width:991px){
    html,body{overflow-x:hidden;max-width:100%}
    .container{max-width:100%}
    .goods-grid-4,.goods-grid-8,.goods-grid-list{grid-template-columns:repeat(2,1fr)}
    .company-strip{grid-template-columns:repeat(2,1fr)}
    .cat-dropdown-in{grid-template-columns:repeat(2,1fr)}
    .promise-bar{grid-template-columns:repeat(2,1fr)}
    .page-search{grid-template-columns:1fr}
    .filter-toggle{display:inline-flex}
    .page-search .filter-side{display:none}
    .page-search.filters-open .filter-side{display:flex}
    .company-grid{grid-template-columns:1fr}
    .topbar-welcome{display:none}
    .topbar-in{height:auto;min-height:40px;flex-wrap:wrap;padding-top:4px;padding-bottom:4px;gap:2px 6px}
    .topbar-right{flex-wrap:wrap;row-gap:4px}
    .topbar-link{display:inline-flex;align-items:center;min-height:40px}
    .lang-switch>summary,.site-switch-cur{min-height:40px}
    .lang-menu a{min-height:40px}
    .header-main{flex-wrap:wrap;gap:14px}
    .global-search{order:3;max-width:100%;flex-basis:100%}
    .ai-assistant-entry{display:none}
    .main-nav{position:relative}
    .nav-toggle{display:flex}
    .nav-links{display:none;position:absolute;left:0;right:0;top:100%;z-index:70;background:var(--primary);
        flex-direction:column;align-items:stretch;height:auto;max-height:calc(100vh - 60px);overflow-y:auto;
        box-shadow:0 12px 28px rgba(15,23,42,.22);padding:6px 0}
    .nav-links.open{display:flex}
    .nav-links a{height:auto;min-height:44px;padding:0 20px;border-top:1px solid rgba(255,255,255,.12);justify-content:flex-start}
    .cat-trigger{padding:0 14px;font-size:14px}
    .banner{height:260px}
    .section-title{font-size:18px}
    .goods-detail{grid-template-columns:300px 1fr}
    .btn,.pg,.sort-tab,.filter-link,.industry-tab,.news-channel,.cat-sub-tab,.brand-tab,
    .company-search-form .btn,.brand-search-form .btn,.gs-btn{min-height:40px}
    .company-search-form,.brand-search-form{width:100%;margin-left:0}
    .company-search-form .f-input,.brand-search-form .f-input{flex:1;width:auto}
}

/* ---------- 手机横/大屏手机 576-767 ---------- */
@media (max-width:767px){
    .goods-detail{grid-template-columns:1fr}
    .goods-seller{grid-column:1/-1}
    .goods-name{font-size:19px}
    .goods-price-box{padding:12px}
    .gp-value{font-size:22px}
    .goods-meta{grid-template-columns:repeat(2,1fr)}
    .buy-meta-grid{grid-template-columns:repeat(2,1fr)}
    .cp-company-meta{grid-template-columns:repeat(2,1fr)}
    .banner{height:220px}
    .company-strip{display:flex;overflow-x:auto;padding-bottom:8px;scroll-snap-type:x mandatory;gap:12px}
    .company-strip .company-card{flex:0 0 78%;scroll-snap-align:start;min-width:0}
    .news-item-img{width:110px;height:76px}
    .section-title{font-size:17px}
    .section-sub{display:none}
    .auth-card{max-width:100%;margin:24px auto}
    .center-card{padding:22px 18px}
    .brand-wall{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}
    .modal{width:calc(100vw - 24px);max-height:92vh;padding:18px}
    .lang-menu{grid-template-columns:repeat(2,minmax(120px,1fr));min-width:0;width:min(92vw,440px);right:0}
    .buy-item{flex-direction:column;gap:10px}
    .buy-item-side{flex-direction:row;align-items:center;justify-content:space-between}
    .buy-item-desc{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
    .news-footer-actions{flex-direction:column}
}

/* ---------- 小屏手机 <576（375/414 重点） ---------- */
@media (max-width:575px){
    .goods-grid-4,.goods-grid-8,.goods-grid-list{grid-template-columns:1fr}
    .company-strip .company-card{flex-basis:88%}
    .promise-bar{grid-template-columns:repeat(2,1fr);gap:10px;padding:14px 6px}
    .footer-top{grid-template-columns:1fr;gap:18px;padding:24px 16px 16px}
    .footer-bottom{flex-direction:column;align-items:flex-start;gap:8px;padding:14px 16px}
    .cat-dropdown-in{grid-template-columns:1fr}
    .cat-col{border-right:0;border-bottom:1px dashed var(--line);padding:8px 4px}
    .cat-col:last-child{border-bottom:0}
    .banner{height:180px}
    .banner-fallback-text{font-size:22px}
    .banner-fallback-sub{font-size:12px}
    .section-title{font-size:16px}
    .river-head{flex-direction:column;align-items:flex-start;gap:6px}
    .auth-card{margin:16px auto;padding:24px 16px}
    .center-actions{grid-template-columns:1fr}
    .center-meta{grid-template-columns:1fr}
    .list-toolbar{flex-wrap:wrap}
    .sort-tabs{overflow-x:auto;max-width:100%;padding-bottom:4px}
    .sort-tab{white-space:nowrap}
    .news-item{flex-direction:column;gap:10px}
    .news-item-img{width:100%;height:auto;aspect-ratio:16/9}
    .news-article{padding:18px 14px}
    .news-article-title{font-size:19px}
    .goods-detail{padding:12px}
    .goods-thumbs img{width:48px;height:48px}
    .company-profile,.brand-profile{padding:14px}
    .company-profile-side,.brand-profile-side{width:100%;padding-top:12px}
    .cp-company-meta{grid-template-columns:1fr}
    .pg{min-width:40px;height:40px}
    .modal{padding:16px}
    .iform-row{flex-direction:column;align-items:stretch;gap:6px}
    .iform-row>span{width:auto;text-align:left}
    .iform-optional>span:first-child{opacity:1}
    .lang-menu{grid-template-columns:1fr 1fr;width:calc(100vw - 16px);position:fixed;left:8px;right:8px;top:46px}
    .lang-switch>summary{min-height:36px}
    .gs-btn{width:76px;font-size:15px;letter-spacing:2px}
    .goods-meta{grid-template-columns:1fr 1fr}
    .buy-meta-grid{grid-template-columns:1fr}
    .goods-seller{padding-top:12px}
    .assistant-hero{padding:22px 14px}
}

/* ---------- 阿拉伯语 RTL 基础适配 ---------- */
[dir="rtl"] body{text-align:right}
[dir="rtl"] .topbar-right,[dir="rtl"] .main-nav-in,[dir="rtl"] .nav-links,
[dir="rtl"] .section-head,[dir="rtl"] .buy-item,[dir="rtl"] .news-item,
[dir="rtl"] .footer-bottom,[dir="rtl"] .list-toolbar,[dir="rtl"] .cat-toolbar,
[dir="rtl"] .page-title-row,[dir="rtl"] .pager,[dir="rtl"] .goods-card-meta,
[dir="rtl"] .company-card-foot,[dir="rtl"] .brand-filter-note{direction:rtl}
[dir="rtl"] .brand{align-items:flex-end}
[dir="rtl"] .section-more,[dir="rtl"] .company-search-form,[dir="rtl"] .brand-search-form{margin-left:0;margin-right:auto}
[dir="rtl"] .iform-row>span{text-align:left}
[dir="rtl"] .gs-input,[dir="rtl"] .price-input,[dir="rtl"] .f-input,
[dir="rtl"] input,[dir="rtl"] textarea,[dir="rtl"] select{text-align:right}
[dir="rtl"] .goods-seller{border-left:0;border-right:1px dashed var(--line);padding-left:0;padding-right:16px}
[dir="rtl"] .company-profile-side,[dir="rtl"] .brand-profile-side{border-left:0;border-right:1px dashed var(--line);padding-left:0;padding-right:18px}
[dir="rtl"] .cat-col{border-right:0;border-left:1px dashed var(--line)}
[dir="rtl"] .site-switch-menu,.lang-switch .lang-menu{text-align:right}
[dir="rtl"] .modal-close{right:auto;left:8px}
[dir="rtl"] .badge-corner{left:auto;right:6px}
[dir="rtl"] .gp-actions,[dir="rtl"] .news-footer-actions,[dir="rtl"] .empty-page-actions{flex-direction:row-reverse}
@media (max-width:767px){
    [dir="rtl"] .goods-seller{border-right:0}
    [dir="rtl"] .company-profile-side,[dir="rtl"] .brand-profile-side{border-right:0}
    [dir="rtl"] .iform-row>span{text-align:right}
}

/* ---------- 全行业门户聚合（主域首页，任务 J22） ---------- */
.industry-overview-section { margin-top: 24px; }
.industry-overview {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
}
.industry-card {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 10px;
    padding: 14px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--text); transition: all .18s ease;
}
.industry-card::after {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--primary), #5a97ff);
}
.industry-card.is-default::after { background: linear-gradient(180deg, var(--accent), #ff9a4d); }
.industry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d6e2ff; }
.industry-card-head { display: flex; align-items: center; gap: 10px; }
.industry-initial {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), #dbe8ff);
    color: var(--primary); font-size: 19px; font-weight: 700;
}
.industry-card.is-default .industry-initial { background: linear-gradient(135deg, #fff1e6, #ffe0c7); color: var(--accent-dark); }
.industry-card-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.industry-card-title b {
    font-size: 14px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.industry-card-title i { font-style: normal; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.industry-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.industry-mode {
    font-size: 11px; color: var(--primary);
    background: var(--primary-light); border-radius: 3px; padding: 1px 6px;
}
.industry-card.is-default .industry-mode { color: var(--accent-dark); background: #fff1e6; }
.industry-count { font-size: 12px; color: var(--muted); }
.industry-count b { color: var(--accent); font-size: 15px; }
.industry-count.soon { color: var(--accent); }
.industry-card-foot { font-size: 12px; color: var(--primary); border-top: 1px dashed var(--line); padding-top: 8px; }

/* 行业精选简报块 */
.industry-briefs { margin-top: 30px; }
.industry-brief {
    border: 1px solid var(--line); background: var(--card);
    border-radius: var(--radius); padding: 16px; margin-top: 14px;
}
.industry-brief:first-of-type { margin-top: 0; }
.industry-brief-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 12px; }
.industry-brief-title { font-size: 19px; font-weight: 700; color: var(--text); }
.industry-brief-title:hover { color: var(--primary); }
.industry-brief-host { color: var(--muted); font-size: 12px; }
.industry-brief-count { color: var(--muted); font-size: 12px; }
.industry-brief-count b { color: var(--accent); }
.industry-brief-head .section-more { margin-left: auto; }
.industry-goods { margin-bottom: 10px; }
.industry-empty {
    padding: 18px 14px; margin-bottom: 10px; text-align: center;
    background: #f8fafd; border: 1px dashed var(--line);
    border-radius: var(--radius-sm); color: var(--muted); font-size: 13px;
}
.industry-empty b { color: var(--accent); }
.industry-news { display: flex; align-items: flex-start; gap: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.industry-news-label {
    flex-shrink: 0; font-size: 12px; color: var(--primary);
    background: var(--primary-light); padding: 2px 8px; border-radius: 3px;
}
.industry-news-list { display: flex; flex-wrap: wrap; gap: 4px 22px; min-width: 0; }
.industry-news-list li { margin: 0; }
.industry-news-list a { color: var(--muted); font-size: 13px; }
.industry-news-list a:hover { color: var(--primary); }
.industry-news-empty { color: var(--muted); font-size: 12px; }

@media (max-width: 992px) {
    .industry-overview { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .industry-overview { grid-template-columns: repeat(2, 1fr); }
    .industry-brief { padding: 12px; }
    .industry-news { flex-direction: column; gap: 6px; }
}
@media (max-width: 480px) {
    .industry-overview { grid-template-columns: 1fr; }
}

/* =====================================================================
   行业子站差异化主题（任务 J-UI）—— 仅在文件末尾追加，不改写既有规则
   主色：layout.html 注入 :root --primary/--primary-dark/--primary-light；
   行业横幅：模板注入 --ind / --ind-dark / --ind-light，类目图标/招商等复用。
   ===================================================================== */

/* 行业站整体配色：区块标题条、页头品牌、搜索框、承诺条随行业主色 */
.site-theme .section-title i { background: var(--primary); }
.site-theme .brand-name { color: var(--primary); }

/* ---------- 行业横幅 ---------- */
.industry-hero {
    position: relative; overflow: hidden; color: #fff; margin-top: 14px;
    padding: 48px 0 42px;
    background: linear-gradient(
        120deg,
        var(--ind-dark, var(--primary-dark)) 0%,
        var(--ind, var(--primary)) 55%,
        var(--ind-dark, var(--primary-dark)) 130%
    );
    background-size: cover; background-position: center;
}
.industry-hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(720px 260px at 82% -18%, rgba(255, 255, 255, .22), transparent 62%),
        radial-gradient(560px 240px at 6% 128%, rgba(10, 24, 50, .18), transparent 62%);
}
/* 有行业横幅图时的主题色罩层（旧浏览器退回深蓝半透明） */
.industry-hero[style*="background-image"] .industry-hero-bg {
    background: rgba(20, 38, 66, .34);
    background: color-mix(in srgb, var(--ind, #1e6fff) 58%, rgba(8, 18, 40, .5));
}
.industry-hero-inner { position: relative; z-index: 2; }
.industry-hero-crumb { display: block; font-size: 12px; color: rgba(255, 255, 255, .72); margin-bottom: 12px; }
.industry-hero-crumb a { color: rgba(255, 255, 255, .9); }
.industry-hero-crumb a:hover { color: #fff; text-decoration: underline; }
.industry-hero-crumb em { font-style: normal; margin: 0 7px; opacity: .6; }
.industry-hero-title {
    font-size: clamp(26px, 4.2vw, 40px); font-weight: 700; line-height: 1.3;
    letter-spacing: 1px; text-shadow: 0 2px 10px rgba(8, 18, 40, .25);
    max-width: 860px;
}
.industry-hero-desc {
    margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .85);
    max-width: 720px; line-height: 1.7;
}
.industry-search {
    display: flex; margin-top: 22px; max-width: 560px; height: 48px;
    background: #fff; border-radius: 8px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(8, 18, 40, .18);
}
.industry-search-input {
    flex: 1; border: 0; outline: none; padding: 0 16px; font-size: 15px;
    color: var(--text); background: transparent; min-width: 0;
}
.industry-search-btn {
    flex-shrink: 0; border: 0; width: 108px; font-size: 15px; color: #fff; letter-spacing: 2px;
    background: var(--ind-dark, var(--primary-dark));
}
.industry-search-btn:hover { background: var(--ind, var(--primary)); }
.industry-hero-hot {
    display: flex; align-items: center; gap: 8px 14px; margin-top: 12px;
    flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, .72);
}
.industry-hero-hot span { flex-shrink: 0; }
.industry-hero-hot a { color: rgba(255, 255, 255, .88); }
.industry-hero-hot a:hover { color: #fff; text-decoration: underline; }
.industry-hero-stats { display: flex; gap: 40px; margin-top: 26px; flex-wrap: wrap; }
.industry-stat { display: flex; flex-direction: column; gap: 2px; }
.industry-stat b { font-size: 26px; font-weight: 700; line-height: 1; }
.industry-stat i { font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .78); }

/* ---------- 行业闭环快捷入口 ---------- */
.industry-jump {
    display: flex; gap: 12px; margin-top: 18px; padding: 14px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.industry-jump a {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px;
    padding: 11px 6px; border-radius: var(--radius-sm); color: var(--text);
    transition: all .15s ease;
}
.industry-jump a:hover { background: var(--primary-light); }
.industry-jump b { font-size: 15px; color: var(--primary); }
.industry-jump i { font-style: normal; font-size: 12px; color: var(--muted); }

/* ---------- 行业类目导航 ---------- */
.industry-cat-panel {
    border: 1px solid var(--line); background: var(--card);
    border-radius: var(--radius); padding: 16px; margin-top: 14px;
}
.industry-cat-panel:first-child { margin-top: 0; }
.industry-cat-panel-title { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.industry-cat-dot {
    width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--ind, var(--primary)), var(--ind-dark, var(--primary-dark)));
    color: #fff; font-size: 16px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
}
.industry-cat-panel-title b { font-size: 17px; color: var(--text); }
.industry-cat-panel-title:hover b { color: var(--primary); }
.industry-cat-go { margin-left: auto; flex-shrink: 0; font-size: 12px; color: var(--muted); }
.industry-cat-panel-title:hover .industry-cat-go { color: var(--primary); }
.industry-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-cat-chip {
    padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    background: #f8fafc; color: #3c4658; font-size: 13px; transition: all .15s ease;
}
.industry-cat-chip:hover {
    border-color: var(--ind, var(--primary));
    color: var(--ind, var(--primary));
    background: var(--ind-light, var(--primary-light));
}

/* ---------- 最新入驻厂商横滑条 ---------- */
.industry-rail {
    display: flex; gap: 14px; overflow-x: auto;
    padding: 4px 2px 10px; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.industry-rail .company-card { flex: 0 0 238px; scroll-snap-align: start; }
.industry-rail::-webkit-scrollbar { height: 6px; }
.industry-rail::-webkit-scrollbar-thumb { background: #cfd8e6; border-radius: 3px; }

/* ---------- 招商空态（agri/transport/metal 等空站） ---------- */
.industry-recruit-card {
    display: flex; gap: 26px; overflow: hidden;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    background-image: radial-gradient(520px 220px at 92% -10%, var(--primary-light), transparent 62%);
}
.industry-recruit-main { flex: 1; min-width: 0; padding: 34px 30px; }
.industry-recruit-tag {
    display: inline-block; padding: 3px 12px; font-size: 12px; letter-spacing: 2px;
    color: #fff; border-radius: 4px;
    background: linear-gradient(135deg, var(--ind, var(--primary)), var(--ind-dark, var(--primary-dark)));
}
.industry-recruit-main h2 { font-size: 26px; margin: 15px 0 10px; color: var(--text); }
.industry-recruit-main p { color: var(--muted); line-height: 1.8; max-width: 660px; }
.industry-recruit-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.industry-recruit-steps { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.industry-recruit-steps li {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    border: 1px dashed var(--line); border-radius: var(--radius-sm);
    color: var(--muted); font-size: 12px;
}
.industry-recruit-steps b { font-size: 16px; color: var(--ind, var(--primary)); }
.industry-recruit-side {
    width: 300px; flex-shrink: 0; padding: 26px 20px;
    background: var(--primary-light); border-left: 1px solid var(--line);
}
.industry-recruit-side-head { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.industry-recruit-side-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.industry-recruit-side-tags span {
    padding: 4px 10px; font-size: 12px; color: #4a5468;
    background: #fff; border: 1px solid var(--line); border-radius: 4px;
}
.industry-recruit-side-link { display: inline-block; margin-top: 16px; font-size: 13px; color: var(--primary); }
.industry-recruit-side-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* ---------- 行业资讯 / 求购大厅 ---------- */
.industry-feed { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.industry-feed-col {
    border: 1px solid var(--line); background: var(--card);
    border-radius: var(--radius); padding: 16px;
}
.industry-feed-list { display: flex; flex-direction: column; }
.industry-feed-item {
    display: flex; align-items: center; gap: 10px; padding: 9px 2px;
    border-bottom: 1px dashed var(--line);
}
.industry-feed-item:last-child { border-bottom: 0; }
.industry-feed-item:hover { background: #fafcff; }
.industry-feed-date {
    flex-shrink: 0; font-size: 11px; padding: 2px 7px; border-radius: 3px;
    color: var(--primary); background: var(--primary-light);
}
.industry-feed-title {
    color: var(--text); font-size: 13px; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.industry-feed-title:hover { color: var(--primary); }
.industry-feed-meta { margin-left: auto; flex-shrink: 0; font-size: 12px; color: var(--muted); }

/* ---------- AI 采购助手横幅 ---------- */
.industry-ai-cta {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-top: 26px; padding: 22px 26px; color: #fff;
    background: linear-gradient(120deg, var(--ai-1), var(--ai-2));
    border-radius: var(--radius);
}
.industry-ai-text { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.industry-ai-text b { font-size: 17px; }
.industry-ai-text i { font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .8); }
.industry-ai-cta .btn-ai { background: #fff; color: var(--ai-1); }
.industry-ai-cta .btn-ai:hover { filter: none; background: #f3f1ff; }

/* ---------- 行业首页响应式 ---------- */
@media (max-width: 992px) {
    .industry-feed { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .industry-hero { padding: 32px 0 28px; }
    .industry-jump { flex-wrap: wrap; }
    .industry-jump a { flex: 1 1 30%; min-width: 100px; }
    .industry-recruit-card { flex-direction: column; }
    .industry-recruit-side {
        width: 100%; border-left: 0; border-top: 1px solid var(--line);
    }
    .industry-ai-cta { flex-direction: column; align-items: flex-start; }
    .industry-rail .company-card { flex-basis: 220px; }
}
@media (max-width: 480px) {
    .industry-hero-stats { gap: 22px; }
    .industry-stat b { font-size: 21px; }
    .industry-search-btn { width: 88px; }
    .industry-recruit-main { padding: 24px 18px; }
    .industry-recruit-main h2 { font-size: 22px; }
}

/* =====================================================================
   全站 UI 精修（任务 J-UI-2：5 列商品卡 / 顶部导航分类面板 / 视觉统一）
   —— 仅在文件末尾追加覆盖，不改写上方既有规则；
      与既有响应式断点共存，后写规则在同等优先级下生效。
   ===================================================================== */

/* ---------- 设计令牌补充 ---------- */
:root {
    --radius-card: 12px;
    --radius-pill: 999px;
    --shadow-card: 0 1px 3px rgba(18, 42, 84, .06);
    --shadow-card-hover: 0 10px 24px rgba(18, 48, 104, .14);
    --ring: 0 0 0 4px rgba(30, 111, 255, .14);
}

/* =====================================================================
   1. 商品网格：桌面 5 列（≥1440 6 列），逐级降列
   ===================================================================== */
@media (min-width: 1200px) {
    .goods-grid-4, .goods-grid-8, .goods-grid-list { grid-template-columns: repeat(5, 1fr); }
    .goods-grid { gap: 14px; }
}
@media (min-width: 1440px) {
    .goods-grid-4, .goods-grid-8, .goods-grid-list { grid-template-columns: repeat(6, 1fr); }
    .goods-grid { gap: 16px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
    .goods-grid-4, .goods-grid-8, .goods-grid-list { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 769px) and (max-width: 991px) {
    .goods-grid-4, .goods-grid-8, .goods-grid-list { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 521px) and (max-width: 768px) {
    .goods-grid-4, .goods-grid-8, .goods-grid-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .goods-grid-4, .goods-grid-8, .goods-grid-list { grid-template-columns: repeat(2, 1fr); }
    .goods-grid { gap: 10px; }
}
@media (max-width: 360px) {
    .goods-grid-4, .goods-grid-8, .goods-grid-list { grid-template-columns: 1fr; }
}

/* ---------- 1.1 商品卡片：更紧凑、更精致 ---------- */
.goods-card {
    border-radius: var(--radius-card);
    border-color: #e9eef6;
    box-shadow: var(--shadow-card);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.goods-card:hover {
    transform: translateY(-4px);
    border-color: #cfe0ff;
    box-shadow: var(--shadow-card-hover);
}
.goods-card-img { background: linear-gradient(180deg, #f7f9fc, #eef3f9); }
.goods-card-img img { transition: transform .4s ease; }
.goods-card:hover .goods-card-img img { transform: scale(1.045); }
.goods-card-img .badge-corner { top: 7px; left: 7px; }
.goods-card-body { flex: 1; padding: 9px 11px 11px; gap: 5px; }
.goods-card-title { font-size: 13px; line-height: 1.45; min-height: 38px; font-weight: 500; }
.goods-card-price { font-size: 16px; line-height: 1.2; }
.goods-card-price em { font-size: 11px; }
.goods-card-price .face-price { font-size: 13px; }
.goods-card-meta { font-size: 11px; gap: 2px 8px; line-height: 1.5; }
.goods-card-meta i { white-space: nowrap; }
.goods-card-brand { font-size: 11px; }

/* =====================================================================
   2. 顶部导航：精简入口 + 「全部分类」大面板（不占主导航行）
   ===================================================================== */
.site-header { position: relative; z-index: 60; }
.main-nav { position: relative; }
.main-nav-in { height: 44px; }

/* 2.1 分类触发按钮：紧凑胶囊（替代原来的宽条目） */
.cat-trigger {
    display: inline-flex; align-items: center; gap: 7px;
    height: 100%; padding: 0 18px; margin-right: 2px;
    border: 0; border-radius: 0;
    background: linear-gradient(135deg, var(--primary-dark), #2f7bff);
    color: #fff; font: inherit; font-size: 14px; font-weight: 600;
    letter-spacing: .3px; white-space: nowrap; cursor: pointer;
    transition: filter .18s ease;
}
.cat-trigger:hover { filter: brightness(1.08); }
.cat-trigger:focus-visible { outline: none; box-shadow: var(--ring); }
.cat-trigger-icon { font-size: 15px; line-height: 1; }
.cat-trigger.is-open { background: linear-gradient(135deg, #0f47b4, var(--primary)); }

/* 导航行只保留关键入口，间距略收 */
.nav-links a { padding: 0 20px; font-size: 14.5px; transition: background .16s ease; }
/* 移动端菜单内的「全部分类」入口：桌面隐藏 */
.nav-links .nav-links-cats { display: none; }

/* 2.2 分类大面板：桌面悬浮的卡片式多列面板，滚动 + hover 高亮 */
.cat-dropdown.cat-mega {
    position: absolute; left: 0; right: 0; top: 100%;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--card);
    box-shadow: 0 18px 40px rgba(15, 34, 72, .18);
    z-index: 90;
}
.cat-dropdown.cat-mega.open { animation: catMegaIn .18s ease; }
@keyframes catMegaIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cat-mega-in {
    display: flex; flex-direction: column; gap: 12px;
    max-height: min(74vh, 660px); overflow-y: auto;
    padding: 16px 4px 12px;
    scrollbar-width: thin;
}
.cat-mega-in::-webkit-scrollbar { width: 8px; }
.cat-mega-in::-webkit-scrollbar-thumb { background: #d3dcea; border-radius: 4px; }
.cat-mega-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 2px; }
.cat-mega-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.cat-mega-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--primary), #5a97ff); }
.cat-mega-more { font-size: 12px; color: var(--muted); }
.cat-mega-more:hover { color: var(--primary); }
.cat-mega-body { display: flex; gap: 16px; align-items: stretch; padding: 0 8px; }
.cat-mega-grid {
    flex: 1; min-width: 0; display: grid; align-content: start;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 8px 4px;
}
.cat-mega-grid .cat-col { border-right: 1px dashed var(--line); padding: 2px 14px 6px 4px; }
.cat-col-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--text); margin-bottom: 6px;
    padding: 3px 6px; border-radius: 7px; transition: background .15s ease;
}
.cat-col-title:hover { background: var(--primary-light); }
.cat-col-sub { gap: 1px; }
.cat-col-sub a {
    display: block; padding: 1px 6px; border-radius: 6px;
    color: #62708a; font-size: 12px; line-height: 1.75;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cat-col-sub a:hover { color: var(--primary); background: var(--primary-light); }

/* 行业站入口（右侧卡片） */
.cat-mega-sites {
    width: 216px; flex-shrink: 0;
    background: linear-gradient(160deg, #f7faff, #f1f6ff);
    border: 1px solid var(--line); border-radius: 12px;
    padding: 10px 12px;
}
.cat-mega-sites-head { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-bottom: 8px; }
.cat-mega-sites-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cat-site-link {
    display: inline-flex; align-items: center;
    padding: 3px 9px; border-radius: var(--radius-pill);
    background: #fff; border: 1px solid #e4ebf6;
    color: #4a5a76; font-size: 12px; line-height: 1.6;
    transition: all .15s ease;
}
.cat-site-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.cat-site-link.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* 面板底部快捷入口 */
.cat-mega .cat-dropdown-foot {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    margin: 0 8px; padding: 10px 4px 2px;
}
.cat-mega .cat-dropdown-foot a { color: var(--muted); font-size: 12.5px; }
.cat-mega .cat-dropdown-foot a:hover { color: var(--primary); }

/* 2.3 面板响应式 */
@media (max-width: 991px) {
    .cat-trigger {
        padding: 0 14px; margin-right: 0;
        background: rgba(0, 0, 0, .16); font-size: 14px;
    }
    .cat-trigger.is-open { background: rgba(0, 0, 0, .3); }
    .cat-trigger:hover { filter: none; }
    .cat-mega-in { max-height: 80vh; padding: 12px 2px 10px; }
    .cat-mega-body { flex-direction: column; gap: 10px; padding: 0 4px; }
    .cat-mega-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cat-mega-grid .cat-col { border-right: 0; border-bottom: 1px dashed var(--line); padding: 6px 4px 8px; }
    .cat-mega-sites { width: 100%; }
    .nav-links .nav-links-cats { display: flex; }
}
@media (max-width: 575px) {
    .cat-mega-grid { grid-template-columns: 1fr; }
    .cat-mega-head { padding: 0 6px 2px; }
}

/* =====================================================================
   3. 全站视觉统一：圆角 / 阴影 / 按钮 / 表单 / 分页 / 筛选项
   ===================================================================== */
body { line-height: 1.7; }
a { transition: color .15s ease; }

/* 3.1 区块标题与间距 */
.section { margin-top: 28px; }
.section-head { margin-bottom: 15px; }
.section-title { font-size: 19px; font-weight: 700; letter-spacing: .2px; }
.section-title i { border-radius: 3px; background: linear-gradient(180deg, var(--accent), #ff9a4d); box-shadow: 0 2px 6px rgba(255, 106, 0, .25); }
.section-title.ai-title i { box-shadow: 0 2px 6px rgba(106, 92, 255, .25); }
@media (max-width: 991px) { .section-title { font-size: 18px; } }
@media (max-width: 767px) { .section-title { font-size: 17px; } }
@media (max-width: 575px) { .section-title { font-size: 16px; } }

/* 3.2 卡片/面板统一圆角 + 轻阴影 */
.company-card, .industry-card, .brand-card, .news-item, .buy-item,
.filter-box, .cat-header, .cat-toolbar, .list-toolbar, .block,
.industry-brief, .industry-cat-panel, .industry-feed-col,
.industry-jump, .industry-recruit-card, .brand-profile, .company-profile,
.promise-bar, .brand-filter-note {
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.company-card:hover, .industry-card:hover, .brand-card:hover, .news-item:hover, .buy-item:hover {
    box-shadow: var(--shadow-card-hover);
}
.company-card:hover, .industry-card:hover, .brand-card:hover {
    transform: translateY(-4px);
}

/* 3.3 按钮：主色渐变 + 轻投影 */
.btn { border-radius: 8px; font-weight: 500; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #3f86ff);
    box-shadow: 0 2px 6px rgba(30, 111, 255, .22);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 4px 12px rgba(30, 111, 255, .28);
    color: #fff;
}
.btn-ai { box-shadow: 0 2px 8px rgba(106, 92, 255, .22); }
.btn-ghost:hover { box-shadow: var(--shadow-card); }

/* 3.4 徽章 */
.badge { border-radius: 6px; }
.badge-ai { border-radius: 6px; }

/* 3.5 表单与输入框：统一 focus 环 */
.f-input, .price-input, .f-select, .gs-input,
input[type="text"], input[type="search"], input[type="tel"], input[type="password"],
textarea, select { transition: border-color .15s ease, box-shadow .15s ease; }
.f-input:focus, .price-input:focus, .f-select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: var(--ring);
    outline: none;
}
.global-search-box { transition: box-shadow .18s ease; }
.global-search-box:focus-within { box-shadow: var(--ring); }

/* 3.6 分页胶囊化 */
.pg { border-radius: var(--radius-pill); transition: all .15s ease; }
.pg:hover { box-shadow: var(--shadow-card); }
.pg.on {
    background: linear-gradient(135deg, var(--primary), #3f86ff);
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(30, 111, 255, .28);
}

/* 3.7 筛选项 / 频道 Tab 统一为圆角胶囊 */
.sort-tab, .cat-sub-tab, .industry-tab, .news-channel, .brand-tab {
    border-radius: var(--radius-pill);
    transition: all .16s ease;
}
.sort-tab:hover, .cat-sub-tab:hover, .industry-tab:hover, .news-channel:hover, .brand-tab:hover {
    box-shadow: var(--shadow-card);
}
.filter-link { border-radius: 7px; transition: all .15s ease; }
.f-select, .f-input { border-radius: 8px; }

/* 3.8 顶栏 / 页脚 / 空态间距微调 */
.header-main { padding-top: 16px; padding-bottom: 12px; }
.brand-name { letter-spacing: .5px; }
.ai-assistant-entry { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ai-assistant-entry:hover { transform: translateY(-1px); }
.site-footer { margin-top: 38px; }
.footer-top { padding-top: 34px; gap: 32px; }
.footer-brand { letter-spacing: .5px; }
.footer-col a { transition: color .15s ease, padding-left .15s ease; }
.footer-col a:hover { padding-left: 3px; }
.empty-tip { border-radius: var(--radius-card); }

/* 3.9 列表页工具条紧凑化 */
.list-toolbar, .cat-toolbar { padding: 10px 16px; }
.page-title-row h1 { font-size: 22px; letter-spacing: .2px; }
.cat-header { padding: 18px 20px; }
.cat-sub-tabs { margin-top: 12px; }

/* 3.10 行业子站：沿用行业主色变量，不破坏 J24 结构 */
.site-theme .cat-trigger { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.site-theme .cat-mega-title::before { background: linear-gradient(180deg, var(--primary), var(--primary-light)); }
.site-theme .cat-col-title:hover { background: var(--primary-light); }
.site-theme .cat-mega-sites { background: linear-gradient(160deg, #f7faff, var(--primary-light)); }

/* 3.11 阿拉伯语 RTL：分类面板方向 */
[dir="rtl"] .cat-mega-head,
[dir="rtl"] .cat-mega-body { flex-direction: row-reverse; }
[dir="rtl"] .cat-mega-grid .cat-col {
    border-right: 0; border-left: 1px dashed var(--line);
    padding: 2px 4px 6px 14px;
}
[dir="rtl"] .cat-col-sub a { text-align: right; }
[dir="rtl"] .cat-mega .cat-dropdown-foot { justify-content: flex-end; }
@media (max-width: 991px) {
    [dir="rtl"] .cat-mega-body { flex-direction: column; }
    [dir="rtl"] .cat-mega-grid .cat-col { border-left: 0; border-bottom: 1px dashed var(--line); }
}

