/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* 🎨 全站基色（0831 并入绿色视觉体系，见记忆 green-design-system-0830 /
   report-page-palette-0831）。这七个变量被 151 处 var() 引用，是全站按钮、
   选中态、描边、正文色的总开关——改这里之前先想清楚影响的是所有页面。
   🔴 --primary 只表示「品牌 / 可操作」，**不表示任何风险级别**：风险四档
      （低 #1E7A3C / 需关注 #9A5B00 / 中 #B83D0B / 高 #B3261E）另有一套，
      永远是「浅底 + 深字」的徽章形态，不许拿 --primary 去画状态。 */
:root {
    --primary: #0F6E56;         /* 主绿：实心主按钮、选中态、文字链 */
    --primary-dark: #0B5744;    /* :active 压深一档 */
    --primary-soft: #E1F5EE;    /* 浅底片：次按钮 :active、浅底标签 */
    --bg: #F0F3F7;              /* 页面底（与报告页统一） */
    --card-bg: #ffffff;
    --text: #1F1F1D;            /* 正文深 */
    --text-light: #77777A;      /* 次要 */
    --border: #EAEAE6;          /* 描边：中性，不带蓝 */
    /* 风险四档的深字色。与 admin.css 的 :root 同名同值——前台这三个原来**只在
       admin.css 里定义过**，前台写 var(--danger) 的地方（就医提示 .plan-medical）
       声明非法、静默继承正文色，一直不红也不报错（0831 查 var() 未定义时挖出来的）。
       🔴 它们只画**状态**（浅底深字的徽章、提示文字），不许拿去当按钮底色——
          按钮是操作、不是级别，一律 --primary。 */
    --ok: #1E7A3C;              /* 低风险 */
    --warn: #9A5B00;            /* 需关注 */
    --danger: #B3261E;          /* 高风险 */
}

html {
    /* 🔴 这一条**必须是 px**：它就是三档字号的总开关（小 14 / 标准 16 / 大 19），
       写成 rem 就成了引用自己，整个缩放体系当场失效。0901 批量 px→rem 时
       差点连它一起换掉，scripts/px2rem.py 现在有硬闸挡着。 */
    font-size: 16px;
    /* 🔴 关掉 iOS 的自动文本放大（Text Autosizing）。不写这一行，Safari/微信
       WebView 会在页面布局稳定后**自己再放大一次正文**，理由是"字太小不好读"。
       症状：进任何页面约半秒后整页猛地放大一下，像闪了一下。

       0819 排查纪实：这东西**不改变 getComputedStyle 报告的 font-size**，
       所以探针一路显示「字号14px、文档宽=视宽、缩放1」全绿，看不出任何异常，
       只有人眼看得见——查了很久才想到它。

       为什么是这几天才冒出来：0816 显示大小从二档（标准/大）改成三档，新增的
       「小」档把根字号压到 14px，正好落进 iOS 判定「需要帮你放大」的区间。
       我们自己已经有三档字号给用户选，不需要系统再插一手。
       legal.css 早就设了这一行，所以法律文书页一直没这毛病，可以对照。 */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ===== 布局：手机端自适应，内容居中并限制最大宽度 ===== */
.app {
    width: 100%;
    max-width: 640px;   /* 大屏手机/平板不至于过宽 */
    margin: 0 auto;
    padding: 12px;
}

.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 20px 16px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.title {
    font-size: 1.375rem;
    text-align: center;
    font-weight: 700;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 4px;
    margin-bottom: 8px;
}

/* ===== 问题块 ===== */
.question { margin-top: 22px; }

.q-title {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.q-num {
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1.5rem;
    text-align: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    margin-right: 8px;
}

.q-hint {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 10px;
    padding-left: calc(1.5rem + 8px);
}
.q-hint strong { color: #B3261E; }

/* ===== 选项：大触控区，自适应换行 ===== */
.options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.opt {
    flex: 1 1 calc(50% - 10px);  /* 每行两个，窄屏自动挤压 */
    min-width: 130px;
    cursor: pointer;
}

/* 隐藏原生控件，用 .box 呈现可点区域 */
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }

.box {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 48px;               /* ≥44px 触控友好 */
    padding: 8px 10px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: #F5F6F8;
    transition: all 0.15s ease;
    user-select: none;
}

.opt input:checked + .box {
    border-color: var(--primary);
    background: #E1F5EE;
    color: var(--primary-dark);
    font-weight: 600;
}

.opt input:focus-visible + .box { outline: 2px solid var(--primary); }

/* ===== 按钮 ===== */
.btn-primary {
    display: block;
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease;
}
.btn-primary:active { background: var(--primary-dark); }

/* 次选按钮：分层结果里的备选评估入口（描边样式，区别于主按钮） */
.btn-secondary {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 13px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 10px;
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s ease;
}
.btn-secondary:active { background: #E1F5EE; }

.btn-text {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 8px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
}

/* ===== 错误提示 ===== */
.error-msg {
    color: #B3261E;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 16px;
    min-height: 1.2em;
}

/* ===== 结果区 ===== */
/* 结果卡：顶部一条分层主题色的强调边，整体更聚焦、更有层次 */
.result-card {
    --tier: var(--primary);
    --tier-soft: #E1F5EE;
    --tier-line: #F0F3F7;
    position: relative;
    overflow: hidden;
    padding-top: 30px;
    border-top: 4px solid var(--tier);
}
.result-icon {
    font-size: 2.6rem;
    text-align: center;
    margin-bottom: 8px;
}
/* 分层徽标：结果卡顶部居中的小胶囊标签，颜色随分层 */
.result-badge {
    display: inline-block;
    margin: 0 auto 2px;
    padding: 4px 16px;
    border-radius: 999px;
    background: var(--tier-soft);
    color: var(--tier);
    border: 1px solid var(--tier-line);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
}
/* 让徽标真正居中（父级是块级卡片） */
.result-card { text-align: center; }
.result-msg {
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.9;
    padding: 8px 4px 4px;
}
/* 初筛结果放大版：结果句更醒目 */
.result-msg-lg {
    font-size: 1.3rem;
    font-weight: 700;
    padding: 12px 6px 4px;
}
.result-msg-lg .hl {
    font-size: 1.5rem;
}
/* 分层副标题：主标题下方的说明，收进一张浅色分层底色的卡里，突出重点 */
.result-subtitle {
    font-size: 0.98rem;
    color: var(--text);
    text-align: center;
    line-height: 1.85;
    margin: 12px 2px 4px;
    padding: 14px 16px;
    background: var(--tier-soft);
    border-radius: 12px;
}
.result-subtitle:empty { display: none; }
/* 副标题内的用户勾选项：黑体加粗放大，颜色由 JS 内联设置 */
.result-subtitle .hl {
    font-family: "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif;
    font-weight: 700;
    font-size: 1.08rem;
}
/* 下一步评估按钮组 */
.result-btns {
    margin-top: 18px;
}
/* 统一底色的结果按钮：三个按钮同取分层主题色，主/次仅在填充与描边上区分 */
.result-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.04rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: filter 0.15s ease, background 0.15s ease;
}
/* 按钮左侧小图标 */
.result-btn-icon {
    font-size: 1.15rem;
    line-height: 1;
}
.result-btn:first-child { margin-top: 0; }
.result-btn.is-primary {
    background: var(--tier);
    color: #fff;
    border: 1px solid var(--tier);
    box-shadow: 0 4px 12px var(--tier-line);
}
.result-btn.is-primary:active { filter: brightness(0.92); }
.result-btn.is-secondary {
    background: var(--tier-soft);
    color: var(--tier);
    border: 1px solid var(--tier-line);
}
.result-btn.is-secondary:active { filter: brightness(0.96); }
/* 分层引导文案：结果句下方的一段说明 */
.result-guide {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.75;
    margin-top: 16px;
    padding: 14px 10px 4px;
    border-top: 1px solid var(--border);
}
.result-guide:empty { display: none; border-top: none; }
/* 信息矛盾提示卡 */
.conflict-box {
    background: #FCE9E7;
    border: 1px solid #F3CFCB;
    border-radius: 12px;
    padding: 14px 14px 16px;
    margin-bottom: 16px;
}
.conflict-title {
    color: #B3261E;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}
.conflict-item {
    color: #B3261E;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 0 0 8px;
}
/* 「我知道了」——它问的是**操作**，不是风险级别。红色由外面那张 .conflict-box
   （浅红底 + 深红字）负责表达，按钮跟着刷成红的等于同一件事说两遍，还把
   「确认」画成了「危险」。与 0831 定的 .confirm-box 同一条界限。 */
.conflict-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 10px;
    margin-top: 4px;
}
/* 高亮词：黑体 + 加粗，颜色由 JS 内联设置 */
.result-msg .hl {
    font-family: "SimHei", "Heiti SC", "Microsoft YaHei", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===== 通用 ===== */
.hidden { display: none !important; }

.placeholder { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.placeholder .btn-primary { max-width: 260px; margin-left: auto; margin-right: auto; }

/* “以上都没有 / 都能自理”占位选项：独占一行、样式弱化区分 */
.opt-none { flex: 1 1 100%; }
.opt-none .box {
    background: #F5F6F8;
    border-style: dashed;
    color: var(--text-light);
}
.opt-none input:checked + .box {
    border-style: solid;
    color: var(--primary-dark);
}

/* 超小屏（<360px）时选项改为单列 */
@media (max-width: 359px) {
    .opt { flex: 1 1 100%; }
}

/* ============ A 层专项筛查（健康年龄测评） ============ */
.sec-title {
    margin-top: 26px;
    padding-left: 10px;
    border-left: 4px solid var(--primary);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.sec-hint {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 6px;
}
.q-opt { font-size: 0.8rem; color: var(--text-light); font-weight: 400; margin-left: 4px; }

/* 数字输入 */
.num-input {
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: #F5F6F8;
    color: var(--text);
}
.num-input:focus { border-color: var(--primary); outline: none; background: #fff; }

.inline-inputs { display: flex; gap: 10px; }
.io { flex: 1 1 0; display: flex; align-items: center; gap: 6px; }
.io .num-input { text-align: center; }
.io .unit { font-size: 0.82rem; color: var(--text-light); flex: none; }

/* 情绪量表：4 档并排、更紧凑 */
.mood-q { margin-top: 16px; }
.options.scale { flex-wrap: nowrap; gap: 8px; }
.opt-s { flex: 1 1 0; min-width: 0; }
.opt-wide { flex: 1 1 100%; }

/* ============ 结果报告 ============ */
.report-hero {
    background: #0F6E56;
    color: #fff;
    border-radius: 14px;
    padding: 24px 16px;
    text-align: center;
    margin-bottom: 16px;
}
.hero-label { font-size: 0.95rem; opacity: 0.9; }
.hero-age { font-size: 3.2rem; font-weight: 800; line-height: 1.1; margin: 6px 0; font-family: "SimHei", "Microsoft YaHei", sans-serif; }
.hero-unit { font-size: 1.2rem; font-weight: 500; margin-left: 4px; }
.hero-gap { font-size: 1rem; font-weight: 600; }

.report-block {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 14px 16px;
    margin-bottom: 14px;
}
.rb-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }

/* AI 深度解读区 */
.ai-int-tip { font-size: 0.86rem; color: var(--text-light); margin: -2px 0 12px; line-height: 1.5; }
.ai-interpret {
    margin-top: 12px;
    padding: 12px 13px;
    background: #F5F6F8;
    border: 1px solid #F0F3F7;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text, #3D3D3A);
    white-space: pre-wrap;   /* 保留大模型输出的分段换行 */
    word-break: break-word;
}
.ai-interpret.hidden { display: none; }

.risk-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
}
.risk-row:last-child { border-bottom: none; }
.risk-name { font-size: 0.98rem; }
.risk-badge {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

/* 风险条右侧：徽标 + “了解更多” */
.risk-right { display: flex; align-items: center; gap: 10px; flex: none; }
.risk-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.risk-more:active { color: var(--primary-dark); }
.risk-tip { font-size: 0.8rem; color: var(--text-light); margin-top: 10px; }

.main-factor { font-size: 1rem; font-weight: 600; color: var(--primary-dark); }
.prescription { font-size: 0.95rem; line-height: 1.7; }

/* 专项预防方案：每个慢病风险因素/亚健康诱因一张卡 */
.plan-card {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}
.plan-card:last-child { border-bottom: none; }
.plan-name {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 6px;
}
.plan-name::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    margin-right: 8px;
    vertical-align: middle;
}
.plan-summary { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 8px; }
.plan-measures { margin: 0 0 6px; padding-left: 20px; }
.plan-measures li { font-size: 0.92rem; line-height: 1.65; margin-bottom: 3px; }
.plan-medical { font-size: 0.88rem; color: var(--danger); line-height: 1.6; }

/* 下载报告 + 企业微信二维码 */
.download-block { text-align: center; }
.download-block .rb-title { text-align: left; }
.dl-text { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; text-align: left; }
.wecom-qr {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px;
    background: #fff;
}
.dl-tip { font-size: 0.85rem; color: var(--text-light); margin: 8px 0 4px; }
.dl-name { margin: 4px 0 14px; text-align: left; }

/* 禁用态按钮（下载报告需先填称呼） */
.btn-disabled {
    background: #ECEDEF !important;
    color: #fff !important;
    cursor: not-allowed;
    pointer-events: auto;
}

/* 立即咨询：悬浮按钮 */
.fab-consult {
    position: fixed;
    right: 16px;
    bottom: 22px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 18px;
    /* 0830 定稿：**实心主绿 + 白字白图标 + 胶囊圆角**。
       白底描边那版试过又推翻了——整页只该有这一块实心深绿，它就是全场唯一的焦点，
       而且完全落在绿色体系里；白底描边的它反而和满页白卡片糊在一起。
       🔴 改这里的 background 必须连带改 templates/_fab_avatar.html 里八瓣标的填充：
          底深→图标白、底浅→图标深。0830 一天之内这两处脱节过两次
          （深蓝底配白图标 → 药丸改白底，白图标当场消失 → 图标改琥珀橙 →
            药丸又改回深绿，琥珀橙又不成立）。test_naming.py 现在钉了这一条。 */
    background: #0F6E56;
    color: #fff;
    font-size: 0.98rem;
    font-weight: 600;
    border-radius: 999px;   /* 胶囊 */
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(15, 110, 86, .2);
}
.fab-consult:active { transform: scale(0.96); }
.fab-consult { touch-action: none; cursor: grab; user-select: none; }
.fab-icon { font-size: 1.1rem; }

/* 悬浮「专属顾问」按钮上的未读红点（客服回复/订单更新数）
   ⚠️ 尺寸 2026-08-16 从 18px 提到 20px：老人扫一眼扫不到 18px 的圆点，
      而这是客服回话、订单变更**唯一**的到达提示，看不见等于没发。 */
.fab-badge {
    position: absolute;
    top: -7px; right: -7px;
    min-width: 20px; height: 20px;
    padding: 0 5px;
    box-sizing: border-box;
    border-radius: 10px;
    background: #B3261E;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 0 0 2px #fff;
    animation: fabBadgePop 0.2s ease;
}
.fab-badge.hidden { display: none; }
@keyframes fabBadgePop { from { transform: scale(0); } to { transform: scale(1); } }

/* 养老功能引导弹窗 */
.eg-mask {
    position: fixed;
    inset: 0;
    /* 1000 而不是 999：与「我的顾问」悬浮窗同层时，谁在上由 DOM 顺序决定，
       弹窗被悬浮窗压住是不可接受的不确定性。 */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.45);
}
.eg-mask.hidden { display: none; }
.eg-box {
    width: 100%;
    max-width: 320px;
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px 18px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}
.eg-ico { font-size: 2.2rem; line-height: 1; }
.eg-title {
    margin-top: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1F1F1D;
}
.eg-desc {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #77777A;
    text-align: left;
}
.eg-acts {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.eg-cancel, .eg-go {
    flex: 1;
    height: 42px;
    line-height: 42px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    box-sizing: border-box;
}
.eg-cancel {
    border: 1px solid #ECEDEF;
    background: #fff;
    color: #77777A;
    cursor: pointer;
}
.eg-go {
    border: none;
    background: var(--primary, #0B5744);
    color: #fff;
    text-decoration: none;
}
.eg-go:active { opacity: 0.9; }

/* 客服小人头：白底圆形 + 描边图标 */
.fab-avatar {
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}
.fab-avatar svg { display: block; }

/* logo 版头像：透明底（去掉白圆）。
   ⚠️ 下面 .fab-logo3d 那套 3D 翻滚是**给 logo_consult.png 用的旧样式**，
      2026-08-22 头像已换成八瓣呼吸标（.fabm-*，见本文件靠下）。
      留着是回滚路径：consult_fab.js 里改回注入 <img class="fab-logo3d"> 即可。 */
.fab-avatar-logo {
    background: transparent;
    overflow: visible;
    perspective: 240px;
}
.fab-logo3d {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-style: preserve-3d;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
    /* 每轮 9s：前 ~3.6s 绕多轴缓慢翻滚一圈，后 ~5.4s 静止，再循环 */
    animation: fabLogoTumble 9s ease-in-out infinite;
}
/* 绕 X/Y/Z 多轴翻滚，角度组合每段不同，视觉上像随机翻转；转完停住 */
@keyframes fabLogoTumble {
    0%   { transform: rotate3d(0, 1, 0, 0deg);      filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)) brightness(1); }
    10%  { transform: rotate3d(1, 1, 0, 150deg);    filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)) brightness(1.12); }
    22%  { transform: rotate3d(-1, 2, 1, 300deg);   filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)) brightness(1); }
    32%  { transform: rotate3d(1, 1, -1, 240deg);   filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)) brightness(1.15); }
    40%  { transform: rotate3d(0, 1, 0, 360deg);    filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)) brightness(1); }
    100% { transform: rotate3d(0, 1, 0, 360deg);    filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)) brightness(1); }
}
@media (prefers-reduced-motion: reduce) {
    .fab-logo3d { animation: none; }
}

