/* =========================================================
   Mobile Menu (Aesop-like)
   All-new class names (mm*)
   ========================================================= */

/* prevent Alpine flash */
[x-cloak] { display: none !important; }

/* ---- overlay shell ---- */
.mmShell {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #f6f4ee; /* warm off-white */
  color: #111;
  transform: translateX(100%);
  transition: transform 240ms ease;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

.mmShell--on {
  transform: translateX(0);
}

/* optional “gutter” hook if you need spacing later */
.mmGutter {
  padding: 0;
}

/* ---- header ---- */
.mmHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px;
  border-bottom: 1px solid #d9d6cd;
}

.mmBrand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.mmBrand img {
  height: 22px;
  width: auto;
  display: block;
}

/* close X button */
.mmClose {
  position: relative;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* X lines */
.mmClose::before,
.mmClose::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1.6px;
  background: #111;
  transform-origin: center;
}

.mmClose::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.mmClose::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* hover */
.mmClose:hover {
  opacity: 0.6;
}

/* focus accessibility */
.mmClose:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

/* ---- scroll area ---- */
.mmBody {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

/* reset list item style (your <li> are inside a div) */
.mmBody li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---- top rows / links ---- */
.mmRow,
.mmAccBtn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px;
  border-bottom: 1px solid #d9d6cd;
  background: transparent;
  text-decoration: none;
  color: #111;
  font-size: 20px;
  line-height: 1.15;
}

/* make anchors behave like rows */
.mmRow--link {
  cursor: pointer;
}

.mmRow--active {
  font-weight: 600;
}

/* ---- accordion trigger ---- */
.mmAcc {
  border: 0;
}

/* ✅ button reset: 关键！避免按钮自带样式影响点击/布局 */
.mmAccBtn {
  cursor: pointer;
  border: 0;
  background: transparent;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

/* remove default focus outline, replace with visible one */
.mmAccBtn:focus { outline: none; }
.mmAccBtn:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

.mmAccText {
  display: inline-block;
}

/* right chevron icon (CSS-drawn) */
.mmAccIcon {
  width: 18px;
  height: 18px;
  position: relative;
  flex: 0 0 18px;
}

.mmAccIcon::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid #111;
  border-bottom: 1.8px solid #111;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.mmAccIcon--up::before {
  transform: rotate(-135deg);
}

/* ---- panel (accordion content) ---- */
.mmPanel {
  border-bottom: 1px solid #d9d6cd;
  background: #f6f4ee;
}

.mmPanelInner {
  padding: 14px 18px 18px;
}

/* groups */
.mmGroup {
  padding: 10px 0 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.mmGroup:first-child {
  border-top: 0;
  padding-top: 0;
}

.mmGroupTitle {
  font-size: 14px;
  letter-spacing: 0.2px;
  text-transform: none;
  margin: 0 0 6px;
  font-weight: 600;
}

.mmGroupDesc {
  font-size: 13px;
  line-height: 1.35;
  opacity: 0.78;
  margin: 0 0 10px;
}

.mmGroupDesc--sm {
  margin-top: 6px;
}

/* link list inside panel */
.mmLinks {
  margin: 0;
  padding: 0;
}

.mmLinksItem {
  padding: 0;
  margin: 0;
}

.mmLink {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  color: #111;
  font-size: 16px;
  line-height: 1.2;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.mmLinksItem:first-child .mmLink {
  border-top: 0;
}

.mmLink--current {
  font-weight: 600;
}

/* All link */
.mmGroup--all {
  padding-bottom: 0;
}

/* ---- small screens tweaks ---- */
@media (max-width: 360px) {
  .mmRow,
  .mmAccBtn {
    font-size: 18px;
    padding: 16px 16px;
  }

  .mmHead {
    padding: 16px 16px;
  }
}

/* ---- prefers-reduced-motion ---- */
@media (prefers-reduced-motion: reduce) {
  .mmShell,
  .mmAccIcon::before {
    transition: none !important;
  }
}

.comingsoon {
  font-weight: 300;
  color: #1389a7;
}

/* 每个 accordion section 分隔线 */
.mmAcc{
  border-bottom:1px solid #d9d6cd;
}

/* 打开时不要双线 */
.mmAcc > .mmPanel{
  border-bottom:0;
}