/* ============================================================
   专业能力中枢 · Design System
   风格：mission-control 控制台 × 学院风 · 深色科技主题
   ============================================================ */

:root {
  /* 画布 */
  --bg-deep: #0a0e27;
  --bg-card: #0d1117;
  --bg-elev: rgba(13, 17, 23, 0.7);

  /* 品牌色 */
  --c-primary: #00d4ff;      /* 培养侧 · 冰蓝 */
  --c-accent: #ffab00;       /* 岗位侧 · 琥珀金 */
  --c-danger: #ff3d71;       /* 缺口 · 品红 */
  --c-success: #00e676;      /* 达标 · 翠绿 */
  --c-mid: #00bcd4;          /* 能力体系 · 青 */

  /* 文字 */
  --t-main: #e6edf3;
  --t-dim: #8b949e;
  --t-faint: #5b636e;

  /* 结构 */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --glass: rgba(13, 17, 23, 0.7);
  --blur: blur(12px);

  /* 尺寸 */
  --nav-h: 64px;
  --maxw: 1280px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  /* 字体 */
  --font-sans: 'HarmonyOS Sans', 'MiSans', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--t-main);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--c-primary); text-decoration: none; }
a:hover { text-shadow: 0 0 12px rgba(0, 212, 255, 0.5); }
.mono { font-family: var(--font-mono); }
::selection { background: rgba(0, 212, 255, 0.3); }

/* ---------- 背景层 ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 48px);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .16; }
.bg-glow-cyan { width: 560px; height: 560px; left: -140px; top: -120px; background: #00d4ff; }
.bg-glow-amber { width: 480px; height: 480px; right: -120px; top: 30%; background: #ffab00; opacity: .08; }

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 14, 39, 0.72);
}
.nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, #00d4ff 25%, #00bcd4 55%, #ffab00 85%, transparent);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.55);
}
.nav-inner {
  max-width: var(--maxw); height: 100%; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; color: var(--t-main); }
.nav-brand:hover { text-shadow: none; }
.brand-mark { display: grid; place-items: center; }
.brand-mark img {
  width: 34px; height: 34px; border-radius: 9px; display: block;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 2px 8px rgba(0,0,0,.35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 16px; font-weight: 600; letter-spacing: .04em; }
.brand-text small { font-family: var(--font-mono); font-size: 9px; color: var(--t-faint); letter-spacing: .18em; }

.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-links a {
  color: var(--t-dim); font-size: 13.5px; padding: 8px 14px;
  border-radius: var(--r-sm); transition: all .2s;
  position: relative;
}
.nav-links a:hover { color: var(--t-main); background: rgba(255,255,255,.05); text-shadow: none; }
.nav-links a.active { color: var(--c-primary); background: rgba(0, 212, 255, 0.1); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px;
  background: var(--c-primary); border-radius: 2px; box-shadow: 0 0 8px var(--c-primary);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }
.demo-badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--c-accent); border: 1px solid rgba(255, 171, 0, 0.35);
  background: rgba(255, 171, 0, 0.08); padding: 4px 10px; border-radius: 999px;
}

/* ---------- 主区域 ---------- */
.app-main { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px 64px; min-height: calc(100vh - var(--nav-h) - 90px); }
.app-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 28px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: var(--t-faint); font-size: 12px;
  border-top: 1px solid var(--border);
}

/* ---------- 排版 ---------- */
.page-title { font-size: 26px; font-weight: 650; margin: 0 0 6px; letter-spacing: .02em; }
.page-sub { color: var(--t-dim); margin: 0 0 28px; font-size: 14px; }
.section-title {
  font-size: 15px; font-weight: 600; margin: 0 0 14px;
  display: flex; align-items: center; gap: 10px; letter-spacing: .03em;
}
.section-title::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, #00d4ff, #ffab00);
  box-shadow: 0 0 8px rgba(0,212,255,.6);
}
.eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .22em;
  color: var(--c-primary); text-transform: uppercase; margin-bottom: 8px;
}

