/* TW-P1-FIX-20261009：装修期防点击遮罩在用户态强制 pointer-events:none。
   仅放行编辑态（DIY route 下 .tw-edit-mode 类会由编辑器本身挂上），其他一律放行。
   回滚：删除此注释至 TW-P1-FIX-END 之间内容 */
.tw-edit-mode uni-view.absolute.z-10.top-0.right-0.bottom-0.left-0 { pointer-events: auto; }
/* TW-P1-FIX-END */

/* ============================================================================
   tw-brand.css — TenderWorld 全站品牌皮肤 v2 简约高级感 (20261011)
   设计系统：米灰底 #FFFFFF / 纸卡 #FFFFFF / 暖咖 #1A1A1A / 深咖 #000000 / 墨色 #1A1A1A
   原则：克制、低饱和、大留白；全站去促销红/橙，价格用墨色而非红色
   回滚：从 index.html 删除本文件 <link> 即可，全部样式随文件移除
   ============================================================================ */

/* ---------- 1. 设计变量（覆盖 Niushop 运行时主题） ---------- */
:root,
html:root,
html body,
html uni-app,
html uni-page-wrapper,
html uni-page-body,
html .uni-page-body,
body,
uni-app,
uni-page-wrapper,
uni-page-body,
.uni-page-body {
  --page-bg-color: #F4F4F2;
  --temp-bg: #F4F4F2;
  --UI-BG-0: #F4F4F2;
  --primary-color: #2C2C2E;
  --primary-color-dark: #2C2C2E;
  --primary-color-disabled: #D1D1D6;
  --primary-color-light: #EAEAE5;
  --primary-help-color1: #6B6B70;
  --primary-help-color2: #6B6B70;
  --primary-help-color3: #2C2C2E;
  --primary-help-color4: #6B6B70;
  --primary-help-color5: #8E8E93;
  --price-text-color: #2C2C2E;
  --tw-ink: #2C2C2E;
  --tw-brown: #000000;
  --tw-accent: #2C2C2E;
  --tw-accent-deep: #2C2C2E;
  --tw-card: #FFFFFF;
  --tw-line: #E2E2DD;
  --tw-sub: #8E8E93;
  --tw-field: #EAEAE5;
}

