/* ==========================================================================
   JuiceBrix — Mobile Shell
   所有页面的手机端通用样式：导航、汉堡菜单、抽屉、页脚、section 间距
   用法：在 </head> 之前引入 <link rel="stylesheet" href="mobile.css">
   需要汉堡菜单的页面还需要：<script src="nav-mobile.js"></script>
   注意：本文件只影响手机端（宽度 ≤ 760px），PC 端排版不受影响
   ========================================================================== */

/* ==========================================================================
   Burger 按钮 + 抽屉（PC 端隐藏，手机端显示）
   ========================================================================== */
.nav-burger {
  display: none;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
  transition: border-color .2s ease, background .2s ease;
}
.nav-burger:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.nav-burger svg { width: 16px; height: 16px; display: block; }

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(7,16,9,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.drawer-mask.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 160;
  width: min(220px, calc(100vw - 100px));
  background: rgba(13,27,17,.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-left: 1px solid rgba(145,216,74,.28);
  border-bottom: 1px solid rgba(145,216,74,.28);
  border-bottom-left-radius: 14px;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.2,.8,.3,1), box-shadow .28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: none;
}
.drawer.open {
  transform: translateX(0);
  box-shadow: -20px 20px 60px rgba(0,0,0,.5);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(145,216,74,.28);
  flex-shrink: 0;
}
.drawer-brand {
  font-size: 11px;
  font-weight: 900;
  color: rgba(255,255,255,.55);
  letter-spacing: 2px;
}
.drawer-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
.drawer-close:hover { color: #fff; background: rgba(255,255,255,.06); }
.drawer-close svg { width: 14px; height: 14px; display: block; }

.drawer-list {
  list-style: none;
  padding: 4px 0;
  flex-shrink: 0;
}
.drawer-list li { position: relative; }
.drawer-list li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(145,216,74,.35) 0%, rgba(145,216,74,.08) 55%, transparent 100%);
}
.drawer-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: rgba(237,243,233,.88);
  transition: color .2s ease, padding-left .2s ease;
}
.drawer-list a::after {
  content: '→';
  color: rgba(201,207,198,.3);
  font-size: 12px;
  transition: color .2s ease, transform .2s ease;
}
.drawer-list a:hover { color: var(--lime); padding-left: 22px; }
.drawer-list a:hover::after { color: var(--lime); transform: translateX(2px); }

.drawer-foot {
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.drawer-sample {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--lime);
  transition: opacity .2s ease;
}
.drawer-sample:hover { opacity: .75; }
.drawer-sample svg { width: 13px; height: 13px; }

/* ==========================================================================
   手机端通用样式
   ========================================================================== */
@media (max-width: 760px) {
  :root { --pad: 22px; }

  /* 导航 */
  .nav { height: 48px; }
  .brand { font-size: 14px; gap: 7px; }
  .brand-mark { width: 20px; height: 20px; font-size: 11px; border-radius: 5px; }
  .nav-links { display: none; }
  .nav-actions .nav-btn.ghost { display: none; }
  .nav-actions .nav-btn.primary { display: none; }
  .nav-burger { display: grid; }

  /* 工具类 */
  .hide-mobile { display: none !important; }
  .br-mobile { display: inline; }
  .br-desktop { display: none; }

  /* section 间距收紧 */
  .section { padding: 56px 0; }

  /* text-link 字号 */
  .text-link { font-size: 11.5px; letter-spacing: 0.2px; }

  /* 横向滑动容器 —— 加 class="mobile-scroll-x" 即可启用 */
  .mobile-scroll-x {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px !important;
    grid-template-columns: none !important;
    width: 100%;
    max-width: 100%;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border: none !important;
    border-radius: 0 !important;
  }
  .mobile-scroll-x::-webkit-scrollbar { display: none; }
  .mobile-scroll-x > * {
    flex: 0 0 78%;
    scroll-snap-align: start;
    min-width: 0;
  }

  /* 防止横向滑动容器撑开父元素 */
  .mobile-scroll-x-wrap {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  /* 页脚：Navigate + Contact 并排 */
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-brand p { font-size: 12.5px; line-height: 1.65; }
  .footer-col h4 { font-size: 12.5px; margin-bottom: 12px; }
  .footer-col ul { font-size: 12.5px; gap: 9px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    font-size: 11.5px;
  }
  .footer-legal { gap: 14px; }
.footer-wa-number { display: block; }
}