/* ==========================================================================
   矿农网 · UI 设计原型工作台外壳（移动端 / PC 后台共用）
   ========================================================================== */

body.wb {
  background: #EEF2F7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- 顶栏 ---------- */
.topbar {
  flex: none;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  background: var(--blue-800);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px rgba(6, 22, 49, .2);
}
.tb-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1.5px;
  flex: none;
}
.tb-mark {
  width: 32px; height: 32px;
  border-radius: var(--r-md);
  background: var(--gold-500);
  color: #3E2C05;
  display: grid;
  place-items: center;
}
.tb-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .2); flex: none; }

.tb-links { display: flex; gap: 4px; flex: none; }
.tb-link {
  height: 34px;
  padding: 0 13px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .74);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tb-link .ic { width: 15px; height: 15px; }
.tb-link.on { background: rgba(255, 255, 255, .16); color: #fff; }
.tb-link:hover:not(.on) { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- 设计归档（顶栏次要区） ----------
   产品形态 = 移动端 H5 / Web 端 / 管理后台 三个入口。
   user.html（求职端）/ ent.html（企业端）/ data.html（数据看板）作为设计归档保留 ——
   门户内嵌工作台、后台内嵌看板都依赖它们，入口弱化但不隐藏。 */
.tb-arch {
  display: flex; align-items: center; gap: 9px;
  margin-left: 6px; padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .18);
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
  flex: none;
}
.tb-arch a { color: rgba(255, 255, 255, .6); text-decoration: none; }
.tb-arch a:hover { color: #fff; }
.tb-arch a.cur { color: #fff; font-weight: 700; }

.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .62);
}
.seg {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .12);
}
.seg button {
  height: 28px;
  padding: 0 11px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, .78);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.seg button .ic { width: 14px; height: 14px; }
