/* 广平县人工智能 OPC 初步摸底表（17 题）· 政务蓝白底表单
   PC / 手机共用，独立前缀 s17-，不污染站点原有样式 */

.s17-wrap {
    --s17-blue: #1d4f8f;
    --s17-blue-dark: #154977;
    --s17-blue-soft: #eef4fb;
    --s17-line: #e2e8f0;
    --s17-ink: #1f2733;
    --s17-sub: #6b7684;
    --s17-bg: #f5f7fa;
    max-width: 1120px;
    margin: 0 auto;
    color: var(--s17-ink);
    font-size: 15px;
    line-height: 1.7;
}
.s17-wrap *, .s17-wrap *:before, .s17-wrap *:after { box-sizing: border-box; }

/* 顶部标题区 */
.s17-hero {
    background: linear-gradient(135deg, #0d2a4d 0%, #143c66 58%, #1c5080 100%);
    color: #fff;
    border-radius: 10px;
    padding: 16px 32px 16px;
    margin-bottom: 18px;
    box-shadow: 0 6px 18px rgba(9,32,58,.28);
    position: relative;
    overflow: hidden;
}
.s17-hero:after {
    content: ""; position: absolute; right: -60px; top: -90px;
    width: 260px; height: 260px; border-radius: 50%;
    border: 1px solid rgba(232,200,131,.22);
    box-shadow: 0 0 0 34px rgba(232,200,131,.05), 0 0 0 68px rgba(232,200,131,.04);
    pointer-events: none;
}
.s17-hero .s17-kicker {
    font-size: 12px; letter-spacing: 2px; margin: 0 0 8px;
    color: #e8c883; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
}
.s17-hero .s17-kicker:before {
    content: ""; width: 14px; height: 2px; background: #e8c883;
}
.s17-hero h1 { margin: 0 0 8px; font-size: 27px; font-weight: 700; letter-spacing: .5px; }
.s17-hero p { margin: 0; font-size: 14px; color: rgba(255,255,255,.78); opacity: 1; }
.s17-hero .s17-hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.s17-hero .s17-hero-meta span {
    background: rgba(232,200,131,.10); border: 1px solid rgba(232,200,131,.35);
    color: #f3dcae;
    border-radius: 99px; padding: 3px 13px; font-size: 12.5px;
}
.s17-hero .s17-hero-recruit {
    position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
    z-index: 2;
    display: flex; flex-direction: column; gap: 8px; align-items: stretch;
    text-align: center;
}
/* 每行一张玻璃卡 */
.s17-hero .s17-hero-recruit span {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 10px;
    padding: 7px 16px;
    box-shadow: 0 2px 8px rgba(13,51,89,.18);
    font-size: 13px; font-weight: 400; letter-spacing: .3px;
    color: rgba(255,255,255,.92); white-space: nowrap;
    text-shadow: 0 1px 3px rgba(13,51,89,.25);
}
/* 数字大号红粗 */
.s17-hero .s17-hero-recruit b {
    font-size: 22px; font-weight: 700; color: #ff5a5a; margin: 0 3px;
    font-variant-numeric: tabular-nums;
    text-shadow: none;
}
/* 统计卡下方跳转按钮（深蓝） */
.s17-hero .s17-hero-recruit-btn {
    display: block; text-align: center; margin-top: 4px;
    background: linear-gradient(180deg, #0d2a4d, #0a2140);
    border: 1px solid rgba(255,255,255,.28);
    color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 2px;
    padding: 8px 16px; border-radius: 8px; text-decoration: none;
    box-shadow: 0 2px 8px rgba(9,32,58,.35);
    transition: filter .15s ease, transform .15s ease;
}
.s17-hero .s17-hero-recruit-btn:hover { filter: brightness(1.25); transform: translateY(-1px); }

/* ============ 自测页专属头部（深藏青+金饰，与摸底表亮蓝横幅区分） ============ */
.s17-hero--quiz {
    background: linear-gradient(135deg, #0d2a4d 0%, #143c66 58%, #1c5080 100%);
    border: none;
    box-shadow: 0 6px 18px rgba(9,32,58,.28);
}
.s17-hero--quiz:before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
    background: linear-gradient(180deg, #e8c883, #caa14e);
    border-radius: 10px 0 0 10px;
}
.s17-hero--quiz:after {
    content: "测"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    font-size: 88px; font-weight: 700; color: rgba(255,255,255,.06);
    line-height: 1; pointer-events: none;
}
.s17-hero--quiz .s17-kicker {
    color: #e8c883; opacity: 1; font-weight: 600;
    display: inline-flex; align-items: center; gap: 8px;
}
.s17-hero--quiz .s17-kicker:before {
    content: ""; width: 14px; height: 2px; background: #e8c883;
}
.s17-hero--quiz h1 { color: #fff; }
.s17-hero--quiz p { color: rgba(255,255,255,.78); opacity: 1; }
.s17-hero--quiz .s17-hero-meta span {
    background: rgba(232,200,131,.10); border: 1px solid rgba(232,200,131,.35); color: #f3dcae;
}

/* 说明卡片（已按需求移除，样式保留以便后续复用） */

/* 进度条 */
.s17-bar {
    position: sticky; top: 8px; z-index: 20;
    background: rgba(255,255,255,.97); backdrop-filter: blur(6px);
    border: 1px solid #e2eaf3; border-radius: 12px;
    box-shadow: 0 3px 12px rgba(21,73,119,.10);
    padding: 12px 16px; margin-bottom: 10px;
}
.s17-bar-track {
    position: relative;
    height: 10px; background: #e3eaf3; border-radius: 99px; overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(21,73,119,.12);
}
.s17-bar-fill {
    position: relative;
    height: 100%; width: 0; border-radius: 99px;
    background: linear-gradient(90deg, var(--s17-blue) 0%, #2b6cb0 60%, #4a90d9 100%);
    box-shadow: 0 0 8px rgba(74,144,217,.45);
    transition: width .35s ease;
}
.s17-bar-fill:after {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,.30), rgba(255,255,255,0) 45%);
    border-radius: 99px; pointer-events: none;
}
.s17-bar-txt {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    margin-top: 8px; font-size: 12.5px; color: var(--s17-sub);
}
.s17-bar-txt span:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--s17-blue); }
.s17-bar-txt span:first-child:before {
    content: ""; width: 7px; height: 7px; border-radius: 50%;
    background: var(--s17-blue); box-shadow: 0 0 0 3px rgba(74,144,217,.18);
}
.s17-bar-txt span:last-child { opacity: .8; }

/* 分组 */
.s17-group { margin: 26px 0 12px; display: flex; align-items: center; gap: 12px; }
.s17-group .s17-group-no {
    width: 30px; height: 30px; flex: none; border-radius: 6px;
    background: var(--s17-blue); color: #fff; font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.s17-group h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: .5px; }
.s17-group small { color: var(--s17-sub); font-size: 12.5px; font-weight: 400; }
.s17-group:after { content: ""; flex: 1; height: 1px; background: var(--s17-line); }

/* 题目卡片 */
.s17-q {
    background: #fff; border: 1px solid var(--s17-line); border-radius: 8px;
    padding: 16px 20px; margin-bottom: 10px; transition: border-color .15s, box-shadow .15s;
}
.s17-q:focus-within { border-color: #a9c3e2; box-shadow: 0 0 0 3px rgba(29,79,143,.07); }
.s17-q.s17-err { border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,.09); }
.s17-qh { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.s17-qh .s17-n {
    width: 24px; height: 24px; flex: none; border-radius: 5px;
    background: var(--s17-blue-soft); color: var(--s17-blue);
    font-size: 12.5px; font-weight: 700; text-align: center; line-height: 24px;
}
.s17-qh h3 { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.6; }
.s17-qh .s17-tag {
    display: inline-block; margin-left: 8px; vertical-align: 2px;
    font-size: 11.5px; font-weight: 400; color: var(--s17-sub);
    background: #f2f5f9; border: 1px solid var(--s17-line);
    border-radius: 3px; padding: 1px 7px;
}
.s17-qh .s17-tag.s17-req { color: #a4342f; background: #fdf0ee; border-color: #f3d4cf; }

/* 选项 */
.s17-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.s17-opt {
    display: flex; align-items: flex-start; gap: 8px;
    border: 1px solid var(--s17-line); border-radius: 6px;
    padding: 9px 12px; cursor: pointer; font-size: 14px; line-height: 1.5;
    background: #fff; color: #384456;
    flex: 0 1 auto; min-height: 40px; transition: .15s;
    -webkit-tap-highlight-color: transparent;
}
.s17-opt:hover { border-color: #a9c3e2; background: #fafcff; }
.s17-opt input { margin: 3px 0 0; width: 15px; height: 15px; flex: none; accent-color: var(--s17-blue); }
.s17-opt.s17-on { border-color: var(--s17-blue); background: var(--s17-blue-soft); color: #16416f; font-weight: 600; }
.s17-opt.s17-wide { flex: 1 1 100%; }

/* 文本填写 */
.s17-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.s17-field { flex: 1 1 220px; min-width: 0; }
.s17-field label { display: block; font-size: 12.5px; color: var(--s17-sub); margin-bottom: 5px; }
.s17-field input {
    width: 100%; border: 1px solid var(--s17-line); border-radius: 6px;
    padding: 10px 12px; font-size: 15px; font-family: inherit;
    background: #fff; color: var(--s17-ink);
}
.s17-field input:focus { outline: none; border-color: var(--s17-blue); box-shadow: 0 0 0 3px var(--s17-blue-soft); }
.s17-field input.s17-invalid { border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217,83,79,.09); }

/* 操作区 */
.s17-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.s17-btn {
    font-family: inherit; font-size: 15px; font-weight: 600;
    border-radius: 6px; padding: 12px 24px; cursor: pointer; border: 1px solid transparent;
}
.s17-btn-primary { background: var(--s17-blue); color: #fff; border-color: var(--s17-blue); flex: 1; }
.s17-btn-primary:hover { background: var(--s17-blue-dark); }
.s17-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.s17-btn-ghost { background: #fff; color: #4a5568; border-color: var(--s17-line); }
.s17-btn-ghost:hover { background: #f5f7fa; }
.s17-tip { margin: 12px 0 0; font-size: 12.5px; color: var(--s17-sub); }

/* 成功卡片 */
.s17-done {
    display: none; background: #fff; border: 1px solid var(--s17-line);
    border-top: 3px solid var(--s17-blue);
    border-radius: 8px; padding: 34px 24px; text-align: center; margin-bottom: 18px;
}
.s17-done .s17-done-ic {
    width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
    background: var(--s17-blue-soft); color: var(--s17-blue);
    font-size: 28px; line-height: 56px; font-weight: 700;
}
.s17-done h2 { margin: 0 0 8px; font-size: 20px; }
.s17-done p { margin: 0 0 20px; color: var(--s17-sub); font-size: 14px; }
.s17-done .s17-actions { justify-content: center; }

/* 页脚 */
.s17-foot { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--s17-line); font-size: 12.5px; color: var(--s17-sub); text-align: center; line-height: 1.9; }

/* 手机端 */
@media (max-width: 720px) {
    .s17-wrap { font-size: 14.5px; }
    .s17-hero { padding: 12px 18px 14px; border-radius: 8px; }
    .s17-hero h1 { font-size: 20px; }
    .s17-hero p { font-size: 13px; }
    .s17-hero .s17-hero-recruit { position: static; transform: none; margin: 12px 0 0 auto; width: fit-content; right: auto; }
    .s17-hero .s17-hero-recruit span { font-size: 13px; padding: 6px 12px; }
    .s17-hero .s17-hero-recruit b { font-size: 20px; }
    .s17-hero--quiz:after { font-size: 52px; right: 10px; opacity: .8; }
    .s17-bar { top: 6px; padding: 10px 12px; border-radius: 10px; }
    .s17-bar-track { height: 8px; }
    .s17-group { margin: 22px 0 10px; }
    .s17-group h2 { font-size: 16px; }
    .s17-q { padding: 14px 14px; border-radius: 8px; }
    .s17-qh h3 { font-size: 14.5px; }
    .s17-opt { flex: 1 1 100%; font-size: 14px; padding: 10px 12px; }
    .s17-btn-primary { flex: 1 1 100%; }
    .s17-btn-ghost { flex: 1 1 100%; }
}

/* 第 16 轮：企业摸底自测（后台配置条目 · 白底高对比度，替换原灰底样式） */
/* 第 17 轮：分组标题取消蓝色方块徽章与右侧横线装饰，只保留简洁文字 */
.qz-wrap .s17-group { margin: 24px 0 14px; gap: 10px; }
.qz-wrap .s17-group:after { display: none; }
.qz-wrap .s17-group-no { display: none; }
.qz-wrap .s17-group h2 { color: #1d4f8f; font-size: 17px; }
.qz-wrap .s17-group small { font-size: 12.5px; }
.qz-wrap .qz-q { background: #fff; border-color: #dfe6ef; }
.qz-wrap .qz-q:hover { border-color: #a9c3e2; }
.qz-wrap .qz-q .s17-qh h3 { color: #1f2733; font-weight: 600; }
.qz-wrap .qz-hint { margin: -3px 0 12px 34px; font-size: 12.5px; line-height: 1.7; color: #5b6878; }
.qz-wrap .s17-opt { color: #2d3748; background: #fff; }
.qz-wrap .s17-opt span { line-height: 1.5; }
.qz-wrap .s17-opt.s17-on { color: #16416f; }
.qz-wrap .qz-notice { border-left-color: #1d4f8f; }
.qz-result { background: #fff; border: 1px solid #dfe6ef; border-left: 3px solid #1d4f8f;
    border-radius: 8px; padding: 18px 20px; margin: 18px 0 4px; }
.qz-result[hidden] { display: none !important; }
.qz-result strong { font-size: 16px; color: #16416f; }
.qz-result p { margin: 6px 0 0; font-size: 13.5px; color: #4a5568; line-height: 1.7; }
.qz-result.qz-ok { border-left-color: #12805c; background: #f5fbf8; }
.qz-result.qz-mid { border-left-color: #b07a15; background: #fffaf0; }
.qz-result.qz-low { border-left-color: #a4342f; background: #fdf6f5; }
.qz-metrics { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: #4a5568; }
.qz-metrics b { color: #1d4f8f; font-size: 15px; }
.qz-wrap .s17-tag { background: #f2f5f9; border-color: #dfe6ef; color: #5b6878; }
/* 第 17 轮：操作区三个按钮等宽，避免主按钮独占整行 */
.qz-wrap #qz-form > .s17-actions .s17-btn { flex: 1 1 0; min-width: 0; padding-left: 16px; padding-right: 16px; }
@media (max-width: 720px) {
    .qz-wrap .qz-hint { margin-left: 0; font-size: 12.5px; }
    .qz-wrap #qz-form > .s17-actions .s17-btn { flex: 1 1 100%; }
}

/* ============================================================
   手机端：OPC行业自测 独立入口（从招募卡里移出，卡片下方单独一块）
   仅 body.m-body 生效，电脑端不受影响
   ============================================================ */
body.m-body .s17-self-entry {
    display: flex; align-items: center; gap: 12px;
    margin: 14px 0 14px; padding: 12px 14px;
    background: #fff; border: 1px solid #dbe5f1; border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 10px 24px -18px rgba(15, 45, 85, .75);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
body.m-body .s17-self-entry:active {
    transform: scale(.985); border-color: #b9cfe6;
    box-shadow: 0 4px 14px -12px rgba(15, 45, 85, .8);
}
body.m-body .s17-self-ic {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; color: #fff;
    background: linear-gradient(150deg, #1d4f8f, #0d2a4d);
    box-shadow: 0 6px 14px -8px rgba(13, 42, 77, .95);
}
body.m-body .s17-self-ic svg { width: 22px; height: 22px; display: block; }
body.m-body .s17-self-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
body.m-body .s17-self-tx b { font-size: 15.5px; font-weight: 700; color: #17365d; letter-spacing: .4px; line-height: 1.15; }
body.m-body .s17-self-tx small { font-size: 11.5px; color: #8794a4; line-height: 1.2; }
body.m-body .s17-self-ar { flex: 0 0 auto; font-style: normal; font-size: 20px; line-height: 1; color: #9fb0c4; }
body.m-body .s17-self-entry:active .s17-self-ar { color: #1d4f8f; }
