/* ============================================================
   block-vmall.css — 华为商城视觉规范（装修块通用样式）
   视觉五要素：产品图品质 / 三级间距 / 克制配色 / 字体层级 / 无框hover
   间距体系：楼层间距 30-40px，卡片间 14-16px，卡内 8-12px

   V2.0（切片2）：引入 --vmall-* 变量体系（供模板市场换肤）
   - 渐变/动效遵循「浏览器兼容降级」：先写纯色兜底，再写渐变覆盖；
     不支持渐变时回退纯色，绝不白屏/排版错乱。
   ============================================================ */

/* ── 变量体系（切片2：模板换肤锚点） ── */
:root {
    --vmall-primary: #1a1a2e;          /* 主文字色 */
    --vmall-price: #e4393c;            /* 价格/强调色（华为红） */
    --vmall-price-deep: #c62828;       /* 价格深色（渐变终点） */
    --vmall-sub: #94a3b8;              /* 次级文字 */
    --vmall-bg: #f5f6fa;               /* 楼层交替底色（浅灰） */
    --vmall-bg-tint: #faf7f2;          /* 楼层淡彩底色 */
    --vmall-radius: 10px;              /* 卡片圆角 */
    --vmall-gap: 14px;                 /* 卡片间距 */
    --vmall-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    --vmall-floor-tint: rgba(228, 57, 60, .03); /* 楼层顶部淡彩 */
    --vmall-promo-grad-1: #e4393c;     /* 促销条渐变起点（兜底同纯色） */
    --vmall-promo-grad-2: #b71c1c;     /* 促销条渐变终点 */
}

/* ── 楼层标题（22-24px 无装饰大字 + 更多链接） ── */
.vmall-section {
    padding: 0 12px;
    margin: 36px 0 18px;
}
.vmall-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 2px;
}
.vmall-section-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--vmall-primary);
    margin: 0;
    letter-spacing: .5px;
    line-height: 1.3;
}
.vmall-section-title::before {
    content: "";
    display: none;
}
.vmall-section-more {
    font-size: 13px;
    color: var(--vmall-sub);
    text-decoration: none;
    transition: color .2s;
}
.vmall-section-more:hover {
    color: var(--vmall-price);
}

/* ── 商品网格（卡片间 14px） ── */
.vmall-grid {
    display: grid;
    grid-template-columns: repeat(var(--vmall-cols, 4), 1fr);
    gap: 14px;
    padding: 0 12px;
}

/* ── 楼层首商品大图（华为风切片6：first_big 开关 → 首商品 2×2 跨行列） ──
   纯 grid 布局属性实现，无 :has()/backdrop-filter，旧浏览器直接降级为普通网格。 */
.vmall-grid--first-big {
    grid-auto-rows: minmax(0, 1fr);
}
.vmall-grid--first-big .vmall-card-first-big {
    grid-column: span 2;
    grid-row: span 2;
}
.vmall-grid--first-big .vmall-card-first-big .vmall-card-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
    padding-bottom: 0;
}
.vmall-grid--first-big .vmall-card-first-big .vmall-card-img img {
    height: 100%;
}
@media (max-width: 768px) {
    .vmall-grid--first-big .vmall-card-first-big .vmall-card-img {
        min-height: 180px;
    }
}

