/* 移动 H5 原型 · Token 对齐澳优UI组件规范 Figma（见 aoyou-ui-figma-norms.md） */
:root {
  /* AU Brand */
  --m-primary: #005ee5;
  --m-primary-hover: #4090ff;
  --m-primary-active: #0050bf;
  --m-primary-light: #e8f2ff;
  /* Neutral */
  --m-bg-page: #f5f5f5;
  --m-bg-card: #ffffff;
  --m-text: #303030;
  --m-text-title: #303030;
  --m-text-secondary: #6c6c6c;
  --m-text-muted: #939393;
  --m-text-disabled: #bebebe;
  --m-border: #eaeaea;
  --m-border-input: #d9d9d9;
  /* Functional */
  --m-danger: #f53f3f;
  --m-success: #00b42a;
  --m-warning: #ff8800;
  --m-link: #506aa0;
  --m-mask: rgba(0, 0, 0, 0.7);
  /* Layout */
  --m-radius: 8px;
  --m-width: 375px;
  --m-page-x: 12px;
  --m-page-y: 8px;
  --m-card-pad-y: 10px;
  --m-card-pad-x: 12px;
  --m-navbar-h: 44px;
  --m-tabbar-h: 50px;
  --m-font: 'PingFang SC', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
  --m-font-size: 12px;
  --m-line-height: 18px;
  --m-font-navbar: 12px;
  --m-line-navbar: 22px;
  --m-font-tabbar: 12px;
  --m-line-tabbar: 12px;
  --m-safe-top: env(safe-area-inset-top, 0px);
  --m-safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body.m-platform-mobile {
  font-family: var(--m-font);
  font-size: var(--m-font-size);
  line-height: var(--m-line-height);
  color: var(--m-text);
  background: #e8eaed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.m-viewport {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}
.m-app {
  width: 100%;
  max-width: var(--m-width);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--m-bg-page);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.08);
  position: relative;
}

.proto-badge {
  display: none !important;
}

/* 顶栏 NavBar · aoyou-ui-figma-norms §7 */
.m-navbar {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  height: calc(var(--m-navbar-h) + var(--m-safe-top));
  padding: var(--m-safe-top) 8px 0;
  background: var(--m-bg-card);
  border-bottom: 1px solid var(--m-border);
}
.m-navbar__left,
.m-navbar__right {
  flex: 0 0 96px;
  display: flex;
  align-items: center;
  min-height: var(--m-navbar-h);
}
.m-navbar__right {
  justify-content: flex-end;
  gap: 2px;
}
.m-navbar__back,
.m-navbar__close {
  flex: 0 0 40px;
  width: 40px;
  height: var(--m-navbar-h);
  border: none;
  background: transparent;
  color: var(--m-text);
  cursor: pointer;
}
.m-navbar__back[hidden],
.m-navbar__close[hidden],
.m-navbar__action[hidden],
.m-navbar__capsule[hidden] {
  visibility: hidden;
  pointer-events: none;
}
.m-navbar__title {
  flex: 1;
  min-width: 0;
  align-self: center;
  text-align: center;
  font-size: var(--m-font-navbar);
  line-height: var(--m-line-navbar);
  font-weight: 500;
  color: var(--m-text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}
.m-navbar__action {
  flex: 0 0 auto;
  height: var(--m-navbar-h);
  padding: 0 6px;
  border: none;
  background: transparent;
  cursor: pointer;
}
.m-navbar__action--text {
  font-size: 12px;
  line-height: var(--m-navbar-h);
  color: var(--m-primary);
  max-width: 72px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-navbar__action--icon {
  width: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-navbar__capsule {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  height: 32px;
  margin-left: 4px;
  padding: 0 10px;
  border: 1px solid var(--m-border-input);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-sizing: border-box;
}
.m-navbar__capsule-more {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--m-text);
  line-height: 1;
}
.m-navbar__capsule-divider {
  width: 1px;
  height: 18px;
  margin: 0 8px;
  background: var(--m-border);
}
.m-navbar__capsule-ring {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--m-text);
  border-radius: 50%;
  box-sizing: border-box;
  position: relative;
}
.m-navbar__capsule-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--m-text);
}

/* 主滚动区 */
.m-page {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--m-tabbar-h) + var(--m-safe-bottom) + 8px);
}
.m-page--no-tabbar {
  padding-bottom: calc(12px + var(--m-safe-bottom));
}

/* 底 Tab TabBar · aoyou-ui-figma-norms §8 */
.m-tabbar {
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  height: calc(var(--m-tabbar-h) + var(--m-safe-bottom));
  padding-bottom: var(--m-safe-bottom);
  background: var(--m-bg-card);
  border-top: 1px solid var(--m-border);
}
.m-tabbar--tuoshi {
  padding-top: 12px;
  height: calc(var(--m-tabbar-h) + var(--m-safe-bottom) + 12px);
}
.m-tabbar[hidden] { display: none; }
.m-tabbar__item {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 4px;
  font-size: var(--m-font-tabbar);
  line-height: var(--m-line-tabbar);
  color: var(--m-text-muted);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
}
.m-tabbar__item.is-active { color: var(--m-primary); font-weight: 500; }
.m-tabbar__item.is-disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.m-tabbar__icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}
.m-tabbar__icon {
  width: 24px;
  height: 24px;
  color: currentColor;
}
.m-tabbar__icon svg { width: 100%; height: 100%; display: block; }
.m-tabbar__label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* TabBar 徽标 · 对齐 §32 */
.m-tabbar__badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -30%);
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border-radius: 50%;
  background: var(--m-danger);
  border: 0.5px solid #ffffff;
  box-sizing: border-box;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
}
.m-tabbar__badge--count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 15px;
  font-weight: 500;
  color: #fff;
  text-align: center;
  border-radius: 8px;
}
.m-tabbar__item--center {
  flex: 1;
  margin-top: -20px;
}
.m-tabbar__item--center .m-tabbar__fab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: var(--m-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 94, 229, 0.35);
  cursor: pointer;
}
.m-tabbar__item--center .m-tabbar__fab .m-tabbar__icon { color: #fff; }
.m-tabbar__item--center .m-tabbar__label {
  font-size: 12px;
  line-height: 12px;
  color: #fff;
  font-weight: 500;
}

/* 选项卡 Tabs（页内 · ≠ m-tabbar）· aoyou-ui-figma-norms §9 */
.m-tabs {
  flex-shrink: 0;
  background: var(--m-bg-card);
  border-bottom: 1px solid var(--m-border);
}
.m-tabs--sticky {
  position: sticky;
  top: 0;
  z-index: 10;
}
.m-tabs__nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  padding: 0 16px;
  align-items: flex-end;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m-tabs--equal .m-tabs__nav { gap: 0; padding: 0; overflow: visible; }
.m-tabs--equal .m-tabs__tab { flex: 1; text-align: center; }
.m-tabs__tab {
  flex-shrink: 0;
  padding: 12px 0;
  border: none;
  background: none;
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
}
.m-tabs__tab.is-active { color: var(--m-primary); font-weight: 500; }
.m-tabs__tab.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24px;
  height: 3px;
  margin-left: -12px;
  background: var(--m-primary);
  border-radius: 1px;
}
.m-tabs__badge {
  position: absolute;
  top: 8px;
  right: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--m-danger);
  border: 0.5px solid #ffffff;
  box-sizing: border-box;
}
.m-tabs--tag { border-bottom: none; }
.m-tabs--tag .m-tabs__nav { gap: 8px; padding: 8px 16px; align-items: center; }
.m-tabs--tag .m-tabs__tab {
  padding: 6px 16px;
  font-size: 12px;
  line-height: 18px;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  background: var(--m-bg-card);
}
.m-tabs--tag .m-tabs__tab.is-active {
  background: var(--m-primary-light);
  border-color: var(--m-primary-light);
  color: var(--m-primary);
}
.m-tabs--tag .m-tabs__tab.is-active::after { display: none; }
.m-tabs--tag-lg .m-tabs__tab { min-height: 32px; font-size: 12px; }
.m-tabs--tag-sm .m-tabs__tab {
  min-height: 24px;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 16px;
}

