/* ===== 抽盒页视觉协调修复 v20261108f ===== */

/* 1. 顶部日志胶囊：修正双重 35px 偏移导致的右侧裁切，渐变统一到品牌青绿 */
html body .barrage-wrap {
  padding: 0 15px !important;
  box-sizing: border-box !important;
}
html body .barrage-wrap .marquee_box {
  left: 15px !important;
  right: auto !important;
  width: calc(100% - 30px) !important;
  border-radius: 14px !important;
  background: linear-gradient(96deg, rgba(47, 168, 169, 0.95) 0%, rgba(47, 168, 169, 0.62) 58%, rgba(47, 168, 169, 0.14) 100%) !important;
  overflow: hidden !important;
}
html body .barrage-wrap .marquee_box .broadcastTopBtm {
  box-sizing: border-box !important;
  padding: 6px 8px !important;
}
html body .barrage-wrap .log-item {
  max-width: 49% !important;
  background-size: 100% 100% !important;
  border-radius: 999px !important;
}
html body .barrage-wrap .log-item .nick-name,
html body .barrage-wrap .log-item .prize,
html body .barrage-wrap .log-item uni-text {
  font-size: 10.5px !important;
  line-height: 1.35 !important;
}

/* 2. 公告条：父容器内联 21px 而滚动块 100px，收敛消除 79px 空白 */
html body .scroll-container {
  height: 21px !important;
  max-height: 21px !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
}
html body .scroll-container .scrolling-text {
  align-items: center !important;
  font-size: 11.5px !important;
  color: #5C6B70 !important;
}
html body .ckgd {
  height: 21px !important;
  line-height: 21px !important;
  font-size: 11px !important;
}

/* 3. 列表容器：去掉与卡片冲突的外层圆角，补足底部安全区 */
html body .page-wrap-bd {
  border-radius: 0 !important;
  margin: 6px 0 0 !important;
  overflow: visible !important;
}
html body .page-wrap-bd > .list,
html body .page-wrap-bd .list {
  border-radius: 0 !important;
  padding-bottom: 112px !important;
}
html body .page-wrap-bd .list-item {
  border-radius: 18px !important;
  box-shadow: 0 4px 14px rgba(31, 42, 46, 0.07) !important;
  border: 1px solid #F0F4F5 !important;
}

