/* 解决Vue插值闪烁 - 修正选择器错误 */
[v-cloak] {
  display: none;
}

body {
  margin: 0;
  padding: 0;
}

#app {
  margin: 0;
  padding: 0;
}

/* 导航栏 */

/* 简洁头部 */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #fff;
  padding: 18px 16px;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.back-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  font-size: 20px;
}

.page-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  flex: 1;
  text-align: center;
}

.refresh-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  color: #666;
  font-size: 18px;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background-color: #e8e8e8;
  transform: rotate(90deg);
}

@media (max-width: 480px) {
  .page-header {
    padding: 16px 12px;
  }
}

/* 底部 TabBar */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  display: flex;
  border-top: 1px solid #F5F5F5;
  /* max-width: 750px; */
  margin: 0 auto;
  z-index: 999;
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #999;
  position: relative;
}

.tab-item.active {
  /* color: #FF8C38; */
  color: #01DF82;
}

.tab-icon-item {
  width: 25px;
  /* height: 25px; */
  height: auto;
}

.tab-icon {
  font-size: 20px;
  margin-bottom: 3px;
}

.tab-text {
  font-size: 10px;
}

/* 角标样式 */
.tab-badge {
  position: absolute;
  top: 1px;
  right: calc(50% - 18px);
  background: #ff4757;
  color: white;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0 4px;
  box-sizing: border-box;
  line-height: 1;
  border: 1px solid white;
  z-index: 10;
}

/* 购物车角标特殊样式（可选） */
.cart-badge {
  background: #ff4757;
}

/* 消息角标特殊样式（可选） */
.msg-badge {
  background: #1e90ff;
}

/* 大数字角标样式 */
.tab-badge[data-count="99+"] {
  padding: 0 3px;
  font-size: 8px;
}

/* 图片放大CSS - 优化层级+交互，避免遮挡 */
.maximg-box {
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.maximg-colse {
  position: absolute;
  right: 20px;
  top: 20px;
  width: 30px;
  height: 30px;
  z-index: 99999;
  color: #fff;
  cursor: pointer;
}

.maximg-content {
  width: 90%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.maximg-btn {
  width: 30px;
  height: 30px;
  cursor: pointer;
  position: relative;
  z-index: 99999;
  color: #fff;
}

.maximg-img {
  width: 80%;
  height: auto;
  max-height: 90vh;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

/* 优惠券提示条样式 */
.coupon-bar {
  position: fixed;
  bottom: 60px;
  /* 位于 TabBar 上方 */
  left: 0;
  right: 0;
  background-color: #FFE3E8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  z-index: 999;
  height: 42px;
  box-sizing: border-box;
}

.coupon-bar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.coupon-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.coupon-icon svg {
  width: 20px;
  height: 20px;
}

.coupon-text {
  flex: 1;
}

.coupon-desc {
  font-size: 14px;
  line-height: 1.4;
}

.coupon-bar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.coupon-use-btn {
  background-color: #E60C0B;
  color: white;
  border: none;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.coupon-use-btn:hover {
  opacity: 0.9;
}

.coupon-close-btn {
  background-color: #C85370;
  color: white;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.2s;
  line-height: 1;
}

.coupon-close-btn:hover {
  opacity: 0.8;
}

/* 响应式适配 - 小屏幕 */
@media (max-width: 375px) {
  .coupon-bar {
    padding: 10px 12px;
  }

  .coupon-desc {
    font-size: 12px;
  }

  .coupon-use-btn {
    padding: 5px 12px;
    font-size: 12px;
  }

  .coupon-close-btn {
    width: 22px;
    height: 22px;
    font-size: 16px;
  }
}

/* 响应式适配 - 大屏幕 */
@media (min-width: 768px) {
  .coupon-bar {
    max-width: 768px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    width: 100%;
  }
}