/* ============ 首页 - 顶部 Hero ============ */
.home-hero {
  position: relative;
  padding: 6px 14px 0;
  background: transparent;
}
/* 红色背景延伸到轮播图中部结束 */
.home-hero::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 80px; /* 轮播高 160px，红底停在中线 */
  background: linear-gradient(180deg, #E63946 0%, #C8161D 100%);
  border-radius: 0 0 22px 22px;
  z-index: 0;
  pointer-events: none;
}
.home-hero-inner { position: relative; z-index: 1; }

.home-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  margin-top: 4px;
}
.home-brand {
  flex-shrink: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}
.home-search {
  flex: 1;
  min-width: 0;
  height: 36px;
  background: #fff !important;
  padding: 3px 3px 3px 14px !important;
  border-radius: 18px !important;
  border: 1.5px solid var(--primary) !important;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.home-search-ph {
  color: var(--text-4);
  flex: 1;
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-search-btn {
  flex-shrink: 0;
  height: 30px;
  padding: 0 16px;
  border: none;
  border-radius: 15px;
  background: linear-gradient(135deg, #FF4A55, #C8161D);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  line-height: 30px;
}
.home-search-btn:active { opacity: 0.9; }
.home-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.home-action-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
}
.home-action-btn:active { opacity: 0.75; }

/* ============ 轮播图 ============ */
.banner-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  height: 160px;
  touch-action: pan-y;
  z-index: 1;
  box-shadow:
    0 10px 28px rgba(60, 5, 8, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}
.banner-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}
.banner-track.is-dragging {
  transition: none;
  cursor: grabbing;
}
.banner-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}
.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}
.banner-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}
.banner-text {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 72%;
  pointer-events: none;
}
.banner-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  color: #fff;
  background: var(--primary);
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  border: 1px solid var(--primary);
}
.banner-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 6px;
  line-height: 1.25;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.banner-subtitle {
  font-size: 12px;
  opacity: 0.92;
  letter-spacing: 0.3px;
}
.banner-dots {
  position: absolute;
  bottom: 10px;
  right: 14px;
  display: flex;
  gap: 5px;
  z-index: 2;
}
.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s;
  cursor: pointer;
}
.banner-dot.active {
  width: 18px;
  border-radius: 3px;
  background: #fff;
}

/* ============ 公告跑马灯（现代胶囊） ============ */
.marquee {
  position: relative;
  margin: 14px 14px 6px;
  height: 36px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 18px;
  padding: 0 14px 0 6px;
  overflow: hidden;
  font-size: 12px;
  color: var(--text-2);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.05),
    0 0 0 1px var(--border);
}
.marquee-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  margin-right: 10px;
}
.marquee-track {
  flex: 1;
  height: 100%;
  overflow: hidden;
  position: relative;
}
.marquee-item {
  height: 36px;
  line-height: 36px;
  animation: marquee-up 12s infinite;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.2px;
}
@keyframes marquee-up {
  0%, 18% { transform: translateY(0); }
  20%, 38% { transform: translateY(-100%); }
  40%, 58% { transform: translateY(-200%); }
  60%, 78% { transform: translateY(-300%); }
  80%, 98% { transform: translateY(-400%); }
  100% { transform: translateY(-500%); }
}

/* ============ 首页双馆入口 ============ */
.home-gate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px 4px;
}
.home-gate-card {
  position: relative;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px 0 16px;
  cursor: pointer;
  background:
    linear-gradient(155deg, #E84A52 0%, var(--primary) 42%, var(--primary-dark) 100%);
  box-shadow:
    0 4px 12px rgba(200, 22, 29, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s;
}
.home-gate-card:active { transform: scale(0.97); }
.home-gate-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.18), transparent 42%);
  pointer-events: none;
}
.home-gate-card::after {
  content: '';
  position: absolute;
  right: -28%;
  bottom: -42%;
  width: 150%;
  height: 150%;
  background: repeating-radial-gradient(
    circle at 100% 100%,
    rgba(255, 255, 255, 0) 0 11px,
    rgba(255, 255, 255, 0.07) 11px 12px
  );
  pointer-events: none;
}
.home-gate-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.home-gate-icon {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.18));
}
.home-gate-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}
.home-gate-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  white-space: nowrap;
}
.home-gate-line {
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, #FFE9A8 0%, #E8C36A 55%, #A67C00 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* 首页服务亮点标签 */
.home-feature-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 6px;
}
.home-feature-tag {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: #FFF5F5;
  border: 1px solid var(--primary);
  color: var(--primary);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  box-sizing: border-box;
}
.home-feature-tag:active {
  opacity: 0.85;
  transform: scale(0.97);
}
.home-feature-tag-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--primary);
}
.home-feature-tag-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.home-feature-tag-text {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: var(--primary);
}