/* 4. 卡片角标：红黄位图角标换为青绿文字标，统一色系 */
html body .list-item .tag {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 18px !important;
  background: linear-gradient(135deg, #5ED6D5 0%, #2FA8A9 100%) !important;
  border-radius: 10px 0 10px 0 !important;
  box-shadow: 0 2px 6px rgba(47, 168, 169, 0.35) !important;
  z-index: 2 !important;
}
html body .list-item .tag .c_image,
html body .list-item .tag img {
  display: none !important;
}
html body .list-item .tag::after {
  content: "HOT";
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* 5. 商品标题：严格两行截断，杜绝溢出卡片 */
html body .item-info .title.hang2,
html body .item-info .title {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  word-break: break-all !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  max-height: 2.7em !important;
  color: #1F2A2E !important;
}

/* 6. 价格行：价值胶囊与价格基线对齐、字号统一 */
html body .item-info .money_max {
  align-items: center !important;
  gap: 6px !important;
  margin-top: 7px !important;
  line-height: 1.2 !important;
}
html body .item-info .money_max > uni-view:first-child {
  background: rgba(47, 168, 169, 0.10) !important;
  background-image: none !important;
  color: #2FA8A9 !important;
  -webkit-text-fill-color: #2FA8A9 !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  padding: 3px 6px !important;
  border-radius: 6px !important;
  flex: none !important;
}
html body .item-info .money_max > uni-view:first-child b {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #2FA8A9 !important;
}
html body .item-info .money_max > uni-view:nth-child(2) b {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #FF3B30 !important;
  letter-spacing: -0.2px;
}

/* 7. 卡内跑马灯：内部 343px 宽挤在 169px 容器，收敛为容器宽并裁切 */
html body .item-info .marquee_box {
  height: 34px !important;
  overflow: hidden !important;
  border-radius: 8px !important;
  background: rgba(47, 168, 169, 0.04) !important;
}
html body .item-info .marquee_box > uni-view {
  width: 100% !important;
  height: 34px !important;
  overflow: hidden !important;
}
html body .item-info .marquee_box .broadcastTopBtm {
  width: 100% !important;
  height: 34px !important;
  overflow: hidden !important;
}
html body .item-info .marquee_box .bml01 {
  width: 100% !important;
  height: 34px !important;
  justify-content: space-between !important;
  align-items: center !important;
}
html body .item-info .marquee_box .flip-container1,
html body .item-info .marquee_box .flip-container2 {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  overflow: hidden !important;
}
html body .item-info .marquee_box .flip-container1 .c_image,
html body .item-info .marquee_box .flip-container2 .pic {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  border-radius: 7px !important;
  overflow: hidden !important;
  background: #fff !important;
}

/* 8. 底部胶囊导航：图标与文字间距对称 */
html body .uni-tabbar__item {
  padding: 7px 0 6px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}
html body .uni-tabbar__label {
  font-size: 10.5px !important;
  margin-top: 2px !important;
  line-height: 1.1 !important;
}

/* 9. 修复：「活动规则」竖排溢出（裸 P 被压成 14px 逐字换行） */
html body .page-wrap-hd p,
html body .page-wrap-hd uni-text { 
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  writing-mode: horizontal-tb !important;
  font-size: 11px !important;
  line-height: 20px !important;
  height: 20px !important;
  max-height: 20px !important;
  padding: 0 8px !important;
  margin: 0 !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  color: #fff !important;
  background: rgba(255,255,255,.22) !important;
  border: 1px solid rgba(255,255,255,.45) !important;
  letter-spacing: .3px !important;
  text-align: center !important;
}
html body .page-wrap-hd div:has(> p),
html body .page-wrap-hd div:has(> uni-text) {
  overflow: visible !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
}

/* 10. 修复：日志条目折行被 overflow 裁切（条目高 28.34 > 容器 21） */
html body .barrage-wrap .log-item {
  height: 21px !important;
  max-height: 21px !important;
  line-height: 21px !important;
  overflow: hidden !important;
  align-items: center !important;
}
html body .barrage-wrap .log-item .prize,
html body .barrage-wrap .log-item .nick-name,
html body .barrage-wrap .log-item uni-text,
html body .barrage-wrap .log-item span {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 21px !important;
  height: 21px !important;
  max-height: 21px !important;
  font-size: 11px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}
html body .barrage-wrap .log-item .prize { text-overflow: clip !important; }

/* 11. 修复：底部公告条与「查看更多」被裁切（scrollHeight 30 > clientHeight 21） */
html body .ckgd {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  line-height: 30px !important;
  font-size: 11.5px !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
html body div:has(> .ckgd) {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  overflow: visible !important;
}
html body .scroll-container {
  height: 30px !important;
  max-height: 30px !important;
  overflow: hidden !important;
}
html body .scroll-container .scrolling-text { font-size: 11.5px !important; }

/* 12. 字号补齐：商品价值与卡片内小字 */
html body .item-info .money_max,
html body .item-info .money_max uni-text,
html body .item-info .money_max span { font-size: 11px !important; }
html body .item-info .money_max uni-view { font-size: 11px !important; }

/* 13. 收尾：uni-view 自定义标签未被 div:has 命中，逐项放开 */
html body .page-wrap-hd uni-view:has(> p),
html body .page-wrap-hd uni-view:has(> uni-text) {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  flex: none !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  overflow: visible !important;
}
html body uni-view:has(> .ckgd) {
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  overflow: visible !important;
}
html body .item-info .money_max > uni-view:first-child b,
html body .item-info .money_max > uni-view:first-child uni-text,
html body .item-info .money_max > uni-view:first-child span {
  font-size: 11px !important;
  line-height: 1.2 !important;
}
html body .item-info .money_max > uni-view:nth-child(2) b { font-size: 18px !important; }

/* 14. 终修：「商品价值」被 theme-v3/theme-pink 的 (0,4,1) 规则压制，按同结构提特异性 */
html body .list-item.shadow .item-info .money_max > uni-view:first-child b,
html body .list-item.shadow .item-info .money_max > uni-view:first-child uni-text,
html body .list-item.shadow .item-info .money_max > uni-view:first-child span,
html body .list-item .item-info .money_max > uni-view:first-child b {
  font-size: 11px !important;
  line-height: 1.25 !important;
}
html body .list-item.shadow .item-info .money_max > uni-view:nth-child(2) b { font-size: 18px !important; }

/* 15. 顶部空白带：补品牌渐变头部（0~105px）与标题，消除灰白空块 */
html body .page-wrap-hd {
  background-image: linear-gradient(180deg, #4CC2C4 0%, #46BFC0 40%, #5CCACA 72%, rgba(76,194,196,0) 100%) !important;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-size: 100% 108px !important;
  background-position: 0 0 !important;
}
html body .page-wrap-hd::before {
  content: "潮玩乐部" !important;
  position: absolute !important;
  left: 15px !important;
  top: 16px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  line-height: 22px !important;
  color: #fff !important;
  letter-spacing: 1px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.10) !important;
  z-index: 6 !important;
  pointer-events: none !important;
}
html body .page-wrap-hd::after {
  content: "开盒即赚 · 官方正品" !important;
  position: absolute !important;
  left: 15px !important;
  top: 40px !important;
  font-size: 10.5px !important;
  line-height: 14px !important;
  color: rgba(255,255,255,.88) !important;
  letter-spacing: .4px !important;
  z-index: 6 !important;
  pointer-events: none !important;
}

/* 16. 收尾：渐变铺满整个 hd 高度，消除 205~230 灰白尾带与 100~105 明暗跳变 */
html body .page-wrap-hd {
  background-image: linear-gradient(180deg, #4CC2C4 0%, #46BFC0 26%, #5CCACA 46%, #7ED6D4 74%, rgba(245,247,248,.92) 94%, rgba(245,247,248,0) 100%) !important;
  background-size: 100% 230px !important;
  background-repeat: no-repeat !important;
  background-position: 0 0 !important;
  background-color: transparent !important;
}
