/* 全局外壳样式：底部导航 + 公共变量
   三个页面共用，改一处全站生效 */
:root{
  --app-ink:#8A4A2A;
  --app-gold:#C9A227;
  --app-line:#EDE6D9;
}
*{ -webkit-tap-highlight-color:transparent; }

.app-tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:9990;
  height:calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom:env(safe-area-inset-bottom, 0px);
  display:flex; align-items:stretch;
  background:#fff;
  border-top:1px solid var(--app-line);
  box-shadow:0 -1px 6px rgba(120,90,50,.05);
}
.app-tabbar a{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  text-decoration:none; color:#A8A29A;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:11px; line-height:1;
  transition:color .15s;
}
.app-tabbar a svg{ width:23px; height:23px; display:block; }
.app-tabbar a.on{ color:var(--app-ink); }
.app-tabbar a:active{ opacity:.7; }

/* 「我的」页：导航贴在手机容器底部，不跟视口 */
.app-tabbar.in-phone{ position:absolute; border-radius:0 0 24px 24px; }

/* 顶部三 tab（AI命理 / 测算记录 / 名人库）——原版首页就是这个结构。
   只在浏览型页面注入，排盘、填写、登录这类流程页不打断。 */
.app-topbar{
  position: sticky; top: 0; z-index: 90;
  display: flex; justify-content: center; gap: 30px;
  padding: 12px 0 0;
  background: rgba(250,246,239,.96);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line, #EDE4D6);
}
.app-topbar a{
  position: relative; padding: 0 2px 11px;
  font-size: 14.5px; color: var(--ink2, #8A6A50);
  text-decoration: none; letter-spacing: .5px;
}
.app-topbar a.on{ color: var(--ink, #3A2B1F); font-weight: 600; }
.app-topbar a.on::after{
  content: ''; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 24px; height: 2px; border-radius: 2px;
  background: var(--brown-2, #B8743F);
}
