/* 全流程智能养老照护平台 · 共享样式
   适配多角色端口；老人端字号略大、机构端重视密度。 */
:root {
  --ec-primary: #1987b4;       /* 参考悦盛平台的蓝色管理系统风格 */
  --ec-primary-dark: #175b89;
  --ec-accent: #34bfa3;
  --ec-success: #34bfa3;
  --ec-warning: #f0aa2c;
  --ec-danger: #e64242;
  --ec-bg: #f2f6fc;
  --ec-panel: #ffffff;
  --ec-border: #dfe6ec;
  --ec-text: #303133;
  --ec-text-soft: #606266;
  --ec-shadow: 0 2px 8px rgba(23, 91, 137, 0.08);
  --ec-radius: 6px;
  --ec-aside-width: clamp(260px, 19vw, 340px);
  --ec-aside-min-width: 252px;
  --ec-aside-max-width: min(520px, 46vw);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; width: 100%; min-width: 100%; height: 100%; }
body {
  font-family: 'HarmonyOS Sans SC', 'MiSans', 'Alibaba PuHuiTi', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--ec-bg);
  color: var(--ec-text);
  font-size: 15px;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img, svg, video, canvas { max-width: 100%; }
.ec-ellipsis { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-break-anywhere { overflow-wrap: anywhere; word-break: break-word; }
.ec-line-clamp-2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.ec-main,
.ec-content,
.ec-card,
.ec-filter-bar,
.ec-drawer,
.ec-drawer .drawer-body,
.ec-grid > *,
.ec-form-grid > *,
.ec-filter-bar .filter-grid > *,
.ec-hub-card,
.ec-metric,
.ec-autocomplete,
.ec-cselect { min-width: 0; max-width: 100%; }
.ec-link { color: var(--ec-primary); cursor: pointer; font-weight: 600; }
.ec-link:hover { color: var(--ec-primary-dark); text-decoration: underline; }
.ec-action,
.ec-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--ec-primary); background: #fff; color: var(--ec-primary);
  font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer;
  max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 0 1 auto;
}
.ec-content button,
.ec-drawer button,
.ec-topbar button,
.login-card button,
.ec-confirm-card button {
  min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-action.primary,
.ec-btn.primary { background: var(--ec-primary); color: #fff; }
.ec-action:hover,
.ec-btn:hover { box-shadow: 0 2px 8px rgba(23,91,137,0.12); }
.ec-btn-sm { min-height: 32px; padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.ec-btn-sm-danger { border-color: var(--ec-danger); color: var(--ec-danger); background: #fff; }

/* === 整体壳：左侧菜单 + 右侧内容 === */
.ec-shell {
  display: flex; min-height: 100vh;
  width: var(--ec-viewport-width, 100vw);
  min-width: var(--ec-viewport-width, 100vw);
  max-width: none;
  /* 用 clip 而非 hidden：同样裁掉横向溢出，但不会让 .ec-shell 变成滚动容器，
     从而保证子级 .ec-aside 的 position:sticky 能相对视口生效。clip 不被旧浏览器
     识别时回退到 hidden（侧边栏退化为随页滚动，但不会出横向滚动条）。 */
  overflow-x: hidden;
  overflow-x: clip;
}
.ec-shell-no-aside .ec-main { width: 100%; }
.ec-shell-no-aside .ec-topbar { position: sticky; top: 0; z-index: 30; }
.ec-aside {
  width: var(--ec-aside-width);
  min-width: var(--ec-aside-min-width);
  max-width: var(--ec-aside-max-width);
  flex: 0 0 var(--ec-aside-width);
  background: #fff;
  color: var(--ec-text);
  border-right: 1px solid #cfd8e3;
  display: flex; flex-direction: column;
  /* 侧边栏固定为视口高度并吸顶：菜单项再多也只在侧边栏内部滚动，
     不再需要把整页向下滚动才能看到底部模块。 */
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  height: calc(var(--ec-vh, 1vh) * 100);
  max-height: 100vh;
}
.ec-aside .ec-logo {
  padding: 16px 16px 15px;
  display: flex; align-items: center; gap: 12px;
  color: var(--ec-primary-dark);
  border-bottom: 1px solid #dfe4ed;
}
.ec-brand-mark {
  width: 48px; height: 48px; border-radius: 18px;
  position: relative; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(145deg, #ffffff, #edf6fb);
  border: 1px solid rgba(23, 91, 137, 0.16);
  box-shadow: 0 12px 24px rgba(23, 91, 137, 0.12), inset 0 1px 0 rgba(255,255,255,0.9);
}
.ec-brand-mark img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: contain; object-position: center;
  padding: 4px;
}
.ec-brand-copy { min-width: 0; line-height: 1.1; }
.ec-brand-name {
  font-size: 27px; font-weight: 900; letter-spacing: 0.08em;
  color: #0b3764;
  font-family: 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Microsoft YaHei', serif;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-brand-sub {
  margin-top: 6px; font-size: 10px; color: #6f7d8e;
  letter-spacing: 0.08em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ec-aside .ec-role-tag { padding: 10px 18px; font-size: 13px; color: #606266; border-bottom: 1px solid #ebeef5; }
.ec-aside .ec-role-tag .badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: #eef7fb; color: var(--ec-primary-dark); margin-left: 4px;
}
.ec-menu { list-style: none; margin: 0; padding: 8px 0; flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
/* 侧边栏菜单的滚动条：细、克制、可见，配合侧边栏独立滚动 */
.ec-menu { scrollbar-width: thin; scrollbar-color: #c2d2de transparent; }
.ec-menu::-webkit-scrollbar { width: 8px; }
.ec-menu::-webkit-scrollbar-track { background: transparent; }
.ec-menu::-webkit-scrollbar-thumb { background: #c2d2de; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.ec-menu::-webkit-scrollbar-thumb:hover { background: #a6bccb; background-clip: padding-box; }
.ec-menu li {
  padding: 11px 18px;
  cursor: pointer;
  display: flex; align-items: flex-start; gap: 8px;
  border-left: 3px solid transparent;
  color: #303133;
  transition: background 0.15s, color 0.15s;
  min-width: 0; overflow: visible; white-space: normal;
  line-height: 1.38;
}
.ec-menu li:hover { background: #f5f9fc; color: var(--ec-primary-dark); }
.ec-menu li.active {
  background: #eef7fb;
  border-left-color: var(--ec-primary);
  color: var(--ec-primary-dark);
  font-weight: 600;
}
.ec-menu li .icon { width: 28px; text-align: center; color: #909399; font-size: 12px; font-family: Georgia, 'Times New Roman', serif; flex-shrink: 0; }
.ec-menu li .label { flex: 1; min-width: 0; overflow: visible; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.ec-menu li.active .icon { color: var(--ec-primary); }
.ec-aside-resizer {
  position: absolute;
  top: 0; right: -6px; bottom: 0;
  width: 12px;
  cursor: ew-resize;
  z-index: 20;
  touch-action: none;
  outline: none;
}
.ec-aside-resizer::before {
  content: "";
  position: absolute;
  top: 90px; bottom: 90px; left: 5px;
  width: 2px; border-radius: 999px;
  background: transparent;
  transition: background 0.15s, box-shadow 0.15s;
}
.ec-aside:hover .ec-aside-resizer::before,
.ec-aside-resizer:focus-visible::before,
body.ec-aside-resizing .ec-aside-resizer::before {
  background: rgba(25, 135, 180, 0.34);
  box-shadow: 0 0 0 3px rgba(25, 135, 180, 0.08);
}
body.ec-aside-resizing,
body.ec-aside-resizing * {
  cursor: ew-resize !important;
  user-select: none;
}

/* 主区 */
.ec-main { flex: 1 1 auto; width: 0; display: flex; flex-direction: column; min-width: 0; max-width: none; }
.ec-topbar {
  height: 54px;
  background: var(--ec-panel);
  border-bottom: 1px solid var(--ec-border);
  display: flex; align-items: center; padding: 0 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.ec-topbar .crumbs { color: var(--ec-text-soft); font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-topbar .crumbs strong { color: var(--ec-text); }
.ec-topbar .toolbar { display: flex; gap: 12px; align-items: center; font-size: 14px; min-width: 0; }
.ec-top-note { font-size: 13px; color: var(--ec-text-soft); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-user { display: flex; align-items: center; gap: 8px; color: var(--ec-text-soft); min-width: 0; }
.ec-user .avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: #eef7fb; color: var(--ec-primary-dark); border: 1px solid #c7daf1;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}
.ec-account-card {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px 6px 6px; border: 1px solid #d5e3ee; border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #f3f9fd); box-shadow: 0 8px 18px rgba(23, 91, 137, 0.08);
  min-width: 0; max-width: 100%;
}
.ec-account-card .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-primary-dark), var(--ec-accent)); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800;
}
.ec-account-card .meta { min-width: 0; line-height: 1.2; }
.ec-account-card .name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ec-text); font-weight: 700; }
.ec-account-card .sub { font-size: 11px; color: var(--ec-text-soft); }
.ec-logout-btn {
  border: none; border-left: 1px solid #d5e3ee; background: transparent; color: var(--ec-primary-dark);
  padding: 5px 4px 5px 10px; cursor: pointer; font-weight: 700;
}
.ec-logout-btn:hover { color: var(--ec-danger); }
.ec-content { width: 100%; padding: 20px 24px; flex: 1; min-width: 0; max-width: none; overflow-x: hidden; }
.ec-module-loading { min-height: calc(100vh - 96px); display: grid; place-items: center; padding: 24px; }
.ec-module-loading-card {
  width: auto; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
}
.ec-module-loading-ring {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%;
  background: conic-gradient(from 30deg, rgba(25,135,180,0) 0deg, rgba(25,135,180,.18) 95deg, var(--ec-accent) 210deg, var(--ec-primary) 360deg);
  position: relative;
  box-shadow: 0 8px 20px rgba(25, 135, 180, .14);
  animation: ec-load-spin .72s linear infinite;
}
.ec-module-loading-ring::after {
  content: ""; position: absolute; inset: 4px; border-radius: inherit;
  background: var(--ec-bg);
  box-shadow: inset 0 0 0 1px rgba(25, 135, 180, .08);
}
.ec-module-loading-copy { min-width: 0; }
.ec-module-loading-copy b { display: block; color: var(--ec-primary-dark); font-size: 16px; font-weight: 800; line-height: 1.35; letter-spacing: .02em; }
@keyframes ec-load-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .ec-module-loading-ring { animation: none; }
}

/* 卡片 */
.ec-card {
  background: var(--ec-panel);
  border-radius: var(--ec-radius);
  box-shadow: var(--ec-shadow);
  border: 1px solid var(--ec-border);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.ec-card .ec-card-title {
  font-size: 17px; font-weight: 700; color: var(--ec-primary-dark);
  margin-bottom: 14px; display: flex; align-items: center; gap: 8px;
  padding-bottom: 10px; border-bottom: 1px solid #ebeef5;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-card .ec-card-title .ec-tag-soft {
  font-size: 13px; font-weight: 400;
  color: var(--ec-text-soft); padding: 2px 8px;
  background: var(--ec-bg); border-radius: 6px;
  flex: 0 1 auto; min-width: 0; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-card .ec-card-extra { float: right; font-size: 14px; color: var(--ec-primary); cursor: pointer; }
/* 页面内 view 切换 / 多步流程的"上一步"按钮：刻意区别于顶部全局返回按钮。
   - 颜色更素、尺寸更小，避免和 .ec-topbar .back-btn 视觉混淆。
   - 仅用于真正的同页 view 切换，不要替代浏览器返回。 */
.ec-step-back {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 6px;
  border: 1px dashed #c7d6e0; background: #f5f9fc;
  color: var(--ec-text-soft); font-size: 12px; font-weight: 500;
  cursor: pointer; line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ec-step-back:hover { background: #eef7fb; color: var(--ec-primary-dark); border-color: var(--ec-primary); }
.ec-step-back-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; flex-wrap: wrap;
}

/* 页面内长内容统一放进固定窗口滚动，避免展开后把整页无限拉长。 */
.ec-scroll-window {
  max-height: min(68vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.ec-scroll-window.padded { padding-right: 4px; }
.ec-inline-scroll {
  max-height: min(46vh, 420px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

/* 指标卡 */
.ec-metric-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 12px; margin-bottom: 16px; }
.ec-metric {
  background: var(--ec-panel); border-radius: var(--ec-radius);
  padding: 14px 18px; box-shadow: var(--ec-shadow); border: 1px solid var(--ec-border); position: relative; overflow: hidden;
}
.ec-metric .label { font-size: 13px; color: var(--ec-text-soft); margin-bottom: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-metric .value { font-size: 26px; font-weight: 700; color: var(--ec-text); letter-spacing: 0.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-metric .suffix { font-size: 13px; color: var(--ec-text-soft); margin-left: 4px; }
.ec-metric .trend { font-size: 12px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-metric .trend.up { color: var(--ec-danger); }
.ec-metric .trend.down { color: var(--ec-success); }
.ec-metric.primary { border-left: 4px solid var(--ec-primary); }
.ec-metric.warning { border-left: 4px solid var(--ec-warning); }
.ec-metric.danger { border-left: 4px solid var(--ec-danger); }
.ec-metric.success { border-left: 4px solid var(--ec-success); }
.ec-profile-metrics { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
body.elder-friendly .ec-profile-metrics .bp-metric .value {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px;
  font-size: 32px; line-height: 1.08; letter-spacing: -0.03em;
}
body.elder-friendly .ec-profile-metrics .bp-metric .suffix { margin-left: 0; font-size: 13px; white-space: nowrap; }
body.elder-friendly .ec-profile-metrics .trend { margin-top: 10px; font-size: 13px; color: #566272; }
.metric-status {
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: 8px; padding: 3px 10px; border-radius: 999px;
  font-size: 14px; font-weight: 800; line-height: 1.2;
}
.metric-status.is-high {
  color: #a83225; background: #ffe6df; border: 1px solid rgba(195,69,56,.32);
  box-shadow: 0 6px 14px rgba(195,69,56,.12);
}
.metric-status.is-normal {
  color: #1f8a6f; background: #e3f5ee; border: 1px solid rgba(31,138,111,.22);
}

/* 风险等级 chip */
.ec-risk { display: inline-block; max-width: 100%; padding: 3px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.ec-risk.low { background: #e3f5ee; color: #1f8a6f; }
.ec-risk.medium { background: #fff5e0; color: #b07a13; }
.ec-risk.high { background: #ffe6e1; color: #c34538; }
.ec-risk.crisis { background: #fcd5d0; color: #8a2920; }
.ec-pill { display: inline-block; max-width: 100%; padding: 3px 10px; font-size: 13px; border-radius: 999px; background: var(--ec-bg); color: var(--ec-text-soft); margin-right: 4px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.ec-pill.primary { background: rgba(25,135,180,0.12); color: var(--ec-primary-dark); }
.ec-pill.success { background: rgba(31,138,111,0.12); color: #1f765f; }
.ec-pill.danger { background: rgba(211,80,69,0.12); color: #a5362d; }
.ec-pill.warn { background: rgba(226,161,58,0.15); color: #b45309; }
.ec-help-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; min-height: 22px; padding: 0;
  border: 1px solid rgba(25,135,180,0.34); border-radius: 50%;
  background: #fff; color: var(--ec-primary-dark);
  font-size: 13px; font-weight: 800; line-height: 1; cursor: pointer;
  vertical-align: middle; margin-left: 4px;
}
.ec-help-dot:hover { background: #eef7fb; border-color: var(--ec-primary); box-shadow: 0 2px 8px rgba(23,91,137,0.12); }
.ec-help-dot.active { background: var(--ec-primary); border-color: var(--ec-primary); color: #fff; box-shadow: 0 6px 16px rgba(25,135,180,.22); }
.ec-help-dot:focus-visible { outline: 2px solid rgba(25,135,180,0.25); outline-offset: 2px; }
.ec-context-help-dot { flex: 0 0 auto; margin-left: 4px; }
.ec-card .ec-card-title .ec-context-help-dot,
.block-title .ec-context-help-dot,
.cf-toggle .ec-context-help-dot { width: 20px; height: 20px; min-height: 20px; font-size: 12px; }
.ec-context-help-inline {
  display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px;
  color: var(--ec-text-soft); font-size: 12px; font-weight: 700;
}
.ec-context-help-inline .ec-context-help-dot { margin-left: 0; width: 20px; height: 20px; min-height: 20px; font-size: 12px; }
.ec-help-source-hidden { display: none !important; }
.ec-context-help-pop {
  position: fixed; z-index: 10000;
  background: #fff; border: 1px solid #d9e8ef; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(15,53,84,.20);
  color: var(--ec-text); overflow: visible;
}
.ec-context-help-pop::before {
  content: ""; position: absolute; left: var(--ec-help-arrow-left, 28px);
  width: 12px; height: 12px; background: #fff;
  border-left: 1px solid #d9e8ef; border-top: 1px solid #d9e8ef;
  transform: translateX(-50%) rotate(45deg);
}
.ec-context-help-pop[data-place="bottom"]::before { top: -7px; }
.ec-context-help-pop[data-place="top"]::before {
  bottom: -7px; transform: translateX(-50%) rotate(225deg);
}
.ec-context-help-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px 10px; border-bottom: 1px solid #eef3f7;
  color: var(--ec-primary-dark); font-size: 14px;
}
.ec-context-help-close {
  width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0;
  border-radius: 50%; background: #eef6f8; color: #4f6575;
  font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer;
}
.ec-context-help-close:hover { background: #dfeef4; color: var(--ec-primary-dark); }
.ec-context-help { max-height: min(46vh, 360px); overflow: auto; padding: 12px 14px 14px; color: var(--ec-text); line-height: 1.85; font-size: 14px; }
.ec-context-help code {
  padding: 2px 6px; border-radius: 5px; background: #f3f7fb;
  border: 1px solid #dbe8f1; color: var(--ec-primary-dark); font-size: 12px;
}
.ec-context-help a { color: var(--ec-primary); font-weight: 700; text-decoration: underline; }
.ec-severity-help { color: var(--ec-text); line-height: 1.75; }
.ec-severity-help .severity-current {
  padding: 12px 14px; border-radius: 10px;
  background: linear-gradient(135deg, #eef7fb, #fffaf0);
  border: 1px solid #d9e8ef; color: var(--ec-primary-dark); font-weight: 700;
}
.ec-severity-help .severity-map { display: grid; gap: 10px; margin: 14px 0; }
.ec-severity-help .severity-row {
  border: 1px solid var(--ec-border); border-left: 5px solid var(--sev-color);
  border-radius: 10px; padding: 12px 14px; background: #fff;
}
.ec-severity-help .severity-row b { color: var(--sev-color); font-size: 15px; }
.ec-severity-help .severity-row div { margin-top: 4px; color: var(--ec-text-soft); font-size: 13px; }
.ec-severity-help .severity-note {
  padding: 10px 12px; border-radius: 8px; background: #fffaf0;
  color: #7a5522; border: 1px dashed rgba(240,170,44,0.5); font-size: 13px;
}
.ec-detail-hero {
  border-left: 4px solid var(--ec-primary);
  background: linear-gradient(135deg, #ffffff 0%, #eef7fb 100%);
}

/* 表格简单覆盖 */
.ec-table { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 14px; }
.ec-table th, .ec-table td {
  text-align: center; padding: 10px 12px; border: 1px solid var(--ec-border);
  min-width: 0; max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: top;
}
.ec-table th { color: var(--ec-primary-dark); font-weight: 600; background: #eef3f8; }
.ec-table tr:hover { background: #f9fbfd; }
table th,
table td {
  text-align: center !important;
}
table th :where(.ec-th-filter-wrap, .th-inner) {
  justify-content: center !important;
}
table th :where(.ec-th-filter-label, .th-label) {
  text-align: center !important;
}
table th .th-label {
  flex: 0 1 auto !important;
}
.ec-table td > :where(div, p),
.ec-table th > :where(div, p) {
  min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-table td > :where(span, b, strong, code, small, a),
.ec-table th > :where(span, b, strong, code, small, a) {
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  vertical-align: bottom;
}
.ec-table .ec-wrap-cell,
.ec-table .wrap,
.ec-table .reason {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* === 表头列名：绝不截断/压缩；列宽不够时自动换行完整显示（全站统一） === */
.ec-table th,
.ec-table th > div, .ec-table th > p,
.ec-table th > span, .ec-table th > b, .ec-table th > strong, .ec-table th > small, .ec-table th > a,
.ec-table th .th-label,
.ec-table th .th-inner,
.ec-table th .ec-th-filter-label {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}
.ec-table th .ec-th-filter-wrap { flex-wrap: wrap; max-width: 100%; }
/* 非 ec-table 的普通表格表头同样不截断列名 */
table thead th,
table thead th .ec-th-filter-label {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}

/* === 大字号（老人端 / 家属端）：适老化基础 === */
body.elder-friendly { font-size: 18px; line-height: 1.75; }
body.elder-friendly .ec-card { padding: 22px 24px; }
body.elder-friendly .ec-card .ec-card-title { font-size: 21px; }
body.elder-friendly .ec-table { font-size: 16px; }
body.elder-friendly .ec-table th, body.elder-friendly .ec-table td { padding: 12px 14px; }
body.elder-friendly .ec-metric { padding: 18px 22px; }
body.elder-friendly .ec-metric .label { font-size: 15px; }
body.elder-friendly .ec-metric .value { font-size: 36px; }
body.elder-friendly .ec-metric .suffix { font-size: 15px; }
body.elder-friendly .ec-pill { font-size: 14px; padding: 4px 12px; }
body.elder-friendly .ec-help-dot { width: 26px; height: 26px; min-height: 26px; padding: 0 !important; border-radius: 50% !important; font-size: 14px !important; }
/* 老人端的所有按钮（含原生 button、链接型 a 与 ec-action）都统一成大点击区 */
body.elder-friendly button, body.elder-friendly .el-button, body.elder-friendly .ec-action {
  font-size: 17px !important;
  padding: 10px 20px !important;
  min-height: 42px;
  border-radius: 8px !important;
}
body.elder-friendly a.ec-link { font-size: 17px; }
body.elder-friendly input, body.elder-friendly select, body.elder-friendly textarea {
  font-size: 16px;
  padding: 10px 14px !important;
  min-height: 42px;
}
body.elder-friendly .ec-banner-info, body.elder-friendly .ec-banner-warn, body.elder-friendly .ec-banner-disclaimer {
  font-size: 15px;
  padding: 14px 18px;
  line-height: 1.75;
}
body.elder-friendly .ec-card-extra { font-size: 15px; }

/* 趋势图容器 */
.ec-chart { height: 320px; width: 100%; }
.ec-chart-sm { height: 220px; }
.ec-chart-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-chart-grid.long-series { grid-template-columns: 1fr; }
.ec-chart-grid.long-series .ec-chart { min-height: 340px; }

/* 空态 */
.ec-empty { text-align: center; padding: 36px 0; color: var(--ec-text-soft); font-size: 14px; }
.ec-empty .ec-empty-tip { font-size: 13px; opacity: 0.7; margin-top: 6px; }

/* 警示 */
.ec-banner-warn {
  background: #fffaf0; border: 1px dashed var(--ec-warning); padding: 10px 14px;
  border-radius: 8px; color: #8a5a13; font-size: 14px; margin-bottom: 14px;
}
.ec-banner-info {
  background: #eef6f8; border-left: 4px solid var(--ec-primary); padding: 10px 14px;
  border-radius: 6px; color: #2b5664; font-size: 14px; margin-bottom: 14px;
}
.ec-banner-disclaimer {
  background: #fef6f6; border: 1px dashed var(--ec-danger);
  padding: 10px 14px; border-radius: 8px; color: #76382f; font-size: 14px; margin-top: 14px;
}

/* 网格布局简化 */
.ec-grid { display: grid; gap: 16px; }
.ec-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ec-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .ec-grid-3, .ec-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 移动端规则统一收敛至 mobile.css (v2) */

/* 登录页 */
.login-bg {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(210,239,255,0.95) 0%, rgba(242,246,252,0.98) 58%, #ffffff 100%),
    repeating-linear-gradient(90deg, rgba(25,135,180,0.08) 0, rgba(25,135,180,0.08) 1px, transparent 1px, transparent 42px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card { background: #fff; border-radius: 8px; border: 1px solid #c7daf1; box-shadow: 0 12px 32px rgba(23,91,137,0.14); padding: 32px; width: 100%; max-width: 440px; }
.login-card h1 { font-size: 23px; margin: 0 0 6px; color: var(--ec-primary-dark); }
.login-card .sub { color: var(--ec-text-soft); font-size: 13px; margin-bottom: 22px; }
.login-brand { display:flex; align-items:center; gap:12px; margin-bottom:8px; }
.login-brand .ec-brand-copy { display:block; flex:1; min-width:0; line-height:1.1; }
.login-brand .ec-brand-mark {
  width:82px; height:72px; border-radius:24px;
  background:linear-gradient(145deg,#ffffff,#edf6fb);
  border:1px solid rgba(23,91,137,.16);
  box-shadow:0 12px 24px rgba(23,91,137,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
.login-brand .ec-brand-mark img { inset:0; width:100%; height:100%; padding:0; object-fit:contain; }
.login-brand .ec-brand-platform-cn {
  color:#26384a;
  font-family:'Songti SC','STSong','Noto Serif CJK SC','Microsoft YaHei',serif;
  font-size:18px; font-weight:800; line-height:1.15;
  letter-spacing:.14em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.login-brand .ec-brand-platform-en {
  margin-top:7px; color:#0b3764;
  font-family:'Optima','Avenir Next','Helvetica Neue',sans-serif;
  font-size:13px; font-weight:500; line-height:1;
  letter-spacing:.34em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.login-card label { display: block; font-size: 13px; margin-bottom: 6px; color: var(--ec-text-soft); }
.login-card input { width: 100%; padding: 12px; border: 1px solid var(--ec-border); border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.login-card input:focus { outline: none; border-color: var(--ec-primary); }
.login-card button { width: 100%; padding: 12px; background: var(--ec-primary); color: #fff; border: none; border-radius: 10px; font-size: 15px; cursor: pointer; }
.login-card button:hover { background: var(--ec-primary-dark); }
.login-card .demo-list { margin-top: 18px; padding: 12px; background: var(--ec-bg); border-radius: 10px; font-size: 12px; color: var(--ec-text-soft); }
.login-card .demo-list .role { display: inline-block; padding: 2px 8px; background: #fff; border: 1px solid var(--ec-border); border-radius: 6px; margin: 3px; cursor: pointer; }
.login-card .demo-list .role:hover { background: var(--ec-primary); color: #fff; border-color: var(--ec-primary); }

/* H3-P0：登录页左右双栏（左品牌+表单 360px / 右演示账号 grid 自适应）
   设计原则：充分利用横向空间，演示账号区采用 grid 多列布局，避免单列纵向无尽堆叠 */
.login-card.login-grid {
  max-width: 1080px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: stretch;
}
.login-card.login-grid .login-left {
  display: flex; flex-direction: column;
  padding-right: 28px;
  border-right: 1px solid #e6ecf2;
}
.login-card.login-grid .login-left .login-hint {
  margin-top: auto; padding-top: 18px;
  font-size: 11px; line-height: 1.6; opacity: 0.8;
  color: var(--ec-text-soft);
}
.login-card.login-grid .login-right { display: flex; flex-direction: column; gap: 12px; }
.login-card.login-grid .login-right .demo-title {
  font-weight: 600; color: #1f2937; font-size: 14px;
}
.login-card.login-grid .login-right .demo-title .demo-title-hint {
  font-weight: 400; color: var(--ec-text-soft); font-size: 12px; margin-left: 4px;
}
.login-card.login-grid .login-right .demo-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-content: start;
}
.login-card.login-grid .login-right .demo-group {
  background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 100%);
  border: 1px solid #e3edf5;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.login-card.login-grid .login-right .demo-group-title {
  font-size: 13px; color: var(--ec-primary-dark); font-weight: 800;
  letter-spacing: 0.3px;
}
.login-card.login-grid .login-right .demo-group-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.login-card.login-grid .login-right .demo-group-chips .role {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 12px; margin: 0;
  background: #fff; border: 1px solid #dde7ef;
  border-radius: 10px; cursor: pointer; text-align: left;
  font-size: 13px; color: var(--ec-text);
  flex: 1 1 200px; max-width: 320px; min-width: 0;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.login-card.login-grid .login-right .demo-group-chips .role .avatar {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-primary), var(--ec-accent));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(25, 135, 180, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.login-card.login-grid .login-right .demo-group-chips .role .meta {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column;
}
.login-card.login-grid .login-right .demo-group-chips .role .meta .u {
  font-weight: 700; color: #0f3554; font-size: 13px; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.login-card.login-grid .login-right .demo-group-chips .role .meta .n {
  font-size: 11px; color: #5d6b7c; margin-top: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.login-card.login-grid .login-right .demo-group-chips .role:hover {
  border-color: var(--ec-primary);
  background: #eef7fb;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(25, 135, 180, .14);
}
.login-card.login-grid .login-right .demo-group-chips .role:hover .avatar {
  box-shadow: 0 4px 10px rgba(25, 135, 180, .35), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.login-card.login-grid .login-right .demo-group-chips .role:active {
  transform: translateY(0); box-shadow: none;
}
/* 端口角色头像配色，按 username 前缀区分 */
.login-card.login-grid .login-right .demo-group-chips .role[data-role-key="admin"] .avatar { background: linear-gradient(135deg, #d2603a, #f0aa2c); box-shadow: 0 2px 6px rgba(210, 96, 58, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
.login-card.login-grid .login-right .demo-group-chips .role[data-role-key="research"] .avatar { background: linear-gradient(135deg, #5b6dca, #9a60b4); box-shadow: 0 2px 6px rgba(91, 109, 202, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
.login-card.login-grid .login-right .demo-group-chips .role[data-role-key="collector"] .avatar { background: linear-gradient(135deg, #0f766e, #22c7a9); box-shadow: 0 2px 6px rgba(15, 118, 110, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
.login-card.login-grid .login-right .demo-group-chips .role[data-role-key="inst"] .avatar { background: linear-gradient(135deg, #1987b4, #34bfa3); }
.login-card.login-grid .login-right .demo-group-chips .role[data-role-key="com"] .avatar { background: linear-gradient(135deg, #39a26f, #88c76e); box-shadow: 0 2px 6px rgba(57, 162, 111, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
.login-card.login-grid .login-right .demo-group-chips .role[data-role-key="train"] .avatar { background: linear-gradient(135deg, #e2a13a, #f3c453); box-shadow: 0 2px 6px rgba(226, 161, 58, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
.login-card.login-grid .login-right .demo-group-chips .role[data-role-key="cg"] .avatar { background: linear-gradient(135deg, #4f9fdb, #6db8d6); box-shadow: 0 2px 6px rgba(79, 159, 219, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
.login-card.login-grid .login-right .demo-group-chips .role[data-role-key="elder"] .avatar { background: linear-gradient(135deg, #d96988, #ff7f50); box-shadow: 0 2px 6px rgba(217, 105, 136, .25), inset 0 1px 0 rgba(255, 255, 255, .35); }
@media (max-width: 960px) {
  .login-card.login-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    padding: 28px 24px;
    gap: 18px;
  }
  .login-card.login-grid .login-left {
    border-right: none; padding-right: 0;
    border-bottom: 1px solid #e6ecf2; padding-bottom: 12px;
  }
  .login-card.login-grid .login-right .demo-groups {
    grid-template-columns: 1fr;
  }
}

/* 大屏 */
.dashboard-screen {
  background: #0f3554; color: #d8eef0;
  min-height: 100vh; padding: 16px;
  background-image: linear-gradient(180deg, rgba(25,135,180,0.18), rgba(15,53,84,0)), radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dashboard-screen .panel { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 14px 16px; }
.dashboard-screen h2 { font-size: 22px; margin: 0 0 14px; letter-spacing: 4px; text-align: center; }
.dashboard-screen .ec-metric { background: rgba(255,255,255,0.05); color: #fff; border-color: rgba(255,255,255,0.08); }
.dashboard-screen .ec-metric .label { color: #9bb6bf; }
.dashboard-screen .ec-metric .value { color: #fff; }

/* === H1 共享组件库 ============================================ */

/* 1. 分组菜单（替代旧的扁平菜单） */
.ec-menu-group { margin: 0; padding: 0; list-style: none; }
.ec-menu-group .group-title {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  padding: 10px 18px; font-size: 12px; font-weight: 700;
  color: #5d6b7c; letter-spacing: 0.4px; cursor: pointer;
  background: #f5f9fc; border-top: 1px solid #ebeef5; border-bottom: 1px solid #ebeef5;
  user-select: none; min-width: 0; overflow: visible; white-space: normal;
  line-height: 1.38;
}
.ec-menu-group .group-title:hover { color: var(--ec-primary-dark); background: #eef7fb; }
.ec-menu-group .group-title > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.ec-menu-group .group-title .arrow { font-size: 10px; transition: transform 0.18s; opacity: 0.6; flex-shrink: 0; }
.ec-menu-group.collapsed .group-title .arrow { transform: rotate(-90deg); }
.ec-menu-group.collapsed .group-items { display: none; }
.ec-menu-group .group-items { padding: 4px 0; }

/* 2. 顶部返回按钮（在 .ec-topbar 中） */
.ec-topbar .back-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; margin-right: 12px; border-radius: 6px;
  border: 1px solid var(--ec-border); background: #fff;
  color: var(--ec-primary-dark); font-size: 13px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  max-width: 180px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-topbar .back-btn:hover { background: #eef7fb; border-color: var(--ec-primary); }
.ec-topbar .back-btn .arrow { font-size: 14px; line-height: 1; }
body.elder-friendly .ec-topbar .back-btn { font-size: 16px !important; padding: 8px 16px !important; }

/* 3. Tab 切换 */
.ec-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--ec-border);
  margin-bottom: 14px; overflow-x: auto;
}
.ec-tabs .tab {
  padding: 10px 18px; cursor: pointer; font-size: 14px; color: var(--ec-text-soft);
  border-bottom: 3px solid transparent; transition: color 0.15s, border-color 0.15s;
  white-space: nowrap; flex-shrink: 0;
}
.ec-tabs .tab:hover { color: var(--ec-primary-dark); }
.ec-tabs .tab.active { color: var(--ec-primary-dark); border-bottom-color: var(--ec-primary); font-weight: 600; }
.ec-tabs .tab .count {
  display: inline-block; margin-left: 6px; padding: 0 8px; font-size: 12px;
  background: var(--ec-bg); color: var(--ec-text-soft); border-radius: 999px; line-height: 18px;
}
.ec-tabs .tab.active .count { background: rgba(25,135,180,0.18); color: var(--ec-primary-dark); }
.ec-tab-pane { display: none; }
.ec-tab-pane.active { display: block; }
body.elder-friendly .ec-tabs .tab { font-size: 16px; padding: 12px 22px; }

/* 4. 段控（待随访/已随访等） */
.ec-segment {
  display: inline-flex; border: 1px solid var(--ec-border); border-radius: 8px;
  background: #fff; overflow: hidden;
}
.ec-segment .seg {
  padding: 7px 16px; cursor: pointer; font-size: 14px; color: var(--ec-text-soft);
  border-right: 1px solid var(--ec-border); user-select: none; transition: all 0.15s;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-segment .seg:last-child { border-right: none; }
.ec-segment .seg.active { background: var(--ec-primary); color: #fff; font-weight: 600; }
.ec-segment .seg:hover:not(.active) { background: #f5f9fc; color: var(--ec-primary-dark); }

/* 5. 筛选栏 */
.ec-filter-bar {
  background: var(--ec-panel); border: 1px solid var(--ec-border); border-radius: var(--ec-radius);
  padding: 12px 16px; margin-bottom: 14px;
}
.ec-filter-bar .filter-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 14px;
}
.ec-filter-bar label { display: block; font-size: 12px; color: var(--ec-text-soft); margin-bottom: 4px; }
.ec-filter-bar input, .ec-filter-bar select {
  width: 100%; padding: 6px 10px; border: 1px solid var(--ec-border); border-radius: 5px; font-size: 13px;
  background: #fff;
}
.ec-filter-bar input:focus, .ec-filter-bar select:focus { outline: none; border-color: var(--ec-primary); }
.ec-filter-bar .actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; min-width: 0; }
.ec-filter-bar .summary { color: var(--ec-text-soft); font-size: 12px; margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-filter-bar .chip-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ec-filter-bar .chip-row .ec-pill { cursor: pointer; user-select: none; transition: background 0.15s; }
.ec-filter-bar .chip-row .ec-pill.active { background: var(--ec-primary); color: #fff; }

/* 5.1 全站表单统一外观：兜底修复散落页面/抽屉里的原生裸 input/select/textarea */
.ec-content input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
.ec-content select,
.ec-content textarea,
.ec-drawer input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
.ec-drawer select,
.ec-drawer textarea,
.login-card input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
.login-card select,
.login-card textarea {
  max-width: 100%;
  min-height: 38px;
  padding: 9px 12px !important;
  border: 1px solid #cfdde8 !important;
  border-radius: 10px !important;
  background-color: #fff !important;
  color: var(--ec-text);
  font: inherit;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 1px 0 rgba(15,53,84,0.02);
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.ec-content input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]):focus,
.ec-content select:focus,
.ec-content textarea:focus,
.ec-drawer input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]):focus,
.ec-drawer select:focus,
.ec-drawer textarea:focus,
.login-card input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]):focus,
.login-card select:focus,
.login-card textarea:focus {
  outline: none;
  border-color: var(--ec-primary) !important;
  box-shadow: 0 0 0 3px rgba(25,135,180,0.14);
}
.ec-content select,
.ec-drawer select,
.login-card select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23175b89' d='M6 8L0 0h12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
  cursor: pointer;
}
.ec-content textarea,
.ec-drawer textarea,
.login-card textarea { resize: vertical; min-height: 86px; }
.ec-content input[type="file"],
.ec-drawer input[type="file"] {
  max-width: 100%;
  padding: 12px !important;
  border: 1px dashed #b8d2df !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg,#f8fbfc,#fff) !important;
  color: var(--ec-text-soft);
  font: inherit;
}
.ec-content input[type="file"]::file-selector-button,
.ec-drawer input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--ec-primary);
  border-radius: 8px;
  background: #eef7fb;
  color: var(--ec-primary-dark);
  font-weight: 700;
  cursor: pointer;
}
.ec-content input[type="radio"],
.ec-content input[type="checkbox"],
.ec-drawer input[type="radio"],
.ec-drawer input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ec-primary);
  vertical-align: -2px;
}
.ec-content input::placeholder,
.ec-content textarea::placeholder,
.ec-drawer input::placeholder,
.ec-drawer textarea::placeholder,
.login-card input::placeholder,
.login-card textarea::placeholder { color: #a3afbd; }
.ec-content label,
.ec-drawer label {
  color: #5d6b7c;
  font-weight: 700;
}
body.elder-friendly .ec-content input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([type="file"]),
body.elder-friendly .ec-content select,
body.elder-friendly .ec-content textarea {
  min-height: 46px;
  border-radius: 14px !important;
  font-size: 17px;
}

/* 6. 折叠卡片 */
.ec-card.collapsible .ec-card-title { cursor: pointer; user-select: none; }
.ec-card.collapsible .ec-card-title::after {
  content: "▾"; margin-left: auto; color: var(--ec-text-soft); font-size: 14px; transition: transform 0.18s;
}
.ec-card.collapsible .ec-card-body {
  max-height: min(62vh, 660px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 3px;
}
.ec-card.collapsible.collapsed .ec-card-title::after { transform: rotate(-90deg); }
.ec-card.collapsible.collapsed .ec-card-body { display: none; }

.ec-card details[open] > pre,
details.ec-scroll-details[open] > pre {
  max-height: min(46vh, 380px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 10px 12px;
  border: 1px solid #dfe8ee;
  border-radius: 10px;
  background: #f7fafd;
}

/* 6.1 H4-P5：可折叠筛选栏（Ec.collapsibleFilter） */
.ec-filter-collapse {
  background: var(--ec-panel); border: 1px solid var(--ec-border); border-radius: var(--ec-radius); margin-bottom: 14px;
}
.ec-filter-collapse .cf-toggle {
  cursor: pointer; user-select: none; padding: 10px 16px;
  display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ec-text); font-weight: 600;
}
.ec-filter-collapse .cf-toggle:hover { background: #f6fafc; }
.ec-filter-collapse .cf-arrow {
  display: inline-block; color: var(--ec-text-soft); font-size: 11px; transition: transform 0.18s; min-width: 12px;
}
.ec-filter-collapse.collapsed .cf-arrow { transform: rotate(-90deg); }
.ec-filter-collapse .cf-title { color: var(--ec-text); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-filter-collapse .cf-applied {
  font-weight: 500; font-size: 12px; padding: 2px 8px; border-radius: 10px;
  background: #eef3f5; color: var(--ec-text-soft);
}
.ec-filter-collapse .cf-applied.has {
  background: var(--ec-primary); color: #fff;
}
.ec-filter-collapse .cf-summary { color: var(--ec-text-soft); font-size: 12px; font-weight: 400; margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-filter-collapse .cf-body {
  border-top: 1px solid var(--ec-border); padding: 12px 16px;
}
.ec-filter-collapse.collapsed .cf-body { display: none; }
/* 内嵌的 filterBar 去掉自身的 margin/border，融为一体 */
.ec-filter-collapse .cf-body .ec-filter-bar {
  background: transparent; border: none; padding: 0; margin: 0;
}

/* 7. 自动补全（autocomplete） */
.ec-autocomplete { position: relative; }
.ec-autocomplete input { width: 100%; }
.ec-autocomplete .ac-list {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: #fff; border: 1px solid var(--ec-border); border-radius: 6px;
  box-shadow: 0 6px 18px rgba(23,91,137,0.14);
  max-height: 280px; overflow-y: auto; margin-top: 2px;
}
.ec-autocomplete .ac-item {
  padding: 8px 12px; cursor: pointer; font-size: 14px; border-bottom: 1px solid #f0f4f8;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-autocomplete .ac-item:hover, .ec-autocomplete .ac-item.active { background: #eef7fb; color: var(--ec-primary-dark); }
.ec-autocomplete .ac-item:last-child { border-bottom: none; }
.ec-autocomplete .ac-item small { color: var(--ec-text-soft); margin-left: 8px; font-size: 12px; }
.ec-autocomplete .ac-empty { padding: 14px 12px; text-align: center; color: var(--ec-text-soft); font-size: 13px; }

/* 8. 二级面板：居中模态弹窗（取代旧的右侧侧拉抽屉） */
.ec-drawer-mask {
  position: fixed; inset: 0; background: rgba(15,53,84,0.42); z-index: 9990;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; transition: opacity 0.18s ease;
}
.ec-drawer-mask.active { opacity: 1; }
.ec-drawer {
  width: 720px;
  max-width: min(92vw, 1080px);
  max-height: calc(100vh - 48px);
  background: #fff;
  border-radius: 14px;
  display: flex; flex-direction: column;
  box-shadow: 0 28px 72px rgba(15,53,84,0.28), 0 4px 12px rgba(15,53,84,0.10);
  transform: translateY(14px) scale(.98);
  opacity: 0;
  transition: transform 0.2s cubic-bezier(.16,.84,.44,1), opacity 0.18s ease;
  overflow: hidden;
}
.ec-drawer-mask.active .ec-drawer { transform: translateY(0) scale(1); opacity: 1; }
.ec-drawer .drawer-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px; border-bottom: 1px solid var(--ec-border);
  background: #fff; border-radius: 14px 14px 0 0;
}
.ec-drawer .drawer-head h3 { margin: 0; font-size: 18px; color: var(--ec-primary-dark); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-drawer .drawer-head .close {
  width: 30px; height: 30px; border-radius: 50%; border: none; background: #eef7fb; color: #5d6b7c;
  cursor: pointer; font-size: 18px; transition: background 0.15s, color 0.15s;
}
.ec-drawer .drawer-head .close:hover { background: #d9ecf3; color: var(--ec-primary-dark); }
.ec-drawer .drawer-body { flex: 1 1 auto; padding: 18px 22px; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.ec-drawer .drawer-foot {
  flex: 0 0 auto;
  padding: 12px 22px 16px;
  border-top: 1px solid var(--ec-border);
  display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; min-width: 0;
  background: #fff; border-radius: 0 0 14px 14px;
}
/* 移动端 Drawer 适配统一收敛至 mobile.css (v2) */

/* 9. Hub（分类入口）卡片 */
.ec-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.ec-hub-card {
  background: #fff; border: 1px solid var(--ec-border); border-radius: 10px;
  padding: 18px 20px; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
}
.ec-hub-card:hover {
  transform: translateY(-2px); border-color: var(--ec-primary);
  box-shadow: 0 12px 24px rgba(23,91,137,0.10);
}
.ec-hub-card .head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ec-hub-card .num {
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, #1987b4, #34bfa3);
  color: #fff; font-size: 16px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, 'Times New Roman', serif;
}
.ec-hub-card .name { font-size: 17px; font-weight: 700; color: var(--ec-primary-dark); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ec-hub-card .desc { font-size: 13px; color: var(--ec-text-soft); line-height: 1.6; min-height: 38px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ec-hub-card .arrow { color: var(--ec-primary); font-size: 14px; align-self: flex-end; opacity: 0.6; }
.ec-hub-card:hover .arrow { opacity: 1; }
body.elder-friendly .ec-hub-card .name { font-size: 19px; }
body.elder-friendly .ec-hub-card .desc { font-size: 15px; min-height: 44px; }

/* 10. 分页 */
.ec-pager {
  display: flex; gap: 6px; align-items: center; justify-content: flex-end;
  margin-top: 12px; font-size: 13px; color: var(--ec-text-soft); min-width: 0; flex-wrap: wrap;
}
.ec-pager button {
  border: 1px solid var(--ec-border); background: #fff; color: var(--ec-text-soft);
  min-height: 32px; padding: 6px 12px; border-radius: 7px; cursor: pointer; font-size: 13px;
}
.ec-pager button:hover:not(:disabled) { color: var(--ec-primary-dark); border-color: var(--ec-primary); }
.ec-pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.ec-pager .page-info { padding: 0 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 11. 视频块（护工自我介绍） */
.ec-video-frame {
  background: #0f3554; border-radius: 10px; overflow: hidden;
  aspect-ratio: 16/9; position: relative; display: flex; align-items: center; justify-content: center;
}
.ec-video-frame video { width: 100%; height: 100%; object-fit: cover; }
.ec-video-frame .placeholder {
  color: rgba(255,255,255,0.85); text-align: center; padding: 18px;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1.2px, transparent 1.2px);
  background-size: 18px 18px; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
}
.ec-video-frame .placeholder .icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,0.16); display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
}

/* 12. 步骤条（义诊登记向导） */
.ec-stepper {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--ec-border); border-radius: 8px;
  padding: 12px 14px; margin-bottom: 14px;
}
.ec-stepper .step {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px;
  font-size: 13px; color: var(--ec-text-soft); cursor: pointer; user-select: none;
  transition: background 0.15s, color 0.15s;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-stepper .step .num {
  width: 24px; height: 24px; border-radius: 50%; background: #eef3f8;
  color: var(--ec-text-soft); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.ec-stepper .step.active { background: rgba(25,135,180,0.12); color: var(--ec-primary-dark); font-weight: 600; }
.ec-stepper .step.active .num { background: var(--ec-primary); color: #fff; }
.ec-stepper .step.done { color: var(--ec-success); }
.ec-stepper .step.done .num { background: var(--ec-success); color: #fff; }
.ec-stepper .arrow { color: var(--ec-text-soft); font-size: 14px; }
.ec-stepper .step:hover:not(.active) { background: #f5f9fc; color: var(--ec-primary-dark); }

/* 13. 表单分组 */
.ec-form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.ec-form-grid label { display: block; font-size: 13px; color: var(--ec-text-soft); margin-bottom: 4px; }
.ec-form-grid input, .ec-form-grid select, .ec-form-grid textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--ec-border); border-radius: 5px; font-size: 14px; background: #fff;
}
.ec-form-grid input:focus, .ec-form-grid select:focus, .ec-form-grid textarea:focus {
  outline: none; border-color: var(--ec-primary); box-shadow: 0 0 0 2px rgba(25,135,180,0.16);
}
.ec-form-grid .wide { grid-column: 1 / -1; }
.ec-form-grid .double { grid-column: span 2; }
.ec-form-section-title {
  font-size: 14px; font-weight: 700; color: var(--ec-primary-dark);
  border-left: 3px solid var(--ec-primary); padding-left: 10px;
  margin: 18px 0 12px;
}

/* 14. 表格密度收紧 */
.ec-table.dense th, .ec-table.dense td { padding: 7px 10px; font-size: 13px; }
.ec-table th.sortable { cursor: pointer; user-select: none; }
.ec-table th.sortable::after { content: " ⇅"; color: #c0c4cc; font-size: 11px; }
.ec-table th.sortable.asc::after { content: " ↑"; color: var(--ec-primary); }
.ec-table th.sortable.desc::after { content: " ↓"; color: var(--ec-primary); }

/* 15. 空态加载态 */
.ec-loading { text-align: center; padding: 30px 0; color: var(--ec-text-soft); font-size: 14px; }
.ec-loading::before {
  content: ""; display: inline-block; width: 14px; height: 14px;
  border: 2px solid #c7daf1; border-top-color: var(--ec-primary);
  border-radius: 50%; vertical-align: middle; margin-right: 8px;
  animation: ec-spin 0.7s linear infinite;
}
@keyframes ec-spin { to { transform: rotate(360deg); } }

/* === 16. Custom Select Picker（替代原生下拉框） === */
.ec-cselect { position: relative; width: 100%; min-width: 0; }
.ec-cselect-trigger {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 12px; border: 1px solid var(--ec-border); border-radius: 6px;
  background: #fff; cursor: pointer; min-height: 40px;
  font-size: 14px; color: var(--ec-text); transition: border-color .15s, box-shadow .15s;
  gap: 8px; min-width: 0; max-width: 100%; overflow: hidden;
}
.ec-cselect-trigger:hover { border-color: var(--ec-primary); }
.ec-cselect.open .ec-cselect-trigger {
  border-color: var(--ec-primary);
  box-shadow: 0 0 0 2px rgba(25,135,180,0.16);
}
.ec-cselect-trigger .cs-value {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-cselect-trigger .cs-placeholder { color: #c0c4cc; }
.ec-cselect-trigger .cs-arrow { color: #909399; font-size: 12px; transition: transform .2s; flex-shrink: 0; }
.ec-cselect.open .cs-arrow { transform: rotate(180deg); }
.ec-cselect .cs-clear {
  width: 18px; height: 18px; border-radius: 50%; background: #c0c4cc;
  color: #fff; border: none; cursor: pointer; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s;
}
.ec-cselect .cs-clear:hover { background: var(--ec-danger); }
.ec-cselect-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 999;
  background: #fff; border: 1px solid var(--ec-border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23,91,137,0.18);
  max-height: 280px; overflow-y: auto; display: none;
  animation: cs-slide-in .12s ease-out;
}
.ec-cselect.open .ec-cselect-dropdown { display: block; }
@keyframes cs-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ec-cselect-search {
  padding: 8px 10px; border-bottom: 1px solid var(--ec-border); position: sticky; top: 0; background: #fff;
}
.ec-cselect-search input {
  width: 100%; padding: 6px 10px; border: 1px solid var(--ec-border); border-radius: 5px;
  font-size: 13px; outline: none; transition: border-color .15s;
}
.ec-cselect-search input:focus { border-color: var(--ec-primary); }
.ec-cselect-option {
  padding: 9px 14px; cursor: pointer; font-size: 14px; display: flex; align-items: center;
  gap: 8px; transition: background .1s; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-cselect-option:hover { background: #f0f7fb; }
.ec-cselect-option.selected { background: #e8f4fb; color: var(--ec-primary-dark); font-weight: 600; }
.ec-cselect-option .cs-check { margin-left: auto; color: var(--ec-primary); font-weight: 700; }
.ec-cselect-group-label {
  padding: 6px 14px 4px; font-size: 11px; color: #909399; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 700; background: #fafafa;
  position: sticky; top: 45px;
}
.ec-cselect-empty { padding: 16px; text-align: center; color: #c0c4cc; font-size: 13px; }
.ec-cselect-tags {
  display: flex; flex-wrap: wrap; gap: 5px; padding: 8px 10px;
  border: 1px solid var(--ec-border); border-radius: 6px; min-height: 40px;
  background: #fff; cursor: pointer; align-items: center; min-width: 0; max-width: 100%; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.ec-cselect-tags:hover { border-color: var(--ec-primary); }
.ec-cselect-tags.focused { border-color: var(--ec-primary); box-shadow: 0 0 0 2px rgba(25,135,180,0.16); }
.ec-cselect-tags .tag-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
  background: rgba(25,135,180,0.1); color: var(--ec-primary-dark); font-weight: 600;
  max-width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ec-cselect-tags .tag-chip .rm {
  cursor: pointer; color: var(--ec-primary); font-size: 13px; line-height: 1;
  border: none; background: none; padding: 0;
}
.ec-cselect-tags .tag-chip .rm:hover { color: var(--ec-danger); }
.ec-cselect-tags .tags-hint { font-size: 13px; color: #c0c4cc; }

/* === 17. Tooltip（问号图标悬停说明） === */
.ec-tooltip-wrap { position: relative; display: inline-flex; align-items: center; gap: 3px; }
.ec-tooltip-wrap .ec-tip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; background: #c0c4cc; color: #fff;
  font-size: 11px; font-weight: 700; cursor: help; line-height: 1;
}
.ec-tooltip-wrap .ec-tip-box {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1f2c3d; color: #fff; padding: 10px 14px; border-radius: 8px;
  font-size: 12px; line-height: 1.6; white-space: pre-wrap; max-width: 320px;
  overflow-wrap: anywhere; word-break: break-word;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2); z-index: 9999;
  display: none; pointer-events: none;
}
.ec-tooltip-wrap .ec-tip-box::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #1f2c3d;
}
.ec-tooltip-wrap:hover .ec-tip-box { display: block; }

/* === 18. Filter Bar Select（美化原生下拉框） === */
.ec-filter-bar select, .ec-cf-inner select {
  width: 100%; padding: 6px 10px; border: 1px solid var(--ec-border); border-radius: 6px;
  font-size: 13px; color: var(--ec-text); background: #fff;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23909399' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
  padding-right: 28px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.ec-filter-bar select:focus, .ec-cf-inner select:focus {
  outline: none; border-color: var(--ec-primary); box-shadow: 0 0 0 2px rgba(25,135,180,0.16);
}

/* === 19. Chip-row pills selector（多选 pill 风格） === */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-row .ec-pill { cursor: pointer; padding: 4px 12px; border-radius: 20px; font-size: 13px;
  background: #f0f2f5; color: var(--ec-text-soft); border: 1px solid transparent; transition: all .15s; }
.chip-row .ec-pill:hover { background: #e8f4fb; color: var(--ec-primary-dark); border-color: var(--ec-primary); }
.chip-row .ec-pill.active { background: rgba(25,135,180,0.1); color: var(--ec-primary-dark); border-color: var(--ec-primary); font-weight: 600; }

/* === 老人/家属端 · 统一暖色品牌主题（与"问问小康"同款） === */
body.elder-friendly { background:
  radial-gradient(circle at 18% 14%, rgba(255,226,142,.42), transparent 28%),
  radial-gradient(circle at 88% 12%, rgba(255,244,184,.48), transparent 30%),
  linear-gradient(145deg,#fff8e9 0%,#f9f3df 46%,#eef8e9 100%);
}
body.elder-friendly .ec-shell { background:linear-gradient(145deg,#fff8e9 0%,#fbf3df 44%,#eff8e9 100%); }
body.elder-friendly .ec-aside { background:linear-gradient(180deg,rgba(255,252,244,.96),rgba(255,247,224,.9) 48%,rgba(242,249,233,.96)); border-right:1px solid rgba(207,160,86,.26); box-shadow:16px 0 42px rgba(104,72,24,.08); }
body.elder-friendly .ec-aside .ec-logo { padding:18px 16px 17px; background:radial-gradient(circle at 18% 16%,rgba(255,229,156,.72),transparent 40%),linear-gradient(135deg,rgba(255,255,255,.84),rgba(255,241,199,.58)); border-bottom:1px solid rgba(207,160,86,.24); }
body.elder-friendly .ec-brand-mark { width:52px; height:52px; border-radius:20px; background:linear-gradient(145deg,#fffdf6,#fff0c9); border-color:rgba(207,160,86,.32); box-shadow:0 16px 30px rgba(154,104,31,.18), inset 0 1px 0 rgba(255,255,255,.92); }
body.elder-friendly .ec-brand-name { color:#593f22; font-size:29px; text-shadow:0 1px 0 rgba(255,255,255,.78); font-family:'Songti SC','STSong','Noto Serif CJK SC','Microsoft YaHei',serif; }
body.elder-friendly .ec-brand-sub { color:#9b7546; font-size:10px; letter-spacing:.06em; }
body.elder-friendly .ec-aside .ec-role-tag { color:#8a755c; background:rgba(255,255,255,.42); border-bottom:1px solid rgba(207,160,86,.18); }
body.elder-friendly .ec-aside .ec-role-tag .badge { color:#6d8f3e; background:rgba(110,169,106,.14); border:1px solid rgba(110,169,106,.18); }
body.elder-friendly .ec-menu-group .group-title { color:#9a7a51; background:rgba(255,250,238,.58); border-color:rgba(207,160,86,.16); }
body.elder-friendly .ec-menu-group .group-title:hover { color:#6d4b24; background:rgba(255,239,195,.5); }
body.elder-friendly .ec-menu li { color:#60482d; border-left-width:4px; }
body.elder-friendly .ec-menu li .icon { color:#b89662; }
body.elder-friendly .ec-menu li:hover { background:rgba(255,240,202,.48); color:#593f22; }
body.elder-friendly .ec-menu li.active { background:linear-gradient(90deg,rgba(255,230,165,.68),rgba(255,250,238,.38)); border-left-color:#f0b64a; color:#8a5a18; box-shadow:inset 0 0 0 1px rgba(255,255,255,.42); }
body.elder-friendly .ec-menu li.active .icon { color:#dd9940; }
body.elder-friendly .ec-main { background:radial-gradient(circle at 82% 12%,rgba(255,224,139,.26),transparent 32%),radial-gradient(circle at 88% 78%,rgba(110,169,106,.18),transparent 36%); }
body.elder-friendly .ec-topbar { height:58px; background:rgba(255,253,247,.78); border-bottom:1px solid rgba(207,160,86,.2); box-shadow:0 12px 30px rgba(104,72,24,.06); backdrop-filter:blur(14px); }
body.elder-friendly .ec-topbar .crumbs { color:#9a7a51; }
body.elder-friendly .ec-topbar .crumbs strong { color:#593f22; }
body.elder-friendly .ec-top-note { color:#a49179; }
body.elder-friendly .ec-account-card { border-color:rgba(207,160,86,.24); background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(255,245,218,.72)); box-shadow:0 12px 24px rgba(104,72,24,.1); }
body.elder-friendly .ec-account-card .avatar { background:linear-gradient(135deg,#f0b64a,#6ea96a); }
body.elder-friendly .ec-logout-btn { color:#7d653f; border-left-color:rgba(207,160,86,.25); }
body.elder-friendly .ec-topbar .back-btn { color:#7d653f; background:rgba(255,255,255,.72); border-color:rgba(207,160,86,.24); border-radius:999px; }
body.elder-friendly .ec-topbar .back-btn:hover { background:#fff0c8; border-color:rgba(240,182,74,.52); }
body .ec-aside .ec-logo.ec-logo-complete-brand {
  justify-content:flex-start; align-items:center; gap:12px;
  padding:14px 10px 15px 8px;
  background:linear-gradient(135deg,#ffffff 0%,#f6fbfd 100%);
  border-bottom:1px solid #dfe4ed;
}
body .ec-aside .ec-logo.ec-logo-complete-brand .ec-brand-copy {
  display:block; flex:1; min-width:0;
}
body .ec-aside .ec-logo.ec-logo-complete-brand .ec-brand-mark {
  width:82px; height:72px; border-radius:24px;
  background:linear-gradient(145deg,#ffffff,#edf6fb);
  border:1px solid rgba(23,91,137,.16);
  box-shadow:0 12px 24px rgba(23,91,137,.12), inset 0 1px 0 rgba(255,255,255,.9);
}
body .ec-aside .ec-logo.ec-logo-complete-brand .ec-brand-mark img {
  inset:0; width:100%; height:100%; padding:0;
  object-fit:contain; transform:none;
}
body .ec-aside .ec-logo.ec-logo-complete-brand .ec-brand-platform-cn {
  color:#26384a;
  font-family:'Songti SC','STSong','Noto Serif CJK SC','Microsoft YaHei',serif;
  font-size:18px; font-weight:800; line-height:1.15;
  letter-spacing:.14em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
body .ec-aside .ec-logo.ec-logo-complete-brand .ec-brand-platform-en {
  margin-top:7px; color:#0b3764;
  font-family:'Optima','Avenir Next','Helvetica Neue',sans-serif;
  font-size:13px; font-weight:500; line-height:1;
  letter-spacing:.34em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}

/* 移动端 topbar/tabs/filter/stepper 适配统一收敛至 mobile.css (v2) */
