/* =========================================================
   公司列表 / 首页「优质企业」tab 样式
   ========================================================= */

/* ---------- 通用区块 ---------- */
.cl-panel {
    background: #fff;
    border-radius: 8px;
    padding: 18px 20px 20px;
    margin-bottom: 12px;
}

.cl-title {
    display: flex;
    align-items: center;
    margin: 0 0 16px;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    line-height: 1;
}

.cl-title::before {
    content: '';
    width: 4px;
    height: 17px;
    border-radius: 2px;
    background: #ff5c1a;
    margin-right: 8px;
}

/* ---------- 标签 ---------- */
/* 卡片 / 列表行 / 推荐位都是 a 标签，统一去掉下划线（含 hover / focus / visited，
   避免被 bootstrap 默认的 a:hover{text-decoration:underline} 覆盖） */
.cl-card,
.cl-card:hover,
.cl-card:focus,
.cl-card:visited,
.cl-card:active,
.cl-row,
.cl-row:hover,
.cl-row:focus,
.cl-row:visited,
.cl-row:active,
.cl-side-name,
.cl-side-name:hover,
.cl-side-name:focus,
.cl-side-name:visited,
.cl-side-name:active,
.cl-more a,
.cl-more a:hover,
.cl-more a:focus,
.cl-more a:visited {
    text-decoration: none;
}
/* ---------- 图片徽标（企业 / 个人 / VIP，均由设计稿切图提供） ---------- */
/* 尺寸对应关系：qiye/geren 160x70、vip 51x47；企业/个人按高 20px，VIP 单独按 0.7 倍（高 14px） */
.cl-tag-img {
    display: inline-block;
    height: 20px;
    width: auto;
    margin-left: 6px;
    vertical-align: middle;
    /* 关键：无论空间多紧都不压缩、不隐藏，保证公司名出省略号时徽标仍完整可见 */
    flex-shrink: 0;
}

.cl-tag-img:first-child {
    margin-left: 0;
}

/* VIP 徽标紧跟在公司名后面（与企业/个人徽标间距略小）。
   51x47 的原图按 20px 高显示偏大，整体缩到 0.7 倍（高 14px） */
.cl-vip-img {
    height: 14px;
    margin-left: 4px;
}

/* ---------- 首页「优质企业」卡片 ---------- */
/* 通栏自适应：容器多宽就排多少列，每列最小 200px */
.cl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.cl-card {
    position: relative;
    box-sizing: border-box;
    min-height: 78px;
    padding: 16px 12px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s;
}

.cl-card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
    text-decoration: none;
}

/* 公司名统一加粗，与「推荐企业」(.cl-side-name) 保持一致。
   外层 .cl-card-name-row 是 flex 行：名字可收缩出省略号，VIP 徽标固定不挤走 */
.cl-card-name-row {
    display: flex;
    align-items: center;
    min-width: 0;
    /* 右侧留白避开卡片右上角的 card_icon 装饰图 */
    padding-right: 22px;
}

.cl-card-name {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.cl-card:hover .cl-card-name {
    color: #ff4142;
}

.cl-card-tags {
    margin-top: 10px;
}

/* 卡片右上角图标：图片缺失时自动隐藏，替换 image/company/card_icon.png 即可 */
.cl-card-icon {
    position: absolute;
    right: 10px;
    top: 14px;
    width: 16px;
    height: 16px;
}

/* hover 时出现的规模 / 在招信息条 */
.cl-card-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    padding: 4px 10px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all .2s;
}

.cl-card:hover .cl-card-meta {
    opacity: 1;
    visibility: visible;
}

/* ---------- 企业列表行（首页 tab 与列表页共用） ---------- */
.cl-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 2px;
    border-bottom: 1px solid #f2f2f2;
    text-decoration: none;
}

.cl-row:hover {
    text-decoration: none;
}

.cl-row-left {
    display: flex;
    align-items: center;
    min-width: 0;
}

.cl-row-name {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 420px;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.cl-row:hover .cl-row-name {
    color: #ff4142;
}

.cl-row-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 14px;
    color: #666;
}

.cl-row-scale {
    display: inline-block;
    min-width: 170px;
}

.cl-row-count em {
    font-style: normal;
    color: #ff3b30;
}

.cl-row-count {
    display: inline-block;
    min-width: 120px;
    text-align: right;
}

/* ---------- 推荐企业（首页右侧） ---------- */
.cl-side-item {
    padding: 12px 0 14px;
    border-bottom: 1px solid #f2f2f2;
}

.cl-side-item:last-child {
    border-bottom: 0;
}

.cl-side-top {
    display: flex;
    align-items: center;
    min-width: 0;
}

.cl-side-name {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 150px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: middle;
}

.cl-side-name:hover {
    color: #ff4142;
    text-decoration: none;
}

.cl-side-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 13px;
    color: #999;
}

.cl-side-bottom em {
    font-style: normal;
    color: #ff3b30;
}

/* 推荐企业分页：左右箭头 + 圆点 */
.cl-side-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 14px 0 0;
}

.cl-side-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* 小圆点实际只有 6px，外面套 22px 的透明点击区 */
.cl-side-dots li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.cl-side-dots li::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ddd;
    transition: background .2s;
}

.cl-side-dots li:hover::after {
    background: #ffb08a;
}

.cl-side-dots li.active::after {
    background: #ff5c1a;
}

/* 左右箭头：纯 CSS 三角形，不依赖字体 */
.cl-side-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    cursor: pointer;
    user-select: none;
    transition: all .2s;
}

.cl-side-arrow:hover {
    border-color: #ff5c1a;
}

/* 左箭头 */
.cl-side-prev::before {
    content: '';
    width: 0;
    height: 0;
    margin-right: 2px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 5px solid #bbb;
}

/* 右箭头 */
.cl-side-next::before {
    content: '';
    width: 0;
    height: 0;
    margin-left: 2px;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid #bbb;
}

.cl-side-prev:hover::before {
    border-right-color: #ff5c1a;
}

.cl-side-next:hover::before {
    border-left-color: #ff5c1a;
}

.cl-empty {
    padding: 40px 0;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ---------- 首页 tab 底部「更多公司」 ---------- */
.cl-more {
    margin-top: 24px;
    text-align: center;
}

.cl-more a {
    display: inline-block;
    padding: 8px 34px;
    border: 1px solid #d9d9d9;
    border-radius: 100px;
    color: #666;
    font-size: 14px;
    text-decoration: none;
}

.cl-more a:hover {
    border-color: #ff4142;
    color: #ff4142;
    text-decoration: none;
}

/* ---------- 公司列表页 ---------- */
.cl-page-title {
    margin: 6px 0 10px;
    padding-left: 2px;
    font-size: 20px;
    font-weight: normal;
    color: #333;
}

.cl-list-wrap {
    padding: 6px 20px 20px;
}

/* 公司规模筛选：沿用 .job-filter 结构，仅微调 */
.cl-filter .job-filter-ul {
    max-height: none;
}

/* 本页不展示「已选条件」汇总条：条件已在上方筛选块高亮体现，重复列出会干扰判断。
   这里做兜底，避免公共筛选逻辑（custom.js）将来又往里塞 li 时重新露出。 */
.cl-filter .filter-result-title,
.cl-filter .filter-result {
    display: none !important;
}

.cl-filter-result {
    padding-top: 6px;
    border-top: 1px dashed #eee;
}

/* 页码 */
.cl-page-nav {
    padding: 20px 0 30px;
    text-align: center;
}