/* 日历 Calendar · aoyou-ui-figma-norms §10 */
.m-calendar {
  padding: 12px 16px 24px;
  background: var(--m-bg-card);
}
.m-calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  min-height: 40px;
}
.m-calendar__nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text);
}
.m-calendar__nav-label { min-width: 72px; text-align: center; }
.m-calendar__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--m-text-muted);
  cursor: pointer;
}
.m-calendar__nav-btn--prev .ui-icon { transform: scaleX(-1); }
.m-calendar__week,
.m-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px 0;
  text-align: center;
}
.m-calendar__week {
  margin-bottom: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text-muted);
}
.m-calendar__day {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: none;
  background: transparent;
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text);
  border-radius: 4px;
  cursor: pointer;
}
.m-calendar__day.is-other,
.m-calendar__day.is-disabled {
  color: var(--m-text-disabled);
  cursor: default;
}
.m-calendar__day.is-selected {
  background: var(--m-primary);
  color: #fff;
  font-weight: 500;
}
.m-calendar__day.has-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--m-success);
}
.m-calendar__day.is-selected.has-dot::after { background: #fff; }

/* 搜索框 Search · §18 */
.m-search-bar {
  padding: 8px 12px;
  background: var(--m-bg-card);
}
.m-search-bar--action {
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-search-bar--action .m-search-bar__inner {
  flex: 1;
  min-width: 0;
}
.m-search-bar__inner {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 10px 0 12px;
  background: var(--m-bg-page);
  border-radius: 18px;
}
.m-search-bar__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  position: relative;
  color: var(--m-text-muted);
  font-size: 0;
}
.m-search-bar__icon::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 9px; height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.m-search-bar__icon::after {
  content: '';
  position: absolute;
  right: 0; bottom: 0;
  width: 6px; height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.m-search-bar input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
  outline: none;
}
.m-search-bar input::placeholder {
  color: var(--m-text-disabled);
}
.m-search-bar__clear {
  flex-shrink: 0;
  display: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--m-text-muted);
  cursor: pointer;
}
.m-search-bar.is-active .m-search-bar__clear,
.m-search-bar__inner:has(input:not(:placeholder-shown)) .m-search-bar__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-search-bar__btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  line-height: 22px;
  color: var(--m-primary);
  cursor: pointer;
  padding: 0;
}
.m-search-bar__back {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--m-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-search-bar--back.m-search-bar--action {
  gap: 8px;
}
.m-search-suggest {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--m-bg-card);
}
.m-search-suggest__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text);
  text-decoration: none;
  border-bottom: 0.5px solid var(--m-border);
}
.m-search-suggest__item:active {
  background: var(--m-bg-page);
}
.m-search-suggest__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.m-search-suggest__text em,
.m-search-suggest__text .is-highlight {
  font-style: normal;
  color: var(--m-primary);
}
.m-search-suggest__meta {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text-muted);
}
.m-search-suggest--simple .m-search-suggest__item {
  font-size: 12px;
}
.m-search-suggest--simple .m-search-suggest__meta,
.m-search-suggest--simple .ui-icon {
  display: none;
}
.m-search-panel {
  background: var(--m-bg-card);
}

/* 滑动选择器 Slider · §19 */
.m-slider {
  padding: 12px 16px 20px;
  background: var(--m-bg-card);
  --slider-pct: 0%;
  --slider-start: 25%;
  --slider-end: 75%;
}
.m-slider__scale {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
}
.m-slider__scale--ticks {
  padding: 0 2px;
}
.m-slider__scale--ticks span {
  flex: 1;
  text-align: center;
}
.m-slider__scale--ticks span:first-child { text-align: left; }
.m-slider__scale--ticks span:last-child { text-align: right; }
.m-slider__rail {
  position: relative;
  height: 36px;
}
.m-slider__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 1px;
  background: var(--m-border);
}
.m-slider__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: 1px;
  background: var(--m-primary);
  width: var(--slider-pct, 0%);
}
.m-slider--range .m-slider__fill {
  left: var(--slider-start, 0%);
  width: calc(var(--slider-end, 100%) - var(--slider-start, 0%));
}
.m-slider__thumb {
  position: absolute;
  top: 50%;
  left: var(--slider-pct, 0%);
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  z-index: 1;
}
.m-slider__thumb--start { left: var(--slider-start, 25%); }
.m-slider__thumb--end { left: var(--slider-end, 75%); }
.m-slider__bubble {
  position: absolute;
  top: 0;
  left: var(--slider-pct, 0%);
  transform: translate(-50%, 0);
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
  white-space: nowrap;
}
.m-slider__bubble--start {
  left: var(--slider-start, 25%);
  transform: translate(-50%, 0);
}
.m-slider__bubble--end {
  left: var(--slider-end, 75%);
  transform: translate(-50%, 0);
}
.m-slider--text {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.m-slider--text .m-slider__label {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
}
.m-slider--text .m-slider__rail {
  flex: 1;
  min-width: 0;
}
.m-slider.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.m-slider.is-disabled .m-slider__fill {
  background: var(--m-border);
}

/* 单元格 Cell §33 · 列表/设置/信息展示 */
.m-list, .m-cell-group {
  margin-top: 8px;
  background: var(--m-bg-card);
}
.m-cell-group { margin: var(--m-page-y) var(--m-page-x); border-radius: var(--m-radius); overflow: hidden; }
.m-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px var(--m-card-pad-x);
  border-bottom: 0.5px solid var(--m-border);
  text-decoration: none;
  color: inherit;
  background: var(--m-bg-card);
}
.m-cell:last-child { border-bottom: none; }
.m-cell--link { cursor: pointer; }
.m-cell--multiline { align-items: center; min-height: 52px; }
.m-cell__prefix {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-cell__prefix .ui-icon { width: 20px; height: 20px; color: var(--m-text-muted); }
.m-cell__thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--m-border);
}
.m-cell__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-cell__main { flex: 1; min-width: 0; }
.m-cell__title {
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
}
.m-cell--link .m-cell__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-cell__desc {
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text-muted);
  word-break: break-word;
}
.m-cell__extra {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text-muted);
  white-space: nowrap;
}
.m-cell__arrow, .m-cell__action {
  flex-shrink: 0;
  margin-left: 0;
  color: var(--m-text-muted);
}
.m-cell__arrow .ui-icon, .m-cell__action .ui-icon { width: 16px; height: 16px; }
/* 信息展示：左标签 + 右值，无箭头 */
.m-list--info .m-cell, .m-cell--info {
  min-height: 44px;
  gap: 16px;
}
.m-cell--info .m-cell__label,
.m-list--info .m-cell__label {
  flex-shrink: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text-muted);
}
.m-cell--info .m-cell__value,
.m-list--info .m-cell__value {
  flex: 1;
  text-align: right;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
  word-break: break-word;
}
.m-cell--switch { cursor: default; }
.m-cell--switch .m-switch { flex-shrink: 0; }

/* 轮播 Swiper §34 */
.m-swiper, .ui-swiper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--m-bg-page);
}
.m-swiper--16-9 { aspect-ratio: 16 / 9; }
.m-swiper--4-3 { aspect-ratio: 4 / 3; }
.m-swiper__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.m-swiper__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.m-swiper__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.m-swiper__slide img,
.m-swiper__slide .m-swiper__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-swiper__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 28px;
  z-index: 1;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.m-swiper__caption-title {
  font-size: 12px;
  line-height: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}
.m-swiper__caption-desc {
  font-size: 12px;
  line-height: 16px;
  opacity: 0.92;
}
.m-swiper__dots {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.m-swiper__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  pointer-events: auto;
}
.m-swiper__dot.is-active {
  width: 8px;
  height: 8px;
  background: var(--m-primary);
}
.m-swiper__fraction {
  position: absolute;
  z-index: 3;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  pointer-events: none;
}
.m-swiper--placement-bottom .m-swiper__dots,
.m-swiper--placement-bottom .m-swiper__fraction,
.m-swiper__indicators--bottom { bottom: 12px; left: 50%; transform: translateX(-50%); }
.m-swiper--placement-bottom .m-swiper__fraction.is-right,
.m-swiper__fraction--br { bottom: 12px; left: auto; right: 12px; transform: none; }
.m-swiper--placement-br .m-swiper__dots,
.m-swiper--placement-br .m-swiper__fraction { bottom: 12px; right: 12px; left: auto; transform: none; }
.m-swiper--placement-tl .m-swiper__dots,
.m-swiper--placement-tl .m-swiper__fraction { top: 12px; left: 12px; bottom: auto; transform: none; }
.m-swiper--placement-tr .m-swiper__dots,
.m-swiper--placement-tr .m-swiper__fraction { top: 12px; right: 12px; left: auto; bottom: auto; transform: none; }
.m-swiper__prev, .m-swiper__next {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 32px;
  height: 32px;
  margin-top: -16px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.m-swiper__prev { left: 8px; }
.m-swiper__next { right: 8px; }
.m-swiper__prev .ui-icon, .m-swiper__next .ui-icon { width: 18px; height: 18px; color: #fff; }
.m-swiper__prev[hidden], .m-swiper__next[hidden] { display: none; }

/* 折叠面板 Collapse §35 */
.m-collapse, .ui-collapse {
  margin: 12px 16px;
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  overflow: hidden;
}
.m-collapse__item {
  border-bottom: 0.5px solid var(--m-border);
}
.m-collapse__item:last-child { border-bottom: none; }
.m-collapse__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.m-collapse__title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 22px;
  font-weight: 500;
  color: var(--m-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-collapse__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text-muted);
}
.m-collapse__action .ui-icon {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}
.m-collapse__item.is-open .m-collapse__action .ui-icon {
  transform: rotate(-90deg);
}
.m-collapse__body {
  display: none;
  padding: 0 16px 12px;
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text-secondary);
  word-break: break-word;
}
.m-collapse__item.is-open .m-collapse__body { display: block; }