/* ============ 金刚区（单行横滑）============ */
.grid-section {
  padding: 14px 0 4px;
}
.grid-section .scroll-x.grid-scroll {
  padding: 4px 12px 12px;
  gap: 16px;
  scroll-snap-type: none;
}
.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  position: relative;
  flex-shrink: 0;
  width: 64px;
  scroll-snap-align: none;
}
.grid-item:first-child { margin-left: 2px; }
.grid-item:last-child { margin-right: 2px; }
.grid-item:active { transform: scale(0.92); }
.grid-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--ic-fg, var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s;
  position: relative;
  background: linear-gradient(160deg, var(--ic-bg1, #FFE8E8) 0%, var(--ic-bg2, #FFD0D0) 100%);
}
.grid-icon svg {
  display: block;
  color: inherit;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}
.grid-item:active .grid-icon { transform: scale(0.94); }
.grid-item span {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.3px;
}

/* ============ section 标题（含 SVG）============ */
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.3px;
}
.section-title::before { display: none; }
.section-title svg,
.section-more svg,
.section-tabs svg {
  vertical-align: middle;
}
.section-title-gold { color: var(--text-1); }

/* ============ 首页筛选：热门省份 + 品类（地方特产馆上方） ============ */
.home-filter {
  padding: 8px 14px 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-filter-panel {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.home-filter-provinces {
  padding: 10px 0;
}
.home-filter-chips {
  display: flex;
  gap: 8px;
  padding: 0 12px;
  overflow-x: auto;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
}
.home-filter-chips::-webkit-scrollbar { display: none; }
.home-filter-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-1);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.home-filter-chip:active { opacity: 0.85; }
.home-filter-chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 600;
}

.home-filter-cats {
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 12px 8px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-filter-cats::-webkit-scrollbar { display: none; }
.home-filter-cat {
  flex: 0 0 auto;
  min-width: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #666666;
  transition: color 0.15s;
}
.home-filter-cat:active { opacity: 0.85; }
.home-filter-cat-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}
.home-filter-cat-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.home-filter-cat-name {
  font-size: 11px;
  line-height: 1;
  color: inherit;
  white-space: nowrap;
  position: relative;
  padding-bottom: 6px;
}
.home-filter-cat-name::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 3px;
  margin-left: -8px;
  border-radius: 2px;
  background: transparent;
  transition: background 0.15s;
}
.home-filter-cat.active {
  color: var(--primary);
  font-weight: 600;
}
.home-filter-cat.active .home-filter-cat-name::after {
  background: var(--primary);
}

.home-filter-prods {
  padding: 0 10px 12px;
}
.home-filter-prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.home-filter-prod-empty {
  padding: 24px 12px;
  text-align: center;
  color: var(--text-4);
  font-size: 13px;
}

/* ============ 各省特产馆 section ============ */
.pav-cn-section {
  background:
    linear-gradient(180deg, #FFF1F2 0%, #FFFFFF 70%);
  border-radius: 18px;
  box-shadow:
    0 4px 20px rgba(200, 22, 29, 0.06),
    inset 0 0 0 1px rgba(200, 22, 29, 0.06);
}
.pav-cn-section .section-head { padding: 16px 20px 4px; }
.pav-cn-section .section-title { font-size: 17px; font-weight: 800; }
.pav-cn-section .section-more {
  background: var(--primary-light);
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 11px;
  color: var(--primary);
  font-weight: 500;
}
.pav-cn-section .scroll-x.pav-cn-inner {
  padding: 12px 0 16px;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  max-width: 100%;
  /* 关闭强制吸附，避免首卡被吸到左边贴边 */
  scroll-snap-type: none;
}
.pav-cn-section .pav-card-cn {
  scroll-snap-align: none;
}
.pav-cn-section .pav-card-cn:first-child {
  margin-left: 20px;
}
.pav-cn-section .pav-card-cn:last-child {
  margin-right: 20px;
}

/* ============ 首页 - 省份馆横滑卡片（图下文字风）============ */
.pav-card-cn {
  position: relative;
  width: 122px;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  transition: transform 0.18s;
}
.pav-card-cn:active { transform: scale(0.96); }
.pav-card-banner {
  position: relative;
  width: 100%;
  height: 132px;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
.pav-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  z-index: 1;
}
.pav-card-cn:active .pav-card-bg { transform: scale(1.06); }
/* 图片下方文字 */
.pav-card-info {
  margin-top: 8px;
  padding: 0 2px;
}
.pav-card-cn-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
  letter-spacing: 0.3px;
}
.pav-card-cn-scenery {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 500;
}
.pav-card-cn-scenery svg { color: var(--primary); flex-shrink: 0; }
.pav-card-cn-scenery-empty { color: var(--text-3); }
.pav-card-cn-scenery-empty svg { color: var(--text-3); }
.pav-card-cn-feature-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  box-shadow: 0 3px 8px rgba(200, 22, 29, 0.4);
}

