/* 宝妈创业社交电商平台 · 全站样式（会员端 H5 / 总后台 / 报单中心操作台共用） */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body { background: #f6f5f7; color: #2f2b2d; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif; font-size: 15px; line-height: 1.6; }
a { color: #c8547a; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; font-size: 14.5px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 12px 24px; }
.card { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.card h2, .card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: #373134; }
.card h3 { font-size: 15px; }
.muted { color: #948c90; font-size: 12.5px; }
.strong { font-weight: 600; }
.price { color: #e0426b; font-weight: 600; }
.price small { font-size: 12px; font-weight: 400; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrapflex { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
/* 按钮组专用行：整组换行靠右。不用 .row{flex-shrink:0} 全站收口——实测 4 按钮行在 320 屏会横向溢出 19px。 */
.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
.actions.between { justify-content: space-between; }
.mt8 { margin-top: 8px; } .mt14 { margin-top: 14px; } .mb8 { margin-bottom: 8px; }
.hide { display: none !important; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; }

/* 顶栏：sticky 吸附顶部（会员端所有页面共用，且原生壳对自家 H5 隐藏了原生顶栏，
   这是子页面唯一返回入口，必须常驻顶部；sticky 由 body 第一个子元素自然承接，无需 padding 补偿） */
.topbar { position: sticky; top: 0; z-index: 50; background: linear-gradient(120deg, #e2739a, #cf4f79); color: #fff; padding: 12px 14px; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.topbar-in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topbar a { color: #fff; opacity: .95; }
.topbar .brand { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.topbar .topback { flex: 0 0 26px; width: 26px; height: 26px; line-height: 23px; text-align: center; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; font-size: 19px; font-weight: 600; color: #fff; text-decoration: none; margin-top: 2px; }
.topbar .topback:active { background: rgba(255,255,255,.22); }
.topbar .topback.holder { border: 0; }
/* 品牌锁定：圆形徽标 + 两行字（主名 / 副名），玫红底用白字，白底用主色 */
.brand-lock { display: flex; align-items: center; gap: 9px; min-width: 0; }
.brand-lock .emblem { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: #fff; }
.brand-lock .emblem img { width: 100%; height: 100%; }
.brand-lock .wordmark { min-width: 0; line-height: 1.25; }
.brand-lock .wordmark b { display: block; font-size: 16px; font-weight: 600; letter-spacing: .8px; white-space: nowrap; }
.brand-lock .wordmark small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 2.2px; white-space: nowrap; }
.topbar .brand-lock .emblem { box-shadow: 0 1px 5px rgba(0, 0, 0, .18); }
.topbar .brand-lock .wordmark b, .topbar .brand-lock .wordmark small { color: #fff; }
.topbar .brand-lock .wordmark small { opacity: .93; }
.rc-top .brand-lock { gap: 8px; }
.rc-top .brand-lock .emblem { flex-basis: 32px; width: 32px; height: 32px; box-shadow: 0 0 0 1px #f2e3e8, 0 1px 4px rgba(0, 0, 0, .07); }
.rc-top .brand-lock .wordmark b { color: #c8547a; font-size: 15px; }
.rc-top .brand-lock .wordmark small { color: #a1757f; font-size: 10.5px; letter-spacing: 1.6px; }
@media (max-width: 380px) {
    .topbar .brand-lock .emblem { flex-basis: 32px; width: 32px; height: 32px; }
    .topbar .brand-lock .wordmark b { font-size: 14.5px; letter-spacing: .2px; }
    .topbar .brand-lock .wordmark small { font-size: 10.5px; letter-spacing: 1.2px; }
}

/* 商品详情底部购买条：四段固定比例，文字一律不折行 */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid #eee; box-shadow: 0 -1px 6px rgba(0, 0, 0, .04); }
.buybar-in { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.buybar .side { flex: 0 0 48px; width: 48px; height: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 11px; line-height: 1.3; color: #8b8388; white-space: nowrap; }
.buybar .side b { font-size: 13px; color: #c8425f; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.3; }
.buybar .side b.arr { color: #c2b9bd; font-weight: 400; font-size: 14px; }
.buybar .qty { flex: 0 0 auto; display: flex; align-items: center; gap: 3px; }
.buybar .qty button { width: 25px; height: 28px; line-height: 26px; padding: 0; border: 1px solid #eadfe3; border-radius: 7px; background: #faf7f8; color: #6a6166; font-size: 15px; }
.buybar .qty input { width: 40px; height: 28px; border: 1px solid #eadfe3; border-radius: 7px; text-align: center; font-size: 13px; padding: 0 2px; background: #fff; -moz-appearance: textfield; appearance: textfield; }
.buybar .qty input::-webkit-outer-spin-button, .buybar .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buybar .btn { flex: 1 1 0; min-width: 0; width: 0; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 6px; font-size: 14px; line-height: 1.3; letter-spacing: 0; text-align: center; white-space: nowrap; overflow: hidden; border-radius: 9px; }
/* 描边改用 inset 阴影，避免 1px 边框让两个按钮宽度差 2px */
.buybar .btn.ghost { border-width: 0; box-shadow: inset 0 0 0 1px #e6b9c9; }
.buybar-spacer { height: 62px; }
@media (max-width: 340px) {
    .buybar-in { gap: 6px; padding: 8px 8px; }
    .buybar .side { flex-basis: 44px; width: 44px; font-size: 10.5px; }
    .buybar .btn { font-size: 13px; padding: 0 4px; }
}

/* 订单详情吸底动作条：主动作满宽实心（只一颗），次动作降级为一行文字链。
   详情类页面无底部 tabbar，fixed 不会与导航条叠住；.ordbar-gap 给正文末尾留位。 */
.ordbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: #fff; border-top: 1px solid #eee; box-shadow: 0 -1px 6px rgba(0, 0, 0, .04); padding-bottom: env(safe-area-inset-bottom); }
.ordbar-in { max-width: 720px; margin: 0 auto; padding: 10px 14px 8px; }
.ordbar .btn { display: block; width: 100%; text-align: center; }
.ordbar-lnk { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px 14px; margin-top: 8px; font-size: 12.5px; }
.ordbar-lnk a, .ordbar-lnk button { appearance: none; -webkit-appearance: none; background: none; border: 0; margin: 0; padding: 0; font: inherit; line-height: 1.3; color: #8b8388; text-decoration: none; white-space: nowrap; }
.ordbar-lnk button { cursor: pointer; }
.ordbar-lnk a:active, .ordbar-lnk button:active { color: #cf4f79; }
.ordbar-lnk .sep { color: #e3dfe1; }
.ordbar-gap { height: 96px; }

/* 黄金珠宝玉器专区 + 按克计价显示 */
.goldzone { background: linear-gradient(135deg, #fff9ea, #fdf1dc); border: 1px solid #f0dfb6; border-radius: 14px; padding: 15px 16px; margin-bottom: 12px; box-shadow: 0 1px 5px rgba(154, 109, 19, .08); }
.goldzone .gz-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 2.2px; color: #a9812c; }
.goldzone .gz-eyebrow i { display: inline-block; width: 18px; height: 1px; background: #c9a24c; }
.goldzone .gz-title { font-size: 19px; font-weight: 600; letter-spacing: 1.2px; color: #8a6516; margin-top: 3px; }
.goldzone .gz-sub { font-size: 12px; color: #9c7b34; margin-top: 4px; }
.goldzone .gz-sub b { font-size: 14px; color: #b3263b; }
.goldzone .gz-btn { flex: none; display: inline-block; padding: 8px 15px; border-radius: 999px; background: #fff; color: #8a6516; font-size: 13px; font-weight: 600; border: 1px solid #e7d3a3; white-space: nowrap; }
.goldzone .gz-btn i { font-style: normal; margin-left: 3px; }
.goldzone .gcard { box-shadow: 0 1px 3px rgba(154, 109, 19, .09); }
.gramline { margin-top: 6px; font-size: 12.5px; color: #9a6d13; background: #fdf3df; border: 1px solid #f0dfb6; border-radius: 8px; padding: 4px 9px; display: inline-block; }
.grammini { font-size: 11.5px; color: #a9812c; margin-top: 3px; }
/* 黄金成色与售后承诺徽标：金品卡片与详情页共用，必须显眼 */
.goldtag { display: inline-block; margin-top: 5px; padding: 2px 7px; border-radius: 5px; font-size: 11px; font-weight: 600; letter-spacing: .2px; color: #6b3f00; background: linear-gradient(120deg, #ffe9a8, #f7c85c); border: 1px solid #e0ac35; line-height: 1.6; }
.goldtag-lg { display: block; margin-top: 7px; padding: 6px 10px; font-size: 13.5px; text-align: center; border-radius: 8px; }
/* 甄选余量优享专区：首页专区卡 + 专区页说明条，样式只收在这两个作用域里 */
.surpluszone { background: linear-gradient(135deg, #f6f9f7, #eaf2ec); border: 1px solid #d5e5d9; border-radius: 14px; padding: 15px 16px; margin-bottom: 12px; box-shadow: 0 1px 5px rgba(47, 93, 70, .08); }
.surpluszone .sz-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 2.2px; color: #4d7a60; }
.surpluszone .sz-eyebrow i { display: inline-block; width: 18px; height: 1px; background: #6f9d80; }
.surpluszone .sz-title { font-size: 19px; font-weight: 600; letter-spacing: 1.2px; color: #2f5d46; margin-top: 3px; }
.surpluszone .sz-line { font-size: 12.5px; color: #4c6b58; margin-top: 5px; line-height: 1.75; }
.surpluszone .sz-btn { flex: none; display: inline-block; padding: 8px 15px; border-radius: 999px; background: #fff; color: #2f5d46; font-size: 13px; font-weight: 600; border: 1px solid #bfd6c4; white-space: nowrap; }
.surpluszone .sz-btn i { font-style: normal; margin-left: 3px; }
.zonebanner { background: linear-gradient(135deg, #f6f9f7, #eaf2ec); border: 1px solid #d5e5d9; border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; }
.zonebanner .zb-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11px; letter-spacing: 2.2px; color: #4d7a60; }
.zonebanner .zb-eyebrow i { display: inline-block; width: 18px; height: 1px; background: #6f9d80; }
.zonebanner .zb-title { font-size: 18px; font-weight: 600; letter-spacing: 1.2px; color: #2f5d46; margin-top: 3px; }
.zonebanner .zb-line { font-size: 12.5px; color: #4c6b58; margin-top: 5px; line-height: 1.75; }
.zonebanner .zb-line b { color: #b3263b; }
.zonebanner .zb-btn { flex: none; display: inline-block; padding: 8px 15px; border-radius: 999px; background: #fff; color: #2f5d46; font-size: 13px; font-weight: 600; border: 1px solid #bfd6c4; white-space: nowrap; }
.zonebanner .zb-btn i { font-style: normal; margin-left: 3px; }
/* 专区页横幅配色变体：黄金专区金色系（默认绿=甄选/自定义专区） */
.zonebanner.zb-gold { background: linear-gradient(135deg, #fdf8ec, #f7ecd2); border-color: #e6d3a3; }
.zonebanner.zb-gold .zb-eyebrow { color: #9a6d13; }
.zonebanner.zb-gold .zb-eyebrow i { background: #b8902f; }
.zonebanner.zb-gold .zb-title { color: #6b4e0e; }
.zonebanner.zb-gold .zb-line { color: #7a5f22; }
/* 商品列表搜索表单自适应：.input 自带 width:100%，在 flex 里 flex-basis 变 100% 会把按钮挤出容器——
   此处覆盖为纯伸缩布局，按钮永不换行不挤压（业主 2026-10-31） */
.goods-search { display: flex; align-items: center; gap: 8px; }
.goods-search .input.grow { width: auto; flex: 1 1 auto; min-width: 0; }
.goods-search .btn { flex: none; white-space: nowrap; }
/* 分红股东权益：只作用于这两个类，不用全局选择器 */
.share-tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #7a2f3f; background: linear-gradient(120deg, #ffe3ec, #f7c0d2); border: 1px solid #e0a0b4; line-height: 1.6; }
.share-mini { font-size: 10px; font-weight: 600; color: #7a2f3f; background: #ffe3ec; border: 1px solid #e0a0b4; border-radius: 4px; padding: 0 4px; margin-left: 4px; vertical-align: middle; }
.hd-beans { font-size: 22px; font-weight: 700; color: #a02c3f; }
/* 「怎么攒红豆」改用 ul.list.stack（4 字标题 + 说明纵向成块）；
   旧 .hd-how 标签列定宽 2.1em 会把 4 字标题压成 2×2，已随视图一并删除 */
/* 键值两列：左列定宽六字，右列一律从同一位置起，标签不被右侧文案长短挤成忽长忽短的换行 */
.kv > li { align-items: flex-start; }
.kv > li > span:first-child { flex: 0 0 6.4em; width: 6.4em; line-height: 1.6; color: #3b2b31; }
.kv > li > span:last-child { flex: 1 1 auto; }
/* 金额/账号这类短值仍靠右，保持原来「键 … 值」的阅读习惯 */
.kv > li > span.strong { flex: 0 0 auto; text-align: right; }

/* 首页主视觉 */
.hero { position: relative; overflow: hidden; border-radius: 14px; padding: 18px 18px 17px; margin-bottom: 12px; color: #fff; background: linear-gradient(120deg, #e2739a, #cf4f79); box-shadow: 0 3px 12px rgba(207, 79, 121, .26); }
.hero::after { content: ""; position: absolute; right: -52px; top: -66px; width: 196px; height: 196px; border-radius: 50%; background: rgba(255, 255, 255, .10); }
.hero > * { position: relative; z-index: 1; }
.hero-emblem { flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 2px 9px rgba(0, 0, 0, .2); }
.hero-eyebrow { display: flex; align-items: center; gap: 7px; font-size: 11.5px; letter-spacing: 2.6px; opacity: .94; }
.hero-eyebrow i { display: inline-block; width: 20px; height: 1px; background: rgba(255, 255, 255, .8); }
.hero-title { font-size: 22px; font-weight: 600; letter-spacing: 1.6px; margin-top: 2px; }
.hero-sub { font-size: 14px; letter-spacing: .8px; margin-top: 13px; }
.hero-copy { font-size: 12.5px; line-height: 1.9; opacity: .9; margin-top: 4px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.hero-btn { display: inline-block; padding: 9px 19px; border-radius: 999px; background: #fff; color: #c8456e; font-size: 13.5px; font-weight: 600; letter-spacing: .6px; }
.hero-btn i { font-style: normal; margin-left: 5px; }
.hero-btn.ghost { background: rgba(255, 255, 255, .13); color: #fff; border: 1px solid rgba(255, 255, 255, .55); font-weight: 400; }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.hero-tags a { display: inline-block; padding: 2px 9px; border-radius: 9px; font-size: 11.5px; background: rgba(255, 255, 255, .17); color: #fff; border: 1px solid rgba(255, 255, 255, .28); }

.searchbar { background: #fff; padding: 8px 12px; border-bottom: 1px solid #f0ecee; }
.searchbar form { max-width: 720px; margin: 0 auto; display: flex; gap: 8px; }

/* 底部导航 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid #eee; display: flex; z-index: 40; }
.tabbar a { flex: 1; text-align: center; padding: 7px 0 8px; font-size: 11.5px; color: #8b8388; }
.tabbar a.on { color: #d24a72; font-weight: 600; }
.tabbar i { display: block; font-size: 19px; line-height: 1.2; font-style: normal; }
body.has-tabbar { padding-bottom: 62px; }

/* 机制内容未开放提示页（requirePromoter 拦截非推广会员） */
.locked-tip { max-width: 320px; margin: 18vh auto 0; padding: 0 24px; text-align: center; color: #6b6470; }
.locked-tip .locked-ic { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #f4eef2; color: #cf4f79; display: flex; align-items: center; justify-content: center; }
.locked-tip .locked-ic svg { width: 30px; height: 30px; }
.locked-tip h3 { font-size: 16px; color: #2c2730; margin: 0 0 10px; font-weight: 600; }
.locked-tip p { font-size: 13px; line-height: 1.7; margin: 0 0 22px; }
.locked-tip .locked-btn { display: inline-block; padding: 10px 26px; border-radius: 22px; background: #cf4f79; color: #fff; font-size: 14px; text-decoration: none; }
.locked-tip .locked-btn:active { background: #b83f66; }

/* 表单 */
.fr { margin-bottom: 13px; }
.fr > label { display: block; font-size: 13.5px; color: #4a4347; margin-bottom: 5px; }
.fr label em { color: #e0426b; font-style: normal; margin-left: 2px; }
.input, .textarea, .select { width: 100%; border: 1px solid #e6e1e4; border-radius: 9px; padding: 10px 12px; background: #fcfbfc; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: #e2739a; background: #fff; }
.textarea { min-height: 84px; resize: vertical; line-height: 1.6; }
.btn { display: inline-block; border: 0; border-radius: 9px; padding: 11px 22px; background: linear-gradient(120deg, #e2739a, #cf4f79); color: #fff; cursor: pointer; letter-spacing: .5px; white-space: nowrap; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
/* 加购按钮状态（P1③⑥：防重复点击 + 成功反馈） */
.btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-added { background: #2f9e5e !important; border-color: #2f9e5e !important; color: #fff !important; }
.btn.block { display: block; width: 100%; text-align: center; }
.btn.lg { padding: 13px 26px; font-size: 16px; }
.btn.ghost { background: #fff; color: #c8547a; border: 1px solid #e6b9c9; }
.btn.grey { background: #f1eef0; color: #6a6166; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 7px; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; }

/* 提示 */
.alert { border-radius: 9px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; line-height: 1.6; }
.alert-ok { background: #eefaf1; border: 1px solid #c9ecd6; color: #1f7a42; }
.alert-err { background: #fff3f4; border: 1px solid #f6cdd3; color: #b6303f; }
.alert-warn { background: #fff8e9; border: 1px solid #f2dfb6; color: #8a6516; }
.alert-info { background: #f3f6fd; border: 1px solid #d6e2f7; color: #3a5a8c; }
.help { background: #fbf7f8; border: 1px dashed #e8d2da; border-radius: 9px; padding: 11px 13px; font-size: 12.5px; color: #7d6f75; line-height: 1.8; }

/* 数字卡 */
.nums { display: flex; flex-wrap: wrap; gap: 8px; }
.num-box { flex: 1 1 30%; min-width: 96px; background: linear-gradient(160deg, #fff6f8, #fdeef2); border: 1px solid #f4dbe3; border-radius: 10px; padding: 12px; }
.num-box span { display: block; font-size: 12px; color: #a0758068; color: #a1757f; margin-bottom: 5px; }
.num-box b { font-size: 20px; color: #c8425f; font-weight: 600; }
.num-box b i { font-style: normal; font-size: 11.5px; color: #b98d97; margin-left: 3px; }

/* 列表 */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f3f0f1; font-size: 14px; }
.list > li:last-child { border-bottom: 0; }
.list a.go::after { content: "›"; color: #c9c1c4; margin-left: 6px; font-size: 17px; }
/* 标签+长说明行用 stack：space-between 会把 2 字标签压到逐字断行（实测 360 屏差 1px 就碎）。
   ul. 前缀是为了压过 .my-fund .list li 这类「组件 + .list + li」的 (0,2,1) 规则。 */
ul.list.stack > li { display: block; }
ul.list.stack > li > .k { display: block; font-size: 13.5px; font-weight: 600; color: #373134; }
ul.list.stack > li > .v { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.6; color: #948c90; }
.empty { padding: 26px 10px; text-align: center; color: #a89fa3; font-size: 13.5px; }

/* 商品 */
.goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gcard { background: #fff; border-radius: 11px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.05); display: flex; flex-direction: column; color: inherit; }
.gcard .ph { aspect-ratio: 1/1; background: #f4f1f2; display: flex; align-items: center; justify-content: center; color: #cfc6ca; font-size: 13px; overflow: hidden; }
.gcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.gcard .bd { padding: 8px 10px 11px; display: flex; flex-direction: column; flex: 1 1 auto; }
.gcard .t { font-size: 13.5px; line-height: 1.45; min-height: 2.9em; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.gcard .p { margin-top: 5px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 9px; font-size: 11.5px; background: #fbe9ef; color: #c8547a; white-space: nowrap; }
.badge.grey { background: #f1eef0; color: #7d7377; }
.badge.green { background: #e9f7ee; color: #1f7a42; }
.badge.red { background: #fdecee; color: #b6303f; }
.badge.blue { background: #e8f1fd; color: #1d5fb8; }
.badge.orange { background: #fdf1e2; color: #b25c0e; }
.badge.gold { background: #fdf3df; color: #9a6d13; }

/* 表格（后台/操作台） */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { padding: 9px 8px; border-bottom: 1px solid #f1eef0; text-align: left; }
.tbl th { background: #faf7f8; color: #7d7377; font-weight: 600; white-space: nowrap; }
.tbl td.n { text-align: right; font-variant-numeric: tabular-nums; }
/* 标题列必须给下限：auto 布局里它是唯一能逐字折行的列，窄屏会被压到 min-content（实测 320 屏只剩 27px，六个字断三行）。
   8.5em ≈ 13.5px 字号下整排放得下 6 个字；其余列照常 nowrap，超宽交给 .scrollx 横向滚。 */
.tbl td.t, .tbl th.t { min-width: 8.5em; }
/* 列宽是零和的：只钉标题列，同表的短列会接手被挤（实测「普通·一口价」断 6 行、「200.00」断 2 行）。
   .nw 让除标题外的列都按自然宽铺开——这类操作台表格本来就靠 .scrollx 横滚看，滚得比逐字断行可预期。 */
.tbl.nw td:not(.t), .tbl.nw th:not(.t) { white-space: nowrap; }
/* 标题列里的「× 数量 单位」是一个语义块，折行时不能把单位单独甩到下一行 */
.tbl td .nb { white-space: nowrap; }
.tbl tr:hover td { background: #fdfafb; }
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 14px 0; padding-top: 12px; border-top: 1px solid #f0ebee; font-size: 13.5px; color: #6d646a; }
.pager .muted { margin-right: auto; color: #8b8187; }
.pager a { padding: 6px 12px; border: 1px solid #e7e2e5; border-radius: 7px; background: #fff; white-space: nowrap; }
.pager a.dis { color: #cfc8cb; pointer-events: none; }
.pager a.on { background: #cf4f79; border-color: #cf4f79; color: #fff; font-weight: 600; }
.pager .pager-size { margin-left: auto; }
.pager .pager-size-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.pager .pager-select { height: 32px; padding: 0 28px 0 10px; border: 1px solid #e7e2e5; border-radius: 7px; background: #fff; font-size: 13px; color: #4c4448; }
.pager .pager-links { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* 后台布局 */
.adm { display: flex; min-height: 100vh; background: #f4f2f4; }
.adm-side { width: 208px; flex: 0 0 208px; background: #2f2430; color: #d9ccd2; }
.adm-side .logo { padding: 16px 18px; font-size: 16px; font-weight: 600; color: #fff; border-bottom: 1px solid #40313f; }
.adm-side .logo small { display: block; font-size: 11.5px; color: #b79aa6; font-weight: 400; }
.adm-nav { padding: 8px 0 30px; }
.adm-nav .grp { padding: 12px 18px 5px; font-size: 11.5px; color: #8f7a86; letter-spacing: 1px; }
.adm-nav a { display: block; padding: 8px 18px; font-size: 13.5px; color: #d9ccd2; }
.adm-nav a:hover { background: #3c2e3d; color: #fff; }
.adm-nav a.on { background: #46344a; color: #fff; border-left: 3px solid #e2739a; padding-left: 15px; }
.adm-main { flex: 1 1 auto; min-width: 0; }
.adm-head { background: #fff; padding: 11px 16px; border-bottom: 1px solid #ece7ea; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #6d646a; }
.adm-body { padding: 14px 16px 30px; }
.adm .card { max-width: none; }
@media (max-width: 860px) {
    .adm { flex-direction: column; }
    .adm-side { width: 100%; flex: none; }
    .adm-nav { display: flex; overflow-x: auto; padding: 6px 8px; }
    .adm-nav .grp { display: none; }
    .adm-nav a { white-space: nowrap; padding: 8px 12px; border-left: 0 !important; }
}

/* 操作台（报单中心） */
.ctr-top { background: #fff; border-bottom: 1px solid #eee; padding: 11px 14px; }
.ctr-top-in { max-width: 900px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.ctr-nav { background: #fff; border-bottom: 1px solid #eee; }
.ctr-nav-in { max-width: 900px; margin: 0 auto; display: flex; overflow-x: auto; }
.ctr-nav a { padding: 10px 16px; font-size: 14px; color: #6f666b; white-space: nowrap; border-bottom: 2px solid transparent; }
.ctr-nav a.on { color: #c8547a; font-weight: 600; border-bottom-color: #e2739a; }
.ctr-wrap { max-width: 900px; margin: 0 auto; padding: 14px; }

/* 对话窗口 */
.modal { display: none; position: fixed; inset: 0; z-index: 90; background: rgba(35,22,28,.52); }
.modal.on { display: flex; align-items: center; justify-content: center; padding: 14px; }
.modal-panel { width: 100%; max-width: 660px; max-height: 94vh; display: flex; flex-direction: column; background: #f6f5f7; border-radius: 13px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; padding: 13px 16px; border-bottom: 1px solid #f0ecee; }
.modal-head b { font-size: 16px; color: #c8547a; }
.modal-head b small { font-size: 12px; color: #b79aa6; font-weight: 400; margin-left: 8px; }
.modal-x { border: 0; background: none; font-size: 26px; line-height: 1; color: #a89fa3; cursor: pointer; }
.modal-body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; padding: 11px 16px; border-top: 1px solid #f0ecee; }
.steps { display: flex; background: #fff; border-bottom: 1px solid #f0ecee; }
.step { flex: 1; text-align: center; font-size: 13px; color: #a89fa3; padding: 9px 4px; }
.step i { display: inline-block; width: 18px; height: 18px; line-height: 18px; border-radius: 50%; background: #e7e2e5; color: #fff; font-size: 12px; font-style: normal; margin-right: 4px; }
.step.on { color: #c8547a; font-weight: 600; }
.step.on i { background: #e2739a; }
.pane { display: none; }
.pane.on { display: block; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tab { border: 1px solid #e6e1e4; background: #fff; color: #6f666b; border-radius: 20px; padding: 7px 18px; font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.tab.on { border-color: #e2739a; color: #c8547a; background: #fff5f8; font-weight: 600; }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.hits { margin-top: 10px; background: #fff; border: 1px solid #eee; border-radius: 9px; max-height: 240px; overflow-y: auto; }
.hit { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-bottom: 1px solid #f5f2f3; font-size: 13.5px; cursor: pointer; }
.hit:last-child { border-bottom: 0; }
.hit:hover { background: #fff6f8; }
.hit.on { background: #fbeef3; cursor: default; }
.hit b { font-weight: 600; }
.hit span { color: #9a9095; font-size: 12.5px; }
.hit em { font-style: normal; color: #c8547a; font-size: 12.5px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: #fbeef3; border: 1px solid #f2d7e0; color: #a04f6c; border-radius: 14px; padding: 4px 10px; font-size: 12.5px; white-space: nowrap; }
.chip u { text-decoration: none; cursor: pointer; color: #cf4f79; font-size: 14px; line-height: 1; }
.chip.bad { background: #fdecee; border-color: #f6ccd2; color: #b6303f; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.quick button { flex: 1 1 76px; border: 1px solid #e6e1e4; background: #fff; border-radius: 8px; padding: 9px 0; color: #6f666b; cursor: pointer; white-space: nowrap; }
.quick button.on { border-color: #e2739a; background: #fff5f8; color: #c8547a; font-weight: 600; }
.sum { display: flex; flex-wrap: wrap; gap: 8px; }
.sum > div { flex: 1 1 108px; background: #fdf7f9; border: 1px solid #f2dfe5; border-radius: 9px; padding: 10px 12px; text-align: center; }
.sum span { display: block; font-size: 12px; color: #a1757f; margin-bottom: 4px; }
.sum b { font-size: 18px; color: #c8425f; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #55494e; line-height: 1.7; margin: 4px 0 14px; }
.check input { margin-top: 4px; }
.done { display: none; text-align: center; padding: 26px 12px; }
.done.on { display: block; }
.done .ico { width: 56px; height: 56px; line-height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #eefaf1; color: #1f7a42; font-size: 28px; }
@media (max-width: 560px) {
    .modal.on { padding: 0; align-items: flex-end; }
    .modal-panel { max-width: none; max-height: 100vh; height: 100vh; border-radius: 0; }
    .goods-grid { gap: 8px; }
}

/* 打印 */
@media print {
    .topbar, .tabbar, .adm-side, .adm-head, .ctr-top, .ctr-nav, .btn, .pager, .no-print { display: none !important; }
    body, .adm { background: #fff; display: block; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    .wrap, .adm-body, .ctr-wrap { max-width: none; padding: 0; }
}

/* 窄屏：数量步进器与两个大按钮分两行，避免挤成折字 */
@media (max-width: 400px) {
    .buybar-in { flex-wrap: wrap; row-gap: 7px; }
    .buybar .qty { order: 2; }
    .buybar .side-promo { order: 3; margin-left: auto; }
    .buybar .btn { flex: 1 1 calc(50% - 4px); order: 4; }
    .buybar-spacer { height: 112px; }
}

/* 支付渠道按钮色（order/pay 微信/支付宝按钮）——并自仓库版 */
.btn.wx { background: #07C160; }
.btn.ali { background: #1677FF; }

/* ============================================================
   「我的」页 v4 重设计（my-* 作用域段，仅 user/index 使用）
   设计令牌全部沿用上文既有值；窄屏自适应规则见段尾
   ============================================================ */

/* ① 用户主卡：恢复原版浅粉背景（原卡 #ffe7ee→#fff7f2 / 边框 #f7dbe4），深色文字；高度 ~96px */
.my-hero { position: relative; border-radius: 12px; padding: 18px 16px; color: #2f2b2d;
  background: linear-gradient(120deg, #ffe7ee, #fff7f2); border: 1px solid #f7dbe4; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); margin-bottom: 12px; }
.my-hero .urow { display: flex; align-items: center; gap: 14px; }
/* 头像：白底 + 系统主色字（与顶栏徽标 emblem 同款风格） */
.my-avatar { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; background: #fff; color: #cf4f79;
  display: flex; align-items: center; justify-content: center; font-size: 23px; font-weight: 700; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); }
.my-uinfo { flex: 1 1 auto; min-width: 0; }
.my-uname { font-size: 18px; font-weight: 600; letter-spacing: .5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; color: #373134; }
.my-uname .pill { flex: none; }
.my-umobile { font-size: 12.5px; color: #948c90; margin-top: 4px; }
.my-level { flex: none; text-align: right; }
.my-level .lv { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #f0d6df; font-size: 13px; font-weight: 600; letter-spacing: 1px; color: #c8547a; }
.my-level .lv svg { width: 12px; height: 12px; }
.my-level .partner { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(120deg, #ffe9a8, #f7c85c); color: #6b3f00; border: 1px solid #e0ac35; font-size: 11.5px; font-weight: 600; }
/* 实名徽标：沿用系统 badge 配色（绿=已实名 / 红=未实名） */
.my-hero .pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 400; }
.my-hero .pill.ok { background: #e9f7ee; border: 1px solid #c9ecd6; color: #1f7a42; }
.my-hero .pill.no { background: #fdecee; border: 1px solid #f6cdd3; color: #b6303f; }
.my-hero .pill i { width: 6px; height: 6px; border-radius: 50%; }
.my-hero .pill.ok i { background: #1f7a42; }
.my-hero .pill.no i { background: #b6303f; }
/* 未实名提醒条（浅粉卡内白底虚线条，跳 user/verify 不变） */
.my-verify { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px;
  background: #fff; border: 1px dashed #e6b9c9; border-radius: 10px; padding: 9px 12px; font-size: 13px; color: #6a6166; }
.my-verify .go { flex: none; background: linear-gradient(120deg, #e2739a, #cf4f79); color: #fff; font-weight: 600; border-radius: 999px; padding: 6px 14px; font-size: 12.5px; }

/* 分区标题（竖条 + 标题；可折叠行整行可点 + chevron 旋转） */
.my-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 2px 9px; }
.my-sec h3 { margin: 0; font-size: 15px; font-weight: 600; color: #373134; display: flex; align-items: center; gap: 7px; }
.my-sec h3 i { width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #e2739a, #cf4f79); }
.my-sec .muted { font-size: 11.5px; }
.my-sec .chev { flex: none; width: 16px; height: 16px; color: #b98d97; transition: transform .28s ease; align-self: center; }

/* ② 我的资产：头体合一白卡（收起后只剩白色卡片头）；折叠动效 grid-template-rows 0fr↔1fr
   【修复】JS 切换 closed 类，与本段 .collapse.closed 对应（此前 JS 切 on / CSS 收 closed 类名不匹配导致点击无效） */
.my-assetwrap { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); margin-bottom: 12px; overflow: hidden; }
.aw-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px;
  cursor: pointer; user-select: none; }
.aw-head:active { background: #fdfafb; }
.aw-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: #373134; display: flex; align-items: center; gap: 7px; }
.aw-head h3 i { width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, #e2739a, #cf4f79); }
.aw-head .r { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #948c90; white-space: nowrap; }
.aw-head .chev { flex: none; width: 16px; height: 16px; color: #b98d97; transition: transform .28s ease; }
.aw-head[aria-expanded="false"] .chev { transform: rotate(180deg); }
.aw-body { border-top: 1px solid #f3f0f1; padding: 13px 14px 13px; }
.collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease, opacity .26s ease; }
.collapse > .cin { overflow: hidden; min-height: 0; }
.collapse.closed { grid-template-rows: 0fr; opacity: 0; }
/* 卡内内容（原 my-asset 壳并入白卡，去掉自带底色圆角） */
.aw-body .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.my-wallet { position: relative; border-radius: 10px; padding: 11px 13px 12px; background: linear-gradient(160deg, #fff6f8, #fdeef2); border: 1px solid #f4dbe3; min-width: 0; }
.my-wallet.u { background: linear-gradient(160deg, #faf8fb, #f4eff5); border-color: #eadfe6; }
.my-wallet span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #a1757f; }
.my-wallet span svg { flex: none; }
.my-wallet b { display: block; margin-top: 4px; font-size: clamp(19px, 5.4vw, 21px); font-weight: 600; color: #c8425f; font-variant-numeric: tabular-nums; }
.my-wallet b i { font-style: normal; font-size: 11.5px; color: #b98d97; margin-left: 3px; font-weight: 400; }
.my-stats { display: flex; margin-top: 11px; border-top: 1px dashed #f0e3e8; padding-top: 10px; }
.my-stats > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.my-stats b { font-size: 17px; color: #c8425f; font-variant-numeric: tabular-nums; }
.my-stats b i { font-style: normal; font-size: 11px; color: #b98d97; margin-left: 2px; }
.my-stats span { font-size: 11.5px; color: #a1757f; }
.my-stats > div + div { border-left: 1px solid #f3e6eb; }
.my-ops { display: flex; gap: 9px; margin-top: 11px; }
.my-ops a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px;
  border-radius: 9px; font-size: clamp(13px, 3.6vw, 14px); letter-spacing: .5px; white-space: nowrap; }
.my-ops a:active { transform: translateY(1px); }
.my-ops .main { background: linear-gradient(120deg, #e2739a, #cf4f79); color: #fff; font-weight: 600; box-shadow: 0 2px 8px rgba(207, 79, 121, .3); }
.my-ops .ghost { background: #fff; color: #c8547a; border: 1px solid #e6b9c9; }

/* ③ 创业基金卡（原卡内容原样） */
.my-fund { background: #fff; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); }
.my-fund h3 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #373134; display: flex; align-items: center; gap: 7px; }
.my-fund h3 .ic { flex: none; width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(160deg, #fdf3df, #fbe9c8);
  color: #a9812c; display: flex; align-items: center; justify-content: center; }
.my-fund h3 .ic svg { width: 12px; height: 12px; }
.my-fund .list { list-style: none; margin: 0; padding: 0; }
.my-fund .list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f3f0f1; font-size: 14px; }
.my-fund .list li:last-child { border-bottom: 0; }
/* 右列容器：拉伸的是透明容器（text-align 右对齐），徽标在其内 inline-block 收缩内容宽
   【结构性修复】不再用 li > span:last-child 拉伸——其特异性 (0,2,2) 压过 .when 的 (0,2,0)，
   导致徽标被 flex 撑满后半行（v=19 修复无效的根因） */
.my-fund .list li > .col-r { flex: 1 1 auto; min-width: 0; text-align: right; }
/* 左标签固定不收缩，长规则文本在右列内右对齐换行（与 .col-r 配对，水平对齐在右） */
.my-fund .list li > .k { flex: none; white-space: nowrap; }
.my-fund .when { display: inline-block; max-width: 100%; padding: 3px 9px; border-radius: 8px; font-size: 12px;
  font-weight: 600; line-height: 1.5; text-align: center; overflow-wrap: anywhere; }
.my-fund .when.ok { background: #eefaf1; border: 1px solid #c9ecd6; color: #1f7a42; }
.my-fund .when.wait { background: #fdf3df; border: 1px solid #f0dfb6; color: #9a6d13; }

/* ④⑤ 宫格区（窄屏字号自适应；长标签允许两行居中） */
.my-grid { background: #fff; border-radius: 12px; padding: 8px 4px 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
  display: grid; grid-template-columns: repeat(4, 1fr); }
.my-grid a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 11px 2px 7px; min-width: 0; }
.my-grid a:active .ic { transform: scale(.92); }
.my-grid .ic { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; transition: transform .12s; }
.my-grid .ic svg { width: 21px; height: 21px; }
.my-grid .t { font-size: clamp(11px, 3.1vw, 12px); color: #4a4347; line-height: 1.35; text-align: center; overflow-wrap: anywhere; }
.my-grid .ic.p1 { background: linear-gradient(160deg, #fff6f8, #fdeef2); color: #cf4f79; }
.my-grid .ic.p2 { background: linear-gradient(160deg, #fdf3df, #fbe9c8); color: #a9812c; }
.my-grid .ic.p3 { background: linear-gradient(160deg, #eefaf1, #dcf3e4); color: #1f7a42; }
.my-grid .ic.p4 { background: linear-gradient(160deg, #f3f6fd, #e2ebfa); color: #3a5a8c; }
.my-grid .ic.p5 { background: linear-gradient(160deg, #fff0e9, #fde4d5); color: #b25c0e; }
.my-grid .ic.p6 { background: linear-gradient(160deg, #f6f2fc, #ece2f8); color: #6d4fa1; }

/* ⑥ 更多服务（图标列表；右侧说明窄屏自动换行不挤压标题） */
.my-list { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0, 0, 0, .05); padding: 2px 14px; }
.my-list a { display: flex; align-items: center; gap: 12px; padding: 12.5px 0; border-bottom: 1px solid #f3f0f1; }
.my-list a:last-child { border-bottom: 0; }
.my-list .ic { flex: none; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; }
.my-list .ic svg { width: 17px; height: 17px; }
.my-list .t { flex: 0 0 auto; min-width: 0; font-size: 14px; color: #373134; }
.my-list .r { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 6px;
  flex-wrap: wrap; font-size: 12px; color: #948c90; text-align: right; }
.my-list .r::after { content: "›"; color: #c9c1c4; font-size: 17px; margin-left: 2px; }
.my-list .unread { flex: none; min-width: 17px; height: 17px; line-height: 17px; border-radius: 9px; background: #e0426b; color: #fff;
  font-size: 10.5px; font-weight: 600; text-align: center; padding: 0 5px; }
.my-list .ic.p1 { background: linear-gradient(160deg, #fff6f8, #fdeef2); color: #cf4f79; }
.my-list .ic.p2 { background: linear-gradient(160deg, #fdf3df, #fbe9c8); color: #a9812c; }
.my-list .ic.p3 { background: linear-gradient(160deg, #eefaf1, #dcf3e4); color: #1f7a42; }
.my-list .ic.p4 { background: linear-gradient(160deg, #f3f6fd, #e2ebfa); color: #3a5a8c; }
.my-list .ic.p5 { background: linear-gradient(160deg, #fff0e9, #fde4d5); color: #b25c0e; }
.my-list .ic.p6 { background: linear-gradient(160deg, #f6f2fc, #ece2f8); color: #6d4fa1; }

/* ⑦ 退出登录 */
.my-logout { display: block; text-align: center; background: #fff; border: 1px solid #f6cdd3; color: #b6303f;
  border-radius: 12px; padding: 12px 0; font-size: 14px; letter-spacing: 2px; margin: 14px 0 6px; }
.my-logout:active { background: #fff5f7; }

/* 「我的」页窄屏自适应（拥挤换行防护）：
   - 关键字号随视口微缩（宫格/资产数字/按钮已用 clamp）
   - ≤360px：进一步收紧行高与间距，长文案列允许换行 */
@media (max-width: 360px) {
    .my-hero { padding: 16px 13px; }
    .my-avatar { flex-basis: 52px; width: 52px; height: 52px; font-size: 21px; }
    .my-uname { font-size: 17px; }
    .my-ops a { height: 38px; letter-spacing: 0; }
    .my-fundtip, .my-fund .list li { font-size: 13px; }
    .my-list a { gap: 9px; }
}
a:focus-visible, [role="button"]:focus-visible { outline: 2px solid #cf4f79; outline-offset: 2px; border-radius: 8px; }

/* ============================================================
   逛商品（工具页）与专区（场景页）
   业主 2026-11-01：两个页面分开——逛商品只做检索，专区自有主题横幅与内导航。
   原位筛选的选中态一律「浅底深字」的品牌玫瑰，不做大红块，避免整屏噪声。
   ============================================================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 页头（2026-11-01 方案C米白轻奢改版：逛商品页已去掉大标题，这里保留类供专区页复用） */
.browse-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding: 2px 0 11px; }
.browse-head h1 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: .5px; color: #33292e; }
.browse-head p { margin: 3px 0 0; font-size: 12.5px; color: #a3969d; letter-spacing: .3px; }
.browse-catbtn { flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 38px; padding: 0 13px;
  border: 1px solid #e6dccd; border-radius: 999px; background: #faf9f7; color: #8a6a2f; font-size: 12.5px; }
.browse-catbtn:active { background: #f2efe9; }
.browse-catbtn svg { width: 15px; height: 15px; }

/* 搜索：暖米白胶囊 + 金点提交钮（方案C） */
.browse-search { display: flex; align-items: center; gap: 9px; background: #f0efec;
  border-radius: 999px; padding: 5px 5px 5px 15px; }
.bs-icon { flex: none; width: 17px; height: 17px; color: #a8aeb7; }
.bs-input { flex: 1 1 auto; min-width: 0; height: 36px; border: 0; background: none; font-size: 14px; color: #23262b; }
.bs-input:focus { outline: none; }
.bs-input::placeholder { color: #a8aeb7; }
.bs-go { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #d8b980, #b8934f); display: flex; align-items: center; justify-content: center; }
.bs-go:active { opacity: .85; }
.bs-go svg { width: 15px; height: 15px; }

/* 逛商品页画布：满宽暖米白（方案C氛围） */
.browse { margin: 0 calc(50% - 50vw); padding: 8px calc(50vw - 50%) 20px; background: #faf9f7; }

/* 筛选条：滚动时吸顶，用户随时能改条件（专区页同款） */
.browse-bar, .zbar { position: sticky; top: 0; z-index: 20; margin-top: 8px; padding: 7px 0 8px;
  background: rgba(250,249,247,.92); -webkit-backdrop-filter: saturate(1.3) blur(8px); backdrop-filter: saturate(1.3) blur(8px); }
.bchips { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bchips::-webkit-scrollbar { display: none; }
.bchip { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 2px 10px; white-space: nowrap;
  border: 0; background: none; color: #8d939c; font-size: 15px; letter-spacing: .5px; position: relative; }
.bchip.on { color: #16181c; font-weight: 700; }
.bchip.on::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 2px;
  width: 16px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #d8b980, #b8934f); }
.bchip.ghost { color: #8d939c; }
.bsub { display: flex; gap: 8px; overflow-x: auto; margin-top: 4px; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bsub::-webkit-scrollbar { display: none; }
.bsub[hidden] { display: none; }
.schip { flex: none; display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; white-space: nowrap;
  border-radius: 999px; background: #f0efec; color: #7d838c; font-size: 12px; }
.schip.on { background: #16181c; color: #f5e7c8; font-weight: 600; }
.bmeta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; flex-wrap: wrap; }
.bcount { font-size: 12px; color: #a8aeb7; font-variant-numeric: tabular-nums; }
.bsorts { display: flex; gap: 16px; margin-left: auto; }
.bsort { display: inline-flex; align-items: center; min-height: 34px; font-size: 12.5px; color: #8d939c; }
.bsort.on { color: #16181c; font-weight: 700; }

/* 视图切换（逛商品页）：排序行右侧双图标胶囊，选中态白底浮起 */
.vtoggle { flex: none; display: flex; gap: 4px; margin-left: 8px; padding: 3px; border-radius: 999px; background: #f0efec; }
.vbtn { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 24px;
  border-radius: 999px; color: #9a938e; transition: transform .12s ease; }
.vbtn svg { width: 14px; height: 14px; }
.vbtn.on { background: #fff; color: #16181c; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.vbtn:active { transform: scale(.92); }

/* 列表片段（原位替换的那一块） */
.browse-list { margin-top: 4px; }
.board-more { display: block; margin: 12px 0 0; padding: 12px 0; text-align: center; border: 1px solid #e7e5e0;
  border-radius: 999px; background: #fff; color: #6d737c; font-size: 13.5px; font-weight: 600; }
.board-more.dis { color: #b9bec6; pointer-events: none; }
.board-hint { margin-top: 7px; text-align: center; font-size: 12px; color: #a8aeb7; font-variant-numeric: tabular-nums; }
.board-done { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 18px 0 4px;
  font-size: 12px; color: #b9bec6; letter-spacing: .5px; }
.board-done::before, .board-done::after { content: ""; width: 32px; height: 1px; background: #e7e5e0; }
.board-empty { padding: 30px 14px; text-align: center; background: #fff; border: 1px dashed #e7e5e0; border-radius: 16px; }
.board-empty b { display: block; font-size: 14.5px; color: #23262b; margin-bottom: 5px; }
.board-empty span { display: block; font-size: 12.5px; color: #a8aeb7; margin-bottom: 12px; }
.board-cross { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 13px 14px;
  border: 1px solid #efece5; border-radius: 14px; background: #fff; box-shadow: 0 1px 4px rgba(40,36,28,.04); font-size: 13px; color: #6d737c; }
.board-cross b { flex: none; color: #8a6a2f; font-weight: 600; }

/* 方案C卡片：逛商品页作用域覆盖（首页/专区卡片不受影响） */
.browse .gcard { border-radius: 20px; box-shadow: 0 6px 18px rgba(40,36,28,.05); }
.browse .gcard .bd { padding: 10px 12px 13px; }
.browse .gcard .t { font-size: 13.5px; color: #23262b; }
.browse .gcard .price { color: #16181c; font-weight: 800; font-size: 19px; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.browse .gcard .price small { font-size: 12px; font-weight: 700; color: #b8934f; margin-right: 1px; }
.browse .gcard .price .share-mini { color: #8a6a2f; font-weight: 500; margin-left: 4px; }
.browse .gcard .muted { font-size: 11px; color: #a8aeb7; }
.browse .gcard:active { transform: scale(.985); }

/* 列表布局（逛商品页 v=list）：单列左图右文，一屏 6 件左右，定向找货心智（业主 2026-11-01）
   舒适度版：卡距/内距 12px、图 104px、标题 14px、克重行 12px、价格 18px，行间留白拉开呼吸感 */
.goods-grid.is-list { display: flex; flex-direction: column; gap: 12px; }
.browse .goods-grid.is-list .gcard { display: flex; flex-direction: row; align-items: stretch; gap: 12px; padding: 12px; border-radius: 18px; }
.browse .goods-grid.is-list .gcard .ph { flex: 0 0 104px; width: 104px; height: 104px; border-radius: 14px; }
.browse .goods-grid.is-list .gcard .bd { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; padding: 2px 2px 2px 0; }
.browse .goods-grid.is-list .gcard .t { -webkit-line-clamp: 2; min-height: 0; font-size: 14px; line-height: 1.5; }
.browse .goods-grid.is-list .gcard .grammini { margin-top: 4px; font-size: 12px; }
.browse .goods-grid.is-list .gcard .p { margin-top: auto; padding-top: 8px; }
.browse .goods-grid.is-list .gcard .price { font-size: 18px; }
.browse .goods-grid.is-list .gcard .muted { font-size: 11.5px; }
/* 长徽标列表态放不下：黄金售后承诺行隐藏（克重行已传达黄金属性），积分徽标短、保留 */
.browse .goods-grid.is-list .gcard .goldtag { display: none; }

/* 骨架屏 */
.gcard.sk .ph { background: linear-gradient(90deg, #f2eff1 25%, #e9e5e8 37%, #f2eff1 63%); background-size: 400% 100%; animation: bmShimmer 1.2s ease-in-out infinite; }
.gcard.sk .t, .gcard.sk .p { height: 12px; min-height: 0; border-radius: 6px; color: transparent;
  background: linear-gradient(90deg, #f2eff1 25%, #e9e5e8 37%, #f2eff1 63%); background-size: 400% 100%; animation: bmShimmer 1.2s ease-in-out infinite; }
.gcard.sk .p { margin-top: 9px; height: 15px; }
@keyframes bmShimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* 分类抽屉（底部弹层）：JS 走 .sheet.on，关 JS 时靠 :target 照样能开 */
.sheet { display: none; position: fixed; inset: 0; z-index: 80; background: rgba(35,22,28,.45); }
.sheet.on, .sheet:target { display: flex; align-items: flex-end; justify-content: center; }
.sheet-panel { width: 100%; max-width: 560px; max-height: 78vh; display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 16px 16px 0 0; animation: bmSheetUp .22s ease-out; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid #f1ecee; }
.sheet-head b { font-size: 15.5px; color: #373134; }
.sheet-x { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  margin: -6px -8px 0 0; font-size: 25px; line-height: 1; color: #a89fa3; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px 16px 22px; }
.sheet-note { margin: 4px 0 0; font-size: 12px; color: #a89fa3; line-height: 1.7; }
.cat-group { margin-bottom: 14px; }
.cat-group h4 { margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: #3f373c; }
.cat-group h4 a { color: #c8547a; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cat-grid a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 6px; text-align: center;
  line-height: 1.3; border-radius: 9px; background: #f7f4f6; color: #5f565b; font-size: 12.5px; }
.cat-grid a:active, .cat-grid a.on { background: #f7dbe6; color: #a83252; font-weight: 600; }
.cat-all { display: flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid #f2d5e0;
  border-radius: 10px; background: #fff5f8; color: #c8547a; font-size: 13.5px; font-weight: 600; }
html.bm-noscroll, html.bm-noscroll body { overflow: hidden; }
@keyframes bmSheetUp { from { transform: translateY(16px); opacity: .5; } to { transform: none; opacity: 1; } }

/* 专区页「首页色延续」（业主 2026-11-01）：页面底铺专区色浅 wash（内联注入，向下淡出），
   头卡 = 首页同款渐变（内联 bg）上叠黑渐变「加深一档」，介绍文案收进卡内（白字暖金强调），
   下方功能区回归米白。加深幅度固定小值，深色键（曜石黑/咖啡棕）大面积也不显重 */
.page-wash { margin: 10px 0 0; padding: 1px 12px 10px; }
.zh-band { position: relative; overflow: hidden; border-radius: 18px; padding: 15px 16px 13px; color: #fff; box-shadow: 0 2px 10px rgba(31,26,20,.14); }
.zh-band::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.22)); }
.zh-band > * { position: relative; }
.zh-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 1px; opacity: .78; }
.zh-eyebrow i { display: block; width: 14px; height: 2px; border-radius: 2px; background: currentColor; opacity: .75; }
.zh-title { margin: 6px 0 0; font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.zh-stamp { position: absolute; right: 6px; top: -4px; font-size: 54px; line-height: 1; opacity: .16; transform: rotate(8deg); }
.zh-hero-div { height: 1px; background: rgba(255,255,255,.2); margin: 11px 0 9px; }
.zh-lines { font-size: 12px; color: rgba(255,255,255,.85); line-height: 1.85; }
.zh-lines p { margin: 0 0 2px; }
.zh-lines b { color: #ffe9b8; font-variant-numeric: tabular-nums; }
.zh-mark { position: absolute; right: 14px; bottom: 10px; font-size: 10px; letter-spacing: 2px; color: #fff; opacity: .45; }
/* 专区页吸顶毛玻璃条（业主 2026-11-01）：分类+排序整块收进同一张毛玻璃浮层，
   替代原「半透明米白吸顶底 + 白卡」的双底色卡中卡；滚动时内容从玻璃后透出模糊。
   top:2px 让浮层吸顶时几乎贴住顶部（业主 2026-11-04 定 1~2px），透明度 0.68 给浅色内容滚过时的可读性留余量。
   选中条仍用专区主题色（--zc 内联注入），选中文字黑色加重不重复染色。
   作用域限 .zpage，逛商品页分类不受影响 */
.zpage .zbar {
    top: 2px;
    background: rgba(255,255,255,.68);
    -webkit-backdrop-filter: saturate(1.5) blur(12px);
    backdrop-filter: saturate(1.5) blur(12px);
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(31,26,20,.06);
    padding: 2px 10px 6px;
}
.zpage .bchips { gap: 22px; padding: 0 5px; }
/* 分类可横滑时右缘 24px 白色渐隐：柔化圆角处裁切，同时暗示右侧还有分类 */
.zpage .bchips {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}
.zpage .bchip.on::after { background: var(--zc, #b8934f); }

/* 专区页搜索框（2026-11-04）：沿用逛商品 .browse-search 白底胶囊，
   边框/聚焦态/按钮取专区主题色 --zc（首页色延续）。作用域限 .zpage，逛商品不受影响 */
.zpage .zsearch { margin-top: 6px; background: #fff; border: 1.5px solid #e8e4dc;
  border-color: color-mix(in srgb, var(--zc, #b8934f) 40%, #e8e4dc);
  box-shadow: 0 2px 10px rgba(31,26,20,.05); }
.zpage .zsearch:focus-within { border-color: var(--zc, #b8934f); }
.zpage .zsearch .bs-icon { color: var(--zc, #b8934f); }
.zpage .zsearch .bs-go { background: var(--zc, #b8934f); }

@media (max-width: 360px) {
    .browse-head h1 { font-size: 19px; }
    .bchip { min-height: 38px; padding: 0 13px; font-size: 13px; }
    .bsorts { gap: 0; }
    .bsort { padding: 0 9px; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .gcard.sk .ph, .gcard.sk .t, .gcard.sk .p { animation: none; }
    .sheet-panel { animation: none; }
}
