/* =====================================================================
 * 34 · 眼压与眼底照相对照 —— 独立皮肤「仪器台」
 * 配色：深靛蓝 / 荧光青 / 冷灰；布局：半圆仪表 + 三格双眼对照 + 双列误差面板；
 * 字体层级：64px 等宽仪表数字 + 10px 全大写英文标签 + 700 标题。
 * ===================================================================== */

.hg4-p34 {
    --p34-bg: #eef3f7;
    --p34-surface: #ffffff;
    --p34-surface2: #e7eef4;
    --p34-ink: #102a4c;
    --p34-sub: #3d587a;
    --p34-muted: #7d93ab;
    --p34-line: #d5e0ea;
    --p34-accent: #0f6f9e;
    --p34-accent2: #35d0c0;
    --p34-bad: #c2553f;
    --p34-soft: rgba(15, 111, 158, .10);
    --p34-okbg: rgba(53, 208, 192, .16);
    --p34-badbg: rgba(194, 85, 63, .12);
    --p34-on: #ffffff;
    --p34-shadow: 0 14px 38px rgba(16, 42, 76, .09);
    --p34-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    --p34-sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
    background: var(--p34-bg); color: var(--p34-ink);
    font-family: var(--p34-sans); font-size: 15px; line-height: 1.84;
    min-height: 60vh; padding: 0 0 72px; -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] .hg4-p34 {
    --p34-bg: #0b1420; --p34-surface: #101d2c; --p34-surface2: #152536;
    --p34-ink: #e5f1fa; --p34-sub: #a9c0d6; --p34-muted: #7591aa;
    --p34-line: #22374b; --p34-accent: #5bb8e8; --p34-accent2: #4fe0cf;
    --p34-bad: #f09077; --p34-soft: rgba(91, 184, 232, .14);
    --p34-okbg: rgba(79, 224, 207, .16); --p34-badbg: rgba(240, 144, 119, .14);
    --p34-on: #081420; --p34-shadow: 0 14px 38px rgba(0, 0, 0, .4);
}
.hg4-p34 *, .hg4-p34 *::before, .hg4-p34 *::after { box-sizing: border-box; }
.hg4-p34 h1, .hg4-p34 h2, .hg4-p34 h3 { margin: 0; font-weight: 800; letter-spacing: -.015em; line-height: 1.36; }
.hg4-p34 p { margin: 0 0 12px; }
.hg4-p34 strong, .hg4-p34 b { font-weight: 750; color: var(--p34-ink); }
.hg4-p34 a { color: var(--p34-accent); text-decoration: none; }
.hg4-p34 a:hover { text-decoration: underline; }
.hg4-p34 button { cursor: pointer; font-family: inherit; }
.hg4-p34 [hidden] { display: none !important; }
.hg4-p34 img { max-width: 100%; height: auto; }
.p34-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.p34-wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* ---------- 首屏 ---------- */
.p34-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .96fr); gap: 34px; align-items: center; padding: 38px 0 30px; border-bottom: 1px solid var(--p34-line); }
.p34-kicker { display: inline-block; font: 700 10.5px/1.4 var(--p34-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--p34-accent); background: var(--p34-surface); border: 1px solid var(--p34-line); border-radius: 4px; padding: 5px 10px; }
.p34-hero h1 { font-size: clamp(29px, 3.4vw, 44px); line-height: 1.24; letter-spacing: -.028em; margin: 16px 0 13px; color: var(--p34-ink); background: none; -webkit-text-fill-color: currentColor; }
.p34-lede { font-size: 15.5px; line-height: 1.95; color: var(--p34-sub); max-width: 58ch; margin: 0 0 16px; }
.p34-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; }
.p34-points li { font: 700 11px/1.6 var(--p34-mono); color: var(--p34-sub); background: var(--p34-surface); border-left: 2px solid var(--p34-accent2); border-radius: 0 5px 5px 0; padding: 4px 10px; }
.p34-hero-note { font-size: 12.5px; color: var(--p34-muted); margin: 0; }
.p34-console { background: var(--p34-surface); border: 1px solid var(--p34-line); border-top: 4px solid var(--p34-accent); border-radius: 12px; box-shadow: var(--p34-shadow); padding: 19px 21px 21px; }
.p34-console-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 15px; }
.p34-console-head b { font: 700 11px/1.4 var(--p34-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--p34-accent); }
.p34-console-head span { font: 700 10px/1.4 var(--p34-mono); letter-spacing: .14em; color: var(--p34-accent2); }
.p34-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.p34-field { display: block; font-size: 12.5px; font-weight: 700; color: var(--p34-ink); }
.p34-field > span { display: block; margin-bottom: 5px; }
.p34-field i { font-style: normal; font-weight: 400; font-size: 11px; color: var(--p34-muted); margin-left: 4px; }
.p34-input { width: 100%; font-family: inherit; font-size: 14px; color: var(--p34-ink); background: var(--p34-surface2); border: 1px solid var(--p34-line); border-radius: 7px; padding: 9px 11px; outline: none; }
.p34-input:focus { border-color: var(--p34-accent); box-shadow: 0 0 0 3px var(--p34-soft); }
.p34-textarea { resize: vertical; min-height: 106px; line-height: 1.7; }
.p34-console-btns, .p34-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.p34-btn { appearance: none; border: 1px solid var(--p34-line); background: var(--p34-surface2); color: var(--p34-ink); font-size: 13.5px; font-weight: 700; border-radius: 7px; padding: 9px 16px; transition: transform .14s, filter .14s; }
.p34-btn:hover { transform: translateY(-1px); border-color: var(--p34-accent); }
.p34-btn--main { background: var(--p34-accent); color: var(--p34-on); border-color: var(--p34-accent); }
:root[data-theme="dark"] .p34-btn--main { color: #081420; }
.hg4-err.p34-err { font-size: 12.5px; color: var(--p34-bad); min-height: 0; margin: 8px 0 0; }
.hg4-err.p34-err:empty { display: none; }
.p34-scope { margin: 20px 0 0; padding: 13px 16px; border-left: 3px solid var(--p34-accent2); background: var(--p34-surface); border-radius: 0 8px 8px 0; font-size: 13px; line-height: 1.9; color: var(--p34-sub); }

/* ---------- 结果：仪表 ---------- */
.p34-result, .p34-extra, .p34-content { padding: 28px 0; border-bottom: 1px solid var(--p34-line); }
.p34-sec-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.p34-sec-no { font: 700 10px/1 var(--p34-mono); letter-spacing: .16em; color: var(--p34-accent); border: 1px solid var(--p34-accent); border-radius: 4px; padding: 5px 7px; }
.p34-sec-head h2 { font-size: 21px; }
.p34-sec-head small { font-size: 12px; color: var(--p34-muted); font-weight: 400; }
.p34-empty { display: flex; align-items: center; gap: 16px; background: var(--p34-surface); border: 1px dashed var(--p34-line); border-radius: 12px; padding: 26px 22px; color: var(--p34-muted); font-size: 14px; }
.p34-empty b { font-size: 34px; font-weight: 400; }
.p34-gauge-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: 18px; align-items: stretch; }
.p34-gauge { background: var(--p34-ink); border-radius: 14px; padding: 18px 20px 16px; text-align: center; position: relative; }
:root[data-theme="dark"] .p34-gauge { background: #0a1624; border: 1px solid var(--p34-line); }
.p34-gauge-label { font: 700 10px/1.4 var(--p34-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--p34-accent2); }
.p34-dial { display: block; width: 100%; max-width: 320px; margin: 6px auto 0; }
.p34-dial .p34-arc-bg { stroke: var(--p34-line); opacity: .28; }
.p34-dial .p34-arc-ref { stroke: var(--p34-accent2); }
.p34-dial .p34-tick { stroke: var(--p34-muted); opacity: .6; fill: none; }
.p34-dial .p34-needle-line { stroke: var(--p34-accent2); }
.p34-dial .p34-needle-dot { fill: var(--p34-accent2); }
.p34-dial .p34-dial-text { fill: var(--p34-muted); font-family: var(--p34-mono); font-size: 12px; }
.p34-dial .p34-dial-text--sm { fill: var(--p34-accent2); font-size: 10px; }
.p34-gauge-val { font: 700 58px/1 var(--p34-mono); color: #f2fbff; font-variant-numeric: tabular-nums; margin-top: -18px; letter-spacing: -.04em; }
.p34-gauge-val small { font: 600 13px/1 var(--p34-mono); color: var(--p34-accent2); margin-left: 6px; letter-spacing: 0; }
.p34-gauge-cap { font-size: 11.5px; color: var(--p34-muted); margin-top: 8px; }
.p34-eyes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.p34-eye { background: var(--p34-surface); border: 1px solid var(--p34-line); border-radius: 12px; padding: 16px 15px; display: flex; flex-direction: column; justify-content: center; }
.p34-eye--diff { background: var(--p34-surface2); }
.p34-eye-tag { font: 700 10px/1.5 var(--p34-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--p34-muted); }
.p34-eye b { font: 700 38px/1.25 var(--p34-mono); color: var(--p34-ink); font-variant-numeric: tabular-nums; }
.p34-eye em { font: 600 11px/1.4 var(--p34-mono); font-style: normal; color: var(--p34-muted); }
.p34-eye p { font-size: 12.5px; line-height: 1.72; color: var(--p34-sub); margin: 9px 0 0; }
.p34-tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 4px; padding: 2px 7px; margin-top: 6px; }
.p34-tag--ok { color: var(--p34-accent); background: var(--p34-okbg); }
.p34-tag--warn { color: var(--p34-bad); background: var(--p34-badbg); }
.p34-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; margin-top: 16px; }
.p34-panel { background: var(--p34-surface); border: 1px solid var(--p34-line); border-radius: 12px; padding: 16px 18px; }
.p34-panel h3, .p34-fundus h3 { font-size: 15.5px; margin-bottom: 11px; }
.p34-panel h3 small, .p34-fundus h3 small { display: block; font-size: 11.5px; font-weight: 400; color: var(--p34-muted); margin-top: 3px; }
.p34-list { list-style: none; margin: 0; padding: 0; }
.p34-list li { position: relative; padding: 8px 0 8px 20px; font-size: 13.5px; line-height: 1.85; color: var(--p34-sub); border-bottom: 1px solid var(--p34-line); }
.p34-list li:last-child { border-bottom: 0; }
.p34-list li::before { content: "▸"; position: absolute; left: 0; color: var(--p34-accent2); font-family: var(--p34-mono); }
.p34-list strong { color: var(--p34-ink); }
.p34-multi { display: flex; flex-direction: column; gap: 8px; }
.p34-multi-row { display: flex; justify-content: space-between; gap: 10px; background: var(--p34-surface2); border-radius: 8px; padding: 9px 12px; font: 12.5px/1.6 var(--p34-mono); color: var(--p34-sub); }
.p34-multi-row b { color: var(--p34-ink); }
.p34-multi-empty { font-size: 13px; color: var(--p34-muted); }
.p34-fundus { margin-top: 16px; background: var(--p34-surface); border: 1px solid var(--p34-line); border-radius: 12px; padding: 17px 19px; }
.p34-fundus-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.p34-fundus-chips label { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--p34-sub); background: var(--p34-surface2); border: 1px solid var(--p34-line); border-radius: 7px; padding: 8px 10px; cursor: pointer; }
.p34-fundus-chips input { accent-color: var(--p34-accent); }
.p34-fundus-out { margin-top: 13px; border-top: 1px dashed var(--p34-line); padding-top: 12px; }
.p34-fundus-out h4 { margin: 0 0 8px; font-size: 14px; }
.p34-fundus-out ul { margin: 0; padding-left: 20px; }
.p34-fundus-out li { font-size: 13.5px; line-height: 1.9; color: var(--p34-sub); margin-bottom: 5px; }
.p34-fundus-out li strong { color: var(--p34-ink); }
.p34-subh { font-size: 16px; margin: 22px 0 10px; display: flex; align-items: baseline; gap: 9px; }
.p34-chip { font: 700 11px/1.5 var(--p34-mono); background: var(--p34-soft); color: var(--p34-accent); border-radius: 4px; padding: 3px 9px; }
.p34-table-scroll { overflow-x: auto; border: 1px solid var(--p34-line); border-radius: 9px; }
.p34-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.p34-table th, .p34-table td { padding: 9px 11px; text-align: left; border-bottom: 1px solid var(--p34-line); }
.p34-table th { background: var(--p34-surface2); font: 700 10.5px/1.5 var(--p34-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--p34-sub); white-space: nowrap; }
.p34-table tr:last-child td { border-bottom: 0; }
.p34-disclaimer { margin: 20px 0 0; padding: 13px 16px; border-left: 3px solid var(--p34-bad); background: var(--p34-surface2); border-radius: 0 9px 9px 0; font-size: 13px; line-height: 1.9; color: var(--p34-sub); }