/* 表单 */
.m-form { padding: 4px 0; }
.m-field {
  background: var(--m-bg-card);
  padding: 10px var(--m-card-pad-x);
  border-bottom: 1px solid var(--m-border);
}
.m-field__label {
  display: block;
  font-size: 12px;
  color: var(--m-text-secondary);
  margin-bottom: 4px;
  white-space: nowrap;
}
.m-field__label .is-required { color: var(--m-danger); margin-right: 2px; }
.m-field__control {
  width: 100%;
  min-height: 32px;
  padding: 4px 0;
  border: none;
  font-size: var(--m-font-size);
  line-height: var(--m-line-height);
  color: var(--m-text);
  background: transparent;
  outline: none;
}
.m-field__control::placeholder { color: var(--m-text-disabled); }
.m-field select.m-field__control { appearance: none; }

/* 列表行 · 选择/开关/步进 · Form §16 · DatePicker §14 */
.m-field--cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 var(--m-card-pad-x);
  cursor: pointer;
}
.m-field--cell .m-field__label {
  margin-bottom: 0;
  flex-shrink: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
}
.m-field--cell .m-field__value {
  flex: 1;
  min-width: 0;
  text-align: right;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
}
.m-field--cell .m-field__value.is-placeholder {
  color: var(--m-text-disabled);
}
.m-field--cell .m-field__arrow {
  flex-shrink: 0;
  color: var(--m-text-muted);
}
.m-field--cell.m-field--switch,
.m-field--cell.m-field--stepper,
.m-field--cell.m-field--segment {
  cursor: default;
}
.m-field--cell.m-field--input {
  cursor: default;
}
.m-field--cell.m-field--input .m-field__control {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  text-align: right;
}

/* 单行信息：左标题右内容 */
.m-cell--row .m-cell__main,
.m-cell__main--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}
.m-cell--row .m-cell__title,
.m-cell__main--row .m-cell__title {
  flex-shrink: 0;
  margin: 0;
}
.m-cell--row .m-cell__desc,
.m-cell__main--row .m-cell__desc {
  margin: 0;
  flex: 1;
  min-width: 0;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 表单卡片分组 · §16 */
.m-form-card {
  margin: var(--m-page-y) var(--m-page-x);
  background: var(--m-bg-card);
  border-radius: var(--m-radius);
  overflow: hidden;
}
.m-form-card > .m-field {
  margin: 0;
  padding: 8px var(--m-card-pad-x);
  background: transparent;
  border-bottom: 0.5px solid var(--m-border);
}
.m-form-card > .m-field:last-child { border-bottom: none; }
.m-form-card > .m-field--cell {
  min-height: 40px;
  padding: 0 var(--m-card-pad-x);
}
.m-field--tags {
  padding: 10px 16px 12px;
  background: var(--m-bg-card);
  border-bottom: 0.5px solid var(--m-border);
}
.m-field--tags .m-field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
}
.m-form-tags, .m-tag-group, .ui-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

/* 标签 Tags §25 · .m-form-tag 为表单内别名 */
.m-tag, .m-form-tag, .ui-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  min-height: 28px;
  padding: 5px 12px;
  border: 1px solid var(--m-border);
  border-radius: 4px;
  background: var(--m-bg-card);
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text);
  vertical-align: middle;
}
button.m-tag, button.m-form-tag {
  font-family: inherit;
  cursor: pointer;
}
.m-tag--lg, .m-form-tag--lg { min-height: 32px; padding: 7px 12px; font-size: 12px; line-height: 18px; }
.m-tag--sm, .m-form-tag--sm { min-height: 24px; padding: 4px 10px; }
.m-tag--mini, .m-form-tag--mini { min-height: 16px; padding: 0 6px; font-size: 12px; line-height: 16px; }

