/* ================================================================
   birth-picker.v1.css ·「出生年月日时」全站唯一控件（入口 + 抽屉）
   —— 基准：斗首择日页 2026-11-13 定稿版，逐项取其计算样式：
      入口 54 高白卡 / 金褐小标签 11.5 / 值 14 / 右侧 ›
      抽屉 面板 radius12 + 标题 14·600 + 时间条 #FAF7F0 + 四列滚轮
            + 金底提示条 + 282 宽生辰红分段按钮
   各页面一律用 .tsb-* 类，不得再自写生辰控件与弹层样式。
   字号例外（s749 登记）：入口标签 11.5、值 14、占位 13、左侧「命」章 15；
   抽屉标题 14、时间条 13、滚轮 11.5/15、提示条 12.5、分段按钮 12.5。
   全站有 body * {font-size:12.5px!important}，以上一律带 !important 才生效。
   ================================================================ */

/* ---------- 一、入口卡片 ----------
   注意：丛辰等页有 `#xxxArea *{margin:0;padding:0}` 重置，
   入口几何一律带 !important，任何页面都不许把它改样。 */
.tsb-ctl{
  display:flex!important;align-items:center!important;gap:10px!important;
  box-sizing:border-box!important;width:100%!important;
  min-height:54px!important;padding:8px 12px!important;margin:0!important;
  background:#FFFEFB!important;border:1px solid #D8D2C4!important;border-radius:10px!important;
  box-shadow:none!important;cursor:pointer;text-align:left;
  font-family:var(--sans,inherit);-webkit-tap-highlight-color:transparent;
  transition:transform .12s,border-color .2s
}
.tsb-ctl:active{transform:scale(.985);border-color:#C8BFA9!important}
/* 左侧「命」字章：与丛辰「事」「期」同一体例（36 方、圆角6、衬线600）
   未填＝金褐浅底；已填＝朱砂实底白字（与入口卡片转生辰红同步） */
.tsb-ctl .tsb-ico{
  flex:0 0 auto!important;width:36px!important;height:36px!important;box-sizing:border-box!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0!important;padding:0!important;border-radius:6px!important;
  font-family:var(--serif,"Songti SC",serif)!important;font-size:15px!important;font-weight:600!important;
  line-height:1!important;letter-spacing:0!important;
  background:#FBF3DC!important;color:#8A6A1F!important;box-shadow:inset 0 0 0 1px #E3D3AE!important
}
.tsb-ctl.is-filled .tsb-ico{background:#B03A2E!important;color:#FFFEFB!important;box-shadow:inset 0 0 0 1px #B03A2E!important}
.tsb-ctl .tsb-cx{flex:1 1 auto!important;min-width:0!important;display:flex!important;flex-direction:column!important;gap:4px!important;padding:0!important;margin:0!important}
.tsb-ctl .tsb-lab{
  font-family:var(--sans,inherit)!important;font-size:11.5px!important;font-weight:400!important;
  line-height:1.4!important;letter-spacing:.3px;color:#8A6A1F!important;padding:0!important;margin:0!important
}
.tsb-ctl .tsb-val{
  font-family:var(--sans,inherit)!important;font-size:14px!important;font-weight:400!important;
  line-height:1.45!important;letter-spacing:0;color:#40403A!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0!important;margin:0!important
}
.tsb-ctl .tsb-val.is-placeholder{font-size:13px!important;color:#6E6E64!important}
.tsb-ctl .tsb-chev{flex:0 0 auto!important;font-size:16px!important;line-height:1!important;padding:0 2px!important;color:#AAA496!important}
/* 已填：生辰红（全站统一语义，s736） */
.tsb-ctl.is-filled{background:#FDF4F2!important;border-color:#D9A39C!important}
.tsb-ctl.is-filled .tsb-lab{color:#B03A2E!important}
.tsb-ctl.is-filled .tsb-val{color:#9A3226!important}
.tsb-ctl.is-filled .tsb-chev{color:#B03A2E!important}
.tsb-ctl:focus-visible{outline:2px solid #2E7284;outline-offset:2px}

/* ---------- 二、抽屉 ---------- */
#tsBirthOv{
  position:fixed;inset:0;z-index:999;box-sizing:border-box;
  display:flex;align-items:flex-start;justify-content:center;
  padding:clamp(32px,11vh,96px) 12px 12px;overflow-y:auto;
  background:rgba(42,44,40,.24);overscroll-behavior:contain;
  -webkit-tap-highlight-color:transparent
}
#tsBirthOv[hidden]{display:none!important}
#tsBirthOv .tsb-panel{
  box-sizing:border-box;flex:0 0 auto;width:100%;max-width:420px;
  max-height:calc(100dvh - 36px);
  background:#FFFEFB;border:1px solid #D8D2C4;border-radius:12px;
  box-shadow:0 12px 30px rgba(42,44,40,.18);
  padding:12px;overflow:hidden auto;-webkit-overflow-scrolling:touch;
  animation:tsb-panel-in .18s ease-out
}
@keyframes tsb-panel-in{from{transform:translateY(12px);opacity:.5}to{transform:none;opacity:1}}

/* 标题行 */
#tsBirthOv .tsb-hd{display:flex;align-items:center;justify-content:space-between;min-height:36px;margin:0 0 7px}
#tsBirthOv .tsb-hd .t{
  font-family:var(--sans,inherit)!important;font-size:14px!important;font-weight:600!important;
  line-height:1.4!important;letter-spacing:0;color:#40403A
}
#tsBirthOv .tsb-x{
  position:relative;flex:0 0 36px;width:36px;height:36px;box-sizing:border-box;
  border:1px solid #D8D2C4;border-radius:7px;background:#FFFEFB;color:#6E6E64;cursor:pointer;padding:0
}
#tsBirthOv .tsb-x::before,#tsBirthOv .tsb-x::after{
  content:"";position:absolute;left:50%;top:50%;width:14px;height:1.5px;background:currentColor
}
#tsBirthOv .tsb-x::before{transform:translate(-50%,-50%) rotate(45deg)}
#tsBirthOv .tsb-x::after{transform:translate(-50%,-50%) rotate(-45deg)}
#tsBirthOv .tsb-x:active{background:#F5F3EE}

/* 当前值条 */
#tsBirthOv .tsb-tf{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-height:30px;padding:5px 9px;margin:0 0 7px;
  background:#FAF7F0;border-radius:6px
}
#tsBirthOv .tsb-tf .v{
  font-family:var(--sans,inherit)!important;font-size:13px!important;font-weight:500!important;
  line-height:1.5!important;letter-spacing:0;color:#40403A
}
#tsBirthOv .tsb-tf .u{font-family:var(--sans,inherit)!important;font-size:11px!important;color:#6E6E64;white-space:nowrap}
#tsBirthOv .tsb-tf .u.is-error{color:#B03A2E!important;font-size:12px!important}

/* 四列滚轮 */
#tsBirthOv .tsb-wheels{margin-top:8px}
#tsBirthOv .tsb-wcap{display:grid;gap:6px;margin:0 0 4px}
#tsBirthOv .tsb-wcap span{
  padding:4px 0;text-align:center;
  font-family:var(--sans,inherit)!important;font-size:10.5px!important;line-height:1.3!important;
  letter-spacing:.5px;color:#8A6A1F
}
#tsBirthOv .tsb-wbox{position:relative}
#tsBirthOv .tsb-wband{
  position:absolute;left:14px;right:14px;top:72px;height:36px;box-sizing:border-box;
  border-top:1px solid #B03A2E;border-bottom:1px solid #B03A2E;opacity:.5;
  pointer-events:none;z-index:1
}
#tsBirthOv .tsb-wrow{position:relative;display:grid;gap:6px;height:108px;
  -webkit-mask-image:linear-gradient(180deg,transparent 0,#000 34%,#000 66%,transparent 100%);
          mask-image:linear-gradient(180deg,transparent 0,#000 34%,#000 66%,transparent 100%)}
#tsBirthOv .tsb-wheel{
  height:108px;overflow-y:auto;overflow-x:hidden;border-radius:7px;
  scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch;
  background:linear-gradient(#FFFEFB 0,#FFFEFB 36px,#FBF3DC 36px,#FBF3DC 72px,#FFFEFB 72px,#FFFEFB 100%);
  scrollbar-width:none;-ms-overflow-style:none
}
#tsBirthOv .tsb-wheel::-webkit-scrollbar{display:none}
#tsBirthOv .tsb-wheel::before,#tsBirthOv .tsb-wheel::after{content:"";display:block;height:36px}
#tsBirthOv .tsb-wi{
  height:36px;line-height:36px;text-align:center;box-sizing:border-box;
  font-family:var(--sans,inherit)!important;font-size:11.5px!important;font-weight:400!important;
  color:#AAA496;white-space:nowrap;overflow:hidden;scroll-snap-align:center
}
#tsBirthOv .tsb-wi.on{
  font-size:15px!important;font-weight:500!important;color:#40403A;
  border-top:1px solid #E3D3AE;border-bottom:1px solid #E3D3AE;line-height:34px
}

