/* ======================================================================
 *  鼠标手与腱鞘炎风险自查 · 独立设计「工位健康仪表盘」
 *  ------------------------------------------------------------------
 *  配色：青绿（健康、舒缓）为主，珊瑚（风险、警示）为辅
 *  布局：首屏超大数字滑块 → 仪表盘 + 问卷 + 调整清单三栏 → 动作卡组
 *  字体层级：kicker 11.5 → H1 40 → 仪表数字 56 → h3 16.5 → 正文 14
 * ====================================================================== */

.mhc {
    --bg: #f2f8f7;
    --bg2: #e4f1ef;
    --card: #ffffff;
    --card2: #f5faf9;
    --ink: #0f2b28;
    --sub: #4c6b67;
    --faint: #88a29e;
    --line: #dceae7;
    --line2: #eaf3f1;
    --teal: #0f9b8e;
    --teal-2: #16b3a2;
    --teal-soft: #e0f4f1;
    --teal-ink: #0b7d72;
    --coral: #ff6b57;
    --coral-soft: #ffe9e5;
    --amber: #e8890c;
    --amber-soft: #fdf3e0;
    --ok: #2f9e44;
    --bad: #e03131;
    --bad-soft: #fdecec;
    --shadow-sm: 0 1px 2px rgba(15, 43, 40, .05), 0 6px 16px rgba(15, 43, 40, .05);
    --shadow: 0 2px 6px rgba(15, 43, 40, .07), 0 20px 46px rgba(15, 43, 40, .09);
    --r: 18px;
    --r-sm: 11px;
    --num: "Bahnschrift", "Segoe UI Variable Text", ui-monospace, SFMono-Regular, Menlo, monospace;

    background:
        radial-gradient(820px 360px at 6% -6%, rgba(15, 155, 142, .13), transparent 60%),
        radial-gradient(700px 340px at 96% 4%, rgba(255, 107, 87, .10), transparent 58%),
        var(--bg);
}

:root[data-theme="dark"] .mhc {
    --bg: #08110f;
    --bg2: #0d1a18;
    --card: #101d1b;
    --card2: #162422;
    --ink: #e6f2f0;
    --sub: #9db5b1;
    --faint: #728a86;
    --line: #1e3230;
    --line2: #182927;
    --teal: #2fd0bb;
    --teal-2: #5ee7d5;
    --teal-soft: rgba(47, 208, 187, .14);
    --teal-ink: #63e6d5;
    --coral: #ff8f7e;
    --coral-soft: rgba(255, 143, 126, .14);
    --amber: #ffd43b;
    --amber-soft: rgba(255, 212, 59, .13);
    --ok: #51cf66;
    --bad: #ff8787;
    --bad-soft: rgba(255, 135, 135, .14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 16px rgba(0, 0, 0, .3);
    --shadow: 0 2px 6px rgba(0, 0, 0, .55), 0 20px 46px rgba(0, 0, 0, .38);
}

.mhc * { box-sizing: border-box; }

/* ---------------- 首屏 ---------------- */
.mhc-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: center;
    padding: 30px 0 26px;
}
.mhc-hero-l .tsk-h1 { margin-top: 15px; }
.mhc-hero-l .tsk-h1 em { color: var(--teal-ink); }

.mhc-hero-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 20px 22px 18px;
    position: relative;
    overflow: hidden;
}
.mhc-hero-card::after {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15, 155, 142, .16), transparent 70%);
}
.mhc-hero-card-t { font-size: 12.5px; font-weight: 700; color: var(--sub); }
.mhc-hero-num {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 6px 0 10px;
}
.mhc-hero-num span {
    font: 800 54px/1 var(--num);
    color: var(--teal-ink);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}
.mhc-hero-num i {
    font-style: normal;
    font-size: 13px;
    font-weight: 700;
    color: var(--faint);
}
.mhc-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 10px;
    border-radius: 99px;
    background: linear-gradient(90deg, #9be3d6 0 30%, #f7c98b 30% 62%, #ff9d8c 62% 100%);
    outline: none;
    cursor: pointer;
}
.mhc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--card);
    border: 5px solid var(--teal);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}
.mhc-range::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--card);
    border: 5px solid var(--teal);
    cursor: pointer;
}
.mhc-range-ticks {
    display: flex;
    justify-content: space-between;
    font: 600 10.5px/1 var(--num);
    color: var(--faint);
    margin-top: 6px;
}
.mhc-hero-tip {
    margin-top: 10px;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--sub);
    background: var(--teal-soft);
    border-radius: 9px;
    padding: 8px 11px;
    min-height: 38px;
}
.mhc-hero-go { width: 100%; margin-top: 12px; }

