/* ========== 批次 E 科技蓝统一增强追加层（只增不删，见 AppAsset: pc-enhance.css 在 pc-polish.css 之后）========== */

/* ========== 1. 搜索框：边框+主按钮变科技蓝 ========== */
.xld-search {
    border: 2px linear-gradient(135deg, #0E8A57, #16B378) !important;
}
.xld-search .btn-primary,
.xld-search button[type="submit"] {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}

/* ========== 2. 区块标题：左侧 4px 蓝→青渐变强调条 ========== */
.xld-section-title {
    position: relative;
    padding-left: 10px;
}
.xld-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    margin-top: -7px;
    width: 4px;
    height: 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, #0E8A57, #16B378);
}

/* ========== 3. 图标宫格：软色圆角底 + 微浮 hover ========== */
.xld-icons__dot {
    background: rgba(37, 99, 235, 0.08) !important;
    transition: transform .15s ease, box-shadow .15s ease;
}
.xld-icons__dot:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

/* ========== 4. 内容入口卡：非 AI 卡 hover 统一白+蓝描边 ========== */
.xld-content-entry__card:not(.xld-content-entry__card--ai):hover {
    border: 1px solid #dbeafe;
    background: #ffffff;
}
.xld-content-entry__card:not(.xld-content-entry__card--ai):hover .xld-content-entry__cta {
    color: #0B6E45;
}
.xld-content-entry__cta:hover {
    transform: translateX(4px);
}

/* ========== 5. 商品卡：无图占位区优化（浅蓝底 + 图标） ========== */
.xld-goods-card__noimg {
    background: #eff4ff;
    color: #0B6E45;
    border: 1px solid #dbeafe;
}

/* ========== 6. 分类栏 hover 蓝底浅蓝字 ========== */
.xld-home__cat:hover {
    background: rgba(37, 99, 235, 0.1);
    color: #0B6E45;
}

/* ========== 7. 悬浮 dock hover 蓝色 ========== */
.xld-dock__btn:hover {
    color: #0B6E45;
}

/* ========== 8. 页脚链接 hover 蓝色 ========== */
.xld-footer a:hover,
.xld-footer a:focus {
    color: #0B6E45;
}

