/* ============================================================
   theme-v3.css  青绿清爽版 UI（参考稿：#4CC2C4 主色 / 白底 / 单列卡 / 悬浮胶囊 tabbar）
   加载顺序：index.2da1efab.css → theme-pink.css → theme-v3.css
   ============================================================ */

:root {
  --v3-primary: #4CC2C4;
  --v3-primary-deep: #2FA8A9;
  --v3-primary-soft: #E7F7F7;
  --v3-ink: #1F2A2E;
  --v3-ink-2: #5C6B70;
  --v3-ink-3: #9AA3A7;
  --v3-bg: #F5F7F8;
  --v3-card: #FFFFFF;
  --v3-red: #FF3B30;
  --v3-blue: #3B82F6;
}

/* ---------- 1. 全局底色 ---------- */
html body,
html body uni-page-body,
html body .page-wrap,
html body .page-wrap.common_bg,
html body uni-page {
  background-color: var(--v3-bg) !important;
  background-image: none !important;
  color: var(--v3-ink) !important;
}

/* ---------- 2. 首页头部 ---------- */
html body .page-wrap-header.common_bg,
html body .page-wrap-header {
  background: rgba(255, 255, 255, 0.96) !important;
  background-image: none !important;
  box-shadow: 0 1px 0 rgba(31, 42, 46, 0.05) !important;
}

html body .page-wrap-header .input-box {
  background: #F1F4F5 !important;
  border-radius: 999px !important;
  height: 34px !important;
  border: 0 !important;
  box-shadow: none !important;
}

html body .page-wrap-header .input-box uni-input,
html body .page-wrap-header .input-box input {
  color: var(--v3-ink-2) !important;
  font-size: 13px !important;
  background: transparent !important;
}

/* 分类横滑胶囊 */
html body .classify uni-view,
html body .classify .uni-swiper-item {
  background: transparent !important;
}

html body .classify .classify-item,
html body .classify uni-view[class*="item"] {
  color: var(--v3-ink-2) !important;
  font-size: 13px !important;
}

html body .classify .act,
html body .classify .classify-item.act,
html body .classify uni-view[class*="act"] {
  background: linear-gradient(135deg, #5ED6D5 0%, #3CB9BB 100%) !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 14px rgba(76, 194, 196, 0.28) !important;
  padding: 6px 14px !important;
  font-weight: 600 !important;
}

/* 区块小标题 */
html body .list-title-l,
html body .list-title-r,
html body .list-title uni-text {
  color: var(--v3-ink) !important;
}
html body .list-title-r.common_bg {
  background: var(--v3-primary-soft) !important;
  border-radius: 999px !important;
}
html body .list-title-r uni-text {
  color: var(--v3-primary-deep) !important;
  font-size: 12px !important;
}

/* ---------- 3. 首页商品卡：双列 → 单列横卡 ---------- */
html body .goods-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  padding: 10px 14px 96px !important;
  column-count: 1 !important;
  box-sizing: border-box !important;
}

/* 取消 uni-app 的两列容器，让卡片成为网格直接子项 */
html body .goods-list-col {
  display: contents !important;
  width: 100% !important;
  column-count: 1 !important;
}

html body .goods-list-col-item {
  display: grid !important;
  grid-template-columns: 104px minmax(0, 1fr) !important;
  grid-template-rows: auto auto 1fr !important;
  column-gap: 12px !important;
  row-gap: 6px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 128px !important;
  margin: 0 !important;
  padding: 12px !important;
  background: var(--v3-card) !important;
  border: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 6px 18px rgba(31, 42, 46, 0.07) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  position: relative !important;
}

html body .goods-list-col-item .pic {
  grid-column: 1 !important;
  grid-row: 1 / 4 !important;
  width: 104px !important;
  height: 104px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #F1F4F5 !important;
  align-self: center !important;
}

html body .goods-list-col-item .pic .c_image,
html body .goods-list-col-item .pic .c_image uni-image,
html body .goods-list-col-item .pic img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 14px !important;
  object-fit: cover !important;
}

html body .goods-list-col-item .name,
html body .goods-list-col-item .name.hang1 {
  grid-column: 2 !important;
  grid-row: 1 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  color: var(--v3-ink) !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  -webkit-line-clamp: 2 !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: normal !important;
}

html body .goods-list-col-item .tag-list {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
}