/* ── 商品卡（无框 + hover 上浮 3px + 柔和阴影） ── */
.vmall-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    position: relative;
    border: none;
    transition: transform .3s ease, box-shadow .3s ease;
}
.vmall-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.vmall-card-img {
    /* 8/4 兼容修复：aspect-ratio 在 iOS/旧 WebView 可能不生效导致容器塌陷图片压扁
       改用 padding-bottom:100% 兜底方形高度（老技术全兼容），img 改 absolute 填充 */
    position: relative;
    padding-bottom: 100%;
    background: #f8fafc;
    overflow: hidden;
}
.vmall-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
    display: block;
}
.vmall-card:hover .vmall-card-img img {
    transform: scale(1.04);
}
.vmall-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    max-width: 70%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vmall-card-body {
    padding: 12px 10px 14px;
}
.vmall-card-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--vmall-primary);
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.vmall-card-sub {
    font-size: 13px;
    color: var(--vmall-sub);
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.vmall-card-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--vmall-price);
    margin-top: 8px;
    line-height: 1.2;
}
.vmall-card-price small {
    font-size: 12px;
    font-weight: 400;
    color: var(--vmall-sub);
    margin-left: 4px;
}
.vmall-card-sales {
    font-size: 12px;
    color: var(--vmall-sub);
    margin-top: 4px;
}
.vmall-promo {
    display: inline-block;
    font-size: 11px;
    color: var(--vmall-price);
    border: 1px solid var(--vmall-price);
    border-radius: 2px;
    padding: 0 4px;
    margin-left: 6px;
    vertical-align: 2px;
    white-space: nowrap;
}
/* 秒杀专区：原价划线（批次 21 flash_sale 组件） */
.vmall-card-origin {
    font-size: 12px;
    font-weight: 400;
    color: var(--vmall-sub);
    text-decoration: line-through;
    margin-left: 6px;
}
.flash-sale-block .vmall-section-header {
    border-bottom: none;
    margin-bottom: 12px;
}
.flash-sale-block .vmall-section-more {
    font-size: 13px;
    opacity: .9;
}
.flash-sale-block .vmall-card {
    background: rgba(255,255,255,.96);
}
.flash-sale-block .vmall-card-name {
    color: #333;
}
/* 满减专区（批次 23 full_reduce 组件） */
.full-reduce-block { margin-bottom: 12px; }
.full-reduce-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.full-reduce-title { font-size: 18px; font-weight: 700; }
.full-reduce-link { font-size: 13px; opacity: .9; text-decoration: none; }
.full-reduce-list { display: flex; flex-direction: column; gap: 8px; }
.full-reduce-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,.96);
    color: #333;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
}
.full-reduce-tag {
    flex-shrink: 0;
    background: #ff4d4f;
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    padding: 2px 6px;
}
.full-reduce-info { flex: 1; font-weight: 600; }
.full-reduce-time { flex-shrink: 0; color: var(--vmall-sub); font-size: 12px; }
/* 领券中心（批次 24 coupon_collect 升级） */
.coupon-collect-block { padding: 12px; border-radius: 12px; margin-bottom: 12px; }
.coupon-collect-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 2px;
}
.coupon-card-mini {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 160px;
    background: linear-gradient(135deg, #fff7e6, #fff);
    border: 1px solid #ffd591;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.coupon-card-value { font-size: 18px; font-weight: 700; }
.coupon-card-name { font-size: 12px; color: var(--vmall-primary); margin: 4px 0; }
.coupon-card-condition { font-size: 11px; color: var(--vmall-sub); }
.coupon-card-time { font-size: 11px; color: var(--vmall-sub); }
.coupon-get-btn {
    margin-top: 8px;
    border: none;
    color: #fff;
    font-size: 12px;
    border-radius: 14px;
    padding: 5px 0;
    cursor: pointer;
}
.coupon-get-btn:disabled { opacity: .6; cursor: not-allowed; }
.coupon-collect-footer { text-align: right; margin-top: 8px; font-size: 12px; }
.coupon-collect-footer a { color: #fa8c16; text-decoration: none; }
/* 会员卡片（批次 25 member_card 组件） */
.member-card-block { margin-bottom: 12px; }
.member-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.member-card-title { font-size: 16px; font-weight: 700; }
.member-card-link { font-size: 12px; opacity: .9; text-decoration: none; }
.member-card-main { padding: 6px 0 10px; }
.member-card-level { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.member-card-points { font-size: 13px; opacity: .95; margin-bottom: 4px; }
.member-card-discount { font-size: 12px; opacity: .85; }
.member-card-join {
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 16px;
    padding: 6px 18px;
    text-decoration: none;
}
.member-card-levels {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.25);
    padding-top: 10px;
}
.member-card-level-item {
    font-size: 11px;
    background: rgba(255,255,255,.18);
    border-radius: 10px;
    padding: 3px 8px;
}
/* 公告栏（批次 27 announcement 组件） */
.announcement-block { border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.announcement-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.announcement-icon { font-size: 15px; }
.announcement-title { font-size: 14px; font-weight: 700; }
.announcement-list { display: flex; flex-direction: column; }
.announcement-item {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0,0,0,.08);
}
.announcement-item:last-child { border-bottom: none; padding-bottom: 0; }
.announcement-item-title { font-size: 13px; font-weight: 600; }
.announcement-item-content { font-size: 12px; opacity: .85; margin-top: 2px; }
.announcement-item-time { font-size: 11px; opacity: .6; margin-top: 2px; }
/* 客服入口（批次 29 service_card 组件） */
.service-card-block {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
.service-card-icon { font-size: 28px; flex-shrink: 0; }
.service-card-info { flex: 1; min-width: 0; }
.service-card-title { font-size: 15px; font-weight: 700; color: #333; }
.service-card-subtitle { font-size: 12px; color: #666; margin-top: 2px; }
.service-card-btn {
    flex-shrink: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 16px;
    padding: 7px 16px;
    text-decoration: none;
    white-space: nowrap;
}

/* ── H5 适配（楼层间距略收窄） ── */
@media (max-width: 767px) {
    .vmall-section { margin: 28px 0 14px; }
    .vmall-section-header { margin-bottom: 12px; }
    .vmall-section-title { font-size: 20px; }
    .vmall-grid { gap: 10px; padding: 0 10px; }
    .vmall-card-body { padding: 10px 8px 12px; }
    .vmall-card-name { font-size: 14px; }
    .vmall-card-sub { font-size: 12px; }
    .vmall-card-price { font-size: 16px; }
    /* 8/4 修复：手机端商品卡竖图被 cover 裁成方形（图片内压缩）→ 改 contain 完整显示 */
    .vmall-card-img { background: #f8fafc; }
    .vmall-card-img img { object-fit: contain; }
}

/* ============================================================
   切片2 新增：渐变 / 促销条 / 浏览器兼容降级
   降级原则：所有渐变先写纯色兜底 → 再写 linear-gradient 覆盖。
   不支持渐变的浏览器自动使用纯色，绝不白屏/排版错乱。
   ============================================================ */

/* ── 楼层淡彩渐变（顶部淡彩 → 底部白） ── */
.vmall-section--tint {
    background: #ffffff;
    background: linear-gradient(180deg, var(--vmall-floor-tint) 0%, #ffffff 140px);
    border-radius: var(--vmall-radius);
    padding-top: 18px;
    padding-bottom: 4px;
    margin-top: 40px;
}

/* ── 楼层交替底色（华为风切片4：偶数楼层浅灰底，奇数白底） ──
   仅用 background/border-radius/margin/padding 等基础属性，无降级风险；
   底色纯色（--vmall-bg: #f5f6fa），不依赖渐变，旧浏览器直接生效。 */
.vmall-section--floor-even {
    background: #f5f6fa;
    background: var(--vmall-bg);
    border-radius: var(--vmall-radius);
    padding-top: 18px;
    padding-bottom: 18px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* ── 促销条（华为式：渐变红底 + 白色大字 + 强调） ── */
.vmall-promo-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 36px 12px 0;
    padding: 16px 20px;
    border-radius: 12px;
    color: #fff;
    background: var(--vmall-promo-grad-1);
    background: linear-gradient(90deg, var(--vmall-promo-grad-1) 0%, var(--vmall-promo-grad-2) 100%);
    text-decoration: none;
    transition: filter .25s ease;
}
.vmall-promo-bar:hover {
    filter: brightness(1.08);
}
.vmall-promo-bar-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .5px;
}
.vmall-promo-bar-sub {
    font-size: 13px;
    opacity: .92;
    margin-top: 2px;
}
.vmall-promo-bar-right {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 6px 14px;
    white-space: nowrap;
}
.vmall-promo-bar-right b {
    font-size: 20px;
    margin: 0 2px;
}

/* ── 按钮渐变（hover 加深） ── */
.vmall-btn-grad {
    display: inline-block;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: var(--vmall-price);
    background: linear-gradient(135deg, var(--vmall-price) 0%, var(--vmall-price-deep) 100%);
    transition: filter .2s ease, transform .2s ease;
}
.vmall-btn-grad:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* ── 卡片阴影梯度（hover 时逐级加深，仅用 transform/opacity 可降级属性） ── */
.vmall-card.shadow-deep:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
}

/* ============================================================
   切片3 新增：促销条强化 + hover 动效补齐
   原则：仅使用 transform/opacity/box-shadow/filter 可降级属性；
   渐变均先纯色兜底再 linear-gradient 覆盖；不依赖 :has()/backdrop-filter。
   ============================================================ */

/* ── 促销条：静态轻阴影 + hover 上浮加深（华为式卡片动效） ── */
.vmall-promo-bar {
    box-shadow: 0 4px 16px rgba(228, 57, 60, .16);
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}
.vmall-promo-bar:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(228, 57, 60, .22);
}

/* ── 促销条右侧胶囊：hover 提亮 + 箭头提示 ── */
.vmall-promo-bar-right {
    transition: background .2s ease;
}
.vmall-promo-bar-right::after {
    content: " ›";
    font-weight: 700;
}
.vmall-promo-bar-right:hover {
    background: rgba(255, 255, 255, .3);
}

/* ── 楼层标题「更多」：hover 右移 3px 制造箭头感 ── */
.vmall-section-more {
    display: inline-block;
    transition: color .2s ease, transform .2s ease;
}
.vmall-section-more:hover {
    color: var(--vmall-price);
    transform: translateX(3px);
}

/* ── 卡片 hover：标题变主色（与图片缩放/上浮同频） ── */
.vmall-card:hover .vmall-card-name {
    color: var(--vmall-price);
}

/* ── 显式降级守卫：不支持渐变的环境回退纯色（防白屏双保险） ── */
@supports not (background: linear-gradient(90deg, #000, #fff)) {
    .vmall-section--tint { background: var(--vmall-bg); }
    .vmall-promo-bar { background: var(--vmall-promo-grad-1); }
    .vmall-btn-grad { background: var(--vmall-price); }
}

/* ── 动效降级：prefers-reduced-motion 用户关闭动效 ── */
@media (prefers-reduced-motion: reduce) {
    .vmall-card, .vmall-card-img img, .vmall-promo-bar, .vmall-btn-grad,
    .vmall-section-more, .vmall-promo-bar-right {
        transition: none !important;
    }
    .vmall-card:hover { transform: none; }
    .vmall-card:hover .vmall-card-img img { transform: none; }
    .vmall-promo-bar:hover { transform: none; }
    .vmall-section-more:hover { transform: none; }
}
/* ════════════════════════════════════════════════════════════
   V2.2（华为风首页样板 · 头部导航补全）
   layout.blade.php 使用 .vmall-topbar / .pc-header-* 新 class，
   而 front-theme.css 仍是旧 .nav-links/.search-box/.user-actions，
   导致头部导航无样式、纵向堆叠（"导航非常乱"根因）。
   此处补齐华为风头部样式：纯色兜底 + 无 :has() 依赖 + 动效降级
   ════════════════════════════════════════════════════════════ */

/* ── 顶部工具栏 vmall-topbar（2026-08-03 升级：浅灰工具条 + 图标化登录区） ── */
.vmall-topbar {
  background: #f5f5f5;              /* 浅灰工具条，与白色主头部视觉分层 */
  color: #333;
  font-size: 12px;
  line-height: 30px;
  position: relative;
  z-index: 101;
  border-bottom: 1px solid #e8e8e8;
}
.vmall-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 30px;
}
.vmall-topbar-left,
.vmall-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.vmall-topbar-brand {
  font-weight: 700;
  color: #333;
  margin-right: 8px;
  text-decoration: none;
}
.vmall-topbar-link {
  color: #666;
  text-decoration: none;
  transition: color .2s;
}
.vmall-topbar-link:hover { color: var(--vmall-price, #e4383c); }
.vmall-topbar-sep { color: #ddd; }

/* 登录/注册 图标按钮 */
.vmall-topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 1;
  color: #333;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s;
}
.vmall-topbar-btn:hover {
  color: var(--vmall-price, #e4383c);
  border-color: var(--vmall-price, #e4383c);
}
.vmall-topbar-btn--primary {
  color: #fff;
  background: var(--vmall-primary, #1890ff);
  border-color: var(--vmall-primary, #1890ff);
}
.vmall-topbar-btn--primary:hover {
  opacity: .85;
  color: #fff;
}
.vmall-topbar-btn-icon { font-size: 12px; }

/* 登录态：头像 + 昵称 */
.vmall-topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333;
  text-decoration: none;
}
.vmall-topbar-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--vmall-primary, #1890ff);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.vmall-topbar-uname {
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmall-topbar-logout { margin-left: 4px; }

/* ── 主头部 logo ── */
.pc-header .pc-header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.pc-header .pc-header-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--vmall-primary);
  letter-spacing: .5px;
}

/* ── 主导航（水平排列，修复纵向堆叠） ── */
.pc-header .pc-header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 8px;
}
.pc-header .pc-header-nav > a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vmall-primary);
  text-decoration: none;
  border-radius: 6px;
  transition: color .2s, background-color .2s;
}
.pc-header .pc-header-nav > a:hover,
.pc-header .pc-header-nav > a.active {
  color: var(--vmall-price);
  background-color: rgba(228, 57, 60, .06);
}

/* ── 商品下拉菜单（hover 展开，不依赖 :has） ── */
.pc-nav-dropdown {
  position: relative;
  display: inline-block;
}
.pc-nav-dropdown > a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--vmall-primary);
  text-decoration: none;
  border-radius: 6px;
  transition: color .2s, background-color .2s;
}
.pc-nav-dropdown > a:hover,
.pc-nav-dropdown > a.active {
  color: var(--vmall-price);
  background-color: rgba(228, 57, 60, .06);
}
.nav-arrow { font-size: 10px; margin-left: 2px; color: var(--vmall-sub); }
.pc-nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 168px;
  background: #fff;                 /* 纯色兜底 */
  border: 1px solid var(--vmall-bg);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .10);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 120;
}
.pc-nav-dropdown:hover .pc-nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pc-nav-dropdown-item {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--vmall-primary);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color .2s, color .2s;
}
.pc-nav-dropdown-item:hover {
  background-color: rgba(228, 57, 60, .06);
  color: var(--vmall-price);
}
.pc-nav-dropdown-divider {
  height: 1px;
  background: var(--vmall-bg);
  margin: 4px 6px;
}

