/* 21 · 乳糖不耐受自测 —— 视觉母题「诊室奶白」：奶白 / 青绿 / 分层阶梯 / 含量条
   独立色板与版式：柔和临床感、三级阶梯、横向含量条，与其它页不共用组件。 */
.t28.li-wrap {
    --t28-bg: #f7fbfa;
    --t28-surface: #ffffff;
    --t28-surface-2: #edf6f4;
    --t28-ink: #173331;
    --t28-sub: #44605d;
    --t28-muted: #79918e;
    --t28-line: #dcebe8;
    --t28-accent: #0e8a84;
    --t28-accent-2: #4e8fb8;
    --t28-soft: #e2f4f1;
    --t28-on-accent: #ffffff;
    --t28-ok: #177a5c;
    --t28-warn: #9a6b12;
    --t28-danger: #b8444f;
    --t28-ok-soft: #e2f4eb;
    --t28-warn-soft: #fbf1d9;
    --t28-danger-soft: #fcebed;
    --t28-radius: 22px;
    --t28-radius-sm: 12px;
    --t28-font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    --t28-shadow: 0 6px 26px rgba(14,138,132,.07);
    --t28-shadow-lift: 0 16px 40px rgba(14,138,132,.16);
}
:root[data-theme="dark"] .t28.li-wrap {
    --t28-bg: #0b1416;
    --t28-surface: #122023;
    --t28-surface-2: #182b2e;
    --t28-ink: #e8f5f2;
    --t28-sub: #b3cfca;
    --t28-muted: #86a5a0;
    --t28-line: #264043;
    --t28-accent: #67d2c6;
    --t28-accent-2: #8dc0e6;
    --t28-soft: #1c3b3d;
    --t28-on-accent: #0b1416;
    --t28-ok: #75d6ac;
    --t28-warn: #ecc079;
    --t28-danger: #ff97a2;
    --t28-ok-soft: #18382c;
    --t28-warn-soft: #372c18;
    --t28-danger-soft: #3a2027;
    --t28-shadow: 0 8px 28px rgba(0,0,0,.42);
}
.li-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: center; padding: 34px 0 26px; }
.li-hero h1 em { display: block; font-style: normal; font-size: .52em; color: var(--t28-accent-2); margin-top: 10px; font-weight: 650; }
.li-ladder { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 20px; background: var(--t28-surface); box-shadow: var(--t28-shadow); }
.li-step { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 700; }
.li-step i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.li-s1 { background: var(--t28-ok-soft); color: var(--t28-ok); width: 66%; }
.li-s2 { background: var(--t28-warn-soft); color: var(--t28-warn); width: 82%; }
.li-s3 { background: var(--t28-danger-soft); color: var(--t28-danger); width: 100%; }
.li-ladder small { font-size: 11.5px; color: var(--t28-muted); text-align: right; }

.li-quick { border-top: 4px solid var(--t28-accent); }
.li-symptom-box { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--t28-surface-2); }
.li-symptom-box .t28-label { display: block; margin-bottom: 9px; }
.li-wrap .t28-check.li-alert:has(input:checked) { border-color: var(--t28-danger); background: var(--t28-danger-soft); color: var(--t28-danger); }
.li-result-panel { border-left: 4px solid var(--t28-accent-2); }
.li-redlist { padding-left: 20px; margin: 0 0 14px; }
.li-redlist li { font-size: 14.5px; line-height: 1.8; }

/* 乳糖含量条 */
.li-bars { display: grid; gap: 11px; }
.li-bar-row { display: grid; grid-template-columns: 118px minmax(0, 1fr) 120px; gap: 12px; align-items: center; font-size: 13.5px; }
.li-bar-row > b { font-weight: 700; }
.li-bar-track { height: 13px; border-radius: 999px; background: var(--t28-surface-2); overflow: hidden; }
.li-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--t28-accent-2), var(--t28-accent)); }
.li-bar-row > span { color: var(--t28-muted); font-variant-numeric: tabular-nums; text-align: right; }
.li-level { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 750; font-size: 15px; margin-bottom: 12px; }
.li-level--1 { background: var(--t28-ok-soft); color: var(--t28-ok); }
.li-level--2 { background: var(--t28-warn-soft); color: var(--t28-warn); }
.li-level--3 { background: var(--t28-danger-soft); color: var(--t28-danger); }
.li-reading .t28-panel { border-bottom: 3px solid var(--t28-accent); }

@media (max-width: 860px) { .li-hero { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
    .li-bar-row { grid-template-columns: 84px minmax(0, 1fr); }
    .li-bar-row > span { grid-column: 2; text-align: left; }
    .li-s1, .li-s2, .li-s3 { width: 100%; }
}