/* ============ 首页 - 全球馆 2列网格卡片 ============ */
.pav-global-section .section-title::before { display: none; }
.pav-global-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  padding: 0 12px;
}
.pav-card-global2 {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px var(--border);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}
.pav-card-global2:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.pav-global2-banner {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: linear-gradient(135deg, #2A2A2D, #4A4A4D);
}
.pav-global2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  z-index: 1;
}
.pav-card-global2:active .pav-global2-bg { transform: scale(1.06); }
.pav-global2-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.5) 100%);
}
.pav-global2-flag {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 4;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  line-height: 0;
}
.pav-global2-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pav-global2-top {
  position: absolute;
  left: 12px;
  bottom: 10px;
  z-index: 3;
  color: #fff;
}
.pav-global2-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.3px;
}
.pav-global2-en {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.pav-global2-info {
  position: relative;
  padding: 11px 12px 12px;
  background: #fff;
}
.pav-global2-scenery {
  font-size: 11px;
  color: var(--text-2);
  margin-bottom: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 500;
}
.pav-global2-scenery svg { color: var(--primary); flex-shrink: 0; }
.pav-global2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pav-global2-tag {
  font-size: 10px;
  background: var(--bg-gray);
  color: var(--text-2);
  padding: 2px 8px;
  border-radius: 8px;
  line-height: 1.4;
  font-weight: 500;
}

/* ============ 推荐店铺 mini ============ */
.shop-mini {
  width: 84px;
  cursor: pointer;
  text-align: center;
  position: relative;
}
.shop-mini .logo {
  position: relative;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--logo-c1, #FFEDEE), var(--logo-c2, #FFD6D8));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  color: var(--primary);
  box-shadow:
    0 6px 16px rgba(200, 22, 29, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.shop-mini .logo svg {
  display: block;
  flex-shrink: 0;
  color: inherit;
}
.shop-mini .level-chip {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(200, 22, 29, 0.3);
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-mini .name {
  font-size: 11px;
  color: var(--text-1);
  font-weight: 600;
  margin-bottom: 2px;
  margin-top: 5px;
  letter-spacing: 0.2px;
}
.shop-mini .follow {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 500;
}

/* ============ section tabs（首页热门切换）============ */
.section-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-gray);
  padding: 3px;
  border-radius: 18px;
}
.section-tab {
  font-size: 12px;
  color: var(--text-3);
  padding: 5px 12px;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.3px;
  border-radius: 15px;
  font-weight: 500;
  transition: all 0.2s;
}
.section-tab.active {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.home-waterfall { padding: 0 12px 12px; }

/* ============ 特产馆浏览（侧栏 + 横幅 + 分类 + 双列） ============ */
.app-view > .page:has(.pav-browse) {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pav-browse {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #F5F5F5;
}
.pav-browse-header {
  flex-shrink: 0;
  background: linear-gradient(180deg, #E63946 0%, var(--primary) 100%);
  padding: 6px 14px 14px;
}
.pav-browse-title {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  line-height: 1.3;
}
.pav-browse-search {
  height: 36px;
  background: #fff !important;
  padding: 0 14px !important;
  border-radius: 18px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pav-browse-search-icon {
  display: flex;
  color: var(--text-4);
  flex-shrink: 0;
}
.pav-browse-search-icon svg {
  width: 16px;
  height: 16px;
}
.pav-browse-search-ph {
  color: var(--text-4);
  flex: 1;
  min-width: 0;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pav-browse-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.pav-side {
  width: 78px;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  padding: 10px 0 24px;
  -webkit-overflow-scrolling: touch;
}
.pav-side::-webkit-scrollbar { width: 0; }
.pav-side-item {
  margin: 3px 8px;
  padding: 11px 4px;
  font-size: 13px;
  color: var(--text-1);
  text-align: center;
  border-radius: 20px;
  cursor: pointer;
  line-height: 1.25;
  transition: background 0.15s, color 0.15s;
}
.pav-side-item:active { opacity: 0.85; }
.pav-side-item.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.pav-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #F5F5F5;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 16px;
}
.pav-main::-webkit-scrollbar { width: 0; }

.pav-banner {
  margin: 10px 10px 0;
  height: 96px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.pav-banner-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pav-banner-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(200, 22, 29, 0.78) 0%, rgba(200, 22, 29, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%);
}
.pav-banner-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 16px;
}
.pav-banner-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.pav-banner-desc {
  font-size: 12px;
  opacity: 0.95;
  line-height: 1.4;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pav-cats {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 10px 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: none;
  max-width: 100%;
  min-width: 0;
}
.pav-cats::-webkit-scrollbar { display: none; }
.pav-cat-chip {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-1);
  background: transparent;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  line-height: 1.3;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.pav-cat-chip:active { opacity: 0.85; }
.pav-cat-chip.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.pav-prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px 10px 20px;
}
.pav-prod-empty {
  grid-column: 1 / -1;
  padding: 40px 12px;
  text-align: center;
  color: var(--text-4);
  font-size: 13px;
}

/* 商品卡：图上、名称在下、价+购物车 */
.pav-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px 10px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  position: relative;
}
.pav-card:active { transform: scale(0.98); }
.pav-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: #F5F5F5;
  margin-bottom: 8px;
}
.pav-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pav-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
  min-height: 36px;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pav-card-meta {
  font-size: 11px;
  color: var(--text-4);
  margin-bottom: 6px;
  line-height: 1.3;
}
.pav-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.pav-card-price {
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
}
.pav-card-price .symbol { font-size: 12px; margin-right: 1px; }
.pav-card-price .int { font-size: 18px; }
.pav-card-price .dec { font-size: 12px; }
.pav-card-cart {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(200, 22, 29, 0.35);
}
.pav-card-cart svg {
  width: 15px;
  height: 15px;
}
.pav-card-cart:active { transform: scale(0.9); }

/* 旧总览 Hero（保留，避免误伤） */
.pav-cn-hero {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #C8161D 0%, #8B0000 100%);
  padding: 0 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pav-cn-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.14), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.1), transparent 50%);
}
.pav-cn-hero-content {
  position: relative;
  color: #fff;
  z-index: 1;
}
.pav-cn-hero-content .title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.pav-cn-hero-content .subtitle {
  font-size: 12px;
  opacity: 0.92;
  margin-bottom: 14px;
}
.pav-cn-search {
  background: rgba(255, 255, 255, 0.95) !important;
  height: 36px;
  padding: 6px 14px;
}
.pav-cn-search .icon-search { color: var(--text-3); margin-right: 6px; }