/* ── 搜索框 ── */
.pc-header-search {
  display: flex;
  align-items: center;
  margin-left: auto;                /* logo+nav 左，search+actions 右 */
  margin-right: 16px;
  border: 1px solid var(--vmall-price);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;                 /* 纯色兜底 */
  height: 36px;
  flex: 0 1 300px;
  min-width: 180px;
}
.pc-header-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px;
  font-size: 13px;
  color: var(--vmall-primary);
  background: transparent;
  min-width: 0;
}
.pc-header-search-btn {
  border: none;
  background: var(--vmall-price);   /* 纯色兜底 */
  color: #fff;
  padding: 0 18px;
  height: 100%;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .2s;
}
.pc-header-search-btn:hover { background: var(--vmall-price-deep); }

/* ── 右侧操作区 ── */
.pc-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.pc-header-action {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--vmall-primary);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color .2s, color .2s;
}
.pc-header-action:hover {
  background-color: rgba(228, 57, 60, .06);
  color: var(--vmall-price);
}
.pc-header-action .badge {
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--vmall-price);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  display: inline-block;
}

/* ── 购物车图标 + 文字（2026-08-03） ── */
.pc-cart-icon { font-size: 16px; line-height: 1; }
.pc-cart-label { font-size: 13px; }
.cart-badge { position: relative; }
.cart-badge .badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(30%, -20%);
}