/* ========== 9. 科技蓝柔阴影工具类 ========== */
.xld-blue-shadow {
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

/* ========== 10. 首页头部增强（若全局统一需要）========== */
.xld-header-bg {
    /* 如需要此处统一，取消下行注释并按设计稿调整 */
    /* background: linear-gradient(160deg, #1e40af 0%, #2563eb 72%, #dbeafe 100%) !important; */
}

/* ========== 11. 购物车/结算主钮科技蓝对齐（供后续扩展）========== */
.btn-primary-tech {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}

/* ========== 12. 浮动 dock 基础样式增强 ========== */
.xld-dock {
    .xld-dock__btn:hover {
        transform: translateY(-2px);
        transition: transform .15s ease;
    }
}

/* ========== 13. 公告条微浮增强（保持绿色语义不变）========== */
.xld-assur__item:hover {
    transform: translateY(-1px);
    transition: transform .15s ease;
}

/* ========== 14. 水桶专区（/water/index）增强 ========== */
.water-index .xld-section-title::before {
    background: linear-gradient(180deg, #0E8A57, #16B378);
}
.water-index .xld-gcard:hover {
    transform: translateY(-2px);
    transition: transform .15s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}
.water-index .xld-gcard--border {
    border-left: 3px #0E8A57 solid;
}
.water-index .card-img-top.bg-light {
    background: #eff4ff !important;
    color: #0B6E45 !important;
}
.water-index .xld-badge--light {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #0B6E45 !important;
    border: 1px solid #dbeafe !important;
}

/* ========== 15. 鲜奶专区（/milk/index）增强 ========== */
.milk-index .form-control:focus {
    border-color: #0E8A57 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08) !important;
}
.milk-index .xld-gcard--info .h3 {
    color: #ff3b30 !important; /* 价格红保留 */
}
.milk-index .xld-badge--info {
    border-radius: 12px !important;
    font-weight: 500 !important;
}

/* ========== 16. 美食外卖（/takeout/index）增强 ========== */
.takeout-index .btn-dark {
    background: #0E8A57 !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}
.takeout-index .alert-light {
    background: #eff4ff !important;
    border-left: 3px #0E8A57 solid !important;
}
.takeout-index .xld-goods-card {
    /* 复用已有 pc-polish hover，此处仅作确认声明 */
}

/* ========== 17. 半净菜（/semi-prepared/index）增强 ========== */
.semi-prepared-index .xld-empty__icon {
    width: 64px;
    height: 64px;
    border: 3px var(--xld-blue-soft) solid;
    border-radius: 50%;
}
.semi-prepared-index .xld-empty__btn {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}
.semi-prepared-index .xld-empty__btn:hover {
    background: linear-gradient(135deg, #0B6E45, #0E8A57) !important;
}

/* ========== 18. 秒杀（/goods/seckill）增强 ========== */
.goods-seckill .xld-sk-banner {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}
.goods-seckill .xld-sk-banner .xld-section-title {
    /* 秒杀横幅标题保持促销红语境，不迁蓝 */
}
.goods-seckill .xld-countdown {
    font-variant-numeric: tabular-nums !important;
    color: #ff3b30 !important; /* 倒计时保持红 */
    font-weight: 700 !important;
}
.goods-seckill .progress .progress-bar.bg-danger {
    background: linear-gradient(135deg, #ff3b30, #fa541c) !important; /* 抢购进度红橙渐变 */
}
.goods-seckill .xld-goods-card__tag {
    background: #ff3b30 !important; /* 折扣角标保持红 */
    transform: skewX(-2deg) !important;
}

/* ========== 19. 团购（/group-buy/index）增强 ========== */
.group-buy-index .card {
    border-radius: 12px !important;
    transition: transform .15s, box-shadow .15s !important;
}
.group-buy-index .card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}
.group-buy-index .xld-progress-thin .progress-bar {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important; /* 参团进度蓝渐变 */
}
.group-buy-index .xld-goods-card__tag {
    /* 状态 badges 语义色保留（success=绿, warning=橙, secondary=灰） */
}
.group-buy-index .xld-pdetail__img {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}
.group-buy-index .xld-chat__send,
.group-buy-index .xld-coupon__btn:hover {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}

/* ========== 20. 促销中心（/promotion/index）增强 ========== */
.promotion-index .xld-tabs .nav-link.active {
    background: #0E8A57 !important;
    color: #ffffff !important;
}
.promotion-index .xld-goods-card:hover {
    transform: scale(1.03) !important;
    transition: transform 300ms ease !important;
}
.promotion-index .xld-coupon__btn {
    /* btn-outline-danger 保持红描边，不迁蓝 */
}
.promotion-index .rule-summary .card {
    border-left: 3px #0E8A57 solid !important;
    border-radius: 12px !important;
}

/* ========== 21. 领券中心（/coupon/center）增强 ========== */
.coupon-index .xld-coupon {
    /* 券卡结构不动，仅视觉增强 */
}
.coupon-index .xld-coupon__btn {
    /* btn-success 保持绿（领券=行动成功色） */
}
.coupon-index .xld-cat-bar a.active {
    background: #0E8A57 !important;
    color: #ffffff !important;
}
.coupon-index .xld-pager__nav .active {
    background: #0E8A57 !important;
    border-color: #0E8A57 !important;
}

/* ========== 22. 排行榜（/rank/index）增强 ========== */
.rank-index .xld-mtabs .nav-link {
    color: #8a93a6 !important; /* 非选中灰 */
}
.rank-index .xld-mtabs .nav-link.active {
    background: #0E8A57 !important;
    color: #ffffff !important;
}
.rank-index .xld-rk-card {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1) !important;
}
.rank-index .xld-rk-no {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08) !important;
    border: 1px solid #dbeafe !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0B6E45 !important;
}
.rank-index .xld-rk-no--gold,
.rank-index .xld-rk-no--silver,
.rank-index .xld-rk-no--bronze {
    /* 金/银/铜保持稿色，不迁蓝 */
}
.rank-index .xld-list__item:hover {
    background: #eff4ff !important;
}
.rank-index .xld-rk-val {
    font-weight: 700 !important;
    color: #0B6E45 !important;
}

/* ========== 23. 详情页（/goods/view）增强 ========== */
.goods-view .xld-pd__hero img {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}
.goods-view .xld-pd__thumb {
    border-radius: 8px !important;
}
.goods-view .xld-pd-buy {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1) !important;
    border-top: 2px linear-gradient(135deg, #0B6E45, #16B378) !important; /* 购买盒顶部蓝条 */
}
.goods-view .xld-pd-buy__specopt {
    border-radius: 20px !important;
    border: 1px solid #eee !important;
}
.goods-view .xld-pd-buy__specopt input:checked + span {
    border-color: #0E8A57 !important;
    background: rgba(37, 99, 235, 0.08) !important;
}
.goods-view .xld-pd-buy__specopt.--out {
    color: #8c95a6 !important; /* 售灰保持 */
}
.goods-view .xld-pd__side .xld-price--lg {
    color: #ff3b30 !important; /* 大红价格保留 */
}
.goods-view .xld-pd__text .xld-pd__save {
    background: linear-gradient(135deg, #f59e0b, #fbbf24) !important; /* 暖橙折扣标 */
    border-radius: 12px !important;
    padding: 2px 8px !important;
}
.goods-view .xld-pd__rating li:hover,
.goods-view .xld-pd__related-card:hover,
.goods-view .xld-pd__review-item:hover {
    background: #eff4ff !important;
}
.goods-view .xld-pd__section-title::before {
    background: linear-gradient(180deg, #0E8A57, #16B378) !important;
}

/* ========== 24. 个人中心首页（/user/index）增强 ========== */
.user-index .xld-ord-bar .nav-link.active {
    background: #0E8A57 !important;
    color: #ffffff !important;
}
.user-index .xld-ord-bar .nav-link:hover {
    background: rgba(37, 99, 235, 0.1) !important;
}
.user-index .xld-avatar {
    box-shadow: 0 0 0 3px var(--xld-blue-soft) !important;
}
.user-index .list-group-item-action:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    border-left: 3px #0E8A57 solid !important;
}
.user-index .badge-info {
    background: var(--xld-blue-soft) !important;
    color: var(--xld-blue-dark) !important;
}
.user-index .badge-danger {
    color: #ff3b30 !important; /* 待办保持红 */
}

/* ========== 25. 个人中心子页群增强 ========== */
.user-index .xld-wal-hero {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important; /* 蓝渐变替代紫 */
    color: #ffffff !important;
}
.user-index .xld-cat-bar a:hover {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #0B6E45 !important;
}
.user-index .xld-fav-card:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}
.user-index .xld-fav-card__ico {
    border: 3px var(--xld-blue-soft) solid !important;
    border-radius: 50% !important;
}
.user-index .xld-list__item:hover {
    background: #eff4ff !important;
}
.user-index .xld-list__act {
    /* badge-light.border 保持，不强制改色 */
}
.user-index .xld-cs-msg--mine .xld-cs-msg__bubble {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important; /* 蓝渐变 */
}

/* ========== 26. 账号安全/导出窄栏表单增强 ========== */
.account-security .xld-narrow .card {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1) !important;
}
.account-security .xld-narrow .btn-primary {
    background: #0E8A57 !important;
    border-color: #0E8A57 !important;
}
.account-security .xld-narrow .btn-primary:hover {
    background: #1d4ed8 !important;
}
.account-security .xld-narrow .form-control:focus {
    border-color: #0E8A57 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08) !important;
}

/* ========== 27. 购物车增强 ========== */
.cart-index .xld-ck-sum:hover {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}
.cart-index .xld-ck-sum__row--total {
    background: #eff4ff !important; /* 浅蓝衬底 */
}
.cart-index .xld-ck-sum__submit .btn-success {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}
.cart-index .xld-ck-sum__submit .btn-success:disabled {
    opacity: 0.4 !important; /* disabled 灰保持 */
}
.cart-index ul.list-group-flush > li.list-group-item:hover:not(.bg-light):not(.text-muted) {
    background: #f8fafc !important;
}
.cart-index .xld-count-input:focus {
    border-color: #0E8A57 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08) !important;
}

/* ========== 28. 结算增强 ========== */
.checkout-index .xld-ck-sum__submit .btn {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}
.checkout-index .alert-warning {
    /* 左侧橙→红渐变条，保持警示语义，不换蓝 */
}
.checkout-index .alert-warning::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff9a3d, #ff3b30) !important; /* 橙红警示条 */
}

