/* 寰贸通臻选 H5 · 共享样式（品牌紫，移动端优先） */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: #f5f6fa;
    color: #24272e;
    max-width: 760px;
    margin: 0 auto;
    padding-bottom: 90px;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

/* 顶栏 */
.wb-header {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #5b45b8, #7c5cf0);
    color: #fff;
    position: sticky; top: 0; z-index: 20;
    box-shadow: 0 2px 12px rgba(91,69,184,.25);
}
.wb-logo { font-size: 19px; font-weight: 800; letter-spacing: 1px; white-space: nowrap; flex-shrink: 0; }
.wb-nav { display: flex; gap: 4px; flex: 1; justify-content: flex-end; }
.wb-nav a { padding: 6px 12px; border-radius: 999px; font-size: 14px; opacity: .85; white-space: nowrap; }
.wb-nav a.on { background: rgba(255,255,255,.22); opacity: 1; font-weight: 700; }
#wb-login-chip { font-size: 13px; flex-shrink: 0; white-space: nowrap; }
.wb-user { opacity: .9; display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.wb-login-btn { background: #fff; color: #5b45b8; font-weight: 700; padding: 5px 14px; border-radius: 999px; display: inline-block; }

/* 手机窄屏：logo 与登录同一行，四项导航独占一行等宽均分，避免挤压变形 */
@media (max-width: 600px) {
    .wb-header { flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px 8px; }
    .wb-logo { font-size: 18px; margin-right: auto; }
    #wb-login-chip { order: 1; }
    .wb-nav { order: 2; flex-basis: 100%; justify-content: space-between; gap: 4px; }
    .wb-nav a { flex: 1; text-align: center; padding: 7px 4px; font-size: 14px; }
}

/* 卡片 */
.card { background: #fff; border-radius: 16px; padding: 16px; margin: 14px 14px 0; box-shadow: 0 1px 4px rgba(20,20,43,.06); }
.card-title { font-size: 16px; font-weight: 800; margin-bottom: 12px; }

/* 商品网格 */
.goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 14px; }
.g-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(20,20,43,.08); transition: transform .15s; }
.g-card:active { transform: scale(.98); }
.g-thumb { height: 110px; display: flex; align-items: center; justify-content: center; font-size: 52px; background: #f3f0fc; }
.g-info { padding: 10px 12px 12px; }
.g-name { font-size: 14px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.g-price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.g-price { color: #ff5a1f; font-size: 17px; font-weight: 800; }
.g-origin { color: #b0b4bd; font-size: 12px; text-decoration: line-through; }
.g-tags { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.g-tag { font-size: 10px; color: #5b45b8; background: #f0ebff; border-radius: 4px; padding: 2px 6px; }

/* ===== 首页版块（对齐小程序） ===== */
/* 搜索栏 */
.search-bar { display: flex; align-items: center; height: 38px; margin: 10px 16px 16px; padding: 0 6px 0 12px; border-radius: 999px; background: #fff; }
.search-icon { font-size: 15px; }
.search-input { flex: 1; min-width: 0; margin: 0 8px; border: none; outline: none; background: transparent; font-size: 13px; color: #333; }
.search-btn { flex: 0 0 auto; padding: 6px 14px; border: none; border-radius: 999px; background: linear-gradient(135deg, #ff8a4c, #ff6b35); color: #fff; font-size: 12px; font-weight: 600; }
.search-clear { flex: 0 0 auto; width: 20px; height: 20px; line-height: 20px; text-align: center; margin-right: 8px; border-radius: 50%; background: #eef0f3; color: #8a909a; font-size: 12px; cursor: pointer; }
.search-back { padding: 4px 12px; border-radius: 999px; background: #fff2ea; color: #ff6b35; font-size: 12px; font-weight: 600; cursor: pointer; }

/* 会员专属横幅（对齐小程序：金棕渐变） */
.vip-hero { display: flex; align-items: center; justify-content: space-between; margin: 4px 12px 10px; padding: 16px 15px; border-radius: 12px; background: linear-gradient(135deg, #4a3c22 0%, #8c6c30 60%, #b8903e 100%); color: #fff; overflow: hidden; box-shadow: 0 5px 15px rgba(140,108,48,.25); }
.vip-hero-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vip-hero-title { font-size: 22px; font-weight: 800; letter-spacing: 1px; }
.vip-hero-sub { font-size: 15px; font-weight: 700; opacity: .95; margin-top: 5px; }
.vip-hero-line { font-size: 11px; opacity: .8; margin-top: 7px; }
.vip-hero-side { flex-shrink: 0; margin-left: 12px; display: flex; flex-direction: column; align-items: center; background: rgba(255,255,255,.14); border-radius: 8px; padding: 9px 11px; }
.vip-side-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.22); color: #f4ead0; }
.vip-side-tag.on { background: #fff; color: #8c6c30; font-weight: 700; }
.vip-side-num { font-size: 14px; font-weight: 800; margin-top: 6px; }
.vip-side-link { font-size: 10px; opacity: .8; margin-top: 4px; }

/* 四大快捷入口（对齐小程序：整体白底卡 + 米黄图标） */
.quick-grid { display: flex; background: #fff; border-radius: 10px; padding: 13px 0; margin: 0 12px 10px; }
.quick-item { flex: 1; display: flex; flex-direction: column; align-items: center; }
.quick-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: #f7f3e8; }
.quick-name { font-size: 12px; color: #4a4a55; margin-top: 7px; font-weight: 600; }

/* 寰贸通AI引擎（对齐小程序：三场景独立渐变与文字色） */
.ai-hero { position: relative; margin: 6px 12px 14px; padding: 16px 14px 14px; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, #2a1a63 0%, #4b2fa0 52%, #6d47d6 100%); box-shadow: 0 8px 24px rgba(75,47,160,.28); }
.ai-hero-glow { position: absolute; width: 200px; height: 200px; top: -90px; right: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(180,150,255,.42), transparent 68%); pointer-events: none; }
.ai-hero-top { position: relative; display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ai-hero-heading { display: flex; align-items: center; gap: 10px; }
.ai-hero-badge { font-size: 10px; font-weight: 800; color: #4b2fa0; background: linear-gradient(135deg,#fff,#ffe9a8); padding: 4px 8px; border-radius: 8px; letter-spacing: .5px; box-shadow: 0 2px 8px rgba(0,0,0,.18); white-space: nowrap; }
.ai-hero-title { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: .5px; text-shadow: 0 1px 6px rgba(0,0,0,.2); }
.ai-hero-sub { font-size: 10px; color: rgba(255,255,255,.78); margin-top: 3px; }
.ai-hero-more { font-size: 11px; color: #ffe9a8; font-weight: 700; white-space: nowrap; }
.ai-strip-scroll { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.ai-strip-scroll::-webkit-scrollbar { display: none; }
.ai-scene { flex: 0 0 250px; height: 104px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ai-scene-icon { font-size: 36px; line-height: 1; flex: 0 0 auto; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255,255,255,.16); }
.ai-scene-body { display: flex; flex-direction: column; min-width: 0; height: 100%; justify-content: center; }
.ai-scene-line { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; min-width: 0; width: 100%; }
.ai-scene-title { font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ai-scene-badge { flex-shrink: 0; font-size: 9px; padding: 2px 6px; border-radius: 999px; background: rgba(255,233,168,.92); color: #5b3fa8; font-weight: 700; white-space: nowrap; }
.ai-scene-desc { font-size: 10px; color: rgba(255,255,255,.78); margin-top: 5px; line-height: 1.4; }
.ai-scene-cta { display: inline-block; font-size: 11px; color: #4b2fa0; font-weight: 800; margin-top: 8px; background: linear-gradient(135deg,#fff,#ffe9a8); padding: 3px 10px; border-radius: 999px; align-self: flex-start; }
.ai-strip-note { position: relative; font-size: 9px; color: rgba(255,255,255,.55); margin-top: 10px; text-align: center; }
/* AI 供需引擎全球专题卡（醒目发光描边） */
.ai-scene-hot { background: linear-gradient(120deg,rgba(94,234,212,.2),rgba(129,140,248,.22))!important; border:1px solid rgba(94,234,212,.6)!important; box-shadow:0 0 16px rgba(94,234,212,.28),inset 0 0 18px rgba(129,140,248,.12); }
.ai-scene-hot .ai-scene-icon { background:linear-gradient(135deg,rgba(94,234,212,.3),rgba(240,171,252,.3))!important; }
.ai-hero-more { text-decoration:none; }

/* 大宗采购入口（果礼进出口贸易专题） */
/* 大宗果礼入口：与小程序 rpx 精确等比（rpx÷2 = px），真机两端显示一致 */
.bulk-entry { position: relative; display: flex; align-items: center; gap: 8px; margin: 0 12px 10px; padding: 13px 12px; border-radius: 10px; color: #fff; background: linear-gradient(120deg, #7a3d12, #b5651d 60%, #d98f3a); box-shadow: 0 5px 12px rgba(122,61,18,.22); overflow: hidden; }
.bulk-entry:active { transform: scale(.99); }
.bulk-entry-deco { position: absolute; right: 65px; bottom: -7px; font-size: 36px; opacity: .18; letter-spacing: -5px; pointer-events: none; }
.bulk-entry-left { display: flex; flex-direction: column; min-width: 0; flex: 1; position: relative; z-index: 1; }
.bulk-entry-tag { font-size: 10px; letter-spacing: 1px; opacity: .9; }
.bulk-entry-title { font-size: 16px; font-weight: 800; margin: 3px 0; }
.bulk-entry-sub { font-size: 9.5px; opacity: .88; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-entry-btn { flex-shrink: 0; position: relative; z-index: 1; background: #fff; color: #b5651d; font-size: 11.5px; font-weight: 800; padding: 7px 11px; border-radius: 999px; white-space: nowrap; }

.group-entry { position: relative; display: flex; align-items: center; gap: 8px; margin: 12px 12px 10px; padding: 13px 12px; border-radius: 10px; color: #fff; background: linear-gradient(120deg, #452e95, #5b45b8 60%, #7c5cf0); box-shadow: 0 5px 12px rgba(91,69,184,.24); overflow: hidden; }
.group-entry:active { transform: scale(.99); }
.group-entry-deco { position: absolute; right: 75px; bottom: -8px; font-size: 34px; opacity: .2; pointer-events: none; }
.group-entry-left { display: flex; flex-direction: column; min-width: 0; flex: 1; position: relative; z-index: 1; }
.group-entry-tag { font-size: 10px; letter-spacing: 1px; opacity: .9; }
.group-entry-title { font-size: 16px; font-weight: 800; margin: 3px 0; }
.group-entry-sub { font-size: 9.5px; opacity: .88; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-entry-btn { flex-shrink: 0; position: relative; z-index: 1; background: linear-gradient(135deg,#ffe08a,#ffb43c); color: #4a2f9e; font-size: 12.5px; font-weight: 800; padding: 9px 15px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 10px rgba(255,180,60,.4); border: 1px solid rgba(255,255,255,.65); }

/* 限时秒杀横滑区（Banner 后黄金转化位，px = rpx/2） */
.flash-section { margin: 12px 0 0; }
.flash-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px; text-decoration: none; }
.flash-head-left { display: flex; align-items: baseline; gap: 6px; }
.flash-head-icon { font-size: 17px; }
.flash-head-title { font-size: 16px; font-weight: 800; color: #24272e; }
.flash-head-sub { font-size: 10.5px; color: #dc2626; }
.flash-head-more { font-size: 11px; color: #dc2626; font-weight: 700; }
.flash-head-btn { flex-shrink: 0; background: linear-gradient(90deg,#dc2626,#f59e0b); color: #fff; font-size: 11.5px; font-weight: 800; padding: 6px 13px; border-radius: 999px; box-shadow: 0 4px 10px rgba(220,38,38,.3); }
.flash-empty { display: flex; align-items: center; gap: 8px; margin: 0 12px; padding: 12px; border-radius: 10px; text-decoration: none; background: linear-gradient(120deg,#fff4ea,#ffe4cf); border: 1px solid #ffd6b0; }
.flash-empty-emoji { font-size: 24px; }
.flash-empty-text { flex: 1; min-width: 0; font-size: 11.5px; color: #a2521a; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flash-empty-cta { flex-shrink: 0; background: linear-gradient(90deg,#dc2626,#f59e0b); color: #fff; font-size: 11.5px; font-weight: 800; padding: 8px 13px; border-radius: 999px; box-shadow: 0 4px 10px rgba(220,38,38,.28); }
.flash-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.flash-scroll::-webkit-scrollbar { display: none; }
.flash-track { display: inline-flex; gap: 8px; padding: 0 12px 4px; }
.flash-item { display: inline-flex; flex-direction: column; width: 100px; background: #fff; border-radius: 8px; padding: 7px; box-shadow: 0 3px 9px rgba(0,0,0,.05); text-decoration: none; flex-shrink: 0; }
.flash-item-thumb { position: relative; width: 100%; height: 86px; border-radius: 6px; background: #fdf0e2; overflow: hidden; }
.flash-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.flash-item-emoji { font-size: 39px; display: flex; align-items: center; justify-content: center; height: 100%; }
.flash-item-tag { position: absolute; left: 0; top: 0; font-size: 9.5px; font-weight: 700; color: #fff; background: linear-gradient(90deg,#dc2626,#f59e0b); padding: 2px 6px; border-radius: 6px 0 6px 0; }
.flash-item-name { font-size: 12px; color: #333; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flash-item-prices { display: flex; align-items: baseline; gap: 4px; margin-top: 3px; }
.flash-item-price { font-size: 16px; font-weight: 800; color: #dc2626; }
.flash-item-yen { font-size: 10px; }
.flash-item-origin { font-size: 10px; color: #bbb; text-decoration: line-through; }

/* Banner 轮播 */
.banner-wrap { padding: 0 14px; margin-top: 18px; }
.banner { position: relative; height: 150px; border-radius: 16px; overflow: hidden; }
.banner-item { height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 26px; }
.banner-text { display: flex; flex-direction: column; z-index: 2; }
.banner-title { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.banner-desc { font-size: 13px; color: rgba(255,255,255,.9); margin-top: 6px; }
.banner-tag { display: inline-block; align-self: flex-start; font-size: 12px; color: #fff; margin-top: 14px; padding: 5px 13px; border-radius: 999px; background: rgba(255,255,255,.24); }
.banner-emoji { font-size: 72px; z-index: 1; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.banner-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.5); }
.banner-dots i.on { width: 16px; background: #fff; }

/* 通用 section 头（对齐小程序） */
.section { margin-top: 18px; }
.section-header { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 10px; margin-top: 18px; }
.section-title { font-size: 16px; font-weight: 700; color: #24272e; }
.section-subtitle, .section-more { font-size: 12px; color: #9aa0aa; }

/* 横滑好物（福利兑换 / 会员特惠，对齐小程序白卡） */
.hot-scroll { display: flex; gap: 10px; overflow-x: auto; padding: 0 10px 6px; -webkit-overflow-scrolling: touch; }
.hot-scroll::-webkit-scrollbar { display: none; }
.hot-item { position: relative; flex: 0 0 100px; display: flex; flex-direction: column; padding: 10px; border-radius: 10px; background: #fff; }
.hot-rank { position: absolute; top: 8px; left: 8px; z-index: 2; width: 18px; height: 18px; border-radius: 5px; background: #ff5a1f; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.hot-thumb { height: 80px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.hot-emoji { font-size: 44px; }
.hot-name { font-size: 12px; font-weight: 600; color: #24272e; margin-top: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.benefit-points { align-self: flex-start; font-size: 11px; color: #a8813c; font-weight: 700; margin-top: 5px; }
.benefit-points.lock { color: #a0a5ae; font-weight: 400; }
.hprice { color: #ff5a1f; margin-top: 5px; }
.hprice-symbol { font-size: 12px; }
.hprice-int { font-size: 17px; font-weight: 800; }

/* 共创中心（对齐小程序） */
.partner-entry { display: flex; padding: 0 12px; margin-bottom: 4px; }
.pe-card { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; min-height: 90px; border-radius: 10px; padding: 12px; overflow: hidden; color: #fff; }
.pe-card:first-child { margin-right: 10px; }
.pe-purple { background: linear-gradient(135deg, #6d5bd0, #8b5cf6); }
.pe-gold { background: linear-gradient(135deg, #4a3c22, #8c6c30); }
.pe-text { display: flex; flex-direction: column; min-width: 0; }
.pe-tag { font-size: 10px; opacity: .9; }
.pe-title { font-size: 15px; font-weight: 800; margin-top: 5px; }
.pe-desc { font-size: 10px; opacity: .8; margin-top: 4px; }
.pe-emoji { position: absolute; right: 8px; bottom: 3px; font-size: 33px; opacity: .5; }
/* 晒单共创通栏入口（全会员可见） */
.ugc-entry { padding: 0 12px; margin-bottom: 10px; }
.ugc-entry .pe-card { flex: none; width: 100%; margin-right: 0; min-height: 78px; padding: 12px 92px 12px 12px; box-sizing: border-box; }
.pe-green { background: linear-gradient(135deg, #12785c, #1eaa7c); }
.ugc-entry-cta { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 11px; font-weight: 800; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.92); color: #0e6b52; white-space: nowrap; }
.ugc-entry .pe-emoji { right: 78px; bottom: 8px; font-size: 22px; opacity: .28; }

/* 高光时刻（对齐小程序：深紫渐变） */
.highlight-entry { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 12px 12px; padding: 15px 14px; border-radius: 10px; background: linear-gradient(120deg, #2b1f5c, #5b45b8); color: #fff; box-shadow: 0 4px 12px rgba(43,31,92,.22); }
.he-deco { position: absolute; right: -30px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.07); }
.he-left { position: relative; display: flex; flex-direction: column; min-width: 0; }
.he-tag { font-size: 11px; font-weight: 700; color: #ffd9b8; }
.he-title { font-size: 16px; font-weight: 800; color: #fff; margin-top: 4px; }
.he-sub { font-size: 11px; color: #d5caf5; margin-top: 4px; }
.he-right { position: relative; display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; }
.he-btn { font-size: 12px; font-weight: 800; color: #5b45b8; background: #fff; border-radius: 999px; padding: 6px 12px; }
.he-share { font-size: 9px; color: #b9addf; margin-top: 5px; }

/* 优惠券入口 */
.coupon-entry { display: flex; align-items: center; justify-content: space-between; margin: 14px 14px 0; padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 1px 4px rgba(20,20,43,.06); }
.coupon-entry-left { display: flex; align-items: center; gap: 12px; }
.coupon-entry-icon { font-size: 28px; }
.coupon-entry-left > div { display: flex; flex-direction: column; }
.coupon-entry-title { font-size: 14px; font-weight: 700; color: #2b2f38; }
.coupon-entry-desc { font-size: 11px; color: #9095a0; margin-top: 4px; }
.coupon-entry-arrow { font-size: 12px; color: #a8813c; font-weight: 600; }

/* 分类导航（对齐小程序：4 列 + 白底图标） */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 0; margin: 4px 8px 0; }
.category-item { display: flex; flex-direction: column; align-items: center; padding: 8px 0; }
.category-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.category-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; }
.category-name { font-size: 12px; color: #4a4f59; margin-top: 7px; text-align: center; }

/* 商品流（首页） */
.goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 4px 14px 14px; }
.g-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(20,20,43,.08); }
.goods-thumb { position: relative; height: 130px; display: flex; align-items: center; justify-content: center; }
.goods-emoji { font-size: 68px; }
.goods-badge { position: absolute; top: 8px; left: 8px; font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255,107,53,.92); color: #fff; }
.goods-badge.points-badge { left: auto; right: 8px; background: #fbf3df; color: #a8813c; }
.g-info { padding: 10px 12px 12px; }
.goods-name { display: block; font-size: 14px; font-weight: 600; color: #2b2f38; line-height: 1.4; text-decoration: none; }
.goods-desc { display: block; font-size: 11px; color: #a0a5ae; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.goods-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.vip-only-tag { font-size: 11px; color: #a8813c; background: #fbf3df; border-radius: 4px; padding: 3px 6px; }
.add-cart { width: 26px; height: 26px; border: none; border-radius: 50%; background: linear-gradient(135deg,#ff8a4c,#ff6b35); color: #fff; font-size: 20px; font-weight: 300; line-height: 23px; text-align: center; padding: 0; }

/* 分类 chips（旧版兼容保留） */
.cat-bar { display: flex; gap: 8px; padding: 12px 14px 0; overflow-x: auto; }
.cat-chip { flex: 0 0 auto; padding: 7px 16px; border-radius: 999px; background: #fff; font-size: 13px; color: #555; box-shadow: 0 1px 3px rgba(20,20,43,.07); border: 1px solid transparent; }
.cat-chip.on { background: #5b45b8; color: #fff; font-weight: 700; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; border: none; border-radius: 999px; font-weight: 800; padding: 12px 24px; font-size: 15px; }
.btn-primary { background: linear-gradient(135deg, #7c5cf0, #5b45b8); color: #fff; box-shadow: 0 6rpx 16rpx rgba(91,69,184,.3); box-shadow: 0 6px 16px rgba(91,69,184,.3); }
.btn-orange { background: linear-gradient(135deg, #ff9a4d, #ff5a1f); color: #fff; box-shadow: 0 6px 16px rgba(255,107,53,.3); }
.btn-plain { background: #fff; color: #5b45b8; border: 1px solid #d9d0f7; }
.btn[disabled] { opacity: .5; }

/* 表单 */
.form-item { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.form-input {
    width: 100%; padding: 12px 14px; border-radius: 12px;
    border: 1px solid #e4e6ec; background: #fafbfc;
    font-size: 15px; line-height: 1.5; min-height: 46px;
}
.form-input:focus { outline: none; border-color: #7c5cf0; background: #fff; }

/* 底部结算条 */
.pay-bar {
    position: fixed; left: 0; right: 0; bottom: 0;
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -2px 12px rgba(20,20,43,.08);
}
.pay-total { flex: 1; font-size: 14px; color: #666; }
.pay-total b { color: #ff5a1f; font-size: 20px; }

/* Toast */
.wb-toast {
    position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(.9);
    background: rgba(30,30,40,.88); color: #fff; font-size: 14px;
    padding: 10px 20px; border-radius: 10px; opacity: 0; transition: all .25s; z-index: 99;
    max-width: 78vw; text-align: center; line-height: 1.5;
}
.wb-toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wb-toast-ok { background: rgba(46,125,50,.92); }

/* 空态 */
.empty { text-align: center; padding: 60px 20px; color: #999; font-size: 14px; }
.empty .icon { font-size: 44px; margin-bottom: 12px; }

/* 徽标 */
.cart-badge {
    position: fixed; right: 18px; bottom: 100px;
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, #ff9a4d, #ff5a1f); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; box-shadow: 0 6px 18px rgba(255,107,53,.4);
    z-index: 15;
}
.cart-badge i { position: absolute; top: -4px; right: -4px; background: #ff2442; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; border-radius: 999px; padding: 2px 7px; }

/* ===== 详情页（对齐小程序版式） ===== */
/* 通用面板容器（对齐小程序 .panel / .panel-label）——修复排版错乱 */
.panel { margin: 10px 12px; padding: 14px 16px; border-radius: 10px; background: #fff; }
.panel-label { font-size: 14px; font-weight: 700; color: #2b2f36; }
/* 商品大图 */
.hero { position: relative; height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-emoji { font-size: 140px; filter: drop-shadow(0 8px 12px rgba(0,0,0,.12)); }
.hero-badge { position: absolute; top: 16px; left: 16px; padding: 5px 14px; border-radius: 999px; background: rgba(255,107,53,.92); color: #fff; font-size: 12px; font-weight: 600; }
.hero-badge.points-hero-badge { left: auto; right: 16px; background: #fbf3df; color: #a8813c; }

/* 价格卡：上移覆盖大图下沿 */
.price-card { position: relative; z-index: 2; margin: -20px 12px 0; padding: 18px 16px; border-radius: 16px; background: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.price-row { display: flex; align-items: baseline; }
.price { color: #ff5a1f; }
.price-symbol { font-size: 15px; }
.price-num { font-size: 32px; font-weight: 800; }
.original-price { margin-left: 9px; color: #b0b4bc; font-size: 14px; text-decoration: line-through; }
.discount { margin-left: auto; padding: 4px 10px; border-radius: 6px; background: #fff0ea; color: #ff5a1f; font-size: 12px; font-weight: 600; }
.title-row { display: flex; align-items: center; justify-content: space-between; }
.goods-title { display: block; margin-top: 9px; font-size: 18px; font-weight: 700; line-height: 1.45; }
.goods-desc { display: block; margin-top: 6px; color: #8a9099; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.meta-row { display: flex; align-items: center; margin-top: 12px; }
.meta-item { color: #646a73; font-size: 12px; }
.meta-divider { margin: 0 9px; color: #d8dbe0; font-size: 11px; }

/* 选择规格 */
.spec-list { display: flex; flex-wrap: wrap; margin-top: 12px; }
.spec-item { padding: 7px 17px; margin: 0 10px 8px 0; border: 1px solid transparent; border-radius: 8px; background: #f4f5f7; color: #5a6069; font-size: 13px; }
.spec-item.selected { background: #fff0ea; color: #ff6b35; border-color: #ff6b35; font-weight: 600; }

/* 购买数量 */
.qty-panel { display: flex; align-items: center; justify-content: space-between; }
.qty-control { display: flex; align-items: center; }
.qty-btn { width: 32px; height: 32px; border: none; border-radius: 8px; background: #f4f5f7; color: #333; font-size: 20px; line-height: 30px; }
.qty-value { min-width: 44px; text-align: center; font-size: 15px; font-weight: 600; }

/* 服务保障 */
.service-list { display: flex; margin-top: 12px; }
.service-item { flex: 1; display: flex; align-items: center; font-size: 12px; color: #5a6069; }
.service-icon { display: inline-flex; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; background: #eaf7f0; color: #22a884; font-size: 11px; align-items: center; justify-content: center; }

/* 商品详情说明 */
.detail-panel { padding-bottom: 8px; }
.detail-line { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #f4f5f7; }
.detail-line:last-child { border-bottom: none; }
.detail-key { color: #8a9099; font-size: 13px; }
.detail-value { color: #333; font-size: 13px; text-align: right; }

/* 会员实拍体验 */
.ugc-panel .panel-label { display: flex; align-items: center; }
.ugc-count { font-size: 11px; color: #fff; background: #22a884; border-radius: 999px; padding: 1px 7px; margin-left: 7px; font-weight: 600; }
.ugc-note { padding: 12px 0; border-bottom: 1px solid #f0f1f3; }
.ugc-note:last-of-type { border-bottom: none; }
.ugc-head { display: flex; align-items: center; margin-bottom: 8px; }
.ugc-avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#ffd9b8,#ffb98a); color: #a8501c; font-size: 13px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-right: 7px; }
.ugc-name { font-size: 13px; font-weight: 700; color: #2b2f38; }
.ugc-tag { font-size: 10px; color: #22a884; background: #eaf8f3; border-radius: 999px; padding: 2px 8px; margin-left: 7px; }
.ugc-imgs { display: flex; flex-wrap: wrap; gap: 6px; }
.ugc-imgs img { width: 92px; height: 92px; border-radius: 8px; background: #f2f3f5; object-fit: cover; }
.ugc-text { font-size: 13px; color: #4a4f59; line-height: 1.7; margin-top: 8px; white-space: pre-wrap; }
.ugc-tip { font-size: 11px; color: #a0a5ae; margin-top: 8px; }
.footer-space { height: 24px; }

/* 底部操作栏（对齐小程序 action-bar） */
.action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    max-width: 760px; margin: 0 auto;
    display: flex; align-items: center;
    height: 64px; padding: 0 12px;
    background: #fff; box-shadow: 0 -2px 14px rgba(0,0,0,.07);
}
.action-icon { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; flex: 0 0 auto; text-align: center; }
.action-emoji { font-size: 22px; line-height: 1; }
.action-text { margin-top: 2px; color: #8a9099; font-size: 10px; }
.action-dot { position: absolute; top: -2px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #ff5a1f; color: #fff; font-size: 10px; line-height: 16px; }
.action-btn { flex: 1; height: 42px; margin-left: 8px; border: none; border-radius: 999px; font-size: 14px; font-weight: 600; }
.add-btn { background: #ff9a5c; color: #fff; }
.buy-btn { background: linear-gradient(135deg, #ff8a4c, #ff6b35); color: #fff; }
.action-btn[disabled] { opacity: .5; }

/* 数量步进（购物车） */
.qty-step { display: inline-flex; align-items: center; border: 1px solid #e4e6ec; border-radius: 10px; overflow: hidden; flex: 0 0 auto; }
.qty-step button { width: 30px; height: 30px; border: none; background: #f7f8fa; font-size: 16px; color: #444; }
.qty-step span { min-width: 34px; text-align: center; font-size: 14px; font-weight: 700; }

/* 购物车行 */
.c-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f2f3f7; }
.c-row:last-child { border-bottom: none; }
.c-thumb { width: 64px; height: 64px; border-radius: 12px; background: #f3f0fc; display: flex; align-items: center; justify-content: center; font-size: 32px; flex: 0 0 auto; }
.c-info { flex: 1; min-width: 0; }
.c-name { font-size: 14px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.c-price { color: #ff5a1f; font-weight: 800; margin-top: 4px; }
.c-del { color: #b0b4bd; font-size: 20px; padding: 6px; }

/* 订单行 */
.o-card { background: #fff; border-radius: 14px; margin: 12px 14px 0; padding: 14px 16px; box-shadow: 0 1px 4px rgba(20,20,43,.06); }
.o-head { display: flex; justify-content: space-between; font-size: 13px; color: #888; }
.o-status { font-weight: 700; }
.o-status.paid { color: #2e7d32; }
.o-status.unpaid { color: #ff5a1f; }
.o-items { margin-top: 8px; font-size: 14px; line-height: 1.7; color: #444; }
.o-total { text-align: right; margin-top: 8px; font-size: 14px; }
.o-total b { color: #ff5a1f; font-size: 17px; }

/* 登录页 */
.login-wrap { max-width: 380px; margin: 40px auto; padding: 0 20px; }
.login-tabs { display: flex; background: #eee9fb; border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.login-tabs button { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 9px; font-size: 14px; color: #666; font-weight: 600; }
.login-tabs button.on { background: #fff; color: #5b45b8; box-shadow: 0 2px 6px rgba(20,20,43,.1); }
.login-tip { font-size: 12px; color: #999; line-height: 1.6; margin-top: 14px; text-align: center; }

/* 结算成功 */
.success-box { text-align: center; padding: 46px 20px; }
.success-box .icon { font-size: 64px; }
.success-box h2 { margin: 14px 0 8px; font-size: 20px; }
.success-box p { color: #888; font-size: 14px; line-height: 1.7; }

/* 页脚 */
.wb-foot { text-align: center; color: #b0b4bd; font-size: 12px; padding: 30px 0 16px; }

/* ===== 通用内页组件（积分/券/寻源/种草/预约/高光/合伙人/股东共用） ===== */
.page-hero { padding: 26px 20px; color: #fff; background: linear-gradient(135deg, #2b1f5c, #5b45b8); }
.page-hero.gold { background: linear-gradient(135deg, #5a4418, #8c6c30 55%, #b8903e); }
.page-hero.green { background: linear-gradient(135deg, #1a6e58, #2fa683); }
.page-hero.blue { background: linear-gradient(135deg, #1e3a6e, #2f64c0); }
.ph-label { font-size: 12px; opacity: .82; letter-spacing: 1px; }
.ph-title { font-size: 24px; font-weight: 800; margin: 4px 0 6px; }
.ph-sub { font-size: 13px; opacity: .9; line-height: 1.6; }
.ph-stats { display: flex; gap: 24px; margin-top: 16px; }
.ph-stat-num { font-size: 22px; font-weight: 800; }
.ph-stat-label { font-size: 11px; opacity: .82; margin-top: 2px; }

.tabs { display: flex; gap: 8px; padding: 14px 16px 4px; }
.tab { padding: 8px 18px; border-radius: 999px; font-size: 13px; color: #666; background: #f0eef7; cursor: pointer; }
.tab.on { color: #fff; background: #5b45b8; font-weight: 700; }

.dcard { background: #fff; border-radius: 14px; padding: 16px; margin: 12px 16px; box-shadow: 0 4px 14px rgba(43,31,92,.06); }
.dc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.dc-title { font-size: 16px; font-weight: 700; color: #2b1f5c; line-height: 1.4; }
.dc-meta { font-size: 12px; color: #999; margin-top: 4px; }
.dc-body { font-size: 13px; color: #555; line-height: 1.7; margin-top: 10px; }
.dc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mini-tag { font-size: 11px; padding: 3px 9px; border-radius: 6px; background: #f0eef7; color: #5b45b8; }
.mini-tag.gold { background: #fbf3df; color: #8c6c30; }
.mini-tag.green { background: #e6f7f0; color: #1a8a68; }
.badge { font-size: 11px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.badge.gold { background: #fbf3df; color: #8c6c30; }
.badge.green { background: #e6f7f0; color: #1a8a68; }
.badge.gray { background: #f0eef7; color: #888; }
.badge.orange { background: #fff0e8; color: #d9541f; }

.kv { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; border-bottom: 1px dashed #eee; }
.kv:last-child { border-bottom: none; }
.kv-k { color: #999; }
.kv-v { color: #333; font-weight: 600; text-align: right; }

.progress-wrap { margin-top: 12px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: #888; margin-bottom: 6px; }
.progress-track { height: 10px; border-radius: 999px; background: #eee; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #ff9a4d, #ff5a1f); }
.progress-fill.gold { background: linear-gradient(90deg, #b8903e, #8c6c30); }

.section-pad { padding: 4px 0 10px; }
.fab-new { position: fixed; right: 18px; bottom: 26px; padding: 13px 22px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #ff9a4d, #ff5a1f); box-shadow: 0 8px 20px rgba(255,107,53,.35); cursor: pointer; z-index: 20; }
.modal-mask { position: fixed; inset: 0; background: rgba(20,16,40,.5); z-index: 40; display: flex; align-items: flex-end; }
.modal-box { width: 100%; background: #fff; border-radius: 18px 18px 0 0; padding: 20px; max-height: 82vh; overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.modal-title { font-size: 17px; font-weight: 800; color: #2b1f5c; }
.modal-close { font-size: 24px; color: #999; cursor: pointer; line-height: 1; }
.form-textarea { width: 100%; min-height: 90px; border: 1px solid #e3e0ee; border-radius: 10px; padding: 12px; font-size: 14px; line-height: 1.6; resize: vertical; box-sizing: border-box; font-family: inherit; }
.img-preview { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; margin: 6px 6px 0 0; }
.sub-note { font-size: 12px; color: #a9803c; background: #fdf8ec; border-radius: 8px; padding: 10px 12px; line-height: 1.6; margin-top: 12px; }
.hl-cover { width: 100%; height: 100%; object-fit: cover; }
.hl-detail-img { width: 100%; border-radius: 10px; margin: 8px 0; }
.hl-highlight-item { padding: 8px 0 8px 20px; position: relative; font-size: 14px; color: #444; line-height: 1.7; }
.hl-highlight-item::before { content: '✦'; position: absolute; left: 0; color: #b8903e; }

/* ===== 我的 · 会员卡与分组菜单（对齐小程序 profile） ===== */
.mc-card { margin: 14px 14px 0; padding: 18px; border-radius: 18px; color: #fff;
  background: linear-gradient(135deg, #5b45b8, #7c5cf0); box-shadow: 0 6px 20px rgba(91,69,184,.25); }
.mc-top { display: flex; align-items: center; gap: 14px; }
.mc-avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; flex: 0 0 auto; border: 2px solid rgba(255,255,255,.5); }
.mc-info { flex: 1; min-width: 0; }
.mc-name { font-size: 18px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mc-desc { font-size: 12px; opacity: .85; margin-top: 4px; }
.mc-vip { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #f6d488, #c8963c); color: #4a2f00; margin-top: 8px; }
.mc-stats { display: flex; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); }
.mc-stat { flex: 1; text-align: center; position: relative; }
.mc-stat + .mc-stat::before { content: ''; position: absolute; left: 0; top: 4px; height: 26px; width: 1px; background: rgba(255,255,255,.22); }
.mc-stat-num { font-size: 20px; font-weight: 800; }
.mc-stat-label { font-size: 11px; opacity: .85; margin-top: 3px; }
.mg-group { margin: 16px 14px 0; background: #fff; border-radius: 16px; padding: 4px 14px; box-shadow: 0 1px 4px rgba(20,20,43,.06); }
.mg-title { font-size: 13px; color: #9095a0; font-weight: 600; padding: 12px 4px 4px; }
.mg-item { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #f2f3f7; }
.mg-item:last-child { border-bottom: none; }
.mg-ico { width: 34px; height: 34px; border-radius: 10px; background: #f3f0fc; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.mg-text { flex: 1; min-width: 0; }
.mg-name { font-size: 14px; font-weight: 600; color: #24272e; }
.mg-desc { font-size: 11px; color: #a0a4ad; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mg-arrow { color: #c4c8d0; font-size: 18px; }

/* 高光列表页分享引导条（与小程序两端一致：标题可两行 + 按钮宽一些） */
.spread-bar { position: relative; display: block; margin: 16px 16px 4px; padding: 14px 92px 14px 16px; background: #fff8f0; border: 1px solid #ffe4c7; border-radius: 12px; box-sizing: border-box; }
.spread-copy { width: 100%; }
.spread-title { font-size: 14px; font-weight: 700; color: #b5601a; line-height: 1.42; }
.spread-sub { font-size: 12px; color: #c98b52; margin-top: 5px; line-height: 1.42; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spread-btn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 68px; margin: 0; padding: 9px 0; font-size: 14px; font-weight: 800; text-align: center; color: #fff; background: linear-gradient(135deg, #ff9a4d, #ff6b35); border: none; border-radius: 999px; line-height: 1.4; box-sizing: border-box; }
