/* 子页移动端导航（model-detail 等，与首页 index 行为一致） */
.header--responsive .nav {
  height: 56px;
  padding: 0 12px;
  flex-wrap: nowrap;
  gap: 8px;
}

.header--responsive .logo {
  font-size: 16px;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.header--responsive .logo img {
  height: 34px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mobile-nav-overlay.show {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: #fff;
  z-index: 999;
  padding: 20px 16px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 700;
  color: #081e4d;
  font-size: 16px;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}

.mobile-nav a {
  display: block;
  padding: 14px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 15px;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #0052cc;
}

body.mobile-nav-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .header--responsive .menu {
    display: none !important;
  }

  .header--responsive .nav-toggle {
    display: flex;
  }

  .header--responsive .nav-phone span.full {
    display: none;
  }
}

@media (min-width: 769px) {
  .header--responsive .nav-phone span.short {
    display: none;
  }
}
