/* ============================================================
   蔚蓝档案原片皮肤层（ba-skin.css）
   2026-11-28 · 素材来自 站点/ui/ba/（蔚蓝档案 UI 原图集切图）
   原则：只接入原片部件，不改页面骨架；位置/尺寸按 prefab 控件树换算
   ============================================================ */

/* 1) 未读红点：原版橙红柔边圆点 */
.reddot{
  width:30px;height:30px;
  border:0;border-radius:0;
  background:url(/ui/ba/reddot.png) center/100% 100% no-repeat;
  box-shadow:none;
}

/* 2) 大厅左右切换箭头：原版蓝色斜面箭头（右侧镜像） */
.chev{
  color:transparent!important;
  text-shadow:none!important;
  background:url(/ui/ba/btn_arrow.png) center/auto 72% no-repeat;
  opacity:.88;
}
.chev:hover{opacity:1;filter:drop-shadow(0 2px 5px rgba(40,90,140,.35))}
.chev-r{transform:scaleX(-1)}

/* ============================================================
   3) 商城商品格：按 UIShopSlot prefab 重排
   prefab 346×586 → 本站 290×490，k=0.838
   坐标来源：screen_UIShopSlot.txt（本地坐标，y 向上，原点居中）
   ============================================================ */
.sp-card{
  border:0;border-radius:18px;
  background:#fff;
  box-shadow:0 8px 20px rgba(47,78,114,.12);
  overflow:hidden;
}
.sp-card:hover{box-shadow:0 14px 30px rgba(47,78,114,.20)}
.sp-card.sel{box-shadow:0 10px 26px rgba(217,166,44,.34)}

/* 顶部磨砂三角装饰带（BG(1) = Common_Shop_Deco 360×388，只露顶部一截） */
.sp-card .sp-deco{
  position:absolute;left:0;right:0;top:0;height:168px;z-index:0;
  background:url(/ui/ba/shop_deco.png) center top/100% auto no-repeat;
  opacity:.92;pointer-events:none;
}

/* 标题 + 分割线（Label_Title / Line = Common_Square_Bg 299×4） */
.sp-card .sp-nm{left:22px;top:26px;width:248px;height:36px;line-height:36px;font-size:23px}
.sp-card .sp-line{
  position:absolute;left:22px;top:68px;width:248px;height:4px;z-index:2;
  background:#dbe8f4;border-radius:2px;
}

/* 说明/库存（Tag_UseCount） */
.sp-card .sp-tag{left:22px;top:302px;width:248px;text-align:center;font-size:14px;color:#7d93a8}

/* 商品图（MerchandiseImage/ItemBg = Card_Item_Bg_N 279×229） */
.sp-card .sp-img{
  left:26px;top:100px;width:238px;height:192px;border-radius:14px;
  border:0;
  background:url(/ui/ba/card_item.png) center/100% 100% no-repeat,#eaf2fa;
}
.sp-card .sp-img img{width:88%;height:88%}

/* 勾选框（SelectBox 66×66，压在商品图左上角） */
.sp-card .sp-chk{left:16px;top:112px;width:54px;height:54px}

/* 购买块（Button = Common_Btn_BG 300×158 + Deco = Btn_Normal_B_S_Pt 252×140）
   整块做成一枚白底 + 右侧蓝色斜切按钮，价格槽压在按钮上沿 */
.sp-card .sp-pbox{
  left:10px;top:330px;width:270px;height:150px;
  display:flex;flex-direction:column;
  border-radius:16px;
  background:url(/ui/ba/btn_blue.png) right center/56% 100% no-repeat,#fff;
  box-shadow:0 4px 12px rgba(40,90,140,.14);
  padding:6px 0 0;overflow:hidden;
}
.sp-card .sp-price{
  height:46px;margin:0 14px;
  border-radius:11px;background:#fff;
  box-shadow:0 2px 6px rgba(40,90,140,.14);
  color:var(--navy);font-size:23px;
}
.sp-card .sp-price img{width:30px;height:31px}
.sp-card .sp-buy{
  flex:1;margin:0;height:auto;border:0;
  background:transparent;
  color:#1d446b;font-size:23px;letter-spacing:3px;
}
.sp-card .sp-buy:hover{filter:none;background:rgba(255,255,255,.32)}
.sp-card .sp-buy[disabled]{color:#8aa0b5;background:transparent}
.sp-pbox:has(.sp-buy[disabled]){
  background:url(/ui/ba/btn_dim.png) right center/56% 100% no-repeat,#f4f7fa;
}

/* ============================================================
   4) 7 日签到：BA 签到卡质感（圆角白卡 + 今日黄框 + 已领绿勾）
   ============================================================ */
#mCheckin .ck-cell{
  border:0;border-radius:20px;background:#fff;
  box-shadow:0 6px 16px rgba(47,78,114,.10);
}
#mCheckin .ck-cell.ck-today{
  background:#fff;
  box-shadow:0 8px 20px rgba(217,166,44,.26),0 0 0 6px #ffe9a8 inset;
}
#mCheckin .ck-cell.ck-done{background:linear-gradient(180deg,#fff,#eef6fd)}
#mCheckin .ck-cell.ck-done::after{
  content:"";
  position:absolute;right:12px;top:10px;
  width:36px;height:29px;
  background:url(/ui/ba/check.png) center/contain no-repeat;
  z-index:3;
}


/* 折扣角标（Tag_Discount：Common_Bg_SaleTag 108×56，Label 在左、% 在右） */
.sp-card .sp-off{
  position:absolute;right:5px;top:108px;width:96px;height:44px;z-index:4;
  background:url(/ui/ba/sale_tag.png) center/100% 100% no-repeat;
  display:flex;align-items:center;justify-content:flex-end;
  padding-left:8px;padding-right:44px;
  font-size:18px;font-weight:900;color:#6b4300;letter-spacing:0;
}
.sp-card .sp-price .sp-was{
  position:relative;display:inline-block;
  font-size:13px;font-weight:700;color:#93a8bc;margin-left:6px;
}
.sp-card .sp-price .sp-was::after{
  content:"";position:absolute;left:-1px;right:-1px;top:50%;
  height:2px;background:#9db1c4;
}

/* 售罄 / 未开放 / 已拥有遮罩（Cover = Common_Bg_Raius20px 342×576，depth 23） */
.sp-card .sp-cover{
  position:absolute;inset:0;z-index:6;
  border-radius:18px;
  background:url(/ui/ba/cover.png) center/100% 100% no-repeat;
  opacity:.86;
  display:flex;align-items:center;justify-content:center;
  pointer-events:none;
}
.sp-card .sp-cover b{
  padding:8px 26px;border-radius:999px;
  background:rgba(29,68,107,.9);color:#fff;
  font-size:22px;letter-spacing:4px;
}
