/* ============================================================
   Mint-Tool 手机端全适配皮肤  v1.0
   设计：白色底 + 蓝色主色 + 淡蓝按钮 + 液态玻璃（Liquid Glass）
   说明：只覆盖样式，不动业务逻辑；桌面端建议由 mm-guard.js 拦截
   ============================================================ */

/* ---------- 1. 设计变量 ---------- */
:root {
  --mm-primary: #2e7cf6;
  --mm-primary-strong: #1f66df;
  --mm-primary-soft: #eaf2ff;
  --mm-primary-soft-2: #d8e8ff;
  --mm-primary-line: #dce8fb;
  --mm-bg: #f5f8ff;
  --mm-card: #ffffff;
  --mm-text: #16243a;
  --mm-text-2: #5b6b82;
  --mm-text-3: #93a2b8;
  --mm-line: #e8f0fc;
  --mm-radius-lg: 18px;
  --mm-radius: 14px;
  --mm-radius-sm: 10px;
  --mm-shadow: 0 6px 20px rgba(46, 124, 246, .08), 0 1px 2px rgba(16, 42, 80, .04);
  --mm-shadow-soft: 0 2px 10px rgba(46, 124, 246, .06);
  --mm-glass-bg: rgba(255, 255, 255, .78);
  --mm-glass-border: rgba(255, 255, 255, .85);
  --mm-topbar-h: 52px;
  --mm-bottomnav-h: 62px;
  --mm-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mm-safe-top: env(safe-area-inset-top, 0px);

  /* Element Plus 主题变量映射 */
  --el-color-primary: #2e7cf6;
  --el-color-primary-light-3: #6ba0ff;
  --el-color-primary-light-5: #9dc0ff;
  --el-color-primary-light-7: #c7dcff;
  --el-color-primary-light-8: #dce9ff;
  --el-color-primary-light-9: #eef5ff;
  --el-color-primary-dark-2: #1f66df;
  --el-border-radius-base: 12px;
  --el-text-color-primary: #16243a;
  --el-text-color-regular: #43536b;
  --el-fill-color-blank: #ffffff;
  --el-bg-color: #ffffff;
  --el-bg-color-page: #f5f8ff;
  --el-border-color: #e8f0fc;
  --el-border-color-light: #eef4fe;
  --el-border-color-lighter: #f2f7ff;
}