/* ---------------- 主区 ---------------- */
.mhc-board {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: start;
}
.mhc-col {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: var(--shadow-sm);
    padding: 18px 19px 20px;
}
.mhc-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 11px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--line2);
}
.mhc-panel-gap { margin-top: 22px; }
.mhc-hint-inline { font-size: 11.5px; color: var(--faint); }

/* 环形仪表 */
.mhc-gauge { text-align: center; }
.mhc-ring {
    width: 168px;
    height: 168px;
    margin: 4px auto 12px;
    border-radius: 50%;
    background: conic-gradient(var(--teal) 0deg, var(--line) 0deg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .5s cubic-bezier(.22, .68, .36, 1);
}
.mhc-ring-in {
    width: 134px;
    height: 134px;
    border-radius: 50%;
    background: var(--card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mhc-ring-num {
    font: 800 54px/1 var(--num);
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}
.mhc-ring-max { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.mhc-level {
    border-radius: 10px;
    padding: 9px 12px;
    background: var(--card2);
    border: 1px solid var(--line);
}
.mhc-level-name {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--ink);
}
.mhc-level-advice {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.65;
    color: var(--sub);
}

.mhc-dims { margin-top: 16px; display: grid; gap: 11px; }
.mhc-dim-t {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--sub);
    margin-bottom: 5px;
}
.mhc-dim-t b { font: 800 13px/1 var(--num); color: var(--ink); }
.mhc-dim-bar { height: 9px; border-radius: 99px; background: var(--line2); overflow: hidden; }
.mhc-dim-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--teal-2), var(--teal));
    transition: width .4s cubic-bezier(.22, .68, .36, 1);
}
.mhc-dim[data-dim="posture"] .mhc-dim-bar i { background: linear-gradient(90deg, #ffd8a8, var(--amber)); }
.mhc-dim[data-dim="symptom"] .mhc-dim-bar i { background: linear-gradient(90deg, #ffb3a7, var(--coral)); }
.mhc-full { width: 100%; margin-top: 16px; }

/* 选项 */
.mhc-opts { display: grid; gap: 8px; }
.mhc-opt {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    text-align: left;
    border: 1.5px solid var(--line);
    background: var(--card2);
    border-radius: var(--r-sm);
    padding: 11px 13px;
    cursor: pointer;
    transition: .15s;
    color: inherit;
}
.mhc-opt:hover { border-color: var(--teal); }
.mhc-opt-check {
    width: 19px;
    height: 19px;
    border-radius: 6px;
    border: 1.5px solid var(--line);
    background: var(--card);
    flex: none;
    position: relative;
    transition: .15s;
}
.mhc-opt.on { border-color: var(--teal); background: var(--teal-soft); }
.mhc-opt.on .mhc-opt-check { background: var(--teal); border-color: var(--teal); }
.mhc-opt.on .mhc-opt-check::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}
.mhc-opt-main { flex: 1; min-width: 0; }
.mhc-opt-main b {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
}
.mhc-opt-main i {
    display: block;
    font-style: normal;
    font-size: 11.5px;
    color: var(--faint);
    line-height: 1.55;
    margin-top: 1px;
}
.mhc-opt-score {
    font: 800 12.5px/1 var(--num);
    border-radius: 99px;
    padding: 5px 9px;
    flex: none;
}
.mhc-opt-score.plus { background: var(--coral-soft); color: var(--coral); }
.mhc-opt-score.minus { background: var(--teal-soft); color: var(--teal-ink); }

.mhc-redflag {
    margin-top: 16px;
    border-radius: var(--r-sm);
    background: var(--coral-soft);
    border: 1px solid var(--coral);
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.mhc-redflag b { color: var(--coral); font-size: 13.5px; flex: none; }
.mhc-redflag span { font-size: 12.5px; line-height: 1.75; color: var(--ink); }

/* 调整清单 */
.mhc-fixes { display: grid; gap: 9px; }
.mhc-fix {
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: 10px;
    background: var(--card2);
    padding: 11px 13px;
}
.mhc-fix h4 {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 750;
    color: var(--teal-ink);
}
.mhc-fix p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.8;
    color: var(--sub);
}
.mhc-empty {
    font-size: 12.5px;
    color: var(--faint);
    line-height: 1.8;
    padding: 14px 4px;
}

.mhc-diagram { margin-top: 20px; }
.mhc-svg {
    width: 100%;
    height: auto;
    color: var(--teal);
    background: var(--card2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 8px;
}
.mhc-spot circle { fill: var(--coral); }
.mhc-spot text {
    font: 700 11px/1 var(--tsk-font, sans-serif);
    fill: var(--sub);
}
.mhc-spot-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.mhc-spot-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--sub);
}
.mhc-spot-list i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-top: 6px;
    flex: none;
}
.mhc-spot-list i.s1 { background: var(--coral); }
.mhc-spot-list i.s2 { background: var(--amber); }
.mhc-spot-list i.s3 { background: var(--teal); }
.mhc-spot-list b { color: var(--ink); }

/* ---------------- 拉伸动作库 ---------------- */
.mhc-stretches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 14px;
}
.mhc-stretch {
    background: var(--card);
    border: 1px solid var(--line);
    border-top: 3px solid var(--teal);
    border-radius: var(--r-sm);
    padding: 16px 18px 15px;
    box-shadow: var(--shadow-sm);
}
.mhc-stretch-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}
.mhc-stretch-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--teal-ink);
    background: var(--teal-soft);
    border-radius: 99px;
    padding: 4px 10px;
    flex: none;
}
.mhc-stretch-steps {
    margin: 0;
    padding-left: 1.25em;
    display: grid;
    gap: 5px;
}
.mhc-stretch-steps li {
    font-size: 13px;
    line-height: 1.8;
    color: var(--sub);
}
.mhc-stretch-steps li::marker { color: var(--teal); font-weight: 700; }
.mhc-stretch-tip {
    margin-top: 10px;
    font-size: 12px;
    color: var(--faint);
    line-height: 1.7;
    padding-top: 9px;
    border-top: 1px dashed var(--line);
}
.mhc-stretch-foot {
    margin-top: 11px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.mhc-timer-text {
    font: 700 12.5px/1 var(--num);
    color: var(--teal-ink);
    font-variant-numeric: tabular-nums;
}
.mhc-timer.running { border-color: var(--teal); color: var(--teal-ink); background: var(--teal-soft); }

/* ---------------- 误区 ---------------- */
.mhc-myths {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 13px;
}
.mhc-myth {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 15px 17px;
    box-shadow: var(--shadow-sm);
}
.mhc-myth-bad {
    font-size: 14px;
    font-weight: 750;
    color: var(--coral);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 107, 87, .5);
}
.mhc-myth-good {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.85;
    color: var(--sub);
}
.mhc-myth-good b { color: var(--ink); }

