.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.mobile-menu__panel {
  position: absolute;
  inset: 0;
  left: 0;
  top: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  border: none;
  outline: none;
  background: #121212;
  color: #fff;
  padding: 0 0 calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  box-sizing: border-box;
}

.mobile-menu__toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(54.5px + env(safe-area-inset-top, 0px));
  padding: max(6px, env(safe-area-inset-top, 0px)) 15px 10px;
  background: #232323;
  box-shadow: 0 8px 9px rgba(0, 0, 0, 0.2);
}

.mobile-menu__brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

/* 227×91 @750 → 高度约 12.133vw，夹在合理触控区间内 */
.mobile-menu__logo {
  display: block;
  width: auto;
  height: clamp(40px, 12.133vw, 46px);
  max-width: min(56vw, 240px);
  object-fit: contain;
  object-position: left center;
}

/* 与顶栏汉堡同源：蓝湖 label_4 44×44 @750 */
.mobile-menu__panel-toggle {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background-color: transparent;
  background-image: url('../../assets/images/common/icon-mobile-menu@2x.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px auto;
  cursor: pointer;
}

.mobile-menu__nav {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 6.5vw, 26px) 0 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu__link {
  display: block;
  padding: clamp(14px, 3.6vw, 18px) 15px;
  font-size: clamp(15px, 4.27vw, 17px);
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
  text-decoration: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.mobile-menu__group {
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu__group:first-of-type {
  margin-top: 0;
}

.mobile-menu__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(14px, 3.6vw, 18px) 15px;
  font: inherit;
  font-size: clamp(15px, 4.27vw, 17px);
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.96);
  text-align: left;
  border: none;
  background: transparent;
  cursor: pointer;
}

.mobile-menu__group--current > .mobile-menu__toggle {
  color: #f23030;
}

/* 展开：▼ 收起；▲ 展开（旋转） */
.mobile-menu__chevron {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #fff;
  border-bottom: none;
  margin-top: 2px;
  background: none;
  border-radius: 0;
  transition: transform var(--transition, 0.25s ease);
}

.mobile-menu__group.is-open .mobile-menu__chevron {
  transform: rotate(180deg);
}

.mobile-menu__panel-sub {
  display: flex;
  flex-direction: column;
  padding: 4px 0 12px 15px;
  gap: 0;
}

.mobile-menu__panel-sub[hidden] {
  display: none !important;
}

.mobile-menu__sublink {
  display: block;
  padding: clamp(9px, 2.8vw, 12px) 16px clamp(9px, 2.8vw, 12px) 0;
  font-size: clamp(12px, 3.2vw, 13px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.mobile-menu__sublink.is-active {
  color: #d82f2f;
}

.mobile-menu__lang {
  display: flex;
  flex-direction: column;
  padding: 4px 0 8px;
  gap: 0;
}

.mobile-menu__lang .site-lang__item {
  display: block;
  width: 100%;
  text-align: left;
  font-size: clamp(12px, 3.2vw, 13px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  border: none;
  background: transparent;
  cursor: pointer;
}

.mobile-menu__lang .site-lang__item.is-active {
  color: #d82f2f;
}

.mobile-menu__link.is-active {
  color: #f23030;
}