/* 金底提示条 */
#tsBirthOv .tsb-note{
  display:flex;align-items:center;justify-content:center;gap:10px;
  margin:9px 0 10px;padding:7px 9px;box-sizing:border-box;
  background:#FBF3DC;border-left:2px solid #8A6A1F;border-radius:5px;color:#58707E
}
#tsBirthOv .tsb-note span{font-family:var(--sans,inherit)!important;font-size:12.5px!important;line-height:1.5!important;color:#58707E}
#tsBirthOv .tsb-note i{display:block;width:1px;height:13px;background:#A3B4BE}

/* 确定 / 清空生辰（等宽滑动分段，s739 定稿） */
#tsBirthOv .tsb-actions{
  position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;
  box-sizing:border-box;width:252px;height:46px;margin:10px auto 0;padding:3px;
  background:#F6F1EC;border:1px solid #E7C9C2;border-radius:10px
}
#tsBirthOv .tsb-seg{
  position:absolute;top:3px;left:3px;width:122px;height:38px;z-index:1;
  background:#B03A2E;border-radius:7px;transition:transform .18s ease
}
#tsBirthOv .tsb-actions[data-active="clear"] .tsb-seg{transform:translateX(122px)}
#tsBirthOv .tsb-btn{
  position:relative;z-index:2;display:flex;align-items:center;justify-content:center;
  height:38px;min-height:38px;padding:0 8px;border:0;border-radius:7px;background:transparent;
  font-family:var(--sans,inherit)!important;font-size:12.5px!important;
  font-weight:500!important;letter-spacing:3px;text-indent:3px;color:#FFF;cursor:pointer
}
#tsBirthOv .tsb-btn--clear{color:#8B6E67;font-weight:400!important;letter-spacing:0;text-indent:0}
#tsBirthOv .tsb-actions[data-active="clear"] .tsb-btn--ok{color:#8B6E67;font-weight:400!important}
#tsBirthOv .tsb-actions[data-active="clear"] .tsb-btn--clear{color:#FFF;font-weight:500!important;letter-spacing:0}

/* 窄屏 */
@media(max-width:360px){
  #tsBirthOv .tsb-actions{width:100%;max-width:252px}
  #tsBirthOv .tsb-seg{width:calc(50% - 3px)}
  #tsBirthOv .tsb-actions[data-active="clear"] .tsb-seg{transform:translateX(calc(100% + 0px))}
}