/* 「我的顾问」悬浮球头像的动效与配色**不在这里**。
   2026-08-22 全部挪进 templates/_fab_avatar.html 那段 SVG 本身（SMIL）：
   /static 是 30 天强缓存，真机上 CSS 换了也不生效——颜色和动画同时不对，
   查了半天才确认是「文件没到设备上」而不是「代码写错了」。
   要改图标去改那个 include，别在这里加 .fabm-* 规则。 */

/* 分层报告：综合评估大字（文字型，不同于健康年龄数字） */
.hero-band { font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin: 6px 0; }

/* 分层报告：分项方案条目 */
.plan-item { padding: 6px 0 2px; }
.plan-item-div { border-top: 1px solid #ECEDEF; margin-top: 12px; padding-top: 14px; }
.plan-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.plan-name { font-size: 1rem; font-weight: 700; }
.plan-medical { font-size: 0.9rem; color: #B3261E; margin-top: 6px; line-height: 1.6; }

/* 注册页：获取验证码按钮 + 协议勾选 */
.btn-code {
    flex: none;
    min-width: 116px;
    min-height: 48px;
    padding: 8px 12px;
    border: 1.5px solid var(--primary);
    border-radius: 10px;
    background: #E1F5EE;
    color: var(--primary-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}
.btn-code:disabled { border-color: var(--border); background: #F5F6F8; color: var(--text-light); cursor: default; }

.agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}
.agree input { margin-top: 3px; flex: none; width: 16px; height: 16px; }
.agree a { color: var(--primary); text-decoration: none; }

/* 咨询页：自动带入的风险清单 */
.risk-import { margin: 0 0 4px; padding-left: 0; list-style: none; }
.risk-import li {
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 8px 12px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: #F2F3F0;
    border-left: 4px solid #9A5B00;
    color: #3D3D3A;
}
.risk-import li.high { background: #FCE9E7; border-left-color: #B3261E; }
.risk-none { font-size: 0.95rem; color: var(--text-light); }

/* ============ 预防方案详情页 + 预约表单 ============ */
.plan-summary { font-size: 0.98rem; line-height: 1.75; }
.plan-measures { margin: 0; padding-left: 1.3em; }
.plan-measures li { font-size: 0.95rem; line-height: 1.8; margin-bottom: 6px; }

/* 销售服务入口 */
.cta-block {
    background: #0F6E56;
    color: #fff;
    border-radius: 10px;
    padding: 18px 16px;
    text-align: center;
    margin-bottom: 14px;
}
.cta-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.cta-text { font-size: 0.9rem; line-height: 1.6; opacity: 0.95; margin-bottom: 14px; }
.cta-block .btn-primary { background: #fff; color: var(--primary-dark); margin-top: 0; }
.cta-block .btn-primary:active { background: #E1F5EE; }

/* 文本输入框（预约表单） */
.text-input {
    width: 100%;
    min-height: 48px;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    background: #F5F6F8;
    color: var(--text);
    margin-top: 6px;
}
.text-input:focus { border-color: var(--primary); outline: none; background: #fff; }
/* 日期滚轮的触发框是 button：默认居中且 inline-block，要跟输入框对齐 */
.text-input.dw-field { display: block; text-align: left; line-height: 32px; }
.text-input.dw-field:active { border-color: var(--primary); background: #fff; }

/* ===== AI 智能推荐（地区/医院） ===== */
.ai-suggest-btn {
    margin-left: auto;
    flex: none;
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #E1F5EE;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.ai-suggest-btn:disabled { opacity: 0.55; }
.ai-suggest-box {
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-chip {
    display: inline-block;
    background: #E1F5EE;
    border: 1px solid #CCE4DA;
    color: var(--primary-dark);
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 0.88rem;
    cursor: pointer;
}
.ai-chip:active { background: #CCE4DA; }
/* 多选已选中态（地区多选） */
.ai-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
/* 医院分页导航 */
.ai-page-nav {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    width: 100%;
}
.ai-page-btn {
    border: 1px solid var(--primary);
    background: #fff;
    color: var(--primary-dark);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.85rem;
    cursor: pointer;
}
.ai-page-btn:active { background: #E1F5EE; }

/* 注册页「我已注册，直接登录」入口 */
.switch-login {
    text-align: center;
    margin-top: 14px;
    font-size: 0.9rem;
    color: var(--text-light);
}
.switch-login a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin: 12px 4px;
    line-height: 1.6;
}

/* 「慢病服务 / 养老服务」报告页入口卡片（.service-entry / .se-*）已整体移除，
   相关样式一并删除；服务入口统一走各自的服务专区页。 */

/* ===== AI 出处标注：模型品牌 + 免责一行（报告页 / 聊天页共用） ===== */
.ai-src {
    font-size: 0.71875rem;
    color: var(--text-light, #9A9A9D);
    line-height: 1.55;
    margin: 4px 0 10px;
}
.ai-src-chat {
    margin: 0 12px 8px;
    padding: 7px 10px;
    background: rgba(78, 155, 128, .06);
    border-radius: 9px;
}
html.elder-mode .ai-src { font-size: 13px; }

/* ===== 慢病就医服务：服务类型卡片（对齐 subpage 设计语言）===== */
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc-card {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fff;
    border: 1.5px solid #F0F3F7;
    border-radius: 16px;
    padding: 14px 15px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(31, 31, 29, .06);
    transition: border-color .15s, background .15s, transform .12s, box-shadow .12s;
}
.svc-card:active { transform: scale(.99); }
.svc-card.active {
    border-color: var(--hm-c, var(--primary));
    background: var(--hm-bg, #F5F6F8);
    box-shadow: 0 6px 18px rgba(31, 31, 29, .10);
}
.svc-ico {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem; background: var(--hm-bg, #E1F5EE); color: var(--hm-c, #0F6E56);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 10px rgba(31, 31, 29, .10);
}
.svc-main { flex: 1 1 auto; min-width: 0; }
.svc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.svc-name { font-weight: 700; font-size: 1rem; color: #1F1F1D; }
.svc-tag {
    font-size: 0.72rem; color: var(--hm-c, var(--primary));
    background: var(--hm-bg, #E1F5EE); border-radius: 8px; padding: 1px 8px;
}
.svc-desc { font-size: 0.85rem; color: var(--text-light); line-height: 1.5; }

.file-input {
    width: 100%; border: 1px dashed var(--border); border-radius: 10px;
    padding: 12px; font-size: 0.9rem; background: #F5F6F8;
}
/* 附件选择按钮 + 缩略图预览 */
.file-picker {
    display: inline-block; cursor: pointer;
    border: 1px dashed var(--border); border-radius: 10px;
    padding: 12px 16px; font-size: 0.9rem; color: var(--primary-dark);
    background: #F5F6F8;
}
.file-picker:active { background: #F0F3F7; }
.file-pickers { display: flex; flex-wrap: wrap; gap: 10px; }
.file-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.file-preview:empty { margin-top: 0; }
.fp-item { position: relative; width: 72px; height: 72px; }
.fp-thumb {
    width: 72px; height: 72px; border-radius: 10px; overflow: hidden;
    border: 1px solid var(--border); background: #F0F3F7;
    display: flex; align-items: center; justify-content: center;
}
.fp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fp-thumb.fp-doc { font-size: 0.72rem; font-weight: 600; color: var(--text-light); }
.fp-check {
    position: absolute; right: -6px; bottom: -6px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #1E7A3C; color: #fff; font-size: 0.75rem; line-height: 20px;
    text-align: center; box-shadow: 0 0 0 2px #fff;
}
.fp-del {
    position: absolute; right: -6px; top: -6px;
    width: 20px; height: 20px; border-radius: 50%; border: none;
    background: rgba(0,0,0,0.55); color: #fff; font-size: 0.875rem;
    line-height: 18px; text-align: center; cursor: pointer; padding: 0;
}
/* 含附件徽标（订单列表通用，文字表达，避免 emoji 渲染不一致） */
.order-clip {
    display: inline-block; margin-left: 6px; vertical-align: middle;
    font-size: 0.7rem; font-weight: 600; line-height: 1;
    color: var(--primary-dark); background: #E1F5EE;
    border: 1px solid #F0F3F7; border-radius: 6px; padding: 2px 7px;
    white-space: nowrap;
}

/* ===== 养老服务：照护需求卡片 ===== */
.care-card {
    background: #F0F3F7; border: 1px solid #F0F3F7;
    border-radius: 16px; padding: 14px;
}
.care-level { font-size: 1.1rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 4px; }
.care-desc { font-size: 0.86rem; color: var(--text-light); line-height: 1.5; }
.care-badges { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.care-badge {
    font-size: 0.74rem; color: #fff; background: var(--primary);
    border-radius: 8px; padding: 2px 9px;
}

/* 入住偏好：选项按钮 */
.pref-opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pref-opt {
    border: 1.5px solid var(--border); border-radius: 20px;
    padding: 7px 14px; font-size: 0.88rem; background: #fff;
    color: var(--text); cursor: pointer;
}
.pref-opt.active { border-color: var(--primary); background: #E1F5EE; color: var(--primary-dark); font-weight: 600; }

/* 慢病就医：为本人申请时的只读信息 */
.appl-self {
    background: rgba(78, 155, 128,0.05); border: 1px solid var(--border);
    border-radius: 12px; padding: 2px 14px; margin-top: 8px;
}
.appl-self .me-row:last-child { border-bottom: none; }

/* 申请人健康声明：醒目文案 + 两个承诺按钮 */
.declare-box {
    background: #FAFAF8; border: 1px solid #F0DCB8;
    border-radius: 12px; padding: 12px 14px; margin-top: 6px;
}
.declare-text { font-size: 0.92rem; line-height: 1.7; color: #1F1F1D; font-weight: 600; margin: 0; }
.declare-warn { color: #B3261E; font-weight: 700; }
.declare-opts { display: flex; gap: 12px; margin-top: 12px; align-items: stretch; }
.declare-opt {
    flex: 1 1 0; box-sizing: border-box;
    display: flex; align-items: center; justify-content: center;
    /* 固定高度 + 纯文字：两个按钮永远等高、文字垂直居中不错位 */
    height: 52px; line-height: 1; white-space: nowrap;
    cursor: pointer; user-select: none;
    border: 1.5px solid var(--border); border-radius: 12px;
    padding: 0 10px; font-size: 0.92rem; font-weight: 600;
    color: var(--text); background: #fff; transition: all .15s;
}
.declare-opt.hd-agree.active {
    border-color: #1E7A3C; background: #E6F4EA; color: #1E7A3C;
}
.declare-opt.hd-decline.active {
    border-color: #B3261E; background: #FCE9E7; color: #B3261E;
}

/* 匹配结果 */
.match-hero { text-align: center; padding: 10px 0 6px; }
.match-score { font-size: 2.4rem; font-weight: 800; color: var(--primary); line-height: 1.1; }
.match-label { font-size: 0.85rem; color: var(--text-light); }

.inst-card {
    border: 1px solid var(--border); border-radius: 16px;
    padding: 14px; margin-bottom: 12px; background: #F5F6F8;
}
.inst-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.inst-name { font-weight: 700; font-size: 1rem; }
.inst-dist { font-size: 0.82rem; color: var(--primary); flex: 0 0 auto; }
.inst-meta { font-size: 0.85rem; color: var(--text-light); margin: 6px 0; }
.inst-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.inst-tag {
    font-size: 0.72rem; color: #3D3D3A; background: #F0F3F7;
    border-radius: 8px; padding: 2px 8px;
}

/* ============================================================
   客户端首页 home.html
   ============================================================ */
/* 顶部品牌栏 */
.home-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 14px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo {
    width: 30px; height: 30px; flex: none;
    border-radius: 8px;
    background: #0F6E56;
    color: #fff; font-weight: 800; font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.brand-name { font-size: 1.08rem; font-weight: 700; color: var(--text); }
.home-member {
    font-size: 0.86rem; color: var(--primary-dark);
    background: #E1F5EE; border-radius: 16px;
    padding: 5px 12px; text-decoration: none; white-space: nowrap;
}

/* Hero 主评估入口 */
.home-hero {
    background: #0F6E56;
    color: #fff; border-radius: 16px;
    padding: 26px 20px; margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(78, 155, 128, 0.28);
    /* 首次进入未初筛时，用呼吸式光晕吸引用户先做初筛 */
    animation: heroGlow 2.2s ease-in-out infinite;
}
@keyframes heroGlow {
    0%, 100% { box-shadow: 0 8px 22px rgba(78, 155, 128, 0.28); }
    50% { box-shadow: 0 10px 30px rgba(78, 155, 128, 0.55); }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero { animation: none; }
    .home-hero .hero-btn { animation: none; }
}
.home-hero h1 { font-size: 1.34rem; font-weight: 800; line-height: 1.4; }
.home-hero .hero-sub { font-size: 0.92rem; opacity: 0.92; margin: 8px 0 18px; }
.home-hero .hero-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; box-sizing: border-box;
    /* 实心主绿 + 同色系投影。原设计是暖橙渐变按钮，0831 全站归一时底色变绿、
       投影漏改，绿按钮底下透出一圈橙光——属于「说不出哪里不对」的那类。 */
    background: #0F6E56;
    color: #fff;
    font-size: 1.2rem; font-weight: 800; letter-spacing: 0.5px;
    padding: 15px 26px; border-radius: 30px; text-decoration: none;
    box-shadow: 0 6px 18px rgba(15, 110, 86, 0.38), 0 0 0 0 rgba(15, 110, 86, 0.55);
    animation: heroBtnPulse 1.35s ease-in-out infinite;
}
@keyframes heroBtnPulse {
    0%   { transform: scale(1);    box-shadow: 0 6px 18px rgba(15, 110, 86,0.38), 0 0 0 0 rgba(15, 110, 86,0.55); }
    70%  { transform: scale(1.045); box-shadow: 0 6px 18px rgba(15, 110, 86,0.38), 0 0 0 14px rgba(15, 110, 86,0); }
    100% { transform: scale(1);    box-shadow: 0 6px 18px rgba(15, 110, 86,0.38), 0 0 0 0 rgba(15, 110, 86,0); }
}
.home-hero .hero-btn:active { filter: brightness(0.95); transform: scale(0.98); }

/* 通用区块标题 */
.home-sec { margin-bottom: 16px; }
.home-sec-title {
    font-size: 1.05rem; font-weight: 700; color: var(--text);
    margin-bottom: 12px; padding-left: 10px;
    border-left: 4px solid var(--primary);
}
/* 「当前健康状态」标题：去掉左侧蓝色竖条 */
.home-sec-title.cur-state-title { border-left: none; padding-left: 0; }

/* 我的评估 */
.assess-card {
    background: var(--card-bg); border-radius: 16px;
    padding: 16px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.assess-title { font-size: 1.08rem; font-weight: 700; color: var(--primary-dark); }
/* 健康状态分级着色：健康=绿、亚健康/需关注=橙、高风险=红并加重强调 */
.assess-status { font-weight: 800; }
.assess-tone-good { color: #1E7A3C; }
.assess-tone-warn { color: #9A5B00; }
.assess-tone-danger {
    color: #B3261E;
    background: rgba(179, 38, 30,0.08);
    padding: 1px 8px;
    border-radius: 6px;
}
.assess-main { font-size: 0.9rem; color: var(--text-light); margin: 6px 0 2px; }
.assess-when { font-size: 0.78rem; color: var(--text-light); }
.assess-acts { display: flex; gap: 10px; margin-top: 14px; }
.assess-acts a {
    flex: 1 1 0; text-align: center; text-decoration: none;
    padding: 10px; border-radius: 10px; font-size: 0.92rem; font-weight: 600;
}
.assess-acts .a-primary { background: var(--primary); color: #fff; }
.assess-acts .a-ghost { background: #E1F5EE; color: var(--primary-dark); }

/* 我的健康：标题与「当前健康状态」同一行，状态右对齐（不再单独占一行） */
.home-sec-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 10px; margin-bottom: 12px;
}
.home-sec-head .home-sec-title { margin-bottom: 0; }
.state-inline {
    --sc: #0F6E56;                 /* 分层主题色，按 tone 覆盖 */
    text-decoration: none; color: var(--text-light);
    font-size: 1.05rem; font-weight: 700; white-space: nowrap;  /* 与「我的健康」标题同字号字重 */
    flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
}
.state-inline b { color: var(--sc); font-weight: 700; }
.state-inline-arrow { color: var(--sc); margin-left: 3px; font-size: 1.05rem; }
/* 分层配色 */
.state-good   { --sc: #1E7A3C; }
.state-warn   { --sc: #9A5B00; }
.state-danger { --sc: #B3261E; }
.state-empty  { --sc: #77777A; }

/* 各项专项筛查重点结论列表（状态卡下方）——布局同「专项健管」feat-row */
.assess-conclusions { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.concl-item {
    --ct: #0F6E56;                 /* 分层色调，按 tone 覆盖 */
    display: flex; align-items: flex-start; gap: 12px;
    text-decoration: none; color: inherit;
    padding: 14px; border-radius: 14px;
    background: var(--card-bg);
    box-shadow: 0 3px 12px rgba(31, 31, 29,0.05);
    border: 1px solid #F0F3F7;
}
.concl-item:active { background: #FFFFFF; }
.concl-ico {
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; background: var(--ct-soft, #E1F5EE);
}
.concl-body { flex: 1 1 0; min-width: 0; }
.concl-name { font-size: 1rem; font-weight: 700; }
/* 结论名称的分级着色：仅改颜色、不加底色/内边距，避免各行左侧不对齐 */
.concl-tone-good { color: #1E7A3C; }
.concl-tone-warn { color: #9A5B00; }
.concl-tone-danger { color: #B3261E; }
.concl-text {
    font-size: 0.84rem; color: var(--text-light); line-height: 1.5; margin-top: 2px;
    /* 最多两行，超出省略 */
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
    overflow: hidden;
}
/* 图标底色跟随分层色调 */
.concl-good   { --ct-soft: rgba(30, 122, 60,0.12); }
.concl-warn   { --ct-soft: rgba(154, 91, 0,0.12); }
.concl-danger { --ct-soft: rgba(179, 38, 30,0.12); }

/* 我的健康：报告头卡轮播（每张已完成评估的头卡，自动轮播 + 手动滑动，点击进报告） */
.hc-carousel { margin-top: 12px; }
.hc-track {
    display: flex;
    position: relative;                  /* 供 JS 按 offsetLeft 计算居中位置 */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;               /* Firefox 隐藏滚动条 */
}
.hc-track::-webkit-scrollbar { display: none; }   /* WebKit 隐藏滚动条 */
.hc-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    box-sizing: border-box;
    padding: 2px;
    text-decoration: none; color: inherit;
}
.hc-slide .bh-duo { margin: 0; }         /* 头卡在轮播里去掉默认外边距 */
.hc-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.hc-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: #ECEDEF; transition: background .2s, width .2s;
}
.hc-dot.active { background: #0F6E56; width: 16px; border-radius: 4px; }

/* 头卡内评分条：自含最小实现（复用报告页 tone 语义），
   避免引入 report_view.css 与首页 .app 冲突 */
.hc-carousel .tone-low   { --tone: #1E7A3C; }
.hc-carousel .tone-mid   { --tone: #9A5B00; }
.hc-carousel .tone-high  { --tone: #B3261E; }
.hc-carousel .tone-note  { --tone: #0F6E56; }
.hc-carousel .tone-brand { --tone: #0F6E56; }
.hc-carousel .bar-track {
    height: 9px; background: #F0F3F7; border-radius: 999px; overflow: hidden;
}
.hc-carousel .bar-fill {
    height: 100%; border-radius: 999px; background: var(--tone, #0F6E56);
}
.hc-carousel .bar-tag {
    font-size: 0.72rem; font-weight: 700; color: var(--tone, #0F6E56);
    background: color-mix(in srgb, var(--tone, #0F6E56) 12%, #fff);
    border-radius: 999px; padding: 2px 9px;
}
@supports not (background: color-mix(in srgb, red 10%, white)) {
    .hc-carousel .bar-tag { background: #E1F5EE; }
}

/* 2×2 网格（服务矩阵 / 知识专栏） */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-card {
    display: flex; flex-direction: column; gap: 7px;
    background: var(--card-bg); border-radius: 16px;
    padding: 15px 14px; text-decoration: none;
    box-shadow: 0 3px 12px rgba(31, 31, 29,0.05);
    border: 1px solid #F0F3F7;
    min-height: 96px;
}
.grid-card:active { background: #FFFFFF; }
.grid-ico {
    width: 42px; height: 42px; border-radius: 12px; margin-bottom: 2px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; line-height: 1; background: var(--ht-bg, #E1F5EE);
}
/* 矢量图标（如听诊器）：跟随磁贴主题色，粗描边、边缘清晰，替代偏淡的 emoji */
.grid-ico-svg svg { width: 25px; height: 25px; display: block; color: var(--ht-c, var(--primary)); }
.grid-name { font-size: 0.98rem; font-weight: 700; color: var(--text); }
.grid-desc { font-size: 0.78rem; color: var(--text-light); line-height: 1.4; }

/* 专业特色服务 */
.feat-list { display: flex; flex-direction: column; gap: 10px; }
.feat-row {
    display: flex; align-items: flex-start; gap: 12px;
    background: var(--card-bg); border-radius: 14px;
    padding: 14px; box-shadow: 0 3px 12px rgba(31, 31, 29,0.05);
    border: 1px solid #F0F3F7;
    text-decoration: none; color: inherit;
}
.feat-row:active { background: #FFFFFF; }
.feat-ico {
    width: 42px; height: 42px; flex: none; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; background: var(--ht-bg, #E1F5EE);
}
.feat-body { flex: 1 1 0; }
.feat-name { font-size: 1rem; font-weight: 700; }
.feat-desc { font-size: 0.84rem; color: var(--text-light); line-height: 1.5; margin-top: 2px; }

/* 信任背书 */
.trust-row { display: flex; gap: 10px; }
.trust-item {
    flex: 1 1 0; text-align: center;
    background: var(--card-bg); border-radius: 12px; padding: 14px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.trust-num { font-size: 1.2rem; font-weight: 800; color: var(--primary-dark); }
.trust-label { font-size: 0.76rem; color: var(--text-light); margin-top: 4px; }

/* 首页业务 banner（已初筛后替代评估入口，3 图自动轮播） */
.home-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 8px 22px rgba(78, 155, 128, 0.18);
}
/* transform 百分比轮播（JS initBanner 驱动）：整条轨道平移，绝不用 scroll-snap，
   否则吸附会抢占程序化平移、停在两张之间导致「头图显示不全/半张」。 */
.banner-track {
    display: flex;
    align-items: stretch;                /* 三张严格等高，杜绝中间张被拉伸/裁剪 */
    position: relative;
    overflow: hidden;                    /* 关键：隐藏溢出，只由 JS translateX 切换 */
}
/* 每张 slide = 固定 2:1 盒子。之前第 2 张「上半显示、下半灰白(像没加载完)」的真凶
   是 iOS Safari 合成 bug：当每张 slide 各自被提升为独立 GPU 图层、又嵌在被 transform
   平移的 track(也是独立层)里时，滑进视口那张的 backing-store 只画了上半、下半留灰白
   未重绘。解法：①不再给每张 slide 单独 translateZ 提层，只让平移的 track 作为单一稳定
   图层整体绘制；②图片绝对定位铺满盒子；③配合 JS 里对三张图 img.decode() 强制完整解码。
   盒子高由 aspect-ratio(=宽/2) 与 JS 决定，永不依赖图片。 */
.banner-slide {
    flex: 0 0 100%;
    aspect-ratio: 2 / 1;
    position: relative;
    overflow: hidden;
}
.banner-slide a { position: absolute; inset: 0; display: block; }
/* 盒子 2:1、图片 1280×640 也是 2:1 → cover 即完整显示、零裁剪 */
.banner-slide img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* 占位轮播：待客户提供正式图后，改回 .banner-slide>img 即可 */
.banner-ph {
    height: 170px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.15rem; font-weight: 700; letter-spacing: 1px;
}
.banner-track .banner-ph:nth-child(1) { background: #0F6E56; }
.banner-track .banner-ph:nth-child(2) { background: linear-gradient(135deg, #1E7A3C, #4E9B80); }
.banner-track .banner-ph:nth-child(3) { background: linear-gradient(135deg, #9A5B00, #F0DCB8); }
.banner-dots {
    position: absolute;
    left: 0; right: 0; bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.banner-dots .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}
.banner-dots .dot.active { background: #fff; }

/* 咨询页页头问候语 */
.greeting {
    font-size: 1.5rem; font-weight: 700; color: var(--primary-dark);
    text-align: center; margin-bottom: 10px;
}

/* 首页页头：欢迎语（左）+ 退出（右）一行两端对齐 */
.home-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin: 2px 2px 8px;
}
/* 首页右上角欢迎语（次要色、小字） */
.home-greeting {
    flex: 1 1 auto; min-width: 0; text-align: left; font-size: 0.85rem; font-weight: 700;
    color: var(--primary); text-decoration: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-greeting:active { opacity: 0.6; }
/* 退出登录入口：浅描边胶囊，次要视觉，避免误触 */
.home-logout {
    flex: 0 0 auto; font-size: 0.8rem; font-weight: 600; color: #9A9A9D;
    text-decoration: none; padding: 3px 12px; border: 1px solid #EAEAE6;
    border-radius: 999px; background: #fff;
}
.home-logout:active { opacity: 0.6; }
/* 首页左上角头像入口：进入「我的资料」 */
/* 尺寸跟着顶栏的 --hd-h 走（定义在 _home_styles.html 的 .home-head 上），
   三档字号切换时和右边三个区域始终等高。 */
.home-avatar { flex: 0 0 auto; display: block;
    width: var(--hd-h, 34px); height: var(--hd-h, 34px); }
.home-avatar img {
    width: var(--hd-h, 34px); height: var(--hd-h, 34px); border-radius: 50%; object-fit: cover;
    /* 0830：首屏左上角这枚头像也接进绿色体系——浅绿底 + 主绿细环，
       和底部圆钮外面那圈环是同一套语言。 */
    background: #E1F5EE; border: 1.5px solid #0F6E56; display: block;
}
.home-avatar:active { opacity: 0.7; }

/* ============ 我的资料页 ============ */
.me-avatar-wrap { text-align: center; margin: 6px 0 18px; }
.me-avatar { display: inline-block; position: relative; cursor: pointer; }
.me-avatar img {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    background: #F0F3F7; border: 1px solid #ECEDEF; display: block;
}
.me-avatar-edit {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45); color: #fff; font-size: 0.66rem;
    padding: 3px 0; border-radius: 0 0 48px 48px; text-align: center;
}
.me-avatar-tip { font-size: 0.8rem; color: #9A9A9D; margin: 10px 0 0; }
.me-avatar-msg { font-size: 0.8rem; margin: 6px 0 0; min-height: 1em; color: #9A9A9D; }
.me-avatar-msg.ok { color: #1E7A3C; }
.me-avatar-msg.err { color: #B3261E; }
.me-list { border-top: 1px solid #EAEAE6; margin-top: 6px; }
.me-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 13px 2px; border-bottom: 1px solid #EAEAE6; font-size: 0.95rem;
}
.me-k { color: #9A9A9D; }
.me-v { color: var(--text, #3D3D3A); font-weight: 600; }
/* 当前健康状态：可点击进入初筛详情，与首页保持一致；按层级着色 */
.me-health-link { text-decoration: none; cursor: pointer; }
a.me-v.assess-tone-good { color: #1E7A3C; }
a.me-v.assess-tone-warn { color: #9A5B00; }
a.me-v.assess-tone-danger { color: #B3261E; background: none; padding: 0; }
/* 我的订单入口（自首页迁移至此） */
/* 资料页顶栏：左「返回首页」，右「我的订单」入口，同一行两端对齐 */
.me-topbar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin-bottom: 10px;
}
.me-topbar .home-link { margin-bottom: 0; }
.me-orders-link {
    flex: 0 0 auto; font-size: 0.9375rem; font-weight: 900;
    color: var(--primary-dark, #0F6E56); text-decoration: none;
}
.me-orders-link:active { opacity: .7; }

.me-logout { display: block; text-align: center; margin-top: 22px; color: #B3261E; }
/* 重新初筛：退出登录下方的浅色文字链接 */
.me-reintake {
    display: block; text-align: center; margin-top: 12px;
    font-size: 0.85rem; color: #9A9A9D;
    text-decoration: underline; text-underline-offset: 3px;
}
/* 姓名行内修改 */
.me-edit-link { font-size: 0.82rem; color: var(--primary); font-weight: 500; margin-left: 10px; text-decoration: none; }
.me-name-link { color: var(--primary); text-decoration: none; cursor: pointer; }
.me-name-input {
    font-size: 0.95rem; padding: 4px 8px; border: 1px solid #ECEDEF;
    border-radius: 8px; width: 8em; max-width: 55vw;
}

/* ============ 信息管理（筛查重置）============ */
.mdata-tip {
    font-size: 0.82rem; color: #9A9A9D;
    line-height: 1.6; background: #F5F6F8; border-radius: 10px;
    padding: 10px 12px; margin: 10px 0 4px;
}
.mdata-list { border-top: 1px solid #EAEAE6; margin-top: 6px; }
.mdata-row {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 2px; border-bottom: 1px solid #EAEAE6;
    font-size: 0.95rem; cursor: pointer;
}
.mdata-row input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; }
.mdata-all { font-weight: 700; color: var(--text, #3D3D3A); }
.mdata-name { flex: 1 1 auto; color: var(--text, #3D3D3A); }
.mdata-count { flex: 0 0 auto; font-size: 0.8rem; color: #9A9A9D; }
.mdata-reset {
    display: block; width: 100%; margin-top: 20px;
}
.mdata-reset:disabled { opacity: .5; }
.mdata-empty {
    text-align: center; color: #9A9A9D;
    padding: 40px 0; font-size: 0.95rem;
}

/* 导出 / 注销（0923 尽调 K3）。注销是危险动作：默认收起，只用红字不用红底，
   页面上仍只有「重置所选」一个实底主按钮。 */
.mdata-sec { margin-top: 28px; padding-top: 18px; border-top: 1px solid #EAEAE6; }
.mdata-sec h2 { font-size: 1rem; font-weight: 700; color: var(--text, #3D3D3A); margin: 0 0 6px; }
.mdata-sec p { font-size: 0.85rem; color: #6B6B70; line-height: 1.6; margin: 0; }
.mdata-danger-link {
    display: inline-block; margin-top: 10px; padding: 6px 0;
    background: none; border: 0; color: var(--danger); font-size: 0.92rem; cursor: pointer;
}
.mdata-del-box { display: none; margin-top: 10px; }
.mdata-del-box.open { display: block; }
.mdata-del-box ul { margin: 6px 0 10px 1.1em; padding: 0; font-size: 0.85rem; color: #6B6B70; line-height: 1.7; }
.mdata-del-box input[type="text"] {
    width: 100%; box-sizing: border-box; padding: 11px 12px; font-size: 1rem;
    border: 1px solid #D5D5D0; border-radius: 10px;
}
.mdata-del-btn {
    display: block; width: 100%; margin-top: 12px; padding: 13px;
    background: #fff; color: var(--danger); border: 1px solid var(--danger);
    border-radius: 10px; font-size: 1.02rem; font-weight: 600; cursor: pointer;
}
.mdata-del-btn:disabled { opacity: .45; }

/* ============ zhishi zhuanlan（列表页 + 文章页）============
   .art-* 整套样式已于 2026-08-16 随两页视觉下沉搬到 css/subpage.css，
   此处不再保留副本（同名规则分散在两个文件里，加载顺序一变就说不清谁生效）。
   .empty-tip 留在这里：orders.html 也在用它，跟专栏无关。 */
.empty-tip { text-align: center; padding: 26px 0; }

/* ============ zaixian zixun: chat ============ */
/* 聊天页整页不滚动：滚动只发生在消息区内部（见 .chat-list） */
.chat-body { background: #F0F3F7; overflow: hidden; }
.chat-wrap {
    display: flex; flex-direction: column;
    /* dvh 跟随 iOS 地址栏伸缩，避免 100vh 在 Safari 上比实际视口高、
       多出的那一截让整页可以拖动。不支持 dvh 的浏览器回落到 vh。 */
    height: 100vh; height: 100dvh;
    max-width: 640px; margin: 0 auto; background: #F0F3F7;
}
.chat-head {
    display: flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff;
    padding: 14px 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    position: sticky; top: 0; z-index: 5;
}
.chat-back {
    color: #fff; text-decoration: none; font-size: 1.8rem; line-height: 1;
    /* 0831 用户：原来只有一个光杆「‹」，看不出是回首页——补上全站统一的
       小房子（chat.html 里的 home_icon()）。宽度不再写死 30px：
       房子 23px + 箭头挤不进去，改 flex 自适应，居中交给 align-items。 */
    display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto;
}
/* 小房子全站默认主绿（.ico-home），唯独这页压在主绿头条上——同色即隐身，转白。 */
.chat-back .ico-home { color: #fff; }
/* 0904「回得来」：从报告页点「找我的助理聊聊」进来时，返回要写出回哪份报告
   （光一个「‹」等于没说，用户就是这么走丢的）。
   🔴 报告名有十来个字，而 .chat-back 是 1.8rem —— 直接继承会把整条头条撑爆，
      问候语被挤没。所以文字单独一个 span 压到 .9rem，并给上限 + 省略号：
      头条是 flex，右边 .chat-head-txt 有 flex:1，左边不设上限就会一直吃它的宽度。 */
.chat-back-rb { font-size: 1.4rem; gap: 4px; max-width: 52%; }
.chat-back-rb span {
    font-size: 0.9rem; font-weight: 700; line-height: 1.2;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-head-txt { flex: 1; }
.chat-hello { font-size: 1.2rem; font-weight: 800; }
.chat-sub { font-size: 0.85rem; opacity: 0.92; margin-top: 2px; }

/* 健康上下文条：置于问候语下方，实时反映客户最新评估 */
.chat-context {
    display: flex; align-items: flex-start; gap: 8px;
    margin: 10px 12px 0; padding: 10px 12px;
    background: #F0F3F7; border: 1px solid #F0F3F7; border-radius: 12px;
    color: #17836A; font-size: 0.88rem; line-height: 1.5;
}
.chat-context-ico { flex: 0 0 auto; font-size: 1.05rem; line-height: 1.4; }
.chat-context-txt b { color: var(--primary-dark, #17836A); font-weight: 700; }
.chat-context-txt a { color: var(--primary-dark, #17836A); font-weight: 700; text-decoration: underline; }
.chat-context-plain { background: #FDF0DC; border-color: #F0DCB8; color: #9A5B00; }

/* 顶部 holistic 健康总览：按整体严重度着色。
   进场完整展示，数秒后自动回缩为一行，把屏幕让给对话；右上角箭头可随时拉开。
   max-height 的展开值由 JS 实测写入（见 chat.html），这里只定义折叠态与过渡。 */
.chat-context-hv {
    flex-direction: row;
    /* 固定在顶部不随对话滚动（它在 .chat-list 之外，滚动区已限制在消息区内），
       z-index 保证折叠时也不会被 sticky 的 header 压住。 */
    position: relative; z-index: 4; flex: 0 0 auto;
    padding-right: 34px;
    overflow: hidden;
    transition: max-height .34s cubic-bezier(.4, 0, .2, 1),
                padding-top .34s, padding-bottom .34s;
}
.chat-hv-arrow {
    position: absolute; top: 7px; right: 7px;
    width: 24px; height: 24px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: none; border-radius: 50%;
    background: rgba(255, 255, 255, .6); color: inherit;
    font-size: 0.9375rem; line-height: 1; cursor: pointer;
    transition: transform .3s; -webkit-tap-highlight-color: transparent;
}
.chat-hv-arrow:active { background: rgba(255, 255, 255, .9); }
/* 展开态箭头朝上（点它收起），折叠态朝下（点它拉开） */
.chat-context-hv .chat-hv-arrow { transform: rotate(180deg); }
.chat-context-hv.hv-folded .chat-hv-arrow { transform: rotate(0deg); }
/* 折叠态：只留结论一行，超出省略；其余内容淡出后被 max-height 裁掉 */
.chat-context-hv.hv-folded {
    max-height: 40px; padding-top: 9px; padding-bottom: 9px; cursor: pointer;
}
.chat-context-hv.hv-folded .chat-hv-head {
    margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-context-hv.hv-folded .chat-hv-list,
.chat-context-hv.hv-folded .chat-hv-toggle,
.chat-context-hv.hv-folded .chat-hv-normal,
.chat-context-hv.hv-folded .chat-hv-foot { opacity: 0; }
.chat-context-hv .chat-hv-list,
.chat-context-hv .chat-hv-toggle,
.chat-context-hv .chat-hv-normal,
.chat-context-hv .chat-hv-foot { transition: opacity .2s; }
.chat-hv-head { font-weight: 700; margin-bottom: 4px; }
.chat-hv-list { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.chat-hv-list li { position: relative; padding-left: 14px; font-size: 0.85rem; line-height: 1.45; }
.chat-hv-list li:before { content: "•"; position: absolute; left: 2px; color: #9A9A9D; }
.chat-hv-list li.chat-hv-sev3:before { color: #B3261E; }
.chat-hv-list li.chat-hv-sev2:before { color: #9A5B00; }
.chat-hv-list li.chat-hv-sev1:before { color: #4E9B80; }
/* 异常项过多时折叠：默认隐藏第 4 条起，展开后显示 */
.chat-hv-list .chat-hv-more { display: none; }
.chat-hv-list.hv-open .chat-hv-more { display: block; }
.chat-hv-toggle {
    display: inline-block; margin: 2px 0 2px; padding: 0;
    background: none; border: none; cursor: pointer;
    font-size: 0.82rem; font-weight: 600; color: #0F6E56;
    text-decoration: underline; -webkit-tap-highlight-color: transparent;
}
.chat-hv-normal { font-size: 0.82rem; opacity: 0.8; margin-top: 4px; }
.chat-hv-foot { margin-top: 6px; }
.chat-hv-alert { background: #FCE9E7; border-color: #F3CFCB; color: #B3261E; }
.chat-hv-alert .chat-context-txt b { color: #B3261E; }
.chat-hv-watch { background: #FDF0DC; border-color: #F0DCB8; color: #9A5B00; }
.chat-hv-watch .chat-context-txt b { color: #9A5B00; }
.chat-hv-good { background: #E6F4EA; border-color: #CBE7D6; color: #0B5744; }
.chat-hv-good .chat-context-txt b { color: #1E7A3C; }

.chat-list {
    /* min-height: 0 是关键：flex 子项默认 min-height:auto 会被内容撑开而不是滚动，
       于是 .chat-wrap 超出视口、整页跟着滚——顶部的健康概览条会被一起拉走，
       折叠后还会滑到 sticky 的 header 底下被遮住一半（用户实际反馈）。
       加上它之后，滚动被限制在消息区内部，顶部各条自然固定不动。 */
    flex: 1; min-height: 0; overflow-y: auto; padding: 16px 12px;
    display: flex; flex-direction: column; gap: 12px;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
/* 微信式一行：头像 + 气泡列，客户在右、客服/AI 在左 */
.chat-row { display: flex; align-items: flex-start; gap: 8px; max-width: 86%; }
.chat-row.from-user { align-self: flex-end; flex-direction: row-reverse; }
.chat-row.from-staff { align-self: flex-start; }
.chat-avatar {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 8px;
    object-fit: cover; background: #F0F3F7; border: 1px solid #ECEDEF; display: block;
}
/* 🔴 2026-08-23 用户：「智能助手那个 SVG 有个框，去掉」。
   上面那圈灰底 + 描边是给**照片**头像用的（白底照片贴在白底页面上会糊成一片，
   要一道边把它框住）。而阿惠这枚八瓣呼吸标是**无底色的 SVG**，本身自带留白，
   再套一层就成了一个多余的方框。
   ⚠️ 用 src 属性选择器精确命中它一个，不动会员照片与人工客服的头像；
      `*=` 是子串匹配，所以地址后面带的 ?v=<mtime> 不影响命中。 */
.chat-avatar[src*="avatar_ai_breathe"] {
    background: transparent;
    border: none;
}
.chat-col { display: flex; flex-direction: column; min-width: 0; }
.from-user .chat-col { align-items: flex-end; }
.from-staff .chat-col { align-items: flex-start; }
.chat-who { font-size: 0.72rem; color: #9A9A9D; margin: 1px 2px 4px; }
/* 🔴 2026-08-23 用户：「琥珀橘的 SVG 跟『智能助手』要水平居中，现在文字太高了」。
   头像是 38px 的方块，而名字那一行只有约 12px、又贴在列的最顶上——
   两者的**中线差了十来个像素**，看上去名字浮在头像肩膀上。
   把名字这一行撑到与头像等高（38px，全局 box-sizing:border-box，边框已含在内）
   并在其中垂直居中，两条中线就对齐了，读起来是「一个头像 + 一个名字」并排一行。
   ⚠️ 只作用于左侧（AI / 人工客服）——用户自己的消息本来就不渲染名字这一行。 */
.from-staff .chat-who {
    min-height: 38px;
    display: flex;
    align-items: center;
    margin: 0 2px 4px;
}
.chat-bubble {
    padding: 10px 13px; border-radius: 14px; font-size: 0.95rem; max-width: 100%;
    line-height: 1.6; word-break: break-word; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.from-user .chat-bubble { background: var(--primary); color: #fff; border-top-right-radius: 4px; }
.from-staff .chat-bubble { background: #fff; color: var(--text); border-top-left-radius: 4px; }
.chat-time { font-size: 0.68rem; color: #9A9A9D; margin-top: 4px; }
/* AI 结构化解读含分段换行（\n）：pre-wrap 才能显示分段，esc() 已保留 \n */
.chat-msg-text { white-space: pre-wrap; }
.chat-sec-title { display: block; font-weight: 700; font-size: 1.05em; margin-top: 0.9em; }
.chat-sec-title:first-child { margin-top: 0; }
/* ===== 阿惠主动消息卡片 =====
   这类消息不是闲聊，是「平台主动跟你说一件事」，所以给它独立的版式：
   一眼可辨的标题、段落之间真正的留白、以及一个好点的大按钮。
   字号比普通气泡大一档（老人是主要读者），行距也放宽。 */
.chat-bubble.chat-bubble-card {
    background: transparent; box-shadow: none; padding: 0; max-width: 100%;
}
.agent-card {
    background: #fff; border: 1px solid #ECEDEF; border-radius: 16px;
    padding: 14px 15px 13px; box-shadow: 0 3px 14px rgba(31, 31, 29,.07);
    border-left: 4px solid #0F6E56;
}
.agent-card .ac-head {
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px solid #F0F3F7;
}
.agent-card .ac-ico { font-size: 1.2rem; line-height: 1; }
.agent-card .ac-title { font-size: 1rem; font-weight: 800; color: #0F6E56; }
/* 正文：字号 1.02rem（比气泡的 .95rem 大一档），行距 1.8，段间留白 10px */
.agent-card .ac-p {
    font-size: 1.02rem; line-height: 1.8; color: #3D3D3A; margin: 0 0 10px;
}
.agent-card .ac-p:last-of-type { margin-bottom: 0; }
.agent-card .ac-btn {
    display: block; margin-top: 13px; padding: 11px 14px; text-align: center;
    background: #0F6E56; color: #fff;
    border-radius: 10px; font-size: 1rem; font-weight: 700; text-decoration: none;
}
.agent-card .ac-btn:active { filter: brightness(.95); }
/* 1008「要我帮您盯着吗」卡：两个按钮一行，只有「帮我盯着」是深色（一张卡只一个深色按钮） */
.agent-card .ac-goal { display: flex; gap: 10px; }
.agent-card .ac-goal .ac-btn { flex: 1 1 0; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.agent-card .ac-goal .ac-goal-no, .agent-card .ac-btn-weak {
    background: #fff; color: #0F6E56; border: 1.5px solid #CCE4DA;
}
html.elder-mode .agent-card .ac-p { font-size: 1.12rem; line-height: 1.9; }
html.elder-mode .agent-card .ac-title { font-size: 1.1rem; }
html.elder-mode .agent-card .ac-btn { font-size: 1.12rem; padding: 13px 16px; }

/* 系统提示（排队 / 超时 / 闭店 / 转回智能助理）：微信式的居中灰条。
   刻意**不给头像、不给名字、不做气泡**——它不是谁在说话，是系统在交代流程。
   老人一眼要能看出「这不是那个人回我的」，所以视觉上必须和左右两侧的气泡断开。
   字号仍按可读优先给（0.74rem 起、长辈模式再放大）：这条经常带着
   「明天上午 9 点顾问会联系您」这种必须看清的信息，不能做成不起眼的小字。 */
.chat-sys {
    align-self: center; max-width: 86%; margin: 10px auto;
    padding: 7px 12px; border-radius: 10px;
    background: rgba(0, 0, 0, .045); color: #77777A;
    font-size: .74rem; line-height: 1.6; text-align: center;
    white-space: pre-wrap; word-break: break-word;
}
html.elder-mode .chat-sys { font-size: .92rem; line-height: 1.75; }

/* iOS 静音拨片提示：只在首条语音下出现一次 */
.chat-silent-tip {
    margin-top: 5px; padding: 5px 9px; background: #FDF0DC;
    border: 1px solid #F0DCB8; border-radius: 9px;
    color: #9A5B00; font-size: 0.68rem; line-height: 1.5;
}
html.elder-mode .chat-silent-tip { font-size: 0.82rem; }

/* 自己发的语音下方的删除入口：做得克制（小、灰、右对齐），
   既能找到又不会误触；长辈模式下放大到可点。 */
.chat-del {
    align-self: flex-end; margin-top: 4px; padding: 3px 9px;
    background: transparent; border: 1px solid #ECEDEF; border-radius: 10px;
    color: #77777A; font-size: 0.7rem; line-height: 1.4; cursor: pointer;
}
.chat-del:active { background: #F5F6F8; }
.chat-del:disabled { opacity: .6; }
html.elder-mode .chat-del { font-size: 0.85rem; padding: 5px 12px; }
/* 智能体主动消息里的可点动作（[文字](/路径) 由 chat.js actLink 渲染）。
   做成气泡内的行内按钮而不是下划线链接：手机上更好点，也更像「下一步动作」。 */
.chat-act {
    display: inline-block; margin-top: 2px; padding: 6px 12px;
    background: #E1F5EE; color: #0F6E56; border: 1px solid #CCE4DA;
    border-radius: 12px; font-size: 0.88rem; font-weight: 700;
    text-decoration: none; line-height: 1.3;
}
.chat-act:active { background: #CCE4DA; }
html.elder-mode .chat-act { font-size: 1rem; padding: 8px 14px; }
.chat-msg-file { margin-top: 6px; }
.chat-img { max-width: 180px; max-height: 220px; border-radius: 8px; display: block; }
.chat-audio { max-width: 220px; display: block; }
/* 语音消息的气泡（1006 用户：原生播放条是白色药丸，套在实心绿里很不协调）。
   播放条是系统画的、改不了配色，所以改气泡：浅底片 + 细边，两侧一致；
   内边距收紧，让播放条自己当这条消息的主体。 */
.chat-bubble.chat-bubble-voice {
    background: #E1F5EE; color: var(--text); border: 1px solid #CCE4DA;
    padding: 6px 7px; box-shadow: none;
}
.chat-bubble.chat-bubble-voice .chat-msg-file { margin-top: 0; }
.chat-file { color: inherit; text-decoration: underline; font-size: 0.9rem; }

.chat-input {
    display: flex; align-items: flex-end; gap: 8px;
    background: #fff; padding: 10px 12px;
    border-top: 1px solid #ECEDEF;
    position: sticky; bottom: 0;
}
.chat-attach {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); background: #E1F5EE; cursor: pointer;
    border: none; padding: 0;   /* 1012 由 label 改成 button，去掉按钮默认边框 */
}
.chat-attach:active { background: #F0F3F7; }
.chat-mic {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); background: #E1F5EE; cursor: pointer;
}
.chat-mic:active { background: #F0F3F7; }
.chat-mic.recording { color: #fff; background: #B3261E; animation: micPulse 1s ease-in-out infinite; }
@keyframes micPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
.chat-text {
    flex: 1; resize: none; border: 1px solid #ECEDEF; border-radius: 20px;
    padding: 10px 14px; font-size: 0.95rem; line-height: 1.4;
    max-height: 120px; outline: none; font-family: inherit;
}
.chat-text:focus { border-color: var(--primary); }
.chat-send {
    flex: 0 0 auto; height: 40px; padding: 0 18px; border: none;
    border-radius: 20px; background: var(--primary); color: #fff;
    font-size: 0.95rem; font-weight: 700; cursor: pointer;
}
.chat-send:disabled { opacity: 0.6; }

/* 文字/语音切换：默认显示话筒图标，语音模式显示键盘图标 */
.chat-mic .ico-kbd { display: none; }
.chat-input.voice-mode .chat-mic .ico-voice { display: none; }
.chat-input.voice-mode .chat-mic .ico-kbd { display: block; }
/* 语音模式下隐藏文字输入与发送，露出「按住说话」 */
.chat-hold { display: none; }
.chat-input.voice-mode .chat-text,
.chat-input.voice-mode .chat-send { display: none; }
.chat-input.voice-mode .chat-hold { display: block; }

/* 表情按钮：位置在输入框右、「+」左，与微信一致 */
.chat-emoji {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); background: #E1F5EE; cursor: pointer;
}
.chat-emoji:active { background: #F0F3F7; }
/* 表情面板：不做分类 tab 与搜索（对中老年用户是负担），格子做大好点 */
.chat-emoji-panel {
    display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px;
    background: #fff; border-top: 1px solid #ECEDEF;
    padding: 10px 12px 14px; max-height: 210px; overflow-y: auto;
}
.chat-emoji-panel.hidden { display: none; }
.chat-emoji-panel .emoji-item {
    border: none; background: transparent; cursor: pointer;
    font-size: 1.55rem; line-height: 1; padding: 7px 0; border-radius: 10px;
}
.chat-emoji-panel .emoji-item:active { background: #F0F3F7; }
html.elder-mode .chat-emoji-panel { grid-template-columns: repeat(6, 1fr); }
html.elder-mode .chat-emoji-panel .emoji-item { font-size: 1.9rem; padding: 9px 0; }
/* 附件面板（点「+」展开）：照片 / 文件两格，1012 安卓选不到文档后拆开 */
.chat-attach-panel {
    display: flex; gap: 12px; background: #fff; border-top: 1px solid #ECEDEF;
    padding: 14px 12px 18px;
}
.chat-attach-panel.hidden { display: none; }
.chat-attach-panel .attach-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    border: 1px solid #ECEDEF; border-radius: 14px; background: #F5F6F8; cursor: pointer;
    padding: 14px 6px; font-family: inherit; color: #3D3D3A;
}
.chat-attach-panel .attach-item:active { background: #E1F5EE; }
.chat-attach-panel .attach-ico { font-size: 1.7rem; line-height: 1; }
.chat-attach-panel .attach-t { font-size: 0.95rem; font-weight: 700; }
.chat-attach-panel .attach-d { font-size: 0.78rem; color: var(--text-light); }

/* ── 微信式输入栏 ──
   发送按钮不常驻：输入框空着时把位置让给「+」附件入口，一有字就顶掉「+」出现。
   这样底部永远只有三个元素（切换 / 输入框 / 一个右侧按钮），不拥挤。 */
.chat-send { display: none; }
.chat-input.has-text .chat-send { display: block; }
.chat-input.has-text .chat-attach { display: none; }
.chat-input.voice-mode .chat-attach { display: flex; }   /* 语音模式仍可发附件 */
.chat-hold {
    flex: 1; height: 42px; border: 1px solid #ECEDEF; border-radius: 21px;
    background: #F0F3F7; color: #3D3D3A; font-size: 0.95rem; font-weight: 600;
    cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: none;
}
.chat-hold.holding { background: #F7DAD7; border-color: #B3261E; color: #B3261E; }

/* ===== 我的订单：列表与详情 ===== */
.order-list { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 16px; }
.order-item {
    display: block; text-decoration: none; color: inherit;
    background: #fff; border: 1px solid #ECEDEF; border-radius: 12px;
    padding: 12px 14px; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.order-item:active { background: #F5F6F8; }
.order-item-top { display: flex; align-items: center; justify-content: space-between; }
.order-cat { font-size: 0.78rem; color: #9A9A9D; }
.order-status { font-size: 0.78rem; font-weight: 700; padding: 2px 10px; border-radius: 10px; }
.order-item-title { font-size: 1.02rem; font-weight: 700; color: var(--text); margin-top: 6px; }
.order-item-summary { font-size: 0.86rem; color: #77777A; margin-top: 4px; line-height: 1.5; }
.order-item-meta {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px; font-size: 0.76rem; color: #9A9A9D;
}
.order-no { letter-spacing: 0.02em; }

/* 进度条 */
.order-steps { display: flex; margin: 18px 0 6px; }
.order-step { flex: 1; text-align: center; position: relative; }
.order-step-dot {
    width: 14px; height: 14px; border-radius: 50%; background: #ECEDEF;
    display: block; margin: 0 auto 6px; position: relative; z-index: 1;
}
.order-step-cn { font-size: 0.76rem; color: #9A9A9D; }
.order-step::before {
    content: ""; position: absolute; top: 6px; left: -50%; width: 100%;
    height: 2px; background: #ECEDEF; z-index: 0;
}
.order-step:first-child::before { display: none; }
.order-step.done .order-step-dot { background: var(--primary); }
.order-step.done .order-step-cn { color: var(--primary-dark, #17836A); font-weight: 700; }
.order-step.done::before { background: var(--primary); }

/* 字段明细 */
.order-fields { margin: 14px 0 4px; border-top: 1px solid #F0F3F7; }
.order-field {
    display: flex; padding: 9px 2px; border-bottom: 1px solid #F0F3F7;
    font-size: 0.9rem; line-height: 1.5;
}
.of-k { flex: 0 0 88px; color: #9A9A9D; }
.of-v { flex: 1; color: var(--text); word-break: break-word; }
.order-sub-title { font-size: 0.92rem; font-weight: 700; color: var(--text); margin: 16px 0 8px; }
.order-files { display: flex; flex-direction: column; gap: 6px; }
.order-file { font-size: 0.9rem; color: var(--primary-dark, #17836A); text-decoration: underline; }
.inst-list { display: flex; flex-direction: column; gap: 10px; }
.inst-item { background: #F5F6F8; border: 1px solid #ECEDEF; border-radius: 10px; padding: 10px 12px; }
.inst-name { font-size: 0.98rem; font-weight: 700; color: var(--text); }
.inst-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.inst-tags span {
    font-size: 0.76rem; color: #3D3D3A; background: #E1F5EE;
    padding: 2px 8px; border-radius: 8px;
}
.order-consult { display: block; text-align: center; margin: 18px 0 6px; }
.chat-pending {
    display: flex; align-items: center; gap: 8px;
    background: #fff; padding: 8px 14px; font-size: 0.85rem; color: var(--text-light);
    border-top: 1px solid #f0f3f7;
}
.chat-pending-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pending-clear {
    border: none; background: #F0F3F7; color: #77777A; border-radius: 50%;
    width: 22px; height: 22px; font-size: 1rem; cursor: pointer; line-height: 1;
}
.chat-error { color: var(--danger); text-align: center; font-size: 0.82rem; margin: 4px 0; }

/* ——「修改」：点自己发过的文字气泡，气泡下面就地展开编辑框 ——————————
   原文已填好，改完点 ✓ 提交，✕ 收起。
   ⚠️ 绿只给状态（全站配色纪律）：✓ 是提交动作用主绿；「已修改」是条退场的旧消息，
      走中性灰，不许染绿。 */
.chat-edit {
    align-self: stretch; margin: 2px 0 6px;
    background: #fff; border-radius: 16px; padding: 10px 12px 12px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .10);
}
.chat-edit-head { display: flex; align-items: center; justify-content: space-between; }
.chat-edit-tag {
    font-size: 0.85rem; color: var(--text-light);
    border-left: 3px solid var(--border); padding-left: 8px;
}
.chat-edit-x {
    width: 32px; height: 32px; border: none; border-radius: 50%;
    background: #F0F1F3; color: var(--text-light); font-size: 0.95rem; cursor: pointer;
}
.chat-edit-body { display: flex; align-items: flex-end; gap: 10px; margin-top: 8px; }
.chat-edit-text {
    flex: 1; border: none; outline: none; resize: none; background: transparent;
    /* 16px：iOS 输入框字号 <16px 会在聚焦时整页放大 */
    font-size: 16px; line-height: 1.5; padding: 4px 0; color: var(--text); font-family: inherit;
}
.chat-edit-ok {
    width: 40px; height: 40px; flex: none; border: none; border-radius: 50%;
    background: var(--primary); color: #fff; font-size: 1.15rem; font-weight: 700; cursor: pointer;
}
.chat-edit-ok:disabled { opacity: .5; }

/* 自己的文字气泡：点一下就修改，所以禁掉 iOS 长按的「拷贝/查询」和选字，
   免得点的时候误触选中。cursor: pointer 也是 iOS 上非按钮元素能收到 click 的前提。
   ⚠️ 只禁自己这一侧：AI 的回答里有医嘱和电话，那才是用户真会去复制的内容。 */
.chat-row.from-user .chat-bubble {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
.chat-bubble-editable { cursor: pointer; }

/* 已被重写的旧消息：收起成一行灰字，点开才看原文。
   不是删除——库里、坐席工作台里都还是完整的，这里只是让用户的对话流干净。 */
.chat-voided { align-self: flex-end; max-width: 86%; }
.chat-voided-head {
    background: #F0F3F7; color: var(--text-light); border: 1px dashed var(--border);
    border-radius: 14px; padding: 6px 12px; font-size: 0.82rem; cursor: pointer;
}
.chat-voided-raw {
    margin-top: 4px; padding: 8px 12px; background: #fff;
    border: 1px solid var(--border); border-radius: 12px;
    font-size: 0.85rem; color: var(--text-light); text-decoration: line-through;
    white-space: pre-wrap; word-break: break-word;
}

/* 非首页顶部「‹ 返回X」快捷链接——全站 87 个模板都在用它。
   0830 用户：「这些字都太小，也不明显」。原来是 14px、常规字重，在页面最上方
   一片留白里几乎读不出来。改成 16px + 600 字重：**「不明显」多半不是字号问题
   而是字重问题**，光放大不加粗，它还是一条淡淡的细线。
   ⚠️ 各深色背景页（星座/八字/塔罗/养老机构…）只覆盖了 color，不碰字号，
      所以这里一改，那十几处跟着一起变——核实过，没有页面级的 font-size 覆盖。
   点击热区：原来只有文字那 20px 高。padding 撑到 ~35px、margin-bottom 相应
   收掉，版面高度基本不动。 */
.home-link {
    display: inline-block;
    margin-bottom: 3px;
    padding: 6px 10px 6px 0;
    font-size: 1rem;
    font-weight: 600;
    /* 0830：返回入口统一主绿，不再跟 --primary（那是全站的旧蓝）。
       这里**故意写死色值而不改 --primary**：那个变量被几百处引用，
       动它等于把全站一次性刷成绿的，远超「统一返回箭头」这件事的范围。
       ⚠️ 有 13 个模板把 .home-link 覆盖成白/半透明——它们的返回链压在**深色头图**上，
          那是对的，不要顺手一起改绿，改了就是在深底上放一行看不见的字。 */
    color: #0F6E56;
    text-decoration: none;
}
.home-link:active { opacity: .7; }
/* 🔴 补一条 elder-mode：全站「显示大小」调到「大」时，这条返回链原先**纹丝不动**
   （87 个模板里一处 elder 覆盖都没有），于是页面其余部分都放大了、唯独最该点得中
   的返回入口还是小字。 */
html.elder-mode .home-link { font-size: 18.5px; }
/* 🔴 1011 用户：iOS 微信最左边缘右滑 = 关网页（网页层拦不住，见记忆 wechat-swipe-back-investigation），
   只能让人改用左上角返回——那就把它做成一眼看得见的胶囊按钮。
   · 1011 晚用户：安卓也要同样的胶囊——去掉了原来的 iOS 专属 @supports 包裹，全端一个样。
     纯 CSS、不靠 JS 加类——JS 加类会先画一遍小字再变胶囊，当着人闪一下（visible-control-must-not-be-swapped）。
   · 边框用 currentColor：13 个深色头图页把返回链改成白/半透明字，边框跟着变白，不用逐页覆盖；
     底色是极淡的主绿，浅底上是浅绿、深底上几乎看不出，白字照样清楚。 */
.home-link {
    padding: 5px 14px 5px 10px;
    margin-bottom: 6px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    background: rgba(15, 110, 86, .08);
    font-weight: 700;
}
/* 1011 用户：服务中心、我家近况/我家健康两页的「‹ 🏠」走的是 tab 页头 _home_head.html 的
   .home-back（不是 .home-link），上一版没套上，也要同一个胶囊。
   · .home-greeting 在 style.css 里是 flex:1 1 auto——不收住的话胶囊会横着撑满半行；
   · 高度跟页头那排圆钮同一个变量 --hd-h（34/40px），一排对齐。 */
.home-back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    height: var(--hd-h, 34px);
    padding: 0 14px 0 10px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    background: rgba(15, 110, 86, .08);
}
/* 1011 用户「还有哪里没套上的，全局查一下」：页头里另起类名的四个返回，同一个胶囊。
   我的助理 .chat-back（绿头条白字）、康复训练 .rt-back（深底浅字）、条款页 .lg-back a、
   视频通话 .call-back（压在视频上白字；同类名的右侧「聊天记录」.cc-hist 不是返回，排除）。
   边框都跟字色走，深底上自然是白/浅色边。
   页底那些「返回首页」文字链（星座/八字/养老金测算…）不在此列：那些页顶部都有 .home-link。 */
.chat-back, .rt-back, .lg-back a, .call-back:not(.cc-hist) {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px 4px 10px;
    border: 1.5px solid currentColor;
    border-radius: 999px;
    background: rgba(15, 110, 86, .08);
    font-weight: 700;
    opacity: 1;
}
.chat-back { padding: 2px 12px 2px 8px; }    /* 这枚字号 1.8rem，内边距收一点，胶囊别太高 */

/* 左上角回首页的那枚小房子（0830 用户定，取代文字「返回首页」）。
   由 app.py 的 home_icon() 统一吐出内联 SVG，这里只管让它跟前面那个「‹」
   站在同一条线上——不给 vertical-align 的话图标会坐在基线上、比箭头低半格。
   ⚠️ 只有「回首页」用它；返回服务/健康/知己识缘那些仍是文字（房子只能指首页）。

   点击热区：图标比原来那四个字窄得多，不撑开的话在手机上很难点中（iOS 的最小
   触控目标是 44px）。padding 撑热区、等值负 margin 抵消占位，版面一点不动。
   🔴 热区**做在图标自己身上**，不用 `.home-link:has(.ico-home)`：`:has()` 在
      老安卓微信的 X5 内核上不支持，那条规则会**静默失效**——图标照常显示、
      只是热区没撑开，而安卓侧的毛病用户这边永远报不出来（测试机是苹果）。 */
.ico-home {
    color: #0F6E56;   /* 0830：顶部 home 图标转主绿 */
    display: inline-flex;
    align-items: center;
    /* 图标 23px 高、旁边的「‹」才 14px：下沉量得跟着图标走，
       不然房子会坐在文字基线上、整个悬在箭头上方半格（0830 放大后重调）。 */
    vertical-align: -.45em;
    padding: 10px 12px 10px 2px;
    margin: -10px -12px -10px -2px;
}

/* 养老机构匹配度徽标与所在地 */
.inst-score {
    flex: 0 0 auto; font-size: 0.75rem; font-weight: 600; color: #1E7A3C;
    background: #E6F4EA; border-radius: 10px; padding: 2px 8px;
}
.inst-loc { font-size: 0.75rem; color: #9A9A9D; margin: 2px 0 4px; }

/* 无本市机构 / 空结果提示框 */
.empty-box {
    text-align: center; padding: 28px 16px; background: #F5F6F8;
    border-radius: 12px; margin: 12px 0 18px;
}
.empty-ico { font-size: 2.5rem; margin-bottom: 10px; }
.empty-txt { font-size: 0.875rem; line-height: 1.7; color: #77777A; }

/* 首页「查看推荐机构」入口 */
.reco-entry {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    background: #E1F5EE;
    border: 1px solid #F0F3F7; border-radius: 14px; text-decoration: none;
}
.reco-ico { font-size: 1.625rem; flex: 0 0 auto; }
.reco-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.reco-name { font-size: 0.9375rem; font-weight: 600; color: #1F1F1D; }
.reco-desc { font-size: 0.75rem; color: #77777A; margin-top: 2px; }
.reco-arrow { flex: 0 0 auto; font-size: 1.375rem; color: #77777A; }

/* ===== 健康评估总入口 hub ===== */
/* 覆写共用 .home-hero 的大块 CTA 样式：与首页头卡统一风格——
   蓝→青→绿三段斜向渐变 + 右上角径向柔光高光 + 细腻投影。 */
.assess-hub-hero {
    position: relative;
    overflow: hidden;
    text-align: left;
    background: linear-gradient(135deg,#0F6E56 0%,#17836A 52%,#4E9B80 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 22px 22px 20px;
    margin-bottom: 16px;
    box-shadow: 0 10px 24px rgba(23, 131, 106, .28);
    animation: none;
}
/* 右上角柔光高光，制造立体质感 */
.assess-hub-hero::before {
    content: "";
    position: absolute;
    top: -60px; right: -50px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}
.assess-hub-hero h1,
.assess-hub-hero .hero-sub { position: relative; z-index: 1; }
.assess-hub-hero h1 { font-size: 1.34rem; font-weight: 800; line-height: 1.35; color: #fff; letter-spacing: .5px; }
.assess-hub-hero .hero-sub { font-size: 0.88rem; opacity: .94; color: #fff; margin: 8px 0 0; line-height: 1.6; }
.assess-hub-list { display: flex; flex-direction: column; gap: 12px; }
.hub-mod {
    display: flex; align-items: center; gap: 13px; padding: 15px 16px;
    background: #fff; border: 1px solid #F0F3F7; border-radius: 14px;
    text-decoration: none; box-shadow: 0 1px 4px rgba(31, 31, 29, 0.04);
}
.hub-mod:active { background: var(--hm-bg, #F5F6F8); }
/* 图标底 chip：同色系浅底 + 圆角方块，令各模块一眼可辨 */
.hub-mod-ico {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; background: var(--hm-bg, #F0F3F7);
}
.hub-mod-body { flex: 1 1 auto; display: flex; flex-direction: column; }
.hub-mod-name { font-size: 0.9375rem; font-weight: 600; color: #1F1F1D; }
.hub-mod-desc { font-size: 0.75rem; color: #77777A; margin-top: 3px; line-height: 1.5; }
.hub-mod-arrow { flex: 0 0 auto; font-size: 1.375rem; color: var(--hm-c, #77777A); opacity: 0.7; }

/* G6：为他人筛查——评估页顶部提示条 + 结果页标题徽标 */
/* 1007 用户：第一题已问过给谁做，出错可能很小——提示条、徽标都降成灰色小字，不用橙色警示 */
.whom-tip {
    margin: 8px 0 4px; padding: 0 2px;
    color: #77777A; font-size: 0.75rem; line-height: 1.6;
}
.whom-tip strong { color: #77777A; font-weight: 400; }
.badge-for-other {
    display: inline-block; vertical-align: middle; margin-left: 6px;
    font-size: 0.75rem; font-weight: 400; color: #77777A;
    white-space: nowrap;
}
.hub-mod-disabled { opacity: 0.6; }
.hub-mod-disabled .hub-mod-ico { background: #F5F6F8; }
.hub-mod-tag {
    flex: 0 0 auto; font-size: 0.6875rem; color: #77777A;
    background: #F5F6F8; border-radius: 10px; padding: 3px 9px;
}
.assess-hub-note { font-size: 0.75rem; color: #77777A; margin: 14px 2px 0; line-height: 1.6; }

/* 已完成评定的项目：卡片内嵌「查看报告 / 重新评估」双按钮 */
.hub-mod-done { align-items: flex-start; }
.hub-mod-done .hub-mod-ico { margin-top: 2px; }
.hub-mod-acts { display: flex; gap: 10px; margin-top: 10px; }
.hub-mod-btn {
    flex: 1 1 0; text-align: center; text-decoration: none;
    font-size: 0.8125rem; font-weight: 600; padding: 9px 8px; border-radius: 10px;
    border: 1px solid var(--hm-c, #EAEAE6); color: var(--hm-c, #3D3D3A);
    background: var(--hm-bg, #F5F6F8);
}
.hub-mod-btn-primary {
    border-color: var(--hm-c, #0F6E56); color: #fff;
    background: var(--hm-c, #0F6E56);
}
.hub-mod-btn:active { opacity: 0.85; }

/* 8 色健康色系 tone：蓝 / 翠绿 / 青 / 玫粉 / 琥珀 / 青柠 / 靛 / 柔紫 */
/* --hm-c-ink：**浅底上写字专用的深一档**，色相与 --hm-c 完全相同。
   0830「查看报告」从实心底改成浅底描边时算出来的：直接拿 --hm-c 当文字色，
   八个 tone 在自己的浅底片上只有 1.97~3.83:1（橙色最差），看不清。
   这组值在浅底片上 ≥4.50、在白底上 ≥4.95，都过 4.5 的正文标准。
   ⚠️ 描边、图标那类**图形**仍用 --hm-c（图形标准是 3:1）；只有**文字**用 ink。
   ⚠️ 顺带说明：改之前的实心底按钮（白字压在 --hm-c 上）同样不达标（2.15~4.47），
      不是这次改坏的，是这次顺手修好的。 */
.hm-c0 { --hm-c: #0F6E56; --hm-bg: #E1F5EE;  --hm-c-ink: #4E9B80; }
.hm-c1 { --hm-c: #17836A; --hm-bg: #E1F5EE;  --hm-c-ink: #0F6E56; }
.hm-c2 { --hm-c: #4E9B80; --hm-bg: #F0F3F7;  --hm-c-ink: #0F6E56; }
.hm-c3 { --hm-c: #B3261E; --hm-bg: #FCE9E7;  --hm-c-ink: #B3261E; }
.hm-c4 { --hm-c: #9A5B00; --hm-bg: #FDF0DC;  --hm-c-ink: #9A5B00; }
.hm-c5 { --hm-c: #1E7A3C; --hm-bg: #E6F4EA;  --hm-c-ink: #1E7A3C; }
.hm-c6 { --hm-c: #5FA98F; --hm-bg: #F0F3F7;  --hm-c-ink: #5FA98F; }
.hm-c7 { --hm-c: #5FA98F; --hm-bg: #F0F3F7;  --hm-c-ink: #5FA98F; }

/* 首页专用「品牌主导 + 4 色柔和分区」调色板（大厂金刚区规范：整页≤4色、以品牌蓝为主、
   柔和浅底做图标 chip，靠图标外形区分相邻项）。仅首页用，二级页仍用上面的 8 色 hm-c。
   底色需清晰可见（京东健康/美团金刚区口径），过淡会退化成灰白一片。 */
.ht-c0 { --ht-bg: #F0F3F7; --ht-c: #0B5744; }  /* 品牌蓝 */
.ht-c1 { --ht-bg: #CBE7D6; --ht-c: #17836A; }  /* 青绿 */
.ht-c2 { --ht-bg: #F8E6C8; --ht-c: #9A5B00; }  /* 琥珀 */
.ht-c3 { --ht-bg: #F0F3F7; --ht-c: #5FA98F; }  /* 柔紫 */

/* ===== 评估结果确认（是否同步到健康档案）=====
   0831 并入绿色体系。这个框问的是「要不要更新档案」——是一次**操作请求**，
   不是风险级别，所以底色走中性、左条走品牌绿（品牌绿＝操作与「重点」）。
   🔴 不许拿四档状态色（绿/黄/橙/红浅底）来做它的底：那四档只表达风险轻重，
      给确认框上黄底会被读成「你的结果需关注」。 */
.confirm-box {
    background: #F5F6F8;
    border: 1px solid #EAEAE6;
    border-left: 4px solid #0F6E56;
    border-radius: 12px;
    padding: 16px 14px;
    margin-bottom: 16px;
}
.confirm-title { color: #1F1F1D; font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.confirm-desc { color: #77777A; font-size: 0.9rem; line-height: 1.7; margin: 0 0 12px; }
.confirm-acts { display: flex; gap: 12px; }
.confirm-acts button {
    flex: 1 1 0; border: none; border-radius: 10px; cursor: pointer;
    padding: 12px 8px; display: flex; flex-direction: column;
    align-items: center; gap: 3px; line-height: 1.2;
}
.confirm-lead { font-size: 1.18rem; font-weight: 800; letter-spacing: 1px; }
.confirm-sub { font-size: 0.82rem; opacity: 0.85; }
/* 「是」＝主按钮（实心主绿），「否」＝次按钮（白底绿描边）——同一屏只许一个实心。
   ⚠️ .confirm-acts button 声明了 border:none，次按钮的描边必须带 !important 才盖得住。 */
.confirm-yes { background: #0F6E56; color: #fff; }
.confirm-yes .confirm-sub { color: rgba(255, 255, 255, 0.85); opacity: 1; }
.confirm-no { background: #fff; color: #0F6E56; border: 1px solid #0F6E56 !important; }
.confirm-no .confirm-sub { color: #77777A; opacity: 1; }
/* 「上次结果未更新到健康档案」提示（0912 起；0913 用户改成药丸）。
   🔴 原来是标题下面一整块常驻状态条，把头卡前面的主要位置占掉了，而它
      只是一句备注——用户 0913 原话「这个提示会一直霸占主要位置，不合理」。
      现在收成头卡右上角的一枚小药丸，说明和后悔药都挪进点开后的弹层。
   中性灰底——它不是风险级别，别用四档状态色（那是官方评分的语言）。
   ⚠️ 0913 二次：它现在是**标题行的行尾元素**（见下面的 .rpt-title-row），
      不再自己独占一行。下面这条 .arch-pill-row 只在它落单时才生效——
      两处都留着，免得哪天有页面没套标题行就整个塌掉。 */
.arch-pill-row { display: flex; justify-content: flex-end; margin: -2px 0 6px; }
.arch-pill { display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
             background: #F2F3F0; border: 1px solid #EAEAE6; border-radius: 999px;
             padding: 5px 12px; font-size: 0.78rem; line-height: 1.4; color: #3D3D3A;
             /* 触控目标别小于 32px：药丸本身 26px 高，靠外边距补不回来 */
             min-height: 30px; }
.arch-pill:active { background: #EAEAE6; }
/* 圆点用中性色，不用琥珀/红：它不是风险级别，上状态色会被读成「你的结果需关注」 */
.arch-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #77777A; }

/* 标题行（0913 用户定）：报告名**左对齐**，药丸**同一行靠右**。
   原来是「居中标题 + 下面独占一整行的药丸」——标题右边空着一大片，药丸又多吃
   一行高度，把头卡往下推。用户截图圈的就是这两处。
   🔴 只用新类名 .rpt-title-row 限定范围：.title / .subtitle 是全站 34 个模板共用的
      （问卷页、工具页都在用），直接改它们会把所有页面的居中标题一起掀掉。 */
.rpt-title-row {
    display: flex; align-items: flex-start; gap: 10px;
}
/* 两种报告页的标题类名不一样：专项报告是 .title（走 .card 那套），
   基础健康 / 分层报告是 .rpt-title（走 report_view.css 的品牌头）。两个都要盖到，
   否则只改一条路径——另一半仍旧居中（见记忆 same-thing-two-code-paths-0823）。 */
.rpt-title-row > .title,
.rpt-title-row > .rpt-title {
    text-align: left;
    /* 长标题要能折行，也要能把药丸留在右边：min-width:0 是 flex 子项可收缩的前提，
       不写这一行时最小内容宽度会把药丸挤出屏幕。 */
    flex: 1 1 auto; min-width: 0;
}
/* 药丸进了标题行就不再自己撑满一行：去掉 flex 容器行为和那层负边距，
   只做一个不被压缩的行尾元素。
   ⚠️ .hidden 带 !important，仍然压得住这里的 display:block——首屏显隐照旧。 */
.rpt-title-row > .arch-pill-row {
    display: block; flex: 0 0 auto;
    /* 标题字大、药丸字小，顶端对齐会显得药丸浮在上面；下沉一点落到标题首行的中线 */
    margin: 3px 0 0;
}
/* 标题左对齐了，下面那行编号/生成时间也得跟着左对齐，否则一左一中更乱。
   ⚠️ 用**后续兄弟** `~` 不是相邻 `+`：退休金测算那页标题下面有两行副标题
      （「险种 · 姓名」和编号行），`+` 只够得着第一行，第二行仍旧居中。
      其余报告页标题下只有一个 .subtitle，`~` 与 `+` 等效。
   范围仍钉死在带 .rpt-title-row 的报告页，不碰别处的 .subtitle。 */
.rpt-title-row ~ .subtitle { text-align: left; }
/* 跌倒 / 居家安全 / 长护险两张 / 退休金这五页**不引 report_view.css**，
   `.rpt-meta` 的字号与颜色在那边才有定义，这里补一份同值的兜底
   （--text-light 与 report_view.css 的 --rpt-ink2 同为 #77777A），
   否则编号行会跟正文一样大。
   🔴 必须限定在 .rpt-title-row 之后：知己识缘五张皮也用 `.subtitle rpt-meta`
      且**故意是居中的**，对 `.subtitle.rpt-meta` 全局下手会把那五页一起掀掉
      （见记忆 mind-module-skin-0901）。 */
.rpt-title-row ~ .subtitle.rpt-meta { font-size: 0.78rem; color: var(--text-light); }

.confirm-done { color: #1E7A3C; font-size: 0.92rem; font-weight: 600; margin-top: 4px; }
/* 「仅供参考」不是警告，用中性色，别再拿土黄色当状态 */
.confirm-done.is-skip { color: #77777A; }

/* 档案同步确认：居中弹窗（遮罩 + 白卡）。背景不可点关闭，必须选是/不是 */
.confirm-mask {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(0, 0, 0, 0.45);
    animation: confirmFade 0.2s ease;
}
.confirm-mask.hidden { display: none; }
.confirm-mask.closing { animation: confirmFadeOut 0.26s ease forwards; }
@keyframes confirmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes confirmFadeOut { from { opacity: 1; } to { opacity: 0; } }
.confirm-modal {
    width: 100%; max-width: 340px;
    background: #fff; border-radius: 16px;
    padding: 22px 20px 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
    animation: confirmPop 0.24s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes confirmPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* 弹窗内的确认反馈：居中、略放大，作为选择后的收尾提示 */
.confirm-modal .confirm-done {
    text-align: center; font-size: 1rem; margin-top: 0; padding: 6px 4px 4px;
}

/* ===== 再次筛查「全新 vs 续改」选择弹窗 =====
   配色并入绿色视觉体系（主绿 #0F6E56）：默认项实心绿、另一项白底绿描边、取消为中性文字。
   ⚠️ 同一屏只允许一个实心按钮——两个都实心就等于没有默认项，别把 .reassess-fresh
      /.whom-other 也做成实心。标题与说明走全局 .confirm-title/.confirm-desc
      的中性色（#1F1F1D / #77777A），与「是否更新档案」确认框同一套。 */
.reassess-acts { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 6px; }
.reassess-btn {
    width: 100%; border: 1px solid #0F6E56; border-radius: 10px; cursor: pointer;
    padding: 14px 12px; display: flex; flex-direction: column; align-items: center;
    gap: 3px; line-height: 1.25; background: #fff; color: #0F6E56;
}
.reassess-btn .confirm-sub { color: #77777A; }
/* 默认项（续改 / 为我自己）＝主按钮：实心主绿 */
.reassess-continue,
.whom-self { background: #0F6E56; border-color: #0F6E56; color: #fff; }
.reassess-continue .confirm-sub,
.whom-self .confirm-sub { color: rgba(255, 255, 255, 0.85); }
.reassess-cancel {
    display: block; width: 100%; margin-top: 6px; border: none; background: none;
    cursor: pointer; color: #77777A; font-size: 0.9rem; padding: 8px;
}

/* ===== ICP 备案页脚（模板片段 _icp_foot.html） =====
   刻意做得很轻：这是合规标识，不是内容，不该跟页面上任何功能入口抢注意力。
   ⚠️ 但**不能靠 opacity/极浅色做到「几乎看不见」**——备案要求是"标明"，
      看不清等于没标。取 .72rem + #77777A，在浅底上仍可辨认。
   ⚠️ 尺寸用 rem：全站「显示大小」三档靠 html 的 font-size 缩放（见 _ui_scale.html），
      写死 px 的话老人调大字号后这里不跟着变，会显得越来越小。 */
.icp-foot {
    /* 这是 register / legal_doc 这类**没有 tab bar** 的页面用的样子：正常在正文末尾可见。
       带 tab bar 的两个 tab 页另有一套（见下方 body.has-icp-foot）：平时藏在导航条底下，拉到底露出来。 */
    padding: 18px 12px 22px;
    text-align: center;
    line-height: 1.7;
    font-size: 0.72rem;
    color: #77777A;
}
.icp-foot .icp-org { display: block; }
/* 两个备案号并排；窄屏或放大字号后自动折成两行，不挤成一坨 */
.icp-foot .icp-nos {
    display: flex; flex-wrap: wrap;
    justify-content: center; align-items: center;
    gap: 2px 14px;
}
.icp-foot .icp-no {
    color: #77777A;          /* 与主体名同色：它是标识不是行动号召，不用主题蓝 */
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.icp-foot .icp-no:hover { text-decoration: underline; }
/* 警徽图标：宽高在 HTML 里写死了，这里只保证它不被全局 img 规则拉伸。
   ⚠️ 别让它跟着「显示大小」缩放——位图放大会糊，而这是官方标识，糊了不体面。 */
.icp-foot .icp-gongan img { width: 14px; height: 14px; flex: none; display: block; }
/* 0903 晚用户两次定：tab 页（services / health）里页脚**必须整块藏在 tab bar 底下**。
   这里走过三版，前两版都栽在「页脚和导航条是两个元素」上：
     ① 负 margin 拉进 .app 垫底区——内容短的页（服务页只剩四格）页脚停在半屏；
     ② 页脚绝对定位贴页底、压在导航条下——安卓没事，**iOS 拉到底上拖会橡皮筋回弹**，
        文档整体上移而 fixed 的导航条不动，页脚从底下滑出来（0903 深夜用户：
        「为什么苹果能看到公司名和 ICP、安卓看不到」）。
   ③ 渲染进 nav.tabbar 再盖纱——两端都看不见了，用户否掉：「现在安卓苹果都没有 ICP 页脚了」。
   ④ 现行（0903 深夜用户选定）：**平时藏在导航条底下、页面拉到底才露出来、苹果安卓一样**。
      页脚放回页面流，紧跟 .app 之后：
        · .app 不再自带 128px 垫底，改由页脚的 padding-bottom 留出导航条那一格
          （数值同 _tabbar.html 里 body.has-tabbar .app 的垫底：128 / 长辈档 140 + 安全区）。
          🔴 必须是 padding 不是 margin：页脚是 body 最后一个在流元素，margin-bottom 会
          穿过 body 折叠掉，短页的文档高度就等于视口、一截都滚不出来（无头 Chrome 实测）；
        · .app 至少 100dvh − 60px 高：短页（服务页只剩四格）页面也总比视口高出一截，
          静止时页脚顶边在视口底 60px 处 = 在导航条（83~93px 高）底下；拉到底时页脚
          底边在导航条上沿之上 35px，整块露出。长页页脚就跟在正文最后一行后面，不压正文。
      不靠 iOS 回弹、也不压在 fixed 元素底下，所以两端表现一致。
   ⚠️ home.html 有意不挂（见 _icp_foot.html）；备案合规看 register.html，那页没导航条。
   守卫：test_icp_foot_under_tabbar.py（静止时藏、拉到底时整块在导航条上方、不在 nav 内、不压正文）。 */
body.has-icp-foot .app {
    padding-bottom: 12px;
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
}
html.elder-mode body.has-icp-foot .app { padding-bottom: 12px; }
body.has-icp-foot .icp-foot {
    line-height: 1.4;
    margin: 0;
    padding: 6px 12px calc(136px + env(safe-area-inset-bottom, 0px));
}
html.elder-mode body.has-icp-foot .icp-foot {
    padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
}


/* —— 订单详情的处理时间线（0903 闭环）——
   进度条只说「走到第几步」，时间线说「什么时候走的、做了什么」。原先这份事件流
   只给后台，用户要知道细节得去聊天窗里翻通知。 */
.order-timeline { margin-top: 18px; padding: 14px; background: #FAFAF8;
    border: 1px solid #F0F3F7; border-radius: 12px; }
.order-timeline .ot-title { font-size: .9rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.order-timeline .ot-row { display: flex; gap: 10px; font-size: .85rem; line-height: 1.8; }
.order-timeline .ot-when { flex: 0 0 auto; color: var(--text-light); font-variant-numeric: tabular-nums; }
.order-timeline .ot-text { flex: 1; min-width: 0; color: var(--text); }

/* —— 报告页统一的「下一步」出口（_report_next.html，0903 深夜闭环改造）——
   报告看完之后该干什么，按钮就摆在这里。按钮本体复用 .btn-primary / .btn-secondary
   （全站同一套形状：主按钮圆角 10、实心品牌绿），这里只管这一块的外框与小标题。
   🎨 底片色 #E1F5EE 的浅绿分隔线：颜色只用来说明「这是同一组东西」，不表状态
      （绿只给状态那条规则管的是状态色，这里是分组底纹，见记忆 green-design-system-0830）。 */
.report-next {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #E1F5EE;
}
/* 🔴 0904 用户：「『下一步』那三个灰色小字根本看不清」。
   原来是 0.92rem/600、跟正文一个色，夹在满屏大标题中间根本不像个标题。
   现在按报告页其它段标题的分量给：1.12rem / 800 / 最深的中性色，
   左侧一道 3px 品牌绿短竖条把它从正文里拎出来。
   ⚠️ 颜色写死不走 var()：这一份 CSS 被十几个报告页引用，各页还叠着自己的
      色板（report_view.css / basic_health.css / cvd.css…），变量在哪一页
      被改掉都可能把它冲淡——这一行是「接下来干什么」，不能靠运气。
   ⚠️ 短竖条是**分组标识不是状态**：绿只给状态那条规则管的是文字与底色，
      这里只是一道视觉锚，不表达好坏。 */
.report-next .rn-title {
    position: relative;
    padding-left: 11px;
    font-size: 1.12rem;
    font-weight: 800;
    color: #1F1F1D;
    line-height: 1.4;
    margin-bottom: 2px;
}
.report-next .rn-title::before {
    content: "";
    position: absolute;
    left: 0; top: 0.18em; bottom: 0.18em;
    width: 3px;
    border-radius: 2px;
    background: #0F6E56;
}
/* 第一条主按钮紧跟小标题，不要 .btn-primary 自带的 24px 上边距 */
.report-next .btn-primary:first-of-type { margin-top: 12px; }
/* 🔴 0904 用户：「高度和宽度保持一致」。报告页上的行动按钮全部取同一个盒子——
   .btn-primary 原本比 .btn-secondary 高约 3px（padding 14 vs 13、字号 1.05 vs 1.02），
   同一列里一大一小很显眼。这里**只在 .report-next 里**把主按钮拉齐到次按钮的规格，
   站内其它地方的 .btn-primary 一律不动。
   拉齐之后，主次的差别只剩底色：整个报告页只有这一条是深色实心，
   AI 解读与查看报告都是浅色描边（见 report_view.css 的 .ai-btn / .cta-btn）。 */
.report-next .btn-primary { padding: 13px; font-size: 1.02rem;
    /* 描边与次按钮同宽（同色所以看不见）：少这 1px，主按钮会比次按钮矮 2px */
    border: 1px solid var(--primary); line-height: 1.5; }
.report-next .btn-secondary { line-height: 1.5; }
/* 说明文字也提一档：0.8rem/#77777A 在报告页那种大字环境里同样偏虚。 */
.report-next .rn-desc {
    margin: 6px 2px 0;
    font-size: 0.86rem;
    line-height: 1.65;
    color: #5C5C58;
}

/* —— 报告页统一的「保存长图」入口（_save_img_cta.html）——
   14 个专项报告页各有各的样式表，这里放进 style.css 是因为它们都引了这一份。
   尺寸规格与 A/B/C1/C2 报告页的按钮同值（那处在 report_view.css，
   三处一起改才算改完：.ai-btn / .cta-btn / 这里）。
   🎨 0831 配色改版：深蓝灰 #1a5a75 全部换成品牌绿 #0F6E56。
   🔴 0904 用户定：报告页上**只有「下一步」的第一条是深色实心按钮**，这一处
      （以及 report_view.css 的 .ai-btn）一律降成浅色次按钮，规格取
      .btn-secondary 那一套（整行宽 / padding 13px / 1.02rem 600 / 1px 描边），
      与同屏「下一步」的按钮高度、宽度都一致。 */
.save-img-cta { display: flex; justify-content: center; margin: 18px 0 6px; }
.save-img-cta .cta-btn {
    display: block; width: 100%; max-width: 100%;
    text-align: center; text-decoration: none;
    /* 🔴 line-height 必须写死：<a> 继承各页 body 的行高、<button> 默认 normal，
       不钉的话同一屏上 .ai-btn 比 .cta-btn 矮 5px（0904 渲染实测 49.0 vs 54.1）。 */
    line-height: 1.5;
    font-size: 1.02rem; font-weight: 600; color: #0F6E56;
    background: #fff; border: 1px solid #0F6E56;
    border-radius: 10px; padding: 13px;
}
.save-img-cta .cta-btn:active { background: #E1F5EE; }

/* ===== 康养服务图标集（0830）：统一配色 =========================================
   用户 0830 晚定稿：**一套色，不分组**。此前按六个业务分组各给一个色相，
   用户看下来是「配色错误」——十个格子六种颜色，反而把版面搅碎了。
   现在统一：底片 #E1F5EE（主色最浅一档）、线条 #0F6E56、圆角 14px。
   卡片仍是白底、页面仍是浅灰蓝，图标块是这一屏唯一的色块。

   🔴 图标 <span class="hi hi-xxx"> **撑满外层的图标框**（.kk-ico / .mod-ico /
      .svc-ico），底片色由这里给、不是外层那格原来的 tone。
   分组类名 .hi-home / .hi-screening / … 仍然打在 HTML 上（Python 那头照旧按
   分组输出），只是现在**不再覆盖颜色**——哪天想恢复分组配色，在这里给它们
   各自的 --hi-line / --hi-tint 即可，不用回头改模板和 Python。
   存档一下原来那六组值，免得要恢复时还得翻聊天记录：
     home #0E8C87/#E3F4F2  screening #2563E8/#E7EEFE  wellness #0E8F52/#E3F4EA
     program #C9457B/#FBE9F0  medical #C4741F/#FCF0E0  mind #6242D8/#EDE9FC

   浅底片 = 九宫格入口、列表行内；实心底 + 白图标 = Banner / 首屏主推 / 选中态
   （.hi-solid，同一个色值从底片挪到底块，不出新文件）。 */
.hi {
    --hi-line: #0F6E56;
    --hi-tint: #E1F5EE;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%; border-radius: 14px;
    background: var(--hi-tint); color: var(--hi-line);
}
/* 🔴 线宽：图标源文件里是 stroke-width="2.4"，在 34px 的显示尺寸下折算到屏幕上
   只有 1.7px，用户反馈「线太细」。这里用 CSS 覆盖成 2.8（属性会被 CSS 盖掉），
   折算约 2.0px。档位参考：2.2 卡片头图 / 2.4 原始 / 2.6 列表行内 / 2.8 当前。
   要再粗一档改这一个数就行，**不用动 38 个 svg 源文件**。 */
.hi svg { width: 68%; height: 68%; display: block; stroke-width: 2.8; }
/* 实心态：底块换成线条色，图形转白。用户原话「不用出新文件」 */
.hi-solid { background: var(--hi-line); color: #FFFFFF; }
/* 行内态：不要底片，尺寸跟着字号走。首页简报那种「图标 + 一句话」的小标签用，
   套个 50px 彩块会把整行撑开。vertical-align 让它和汉字的视觉中线对齐。 */
.hi-bare { background: none; width: 1.05em; height: 1.05em;
    display: inline-flex; vertical-align: -0.16em; border-radius: 0; }
.hi-bare svg { width: 100%; height: 100%; }

/* 🔴 深色模式：**故意不做**（0830 用户在 iOS 微信里实测出来的）。
   本来按规范加了一段深色模式媒体查询，把底片换成深调
   #12332A、线条提亮到 #5FD3AC。结果是：iOS 开着深色模式（或跟随日落自动切换）
   从微信公众号进来，**只有图标块翻黑**——卡片仍是白底、页面仍是浅灰蓝，
   一屏白卡片里嵌一堆深绿方块。安卓/鸿蒙在浅色模式下反而是对的，
   所以这个问题只在一部分机器上出现，很容易被当成「没部署上」。
   根子在于：整站没有深色适配，单独给一个部件加深色规则，等于让它和页面打架。
   👉 等平台整体做深色模式时，再连页面底色、卡片、文字一起做；
      在那之前这里不许出现 prefers-color-scheme（scripts/check_icons.py 钉了这一条）。
   当时算好的那对值先存着：线条 #5FD3AC / 底片 #12332A（7.44:1）。 */

/* —— 欢迎页的三块说明（0901 首页整改）——
   原先副标题下面到底部按钮之间是一整片空白。这三块按信任度从高到低排：
   ① 评估依据（用的是什么量表/标准）② 结果去向 ③ 底部声明。
   🔴 配色刻意用中性灰底 + 中性深字，不用绿：绿色只给状态（选中/主行动按钮），
      这三块是**内容**不是状态，套上绿底会跟底部的「开始筛查」抢注意力。
   卡角 16px（与全站卡片一致），字号一律 rem（三档字号靠根字号缩放）。 */
.quiz-basis {
    margin: 24px auto 0; max-width: 340px; text-align: left;
    background: #F2F3F0; border-radius: 16px; padding: 14px 16px;
    font-size: .875rem; color: #1F1F1D; line-height: 1.8;
}
.quiz-basis .qb-title {
    font-size: .84rem; font-weight: 700; color: #1F1F1D;
    margin: 0 0 6px; letter-spacing: .3px;
}
.quiz-basis p { margin: 0; }
.quiz-basis p + p { margin-top: 10px; }
.quiz-basis b { color: #1F1F1D; font-weight: 700; }
/* 说明卡里的列表（目前只有退休金那段「职工 / 居民」两条对照）。
   缩进用 padding-left 而不是 margin，标记点才不会被卡片内边距吃掉。 */
.quiz-basis .qb-list {
    margin: 10px 0 0; padding-left: 1.2em; list-style: disc;
}
.quiz-basis .qb-list li { margin-top: 6px; }
.quiz-basis .qb-list li:first-child { margin-top: 0; }
.quiz-dest {
    margin: 12px auto 0; max-width: 340px; text-align: left;
    font-size: .8rem; color: #77777A; line-height: 1.7;
    padding: 0 2px;
}
/* ⚠️ 声明这类正文**不许用 #9A9A9D**：对白底只有 2.81:1。#77777A 才过 4.5:1。
   它比上面两块小一号、居中，靠版式区分层级，不靠把字调浅。 */
.quiz-note {
    margin: 14px auto 0; max-width: 340px;
    font-size: .8rem; color: #77777A; line-height: 1.7;
    text-align: center;
}

/* —— 独立评估页的「评估首页」（0901 晚）——
   心脑血管 / 退休金 / 机构匹配 / 护理等级 / 脑健康这五个不走答题机的模块，
   原先一进来就是表单或第一道题，说明只能挤在上头。现在先给一屏首页：
   看完依据，点「开始」才进正文。

   🔴 只收起「说明卡 + 开始按钮」这一层，**页面自己的头卡永远留着**——
      护理等级与脑健康的返回链就长在头卡里，把头卡一起藏了，
      用户点完「开始」就没有退路了。
   🔴 收起动作在 assess_cover.js 里做，**不在这里、也不在模板里写死 display:none**：
      脚本没加载时表单必须还在，否则用户被锁在评估外面（页面还照常 200）。 */
.assess-cover { padding: 2px 0 4px; }
/* .ac-head 只给本来就没有头卡的页面用（目前只有心脑血管）。
   有自己头卡的四个页面不写这一层，免得一个页面出现两个大标题。 */
.ac-head { text-align: center; padding: 8px 4px 4px; }
.ac-head .ac-icon {
    display: inline-block; width: 64px; height: 64px; margin-bottom: 16px;
    color: #0F6E56;
}
.ac-head .ac-icon svg { width: 100%; height: 100%; display: block; }
.ac-head h1 {
    font-size: 1.6rem; font-weight: 800; color: #1F1F1D;
    margin: 0 0 12px; letter-spacing: .5px;
}
.ac-head .ac-sub {
    font-size: .98rem; color: #3D3D3A; line-height: 1.7;
    margin: 0 auto; max-width: 340px;
}
/* 副标题里的时长与题量（由 quiz_hl.js 包上 .qh-num）。
   🔴 这是「绿色只给状态」的一处**有意例外**：这一屏另一处绿是底部主行动按钮，
      两者呼应的是同一件事——「花多久、然后点这里」。例外只限这一处。 */
.qh-num { color: #0F6E56; font-weight: 700; }
/* 护理等级与脑健康的头卡是深绿渐变底 + 白字，主绿高亮上去等于隐形。
   这里覆盖成纯白：周围是 94% 白，纯白 + 700 粗自然跳出，不引入新色。
   🔴 特异性 (0,2,0) 是刻意的——要压过 alzheimer 自带的
      `.az-hero-sub b { color:#F8E6C8 }` (0,1,1)，否则那一页数字变米黄。 */
.nz-hero-sub .qh-num, .az-hero-sub .qh-num { color: #fff; }
.assess-cover .ac-go {
    display: block; width: 100%; max-width: 340px; margin: 26px auto 4px;
    box-sizing: border-box; padding: 16px; border: none; cursor: pointer;
    font-size: 1.08rem; font-weight: 700; color: #fff;
    border-radius: 10px; background: #0F6E56;
    box-shadow: 0 10px 22px rgba(23, 131, 106, .28);
}
.assess-cover .ac-go:active { transform: scale(.99); }

/* ——— 子页页头「我的助理」胶囊（0903 深夜，替代右下角 .fab-consult 悬浮药丸）———
   放在 .card 右上角、与「‹ 返回」同一行：白底胶囊 + 橘色八瓣标 + 「我的助理」。
   .card 补 position:relative 只为给它定位，不带任何偏移，不影响既有布局。
   瓣色映射与 _home_styles.html 里 .home-consult 那套相同（include 里的填充是给深绿药丸的白系）。 */
.card { position: relative; }
.sub-consult { position: absolute; top: 12px; right: 14px; z-index: 5;
    display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px 0 5px;
    border-radius: 999px; background: #fff; border: 1px solid #EAEAE6;
    box-shadow: 0 2px 8px rgba(31, 31, 29, .12); color: #0F6E56; font-size: .84rem; font-weight: 700;
    text-decoration: none; line-height: 1; white-space: nowrap; }
.sub-consult:active { transform: scale(.96); }
.sub-consult .fab-avatar { width: 26px; height: 26px; background: transparent; }
.sub-consult .fabm { width: 26px; height: 26px; }
.sub-consult .fabm [fill="#FFFFFF"] { fill: #B83D0B; }
.sub-consult .fabm [fill="#E1F5EE"] { fill: #EA580C; }
.sub-consult .fabm [fill="#CDE6DB"] { fill: #D9700B; }
/* 未读红点挂在胶囊右上角（notify_badge.js 动态 append .fab-badge） */
.sub-consult .fab-badge { top: -8px; right: -6px; }
html.elder-mode .sub-consult { height: 38px; font-size: .95rem; }
html.elder-mode .sub-consult .fab-avatar, html.elder-mode .sub-consult .fabm { width: 30px; height: 30px; }

/* ── 1125 用户定：全站不许「最后一行只剩一两个字」的折行（截图：「心脑血管风险报 / 告」「…发病风 / 险」）──
   ① 只对标题、短标签用 balance（两行等长，不出孤字）；正文照常排满，不提前折行。
   ② 报告标题行：标题放得下一行就整行放，药丸让到下一行；放不下才折，且折成等长两行。
   旧浏览器不认 text-wrap 时就是原样折行，不会更坏。 */
/* 正文不设 pretty：1125 用户看了说「不要硬切断」——pretty 会提前折行，行尾留一截空白 */
h1, h2, h3, h4, .title, .rpt-title, .subtitle, .hero-title, .hero-sub,
.az-hero2-cap, .az-hero2-band, .duo-term, .cvd-block-title,
button, .btn-primary, .btn-text { text-wrap: balance; }
.rpt-title-row { flex-wrap: wrap; row-gap: 4px; }
/* 1125 用户定：编号行两行——「编号 · 女 46 岁」换行「生成时间 …」，换行符在 meta_line 字符串里 */
.rpt-meta { white-space: pre-line; }
.rpt-title-row > .title,
.rpt-title-row > .rpt-title { min-width: fit-content; max-width: 100%; }
