/* ============================================================
   AI 员工市场 (staff catalog) + 数字员工详情页
   ============================================================ */

.staff-page { background: var(--paper-2); min-height: 100vh; }
.staff-head { padding: 56px 0 0; }
.staff-head .title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.staff-head h1.display { font-size: clamp(36px, 4.6vw, 58px); }
.staff-head .sub { color: var(--ink-2); font-size: 17px; margin-top: 10px; max-width: 560px; line-height: 1.6; }

/* product-style tab row */
.staff-tabs { display: flex; gap: 4px; margin-top: 30px; border-bottom: 1px solid var(--line); }
.staff-tabs button {
  background: none; border: 0; padding: 14px 18px; font-size: 16px; font-weight: 600; color: var(--ink-3);
  position: relative; transition: color .16s;
}
.staff-tabs button:hover { color: var(--ink-2); }
.staff-tabs button.on { color: var(--ink); }
.staff-tabs button.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; background: var(--orange); border-radius: 3px 3px 0 0; }

/* toolbar: filters + search + create */
.staff-toolbar { display: flex; align-items: center; gap: 16px; margin: 28px 0 30px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; transition: all .15s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip.on { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 8px 18px -10px rgba(255,106,26,.7); }
.search-box {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line-2);
  border-radius: 999px; padding: 9px 16px; min-width: 200px;
}
.search-box input { border: 0; outline: 0; font-family: inherit; font-size: 14px; width: 130px; color: var(--ink); background: none; }
.search-box svg { width: 16px; height: 16px; color: var(--ink-3); }

/* 创建专属员工 — 待开放 */
.create-soon { background: var(--paper-3); color: var(--ink-3); cursor: not-allowed; box-shadow: none; }
.create-soon:hover { transform: none; box-shadow: none; background: var(--paper-3); }
.soon-tag { margin-left: 9px; font-size: 11px; font-weight: 700; background: var(--ink-3); color: #fff; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }

/* the 工牌 grid */
.badge-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 90px; }
@media (max-width: 1080px) { .badge-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px)  { .badge-grid { grid-template-columns: 1fr; } }

.idcard {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 22px 22px; text-align: center; cursor: pointer;
  transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s, border-color .22s;
}
.idcard:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgba(23,24,28,.45); border-color: var(--orange-line); }

/* lanyard clip at top */
.idcard .clip {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 20px; display: flex; justify-content: center;
}
.idcard .clip::before { content: ""; width: 40px; height: 14px; background: #d9d7d1; border-radius: 6px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.idcard .clip::after  { content: ""; position: absolute; top: 6px; width: 16px; height: 9px; border: 2.5px solid #c4c2bc; border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--paper-2); }

/* rarity badge */
.rarity {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  font-family: var(--font-display); font-size: 16px; color: #fff; line-height: 1;
  padding: 7px 10px 6px; border-radius: 9px 9px 9px 3px;
}
.rarity::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 6px 14px -6px var(--rg); }

.idcard .avatar {
  width: 120px; height: 120px; margin: 6px auto 14px; border-radius: 22px; overflow: hidden;
  background: var(--bg, #2E7D6F); display: grid; place-items: center; box-shadow: 0 16px 30px -16px rgba(23,24,28,.4);
}
.idcard .avatar image-slot { width: 100%; height: 100%; display: block; }
.idcard .nm { font-size: 22px; font-weight: 700; }
.idcard .rl { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }
.idcard .role-pill {
  display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--orange-deep);
  background: var(--orange-soft); padding: 4px 11px; border-radius: 999px;
}
.idcard .desc { font-size: 13px; line-height: 1.65; color: var(--ink-2); margin: 14px 4px 18px; min-height: 64px; }

.stat-row { display: flex; border-top: 1px solid var(--line); padding-top: 16px; }
.stat-row .st { flex: 1; }
.stat-row .st + .st { border-left: 1px solid var(--line); }
.stat-row .sv { font-family: var(--font-display); font-size: 22px; color: var(--ink); }
.stat-row .sl { font-size: 11px; color: var(--ink-3); margin-top: 2px; letter-spacing: .08em; }