/* ========== 29. 订单列表/详情增强 ========== */
.order-index .xld-ord-tabs .nav-link.active {
    background: #0E8A57 !important;
    color: #ffffff !important;
}
.order-index .xld-ord-tabs .nav-link:hover {
    background: rgba(37, 99, 235, 0.1) !important;
}
.order-index .xld-ord-card:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}
.order-index .xld-ord-card .card-footer a:hover {
    color: #0B6E45 !important;
    border-color: #0E8A57 !important;
}
.order-index .xld-od-status {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important; /* 状态头蓝渐变 */
    color: #ffffff !important;
}
.order-index .xld-od-status .xld-od-status__title,
.order-index .xld-od-status .badge {
    color: #ffffff !important; /* 状态头白字 */
}
.order-index .xld-od-acts .btn-primary,
.order-index .xld-od-acts .btn-outline-primary {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}
.order-index .xld-od-acts .btn-outline-secondary {
    color: #6b7280 !important; /* 次要按钮保持灰 */
}

/* ========== 30. 平台公告增强 ========== */
.notice-index .xld-doc-item__tt a.text-dark:hover {
    color: var(--xld-blue-dark) !important;
    text-decoration: underline !important;
}
.notice-index .xld-list__item:hover {
    background: #eff4ff !important;
}
.notice-index .badge-light.border:hover {
    background: var(--xld-blue-soft) !important;
    color: var(--xld-blue-dark) !important; /* 分类 hover 软蓝 */
}
.notice-index .xld-longform {
    line-height: 1.8 !important; /* 排版可读性 */
}