html body .goods-list-col-item .tag-list-item {
  background: var(--v3-primary-soft) !important;
  color: var(--v3-primary-deep) !important;
  border: 0 !important;
  border-radius: 6px !important;
  font-size: 10px !important;
  line-height: 16px !important;
  padding: 0 6px !important;
  height: 16px !important;
}

html body .goods-list-col-item .tag-list-item.zheng {
  background: #EAF1FF !important;
  color: var(--v3-blue) !important;
}

html body .goods-list-col-item .price-num {
  grid-column: 2 !important;
  grid-row: 3 !important;
  align-self: end !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  width: auto !important;
  height: auto !important;
}

html body .goods-list-col-item .price-num .price {
  color: var(--v3-red) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 22px !important;
  letter-spacing: -0.2px !important;
}

html body .goods-list-col-item .price-num .price uni-text,
html body .goods-list-col-item .price-num .price span {
  color: var(--v3-red) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

/* 卡片右下角装饰按钮（若有"魔盒"类标签） */
html body .goods-list-col-item .goods-btn,
html body .goods-list-col-item .buy-btn {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  background: linear-gradient(135deg, #5ED6D5 0%, #35B4B6 100%) !important;
  color: #fff !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  padding: 5px 14px !important;
  box-shadow: 0 6px 14px rgba(76, 194, 196, 0.3) !important;
}

/* ---------- 4. 悬浮胶囊 tabbar ---------- */
html body .uni-tabbar,
html body uni-tabbar .uni-tabbar {
  left: 14px !important;
  right: 14px !important;
  bottom: 10px !important;
  width: auto !important;
  height: 56px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  border-radius: 28px !important;
  box-shadow: 0 8px 24px rgba(31, 42, 46, 0.13) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  overflow: hidden !important;
  border: 0 !important;
}

html body .uni-tabbar .uni-tabbar__item {
  padding: 6px 0 !important;
}

html body .uni-tabbar .uni-tabbar__label {
  font-size: 10px !important;
  color: var(--v3-ink-3) !important;
}

html body .uni-tabbar .uni-tabbar__item:has(img[src*="_act"]) .uni-tabbar__label {
  color: var(--v3-primary-deep) !important;
  font-weight: 600 !important;
}

html body .uni-tabbar .uni-tabbar__icon {
  width: 22px !important;
  height: 22px !important;
}

/* ---------- 5. 盒子详情页 ---------- */
html body .page-wrap-hd.common_bg,
html body .page-wrap-hd {
  background-color: var(--v3-primary) !important;
}

/* 顶部跑马灯 */
html body .barrage-wrap,
html body .barrage-wrap .marquee_box,
html body lff-barrage {
  background: linear-gradient(90deg, rgba(76, 194, 196, 0.96), rgba(76, 194, 196, 0.12)) !important;
  border-radius: 12px !important;
}

html body .log-item.common_bg {
  background: transparent !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 999px !important;
  font-size: 11px !important;
}

/* 款式概率条 */
html body .all-type {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 18px rgba(31, 42, 46, 0.06) !important;
  padding: 12px 14px !important;
  margin: 10px 14px !important;
}

html body .all-type-item {
  color: var(--v3-ink-2) !important;
  font-size: 12px !important;
  border-bottom: 1px dashed #EDF1F2 !important;
  padding: 6px 0 !important;
}

/* 奖品卡片区 */
html body .prize-card {
  background: #fff !important;
  border-radius: 16px !important;
  box-shadow: 0 6px 18px rgba(31, 42, 46, 0.06) !important;
  margin: 10px 14px !important;
  padding: 12px !important;
}

html body .prize-card .prize-card-title .text {
  color: var(--v3-ink) !important;
  font-weight: 600 !important;
}

html body .prize-card .pic .tag {
  border-radius: 6px !important;
  font-size: 10px !important;
}

/* 底部双按钮（背景图为贴图，改色必须去掉背景图） */
html body .bt-btns .buy.common_bg {
  background-image: linear-gradient(135deg, #5ED6D5 0%, #33B3B5 100%) !important;
  background-color: transparent !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 20px rgba(76, 194, 196, 0.32) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

html body .bt-btns .buy.common_bg .price,
html body .bt-btns .buy.common_bg uni-view {
  color: #fff !important;
}

html body .bt-btns .open.common_bg {
  background-image: none !important;
  background-color: #FFFFFF !important;
  border: 1.5px solid var(--v3-primary) !important;
  border-radius: 16px !important;
  color: var(--v3-primary-deep) !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 16px rgba(76, 194, 196, 0.16) !important;
}

/* ---------- 6. 商城商品详情页 ---------- */
html body .goods-info .price,
html body .goods-info .goods-info-bd {
  color: var(--v3-ink) !important;
}

html body .bt-fixed {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 -4px 18px rgba(31, 42, 46, 0.07) !important;
  border-radius: 20px 20px 0 0 !important;
}

html body .bt-fixed .lg-btn {
  background: linear-gradient(135deg, #5ED6D5 0%, #33B3B5 100%) !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(76, 194, 196, 0.3) !important;
  font-weight: 700 !important;
}

html body .bt-fixed .sm-btn {
  color: var(--v3-ink-2) !important;
}

html body .goods-tag-item,
html body .zheng-pin {
  border-radius: 12px !important;
}

/* ---------- 7. 登录页 ---------- */
html body .login-page uni-button.btn,
html body uni-button.btn {
  background: linear-gradient(135deg, #5ED6D5 0%, #33B3B5 100%) !important;
  color: #fff !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(76, 194, 196, 0.28) !important;
  font-weight: 700 !important;
}

html body .login-page uni-button.btn2,
html body uni-button.btn2 {
  background: #FFFFFF !important;
  color: var(--v3-primary-deep) !important;
  border: 1.5px solid var(--v3-primary) !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}

html body .login-page .biaodan input,
html body .login-page .biaodan uni-input {
  color: var(--v3-ink) !important;
}

html body .login-page .sys-title {
  color: var(--v3-primary-deep) !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
}

/* ---------- 8. 通用按钮 / 圆角统一 ---------- */
html body uni-button,
html body button {
  border-radius: 999px !important;
}

html body .common-btn,
html body .btn-main {
  background: linear-gradient(135deg, #5ED6D5 0%, #33B3B5 100%) !important;
  color: #fff !important;
}

/* 弹层圆角 */
html body uni-popup .uni-popup__wrapper,
html body .detail-pop {
  border-radius: 20px 20px 0 0 !important;
}

/* ============================================================
   v3 rev2  —— 覆盖 theme-pink.css 残留的粉紫元素（价格/标签/星标/tabbar/卡片）
   ============================================================ */

/* 卡片：中性描边 + 轻阴影 */
html body .list-item.shadow,
html body .list-item {
  border: 1px solid #EEF2F3 !important;
  border-radius: 18px !important;
  background: #FFFFFF !important;
  box-shadow: 0 6px 18px rgba(31, 42, 46, 0.06) !important;
}

html body .list-item.shadow .item-info .title,
html body .list-item.shadow .item-info .title.hang2 {
  color: var(--v3-ink) !important;
  -webkit-text-fill-color: var(--v3-ink) !important;
  font-weight: 700 !important;
}

/* 商品卡价格行：价值标签(青绿胶囊) + 价格(正红大字) */
html body .list-item.shadow .item-info .money_max,
html body .money_max {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--v3-red) !important;
}

html body .list-item.shadow .item-info .money_max > uni-view:first-child,
html body .money_max > uni-view:first-child {
  background: var(--v3-primary-soft) !important;
  color: var(--v3-primary-deep) !important;
  -webkit-text-fill-color: var(--v3-primary-deep) !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  line-height: 15px !important;
}

html body .list-item.shadow .item-info .money_max > uni-view:last-child,
html body .list-item.shadow .item-info .money_max > uni-view:last-child b,
html body .list-item.shadow .item-info .money_max > uni-view:last-child span,
html body .money_max > uni-view:last-child,
html body .money_max > uni-view:last-child b,
html body .money_max > uni-view:last-child span {
  color: var(--v3-red) !important;
  -webkit-text-fill-color: var(--v3-red) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.3px !important;
  background: transparent !important;
}

/* 款式标签（原紫 #8A2BE2）改青绿 */
html body .list-item.shadow .prize,
html body .list-item.shadow .prize uni-text,
html body .list-item.shadow .prize span,
html body .prize,
html body .prize uni-text,
html body .prize span {
  color: var(--v3-primary-deep) !important;
  -webkit-text-fill-color: var(--v3-primary-deep) !important;
  font-weight: 700 !important;
}

/* 区块右侧小胶囊（原粉底） */
html body .list-title-r.common_bg,
html body .list-title-r {
  background: var(--v3-primary-soft) !important;
  background-image: none !important;
  border-radius: 999px !important;
  color: var(--v3-primary-deep) !important;
}

html body .list-title-r uni-text,
html body .list-title-r uni-text span {
  color: var(--v3-primary-deep) !important;
  -webkit-text-fill-color: var(--v3-primary-deep) !important;
}

/* tabbar 文案与图标配色 */
html body .uni-tabbar .uni-tabbar__label,
html body .uni-tabbar__label {
  color: var(--v3-ink-3) !important;
  -webkit-text-fill-color: var(--v3-ink-3) !important;
}

html body .uni-tabbar .uni-tabbar__item:has(img[src*="_act"]) .uni-tabbar__label,
html body .uni-tabbar__item:has(img[src*="_act"]) .uni-tabbar__label {
  color: var(--v3-primary-deep) !important;
  -webkit-text-fill-color: var(--v3-primary-deep) !important;
  font-weight: 700 !important;
}

/* 图标位图：紫色系整体旋到青绿区间 */
html body .uni-tabbar img {
  filter: hue-rotate(96deg) saturate(0.95) !important;
}

/* 首页横幅（位图）统一转向青绿，避免紫红与顶栏冲突 */
html body .page-wrap-hd img,
html body .page-wrap-hd .c_image img,
html body .swiper-wrap img,
html body uni-swiper img {
  filter: hue-rotate(120deg) saturate(0.9) brightness(1.02) !important;
}

/* 顶部活动规则 / 跑马灯胶囊 */
html body .barrage-wrap,
html body .page-wrap-hd .barrage-wrap {
  background: linear-gradient(90deg, rgba(76, 194, 196, 0.95), rgba(76, 194, 196, 0.10)) !important;
  border-radius: 999px !important;
}

/* 通用主按钮（原粉紫渐变） */
html body .uni-btn-primary,
html body .btn-primary {
  background: linear-gradient(135deg, #5ED6D5 0%, #33B3B5 100%) !important;
  background-image: linear-gradient(135deg, #5ED6D5 0%, #33B3B5 100%) !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
  box-shadow: 0 8px 20px rgba(76, 194, 196, 0.28) !important;
}

/* 输入框 placeholder */
html body .uni-input-input::placeholder,
html body input::placeholder {
  color: #B4BFC3 !important;
}

/* ============================================================
   v3 rev3 —— 收尾：标签内 <b> 粉字、跑马灯等级名紫字
   ============================================================ */

/* 价值标签内层 <b>：文字走青绿 */
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 uni-text span,
html body .money_max > uni-view:first-child b,
html body .money_max > uni-view:first-child uni-text,
html body .money_max > uni-view:first-child uni-text span,
html body .money_max b:first-child {
  color: var(--v3-primary-deep) !important;
  -webkit-text-fill-color: var(--v3-primary-deep) !important;
  font-weight: 600 !important;
}

/* 价格数字内层 <b> 保正红 */
html body .list-item.shadow .item-info .money_max > uni-view:last-child b,
html body .money_max > uni-view:last-child b {
  color: var(--v3-red) !important;
  -webkit-text-fill-color: var(--v3-red) !important;
  font-weight: 800 !important;
}

/* 跑马灯/卡片内的等级名（普通款/史诗款/传说款）去紫 */
html body .log-item.common_bg .prize,
html body .log-item.common_bg .prize uni-text,
html body .log-item.common_bg .prize uni-text span,
html body .log-item .prize,
html body .log-item .prize uni-text,
html body .log-item .prize uni-text span,
html body .broadcastDataTopBtmDatacss_top .prize,
html body .broadcastDataTopBtmDatacss_top .prize uni-text,
html body .barrage-wrap .prize,
html body .barrage-wrap .prize uni-text,
html body uni-text[class*="prize"],
html body .prize uni-text,
html body .prize uni-text span {
  color: var(--v3-primary-deep) !important;
  -webkit-text-fill-color: var(--v3-primary-deep) !important;
  font-weight: 700 !important;
}

/* 兜底：任何仍残留的紫/粉内联色统一压平 */
html body .barrage-wrap uni-text[style*="138, 43, 226"],
html body .barrage-wrap span[style*="138, 43, 226"] {
  color: var(--v3-primary-deep) !important;
  -webkit-text-fill-color: var(--v3-primary-deep) !important;
}
