/* JobLeft · 好工作向左 */

:root {
  --bg: #f4f6fb;
  --panel: #ffffff;
  --panel-2: #fafbfe;
  --panel-3: #f1f3f9;
  --text: #14161c;
  --text-2: #5a6172;
  --text-3: #8b92a2;
  --border: #e5e8f0;
  --border-strong: #d5dae6;
  --brand: #3b5bff;
  --brand-2: #6b83ff;
  --brand-soft: #eef1ff;
  --accent: #ff6b35;
  --accent-soft: #fff1ea;
  --green: #0e9f6e;
  --green-soft: #e8f7f1;
  --amber: #f59e0b;
  --amber-soft: #fef6e7;
  --danger: #e5484d;
  --shadow-sm: 0 1px 2px rgba(20, 22, 28, .05);
  --shadow: 0 1px 3px rgba(20, 22, 28, .05), 0 10px 28px rgba(20, 22, 28, .07);
  --shadow-lg: 0 24px 64px rgba(20, 22, 28, .16);
  --radius: 14px;
  --radius-sm: 9px;
  --side-w: 236px;
}

html[data-theme='dark'] {
  --bg: #0d0f14;
  --panel: #16191f;
  --panel-2: #1b1f27;
  --panel-3: #21252f;
  --text: #eceef4;
  --text-2: #a4abb9;
  --text-3: #767e8d;
  --border: #262b35;
  --border-strong: #333a47;
  --brand: #7086ff;
  --brand-2: #8b9cff;
  --brand-soft: #1d2338;
  --accent: #ff8a5c;
  --accent-soft: #2c1f19;
  --green: #34c98e;
  --green-soft: #142a23;
  --amber: #f0b445;
  --amber-soft: #2b2415;
  --danger: #ff6b6f;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
svg.ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hidden { display: none !important; }

/* ---------- 骨架 ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--side-w);
  flex: 0 0 var(--side-w);
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 2px 4px 0; }
.brand-mark { width: 34px; height: 34px; color: var(--brand); flex: none; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 17px; letter-spacing: -.2px; }
.brand-text span { font-size: 11.5px; color: var(--text-3); letter-spacing: 1px; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 10px;
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  text-align: left; width: 100%;
  transition: background .14s, color .14s;
}
.nav-item:hover { background: var(--panel-3); color: var(--text); }
.nav-item.is-active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item .ico { flex: none; }
.nav-item span { flex: 1; }
.nav-badge {
  font-style: normal; font-size: 11px; font-weight: 600;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--panel-3); color: var(--text-3);
}
.nav-item.is-active .nav-badge { background: var(--brand); color: #fff; }

.side-block { flex: 1; min-height: 0; }
.side-title { font-size: 11px; letter-spacing: 1px; color: var(--text-3); padding: 0 6px 8px; font-weight: 600; }
.side-scenes { display: flex; flex-direction: column; gap: 1px; }
.side-scene {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 6px 8px; border-radius: 8px;
  font-size: 12.5px; color: var(--text-2); text-align: left;
}
.side-scene:hover { background: var(--panel-3); color: var(--text); }
.side-scene i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.side-scene em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--text-3); }
.side-scene.is-active { color: var(--brand); font-weight: 600; background: var(--brand-soft); }

.side-foot {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--text-3); padding: 0 6px 2px;
}
.side-foot .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 26px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-text { flex: 1; min-width: 0; }
.topbar-text h1 { margin: 0; font-size: 19px; letter-spacing: -.3px; }
.topbar-text p { margin: 1px 0 0; font-size: 12.5px; color: var(--text-3); }
.topbar-actions { display: flex; gap: 8px; }

.icon-btn {
  position: relative;
  width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--panel); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: .14s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; border-color: transparent; background: var(--panel-3); }
.icon-btn .dot-ind {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); opacity: 0;
  box-shadow: 0 0 0 2px var(--panel);
}
.icon-btn .dot-ind.on { opacity: 1; }

.content { padding: 24px 26px 64px; max-width: 1180px; width: 100%; }

/* ---------- 搜索页 ---------- */
.hero { margin-bottom: 22px; }
.hero-title { margin: 4px 0 6px; font-size: 27px; letter-spacing: -.6px; line-height: 1.3; }
.hero-sub { margin: 0 0 18px; color: var(--text-2); font-size: 13.5px; max-width: 620px; }

.composer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 14px;
  transition: border-color .16s, box-shadow .16s;
}
.composer:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.composer textarea {
  width: 100%; border: none; outline: none; resize: vertical;
  background: transparent; font-size: 15px; line-height: 1.7;
  min-height: 62px; padding: 2px 4px 8px;
}
.composer textarea::placeholder { color: var(--text-3); }

