:root {
  --blue: #06357d;
  --blue-2: #0a4aa3;
  --red: #e1062c;
  --ink: #142033;
  --muted: #6d7890;
  --line: #dce5f3;
  --bg: #f3f6fb;
  --panel: #ffffff;
  --green: #11a36a;
  --amber: #e19a10;
  --shadow: 0 18px 50px rgba(6, 53, 125, .13);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at 18% 10%, rgba(225, 6, 44, .08), transparent 30%), linear-gradient(135deg, #f7f9fd 0%, #eef4fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.boot { min-height: 100vh; display: grid; place-items: center; gap: 18px; align-content: center; }
.boot img { width: min(360px, 78vw); }
.boot-title { font-size: 28px; font-weight: 900; color: var(--blue); }
.loader { width: 52px; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--red)); animation: pulse 1s infinite ease-in-out alternate; }
@keyframes pulse { from { transform: scaleX(.35); opacity: .45; } to { transform: scaleX(1); opacity: 1; } }

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 430px;
}
.login-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 5vw, 76px);
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 16%, rgba(112, 165, 255, .24), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(225, 6, 44, .12), transparent 24%),
    linear-gradient(135deg, #06245c 0%, #07377f 48%, #0b4b97 100%);
}
.login-visual:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(140deg, rgba(0,0,0,.72), transparent 72%);
  pointer-events: none;
}
.login-visual:after {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -28%;
  width: min(620px, 64vw);
  height: min(620px, 64vw);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), transparent 45%),
    radial-gradient(circle, rgba(225, 6, 44, .16), transparent 62%);
  filter: blur(1px);
  pointer-events: none;
}
.login-logo {
  position: relative;
  z-index: 1;
  width: min(300px, 58vw);
  padding: 12px 18px;
  background: rgba(255,255,255,.96);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 22, 67, .24);
  border: 1px solid rgba(255,255,255,.55);
}
.brand-block { position: relative; z-index: 1; margin-top: clamp(54px, 9vh, 110px); max-width: 720px; }
.brand-kicker { display: inline-flex; padding: 8px 13px; border: 1px solid rgba(255,255,255,.28); border-radius: 99px; color: #e8f1ff; background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.brand-block h1 { margin: 22px 0 12px; font-size: clamp(62px, 9.2vw, 118px); line-height: .92; letter-spacing: 0; text-shadow: 0 18px 36px rgba(0, 19, 57, .24); }
.brand-block p { margin: 0; font-size: 18px; color: #eaf2ff; }
.signal-grid { position: absolute; z-index: 1; left: clamp(30px, 5vw, 76px); right: clamp(30px, 5vw, 76px); bottom: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.signal-grid div { padding: 18px; border: 1px solid rgba(255,255,255,.18); background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.07)); border-radius: 8px; backdrop-filter: blur(14px); box-shadow: 0 18px 36px rgba(0, 22, 67, .12); }
.signal-grid b { display: block; font-size: 26px; }
.signal-grid span { color: #dbe8ff; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 42px; background: linear-gradient(180deg, #ffffff, #f8fbff); box-shadow: -18px 0 48px rgba(6, 53, 125, .08); }
.login-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; padding: 6px; background: #eef4fb; border-radius: 8px; }
.login-tabs button, .platform-switch button { border: 0; padding: 12px; border-radius: 6px; background: transparent; color: var(--muted); }
.login-tabs button.active, .platform-switch button.active { color: white; background: var(--blue); box-shadow: 0 10px 24px rgba(6, 53, 125, .22); }
.login-form, .stack-form { display: grid; gap: 16px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  outline: none;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.65; }
input:focus, select:focus, textarea:focus { border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(10, 74, 163, .1); }
.primary, .ghost, .icon-btn {
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 800;
}
.primary { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-2)); box-shadow: 0 12px 24px rgba(6, 53, 125, .22); }
.primary:hover { filter: brightness(1.04); }
.ghost { color: var(--blue); background: #eef4fb; }
.wide { width: 100%; }
.small { padding: 7px 10px; font-size: 12px; }
.form-error { margin: 0; color: var(--red); }
.login-tip { margin-top: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.layout { min-height: 100vh; display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px;
  color: white;
  background: linear-gradient(180deg, #062d74 0%, #08265d 100%);
  overflow-y: auto;
}
.side-brand { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 8px; background: rgba(255,255,255,.08); }
.side-brand img { width: 72px; height: 48px; object-fit: contain; padding: 4px; background: white; border-radius: 6px; }
.side-brand b { display: block; font-size: 22px; }
.side-brand span, .joint { color: #c8d9f8; font-size: 12px; }
.platform-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 18px 0; padding: 6px; background: rgba(255,255,255,.1); border-radius: 8px; }
nav { display: grid; gap: 8px; }
nav button {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  color: #dce8ff;
  text-align: left;
  background: transparent;
}
nav button.active, nav button:hover { color: white; background: linear-gradient(90deg, rgba(225, 6, 44, .9), rgba(10, 74, 163, .45)); }
.joint { position: absolute; left: 18px; right: 18px; bottom: 18px; padding: 12px; border-top: 1px solid rgba(255,255,255,.16); }
.main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(190px, .8fr) minmax(360px, 1.1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  background: rgba(243, 246, 251, .88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220, 229, 243, .8);
}
.topbar-title { min-width: 0; }
.topbar h2 { margin: 0; font-size: 24px; }
.topbar p { margin: 4px 0 0; color: var(--muted); }
.global-search { position: relative; display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 8px; align-items: center; }
.global-search input { height: 42px; padding-left: 40px; background: #fff url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236d7890' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 13px 50%; }
.global-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 12;
  display: none;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.global-results.show { display: grid; }
.global-results button { display: grid; gap: 3px; padding: 11px 13px; border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; }
.global-results button:hover { background: #f4f8ff; }
.global-results b { color: var(--blue); }
.global-results span { color: var(--muted); font-size: 12px; }
.quickbar { display: flex; gap: 8px; align-items: center; }
.quickbar button {
  border: 1px solid rgba(10, 74, 163, .16);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--blue);
  background: white;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(6, 53, 125, .06);
}
.quickbar button:hover { border-color: var(--blue-2); background: #f4f8ff; }
.userbox { position: relative; display: flex; align-items: center; gap: 10px; }
.userbox small { color: var(--muted); }
.password-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 20;
  width: 280px;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.password-popover label { font-size: 12px; }
.password-popover input { padding: 10px 11px; }
.mobile-menu { display: none; color: var(--blue); background: white; border: 1px solid var(--line); }
.content { padding: 24px 26px 46px; }
.metric-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.metric-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: 0 10px 24px rgba(6, 53, 125, .06);
}
.metric-section > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.metric-section b { color: var(--blue); font-size: 17px; }
.metric-section span { color: var(--muted); font-size: 13px; }
.metric-section.quality { border-color: rgba(225, 6, 44, .18); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-card {
  position: relative;
  min-height: 118px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 24px rgba(6, 53, 125, .06);
}
.stat-card:after { content: ""; position: absolute; right: -28px; bottom: -34px; width: 120px; height: 120px; border-radius: 50%; background: rgba(225, 6, 44, .08); }
.stat-card span { color: var(--muted); }
.stat-card strong { display: block; margin-top: 14px; font-size: 34px; color: var(--blue); }
.stat-card em { font-style: normal; color: var(--red); font-size: 12px; }
.stat-card.warn { border-color: rgba(225, 154, 16, .45); background: linear-gradient(180deg, #fff, #fff9ed); }
.stat-card.warn strong { color: var(--amber); }
.stat-card.danger { border-color: rgba(225, 6, 44, .36); background: linear-gradient(180deg, #fff, #fff4f6); }
.stat-card.danger strong { color: var(--red); }
.grid { display: grid; gap: 18px; margin-bottom: 18px; }
.grid > *, .match-grid > *, .profile-grid > * { min-width: 0; }
.grid.two { grid-template-columns: minmax(0, 1.55fr) minmax(320px, .8fr); }
.detail-grid { grid-template-columns: 420px minmax(0, 1fr); }
.account-grid { grid-template-columns: 360px minmax(0, 1fr); }
.match-grid { display: grid; grid-template-columns: 300px minmax(380px, .9fr) minmax(420px, 1.15fr); gap: 18px; }
.profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(6, 53, 125, .07);
}
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-title h3, .panel h3 { margin: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  color: var(--blue);
  background: #eef4fb;
  font-size: 12px;
  font-weight: 800;
}
.pill-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pill.model { color: #067647; background: #e8f7ef; }
.pill.warn { color: #9a3412; background: #fff4e6; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
th { color: var(--muted); font-weight: 700; background: #f8fbff; }
.selected-row td { background: #f4f8ff; }
.status-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 99px; font-size: 12px; font-weight: 900; }
.status-pill.active { color: #067647; background: #e8f7ef; }
.status-pill.disabled { color: #b42318; background: #fff1f0; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.health { padding: 5px 9px; border-radius: 99px; color: white; font-size: 12px; font-weight: 800; }
.health.健康 { background: var(--green); }
.health.正常 { background: var(--blue-2); }
.health.偏弱 { background: var(--amber); }
.health.预警 { background: var(--red); }
.health-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.health-board.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.health-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.health-card.偏弱 { border-color: rgba(225, 154, 16, .42); background: #fffaf0; }
.health-card.预警 { border-color: rgba(225, 6, 44, .35); background: #fff5f7; }
.health-drill {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}
.health-drill h4 { margin: 0 0 4px; font-size: 16px; }
.health-drill span { color: var(--muted); font-size: 12px; font-weight: 800; }
.health-drill strong { color: var(--blue); font-size: 26px; }
.health-card.偏弱 .health-drill strong { color: var(--amber); }
.health-card.预警 .health-drill strong { color: var(--red); }
.health-meter { height: 10px; margin: 12px 0; overflow: hidden; border-radius: 99px; background: #e8eef7; }
.health-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-2), var(--green)); }
.health-card.偏弱 .health-meter i { background: linear-gradient(90deg, var(--amber), #f5c15d); }
.health-card.预警 .health-meter i { background: linear-gradient(90deg, var(--red), #ff7c91); }
.health-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; color: var(--muted); font-size: 12px; }
.todo { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.todo b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; color: white; background: var(--blue); }
.meter, .bar-row em, .weight em { display: block; height: 9px; overflow: hidden; border-radius: 99px; background: #e8eef7; }
.meter span, .bar-row i, .weight i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-2), var(--red)); }
.funnel { display: grid; gap: 10px; }
.funnel div { display: grid; grid-template-columns: 100px 42px 1fr; gap: 12px; align-items: center; }
.funnel em { height: 26px; border-radius: 6px; background: linear-gradient(90deg, var(--blue-2), rgba(225, 6, 44, .7)); }

.candidate-list { display: grid; gap: 12px; }
.candidate {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 120px;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  transition: transform .16s ease, box-shadow .16s ease;
}
.candidate.batch { grid-template-columns: 34px 74px minmax(0, 1fr) 126px; }
.candidate.enhanced { grid-template-columns: 104px minmax(0, 1fr) 128px; align-items: start; background: linear-gradient(180deg, #fff, #f7fbff); }
.candidate:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.check-wrap { width: 24px; height: 24px; align-self: start; margin-top: 18px; }
.check-wrap input { position: absolute; width: 22px; height: 22px; opacity: 0; pointer-events: none; }
.check-wrap span {
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid #aebdd2;
  border-radius: 6px;
  background: white;
}
.check-wrap input:checked + span { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 5px white; }
.score-ring {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--red) var(--score), #e8eef7 0);
}
.score-ring b { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--blue); font-size: 18px; }
.score-ring span { display: none; }
.large-score { width: 92px; height: 92px; }
.large-score b { width: 68px; height: 68px; font-size: 28px; }
.large-score span { display: block; position: absolute; left: 0; right: 0; bottom: 8px; margin-top: 0; color: var(--muted); font-size: 11px; font-weight: 800; text-align: center; }
.candidate h4 { margin: 0; font-size: 17px; }
.candidate h4 em { margin-left: 10px; color: var(--blue); font-style: normal; font-size: 13px; }
.candidate p { margin: 6px 0 10px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--blue);
  background: #edf4ff;
  font-size: 12px;
  font-weight: 700;
}
.risk-tags span { color: #9a3412; background: #fff4e6; }
.candidate-side { display: grid; justify-items: end; gap: 6px; color: var(--muted); }
.candidate-side strong { color: var(--red); font-size: 20px; }
.recommend-reason {
  margin-top: 10px;
  padding: 10px 12px;
  border-left: 3px solid var(--red);
  border-radius: 6px;
  color: #44506a;
  background: #fff8f9;
  line-height: 1.55;
  font-size: 13px;
}
.candidate-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.candidate-meta span {
  padding: 5px 8px;
  border-radius: 6px;
  color: #536079;
  background: #f1f5fb;
  font-size: 12px;
  font-weight: 800;
}
.filters { display: flex; gap: 10px; min-width: min(720px, 62vw); }
.batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.batch-toolbar span { color: var(--muted); font-size: 13px; }
.batch-toolbar b { color: var(--blue); }
.batch-toolbar select { width: auto; min-width: 150px; padding: 8px 10px; }
.list-hint { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.detail-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.detail-head div { flex: 1; }
.detail-head h3 { margin: 0 0 4px; font-size: 24px; }
.detail-head p { margin: 0; color: var(--muted); }
.profile-card { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.avatar { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 8px; color: white; background: linear-gradient(135deg, var(--blue), var(--red)); font-size: 28px; font-weight: 900; }
.info { display: grid; grid-template-columns: 96px 1fr; gap: 10px 14px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; font-weight: 700; }
.inline-form { display: grid; grid-template-columns: 130px 130px 1fr auto; gap: 8px; margin-top: 18px; }
.summary { line-height: 1.8; color: #344057; }
.timeline { position: relative; padding: 0 0 16px 20px; border-left: 2px solid var(--line); }
.timeline:before { content: ""; position: absolute; left: -6px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.timeline b { color: var(--blue); }
.timeline h4 { margin: 6px 0; }
.timeline p, .review p { margin: 0; color: var(--muted); line-height: 1.65; }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); }
.resume-panel { margin-bottom: 18px; }
.resume-files { display: grid; gap: 12px; margin-bottom: 16px; }
.resume-file {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.file-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  font-size: 11px;
  font-weight: 900;
}
.resume-file h4 { margin: 0 0 5px; }
.resume-file p, .resume-file small { display: block; margin: 0; color: var(--muted); line-height: 1.55; }
.file-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
a.ghost { display: inline-flex; align-items: center; text-decoration: none; }
.danger { color: #b42318; background: #fff1f0; }
.resume-maintain { padding-top: 14px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 1fr 100px; gap: 8px; }
.compact textarea { min-height: 86px; }
.radar { max-width: 360px; margin: 14px auto 0; }
.radar svg { width: 100%; }
.radar-grid { fill: #f2f6fc; stroke: #c8d6eb; }
.radar-fill { fill: rgba(10, 74, 163, .28); stroke: var(--red); stroke-width: 2; }
.radar text { font-size: 10px; fill: #536079; }
.drop {
  min-height: 170px;
  place-items: center;
  padding: 28px;
  border: 1px dashed #9fb4d4;
  border-radius: 8px;
  background: #f8fbff;
  text-align: center;
}
.drop input { max-width: 280px; }
.step { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: white; background: var(--blue); }
.batch-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.batch-summary span { padding: 8px 10px; border-radius: 8px; background: #f2f6fc; font-weight: 800; }
.profile-preview h4, .profile-tile h4 { margin: 10px 0 8px; }
.profile-preview p, .profile-tile p { color: var(--muted); line-height: 1.65; }
.profile-preview > span { display: block; padding: 8px; margin-bottom: 8px; border-radius: 8px; background: #f4f8ff; }
.weight { display: grid; grid-template-columns: minmax(110px, 1fr) 120px 42px; gap: 8px; align-items: center; margin: 9px 0; font-size: 13px; }
.result-panel { max-height: calc(100vh - 128px); overflow: auto; }
.ai-note { margin-top: 12px; padding: 12px; border-left: 4px solid var(--red); background: #fff8f9; color: #5d6678; line-height: 1.6; }
.compact-note { margin-top: 10px; padding: 9px 10px; font-size: 13px; }
.match-result {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.rank { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; color: white; background: var(--red); font-weight: 900; }
.match-result h4 { margin: 0; display: flex; justify-content: space-between; gap: 10px; }
.match-result h4 span { color: var(--red); }
.match-result p, .match-result small { color: var(--muted); }
.enhanced-match { align-items: start; padding: 14px 0; }
.match-body { min-width: 0; }
.match-head { display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 10px; align-items: start; }
.confidence {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--blue);
  background: #f2f7ff;
}
.confidence b { font-size: 18px; line-height: 1; }
.confidence span { color: var(--muted); font-size: 11px; font-weight: 800; }
.fit-bar {
  margin: 8px 0 10px;
  padding: 9px 10px;
  border: 1px solid #dce8f7;
  border-radius: 8px;
  background: #f8fbff;
}
.fit-bar div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; }
.fit-bar b { color: var(--blue); }
.fit-bar em, .weight em, .bar-row em {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e6edf7;
}
.fit-bar i, .weight i, .bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--red));
}
.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.insight-grid > div {
  padding: 10px;
  border: 1px solid #e0e8f4;
  border-radius: 8px;
  background: #fbfdff;
}
.insight-grid h4, .insight-grid h5 { margin: 0 0 8px; color: var(--blue); font-size: 13px; }
.insight-grid ul { margin: 0; padding-left: 18px; color: #4a556e; line-height: 1.6; font-size: 12px; }
.action-line {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #07377f;
  background: linear-gradient(135deg, #eef6ff, #fff7f8);
  font-weight: 800;
  line-height: 1.55;
}
.action-line b { display: inline-block; margin-right: 8px; color: var(--red); }
.action-line.strong { margin: 12px 0; font-size: 15px; }
.decision-chip {
  display: inline-flex;
  margin: 8px 0 4px;
  padding: 8px 11px;
  border-radius: 99px;
  color: white;
  background: linear-gradient(135deg, var(--red), var(--blue));
  font-size: 13px;
  font-weight: 900;
}
.criteria-list { display: grid; gap: 8px; margin-top: 8px; }
.criteria-row {
  display: grid;
  grid-template-columns: 72px minmax(110px, .55fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}
.criteria-row b {
  display: inline-grid;
  place-items: center;
  min-height: 26px;
  border-radius: 99px;
  color: white;
  background: var(--amber);
  font-size: 12px;
}
.criteria-row b.命中 { background: var(--green); }
.criteria-row b.部分命中 { background: #2f7dd1; }
.criteria-row b.不匹配 { background: var(--red); }
.criteria-row span { font-weight: 900; color: var(--ink); }
.criteria-row small { color: var(--muted); line-height: 1.5; }
.quality-strip { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.quality-strip span { padding: 7px 9px; border-radius: 8px; color: #344057; background: #f1f5fb; font-size: 12px; font-weight: 900; }
.packaging-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px solid #ffd9dd;
  border-radius: 8px;
  background: #fff8f9;
  color: #6b2330;
  line-height: 1.5;
  font-size: 12px;
}
.packaging-line b { color: var(--red); }
.packaging-box {
  margin: 8px 0 14px;
  padding: 12px 14px 12px 30px;
  border: 1px solid #ffd9dd;
  border-radius: 8px;
  background: #fff8f9;
  color: #6b2330;
  line-height: 1.7;
}
.neutral { border-left-color: var(--blue-2); background: #f7fbff; }
.mini { margin: 0; font-size: 12px; }
.eval-score { display: flex; align-items: end; gap: 14px; color: var(--blue); }
.eval-score b { font-size: 58px; line-height: 1; }
.eval-score span { margin-bottom: 8px; font-weight: 900; }
.enhanced-score { flex-wrap: wrap; align-items: center; }
.enhanced-score em {
  padding: 7px 9px;
  border-radius: 99px;
  color: var(--red);
  background: #fff0f3;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}
.bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.search-item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.search-item b { display: block; color: var(--blue); }
.search-item span { color: var(--red); font-size: 12px; font-weight: 800; }
.search-item p { color: var(--muted); line-height: 1.65; }
.search-item em { font-style: normal; color: var(--green); font-weight: 800; }
.query-plan {
  padding: 14px;
  margin: 12px 0;
  border: 1px solid #d9e5f7;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
}
.query-plan b { display: block; color: var(--blue); margin-bottom: 6px; }
.query-plan span { display: block; font-weight: 900; color: var(--ink); }
.query-plan p { margin: 6px 0 0; color: var(--muted); line-height: 1.6; }
.lead-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.lead-score {
  min-height: 76px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  align-content: center;
  background: linear-gradient(150deg, var(--blue), #0b6f8d);
  color: #fff;
}
.lead-score strong { font-size: 28px; line-height: 1; }
.lead-score span { margin-top: 4px; font-size: 12px; opacity: .88; }
.lead-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lead-head b { color: var(--blue); font-size: 16px; }
.lead-head em { font-style: normal; color: var(--red); font-size: 12px; font-weight: 900; }
.lead-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; color: #657189; font-size: 12px; font-weight: 700; }
.lead-main p { margin: 8px 0; color: var(--muted); line-height: 1.6; }
.tag-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-row span { padding: 4px 8px; border-radius: 99px; background: #eef5ff; color: var(--blue); font-size: 12px; font-weight: 800; }
.lead-reason { margin-top: 10px; color: var(--ink); font-weight: 800; line-height: 1.55; }
.lead-actions { display: flex; justify-content: flex-end; min-width: 88px; }
.hint { color: var(--muted); font-size: 12px; font-weight: 700; }
.empty { color: var(--muted); text-align: center; padding: 28px; background: #f8fbff; border-radius: 8px; }
#toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  min-width: 220px;
  padding: 13px 16px;
  border-radius: 8px;
  color: white;
  background: var(--blue);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: .2s ease;
}
#toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1280px) {
  .topbar { grid-template-columns: minmax(180px, .8fr) minmax(320px, 1fr) auto; }
  .quickbar { grid-column: 2 / 3; }
  .userbox { grid-column: 3; grid-row: 1 / 3; }
  .metric-groups { grid-template-columns: 1fr; }
  .match-grid, .profile-grid { grid-template-columns: 1fr 1fr; }
  .result-panel { grid-column: 1 / -1; max-height: none; }
}
@media (max-width: 900px) {
  .login { grid-template-columns: 1fr; }
  .login-visual { min-height: auto; padding: 40px 40px 32px; }
  .login-logo { width: min(310px, 76vw); padding: 10px 15px; }
  .brand-block { margin-top: 44px; }
  .brand-block h1 { font-size: clamp(56px, 16vw, 82px); margin-top: 20px; }
  .brand-block p { font-size: 16px; line-height: 1.65; }
  .signal-grid { position: relative; left: auto; right: auto; bottom: auto; margin-top: 30px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 282px; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-grid; place-items: center; }
  .topbar { grid-template-columns: auto 1fr; align-items: flex-start; }
  .topbar-title, .global-search, .quickbar, .userbox { grid-column: 1 / -1; }
  .global-search { grid-template-columns: 1fr auto; width: 100%; }
  .quickbar { flex-wrap: wrap; }
  .userbox { flex-wrap: wrap; justify-content: flex-end; }
  .content { padding: 16px; }
  .stats, .grid.two, .detail-grid, .account-grid, .match-grid, .profile-grid, .health-board, .health-board.compact { grid-template-columns: 1fr; }
  .filters { min-width: 0; flex-direction: column; width: 100%; }
  .panel-title { align-items: flex-start; flex-direction: column; }
  .match-result { grid-template-columns: 34px minmax(0, 1fr); }
  .match-result > button { grid-column: 2; justify-self: start; }
  .match-head, .insight-grid, .criteria-row { grid-template-columns: 1fr; }
  .confidence { justify-items: start; grid-template-columns: auto auto; align-items: center; width: fit-content; }
  .criteria-row b { width: fit-content; min-width: 64px; padding: 0 10px; }
  .candidate, .candidate.enhanced { grid-template-columns: 62px minmax(0, 1fr); }
  .candidate.batch { grid-template-columns: 32px 62px minmax(0, 1fr); }
  .candidate-side { grid-column: 2; justify-items: start; grid-auto-flow: column; }
  .candidate.batch .candidate-side { grid-column: 3; }
  .resume-file { grid-template-columns: 46px minmax(0, 1fr); align-items: start; }
  .file-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .inline-form { grid-template-columns: 1fr; }
  .lead-card { grid-template-columns: 64px minmax(0, 1fr); }
  .lead-actions { grid-column: 1 / -1; justify-content: stretch; }
  .lead-actions button { width: 100%; }
  .joint { position: static; margin-top: 24px; }
}
@media (max-width: 560px) {
  .login-panel { padding: 24px; }
  .login-visual { padding: 34px 28px 28px; }
  .login-logo { width: min(280px, 78vw); }
  .signal-grid { grid-template-columns: 1fr; }
  .signal-grid div { padding: 14px 16px; }
  .topbar { gap: 10px; padding: 14px; }
  .topbar h2 { font-size: 19px; }
  .global-search { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .candidate, .candidate.enhanced, .candidate.batch { grid-template-columns: 1fr; }
  .candidate-side, .candidate.batch .candidate-side { grid-column: auto; justify-items: start; grid-auto-flow: row; }
  .score-ring { width: 56px; height: 56px; }
  .large-score { width: 76px; height: 76px; }
  .large-score b { width: 58px; height: 58px; font-size: 23px; }
  .detail-head { align-items: flex-start; flex-direction: column; }
  table { display: block; max-width: 100%; overflow-x: auto; white-space: nowrap; }
}