/* ========== 31. 检测结果公示增强 ========== */
.safety-index .xld-list__item:hover {
    background: #eff4ff !important;
}
.safety-index .xld-gm__st.badge-success:hover {
    transform: scale(1.05) !important; /* 合格 hover 微放大 */
}
.safety-index .xld-longform a.text-dark:hover {
    color: var(--xld-blue-dark) !important;
}

/* ========== 32. 食品安全投诉增强 ========== */
.complaint-index .card.h-100:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}
.complaint-index .xld-cat-bar a.active {
    background: #0E8A57 !important;
    color: #ffffff !important;
}
.complaint-index .xld-cat-bar a:hover {
    background: rgba(37, 99, 235, 0.1) !important;
}
.complaint-index .xld-list__item:hover {
    background: #eff4ff !important;
}
.complaint-index .text-danger {
    color: #ff3b30 !important; /* 超时限保持红 */
}

/* ========== 33. 客服中心增强 ========== */
.service-index .xld-chat__row.is-mine .xld-chat__bubble {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important; /* own-bubble 蓝 */
}
.service-index .xld-chat__head {
    background: var(--xld-blue-soft) !important;
    border-bottom: 1px #0E8A57 solid !important;
}
.service-index .xld-chat__faq-item {
    background: var(--xld-blue-soft) !important;
    border-radius: 20px !important;
}
.service-index .xld-chat__faq-item:hover {
    color: #0B6E45 !important;
}
.service-index .xld-chat__send {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}
.service-index .xld-chat__faq-item summary:hover {
    color: #0B6E45 !important;
}

