﻿@charset "utf-8";
/* ============================================================
   侧栏组件样式（UserControl/hySide.ascx）
   使用页面：/news/ 频道页、/sell/ 频道页、资讯详情页 show.aspx
   规范：卡片白底 + 12px 圆角 + 栏目头红竖条 + 底部分隔线；
        列表只保留虚线分隔，外层卡片不再叠边框。
   ============================================================ */

/* ---------- 1. 容器（详情页用；频道页的 .hy-side 在 channel.css） ---------- */
.hy-sidebar {
    float: right;
    width: 220px;
    box-sizing: border-box;
}

/* ---------- 2. 卡片与栏目头 ---------- */
.hy-side-box {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .05);
    padding: 14px 10px 12px;
    margin-bottom: 14px;
    box-sizing: border-box;
}
.hy-side-box:last-child { margin-bottom: 0; }

.hy-side-hd {
    position: relative;
    font-size: 15px;
    font-weight: 600;
    color: #1F2329;
    line-height: 20px;
    padding: 1px 2px 11px 12px;
    margin: 0 4px 8px;
    border-bottom: 1px solid #F2F4F8;
}
.hy-side-hd::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 3px;
    height: 17px;
    border-radius: 2px;
    background: #E1251B;
}
.hy-side-hd .hy-hd-sub {
    float: right;
    font-size: 12px;
    font-weight: 400;
    color: #A8B0BE;
    line-height: 20px;
}
.hy-side-hd .hy-hd-sub a { color: #A8B0BE; }
.hy-side-hd .hy-hd-sub a:hover { color: #E1251B; }

/* ---------- 3. 行业分类（详情页侧栏的入口标签） ---------- */
.hy-side-cat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 6px;
    padding: 0 4px;
}
.hy-side-cat a {
    display: block;
    height: 26px;
    line-height: 26px;
    text-align: center;
    font-size: 12px;
    color: #5A6474;
    background: #F6F8FB;
    border-radius: 4px;
    overflow: hidden;
    white-space: nowrap;
}
.hy-side-cat a:hover { color: #E1251B; background: #FDF0EF; }

/* ---------- 4. 推荐产品：图文列表 ---------- */
.hy-side-prod {
    list-style: none;
    margin: 0;
    padding: 0 4px;
}
.hy-side-prod li {
    display: flex;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px dashed #EFF2F7;
}
.hy-side-prod li:first-child { padding-top: 4px; }
.hy-side-prod li:last-child { border-bottom: 0; padding-bottom: 2px; }
.hy-side-prod-pic {
    display: block;
    flex: 0 0 64px;
    width: 64px;
    height: 48px;
    margin-right: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: #F7F9FC;
}
.hy-side-prod-pic img {
    display: block;
    width: 64px;
    height: 48px;
    object-fit: cover;
}
.hy-side-prod-bd { flex: 1 1 auto; min-width: 0; }
.hy-side-prod-t {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
    line-height: 19px;
    color: #5A6474;
}
.hy-side-prod-t:hover { color: #E1251B; }
.hy-side-prod-bd em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 11px;
    line-height: 15px;
    color: #B6BDC9;
}

/* ---------- 5. 推荐资讯：单行省略 ---------- */
.hy-side-news {
    list-style: none;
    margin: 0;
    padding: 0 4px;
}
.hy-side-news li {
    position: relative;
    padding: 8px 0 8px 11px;
    border-bottom: 1px dashed #EFF2F7;
    font-size: 13px;
    line-height: 19px;
}
.hy-side-news li:first-child { padding-top: 4px; }
.hy-side-news li:last-child { border-bottom: 0; padding-bottom: 2px; }
.hy-side-news li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 15px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #D5DAE3;
}
.hy-side-news li:first-child::before { top: 11px; }
.hy-side-news li a {
    display: block;
    color: #5A6474;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hy-side-news li a:hover { color: #E1251B; }

/* ---------- 6. 纯文字列表（sell 首页侧栏「推荐产品」） ---------- */
.hy-side-firm {
    list-style: none;
    margin: 0;
    padding: 0 4px;
}
.hy-side-firm li {
    position: relative;
    padding: 8px 0 8px 11px;
    font-size: 13px;
    line-height: 19px;
    border-bottom: 1px dashed #EFF2F7;
}
.hy-side-firm li:first-child { padding-top: 4px; }
.hy-side-firm li:last-child { border-bottom: 0; padding-bottom: 2px; }
.hy-side-firm li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #D5DAE3;
}
.hy-side-firm li a {
    display: block;
    color: #5A6474;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hy-side-firm li a:hover { color: #E1251B; }

/* ---------- 7. 空状态 ---------- */
.hy-side-box .hy-empty {
    padding: 18px 0;
    text-align: center;
    color: #B6BDC9;
    font-size: 13px;
    line-height: 20px;
}

/* ---------- 8. 窄屏：详情页侧栏落到正文下方 ---------- */
@media screen and (max-width: 1220px) {
    .hy-sidebar { float: none; width: 100%; }
}
