.wb-nav-title {
    padding: 18px 14px 5px;
    color: #777;
    font-size: 11px;
    letter-spacing: .12em
}

.member-shell main {
    background: #f6f7f9
}

.member-hero {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px 30px;
    border: 1px solid #ececec;
    border-radius: 12px;
    background: linear-gradient(115deg, #fff 52%, #fff1ec)
}

.member-hero .avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e7272d;
    color: #fff;
    font-size: 23px;
    font-weight: 900
}

.member-hero small {
    color: #e7272d;
    font-weight: 900
}

.member-hero h1 {
    margin: 3px 0;
    font-size: 26px
}

.member-hero p {
    margin: 5px 0;
    color: #777;
    display: flex;
    gap: 12px
}

.member-badge {
    background: #fff0ed;
    color: #d62027;
    padding: 2px 8px
}

.hero-actions {
    margin-left: auto;
    display: flex;
    gap: 8px
}

.hero-actions a {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-weight: 800
}

.hero-actions a.primary {
    background: #e7272d;
    color: #fff
}

.member-stats {
    display: grid;
    /* 固定 5 项：租赁订单 / 采购供求 / 消息通知 / 会话消息 / 收藏关注（2026-09-29 用户要求去掉
       「关联企业」、并把原来的「未读消息」拆成「消息通知 / 会话消息」两项，条目数不变）。
       窄屏断点（1050 / 700）固定 3 / 2 列。 */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 16px 0;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 10px
}

.member-stats a {
    text-align: center;
    padding: 18px;
    border-right: 1px solid #eee
}

.member-stats b,
.member-stats span {
    display: block
}

.member-stats b {
    font-size: 25px
}

.member-stats span {
    color: #777
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 16px
}

.todo-grid,
.desk-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px
}

.todo-grid>a {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 8px
}

.todo-grid i {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff0ed;
    color: #e7272d;
    font-style: normal;
    font-weight: 900
}

.todo-grid b,
.todo-grid span {
    display: block
}

.todo-grid span {
    color: #888;
    font-size: 13px
}

.desk {
    padding: 20px;
    border-radius: 9px;
    border: 1px solid #eee;
    background: #fafafa
}

.desk.supplier {
    background: #f1f7fb
}

.desk em {
    font-style: normal;
    color: #e7272d;
    font-weight: 900
}

.desk h3 {
    font-size: 19px;
    margin: 6px 0
}

.desk p {
    min-height: 44px
}

.desk>span {
    font-weight: 900
}

.setting-list>a {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 15px;
    padding: 15px 4px;
    border-top: 1px solid #eee
}

.setting-list span {
    color: #888
}

.setting-list strong {
    color: #d62027
}

.cert-state {
    text-align: center;
    padding: 12px
}

.cert-state i {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 10px;
    border-radius: 50%;
    background: #fff2df;
    color: #b97412;
    font-style: normal;
    font-weight: 900
}

.cert-state i.ok {
    background: #eaf8ef;
    color: #21824b
}

.cert-state b,
.cert-state span,
.message-empty b,
.message-empty span {
    display: block
}

.cert-state span,
.message-empty span {
    color: #888;
    margin-top: 7px
}

/* ---------- 交易会话行 .conv-row（首页「消息中心」卡 + /member/conversations 共用一套） ----------
   2026-09-29 用户反馈「会话列表样式是乱的」：原来是复用消息中心的 .msg-row（那是给全宽列表用的，
   左有 8px 圆点 + 40px 头像、右有独立的 side 列放时间与「N 条未读」），塞进 290/340px 的窄栏里
   中间那列被压到几十像素 → 名字与订单号换行、右侧文字挤成两行。
   现在改成窄栏专用结构：头像 + 三行正文（名字行含时间与未读角标 / 最后一条消息 / 订单号），
   全部单行省略，宽度再窄也稳定；`.conv-avatar` 仍复用 workbench.css 那一份（这里只缩窄它的尺寸，
   不影响商家侧 /supplier/conversations 的 .msg-row 里的头像）。 */
.conv-list {
    margin-top: 10px
}

.conv-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 8px;
    border-bottom: 1px solid #f1f3f6;
    color: inherit;
    text-decoration: none
}

.conv-row:last-child {
    border-bottom: 0
}

.conv-row:hover {
    background: #fafbfc
}

/* 选中态（/member/conversations 左栏）：左侧红条 + 淡红底 */
.conv-row.on {
    background: #fff6f6;
    box-shadow: inset 3px 0 0 #c51b21
}

.conv-row.on .conv-head b {
    color: #c51b21
}

/* 头像：有真实头像时是 <img>（object-fit:cover 填满方块），没有则退回名字首字（粉底红字）。
   2026-09-29 用户要求「用户和商家的头像需要映射出来」—— 结构先支持图片，后端把头像字段
   （买家侧 seller_logo / 商家侧 buyer_avatar）下发后即自动生效，前端不再需要改。 */
.conv-row .conv-avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
    overflow: hidden
}

.conv-row .conv-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.conv-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px
}

.conv-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px
}

.conv-head b {
    min-width: 0;
    font-size: 13.5px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.conv-head time {
    /* time 永远贴最右：名字（可省略）+ 未读红点占左侧，中间空白由 margin-left:auto 吃掉 */
    flex: none;
    margin-left: auto;
    color: #a4adb8;
    font-size: 11.5px
}

.conv-text {
    color: #5f6874;
    font-size: 12.5px;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.conv-row.unread .conv-text {
    color: #3f4753
}

.conv-sub {
    color: #a4adb8;
    font-size: 11.5px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

/* 未读数字红点。2026-09-29：结构从「<b>名字<i class="conv-badge"></i></b>」改成
   「<b>名字</b><i class="conv-badge"></i>」—— 原来它在 <b> 内部，而 .conv-head b 是
   单行省略（overflow:hidden），名字一长（买家侧「测试的企业」这种 5 字商家名）红点就被裁掉，
   表现为「没有未读红点」（商家侧客户名短所以看得见）。放在 <b> 外面 + flex:none，
   红点不再参与省略、永远是可见的独立一格。 */
.conv-badge {
    flex: none;
    display: inline-block;
    padding: 0 6px;
    border-radius: 9px;
    background: #e7272d;
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
    vertical-align: 1px
}

.conv-more {
    margin-top: 8px;
    color: #8b95a5;
    font-size: 12px
}

.block-action {
    display: block !important;
    text-align: center;
    background: #e7272d;
    color: #fff !important;
    padding: 10px;
    border-radius: 6px
}

.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px
}

.quick-links a {
    padding: 9px;
    background: #f6f6f6;
    text-align: center
}

@media(max-width:1050px) {
    .dashboard-grid {
        grid-template-columns: 1fr
    }

    .member-stats {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width:700px) {
    .member-hero {
        flex-wrap: wrap
    }

    .member-stats {
        grid-template-columns: 1fr 1fr
    }

    .todo-grid,
    .desk-grid {
        grid-template-columns: 1fr
    }

    .setting-list>a {
        grid-template-columns: 1fr
    }
}
/* 企业身份的「已驳回」态：与 .cert-state i.ok（已认证·绿）成对，默认橙色是「待审核」 */
.cert-state i.warn {
    background: #fdecea;
    color: #c62828
}