/* ============ 大区列表 ============ */
.pav-cn-regions, .pav-gb-regions { padding: 8px 0; }
.region-block { padding: 8px 0; }
.region-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
}
.region-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.region-name::before {
  content: '';
  width: 3px;
  height: 14px;
  background: var(--primary);
  border-radius: 2px;
}
.region-name-gold::before { background: var(--primary); }
.region-count {
  font-size: 11px;
  color: var(--text-3);
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 12px;
}
.region-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* 省份卡片（白底 + 顶部主色条）*/
.province-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.province-card:active { transform: scale(0.96); }
.province-color-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #E6404A);
}
.province-card-body {
  padding: 10px 12px 12px;
}
.province-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.2;
}
.province-tag {
  font-size: 10px;
  color: var(--text-3);
  margin-top: 4px;
  margin-bottom: 8px;
}
.province-meta {
  font-size: 10px;
  color: var(--text-4);
}

/* ============ 全球馆浏览（参考图：顶栏 + 国旗横滑 + 双列横卡） ============ */
.app-view > .page:has(.gb-browse) {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gb-browse {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--primary);
  color: var(--text-1);
}
.gb-browse-header {
  flex-shrink: 0;
  padding: 6px 16px 18px;
  background: linear-gradient(180deg, #E63946 0%, var(--primary) 100%);
}
.gb-browse-title {
  text-align: center;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}
.gb-browse-search {
  height: 40px;
  background: #fff;
  border-radius: 20px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.gb-browse-search-icon {
  display: flex;
  color: #999;
  flex-shrink: 0;
}
.gb-browse-search-icon svg {
  width: 16px;
  height: 16px;
}
.gb-browse-search-ph {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gb-browse-search-loc {
  display: flex;
  color: var(--primary);
  flex-shrink: 0;
}
.gb-browse-search-loc svg {
  width: 16px;
  height: 16px;
}

.gb-browse-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border-radius: 16px 16px 0 0;
  margin-top: -4px;
  padding: 16px 0 20px;
  -webkit-overflow-scrolling: touch;
}
.gb-browse-panel::-webkit-scrollbar { width: 0; }

.gb-country-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 12px;
  gap: 8px;
}
.gb-country-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}
.gb-country-current {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}
.gb-country-current svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.gb-flags {
  display: flex;
  gap: 14px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
}
.gb-flags::-webkit-scrollbar { display: none; }
.gb-flag-item {
  flex-shrink: 0;
  width: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.gb-flag-item:active { opacity: 0.85; }
.gb-flag-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #F5F5F5;
  border: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.gb-flag-item.active .gb-flag-circle {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(200, 22, 29, 0.15);
}
.gb-flag-all {
  color: var(--primary);
  background: #FFF0F0;
}
.gb-flag-img,
.gb-flag-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gb-flag-name {
  font-size: 11px;
  color: var(--text-2);
  white-space: nowrap;
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.gb-flag-item.active .gb-flag-name {
  color: var(--primary);
  font-weight: 600;
}

.gb-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 4px 16px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  max-width: 100%;
  min-width: 0;
}
.gb-chips::-webkit-scrollbar { display: none; }
.gb-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-1);
  background: #F5F5F5;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}
