body:has(.guiyi-mobile-nav) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
html:has(.guiyi-mobile-nav) { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.guiyi-mobile-nav {
  position: fixed;
  z-index: 30;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  padding: 4px max(3px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(3px, env(safe-area-inset-left));
  background: #101c24;
  border-top: 1px solid #a89b8159;
  box-shadow: 0 -5px 22px #0610193b;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.guiyi-mobile-nav a {
  box-sizing: border-box;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  padding: 4px 1px;
  min-height: 52px;
  position: relative;
  color: #bdc8ca;
  font-size: clamp(10px, 2.8vw, 12px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
}
.guiyi-mobile-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.guiyi-mobile-nav a[aria-current] { color: #f4d39a; }
.guiyi-mobile-nav a[aria-current]::before { content: ""; position: absolute; top: -5px; width: 24px; height: 2px; background: currentColor; }
.guiyi-mobile-nav a:focus-visible { outline: 2px solid #edcda0; outline-offset: -3px; border-radius: 6px; }

@media (min-width: 761px) {
  body:has(.guiyi-mobile-nav) { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  html:has(.guiyi-mobile-nav) { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .guiyi-mobile-nav {
    box-sizing: border-box;
    inset: auto auto calc(12px + env(safe-area-inset-bottom)) 50%;
    transform: translateX(-50%);
    width: 32rem;
    max-width: calc(100vw - 3rem);
    padding: 4px;
    background: #101c24;
    border: 1px solid #a89b816b;
    border-radius: 8px;
    box-shadow: 0 5px 24px #06101960;
  }
  .guiyi-mobile-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    min-height: 44px;
    border-radius: 5px;
    font-size: 13px;
  }
  .guiyi-mobile-nav a[aria-current] { background: #25313a; }
  .guiyi-mobile-nav a[aria-current]::before { display: none; }
  .guiyi-mobile-nav a:hover { color: #fae4ba; background: #26333c; }
  .guiyi-mobile-nav svg { flex: none; width: 18px; height: 18px; }
}