.m-tag.is-selected, .m-form-tag.is-selected,
.ui-tag.is-selected {
  border-color: var(--m-primary);
  color: var(--m-primary);
  background: var(--m-primary-light);
}
.m-tag--solid.is-selected, .m-form-tag--solid.is-selected {
  border-color: var(--m-primary);
  background: var(--m-primary);
  color: #fff;
}
.m-tag.is-disabled, .m-form-tag:disabled, .m-form-tag.is-disabled,
.ui-tag.is-disabled {
  border-color: var(--m-border);
  background: #f5f5f5;
  color: var(--m-text-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

.m-tag--closable, .m-form-tag--closable, .ui-tag--closable, .ui-chip {
  padding-right: 8px;
}
.m-tag__close, .ui-tag__close, .ui-chip__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
}
.m-tag__close .ui-icon, .ui-tag__close .ui-icon { width: 12px; height: 12px; }

/* 语义色 · 辅助信息（只读 span，非切换） */
.m-tag--info, .ui-tag--info { background: #ecf5ff; border-color: #b3d8ff; color: var(--m-primary); }
.m-tag--success, .ui-tag--success { background: #e8ffea; border-color: #7be188; color: var(--m-success); }
.m-tag--danger, .ui-tag--danger { background: #ffece8; border-color: #fbaca3; color: var(--m-danger); }
.m-tag--warning, .ui-tag--warn, .ui-tag--warn { background: #fff7e8; border-color: #ffcf8b; color: var(--m-warning); }
.m-tag--muted, .ui-tag--muted { background: #f5f5f5; border-color: var(--m-border); color: var(--m-text-muted); }

.m-field--tag-result .m-tag-group { padding-top: 8px; }

/* 开关 Switch · §21 */
.m-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 40px;
  height: 24px;
  cursor: pointer;
  --switch-thumb: 20px;
  --switch-offset: 2px;
  --switch-travel: 16px;
}
.m-switch__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.m-switch__track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: var(--m-border);
  transition: background 0.2s;
}
.m-switch__track::after {
  content: '';
  position: absolute;
  top: var(--switch-offset);
  left: var(--switch-offset);
  width: var(--switch-thumb);
  height: var(--switch-thumb);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s;
}
.m-switch__input:checked + .m-switch__track {
  background: var(--m-primary);
}
.m-switch__input:checked + .m-switch__track::after {
  transform: translateX(var(--switch-travel));
}
.m-switch__input:disabled + .m-switch__track {
  background: var(--m-bg-page);
  cursor: not-allowed;
}
.m-switch__input:disabled:checked + .m-switch__track {
  background: var(--m-primary-light);
}
.m-switch__input:disabled + .m-switch__track::after {
  box-shadow: none;
}
.m-switch.is-disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: not-allowed;
}
.m-switch.is-loading .m-switch__track::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 50%;
  left: calc(var(--switch-offset) + var(--switch-thumb) / 2);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid var(--m-primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: m-switch-spin 0.7s linear infinite;
}
.m-switch.is-loading .m-switch__input:checked + .m-switch__track::before {
  left: calc(var(--switch-offset) + var(--switch-travel) + var(--switch-thumb) / 2);
}
@keyframes m-switch-spin {
  to { transform: rotate(360deg); }
}
.m-switch--sm {
  width: 32px;
  height: 20px;
  --switch-thumb: 16px;
  --switch-offset: 2px;
  --switch-travel: 12px;
}
.m-switch--lg {
  width: 48px;
  height: 28px;
  --switch-thumb: 24px;
  --switch-offset: 2px;
  --switch-travel: 20px;
}
.m-switch-cell, .m-cell.m-cell--switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 12px 16px;
  background: var(--m-bg-card);
  border-bottom: 0.5px solid var(--m-border);
}
.m-switch-cell:last-child, .m-cell-group .m-cell--switch:last-child { border-bottom: none; }
.m-switch-cell__label, .m-cell--switch .m-cell__title {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
}

/* 步进器 Stepper · §20 */
.m-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.m-stepper__btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: var(--m-bg-page);
  font-size: 12px;
  line-height: 1;
  color: var(--m-text);
  cursor: pointer;
}
.m-stepper__btn:active:not(:disabled) {
  background: var(--m-border);
}
.m-stepper__btn:disabled {
  color: var(--m-text-disabled);
  cursor: not-allowed;
}
.m-stepper__value,
.m-stepper__input {
  min-width: 40px;
  height: 28px;
  padding: 0 6px;
  border: none;
  border-radius: 4px;
  background: var(--m-bg-page);
  font-size: 12px;
  line-height: 28px;
  text-align: center;
  color: var(--m-text);
  box-sizing: border-box;
}
.m-stepper__input {
  outline: none;
  -moz-appearance: textfield;
}
.m-stepper__input::-webkit-outer-spin-button,
.m-stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.m-stepper--sm .m-stepper__btn {
  width: 24px;
  height: 24px;
  font-size: 12px;
}
.m-stepper--sm .m-stepper__value,
.m-stepper--sm .m-stepper__input {
  min-width: 32px;
  height: 24px;
  line-height: 24px;
  font-size: 12px;
}
.m-stepper--lg .m-stepper__btn {
  width: 32px;
  height: 32px;
}
.m-stepper--lg .m-stepper__value,
.m-stepper--lg .m-stepper__input {
  min-width: 48px;
  height: 32px;
  line-height: 32px;
  font-size: 12px;
}
.m-stepper.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* 分段单选 Segment */
.m-segment {
  display: inline-flex;
  flex-shrink: 0;
  gap: 0;
  border-radius: var(--m-radius);
  overflow: hidden;
}
.m-segment__item {
  position: relative;
  min-width: 44px;
  padding: 6px 14px;
  border: 1px solid var(--m-border);
  background: var(--m-bg-card);
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
  text-align: center;
  cursor: pointer;
}
.m-segment__item + .m-segment__item {
  margin-left: -1px;
}
.m-segment__item:first-child { border-radius: var(--m-radius) 0 0 var(--m-radius); }
.m-segment__item:last-child { border-radius: 0 var(--m-radius) var(--m-radius) 0; }
.m-segment__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.m-segment__item.is-selected {
  z-index: 1;
  border-color: var(--m-primary);
  color: var(--m-primary);
  background: var(--m-primary-light);
}

/* 滚轮 DatePicker */
.m-picker-wheel {
  position: relative;
  display: flex;
  padding: 12px 8px 28px;
  background: var(--m-bg-card);
}
.m-picker-wheel::before,
.m-picker-wheel::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--m-border);
  pointer-events: none;
  z-index: 2;
}
.m-picker-wheel::before { top: calc(50% - 18px); }
.m-picker-wheel::after { top: calc(50% + 18px); }
.m-picker-wheel__mask {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 18px);
  height: 36px;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0) 65%,
    rgba(255, 255, 255, 0.92) 100%
  );
}
.m-picker-wheel__col {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.m-picker-wheel__item {
  height: 36px;
  line-height: 36px;
  font-size: 12px;
  color: var(--m-text-disabled);
}
.m-picker-wheel__item.is-selected {
  color: var(--m-text);
  font-weight: 600;
  font-size: 12px;
}
.m-sheet--picker .m-sheet__body { padding: 0; }

/* 时间段 */
.m-date-range {
  padding: 16px;
  background: var(--m-bg-card);
}
.m-date-range__title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--m-text);
}
.m-date-range__row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.m-date-range__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  font-size: 12px;
  color: var(--m-text);
  background: var(--m-bg-card);
}
.m-date-range__input::placeholder { color: var(--m-text-disabled); }
.m-date-range__sep {
  flex-shrink: 0;
  font-size: 12px;
  color: var(--m-text-secondary);
}
.m-date-range__footer {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.m-date-range__footer .m-btn { flex: 1; }
.m-date-range--ym .m-date-range__input { font-variant-numeric: tabular-nums; }

/* 下拉菜单 DropdownMenu · §15 */
.m-dropdown { position: relative; background: var(--m-bg-card); }
.m-dropdown-bar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 8px;
  border-bottom: 1px solid var(--m-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.m-dropdown-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 12px 12px;
  border: none;
  background: transparent;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text-secondary);
  cursor: pointer;
  white-space: nowrap;
}
.m-dropdown-bar__item.is-open {
  color: var(--m-primary);
  font-weight: 500;
}
.m-dropdown-bar__item.is-disabled {
  color: var(--m-text-disabled);
  cursor: not-allowed;
}
.m-dropdown-bar__caret {
  flex-shrink: 0;
  color: inherit;
  transform: rotate(90deg);
  transition: transform 0.2s;
}
.m-dropdown-bar__item.is-open .m-dropdown-bar__caret {
  transform: rotate(-90deg);
}
.m-dropdown-mask {
  position: fixed;
  inset: 0;
  background: var(--m-mask);
  z-index: 900;
}
.m-dropdown:not(.is-open) .m-dropdown-mask { display: none; }
.m-dropdown-panel {
  display: none;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--m-bg-card);
  border-bottom: 1px solid var(--m-border);
  -webkit-overflow-scrolling: touch;
}
.m-dropdown.is-open .m-dropdown-panel { display: block; }
.m-dropdown-panel .m-radio-list,
.m-dropdown-panel .m-cascade,
.m-dropdown-panel .m-filter-grid,
.m-dropdown-panel .m-date-range { border: none; }
.m-dropdown-panel .m-calendar {
  box-shadow: none;
  border-radius: 0;
  padding: 8px 12px 12px;
}
.m-dropdown-panel__footer {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--m-border);
  background: var(--m-bg-card);
}
.m-dropdown-panel__footer .m-btn { flex: 1; }

/* 筛选标签网格 */
.m-filter-grid { padding: 12px 16px 8px; }
.m-filter-grid__group { margin-bottom: 16px; }
.m-filter-grid__group:last-child { margin-bottom: 8px; }
.m-filter-grid__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  color: var(--m-text);
}
.m-filter-grid__tags {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.m-filter-tag {
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  background: var(--m-bg-card);
  font-size: 12px;
  line-height: 18px;
  color: var(--m-text);
  cursor: pointer;
  text-align: center;
}
.m-filter-tag.is-selected {
  border-color: var(--m-primary);
  color: var(--m-primary);
  background: var(--m-primary-light);
}

.m-field--lookup .m-lookup {
  display: flex;
  align-items: center;
  min-height: 40px;
}
.m-lookup__text { flex: 1; font-size: 12px; }
.m-lookup__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  position: relative;
  color: var(--m-text-secondary);
  font-size: 0;
}
.m-lookup__icon::before {
  content: '';
  position: absolute; left: 1px; top: 1px;
  width: 10px; height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}
.m-lookup__icon::after {
  content: '';
  position: absolute; right: 0; bottom: 0;
  width: 7px; height: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.m-submit-bar {
  position: sticky;
  bottom: 0;
  padding: 8px var(--m-page-x) calc(8px + var(--m-safe-bottom));
  background: var(--m-bg-card);
  border-top: 1px solid var(--m-border);
}
.m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border: none;
  border-radius: var(--m-radius);
  font-size: 12px;
  cursor: pointer;
}
.m-btn--primary { background: var(--m-primary); color: #fff; }
.m-btn--primary:active { background: var(--m-primary-active); }
.m-btn--secondary {
  background: var(--m-primary-light);
  color: var(--m-primary);
}
.m-btn--secondary:active { background: #b6d2fa; }
.m-btn--ghost {
  background: var(--m-bg-card);
  color: var(--m-primary);
  border: 1px solid var(--m-primary);
}
.m-btn:disabled,
.m-btn.is-disabled {
  background: var(--m-primary-light);
  color: var(--m-text-disabled);
  cursor: not-allowed;
  opacity: 0.85;
}

.m-fab {
  position: fixed;
  right: 16px;
  bottom: calc(var(--m-tabbar-h) + var(--m-safe-bottom) + 16px);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--m-primary);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 94, 229, 0.35);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
a.m-fab { color: #fff; }
.m-page--no-tabbar ~ .m-fab,
body[data-hide-tabbar="true"] .m-fab {
  bottom: calc(16px + var(--m-safe-bottom));
}

/* 底部 sheet */
.m-sheet-mask {
  position: fixed;
  inset: 0;
  background: var(--m-mask);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.m-sheet-mask[hidden] { display: none; }
.m-sheet {
  width: 100%;
  max-width: var(--m-width);
  max-height: 85vh;
  background: var(--m-bg-card);
  border-radius: 12px 12px 0 0;
  display: flex;
  flex-direction: column;
}
.m-sheet__header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--m-border);
}
.m-sheet__title { font-size: 12px; font-weight: 600; }
.m-sheet__close {
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--m-text-muted);
  cursor: pointer;
}
.m-sheet__body {
  flex: 1;
  overflow: auto;
  padding: 8px 0;
}
.m-sheet__footer {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  padding: 12px 16px calc(12px + var(--m-safe-bottom));
  border-top: 1px solid var(--m-border);
}
.m-sheet__footer .m-btn { flex: 1; }

