/* 与首页统一的手机端：旧版 #navbar 内抽屉（≤1024px）；新顶栏见 mobile-header-nav.css */
@media (max-width: 1024px) {
  #navbar {
    overflow: visible;
  }
  #navbar .nav-inner {
    position: relative;
    overflow: visible;
    justify-content: space-between;
    height: 64px;
    padding: 0 16px;
  }
  #navbar .nav-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
  }
  #navbar .nav-mobile-overlay.open {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }
  #navbar .nav-links {
    display: flex;
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 999;
    width: 172px;
    min-width: 172px;
    height: calc(100vh - 64px);
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    background: #1a4d2e;
    background: linear-gradient(180deg, #256b2e 0%, #1e5631 35%, #1a4d2e 100%);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px 12px 24px;
    gap: 2px;
    flex-wrap: nowrap;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.22);
    border-radius: 12px 0 0 12px;
    transform: translateX(100%);
    transition: transform 300ms ease-out;
    visibility: hidden;
    pointer-events: none;
  }
  #navbar .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
  #navbar .nav-links::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 80%;
    height: 4px;
    margin: 0 auto 14px;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(201, 150, 42, 0.95),
      rgba(232, 184, 75, 1),
      rgba(201, 150, 42, 0.95),
      transparent
    );
    border-radius: 0 0 4px 4px;
    pointer-events: none;
  }
  #navbar .nav-links li {
    width: 100%;
    list-style: none;
    border: none;
    flex-shrink: 0;
  }
  #navbar .nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    font-family: 'Source Han Sans CN', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
  }
  #navbar .nav-links a:active {
    transform: scale(0.98);
  }
  #navbar .nav-links a:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  #navbar .nav-links a.active {
    background: rgba(201, 150, 42, 0.28);
    border: 1px solid rgba(201, 150, 42, 0.4);
  }
  #navbar .nav-links a.nav-cta,
  #navbar .nav-links a.nav-cta:hover {
    background: rgba(201, 150, 42, 0.35);
  }
  #navbar .nav-links a.nav-cta.active {
    background: rgba(201, 150, 42, 0.45);
  }
  #navbar .hamburger {
    display: flex;
  }
  #navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
  }
}