.gb-chip:active { opacity: 0.85; }
.gb-chip.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  border-color: var(--primary);
}

.gb-sorts {
  display: flex;
  gap: 8px;
  padding: 0 16px 14px;
  overflow-x: auto;
  scroll-snap-type: none;
  -webkit-overflow-scrolling: touch;
}
.gb-sorts::-webkit-scrollbar { display: none; }
.gb-sort {
  flex-shrink: 0;
  padding: 5px 12px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--primary);
  background: #fff;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--primary);
}
.gb-sort:active { opacity: 0.85; }
.gb-sort.active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.gb-prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 12px 24px;
}
.gb-prod-empty {
  grid-column: 1 / -1;
  padding: 48px 12px;
  text-align: center;
  color: var(--text-4);
  font-size: 13px;
}

/* ============ 旧全球馆总览 Hero（详情仍可用周边样式） ============ */
.pav-gb-hero {
  position: relative;
  height: 180px;
  background: linear-gradient(135deg, #C8161D 0%, #8B0000 100%);
  padding: 0 20px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.pav-gb-hero-decorate {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.18);
}
.pav-gb-hero-content {
  position: relative;
  color: #fff;
  z-index: 1;
}
.pav-gb-hero-content .title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #fff;
}
.pav-gb-hero-content .subtitle {
  font-size: 12px;
  opacity: 0.85;
  margin-bottom: 14px;
}
.pav-gb-hero-content .badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.pav-gb-hero-content .badge-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  backdrop-filter: blur(6px);
}
.pav-gb-hero-content .badge-item svg { color: #fff; }

/* 国家馆卡片（白底 + 顶部金色条）*/
.country-card {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.country-card:active { transform: scale(0.96); }
.country-color-bar {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}
.country-card-body {
  padding: 10px 12px 12px;
}
.country-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.country-head .flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  line-height: 0;
}
.country-head .flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.country-head .country-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
}
.country-tag {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 6px;
}
.country-meta {
  font-size: 10px;
  color: var(--text-4);
}

/* ============ 馆详情页 Hero（统一红/金）============ */
.pav-detail-hero {
  position: relative;
  min-height: 200px;
  padding: 56px 20px 28px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #C8161D 0%, #8B0000 100%);
}
.pav-detail-hero-decorate {
  position: absolute;
  right: -20px;
  top: 30px;
  opacity: 0.16;
}
.pav-detail-hero-decorate .big-char,
.pav-detail-hero-decorate .big-flag {
  font-size: 180px;
  line-height: 1;
  font-weight: 900;
  color: #fff;
}
.pav-detail-hero-decorate .big-flag {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0.85;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.pav-detail-hero-decorate .big-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pav-detail-hero-content {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  margin-bottom: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.pav-detail-hero-content .name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 1px;
}
.pav-detail-hero-content .desc {
  font-size: 12px;
  opacity: 0.92;
  margin-bottom: 12px;
  line-height: 1.5;
}
.pav-detail-hero-content .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pav-detail-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(4px);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
}

