/* vipkei.com 手机端公共头部
 * source: templets/default/header_m.htm
 * version: 20260614-mobile-header-v2
 */

.vk-mobile-topbar,
.vk-mobile-header-shell,
.vk-mobile-site-header,
.vk-mobile-site-header *,
.vk-mobile-header-shell .vk-mobile-nav__panel,
.vk-mobile-header-shell .vk-mobile-nav__panel * {
  box-sizing: border-box;
}

.vk-mobile-topbar {
  position: relative;
  z-index: 1201;
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 0 10px;
  overflow: hidden;
  border-bottom: 1px solid #DCE8ED;
  background: #F5FAFC;
  color: #53646E;
  font-size: 12px;
  line-height: 30px;
  letter-spacing: .02em;
}

.vk-mobile-header-shell {
  position: relative;
  z-index: 1200;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 1px solid #DDE8ED;
  box-shadow: 0 3px 12px rgba(20, 48, 74, .06);
}

.vk-mobile-site-header {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 82px;
  height: auto;
  margin: 0;
  padding: 8px 64px 8px 8px;
  overflow: visible;
  background: #FFFFFF;
}

.vk-mobile-site-header .vk-mobile-site-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
  height: auto;
  float: none;
  overflow: hidden;
}

.vk-mobile-site-header .vk-mobile-site-header__logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 62px;
  padding: 4px 6px;
  overflow: hidden;
  border: 1px solid #D9EDF4;
  border-radius: 5px;
  background: #F7FCFE;
  text-decoration: none;
}

.vk-mobile-site-header .vk-mobile-site-header__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 52px;
  margin: 0;
  float: none;
}

.vk-mobile-site-header .vk-mobile-site-header__brand-copy {
  min-width: 0;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 2px solid #30B7EF;
}

/* 兼容尚未重新生成的旧静态页：旧页的品牌名称仍是 brand 的直接子元素。 */
.vk-mobile-site-header .vk-mobile-site-header__brand > .vk-mobile-site-header__brand-name {
  min-width: 0;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 2px solid #30B7EF;
}

.vk-mobile-site-header .vk-mobile-site-header__brand-name,
.vk-mobile-site-header .vk-mobile-site-header__tagline {
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vk-mobile-site-header .vk-mobile-site-header__brand-name {
  color: #146F93;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.vk-mobile-site-header .vk-mobile-site-header__tagline {
  margin-top: 3px;
  color: #70808A;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

.vk-mobile-site-header .vk-mobile-site-header__tools {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 42px;
  height: 42px;
  transform: translateY(-50%);
}

.vk-mobile-site-header .vk-mobile-nav {
  position: relative;
  width: 100%;
  height: 100%;
}

.vk-mobile-site-header .vk-mobile-nav__toggle {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid #CDE8F2;
  border-radius: 5px;
  background: #F1FAFD;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.vk-mobile-site-header .vk-mobile-nav__toggle::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background: #20B4E2;
  box-shadow: 0 -7px 0 #20B4E2, 0 7px 0 #20B4E2;
  content: "";
  transform: translate(-50%, -50%);
}

.vk-mobile-site-header .vk-mobile-nav__toggle:active {
  border-color: #30B7EF;
  background: #E7F7FC;
}

.vk-mobile-site-header .vk-mobile-nav__toggle:focus-visible {
  outline: 2px solid #30B7EF;
  outline-offset: 2px;
}

.vk-mobile-header-shell .vk-mobile-nav__panel {
  position: static;
  z-index: auto;
  display: block;
  width: calc(100% - 12px);
  max-width: none;
  max-height: min(62vh, 420px);
  margin: 0 6px 8px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #CDE5EE;
  border-radius: 5px;
  background: #FFFFFF;
  box-shadow: 0 8px 20px rgba(11, 61, 92, .13);
  -webkit-overflow-scrolling: touch;
}

.vk-mobile-header-shell .vk-mobile-nav__panel[hidden] {
  display: none !important;
}

.vk-mobile-header-shell .vk-mobile-nav__panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1px;
  float: none;
  background: #D9EEF5;
  list-style: none;
}

.vk-mobile-header-shell .vk-mobile-nav__panel li {
  min-width: 0;
  width: auto;
  height: auto;
  margin: 0;
  background: #FFFFFF;
}

.vk-mobile-header-shell .vk-mobile-nav__panel a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: 8px 6px;
  overflow: hidden;
  color: #285166;
  background: #FFFFFF;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.vk-mobile-header-shell .vk-mobile-nav__panel a:active,
.vk-mobile-header-shell .vk-mobile-nav__panel a:focus-visible {
  color: #0D7FA8;
  background: #EDF9FD;
  outline: 0;
}

@media (max-width: 380px) {
  .vk-mobile-site-header {
    min-height: 78px;
    padding-right: 58px;
  }

  .vk-mobile-site-header .vk-mobile-site-header__logo {
    width: 52px;
    height: 58px;
  }

  .vk-mobile-site-header .vk-mobile-site-header__logo img {
    height: 48px;
  }

  .vk-mobile-site-header .vk-mobile-site-header__brand-copy {
    margin-left: 8px;
    padding-left: 8px;
  }

  .vk-mobile-site-header .vk-mobile-site-header__brand > .vk-mobile-site-header__brand-name {
    margin-left: 8px;
    padding-left: 8px;
  }

  .vk-mobile-site-header .vk-mobile-site-header__brand-name {
    font-size: 15px;
  }

  .vk-mobile-site-header .vk-mobile-site-header__tagline {
    font-size: 11px;
  }

  .vk-mobile-site-header .vk-mobile-site-header__tools,
  .vk-mobile-site-header .vk-mobile-nav__toggle {
    width: 40px;
    height: 40px;
  }

  .vk-mobile-header-shell .vk-mobile-nav__panel a {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vk-mobile-header-shell .vk-mobile-nav__panel {
    scroll-behavior: auto;
  }
}