/* 复选框 / 单选圆点 · aoyou-ui-figma-norms §11 */
.m-check {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text);
  user-select: none;
}
.m-check--right {
  flex-direction: row-reverse;
  justify-content: space-between;
  width: 100%;
}
.m-check__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.m-check__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--m-border-input);
  background: var(--m-bg-card);
  position: relative;
  box-sizing: border-box;
}
.m-check__input:checked + .m-check__box {
  background: var(--m-primary);
  border-color: var(--m-primary);
}
.m-check__input:checked + .m-check__box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.m-check__input:indeterminate + .m-check__box,
.m-check.is-indeterminate .m-check__box {
  background: var(--m-primary);
  border-color: var(--m-primary);
}
.m-check__input:indeterminate + .m-check__box::after,
.m-check.is-indeterminate .m-check__box::after {
  content: '';
  position: absolute;
  left: 5px;
  right: 5px;
  top: 8px;
  height: 2px;
  background: #fff;
  border: none;
  transform: none;
}
.m-check.is-disabled,
.m-check__input:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.m-check__input:disabled:checked + .m-check__box {
  background: var(--m-primary-light);
  border-color: var(--m-primary-light);
}
.m-check__input:disabled:checked + .m-check__box::after {
  border-color: var(--m-text-disabled);
}

/* 单选框 Radio · §12 */
.m-radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text);
  user-select: none;
}
.m-radio__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.m-radio__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--m-border-input);
  background: var(--m-bg-card);
  position: relative;
  box-sizing: border-box;
}
.m-radio__input:checked + .m-radio__box {
  background: var(--m-primary);
  border-color: var(--m-primary);
}
.m-radio__input:checked + .m-radio__box::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
}
.m-radio-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 18px;
  color: var(--m-text);
  cursor: pointer;
  border-bottom: 1px solid var(--m-border);
}
.m-radio-row__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.m-radio-row__label { flex: 1; }
.m-radio-row__tick {
  width: 20px;
  height: 20px;
  color: var(--m-primary);
  visibility: hidden;
}
.m-radio-row__input:checked ~ .m-radio-row__tick { visibility: visible; }
.m-radio-list { list-style: none; margin: 0; padding: 0; }
.m-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
}
.m-radio-card {
  padding: 12px;
  border: 1px solid var(--m-border);
  border-radius: var(--m-radius);
  background: var(--m-bg-card);
}
.m-radio-card:has(.m-radio__input:checked) { border-color: var(--m-primary); }
.m-radio-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.m-radio-card__meta {
  margin-top: 4px;
  padding-left: 28px;
  font-size: 12px;
  color: var(--m-text-muted);
}
.m-section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--m-border);
  background: var(--m-bg-card);
}
.m-section-bar__action {
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--m-primary);
}
.m-cascade__option .m-radio-row {
  padding: 10px 12px;
  border-bottom: none;
  font-size: 12px;
}

.m-picker-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--m-border);
  font-size: 12px;
}
.m-picker-item .m-check { width: 100%; }

/* 选择器 Picker · §17 */
.m-picker-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text);
  cursor: pointer;
  border-bottom: 0.5px solid var(--m-border);
  box-sizing: border-box;
}
.m-picker-row__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.m-picker-row__label {
  flex: 1;
  min-width: 0;
}
.m-picker-row__arrow {
  flex-shrink: 0;
  color: var(--m-text-muted);
}
.m-sheet--picker .m-sheet__body--flush {
  padding: 0;
  flex: 1;
  overflow: auto;
}
.m-sheet__header--bar.is-title-only {
  grid-template-columns: 44px 1fr 44px;
}
.m-sheet__header--bar.is-title-only .m-sheet__confirm {
  visibility: hidden;
  pointer-events: none;
}
.m-sheet__summary strong,
.m-sheet__summary .is-primary {
  color: var(--m-primary);
  font-weight: 500;
}

/* Sheet 选择 · Figma 顶栏 × | 标题 | 确认 */
.m-sheet__header--bar {
  display: grid;
  grid-template-columns: 44px 1fr 56px;
  align-items: center;
  padding: 12px 8px;
  gap: 0;
}
.m-sheet__header--bar .m-sheet__title {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.m-sheet__header--bar .m-sheet__close {
  justify-self: start;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.m-sheet__confirm {
  justify-self: end;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--m-primary);
  cursor: pointer;
  padding: 8px;
}
.m-sheet__toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--m-border);
}
.m-sheet__toolbar .m-search-bar__inner { flex: 1; }
.m-sheet__search-btn {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--m-primary);
  cursor: pointer;
}
.m-check-list { list-style: none; margin: 0; padding: 0; }
.m-check-list__item {
  border-bottom: 1px solid var(--m-border);
}
.m-check-list__item .m-check {
  width: 100%;
  padding: 14px 16px;
  font-size: 12px;
}
.m-check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--m-border);
  width: 100%;
}
.m-check-card__main { flex: 1; min-width: 0; }
.m-check-card__title {
  font-size: 12px;
  font-weight: 500;
  line-height: 22px;
  color: var(--m-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-check-card__desc {
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text-muted);
}
.m-sheet__footer--summary {
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-sheet__footer--summary .m-btn--primary { flex: 1; }
.m-sheet__summary {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--m-text);
  cursor: pointer;
}
.m-cascade {
  background: var(--m-bg-card);
  border-radius: 12px 12px 0 0;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.m-cascade__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  font-size: 12px;
  color: var(--m-primary);
  border: none;
  background: transparent;
  cursor: pointer;
}
.m-cascade__cols {
  display: flex;
  flex: 1;
  min-height: 200px;
  border-top: 1px solid var(--m-border);
}
.m-cascade__col {
  flex: 1;
  overflow-y: auto;
  border-right: 1px solid var(--m-border);
  padding: 8px 0;
}
.m-cascade__col:last-child { border-right: none; }
.m-cascade__col-title {
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--m-primary);
}
.m-cascade__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--m-text);
  cursor: pointer;
}
.m-cascade__option.is-active { color: var(--m-primary); font-weight: 500; }
.m-cascade__footer {
  display: flex;
  gap: 12px;
  padding: 12px 16px calc(12px + var(--m-safe-bottom));
  border-top: 1px solid var(--m-border);
}
.m-cascade__footer .m-btn { flex: 1; }

/* 级联选择器 Cascader · 竖向路径 + 列表 · aoyou-ui-figma-norms §13 */
.m-cascader {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.m-cascader__path {
  list-style: none;
  margin: 0;
  padding: 8px 16px 4px;
  flex-shrink: 0;
}
.m-cascader__step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  position: relative;
}
.m-cascader__step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 22px;
  bottom: -10px;
  width: 1px;
  background: var(--m-border);
}
.m-cascader__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--m-primary);
  background: var(--m-bg-card);
  box-sizing: border-box;
  z-index: 1;
}
.m-cascader__step.is-active .m-cascader__dot {
  background: var(--m-primary);
}
.m-cascader__step-btn,
.m-cascader__step-label {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text);
  text-align: left;
  cursor: pointer;
}
.m-cascader__step.is-active .m-cascader__step-label,
.m-cascader__step.is-active .m-cascader__step-btn {
  color: var(--m-primary);
  font-weight: 500;
  cursor: default;
}
.m-cascader__step .ui-icon {
  flex-shrink: 0;
  color: var(--m-text-muted);
}
.m-cascader__panel {
  flex: 1;
  overflow-y: auto;
  border-top: 1px solid var(--m-border);
  -webkit-overflow-scrolling: touch;
}
.m-cascader__subtitle {
  margin: 0;
  padding: 10px 16px 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text-muted);
}
.m-sheet--cascader .m-sheet__body {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.m-footer-hint {
  padding: 8px 16px;
  font-size: 12px;
  color: var(--m-text-muted);
  text-align: center;
}

/* 步骤条 Steps · aoyou-ui-figma-norms §8 */
.m-steps, .ui-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.m-steps__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  box-sizing: border-box;
  flex-shrink: 0;
}
.m-steps__title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--m-text);
}
.m-steps__desc {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text-muted);
}
.m-steps__item.is-process .m-steps__title { color: var(--m-primary); }
.m-steps__item.is-wait .m-steps__title { color: var(--m-text-muted); }
.m-steps__item.is-error .m-steps__title { color: var(--m-danger); }
.m-steps__item.is-wait .m-steps__icon {
  background: #d9d9d9;
  color: #fff;
}
.m-steps__item.is-process .m-steps__icon {
  background: var(--m-primary);
  color: #fff;
}
.m-steps__item.is-finish .m-steps__icon {
  background: transparent;
  border: 2px solid var(--m-primary);
  color: var(--m-primary);
}
.m-steps__item.is-error .m-steps__icon {
  background: transparent;
  border: 2px solid var(--m-danger);
  color: var(--m-danger);
}
.m-steps--horizontal {
  display: flex;
  padding: 16px 8px 8px;
  background: var(--m-bg-card);
}
.m-steps--horizontal .m-steps__item {
  flex: 1;
  min-width: 0;
  text-align: center;
  position: relative;
}
.m-steps--horizontal .m-steps__head {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
}
.m-steps--horizontal .m-steps__item:not(:last-child) .m-steps__head::after {
  content: '';
  position: absolute;
  top: 11px;
  left: calc(50% + 16px);
  width: calc(100% - 32px);
  height: 2px;
  background: var(--m-border);
  z-index: 0;
}
.m-steps--horizontal .m-steps__item.is-finish:not(:last-child) .m-steps__head::after,
.m-steps--horizontal .m-steps__item.is-process:not(:last-child) .m-steps__head::after {
  background: var(--m-primary);
}
.m-steps--horizontal .m-steps__icon { position: relative; z-index: 1; }
.m-steps--vertical {
  padding: 16px 16px 8px;
  background: var(--m-bg-card);
}
.m-steps--vertical .m-steps__item {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  position: relative;
}
.m-steps--vertical .m-steps__item:last-child { padding-bottom: 0; }
.m-steps--vertical .m-steps__item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--m-border);
}
.m-steps--vertical .m-steps__item.is-finish:not(:last-child)::before,
.m-steps--vertical .m-steps__item.is-process:not(:last-child)::before {
  background: var(--m-primary);
}
.m-steps--vertical .m-steps__item.is-finish .m-steps__icon,
.m-steps--vertical .m-steps__item.is-process .m-steps__icon {
  width: 10px;
  height: 10px;
  margin: 7px;
  border: none;
}
.m-steps--vertical .m-steps__item.is-finish .m-steps__icon {
  background: var(--m-primary);
}
.m-steps--vertical .m-steps__item.is-process .m-steps__icon {
  background: var(--m-primary);
  box-shadow: 0 0 0 4px var(--m-primary-light);
}
.m-steps--vertical .m-steps__item.is-wait .m-steps__icon {
  width: 10px;
  height: 10px;
  margin: 7px;
  background: transparent;
  border: 2px solid #d9d9d9;
  color: transparent;
}
.m-steps--vertical .m-steps__item.is-finish .m-steps__icon .ui-icon,
.m-steps--vertical .m-steps__item.is-process .m-steps__icon .ui-icon { display: none; }
.m-step-footer {
  display: flex;
  gap: 12px;
  padding: 12px 16px calc(12px + var(--m-safe-bottom));
  background: var(--m-bg-card);
  border-top: 1px solid var(--m-border);
}
.m-step-footer .m-btn { flex: 1; border-radius: 999px; }
.m-step-footer .m-btn--ghost {
  color: var(--m-text);
  border: 1px solid var(--m-border-input);
}

