/**
 * Bath 三层共用骨架 · 聚合页 + 三个子分类页（2026-10-27 · v1.4）
 *
 * 一条脊梁：鱼骨面包屑 → 身份头（.shead）→ 切换条（.tbf-swap）→ 左栏 + 工具条 + 网格。
 * 本文件只管"段与段之间的间距"和切换条本身；身份头直接复用全站 .shead，
 * 左栏 / 工具条 / 网格直接复用 tmh.css 的 .shop-layout / .fgroup / .shop-bar / .pgrid / .pcard，
 * 一律不另造一套。
 *
 * v1.4：左侧栏的 Bath 分组退役（横条回归四页共用的"脊椎"），.fbath 规则整段删除。
 */

:root{--tbx-ink:#211c14;--tbx-soft:#5d5448;--tbx-faint:#6f6659;
  --tbx-hair:rgba(33,28,20,.14);--tbx-brass:#9a7b3f;--tbx-brass-text:#7d6231}

/* ---------- 脊梁各段之间的间距 ---------- */
/* 身份头去掉下缘发丝线：分隔交给切换条自己的顶线，否则 26px 内出现两条平行线 */
.shead.tbf-head{border-bottom:0;margin-bottom:0;padding-bottom:0}
.tbf-head + .tbf-swap{margin-top:26px}
/* 切换条 → 分叉卡（仅聚合页）/ → 网格（分类页） */
.tbf-swap + .tbf-fork{margin-top:30px}
.tbf-swap ~ .shop-layout{margin-top:34px}
.tbf-fork + .tmh-fscrim + .shop-layout{margin-top:46px}
/* 聚合页没有分叉卡时不至于贴太紧 */
.tbf-swap + .tmh-fscrim + .shop-layout{margin-top:34px}

/* ---------- 切换条 ---------- */
.tbf-swap{position:relative;display:inline-flex;max-width:100%;align-items:stretch;
  border-top:.5px solid var(--tbx-hair);border-bottom:.5px solid var(--tbx-hair);
  background:linear-gradient(180deg,rgba(33,28,20,.030),rgba(33,28,20,.008));
  overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;
  scrollbar-width:none;-ms-overflow-style:none;scroll-snap-type:x proximity}
.tbf-swap::-webkit-scrollbar{display:none}

/* 已横向滚动：左边缘渐隐，让"被裁掉的半个标签"看起来是继续前进而不是断了 */
.tbf-swap.tbf-scrolled{
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 22px,#000 100%)}

.tbf-swap a{position:relative;z-index:2;flex:0 0 auto;display:inline-flex;align-items:center;gap:7px;
  padding:15px 13px 14px;text-decoration:none;white-space:nowrap;scroll-snap-align:start;
  font-family:var(--sans);
  font-size:11.5px;font-weight:500;letter-spacing:1.5px;text-transform:uppercase;line-height:1;
  color:var(--tbx-soft);-webkit-tap-highlight-color:transparent;
  transition:color .35s ease,transform .45s cubic-bezier(.22,1,.36,1);
  animation:tbfSwapIn .62s cubic-bezier(.22,1,.36,1) backwards}
.tbf-swap a:first-child{padding-left:0}
/* 项间竖发丝线 */
.tbf-swap a + a::before{content:"";position:absolute;left:0;top:50%;width:1px;height:15px;margin-top:-7.5px;
  background:var(--tbx-hair);pointer-events:none}
.tbf-swap a:nth-of-type(1){animation-delay:.04s}
.tbf-swap a:nth-of-type(2){animation-delay:.10s}
.tbf-swap a:nth-of-type(3){animation-delay:.16s}
.tbf-swap a:nth-of-type(4){animation-delay:.22s}
.tbf-swap a:hover{color:var(--tbx-ink);transform:translateY(-1.5px)}
.tbf-swap a.on{color:var(--tbx-ink);font-weight:700}

.tbf-swap a b{display:inline-block;font-size:10.5px;font-weight:600;letter-spacing:.5px;
  font-variant-numeric:tabular-nums;color:var(--tbx-faint);
  transition:color .35s ease,transform .45s cubic-bezier(.22,1,.36,1)}
.tbf-swap a:hover b{color:var(--tbx-brass-text)}
.tbf-swap a.on b{color:var(--tbx-brass-text);transform:scale(1.1)}
.tbf-swap.is-live a.on b{animation:tbfPop .7s .4s cubic-bezier(.22,1,.36,1) backwards}

/* 滑块：底部 3px 实金 + 上方淡金块，JS 用 transform/width 移动 */
.tbf-ind{position:absolute;left:0;top:0;bottom:0;width:0;z-index:1;pointer-events:none;
  background:linear-gradient(to top,var(--tbx-brass) 0 3px,rgba(154,123,63,.14) 3px 100%);
  transition:transform .62s cubic-bezier(.22,1,.36,1),width .62s cubic-bezier(.22,1,.36,1)}

/* 无 JS 兜底 */
.tbf-swap:not(.is-live) a.on{background:rgba(154,123,63,.12);box-shadow:inset 0 -3px 0 var(--tbx-brass)}

@keyframes tbfSwapIn{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes tbfPop{0%{transform:scale(1.1)}45%{transform:scale(1.34)}100%{transform:scale(1.1)}}

@media(min-width:1025px){
  .tbf-swap a{padding:20px 30px 19px;font-size:13.5px;letter-spacing:2.5px;gap:10px}
  .tbf-swap a b{font-size:12px}
  .tbf-swap a:hover{transform:translateY(-2px)}
}

/* 窄屏：四项必须一次看全，否则最后一项的件数会被裁掉，看起来像排版坏了 */
@media(max-width:560px){
  .tbf-swap a{padding:13px 9px 12px;gap:5px;letter-spacing:1px}
  .tbf-swap a b{font-size:10px;letter-spacing:0}
}

@media(prefers-reduced-motion:reduce){
  .tbf-swap a,.tbf-swap a b,.tbf-ind{animation:none!important;transition:none!important}
}
