/* 新商城 · 深海蓝 + 银灰主题（运行时覆盖，不修改编译产物） */

:root,
page,
body,
#app,
uni-page-body,
.uni-page-body {
  --ui-BG-Main: #16325c;
  --ui-BG-Main-tag: rgba(22, 50, 92, .08);
  --ui-BG-Main-gradient: rgba(22, 50, 92, .65);
  --ui-BG-Main-light: rgba(22, 50, 92, .18);
  --ui-BG-Main-opacity-1: rgba(22, 50, 92, .10);
  --ui-BG-Main-opacity-4: rgba(22, 50, 92, .40);
  --ui-Main-box-shadow: 0 .2em .5em rgba(22, 50, 92, .18);
  --ui-BG-Main-1: rgba(30, 64, 120, .97);
  --ui-BG-Main-2: rgba(51, 78, 115, .92);
  --ui-BG-Main-3: rgba(45, 68, 100, .68);
  --ui-BG-Main-4: rgba(45, 68, 100, .46);
  --ui-BG-Main-TC: #fff !important;
}

.main-green, .main-red, .main-blue, .main-purple, .main-orange, .main-pink,
.main-cyan, .main-brown, .main-grey, .main-yellow {
  --ui-BG-Main: #16325c !important;
  --ui-BG-Main-tag: rgba(22, 50, 92, .08) !important;
  --ui-BG-Main-gradient: rgba(22, 50, 92, .65) !important;
  --ui-BG-Main-light: rgba(22, 50, 92, .18) !important;
  --ui-BG-Main-opacity-1: rgba(22, 50, 92, .10) !important;
  --ui-BG-Main-opacity-4: rgba(22, 50, 92, .40) !important;
  --ui-Main-box-shadow: 0 .2em .5em rgba(22, 50, 92, .18) !important;
  --ui-BG-Main-1: rgba(30, 64, 120, .97) !important;
  --ui-BG-Main-2: rgba(51, 78, 115, .92) !important;
  --ui-BG-Main-3: rgba(45, 68, 100, .68) !important;
  --ui-BG-Main-4: rgba(45, 68, 100, .46) !important;
  --ui-BG-Main-TC: #fff !important;
}

page, body, #app, uni-page-body, .uni-page-body {
  background: #f3f5f8 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  color: #1f2937;
}