/* 侧边栏 SideBar · aoyou-ui-figma-norms §9 */
.m-sidebar-layout {
  flex: 1;
  display: flex;
  min-height: 0;
  overflow: hidden;
}
.m-page--sidebar .m-sidebar-layout {
  min-height: calc(100vh - var(--m-navbar-h) - var(--m-tabbar-h) - var(--m-safe-top) - var(--m-safe-bottom) - 48px);
}
.m-page--sidebar.m-page--no-tabbar .m-sidebar-layout {
  min-height: calc(100vh - var(--m-navbar-h) - var(--m-safe-top) - 16px);
}
.m-sidebar {
  flex: 0 0 88px;
  background: var(--m-bg-page);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.m-sidebar__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 6px;
  border: none;
  background: transparent;
  font-size: 12px;
  line-height: 20px;
  color: var(--m-text);
  cursor: pointer;
  text-align: center;
}
.m-sidebar__item.is-active {
  color: var(--m-primary);
  background: var(--m-bg-card);
  font-weight: 500;
}
.m-sidebar__item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--m-primary);
}
.m-sidebar__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--m-danger);
  border: 0.5px solid #ffffff;
  box-sizing: border-box;
}
.m-sidebar__panel {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--m-bg-card);
}
.m-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 8px;
  font-size: 12px;
  line-height: 18px;
}
.m-section-title--accent .m-section-title__text {
  display: flex;
  align-items: center;
  color: var(--m-primary);
  font-weight: 500;
}
.m-section-title--accent .m-section-title__text::before {
  content: '';
  flex-shrink: 0;
  width: 3px;
  height: 14px;
  margin-right: 8px;
  background: var(--m-primary);
  border-radius: 0 2px 2px 0;
}
.m-section-title__link {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
  color: var(--m-text-muted);
  text-decoration: none;
  flex-shrink: 0;
}
.m-section-title--plain {
  background: var(--m-bg-page);
  margin: 0;
}
.m-section-title--plain .m-section-title__text {
  color: var(--m-text);
  font-weight: 500;
}
.m-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 12px 16px;
}
.m-category-card {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.m-category-card__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--m-radius);
  background: var(--m-bg-page);
  object-fit: cover;
}
.m-category-card__name {
  margin-top: 6px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 上传 Upload §22 */
.m-upload {
  padding: 12px 16px 16px;
  background: var(--m-bg-card);
}
.m-upload__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.m-upload__label { flex: 1; min-width: 0; }
.m-upload__title {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--m-text);
}
.m-upload__title .is-required { color: var(--m-danger); margin-right: 2px; }
.m-upload__hint {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text-muted);
}
.m-upload__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 12px;
  line-height: 18px;
  color: var(--m-primary);
  cursor: pointer;
}
.m-upload__trigger .ui-icon { color: var(--m-primary); }
.m-upload__trigger:disabled {
  color: var(--m-text-disabled);
  cursor: not-allowed;
}
.m-upload__trigger:disabled .ui-icon { color: var(--m-text-disabled); }