/* ── 用户头像 + 下拉菜单（2026-08-03 登录区图标化） ── */
.pc-user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
}
.pc-user-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  background: transparent;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  color: var(--vmall-primary);
  transition: background-color .2s;
}
.pc-user-trigger:hover { background-color: rgba(228, 57, 60, .06); }
.pc-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--vmall-primary, #1890ff);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.pc-user-name {
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pc-user-caret { font-size: 10px; color: #999; }

.pc-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 130;
}
.pc-user-menu:hover .pc-user-dropdown,
.pc-user-menu:focus-within .pc-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pc-user-dropdown-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 4px;
}
.pc-user-avatar-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--vmall-primary, #1890ff);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}
.pc-user-dropdown-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
}
.pc-user-dropdown-sub {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.pc-user-dropdown-item {
  display: block;
  padding: 9px 12px;
  font-size: 13px;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color .2s;
}
.pc-user-dropdown-item:hover {
  background-color: rgba(228, 57, 60, .06);
  color: var(--vmall-price);
}
.pc-user-dropdown-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 4px 8px;
}
.pc-user-dropdown-logout { color: #999; }
.pc-user-dropdown-logout:hover { color: var(--vmall-price); }

/* ── 滚动收缩（兼容原 scrolled 逻辑） ── */
.pc-header.scrolled .pc-header-inner { height: 52px; }

/* ── 动效降级：reduced-motion 关闭动效 ── */
@media (prefers-reduced-motion: reduce) {
  .vmall-topbar-link,
  .pc-header .pc-header-nav > a,
  .pc-nav-dropdown > a,
  .pc-nav-dropdown-item,
  .pc-header-search-btn,
  .pc-header-action,
  .pc-nav-dropdown-menu {
    transition: none !important;
  }
  .pc-nav-dropdown-menu { transform: none; }
}

/* V2.3 vmall-card fine shadow + price red/black mix */
.vmall-card {
    box-shadow: 0 1px 6px rgba(0, 0, 0, .05);
}
.vmall-card-price .vmall-price-orig {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 6px;
}

/* 5.4 merchant_grid 店铺推荐块 */
.merchant-grid-block { border-radius: 12px; }
.block-section-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.block-section-title { font-size: 16px; font-weight: 700; color: #1a1a2e; margin: 0; }
.block-section-sub { font-size: 12px; color: #999; }
.merchant-grid { display: grid; gap: 12px; }
.merchant-grid-card { background: #fff; border-radius: 10px; padding: 14px 10px; text-align: center; border: 1px solid #f0f0f0; text-decoration: none; transition: box-shadow .2s; }
.merchant-grid-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.mg-logo { width: 52px; height: 52px; border-radius: 12px; background: var(--theme-primary-light, #eef4ff); color: var(--theme-primary, #1677ff); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; margin: 0 auto 8px; }
.mg-logo img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; }
.mg-name { font-size: 13px; font-weight: 600; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-count { font-size: 12px; color: #999; margin-top: 2px; }
.merchant-grid-empty { text-align: center; color: #999; padding: 24px 0; font-size: 13px; }

/* H5 店铺推荐横滑 */
.h5-merchant-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 2px 12px 8px; -webkit-overflow-scrolling: touch; }
.h5-merchant-card { flex-shrink: 0; width: 92px; background: #fff; border-radius: 10px; padding: 12px 8px; text-align: center; border: 1px solid #f0f0f0; text-decoration: none; }
.h5-merchant-card .mg-logo { width: 44px; height: 44px; font-size: 20px; border-radius: 10px; }
.h5-merchant-card .mg-logo img { width: 44px; height: 44px; border-radius: 10px; }
.h5-merchant-card .mg-name { font-size: 12px; }
.h5-merchant-card .mg-count { font-size: 11px; }

/* 5.4 H5 search_bar tab（商品/店铺） */
.search-tabs { display: flex; gap: 0; padding: 0 8px; }
.search-tabs a { font-size: 13px; color: #888; padding: 4px 10px; border-radius: 14px; text-decoration: none; }
.search-tabs a.active { color: var(--theme-primary, #1677ff); font-weight: 600; background: rgba(22,119,255,.1); }
