/*!
 * 五健筛查 · 家长端 H5 共享样式
 * ---------------------------------------------------------------------------
 * 家长端不加载 core.css：那份样式的 html,body 带 min-width:1280px，会压垮移动布局。
 * 这里独立铺一套移动底座，但沿用同一套设计变量（蓝色主色、状态色、iview 图标）。
 *
 * 外壳是标准 App 结构：整屏不滚动，只有内容区滚动，标签栏常驻底部。
 * 宽屏预览时收进 390×844 的手机框（iPhone 14 比例），避免被拉成又高又窄的条。
 */

:root {
  --primary: #2d8cf0;
  --primary-deep: #1777d4;
  /* 品牌渐变：青绿 → 蓝 → 靛紫。避免整屏一块纯蓝，也和体检插画的配色对得上 */
  --brand: linear-gradient(122deg, #0f9d94 0%, #2f8bef 52%, #6a5ae0 100%);
  --text: #17233d;
  --sub: #515a6e;
  --muted: #808695;
  --light: #b2b7c3;
  --body: #f4f6f9;
  --border: #e8eaec;
  --success: #19be6b;
  --warn: #ff9900;
  --danger: #ed4014;
  --purple: #9a66e4;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 组件普遍用 display:flex/grid，会盖掉 hidden 的默认 display:none，这里统一兜住 */
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: #fff; color: var(--sub); overflow: hidden;
  font: 15px/1.6 "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }

/* ---------------- App 外壳 ---------------- */
.m-app {
  position: relative; display: flex; flex-direction: column;
  height: 100vh; height: 100dvh; max-width: 480px; margin: 0 auto;
  background: var(--body); overflow: hidden;
}
.m-main {
  flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto;
  -webkit-overflow-scrolling: touch; padding: 14px;
  scrollbar-width: none;
}
/* 手机上没有可见滚动条，宽屏预览时也不该冒出来，否则手机框看着不像手机 */
.m-main::-webkit-scrollbar { width: 0; height: 0; }
.m-main.flush { padding: 0; }

/* ---------------- 顶栏 ---------------- */
.m-top {
  flex: none; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px;
  color: #fff; background: linear-gradient(90deg, #2d8cf0 0%, #1777d4 100%);
}
.m-top.plain { background: transparent; }
.m-top .m-back {
  width: 30px; height: 30px; margin-left: -7px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 22px; cursor: pointer;
}
.m-top .m-back:active { background: rgba(0, 0, 0, .14); }
.m-top h1 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: .5px; }
.m-top-extra { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.m-top-extra button {
  position: relative; border: 0; padding: 0; background: transparent; color: #fff;
  font-size: 13.5px; cursor: pointer; display: flex; align-items: center; gap: 3px;
}
.m-top-extra .ivu-icon { font-size: 21px; }
.m-dot {
  position: absolute; top: -1px; right: -3px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 8px; background: #ed4014; color: #fff; font-size: 10px; line-height: 15px;
  text-align: center; border: 1px solid #2d8cf0;
}

/* ---------------- 品牌底纹 ---------------- */
/*
 * 顶部大色块统一走「品牌渐变 + 医疗纹样」，不再用单色蓝铺满。
 * 纹样瓦片是 50×50，正好等于顶栏高度：顶栏与下方色块用同一张背景，
 * 下方色块整体上移一个顶栏高度即可无缝接上，连纹样也对得齐。
 * 定义放在 .m-top 之后，才能盖过 .m-top 的 background 简写。
 */
.m-brand {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.16' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5v9M6.5 9.5h9'/%3E%3Cpath d='M40 30v9M35.5 34.5h9'/%3E%3Ccircle cx='38' cy='12' r='3.2'/%3E%3Cpath d='M0 25h6l3.5-7 4.5 14 3.5-7h7'/%3E%3C/g%3E%3C/svg%3E"),
    var(--brand);
  background-repeat: repeat, no-repeat;
  background-size: auto, 100% 270px;
  background-position: 0 0, 0 0;
  background-color: transparent;
}
.m-brand.below-top { background-position: 0 -50px, 0 -50px; }

/* ---------------- 登录页品牌头 ---------------- */
.m-hero {
  position: relative; flex: none; overflow: hidden;
  padding: 26px 150px 30px 22px; color: #fff;
}
/* 等距体检插画压在渐变右下角，比纯色块更能说明这是体检系统 */
.m-hero:after {
  content: ""; position: absolute; right: -14px; bottom: -16px; width: 168px; height: 168px;
  background: url('../src/assets/centerImage.png') no-repeat center bottom / contain;
  opacity: .95; pointer-events: none;
}
.m-logo {
  width: 50px; height: 50px; margin: 0 0 12px; display: grid; place-items: center;
  border-radius: 15px; background: rgba(255, 255, 255, .22); font-size: 26px;
  border: 1px solid rgba(255, 255, 255, .3);
}
.m-hero h1 { margin: 0; font-size: 23px; font-weight: 600; letter-spacing: 2px; }
.m-hero p { margin: 7px 0 0; font-size: 13px; opacity: .92; }

/* ---------------- 首页头部区 ---------------- */
/* 顶栏 + Banner + 公告共用一块渐变，铺到公告下方再交给白色内容区 */
.home-head {
  flex: none; padding-bottom: 16px;
}
.home-head.m-brand {
  background-size: auto, 100% 100%;
  background-color: #2f8bef;
}
.home-head .m-top { background: transparent; }
.home-body { position: relative; z-index: 2; padding: 12px 14px 16px; }

/* ---------------- Banner 轮播 ---------------- */
.m-banner { position: relative; margin: 0 14px; }
.m-banner-view {
  position: relative; overflow: hidden; border-radius: 12px;
  box-shadow: 0 6px 16px rgba(9, 45, 106, .18);
}
.m-banner-track { display: flex; transition: transform .42s cubic-bezier(.4, 0, .2, 1); }
.m-banner-item {
  position: relative; flex: 0 0 100%; height: 176px; padding: 22px 18px 28px;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.m-banner-item b {
  position: relative; z-index: 2; max-width: 58%;
  color: #fff; font-size: 18px; font-weight: 600; letter-spacing: .6px;
}
.m-banner-item span {
  position: relative; z-index: 2; max-width: 58%; margin-top: 6px;
  color: rgba(255, 255, 255, .92); font-size: 12.5px; line-height: 1.55;
}
/* 插画贴右下角，文字限宽 58% 让出位置，两者不会压到一起 */
.m-banner-item img {
  position: absolute; right: 8px; bottom: 0; z-index: 1; height: 152px; width: auto;
}
.m-banner-item:before {
  content: ""; position: absolute; z-index: 0; right: -40px; top: -52px;
  width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .13);
}
.m-banner-item.b1 { background: linear-gradient(118deg, #0b8f83 0%, #22b8a4 100%); }
.m-banner-item.b2 { background: linear-gradient(118deg, #4a45d1 0%, #8a72ef 100%); }
.m-banner-item.b3 { background: linear-gradient(118deg, #ea6a33 0%, #ffa552 100%); }
.m-banner-dots {
  position: absolute; left: 0; right: 0; bottom: 10px; z-index: 3;
  display: flex; justify-content: center; gap: 5px;
}
.m-banner-dots i {
  width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .5); transition: all .3s;
}
.m-banner-dots i.on { width: 15px; background: #fff; }

/* ---------------- 公告滚动条 ---------------- */
.m-marquee {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  margin: 0 0 10px; background: #fff; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(23, 35, 61, .06);
}
.m-marquee-label {
  display: flex; align-items: center; gap: 6px; flex: none;
  color: var(--warn); font-size: 13px; font-weight: 500;
}
.m-marquee-ico { width: 16px; height: 16px; flex: none; display: block; }
.m-marquee-label:after { content: ""; width: 1px; height: 13px; margin-left: 4px; background: var(--border); }
.m-marquee-view { flex: 1; min-width: 0; overflow: hidden; }
.m-marquee-track {
  display: inline-flex; white-space: nowrap; animation: m-marquee 48s linear infinite;
}
.m-marquee-track span { padding-right: 46px; color: var(--sub); font-size: 13px; }
.m-marquee:hover .m-marquee-track { animation-play-state: paused; }
@keyframes m-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- 功能入口九宫格 ---------------- */
.m-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 16px 6px 14px; background: #fff; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(23, 35, 61, .06); margin-bottom: 12px;
}
.m-grid button {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  border: 0; padding: 0; background: none; cursor: pointer;
}
.m-grid .ico {
  position: relative; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 14px; background: #f6f7fb;
}
.m-grid .ico img { width: 32px; height: 32px; display: block; }
.m-grid .ico.sm img { width: 26px; height: 26px; }
.m-grid b { color: var(--text); font-size: 12.5px; font-weight: 400; }
.m-grid .ico em {
  position: absolute; top: -4px; right: -6px; padding: 0 5px; height: 16px; line-height: 16px;
  border-radius: 8px; background: #ed4014; color: #fff; font-size: 10px; font-style: normal;
}
.m-grid button:active .ico { transform: scale(.93); }

/* ---------------- 卡片 ---------------- */
.m-card {
  background: #fff; border-radius: 10px; padding: 15px;
  box-shadow: 0 2px 8px rgba(23, 35, 61, .06); margin-bottom: 12px;
}
.m-card:last-child { margin-bottom: 0; }
.m-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 13px; }
.m-card-head h2 {
  position: relative; margin: 0; padding-left: 10px; color: var(--text);
  font-size: 16px; font-weight: 500;
}
.m-card-head h2:before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  border-radius: 2px; background: var(--primary);
}
.m-card-head .m-extra { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.m-card-head .m-extra button {
  border: 0; padding: 0; background: none; color: var(--primary); font-size: 12.5px; cursor: pointer;
}
.m-card-head .m-extra .ivu-icon { font-size: 13px; }

/* ---------------- 子女切换 chips ---------------- */
.m-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 13px; }
.m-chips::-webkit-scrollbar { display: none; }
.m-chips button {
  display: flex; align-items: center; gap: 6px; flex: none; height: 32px; padding: 0 12px;
  border: 1px solid #dcdee2; border-radius: 16px; background: #fff;
  color: var(--sub); font-size: 13px; cursor: pointer;
}
.m-chips button.on { border-color: var(--primary); background: #eaf5ff; color: var(--primary-deep); font-weight: 500; }
.m-face {
  display: inline-grid; place-items: center; flex: none;
  overflow: hidden; border-radius: 50%; background: #fff;
}
.m-face img { width: 100%; height: 100%; display: block; object-fit: cover; }
.m-chips .m-face { width: 22px; height: 22px; }
/* 首页最新计划面板：白底卡分区展示，标题区、日期条、项目区、说明区各有边界 */
.m-plan-panel {
  overflow: hidden; background: #fff;
  border: 1px solid #e8ecf3; border-radius: 12px;
}
.m-plan-panel .m-child-top {
  padding: 14px; border-bottom: 1px solid #edf1f7;
  background: linear-gradient(135deg, #e9f3ff 0%, #f7fbff 100%);
}
/* 头部底色本身偏蓝，状态标签换白底药丸才能拉开对比 */
.m-plan-panel .m-child-top .m-tag {
  height: 25px; border-radius: 13px; background: #fff;
  box-shadow: 0 1px 5px rgba(23, 35, 61, .1);
}
.m-plan-date {
  display: flex; align-items: center; gap: 7px; height: 34px;
  margin: 12px 14px 0; padding: 0 11px; border-radius: 8px;
  background: #f4f7fc; color: var(--sub); font-size: 12.5px;
}
.m-plan-date .ivu-icon { color: var(--primary); font-size: 15px; }
.m-plan-date em {
  margin-left: auto; padding: 1px 7px; border-radius: 4px;
  background: #fff; color: var(--primary-deep); font-size: 11.5px; font-style: normal;
}
.m-plan-panel .m-items {
  margin: 12px 14px; padding: 12px 4px 10px;
  border: 1px solid #f0f2f6; border-radius: 10px; background: #fcfdff;
}
.m-plan-panel .m-child-body {
  margin: 0 14px 14px; padding: 10px 12px; border-top: 0;
  border-left: 3px solid var(--primary); border-radius: 0 8px 8px 0; background: #f7f9fc;
}
/* 说明区的强调条跟随状态，补检/逾期不该还用蓝色 */
.m-plan-panel[data-tag="bad"] .m-child-body { border-left-color: var(--danger); }
.m-plan-panel[data-tag="wait"] .m-child-body { border-left-color: var(--warn); }
.m-plan-panel[data-tag="run"] .m-child-body { border-left-color: var(--success); }
.m-plan-panel[data-tag="mute"] .m-child-body { border-left-color: #dcdee2; }
.m-plan-panel .m-child-foot {
  margin: 0; padding: 12px 14px; border-top: 1px solid #f0f2f6; background: #fafbfd;
}
.m-plan-panel .m-child-foot .m-btn { flex: none; width: 100%; }
.m-plan-panel .m-progress { margin-bottom: 9px; }

/* ---------------- 子女 / 计划卡片 ---------------- */
.m-child {
  display: block; width: 100%; text-align: left; border: 1px solid transparent;
  background: #fff; border-radius: 10px; padding: 15px; margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(23, 35, 61, .06); cursor: pointer;
}
.m-child.on { border-color: var(--primary); box-shadow: 0 3px 12px rgba(45, 140, 240, .18); }
.m-child-top { display: flex; align-items: center; gap: 11px; }
.m-avatar { width: 42px; height: 42px; }
.m-child-id { min-width: 0; flex: 1; }
.m-child-id b { display: block; color: var(--text); font-size: 16.5px; font-weight: 500; }
.m-child-id small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; }
.m-child-body { margin-top: 13px; padding-top: 12px; border-top: 1px solid #f2f3f5; }
.m-child-line { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--sub); }
.m-child-line + .m-child-line { margin-top: 8px; }
.m-child-line .ivu-icon { color: var(--light); font-size: 15px; flex: none; margin-top: 2px; }
.m-child-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 13px;
  padding-top: 12px; border-top: 1px solid #f2f3f5;
}
.m-child-foot .m-btn { flex: 1; height: 36px; font-size: 14px; }

/* ---------------- 标签 / 进度 ---------------- */
.m-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 8px;
  border-radius: 4px; font-size: 12.5px; flex: none; white-space: nowrap;
}
.m-tag .ivu-icon { font-size: 13px; }
.m-tag.run { color: var(--success); background: #e8f7ef; }
.m-tag.wait { color: var(--warn); background: #fff4e6; }
.m-tag.done { color: var(--primary); background: #eaf5ff; }
.m-tag.bad { color: var(--danger); background: #fff1f0; }
.m-tag.mute { color: var(--muted); background: #f2f3f5; }

.m-track { flex: 1; height: 6px; border-radius: 4px; background: #f0f0f0; overflow: hidden; }
.m-track i { display: block; height: 100%; border-radius: 4px; background: var(--primary); transition: width .4s; }
.m-progress { display: flex; align-items: center; gap: 9px; }
.m-progress span { color: var(--muted); font-size: 12.5px; flex: none; }

/* 五项检查状态点阵 */
.m-items { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.m-item { text-align: center; }
.m-item .dot {
  width: 32px; height: 32px; margin: 0 auto 5px; display: grid; place-items: center;
  border-radius: 50%; background: #f2f3f5; color: var(--light); font-size: 16px;
}
/* 已检/未检用彩色图标本身表达状态，底色圆点会和图标叠成双层圆 */
.m-item.done .dot,
.m-item.skipped .dot { background: transparent; }
.m-item .dot img { width: 25px; height: 25px; display: block; }
.m-item b { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.m-item.done b { color: var(--sub); }
.m-item.skipped b { color: var(--danger); }

/* ---------------- 筛查记录时间轴 ---------------- */
.m-timeline { margin: 0; padding: 2px 0 0; list-style: none; }
.m-tl-item { position: relative; display: flex; gap: 12px; padding-bottom: 16px; }
.m-tl-item:last-child { padding-bottom: 0; }
/* 竖线画在圆点列上，最后一项不画，避免尾巴悬空 */
.m-tl-item:not(:last-child):after {
  content: ""; position: absolute; left: 63px; top: 18px; bottom: -2px;
  width: 2px; background: #e8ecf3;
}
.m-tl-date { width: 46px; flex: none; text-align: right; padding-top: 1px; }
.m-tl-date b { display: block; color: var(--text); font-size: 13.5px; font-weight: 500; }
.m-tl-date small { display: block; margin-top: 2px; color: var(--light); font-size: 11.5px; }
.m-tl-dot {
  position: relative; z-index: 1; flex: none;
  width: 12px; height: 12px; margin-top: 5px; border-radius: 50%;
  background: #fff; border: 2px solid #c5cbd6;
}
.m-tl-item.done .m-tl-dot { border-color: var(--primary); }
.m-tl-item.run .m-tl-dot { border-color: var(--success); }
.m-tl-item.wait .m-tl-dot { border-color: var(--warn); }
.m-tl-item.bad .m-tl-dot { border-color: var(--danger); }
/* 最近一次加个光晕，光晕跟着状态走，避免待补检的红点套一圈蓝 */
.m-tl-item.now.done .m-tl-dot { box-shadow: 0 0 0 4px rgba(45, 140, 240, .16); }
.m-tl-item.now.run .m-tl-dot { box-shadow: 0 0 0 4px rgba(25, 190, 107, .16); }
.m-tl-item.now.wait .m-tl-dot { box-shadow: 0 0 0 4px rgba(255, 153, 0, .18); }
.m-tl-item.now.bad .m-tl-dot { box-shadow: 0 0 0 4px rgba(237, 64, 20, .16); }
.m-tl-card {
  flex: 1; min-width: 0; padding: 11px 13px;
  border: 1px solid #eef1f6; border-radius: 10px; background: #fbfcfe;
}
.m-tl-item.now .m-tl-card { border-color: #cfe4fb; background: #f5faff; }
.m-tl-head { display: flex; align-items: center; gap: 8px; }
.m-tl-head b { flex: 1; min-width: 0; color: var(--text); font-size: 14.5px; font-weight: 500; }
.m-tl-card > small { display: block; margin-top: 5px; color: var(--muted); font-size: 12.5px; }

/* ---------------- 消息列表 ---------------- */
.m-msg {
  display: flex; gap: 12px; padding: 14px; background: #fff; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(23, 35, 61, .06); margin-bottom: 10px; cursor: pointer;
}
.m-msg .ico {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 10px; font-size: 19px;
}
.m-msg-main { flex: 1; min-width: 0; }
.m-msg-head { display: flex; align-items: center; gap: 8px; }
.m-msg-head b { color: var(--text); font-size: 15px; font-weight: 500; }
.m-msg-head small { margin-left: auto; color: var(--light); font-size: 12px; flex: none; }
.m-msg-main p { margin: 6px 0 0; color: var(--sub); font-size: 13px; line-height: 1.65; }
.m-msg.unread .m-msg-head b:after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px;
  border-radius: 50%; background: #ed4014; vertical-align: 2px;
}
.m-msg.read { opacity: .72; }

/* ---------------- 我的：头部与菜单 ---------------- */
.me-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 13px; padding: 12px 18px 20px; color: #fff;
}
.me-body { padding: 22px 14px 14px; }
.me-hero:after {
  content: ""; position: absolute; right: -10px; bottom: -12px; width: 104px; height: 104px;
  background: url('../src/assets/健康.png') no-repeat right bottom / contain;
  opacity: .9; pointer-events: none;
}
.me-hero .av {
  position: relative; z-index: 2;
  width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .3); font-size: 26px;
}
.me-hero .av img { width: 100%; height: 100%; object-fit: cover; display: block; }

.m-profile-av {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 4px 0 18px;
}
.m-profile-av button {
  width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%;
  overflow: hidden; background: #eef3f8; color: var(--muted); font-size: 36px; cursor: pointer;
}
.m-profile-av button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-profile-av small { color: var(--muted); font-size: 12.5px; }
.me-hero > div { position: relative; z-index: 2; }
.me-hero b { display: block; font-size: 19px; font-weight: 600; letter-spacing: .5px; }
.me-hero small { display: block; margin-top: 4px; font-size: 12.5px; opacity: .9; }

.m-list { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(23, 35, 61, .06); margin-bottom: 12px; overflow: hidden; }
.m-list button {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px 15px;
  border: 0; border-bottom: 1px solid #f2f3f5; background: #fff; text-align: left; cursor: pointer;
}
.m-list button:last-child { border-bottom: 0; }
.m-list button:active { background: #f7fbff; }
.m-list .ico {
  width: 26px; height: 26px; text-align: center; flex: none;
  display: grid; place-items: center;
}
.m-list .ico img { width: 26px; height: 26px; display: block; }
.m-list b { flex: 1; color: var(--text); font-size: 15px; font-weight: 400; }
.m-list small { color: var(--muted); font-size: 13px; }
.m-list .arr { color: var(--light); font-size: 16px; }

/* ---------------- 表单 ---------------- */
.m-field { margin-bottom: 15px; }
.m-field > label { display: block; margin-bottom: 7px; color: var(--sub); font-size: 14px; }
.m-field > label i { color: var(--danger); font-style: normal; margin-right: 3px; }
.m-field > label em { color: var(--light); font-style: normal; font-size: 12.5px; }
.m-field small { display: block; margin-top: 6px; color: var(--light); font-size: 12.5px; line-height: 1.6; }
.m-input, .m-select {
  width: 100%; height: 46px; padding: 0 13px; color: var(--text);
  border: 1px solid #dcdee2; border-radius: 8px; background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.m-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b2b7c3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px;
}
.m-input::placeholder { color: var(--light); }
.m-input:focus, .m-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(45, 140, 240, .12); }
.m-input:disabled, .m-select:disabled { background: #f7f8fa; color: var(--light); }
.m-input.bad, .m-select.bad { border-color: var(--danger); background: #fff8f7; }
.m-input-row { display: flex; gap: 10px; }
.m-input-row .m-input { flex: 1; min-width: 0; }

.m-code-btn {
  flex: none; width: 116px; height: 46px; border: 1px solid var(--primary); border-radius: 8px;
  background: #fff; color: var(--primary); font-size: 14px; cursor: pointer;
}
.m-code-btn:disabled { border-color: #dcdee2; color: var(--light); background: #f7f8fa; cursor: default; }

.m-error { min-height: 20px; margin: 2px 0 6px; color: var(--danger); font-size: 13px; line-height: 1.5; }
.m-check { display: flex; align-items: flex-start; gap: 9px; color: var(--sub); font-size: 13.5px; line-height: 1.6; }
.m-check input { margin: 4px 0 0; flex: none; width: 16px; height: 16px; }

/* ---------------- 按钮 ---------------- */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border: 1px solid transparent; border-radius: 8px;
  background: #fff; color: var(--sub); font-size: 15px; cursor: pointer; white-space: nowrap;
}
.m-btn.block { display: flex; width: 100%; }
.m-btn.primary { background: linear-gradient(90deg, #2d8cf0, #1777d4); color: #fff; }
.m-btn.primary:active { filter: brightness(.94); }
.m-btn.ghost { border-color: #dcdee2; color: var(--sub); }
.m-btn.ghost:active { background: #f5f7f9; }
.m-btn.danger { border-color: #ffccc7; background: #fff1f0; color: var(--danger); }
.m-btn.danger:active { background: #ffe3e0; }
.m-btn.link { height: auto; padding: 0; border: 0; background: none; color: var(--primary); }
.m-btn.lg { height: 48px; font-size: 16px; letter-spacing: 2px; }
.m-btn:disabled { opacity: .55; cursor: default; }
.m-btn .ivu-icon { font-size: 17px; }

/* ---------------- 分段选择 ---------------- */
.m-seg { display: flex; gap: 8px; margin-bottom: 16px; }
.m-seg button {
  flex: 1; min-width: 0; padding: 11px 8px; border: 1px solid #dcdee2; border-radius: 8px;
  background: #fff; color: var(--sub); cursor: pointer; text-align: center;
}
.m-seg button b { display: block; color: var(--text); font-size: 14px; font-weight: 500; }
.m-seg button small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.m-seg button.on { border-color: var(--primary); background: #f2f8ff; }
.m-seg button.on b, .m-seg button.on small { color: var(--primary-deep); }

/* 消息筛选：标签超出时在本条内横滑，不让父级裁掉后半截 */
.m-filter-wrap {
  position: relative; margin: 0 -14px 12px; min-width: 0;
}
.m-filter-wrap:after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px;
  pointer-events: none; background: linear-gradient(90deg, transparent, var(--body));
}
.m-filter {
  display: flex; flex-wrap: nowrap; gap: 8px; padding: 0 14px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  touch-action: pan-x; overscroll-behavior-x: contain; scrollbar-width: none;
}
.m-filter::-webkit-scrollbar { display: none; }
.m-filter button {
  flex: none; height: 30px; padding: 0 13px; border: 1px solid transparent; border-radius: 15px;
  font-size: 13px; white-space: nowrap; cursor: pointer;
}
.m-filter button.t-all { color: #3b4a6b; background: #eef1f6; }
.m-filter button.t-all.on { color: #fff; background: #3b4a6b; }
.m-filter button.t-report { color: #1777d4; background: #eaf5ff; }
.m-filter button.t-report.on { color: #fff; background: #2d8cf0; }
.m-filter button.t-retest { color: #d97706; background: #fff7ea; }
.m-filter button.t-retest.on { color: #fff; background: #ff9900; }
.m-filter button.t-plan { color: #0f9b55; background: #e8f7ef; }
.m-filter button.t-plan.on { color: #fff; background: #19be6b; }
.m-filter button.t-survey { color: #7c4dcc; background: #f3edff; }
.m-filter button.t-survey.on { color: #fff; background: #9a66e4; }
.m-filter button.t-system { color: #5d6474; background: #f2f3f5; }
.m-filter button.t-system.on { color: #fff; background: #808695; }

/* ---------------- 心理问卷 ---------------- */
.sv-hero { padding: 18px 16px 16px; }
.sv-hero .who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sv-hero .who .m-child-id { flex: 1; min-width: 0; }
.sv-st {
  flex: none; margin-left: auto; height: 24px; padding: 0 10px;
  border-radius: 12px; font-size: 12px; font-weight: 600;
  display: inline-flex; align-items: center;
}
.sv-st.done { background: #e8f7ef; color: #0f9b55; }
.sv-st.doing { background: #fff7ea; color: #d97706; }
.sv-st.pending { background: #eaf5ff; color: #1777d4; }
.sv-hero h2 { margin: 0 0 8px; color: var(--text); font-size: 18px; font-weight: 600; line-height: 1.4; }
.sv-hero p { margin: 0; color: var(--sub); font-size: 13.5px; line-height: 1.7; }
.sv-hint {
  display: flex; gap: 8px; margin: 12px 0 10px; padding: 12px 13px;
  border: 1px solid #ffe0b2; border-radius: 10px; background: #fff8eb;
  color: #8a5a12; font-size: 13.5px; line-height: 1.65;
}
.sv-hint .ivu-icon { flex: none; margin-top: 2px; color: #ff9900; font-size: 18px; }
.sv-hint b { color: #6b4308; font-weight: 600; }
.sv-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.sv-meta span {
  height: 26px; padding: 0 9px; border-radius: 13px;
  background: #f4f7fc; color: var(--sub); font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 4px;
}
.sv-q {
  padding: 14px 0; border-bottom: 1px solid #f0f2f6;
}
.sv-q:last-child { border-bottom: 0; }
.sv-q-top { display: flex; gap: 10px; }
.sv-q .no {
  flex: none; width: 22px; color: var(--light); font-size: 14px; font-weight: 500; padding-top: 1px;
}
.sv-q p { margin: 0; color: var(--text); font-size: 14.5px; line-height: 1.55; font-weight: 500; }
.sv-opts { display: flex; flex-direction: column; margin: 6px 0 0 32px; }
.sv-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 0 2px;
  border-bottom: 1px solid #f0f2f6;
  color: var(--text); font-size: 14.5px; cursor: pointer;
}
.sv-opt:last-child { border-bottom: 0; }
.sv-opt em {
  font-style: normal; font-weight: 600; color: var(--muted);
  display: inline-block; width: 1.4em;
}
.sv-opt.on { color: var(--primary-deep); }
.sv-opt.on em { color: var(--primary); }
.sv-opt input[type="radio"] {
  flex: none; width: 18px; height: 18px; margin: 0;
  accent-color: var(--primary); pointer-events: none;
}
.sv-bar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 4px;
  color: var(--muted); font-size: 12.5px;
}
/* 时间轴节点里的操作行：查看报告、填问卷这类跟着某一次筛查走的入口 */
.m-tl-act { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.m-tl-act .m-btn { height: 30px; padding: 0 12px; font-size: 13px; flex: none; }
.m-tl-act small { color: var(--muted); font-size: 12.5px; }
/* ---------------- 五健普及：维度宫格与精选 ---------------- */
/*
 * 科普页刻意不复用消息页的横滑筛选条：两者都是「标签 + 左图右文列表」时几乎分不出来。
 * 这里用五个健康维度的圆形入口做导航，顺带把「五健」这个业务概念摆在首屏。
 */
.sci-dims {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
  padding: 15px 6px; margin-bottom: 12px;
  background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(23, 35, 61, .06);
}
.sci-dim {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  border: 0; padding: 0; background: none; cursor: pointer;
}
.sci-dim i {
  position: relative; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; font-size: 21px; transition: transform .15s;
}
.sci-dim b { color: var(--text); font-size: 12px; font-weight: 400; }
.sci-dim:active i { transform: scale(.93); }
/* 选中态只加一圈同色描边，避免再引入第二种强调色 */
.sci-dim.on i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; }
.sci-dim.on b { color: var(--text); font-weight: 500; }

.sci-hero {
  position: relative; height: 152px; margin-bottom: 12px;
  border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(23, 35, 61, .06); cursor: pointer;
}
.sci-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 26% 46%; display: block; }
.sci-hero .mask {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 12px; color: #fff;
  background: linear-gradient(transparent, rgba(10, 22, 44, .86));
}
.sci-hero .mask em {
  display: inline-block; margin-bottom: 6px; padding: 1px 8px; border-radius: 4px;
  background: rgba(255, 255, 255, .24); font-size: 11.5px; font-style: normal;
}
.sci-hero .mask b { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }

/* ---------------- 五健普及：文章列表 ---------------- */
.m-art {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(23, 35, 61, .06); cursor: pointer;
}
.m-art-cover {
  width: 86px; height: 64px; flex: none; overflow: hidden;
  border-radius: 8px; background: #eef3f8;
}
.m-art-cover img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: 22% 46%;
}
.m-art-main { flex: 1; min-width: 0; }
.m-art-main b {
  display: block; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.45;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-art-main p {
  margin: 5px 0 0; color: var(--sub); font-size: 13px; line-height: 1.5;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.m-art-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.m-art-foot em {
  padding: 1px 7px; border-radius: 4px; font-size: 11.5px; font-style: normal;
}
.m-art-meta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.m-art-foot small { color: var(--light); font-size: 12px; }
.m-art-foot small .ivu-icon { font-size: 13px; }

/* ---------------- 五健普及：文章详情 ---------------- */
.m-article {
  overflow: hidden; background: #fff; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(23, 35, 61, .06);
}
.m-article-body { padding: 16px 16px 18px; }
.m-article-body > h2 {
  margin: 0; color: var(--text); font-size: 19px; font-weight: 600; line-height: 1.45;
}
.m-article-meta {
  display: flex; align-items: center; gap: 10px; margin: 10px 0 0;
  color: var(--light); font-size: 12.5px;
}
.m-article-meta .ivu-icon { font-size: 14px; }
.m-article-meta em {
  margin-left: auto; padding: 1px 8px; border-radius: 4px;
  font-size: 12px; font-style: normal;
}
.m-article section { margin-top: 18px; padding-top: 16px; border-top: 1px solid #f0f2f6; }
.m-article section h3 {
  position: relative; margin: 0 0 8px; padding-left: 11px;
  color: var(--text); font-size: 15.5px; font-weight: 500;
}
.m-article section h3:before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px;
  border-radius: 2px; background: var(--primary);
}
.m-article section p { margin: 0; color: var(--sub); font-size: 14px; line-height: 1.8; }
.m-article .m-notice { margin: 18px 0 0; }
.m-card > .m-art { box-shadow: none; margin: 0; border-radius: 0; }
.m-card > .m-art + .m-art { border-top: 1px solid #f0f2f6; }

.m-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------------- 搜索条 ---------------- */
.m-search {
  display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 13px; margin-bottom: 12px;
  border-radius: 20px; background: #fff; box-shadow: 0 2px 8px rgba(23, 35, 61, .06);
  color: var(--muted);
}
.m-search .ivu-icon { flex: none; font-size: 18px; }
.m-search input {
  flex: 1; min-width: 0; height: 40px; border: 0; outline: none;
  background: transparent; color: var(--text); font-size: 14px;
}
.m-search input::placeholder { color: var(--light); }
.m-search button {
  flex: none; width: 22px; height: 22px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: #f0f2f6; color: var(--muted);
  font-size: 14px; cursor: pointer;
}

/* ---------------- 预约筛查：机构列表 ---------------- */
.hos-types {
  display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -14px 12px; padding: 0 14px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  touch-action: pan-x; overscroll-behavior-x: contain; scrollbar-width: none;
}
.hos-types::-webkit-scrollbar { display: none; }
.hos-types button {
  flex: none; height: 30px; padding: 0 13px; border: 1px solid #e4e7ee; border-radius: 15px;
  background: #fff; color: var(--sub); font-size: 13px; white-space: nowrap; cursor: pointer;
}
.hos-types button.on { border-color: var(--primary); background: var(--primary); color: #fff; }

.hos {
  display: flex; gap: 12px; padding: 12px 14px; margin-bottom: 10px;
  background: #fff; border-radius: 10px;
  box-shadow: 0 2px 8px rgba(23, 35, 61, .06); cursor: pointer;
}
.hos-cover {
  width: 96px; height: 78px; flex: none; overflow: hidden;
  border-radius: 8px; background: #eef3f8;
}
.hos-cover img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: 24% 46%;
}
.hos-main { flex: 1; min-width: 0; }
.hos-name { display: flex; align-items: center; gap: 6px; }
.hos-name b {
  min-width: 0; color: var(--text); font-size: 15.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hos-lv {
  flex: none; padding: 1px 6px; border-radius: 4px;
  background: #eaf5ff; color: var(--primary-deep); font-size: 11px;
}
.hos-addr {
  display: flex; align-items: center; gap: 4px; margin: 7px 0 0;
  color: var(--sub); font-size: 13px;
}
.hos-addr .ivu-icon { flex: none; font-size: 14px; color: var(--light); }
.hos-addr span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hos-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.hos-type {
  padding: 1px 7px; border-radius: 4px;
  background: #f3edff; color: #7c4dcc; font-size: 11.5px;
}
.hos-dist {
  margin-left: auto; flex: none; display: flex; align-items: center; gap: 3px;
  color: var(--light); font-size: 12px;
}
.hos-dist b { color: var(--sub); font-weight: 500; }

/* ---------------- 预约筛查：填单 ---------------- */
.ap-hos {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
  border: 1px solid #e8eaec; border-radius: 10px; background: #fff;
  text-align: left; cursor: pointer;
}
.ap-hos .arrow { flex: none; margin-left: auto; color: var(--light); font-size: 18px; }
.ap-hos.blank { justify-content: flex-start; color: var(--muted); font-size: 14px; }
.ap-hos.blank .ivu-icon:first-child { font-size: 19px; color: var(--primary); }
.ap-hos.locked {
  cursor: default; background: #f7f9fc; border-color: #e8eaec;
}
.ap-hos.locked:disabled { opacity: 1; color: inherit; }
.ap-hos .hos-cover { width: 74px; height: 58px; }

.ap-days {
  display: flex; gap: 8px; margin: 0 -14px; padding: 2px 14px 4px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  touch-action: pan-x; overscroll-behavior-x: contain; scrollbar-width: none;
}
.ap-days::-webkit-scrollbar { display: none; }
.ap-day {
  flex: none; width: 62px; padding: 8px 0 7px;
  border: 1px solid #e4e7ee; border-radius: 10px; background: #fff;
  text-align: center; cursor: pointer;
}
.ap-day small { display: block; color: var(--muted); font-size: 11.5px; }
.ap-day b { display: block; margin-top: 2px; color: var(--text); font-size: 15px; font-weight: 500; }
.ap-day em { display: block; margin-top: 3px; color: var(--success); font-size: 11px; font-style: normal; }
.ap-day.on { border-color: var(--primary); background: #eaf5ff; }
.ap-day.on small, .ap-day.on b { color: var(--primary-deep); }
.ap-day.full { background: #f7f8fa; }
.ap-day.full b, .ap-day.full small { color: var(--light); }
.ap-day.full em { color: var(--light); }

.ap-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ap-slot {
  padding: 11px 12px; border: 1px solid #e4e7ee; border-radius: 10px; background: #fff;
  text-align: left; cursor: pointer;
}
.ap-slot b { display: block; color: var(--text); font-size: 15px; font-weight: 500; }
.ap-slot small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.ap-slot em { display: block; margin-top: 4px; color: var(--success); font-size: 12px; font-style: normal; }
.ap-slot.on { border-color: var(--primary); background: #eaf5ff; }
.ap-slot:disabled { background: #f7f8fa; cursor: default; }
.ap-slot:disabled b, .ap-slot:disabled small, .ap-slot:disabled em { color: var(--light); }

.ap-block + .ap-block { margin-top: 16px; }
.ap-block > h3 {
  margin: 0 0 10px; color: var(--text); font-size: 14px; font-weight: 500;
}
.ap-block > h3 span { margin-left: 6px; color: var(--light); font-size: 12px; font-weight: 400; }

/* ---------------- 预约筛查：我的预约 ---------------- */
.ap-item { padding: 13px 0; border-bottom: 1px solid #f0f2f6; }
.ap-item:first-child { padding-top: 0; }
.ap-item:last-child { padding-bottom: 0; border-bottom: 0; }
.ap-item-head { display: flex; align-items: center; gap: 8px; }
.ap-item-head b {
  min-width: 0; color: var(--text); font-size: 15px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ap-item-head .m-tag { margin-left: auto; }
.ap-when {
  display: flex; align-items: center; gap: 5px; margin: 8px 0 0;
  color: var(--sub); font-size: 13.5px;
}
.ap-when .ivu-icon { color: var(--light); font-size: 15px; }
.ap-item p { margin: 5px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.ap-item-foot { display: flex; gap: 8px; margin-top: 10px; }
.ap-item.off .ap-item-head b, .ap-item.off .ap-when { color: var(--light); }
.ap-item.tap { cursor: pointer; }
.ap-item-head .ap-arrow { flex: none; color: var(--light); font-size: 16px; }

/* ---------------- 预约筛查：预约详情 ---------------- */
.ap-state { display: flex; align-items: flex-start; gap: 12px; }
.ap-state-ico {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: #eaf5ff; color: var(--primary); font-size: 22px;
}
.ap-state.run .ap-state-ico { background: #e8f7ef; color: var(--success); }
.ap-state.mute .ap-state-ico { background: #f2f3f5; color: var(--muted); }
.ap-state-main { flex: 1; min-width: 0; }
.ap-state-main b { display: block; color: var(--text); font-size: 16px; font-weight: 500; }
.ap-state-main p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.ap-state-when {
  margin-top: 13px; padding: 11px 13px; border-radius: 8px; background: #f7f9fc;
  color: var(--text); font-size: 15px; font-weight: 500; letter-spacing: .5px;
}
.ap-state-when small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.ap-hos-card { display: flex; gap: 11px; }
.ap-hos-card .hos-cover { width: 84px; height: 64px; }
.ap-hos-card .hos-main { flex: 1; min-width: 0; }
.ap-items { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.ap-items span {
  padding: 3px 9px; border-radius: 20px; background: #f2f7fd;
  color: var(--primary-deep); font-size: 12px;
}

/*
 * ---------------- 个人报告（H05） ----------------
 * 排版沿用大家熟悉的体检报告：抬头交代这是谁的、哪次的报告，接着总检结论，
 * 然后才是分项明细。家长在手机上多数只看前两屏，需要行动的事必须落在那里。
 */
.rp-cover {
  position: relative; overflow: hidden; margin-bottom: 12px; padding: 15px 16px 16px;
  border-radius: 12px; background: var(--brand); color: #fff;
}
/* 右上角的淡圆，避免整块渐变太平；不影响文字区域 */
.rp-cover:after {
  content: ''; position: absolute; right: -34px; top: -46px;
  width: 122px; height: 122px; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.rp-cover-top { position: relative; display: flex; align-items: center; gap: 10px; }
.rp-cover-top b { color: #fff; font-size: 20px; font-weight: 500; }
.rp-cover-top span { color: rgba(255, 255, 255, .82); font-size: 13px; }
.rp-cover-top .m-tag {
  margin-left: auto; color: #fff; background: rgba(255, 255, 255, .22);
}
.rp-cover-sub { position: relative; margin-top: 6px; color: rgba(255, 255, 255, .9); font-size: 13px; }
.rp-cover-plan {
  position: relative; margin-top: 13px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: #fff; font-size: 15px; font-weight: 500;
}
.rp-cover-meta {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px;
  margin-top: 11px;
}
.rp-cover-meta div { min-width: 0; }
.rp-cover-meta label { display: block; color: rgba(255, 255, 255, .68); font-size: 11.5px; }
.rp-cover-meta b {
  display: block; margin-top: 2px; color: #fff; font-size: 13px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* 总检结论：整份报告里最先被读到的一块，字号压过其它卡片 */
.rp-verdict { display: flex; align-items: flex-start; gap: 12px; }
.rp-verdict-ico {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: #e8f7ef; color: var(--success); font-size: 24px;
}
.rp-verdict.info .rp-verdict-ico { background: #eaf5ff; color: var(--primary); }
.rp-verdict.warn .rp-verdict-ico { background: #fff4e6; color: var(--warn); }
.rp-verdict.bad .rp-verdict-ico { background: #fff1f0; color: var(--danger); }
.rp-verdict-main { flex: 1; min-width: 0; }
.rp-verdict-main b { display: block; color: var(--text); font-size: 16.5px; font-weight: 500; }
.rp-verdict-main p { margin: 6px 0 0; color: var(--sub); font-size: 13px; line-height: 1.7; }
.rp-todo { margin: 12px 0 0; padding: 0; list-style: none; }
.rp-todo li {
  display: flex; align-items: flex-start; gap: 8px; padding: 9px 11px;
  border-radius: 8px; background: #f7f9fc; color: var(--sub); font-size: 13px; line-height: 1.6;
}
.rp-todo li + li { margin-top: 7px; }
.rp-todo li .ivu-icon { flex: none; margin-top: 2px; font-size: 15px; color: var(--warn); }
.rp-todo li.bad .ivu-icon { color: var(--danger); }
.rp-todo li.mute .ivu-icon { color: var(--muted); }
.rp-todo li b { color: var(--text); font-weight: 500; }

/* 五项总览：点一下跳到下面对应的分项 */
.rp-sum { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.rp-sum button {
  padding: 10px 2px 8px; border: 1px solid var(--border); border-radius: 9px;
  background: #fff; text-align: center; cursor: pointer;
}
.rp-sum button:active { background: #f7f9fc; }
.rp-sum .rp-sum-ico {
  position: relative; display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 5px;
  border-radius: 50%; background: #f4f6f9; color: var(--item, var(--primary)); font-size: 17px;
}
/* 非正常项在图标右上角打红点，扫总览就能看见哪几张该点开 */
.rp-sum .rp-dot {
  position: absolute; top: -1px; right: -1px; width: 8px; height: 8px;
  border-radius: 50%; background: #ed4014; box-shadow: 0 0 0 1.5px #fff;
}
.rp-sum button b { display: block; color: var(--sub); font-size: 11.5px; font-weight: 400; }
.rp-sum button em {
  display: block; margin-top: 3px; font-size: 11.5px; font-style: normal; font-weight: 500;
  color: var(--lv, var(--muted));
}
/* 非正常的项目描一道同色边，扫一眼就知道该看哪几张卡 */
.rp-sum button.off { border-color: var(--lv); background: #fff; }

/* ---------------- 个人报告：分项明细 ---------------- */
.rp-item { border-left: 3px solid var(--lv, var(--border)); }
.rp-item-head { display: flex; align-items: center; gap: 9px; margin-bottom: 3px; }
.rp-item-head .rp-item-ico {
  flex: none; width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: #f4f6f9; color: var(--item, var(--primary)); font-size: 18px;
}
.rp-item-head h2 { flex: 1; margin: 0; color: var(--text); font-size: 15.5px; font-weight: 500; }
/* 指标分节：小标题压得比正文淡，值行沿用通用的 .m-rows */
.rp-vals { margin-top: 10px; }
.rp-vals > label {
  display: block; padding-bottom: 5px; border-bottom: 1px solid #f2f3f5;
  color: var(--muted); font-size: 12px;
}
.rp-vals .m-row { padding: 9px 0; align-items: center; }
.rp-vals .m-row > span { width: auto; white-space: nowrap; }
.rp-vals .m-row > b {
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px;
}
.rp-vals .m-row.abn > b { color: #ed4014; }
.rp-vals .rp-flag { width: 12px; height: 12px; flex: none; display: block; }
.rp-note { margin-top: 11px; }
.rp-note label {
  display: block; margin-bottom: 4px; color: var(--muted); font-size: 12px;
}
.rp-note p { margin: 0; color: var(--sub); font-size: 13.5px; line-height: 1.75; }
.rp-note.advice p { color: var(--text); }
/*
 * 异常项的小结和建议收进一块色底：正常项保持安静，对比本身就是重点。
 * 色跟着判定档走（指导蓝 / 复检橙 / 转诊红），和建议标签、左边线同一套。
 */
.rp-item.abn .rp-read {
  margin-top: 12px; padding: 12px;
  border-radius: 8px; border: 1px solid transparent;
}
.rp-item.lv-attention .rp-read { background: #eaf5ff; border-color: #d4e8fb; }
.rp-item.lv-risk .rp-read { background: #fff4e6; border-color: #ffe0b3; }
.rp-item.lv-high .rp-read { background: #fff1f0; border-color: #ffccc7; }
.rp-item.abn .rp-read .rp-note { margin-top: 0; }
.rp-item.abn .rp-read .rp-note + .rp-note {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed rgba(23, 35, 61, .12);
}
.rp-item.abn .rp-read label {
  display: flex; align-items: center; gap: 4px;
  margin-bottom: 5px; color: var(--lv); font-size: 12px; font-weight: 600;
}
.rp-item.abn .rp-read label .ivu-icon { font-size: 14px; }
.rp-item.abn .rp-read p {
  color: var(--text); font-size: 14.5px; font-weight: 500; line-height: 1.7;
}
.rp-item.abn .rp-read .advice p { font-size: 14.5px; }
.rp-basis {
  margin-top: 11px; padding: 9px 11px; border-radius: 8px; background: #f7f9fc;
  color: var(--muted); font-size: 12px; line-height: 1.7;
}
.rp-basis b { color: var(--sub); font-weight: 500; }
/* 心理项只给分层与建议，数值一律不出现在家长端 */
.rp-locked {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 11px;
  padding: 10px 11px; border-radius: 8px; background: #f7f9fc;
  color: var(--muted); font-size: 12.5px; line-height: 1.7;
}
.rp-locked .ivu-icon { flex: none; margin-top: 2px; color: var(--light); font-size: 15px; }
/* 未检的项目通篇灰掉：这张卡上没有结论，也不该看着像有 */
.rp-item.pending .rp-item-head h2 { color: var(--muted); }
.rp-item.pending .rp-item-head .rp-item-ico { color: var(--light); }

/* 报告尾注：审核信息与免责声明 */
.rp-sign { color: var(--muted); font-size: 12px; line-height: 1.85; }
.rp-sign b { color: var(--sub); font-weight: 500; }
.rp-sign p { margin: 9px 0 0; padding-top: 9px; border-top: 1px solid #f2f3f5; }

/* ---------------- 步骤条 ---------------- */
.m-steps { display: flex; align-items: center; margin-bottom: 16px; }
.m-step { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.m-step .no {
  width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: #e8eaec; color: #fff; font-size: 12px;
}
.m-step.on .no { background: var(--primary); }
.m-step.on b { color: var(--text); }
.m-step.ok .no { background: var(--success); }
.m-step b { font-weight: 400; }
.m-step-line { flex: 1; height: 1px; margin: 0 10px; background: #dcdee2; }

/* ---------------- 说明块 ---------------- */
.m-notice {
  display: flex; gap: 9px; padding: 12px 13px; border-radius: 8px; font-size: 13px; line-height: 1.7;
  border: 1px solid #d5e8fb; background: #f2f8ff; color: var(--sub); margin-bottom: 12px;
}
.m-notice .ivu-icon { flex: none; margin-top: 3px; font-size: 16px; color: var(--primary); }
.m-notice b { color: var(--text); font-weight: 500; }
.m-notice.warn { border-color: #ffe0b2; background: #fff9f0; }
.m-notice.warn .ivu-icon { color: var(--warn); }
.m-notice.bad { border-color: #ffcdc7; background: #fff5f4; }
.m-notice.bad .ivu-icon { color: var(--danger); }
.m-notice.ok { border-color: #c8ecd8; background: #f2fbf6; }
.m-notice.ok .ivu-icon { color: var(--success); }

/* 原型模拟提示：短信验证码、演示数据一律标出来，避免被当成真实规则 */
.m-demo { border: 1px dashed #b7d8f7; border-radius: 8px; background: #f8fcff; padding: 12px 13px; margin-bottom: 12px; }
.m-demo-title { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; color: var(--muted); font-size: 12.5px; }
.m-demo-title .ivu-icon { color: var(--primary); font-size: 14px; }
.m-demo-list { display: grid; gap: 8px; }
.m-demo-list button {
  display: block; width: 100%; padding: 9px 11px; border: 1px solid var(--border);
  border-radius: 6px; background: #fff; text-align: left; cursor: pointer;
}
.m-demo-list button:active { border-color: var(--primary); background: #f2f8ff; }
.m-demo-list b { display: block; color: var(--text); font-size: 13.5px; font-weight: 500; }
.m-demo-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }

/* ---------------- 信息行 ---------------- */
.m-rows { display: grid; }
.m-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid #f2f3f5; font-size: 14px;
}
.m-row:last-child { border-bottom: 0; }
.m-row > span { flex: none; width: 92px; color: var(--muted); font-size: 13.5px; }
/* 审计日志左列是完整时间戳，比字段名宽，单独放宽避免折行 */
.m-rows.log .m-row > span { width: 116px; white-space: nowrap; }
.m-rows.log .m-row > b small {
  display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 400;
}
.m-row > b { flex: 1; color: var(--text); font-weight: 500; text-align: right; word-break: break-all; }

/* ---------------- 空状态 ---------------- */
.m-empty { padding: 40px 22px; text-align: center; }
.m-empty .m-empty-icon {
  width: 72px; height: 72px; margin: 0 auto 15px; display: grid; place-items: center;
  border-radius: 50%; background: #eaf5ff; color: var(--primary); font-size: 36px;
}
.m-empty b { display: block; color: var(--text); font-size: 16px; font-weight: 500; }
.m-empty p { margin: 8px auto 18px; max-width: 290px; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* ---------------- 底部标签栏 ---------------- */
.m-tabbar {
  flex: none; display: flex; padding-bottom: var(--safe-b);
  background: #fff; border-top: 1px solid var(--border);
}
.m-tabbar button {
  position: relative; flex: 1; padding: 6px 0 7px; border: 0; background: none;
  color: var(--muted); font-size: 11px; cursor: pointer;
}
.m-tabbar button .ivu-icon { display: block; margin-bottom: 1px; font-size: 23px; }
.m-tabbar button.on { color: var(--primary); }
.m-tabbar .m-dot { border-color: #fff; top: 2px; right: 50%; margin-right: -20px; }

/* ---------------- 底部动作条 ---------------- */
.m-actionbar {
  flex: none; display: flex; gap: 10px; padding: 10px 14px calc(10px + var(--safe-b));
  background: #fff; border-top: 1px solid var(--border);
}
.m-actionbar .m-btn { flex: 1; }

/* ---------------- 弹出层 ---------------- */
.m-mask { position: absolute; inset: 0; z-index: 50; display: none; background: rgba(23, 35, 61, .45); }
.m-mask.show { display: block; }
.m-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86%; overflow: auto;
  padding: 0 16px calc(18px + var(--safe-b)); background: #fff; border-radius: 14px 14px 0 0;
}
.m-sheet-head {
  position: sticky; top: 0; display: flex; align-items: center; height: 52px;
  background: #fff; border-bottom: 1px solid var(--border); margin-bottom: 16px;
}
.m-sheet-head h2 { margin: 0; color: var(--text); font-size: 16px; font-weight: 500; }
.m-sheet-head button {
  margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 24px;
  line-height: 1; cursor: pointer;
}
.m-dialog {
  position: absolute; left: 50%; top: 44%; width: 270px;
  transform: translate(-50%, -50%);
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(23, 35, 61, .22);
}
.m-dialog p {
  margin: 0; padding: 28px 20px 22px; color: var(--text);
  font-size: 16px; font-weight: 500; text-align: center; line-height: 1.5;
}
.m-dialog footer { display: flex; border-top: 1px solid #eceef2; }
.m-dialog footer button {
  flex: 1; height: 46px; border: 0; background: #fff; color: var(--sub);
  font-size: 16px; cursor: pointer;
}
.m-dialog footer button + button {
  border-left: 1px solid #eceef2; color: var(--primary); font-weight: 500;
}

/* ---------------- 轻提示 ---------------- */
.m-toast {
  position: absolute; left: 50%; bottom: 96px; z-index: 70; max-width: 82%;
  padding: 10px 16px; border-radius: 8px; color: #fff; background: rgba(23, 35, 61, .93);
  font-size: 13.5px; line-height: 1.6; text-align: center;
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none; transition: all .2s;
}
.m-toast.show { opacity: 1; transform: translate(-50%, 0); }
.m-toast.ok { background: rgba(25, 190, 107, .96); }
.m-toast.err { background: rgba(237, 64, 20, .96); }

/* ---------------- 页脚说明 ---------------- */
.m-foot { padding: 16px 14px 8px; color: var(--light); font-size: 12px; text-align: center; line-height: 1.8; }

/* ---------------- 宽屏预览：收进 390×844 手机框 ---------------- */
@media (min-width: 768px) {
  /* 整页底只铺白色，装饰色和插画都收在 H5 的 header / main 里 */
  body {
    display: flex; align-items: center; justify-content: center;
    background: #fff;
  }
  .m-app {
    position: relative; z-index: 1;
    width: 390px; height: 844px; max-height: calc(100vh - 28px); max-width: none;
    border-radius: 34px; box-shadow: 0 20px 54px rgba(16, 44, 92, .28);
  }
}

/*
 * 保存报告 = 把当前这份手机报告打成 PDF。
 * 拆掉手机框和滚动容器，否则打印出来只有一屏、下面全裁掉；
 * 顶栏、场次 chips、底栏是操作壳，不进文件。色块要 print-color-adjust，
 * 否则封面渐变、异常解读底、红点都会被打成灰白。
 */
@media print {
  @page { size: A4; margin: 10mm 12mm; }
  html, body {
    height: auto !important; overflow: visible !important;
    background: #fff !important;
  }
  body { display: block !important; }
  .m-top, .m-chips, .m-actionbar, .m-toast, .m-mask { display: none !important; }
  .m-app {
    width: auto !important; height: auto !important; max-width: none !important;
    max-height: none !important; margin: 0 !important;
    border-radius: 0 !important; box-shadow: none !important;
    overflow: visible !important; background: #fff !important;
  }
  .m-main {
    overflow: visible !important; height: auto !important; min-height: 0 !important;
    padding: 0 !important;
  }
  .m-card, .rp-cover, .rp-item { break-inside: avoid; page-break-inside: avoid; }
  .rp-cover, .rp-read, .rp-sum button, .m-tag, .rp-dot, .rp-flag {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
