/**
 * Neumorphism Enhancement - 新拟态增强样式
 * 仅针对：标签、查看按钮、套餐头图
 * 不影响其他原有样式
 */

/* ========================================
   新拟态变量定义
   ======================================== */
:root {
  --neu-shadow-light: #ffffff;
  --neu-shadow-dark: #a3b1c6;
  --neu-shadow-outset: 4px 4px 8px var(--neu-shadow-dark), -4px -4px 8px var(--neu-shadow-light);
  --neu-shadow-inset: inset 2px 2px 4px var(--neu-shadow-dark), inset -2px -2px 4px var(--neu-shadow-light);
  --neu-shadow-small: 3px 3px 6px var(--neu-shadow-dark), -3px -3px 6px var(--neu-shadow-light);
}

/* ========================================
   1. 产品标签 - 新拟态效果
   ======================================== */
.p-charge_card-info-slogan {
  /* 确保标签区域有足够底部间距 */
  margin-bottom: 0.15rem;
  min-height: 0;
}

.p-charge_card-info-slogan span {
  display: inline-block;
  border-radius: 0.2rem;
  padding: 0.02rem 0.1rem;
  margin: 0 0.06rem 0.06rem 0;
  font-size: 0.24rem;
  font-weight: 500;
  border: none;
  /* 新拟态凸起效果 */
  box-shadow: var(--neu-shadow-small);
  /* 限制最多一行，超出隐藏 */
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 保留原有颜色 */
.p-charge_card-info-slogan span:nth-child(1) {
  background: rgba(72, 187, 120, 0.15);
  color: #48bb78;
}

.p-charge_card-info-slogan span:nth-child(2) {
  background: rgba(255, 184, 0, 0.15);
  color: #d69e2e;
}

.p-charge_card-info-slogan span:nth-child(3) {
  background: rgba(66, 153, 225, 0.15);
  color: #4299e1;
}

.p-charge_card-info-slogan span:nth-child(4) {
  background: rgba(168, 72, 196, 0.15);
  color: #9f7aea;
}

.p-charge_card-info-slogan span:nth-child(5) {
  background: rgba(237, 100, 166, 0.15);
  color: #ed64a6;
}

.p-charge_card-info-slogan span:nth-child(6) {
  background: rgba(72, 187, 120, 0.15);
  color: #48bb78;
}

.p-charge_card-info-slogan span:nth-child(7) {
  background: rgba(255, 184, 0, 0.15);
  color: #d69e2e;
}

.p-charge_card-info-slogan span:nth-child(8) {
  background: rgba(66, 153, 225, 0.15);
  color: #4299e1;
}

/* ========================================
   2. 查看按钮 - 新拟态效果
   ======================================== */
.p-charge_card-info-buy_btn {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 0.32rem;
  color: #fff;
  font-size: 0.28rem;
  font-weight: 700;
  height: 0.64rem;
  line-height: 0.64rem;
  /*padding: 0 0.32rem;*/
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  /* 新拟态凸起阴影 */
  box-shadow: 5px 5px 10px rgba(245, 87, 108, 0.3), -2px -2px 6px rgba(240, 147, 251, 0.2);
  border: none;
  /* 修复文字换行 - 覆盖原有宽度 */
  width: auto !important;
  min-width: 1.6rem;
  white-space: nowrap;
}

/* 按钮hover效果 */
.p-charge_card-info-buy_btn:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 14px rgba(245, 87, 108, 0.4), -3px -3px 8px rgba(240, 147, 251, 0.3);
}

/* 按钮点击效果 */
.p-charge_card-info-buy_btn:active {
  transform: translateY(0);
  box-shadow: var(--neu-shadow-inset);
}

/* ========================================
   3. 套餐头图 - 新拟态效果
   ======================================== */
.p-charge_card-img {
  border-radius: 0.06rem;
  margin-right: 0.2rem;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  /* 新拟态凸起效果 */
  box-shadow: var(--neu-shadow-outset);
  background: #e0e5ec;
}

