/* 名门集团导航 — 后台可配置项的样式（品牌头 / 分类图标 / 字母图标 / 页脚 / 提示） */

/* ── 品牌头：圆形标志 + 站名 + 小字 ── */
html body .ng-brand-header .mm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}
.mm-brand__logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 2px 10px rgba(120, 96, 232, .38);
}
.mm-brand__logo--text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, #7c5cf5, #b5a6ff 70%);
  letter-spacing: 0;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}
.mm-brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1.2;
}
.mm-brand__name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .3px;
  color: #f3efff;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}
.mm-brand__sub {
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .6px;
  color: rgba(197, 189, 232, .78);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}
.mm-brand__name:hover,
.mm-brand__sub:hover { color: #fff; }

/* ── 分类按钮里的小图标 ── */
.category-button { display: inline-flex; align-items: center; gap: 6px; }
.category-button__icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

/* ── 没有图标时用首字圆标 ── */
.mm-letter-avatar {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #6d5bd0, #b5a6ff);
  letter-spacing: 0;
  overflow: hidden;
}

/* ── 链接没填时按钮变灰 ── */
.card .go.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

/* ── 空状态 ── */
.mm-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 34px 18px;
  border-radius: 18px;
  border: 1px dashed rgba(160, 148, 214, .38);
  background: rgba(34, 34, 61, .5);
  color: rgba(210, 202, 240, .8);
  text-align: center;
  font-size: 12.5px;
}
.mm-empty b { font-size: 14px; color: #e9e4ff; }

/* ── 页脚 ── */
.mm-footer {
  padding: 18px 18px calc(104px + env(safe-area-inset-bottom, 0px));
  text-align: center;
}
.mm-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(180, 172, 214, .72);
}
.mm-footer__text { color: inherit; text-decoration: none; }
.mm-footer__text:hover { color: #ddd6ff; }
.mm-footer__share {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid rgba(160, 148, 214, .42);
  background: rgba(38, 34, 66, .8);
  color: #d8d2f5;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.mm-footer__share:hover { border-color: rgba(197, 187, 255, .72); color: #fff; }

/* ── 轻提示 ── */
.mm-toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(28, 24, 48, .95);
  border: 1px solid rgba(160, 148, 214, .45);
  color: #eae5ff;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 9999;
  max-width: 80vw;
  text-align: center;
}
.mm-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 420px) {
  .mm-brand__name { font-size: 16px; max-width: 40vw; }
  .mm-brand__sub { font-size: 10px; max-width: 40vw; }
}

/* ── 顶部圆形图标行 = 分类 ── */
.mm-rail-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-decoration: none;
}
.mm-rail-item img,
.mm-rail-letter {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .16s ease, box-shadow .16s ease;
}
.mm-rail-letter {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #6d5bd0, #b5a6ff);
  letter-spacing: 0;
}
.mm-rail-item.is-active img,
.mm-rail-item.is-active .mm-rail-letter {
  box-shadow: 0 0 0 2px #b5a6ff, 0 6px 18px rgba(140, 116, 255, .45);
  transform: translateY(-1px);
}
.mm-rail-label {
  font-size: 11px;
  line-height: 1.1;
  color: rgba(203, 195, 235, .85);
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mm-rail-item.is-active .mm-rail-label { color: #fff; }

/* 页脚不要留一大片空黑 */
.mm-footer { padding: 16px 18px 4px; }