.hire-btn {
  margin-top: 18px; width: 100%; border-radius: 12px; padding: 13px; font-weight: 700; font-size: 15px;
  background: var(--ink); color: #fff; border: 0; transition: background .16s, transform .12s;
}
.hire-btn:hover { background: #000; }
.hire-btn.hired { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.hire-btn.hired:hover { border-color: var(--orange); color: var(--orange-deep); }
.hire-btn:active { transform: translateY(1px); }
.hire-btn.soon { background: var(--orange-soft); color: var(--orange-deep); }
.hire-btn.soon:hover { background: var(--orange-line); }

.empty-state { text-align: center; padding: 90px 0; color: var(--ink-3); }
.empty-state .display { font-size: 34px; color: var(--ink-2); margin-bottom: 8px; }

/* market section on home */
.market-section { background: var(--paper); }
.market-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; flex-wrap: wrap; }
.market-head .section-sub { margin-top: 14px; }
.market-head .btn { flex: 0 0 auto; }

/* ---------- detail page ---------- */
.detail-page { background: var(--paper); min-height: 100vh; }
.detail-back {
  position: sticky; top: var(--nav-h); z-index: 40; background: rgba(255,255,255,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.detail-back .wrap { display: flex; align-items: center; gap: 14px; height: 58px; }
.detail-back button { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.detail-back button:hover { color: var(--ink); }

.detail-hero { padding: 52px 0 30px; }
.detail-grid { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; gap: 32px; } }

.big-idcard {
  position: sticky; top: calc(var(--nav-h) + 80px);
  border-radius: 28px; padding: 30px; color: #fff; overflow: hidden;
  background: var(--bg, #2E7D6F); box-shadow: 0 40px 80px -36px rgba(23,24,28,.6);
}
.big-idcard .rarity { position: static; display: inline-block; margin-bottom: 18px; }
.big-idcard .ava { width: 100%; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: rgba(255,255,255,.14); }
.big-idcard .ava image-slot { width: 100%; height: 100%; display: block; }
.big-idcard .bn { font-size: 30px; font-weight: 700; margin-top: 18px; }
.big-idcard .bt { font-size: 14px; opacity: .82; margin-top: 4px; }
.big-idcard .bstats { display: flex; gap: 10px; margin-top: 20px; }
.big-idcard .bstats .b { flex: 1; background: rgba(255,255,255,.14); border-radius: 12px; padding: 12px 8px; text-align: center; }
.big-idcard .bstats .bv { font-family: var(--font-display); font-size: 22px; }
.big-idcard .bstats .bl { font-size: 11px; opacity: .76; margin-top: 2px; }
.big-idcard.light { color: var(--ink); }
.big-idcard.light .bstats .b { background: rgba(0,0,0,.06); }

.detail-main .d-eyebrow { color: var(--orange-deep); font-weight: 700; letter-spacing: .1em; font-size: 14px; }
.detail-main h1.display { font-size: clamp(40px, 5vw, 64px); margin: 10px 0 6px; }
.detail-main .persona { font-size: 19px; color: var(--ink); font-weight: 500; }
.detail-main .bio { font-size: 17px; line-height: 1.85; color: var(--ink-2); margin: 22px 0 34px; max-width: 620px; }

.d-block { margin-bottom: 38px; }
.d-block h3 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.skill { margin-bottom: 16px; }
.skill .sk-top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 7px; }
.skill .sk-top b { font-weight: 600; }
.skill .sk-top span { color: var(--ink-3); font-family: var(--font-display); }
.skill .bar { height: 8px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.skill .bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--orange-deep)); width: 0; transition: width 1s cubic-bezier(.2,.7,.2,1); }
.duties { display: flex; flex-wrap: wrap; gap: 10px; }
.duties span { background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 14px; color: var(--ink); font-weight: 500; }

.works-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.works-row image-slot { width: 100%; aspect-ratio: 4/3; }

.detail-cta {
  margin-top: 8px; display: flex; gap: 14px; align-items: center; padding: 26px; border-radius: 20px;
  background: var(--ink); flex-wrap: wrap;
}
.detail-cta .ct-txt { color: #fff; flex: 1; }
.detail-cta .ct-txt .ct-h { font-family: var(--font-display); font-size: 24px; }
.detail-cta .ct-txt .ct-s { color: rgba(255,255,255,.66); font-size: 14px; margin-top: 4px; }