.seg button.on { background: #fff; color: var(--blue-800); }

.tb-btn {
  height: 34px;
  padding: 0 14px;
  border-radius: var(--r-md);
  background: var(--gold-500);
  color: #3E2C05;
  font-size: 13.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tb-btn .ic { width: 15px; height: 15px; }
.tb-btn.on { background: #fff; }

.tb-back {
  height: 34px;
  padding: 0 13px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ---------- 主体 ---------- */
.wb-body {
  flex: 1;
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  align-items: stretch;
  min-height: 0;
}

/* 侧栏 */
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 14px 10px 30px;
  max-height: calc(100vh - 58px);
  position: sticky;
  top: 58px;
}
.nav-group + .nav-group { margin-top: 14px; }
/* ⚠️ 一级目录原本 11px / ink-400：底色是白、字又小又浅，一眼扫不出分组，
   53 个二级项排下来像是"一堆平铺的链接"。放大 + 加深，并加左侧色标。 */
.nav-g {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-600);
  letter-spacing: .4px;
  padding: 0 10px 6px;
}
.nav-g::before {
  content: "";
  flex: none;
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--blue-600);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 2px;
}
.nav-item .ic { width: 17px; height: 17px; flex: none; opacity: .75; }
.nav-item:hover { background: var(--bg); }
.nav-item:hover .ic { opacity: 1; }
.nav-item.on { background: var(--blue-700); color: #fff; font-weight: 800; }
.nav-item.on .ic { opacity: 1; }
.ni-n { flex: 1; text-align: left; }
.ni-i {
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--gold-100);
  color: var(--gold-700);
  letter-spacing: .5px;
}
.nav-item.on .ni-i { background: rgba(255, 255, 255, .24); color: #fff; }

/* 画布 */
.canvas {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 26px 20px 60px;
  overflow: auto;
  min-height: 0;
}
.canv-cap {
  text-align: center;
  margin-bottom: 16px;
}
.canv-cap h2 { font-size: 17px; font-weight: 800; color: var(--ink-900); }
.canv-cap p { font-size: 12.5px; color: var(--ink-500); margin-top: 4px; }

.stage {
  transform-origin: top center;
  position: relative;
}

/* 手机壳 */
.device {
  width: 390px;
  height: 844px;
  border-radius: 46px;
  background: #101A28;
  padding: 11px;
  box-shadow:
    0 0 0 2px #26313F,
    0 26px 60px rgba(6, 22, 49, .28),
    inset 0 0 0 1px rgba(255, 255, 255, .06);
  position: relative;
  flex: none;
}
.device::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 390px; height: 844px;
  border-radius: 46px;
  pointer-events: none;
}
/* 灵动岛 */
.device .island {
  position: absolute;
  top: 21px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 26px;
  border-radius: var(--r-pill);
  background: #101A28;
  z-index: 120;
}
.device .phone-inner { border-radius: 36px; }

/* 桌面浏览器壳 */
.browser {
  width: 1360px;
  height: 848px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(6, 22, 49, .22), 0 0 0 1px rgba(16, 28, 46, .08);
  display: flex;
  flex-direction: column;
}
.br-bar {
  flex: none;
  height: 40px;
  background: #F1F4F9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}
.br-dots { display: flex; gap: 6px; flex: none; }
.br-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.br-dots i:nth-child(1) { background: #FF5F57; }
.br-dots i:nth-child(2) { background: #FEBC2E; }
.br-dots i:nth-child(3) { background: #28C840; }
.br-url {
  flex: 1;
  max-width: 520px;
  height: 26px;
  margin: 0 auto;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--ink-500);
}
.br-url .ic { width: 12px; height: 12px; }
.br-url-sp { width: 63px; flex: none; }
.br-body { flex: 1; overflow: hidden; min-height: 0; display: flex; }
/* 桌面壳里每个后台页面是 flex 列 */
.br-body > .admin-app { flex: 1; min-width: 0; display: flex; }
.br-body > .ent-app { flex: 1; min-width: 0; display: flex; }
/* 求职端（门户内嵌工作台）与数据看板（后台内嵌看板）同为 iframe 嵌入态，
   撑满规则原先只给了 admin / ent，这两个端缺了会在嵌入区里撑不满宽度 */
.br-body > .user-app { flex: 1; min-width: 0; display: flex; }
.br-body > .dash-app { flex: 1; min-width: 0; display: flex; }

/* ---------- 嵌入模式（?embed=1） ----------
   用途：PC 招聘门户（web.html）把企业端 / 求职端工作台内嵌进 iframe 时，
   工作台需要"只出内容不出壳"——门户自己有顶栏、面包屑和「返回门户」条，
   再来一层交付用顶栏 + 浏览器机箱就是三层壳。故嵌入时：
   · 隐藏 `.topbar`（设计交付导航）与浏览器机箱的地址栏（`.br-bar`）
   · 隐藏交付侧栏 `#sideNav`（评审用页面导航，与工作台自带侧栏重复；
     不隐藏会被 .wb-body 的 196px 栅格挤在左边，窄容器下还会错排成横条）
   · `.wb-body` 从「196px + 画布」栅格改为单列 flex，画布满铺嵌入区
     （由 fitStage() 提前返回配合，不再按 1360 缩放） */
body.is-embed .topbar { display: none; }
body.is-embed .sidebar { display: none; }
body.is-embed .wb-body { display: flex; }
body.is-embed .canvas { flex: 1; min-width: 0; padding: 0; align-items: stretch; }
body.is-embed .canv-cap { display: none; }
body.is-embed .stage { flex: 1; width: 100%; min-height: 0; display: flex; }
body.is-embed .browser { flex: 1; min-width: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; }
body.is-embed .br-bar { display: none; }

/* ---------- 总览 ---------- */
.gallery {
  position: fixed;
  inset: 58px 0 0 0;
  background: #E7ECF3;
  z-index: 150;
  overflow-y: auto;
  padding: 30px 30px 70px;
  display: none;
}
.gallery.on { display: block; }
.gal-head {
  text-align: center;
  margin-bottom: 26px;
}
.gal-head h2 { font-size: 20px; font-weight: 800; }
.gal-head p { font-size: 13px; color: var(--ink-500); margin-top: 6px; }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
  gap: 26px 20px;
}
.gal-cell { margin: 0; }
.gal-frame {
  width: 212px;
  height: 432px;
  border-radius: 26px;
  background: #101A28;
  padding: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .16s, box-shadow .16s;
  position: relative;
  margin: 0 auto;
  box-shadow: 0 8px 22px rgba(6, 22, 49, .18);
}
.gal-frame:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(6, 22, 49, .26); }
.gal-scale {
  width: 390px;
  height: 844px;
  transform: scale(.5128);
  transform-origin: top left;
}
.gal-scale .phone-inner {
  border-radius: 22px;
  height: 844px;
  width: 390px;
}
.gal-cell figcaption {
  text-align: center;
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--ink-700);
}
.gal-cell figcaption b { font-weight: 800; }
.gal-cell figcaption span {
  display: block;
  font-size: 11px;
  color: var(--ink-400);
  margin-top: 2px;
}

/* 总览 · 桌面屏 */
.gal-grid.desk { grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); }
.gal-frame.desk {
  width: 430px;
  height: 276px;
  border-radius: 12px;
  padding: 5px;
  background: #22304A;
}
.gal-frame.desk .gal-scale {
  width: 1360px;
  height: 848px;
  transform: scale(.3088);
}
.gal-frame.desk .gal-scale > .admin-app {
  width: 1360px;
  height: 848px;
  border-radius: 8px;
  overflow: hidden;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 46px;
  transform: translate(-50%, 14px);
  max-width: 76vw;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  background: rgba(16, 28, 46, .93);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 设计规范面板 ---------- */
.spec {
  padding: 24px 26px 70px;
  overflow-y: auto;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.spec-h { margin: 34px 0 14px; }
.spec-h:first-child { margin-top: 0; }
.spec-h h2 {
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.spec-h h2::before {
  content: "";
  width: 3px; height: 15px;
  border-radius: 2px;
  background: var(--blue-700);
}
.spec-h p { font-size: 12.5px; color: var(--ink-500); margin-top: 6px; padding-left: 11px; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
}
.sw-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.sw-chip { height: 62px; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 700; }
.sw-meta { padding: 9px 11px; }
.sw-meta b { display: block; font-size: 12.5px; font-weight: 700; }
.sw-meta small {
  display: block;
  font-size: 11px;
  color: var(--ink-500);
  font-family: var(--font-num);
  margin-top: 3px;
}

.type-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
}
.type-row .tr-l {
  width: 84px;
  flex: none;
  font-size: 11.5px;
  color: var(--ink-400);
  font-family: var(--font-num);
}
.type-row .tr-sample { flex: 1; color: var(--ink-900); }
.type-row .tr-use { font-size: 11.5px; color: var(--ink-500); flex: none; }

.spec-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px;
}
.spec-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spec-row + .spec-row { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.spec-lab {
  width: 100%;
  font-size: 11.5px;
  color: var(--ink-400);
  font-weight: 700;
  margin-bottom: 2px;
}

.ic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 10px;
}
.ic-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 4px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: #fff;
}
.ic-cell .ic { width: 22px; height: 22px; color: var(--blue-700); }
.ic-cell small { font-size: 10.5px; color: var(--ink-400); font-family: var(--font-num); }