/* 全球馆详情 hero 统一为红色调（继承 .pav-detail-hero） */
.pav-gb-detail-hero {
  background: linear-gradient(135deg, #C8161D 0%, #8B0000 100%);
}
.pav-gb-detail-hero .pav-detail-hero-content .name {
  color: #fff;
}
.pav-gb-detail-hero .hero-eyebrow {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.pav-gb-detail-hero .pav-detail-hero-decorate { color: rgba(255, 255, 255, 0.16); }

/* 馆详情 - 状态栏深色 */
.pav-detail-intro {
  margin-top: -16px;
  position: relative;
  z-index: 2;
  padding: 14px;
}
.pav-detail-intro-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
}
.pav-detail-intro-title svg { color: var(--text-1); }
.pav-detail-intro-text {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.pav-detail-stats {
  display: flex;
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 12px 0;
}
.pav-detail-stats .stat {
  flex: 1;
  text-align: center;
  border-right: 0.5px solid var(--border);
}
.pav-detail-stats .stat:last-child { border-right: none; }
.pav-detail-stats .num {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.pav-detail-stats .lbl {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ============ nav-bar 上的图标按钮 ============ */
.nav-icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-1);
  transition: background 0.15s;
}
.nav-icon-btn:hover { background: rgba(0, 0, 0, 0.05); }
.nav-bar.dark .nav-icon-btn { color: #fff; }

/* ============ 商品详情页 ============ */
.prod-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 280px;
  background: var(--bg-gray);
  overflow: hidden;
}
.prod-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.prod-gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.prod-gallery-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
}
.prod-gallery-dots .dot.active { width: 18px; border-radius: 3px; background: #fff; }
.prod-gallery-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.prod-price-card {
  background: linear-gradient(135deg, #C8161D, #E6404A);
  padding: 14px 16px;
  color: #fff;
}
.prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.prod-price {
  font-weight: 700;
  font-size: 30px;
  font-family: "DIN Alternate", "Helvetica Neue", sans-serif;
  line-height: 1;
}
.prod-price .symbol { font-size: 16px; margin-right: 2px; }
.prod-price .dec { font-size: 18px; }
.prod-price-row .price-original { color: rgba(255, 255, 255, 0.75); }
.prod-tags-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.prod-tag {
  font-size: 10px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  border: 0.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}
.prod-sales {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  margin-left: auto;
}

.prod-title-card {
  background: #fff;
  padding: 14px;
}
.prod-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.4;
  margin-bottom: 8px;
}
.prod-title-meta {
  font-size: 12px;
  color: var(--text-3);
  display: flex;
  gap: 4px;
  align-items: center;
}

.prod-origin-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px !important;
  cursor: pointer;
}
.prod-origin-icon {
  color: var(--primary);
  display: inline-flex;
}
.prod-origin-info { flex: 1; min-width: 0; }
.prod-origin-label { font-size: 11px; color: var(--text-3); }
.prod-origin-value {
  font-size: 14px;
  color: var(--text-1);
  font-weight: 500;
  margin-top: 2px;
}
.prod-origin-arrow { color: var(--text-4); }

.prod-spec-row {
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}
.prod-spec-label {
  font-size: 14px;
  color: var(--text-2);
  flex-shrink: 0;
}
.prod-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.prod-spec-chip {
  padding: 6px 14px;
  font-size: 12px;
  background: var(--bg-gray);
  color: var(--text-2);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.prod-spec-chip.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.prod-desc-card { padding-bottom: 14px; }
.prod-desc-content {
  padding: 0 14px;
}
.prod-desc-content p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 12px;
}
.prod-desc-attrs {
  background: var(--bg-gray);
  border-radius: 8px;
  padding: 4px 12px;
  margin-bottom: 14px;
}
.attr-row {
  display: flex;
  font-size: 12px;
  padding: 7px 0;
  border-bottom: 0.5px dashed var(--border);
}
.attr-row:last-child { border-bottom: none; }
.attr-row .lbl { width: 60px; color: var(--text-3); flex-shrink: 0; }
.attr-row .val { color: var(--text-1); flex: 1; }
.prod-detail-img img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 8px;
}

.prod-shop-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px !important;
  cursor: pointer;
}
.prod-shop-card .logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, #FFEDEE, #FFD6D8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.prod-shop-card .logo svg {
  display: block;
  color: inherit;
}
.prod-shop-card .info { flex: 1; min-width: 0; }
.prod-shop-card .name { font-size: 14px; font-weight: 600; }
.prod-shop-card .meta { font-size: 11px; color: var(--text-3); margin-top: 2px; }

.app-view:has(.prod-page),
.app-view:has(.cart-page) {
  overflow: hidden;
}

/* ============ 商品详情页底栏贴底 ============ */
.app-view > .page.page-detail:has(.prod-page) {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prod-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.prod-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.prod-scroll::-webkit-scrollbar { width: 0; }

.prod-bottom-bar {
  flex-shrink: 0;
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-top: 0.5px solid var(--border);
  border-radius: 0;
  padding: 8px 12px calc(8px + var(--home-indicator-h));
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}
.prod-bottom-icons {
  display: flex;
  gap: 2px;
}
.prod-bottom-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--text-2);
}
.prod-bottom-icon .icon { display: inline-flex; }
.prod-bottom-icon .lbl { font-size: 9px; color: var(--text-3); }
.prod-bottom-icon .icon[data-active="1"] { color: var(--primary); }
.prod-bottom-btns {
  flex: 1;
  display: flex;
  gap: 6px;
}
.prod-bottom-cart, .prod-bottom-buy {
  flex: 1;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 999px;
}

