/* ============================================================
   好岗位 · 职教实习就业 AI 智配系统 —— 全局基础样式
   ============================================================ */
:root {
  --c-primary: #3f6cff;
  --c-primary-deep: #2f4ed8;
  --c-student: #4f7cff;
  --c-enterprise: #00a870;
  --c-admin: #2f54eb;
  --c-screen: #00d4ff;
  --c-success: #00b578;
  --c-warning: #ff9f1c;
  --c-danger: #f5483d;
  --c-info: #409eff;
  --c-text: #1f2733;
  --c-text-2: #5c6b80;
  --c-text-3: #93a1b5;
  --c-border: #e6ecf5;
  --c-bg: #f3f6fb;
  --c-card: #ffffff;
  --shadow: 0 2px 12px rgba(31, 60, 148, .08);
  --shadow-lg: 0 8px 30px rgba(31, 60, 148, .14);
  --radius: 12px;
  --radius-sm: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; outline: none; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: #c3cfdf; border-radius: 3px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px; font-size: 14px; font-weight: 500;
  transition: all .18s; white-space: nowrap;
}
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-deep); box-shadow: 0 4px 14px rgba(63,108,255,.35); }
.btn-ghost { background: #fff; color: var(--c-primary); border: 1px solid var(--c-primary); }
.btn-ghost:hover { background: rgba(63,108,255,.06); }
.btn-plain { background: #eef2fa; color: var(--c-text-2); }
.btn-plain:hover { background: #e2e9f5; }
.btn-danger { background: var(--c-danger); color: #fff; }
.btn-success { background: var(--c-success); color: #fff; }
.btn-warning { background: var(--c-warning); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; }
.btn-lg { padding: 13px 30px; font-size: 16px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.card {
  background: var(--c-card); border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--c-border);
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: 12px;
  background: #eef2fa; color: var(--c-text-2); line-height: 1.5;
}
.chip-blue { background: rgba(63,108,255,.1); color: var(--c-primary); }
.chip-green { background: rgba(0,181,120,.1); color: var(--c-success); }
.chip-orange { background: rgba(255,159,28,.12); color: #e07800; }
.chip-red { background: rgba(245,72,61,.1); color: var(--c-danger); }
.chip-cyan { background: rgba(0,212,255,.12); color: #0092b8; }
.chip-purple { background: rgba(114,46,209,.1); color: #7b2ed8; }
.chip-active { background: var(--c-primary); color: #fff; }

.tag-skill {
  display: inline-block; padding: 2px 8px; margin: 0 6px 6px 0;
  background: rgba(63,108,255,.08); color: #3a5bc7;
  border-radius: 4px; font-size: 12px;
}
.tag-skill.on { background: rgba(0,181,120,.12); color: var(--c-success); font-weight: 600; }
.tag-skill.miss { background: rgba(245,72,61,.08); color: var(--c-danger); }

.badge-dot {
  display: inline-block; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--c-danger); color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; font-style: normal;
}

/* 状态徽标 */
.st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 500; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-pending { background: #fff6e8; color: #d98200; }
.st-pass { background: #e8f8f1; color: var(--c-success); }
.st-reject { background: #fdeeed; color: var(--c-danger); }
.st-off { background: #f0f2f6; color: #8a94a6; }
.st-applied { background: rgba(63,108,255,.1); color: var(--c-primary); }
.st-interview { background: rgba(114,46,209,.1); color: #7b2ed8; }
.st-offer { background: #e8f8f1; color: var(--c-success); }
.st-online { background: #e8f8f1; color: var(--c-success); }

/* 表单 */
.form-item { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--c-text-2); margin-bottom: 7px; font-weight: 500; }
.form-label .req::before { content: "* "; color: var(--c-danger); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--c-border);
  border-radius: 8px; font-size: 14px; background: #fff; color: var(--c-text);
  transition: border-color .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--c-primary); }
.form-textarea { resize: vertical; min-height: 76px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-item { flex: 1; }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15, 25, 45, .5);
  display: flex; align-items: center; justify-content: center; z-index: 2000;
  animation: fadeIn .18s;
}
.modal {
  background: #fff; border-radius: 14px; width: 480px; max-width: 92vw;
  max-height: 86vh; display: flex; flex-direction: column;
  animation: popIn .22s; box-shadow: var(--shadow-lg);
}
.modal-head {
  padding: 16px 20px; border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 16px; font-weight: 600;
}
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--c-border); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { font-size: 20px; color: var(--c-text-3); padding: 2px 8px; }
.modal-close:hover { color: var(--c-text); }

/* Toast */
.toast {
  position: fixed; top: 40px; left: 50%; transform: translateX(-50%) translateY(-16px);
  background: rgba(20, 30, 50, .88); color: #fff; padding: 10px 22px;
  border-radius: 8px; font-size: 14px; z-index: 3000; opacity: 0;
  transition: all .25s; pointer-events: none; max-width: 80vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 空状态 */
.empty { text-align: center; padding: 46px 20px; color: var(--c-text-3); font-size: 13px; }
.empty::before { content: "暂无数据"; display: block; font-size: 14px; margin-bottom: 8px; color: #a8b4c6; }

/* 评分条 */
.m-bar { height: 7px; background: #edf1f8; border-radius: 4px; overflow: hidden; }
.m-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4f7cff, #38d6c0); }
.m-bar.warn i { background: linear-gradient(90deg, #ffb03a, #ff8a3c); }
.m-bar.bad i { background: linear-gradient(90deg, #ff7b6b, #f5483d); }

/* 匹配分颜色 */
.score-hi { color: var(--c-success); }
.score-mid { color: #3f6cff; }
.score-low { color: #e07800; }

/* 数字字体（大屏） */
.num-font { font-family: "DIN Alternate", "Bahnschrift", "Arial Narrow", sans-serif; font-variant-numeric: tabular-nums; }

/* 排行条形（hbars 通用结构样式，颜色由图表内联提供） */
.rank-list { display: flex; flex-direction: column; gap: 8px; height: 100%; overflow: hidden; justify-content: center; }
.rank-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rank-no { width: 20px; height: 20px; border-radius: 5px; background: #e8eefb; color: #5c6b80; font-size: 11.5px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.rank-no.top1 { background: linear-gradient(135deg, #ff9d3c, #ff6b3c); color: #fff; }
.rank-no.top2 { background: linear-gradient(135deg, #ffd86b, #ffb03a); color: #7a4a00; }
.rank-no.top3 { background: linear-gradient(135deg, #c9d6ff, #9fb4e6); color: #33456e; }
.rank-name { flex: 1; color: #5c6b80; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-bar { flex: 1.15; height: 8px; background: #edf1f8; border-radius: 4px; overflow: hidden; }
.rank-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #4f7cff, #38d6c0); }
.rank-val { width: 52px; text-align: right; color: #1f2733; font-weight: 700; font-variant-numeric: tabular-nums; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   入口导航页
   ============================================================ */
.home-wrap {
  min-height: 100vh; background:
    radial-gradient(ellipse 900px 480px at 15% -8%, rgba(63,108,255,.14), transparent),
    radial-gradient(ellipse 800px 460px at 88% 8%, rgba(0,212,255,.1), transparent),
    #f3f6fb;
}
.home-nav {
  max-width: 1180px; margin: 0 auto; padding: 22px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: #ffffff url("logo-brand.png") center / 82% no-repeat;
  box-shadow: 0 4px 12px rgba(217,43,43,.18);
}
.brand-name { font-size: 18px; font-weight: 700; }
.brand-name small { display: block; font-size: 11px; color: var(--c-text-3); font-weight: 400; letter-spacing: 2px; }
.home-nav .links { display: flex; gap: 8px; }

.hero { max-width: 1180px; margin: 30px auto 0; padding: 0 28px; text-align: center; }
.hero h1 { font-size: 40px; font-weight: 800; letter-spacing: 1px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #3f6cff, #00b8d4); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { margin-top: 14px; color: var(--c-text-2); font-size: 15px; }
.hero-tags { margin-top: 18px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* 架构图 */
.arch { max-width: 1180px; margin: 34px auto 0; padding: 0 28px; }
.arch-board { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 26px; }
.arch-board h3 { font-size: 15px; color: var(--c-text); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.arch-board h3::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--c-primary); }
.arch-layers { display: flex; flex-direction: column; gap: 12px; }
.arch-layer { display: flex; align-items: stretch; gap: 14px; }
.arch-label {
  flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 10px; font-size: 13px; font-weight: 600; color: #fff; padding: 10px 6px; text-align: center;
}
.arch-label small { font-size: 10px; opacity: .8; font-weight: 400; margin-top: 3px; letter-spacing: 1px; }
.arch-cells { flex: 1; display: grid; gap: 10px; }
.arch-cell {
  background: #f6f9fe; border: 1px solid #e3ebf7; border-radius: 9px;
  padding: 9px 12px; font-size: 13px; color: var(--c-text-2); text-align: center;
  transition: all .2s;
}
.arch-cell:hover { background: #edf3ff; border-color: #c9d9f7; transform: translateY(-2px); }
.arch-cell b { color: var(--c-text); display: block; font-size: 13px; margin-bottom: 2px; }
.arch-flow { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--c-text-3); font-size: 12px; padding: 4px 0; }
.arch-flow .arrow { color: #9fb4d8; }

/* 四端入口卡片 */
.entries { max-width: 1180px; margin: 30px auto 0; padding: 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.entry-card {
  position: relative; border-radius: 16px; padding: 24px 20px 20px; color: #fff;
  cursor: pointer; overflow: hidden; transition: all .25s; min-height: 190px;
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.entry-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.entry-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255,255,255,.12);
}
.entry-card::before {
  content: ""; position: absolute; right: 14px; top: 16px; width: 44px; height: 44px;
  border-radius: 12px; background: rgba(255,255,255,.2); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.entry-ic { font-size: 24px; margin-bottom: 10px; }
.entry-card h4 { font-size: 17px; font-weight: 700; }
.entry-card p { font-size: 12px; opacity: .92; margin-top: 8px; line-height: 1.7; flex: 1; }
.entry-go { margin-top: 14px; font-size: 12px; display: flex; align-items: center; gap: 4px; opacity: .95; }
.ec-student { background: linear-gradient(135deg, #4f7cff, #6fa3ff); }
.ec-enterprise { background: linear-gradient(135deg, #009f64, #23c58e); }
.ec-admin { background: linear-gradient(135deg, #2f3e9e, #4b5fd6); }
.ec-screen { background: linear-gradient(135deg, #062a4d, #0a5c8f); }

/* MVP 说明 */
.mvp-note { max-width: 1180px; margin: 26px auto 40px; padding: 0 28px; }
.mvp-note .card { padding: 20px 24px; display: flex; gap: 18px; align-items: flex-start; }
.mvp-note .tip-ic { font-size: 22px; }
.mvp-note h5 { font-size: 14px; margin-bottom: 6px; }
.mvp-note p { font-size: 13px; color: var(--c-text-2); line-height: 1.8; }
.home-foot { text-align: center; padding: 8px 0 34px; color: #a4b0c2; font-size: 12px; }

@media (max-width: 960px) {
  .entries { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
  .arch-layer { flex-direction: column; }
  .arch-label { flex-direction: row; gap: 8px; }
}
