/* ==========================================================================
   手机底部标签栏（效果图 home-mobile-first-v1 §10 · .tabbar）
   --------------------------------------------------------------------------
   口径：全站 header 的白/黑/黄页黄三件套，不引入新色。
   只在 ≤1023px 出现 —— 与 style.css 收起 .desktop-nav 的那一档同界。
   /app/ 有自己的底部导航，parts/hy-tabbar.php 用 HY_App::is_app() 跳过渲染，
   所以这里的规则不可能落到 /app/ 页面上。
   ========================================================================== */

.hy-tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:70;
  display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;
  background:rgba(255,255,255,.97);
  border-top:1px solid var(--hy-hdr-line,#ECECE7);
  padding-bottom:env(safe-area-inset-bottom);
  touch-action:manipulation;
}
.hy-tabbar a{
  position:relative;display:grid;justify-items:center;align-content:end;gap:2px;
  min-height:58px;padding:8px 0 7px;
  font-size:11px;font-weight:600;line-height:1.3;color:var(--hy-hdr-ink2,#54595F);
  -webkit-tap-highlight-color:transparent;
}
.hy-tabbar a:hover{color:var(--hy-hdr-ink,#16181B)}
.hy-tabbar a[aria-current="page"]{color:var(--hy-hdr-ink,#16181B);font-weight:800}
.hy-tabbar a[aria-current="page"] svg{color:var(--hy-hdr-y-ink,#8A6300)}
.hy-tabbar a:focus-visible{outline:3px solid var(--hy-hdr-ink,#16181B);outline-offset:-3px;border-radius:8px}

/* 中央发布钮：黄色圆浮出栏顶 14px，label 仍与另外四格同一基线。 */
.hy-tabbar .pub i{
  position:absolute;top:-14px;left:50%;transform:translateX(-50%);
  width:44px;height:44px;border-radius:999px;
  display:grid;place-items:center;
  background:var(--hy-hdr-y,#FFC400);border:3px solid #fff;color:var(--hy-hdr-ink,#16181B);
  box-shadow:0 2px 10px rgba(22,24,27,.16);
  transition:background .16s ease,box-shadow .16s ease;
}
.hy-tabbar .pub:hover i{background:#FFB300;box-shadow:0 4px 14px rgba(255,196,0,.38)}
.hy-tabbar .pub:active i{transform:translateX(-50%) scale(.94)}
.hy-tabbar .pub span{margin-top:16px}

/* 栏体浮在页面上，正文必须让出这一段高度，否则页脚最后一行被压住。 */
@media (max-width:1023px){
  body{padding-bottom:calc(58px + env(safe-area-inset-bottom))}
}
@media (min-width:1024px){
  .hy-tabbar{display:none}
}