/* 头图内部图片 */
.p-charge_card-img .charge_img {
  border-radius: 0.04rem;
  display: block;
}

/* NEW标签保持原有样式 */
.p-charge_card-img .charge_index {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: 0.08rem;
  color: #fff;
  font-size: 0.2rem;
  font-weight: 700;
  height: 0.36rem;
  left: 0.04rem;
  line-height: 0.36rem;
  padding: 0 0.12rem;
  position: absolute;
  top: 0.04rem;
  text-align: center;
  width: auto;
  min-width: 0.5rem;
  z-index: 2;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ========================================
   4. 收藏按钮（可选增强）
   ======================================== */
.p-charge_card-info-buy_cart {
  background: #e0e5ec;
  border-radius: 0.32rem;
  width: 0.64rem;
  height: 0.64rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  /* 新拟态凸起效果 */
  box-shadow: var(--neu-shadow-small);
}

.p-charge_card-info-buy_cart:hover {
  background: linear-gradient(145deg, #e6ebf2, #d4dae3);
  transform: scale(1.05);
  box-shadow: 5px 5px 10px var(--neu-shadow-dark), -5px -5px 10px var(--neu-shadow-light);
}

.p-charge_card-info-buy_cart:active {
  box-shadow: var(--neu-shadow-inset);
}

.p-charge_card-info-buy_cart img {
  height: 0.36rem;
  width: 0.36rem;
}

/* ========================================
   6. 产品卡片整体 - 新拟态效果
   ======================================== */
.p-charge_card {
  background: var(--card-bg, #e0e5ec);
  border-radius: 0.2rem;
  /* 直接添加悬浮阴影效果（无需hover） */
  box-shadow: 8px 8px 16px var(--neu-shadow-dark), -8px -8px 16px var(--neu-shadow-light);
  display: flex;
  margin-bottom: 0.2rem;
  padding: 0.2rem;
  position: relative;
  overflow: visible;
}

/* 卡片右侧信息区域 */
.p-charge_card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
  overflow: visible;
}

/* 购买按钮区域 */
.p-charge_card-info-buy {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.12rem;
  margin-top: auto;
  padding-top: 0.12rem;
}

/* ========================================
   7. 热销卡片特殊样式
   ======================================== */
.p-charge_card.hot_sale_card {
  position: relative;
}

.p-charge_card.hot_sale_card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: calc(var(--card-radius, 0.2rem) + 2px);
  z-index: -1;
  opacity: 0.3;
}

/* ========================================
   8. 筛选面板 - 新拟态效果
   ======================================== */
/* 筛选面板容器 */
#filter-panel {
  background: #ffffff;
  border-radius: 0.2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 0.24rem 0.2rem;
  margin: 0.16rem 0;
}

/* 筛选标题 */
.filter-title {
  font-size: 0.30rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.16rem;
}

/* 筛选标签 - 新拟态效果 */
.filter-tag {
  background: #f5f7f9;
  border: 1px solid #e8eaed;
  border-radius: 0.12rem;
  padding: 0.08rem 0.2rem;
  font-size: 0.28rem;
  color: #666;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  transition: none;
  cursor: pointer;
}

/* 选中状态 - 凹陷效果 */
.filter-tag.active {
  background: #fff1f3;
  border-color: #ff4572;
  color: #ff4572;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(255, 69, 114, 0.2);
}

/* 重置按钮 */
.btn-reset {
  flex: 1;
  height: 0.8rem;
  border-radius: 0.4rem;
  background: #f5f7f9;
  color: #666;
  font-size: 0.28rem;
  border: 1px solid #e8eaed;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
}

.btn-reset:active {
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* 确定按钮 */
.btn-apply {
  flex: 2;
  height: 0.8rem;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: #fff;
  font-size: 0.28rem;
  font-weight: 600;
  border: none;
  box-shadow: 5px 5px 10px rgba(245, 87, 108, 0.3), -2px -2px 6px rgba(240, 147, 251, 0.2);
  cursor: pointer;
}

.btn-apply:active {
  box-shadow: var(--neu-shadow-inset);
}