.composer-preview {
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-3); border-radius: 11px;
  padding: 8px 10px; margin: 4px 0 10px;
}
.composer-preview img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; background: var(--panel); }
.preview-text { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.preview-text strong { font-size: 12.5px; }
.preview-text span { font-size: 11.5px; color: var(--text-3); }

.composer-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 4px 10px; }
.chip {
  font-size: 12px; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-2);
  background: var(--panel-2); transition: .14s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }

.composer-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.composer-tools { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }

.tool-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--panel-2);
  color: var(--text-2); font-size: 12.5px; transition: .14s;
}
.tool-btn:hover { border-color: var(--brand); color: var(--brand); }

.switch {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px 5px 6px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--panel-2);
  color: var(--text-2); font-size: 12.5px; transition: .14s;
}
.switch i {
  width: 30px; height: 17px; border-radius: 999px; background: var(--border-strong);
  position: relative; transition: background .18s; flex: none;
}
.switch i::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 13px; height: 13px; border-radius: 50%; background: #fff;
  transition: transform .18s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
}
.switch[data-on='true'] { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.switch[data-on='true'] i { background: var(--brand); }
.switch[data-on='true'] i::after { transform: translateX(13px); }
.switch.icon-only { padding: 5px 6px; }
.switch.icon-only span { display: none; }

.model-tag {
  font-size: 11.5px; color: var(--text-3);
  padding: 5px 10px; border-radius: 999px; background: var(--panel-3);
  white-space: nowrap;
}

.primary-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 18px; border-radius: 11px;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 6px 16px rgba(59, 91, 255, .28);
  transition: .16s;
}
.primary-btn:hover { background: #2f4ce6; transform: translateY(-1px); }
.primary-btn:disabled { opacity: .6; cursor: default; transform: none; box-shadow: none; }
.primary-btn.full { width: 100%; justify-content: center; }
html[data-theme='dark'] .primary-btn { box-shadow: 0 6px 16px rgba(112, 134, 255, .22); }

.samples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sample {
  font-size: 12.5px; color: var(--text-2);
  padding: 7px 13px; border-radius: 999px;
  background: var(--panel); border: 1px dashed var(--border-strong);
  transition: .14s;
}
.sample:hover { color: var(--brand); border-color: var(--brand); border-style: solid; background: var(--brand-soft); }

/* AI 解读卡 */
.output { display: flex; flex-direction: column; gap: 16px; }
.ai-card {
  background: linear-gradient(180deg, var(--brand-soft), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.ai-card-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.ai-avatar {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  background: var(--brand); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.ai-title { font-size: 14px; font-weight: 600; margin: 2px 0 0; line-height: 1.55; flex: 1; }
.ai-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 10px 0 0; }
.scene-pill {
  font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  background: var(--brand); color: #fff;
}
.kw {
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  background: var(--panel-3); color: var(--text-2);
}
.ai-reason { font-size: 12.5px; color: var(--text-2); margin: 8px 0 0; }
.ai-block { margin-top: 14px; }
.ai-block-title { font-size: 11.5px; letter-spacing: .6px; color: var(--text-3); font-weight: 600; margin-bottom: 7px; }
.ai-list { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.ai-list li { margin: 3px 0; }
.ai-warn {
  margin-top: 12px; font-size: 12.5px;
  background: var(--amber-soft); color: #8a5a00;
  border-radius: 10px; padding: 9px 12px;
}
html[data-theme='dark'] .ai-warn { color: var(--amber); }
.ai-scale {
  margin-top: 12px; font-size: 12.5px;
  background: var(--panel-3); border-radius: 10px; padding: 9px 12px; color: var(--text-2);
  border-left: 3px solid var(--brand);
}
.notice-bar {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; padding: 9px 13px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.sources { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.sources summary {
  padding: 12px 16px; font-size: 13px; font-weight: 600; cursor: pointer;
  color: var(--text-2); list-style: none;
}
.sources summary::-webkit-details-marker { display: none; }
.sources[open] summary { border-bottom: 1px solid var(--border); color: var(--text); }
.source-item { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.source-item:last-child { border-bottom: none; }
.source-item a { font-size: 13px; color: var(--brand); text-decoration: none; font-weight: 500; }
.source-item a:hover { text-decoration: underline; }
.source-item p { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }

/* ---------- 岗位卡片 ---------- */
.job-list { display: flex; flex-direction: column; gap: 12px; }
.job-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: .16s;
}
.job-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.job-head { display: flex; align-items: flex-start; gap: 12px; }
.job-logo {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff;
}
.job-titles { flex: 1; min-width: 0; }
.job-titles h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.2px; line-height: 1.45; }
.job-company { font-size: 12.5px; color: var(--text-3); margin-top: 1px; }

.fav-btn {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border-radius: 9px; font-size: 12.5px;
  border: 1px solid var(--border); color: var(--text-2); background: var(--panel-2);
  transition: .14s; white-space: nowrap;
}
.fav-btn:hover { border-color: var(--accent); color: var(--accent); }
.fav-btn.is-on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 500; }
.fav-btn .ico { width: 14px; height: 14px; }
.fav-btn.is-on .ico { fill: currentColor; }

.job-meta { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 12px 0 0; }
.scene-badge {
  font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px;
  color: #fff; background: var(--brand);
}
.time-badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
.time-badge .clock { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.time-badge.fresh { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .72; } }
.meta-item { font-size: 12px; color: var(--text-2); background: var(--panel-3); padding: 3px 9px; border-radius: 6px; }
.meta-item.salary { color: var(--green); background: var(--green-soft); font-weight: 600; }

.job-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.job-tag { font-size: 11.5px; color: var(--text-3); border: 1px solid var(--border); padding: 2px 8px; border-radius: 6px; }
.job-desc { margin: 10px 0 0; font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.job-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--border);
  font-size: 11.5px; color: var(--text-3);
}
.heat { display: inline-flex; align-items: center; gap: 5px; }
.heat-bar { width: 52px; height: 4px; border-radius: 2px; background: var(--panel-3); overflow: hidden; }
.heat-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--accent)); }

