﻿/* 65 · 儿童口服补液盐 · 独立 UI（琥珀警示 · 补液矩阵与节奏表） */

.p65-page {
    --pg-accent: #b3701d;
    --pg-accent-2: #8f5712;
    --pg-accent-soft: #faf0dd;
    --pg-accent-ink: #ffffff;
}
:root[data-theme="dark"] .p65-page {
    --pg-accent: #e3b372;
    --pg-accent-2: #c2914f;
    --pg-accent-soft: rgba(227, 179, 114, .15);
    --pg-accent-ink: #241503;
}
/* ---------- 就医红线（常驻置顶） ---------- */
.p65-redline {
    margin-top: 18px; border-radius: var(--pg-r);
    border: 1.5px solid var(--pg-bad); background: var(--pg-bad-soft);
    padding: 14px 20px 15px;
}
.p65-redline b { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; color: var(--pg-bad); }
.p65-redline b::before { content: "!"; width: 18px; height: 18px; border-radius: 50%; background: var(--pg-bad); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.p65-redline-items { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 8px; }
.p65-redline-items span { font-size: 12.5px; font-weight: 700; color: var(--pg-bad); background: var(--pg-surface); border: 1px solid var(--pg-bad); border-radius: 999px; padding: 4px 12px; }
.p65-redline p { margin: 0; font-size: 12.5px; color: var(--pg-ink-2); }

/* ---------- 首屏 ---------- */
.p65-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 430px); gap: 38px; align-items: start; padding: 20px 0 8px; }
.p65-lead { padding-top: 10px; }
.pg-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.p65-chip { border-radius: 999px; }
.p65-values { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* 脱水程度分段 */
.p65-deg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.p65-deg-btn { border: 1.5px solid var(--pg-line); background: var(--pg-surface-2); color: var(--pg-ink-2); border-radius: 999px; padding: 10px 6px; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .16s ease; }
.p65-deg-btn:hover { border-color: var(--pg-accent); color: var(--pg-accent); }
.p65-deg-btn.is-on { background: var(--pg-accent); border-color: var(--pg-accent); color: var(--pg-accent-ink); }
.p65-deg-notes { margin-top: 10px; position: relative; min-height: 58px; }
.p65-deg-note { position: absolute; inset: 0; font-size: 12.3px; line-height: 1.8; color: var(--pg-ink-2); background: var(--pg-surface-2); border: 1px dashed var(--pg-line); border-radius: var(--pg-r-sm); padding: 9px 13px; visibility: hidden; }
.p65-deg-note.is-on { visibility: visible; }
/* ---------- 结果 ---------- */
.p65-result { margin-top: 24px; }
.p65-result.is-empty { display: none; }
.p65-kpirow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.p65-kpi { background: var(--pg-surface); border: 1.5px solid var(--pg-line); border-radius: var(--pg-r); padding: 15px 17px; box-shadow: var(--pg-shadow); }
.p65-kpi em { display: block; font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--pg-muted); letter-spacing: .03em; }
.p65-kpi b { display: block; font-size: 25px; font-family: var(--pg-num); font-weight: 750; color: var(--pg-accent); margin-top: 5px; line-height: 1.25; }
.p65-kpi small { display: block; font-size: 11.5px; color: var(--pg-ink-2); margin-top: 3px; }
.p65-kpi.is-warn b { color: var(--pg-bad); }

.p65-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px; align-items: start; }
.p65-mix { margin: 0; padding-left: 21px; font-size: 13.4px; line-height: 2.1; color: var(--pg-ink-2); }

.p65-pace th:first-child, .p65-pace td:first-child { white-space: nowrap; }
.p65-pace td:last-child { color: var(--pg-ink-2); }

@media (max-width: 1080px) {
    .p65-hero { grid-template-columns: 1fr; gap: 26px; }
    .p65-kpirow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .p65-cols { grid-template-columns: 1fr; }
}
/* ===== end pg-65 ===== */
