/* K773 主题 - 逗号CMS 适配补充样式 */

/* 文字 logo */
.sidebar-nav .logo .k773-logo-text {
    display: inline-block;
    color: #282a2d;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 12px;
}
.sidebar-nav .k773-logo-text { font-size: 16px; }
.footer-logo .k773-logo-text { color: #2c2e2f; font-size: 22px; }
.navbar-brand .k773-logo-text { color: #2c2e2f; font-size: 18px; line-height: 35px; }
/* 深色侧边栏（非 grey 模式）时 logo 反白 */
html:not(.io-grey-mode) .sidebar-nav .k773-logo-text { color: #fff; }

/* 卡片图标 */
.url-card .url-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}
.url-card .url-img {
    overflow: hidden;
    border-radius: 50%;
    background: #f2f4f7;
}

/* 热搜榜 */
.k773-rank-list { list-style: none; margin: 0; padding: 6px 0; }
.k773-rank-list li {
    display: flex;
    align-items: center;
    padding: 9px 18px;
    font-size: 14px;
}
.k773-rank-list li + li { border-top: 1px solid #f3f5f8; }
.k773-rank-list a {
    flex: 1;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.k773-rank-list a:hover { color: #ff6b35; }
.k773-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 4px;
    background: #f1f3f6;
    color: #98a2b3;
    font-size: 12px;
    font-weight: 700;
    flex: none;
}
.k773-rank.top1 { background: #ff5b52; color: #fff; }
.k773-rank.top2 { background: #ff9f43; color: #fff; }
.k773-rank.top3 { background: #ffd166; color: #fff; }
.k773-rank-count { color: #b0b8c4; font-size: 12px; margin-left: 8px; }

/* 标签云 */
.k773-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.k773-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f4f6f9;
    color: #5b6472;
    font-size: 13px;
    text-decoration: none;
    transition: all .2s;
}
.k773-tag em {
    font-style: normal;
    font-size: 11px;
    color: #9aa4b2;
    background: rgba(0, 0, 0, .05);
    border-radius: 8px;
    padding: 0 5px;
}
.k773-tag:hover { background: #ffece4; color: #ff6b35; }
.k773-tag.warm { background: #fff4e8; color: #d97706; }
.k773-tag.hot { background: linear-gradient(135deg, #ff6b35, #ff8f5e); color: #fff; }
.k773-tag.hot em { color: #fff; background: rgba(255, 255, 255, .25); }

/* 产品筛选 */
.k773-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.k773-filter-item {
    padding: 6px 16px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid #e8edf3;
    color: #5b6472;
    font-size: 13px;
    text-decoration: none;
}
.k773-filter-item.active,
.k773-filter-item:hover { background: #ff6b35; border-color: #ff6b35; color: #fff; }
.k773-price {
    position: absolute;
    right: 12px;
    top: 12px;
    background: #ff6b35;
    color: #fff;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}
.k773-price-lg { color: #ff6b35; font-size: 26px; font-weight: 700; }

/* 首页分类块 */
.content-layout > .d-flex.flex-fill.align-items-center h4 { color: #282a2d; }
.btn-move { color: #98a2b3; text-decoration: none; }
.btn-move:hover { color: #ff6b35; }

/* 分页 */
.pagebar .pagination .page-link.current { background: #ff6b35; border-color: #ff6b35; color: #fff; }

/* 搜索结果高亮 */
.search-hit { font-style: normal; color: #ff6b35; }

/* 详情页徽标 */
.btn-cat.custom_btn-d {
    display: inline-block;
    padding: 2px 12px;
    border-radius: 20px;
    background: #ff6b35 !important;
    color: #fff !important;
    font-size: 12px;
    text-decoration: none;
}
.siteico {
    background: #fff !important;
}
.siteico img {
    max-width: 100%;
    border-radius: 16px;
    object-fit: contain !important;
    background: #fff;
    padding: 14%;
}

/* 移动端侧边栏 */
@media (max-width: 767.98px) {
    .sidebar-nav {
        display: block !important;
        transform: translate3d(-100%, 0, 0);
        transition: transform .3s;
        width: 260px;
        z-index: 1082;
        box-shadow: 0 0 40px rgba(0, 0, 0, .18);
    }
    .sidebar-nav .sidebar-nav-inner { max-width: 260px; transform: none !important; }
    body.sidebar-show { overflow: hidden; }
    body.sidebar-show .sidebar-nav { transform: translate3d(0, 0, 0); }
    body.sidebar-show::after {
        content: '';
        position: fixed;
        left: 0; top: 0; right: 0; bottom: 0;
        background: rgba(0, 0, 0, .4);
        z-index: 1081;
    }
}