html body,
html uni-page-body,
html .uni-page-body,
body,
uni-page-body,
.uni-page-body {
  background-color: #F4F4F2;
  color: #2C2C2E;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 2. 顶部导航 ---------- */
.u-navbar,
uni-navbar,
.uni-navbar {
  background-color: #F4F4F2 !important;
}
.u-navbar__content .u-navbar__title,
.u-navbar .u-navbar__title {
  color: #2C2C2E !important;
  font-weight: 600;
  letter-spacing: 1px;
}
.u-navbar .u-navbar__right__icon,
.u-navbar [class*="arrow-left"],
.nc-icon-fanhuiV6xx,
.nc-icon-fanhui {
  color: #2C2C2E !important;
}
.u-status-bar {
  background-color: #F4F4F2 !important;
}

/* ---------- 3. 按钮 ---------- */
uni-button[type="primary"],
.u-button--primary,
button[type="primary"] {
  background-color: #2C2C2E !important;
  border-color: #2C2C2E !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
  font-weight: 500;
  letter-spacing: 2px;
}
uni-button[type="primary"][plain],
.u-button--primary.u-button--plain {
  background-color: transparent !important;
  color: #666666 !important;
  border-color: #2C2C2E !important;
}
.u-button--success { background-color: #777777 !important; border-color: #777777 !important; color: #fff !important; }
.u-button--error { background-color: #888888 !important; border-color: #888888 !important; color: #fff !important; }
.u-button--warning { background-color: #2C2C2E !important; border-color: #2C2C2E !important; color: #fff !important; }

/* 圆形小按钮/图标按钮的 hover 态 */
.u-icon-btn { background-color: #EAEAE5 !important; color: #2C2C2E !important; }

/* ---------- 4. 表单与搜索 ---------- */
.u-search__content,
.u-search {
  background-color: #FFFFFF !important;
  border-radius: 999px !important;
}
.u-input__content,
.u-textarea,
.u-field-input {
  border-color: var(--tw-line) !important;
}
.u-input {
  background-color: #FFFFFF !important;
  border-radius: 12px !important;
}
/* 验证码/获取验证码按钮 */
.sms-code,
[class*="sms-code"] {
  color: #666666 !important;
}

/* ---------- 5. 卡片 / 单元格 / 列表 ---------- */
.u-cell-group,
.u-cell {
  background-color: transparent;
}
.u-cell__body {
  background-color: #FFFFFF !important;
}
[class*="goods-item"],
[class*="goods-card"],
[class*="list-item"] {
  border-radius: 14px;
}
/* 商品主图统一圆角 */
.goods-image,
[class*="goods-image"],
[class*="goods_img"] {
  border-radius: 12px;
  overflow: hidden;
}

/* ---------- 6. Tabs / 分段选择 ---------- */
.u-tabs__wrapper__nav__line {
  background-color: #2C2C2E !important;
}
.u-tabs__wrapper__nav__item__text--active {
  color: #2C2C2E !important;
  font-weight: 600;
}
.u-subsection {
  background-color: #EAEAE5 !important;
  border-radius: 999px !important;
}
.u-subsection__bar {
  background-color: #FFFFFF !important;
  border-radius: 999px !important;
}

/* ---------- 7. 标签 / 角标 / 徽标 ---------- */
.u-tag--primary {
  background-color: #EAEAE5 !important;
  color: #2C2C2E !important;
  border-color: #E2E2DD !important;
}
.u-tag--error {
  background-color: #F5F5F5 !important;
  color: #9C6B6B !important;
  border-color: #EEEEEE !important;
}
.u-badge--error {
  background-color: #2C2C2E !important;
}
/* 业务促销标签（满减/折扣/热卖）去红 */
[class*="discount-tag"],
[class*="coupon-tag"],
[class*="promotion"] {
  background-color: #F5F5F5 !important;
  color: #666666 !important;
}

/* ---------- 8. 开关 / 复选 / 单选 / 步进器 ---------- */
.u-switch--on {
  background-color: #2C2C2E !important;
}
.u-checkbox__icon-wrap--checked {
  background-color: #2C2C2E !important;
  border-color: #2C2C2E !important;
}
.u-radio__icon-wrap--checked {
  background-color: #2C2C2E !important;
  border-color: #2C2C2E !important;
}
.u-number-box__content {
  border-color: var(--tw-line) !important;
  border-radius: 10px !important;
  overflow: hidden;
}
.u-number-box__content__minus--disabled,
.u-number-box__content__plus--disabled {
  background-color: #F5F5F5 !important;
  color: #CCCCCC !important;
}

/* ---------- 9. 弹层 / 弹窗 / 动作菜单 ---------- */
.u-popup,
.u-action-sheet,
.u-popup__content {
  background-color: #FFFFFF !important;
}
.u-popup--top,
.u-popup--center,
.u-popup--right {
  border-radius: 18px !important;
}
.u-action-sheet__item {
  background-color: #FFFFFF !important;
  color: #2C2C2E !important;
}
.u-action-sheet__cancel {
  background-color: #FFFFFF !important;
  color: #999999 !important;
}
.u-modal__content {
  border-radius: 18px !important;
  overflow: hidden;
}
.u-modal__content__btn-group__btn--confirm {
  color: #666666 !important;
}
.u-overlay {
  background-color: rgba(0, 0, 0, .45) !important;
}

/* ---------- 10. 空状态 / 加载 / 分割线 ---------- */
.u-empty__text {
  color: #8E8E93 !important;
  letter-spacing: 1px;
}
.u-loading-icon__spinner--semicircle {
  border-color: #2C2C2E !important;
  border-top-color: transparent !important;
}
.u-divider__content__text {
  color: #8E8E93 !important;
  letter-spacing: 2px;
}

/* ---------- 11. 价格体系：全站墨色，不用红 ---------- */
.price,
[class*="price"] uni-text,
[class*="Price"] uni-text,
.goods-price,
.line-price,
[class*="goods-price"],
[class*="show-price"] {
  color: #2C2C2E !important;
}
[class*="original-price"],
[class*="line-through"],
[class*="market-price"] {
  color: #8E8E93 !important;
}
/* Tailwind 任意值红色文本（如 text-[#ff4545]/text-[#f2333c] 等）属性级兜底 */
[class*="text-[#ff"],
[class*="text-[#f2"],
[class*="text-[#fa"],
[class*="text-[#e4"],
[class*="text-[#e6"],
[class*="text-[#fe"] {
  color: #8E8E93 !important;
}

/* ---------- 12. 商品详情页 ---------- */
/* CTA 双按钮：双类名提升优先级以覆盖 scoped 属性选择器 */
.bg-linear.bg-linear {
  background: #2C2C2E !important;
  color: #FFFFFF !important;
  letter-spacing: 3px;
  border-radius: 999px !important;
}
/* 「加入购物车」通常为第一个 CTA：浅底深字 */
.detail-foot-btn,
[class*="add-cart"] .bg-linear,
[class*="footer"] [class*="cart"] {
  background: #EAEAE5 !important;
  color: #2C2C2E !important;
}
/* 底部操作栏容器 */
[class*="detail-footer"],
[class*="goods-detail-bottom"],
[class*="detail-foot"] {
  background-color: #FFFFFF !important;
  border-top: 1px solid var(--tw-line) !important;
}
/* 商品标题/规格名 */
.goods-name,
[class*="goods_name"] {
  color: #2C2C2E !important;
}
/* 营销条（满减/优惠券领取条） */
.ns-goods-manjian,
[class*="manjian"],
[class*="coupon-receive"] {
  background-color: #EAEAE5 !important;
  color: #2C2C2E !important;
  border-radius: 10px;
}

/* ---------- 13. 购物车 ---------- */
.cart-btn-bg.cart-btn-bg {
  background: #2C2C2E !important;
  border-radius: 999px !important;
}
.brand-tag {
  background-color: #F5F5F5 !important;
  color: #666666 !important;
}

/* ---------- 14. 订单 / 支付 ---------- */
.payment-body {
  --shop-payment-header-color: #2C2C2E !important;
  --shop-payment-header-tab-color: #F5F5F5 !important;
}
.bg-color {
  background: #2C2C2E !important;
}
[class*="order-state"],
[class*="status-text"] {
  color: #000000 !important;
}
/* 支付方式选中边框 */
[class*="pay-item"][class*="active"],
[class*="payment-item"][class*="active"] {
  border-color: #2C2C2E !important;
}

/* ---------- 15. 个人中心 / 会员 / 积分 / 优惠券 ---------- */
[class*="member-header"],
[class*="user-header"],
[class*="member-top"] {
  background: linear-gradient(168deg, #F4F4F2 0%, #EAEAE5 100%) !important;
  color: #2C2C2E !important;
}
[class*="point-shop"] [class*="exchange-info"],
.shop-exchange-info-wrap {
  background: linear-gradient(168deg, #F4F4F2 0%, #EAEAE5 100%) !important;
}
/* 优惠券票面 */
[class*="coupon-item"],
[class*="coupon-card"] {
  border-radius: 14px !important;
}
/* 积分商城商品卡 */
[class*="point-goods"] {
  border-radius: 14px !important;
  overflow: hidden;
}

/* ---------- 16. 底部 tabbar ---------- */
.u-tabbar,
.u-tabbar__content,
uni-tabbar {
  background-color: #FFFFFF !important;
  border-top: 1px solid #E2E2DD !important;
}
.u-tabbar-item--active .u-tabbar-item__text,
uni-tabbar .uni-tabbar__item--active {
  color: #2C2C2E !important;
}

/* ---------- 17. 步骤条（订单物流/售后） ---------- */
.u-steps__item__dot--checked {
  background-color: #2C2C2E !important;
  border-color: #2C2C2E !important;
}
.u-line--circle {
  background-color: #2C2C2E !important;
}

/* ---------- 18. Toast / 消息提示 ---------- */
.u-toast__content {
  border-radius: 14px !important;
  background-color: rgba(0, 0, 0, .88) !important;
  letter-spacing: 1px;
}
.u-toast__content [class*="toast__icon"] {
  color: #2C2C2E !important;
}

/* ---------- 19. 宽屏桌面：H5 锁定手机列 ---------- */
@media screen and (min-width: 769px) {
  html {
    font-size: 21.333px !important;
    overflow-x: hidden;
  }
  body,
  uni-app,
  uni-page,
  uni-page-wrapper,
  uni-page-body {
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  uni-page-wrapper,
  uni-page-body {
    overflow-x: hidden !important;
  }
  /* 登录等全屏页根容器用了 w-screen(100vw)，宽屏下会撑破居中列 */
  .w-screen {
    width: 100% !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  uni-page-body { font-size: 18.67px !important; }
  body {
    overflow-x: hidden !important;
    background-color: #F4F4F2 !important;
  }
  /* 固定定位的弹层/tabbar 在宽屏下跟随居中列 */
  .u-tabbar,
  uni-tabbar,
  [class*="detail-footer"],
  [class*="goods-detail-bottom"] {
    max-width: 500px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }
}

/* ---------- 21. 会员信息头部：暖纸渐变 ---------- */
[class*="shop-member-info"],
[class*="member-info-wrap"] {
  background: linear-gradient(168deg, #FFFFFF 0%, #F0F0F0 100%) !important;
}

/* ---------- 22. 会员等级条（style-4 黑金背景图 -> 浅咖纸卡） ---------- */
.style-4.style-4 {
  background-image: none !important;
  background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%) !important;
  border: 1px solid rgba(143, 106, 67, .18) !important;
}
.style-4 uni-text,
.style-4 text,
.style-4 .text-\[\#FFEFB0\],
.style-4 [class*="FFEFB0"] {
  color: #000000 !important;
}
.style-4 .style-btn,
.style-4 [class*="style-btn"] {
  background: #FFFFFF !important;
  color: #666666 !important;
}
.style-4 .style-btn uni-text,
.style-4 .style-btn text {
  color: #666666 !important;
}
/* style-1/2/3 其余风格若出现，同样压成浅咖（文字随之转深） */
.style-bg-1.style-bg-1,
.style-bg-2.style-bg-2 {
  background: linear-gradient(135deg, #F5F5F5 0%, #E8E8E8 100%) !important;
}
.style-bg-1 [class*="FFDAA8"],
.style-bg-2 [class*="FFE3B1"] {
  color: #000000 !important;
}
/* VIP 金色 logo 图在浅底上去饱和处理 */
.style-4 image {
  filter: sepia(.4) saturate(.6);
}

/* ---------- 23. 登录 / 注册 / 找回密码 ---------- */
.w-screen uni-button,
[class*="login"] uni-button,
[class*="register"] uni-button,
[class*="resetpwd"] uni-button {
  background: #2C2C2E !important;
  background-color: #2C2C2E !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
}
.w-screen uni-button[disabled],
[class*="login"] uni-button[disabled],
[class*="register"] uni-button[disabled] {
  opacity: .45;
}
/* 协议勾选中的链接色 */
[class*="auth"] [class*="protocol"],
[class*="login"] [class*="agreement"] {
  color: #666666 !important;
}

/* ---------- 24. 积分商城 ---------- */
[class*="exchange-info"] [class*="title"],
[class*="point-shop"] [class*="title"] {
  color: #000000 !important;
}
/* 积分商品兑换按钮（红橙内联由 TW-DEBRAND 脚本处理，这里兜底类名样式） */
[class*="exchange-btn"],
[class*="point-btn"] {
  background: #2C2C2E !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
}

/* ---------- 25. 商品列表/详情里的红色促销文案转咖 ---------- */
[class*="discount"],
[class*="coupon-label"],
[class*="manjian"] {
  color: #666666 !important;
}
/* 库存/销量等辅助灰字 */
[class*="stock"],
[class*="sales"] {
  color: #999999 !important;
}

/* ============================================================================
   v5 UI 形态改版（20261004）—— 改结构/形态，不只是颜色
   ============================================================================ */

/* ---------- 26. 圆角系统整体放大（编译产物的全局半径变量） ---------- */
:root,
body,
uni-app {
  --rounded-small: .875rem;   /* 8px -> 14px */
  --rounded-mid: 1.125rem;    /* 10px -> 18px */
  --rounded-big: 1.5rem;      /* 12px -> 24px */
}

/* ---------- 27. 商品卡片语言：纸卡 + 柔和投影 + 大留白 ---------- */
.product-warp .top-mar.bg-white,
.product-warp > .top-mar {
  border-radius: 1rem !important;
  box-shadow: 0 .25rem 1.25rem rgba(0, 0, 0, .07) !important;
  margin-bottom: .625rem !important;
  overflow: hidden;
}
/* 列表商品名加粗一档，价格更突出 */
.product-warp .multi-hidden {
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

/* ---------- 28. 底部 tabbar：悬浮药丸 ---------- */
.uni-tabbar,
uni-tabbar {
  background: transparent !important;
  box-shadow: none !important;
  border-top: none !important;
}
.uni-tabbar__bd,
.uni-tabbar .uni-tabbar__bd,
.u-tabbar__content {
  margin: 0 .75rem .625rem !important;
  border-radius: 999px !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 .375rem 1.75rem rgba(0, 0, 0, .16) !important;
  border-top: none !important;
  overflow: hidden;
}

/* ---------- 29. 商品详情 CTA：悬浮药丸栏 ---------- */
uni-view.fixed:has(.bg-linear),
div.fixed:has(.bg-linear) {
  left: .75rem !important;
  right: .75rem !important;
  bottom: .625rem !important;
  border-radius: 1.25rem !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 .375rem 1.75rem rgba(0, 0, 0, .16) !important;
  overflow: hidden;
}

/* ---------- 30. 分类页：选中项成药丸白卡 ---------- */
.category uni-text[class*="active"],
.category [class*="active"] uni-text {
  background-color: #FFFFFF !important;
  border-radius: 999px !important;
  color: #000000 !important;
  font-weight: 600 !important;
  box-shadow: 0 .125rem .75rem rgba(0, 0, 0, .08);
}

/* ---------- 31. 底部弹层大圆角 ---------- */
.u-popup__content,
uni-popup [class*="content"],
[class*="popup-content"] {
  border-radius: 1.5rem 1.5rem 0 0 !important;
  overflow: hidden;
}

/* ---------- 32. 搜索框：大圆角 + 轻投影 ---------- */
.search-input,
.search-input .input,
[class*="search"] [class*="input"] {
  border-radius: 999px !important;
}
.search-input {
  box-shadow: 0 .125rem .75rem rgba(0, 0, 0, .06);
}

/* ---------- 33. 内联促销红/橙文字兜底转深咖（如「猜你喜欢」标题） ---------- */
[style*="color: rgb(255,"],
[style*="color:rgb(255,"],
[style*="color: rgb(250,"],
[style*="color: rgb(244,"],
[style*="color: rgb(238,"],
[style*="color: rgb(230,"] {
  color: #000000 !important;
}
/* 内联促销渐变背景的非按钮块兜底 */
[style*="linear-gradient"][style*="rgb(255,"],
[style*="linear-gradient"][style*="rgb(250,"] {
  background: linear-gradient(135deg, #2C2C2E 0%, #666666 100%) !important;
}

/* ---------- 34. 页面区块标题排版（字距/字重统一） ---------- */
[class*="section-title"],
[class*="module-title"],
uni-text[class*="title"][class*="font-500"] {
  letter-spacing: .05em;
}

/* ============================================================================
   v6 UI 形态改版第二轮（20261004）—— 会员头部去棕 / 首页药丸栏定型 / 分类选中药丸
   ============================================================================ */

/* ---------- 35. 会员页 DIY 头部：修复 v5-33 误伤（白色内联渐变被判成促销红） ----------
   原状：linear-gradient(255,255,255 -> 246,246,246,.1) 浅渐变，被兜底刷成咖渐变。
   头部容器挂在 .top-fixed-home 组件下，精准恢复为浅纸渐变 + 墨色文字。 */
.top-fixed-home [style*="linear-gradient"],
.draggable-element [style*="linear-gradient(rgb(255, 255, 255"] {
  background: linear-gradient(168deg, #FFFFFF 0%, #F0F0F0 100%) !important;
}
.top-fixed-home,
.top-fixed-home uni-text,
.top-fixed-home text {
  color: #2C2C2E !important;
}
/* 头部内辅助信息（余额/积分/优惠券标签）降一档 */
.top-fixed-home [class*="text-[24rpx]"],
.top-fixed-home [class*="label"] {
  color: #999999 !important;
}

/* ---------- 36. 首页自定义底部栏 #tw-tabbar-v8：定型为悬浮药丸 ----------
   原状：宽屏下 right:auto 导致收缩成 84px 内容宽，文字挤成一团。
   改为：纸卡药丸悬浮 + 选中项深咖小药丸，宽屏/移动一致。 */
#tw-tabbar-v8 {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  bottom: .625rem !important;
  width: auto !important;
  max-width: calc(100% - 1.5rem) !important;
  background: #FFFFFF !important;
  border-top: none !important;
  border-radius: 999px !important;
  box-shadow: 0 .375rem 1.75rem rgba(0, 0, 0, .16) !important;
  padding: .3rem .5rem !important;
}
#tw-tabbar-v8 a {
  padding: .3rem 0 !important;
  border-radius: 999px !important;
  font-size: .75rem !important;
  letter-spacing: .15em !important;
  flex: none !important;
  width: 3.5rem !important;
}
#tw-tabbar-v8 a.tw-on {
  background: #2C2C2E !important;
  color: #FFFFFF !important;
}

/* ---------- 37. 分类页左栏选中态：浅咖药丸（白底/米灰底均可见） ----------
   原状：active 类在 .tab-item 上，v5-30 选择器没打中；选中项是 #F6F6F6 死灰块。 */
.tab-item.tab-item-active {
  background: transparent !important;
}
.tab-item.tab-item-active .text-box,
.category .tab-item-active [class*="text-box"] {
  background-color: #F5F5F5 !important;
  color: #000000 !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  box-shadow: 0 .125rem .625rem rgba(0, 0, 0, .08);
  padding-top: .35rem;
  padding-bottom: .35rem;
}


/* TW-QC-FIX-20261010：修复子串选择器误伤——白字类 !text-[#fff] 被 [class*=text-[#ff]] 强转深咖（墨底结算/删除按钮不可读），黑底标签黄字被 [style*=color: rgb(255,)] 强转深咖。
   回滚：删除本注释至 TW-QC-FIX-END 之间内容，引用版本号回退即可。 */
[class*="text-[#fff"] { color: #FFFFFF !important; }
.base-tag { color: #DDDDDD !important; }
.u-swipe-action-item__right__button__wrapper__text { color: #FFFFFF !important; }
/* TW-QC-FIX-END */

/* ============================================================================
   TW-DEBRAND-FIX-20261011：强制覆盖 TW-DEBRAND 脚本残留的暖咖色
   根因：TW-DEBRAND-20261004 脚本用 JS 内联样式将按钮染为暖咖（#5C3D2E 等），
   与 tw-brand.css 黑白灰换肤冲突。本段用 !important 级 CSS 强制统一。
   回滚：删除本注释至 TW-DEBRAND-FIX-END 之间内容
   ============================================================================ */

/* 强制覆盖所有被 data-tw-debranded 标记的元素 */
[data-tw-debranded] {
  background: none !important;
  background-image: none !important;
}

/* 加入购物车 / 次行动按钮：白底黑字黑描边 */
uni-button[data-tw-debranded],
button[data-tw-debranded] {
  border-radius: 6px !important;
}

/* 通过文字内容精准命中（加入购物车类按钮） */
uni-button:has-text("加入购物车"),
uni-button:has-text("加入清单"),
button:has-text("加入购物车"),
button:has-text("加入清单") {
  background: #F5F5F5 !important;
  background-color: #F5F5F5 !important;
  background-image: none !important;
  color: #666666 !important;
  border: 1px solid #2C2C2E !important;
  border-radius: 6px !important;
}

/* 立即购买 / 主行动按钮：纯黑底白字 */
uni-button:has-text("立即购买"),
uni-button:has-text("立即兑换"),
uni-button:has-text("确认支付"),
uni-button:has-text("去结算"),
uni-button:has-text("提交订单"),
button:has-text("立即购买"),
button:has-text("立即兑换"),
button:has-text("确认支付"),
button:has-text("去结算"),
button:has-text("提交订单") {
  background: #000000 !important;
  background-color: #000000 !important;
  background-image: none !important;
  color: #FFFFFF !important;
  border: none !important;
  border-radius: 6px !important;
}

/* 详情页底部操作栏：统一白底 */
[class*="detail-foot"],
[class*="goods-detail-bottom"],
[class*="detail-footer"] {
  background-color: #FFFFFF !important;
}

/* 优惠券/促销标签暖色兜底 */
[class*="coupon"],
[class*="discount"],
[class*="promotion"],
[class*="tag"][class*="red"],
[class*="tag"][class*="orange"] {
  background-color: #F5F5F5 !important;
  color: #666666 !important;
}

/* SKU弹窗按钮兜底 */
uni-popup uni-button,
[class*="popup"] uni-button,
[class*="sku"] uni-button {
  background-color: #000000 !important;
  color: #FFFFFF !important;
}

/* TW-DEBRAND-FIX-END */






/* ============================================================================
   TW-NATIVE-GRID-V23-20261012 原生双列网格美化（v23）
   说明：本次不再用 CSS 强制把单列改成双列，而是依赖应用原生 biserial-goods-list
   切换逻辑；以下样式仅对原生双列模式做美化（图片 contain、卡片等高、标题省略、
   价格对齐、浅灰底、圆角轻阴影）。
   回滚：删除本注释至 TW-NATIVE-GRID-V23-END 之间全部内容
   ============================================================================ */

/* ---------- A. 原生双列网格基线 ---------- */
uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list {
  gap: 12px !important;
  padding: 0 10px 12px !important;
  align-items: stretch !important;
}

/* 左右两列的直接子 view（列容器），以及列内每个商品卡片 */
uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list > uni-view,
uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list > uni-view > uni-view {
  background: #FFFFFF !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  box-shadow: 0 1px 3px rgba(0,0,0,.03) !important;
}

/* ---------- B. 图片区：定比 1:1 + 满幅不裁切 + 白底（TW-UI-20261112 UI6） ----------
   原状：aspect-ratio 3/4 + object-fit contain + #F7F7F7 浅灰底。
   800×800 方图在 3:4 容器里按宽适配（625 宽 → 实际显示 625×625），
   上下各留约 104px 灰带，主图内容缩水、卡片大面积留白。
   改为 1:1 容器 + 白底 + 图片铺满容器：方图源与容器同比例，
   既无留白也无裁切、无拉伸形变（图：容器=1:1 → object-fit 任意值结果一致）。
   回滚：本段还原 3/4 + contain + #F7F7F7 即可。 */
uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list uni-image {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1/1 !important;
  background: #FFFFFF !important;
  border-radius: 6px 6px 0 0 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  display: block !important;
}

uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list uni-image > div {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-color: #FFFFFF !important;
  width: 100% !important;
  height: 100% !important;
}

uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list uni-image > img {
  object-fit: contain !important;
  width: 100% !important;
  height: 100% !important;
}

/* ---------- C. 内容区：flex column + 标题定 2 行 + 价格底对齐 ---------- */
uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list > uni-view > uni-view > uni-view:nth-child(2) {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 10px 10px 10px !important;
  min-height: 0 !important;
}

/* 标题：固定 2 行、溢出省略 */
uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list .multi-hidden {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 12.5px !important;
  line-height: 17px !important;
  font-weight: 500 !important;
  color: #2C2C2E !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
}

/* 描述/标签行：定 1 行 */
uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list .using-hidden {
  display: -webkit-box !important;
  -webkit-line-clamp: 1 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 10.5px !important;
  line-height: 14px !important;
  color: #999999 !important;
  height: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  margin: 4px 0 0 !important;
}

/* 价格/销量区：margin-top:auto 推到底部 */
uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list > uni-view > uni-view > uni-view:nth-child(2) > uni-view:last-child {
  margin-top: auto !important;
  padding-top: 6px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
}

/* 价格文本 */
uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list uni-text[class*="40rpx"] {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #2C2C2E !important;
  line-height: 1 !important;
}

uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list uni-text[class*="24rpx"] {
  font-size: 11px !important;
  color: #2C2C2E !important;
}

/* 销量文本 */
uni-page[data-page="addon/shop/pages/goods/list"] .sidebar-margin.biserial-goods-list uni-text[class*="22rpx"] {
  font-size: 10px !important;
  color: #999999 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

/* ---------- D. 加载占位框 ---------- */
uni-page[data-page="addon/shop/pages/goods/list"] [class*="loading"],
uni-page[data-page="addon/shop/pages/goods/list"] [class*="skeleton"],
uni-page[data-page="addon/shop/pages/goods/list"] [class*="placeholder"],
uni-page[data-page="addon/shop/pages/goods/list"] [class*="mescroll"] [class*="upwarp"],
uni-page[data-page="addon/shop/pages/goods/list"] [class*="mescroll"] [class*="downwarp"] {
  background: #FFFFFF !important;
  border-radius: 6px !important;
}

uni-page[data-page="addon/shop/pages/goods/list"] [class*="mescroll"] [class*="upwarp"] [class*="circular"],
uni-page[data-page="addon/shop/pages/goods/list"] [class*="mescroll"] [class*="downwarp"] [class*="circular"] {
  border-color: #2C2C2E !important;
  border-top-color: transparent !important;
}

uni-page[data-page="addon/shop/pages/goods/list"] [class*="mescroll"] [class*="upwarp-nodata"],
uni-page[data-page="addon/shop/pages/goods/list"] [class*="mescroll"] [class*="downwarp-nodata"] {
  color: #CCCCCC !important;
  font-size: 11px !important;
  letter-spacing: 1px !important;
}

/* ---------- E. 列表容器去除顶部多余间距 ---------- */
uni-page[data-page="addon/shop/pages/goods/list"] [class*="product-warp"],
uni-page[data-page="addon/shop/pages/goods/list"] [class*="list-wrap"] {
  padding-top: 0 !important;
}

/* ===== TW-NATIVE-GRID-V23-END ===== */

/* ===== TW-HOME-MODULES-V24-START ===== */
/* 首页两模块重设计：按类入列（分类导航）+ 回归之物（商品卡）
   设计方案见任务 7696391186935729434 交付评论
   仅补充 DIY 后台无法配置的部分：
   - 标题细线分隔
   - 标签 flex 换行
   - 标签 active 反色态（瞬时无渐变）
   - 商品名单行截断省略
   - 卡片 active 态（下沉+投影加深）
   商品数据源：DIY 后台手动配置（运营 DIY 选定商品）
   跳转：DIY 组件本身已支持 navigateTo 带 category_id / goods_id
*/

/* ---------- 通用：模块容器 ---------- */
.tw-home-section {
  background: #FFFFFF;
  padding: 32px 16px;
  box-sizing: border-box;
  width: 100%;
}

/* ---------- 通用：模块标题（左对齐+40px 细线） ---------- */
.tw-home-title {
  font-size: 17px;
  font-weight: 600;
  color: #2C2C2E;
  line-height: 1.4;
  margin: 0 0 8px 0;
  letter-spacing: 0.5px;
}
.tw-home-title-rule {
  display: block;
  width: 40px;
  height: 1px;
  background: #E5E5E5;
  margin: 0 0 20px 0;
}
.tw-home-subtitle {
  font-size: 12px;
  color: #999999;
  line-height: 1.5;
  margin: 0 0 16px 0;
  letter-spacing: 0.3px;
}

/* =====================================================
   模块一：按类入列（分类标签墙）
   ===================================================== */
.tw-home-cat {
  background: #FFFFFF;
  padding: 32px 16px;
  box-sizing: border-box;
  width: 100%;
}
.tw-home-cat__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;       /* row-gap col-gap */
  margin: 0;
  padding: 0;
  list-style: none;
}
.tw-home-cat__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  max-width: 140px;
  height: 38px;
  padding: 10px 20px;
  background: #F5F5F5;
  color: #2C2C2E;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.3px;
  border-radius: 999px; /* 药丸 */
  text-decoration: none;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: none;        /* 瞬时无渐变 */
  cursor: pointer;
}
.tw-home-cat__tag:active {
  background: #2C2C2E;     /* 按下反色：墨底 */
  color: #FFFFFF;          /* 白字 */
}

/* =====================================================
   模块二：回归之物（2 列商品卡网格）
   ===================================================== */
.tw-home-rt {
  background: #FFFFFF;
  padding: 32px 16px 24px 16px;
  box-sizing: border-box;
  width: 100%;
}
.tw-home-rt__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tw-home-rt__card {
  display: block;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: none;
  cursor: pointer;
}
.tw-home-rt__media {
  position: relative;
  width: 100%;
  padding-top: 100%;   /* 1:1 */
  background: #F5F5F5;
  overflow: hidden;
}
.tw-home-rt__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tw-home-rt__body {
  padding: 12px 12px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tw-home-rt__name {
  font-size: 14px;
  font-weight: 500;
  color: #2C2C2E;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tw-home-rt__sub {
  font-size: 12px;
  color: #999999;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tw-home-rt__card:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* =====================================================
   小屏适配（320-360px）防挤压
   ===================================================== */
@media screen and (max-width: 360px) {
  .tw-home-cat__tag {
    padding: 10px 16px;
    min-width: 72px;
  }
  .tw-home-rt__body {
    padding: 10px 10px 12px 10px;
  }
}

/* ===== TW-HOME-MODULES-V24-END ===== */

/* 2026-10-26 FIX: iOS WeChat webview auto text-inflate clips input/placeholder text */
uni-input, uni-textarea,
uni-input .uni-input-placeholder, uni-input .uni-input-input,
uni-textarea .uni-textarea-placeholder, uni-textarea .uni-textarea-input {
  -webkit-text-size-adjust: none !important;
  text-size-adjust: none !important;
}
uni-input .uni-input-placeholder {
  line-height: 1.4 !important;
}

/* ============================================================================
   40. UI 第 9 轮（D1 收尾）：墨色残留清零 + tabBar 选中态对齐 #2C2C2E
   新增日期 2026-11-12。回滚：删除本段（从本节标题到下一条 /***** 分隔线之前）。
   ---------------------------------------------------------------------------
   40.A 根因（实测，勿凭猜测改）：
     线上首页 597 个节点文字为 rgb(26,26,26) 旧墨黑，来源不是 DIY 内联主题，
     而是本文件 §35「.top-fixed-home { color:#1A1A1A !important }」这一条——
     DIY 首页所有 .draggable-element 都挂 .top-fixed-home，颜色被这一条统一下发，
     子节点继承。故仅靠 :root 变量改动无效，必须在本条同级/更高特异性上改写。
     内联 --primary-color:#1A1A1A 挂在页面根 uni-view 上（非 DIY 子树内部），
     真正需要重置的子树是 .diy-template-wrap / .diy-group。
   40.B tabBar：H5 实际是 .u-tabbar.custom-tabbar（uview 组件），
     选中态由组件内联 style="color: rgb(26,26,26)" 直接下发，类选择器压不住内联，
     故用 !important（与 §16 既有写法一致）。
   =========================================================================== */

/* 40.0 DIY 子树变量重置：压过页面根节点内联 --primary-color:#1A1A1A */

/* 40.0 DIY 子树变量重置：压过页面根节点内联 --primary-color:#1A1A1A */
html body .diy-template-wrap,
html body .diy-group {
  --primary-color: #2C2C2E;
  --primary-color-dark: #2C2C2E;
  --primary-color-light: #EAEAE5;
  --primary-color-light2: #2C2C2E;
  --primary-color-disabled: #D1D1D6;
  --primary-help-color1: #6B6B70;
  --primary-help-color2: #2C2C2E;
  --primary-help-color3: #F4F4F2;
  --primary-help-color4: #D1D1D6;
  --primary-help-color5: #8E8E93;
  --price-text-color: #2C2C2E;
}
/* 40.1 */
html body .top-fixed-home,
html body .top-fixed-home uni-text,
html body .top-fixed-home text {
  color: #2C2C2E !important;
}
/* 40.2 */
html body [class*="text-[#1A1A1A]"],
html body [class*="text-[#1a1a1a]"] {
  color: #2C2C2E !important;
}
/* 40.3 */
html body .top-fixed-home .brand-tag.brand-tag,
html body .diy-template-wrap .brand-tag.brand-tag,
html body .diy-group .brand-tag.brand-tag {
  color: #2C2C2E !important;
  border-color: #2C2C2E !important;
}
/* 40.4 */
html body .tw-exhibition .tw-ex-info .tw-ex-name.tw-ex-name {
  color: #2C2C2E !important;
}
/* 40.5 */
html body .top-fixed-home uni-view[style*="color: rgb(26, 26, 26)"],
html body .diy-template-wrap uni-view[style*="color: rgb(26, 26, 26)"] {
  color: #2C2C2E !important;
}
html body .top-fixed-home uni-view[style*="border: 1px solid rgb(26, 26, 26)"],
html body .diy-template-wrap uni-view[style*="border: 1px solid rgb(26, 26, 26)"] {
  border-color: #2C2C2E !important;
}
/* 40.6 */
html body .u-tabbar .tw-tab-text.tw-tab-text--active,
html body .u-tabbar .u-tabbar-item.tw-tab-active .tw-tab-text {
  color: #2C2C2E !important;
}

/* 41. 交互态墨色对齐 D1：组件 CSS（index-c15ce5de.css 等）的 :hover/:active
   直接下发 rgb(26,26,26)，非本文件可改，故用更高特异性的覆盖规则统一到 #2C2C2E。
   覆盖对象仅限「文字色 / 边框色」交互反馈，不改变布局与尺寸。 */
html body .tw-featured .tw-ft-frame.tw-ft-frame--link:hover,
html body .tw-featured .tw-ft-frame.tw-ft-frame--link:active { border-color: #2C2C2E !important; }
html body .tw-exhibition .tw-ex-frame.tw-ex-frame--link:hover,
html body .tw-exhibition .tw-ex-frame.tw-ex-frame--link:active { border-color: #2C2C2E !important; }
html body .tw-grid .tw-gd-cell:hover .tw-gd-frame,
html body .tw-grid .tw-gd-cell:active .tw-gd-frame { border-color: #2C2C2E !important; }
html body .tw-grid .tw-gd-cell:hover .tw-gd-name,
html body .tw-grid .tw-gd-cell:active .tw-gd-name { color: #2C2C2E !important; }
html body .tw-grid .tw-gd-head--link:hover .tw-gd-title,
html body .tw-grid .tw-gd-head--link:active .tw-gd-title { color: #2C2C2E !important; }
/* 兜底：任何仍下发 rgb(26,26,26) 的交互态文字（限定 DIY 首页子树，避免误伤深底组件） */
html body .diy-template-wrap .tw-home-cat__tag:active { background: #2C2C2E !important; }

/* ===== TW-UI9-D1-TAIL-END ===== */

/* ===== TW-CAT2-20261113 START（分类页二级图「两列铺满」，2026-11-13 H5 收尾批次 A 项）=====
   问题：模板 src/addon/shop/pages/goods/components/category-template-two-one.vue 用
         up-image width="140rpx" height="140rpx" 固定小图；390px 视口下 140rpx=72.8px，
         而两列网格每列 140.77px，图片只占列宽一半，视觉上缩成小缩略图。
   处理：本段仅做「宽度跟随列宽 + 保持 1:1」覆盖，不改模板、不改任何原有规则，
         原规则与注释全部保留在文件前半部分（不改不删）。
   回滚：删除本 START 注释行到 TW-CAT2-20261113 END 之间的全部内容即可，
         原文件（md5 362d950149fff29a240b39e7e76b9c3c / 38685 字节）完整还原。
         服务器备份：/www/backup/20261113/tw-brand.css.bak */
html body .tw-cate-cell > uni-view:first-child { width: 100% !important; display: block !important; }
html body .tw-cate-cell .u-transition { width: 100% !important; }
html body .tw-cate-cell .u-image { width: 100% !important; height: auto !important; aspect-ratio: 1 / 1 !important; display: block !important; overflow: hidden !important; }
html body .tw-cate-cell .u-image__image { width: 100% !important; height: 100% !important; display: block !important; }
html body .tw-cate-cell > uni-view:not(:first-child) { width: 100% !important; }
/* ===== TW-CAT2-20261113 END ===== */


/* ===== TW-FOOT-CR-20261113 四、详情页页脚文案对比度（WCAG CR 2.48 -> >=4.5）=====
   原值 .tw-detail-foot-text = #a9a49b（rgb(169,164,155)），白底 CR 2.48，低于 AA 4.5。
   任务书建议 #8E8E93，但 #8E8E93 在白底实测 CR 仅 3.26，仍不达标；故改用 #727276：
   白底 CR 4.79，页脚底色 #FAFAF8 上 CR 4.58，两种底色均 >=4.5，属同一墨色灰阶体系。
   回滚：删除本段即恢复组件内 #a9a49b。 */
.tw-detail-foot .tw-detail-foot-text,
.uni-page[data-page="addon/shop/pages/goods/detail"] .tw-detail-foot-text {
    color: #727276 !important;
}
/* TW-HOMEPAGE-HOTFIX-20261113C */
uni-page[data-page="addon/shop/pages/index"] .biserial-goods-list{display:block !important;}
uni-page[data-page="addon/shop/pages/index"] .biserial-goods-list > uni-view{width:100% !important;}
uni-page[data-page="addon/shop/pages/index"] .biserial-goods-list .tw-card-grid{display:grid !important;grid-template-columns:1fr 1fr !important;}
/* TW-GCARD-IMG-FIX-20261113 */
.tw-gcard__abs .u-transition,.tw-gcard__abs .u-image{width:100% !important;height:100% !important;}
.tw-gcard__abs .u-image__image,.tw-gcard__abs .u-image__image>div{width:100% !important;height:100% !important;}
.tw-gcard__abs .u-image__image img{position:absolute !important;top:0 !important;left:0 !important;width:100% !important;height:100% !important;object-fit:cover !important;}
/* ===== TW-V3TYPE-20261113 START（首页字号体系对齐 v3 设计稿）=====
   背景：用户反馈「装修的一点都不一样」。根因是首页沿用商城默认字号体系，
         而 v3 设计稿是一套紧凑小字设计语言（见设计稿内嵌 CSS .card/.chip/.search/.ex/.curcard）。
   依据：TenderWorld-UI改造预览-v3.html 内嵌 CSS，逐值照抄设计稿 px 绝对值（375/390 同源，不可改）。
   ★ 单位铁律：tw-brand.css 由 publish.cjs 直接拷入 assets，不经过 postcss 的 rpx→rem 转换，
     浏览器不认识 rpx，任何 rpx 声明都会被整条丢弃。本段一律用 px，禁止出现 rpx。
   原则：只改字号 / 行高 / 字重 / 颜色 / 圆角 / 内边距，不动布局骨架与数据逻辑；
         全部 !important —— 需压过组件内联 style（brandTagCss 的 border-radius、goodsNameStyle 的 font-weight）。
   回滚：删除本 START 到 TW-V3TYPE-20261113 END 之间全部内容即可，原文其余部分零改动。
   注意：本段必须追加在 tw-brand.css 末尾，且不得覆盖其上方两段组长热修
         （TW-HOMEPAGE-HOTFIX-20261113C / TW-GCARD-IMG-FIX-20261113）。
   =========================================================================== */

/* ---------- 0. 设计变量落地：底色 / 墨色 / 次灰 / 分割线 ---------- */
html body uni-page-body,
html body .diy-template-wrap,
html body .diy-group {
  background-color: #F4F4F2 !important;
}

/* ---------- 1. 品牌区：.brand .n 12px/600 letter-spacing 1.2px；.s 11px 灰、margin-top 4px ---------- */
html body .tw-mf-brand {
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 1.2px !important;
  color: #2C2C2E !important;
}
html body .tw-mf-sub {
  font-size: 11px !important;
  color: #8E8E93 !important;
  margin-top: 4px !important;
}

/* ---------- 2. 搜索条：.searchwrap padding 6px 16px 8px；.search 32px 高 / 999px / #EFEFEC / 12px 灰字 ---------- */
html body .tw-search-wrap {
  padding: 6px 16px 8px !important;
}
html body .diy-shop-search .flex-1 {
  height: 32px !important;
  border-radius: 999px !important;
  background-color: #EFEFEC !important;
  padding: 0 14px !important;
}
html body .diy-shop-search .flex-1 uni-text,
html body .diy-shop-search .flex-1 uni-text span {
  font-size: 12px !important;
  line-height: 1.4 !important;
  color: #8E8E93 !important;
}
/* 搜索图标：设计稿 .mg 12x12 线性放大镜，线上是 20px 位图，压到 12px 并降不透明度 */
html body .diy-shop-search .diy-shop-search > uni-image,
html body .tw-search-wrap uni-image {
  width: 12px !important;
  height: 12px !important;
  opacity: .55 !important;
}

/* ---------- 3. 区块标题行：.sh = .t 14px/500、.m 11px 灰；padding 0 16px；margin 14px 0 8px ---------- */
html body .tw-sec-head {
  padding: 0 16px !important;
  margin: 14px 0 8px !important;
}
html body .tw-sec-title { font-size: 14px !important; font-weight: 500 !important; color: #2C2C2E !important; }
html body .tw-sec-meta  { font-size: 11px !important; color: #8E8E93 !important; }
html body .tw-ex-head   { padding: 0 16px !important; margin: 14px 0 8px !important; }
html body .tw-ex-title  { font-size: 14px !important; font-weight: 500 !important; color: #2C2C2E !important; }
html body .tw-ex-more   { font-size: 11px !important; color: #8E8E93 !important; }

/* ---------- 4. 本月展讯：.ex 宽 148px；.im 高 64px + 8px 上圆角；.tx padding 5px 8px 6px；b 11px/500；日期 10px 灰 ---------- */
/* TW-EX-ARTICLE-20261115：横滑内层间距/左右边距落到实际 DOM（.tw-exhibition 下的 .tw-hscroll__inner）。
   原 .tw-ex-strip-inner 是商品卡版本遗留的选择器（DOM 中无此元素，规则从未生效），改作用域选择器后才生效。 */
html body .tw-exhibition .tw-hscroll__inner { gap: 8px !important; padding: 0 16px !important; }
html body .tw-ex-card        { width: 148px !important; }
html body .tw-ex-card__im    { height: 64px !important; border-radius: 8px 8px 0 0 !important; }
html body .tw-ex-card__tx    { border-radius: 0 0 8px 8px !important; padding: 5px 8px 6px !important; background: #FFFFFF !important; }
html body .tw-ex-card__name  { font-size: 11px !important; font-weight: 500 !important; line-height: 1.35 !important; margin-bottom: 1px !important; color: #2C2C2E !important; }
html body .tw-ex-card__date  { font-size: 10px !important; line-height: 1.35 !important; color: #8E8E93 !important; }

/* ---------- 5. 品类 chips：.chip 11px / padding 5px 13px / 1px 描边 / 999px；gap 8px；选中墨实心白字 ---------- */
html body .tw-chips-inner {
  gap: 8px !important;
  padding: 0 16px !important;
}
html body .tw-chip {
  font-size: 11px !important;
  line-height: 1.4 !important;
  height: auto !important;
  padding: 5px 13px !important;
  border-radius: 999px !important;
  border: 1px solid #E2E2DD !important;
  color: #8E8E93 !important;
  background: transparent !important;
}
html body .tw-chip--on {
  background: #2C2C2E !important;
  border-color: #2C2C2E !important;
  color: #FFFFFF !important;
  font-weight: 500 !important;
}

/* ---------- 6. 双列商品卡网格：.grid gap 12px / padding 12px 16px 0 ---------- */
html body .tw-card-grid {
  gap: 12px !important;
  padding: 12px 16px 0 !important;
}

/* ---------- 7. 商品卡本体：白底圆角 12px，纵向 flex 让价格行贴底 ---------- */
html body .tw-gcard {
  border-radius: 12px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #FFFFFF !important;
}
/* 卡内边距 9px 10px 11px */
html body .tw-gcard__bd {
  padding: 9px 10px 11px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 !important;
}
/* 名称 12px / 18px 行高 / 两行夹紧；单行时 min-height 36px 不留大洞 */
html body .tw-gcard__nm {
  font-size: 12px !important;
  line-height: 18px !important;
  height: auto !important;
  min-height: 36px !important;
  max-height: 36px !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  font-weight: 400 !important;
  color: #2C2C2E !important;
}
/* 品类 tag 10px 灰字 / 1px #E2E2DD 描边 / 圆角 3px / margin-top 7px */
html body .tw-gcard__tg {
  font-size: 10px !important;
  line-height: 1.3 !important;
  padding: 1px 5px !important;
  margin-top: 7px !important;
  border: 1px solid #E2E2DD !important;
  border-radius: 3px !important;
  color: #8E8E93 !important;
  align-self: flex-start !important;
}
/* 已售 10px 灰 / margin-top 4px */
html body .tw-gcard__sl {
  font-size: 10px !important;
  line-height: 1.3 !important;
  margin-top: 4px !important;
  color: #8E8E93 !important;
}
/* 价格行 14px / 600 / 贴底（margin-top auto + padding-top 10px） */
html body .tw-gcard__ft {
  margin-top: auto !important;
  padding-top: 10px !important;
  align-items: flex-end !important;
}
html body .tw-gcard__pr,
html body .tw-gcard__pr uni-text {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #2C2C2E !important;
}
html body .tw-gcard__cur,
html body .tw-gcard__int,
html body .tw-gcard__dec {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: #2C2C2E !important;
}
/* 「购买」按钮 10px 墨描边 999px 胶囊 / padding 3px 9px */
html body .tw-gcard__buybtn {
  padding: 3px 9px !important;
  border: 1px solid #2C2C2E !important;
  border-radius: 999px !important;
  background: transparent !important;
}
html body .tw-gcard__buytx {
  font-size: 10px !important;
  line-height: 1 !important;
  color: #2C2C2E !important;
}
/* 甄选标 9px / letter-spacing 1px / rgba(44,44,46,.86) 白字 / 圆角 3px / padding 2px 6px */
html body .tw-brand-tag--card {
  font-size: 9px !important;
  line-height: 1.4 !important;
  letter-spacing: 1px !important;
  border-radius: 3px !important;
  padding: 2px 6px !important;
  background: rgba(44, 44, 46, .86) !important;
  color: #FFFFFF !important;
  border: none !important;
}

/* ---------- 8. 主理人策展卡：.curcard 圆角 12px / padding 14px / 1px #E2E2DD 描边 ---------- */
html body .tw-curate {
  border-radius: 12px !important;
  padding: 14px !important;
  border: 1px solid #E2E2DD !important;
  background: #FFFFFF !important;
  margin: 14px 0 0 !important;
}
html body .tw-curate__k       { font-size: 10px !important; color: #8E8E93 !important; letter-spacing: .5px !important; }
html body .tw-curate__ava     { width: 22px !important; height: 22px !important; border-radius: 50% !important; }
html body .tw-curate__au      { font-size: 11px !important; color: #2C2C2E !important; }
html body .tw-curate__enter   { font-size: 11px !important; color: #8E8E93 !important; }
html body .tw-curate__q       { font-size: 13px !important; line-height: 20px !important; margin-top: 9px !important; color: #2C2C2E !important; }
html body .tw-curate__s       { width: 44px !important; height: 44px !important; border-radius: 4px !important; }
html body .tw-curate__go      { font-size: 11px !important; color: #8E8E93 !important; }

/* ---------- 9. 灰字防覆盖：压过 tw-brand.css 上游 "html body .top-fixed-home uni-text{color:#2C2C2E}"（特异性 0,1,3）
   受影响元素均为 uni-text 层：sec-meta / ex-more / ex 日期 / 已售 / 策展作者入口。 ---------- */
html body .top-fixed-home .tw-sec-meta,
html body .top-fixed-home .tw-ex-more,
html body .top-fixed-home .tw-ex-card__date,
html body .top-fixed-home .tw-gcard__sl,
html body .top-fixed-home .tw-curate__enter,
html body .top-fixed-home .tw-curate__go {
  color: #8E8E93 !important;
}
html body .top-fixed-home .tw-gcard__tg,
html body .top-fixed-home .tw-curate__k,
html body .top-fixed-home .tw-mf-sub {
  color: #8E8E93 !important;
}
/* 保持 ink 语义的元素显式声明，避免被上面的灰字组带偏 */
html body .top-fixed-home .tw-gcard__nm,
html body .top-fixed-home .tw-gcard__pr,
html body .top-fixed-home .tw-gcard__pr uni-text,
html body .top-fixed-home .tw-gcard__cur,
html body .top-fixed-home .tw-gcard__int,
html body .top-fixed-home .tw-gcard__dec,
html body .top-fixed-home .tw-ex-card__name,
html body .top-fixed-home .tw-sec-title,
html body .top-fixed-home .tw-ex-title,
html body .top-fixed-home .tw-curate__q,
html body .top-fixed-home .tw-curate__au {
  color: #2C2C2E !important;
}
html body .top-fixed-home .tw-gcard__buytx { color: #2C2C2E !important; }
html body .top-fixed-home .tw-brand-tag--card { color: #FFFFFF !important; }
html body .top-fixed-home .tw-chip--on { color: #FFFFFF !important; }
html body .top-fixed-home .tw-chip { color: #8E8E93 !important; }
html body .top-fixed-home .tw-chip--on { color: #FFFFFF !important; }

/* ===== TW-V3TYPE-20261113 END ===== */

/* ============================================================
   TW-ARTICLE-DETAIL-20261113：微官网文章详情页排版
   墨色系 D1（与首页 v3 同源）：宣纸底 #FAF9F6 / 墨 #1B1B1D / 次级灰 #9B9A95
   作用域：uni-app H5 编译产物 addon/cms/pages/detail
   ============================================================ */
uni-page[data-page="addon/cms/pages/detail"]{background:#FAF9F6 !important;}
uni-page[data-page="addon/cms/pages/detail"] [class~="bg-white"]{background:#FAF9F6 !important;}
uni-page[data-page="addon/cms/pages/detail"] [class~="p-[30rpx]"]{padding:32px 22px 60px !important;}

/* 标题：墨色加粗 + 品牌短横线 */
uni-page[data-page="addon/cms/pages/detail"] [class~="text-[32rpx]"]{font-size:22px !important;font-weight:600 !important;line-height:1.5 !important;color:#1B1B1D !important;letter-spacing:.2px !important;margin-bottom:0 !important;}
uni-page[data-page="addon/cms/pages/detail"] [class~="text-[32rpx]"]::before{content:"";display:block;width:26px;height:2px;background:#2C2C2E;border-radius:1px;margin-bottom:14px;}

/* 时间：浅灰 + 细分隔线 */
uni-page[data-page="addon/cms/pages/detail"] [class~="text-[24rpx]"]{font-size:12px !important;color:#9B9A95 !important;letter-spacing:.4px !important;display:block;padding-bottom:16px;margin-bottom:24px !important;border-bottom:1px solid #E8E5DE;}

/* 摘要块 */
uni-page[data-page="addon/cms/pages/detail"] [class*="bg-[var(--temp-bg)]"]{background:#F1EFE9 !important;border-radius:10px !important;padding:14px 16px !important;margin:0 0 24px !important;}
uni-page[data-page="addon/cms/pages/detail"] [class*="bg-[var(--temp-bg)]"] text{color:#55554F !important;font-size:13.5px !important;line-height:1.8 !important;}

/* 正文：15.5px / 行高 1.95 / 修掉 break-all 造成的断词 */
uni-page[data-page="addon/cms/pages/detail"] ._root{font-size:15.5px !important;color:#3D3D40 !important;}
uni-page[data-page="addon/cms/pages/detail"] ._root p{font-size:15.5px !important;line-height:1.95 !important;color:#3D3D40 !important;margin:0 0 15px !important;word-break:normal !important;overflow-wrap:anywhere !important;letter-spacing:.2px !important;}
uni-page[data-page="addon/cms/pages/detail"] ._root p > strong{color:#1B1B1D !important;font-weight:600 !important;}
/* 小节标题：整段只有一个 strong 的段落 */
uni-page[data-page="addon/cms/pages/detail"] ._root p:has(> strong:only-child){margin:28px 0 14px !important;}
uni-page[data-page="addon/cms/pages/detail"] ._root p:has(> strong:only-child) strong{font-size:16.5px !important;color:#1B1B1D !important;font-weight:600 !important;letter-spacing:.3px !important;}

/* 图片：圆角 + 极淡投影 */
uni-page[data-page="addon/cms/pages/detail"] ._root img{max-width:100% !important;height:auto !important;border-radius:10px !important;display:block !important;margin:0 auto 22px !important;box-shadow:0 2px 14px rgba(27,27,29,.06) !important;}
/* 首块为封面大图，单独给间距 */
uni-page[data-page="addon/cms/pages/detail"] ._root > *:first-child p{margin-bottom:26px !important;}

uni-page[data-page="addon/cms/pages/detail"] ._root a{color:#2C2C2E !important;text-decoration:underline !important;text-underline-offset:3px !important;}
uni-page[data-page="addon/cms/pages/detail"] ._root ul,
uni-page[data-page="addon/cms/pages/detail"] ._root ol{padding-left:20px !important;margin:0 0 16px !important;}
uni-page[data-page="addon/cms/pages/detail"] ._root li{font-size:15px !important;line-height:1.9 !important;color:#3D3D40 !important;margin-bottom:8px !important;}
uni-page[data-page="addon/cms/pages/detail"] ._root blockquote{border-left:2px solid #C9C4B8 !important;background:#F1EFE9 !important;padding:12px 14px !important;margin:16px 0 !important;color:#55554F !important;font-size:14.5px !important;line-height:1.85 !important;}
uni-page[data-page="addon/cms/pages/detail"] ._root hr{border-top:1px solid #E8E5DE !important;border-bottom:0 !important;margin:26px 0 !important;}

/* TW-CTA-INK-FIX-20261115：修复商品详情页「立即购买」墨底黑字不可读
   根因：底部 CTA 内联 color 白字序列化为 "color: rgb(255, 255, 255)"，
   命中第 33 节 [style*="color: rgb(255,"] { color:#000000 !important } 被强转黑；
   本段以更高特异性 + !important 还原白字，仅作用于商品详情页主行动按钮。
   回滚：删除本注释至 TW-CTA-INK-FIX-END 之间内容并按版本号回退 */
uni-page[data-page="addon/shop/pages/goods/detail"] uni-button[style*="background: none rgb(27, 27, 29)"] {
  color: #FFFFFF !important;
}
/* TW-CTA-INK-FIX-END */

/* TW-QC-FIX-20261115：白字转黑兜底误伤墨底 CTA —— [style*=color: rgb(255,] 会把内联白字按钮强转黑字，
   导致「立即购买」等墨底白字按钮不可读。此处对按钮类元素放行白字。
   回滚：删除本注释至 TW-QC-FIX2-END 之间内容。 */
uni-button[style*="color: rgb(255,"],
uni-button[style*="color:rgb(255,"],
button[style*="color: rgb(255,"],
button[style*="color:rgb(255,"] {
  color: #FFFFFF !important;
}
/* TW-QC-FIX2-END */

/* ===== TW-GD-20261118 START（详情页建议零售价 · 未划线口径，取代 TW-V3-RETAIL-20261115）=====
   背景：本段原（TW-V3-RETAIL-20261115）给「品牌建议零售价」数值加删除线（划线价口径）。
        用户 2026-11-18 22:53 拍板改为未划线价，删除线与标签 text-decoration:none 规则一并移除。
   保留部分：颜色兜底必须仍然存在 —— 本文件第 11 段
        `[class*="price"] uni-text { color:#2C2C2E !important }` 会命中
        .tw-retail-price__label / __value（类名内含 price），!important 压过组件内 #8E8E93。
        因此只用页面作用域规则把颜色拉回 #8E8E93，不再涉及 text-decoration。
   回滚 TW-V3-RETAIL-20261115：在本段内给 .tw-retail-price__value 追加 text-decoration 删除线声明即可。
   本段一律 px（tw-brand.css 不经 rpx→rem 转换）。
*/
html body uni-page[data-page="addon/shop/pages/goods/detail"] .tw-retail-price,
html body uni-page[data-page="addon/shop/pages/goods/detail"] .tw-retail-price .tw-retail-price__label,
html body uni-page[data-page="addon/shop/pages/goods/detail"] .tw-retail-price .tw-retail-price__value {
  color: #8E8E93 !important;
}
/* ===== TW-GD-20261118 END ===== */
