/* 悟空投标网 · 悟空外包左侧导航（工作台入口镜像）
   令牌：ZB-LEFT-RAIL-20261030-S-miji
   目的：从工作台「供求大市场」→ 悟空外包（发布任务 / 发布服务）后，左侧不再「断头」。
   与 /market/market-rail.css 同源；改样式请同步两处，别只改一边。
   <1100px 自动隐藏、页面不缩进；被外壳 iframe 载入时也不显示（避免与外壳左栏重复）。 */

.wkrail {
  display: none;
}

/* 被站点外壳 iframe 载入时：外壳已有左栏，本栏隐藏、页面不缩进 */
html.wk-embed body {
  padding-left: 0 !important;
}
html.wk-embed .wkrail {
  display: none !important;
}
html.wk-embed body .toast {
  left: 50% !important;
}

@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;
  }
}