.uni-page-head, .s-header, .nav-bar, .header {
  background: linear-gradient(135deg, #0b1f3a 0%, #16325c 55%, #2b4c7e 100%) !important;
  color: #fff !important;
}
.uni-page-head .uni-page-head__title, .uni-page-head .uni-title-text {
  color: #fff !important;
}

.uni-tabbar, .s-tabbar, .tabbar, .tab-bar {
  background: #fff !important;
  box-shadow: 0 -6px 20px rgba(15, 42, 95, .08) !important;
}
.uni-tabbar .uni-tabbar__item.uni-tabbar__item--active,
.s-tabbar .active, .tabbar .active {
  color: #16325c !important;
}

.s-button--primary, .uni-button--primary, .btn-primary, .primary-btn,
.buy-btn, .add-cart-btn, .join-btn, .go-btn {
  background: linear-gradient(135deg, #16325c 0%, #2b4c7e 100%) !important;
  border-color: #16325c !important;
  color: #fff !important;
  border-radius: 12px !important;
}

[class*="goods-price"], [class*="price-text"], [class*="all-price"],
[class*="commission-num"], .danger-color, [class*="price"] {
  color: #1d4ed8 !important;
}

.s-card, .goods-card, .product-card, .item-card, .list-item {
  border-radius: 16px !important;
  box-shadow: 0 6px 20px rgba(15, 42, 95, .08) !important;
  background: #fff !important;
}

input, textarea, .uni-input-input {
  background: #f7f8fa !important;
  border-radius: 10px !important;
}

.s-tag, .tag, .badge {
  background: #e8edf5 !important;
  color: #16325c !important;
  border-radius: 8px !important;
}

.banner-container, .banner-img, .s-image-banner, [class*="banner"] {
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* 登录页 */
.login-page {
  background: linear-gradient(160deg, #0b1f3a 0%, #16325c 45%, #dfe6ef 100%) !important;
}
.login-page .login-container,
.new-login-container {
  background: rgba(255, 255, 255, .97) !important;
  border-radius: 24px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25) !important;
  margin: 7vh 1.25rem 0 !important;
  padding: 2.5rem 1.875rem 2rem !important;
}
.login-header::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: url('/static/img/shop/logo.png') center/contain no-repeat;
  border-radius: 16px;
}
.login-header .login-title { color: #0b1f3a !important; }
.login-header .login-subtitle { color: #64748b !important; }
.login-form .login-button {
  background: linear-gradient(135deg, #16325c, #2b4c7e) !important;
  box-shadow: 0 10px 24px rgba(22, 50, 92, .28) !important;
}
.login-form .register-link,
.login-form .register-link a { color: #16325c !important; }
.login-page .icp-container { color: #c7d0dc !important; }

/* 首页橙色系静态图转为深海蓝/银灰 */
img[src*="bg1.png"], [src*="bg1.png"] {
  filter: hue-rotate(200deg) saturate(.55) brightness(.72) !important;
}
img[src*="tip1.png"], [src*="tip1.png"] {
  filter: hue-rotate(200deg) saturate(.5) brightness(.92) !important;
}
img[src*="rushing.png"], [src*="rushing.png"],
img[src*="rushing-a.png"], [src*="rushing-a.png"] {
  filter: hue-rotate(200deg) saturate(.55) brightness(.9) !important;
}
.category-header .category-underline { background: #16325c !important; }
.category-header [class*="active"] { color: #16325c !important; }
.uni-tabbar img, .s-tabbar img, .tabbar img {
  filter: hue-rotate(200deg) saturate(.55);
}

/* 首页顶部弧形背景（写死 #ea6254） */
.v-linear-bg {
  background: linear-gradient(135deg, #0b1f3a 0%, #16325c 65%, #2b4c7e 100%) !important;
}

/* 其余页面的红色激活态统一为深海蓝 */
.top-tabs .tab-item.active .tab-text { color: #16325c !important; }
.top-tabs .tab-item.active::after {
  background: linear-gradient(135deg, #16325c, #2b4c7e) !important;
}
.status-tabs .status-item.active .status-text {
  background: linear-gradient(135deg, #16325c, #2b4c7e) !important;
}




/* ===== 我的页面（深海蓝+银灰） ===== */
.user-page { background: #f3f5f8 !important; }
.top-header {
  background: linear-gradient(160deg, #0b1f3a 0%, #16325c 55%, #2b4c7e 100%) !important;
  border-radius: 0 0 28px 28px !important;
  box-shadow: 0 12px 28px rgba(11,31,58,.22) !important;
}
.top-header .register-text { letter-spacing: .02em !important; }
.top-header .avatar-box {
  border-color: rgba(255,255,255,.6) !important;
  box-shadow: 0 8px 20px rgba(11,31,58,.30) !important;
}
.top-header .buyer-card { border-radius: 14px !important; box-shadow: 0 10px 24px rgba(11,31,58,.18) !important; }
.top-header .buyer-card .card-title, .seller-card .card-title { color: #16325c !important; }
.buyer-card .stat-label, .seller-card .stat-label { color: #5a6b80 !important; }
.balance-section, .menu-list, .seller-card {
  border-radius: 14px !important;
  box-shadow: 0 8px 20px rgba(22,50,92,.06) !important;
}
.balance-value { color: #1e4078 !important; }
.balance-item { background: #f5f8fc !important; }
.menu-label { color: #22364f !important; }
.menu-item { border-bottom-color: #e6ecf3 !important; }

/* ===== 首页导航按钮（替换服务承诺图片） ===== */
.tip-container { padding: 6px 10px 4px !important; }
.tip-container .tip-img { display: none !important; }
.ai-nav-row { display: flex; gap: 8px; width: 100%; box-sizing: border-box; }
.ai-nav-btn {
  flex: 1 1 0; min-width: 0; margin: 0; padding: 12px 2px 10px;
  border: 0; background: #fff; border-radius: 14px;
  box-shadow: 0 6px 16px rgba(22, 50, 92, .08);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: inherit; -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background .12s ease;
}
.ai-nav-btn:active { transform: scale(.95); background: #eef4fb; }
.ai-nav-ico {
  width: 42px; height: 42px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e6f1fd, #cfe2f7);
  color: #16325c; box-shadow: inset 0 0 0 1px rgba(22, 50, 92, .06);
}
.ai-nav-ico svg { width: 22px; height: 22px; }
.ai-nav-label {
  font-size: 11.5px; line-height: 1.15; font-weight: 600;
  color: #23384f; text-align: center; letter-spacing: .2px;
}
.ai-toast {
  position: fixed; left: 50%; bottom: 120px; z-index: 99999;
  transform: translate(-50%, 10px); opacity: 0;
  background: rgba(14, 30, 52, .92); color: #fff;
  padding: 11px 20px; border-radius: 999px; font-size: 13px;
  max-width: 80vw; text-align: center; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.ai-toast.show { opacity: 1; transform: translate(-50%, 0); }