.m-upload__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.m-upload__thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f5;
}
.m-upload__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-upload__thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-upload__thumb-remove .ui-icon { width: 10px; height: 10px; color: #fff; }

.m-upload__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.m-upload__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}
.m-file-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}
.m-file-icon--xlsx { background: #e8f7ef; color: #00b42a; }
.m-file-icon--pdf { background: #ffece8; color: #f53f3f; }
.m-file-icon--doc { background: #e8f2ff; color: #005ee5; }

.m-upload__meta { flex: 1; min-width: 0; }
.m-upload__name {
  font-size: 12px;
  line-height: 18px;
  color: var(--m-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-upload__size {
  margin-top: 2px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text-muted);
}
.m-upload__status {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text-muted);
}
.m-upload__status .ui-icon { width: 16px; height: 16px; }
.m-upload__status.is-uploading { color: var(--m-text-muted); }
.m-upload__status.is-uploading .ui-icon { color: var(--m-primary); }
.m-upload__status.is-success { color: var(--m-success); }
.m-upload__status.is-success .ui-icon { color: var(--m-success); }
.m-upload__status.is-error { color: var(--m-text-muted); }
.m-upload__status.is-error .ui-icon { color: var(--m-text-muted); }
.m-upload__status-remove {
  margin-left: 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  color: var(--m-danger);
}
.m-upload__status-remove .ui-icon { width: 16px; height: 16px; color: var(--m-danger); }

.m-upload__spin {
  width: 16px;
  height: 16px;
  border: 2px solid var(--m-primary-light);
  border-top-color: var(--m-primary);
  border-radius: 50%;
  animation: m-upload-spin 0.8s linear infinite;
}
@keyframes m-upload-spin {
  to { transform: rotate(360deg); }
}

.m-form-card .m-upload {
  padding: 12px 0 4px;
  background: transparent;
}
.m-form-card .m-upload__head { padding: 0 16px; }
.m-form-card .m-upload__grid,
.m-form-card .m-upload__list { padding: 0 16px 12px; }

/* 公告栏 NoticeBar §23 */
.m-notice-bar, .ui-notice-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 4px;
  border: 1px solid transparent;
}
.m-notice-bar--info, .ui-notice-bar--info {
  background: var(--m-primary-light);
  border-color: #b3d4ff;
  color: var(--m-primary);
}
.m-notice-bar--success, .ui-notice-bar--success {
  background: #e8ffea;
  border-color: #7be188;
  color: var(--m-success);
}
.m-notice-bar--danger, .ui-notice-bar--danger {
  background: #ffece8;
  border-color: #fbaca3;
  color: var(--m-danger);
}
.m-notice-bar--warning, .ui-notice-bar--warning {
  background: #fff7e8;
  border-color: #ffcf8b;
  color: var(--m-warning);
}
.m-notice-bar__icon, .ui-notice-bar__icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-notice-bar__icon .ui-icon, .ui-notice-bar__icon .ui-icon { color: inherit; }
.m-notice-bar__text, .ui-notice-bar__text {
  flex: 1;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-notice-bar__text.is-scroll, .ui-notice-bar__text.is-scroll {
  display: block;
  -webkit-line-clamp: unset;
  overflow: hidden;
  white-space: nowrap;
}
.m-notice-bar__text.is-scroll .m-notice-bar__marquee,
.ui-notice-bar__text.is-scroll .ui-notice-bar__marquee {
  display: inline-block;
  padding-left: 100%;
  animation: m-notice-marquee 14s linear infinite;
}
@keyframes m-notice-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
.m-notice-bar__action, .ui-notice-bar__action {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  cursor: pointer;
}
.m-notice-bar__action .ui-icon { color: inherit; }
.m-notice-bar.is-link, .ui-notice-bar.is-link { cursor: pointer; }
.m-notice-bar[hidden], .ui-notice-bar[hidden] { display: none !important; }

/* 气泡 Popover §24 */
.m-popover, .ui-popover {
  --popover-bg: #ffffff;
  --popover-arrow: 6px;
  position: relative;
  display: inline-block;
  max-width: 248px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 8px;
  box-sizing: border-box;
  z-index: 10;
}
.m-popover--light, .ui-popover--light {
  --popover-bg: #ffffff;
  color: var(--m-text);
  background: var(--popover-bg);
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.m-popover--primary, .ui-popover--primary {
  --popover-bg: var(--m-primary);
  color: #ffffff;
  background: var(--popover-bg);
  padding: 12px;
  max-width: 248px;
}
.m-popover--dark, .ui-popover--dark {
  --popover-bg: #303030;
  color: #ffffff;
  background: var(--popover-bg);
  padding: 0;
  min-width: 140px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.m-popover__row, .ui-popover__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.m-popover__row--top, .ui-popover__row--top {
  align-items: flex-start;
}
.m-popover__text, .ui-popover__text {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.m-popover__footer, .ui-popover__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.m-popover__btn, .ui-popover__btn {
  flex-shrink: 0;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 18px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.m-popover--light .m-popover__btn--primary,
.ui-popover--light .ui-popover__btn--primary {
  background: var(--m-primary);
  color: #fff;
}
.m-popover--primary .m-popover__btn--ghost,
.ui-popover--primary .m-popover__btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.m-popover--primary .m-popover__btn--solid,
.ui-popover--primary .m-popover__btn--solid {
  background: #fff;
  color: var(--m-primary);
}
.m-popover__close, .ui-popover__close {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: none;
  color: var(--m-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
.m-popover__menu, .ui-popover__menu {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}
.m-popover__menu a, .ui-popover__menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  line-height: 18px;
}
.m-popover__menu a:hover, .ui-popover__menu a:hover { background: rgba(255, 255, 255, 0.08); }
.m-popover__menu li + li, .ui-popover__menu li + li {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.m-popover__menu .ui-icon, .ui-popover__menu .ui-icon { color: #fff; width: 16px; height: 16px; }

/* 箭头 · 优先 top / bottom */
.m-popover::before, .ui-popover::before {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border: var(--popover-arrow) solid transparent;
  pointer-events: none;
}
.m-popover--placement-top::before,
.m-popover--placement-top-start::before,
.m-popover--placement-top-end::before,
.ui-popover--placement-top::before,
.ui-popover--placement-top-start::before,
.ui-popover--placement-top-end::before {
  bottom: calc(var(--popover-arrow) * -2);
  border-top-color: var(--popover-bg);
}
.m-popover--placement-top::before, .ui-popover--placement-top::before { left: 50%; transform: translateX(-50%); }
.m-popover--placement-top-start::before, .ui-popover--placement-top-start::before { left: 16px; }
.m-popover--placement-top-end::before, .ui-popover--placement-top-end::before { right: 16px; left: auto; }

.m-popover--placement-bottom::before,
.m-popover--placement-bottom-start::before,
.m-popover--placement-bottom-end::before,
.ui-popover--placement-bottom::before,
.ui-popover--placement-bottom-start::before,
.ui-popover--placement-bottom-end::before {
  top: calc(var(--popover-arrow) * -2);
  border-bottom-color: var(--popover-bg);
}
.m-popover--placement-bottom::before, .ui-popover--placement-bottom::before { left: 50%; transform: translateX(-50%); }
.m-popover--placement-bottom-start::before, .ui-popover--placement-bottom-start::before { left: 16px; }
.m-popover--placement-bottom-end::before, .ui-popover--placement-bottom-end::before { right: 16px; left: auto; }

.m-popover--placement-left::before,
.m-popover--placement-left-start::before,
.m-popover--placement-left-end::before,
.ui-popover--placement-left::before,
.ui-popover--placement-left-start::before,
.ui-popover--placement-left-end::before {
  right: calc(var(--popover-arrow) * -2);
  border-left-color: var(--popover-bg);
}
.m-popover--placement-left::before, .ui-popover--placement-left::before { top: 50%; transform: translateY(-50%); }
.m-popover--placement-left-start::before, .ui-popover--placement-left-start::before { top: 12px; }
.m-popover--placement-left-end::before, .ui-popover--placement-left-end::before { bottom: 12px; top: auto; }

.m-popover--placement-right::before,
.m-popover--placement-right-start::before,
.m-popover--placement-right-end::before,
.ui-popover--placement-right::before,
.ui-popover--placement-right-start::before,
.ui-popover--placement-right-end::before {
  left: calc(var(--popover-arrow) * -2);
  border-right-color: var(--popover-bg);
}
.m-popover--placement-right::before, .ui-popover--placement-right::before { top: 50%; transform: translateY(-50%); }
.m-popover--placement-right-start::before, .ui-popover--placement-right-start::before { top: 12px; }
.m-popover--placement-right-end::before, .ui-popover--placement-right-end::before { bottom: 12px; top: auto; }

.m-popover[hidden], .ui-popover[hidden] { display: none !important; }

/* 头像 Avatar §31 */
.m-avatar, .ui-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
  vertical-align: middle;
}
.m-avatar--image, .ui-avatar--image {
  border: 1px solid var(--m-border);
  border-radius: 4px;
  background: var(--m-bg-card);
}
.m-avatar--image img, .ui-avatar--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-avatar--text, .ui-avatar--text {
  border-radius: 50%;
  color: #ffffff;
  font-weight: 500;
  background: var(--m-primary);
  line-height: 1;
  white-space: nowrap;
}
.m-avatar--24, .ui-avatar--24 { width: 24px; height: 24px; font-size: 12px; }
.m-avatar--32, .ui-avatar--32 { width: 32px; height: 32px; font-size: 12px; }
.m-avatar--40, .ui-avatar--40 { width: 40px; height: 40px; font-size: 12px; }
.m-avatar--44, .ui-avatar--44 { width: 44px; height: 44px; font-size: 12px; }
.m-avatar--48, .ui-avatar--48 { width: 48px; height: 48px; font-size: 12px; }
.m-avatar--text.m-avatar--24 .m-avatar__label,
.m-avatar--text.m-avatar--32 .m-avatar__label { max-width: 1.2em; overflow: hidden; }
.m-avatar__label { display: block; transform: scale(0.92); }
.m-avatar-group, .ui-avatar-group {
  display: inline-flex;
  align-items: center;
}
.m-avatar-group .m-avatar:not(:first-child),
.m-avatar-group .ui-avatar:not(:first-child) {
  margin-left: -8px;
  box-shadow: 0 0 0 2px #ffffff;
}
.m-avatar-group--32 .m-avatar:not(:first-child) { margin-left: -10px; }
.m-avatar-group--40 .m-avatar:not(:first-child) { margin-left: -12px; }
.m-avatar--overflow, .ui-avatar--overflow {
  border-radius: 50%;
  background: var(--m-primary-light);
  color: var(--m-primary);
  font-size: 12px;
  font-weight: 500;
  border: none;
  box-shadow: 0 0 0 2px #ffffff;
}
.m-avatar--overflow.m-avatar--24,
.m-avatar--overflow.m-avatar--32 { font-size: 12px; }
.m-avatar__badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

/* 徽标 Badge §32（头像/Tab/文案/图标通用） */
.m-badge-host, .m-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.m-badge, .ui-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--m-danger);
  color: #ffffff;
  border: 0.5px solid #ffffff;
  box-sizing: border-box;
  font-weight: 500;
  pointer-events: none;
  vertical-align: middle;
}
.m-badge-host > .m-badge,
.m-badge-host > .ui-badge,
.m-avatar-wrap > .m-badge,
.m-avatar-wrap > .m-avatar__badge,
.m-avatar-wrap > .ui-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}
.m-badge--dot, .ui-badge--dot,
.m-avatar__badge:not(.m-avatar__badge--count):not(.m-avatar__badge--overflow) {
  width: 8px;
  height: 8px;
  min-width: 8px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  line-height: 0;
}
.m-badge--count, .ui-badge--count,
.m-avatar__badge--count {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  border-radius: 50%;
}
.m-badge--count.is-wide, .ui-badge--count.is-wide,
.m-avatar__badge--count.m-avatar__badge--overflow,
.m-badge--overflow, .ui-badge--overflow {
  border-radius: 8px;
  min-width: 22px;
  padding: 0 4px;
}
.m-badge--text, .ui-badge--text {
  height: 16px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 15px;
  border-radius: 8px;
  white-space: nowrap;
}
.m-badge-host--inline .m-badge, .m-badge-host--inline .ui-badge {
  top: 0;
  right: 0;
  transform: translate(40%, -40%);
}

/* 图片预览 ImageViewer §26 */
.m-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  max-width: var(--m-width);
  margin: 0 auto;
  left: 0;
  right: 0;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.m-image-viewer[hidden] { display: none !important; }
.m-image-viewer--h5 .m-image-viewer__shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #1a1a1a;
}
.m-image-viewer__bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 8px;
  padding-top: var(--m-safe-top);
  background: rgba(0, 0, 0, 0.45);
}
.m-image-viewer__btn {
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.m-image-viewer__btn .ui-icon { color: #fff; width: 22px; height: 22px; }
.m-image-viewer__index {
  font-size: 12px;
  line-height: 22px;
  font-weight: 500;
}
.m-image-viewer__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 16px;
  touch-action: pan-y;
}
.m-image-viewer__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  user-select: none;
}
.m-image-viewer.is-dimmed .m-image-viewer__shell { opacity: 0.35; }

/* 动作面板 ActionSheet §30（≠ §17 Picker Sheet） */
.m-action-sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 1200;
  max-width: var(--m-width);
  margin: 0 auto;
  left: 0;
  right: 0;
  background: var(--m-mask);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 8px calc(8px + var(--m-safe-bottom));
  gap: 8px;
}
.m-action-sheet-mask[hidden] { display: none !important; }
.m-action-sheet__group {
  background: var(--m-bg-card);
  border-radius: 8px;
  overflow: hidden;
}
.m-action-sheet__item {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-bottom: 0.5px solid var(--m-border);
  background: var(--m-bg-card);
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text);
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}
.m-action-sheet__group .m-action-sheet__item:last-child { border-bottom: none; }
.m-action-sheet__item--danger {
  color: var(--m-danger);
  font-weight: 500;
}
.m-action-sheet__cancel {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: var(--m-bg-card);
  font-size: 12px;
  line-height: 22px;
  color: var(--m-text);
  text-align: center;
  cursor: pointer;
  font-family: inherit;
}

/* 对话框 Dialog §27 · 反馈类（≠ 底部 Sheet / PC 表单 ui-dialog） */
.m-dialog-mask {
  position: fixed;
  inset: 0;
  z-index: 1300;
  max-width: var(--m-width);
  margin: 0 auto;
  left: 0;
  right: 0;
  background: var(--m-mask);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.m-dialog-mask[hidden] { display: none !important; }
.m-dialog {
  width: 100%;
  max-width: 280px;
  background: var(--m-bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.m-dialog__head {
  padding: 24px 20px 0;
  text-align: center;
}
.m-dialog__title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  color: var(--m-text);
}
.m-dialog__body {
  padding: 8px 20px 20px;
  font-size: 12px;
  line-height: 18px;
  color: var(--m-text-secondary);
  text-align: center;
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.m-dialog__body:only-child { padding-top: 20px; }

.m-dialog__footer--text { border-top: 0.5px solid var(--m-border); }
.m-dialog__footer--text .m-dialog__btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: none;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.m-dialog__btn--primary { color: var(--m-primary); font-weight: 500; }
.m-dialog__btn--secondary { color: var(--m-text); }

.m-dialog__footer--split {
  display: flex;
  border-top: 0.5px solid var(--m-border);
}
.m-dialog__footer--split .m-dialog__btn {
  flex: 1;
  padding: 14px 12px;
  border: none;
  background: none;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.m-dialog__footer--split .m-dialog__btn + .m-dialog__btn {
  border-left: 0.5px solid var(--m-border);
}

.m-dialog__footer--stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 16px 16px;
}
.m-dialog__footer--stack .m-dialog__block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
  font-family: inherit;
}
.m-dialog__block--primary {
  background: var(--m-primary);
  color: #fff;
}
.m-dialog__block--primary:active { background: var(--m-primary-active); }
.m-dialog__block--secondary {
  background: var(--m-primary-light);
  color: var(--m-primary);
}
.m-dialog__block--secondary:active { background: #b6d2fa; }

/* 加载 Loading §28 */
.m-loading, .ui-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text-muted);
}
.m-loading--vertical, .ui-loading--vertical {
  flex-direction: column;
}
.m-loading__text, .ui-loading__text { margin: 0; }

.m-loading__spin {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}
.m-loading__spin--ring {
  border: 2px solid var(--m-primary-light);
  border-top-color: var(--m-primary);
  border-right-color: var(--m-primary);
  border-radius: 50%;
  animation: m-loading-spin 0.75s linear infinite;
}
.m-loading__spin--dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 24px;
}
.m-loading__spin--dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m-primary);
  font-style: normal;
  animation: m-loading-dot 1s ease-in-out infinite;
}
.m-loading__spin--dots i:nth-child(1) { opacity: 0.35; animation-delay: 0s; }
.m-loading__spin--dots i:nth-child(2) { opacity: 1; animation-delay: 0.15s; }
.m-loading__spin--dots i:nth-child(3) { opacity: 0.35; animation-delay: 0.3s; }
.m-loading__spin--spoke {
  border-radius: 50%;
  background: conic-gradient(
    from -90deg,
    #303030 0deg,
    rgba(48, 48, 48, 0.85) 20deg,
    rgba(48, 48, 48, 0.45) 40deg,
    rgba(48, 48, 48, 0.2) 60deg,
    rgba(48, 48, 48, 0.08) 80deg,
    rgba(48, 48, 48, 0.08) 360deg
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px));
  animation: m-loading-spin 0.9s linear infinite;
}
@keyframes m-loading-spin {
  to { transform: rotate(360deg); }
}
@keyframes m-loading-dot {
  0%, 100% { transform: scale(0.85); opacity: 0.35; }
  50% { transform: scale(1); opacity: 1; }
}

