/* 黄历三标签：对齐八字首页 .tabs 胶囊（三列 + 底三角），供 laohuangli/huangdao/wannianli 共用 */
.hl-tabs{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:9px;
  width:100%;
  max-width:440px;
  height:auto;
  /* 与 number-query .num-tabs / www .tabs 同：底边距留给选中态 ::after 三角，避免被 .sheet overflow:hidden 裁掉 */
  margin:26px auto 20px;
  padding:0;
  box-sizing:border-box;
  position:relative;
  border:0;
  overflow:visible;
}
.hl-tab,
.hl-tabs a.hl-tab,
.hl-tabs a.hl-tab:link,
.hl-tabs a.hl-tab:visited{
  position:relative;
  z-index:0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:47px;
  padding:8px 10px;
  box-sizing:border-box;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  border:1px solid rgba(250,99,13,.20);
  border-radius:6px;
  background:#FFF1E9;
  color:#C47840;
  font-size:16px;
  font-weight:650;
  line-height:1.4;
  box-shadow:none;
  transition:background .2s,color .2s,border-color .2s;
}
.hl-tabs a.hl-tab:hover{
  border-color:rgba(250,99,13,.38);
  background:#FFE4D4;
  color:#B35F28;
}
.hl-tab.on,
.hl-tab[aria-current="page"],
.hl-tabs a.hl-tab.on,
.hl-tabs a.hl-tab.on:link,
.hl-tabs a.hl-tab.on:visited,
.hl-tabs a.hl-tab[aria-current="page"],
.hl-tabs a.hl-tab[aria-current="page"]:link,
.hl-tabs a.hl-tab[aria-current="page"]:visited{
  z-index:1;
  border-color:#E85A0A;
  background:linear-gradient(135deg,#FA7A2E 0%,#FA630D 100%);
  color:#FFF9F1;
  font-weight:700;
  box-shadow:0 4px 10px rgba(250,99,13,.18);
}
.hl-tabs a.hl-tab.on:hover,
.hl-tabs a.hl-tab[aria-current="page"]:hover{
  background:linear-gradient(135deg,#E86A1E,#E05508);
  color:#FFF9F1;
}
.hl-tab.on::after,
.hl-tab[aria-current="page"]::after{
  content:"";
  position:absolute;
  bottom:-8px;
  left:50%;
  transform:translateX(-50%);
  width:0;
  height:0;
  border-left:8px solid transparent;
  border-right:8px solid transparent;
  border-top:9px solid #FA630D;
  border-bottom:0;
  z-index:1;
}
.hl-tab.on:hover::after,
.hl-tab[aria-current="page"]:hover::after{
  border-top-color:#E05508;
}
/* 移动端：与 mingli-www .tab 同款 ≤700 流体；≤420 只微调间距 */
@media (max-width:700px){
  /* 间距随屏；底边距保三角；系数对齐 CMS-PORTAL-MOBILE-TYPE（750 / 30*u / 90*u） */
  .hl-tabs{
    gap:calc(12 * var(--portal-u));
    margin-top:calc(32 * var(--portal-u));
    margin-bottom:calc(20 * var(--portal-u));
  }
  .hl-tab,
  .hl-tabs a.hl-tab,
  .hl-tabs a.hl-tab:link,
  .hl-tabs a.hl-tab:visited{
    /* 全站移动端胶囊 Tab：28*u / 84*u（CMS-PORTAL-MOBILE-TYPE） */
    min-height:max(36px,calc(84 * var(--portal-u)));
    padding:calc(10 * var(--portal-u)) calc(8 * var(--portal-u));
    font-size:max(12px,calc(28 * var(--portal-u)));
    line-height:1.3;
    white-space:nowrap;
    border-radius:calc(12 * var(--portal-u));
  }
  /* 三角几何与测号 .num-tab::after 一致用固定 8/9（不随 u 缩成「没尾巴」） */
  .hl-tab.on::after,
  .hl-tab[aria-current="page"]::after{
    bottom:-8px;
    border-left-width:8px;
    border-right-width:8px;
    border-top-width:9px;
  }
}
/* ≤420：不再硬写 padding/gap（禁止用固定 px 替代 ≤700 流体；与 www .tabs 一致只靠 --portal-u） */
@media (max-width:420px){
  .hl-tabs{padding:0 var(--edge,6px)}
}

/* 双标签（打牌 ↔ 穿衣）：两列，全宽贴齐卡片内容区（对齐八字首页 .tabs） */
.hl-tabs--2{
  grid-template-columns:repeat(2,1fr);
  max-width:none;
}