.match-row { display: flex; align-items: center; gap: 10px; margin-top: 11px; }
.match-score {
  flex: none; font-size: 12px; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); border-radius: 7px; padding: 3px 9px;
}
.match-why { font-size: 12.5px; color: var(--text-2); flex: 1; }

.follow-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--border); }
.follow-tools select, .follow-tools input {
  border: 1px solid var(--border); background: var(--panel-2); border-radius: 8px;
  padding: 6px 9px; font-size: 12px; outline: none;
}
.follow-tools select:focus, .follow-tools input:focus { border-color: var(--brand); }
.follow-tools input { flex: 1; min-width: 140px; }
.follow-time { font-size: 11.5px; color: var(--text-3); margin-left: auto; }

/* ---------- 过滤/工具条 ---------- */
.filters {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px;
}
.filter-scenes { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field span { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.field select, .field input {
  border: 1px solid var(--border); background: var(--panel-2); border-radius: 9px;
  padding: 8px 11px; font-size: 13px; outline: none; min-width: 118px;
}
.field select:focus, .field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field.grow { flex: 1; min-width: 180px; }
.field.grow input { width: 100%; min-width: 0; }

.list-head { display: flex; align-items: center; gap: 10px; margin: 0 2px 12px; font-size: 12.5px; color: var(--text-3); }
.list-head .hint { margin-left: auto; }
.load-more { display: flex; justify-content: center; padding: 22px 0; }
.ghost-btn {
  padding: 8px 18px; border-radius: 10px; font-size: 13px;
  border: 1px solid var(--border); background: var(--panel); color: var(--text-2);
  transition: .14s;
}
.ghost-btn:hover { border-color: var(--brand); color: var(--brand); }
.ghost-btn.danger:hover { border-color: var(--danger); color: var(--danger); }

/* ---------- 关注页 ---------- */
.follow-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.follow-tabs { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.follow-actions { display: flex; gap: 8px; }

/* ---------- 空态 ---------- */
.empty {
  text-align: center; padding: 56px 20px; color: var(--text-3);
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--panel-2);
}
.empty strong { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 5px; }
.empty p { margin: 0; font-size: 12.5px; }

/* ---------- 骨架屏 ---------- */
.skeleton { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.sk-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--panel-3) 25%, var(--panel-2) 50%, var(--panel-3) 75%); background-size: 300% 100%; animation: shimmer 1.4s infinite; margin-bottom: 10px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- 抽屉 ---------- */
.mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(12, 14, 20, .42); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.mask.on { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 61;
  width: min(430px, 100vw);
  background: var(--panel); border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%); transition: transform .26s cubic-bezier(.32, .72, 0, 1);
  display: flex; flex-direction: column;
}
.drawer.on { transform: none; }
.drawer-head {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.drawer-head h3 { margin: 0; font-size: 15.5px; flex: 1; }
.drawer-body { padding: 18px; overflow-y: auto; flex: 1; }
.drawer-note { font-size: 12.5px; color: var(--text-3); line-height: 1.7; margin: 12px 0 18px; }
.drawer-note.small { font-size: 11.5px; margin: 20px 0 0; }
.drawer-actions { margin-top: 22px; }
.drawer-stat { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-3); line-height: 1.9; }

