/* ======================================================================
 * 34 · 低血糖识别与加餐处理流程 —— 「血糖分诊尺」
 * 视觉：血糖仪 LCD 质感（LCD 底色 + 墨绿数字）+ 深灰机身；三色分带；
 *       读数区做像素网格与段码感；与其余 29 页不共用配色与构图。
 * ====================================================================== */

.hx.hyt {
    --bg: #eef0e9;
    --bg2: #e2e5dc;
    --card: #ffffff;
    --card2: #f4f6f1;
    --card3: #e8ebe3;
    --ink: #1c2620;
    --ink2: #3b4a41;
    --muted: #74837a;
    --line: #d3d9ce;
    --line2: #e5e9e0;
    --accent: #1b7a52;
    --accent-ink: #ffffff;
    --accent-soft: #dcefe5;
    --accent2: #9a4f16;
    --accent2-soft: #f7e6d7;
    --ok: #1b7a52;
    --ok-bg: #dcefe5;
    --warn: #92600a;
    --warn-bg: #f6efd2;
    --bad: #a4271c;
    --bad-bg: #f9e1dd;
    --info: #1d6076;
    --info-bg: #e1eef3;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 3px 10px rgba(28, 38, 32, .08), 0 16px 38px rgba(28, 38, 32, .07);
    --hyt-lcd: #d9e8c8;
    --hyt-lcd-ink: #1e3b28;

    background:
        repeating-linear-gradient(0deg, rgba(27, 122, 82, .035) 0 2px, transparent 2px 26px),
        var(--bg);
}
:root[data-theme="dark"] .hx.hyt {
    --bg: #101713;
    --bg2: #16201a;
    --card: #1a231e;
    --card2: #202b25;
    --card3: #27332c;
    --ink: #e6efe9;
    --ink2: #bccbc2;
    --muted: #84958b;
    --line: #33423a;
    --line2: #27332c;
    --accent: #5cc48c;
    --accent-ink: #08201a;
    --accent-soft: #1a3a2c;
    --accent2: #e0955c;
    --accent2-soft: #372718;
    --ok: #5cc48c;
    --ok-bg: #1a3a2c;
    --warn: #dcb45f;
    --warn-bg: #342a16;
    --bad: #e5847a;
    --bad-bg: #38211e;
    --info: #62b7d0;
    --info-bg: #182f38;
    --shadow: 0 3px 10px rgba(0, 0, 0, .5), 0 16px 38px rgba(0, 0, 0, .34);
    --hyt-lcd: #b8cfa4;
    --hyt-lcd-ink: #12281a;
    background:
        repeating-linear-gradient(0deg, rgba(92, 196, 140, .04) 0 2px, transparent 2px 26px),
        var(--bg);
}

/* ---------- 首屏 ---------- */
.hyt-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(262px, .9fr);
    gap: 20px;
    margin: 22px 0 26px;
    align-items: start;
}
.hyt-device {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 26px 26px 24px;
    position: relative;
    overflow: hidden;
}
.hyt-device::after {
    content: ""; position: absolute; left: 50%; bottom: 6px; width: 90px; height: 4px;
    transform: translateX(-50%); border-radius: 99px; background: var(--card3);
}
.hyt-kicker {
    font: 700 11px var(--font-mono); letter-spacing: .2em; text-transform: uppercase;
    color: var(--accent); margin: 0 0 8px;
}
.hyt-hero h1 { font-size: clamp(28px, 3.5vw, 40px); margin-bottom: 10px; }
.hyt-lede { font-size: 14.8px; line-height: 1.9; color: var(--ink2); margin: 0 0 18px; max-width: 58em; }
.hyt-lede b { color: var(--accent); border-bottom: 2px solid var(--accent-soft); }

/* LCD 屏 */
.hyt-screen {
    background: var(--hyt-lcd);
    color: var(--hyt-lcd-ink);
    border-radius: 12px;
    padding: 16px 18px 14px;
    border: 2px solid var(--line);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, .08);
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.hyt-screen::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .045) 0 1px, transparent 1px 4px);
    pointer-events: none;
}
.hyt-screen-label { font: 700 10.5px var(--font-mono); letter-spacing: .2em; opacity: .72; }
.hyt-readout { display: flex; align-items: baseline; gap: 9px; margin: 2px 0 8px; }
.hyt-num {
    font: 800 56px/1 var(--font-mono); letter-spacing: -.03em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.hyt-unit { font: 700 14px var(--font-mono); opacity: .8; }
.hyt-screen-bar { height: 12px; border-radius: 4px; background: rgba(0, 0, 0, .1); overflow: hidden; position: relative; }
.hyt-screen-bar > i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--accent); transition: width .35s ease, background .25s ease; }
.hyt-screen-bar.is-warn > i { background: var(--warn); }
.hyt-screen-bar.is-bad > i { background: var(--bad); }
.hyt-screen-scale { display: flex; justify-content: space-between; font: 600 10.5px var(--font-mono); opacity: .62; margin-top: 4px; }
.hyt-screen-note { font-size: 12px; margin: 8px 0 0; opacity: .78; }

