/* ============================================================
   爱心优品 首页主题 v2（#/pages/shop/index）
   2026-11-02 · 与 shop-theme2.js 配套
   目标：深青绿→翠绿渐变头 + 白色胶囊搜索 + 深蓝→青绿 hero
         + 白色分类胶囊 + 双列商品大卡 + 渐变浮钮
   作用域：body.rc-shp-home（仅商城首页，由 JS 打标）
   ============================================================ */

/* ---------------- 1. 页面底色 ---------------- */
body.rc-shp-home .app{
  background:#F1F5F4!important;
  padding-bottom:104px!important;
}

/* ---------------- 2. 头部渐变面板 ---------------- */
body.rc-shp-home .header_top{
  position:relative!important;
  overflow:hidden!important;
  padding:0 0 10px!important;
  border-radius:0 0 24px 24px!important;
  background:
    radial-gradient(120% 70% at 94% -12%, rgba(132,248,214,.40), rgba(132,248,214,0) 62%),
    radial-gradient(86% 58% at -10% 2%, rgba(24,120,190,.28), rgba(24,120,190,0) 64%),
    linear-gradient(180deg, rgba(241,245,244,0) 54%, rgba(241,245,244,.72) 82%, #F1F5F4 100%),
    linear-gradient(158deg,#065247 0%,#0A6E5C 26%,#0E9474 58%,#14AF85 100%)!important;
  box-shadow:0 24px 44px -34px rgba(4,48,44,.85);
}
body.rc-shp-home .header_top > *{position:relative;z-index:2}

/* 装饰层：左上柔光 + 右上同心环 */
body.rc-shp-home .header_top .rcShpDeco{
  position:absolute!important;left:0;right:0;top:0;bottom:0;
  z-index:1!important;pointer-events:none;overflow:hidden;
}
.rcShpDeco b{
  position:absolute;left:-118px;top:-140px;width:270px;height:270px;border-radius:50%;
  background:radial-gradient(circle,rgba(150,255,232,.20),rgba(150,255,232,0) 66%);
}
.rcShpDeco u{
  position:absolute;right:-46px;top:-52px;width:196px;height:196px;border-radius:50%;
  border:1px solid rgba(255,255,255,.20);
  box-shadow:0 0 0 22px rgba(255,255,255,.06),0 0 0 44px rgba(255,255,255,.045);
}
.rcShpDeco s{
  position:absolute;right:44px;top:52px;width:96px;height:96px;border-radius:50%;
  border:1px solid rgba(255,255,255,.16);
}

/* ---------------- 3. 标题行 ---------------- */
body.rc-shp-home .header_top .flex_rowL{
  display:flex!important;align-items:center!important;
  padding:10px 16px 0!important;min-height:38px;
}
body.rc-shp-home .header_top .fontS_17.font_weight_600{
  font-size:25px!important;font-weight:800!important;line-height:34px!important;
  color:#FFFFFF!important;letter-spacing:.8px!important;
  text-shadow:0 2px 10px rgba(3,44,40,.30);
}
/* 右侧玻璃铃铛（装饰） */
body.rc-shp-home .header_top .flex_rowL::after{
  content:'';margin-left:auto;flex:0 0 37px;
  width:37px;height:37px;border-radius:50%;
  border:1.2px solid rgba(255,255,255,.55);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M18 9a6 6 0 1 0-12 0c0 5-2 6-2 6h16s-2-1-2-6'/><path d='M10.4 20a1.9 1.9 0 0 0 3.2 0'/></svg>") center/19px 19px no-repeat,
    rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);
}

/* ---------------- 4. 搜索胶囊 ---------------- */
body.rc-shp-home .header_top .scroll_panel{
  height:39px!important;
  margin:13px 14px 11px!important;
  padding:0 14px!important;
  background:rgba(255,255,255,.97)!important;
  border:0!important;border-radius:20px!important;
  box-shadow:0 14px 26px -18px rgba(3,48,44,.85),inset 0 1px 0 #FFFFFF!important;
  display:flex!important;flex-direction:row!important;
  align-items:center!important;justify-content:flex-start!important;
}
body.rc-shp-home .header_top .scroll_panel .search_icon{
  order:-1!important;
  width:18px!important;height:18px!important;flex:0 0 18px!important;
  margin:0 9px 0 0!important;
}
body.rc-shp-home .header_top .scroll_panel .uicon-search{
  font-size:18px!important;color:#0E7A53!important;font-weight:700!important;
}
body.rc-shp-home .header_top .scroll_panel uni-input{
  flex:1 1 auto!important;padding:0!important;height:39px!important;
}
body.rc-shp-home .header_top .scroll_panel .uni-input-wrapper{
  height:39px!important;display:flex!important;align-items:center!important;
}
body.rc-shp-home .header_top .scroll_panel .uni-input-input,
body.rc-shp-home .header_top .scroll_panel .uni-input-placeholder{
  font-size:13.5px!important;line-height:normal!important;
  height:auto!important;color:#9AA8A0!important;
}

/* ---------------- 5. 分类胶囊 ---------------- */
body.rc-shp-home .header_top .nav_panel{padding:0 14px!important}
body.rc-shp-home .header_top .nav_panel > uni-view{
  gap:6px!important;padding:0 0 2px!important;
  overflow-x:auto!important;overflow-y:hidden!important;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
}
body.rc-shp-home .header_top .nav_panel > uni-view::-webkit-scrollbar{display:none;height:0}
body.rc-shp-home .header_top .nav_panel .textC.rc-chip{
  flex:0 0 auto!important;width:auto!important;min-width:0!important;
  height:31px!important;padding:0 8px!important;border-radius:15.5px!important;
  background:rgba(255,255,255,.90)!important;
  border:1px solid rgba(255,255,255,.50)!important;
  box-shadow:0 10px 18px -14px rgba(3,48,44,.75)!important;
}
/* 选中指示条原本占 20px 宽度，把胶囊撑到 96px → 脱流保留宽度供 bamboo 判定 */
body.rc-shp-home .header_top .nav_panel .textC.rc-chip .flex_rowC{
  position:absolute!important;left:0!important;top:0!important;
  width:20px!important;height:0!important;overflow:hidden!important;
  opacity:0!important;pointer-events:none!important;
}
body.rc-shp-home .header_top .nav_panel .textC.rc-chip{position:relative!important}
body.rc-shp-home .header_top .nav_panel .textC.rc-chip > uni-view:first-child > uni-view{
  font-size:12px!important;font-weight:500!important;color:#2E4239!important;
  line-height:16px!important;height:auto!important;white-space:nowrap!important;
}
body.rc-shp-home .header_top .nav_panel .textC.rc-chip-on{
  background:#FFFFFF!important;
  border-color:rgba(11,123,79,.30)!important;
  box-shadow:0 12px 22px -14px rgba(3,48,44,.85),inset 0 0 0 1px rgba(255,255,255,.9)!important;
}
body.rc-shp-home .header_top .nav_panel .textC.rc-chip-on > uni-view:first-child > uni-view{
  color:#0B7B4F!important;font-weight:700!important;
}

/* ---------------- 6. Hero 轮播 ---------------- */
body.rc-shp-home .header_top .rcShpHero{
  position:relative!important;
  margin:8px 14px 0!important;
  height:120px;
  border-radius:18px;
  overflow:hidden!important;
  background:linear-gradient(108deg,#06254B 0%,#083A5C 22%,#0B5A6C 50%,#0E8B76 76%,#17BC8E 100%);
  box-shadow:0 20px 36px -24px rgba(2,26,44,.90),inset 0 1px 0 rgba(255,255,255,.14);
  isolation:isolate;
}
.rcShpHero::before{
  content:'';position:absolute;left:-46px;top:-80px;width:200px;height:200px;border-radius:50%;
  background:radial-gradient(circle,rgba(150,214,255,.30),rgba(150,214,255,0) 68%);
}
.rcShpHero::after{
  content:'';position:absolute;right:-56px;bottom:-96px;width:230px;height:230px;border-radius:50%;
  background:radial-gradient(circle,rgba(120,255,222,.30),rgba(120,255,222,0) 70%);
}
.rcShpHero .rl1{position:absolute;right:-64px;top:-34px;width:220px;height:220px;border-radius:50%;border:1px solid rgba(255,255,255,.16)}
.rcShpHero .rl2{position:absolute;right:-24px;top:6px;width:158px;height:158px;border-radius:50%;border:1px solid rgba(255,255,255,.12)}
.rcShpHero .rl3{position:absolute;left:-54px;bottom:-88px;width:190px;height:190px;border-radius:50%;border:1px solid rgba(255,255,255,.10)}

.rcShpHero .hs{
  position:absolute;left:0;right:0;top:0;bottom:0;z-index:2;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  opacity:0;transition:opacity .45s ease;padding-bottom:12px;
}
.rcShpHero .hs.on{opacity:1}
.rcShpHero .tag{
  display:inline-flex;align-items:center;gap:6px;height:23px;padding:0 11px;
  border-radius:999px;margin-bottom:8px;
  background:rgba(6,26,44,.42);border:1px solid rgba(255,255,255,.20);
  font-size:11.5px;font-weight:500;color:rgba(255,255,255,.94);letter-spacing:.3px;
  backdrop-filter:blur(6px);
}
.rcShpHero .tag i{
  width:6px;height:6px;border-radius:50%;background:#FFD34D;
  box-shadow:0 0 0 3px rgba(255,211,77,.20);
}
.rcShpHero .hs b{
  display:block;font-size:28px;font-weight:800;line-height:1.16;
  color:#fff;letter-spacing:3px;text-indent:3px;
  text-shadow:0 4px 18px rgba(2,20,36,.35);
  white-space:nowrap;
}
.rcShpHero .hs em{
  display:block;font-style:normal;margin-top:7px;
  font-size:12px;font-weight:400;color:rgba(255,255,255,.86);letter-spacing:1.4px;
  white-space:nowrap;
}
.rcShpHero .hdots{
  position:absolute;left:0;right:0;bottom:9px;z-index:3;
  display:flex;align-items:center;justify-content:center;gap:5px;
}
.rcShpHero .hdots i{
  width:6px;height:5px;border-radius:3px;background:rgba(255,255,255,.45);
  transition:width .3s ease,background .3s ease;
}
.rcShpHero .hdots i.on{width:16px;background:#FFFFFF}

/* ---------------- 7. 商品列表 ---------------- */
/* 无封面商品占位（接口无图）：柔绿渐变 + 购物袋水印，避免大面积白块 */
body.rc-shp-home .list_item .item_img.rc-noimg{
  background:
    radial-gradient(120% 80% at 82% 12%,rgba(255,255,255,.9),rgba(255,255,255,0) 60%),
    linear-gradient(150deg,#F1F8F1,#E3F1E6)!important;
  position:relative!important;
}
body.rc-shp-home .list_item .item_img.rc-noimg::after{
  content:'';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:34px;height:34px;opacity:.55;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2382A997' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M4 9.5h16V19a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9.5Z'/><path d='M3.2 9.5 4.8 4h14.4l1.6 5.5'/><path d='M9.4 21v-5.2h5.2V21'/></svg>") center/34px 34px no-repeat;
}

body.rc-shp-home .PLR_2.MT_3{padding:0 12px!important;margin-top:12px!important}
body.rc-shp-home .flex_rows_start{gap:10px!important}
body.rc-shp-home .flex_rows_start > uni-view.W_50{width:calc(50% - 5px)!important}
body.rc-shp-home .list_item{
  border:0!important;border-radius:16px!important;background:#FFFFFF!important;
  box-shadow:0 1px 2px rgba(16,42,27,.04),0 16px 32px -24px rgba(16,42,27,.55)!important;
}
body.rc-shp-home .list_item .item_img{
  height:116px!important;background:#FBFCFA!important;
}
body.rc-shp-home .list_item .item_img > uni-image,
body.rc-shp-home .list_item .item_img img{border-radius:0!important}
body.rc-shp-home .list_item > uni-view.PLR_2.PTB_3{
  padding:9px 11px 11px!important;
}
body.rc-shp-home .list_item .title1{
  font-size:14.5px!important;font-weight:700!important;color:#16261F!important;
  line-height:19px!important;letter-spacing:.1px;
}
body.rc-shp-home .list_item .title2{
  margin:4px 0 5px!important;
  font-size:11.5px!important;font-weight:400!important;color:#9AA9A1!important;line-height:15px!important;
}
body.rc-shp-home .list_item .tag2{
  font-size:17px!important;font-weight:800!important;color:#DF3A31!important;
  line-height:21px!important;letter-spacing:-.2px;
}
body.rc-shp-home .list_item .tag2 i{
  font-style:normal;font-size:12.5px;font-weight:700;margin-right:1px;
}
body.rc-shp-home .list_item .tag3{
  height:auto!important;min-height:0!important;
  padding:2px 7px!important;border-radius:7px!important;
  background:#FDF1E3!important;color:#C2762C!important;
  font-size:10.5px!important;font-weight:600!important;line-height:14px!important;
  box-shadow:none!important;
}
body.rc-shp-home .list_item .flex_rowL{align-items:center!important}

/* 列表专属底部提示 */
.rcShpMore{
  margin:18px 0 2px;padding:0;text-align:center;
  font-size:11.5px;color:#A6B3AB;letter-spacing:.6px;
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.rcShpMore::before,.rcShpMore::after{
  content:'';width:26px;height:1px;background:linear-gradient(90deg,rgba(166,179,171,0),rgba(166,179,171,.55));
}
.rcShpMore::after{transform:scaleX(-1)}

/* ---------------- 8. 当日比价浮钮 ---------------- */
body.rc-shp-home #mall-mch-entry{
  right:12px!important;bottom:78px!important;
  width:60px!important;height:60px!important;min-width:60px!important;
  padding:0!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;gap:4px!important;
  border:0!important;border-radius:50%!important;
  background:linear-gradient(152deg,#31D196 0%,#13A875 55%,#0C8A5E 100%)!important;
  box-shadow:0 16px 28px -14px rgba(12,138,94,.85),inset 0 1px 0 rgba(255,255,255,.40)!important;
  font-size:0!important;line-height:0!important;
}
body.rc-shp-home #mall-mch-entry::before{
  content:''!important;width:20px!important;height:20px!important;flex:0 0 20px!important;
  background:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><path d='M4 9.5h16V19a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V9.5Z'/><path d='M3.2 9.5 4.8 4h14.4l1.6 5.5'/><path d='M9.4 21v-5.2h5.2V21'/></svg>") center/21px 21px no-repeat!important;
}
body.rc-shp-home #mall-mch-entry::after{
  content:"当日比价"!important;
  font-size:10px!important;font-weight:600!important;line-height:12px!important;
  color:#FFFFFF!important;letter-spacing:0!important;
}

/* ---------------- 9. 小屏适配（≤359px） ---------------- */
@media (max-width:359px){
  body.rc-shp-home .header_top .fontS_17.font_weight_600{font-size:22px!important;line-height:30px!important}
  body.rc-shp-home .header_top .flex_rowL::after{width:32px;height:32px;flex:0 0 32px;background-size:17px 17px,100% 100%!important}
  body.rc-shp-home .header_top .scroll_panel{height:38px!important;border-radius:19px!important;margin:12px 0 10px!important}
  body.rc-shp-home .header_top .nav_panel > uni-view{gap:6px!important}
  body.rc-shp-home .header_top .nav_panel .textC.rc-chip{height:30px!important;padding:0 10px!important;border-radius:15px!important}
  /* 选中指示条原本占 20px 宽度，把胶囊撑到 96px → 脱流保留宽度供 bamboo 判定 */
body.rc-shp-home .header_top .nav_panel .textC.rc-chip .flex_rowC{
  position:absolute!important;left:0!important;top:0!important;
  width:20px!important;height:0!important;overflow:hidden!important;
  opacity:0!important;pointer-events:none!important;
}
body.rc-shp-home .header_top .nav_panel .textC.rc-chip{position:relative!important}
body.rc-shp-home .header_top .nav_panel .textC.rc-chip > uni-view:first-child > uni-view{font-size:11.5px!important}
  body.rc-shp-home .header_top .rcShpHero{height:126px;margin:2px 12px 0!important}
  .rcShpHero .hs b{font-size:26px;letter-spacing:2px;text-indent:2px}
  .rcShpHero .hs em{font-size:11.5px;letter-spacing:1.2px}
  .rcShpHero .tag{height:23px;font-size:10.5px;padding:0 10px;margin-bottom:7px}
  body.rc-shp-home .PLR_2.MT_3{padding:0 12px!important}
  body.rc-shp-home .flex_rows_start{gap:10px!important}
  body.rc-shp-home .flex_rows_start > uni-view.W_50{width:calc(50% - 5px)!important}
  body.rc-shp-home .list_item .item_img{height:104px!important}
  body.rc-shp-home .list_item .title1{font-size:14px!important}
  body.rc-shp-home .list_item .tag2{font-size:16.5px!important}
  body.rc-shp-home #mall-mch-entry{width:54px!important;height:54px!important;min-width:54px!important;border-radius:17px!important;bottom:72px!important}
}

/* ---------------- 10. 窄屏（≤389px）胶囊收窄（375 恰好一行放下） ---------------- */
@media (max-width:389px){
  body.rc-shp-home .header_top .nav_panel > uni-view{gap:5px!important}
  body.rc-shp-home .header_top .nav_panel .textC.rc-chip{padding:0 7px!important}
  body.rc-shp-home .header_top .nav_panel .textC.rc-chip > uni-view:first-child > uni-view{font-size:11.8px!important}
}

/* 真正放不下时（≤359px）才给右侧渐隐，提示可横向滑动；375 恰好放下，不能压暗第 5 个胶囊 */
@media (max-width:359px){
  body.rc-shp-home .header_top .nav_panel{position:relative!important}
  body.rc-shp-home .header_top .nav_panel::after{
    content:''!important;display:block!important;position:absolute!important;
    right:0!important;top:0!important;bottom:6px!important;width:20px!important;
    background:linear-gradient(90deg,rgba(10,110,92,0),rgba(10,110,92,.45))!important;
    pointer-events:none!important;z-index:3!important;
  }
}