/* ---------------- 结果弹窗内容 ---------------- */
.mhc-result-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line2);
}
.mhc-result-num {
    font: 800 46px/1 var(--num);
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    flex: none;
}
.mhc-result-num small { font-size: 16px; color: var(--faint); margin-left: 3px; }
.mhc-result-lv b { display: block; font-size: 16px; font-weight: 800; }
.mhc-result-lv span { display: block; font-size: 12.5px; line-height: 1.7; color: var(--sub); margin-top: 3px; }
.mhc-result-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.mhc-result-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card2);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 9px 12px;
    font-size: 13px;
}
.mhc-result-list span { color: var(--faint); flex: none; }
.mhc-result-list b { color: var(--ink); flex: 1; font-weight: 700; }
.mhc-result-list em {
    font-style: normal;
    font: 800 12.5px/1 var(--num);
    color: var(--teal-ink);
    flex: none;
}
.mhc-result-flag {
    margin-top: 14px;
    background: var(--coral-soft);
    border: 1px solid var(--coral);
    border-radius: 9px;
    padding: 11px 13px;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--ink);
}
.mhc-result-flag b { color: var(--coral); }
.mhc-result-note { margin-top: 12px; font-size: 12px; color: var(--faint); line-height: 1.7; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1220px) {
    .mhc-board { grid-template-columns: 260px minmax(0, 1fr); }
    .mhc-col-fix { grid-column: 1 / -1; }
    .mhc-col-fix { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
    .mhc-col-fix .mhc-panel-head { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
    .mhc-hero { grid-template-columns: 1fr; gap: 20px; }
    .mhc-board { grid-template-columns: 1fr; }
    .mhc-col-fix { grid-column: auto; display: block; }
}