/* ============ 店铺详情页 ============ */
.shop-hero {
  position: relative;
  padding: 60px 16px 20px;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(135deg, #C8161D 0%, #8B0000 100%);
}
.shop-hero-decorate {
  position: absolute;
  right: -30px;
  top: 40px;
  opacity: 0.18;
  line-height: 1;
  pointer-events: none;
}
.shop-hero-decorate svg {
  display: block;
}
.shop-hero-content {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 1;
}
.shop-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: var(--primary);
}
.shop-logo svg {
  display: block;
  color: inherit;
}
.shop-info { flex: 1; min-width: 0; }
.shop-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}
.shop-meta {
  font-size: 11px;
  opacity: 0.9;
  margin-bottom: 6px;
}
.shop-level {
  display: flex;
  align-items: center;
  gap: 6px;
}
.shop-level .tag { background: rgba(255, 255, 255, 0.2); color: #fff; }
.shop-follow { font-size: 11px; opacity: 0.9; }

.shop-stats {
  display: flex;
  margin-top: -10px;
  position: relative;
  z-index: 2;
  padding: 12px 0;
}
.shop-stats .stat {
  flex: 1;
  text-align: center;
  border-right: 0.5px solid var(--border);
}
.shop-stats .stat:last-child { border-right: none; }
.shop-stats .num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}
.shop-stats .lbl {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ============ 购物车 ============ */
/* 购物车页：外层不滚动，结算条贴底（底部导航上方） */
.app-view:has(.cart-page),
.app-view:has(.cart-bottom-bar) {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.app-view:has(.cart-page) > .page,
.app-view:has(.cart-bottom-bar) > .page {
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.cart-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.cart-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 72px; /* 给贴底结算条留空 */
}
.cart-scroll::-webkit-scrollbar { width: 0; }

.cart-list {
  padding: 8px 12px;
}
.cart-group {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cart-group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--border);
}
.cart-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--text-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  background: #fff;
  color: transparent;
  transition: all 0.15s;
}
.cart-check svg { color: #fff; }
.cart-check.checked {
  background: var(--primary);
  border-color: var(--primary);
}
.cart-check:not(.checked) svg { visibility: hidden; }
.cart-shop-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(145deg, #FFEDEE, #FFD6D8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--primary);
}
.cart-shop-logo svg {
  display: block;
  color: inherit;
}
.cart-shop-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  flex: 1;
}
.cart-shop-arrow { color: var(--text-4); display: inline-flex; }

.cart-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  position: relative;
  border-top: 0.5px solid var(--bg-gray);
}
.cart-row:first-of-type { border-top: none; }
.cart-row-img {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-gray);
  flex-shrink: 0;
  cursor: pointer;
}
.cart-row-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-row-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-row-name {
  font-size: 13px;
  color: var(--text-1);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}
.cart-row-spec {
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-gray);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
}
.cart-row-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
}
.cart-row-del {
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-gray);
  padding: 2px 8px;
  border-radius: 10px;
  cursor: pointer;
  display: none;
}
.edit-mode .cart-row-del { display: block; }

.cart-bottom-bar {
  flex-shrink: 0;
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-top: 0.5px solid var(--border);
  border-radius: 0;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
  z-index: 90;
}
.cart-total {
  flex: 1;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  margin-right: 8px;
}
.cart-checkout-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 999px;
}

/* ============ 我的页面 ============ */
.profile-hero {
  position: relative;
  background: linear-gradient(135deg, #C8161D 0%, #8B0000 100%);
  padding: 16px 16px 0;
  color: #fff;
  overflow: hidden;
}
.profile-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.12), transparent 50%),
    radial-gradient(circle at 20% 90%, rgba(0, 0, 0, 0.08), transparent 50%);
}
.profile-user {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  object-fit: cover;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.profile-level {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-level-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
}
.profile-phone { font-size: 12px; opacity: 0.85; }
.profile-settings {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.profile-stats {
  position: relative;
  display: flex;
  padding: 16px 0;
}
.profile-stat {
  flex: 1;
  text-align: center;
}
.profile-stat .num {
  font-size: 16px;
  font-weight: 700;
}
.profile-stat .lbl {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 2px;
}

.profile-orders { padding-bottom: 8px; }
.profile-order-grid {
  display: flex;
  padding: 8px 12px 14px;
}
.profile-order-item {
  flex: 1;
  text-align: center;
  cursor: pointer;
}
.profile-order-icon {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 auto 4px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-order-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-size: 10px;
  line-height: 16px;
  font-weight: 700;
  border: 1.5px solid #fff;
  box-sizing: content-box;
}
.profile-order-name {
  font-size: 11px;
  color: var(--text-2);
}

.profile-apply-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px;
  padding: 14px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(200, 22, 29, 0.25);
}
.profile-apply-banner .apply-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.apply-content { flex: 1; min-width: 0; }
.apply-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}
.apply-sub { font-size: 11px; opacity: 0.95; }
.apply-arrow {
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.profile-wallet-grid {
  display: flex;
  padding: 8px 12px 14px;
}
.profile-wallet-item {
  flex: 1;
  text-align: center;
}
.profile-wallet-item .num {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}
.profile-wallet-item .lbl {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

.profile-list { padding: 4px 0; }
.profile-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 0.5px solid var(--bg-gray);
}
.profile-list-item:last-child { border-bottom: none; }
.profile-list-item:active { background: var(--bg-gray); }
.profile-list-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-gray);
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.profile-list-name {
  flex: 1;
  font-size: 14px;
  color: var(--text-1);
}
.profile-list-sub {
  font-size: 12px;
  color: var(--text-3);
}
.profile-list-arrow {
  color: var(--text-4);
  display: inline-flex;
}