.rule-list { display: flex; flex-direction: column; gap: 11px; }
.rule-item {
  display: flex;
  gap: 11px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.rule-n {
  width: 24px; height: 24px;
  border-radius: var(--r-sm);
  background: var(--blue-700);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex: none;
}
.rule-item b { font-size: 13.5px; font-weight: 800; display: block; }
.rule-item p { font-size: 12.5px; color: var(--ink-600); line-height: 1.65; margin-top: 5px; }

/* ---------- 入口页 ---------- */
.entry-wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 44px 26px 80px;
  width: 100%;
}
.entry-hero { text-align: center; margin-bottom: 38px; }
.entry-mark {
  width: 76px; height: 76px;
  border-radius: 22px;
  background: var(--blue-700);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  box-shadow: 0 12px 30px rgba(15, 58, 128, .26);
}
.entry-hero h1 { font-size: 32px; font-weight: 900; letter-spacing: 3px; }
.entry-hero p {
  font-size: 14.5px;
  color: var(--ink-600);
  line-height: 1.8;
  margin-top: 12px;
}
.entry-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.entry-tags span {
  height: 30px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-600);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.entry-tags .ic { width: 14px; height: 14px; color: var(--blue-600); }

.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}
.entry-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-2xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .16s, box-shadow .16s, border-color .16s;
  text-align: left;
}
.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(15, 58, 128, .14);
  border-color: var(--blue-300);
}
.ec-ic {
  width: 52px; height: 52px;
  border-radius: var(--r-xl);
  background: var(--blue-50);
  color: var(--blue-700);
  display: grid;
  place-items: center;
}
.ec-ic .ic { width: 26px; height: 26px; }
.entry-card h3 { font-size: 18px; font-weight: 800; }
.entry-card p { font-size: 13.5px; color: var(--ink-600); line-height: 1.7; }
.ec-list { display: flex; flex-wrap: wrap; gap: 6px; }
.entry-card .btn { margin-top: 4px; }
.entry-card.gold .ec-ic { background: var(--gold-100); color: var(--gold-700); }

/* 响应式 */
@media (max-width: 1080px) {
  .wb-body { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 14px;
  }
  .nav-group { margin: 0 !important; }
  .nav-g { display: none; }
  .nav-item { width: auto; white-space: nowrap; }
}

/* ==========================================================================
   证件照片上传（认证申请 · 举报举证 · 证书 通用）
   --------------------------------------------------------------------------
   照片列表挂在 DOM 上（缩略图 img[data-u]），提交时从 DOM 读回 ——
   界面上看到的，就是提交时发出去的，不会出现"图在框里、提交时丢了"。
   ========================================================================== */
.up-box { display: flex; flex-wrap: wrap; gap: 8px; }
.up-box:empty { display: none; }
.up-thumb { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line, #e3e8ef); background: var(--ink-50, #f6f8fb); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-del { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 15px; line-height: 20px; cursor: pointer; }
.up-btn { align-self: flex-start; min-height: 34px; padding: 0 12px; cursor: pointer;
  border: 1px dashed var(--blue-300, #9dc0f5); border-radius: 8px; background: #fff;
  color: var(--blue-700, #0f3a80); font-size: var(--t-xs, 12px); font-weight: 600; }
.up-btn:hover { background: var(--blue-50, #f2f7ff); }
.up-hint { font-size: var(--t-xs, 12px); color: var(--ink-400, #8a94a6); line-height: 1.5; }
/* 必传 / 选传角标：与表单标签同排，别让用户提交到一半才发现差材料 */
.req { margin-left: 6px; font-style: normal; font-weight: 700; color: #c62828; }
.opt { margin-left: 6px; font-style: normal; font-weight: 600; color: var(--ink-400, #8a94a6); }
