/* ============================================================
   岗位价值评估 · 试测向导专用视觉（天勤管理顾问）
   依赖 style.css 的设计令牌（--primary #002060 / --primary-2 #3f23e9）
   ============================================================ */

.jv-hero {
    background: linear-gradient(135deg, #002060 0%, #16418f 55%, #3f23e9 130%);
    color: #fff; padding: 64px 0 56px; text-align: center;
}
.jv-hero .eyebrow {
    display: inline-block; font-size: 12px; letter-spacing: 3px;
    border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
    padding: 5px 16px; margin-bottom: 18px; opacity: .92;
}
.jv-hero h1 { font-size: 34px; margin: 0 0 12px; letter-spacing: 1px; }
.jv-hero h1 em { font-style: normal; color: #ffd66b; }
.jv-hero .sub { font-size: 16px; opacity: .88; margin-bottom: 26px; }
.jv-hero .badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.jv-hero .badge {
    font-size: 13px; padding: 7px 16px; border-radius: 999px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
}

/* ---- 步骤条 ---- */
.jv-stepsbar {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin: -26px auto 30px; max-width: 560px;
}
.jv-stepsbar .st { display: flex; align-items: center; gap: 10px; }
.jv-stepsbar .dot {
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 14px;
    background: #e8edf5; color: #8291a8;
    border: 2px solid #e8edf5; transition: all .25s;
}
.jv-stepsbar .lbl { font-size: 14px; color: #8291a8; font-weight: 500; }
.jv-stepsbar .line { width: 74px; height: 2px; background: #e3e9f2; margin: 0 14px; }
.jv-stepsbar .st.active .dot { background: #002060; border-color: #002060; color: #fff; box-shadow: 0 0 0 5px rgba(0,32,96,.10); }
.jv-stepsbar .st.active .lbl { color: #002060; font-weight: 600; }
.jv-stepsbar .st.done .dot { background: #2b9a5b; border-color: #2b9a5b; color: #fff; }
.jv-stepsbar .st.done .dot::after { content: '\2713'; }
.jv-stepsbar .st.done .dot .num { display: none; }
.jv-stepsbar .st.done .lbl { color: #2b9a5b; }

/* ---- 面板卡片 ---- */
.jv-card {
    background: #fff; border: 1px solid #e6ebf3; border-radius: 16px;
    box-shadow: 0 10px 36px rgba(0,32,96,.07);
    padding: 34px 38px; max-width: 980px; margin: 0 auto;
}
.jv-card h3 { margin: 0 0 6px; font-size: 20px; color: #002060; }
.jv-card .jv-hint { font-size: 13.5px; color: var(--muted); margin: 0 0 24px; }
.jv-card .jv-hint b { color: #e60012; font-weight: 600; }

/* ---- 表单栅格 ---- */
.jv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; }
.jv-grid .full { grid-column: 1 / -1; }
.jv-field label {
    display: block; font-size: 13.5px; font-weight: 600; color: #24344d; margin-bottom: 7px;
}
.jv-field label .req { color: #e60012; margin-left: 3px; }
.jv-field label .opt { color: #9aa7ba; font-weight: 400; font-size: 12px; margin-left: 4px; }
.jv-field input, .jv-field select {
    width: 100%; box-sizing: border-box;
    padding: 11px 14px; font-size: 14.5px; color: #1f2937;
    background: #f8fafd; border: 1.5px solid #dde5f0; border-radius: 9px;
    outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
.jv-field select { appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238291a8' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.jv-field input:focus, .jv-field select:focus {
    border-color: #3f23e9; background: #fff;
    box-shadow: 0 0 0 4px rgba(63,35,233,.10);
}
.jv-field input.jv-invalid, .jv-field select.jv-invalid { border-color: #e60012; box-shadow: 0 0 0 4px rgba(230,0,18,.08); }

/* ---- 因子分组 ---- */
.jv-factor { margin-bottom: 26px; }
.jv-factor-head {
    display: flex; align-items: baseline; gap: 10px;
    padding: 12px 16px; border-radius: 10px; margin-bottom: 14px;
    background: linear-gradient(90deg, rgba(0,32,96,.06), rgba(63,35,233,.04));
}
.jv-factor-head h4 { margin: 0; font-size: 16px; color: #002060; }
.jv-factor-head .w {
    font-size: 12px; font-weight: 700; color: #3f23e9;
    background: rgba(63,35,233,.09); border-radius: 999px; padding: 2px 10px;
}
.jv-factor-head p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---- 维度块 ---- */
.jv-dim { border: 1px solid #edf1f7; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.jv-dim-name { font-size: 14.5px; font-weight: 700; color: #24344d; margin-bottom: 11px; }
.jv-dim-name::before { content: ''; display: inline-block; width: 4px; height: 13px; border-radius: 2px; background: linear-gradient(180deg, #002060, #3f23e9); margin-right: 8px; }
.jv-opts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.jv-opt { cursor: pointer; }
.jv-opt input { position: absolute; opacity: 0; pointer-events: none; }
.jv-opt .jv-pill {
    display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box;
    padding: 10px 10px 12px; border: 1.5px solid #e3e9f2; border-radius: 10px;
    background: #fbfcfe; transition: all .16s;
}
.jv-opt .jv-pill .n {
    width: 22px; height: 22px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; background: #e8edf5; color: #8291a8;
    transition: all .16s;
}
.jv-opt .jv-pill .t { font-size: 12px; line-height: 1.45; color: #55627a; }
.jv-opt:hover .jv-pill { border-color: #b9c6e0; background: #fff; }
.jv-opt input:checked + .jv-pill {
    border-color: #3f23e9; background: #f3f2ff;
    box-shadow: 0 4px 14px rgba(63,35,233,.14);
}
.jv-opt input:checked + .jv-pill .n { background: #3f23e9; color: #fff; }
.jv-opt input:checked + .jv-pill .t { color: #24344d; font-weight: 500; }

/* ---- 多岗位卡片容器 ---- */
.jv-jobs { display: flex; flex-direction: column; gap: 22px; max-width: 980px; margin: 0 auto; }
.jv-job-card { position: relative; }
.jv-job-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; padding-bottom: 14px; border-bottom: 2px solid #eef2f8;
}
.jv-job-no {
    font-size: 18px; font-weight: 800; color: #002060;
    display: inline-flex; align-items: center; gap: 8px;
}
.jv-job-no::before {
    content: ''; width: 8px; height: 18px; border-radius: 3px;
    background: linear-gradient(180deg, #002060, #3f23e9);
}
.jv-job-del {
    font-size: 13px; color: #c0392b; background: #fff;
    border: 1.5px solid #f0c9c2; border-radius: 8px;
    padding: 6px 14px; cursor: pointer; transition: all .16s;
}
.jv-job-del:hover { background: #fdf1f1; border-color: #e0a59c; }
.jv-score-title { margin: 26px 0 6px; font-size: 18px; color: #002060; }

/* ---- 族群选择条 ---- */
.jv-family-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    background: #f6f8fd; border: 1px solid #e6ebf3; border-radius: 12px;
    padding: 12px 16px; margin: 22px 0 4px;
}
.jv-family-bar label { font-size: 13.5px; font-weight: 600; color: #24344d; }
.jv-family-bar select {
    width: auto; min-width: 220px; box-sizing: border-box;
    padding: 9px 36px 9px 14px; font-size: 14.5px; color: #1f2937;
    background-color: #fff; border: 1.5px solid #dde5f0; border-radius: 9px;
    appearance: none; cursor: pointer; outline: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%238291a8' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center;
}
.jv-family-bar select:focus { border-color: #3f23e9; box-shadow: 0 0 0 4px rgba(63,35,233,.10); }
.jv-family-tip { font-size: 12.5px; color: #3f23e9; font-weight: 600; }

/* ---- 增加岗位行 ---- */
.jv-add-row {
    max-width: 980px; margin: 24px auto 0;
    display: flex; align-items: center; justify-content: center; gap: 16px;
}
.jv-add-tip { font-size: 13.5px; color: #64708a; }
.jv-add-tip b { color: #3f23e9; font-size: 15px; }

/* ---- 评估人区块（多评估人背靠背打分） ---- */
.jv-raters { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.jv-rater {
    border: 1px solid #e6ebf3; border-radius: 14px;
    padding: 20px 22px; background: #fcfdff;
}
.jv-rater-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px dashed #e3e9f2;
}
.jv-rater-no { font-size: 15px; font-weight: 700; color: #002060; }
.jv-rater-del {
    font-size: 12.5px; color: #c0392b; background: #fff;
    border: 1.5px solid #f0c9c2; border-radius: 8px;
    padding: 5px 12px; cursor: pointer; transition: all .16s;
}
.jv-rater-del:hover { background: #fdf1f1; border-color: #e0a59c; }
.jv-rater-name { margin-bottom: 14px; max-width: 380px; }
.jv-rater-name label { display: block; font-size: 13.5px; font-weight: 600; color: #24344d; margin-bottom: 7px; }
.jv-rater-name label .opt { color: #9aa7ba; font-weight: 400; font-size: 12px; margin-left: 4px; }
.jv-rater-name input {
    width: 100%; box-sizing: border-box; padding: 10px 14px; font-size: 14.5px; color: #1f2937;
    background: #f8fafd; border: 1.5px solid #dde5f0; border-radius: 9px; outline: none;
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.jv-rater-name input:focus { border-color: #3f23e9; background: #fff; box-shadow: 0 0 0 4px rgba(63,35,233,.10); }
.jv-rater-score-title { margin: 4px 0 6px; font-size: 16px; color: #002060; }

/* ---- 增加评估人行 ---- */
.jv-add-rater-row { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.jv-btn.sm { min-width: auto; padding: 9px 18px; font-size: 14px; box-shadow: none; }

/* ---- 操作区 ---- */
.jv-actions { display: flex; gap: 12px; justify-content: center; margin-top: 28px; }
.jv-btn {
    min-width: 200px; padding: 13px 30px; font-size: 15px; font-weight: 600;
    border: none; border-radius: 10px; cursor: pointer; transition: all .18s;
    background: linear-gradient(135deg, #002060, #3f23e9); color: #fff;
    box-shadow: 0 8px 20px rgba(0,32,96,.22);
}
.jv-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,32,96,.28); }
.jv-btn.ghost { background: #fff; color: #002060; border: 1.5px solid #c9d4e8; box-shadow: none; }
.jv-btn.ghost:hover { border-color: #002060; background: #f6f8fd; box-shadow: none; }

/* ---- 错误提示与底注 ---- */
.jv-alert {
    max-width: 980px; margin: 0 auto 18px; padding: 12px 18px;
    background: #fdf1f1; border: 1px solid #f3c6c6; border-left: 4px solid #e60012;
    border-radius: 8px; color: #a11a1a; font-size: 14px;
}
.jv-note {
    max-width: 980px; margin: 26px auto 0; padding: 14px 20px;
    background: #f6f8fd; border-radius: 10px; font-size: 13px; color: var(--muted);
    border: 1px dashed #d4ddf0; text-align: center;
}

@media (max-width: 760px) {
    .jv-hero { padding: 44px 0 48px; } .jv-hero h1 { font-size: 26px; }
    .jv-card { padding: 24px 18px; }
    .jv-grid { grid-template-columns: 1fr; }
    .jv-opts { grid-template-columns: 1fr 1fr; }
    .jv-stepsbar .line { width: 30px; margin: 0 8px; }
    .jv-stepsbar .lbl { display: none; }
}
