/* 悟空投标网 · 供求大市场左侧导航（工作台入口镜像）
   令牌：MK-LEFT-RAIL-20261029-S-miji
   目的：从工作台点「悟空大市场」落到本站后，左侧仍保留工作台一级栏目，不再「断头」。
   做法：纯静态 + 媒体查询，不改 market.css 与 market.js；<1100px 自动隐藏、页面不缩进。 */

.wkrail {
  display: none;
}

@media (min-width: 1100px) {
  body {
    padding-left: 250px;
  }

  .wkrail {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    box-sizing: border-box;
    background: #fff;
    border-right: 1px solid #e8edf5;
    padding: 14px 10px 16px;
    overflow-y: auto;
    z-index: 2147480000;
    font-family: inherit;
  }

  /* 页面已整体右移，顶部吸附栏随之收窄，无需再处理 */

  .wkrail-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 12px;
    border-bottom: 1px solid #EDF1F7;
    margin-bottom: 10px;
    text-decoration: none;
  }

  /* ★ SIDE-BRAND-RAIL-20261030：与主站 /gold 侧栏品牌同口径
     logo 34×34/圆角 9/字号 18/字重 800；名 15/700/#111827；备注 11.5/500/16/#4B5563 */
  .wkrail-brand i {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: linear-gradient(135deg, #3B6FF0, #7C3AED);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .wkrail-brand b {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    line-height: 18px;
    letter-spacing: 0;
  }

  .wkrail-brand span {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: #4B5563;
    line-height: 16px;
    margin-top: 2px;
  }

  .wkrail-label {
    font-size: 12px;
    color: #9aa6ba;
    padding: 4px 8px 8px;
    letter-spacing: .3px;
  }

  .wkrail a.it {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 38px;
    padding: 0 10px;
    border-radius: 9px;
    color: #3b4453;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .16s, color .16s;
  }

  .wkrail a.it em {
    font-style: normal;
    font-size: 16px;
    width: 20px;
    text-align: center;
    flex: 0 0 auto;
  }

  .wkrail a.it:hover {
    background: #f3f7ff;
    color: #1b4fd6;
  }

  .wkrail a.it.on {
    background: #eef3ff;
    color: #1650d8;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #2f6bff;
  }

  /* 「当前所在」单独一块，压到左栏下半部，与上面的工作台导航分开 */
  .wkrail-sect {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #eef2f8;
  }

  .wkrail-foot {
    margin-top: 8px;
    padding: 8px 8px 0;
    border-top: 1px solid #eef2f8;
    font-size: 11px;
    line-height: 1.6;
    color: #9aa6ba;
  }

  .wkrail-foot a {
    color: #5b6b85;
    text-decoration: none;
  }

  /* 左下角个人卡：头像 + 名字，点击进个人中心 */
  .wkrail-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 8px 6px;
    border-top: 1px solid #eef2f8;
    border-radius: 9px;
    text-decoration: none;
  }

  .wkrail-me:hover {
    background: #f3f7ff;
  }

  .wkrail-me .av {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2f6bff, #1447c7);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    flex: 0 0 auto;
  }

  .wkrail-me .tx {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
  }

  .wkrail-me .tx b {
    font-size: 13px;
    font-weight: 600;
    color: #0f2f6b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wkrail-me .tx i {
    font-style: normal;
    font-size: 11px;
    color: #9aa6ba;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
  }

  /* 页面自带的居中提示条按内容区居中，避开左侧栏 */
  body .toast {
    left: calc(50% + 125px);
  }
}

@media print {
  .wkrail {
    display: none !important;
  }
  body {
    padding-left: 0 !important;
  }
}