.identity-card { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 48px; height: 48px; border-radius: 15px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff; font-size: 19px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.identity-card strong { display: block; font-size: 15px; }
.identity-card span { font-size: 11.5px; color: var(--text-3); word-break: break-all; }

.account-line {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-2);
}
.account-line .ghost-btn { padding: 5px 12px; font-size: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .field:first-child { grid-column: 1 / -1; }
.form-grid input, .form-grid select {
  border: 1px solid var(--border); background: var(--panel-2); border-radius: 9px;
  padding: 9px 11px; font-size: 13px; outline: none; width: 100%;
}
.form-grid input:focus, .form-grid select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

.field-block { margin-top: 18px; }
.block-label { display: flex; align-items: center; font-size: 11.5px; color: var(--text-3); font-weight: 500; margin-bottom: 8px; }
.block-label em { font-style: normal; margin-left: auto; color: var(--brand); font-weight: 600; }
.chips-select { display: flex; flex-wrap: wrap; gap: 6px; }

.radio-list { display: flex; flex-direction: column; gap: 7px; }
.radio-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 10px 12px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--panel-2); transition: .14s;
}
.radio-item:hover { border-color: var(--brand); }
.radio-item.is-on { border-color: var(--brand); background: var(--brand-soft); }
.radio-item .radio-dot {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; transition: .14s;
}
.radio-item.is-on .radio-dot { border-color: var(--brand); border-width: 5px; }
.radio-text { display: flex; flex-direction: column; line-height: 1.4; }
.radio-text strong { font-size: 13px; font-weight: 600; }
.radio-text span { font-size: 11.5px; color: var(--text-3); }

