/* 全局外壳样式：底部导航 + 公共变量
   三个页面共用，改一处全站生效 */
: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(58px + 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);
}
/* 2026-11-15 陈局：「底栏不太明显」→ ①图标换彩色 ②字号 12.5→13.5 ③未选中文字从
   #A8A29A 加深到 #6E655C（原来灰得几乎和背景融在一起）。选中态靠文字加深加粗区分，
   图标本身不再变色——彩色图标染色会脏。 */
.app-tabbar a{
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  text-decoration:none; color:#6E655C;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:13.5px; line-height:1;
  transition:color .15s;
}
.app-tabbar a img{ width:26px; height:26px; display:block; }
.app-tabbar a svg{ width:26px; height:26px; display:block; }
.app-tabbar a.on{ color:var(--app-ink); font-weight:600; }
.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: space-around; align-items: flex-end;
  padding: 12px 0 9px;
  background: linear-gradient(180deg,#A81A15 0%,#C22C1B 62%,#B32218 100%);
  box-shadow: 0 2px 8px rgba(140,30,20,.18);
}
.app-topbar a{
  position: relative; padding: 0 2px 9px;
  font-size: 16.5px; color: rgba(255,255,255,.86);
  text-decoration: none; letter-spacing: .5px;
}
.app-topbar a.on{ color: #fff; font-weight: 700; }
.app-topbar a.on::after{
  content: ''; position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 26px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg,#F5C877,#E8A03C);
}

/* 点击热区：文字链在手机上实际只有 15~20px 高，手指按不准（实测 10 个页面中招）。
   上下补透明 padding 把热区撑到 ~40px；行内元素加 padding 不改变行高，视觉零变化。 */
.tap{ padding-top:12px; padding-bottom:12px; }