/* ============ 搜索页 ============ */
.search-page { background: var(--bg-page); min-height: 100%; }
.search-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.search-input-box {
  background: var(--bg-gray);
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
}
.search-input-box input { font-size: 13px; }
.search-input-box .icon-search { color: var(--text-3); display: inline-flex; margin-right: 6px; }
.search-clear {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-4);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.search-cancel {
  font-size: 14px;
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
}
.search-section {
  margin: 12px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.search-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 8px;
}
.search-section-head .title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
}
.search-section-head .title svg { color: var(--text-1); }
.search-section-head .action {
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
}

.search-hot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}
.search-hot-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 12px;
  background: var(--bg-gray);
  border-radius: 16px;
  color: var(--text-2);
  cursor: pointer;
}
.search-hot-tag .rank {
  display: inline-flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  background: var(--text-4);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
}
.search-hot-tag .rank-1 { background: var(--primary-dark); }
.search-hot-tag .rank-2 { background: var(--primary); }
.search-hot-tag .rank-3 { background: #E6404A; }

.search-history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 14px;
}
.search-history-tag {
  padding: 5px 12px;
  font-size: 12px;
  background: var(--bg-gray);
  border-radius: 14px;
  color: var(--text-3);
  cursor: pointer;
}

.search-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 0 14px 14px;
}
.search-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.search-cat .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.search-cat .name { font-size: 11px; color: var(--text-2); }

.search-meta {
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-3);
}
.search-results-list {
  padding: 0 12px;
}
.search-results-list .product-row { margin-bottom: 8px; }

/* ============ 入驻申请页 ============ */
.apply-hero {
  position: relative;
  background: linear-gradient(135deg, #C8161D 0%, #8B0000 100%);
  padding: 28px 20px 24px;
  color: #fff;
  overflow: hidden;
}
.apply-hero-decorate {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.2);
}
.apply-hero-content { position: relative; z-index: 1; }
.apply-hero-content .title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.apply-hero-content .subtitle {
  font-size: 13px;
  opacity: 0.92;
  margin-bottom: 12px;
}
.apply-hero-content .badges {
  display: flex;
  gap: 6px;
}
.apply-hero-content .badge {
  font-size: 11px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.apply-steps {
  display: flex;
  padding: 0 12px 14px;
}
.apply-step {
  flex: 1;
  text-align: center;
  position: relative;
}
.apply-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  right: -12px;
  width: 24px;
  height: 1.5px;
  background: var(--border);
}
.step-num {
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  z-index: 1;
}
.step-title { font-size: 12px; font-weight: 600; color: var(--text-1); }
.step-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }

.apply-form { padding: 0 14px 4px; }
.form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-bottom: 0.5px solid var(--bg-gray);
}
.form-item:last-child { border-bottom: none; }
.form-item label {
  font-size: 13px;
  color: var(--text-2);
}
.form-item input,
.form-item select {
  background: var(--bg-gray);
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-1);
}
.form-item input::placeholder { color: var(--text-4); }
.form-item select { color: var(--text-4); }

.apply-upload {
  display: flex;
  align-items: center;
  gap: 12px;
}
.upload-box {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: var(--bg-gray);
  border: 1.5px dashed var(--text-4);
  color: var(--text-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.upload-tip { font-size: 12px; color: var(--text-3); }

.apply-benefits { padding: 0 14px 14px; }
.apply-benefit {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 0.5px dashed var(--bg-gray);
}
.apply-benefit:last-child { border-bottom: none; }
.benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.benefit-body { flex: 1; }
.benefit-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 2px;
}
.benefit-desc { font-size: 11px; color: var(--text-3); line-height: 1.5; }

/* 移除模拟状态栏后：红色首屏头部向上延伸覆盖刘海安全区 */
.home-hero,
.pav-browse-header,
.gb-browse-header {
  margin-top: calc(-1 * var(--safe-top));
  padding-top: calc(var(--safe-top) + 6px);
}
.profile-hero {
  margin-top: calc(-1 * var(--safe-top));
  padding-top: calc(var(--safe-top) + 16px);
}