.set-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.set-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.set-text strong { font-size: 13.5px; font-weight: 600; }
.set-text span { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

input[type='range'] { width: 100%; accent-color: var(--brand); }

.seg { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg button {
  flex: 1; padding: 9px 0; font-size: 12.5px; color: var(--text-2);
  background: var(--panel-2); transition: .14s;
}
.seg button + button { border-left: 1px solid var(--border); }
.seg button.is-on { background: var(--brand); color: #fff; font-weight: 600; }

/* ---------- Toast ---------- */
.toasts {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 11px; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: rise .24s ease-out;
  max-width: 78vw;
}
.toast.err { background: var(--danger); color: #fff; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 两层标签：渠道标 + 场景标 ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.open-jd { margin-left: auto; color: var(--brand); font-weight: 600; }
.match-why-label { font-size: 11.5px; font-weight: 600; color: var(--brand); flex: none; }
.plaza-grid > .empty { grid-column: 1 / -1; }
.job-meta.sub { margin-top: 6px; }
.modal-foot .foot-time { font-size: 11.5px; color: var(--text-3); }
a.primary-btn.as-link { text-decoration: none; }

.tag-channel {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; padding: 3px 9px 3px 7px;
  border-radius: 6px;
  background: var(--panel-3); color: var(--text-2);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.tag-channel::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ch-tone, var(--brand)); flex: none;
}
.tag-channel.official { background: var(--brand-soft); color: var(--brand); border-color: color-mix(in srgb, var(--brand) 28%, transparent); }

.tag-family {
  font-size: 11.5px; padding: 3px 9px; border-radius: 6px;
  border: 1px dashed var(--border-strong); color: var(--text-3);
  white-space: nowrap;
}

.tag-match {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  white-space: nowrap;
}
.tag-match.high { background: var(--green-soft); color: var(--green); border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.tag-match.low { background: var(--panel-3); color: var(--text-3); border-color: var(--border); }

.tag-label {
  font-size: 10.5px; color: var(--text-3); letter-spacing: .4px;
  padding-right: 1px;
}

/* ---------- 广场：1 排 2 列 ---------- */
.plaza-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.plaza-grid .job-card { display: flex; flex-direction: column; cursor: pointer; padding: 15px 16px; }
.plaza-grid .job-card .job-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 2px;
}
.plaza-grid .job-card .job-foot { margin-top: auto; }
.plaza-grid .job-logo { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.plaza-grid .job-titles h3 { font-size: 14.5px; }
.plaza-grid .fav-btn { padding: 5px 10px; font-size: 12px; }
.plaza-grid .fav-btn span { display: none; }
@media (max-width: 760px) { .plaza-grid { grid-template-columns: 1fr; } }

/* ---------- 通用蒙层弹窗 ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(12, 14, 20, .5); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.overlay.on { opacity: 1; pointer-events: auto; }
.modal {
  width: min(680px, 100%); max-height: min(88vh, 920px);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px) scale(.98);
  transition: transform .24s cubic-bezier(.32, .72, 0, 1);
}
.overlay.on .modal { transform: none; }
.modal.wide { width: min(860px, 100%); }
.modal-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 20px 14px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--brand-soft), var(--panel));
}
.modal-head .job-titles h3 { font-size: 17px; }
.modal-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 13px 20px; border-top: 1px solid var(--border);
  background: var(--panel-2);
}
.modal-foot .spacer { flex: 1; }
@media (max-width: 560px) {
  .overlay { padding: 12px; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 18px 18px 14px 14px; }
}

/* JD 详情 */
.jd-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px; background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; margin-top: 14px;
}
.jd-grid > div { background: var(--panel); padding: 10px 13px; }
.jd-grid span { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.jd-grid strong { font-size: 13px; font-weight: 600; }
.jd-grid strong.salary { color: var(--green); }
.jd-section { margin-top: 16px; }
.jd-section h4 {
  margin: 0 0 8px; font-size: 11.5px; letter-spacing: .6px;
  color: var(--text-3); font-weight: 600;
}
.jd-section p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.75; }
.jd-note {
  margin-top: 14px; font-size: 12px; color: var(--text-3);
  background: var(--panel-3); border-radius: 10px; padding: 10px 13px; line-height: 1.7;
}
.jd-note a { color: var(--brand); }

/* ---------- 简历卡 ---------- */
.resume-card {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding: 11px 14px;
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: 12px; box-shadow: var(--shadow-sm);
}
.resume-card .rc-main { flex: 1; min-width: 200px; }
.resume-card strong { display: block; font-size: 13px; margin-bottom: 3px; }
.resume-card .rc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.resume-card .rc-chip {
  font-size: 11px; padding: 2px 8px; border-radius: 5px;
  background: var(--panel-3); color: var(--text-2);
}
.resume-card .rc-chip.is-degree { background: var(--green-soft); color: var(--green); font-weight: 600; }
.resume-card .rc-hint { font-size: 11.5px; color: var(--text-3); }

.resume-mini { display: flex; flex-direction: column; gap: 8px; }
.resume-mini .rm-box {
  border: 1px solid var(--border); background: var(--panel-2);
  border-radius: 10px; padding: 10px 12px; font-size: 12px; color: var(--text-2);
}
.resume-mini .rm-box.empty-state { color: var(--text-3); border-style: dashed; }
.resume-mini .rm-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.resume-mini .rm-chip { font-size: 11px; padding: 2px 8px; border-radius: 5px; background: var(--panel-3); color: var(--text-2); }

.resume-paste { display: flex; flex-direction: column; gap: 12px; }
.resume-paste textarea {
  width: 100%; min-height: 220px; resize: vertical;
  border: 1px solid var(--border); background: var(--panel-2);
  border-radius: 12px; padding: 12px 14px; font-size: 13px;
  line-height: 1.7; outline: none;
}
.resume-paste textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.resume-paste .rp-tip { font-size: 12px; color: var(--text-3); line-height: 1.7; }

/* ---------- 最近简历 · 文件占位卡 ---------- */
.rf-file {
  display: flex; align-items: center; gap: 12px; flex: none;
  min-width: 224px; max-width: 300px;
  padding: 9px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  transition: .14s;
}
.rf-file:hover { border-color: var(--green); background: var(--green-soft); }
.rf-icon {
  width: 40px; height: 46px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
  color: #fff; background: var(--brand);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14);
}
.rf-file.pdf .rf-icon { background: #e5484d; }
.rf-file.word .rf-icon { background: #2b73f0; }
.rf-file.img .rf-icon { background: var(--green); }
.rf-file.text .rf-icon { background: var(--text-3); }
.rf-info { min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.rf-info strong { font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rf-info span { font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resume-card .rc-actions { display: flex; gap: 8px; flex: none; }
.resume-card .rc-actions .ghost-btn { padding: 6px 12px; font-size: 12px; border-radius: 9px; }

/* ---------- 能力抽屉：Agent / MCP / Skill ---------- */
.cap-note {
  font-size: 12px; color: var(--text-2); line-height: 1.7;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  border-radius: 11px; padding: 10px 13px; margin-bottom: 16px;
}
.cap-section { margin-bottom: 18px; }
.cap-title {
  font-size: 11.5px; letter-spacing: .8px; color: var(--text-3);
  font-weight: 600; margin-bottom: 9px;
  display: flex; align-items: center; gap: 8px;
}
.cap-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.cap-section > div:last-child { display: flex; flex-direction: column; gap: 8px; }
.cap-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 12px;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--panel-2);
  transition: .14s;
}
.cap-item:hover { border-color: var(--border-strong); background: var(--panel); }
.cap-item.sm { padding: 9px 11px; }
.cap-badge {
  flex: none; margin-top: 1px;
  font-size: 10px; font-weight: 800; letter-spacing: .4px;
  padding: 3px 7px; border-radius: 6px;
  background: var(--brand); color: #fff; white-space: nowrap;
}
.cap-badge.fine { background: var(--green); }
.cap-badge.soft { background: var(--panel-3); color: var(--text-3); border: 1px solid var(--border); }
.cap-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cap-name { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; }
.cap-name em {
  font-style: normal; font-size: 10.5px; font-weight: 600;
  color: var(--green); background: var(--green-soft);
  padding: 1px 7px; border-radius: 999px; margin-left: 5px; white-space: nowrap;
}
.cap-tagline { font-size: 12px; color: var(--text-2); line-height: 1.55; }
.cap-flow {
  font-size: 11px; color: var(--brand);
  background: var(--brand-soft);
  border-radius: 7px; padding: 4px 8px; margin-top: 1px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all; line-height: 1.5;
}
.cap-model {
  font-size: 10.5px; color: var(--text-3);
  background: var(--panel-3); border-radius: 6px; padding: 2px 8px;
  align-self: flex-start; margin-top: 1px;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .app { flex-direction: column; }
  .sidebar {
    width: 100%; flex: none; height: auto; position: static;
    flex-direction: row; align-items: center; gap: 12px;
    padding: 10px 14px; overflow-x: auto;
    border-right: none; border-bottom: 1px solid var(--border);
  }
  .brand { flex: none; }
  .brand-text span { display: none; }
  .nav { flex-direction: row; flex: none; }
  .nav-item { width: auto; padding: 8px 12px; }
  .nav-item span { white-space: nowrap; }
  .side-block { display: none; }
  .side-foot { display: none; }
  .topbar { padding: 14px 16px; }
  .content { padding: 18px 16px 56px; }
  .hero-title { font-size: 21px; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .composer-bar { flex-direction: column; align-items: stretch; }
  .primary-btn { justify-content: center; }
  .job-head { flex-wrap: wrap; }
  .fav-btn { margin-left: auto; }
  .resume-card { flex-direction: column; align-items: stretch; }
  .resume-card .rf-file { max-width: none; width: 100%; }
  .resume-card .rc-actions { width: 100%; }
  .resume-card .rc-actions .ghost-btn { flex: 1; justify-content: center; }
}