.m-loading-block, .ui-loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 16px;
  min-height: 160px;
  width: 100%;
}
.m-loading-pull, .ui-loading-pull {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 16px;
  color: var(--m-text-muted);
  background: var(--m-bg-page);
}
.m-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.75);
}

/* 轻提示 Toast §29 */
.m-toast-mask {
  position: fixed;
  inset: 0;
  z-index: 1400;
  max-width: var(--m-width);
  margin: 0 auto;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: auto;
}
.m-toast-mask[hidden] { display: none !important; }
.m-toast, .ui-toast {
  max-width: min(280px, calc(100vw - 48px));
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
  pointer-events: none;
}
.m-toast--text, .ui-toast--text {
  padding: 12px 16px;
}
.m-toast--icon, .ui-toast--icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  min-width: 112px;
}
.m-toast__text, .ui-toast__text {
  margin: 0;
  max-width: 168px;
  word-break: break-word;
}
.m-toast__icon, .ui-toast__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.m-toast__icon--success {
  border-radius: 50%;
  border: 2px solid #ffffff;
}
.m-toast__icon .ui-icon { width: 20px; height: 20px; color: #ffffff; }
.m-toast__spin {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-right-color: #ffffff;
  border-radius: 50%;
  animation: m-loading-spin 0.75s linear infinite;
}

/* 分割线 Line */
.m-divider, .ui-divider {
  border: none;
  border-top: 1px solid var(--m-border);
  margin: 12px 16px;
  height: 0;
}
.m-divider--text, .ui-divider--text {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 16px;
  font-size: 12px;
  line-height: var(--m-line-tabbar);
  color: var(--m-text-muted);
}
.m-divider--text::before,
.m-divider--text::after,
.ui-divider--text::before,
.ui-divider--text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--m-border);
}
.m-divider--vertical, .ui-divider--vertical {
  display: inline-block;
  width: 1px;
  height: 14px;
  margin: 0 12px;
  background: var(--m-border);
  vertical-align: middle;
}

/* 图标 · skeleton/icons */
.ui-icon, .m-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--m-text-secondary);
}
.ui-icon svg, .m-icon svg { width: 100%; height: 100%; display: block; }
.m-icon--tab { width: 22px; height: 22px; }
.m-navbar__back.ui-icon-btn,
.m-navbar__close.ui-icon-btn {
  width: 40px;
  height: var(--m-navbar-h);
  color: var(--m-text);
}
.ui-icon--md { width: 20px; height: 20px; }
.m-search-bar__icon[data-icon]::before,
.m-search-bar__icon[data-icon]::after { display: none; }
.m-search-bar__icon[data-icon] { width: 16px; height: 16px; margin-right: 8px; }
.m-lookup__icon[data-icon]::before,
.m-lookup__icon[data-icon]::after { display: none; }
.m-lookup__icon[data-icon] { width: 18px; height: 18px; }
