/* ==========================================================================
   供应商版首页（工作台）专属样式
   只被 home.html 引用；底色与令牌继承 mobile.css 的角色主题层
   ========================================================================== */

.wk-body {
  background: var(--m-deep);
}

/* ---------- 深色经营头部 ---------- */
.wk-hero {
  position: relative;
  padding: 4px 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--m-deep) 0%, var(--m-deep-2) 62%, var(--m-deep-3) 130%);
  overflow: hidden;
}

.wk-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.9), transparent 76%);
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.9), transparent 76%);
}

.wk-hero > * {
  position: relative;
  z-index: 1;
}

/* 企业身份行 */
.wk-id {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0 12px;
}

.wk-id__logo {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.wk-id__n {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 20px;
}

.wk-id__m {
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.wk-id__b {
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.wk-id__b--gold {
  color: #ffe3b0;
  background: rgba(217, 119, 6, 0.32);
  box-shadow: inset 0 0 0 1px rgba(255, 199, 122, 0.42);
}

/* 今日成交额 + 主行动 */
.wk-money {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.wk-money__l {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.4px;
}

.wk-money__v {
  font-family: var(--bf-font-number);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 600;
  line-height: 40px;
  letter-spacing: -0.8px;
}

.wk-money__v small {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.72;
  margin-left: 3px;
}

.wk-chg {
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--bf-font-number);
  font-size: 11.5px;
  font-weight: 500;
  color: #b6f2cd;
  background: rgba(22, 163, 74, 0.28);
  box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.34);
}

.wk-money__go {
  margin-left: auto;
  height: 32px;
  padding: 0 14px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(135deg, #f0a53a, var(--m-accent));
  box-shadow: 0 10px 20px -10px rgba(var(--m-accent-rgb), 0.9);
}

/* 头部三指标 */
.wk-h3 {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.wk-h3__i {
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
}

.wk-h3__v {
  font-family: var(--bf-font-number);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.4px;
}

.wk-h3__v em {
  font-style: normal;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.7;
  margin-left: 1px;
}

.wk-h3__l {
  margin-top: 1px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- 浅色卡纸 ---------- */
.wk-sheet {
  position: relative;
  margin-top: -14px;
  padding: 14px 0 6px;
  border-radius: 18px 18px 0 0;
  background: #f5f7fb;
}

/* 公告条 */
.wk-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 12px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 12.5px;
  color: #6b4a08;
  background: linear-gradient(135deg, #fff7e6, #fdeccd);
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.16);
}

.wk-notice__ic {
  flex: none;
  display: inline-flex;
  color: var(--m-accent);
}

.wk-notice__tx {
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wk-notice__go {
  flex: none;
  display: inline-flex;
  color: rgba(107, 74, 8, 0.6);
}

/* 商机雷达条目 */
.wk-opp {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(15, 32, 64, 0.05);
}

.wk-opp:last-child {
  border-bottom: none;
}

.wk-opp__b {
  min-width: 0;
  flex: 1;
}

.wk-opp__t {
  font-size: 13.5px;
  line-height: 19px;
  font-weight: 500;
}

.wk-opp__m {
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wk-opp__q {
  margin-top: 5px;
  font-size: 11.5px;
  color: rgba(0, 0, 0, 0.62);
}

.wk-opp__q b {
  font-family: var(--bf-font-number);
  font-weight: 600;
  color: rgba(0, 0, 0, 0.86);
}

.wk-opp__r {
  flex: none;
  text-align: right;
}

.wk-opp__left {
  font-family: var(--bf-font-number);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--m-accent);
}

.wk-opp__left small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.45);
}

.wk-opp__btn {
  margin-top: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 500;
  color: #fff;
  background: linear-gradient(120deg, var(--m-primary-deep), var(--m-primary-bright));
}

/* 库存条目 */
.wk-stk {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(15, 32, 64, 0.05);
}

.wk-stk:last-child {
  border-bottom: none;
}

.wk-stk__top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wk-stk__n {
  min-width: 0;
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 19px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wk-stk__s {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.48);
}

/* 功能砖栅格 */
.wk-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

/* 页脚 */
.wk-foot {
  margin: 18px 16px 6px;
  text-align: center;
  font-size: 11px;
  line-height: 17px;
  color: rgba(0, 0, 0, 0.34);
}

/* 公告 / 待办之间的间距收敛 */
.wk-sec {
  margin: 0 16px 14px;
}

/* 头部右侧消息入口 */
.wk-id__more {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.wk-id__more svg {
  display: block;
}

/* span 版块需要显式成块，才能纵向堆叠 */
.wk-opp__t,
.wk-opp__m,
.wk-opp__q {
  display: block;
}

.wk-opp__r {
  display: block;
  flex: none;
  text-align: right;
}

.wk-opp__left {
  display: block;
}

.wk-stk__top {
  display: flex;
  align-items: center;
  gap: 8px;
}
