@charset "utf-8";
/* ========== 首页增强样式 ========== */
/* 参照 web-phone-srcs 视觉效果，适配蓝色主题 #1989FA */

/* ---- 页面背景 ---- */
.page-index {
  background-color: var(--bg-color, #F7F8FA) !important;
}

/* ---- 顶部搜索栏 ---- */
.index-head-bar {
  background-image: none !important;
}
.index-head-bar .head-bar-bg {
  background: var(--primary-gradient, linear-gradient(135deg, #1989FA 0%, #4DA6FF 100%)) !important;
  opacity: 1 !important;
  box-shadow: 0 2px 8px rgba(25, 137, 250, 0.3);
}
.index-head-bar .hd-logo {
  width: 5.5rem !important;
  background-size: 5rem auto !important;
  background-position: .5rem center !important;
  padding-left: .5rem !important;
  padding-right: .3rem !important;
}
.index-head-bar .top-search .search-ipt {
  background-color: rgba(255,255,255,0.25) !important;
  border-radius: var(--radius-round, 999px);
  color: #fff;
}
.index-head-bar .top-search .search-ico {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.index-head-bar .hd-link,
.index-head-bar .hd-link a {
  color: #fff !important;
}

/* ---- 搜索弹出层 ---- */
.index-search-wrap {
  background-color: var(--card-bg, #fff) !important;
}
.index-search-wrap .sys-top-bar {
  background: var(--card-bg, #fff) !important;
  box-shadow: 0 1px 0 var(--border-color, #EBEDF0);
}
.index-search-wrap .sys-top-bar .search-ipt {
  background-color: var(--bg-gray, #F5F6F8) !important;
  border-radius: var(--radius-round, 999px);
  color: var(--text-primary, #323233) !important;
}
.index-search-wrap .sys-top-bar .search-btn {
  color: var(--primary-color, #1989FA) !important;
  font-weight: 500;
}
.index-search-wrap .search-pop .hot-words .words-hd {
  color: var(--text-primary, #323233);
  font-size: .88rem;
  font-weight: 600;
  padding: .5rem 0 .3rem;
}
.index-search-wrap .search-pop .hot-words .word-tag {
  display: inline-block;
  padding: .2rem .5rem;
  margin: .15rem .2rem .15rem 0;
  background-color: var(--bg-gray, #F5F6F8);
  border-radius: var(--radius-round, 999px);
  color: var(--text-primary, #323233);
  font-size: .78rem;
  transition: all 0.2s ease;
}
.index-search-wrap .search-pop .hot-words .word-tag:active {
  background-color: rgba(25, 137, 250, 0.1);
  color: var(--primary-color, #1989FA);
}

/* ---- 轮播区 ---- */
.sys-slides {
  margin: 0 .2rem;
  padding-top: 3.4rem;
  border-radius: var(--radius-medium, 12px);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: var(--bg-gray, #F5F6F8);
}
.sys-slides .banner-img {
  margin: 0;
  padding: 0;
}
.sys-slides .banner-item,
.sys-slides .banner-item img {
  display: block;
  width: 100%;
  height: auto;
}
.sys-slides .banner-item img {
  border-radius: var(--radius-medium, 12px);
}
.sys-slides .swiper-pagination-bullet {
  border: none !important;
  background: rgba(255,255,255,0.5) !important;
  width: .12rem !important;
  height: .06rem !important;
  border-radius: .03rem !important;
  opacity: 1 !important;
  transition: all 0.3s ease;
}
.sys-slides .swiper-pagination-bullet-active {
  background: #fff !important;
  width: .16rem !important;
}
.sys-slides .swiper-container-horizontal > .swiper-pagination-bullets {
  bottom: 10px !important;
}

/* ---- 快捷导航 ---- */
.index-quick-nav {
  background-color: var(--card-bg, #fff);
  margin: .2rem;
  border-radius: var(--radius-medium, 12px);
  box-shadow: var(--shadow-card, 0 2px 12px rgba(0,0,0,0.06));
  border-bottom: none !important;
  padding: .2rem !important;
}
.index-quick-nav .quick-nav-item {
  transition: transform 0.2s ease;
  border-radius: var(--radius-small, 8px);
  padding: .4rem 0 !important;
}
.index-quick-nav .quick-nav-item:active {
  transform: scale(0.92);
}
.index-quick-nav .quick-nav-item .nav-item-ico {
  border-radius: var(--radius-medium, 12px);
  transition: transform 0.3s ease;
}
.index-quick-nav .quick-nav-item:active .nav-item-ico {
  transform: scale(1.1);
}
.index-quick-nav .quick-nav-item .nav-item-txt {
  font-size: .72rem;
  color: var(--text-primary, #323233);
  font-weight: 500;
  height: auto !important;
  overflow: visible !important;
}

/* ---- 楼层通用 ---- */
.index-floor {
  background-color: var(--card-bg, #fff) !important;
  box-shadow: var(--shadow-card, 0 2px 12px rgba(0,0,0,0.06)) !important;
  border-radius: var(--radius-medium, 12px);
  margin: 0 .2rem .2rem !important;
  overflow: hidden;
}

/* ---- 特价商品 ---- */
.floor-discount {
  padding: .5rem 0 !important;
}
.floor-discount .discount-hd {
  padding: .2rem .6rem .4rem !important;
}
.floor-discount .discount-hd .hd-tittle {
  font-size: .88rem !important;
  font-weight: 600 !important;
  color: var(--text-primary, #323233);
  padding-left: .4rem;
  border-left: 3px solid var(--primary-color, #1989FA);
  line-height: 1.2;
}
.floor-discount .discount-item {
  transition: transform 0.2s ease;
}
.floor-discount .discount-item:active {
  transform: scale(0.96);
}
.floor-discount .discount-item .item-img {
  border-radius: var(--radius-small, 8px);
  overflow: hidden;
  background-color: var(--bg-gray, #F5F6F8);
}
.floor-discount .discount-item .item-img img {
  border-radius: var(--radius-small, 8px);
}
.floor-discount .discount-item .item-name {
  color: var(--text-primary, #323233);
  font-size: .78rem !important;
  height: auto !important;
  max-height: 3rem;
}
.floor-discount .discount-item .pd-price {
  padding-top: .15rem;
}
.floor-discount .discount-item .pd-price .price-type {
  color: var(--accent-color, #FF5556);
  font-weight: 600;
  font-family: 'DIN-PRO', -apple-system, sans-serif;
}

/* 参考价标签 */
.badge1 {
  background: linear-gradient(135deg, #FF5556 0%, #FF7B7C 100%) !important;
  border: none !important;
  border-radius: var(--radius-round, 999px) !important;
  font-size: .56rem !important;
  padding: .06rem .16rem !important;
  box-shadow: 0 1px 3px rgba(255,85,86,.2);
}

/* ---- 商品专题 (promote) ---- */
.floor-promote .promote-hd {
  padding: .5rem .6rem .4rem;
}
.floor-promote .promote-hd .hd-tittle {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary, #323233);
  padding-left: .4rem;
  border-left: 3px solid var(--primary-color, #1989FA);
  line-height: 1.2;
}
.floor-promote {
  border-radius: var(--radius-medium, 12px);
}
.floor-promote .promote-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center;
  transition: background-color 0.2s ease;
  border-radius: 0;
  height: auto !important;
  min-height: 10.38rem;
}
.floor-promote .promote-item .item-img {
  order: 1;
}
.floor-promote .promote-item .item-cont {
  order: 2;
}
.floor-promote .promote-item .pd-price {
  order: 3;
}
.floor-promote .promote-item:active {
  background-color: rgba(25, 137, 250, 0.03);
}
.floor-promote .promote-item:before {
  background-color: var(--border-light, #F5F5F5) !important;
}
.floor-promote .promote-item:after {
  background-color: var(--border-light, #F5F5F5) !important;
}
.floor-promote .promote-item .item-img {
  border-radius: var(--radius-small, 8px);
  overflow: hidden;
  background-color: var(--bg-gray, #F5F6F8);
}
.floor-promote .promote-item .item-img img {
  border-radius: var(--radius-small, 8px);
  transition: transform 0.3s ease;
}
.floor-promote .promote-item:active .item-img img {
  transform: scale(1.05);
}
.floor-promote .promote-item .item-title {
  color: var(--text-primary, #323233);
  font-size: .78rem !important;
}
.floor-promote .promote-item .pd-price .price-type {
  color: var(--accent-color, #FF5556);
  font-weight: 600;
  font-family: 'DIN-PRO', -apple-system, sans-serif;
}

/* ---- 药品分类 ---- */
.floor-cates .floor-hd {
  border-bottom-color: var(--border-light, #F5F5F5) !important;
  padding: .5rem .6rem !important;
}
.floor-cates .floor-hd .hd-title {
  font-weight: 600 !important;
  color: var(--text-primary, #323233);
}
.floor-cates .floor-hd .hd-more {
  color: var(--primary-color, #1989FA) !important;
  font-size: .78rem;
}
.floor-cates .cate-item {
  border-bottom-color: var(--border-light, #F5F5F5) !important;
  transition: all 0.2s ease;
}
.floor-cates .cate-item:after {
  background-color: var(--border-light, #F5F5F5) !important;
}
.floor-cates .cate-item:active {
  background-color: rgba(25, 137, 250, 0.05) !important;
}
.floor-cates .cate-item .cate-name {
  color: var(--text-primary, #323233);
  font-size: .81rem;
}

/* ---- 底部导航 ---- */
.foot-nav {
  background-color: var(--card-bg, #fff) !important;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08) !important;
  border-top: none;
  border-radius: .3rem .3rem 0 0;
}
.foot-nav .nav-item {
  transition: all 0.2s ease;
}
.foot-nav .nav-item .item-name {
  color: var(--text-secondary, #969799);
  font-size: .66rem;
}
.foot-nav .nav-item.active .item-name {
  color: var(--primary-color, #1989FA) !important;
  font-weight: 500;
}
.foot-nav .nav-item:active {
  transform: scale(0.92);
}

/* ---- 返回顶部 ---- */
.gotop {
  border-radius: 50%;
  box-shadow: var(--shadow-card, 0 2px 12px rgba(0,0,0,0.06));
  transition: all 0.3s ease;
}
.gotop:active {
  transform: scale(0.9);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

/* ---- 倒计时 ---- */
.discount-timer .timer-num {
  background-color: var(--primary-color, #1989FA) !important;
  border-radius: .2rem !important;
  font-weight: 600;
}

/* ---- 页脚间距 ---- */
.page-index .page-wrap {
  padding-bottom: .2rem;
}