/* ---------- 卡片 ---------- */
.card {
  background: var(--bg-elev);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
}
.card:hover { border-color: rgba(0, 212, 255, 0.35); box-shadow: 0 0 0 1px rgba(0,212,255,.12), 0 12px 32px rgba(0,0,0,.35); }
.card-title { font-size: 14px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-muted { color: var(--t-dim); font-size: 12.5px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  padding: 9px 18px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.04);
  color: var(--t-main); cursor: pointer; transition: all .2s; white-space: nowrap;
}
.btn:hover { border-color: rgba(0,212,255,.5); color: #fff; background: rgba(0,212,255,.08); box-shadow: 0 0 16px rgba(0,212,255,.18); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, rgba(0,212,255,.18), rgba(0,188,212,.12));
  border-color: rgba(0, 212, 255, 0.5); color: #9beeff;
}
.btn-primary:hover { color: #fff; box-shadow: 0 0 22px rgba(0,212,255,.35); }
.btn-accent { border-color: rgba(255,171,0,.5); background: rgba(255,171,0,.1); color: #ffd479; }
.btn-accent:hover { border-color: var(--c-accent); box-shadow: 0 0 18px rgba(255,171,0,.3); color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger:hover { border-color: rgba(255,61,113,.55); background: rgba(255,61,113,.1); box-shadow: 0 0 16px rgba(255,61,113,.2); }
.btn-sm { padding: 6px 13px; font-size: 12.5px; }
.btn-lg { padding: 14px 34px; font-size: 15.5px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-launch {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #00d4ff, #00bcd4 55%, #ffab00);
  border: none; color: #04121c; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 0 28px rgba(0,212,255,.45), 0 0 48px rgba(255,171,0,.25);
}
.btn-launch:hover { color: #04121c; box-shadow: 0 0 40px rgba(0,212,255,.65), 0 0 64px rgba(255,171,0,.35); }
.btn-launch::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shimmer 2.6s infinite;
}
@keyframes shimmer { 0% { left: -80%; } 60%, 100% { left: 130%; } }

/* ---------- 标签 ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--t-dim);
  background: rgba(255,255,255,.03); white-space: nowrap;
}
.tag-cyan { color: #7fe4ff; border-color: rgba(0,212,255,.4); background: rgba(0,212,255,.1); }
.tag-amber { color: #ffd479; border-color: rgba(255,171,0,.4); background: rgba(255,171,0,.1); }
.tag-green { color: #7dffb8; border-color: rgba(0,230,118,.4); background: rgba(0,230,118,.1); }
.tag-red { color: #ff8dab; border-color: rgba(255,61,113,.4); background: rgba(255,61,113,.1); }
.tag-grey { color: var(--t-dim); }

/* ---------- 进度条 ---------- */
.progress {
  position: relative; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); overflow: hidden;
}
.progress > i {
  display: block; height: 100%; border-radius: 999px; width: 0;
  background: linear-gradient(90deg, #00d4ff, #00bcd4 55%, #00e676);
  transition: width 1.2s cubic-bezier(.22,.9,.3,1);
  position: relative;
}
.progress > i::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: flow 2.2s linear infinite;
}
.progress-warm > i { background: linear-gradient(90deg, #00bcd4, #ffab00); }
.progress-danger > i { background: linear-gradient(90deg, #ff8dab, #ff3d71); }
@keyframes flow { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* ---------- 数字发光 ---------- */
.num {
  font-family: var(--font-mono); font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
  font-variant-numeric: tabular-nums;
}
.num-xl { font-size: 34px; line-height: 1.1; }
.num-lg { font-size: 24px; }
.num-danger { color: var(--c-danger); text-shadow: 0 0 12px rgba(255,61,113,.4); }
.num-accent { color: var(--c-accent); text-shadow: 0 0 12px rgba(255,171,0,.35); }
.num-success { color: var(--c-success); text-shadow: 0 0 12px rgba(0,230,118,.35); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 18px; }
.field > label { display: block; font-size: 13px; color: var(--t-dim); margin-bottom: 7px; }
.field > label .req { color: var(--c-danger); margin-left: 3px; }
.input, .select, .textarea {
  width: 100%; padding: 10px 13px; font-size: 14px;
  font-family: var(--font-sans); color: var(--t-main);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); outline: none; transition: all .2s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(0,212,255,.6);
  box-shadow: 0 0 0 3px rgba(0,212,255,.14);
  background: rgba(0,212,255,.04);
}
.input::placeholder, .textarea::placeholder { color: var(--t-faint); }
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b949e' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.select option { background: #0d1117; color: var(--t-main); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: 12px; color: var(--t-faint); margin-top: 6px; }

/* 选择组（单选卡片） */
.choice-list { display: grid; gap: 12px; }
.choice {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px 18px; border: 1px solid var(--border);
  border-radius: var(--r-md); background: rgba(255,255,255,.025);
  cursor: pointer; transition: all .2s;
}
.choice:hover { border-color: rgba(0,212,255,.35); background: rgba(0,212,255,.05); }
.choice.active { border-color: rgba(0,212,255,.65); background: rgba(0,212,255,.08); box-shadow: 0 0 18px rgba(0,212,255,.14); }
.choice .dot {
  width: 16px; height: 16px; border-radius: 50%; margin-top: 3px; flex: none;
  border: 2px solid var(--t-faint); position: relative; transition: all .2s;
}
.choice.active .dot { border-color: var(--c-primary); box-shadow: 0 0 8px rgba(0,212,255,.7); }
.choice.active .dot::after {
  content: ''; position: absolute; inset: 2.5px; border-radius: 50%; background: var(--c-primary);
}
.choice b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.choice small { color: var(--t-dim); font-size: 12.5px; line-height: 1.55; display: block; }
.choice .ico { font-size: 18px; line-height: 1; margin-top: 2px; }

/* ---------- 步骤条 Stepper ---------- */
.stepper { display: flex; margin-bottom: 34px; position: relative; }
.stepper::before {
  content: ''; position: absolute; top: 17px; left: 8%; right: 8%; height: 1px;
  background: var(--border-strong);
}
.step { flex: 1; text-align: center; position: relative; z-index: 1; }
.step .bubble {
  width: 34px; height: 34px; margin: 0 auto 9px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  background: #10162b; border: 1.5px solid var(--border-strong); color: var(--t-faint);
  transition: all .3s;
}
.step small { font-size: 12.5px; color: var(--t-faint); transition: all .3s; }
.step.active .bubble {
  border-color: var(--c-primary); color: var(--c-primary);
  box-shadow: 0 0 16px rgba(0,212,255,.55); background: rgba(0,212,255,.1);
}
.step.active small { color: var(--c-primary); }
.step.done .bubble {
  border-color: var(--c-success); color: #04120a; background: var(--c-success);
  box-shadow: 0 0 14px rgba(0,230,118,.45);
}
.step.done small { color: var(--c-success); }

/* ---------- 统计格 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.stat {
  padding: 16px 18px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: rgba(255,255,255,.025);
}
.stat .k { font-size: 12px; color: var(--t-dim); margin-bottom: 6px; }
.stat .v { font-size: 26px; }
.stat .u { font-size: 12px; color: var(--t-faint); font-family: var(--font-mono); margin-left: 4px; }

/* ---------- 首页 ---------- */
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.hero h1 { font-size: 30px; margin: 0 0 8px; font-weight: 650; letter-spacing: .01em; }
.hero h1 .grad {
  background: linear-gradient(95deg, #00d4ff, #00bcd4 45%, #ffab00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-meta { display: flex; gap: 18px; color: var(--t-dim); font-size: 13px; flex-wrap: wrap; }
.hero-meta b { color: var(--t-main); font-family: var(--font-mono); }

/* 待办提醒 */
.todo-panel { margin-bottom: 30px; }
.todo-head { display: flex; align-items: center; justify-content: space-between; cursor: pointer; user-select: none; }
.todo-list { display: grid; gap: 10px; margin-top: 14px; }
.todo-item {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: rgba(255,255,255,.025);
  transition: all .2s; animation: fadeUp .45s both;
}
.todo-item:hover { border-color: var(--border-strong); transform: translateX(3px); }
.todo-item .ico {
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  font-size: 14px; flex: none;
}
.todo-item.warn .ico { background: rgba(255,171,0,.14); color: var(--c-accent); }
.todo-item.ok .ico { background: rgba(0,230,118,.12); color: var(--c-success); }
.todo-item.info .ico { background: rgba(0,212,255,.12); color: var(--c-primary); }
.todo-item .txt { flex: 1; font-size: 13.5px; }
.todo-item .txt small { display: block; color: var(--t-faint); font-size: 11.5px; margin-top: 1px; }
.chev { transition: transform .25s; color: var(--t-faint); }
.chev.open { transform: rotate(180deg); }

/* 专业卡片网格 */
.major-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.major-card { padding: 22px; display: flex; flex-direction: column; gap: 15px; overflow: hidden; }
.major-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  opacity: .55;
}
.major-card:hover { transform: translateY(-4px); }
.major-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.major-card h3 { margin: 0; font-size: 19px; font-weight: 650; letter-spacing: .02em; }
.major-card .code { font-family: var(--font-mono); font-size: 11px; color: var(--t-faint); margin-top: 3px; }
.progress-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; font-size: 12.5px; color: var(--t-dim); }
.progress-row .pct { font-size: 17px; color: var(--c-primary); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini-stats .m {
  text-align: center; padding: 9px 4px; border-radius: var(--r-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
}
.mini-stats .m b { display: block; font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--t-main); }
.mini-stats .m span { font-size: 10.5px; color: var(--t-faint); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.upd { font-size: 11.5px; color: var(--t-faint); font-family: var(--font-mono); }

.new-major-card {
  border: 1.5px dashed rgba(0,212,255,.35); background: rgba(0,212,255,.03);
  display: grid; place-items: center; min-height: 240px; text-align: center;
  cursor: pointer; color: var(--t-dim); gap: 6px;
}
.new-major-card:hover { background: rgba(0,212,255,.07); border-color: var(--c-primary); }
.new-major-card .new-major-title { color: #9beeff; font-size: 15px; }
.new-major-card .plus {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; color: var(--c-primary); border: 1.5px solid rgba(0,212,255,.5);
  box-shadow: 0 0 18px rgba(0,212,255,.3); margin-bottom: 6px;
}

/* ---------- 上传区 ---------- */
.dropzone {
  border: 1.5px dashed rgba(0,212,255,.35); border-radius: var(--r-lg);
  padding: 34px 24px; text-align: center; cursor: pointer;
  background: rgba(0,212,255,.03); transition: all .25s;
}
.dropzone:hover { background: rgba(0,212,255,.07); border-color: var(--c-primary); box-shadow: inset 0 0 32px rgba(0,212,255,.06); }
.dropzone .big { font-size: 15px; margin-bottom: 5px; color: var(--t-main); }
.dropzone small { color: var(--t-faint); }

.file-type-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 16px; }
.file-type {
  display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255,255,255,.02);
  transition: all .2s;
}
.file-type:hover { border-color: rgba(0,212,255,.3); }
.file-type .ico { font-size: 17px; }
.file-type b { font-size: 13px; display: block; }
.file-type small { color: var(--t-faint); font-size: 11.5px; }

/* 解析进度面板 */
.parse-panel { margin-top: 18px; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.parse-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px;
  font-size: 13px; border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.parse-row:last-child { border-bottom: none; }
.parse-row .st { font-family: var(--font-mono); font-size: 13px; }
.parse-row .fn { flex: 1; color: var(--t-main); }
.parse-row .sum { color: var(--t-dim); font-size: 12.5px; }

/* 低置信度警示条 */
.warn-bar {
  display: flex; gap: 10px; align-items: center; margin-top: 14px;
  padding: 11px 15px; border-radius: var(--r-md);
  border: 1px solid rgba(255,171,0,.4); background: rgba(255,171,0,.08);
  color: #ffd479; font-size: 13px;
}

/* ---------- 摘要面板（Step4） ---------- */
.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.summary-col { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.summary-col h4 {
  margin: 0; padding: 11px 16px; font-size: 13px; font-weight: 600;
  background: rgba(0,212,255,.08); border-bottom: 1px solid var(--border); color: #9beeff;
}
.summary-col.amber h4 { background: rgba(255,171,0,.08); color: #ffd479; }
.summary-col ul { list-style: none; margin: 0; padding: 6px 0; }
.summary-col li {
  display: flex; justify-content: space-between; padding: 9px 16px; font-size: 13px;
  color: var(--t-dim);
}
.summary-col li b { font-family: var(--font-mono); color: var(--t-main); font-size: 14px; }

.check-line { display: flex; align-items: center; gap: 9px; padding: 9px 4px; cursor: pointer; font-size: 13.5px; color: var(--t-dim); }
.check-line input { accent-color: var(--c-primary); width: 15px; height: 15px; }

/* ---------- 向导底部操作 ---------- */
.wizard-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border);
}
.wizard-foot .right { display: flex; gap: 12px; }

/* ---------- 占位页 ---------- */
.placeholder {
  text-align: center; padding: 72px 24px; border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-lg); background: rgba(255,255,255,.015);
}
.placeholder .ico { font-size: 40px; margin-bottom: 14px; opacity: .8; }
.placeholder h2 { margin: 0 0 8px; font-size: 19px; }
.placeholder p { color: var(--t-dim); max-width: 460px; margin: 0 auto 22px; font-size: 13.5px; }
.stage-badge {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  color: var(--c-accent); border: 1px solid rgba(255,171,0,.4);
  background: rgba(255,171,0,.08); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px;
}

/* ---------- Toast ---------- */
.toast-root { position: fixed; top: 82px; right: 22px; z-index: 400; display: grid; gap: 10px; }
.toast {
  min-width: 260px; max-width: 380px; padding: 13px 17px;
  border-radius: var(--r-md); font-size: 13.5px;
  background: rgba(13,17,23,.92); backdrop-filter: blur(12px);
  border: 1px solid rgba(0,212,255,.4); color: var(--t-main);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 20px rgba(0,212,255,.15);
  animation: toastIn .35s cubic-bezier(.2,.9,.3,1.2);
}
.toast.ok { border-color: rgba(0,230,118,.45); }
.toast.err { border-color: rgba(255,61,113,.5); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }

/* ---------- 动画 ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.stagger > * { animation: fadeUp .5s both; }
.stagger > *:nth-child(1) { animation-delay: .03s; }
.stagger > *:nth-child(2) { animation-delay: .09s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .21s; }
.stagger > *:nth-child(5) { animation-delay: .27s; }
.stagger > *:nth-child(6) { animation-delay: .33s; }
.stagger > *:nth-child(7) { animation-delay: .39s; }
.stagger > *:nth-child(8) { animation-delay: .45s; }
.page-enter { animation: fadeUp .38s both; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .nav-links a { padding: 8px 10px; font-size: 12.5px; }
  .summary-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .demo-badge { display: none; }
  .hero h1 { font-size: 23px; }
  .major-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stepper small { display: none; }
  .app-main { padding: 22px 14px 48px; }
}

/* ============================================================
   阶段 2 · 数据管线组件
   ============================================================ */

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.tab {
  padding: 10px 18px; font-size: 13.5px; color: var(--t-dim); cursor: pointer;
  border: none; background: none; font-family: var(--font-sans);
  position: relative; transition: color .2s;
}
.tab:hover { color: var(--t-main); }
.tab.active { color: var(--c-primary); }
.tab.active::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px;
  background: var(--c-primary); box-shadow: 0 0 8px var(--c-primary); border-radius: 2px;
}
.tab .cnt {
  font-family: var(--font-mono); font-size: 10.5px; margin-left: 6px;
  padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--t-dim);
}
.tab.active .cnt { background: rgba(0,212,255,.16); color: var(--c-primary); }

/* ---------- 工具条 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .spacer { flex: 1; }
.search-input { max-width: 240px; }
.filter-select { max-width: 180px; width: auto; }

/* ---------- 表格 ---------- */
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: var(--r-md); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.tbl th {
  text-align: left; padding: 11px 14px; color: var(--t-dim); font-weight: 500; font-size: 12px;
  background: rgba(255,255,255,.035); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 2; white-space: nowrap;
}
.tbl td { padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: rgba(0,212,255,.045); }
.tbl .mono-cell { font-family: var(--font-mono); font-size: 12.5px; color: var(--t-dim); }
.tbl .ellipsis { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.tbl .act { display: flex; gap: 6px; }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 12px; font-size: 12.5px; color: var(--t-dim); }
.pager button {
  min-width: 28px; height: 28px; border-radius: var(--r-sm); border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.03); color: var(--t-dim); cursor: pointer; font-family: var(--font-mono); font-size: 12px;
}
.pager button:hover { border-color: rgba(0,212,255,.5); color: var(--c-primary); }
.pager button.cur { background: rgba(0,212,255,.14); border-color: rgba(0,212,255,.6); color: var(--c-primary); }
.pager button:disabled { opacity: .35; cursor: default; }

/* ---------- Collapse / 手风琴 ---------- */
.collapse { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; margin-bottom: 10px; background: rgba(255,255,255,.02); }
.collapse-head {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer;
  transition: background .15s; user-select: none;
}
.collapse-head:hover { background: rgba(0,212,255,.05); }
.collapse-head .rnum {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--c-primary);
  border: 1px solid rgba(0,212,255,.4); background: rgba(0,212,255,.1);
  padding: 2px 8px; border-radius: 999px; flex: none;
}
.collapse-head .rtext { flex: 1; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.collapse-head .meta { color: var(--t-faint); font-size: 11.5px; font-family: var(--font-mono); flex: none; }
.collapse-head .chev { flex: none; transition: transform .25s; }
.collapse.open .chev { transform: rotate(180deg); }
.collapse-body { border-top: 1px solid var(--border); padding: 6px 16px 14px; display: none; background: rgba(0,0,0,.18); }
.collapse.open .collapse-body { display: block; }

/* ---------- 指标点行 ---------- */
.ind-row {
  display: grid; grid-template-columns: 62px 1fr 150px; gap: 12px; align-items: start;
  padding: 12px 4px; border-bottom: 1px dashed rgba(255,255,255,.07);
}
.ind-row:last-child { border-bottom: none; }
.ind-code { font-family: var(--font-mono); font-size: 12.5px; color: var(--c-mid); padding-top: 1px; }
.ind-main .txt { font-size: 13px; line-height: 1.55; }
.ind-meta { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }
.ind-side { display: flex; flex-direction: column; gap: 7px; align-items: stretch; }
.ind-actions { display: flex; gap: 6px; justify-content: flex-end; }
.ind-actions button {
  font-size: 11.5px; padding: 3px 9px; border-radius: var(--r-sm);
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.04);
  color: var(--t-dim); cursor: pointer; font-family: var(--font-sans); transition: all .15s;
}
.ind-actions button:hover { border-color: rgba(0,212,255,.55); color: var(--c-primary); }
.ind-actions button.del:hover { border-color: rgba(255,61,113,.6); color: var(--c-danger); }
.ind-row.low-conf .txt { background: rgba(255,61,113,.07); border-left: 2px solid rgba(255,61,113,.55); padding: 6px 9px; border-radius: 0 6px 6px 0; }
.ind-row.edited .ind-code::after { content: ' ✓'; color: var(--c-success); }

/* 置信度条 */
.conf-bar { position: relative; height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.conf-bar i { display: block; height: 100%; border-radius: 999px; transition: width .8s; }
.conf-hi i { background: linear-gradient(90deg, #00e676, #69f0ae); }
.conf-mid i { background: linear-gradient(90deg, #ffab00, #ffd54f); }
.conf-low i { background: linear-gradient(90deg, #ff3d71, #ff8dab); }
.conf-label { font-family: var(--font-mono); font-size: 11px; color: var(--t-dim); display: flex; justify-content: space-between; }

.src-tag {
  font-size: 11px; color: var(--t-faint); font-family: var(--font-mono);
  padding: 2px 8px; border-radius: 4px; background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.12);
}

/* ---------- 支撑矩阵 ---------- */
.matrix-wrap { overflow: auto; max-height: 68vh; border: 1px solid var(--border); border-radius: var(--r-md); }
table.matrix { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.matrix th, .matrix td { border-right: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
.matrix thead th {
  position: sticky; top: 0; z-index: 3; background: #10162b;
  padding: 8px 6px; min-width: 64px; font-weight: 500; color: var(--t-dim);
  font-size: 11px; text-align: center; white-space: nowrap;
}
.matrix thead th.rowh { left: 0; z-index: 4; min-width: 150px; text-align: left; padding-left: 12px; }
.matrix tbody th {
  position: sticky; left: 0; z-index: 2; background: #10162b;
  padding: 7px 12px; text-align: left; font-weight: 400; white-space: nowrap;
}
.matrix tbody th .code { font-family: var(--font-mono); color: var(--c-mid); font-size: 11.5px; margin-right: 7px; }
.matrix tbody th .nm { color: var(--t-dim); font-size: 11.5px; }
.matrix td { text-align: center; padding: 0; height: 34px; min-width: 64px; }
.matrix td .cell {
  width: 100%; height: 34px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11.5px; cursor: pointer;
  transition: all .15s; user-select: none;
}
.matrix td .cell:hover { outline: 1.5px solid rgba(0,212,255,.7); outline-offset: -1.5px; z-index: 1; position: relative; }
.cell.w0 { color: rgba(255,255,255,.18); background: transparent; }
.cell.w03 { color: #9beeff; background: rgba(0,212,255,.12); }
.cell.w06 { color: #6fe6ff; background: rgba(0,188,212,.3); }
.cell.w10 { color: #04121c; background: linear-gradient(135deg, #00d4ff, #00bcd4); font-weight: 700; }
.matrix .course-head .syll { display: block; font-size: 9.5px; margin-top: 2px; }
.matrix .syll.ok { color: var(--c-success); }
.matrix .syll.no { color: var(--c-danger); }
.matrix-legend { display: flex; gap: 14px; align-items: center; font-size: 11.5px; color: var(--t-dim); margin-top: 10px; flex-wrap: wrap; }
.matrix-legend .sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: -3px; margin-right: 5px; }

/* ---------- 能力项列表 ---------- */
.cap-item {
  display: grid; grid-template-columns: 1fr 230px; gap: 14px; align-items: center;
  padding: 12px 4px; border-bottom: 1px dashed rgba(255,255,255,.07);
}
.cap-item:last-child { border-bottom: none; }
.cap-name { font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cap-name .warn { color: var(--c-accent); font-size: 12px; }
.cap-sub { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; align-items: center; }
.src-mini { font-size: 10.5px; font-family: var(--font-mono); padding: 2px 7px; border-radius: 4px; border: 1px solid var(--border); color: var(--t-faint); }
.src-mini.yes { color: var(--c-success); border-color: rgba(0,230,118,.35); background: rgba(0,230,118,.07); }
.src-mini.no { color: var(--t-faint); border-style: dashed; }
.src-mini.aux { color: var(--c-accent); border-color: rgba(255,171,0,.35); background: rgba(255,171,0,.07); }
.cap-bar-row { display: flex; align-items: center; gap: 10px; }
.cap-bar-row .progress { flex: 1; height: 7px; }
.cap-bar-row .val { font-family: var(--font-mono); font-size: 13px; color: var(--c-primary); min-width: 58px; text-align: right; text-shadow: 0 0 8px rgba(0,212,255,.3); }
.cap-cov { font-size: 11.5px; color: var(--t-faint); font-family: var(--font-mono); margin-top: 5px; text-align: right; }
.cap-edit { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.cap-edit button {
  font-size: 11px; padding: 2px 8px; border-radius: 4px; cursor: pointer;
  border: 1px solid var(--border-strong); background: transparent; color: var(--t-faint); font-family: var(--font-sans);
}
.cap-edit button:hover { color: var(--c-primary); border-color: rgba(0,212,255,.5); }
.cap-edit button.del:hover { color: var(--c-danger); border-color: rgba(255,61,113,.5); }

/* ---------- 采集进度 ---------- */
.collect-bar { display: flex; align-items: center; gap: 14px; margin: 6px 0 12px; }
.collect-bar .progress { flex: 1; height: 10px; }
.collect-bar .num { font-size: 15px; min-width: 90px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }

/* ---------- 环形图（SVG donut） ---------- */
.donut-box { display: flex; align-items: center; gap: 22px; }
.donut-legend { display: grid; gap: 9px; font-size: 12.5px; color: var(--t-dim); }
.donut-legend .li { display: flex; align-items: center; gap: 8px; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.donut-legend b { font-family: var(--font-mono); color: var(--t-main); }
.donut-center { font-family: var(--font-mono); fill: var(--t-main); }

/* ---------- 词云 ---------- */
.wordcloud { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; padding: 6px 2px; }
.wordcloud span {
  font-family: var(--font-mono); line-height: 1.3; cursor: default;
  transition: text-shadow .2s; white-space: nowrap;
}
.wordcloud span:hover { text-shadow: 0 0 12px currentColor; }

/* ---------- 质量面板 ---------- */
.quality-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.q-item { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255,255,255,.02); }
.q-item .k { font-size: 11.5px; color: var(--t-faint); margin-bottom: 5px; }
.q-item .v { font-size: 15px; font-family: var(--font-mono); }
.q-item .v.warn { color: var(--c-accent); }
.q-item .v.ok { color: var(--c-success); }

/* ---------- 设置页 ---------- */
.setting-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.test-result {
  margin-top: 12px; padding: 11px 15px; border-radius: var(--r-md); font-size: 13px;
  font-family: var(--font-mono); display: none;
}
.test-result.show { display: block; animation: fadeUp .3s both; }
.test-result.ok { border: 1px solid rgba(0,230,118,.45); background: rgba(0,230,118,.08); color: #7dffb8; }
.test-result.err { border: 1px solid rgba(255,61,113,.5); background: rgba(255,61,113,.08); color: #ff8dab; }
.switch {
  position: relative; width: 42px; height: 22px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.12); border: none; transition: background .2s; flex: none;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #8b949e; transition: all .2s;
}
.switch.on { background: rgba(0,212,255,.35); box-shadow: 0 0 10px rgba(0,212,255,.35); }
.switch.on::after { left: 23px; background: var(--c-primary); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px; }
.switch-row .lbl b { display: block; font-size: 13.5px; font-weight: 500; }
.switch-row .lbl small { color: var(--t-faint); font-size: 12px; }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; padding: 56px 20px; border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-lg); background: rgba(255,255,255,.015);
}
.empty .ico { font-size: 36px; margin-bottom: 12px; opacity: .75; }
.empty h3 { margin: 0 0 6px; font-size: 16px; }
.empty p { color: var(--t-dim); font-size: 13px; margin: 0 auto 18px; max-width: 420px; }

/* ---------- 进度环（加载） ---------- */
.ring-wrap { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.ring {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: conic-gradient(#00d4ff calc(var(--p) * 1%), rgba(255,255,255,.08) 0);
  display: grid; place-items: center; position: relative;
}
.ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #0d1117; }
.ring span { position: relative; font-family: var(--font-mono); font-size: 10.5px; color: var(--c-primary); }
.ring-wrap .msg { font-size: 13px; color: var(--t-dim); }
.ring-wrap .msg small { display: block; color: var(--t-faint); font-size: 11.5px; }

@media (max-width: 1024px) {
  .setting-grid { grid-template-columns: 1fr; }
  .cap-item { grid-template-columns: 1fr; }
  .cap-cov, .cap-edit { text-align: left; justify-content: flex-start; }
  .ind-row { grid-template-columns: 52px 1fr; }
  .ind-side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .ind-actions { justify-content: flex-start; }
}

/* ============================================================
   阶段 3 · 对标分析组件
   ============================================================ */

/* ---- 控制栏 ---- */
.ctrl-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 16px; margin-bottom: 18px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: rgba(13,17,23,.7); backdrop-filter: var(--blur);
}
.ctrl-bar .legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--t-dim); align-items: center; }
.ctrl-bar .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.ctrl-bar .sep { width: 1px; height: 22px; background: var(--border-strong); }

/* ---- 三段式全景 ---- */
.sankey { position: relative; display: grid; grid-template-columns: 300px minmax(340px, 1fr) 300px; gap: 0; min-height: 560px; }
.sankey-links { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.sankey-links path { pointer-events: stroke; cursor: pointer; fill: none; transition: opacity .25s; }
.sankey-links path.dim { opacity: .12 !important; }
.sankey-links path.hot { filter: drop-shadow(0 0 4px currentColor); }
.flow-anim { stroke-dasharray: 7 7; animation: dashflow 1.1s linear infinite; }
@keyframes dashflow { to { stroke-dashoffset: -28; } }

.sankey-col { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 9px; padding: 0 6px; }
.sankey-col.mid { padding: 0 26px; }
.col-head {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; padding: 4px 2px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  position: sticky; top: calc(var(--nav-h) + 4px); background: rgba(10,14,39,.9); z-index: 3;
}
.col-head .t-left { color: var(--c-primary); }
.col-head .t-mid { color: var(--c-mid); }
.col-head .t-right { color: var(--c-accent); }
.col-head small { color: var(--t-faint); font-weight: 400; font-family: var(--font-mono); font-size: 10.5px; }

.s-card {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: rgba(13,17,23,.85); backdrop-filter: blur(8px);
  padding: 10px 12px; cursor: pointer; transition: all .2s; position: relative;
}
.s-card:hover { border-color: rgba(0,212,255,.5); transform: translateY(-1px); }
.s-card.dim { opacity: .25; }
.s-card.hot { border-color: currentColor; box-shadow: 0 0 14px rgba(0,212,255,.25); }

.s-req .top { display: flex; align-items: center; gap: 8px; }
.s-req .num-tag {
  font-family: var(--font-mono); font-size: 10px; padding: 1px 7px; border-radius: 999px;
  background: rgba(0,212,255,.12); color: var(--c-primary); border: 1px solid rgba(0,212,255,.35); flex: none;
}
.s-req .name { font-size: 13px; font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-req .pct { font-family: var(--font-mono); font-size: 15px; font-weight: 700; text-shadow: 0 0 8px rgba(0,212,255,.3); }
.s-req .bar { margin: 7px 0 6px; height: 6px; }
.s-req .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.badge-demand { font-size: 10px; padding: 1px 7px; border-radius: 4px; font-weight: 600; }
.badge-demand.strong { background: rgba(255,171,0,.18); color: #ffd479; border: 1px solid rgba(255,171,0,.45); }
.badge-demand.mid { background: rgba(255,171,0,.08); color: #ffcf72; border: 1px solid rgba(255,171,0,.25); }
.badge-demand.none { background: rgba(255,255,255,.05); color: var(--t-faint); border: 1px dashed var(--border-strong); }

.gap-chip {
  font-family: var(--font-mono); font-size: 11px; padding: 1px 7px; border-radius: 4px; font-weight: 700;
}
.gap-chip.severe { background: rgba(255,61,113,.16); color: #ff8dab; border: 1px solid rgba(255,61,113,.5); }
.gap-chip.moderate { background: rgba(255,171,0,.14); color: #ffd479; border: 1px solid rgba(255,171,0,.45); }
.gap-chip.match { background: rgba(0,230,118,.12); color: #7dffb8; border: 1px solid rgba(0,230,118,.4); }
.gap-chip.surplus { background: rgba(255,255,255,.07); color: var(--t-dim); border: 1px solid var(--border-strong); }
.gap-chip.unmapped { background: transparent; color: var(--t-faint); border: 1px dashed var(--border-strong); }

.s-cap .name { font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.s-cap .name b { font-family: var(--font-mono); color: var(--c-primary); font-size: 12.5px; }
.s-cap .bar { margin: 6px 0 5px; height: 5px; }
.s-cap .sub { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--t-faint); font-family: var(--font-mono); }
.s-cap .warn { color: var(--c-accent); }

.s-job { border-color: rgba(255,171,0,.22); }
.s-job:hover { border-color: rgba(255,171,0,.6); box-shadow: 0 0 14px rgba(255,171,0,.2); }
.s-job .title { font-size: 13.5px; font-weight: 650; color: var(--c-accent); display: flex; justify-content: space-between; gap: 8px; }
.s-job .salary { font-family: var(--font-mono); font-size: 12px; color: #ffd479; }
.s-job .skills { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 7px; }
.s-job .skills span {
  font-size: 10px; padding: 1px 6px; border-radius: 4px;
  background: rgba(255,171,0,.1); border: 1px solid rgba(255,171,0,.28); color: #ffd479;
}
.s-job .src { font-size: 10px; color: var(--t-faint); font-family: var(--font-mono); margin-top: 6px; }

.link-tip {
  position: fixed; z-index: 500; pointer-events: none; display: none;
  padding: 9px 13px; border-radius: 8px; font-size: 12px; line-height: 1.6;
  background: rgba(10,14,39,.96); border: 1px solid rgba(0,212,255,.4);
  box-shadow: 0 8px 24px rgba(0,0,0,.5); max-width: 320px;
}
.link-tip b { color: var(--c-primary); }
.link-tip .w { font-family: var(--font-mono); color: var(--c-accent); }

.expand-more { text-align: center; margin-top: 4px; }

/* ---- 缺口详情 Drawer ---- */
.drawer-mask {
  position: fixed; inset: 0; z-index: 300; background: rgba(4,7,18,.55);
  backdrop-filter: blur(3px); opacity: 0; transition: opacity .28s;
  pointer-events: none;
}
.drawer-mask.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 94vw); z-index: 301;
  background: rgba(13,17,23,.97); border-left: 1px solid rgba(0,212,255,.3);
  box-shadow: -20px 0 60px rgba(0,0,0,.5), -1px 0 20px rgba(0,212,255,.12);
  transform: translateX(102%); transition: transform .32s cubic-bezier(.22,.9,.3,1);
  display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer-head {
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px;
}
.drawer-head .ttl { flex: 1; }
.drawer-head h3 { margin: 0 0 4px; font-size: 16px; }
.drawer-head .from { font-size: 11.5px; color: var(--t-faint); font-family: var(--font-mono); }
.drawer-close {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.04); color: var(--t-dim); cursor: pointer; font-size: 15px;
}
.drawer-close:hover { color: var(--c-danger); border-color: rgba(255,61,113,.5); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 26px; }
.drawer-sec { margin-bottom: 22px; }
.drawer-sec > h4 {
  margin: 0 0 10px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px;
  color: var(--t-main);
}
.drawer-sec > h4 .step-n {
  width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; background: rgba(0,212,255,.14); color: var(--c-primary);
}

.course-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 11px; margin-bottom: 6px;
  border: 1px solid var(--border); border-radius: var(--r-sm); background: rgba(255,255,255,.025);
  font-size: 12.5px;
}
.course-row .cn { flex: 1; }
.course-row .cw { font-family: var(--font-mono); color: var(--c-primary); }
.course-row .sy { font-size: 11px; }
.course-row .sy.ok { color: var(--c-success); }
.course-row .sy.no { color: var(--c-danger); }

.formula {
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.8;
  background: rgba(0,0,0,.32); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 11px 14px; color: #9beeff; margin: 10px 0; overflow-x: auto; white-space: pre-wrap;
}
.formula .dim { color: var(--t-faint); }
.formula .hl { color: var(--c-accent); }

.score-line { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.score-line .progress { flex: 1; height: 9px; }
.score-line .sv { font-family: var(--font-mono); font-weight: 700; font-size: 16px; min-width: 74px; text-align: right; }

.src-list { display: grid; gap: 6px; margin-top: 6px; }
.src-list .s {
  font-size: 12px; color: var(--t-dim); display: flex; gap: 8px; align-items: center;
  padding: 6px 10px; border-radius: 6px; background: rgba(255,255,255,.03);
}
.src-list .s b { font-family: var(--font-mono); color: var(--t-main); margin-left: auto; }

.gap-duel { display: grid; grid-template-columns: 74px 1fr 60px; gap: 8px 12px; align-items: center; margin-top: 10px; font-size: 12.5px; }
.gap-duel .lab { color: var(--t-dim); }
.gap-duel .val { font-family: var(--font-mono); text-align: right; font-weight: 700; }
.gap-verdict {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 14px; padding: 12px 15px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
}
.gap-verdict .g { font-family: var(--font-mono); font-size: 24px; font-weight: 700; }
.lv-tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; border: 1px solid;
}

.cause-box {
  border: 1px solid rgba(0,188,212,.35); background: rgba(0,188,212,.06);
  border-radius: var(--r-md); padding: 13px 15px; font-size: 13px; line-height: 1.75; color: var(--t-main);
}
.cause-box .ctype {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; color: var(--c-mid);
  border: 1px solid rgba(0,188,212,.45); border-radius: 4px; padding: 1px 8px; margin-bottom: 8px;
}
.sugg {
  display: flex; gap: 11px; padding: 11px 13px; margin-top: 8px;
  border: 1px solid var(--border); border-radius: var(--r-md); background: rgba(255,255,255,.025);
}
.sugg .pri {
  flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px;
}
.sugg .pri.high { background: var(--c-danger); box-shadow: 0 0 8px rgba(255,61,113,.7); }
.sugg .pri.medium { background: var(--c-accent); box-shadow: 0 0 8px rgba(255,171,0,.6); }
.sugg .pri.low { background: var(--c-success); }
.sugg b { font-size: 13px; display: block; margin-bottom: 3px; }
.sugg p { margin: 0; font-size: 12.5px; color: var(--t-dim); line-height: 1.6; }
.sugg .eff { font-size: 11px; color: var(--t-faint); font-family: var(--font-mono); margin-top: 5px; display: block; }

.drawer-foot {
  padding: 13px 22px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; flex-wrap: wrap; background: rgba(10,14,39,.6);
}

/* ---- 指标点明细表 ---- */
.gap-val { font-family: var(--font-mono); font-weight: 700; }
.gap-val.severe { color: #ff8dab; text-shadow: 0 0 8px rgba(255,61,113,.35); }
.gap-val.moderate { color: #ffd479; }
.gap-val.match { color: #7dffb8; }
.gap-val.surplus, .gap-val.unmapped { color: var(--t-dim); }
tr.clickable { cursor: pointer; }
.lv-cell { white-space: nowrap; }
.proc-tag { color: var(--c-success); font-size: 11px; }

.stat-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--t-dim); }
.stat-strip .st {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); font-family: var(--font-mono);
}

/* ---- 四象限散点 ---- */
.scatter-card { position: relative; }
.quad-label {
  position: absolute; font-size: 11.5px; font-family: var(--font-mono);
  color: var(--t-faint); letter-spacing: .08em; pointer-events: none;
}
.quad-label.hot { color: rgba(255,61,113,.75); }
.scatter-pt { cursor: pointer; transition: r .15s; }
.scatter-pt:hover { stroke: #fff; stroke-width: 1.5; }
.axis-txt { font: 11px 'JetBrains Mono', monospace; fill: #8b949e; }
.axis-line { stroke: rgba(255,255,255,.18); }
.grid-line { stroke: rgba(255,255,255,.06); }
.mark-line { stroke: rgba(255,255,255,.28); stroke-dasharray: 6 5; }

/* ---- 矩阵表视图（相似度） ---- */
table.sim-matrix { border-collapse: separate; border-spacing: 0; font-size: 12px; }
.sim-matrix thead th {
  position: sticky; top: 0; z-index: 3; background: #10162b; padding: 8px 6px;
  min-width: 54px; font-weight: 500; font-size: 10.5px; color: var(--t-dim);
  text-align: center; vertical-align: bottom; height: 120px; white-space: nowrap;
}
.sim-matrix thead th .vh {
  writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 auto; cursor: pointer;
  max-height: 110px; overflow: hidden;
}
.sim-matrix thead th .vh:hover { color: var(--c-accent); }
.sim-matrix thead th.rowh { left: 0; z-index: 4; height: auto; text-align: left; min-width: 150px; padding: 8px 12px; }
.sim-matrix tbody th {
  position: sticky; left: 0; z-index: 2; background: #10162b; text-align: left;
  padding: 6px 12px; font-weight: 400; white-space: nowrap; cursor: pointer;
}
.sim-matrix tbody th:hover .code { color: var(--c-primary); }
.sim-matrix tbody th .code { font-family: var(--font-mono); color: var(--c-mid); font-size: 11px; margin-right: 7px; }
.sim-matrix tbody th .nm { color: var(--t-dim); font-size: 11.5px; }
.sim-matrix td { text-align: center; min-width: 54px; height: 30px; border-right: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
.sim-cell { width: 100%; height: 30px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 10.5px; cursor: pointer; }
.sim-cell.s0 { color: transparent; }
.sim-cell.s0:hover { outline: 1.5px solid rgba(0,212,255,.6); outline-offset: -1.5px; }
.sim-cell.s1 { color: #9beeff; background: rgba(0,212,255,.12); }
.sim-cell.s2 { color: #04121c; background: rgba(0,188,212,.45); font-weight: 600; }
.sim-cell.s3 { color: #04121c; background: linear-gradient(135deg, #00d4ff, #00bcd4); font-weight: 700; }
.sim-cell.confirmed { box-shadow: inset 0 0 0 1.5px #00e676; }
.sim-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--t-dim); margin-top: 10px; flex-wrap: wrap; align-items: center; }

/* 映射详情弹层 */
.map-pop {
  position: fixed; z-index: 500; width: 330px; display: none;
  background: rgba(13,17,23,.97); border: 1px solid rgba(0,212,255,.45);
  border-radius: var(--r-md); padding: 15px 17px; font-size: 12.5px; line-height: 1.7;
  box-shadow: 0 14px 44px rgba(0,0,0,.55);
}
.map-pop.show { display: block; animation: fadeUp .22s both; }
.map-pop h5 { margin: 0 0 8px; font-size: 13.5px; }
.map-pop .row { display: flex; justify-content: space-between; gap: 8px; color: var(--t-dim); padding: 3px 0; }
.map-pop .row b { font-family: var(--font-mono); color: var(--t-main); }
.map-pop .reason { color: var(--t-dim); background: rgba(255,255,255,.04); border-radius: 6px; padding: 8px 10px; margin: 8px 0; }
.map-pop .acts { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* 空态（分析） */
.analysis-empty { grid-column: 1 / -1; }

@media (max-width: 1180px) {
  .sankey { grid-template-columns: 250px minmax(260px,1fr) 250px; }
}
@media (max-width: 900px) {
  .sankey { display: block; }
  .sankey-links { display: none; }
  .sankey-col { margin-bottom: 26px; }
}

/* ============================================================
   阶段 4 · 仪表盘 / 报告组件
   ============================================================ */

/* ---- KPI ---- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi {
  padding: 18px 20px; border-radius: var(--r-lg); position: relative; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-elev); backdrop-filter: var(--blur);
  transition: border-color .25s, transform .25s;
}
.kpi:hover { border-color: rgba(0,212,255,.4); transform: translateY(-2px); }
.kpi::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, #00d4ff, transparent 70%);
}
.kpi.warm::before { background: linear-gradient(90deg, #ffab00, transparent 70%); }
.kpi.danger::before { background: linear-gradient(90deg, #ff3d71, transparent 70%); }
.kpi.green::before { background: linear-gradient(90deg, #00e676, transparent 70%); }
.kpi .k { font-size: 12.5px; color: var(--t-dim); margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.kpi .v { font-size: 32px; line-height: 1.1; }
.kpi .sub { font-size: 11.5px; color: var(--t-faint); font-family: var(--font-mono); margin-top: 7px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dash-grid .full { grid-column: 1 / -1; }
@media (max-width: 1024px) { .dash-grid { grid-template-columns: 1fr; } }

.chart-title { font-size: 13.5px; font-weight: 600; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.chart-sub { font-size: 11.5px; color: var(--t-faint); margin: 0 0 12px; }
.legend-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.legend-chips button {
  font-size: 11.5px; padding: 3px 11px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.03);
  color: var(--t-dim); font-family: var(--font-sans); display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.legend-chips button i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.legend-chips button.on { color: var(--t-main); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.legend-chips button.off { opacity: .4; text-decoration: line-through; }

/* 缺口条形图 */
.gapbar-row { display: grid; grid-template-columns: 64px 1fr 76px; gap: 10px; align-items: center; padding: 5px 0; cursor: pointer; border-radius: 6px; }
.gapbar-row:hover { background: rgba(0,212,255,.05); }
.gapbar-row .code { font-family: var(--font-mono); font-size: 11.5px; color: var(--c-mid); text-align: right; }
.gapbar-row .bar-wrap { position: relative; height: 18px; background: rgba(255,255,255,.04); border-radius: 4px; overflow: hidden; }
.gapbar-row .zero { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.25); }
.gapbar-row .bar { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; transition: width .8s; }
.gapbar-row .val { font-family: var(--font-mono); font-size: 12px; text-align: right; }
.gapbar-row .nm { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); font-size: 10.5px; color: rgba(255,255,255,.85); pointer-events: none; max-width: 70%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 热力图 */
.heat-scroll { overflow-x: auto; }
.heat-grid { display: grid; gap: 3px; min-width: 640px; }
.heat-cell {
  height: 30px; border-radius: 4px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 10.5px; cursor: default; transition: transform .12s;
}
.heat-cell:hover { transform: scale(1.06); z-index: 2; position: relative; box-shadow: 0 0 10px rgba(255,171,0,.4); }
.heat-head { font-size: 10.5px; color: var(--t-dim); display: grid; place-items: center; text-align: center; line-height: 1.2; padding: 2px; }
.heat-rowlab { font-size: 11.5px; color: var(--t-dim); display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heat-empty { color: var(--t-faint); background: rgba(255,255,255,.03); }

/* AI 摘要 */
.finding {
  display: flex; gap: 11px; padding: 10px 13px; border-radius: var(--r-md);
  background: rgba(255,255,255,.03); border: 1px solid var(--border); margin-bottom: 8px;
  font-size: 13px; line-height: 1.6;
}
.finding .n {
  flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; background: rgba(0,212,255,.14); color: var(--c-primary);
}
.finding b { color: var(--c-accent); font-family: var(--font-mono); }
.top3-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: 8px;
  background: rgba(255,61,113,.05); transition: all .2s;
}
.top3-item:hover { border-color: rgba(255,61,113,.5); transform: translateX(4px); }
.top3-item .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--c-danger); box-shadow: 0 0 8px rgba(255,61,113,.7); }
.top3-item .info { flex: 1; }
.top3-item .info b { font-size: 13px; display: block; }
.top3-item .info small { color: var(--t-dim); font-size: 11.5px; }
.top3-item .g { font-family: var(--font-mono); font-weight: 700; color: var(--c-danger); font-size: 15px; }
.summary-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ---- 报告页 ---- */
.rtype-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 20px; }
.rtype {
  padding: 18px; border: 1px solid var(--border); border-radius: var(--r-lg);
  background: rgba(255,255,255,.02); cursor: pointer; transition: all .22s; position: relative;
}
.rtype:hover { border-color: rgba(0,212,255,.4); transform: translateY(-3px); }
.rtype.on { border-color: rgba(0,212,255,.7); background: rgba(0,212,255,.07); box-shadow: 0 0 22px rgba(0,212,255,.16); }
.rtype .ico { font-size: 26px; margin-bottom: 10px; }
.rtype b { display: block; font-size: 15px; margin-bottom: 6px; }
.rtype p { margin: 0; font-size: 12.5px; color: var(--t-dim); line-height: 1.6; }
.rtype .badge {
  position: absolute; top: 14px; right: 14px; font-size: 10px; font-family: var(--font-mono);
  color: var(--c-primary); border: 1px solid rgba(0,212,255,.45); border-radius: 999px; padding: 2px 9px;
}
.rtype .chk {
  position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-primary); color: #04121c; display: none; place-items: center; font-size: 13px; font-weight: 700;
}
.rtype.on .chk { display: grid; }
.rtype.on .badge { display: none; }

.gen-panel { padding: 22px; }
.gen-progress { display: none; margin-top: 16px; }
.gen-progress.show { display: block; }
.result-bar { display: none; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid rgba(0,230,118,.4); background: rgba(0,230,118,.07); }
.result-bar.show { display: flex; animation: fadeUp .3s both; }
.result-bar .ok { color: var(--c-success); font-weight: 600; }

/* 标准库自定义表单 */
.std-form { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 10px; margin-top: 14px; align-items: end; }
@media (max-width: 768px) { .std-form { grid-template-columns: 1fr; } }

/* ===== 页头专业名徽标（当前专业一目了然） ===== */
.major-chip{
  display:inline-flex;align-items:center;gap:8px;
  margin-left:14px;vertical-align:6px;
  padding:3px 13px 3px 9px;border-radius:999px;
  border:1px solid rgba(0,209,255,.45);
  background:rgba(0,209,255,.10);
  line-height:1.4;
}
.major-chip i{font-style:normal;font-size:10.5px;color:#7aa2bb;letter-spacing:.5px}
.major-chip b{color:#9beeff;font-weight:600;font-size:14.5px}
/* 首页专业卡片整卡可点 */
.major-card{cursor:pointer}