/* ---------- 批量 / 内容 ---------- */
.p34-extra-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 15px; }
.p34-card { background: var(--p34-surface); border: 1px solid var(--p34-line); border-radius: 12px; padding: 17px 19px; }
.p34-card h3 { font-size: 15.5px; margin-bottom: 10px; }
.p34-hint { font-size: 12.5px; color: var(--p34-muted); line-height: 1.8; margin: 8px 0 12px; }
.p34-card-text { font-size: 13.5px; line-height: 1.95; color: var(--p34-sub); }
.p34-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 17px; }
.p34-tab { border: 1px solid var(--p34-line); background: var(--p34-surface); color: var(--p34-sub); font-size: 13.5px; font-weight: 700; border-radius: 6px; padding: 8px 16px; }
.p34-tab.is-on { background: var(--p34-ink); color: var(--p34-on); border-color: var(--p34-ink); }
:root[data-theme="dark"] .p34-tab.is-on { background: var(--p34-accent); color: #081420; border-color: var(--p34-accent); }
.p34-prose { max-width: 84ch; }
.p34-prose h3 { font-size: 17px; margin: 22px 0 9px; }
.p34-prose h3:first-child { margin-top: 0; }
.p34-prose p { font-size: 14.5px; line-height: 2; color: var(--p34-sub); margin: 0 0 15px; }
.p34-figure { display: block; width: 100%; max-width: 720px; border: 1px solid var(--p34-line); border-radius: 9px; margin: 6px 0 18px; }
.p34-faq details { border: 1px solid var(--p34-line); background: var(--p34-surface); border-radius: 8px; margin-bottom: 8px; }
.p34-faq summary { cursor: pointer; font-size: 14.5px; font-weight: 700; padding: 13px 16px; }
.p34-faq details > div { padding: 0 16px 15px; font-size: 14px; line-height: 1.95; color: var(--p34-sub); }
.p34-faq details > div strong { color: var(--p34-ink); }
.p34-boundary { margin: 24px 0 18px; padding: 14px 17px; border: 1px solid var(--p34-line); border-radius: 9px; background: var(--p34-surface2); font-size: 13px; line-height: 1.9; color: var(--p34-sub); }
.p34-related { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.p34-related a { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--p34-surface); border: 1px solid var(--p34-line); border-radius: 8px; padding: 12px 14px; font-size: 13.5px; font-weight: 700; color: var(--p34-ink); }
.p34-related a:hover { border-color: var(--p34-accent); text-decoration: none; }
.p34-related a span { color: var(--p34-accent); }

@media (max-width: 900px) {
    .p34-hero, .p34-gauge-row, .p34-two, .p34-extra-grid { grid-template-columns: 1fr; }
    .p34-fundus-chips { grid-template-columns: repeat(2, 1fr); }
    .p34-related { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .p34-wrap { padding: 0 16px; }
    .p34-fields, .p34-eyes { grid-template-columns: 1fr 1fr; }
    .p34-eyes .p34-eye:last-child { grid-column: 1 / -1; }
    .p34-related { grid-template-columns: 1fr; }
    .p34-gauge-val { font-size: 44px; }
}