/* 输入 */
.hyt-inputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hyt-input {
    width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
    background: var(--card2); color: var(--ink); font: 600 15px/1.6 var(--font-mono); padding: 9px 11px; outline: none;
}
.hyt-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
select.hyt-input { font-family: var(--font-body); }

.hyt-sym { margin-top: 16px; border-top: 1px solid var(--line2); padding-top: 14px; }
.hyt-sym-hd { display: block; font: 700 12.5px var(--font-mono); letter-spacing: .06em; color: var(--accent); margin-bottom: 9px; }
.hyt-sym-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.hyt-check { font-size: 13px; padding: 6px 9px; border-radius: var(--radius-sm); }
.hyt-check.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

/* 右侧分带 */
.hyt-side { display: flex; flex-direction: column; gap: 10px; }
.hyt-side-hd { font: 700 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hyt-band { border-radius: var(--radius-sm); padding: 12px 14px; color: #fff; }
.hyt-band b { display: block; font-size: 14.5px; }
.hyt-band span { display: block; font: 700 15px var(--font-mono); margin: 2px 0 3px; }
.hyt-band em { display: block; font-style: normal; font-size: 12px; opacity: .92; }
.hyt-band.is-l1 { background: var(--accent); }
.hyt-band.is-l2 { background: var(--warn); }
.hyt-band.is-l3 { background: var(--bad); }
.hyt-side-note { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; }
.hyt-side-note b { display: block; font-size: 13.5px; margin-bottom: 5px; color: var(--accent); }
.hyt-side-note p { font-size: 12.6px; line-height: 1.8; color: var(--ink2); margin: 0; }

/* ---------- 结果 ---------- */
.hyt-result { display: none; }
.hyt-result.is-on { display: block; }
.hyt-verdict { border-radius: var(--radius-sm); padding: 16px 18px; margin-bottom: 16px; color: #fff; }
.hyt-verdict.is-l1 { background: var(--accent); }
.hyt-verdict.is-l2 { background: var(--warn); }
.hyt-verdict.is-l3 { background: var(--bad); }
.hyt-verdict b { display: block; font-size: 19px; margin-bottom: 4px; }
.hyt-verdict p { font-size: 13.6px; line-height: 1.8; margin: 0; opacity: .95; }

.hyt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.hyt-card { background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 15px; }
.hyt-card .hyt-card-k { font-size: 12.5px; color: var(--muted); }
.hyt-card .hyt-card-v { font: 800 26px var(--font-mono); color: var(--accent); line-height: 1.3; }
.hyt-card .hyt-card-v small { font-size: 13px; font-weight: 500; color: var(--muted); }
.hyt-card p { font-size: 12.6px; line-height: 1.72; color: var(--ink2); margin: 6px 0 0; }

.hyt-flow { display: grid; gap: 0; }
.hyt-flow-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.hyt-flow-row:last-child { border-bottom: 0; }
.hyt-flow-k { font: 700 12px var(--font-mono); color: var(--accent); }
.hyt-flow-v { font-size: 13.6px; color: var(--ink2); line-height: 1.8; }
.hyt-flow-v b { color: var(--ink); }
.hyt-flow-row.is-red .hyt-flow-k { color: var(--bad); }
.hyt-flow-row.is-red { background: var(--bad-bg); border-radius: var(--radius-sm); padding-left: 10px; padding-right: 10px; }

.hx.hyt .hx-table th { background: var(--accent-soft); color: var(--accent); }
.hyt-lv { font-weight: 700; font-family: var(--font-mono); }
.hyt-lv.lv1 { color: var(--accent); }
.hyt-lv.lv2 { color: var(--warn); }
.hyt-lv.lv3 { color: var(--bad); }

@media (max-width: 1080px) {
    .hyt-sym-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hyt-inputs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .hyt-hero { grid-template-columns: minmax(0, 1fr); }
    .hyt-cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .hyt-device { padding: 20px 15px; border-radius: 18px; }
    .hyt-sym-grid, .hyt-inputs { grid-template-columns: minmax(0, 1fr); }
    .hyt-num { font-size: 44px; }
    .hyt-flow-row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}
