/* 移动端导航页面专用样式 */

* {
  box-sizing: border-box;
}

body.mobile-nav-page {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.5;
}

/* 移动端顶部栏 */
.mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: calc(80px + env(safe-area-inset-top));
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding-top: env(safe-area-inset-top);
}

.mobile-topbar__inner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.mobile-topbar__btn {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: #333;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-topbar__btn:active {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-topbar__btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.mobile-topbar__logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* 导航内容区域 */
.mobile-nav-content {
  padding-top: calc(80px + env(safe-area-inset-top) + 20px);
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
  min-height: 100vh;
  background: #ffffff;
}

/* 导航区块 */
.nav-section {
  background: #ffffff;
  padding: 0 24px;
}

/* 展开式导航项 */
.nav-section__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease;
}

.nav-section__header.is-active {
  color: #119AFA;
}

.nav-section__header.is-active .nav-section__arrow {
  color: #119AFA;
}

.nav-section__title {
  flex: 1;
}

.nav-section__arrow {
  transition: transform 0.2s ease;
  color: #119af9;
}

/* 子导航内容 */
.nav-section__content {
  display: none;
  padding: 0 0 12px;
  margin-top: -8px;
}

.nav-section__content.is-open {
  display: block;
}

.nav-subsection__item {
  display: block;
  padding: 12px 0 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #666666;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-subsection__item:active {
  background: rgba(17, 154, 249, 0.05);
}

/* 主要导航项 */
.nav-main-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333333;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-main-item:active {
  background: rgba(17, 154, 249, 0.05);
}

.nav-main-item__arrow {
  color: #119af9;
}

/* 分割线 */
.nav-divider {
  height: 2px;
  margin: 0 24px;
  background: linear-gradient(90deg, #109afc 0%, #60b83c 100%);
  display: none;
}

.nav-divider.is-visible {
  display: block;
}

/* 底部品牌区域 */
.nav-brand {
  margin-top: auto;
  padding: 32px 24px 40px;
  background: #F9F9F9;
}

.nav-brand__title {
  font-size: 16px;
  font-weight: 700;
  color: #119af9;
  margin: 0 0 8px 0;
}

.nav-brand__desc {
  font-size: 12px;
  color: #666666;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.nav-brand__social {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-brand__social a {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  -webkit-tap-highlight-color: transparent;
}

.nav-brand__social a:active {
  transform: scale(0.95);
}

.nav-brand__social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* 响应式适配 */
@media (min-width: 769px) {
  body.mobile-nav-page {
    display: none;
  }
}