/* 用户自己在「主题配色」里改过主色时，保持淡蓝体系不被覆盖得太花 */
html { --main-theme-color: #2e7cf6; }

/* ---------- 2. 基础重置 ---------- */
html, body {
  margin: 0;
  padding: 0;
  background: var(--mm-bg);
  color: var(--mm-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: contain;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
* { -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-size: 16px !important; } /* 防 iOS 缩放 */
img { max-width: 100%; }

/* 滚动条细一点 */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: #cfdff5; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. 布局骨架：侧栏变抽屉 ---------- */
.dashboard-container {
  background: var(--mm-bg) !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

html.mm-mobile .sidebar[data-v-3bc516d8],
html.mm-mobile .dashboard-container .sidebar,
.sidebar[data-v-3bc516d8],
.dashboard-container .sidebar {
  position: fixed !important;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(78vw, 300px) !important;
  max-width: 300px;
  z-index: 1200;
  transform: translateX(-104%);
  transition: transform .32s cubic-bezier(.32, .72, 0, 1), box-shadow .3s ease;
  border-right: none !important;
  border-radius: 0 22px 22px 0;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  /* 用不透明背景，避免底下内容透上来导致发虚 */
  background: #ffffff !important;
  padding-top: var(--mm-safe-top);
  padding-bottom: var(--mm-safe-bottom);
}
html.mm-drawer-open .sidebar[data-v-3bc516d8],
html.mm-drawer-open .dashboard-container .sidebar,
html.mm-mobile.mm-drawer-open .sidebar[data-v-3bc516d8],
.mm-drawer-open .sidebar[data-v-3bc516d8],
.mm-drawer-open .dashboard-container .sidebar {
  transform: translateX(0) !important;
  box-shadow: 0 24px 60px rgba(20, 52, 100, .22) !important;
}
.sidebar.is-collapse[data-v-3bc516d8] { width: min(78vw, 300px) !important; }

.logo[data-v-3bc516d8], .dashboard-container .logo {
  height: 56px !important;
  border-bottom: 1px solid var(--mm-line) !important;
  background: transparent !important;
}
.logo-tag[data-v-3bc516d8] {
  background: linear-gradient(180deg, #4d93ff, #2e7cf6) !important;
  border: none !important;
  box-shadow: 0 6px 14px rgba(46, 124, 246, .28);
}

.sidebar-menu[data-v-3bc516d8] { background: transparent !important; }
.sidebar-menu .el-menu-item[data-v-3bc516d8],
.sidebar-menu[data-v-3bc516d8] .el-sub-menu__title {
  height: 46px !important;
  line-height: 46px !important;
  margin: 2px 10px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  font-size: 14.5px !important;
}
.sidebar-menu .el-menu-item.is-active[data-v-3bc516d8] {
  background: linear-gradient(180deg, #eef5ff, #e2eeff) !important;
  color: var(--mm-primary) !important;
  font-weight: 600 !important;
  box-shadow: inset 0 0 0 1px rgba(46, 124, 246, .12);
}

/* 遮罩 */
/* 遮罩：z-index 必须低于侧栏(1200)，否则会盖住侧栏导致点击被拦截；
   也不要用 backdrop-filter —— 它会把下面整块内容（含侧栏）一起模糊，
   这就是「侧边栏弹出来就变模糊」的原因。 */
.mm-scrim {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(18, 38, 70, .30);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.mm-drawer-open .mm-scrim { opacity: 1; pointer-events: auto; }

/* 主区域 */
.main-container[data-v-3bc516d8] { width: 100%; overflow: hidden; }

/* ===== 顶栏：保留原 header 的全部按钮，只做手机端紧凑化 =====
   之前这里写了 display:none 想用自定义顶栏替代，结果主题配色/刷新/用户菜单
   全丢了，侧栏折叠按钮也一起没了。现在改成「保留 + 压缩」。 */
html.mm-mobile .header[data-v-3bc516d8],
.header[data-v-3bc516d8] {
  display: flex !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 8px !important;
  background: rgba(255, 255, 255, .82) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(226, 236, 250, .9) !important;
  position: sticky;
  top: 0;
  z-index: 900;
  gap: 6px;
}
.header[data-v-3bc516d8] .header-left,
.header[data-v-3bc516d8] .header-right {
  gap: 6px !important;
  flex-shrink: 0;
}
/* 顶栏按钮：只留图标，文字隐藏，省空间 */
.header[data-v-3bc516d8] .header-btn {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(220, 232, 251, .9) !important;
  background: rgba(255, 255, 255, .7) !important;
  color: var(--mm-primary) !important;
  font-size: 0 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}
.header[data-v-3bc516d8] .header-btn .btn-icon,
.header[data-v-3bc516d8] .header-btn .el-icon {
  font-size: 18px !important;
  margin: 0 !important;
}
.header[data-v-3bc516d8] .header-btn:active { background: #eaf2ff !important; }
/* 折叠/菜单按钮 */
.header[data-v-3bc516d8] .collapse-btn {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(220, 232, 251, .9) !important;
  background: rgba(255, 255, 255, .7) !important;
  color: var(--mm-primary) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}
.header[data-v-3bc516d8] .collapse-btn:active { background: #eaf2ff !important; }
/* ============================================================
   右上角用户区：强制做成 36×36 圆角方块 + 首字母头像
   （之前只限了 width，内部 span 把容器撑开成了椭圆气泡）
   ============================================================ */
.header[data-v-3bc516d8] .welcome-text,
.header[data-v-3bc516d8] .header-right .welcome-text {
  display: none !important;
  font-size: 0 !important;
}
/* 用户名文字全部隐藏（改由伪元素画头像） */
.header[data-v-3bc516d8] .username-text,
.header[data-v-3bc516d8] .header-right .username-text {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
}
/* 用户下拉容器：锁死 36×36，禁止被内容撑开 */
.header[data-v-3bc516d8] .user-dropdown,
.header[data-v-3bc516d8] .header-right .el-dropdown {
  position: relative !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .7) !important;
  border: 1px solid rgba(220, 232, 251, .9) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  box-shadow: none !important;
  vertical-align: middle;
}
/* 内部所有包裹层都撑满并居中，避免任何一层撑出椭圆 */
.header[data-v-3bc516d8] .user-dropdown > *,
.header[data-v-3bc516d8] .user-dropdown span {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  white-space: nowrap;
}
/* 头像：绝对定位居中，不受内部结构影响 */
.header[data-v-3bc516d8] .user-dropdown::after {
  content: var(--mm-user-initial, "M");
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(180deg, #63a2ff, #2e7cf6);
  box-shadow: 0 2px 6px rgba(46, 124, 246, .30);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
  letter-spacing: 0;
  pointer-events: none;
  z-index: 1;
}

/* 标签页：变成横向滚动胶囊条 */
.tabs-container[data-v-3bc516d8] {
  padding: 6px 10px !important;
  background: transparent !important;
  border: none !important;
  height: auto !important;
}
.tabs-wrapper[data-v-3bc516d8] {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.tabs-wrapper[data-v-3bc516d8]::-webkit-scrollbar { display: none; }
.tabs-wrapper .el-tag,
.tabs-wrapper [class*="tab-item"] {
  border-radius: 999px !important;
  height: 30px !important;
  line-height: 30px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  flex: 0 0 auto;
  border: 1px solid var(--mm-primary-line) !important;
  background: #fff !important;
  color: var(--mm-text-2) !important;
  box-shadow: none !important;
}
.tabs-wrapper .is-active,
.tabs-wrapper [class*="tab-item"].active {
  background: linear-gradient(180deg, #eaf2ff, #dcebff) !important;
  color: var(--mm-primary) !important;
  border-color: #c9dcfa !important;
  font-weight: 600 !important;
}

/* 内容区 */
.el-main {
  --el-main-padding: 12px 12px calc(var(--mm-bottomnav-h) + var(--mm-safe-bottom) + 18px) 12px;
  padding: var(--el-main-padding) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  background: var(--mm-bg);
}
.el-main > * { max-width: 100%; }

/* 页面容器统一去掉双重内边距（UI 套 UI 的主要来源之一） */
.page-container,
.content-container,
.page-wrap,
.dashboard-page,
.system-home,
.recharge-page,
.temple-run-page,
.custom-package-wrap,
.user-management,
.item-management,
.package-management,
.auth-management,
.link-management,
.calendar-container,
.account-generate {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}

/* ---------- 4. 底部导航栏（液态玻璃）----------
   注意：顶部导航栏直接使用原 header，不再自造。*/






.mm-bottomnav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1150;   /* 高于遮罩(1050)，抽屉打开时底栏仍可点 */
  height: calc(var(--mm-bottomnav-h) + var(--mm-safe-bottom));
  padding: 6px 8px var(--mm-safe-bottom);
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  border-top: 1px solid rgba(228, 238, 252, .95);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .9) inset, 0 -8px 24px rgba(30, 70, 130, .06);
}
.mm-bottomnav__item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: none;
  background: transparent;
  color: var(--mm-text-3);
  font-size: 11px;
  border-radius: 14px;
  transition: color .2s ease, background .2s ease, transform .16s ease;
}
.mm-bottomnav__item svg { width: 22px; height: 22px; }
.mm-bottomnav__item:active { transform: scale(.94); }
.mm-bottomnav__item.is-active {
  color: var(--mm-primary);
  background: linear-gradient(180deg, rgba(234, 242, 255, .95), rgba(220, 235, 255, .75));
  font-weight: 600;
}
.mm-bottomnav__item.is-active svg { filter: drop-shadow(0 2px 4px rgba(46, 124, 246, .3)); }

/* 主内容：原 header 自己会占位（sticky），这里不再额外留白 */
html.mm-mobile .main-container {
  padding-top: 0 !important;
}
html.mm-mobile .tabs-container { margin-top: 0 !important; }
.el-main { scroll-padding-top: 8px; }

/* 隐藏自定义顶栏（改用原 header，保留全部按钮） */
/* 顶栏使用原 header，不存在自定义顶栏元素 */

/* 标签栏压缩，减少三条栏的压迫感 */
html.mm-mobile .tabs-container {
  padding: 4px 8px !important;
  background: #fff !important;
  border-bottom: 1px solid var(--mm-line) !important;
}
html.mm-mobile .tabs-wrapper .el-tag,
html.mm-mobile .tabs-wrapper [class*="tab-item"] {
  height: 26px !important;
  line-height: 26px !important;
  font-size: 12.5px !important;
  padding: 0 10px !important;
}
/* 内容区上下留白收紧，底部给底栏留位置 */
html.mm-mobile .el-main {
  --el-main-padding: 10px 10px calc(var(--mm-bottomnav-h) + var(--mm-safe-bottom) + 12px) 10px !important;
  padding: var(--el-main-padding) !important;
}
/* 卡片间距收紧 */
html.mm-mobile .el-card { margin-bottom: 10px !important; }
html.mm-mobile .el-card__body { padding: 12px !important; }
html.mm-mobile .el-card__header { padding: 11px 12px !important; font-size: 14.5px !important; }
html.mm-mobile .el-row { row-gap: 8px !important; }
html.mm-mobile .el-form-item { margin-bottom: 12px !important; }

/* 后台页面：压缩无用留白 */
html.mm-mobile .header-title { font-size: 16px !important; }
html.mm-mobile .el-divider { margin: 8px 0 !important; }
html.mm-mobile h1, html.mm-mobile h2 { font-size: 17px !important; margin: 0 0 8px !important; }
html.mm-mobile h3 { font-size: 15px !important; }
html.mm-mobile .el-alert { margin-bottom: 8px !important; }

/* ---------- 5. 卡片：去套娃 ---------- */
.el-card {
  border-radius: var(--mm-radius-lg) !important;
  border: 1px solid var(--mm-line) !important;
  box-shadow: var(--mm-shadow-soft) !important;
  background: var(--mm-card) !important;
  overflow: hidden;
  margin-bottom: 12px;
}
.el-card:last-child { margin-bottom: 0; }
.el-card__header {
  padding: 13px 14px !important;
  border-bottom: 1px solid var(--mm-line) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--mm-text) !important;
  background: linear-gradient(180deg, #fbfdff, #f7faff);
}
.el-card__body { padding: 14px !important; }

/* 关键：卡片里的卡片不再叠边框/阴影/背景，只做分区 */
.el-card .el-card {
  border: 1px solid #eef4fe !important;
  box-shadow: none !important;
  background: #f9fbff !important;
  border-radius: var(--mm-radius) !important;
  margin: 0 0 10px;
}
.el-card .el-card .el-card {
  border: none !important;
  background: transparent !important;
  padding: 0;
}
.el-card .el-card .el-card__header { background: transparent; border-bottom: 1px dashed #e6eefc; }
.el-card + .el-card { margin-top: 12px; }
.el-row { row-gap: 10px; }
.el-col { max-width: 100%; }

/* ---------- 6. 表单 ---------- */
.el-form-item { margin-bottom: 14px !important; display: block !important; }
.el-form-item__label {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  padding: 0 0 6px 2px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--mm-text-2) !important;
}
.el-form-item__content { width: 100% !important; margin-left: 0 !important; }
.el-form--inline .el-form-item { display: block !important; margin-right: 0 !important; }

.el-input__wrapper,
.el-textarea__inner,
.el-select__wrapper,
.el-input-number .el-input__wrapper {
  border-radius: var(--mm-radius) !important;
  background: #f8fbff !important;
  box-shadow: 0 0 0 1px var(--mm-primary-line) inset !important;
  min-height: 44px !important;
  padding: 4px 12px !important;
  transition: box-shadow .2s ease, background .2s ease;
}
.el-input__wrapper.is-focus,
.el-textarea__inner:focus,
.el-select__wrapper.is-focused {
  background: #fff !important;
  box-shadow: 0 0 0 1.5px var(--mm-primary) inset, 0 4px 12px rgba(46, 124, 246, .12) !important;
}
.el-input__inner { height: 36px !important; font-size: 16px !important; }
.el-textarea__inner { padding: 10px 12px !important; }
.el-input-number { width: 100% !important; }
.el-input-number .el-input__inner { text-align: left; }
.el-select { width: 100% !important; }
.el-date-editor.el-input, .el-date-editor.el-input__wrapper, .el-date-editor--daterange {
  width: 100% !important;
}
.el-form-item__error { padding-top: 4px; font-size: 12px; }

/* 搜索/筛选行 */
.el-form--inline .el-form-item { margin-bottom: 10px !important; }

/* ---------- 7. 按钮：淡蓝 ---------- */
.el-button {
  height: 40px;
  border-radius: var(--mm-radius) !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  padding: 0 16px !important;
  transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border-color: var(--mm-primary-line) !important;
  color: var(--mm-primary) !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(30, 70, 130, .04);
}
.el-button:active { transform: scale(.97); }
.el-button--primary,
.el-button--primary.is-plain:hover {
  color: #fff !important;
  border: none !important;
  background: linear-gradient(180deg, #4d93ff 0%, #2e7cf6 100%) !important;
  box-shadow: 0 4px 12px rgba(46, 124, 246, .28), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.el-button--primary:active { box-shadow: 0 2px 6px rgba(46, 124, 246, .3); }
.el-button--success {
  color: #fff !important; border: none !important;
  background: linear-gradient(180deg, #45c98b, #22a96b) !important;
  box-shadow: 0 4px 12px rgba(34, 169, 107, .22), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.el-button--warning {
  color: #fff !important; border: none !important;
  background: linear-gradient(180deg, #ffbf5e, #f5a623) !important;
  box-shadow: 0 4px 12px rgba(245, 166, 35, .22), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.el-button--danger {
  color: #fff !important; border: none !important;
  background: linear-gradient(180deg, #ff7d75, #f0564d) !important;
  box-shadow: 0 4px 12px rgba(240, 86, 77, .22), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.el-button--info {
  color: #fff !important; border: none !important;
  background: linear-gradient(180deg, #a7b8cf, #8b9db6) !important;
}
.el-button.is-text, .el-button--text {
  background: transparent !important; border: none !important;
  box-shadow: none !important; padding: 0 8px !important;
  color: var(--mm-primary) !important;
}
.el-button.is-link { background: transparent !important; border: none !important; box-shadow: none !important; }
.el-button.is-circle { width: 40px; padding: 0 !important; }
.el-button--small { height: 32px; font-size: 13px !important; padding: 0 12px !important; border-radius: 10px !important; }
.el-button--large { height: 46px; font-size: 16px !important; }
.el-button-group .el-button:first-child { border-radius: 12px 0 0 12px !important; }
.el-button-group .el-button:last-child { border-radius: 0 12px 12px 0 !important; }
.el-button + .el-button { margin-left: 8px; }

/* 按钮组/操作区自动换行，避免挤成一条 */
.el-table .el-button + .el-button { margin-left: 6px; }
.mm-actions, .action-buttons, .header-actions, .toolbar, .btn-group, .search-actions {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  align-items: center;
}
.mm-actions .el-button, .action-buttons .el-button,
.toolbar .el-button, .search-actions .el-button, .btn-group .el-button { margin-left: 0 !important; }

/* ---------- 8. 表格：手机端变卡片 ---------- */
.el-table {
  border-radius: var(--mm-radius) !important;
  overflow: hidden;
  background: transparent !important;
  --el-table-border-color: var(--mm-line);
  --el-table-header-bg-color: #f6faff;
  font-size: 13.5px;
}
.el-table th.el-table__cell {
  background: #f6faff !important;
  color: var(--mm-text-2) !important;
  font-weight: 600 !important;
  font-size: 13px;
}
.el-table .cell { line-height: 1.5; word-break: break-all; }

/* 卡片模式（由 mm-shell.js 加 .mm-card-table） */
.mm-card-table.el-table { background: transparent !important; border: none !important; }
.mm-card-table .el-table__header-wrapper,
.mm-card-table .el-table__header { display: none !important; }
.mm-card-table .el-table__body-wrapper,
.mm-card-table .el-table__body { width: 100% !important; }
.mm-card-table .el-table__body-wrapper .el-scrollbar__wrap { overflow: visible !important; }
.mm-card-table table.el-table__body,
.mm-card-table .el-table__body > tbody { display: block !important; width: 100% !important; }
.mm-card-table .el-table__body > tbody > tr.el-table__row {
  display: block !important;
  width: auto !important;
  background: #fff !important;
  border: 1px solid var(--mm-line) !important;
  border-radius: var(--mm-radius);
  box-shadow: var(--mm-shadow-soft);
  margin: 0 0 10px !important;
  padding: 4px 2px;
  overflow: hidden;
}
.mm-card-table .el-table__body > tbody > tr.el-table__row > td.el-table__cell {
  display: flex !important;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: auto !important;
  border: none !important;
  border-bottom: 1px dashed #eef4fe !important;
  padding: 9px 12px !important;
  background: transparent !important;
  text-align: right;
  font-size: 13.5px;
  word-break: break-all;
}
.mm-card-table .el-table__body > tbody > tr.el-table__row > td.el-table__cell:last-child {
  border-bottom: none !important;
}
.mm-card-table .el-table__body > tbody > tr.el-table__row > td.el-table__cell::before {
  content: attr(data-label);
  flex: 0 0 auto;
  max-width: 42%;
  color: var(--mm-text-3);
  font-size: 12.5px;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 2px;
}
.mm-card-table .el-table__cell .cell { padding: 0 !important; display: inline-block; max-width: 100%; }
.mm-card-table .el-table__body > tbody > tr.el-table__row > td.el-table__cell:last-child .cell {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end;
}
.mm-card-table .el-table__empty-block { min-height: 120px; }
.mm-card-table .el-table__empty-text { font-size: 13px; color: var(--mm-text-3); }
/* 隐藏 Element 为固定列生成的重复层，避免双份内容 */
.el-table__fixed, .el-table__fixed-right, .el-table__fixed-header-wrapper { display: none !important; }

/* 分页 */
.el-pagination {
  padding: 10px 0 2px !important;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}
.el-pagination .el-pager li,
.el-pagination button {
  min-width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
}
.el-pagination .el-pager li.is-active {
  background: linear-gradient(180deg, #4d93ff, #2e7cf6) !important;
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(46, 124, 246, .28);
}

/* ---------- 9. 弹窗 / 抽屉 / 提示 ---------- */
.el-overlay { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.el-dialog {
  width: calc(100vw - 20px) !important;
  max-width: 560px;
  margin: 0 auto !important;
  border-radius: 22px 22px 0 0 !important;
  box-shadow: 0 -10px 40px rgba(16, 42, 80, .18) !important;
  overflow: hidden;
  position: fixed !important;
  left: 10px; right: 10px; bottom: 0;
  top: auto !important;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .96) !important;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}
.el-overlay-dialog { display: flex; align-items: flex-end; overflow: hidden; }
.el-dialog__header {
  padding: 16px 16px 10px !important;
  margin: 0 !important;
  border-bottom: 1px solid var(--mm-line);
  flex: 0 0 auto;
}
.el-dialog__title { font-size: 16px !important; font-weight: 600 !important; color: var(--mm-text) !important; }
.el-dialog__headerbtn { top: 12px !important; right: 10px !important; width: 34px; height: 34px; border-radius: 10px; }
.el-dialog__body {
  padding: 14px 16px calc(16px + var(--mm-safe-bottom)) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}
.el-dialog__footer { padding: 0 16px calc(16px + var(--mm-safe-bottom)) !important; flex: 0 0 auto; }
.el-dialog__footer .el-button { min-width: 96px; }
.el-message-box {
  width: calc(100vw - 40px) !important;
  max-width: 380px;
  border-radius: 20px !important;
  padding: 18px !important;
}
/* ============================================================
   全局提示条 Message：淡黄色底，文字清晰
   （原来是各类型的淡色底，白色页面上容易看不清）
   ============================================================ */
.el-message,
.el-message.el-message--success,
.el-message.el-message--warning,
.el-message.el-message--error,
.el-message.el-message--info {
  /* 淡黄底 + 淡黄边框（覆盖 Element 的默认主题色底） */
  --el-message-bg-color: #fff8e1 !important;
  --el-message-border-color: #f4dfa8 !important;
  background-color: #fff8e1 !important;
  border: 1px solid #f4dfa8 !important;
  color: #6b4f0d !important;
  min-width: 0 !important;
  max-width: calc(100vw - 24px);
  /* 顶部留出灵动岛/顶栏的位置 */
  top: calc(var(--mm-safe-top, 0px) + 54px) !important;
  border-radius: 14px !important;
  padding: 11px 14px !important;
  box-shadow: 0 8px 22px rgba(150, 110, 20, .16), inset 0 1px 0 rgba(255, 255, 255, .9) !important;
  z-index: 3500 !important;
}
/* 文字颜色统一深棕，保证在淡黄底上清晰 */
.el-message .el-message__content {
  font-size: 13.5px !important;
  line-height: 1.45 !important;
  color: #6b4f0d !important;
  font-weight: 500 !important;
}
/* 图标也用深棕，避免主题色在黄底上看不清 */
.el-message .el-message__icon,
.el-message .el-message-icon--success,
.el-message .el-message-icon--warning,
.el-message .el-message-icon--error,
.el-message .el-message-icon--info {
  color: #b8860b !important;
  font-size: 16px !important;
}
.el-message .el-message__closeBtn {
  color: #a8853e !important;
}
.el-message .el-message__closeBtn:hover { color: #6b4f0d !important; }

/* Notification 右上角通知也用淡黄 */
.el-notification {
  width: calc(100vw - 24px) !important;
  max-width: 360px;
  border-radius: 16px !important;
  background: #fff8e1 !important;
  border: 1px solid #f4dfa8 !important;
  box-shadow: 0 8px 22px rgba(150, 110, 20, .16) !important;
}
.el-notification__title { color: #6b4f0d !important; }
.el-notification__content { color: #6b4f0d !important; }

/* 确认弹框标题区也用淡黄，和提示条统一 */
.el-message-box {
  background: #fffdf5 !important;
  border: 1px solid #f4e6b8 !important;
}
.el-message-box__title { color: #6b4f0d !important; }
.el-message-box__message { color: #5b4a20 !important; }
.el-drawer { width: 100% !important; max-width: 100vw; }
.el-drawer__body { padding: 12px !important; overflow-y: auto; }
.el-popover { max-width: calc(100vw - 24px); }
.el-select-dropdown, .el-dropdown-menu { max-width: calc(100vw - 20px); }

/* ---------- 10. 其他组件 ---------- */
.el-tabs__header { margin: 0 0 12px !important; }
.el-tabs__nav-wrap::after { height: 1px; background: var(--mm-line); }
.el-tabs__item { height: 40px !important; line-height: 40px !important; font-size: 14px !important; padding: 0 12px !important; }
.el-tabs__nav-wrap { overflow-x: auto; scrollbar-width: none; }
.el-tabs__nav-wrap::-webkit-scrollbar { display: none; }
.el-tag { border-radius: 8px; font-size: 12px; height: 24px; line-height: 22px; padding: 0 8px; }
.el-tag--large { height: 30px; line-height: 28px; }
.el-descriptions__body { background: transparent !important; }
.el-descriptions__label { width: 96px; font-size: 13px; color: var(--mm-text-2) !important; }
.el-descriptions__content { font-size: 13.5px; }
.el-descriptions .el-descriptions__cell { padding: 8px 10px !important; }
.el-alert { border-radius: 12px !important; padding: 10px 12px !important; font-size: 13px; }
.el-empty { padding: 18px 0 !important; }
.el-empty__description { margin-top: 6px; font-size: 13px; }
.el-empty__image { width: 90px !important; }
.el-divider { margin: 12px 0 !important; }
.el-checkbox, .el-radio { height: 34px; margin-right: 14px; font-size: 14px; }
.el-checkbox__label, .el-radio__label { font-size: 14px !important; }
.el-checkbox-group, .el-radio-group { line-height: 1.6; }
.el-switch { --el-switch-on-color: #2e7cf6; }
.el-progress-bar__outer { border-radius: 8px; }
.el-upload { width: 100%; }
.el-upload-dragger { width: 100% !important; padding: 20px 12px !important; border-radius: 14px; }
.el-step__title { font-size: 13px !important; }
.el-collapse-item__header { font-size: 14px !important; }
.el-collapse-item__content { font-size: 13.5px; }
.el-scrollbar__view { width: 100%; }
.mm-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 代码/日志类文本可横向滚动，不撑破页面 */
pre, code, .logs, .log-box, .export-textarea, .el-textarea__inner { white-space: pre-wrap; word-break: break-all; }

/* ---------- 11. 输入框组合（验证码按钮不要被挤掉） ---------- */
.code-input-group,
.mm-code-group {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  width: 100% !important;
  align-items: center;
}
.code-input-group .el-input,
.mm-code-group .el-input { flex: 1 1 auto !important; min-width: 0 !important; }
.code-input-group .el-button,
.mm-code-group .el-button { flex: 0 0 auto !important; white-space: nowrap; min-width: 104px; }
.el-input-group .el-input-group__append .el-button { height: 36px; }

/* ---------- 12. 登录 / 授权码页面 ----------
   真实类名（打包后确认）：.login-root > .phone-screen-viewport > .login-inner
   原来的 .login-container 等选择器根本不存在，所以淡蓝底色从来没生效过；
   原版是一张外网背景图（picsum.photos），这里改成淡蓝色渐变。 */
.login-root[data-v-f901bc25],
html .login-root,
.login-root,
.login-container, .login-page, .auth-code-container, .verify-container {
  /* 原版是 position:fixed + height:100vh，小屏键盘弹出会把内容挤没；
     这里保留 fixed 全屏铺底，但允许内部滚动 */
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100dvh !important;
  /* 四周往里缩 + 整体下压：顶部留白远大于底部，卡片自然下沉 */
  padding: calc(96px + var(--mm-safe-top)) 40px calc(28px + var(--mm-safe-bottom)) !important;
  display: flex !important;
  /* 往下压：不用纯居中，改成从约 1/3 处开始排，视觉重心下移 */
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  /* 淡蓝底：去掉外网背景图（原版是 picsum.photos 随机图） */
  background-image: none !important;
  background-color: #eef5ff !important;
  background:
    radial-gradient(120% 70% at 50% -10%, #dceaff 0%, #eaf2ff 45%, #f6faff 75%, #ffffff 100%) !important;
}
/* 内容比屏幕高时从顶部开始排列，避免被 flex 居中裁掉头部 */
.login-root { align-items: safe center !important; }
/* 极窄屏（<360px）自动减少留白，避免输入框被压太窄 */
@media (max-width: 359px) {
  .login-root { padding-left: 20px !important; padding-right: 20px !important; }
}
@supports not (align-items: safe center) {
  .login-root { align-items: center !important; }
}

/* 手机屏幕卡片：原版写死 375px 宽的「手机壳」，手机上要自适应 */
html .phone-screen-viewport,
.phone-screen-viewport[data-v-f901bc25],
html .phone-screen-viewport,
.phone-screen-viewport {
  width: 100% !important;
  max-width: 320px !important;   /* 往内缩，两侧留白更多 */
  min-width: 0 !important;
  height: auto !important;
  background: rgba(255, 255, 255, .9) !important;
  border: 1px solid rgba(255, 255, 255, .95) !important;
  border-radius: 24px !important;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(46, 124, 246, .14),
              0 2px 6px rgba(30, 70, 130, .05),
              inset 0 1px 0 #fff !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
}

/* 登录内容区：原来是 40px 32px 50px，小屏太挤 → 收紧并均分 */
.login-inner[data-v-f901bc25],
.login-inner {
  /* 比之前更扁：上下内边距收紧 */
  padding: 18px 18px 20px !important;
}
/* 标题与副标题之间也收紧 */
.login-inner[data-v-f901bc25] .login-head,
.login-inner .login-head { margin-bottom: 2px !important; }
.login-inner[data-v-f901bc25] .sys-name,
.login-inner .sys-name { font-size: 18px !important; line-height: 1.25 !important; }
.login-head { margin-bottom: 4px; }
.sys-name[data-v-f901bc25],
.sys-name {
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: .5px;
  color: var(--mm-text) !important;
}
/* 欢迎语等副标题 */
.login-inner .text-center,
.login-inner .sub-title,
.login-inner p {
  color: var(--mm-text-2) !important;
}

/* 登录页表单项：拉开呼吸感，避免"挤" */
.login-inner[data-v-f901bc25] .el-form-item,
.login-inner .el-form-item {
  margin-bottom: 12px !important;
}
.login-inner[data-v-f901bc25] .el-input__wrapper,
.login-inner .el-input__wrapper {
  min-height: 42px !important;
  border-radius: 12px !important;
  background: #f7fbff !important;
  padding: 3px 13px !important;
}
.login-inner .el-input__inner {
  height: 38px !important;
  font-size: 16px !important;
}
.login-inner .el-button {
  height: 46px !important;
  border-radius: 14px !important;
  font-size: 15.5px !important;
}
.login-inner[data-v-f901bc25] .el-button--primary,
.login-inner .el-button--primary {
  width: 100%;
  height: 44px !important;
  font-size: 15px !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(46, 124, 246, .26), inset 0 1px 0 rgba(255, 255, 255, .4) !important;
}
/* 记住密码 / 忘记密码那行 */
.login-inner[data-v-f901bc25] .flex.justify-between,
.login-inner .flex.justify-between {
  margin: 2px 0 12px !important;
  font-size: 12.5px !important;
}
/* 右上角设置栏 */
.settings-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

/* 兼容旧类名（若某些页面仍是这些类） */
.login-card, .login-box, .auth-code-card, .verify-card {
  width: 100% !important;
  max-width: 420px !important;
  border-radius: 24px !important;
  padding: 24px 18px !important;
  background: rgba(255, 255, 255, .9) !important;
  border: 1px solid rgba(255, 255, 255, .95) !important;
  box-shadow: 0 18px 46px rgba(46, 124, 246, .14), inset 0 1px 0 #fff !important;
}
.login-title { font-size: 20px !important; font-weight: 700 !important; }

/* ---------- 13. 液体玻璃质感增强（顶栏/底栏/主按钮） ---------- */


.mm-bottomnav::before { top: 0; }

/* 点按水波纹 */
.mm-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: radial-gradient(circle, rgba(46, 124, 246, .28) 0%, rgba(46, 124, 246, .06) 60%, transparent 70%);
  animation: mm-ripple .55s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}
@keyframes mm-ripple {
  to { transform: scale(1); opacity: 0; }
}
.el-button, .el-menu-item, .el-tabs__item, .el-card__header { position: relative; overflow: hidden; }

/* 顶部下拉/悬浮元素的层级 */
.el-popper.is-light { border-color: var(--mm-line) !important; }
.el-select__popper.el-popper { border-radius: 14px !important; }

/* ---------- 14. 大屏：还原桌面布局（配合 ?desktop=1 调试用） ---------- */
@media (min-width: 900px) {
  .mm-bottomnav, .mm-scrim { display: none !important; }
  .dashboard-container .sidebar,
  .sidebar[data-v-3bc516d8] {
    position: static !important;
    transform: none !important;
    width: 200px !important;
    max-width: none;
    border-radius: 0;
    border-right: 1px solid var(--mm-line) !important;
    box-shadow: none;
  }
  .dashboard-container .sidebar.is-collapse,
  .sidebar.is-collapse[data-v-3bc516d8] { width: 60px !important; }
  .header[data-v-3bc516d8] { display: flex !important; }
  .el-main { --el-main-padding: 20px; padding: 20px !important; }
  .el-dialog { position: relative !important; inset: auto !important; margin: 15vh auto !important; border-radius: 18px !important; max-height: 80vh; }
  .el-overlay-dialog { display: block; }
  .mm-card-table .el-table__body > tbody > tr.el-table__row > td.el-table__cell::before { display: none; }
}

/* ---------- 15. 桌面端拦截页（mm-guard.js 注入，这里提供主题） ---------- */
#mm-desktop-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(60% 50% at 15% 10%, #e6f0ff 0%, rgba(230, 240, 255, 0) 60%),
    radial-gradient(50% 45% at 90% 85%, #dcebff 0%, rgba(220, 235, 255, 0) 60%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
  overflow: auto;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #16243a;
  -webkit-font-smoothing: antialiased;
}
#mm-desktop-gate .mm-gate-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
  animation: mm-float 12s ease-in-out infinite;
  pointer-events: none;
}
#mm-desktop-gate .mm-gate-blob.b1 { width: 320px; height: 320px; left: -80px; top: -60px; background: radial-gradient(circle at 30% 30%, #bcd8ff, #e8f2ff 70%); }
#mm-desktop-gate .mm-gate-blob.b2 { width: 260px; height: 260px; right: -60px; bottom: -40px; background: radial-gradient(circle at 60% 40%, #cfe3ff, #f0f7ff 70%); animation-delay: -4s; }
#mm-desktop-gate .mm-gate-blob.b3 { width: 200px; height: 200px; right: 18%; top: 12%; background: radial-gradient(circle at 50% 50%, #dbe9ff, #f6faff 70%); animation-delay: -7s; }
@keyframes mm-float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -18px, 0) scale(1.04); }
}
.mm-gate-card {
  position: relative;
  width: min(680px, 92vw);
  padding: 38px 34px 30px;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .72));
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow:
    0 30px 80px rgba(40, 90, 170, .16),
    0 2px 6px rgba(40, 90, 170, .06),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -18px 40px rgba(220, 235, 255, .45);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  text-align: center;
  overflow: hidden;
}
.mm-gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 40% at 20% 0%, rgba(255, 255, 255, .9), transparent 60%),
    radial-gradient(50% 30% at 85% 15%, rgba(190, 220, 255, .35), transparent 70%);
  pointer-events: none;
}
.mm-gate-icon {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: grid; place-items: center;
  color: #2e7cf6;
  background: linear-gradient(180deg, #f2f8ff, #e3efff);
  border: 1px solid #fff;
  box-shadow: 0 10px 24px rgba(46, 124, 246, .18), inset 0 1px 0 #fff;
  position: relative;
}
.mm-gate-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .5px;
  margin: 0 0 8px;
  background: linear-gradient(180deg, #1d2f4d, #38527a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.mm-gate-sub {
  font-size: 15.5px;
  color: #5b6b82;
  margin: 0 0 22px;
  position: relative;
}
.mm-gate-qr {
  width: 168px; height: 168px;
  margin: 0 auto 10px;
  padding: 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e6effc;
  box-shadow: 0 8px 24px rgba(46, 124, 246, .12), inset 0 1px 0 #fff;
  position: relative;
  display: grid;
  place-items: center;
}
.mm-gate-qr canvas, .mm-gate-qr img { width: 148px; height: 148px; display: block; }
.mm-gate-hint { font-size: 12.5px; color: #93a2b8; margin: 0 0 18px; position: relative; }
.mm-gate-url {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 6px 6px 14px;
  border-radius: 16px;
  background: rgba(247, 251, 255, .9);
  border: 1px solid #e6effc;
  position: relative;
  margin-bottom: 12px;
}
.mm-gate-url span {
  flex: 1;
  min-width: 0;
  text-align: left;
  font-size: 13px;
  color: #43536b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mm-gate-btn {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 16px;
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  background: linear-gradient(180deg, #4d93ff, #2e7cf6);
  box-shadow: 0 4px 12px rgba(46, 124, 246, .28), inset 0 1px 0 rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease;
}
.mm-gate-btn:active { transform: scale(.97); }
.mm-gate-btn.is-ghost {
  background: #fff;
  color: #2e7cf6;
  border: 1px solid #dce8fb;
  box-shadow: 0 1px 2px rgba(30, 70, 130, .04);
}
.mm-gate-foot {
  font-size: 12px;
  color: #a9b6c9;
  margin-top: 6px;
  position: relative;
}
.mm-gate-tips {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 4px 0 18px;
  position: relative;
}
.mm-gate-tips span {
  font-size: 12.5px;
  color: #5b6b82;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(240, 246, 255, .9);
  border: 1px solid #e4eefc;
}

/* 手机端隐藏桌面拦截 */
@media (max-width: 899px) {
  #mm-desktop-gate { display: none !important; }
}

/* ============================================================
   星空版灵动岛（mm-island.js 创建）
   位置：屏幕正上方居中；系统名称绝对居中显示
   ============================================================ */
.mm-island {
  position: fixed;
  top: calc(8px + var(--mm-safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1180;              /* 低于侧栏(1200)，高于遮罩(1050) */
  width: var(--mm-island-w, 190px);
  height: var(--mm-island-h, 34px);
  border-radius: 999px;
  overflow: hidden;
  cursor: pointer;
  /* 外发光 + 描边，做出灵动岛悬浮感 */
  box-shadow:
    0 6px 18px rgba(10, 26, 60, .30),
    0 1px 0 rgba(255, 255, 255, .18) inset,
    0 0 0 1px rgba(140, 180, 255, .22);
  transition:
    width .42s cubic-bezier(.32, .72, 0, 1),
    height .42s cubic-bezier(.32, .72, 0, 1),
    border-radius .42s cubic-bezier(.32, .72, 0, 1),
    box-shadow .3s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* 星空画布铺满 */
.mm-island__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* 系统名称：绝对居中 */
.mm-island__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .6px;
  color: #eaf2ff;
  text-shadow:
    0 0 6px rgba(120, 170, 255, .85),
    0 0 14px rgba(70, 130, 246, .55),
    0 1px 2px rgba(0, 0, 0, .45);
  pointer-events: none;
  transition: opacity .22s ease, transform .3s ease;
  white-space: nowrap;
}

/* 展开信息面板 */
.mm-island__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 14px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .26s ease .06s, transform .3s ease .06s;
  pointer-events: none;
}
.mm-island__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 22px;
  font-size: 12px;
}
.mm-island__k {
  color: rgba(190, 212, 245, .78);
  flex: 0 0 auto;
  letter-spacing: .2px;
}
.mm-island__v {
  color: #eaf2ff;
  font-weight: 600;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

/* ---------- 展开态 ---------- */
.mm-island.is-open {
  width: var(--mm-island-w-open, 268px);
  height: var(--mm-island-h-open, 96px);
  border-radius: 24px;
  box-shadow:
    0 14px 34px rgba(8, 20, 50, .40),
    0 1px 0 rgba(255, 255, 255, .20) inset,
    0 0 0 1px rgba(150, 190, 255, .28);
}
.mm-island.is-open .mm-island__label {
  /* 展开时系统名移到顶部居中 */
  inset: 0 0 auto 0;
  height: 32px;
  font-size: 13px;
  opacity: .95;
  transform: translateY(-1px);
}
.mm-island.is-open .mm-island__panel {
  opacity: 1;
  transform: translateY(0);
}

/* 按下反馈 */
.mm-island:active { transform: translateX(-50%) scale(.97); }

/* 登录页 / 桌面端不显示 */
html:not(.mm-in-app) .mm-island { display: none !important; }
@media (min-width: 900px) {
  .mm-island { display: none !important; }
}

/* 深色模式不额外处理（灵动岛本身是深空色，白底页面上更突出） */

/* ============================================================
   右上角用户菜单（mm-shell.js 动态创建）
   ============================================================ */
.mm-user-menu {
  position: fixed;
  z-index: 1300;
  width: 200px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid rgba(226, 236, 250, .95);
  box-shadow:
    0 18px 44px rgba(30, 70, 130, .20),
    0 2px 8px rgba(30, 70, 130, .06),
    inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  transform-origin: top right;
  animation: mm-user-menu-in .2s cubic-bezier(.32, .72, 0, 1);
}
@keyframes mm-user-menu-in {
  from { opacity: 0; transform: scale(.94) translateY(-6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.mm-user-menu__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--mm-line);
  margin-bottom: 6px;
}
.mm-user-menu__avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(180deg, #63a2ff, #2e7cf6);
  box-shadow: 0 4px 10px rgba(46, 124, 246, .30);
}
.mm-user-menu__info { min-width: 0; flex: 1; }
.mm-user-menu__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--mm-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mm-user-menu__role {
  font-size: 11.5px;
  color: var(--mm-text-3);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mm-user-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: none;
  background: transparent;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mm-text);
  text-align: left;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
  font-family: inherit;
}
.mm-user-menu__item:active,
.mm-user-menu__item:hover { background: #eef5ff; }
.mm-user-menu__item.is-danger { color: #f0564d; }
.mm-user-menu__item.is-danger:active,
.mm-user-menu__item.is-danger:hover { background: #ffecea; }

/* 菜单打开时，右上角头像高亮 */
html.mm-user-menu-open .header[data-v-3bc516d8] .user-dropdown {
  background: #eaf2ff !important;
  border-color: #c9dcfa !important;
}

/* ============================================================
   音乐播放器层级修复 + 底部歌词条（mm-music.js）
   ============================================================ */

/* 1) 悬浮球提到最上层，不再被底栏/灵动岛/遮罩盖住 */
html.mm-mobile .music-player-essence {
  z-index: 1900 !important;
}
/* 手机上默认位置：左下角，避开底栏和灵动岛 */
html.mm-mobile .music-player-essence {
  left: 12px !important;
  bottom: calc(var(--mm-bottomnav-h) + var(--mm-safe-bottom) + 96px) !important;
  top: auto !important;
}
/* 最小化时保持圆形 */
html.mm-mobile .music-player-essence.is-minimized .player-frost {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 22px rgba(30, 70, 130, .22), 0 2px 6px rgba(30, 70, 130, .08) !important;
}
/* 展开时的面板不要超出屏幕 */
html.mm-mobile .music-player-essence .player-frost {
  max-width: calc(100vw - 24px) !important;
}
html.mm-mobile .music-player-essence .player-selector {
  max-width: calc(100vw - 32px) !important;
}

/* 2) 底部歌词条 */
.mm-lyric-bar {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(var(--mm-safe-bottom, 0px) + 8px);
  z-index: 1160;                 /* 高于底栏(1150)，低于侧栏(1200) */
  display: none;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(226, 236, 250, .95);
  box-shadow:
    0 8px 24px rgba(30, 70, 130, .14),
    0 1px 0 rgba(255, 255, 255, .9) inset;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  overflow: hidden;
  cursor: pointer;
  animation: mm-lyric-in .34s cubic-bezier(.32, .72, 0, 1);
}
.mm-lyric-bar.is-on { display: flex; }
@keyframes mm-lyric-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 音符跳动（音浪）*/
.mm-lyric-bar__wave {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  flex: 0 0 auto;
  padding-bottom: 1px;
}
.mm-lyric-bar__wave i {
  display: block;
  width: 3px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #63a2ff, #2e7cf6);
  transform-origin: bottom center;
  transform: scaleY(.3);
  opacity: .6;
  transition: transform .08s linear, opacity .12s linear;
  will-change: transform, opacity;
}

/* 文字区 */
.mm-lyric-bar__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
}
.mm-lyric-bar__title {
  font-size: 11px;
  font-weight: 600;
  color: var(--mm-primary);
  letter-spacing: .2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}
.mm-lyric-bar__text {
  font-size: 13px;
  font-weight: 500;
  color: var(--mm-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.35;
}
.mm-lyric-bar__text.is-swap {
  animation: mm-lyric-swap .42s cubic-bezier(.32, .72, 0, 1);
}
@keyframes mm-lyric-swap {
  from { opacity: 0; transform: translateY(7px); filter: blur(2px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* 右侧呼吸圆点 */
.mm-lyric-bar__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e7cf6;
  box-shadow: 0 0 0 0 rgba(46, 124, 246, .55);
  animation: mm-lyric-dot 1.8s ease-out infinite;
}
@keyframes mm-lyric-dot {
  0%   { box-shadow: 0 0 0 0 rgba(46, 124, 246, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(46, 124, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 124, 246, 0); }
}

/* 有歌词条时，底栏上移，避免重叠 */
html.mm-has-lyric .mm-bottomnav {
  bottom: 54px;
  transition: bottom .3s cubic-bezier(.32, .72, 0, 1);
}
html.mm-has-lyric .el-main {
  --el-main-padding: 10px 10px calc(var(--mm-bottomnav-h) + var(--mm-safe-bottom) + 70px) 10px !important;
}
/* 有歌词条时，悬浮球再往上挪一点 */
html.mm-has-lyric .music-player-essence {
  bottom: calc(var(--mm-bottomnav-h) + var(--mm-safe-bottom) + 152px) !important;
}

/* 登录页也显示歌词条（登录页没有底栏，位置贴近底部） */
html:not(.mm-in-app) .mm-lyric-bar {
  bottom: calc(var(--mm-safe-bottom, 0px) + 12px);
}

/* 桌面端隐藏 */
@media (min-width: 900px) {
  .mm-lyric-bar { display: none !important; }
}