/* ========== 34. 帮助中心增强 ========== */
.help-index .xld-list.h-100 {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1) !important;
}
.help-index .xld-list.h-100:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}
.help-index .xld-list__item .xld-doc-item__tt {
    border-left: 3px #0E8A57 solid !important; /* 分类名左侧蓝条 */
}
.help-index .xld-list__item a.text-dark:hover {
    color: #0B6E45 !important;
}
.help-index .xld-list__act {
    /* badge-light.border 保持，不强制改色 */
}
.help-index .form-control:focus {
    border-color: #0E8A57 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08) !important;
}
.help-index .btn-success {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}

/* ========== 35. 全网搜索增强 ========== */
.search-index .xld-srch-box__btn {
    background: linear-gradient(135deg, #0B6E45, #16B378) !important;
    border-color: #0E8A57 !important;
    color: #ffffff !important;
}
.search-index .xld-srch-box__input:focus {
    border-color: #0E8A57 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08) !important;
}
.search-index .xld-srch-tabs .nav-link.active {
    background: #0E8A57 !important;
    color: #ffffff !important;
}
.search-index .xld-srch-word:hover {
    background: rgba(37, 99, 235, 0.08) !important;
    color: #0B6E45 !important;
}
.search-index .xld-ritem {
    border-radius: 12px !important;
    transition: background .15s, transform .15s !important;
}
.search-index .xld-ritem:hover {
    background: #eff4ff !important;
    transform: translateY(-2px) !important;
}
.search-index .xld-rtag {
    border-radius: 12px !important;
    background: rgba(37, 99, 235, 0.08) !important;
    color: #0B6E45 !important;
}
.search-index .xld-rtag--warn {
    /* 橙色到店券警示保持 */
}
.search-index .xld-srch-group__title::before {
    background: linear-gradient(180deg, #0E8A57, #16B378) !important; /* 左侧蓝条 */
}

/* ========== 36. 今天吃什么/分享邀请增强 ========== */
.recommend-index .xld-gcard:hover,
.share-index .xld-gcard:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15) !important;
}
.recommend-index .alert-light.border {
    border-left: 4px linear-gradient(180deg, #0E8A57, #16B378) solid !important; /* 时段条蓝条 */
}
.recommend-index .badge-light.border:hover {
    background: var(--xld-blue-soft) !important;
    color: var(--xld-blue-dark) !important;
}
.recommend-index .table-sm tbody tr:hover {
    background: #eff4ff !important;
}
.share-index .xld-warn-text {
    /* 待结算橙保留 */
}
.share-index .btn-outline-primary:hover {
    background: #0E8A57 !important;
    color: #ffffff !important;
}
.share-index .btn-outline-success:hover {
    background: #22c55e !important; /* 成功绿保留 */
}

/* ========== 37. 静态公示页增强 ========== */
.rules-index .xld-mtable tbody tr:hover {
    background: #eff4ff !important; /* 表格 hover 浅蓝 */
}
.rules-index .xld-mtable thead th {
    color: #5a6474 !important; /* 表头字色 */
}
.rules-index .xld-mcard {
    border-radius: 12px !important; /* 卡片圆角 */
}
.rules-index .xld-agreement {
    line-height: 1.9 !important; /* 长文排版 */
}
.rules-index .xld-agreement h2,
.rules-index .xld-agreement h3 {
    border-left: 4px linear-gradient(180deg, #0E8A57, #16B378) solid !important; /* 左侧蓝条 */
    color: #1f2533 !important; /* 标题字色 */
}
.rules-index .xld-about .xld-main {
    max-width: 860px !important;
    margin: 0 auto !important; /* about页内容居中 */
}
.rules-index .xld-contact .xld-narrow .form-control:focus {
    border-color: #0E8A57 !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08) !important; /* 联系表单焦点蓝晕 */
}