/* 工作台 · antd 之上的薄层自定义（个人驾驶舱主题） */

/* ---------- 布局 ---------- */
.ant-layout-sider.wb-sider {
  border-right: none;
  background: linear-gradient(180deg, #262a52 0%, #1c1f3d 100%) !important;
}
.wb-sider .ant-layout-sider-children { display: flex; flex-direction: column; }
.wb-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 20px 16px; flex: none;
}
.wb-logo-dot {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #7b7ff2 0%, #5b5bd6 100%);
  color: #fff; font-size: 17px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(91, 91, 214, .45);
}
.wb-logo-name { font-weight: 600; font-size: 16px; color: #fff; line-height: 1.2; }
.wb-logo-sub { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }
.wb-menu { background: transparent !important; border-inline-end: none !important; flex: 1; }
.wb-menu.ant-menu-dark .ant-menu-item { color: rgba(255,255,255,.62); margin-inline: 10px; width: calc(100% - 20px); border-radius: 9px; }
.wb-menu.ant-menu-dark .ant-menu-item:hover { color: #fff; background: rgba(255,255,255,.08); }
.wb-menu.ant-menu-dark .ant-menu-item-selected { color: #fff; background: rgba(255,255,255,.14); font-weight: 500; }
.wb-menu.ant-menu-dark .ant-menu-item-selected::after { display: none; }
.wb-nav-ico { margin-right: 9px; font-size: 15px; }
.wb-sider-foot { padding: 14px 20px; font-size: 11px; color: rgba(255,255,255,.35); flex: none; }

.ant-layout-header.wb-header {
  background: transparent; height: auto; line-height: normal; padding: 22px 28px 6px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20;
}
.wb-page-title { font-weight: 650; font-size: 19px; color: #23263e; }
.wb-content { padding: 14px 28px 56px; max-width: 1220px; width: 100%; margin: 0 auto; }

/* 卡片质感：大圆角 + 软阴影 */
.ant-card { border-radius: 14px !important; box-shadow: 0 1px 2px rgba(35,38,62,.04), 0 6px 20px rgba(35,38,62,.05); }
.ant-card-head { border-bottom-color: #f2f1ec !important; }

/* 移动端顶部导航（sider 在 lg 以下自动收起后使用） */
.wb-mobilenav {
  display: none; gap: 8px; padding: 10px 16px; background: #fff;
  border-bottom: 1px solid #f0f0f0; overflow-x: auto; white-space: nowrap;
}
@media (max-width: 991px) {
  .wb-mobilenav { display: flex; }
  .wb-content { padding: 10px 12px 40px; }
  .ant-layout-header.wb-header { padding: 16px 16px 4px; }
}

/* ---------- 通用小件 ---------- */
.mono { font-variant-numeric: tabular-nums; }
.up { color: #389e0d; }
.down { color: #cf1322; }
.wb-sub { color: rgba(0,0,0,.45); font-size: 12px; }

/* 业务线色片（产品核心隐喻，antd 没有对应组件） */
.bchip {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid #d9d9d9; border-radius: 6px; padding: 2px 10px;
  background: #fff; font-size: 13px; margin: 0 8px 8px 0; user-select: none;
  transition: all .2s;
}
.bchip:hover { border-color: #5b5bd6; color: #5b5bd6; }
.bchip.on { border-color: #5b5bd6; color: #5b5bd6; background: #eeeefc; font-weight: 500; }
.bdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.bchip .bdot { margin-right: 0; }

/* 图片上传 */
.wb-updrop {
  display: inline-block; cursor: pointer; padding: 10px 20px;
  border: 1px dashed #d9d9d9; border-radius: 8px; color: rgba(0,0,0,.45); font-size: 13px;
  transition: all .2s;
}
.wb-updrop:hover { border-color: #5b5bd6; color: #5b5bd6; }
.wb-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wb-thumbs img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; border: 1px solid #f0f0f0; }
.wb-thumb-x {
  position: absolute; top: -7px; right: -7px; width: 18px; height: 18px; line-height: 16px;
  text-align: center; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff;
  font-size: 12px; cursor: pointer;
}
.wb-thumbs > div { position: relative; }

/* 目标 / 待办 / 业务线行 */
.wb-goal-row { padding: 10px 0; border-bottom: 1px dashed #f0f0f0; }
.wb-goal-row:last-child { border-bottom: none; }
.wb-goal-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wb-todo { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #f0f0f0; }
.wb-todo:last-child { border-bottom: none; }
.wb-todo-title { flex: 1; }
.wb-todo.done .wb-todo-title { text-decoration: line-through; color: rgba(0,0,0,.35); }
.wb-biz-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #f0f0f0; }
.wb-biz-row:last-child { border-bottom: none; }
.wb-tips { margin: 0; padding-left: 18px; color: rgba(0,0,0,.65); line-height: 2; }

/* 商机泳道 */
.wb-lanes {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 16px;
  align-items: start;
}
@media (max-width: 1200px) { .wb-lanes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .wb-lanes { grid-template-columns: repeat(2, 1fr); } }
.wb-lane-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wb-lead { margin-bottom: 8px !important; }
.wb-lane-empty { margin: 4px 0 !important; opacity: .45; }

/* 登录页 */
.wb-login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(123,127,242,.35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(91,91,214,.28), transparent 55%),
    #1c1f3d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.wb-login-card {
  width: 380px; background: rgba(255,255,255,.96); border-radius: 18px; padding: 40px 36px 30px;
  box-shadow: 0 24px 64px rgba(16,18,40,.45); border: 1px solid rgba(255,255,255,.5);
  backdrop-filter: blur(8px);
}
.wb-login-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 650; color: #23263e; }
.wb-login-logo .wb-logo-dot { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(135deg, #7b7ff2 0%, #5b5bd6 100%); box-shadow: 0 4px 12px rgba(91,91,214,.4); }
.wb-login-sub { color: rgba(0,0,0,.45); font-size: 13px; margin: 8px 0 26px; }
.wb-login-input {
  width: 100%; box-sizing: border-box; padding: 10px 13px; font-size: 14px;
  border: 1px solid #d9d9d9; border-radius: 10px; outline: none; transition: all .2s;
}
.wb-login-input:focus { border-color: #5b5bd6; box-shadow: 0 0 0 3px rgba(91,91,214,.12); }
.wb-login-btn {
  width: 100%; margin-top: 14px; padding: 10px 0; font-size: 15px; font-weight: 500;
  color: #fff; background: linear-gradient(135deg, #6a6ee0 0%, #5b5bd6 100%); border: none; border-radius: 10px;
  cursor: pointer; transition: all .2s; box-shadow: 0 6px 16px rgba(91,91,214,.35);
}
.wb-login-btn:hover { filter: brightness(1.08); }
.wb-login-err { color: #cf1322; font-size: 13px; margin-top: 12px; min-height: 18px; }
