/* ============================================================================
   孚米欧 FUMIO · 买家端 H5 样式表 (h5.css)
   覆盖范围：买家端登录 / 买家端注册流程 / 买家端 H5 全部页面
   依赖：core.css（必须先引入）
   注：在桌面浏览器中打开会以 480px 手机框居中预览；在真机上自动全屏。
   ============================================================================ */

/* 买家端皮肤：暖白纸底 + 珊瑚橘强调 */
body[data-role="buyer"] {
  --bg: var(--paper);
  --accent: var(--accent-buyer);
  --accent-ink: var(--accent-buyer-ink);
  --accent-soft: var(--accent-buyer-soft);
  --ring: color-mix(in srgb, var(--accent-buyer) 38%, transparent);
}

/* --- 手机框：桌面预览时居中成"机"，真机上全屏铺满 --- */
.phone {
  position: relative; width: 100%; max-width: 480px; min-height: 100vh;
  margin-inline: auto; background: var(--paper);
  display: flex; flex-direction: column; overflow-x: clip;
}
@media (min-width: 600px) {
  body { background: var(--ink-50); }
  .phone {
    min-height: 100vh; box-shadow: 0 0 0 1px var(--border), var(--sh-3);
  }
}

/* ===========================================================================
   A. 买家端认证层
   =========================================================================== */
.auth-buyer {
  position: relative; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); overflow: hidden;
}
/* 登录页内容自适应，不强制撑满整屏 */
.auth-buyer { min-height: auto; }
/* 顶部暖色光晕 + 圆弧，制造"入口"的包裹感 */
.auth-buyer::before {
  content: ""; position: absolute; top: -12%; left: -22%; right: -22%; height: 42%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-buyer) 30%, transparent), transparent 78%);
  pointer-events: none;
}
.auth-bg-arc {
  position: absolute; top: 0; left: 0; right: 0; height: 180px;
  background: linear-gradient(172deg, color-mix(in srgb, var(--accent-buyer) 12%, transparent), transparent 72%);
  pointer-events: none;
}
.auth-buyer > * { position: relative; z-index: 1; }

/* 登录页 logo */
.logo-mark { display:grid; place-items:center; width:36px; height:36px; border-radius:10px; background:var(--accent-buyer); color:#fff; font-family:var(--font-display); font-weight:700; font-size:var(--fs-lg); }
body[data-role="factory"] .logo-mark { background:var(--accent); color:#04241A; }
body[data-role="factory"] .ab-hero h1 em { color:var(--accent); }
body[data-role="factory"] .auth-bg-arc { background:linear-gradient(172deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 72%); }
body[data-role="factory"] .auth-buyer::before { background:radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent 78%); }

.ab-top { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-5) var(--sp-5) var(--sp-3); }
.ab-lang {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--text-2);
  background: rgba(255, 255, 255, .72); border-radius: var(--r-full); backdrop-filter: blur(6px);
}
.ab-lang svg { width: 14px; height: 14px; }

.ab-hero { padding: var(--sp-4) var(--sp-5) var(--sp-4); }
.ab-hero h1 { font-size: 38px; line-height: 1.1; letter-spacing: -0.035em; margin-bottom: var(--sp-3); }
.ab-hero h1 em { font-style: normal; color: var(--accent-buyer); }
.ab-hero p { font-size: var(--fs-md); color: var(--text-2); line-height: 1.7; max-width: 30ch; }

.ab-panel {
  flex: 0 1 auto; padding: var(--sp-5) var(--sp-5) var(--sp-7);
  background: var(--white);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -8px 32px rgba(10, 31, 44, .07);
}

/* 角色切换：胶囊 + 滑动指示 */
.role-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; margin-bottom: var(--sp-6);
  background: var(--surface-3); border-radius: var(--r-full);
}
.role-tabs button {
  position: relative; z-index: 1; padding: var(--sp-3);
  font-size: var(--fs-md); font-weight: 600; color: var(--text-3);
  border-radius: var(--r-full); transition: color var(--dur-base) var(--ease-out);
}
.role-tabs .rt-link {
  position: relative; z-index: 1; padding: var(--sp-3);
  font-size: var(--fs-md); font-weight: 600; color: var(--text-3);
  border-radius: var(--r-full); transition: color var(--dur-base) var(--ease-out);
  text-decoration: none;
}
.role-tabs button.is-active { color: var(--white); }
.role-tabs .rt-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  background: var(--ink-900); border-radius: var(--r-full);
  transition: transform var(--dur-base) var(--ease-out);
}
.role-tabs[data-active="buyer"] .rt-pill { background: var(--accent-buyer); }
.role-tabs[data-active="factory"] .rt-pill { transform: translateX(100%); }

/* 登录方式切换 */
.login-mode { display: flex; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.login-mode button {
  position: relative; padding-bottom: var(--sp-2); font-size: var(--fs-md);
  font-weight: 600; color: var(--text-3);
}
.login-mode button.is-active { color: var(--text); }
.login-mode button.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent-buyer); border-radius: 2px;
}

.ab-agree { display: flex; align-items: flex-start; gap: var(--sp-2); margin-top: var(--sp-5); font-size: var(--fs-xs); color: var(--text-3); line-height: 1.65; }
.ab-agree a { color: var(--accent-buyer-ink); font-weight: 600; }

.ab-divider { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-6) 0 var(--sp-5); font-size: var(--fs-xs); color: var(--text-3); }
.ab-divider::before, .ab-divider::after { content: ""; flex: 1; height: 1px; background: var(--border-soft); }

.ab-social { display: flex; justify-content: center; gap: var(--sp-6); }
.ab-social button {
  display: grid; place-items: center; width: 50px; height: 50px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--white);
  transition: all var(--dur-fast) var(--ease-out);
}
.ab-social button:active { transform: scale(.94); }
.ab-social svg { width: 24px; height: 24px; }

/* 会员权益条（登录页下方，体现会员制） */
.perk-strip {
  display: flex; gap: var(--sp-5); padding: var(--sp-5);
  margin-top: var(--sp-6); background: var(--surface-2); border-radius: var(--r-md);
}
.perk-strip .pk { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-xs); color: var(--text-2); }
.perk-strip .pk svg { width: 15px; height: 15px; color: var(--accent-buyer); }

/* ===========================================================================
   B. 通用 H5 骨架
   =========================================================================== */
.app-bar {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--paper);
}
.app-bar.is-solid { background: var(--white); box-shadow: 0 1px 0 var(--border-soft); }
.ab-inner { display: flex; align-items: center; gap: var(--sp-3); height: 52px; padding: 0 var(--sp-4); }
.ab-inner .title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; }
.ab-inner .side { display: flex; flex-shrink: 0; align-items: center; gap: var(--sp-2); min-width: 44px; }
.ab-inner .side:last-child { justify-content: flex-end; }
/* A filter label stays together; move the complete control instead of individual glyphs. */
.phone .chips .chip { flex: 0 0 auto; white-space: nowrap; }
.phone .chips { flex-wrap: wrap; }
.phone [data-chat-tabs] .chip { padding-inline: 10px; }
.phone .segment { flex: 0 0 auto; max-width: 100%; }
.phone .segment button { flex: 0 0 auto; white-space: nowrap; }
.phone .row-between:has(> .segment) { flex-wrap: wrap; gap: var(--sp-2); }
.phone .fumio-country-quote-head label { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.phone .fumio-country-quote-head label select { flex: 1 1 128px; min-width: 0; max-width: 100%; }
.phone .pdp-options-card .pdp-option-line { display:flex; align-items:center; gap:12px; padding-top:12px; min-width:0; }
.phone .pdp-options-card .pdp-option-label { flex:0 0 72px; margin:0; line-height:1.5; overflow-wrap:anywhere; }
.phone .pdp-options-card .pdp-option-values { display:flex; flex:1; flex-wrap:wrap; gap:8px; min-width:0; }
.phone .pdp-options-card .chip { min-height:40px; padding:8px 14px; font-size:14px; line-height:1.5; max-width:100%; overflow-wrap:anywhere; }
.phone .pdp-options-card [data-pdp-selected] { min-width:0; text-align:right; overflow-wrap:anywhere; }
.phone .pdp-options-card .stepper { flex:none; }
@media(max-width:359px) { .phone .pdp-options-card .pdp-option-label { flex-basis:64px; } }
.phone [data-wallet-section] .field-label:has(> .input, > .select) { display: block; margin-block: var(--sp-3) var(--sp-2); }
.phone [data-wallet-section] .field-label > :is(.input, .select) { display: block; width: 100%; margin-top: var(--sp-2); }
@media (max-width: 360px) {
  #h5-factory-staff-phone-title { font-size: var(--fs-lg); }
}
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
  color: var(--text); border-radius: var(--r-full);
  transition: background var(--dur-fast) var(--ease-out);
}
.icon-btn:active { background: var(--surface-3); }
.icon-btn svg { width: 20px; height: 20px; }

.page-body { flex: 1; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + var(--sp-5)); }
.page-body.no-tab { padding-bottom: var(--sp-7); }
/* A page with primary navigation always reserves the bar and its raised action. */
.phone:has(> .tabbar) > .page-body {
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + var(--sp-5));
}

/* 底部 TabBar */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: var(--z-sticky); width: 100%; max-width: 480px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--white);
  border-top: 1px solid var(--border-soft);
}
.tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0;
  font-size: 10px; font-weight: 600; color: var(--text-3);
  transition: color var(--dur-fast) var(--ease-out);
}
.tabbar a > span:last-child { max-width: 100%; white-space: nowrap; }
.tabbar a svg { flex: none; width: 22px; height: 22px; transition: transform var(--dur-base) var(--ease-out); }
.tabbar a.is-active { color: var(--accent-buyer); }
.tabbar a.is-active svg { transform: translateY(-2px) scale(1.08); }
.tabbar .tb-mid { position: relative; }
.tabbar .tb-mid .fab {
  display: grid; place-items: center; width: 46px; height: 46px; margin-top: -22px;
  background: linear-gradient(145deg, #FF7A4F, var(--accent-buyer)); color: var(--white);
  border-radius: 50%; box-shadow: 0 6px 18px rgba(255, 90, 45, .38);
}
.tabbar .tb-mid .fab svg { width: 22px; height: 22px; }
.tabbar .tb-badge {
  position: absolute; top: 4px; left: 50%; margin-left: 4px; min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center; font-size: 9px; font-weight: 700; font-family: var(--font-mono);
  color: var(--white); background: var(--danger); border: 1.5px solid var(--white); border-radius: var(--r-full);
}
.tabbar .tb-badge:empty, .menu-grid .mg-dot:empty { display: none; }

/* 回到顶部悬浮按钮 */
.back-top {
  position: fixed; right: var(--sp-4); z-index: 60;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + var(--sp-4));
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--white); color: var(--ink-500);
  border: 1px solid var(--border-soft); border-radius: var(--r-full);
  box-shadow: 0 6px 18px rgba(10, 31, 44, .12); cursor: pointer;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.back-top svg { width: 18px; height: 18px; }
.back-top[hidden] { display: none; }

/* 页面区块 */
.sec { margin-bottom: var(--sp-6); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--sp-2) var(--sp-3); padding: 0 var(--sp-4) var(--sp-3); }
.sec-head h2 { font-size: var(--fs-xl); letter-spacing: -0.025em; }
.sec-head .more { display: flex; flex-shrink: 0; align-items: center; gap: 2px; white-space: nowrap; font-size: var(--fs-sm); color: var(--text-3); }
.sec-head .more svg { width: 14px; height: 14px; }

/* 通用白卡容器 */
.hcard { margin: 0 var(--sp-4); background: var(--white); border-radius: var(--r-md); overflow: hidden; }
.hcard-pad { padding: var(--sp-4); }

/* ===========================================================================
   C. 首页
   =========================================================================== */
/* 顶部搜索头：随滚动渐变 */
.home-header { padding: var(--sp-3) var(--sp-4) var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-3); }
.hh-loc { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--text-2); }
.hh-loc b { color: var(--text); font-weight: 600; }
.hh-loc svg { width: 15px; height: 15px; color: var(--accent-buyer); }

.search-bar {
  display: flex; align-items: center; gap: var(--sp-3); height: 42px; padding: 0 var(--sp-4);
  background: var(--white); border: 1px solid transparent; border-radius: var(--r-full);
  box-shadow: 0 2px 12px rgba(10, 31, 44, .06);
}
.search-bar svg { width: 18px; height: 18px; color: var(--accent-buyer); flex: 0 0 auto; }
.search-bar .sb-text { flex: 1; font-size: var(--fs-md); color: var(--ink-300); }
.search-bar .sb-btn {
  padding: 5px 14px; font-size: var(--fs-sm); font-weight: 700; color: var(--white);
  background: linear-gradient(135deg, #FF7A4F, var(--accent-buyer)); border-radius: var(--r-full);
}

/* 轮播 */
.slider { position: relative; margin: 0 var(--sp-4); border-radius: var(--r-lg); overflow: hidden; }
.slider-track { display: flex; transition: transform var(--dur-slow) var(--ease-out); }
.slide { flex: 0 0 100%; position: relative; aspect-ratio: 16 / 7.4; }
.slide-bg {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: var(--sp-6) var(--sp-6); color: var(--white);
}
.slide-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(28rem 16rem at 88% 12%, rgba(255, 255, 255, .28), transparent 60%);
}
.slide-bg > * { position: relative; z-index: 1; }
.slide-eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.slide-title { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin: var(--sp-2) 0 var(--sp-3); }
.slide-desc { font-size: var(--fs-sm); opacity: .92; max-width: 22ch; }
.slide-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--sp-4);
  padding: 8px 16px; font-size: var(--fs-sm); font-weight: 700;
  background: rgba(255, 255, 255, .95); color: var(--ink-900); border-radius: var(--r-full);
}
.slide-dots { position: absolute; bottom: var(--sp-3); right: var(--sp-4); z-index: 2; display: flex; gap: 5px; }
.slide-dots i { width: 6px; height: 6px; border-radius: var(--r-full); background: rgba(255, 255, 255, .5); transition: all var(--dur-base) var(--ease-out); }
.slide-dots i.is-active { width: 18px; background: var(--white); }

/* 金刚区 */
.kong-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4) 0; padding: var(--sp-4) var(--sp-3); }
.kong-item { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.kong-item .ki-icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--r-md);
  font-size: 22px; line-height: 1;
}
.kong-item .ki-icon svg { width: 24px; height: 24px; }
.kong-item span { font-size: var(--fs-xs); color: var(--text-2); }

/* 公告跑马灯 */
.notice-bar { display: flex; align-items: center; gap: var(--sp-3); margin: 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); background: var(--white); border-radius: var(--r-sm); }
.notice-bar .nb-tag { padding: 2px 8px; font-size: var(--fs-2xs); font-weight: 700; color: var(--accent-buyer-ink); background: var(--accent-buyer-soft); border-radius: var(--r-xs); }
.notice-bar .nb-text { flex: 1; font-size: var(--fs-sm); color: var(--text-2); overflow: hidden; }
.notice-bar .nb-text div { white-space: nowrap; }

/* 秒杀条 */
.flash { margin: 0 var(--sp-4); padding: var(--sp-4); border-radius: var(--r-md); background: linear-gradient(135deg, #2A0E05, #5C1D0B); color: var(--white); }
.flash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.flash-head h3 { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--white); letter-spacing: -0.02em; }
.flash-head .fh-timer { display: flex; align-items: center; gap: 4px; font-size: var(--fs-sm); }
.flash-head .fh-timer b {
  display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 4px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 700;
  color: #5C1D0B; background: var(--white); border-radius: var(--r-xs);
}
.flash-list { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: 2px; }
.flash-list::-webkit-scrollbar { display: none; }
.flash-item { flex: 0 0 92px; text-align: center; }
.flash-item .fi-img { aspect-ratio: 1; border-radius: var(--r-sm); background: rgba(255, 255, 255, .12); display: grid; place-items: center; overflow: hidden; }
.flash-item .fi-img img { width: 100%; height: 100%; object-fit: cover; }
.flash-item .fi-price { font-family: var(--font-mono); font-size: var(--fs-md); font-weight: 700; color: #FFB020; margin-top: var(--sp-2); }
.flash-item .fi-old { font-family: var(--font-mono); font-size: var(--fs-2xs); color: rgba(255, 255, 255, .5); text-decoration: line-through; }

/* 商品网格 */
.goods-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); padding: 0 var(--sp-4); }
.goods {
  display: flex; flex-direction: column; background: var(--white);
  border-radius: var(--r-md); overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.goods:active { transform: scale(.98); }
.g-media { position: relative; aspect-ratio: 1; background: var(--surface-3); overflow: hidden; }
.g-media img { width: 100%; height: 100%; object-fit: cover; }
.g-media .g-badge {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  padding: 2px 8px; font-size: var(--fs-2xs); font-weight: 700; color: var(--white);
  background: var(--accent-buyer); border-radius: var(--r-xs);
}
.g-media .g-fav {
  position: absolute; top: var(--sp-2); right: var(--sp-2);
  display: grid; place-items: center; width: 28px; height: 28px;
  background: rgba(255, 255, 255, .9); border-radius: 50%; color: var(--text-3);
}
.g-media .g-fav.is-on { color: var(--accent-buyer); }
.g-body { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3); }
.g-title { font-size: var(--fs-md); font-weight: 500; line-height: 1.5; color: var(--text); }
.g-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.g-tags span { padding: 1px 6px; font-size: 10px; font-weight: 600; color: var(--accent-buyer-ink); background: var(--accent-buyer-soft); border-radius: 3px; }
.g-price { display: flex; align-items: baseline; gap: var(--sp-2); }
.g-price .now { font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 700; color: var(--accent-buyer); letter-spacing: -0.02em; }
.g-price .now small { font-size: var(--fs-xs); margin-right: 1px; }
.g-price .old { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); text-decoration: line-through; }
.g-foot { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-2xs); color: var(--text-3); }
.g-supply { display: flex; align-items: center; gap: 4px; }
.g-supply svg { width: 12px; height: 12px; }

/* 横向商品条 */
.goods-rail { display: flex; gap: var(--sp-3); overflow-x: auto; padding: 0 var(--sp-4) var(--sp-2); }
.goods-rail::-webkit-scrollbar { display: none; }
.goods-rail .goods { flex: 0 0 140px; }

/* 服务卡（半成品推荐 / 礼品定制 / 招聘） */
.service-card {
  display: flex; align-items: center; gap: var(--sp-4); margin: 0 var(--sp-4);
  padding: var(--sp-4); background: var(--white); border-radius: var(--r-md);
}
.service-card .sc-art {
  display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 auto;
  border-radius: var(--r-sm); font-size: 26px;
}
.service-card .sc-body { flex: 1; min-width: 0; }
.service-card .sc-body b { display: block; font-size: var(--fs-md); }
.service-card .sc-body p { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }

/* ===========================================================================
   D. 分类页
   =========================================================================== */
.cat-layout { display: grid; grid-template-columns: 92px 1fr; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); align-items: start; }
.cat-side { position: sticky; top: 60px; display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-sm); overflow: hidden; }
.cat-side button {
  position: relative; padding: var(--sp-4) var(--sp-2); text-align: center;
  font-size: var(--fs-sm); color: var(--text-2);
  transition: all var(--dur-fast) var(--ease-out);
}
.cat-side button.is-active { background: var(--surface-2); color: var(--accent-buyer-ink); font-weight: 700; }
.cat-side button.is-active::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; background: var(--accent-buyer); border-radius: 0 2px 2px 0;
}
.cat-main { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.cat-main .goods-grid { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.phone .fumio-pdp-detail { width: calc(100% - var(--sp-4) * 2); overflow-wrap: anywhere; }
.cat-banner { border-radius: var(--r-md); padding: var(--sp-5); color: var(--white); }
.cat-banner h3 { font-size: var(--fs-xl); color: var(--white); }
.cat-banner p { font-size: var(--fs-xs); opacity: .9; margin-top: var(--sp-1); }
.cat-subgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); gap: var(--sp-3); background: var(--white); padding: var(--sp-4); border-radius: var(--r-md); }
.cat-subgrid button { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.cat-subgrid .cs-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--surface-2); font-size: 20px; }
.cat-subgrid span { font-size: var(--fs-xs); color: var(--text-2); }

/* ===========================================================================
   E. 购物车
   =========================================================================== */
.cart-item {
  display: flex; gap: var(--sp-3); padding: var(--sp-4);
  background: var(--white); border-radius: var(--r-md); margin-bottom: var(--sp-3);
}
.cart-item .ci-media { width: 84px; height: 84px; flex: 0 0 auto; border-radius: var(--r-sm); background: var(--surface-3); overflow: hidden; }
.cart-item .ci-media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-item .ci-title { font-size: var(--fs-md); line-height: 1.5; }
.cart-item .ci-spec { display: inline-flex; padding: 2px 8px; margin-top: var(--sp-2); font-size: var(--fs-2xs); color: var(--text-3); background: var(--surface-3); border-radius: var(--r-xs); font-family: var(--font-mono); }
.cart-item .ci-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.cart-item .ci-price { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 700; color: var(--accent-buyer); }
.cart-item .ci-price small { font-size: var(--fs-xs); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.stepper button { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; color: var(--text-2); }
.stepper button:disabled { color: var(--ink-200); }
.stepper button svg { width: 14px; height: 14px; }
.stepper input {
  width: 44px; height: 44px; text-align: center; border: 0;
  border-inline: 1px solid var(--border); font-family: var(--font-mono);
  font-size: var(--fs-sm); font-weight: 600; background: var(--white);
}
.stepper input:focus { outline: none; }

/* 结算栏 */
.checkout-bar {
  position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%); z-index: var(--z-sticky);
  width: 100%; max-width: 480px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4); background: var(--white);
  backdrop-filter: blur(12px); border-top: 1px solid var(--border-soft);
}
.checkout-bar .cb-total { font-size: var(--fs-sm); color: var(--text-2); }
.checkout-bar .cb-total b { font-family: var(--font-mono); font-size: var(--fs-2xl); font-weight: 700; color: var(--accent-buyer); }
.checkout-bar .cb-btn {
  padding: var(--sp-3) var(--sp-6); font-size: var(--fs-md); font-weight: 700; color: var(--white);
  background: linear-gradient(135deg, #FF7A4F, var(--accent-buyer)); border-radius: var(--r-full);
}
.checkout-bar .cb-btn[disabled] { background: var(--ink-200); }
/* PDP 操作栏置于滚动容器外，固定在可视区底部并避开移动端安全区。 */
body[data-pdp-page] .checkout-bar.pdp-detail {
  box-sizing: border-box;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  transform: none;
  margin-inline: auto;
  width: 100%;
  max-width: 480px;
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-sticky);
}
/* 商品详情底栏操作保持横排，标签宽度计入按钮最小宽度，避免窄屏中文被挤成两行。 */
body[data-pdp-page] .checkout-bar .pdp-actions,
body[data-pdp-page] .checkout-bar .pdp-action-group {
  display: flex;
  flex: 1 1 auto;
  flex-flow: row nowrap;
  min-width: 0;
}
body[data-pdp-page] .checkout-bar .pdp-actions .cb-btn,
body[data-pdp-page] .checkout-bar .pdp-action-group .cb-btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: max-content;
  padding-inline: clamp(4px, 2.2vw, 10px);
  font-size: clamp(12px, 3.4vw, 16px);
  line-height: 1.25;
  white-space: nowrap !important;
  word-break: keep-all;
  overflow-wrap: normal;
}
body[data-pdp-page] .checkout-bar .pdp-actions .cb-btn > span,
body[data-pdp-page] .checkout-bar .pdp-action-group .cb-btn > span {
  display: inline-block;
  flex: 0 0 auto;
  white-space: nowrap !important;
  word-break: keep-all;
  overflow-wrap: normal;
}
@media (max-width: 360px) {
  body[data-pdp-page] .checkout-bar { gap: 4px; padding-inline: 12px; }
  body[data-pdp-page] .checkout-bar > .row-mid:first-child { gap: 4px; }
  body[data-pdp-page] .checkout-bar .pdp-actions,
  body[data-pdp-page] .checkout-bar .pdp-action-group { gap: 6px; }
}

/* 购物车触屏区域：扩大点击面，同时保留原有图标与文字尺寸。 */
body[data-cart-page] .cart-list .check {
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
body[data-cart-page] [data-cart-del-selected] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
}
body[data-cart-page] .cart-item .ci-foot { flex-wrap: wrap; gap: 4px 8px; }
body[data-cart-page] [data-cart-del] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
body[data-cart-page] .checkout-bar .check { min-height: 44px; align-items: center; }
body[data-cart-page] .checkout-bar { padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px)); }
body[data-pdp-page] .chip,
body[data-pdp-page] .pill-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
body[data-pdp-page] .icon-btn {
  box-sizing: border-box;
  width: 44px !important;
  min-width: 44px;
  height: 44px !important;
  min-height: 44px;
  flex: 0 0 44px;
}
body[data-role="buyer"] .logo,
body[data-role="buyer"] .search-bar,
body[data-role="buyer"] .sec-head .more,
body[data-role="buyer"] .btn-sm,
body[data-role="buyer"] a.tiny {
  min-width: 44px;
  min-height: 44px;
}
body[data-role="buyer"] .search-bar { height: 44px; }
body[data-role="buyer"] .sec-head .more,
body[data-role="buyer"] .btn-sm,
body[data-role="buyer"] a.tiny {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===========================================================================
   F. 聊天
   =========================================================================== */
.chat-page { display: flex; flex-direction: column; height: 100vh; background: var(--surface-2); }
.chat-list { flex: 1; overflow-y: auto; padding-bottom: var(--sp-5); }
.chat-item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); background: var(--white); border-bottom: 1px solid var(--border-soft); }
.chat-item .ci-avatar { position: relative; flex: 0 0 auto; }
.chat-item .ci-avatar .dot { position: absolute; right: 0; bottom: 0; width: 10px; height: 10px; border: 2px solid var(--white); background: var(--success); }
.chat-item .ci-body { flex: 1; min-width: 0; }
.chat-item .ci-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); }
.chat-item .ci-row b { font-size: var(--fs-md); }
.chat-item .ci-row time { font-size: var(--fs-2xs); color: var(--text-3); font-family: var(--font-mono); }
.chat-item .ci-msg { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }

.chat-room { display: flex; flex-direction: column; height: 100vh; background: var(--surface-2); }
.chat-room .cr-stream { flex: 1; overflow-y: auto; padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-4); }
.msg { display: flex; gap: var(--sp-2); max-width: 78%; }
.msg .m-body {
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-md); line-height: 1.62;
  background: var(--white); border-radius: var(--r-md); box-shadow: 0 1px 3px rgba(10, 31, 44, .06);
}
.msg .m-meta { font-size: var(--fs-2xs); color: var(--text-3); margin-top: var(--sp-1); font-family: var(--font-mono); }
.msg.is-me { margin-left: auto; flex-direction: row-reverse; }
.msg.is-me .m-body { background: var(--ink-900); color: var(--text-invert); }
.msg.is-sys { max-width: 100%; justify-content: center; }
.msg.is-sys .m-body { padding: 3px 12px; font-size: var(--fs-2xs); color: var(--text-3); background: rgba(10, 31, 44, .06); box-shadow: none; border-radius: var(--r-full); }
.msg-media { width: 150px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); }
.msg-card { display: flex; gap: var(--sp-3); width: 240px; padding: var(--sp-3); background: var(--white); border-radius: var(--r-sm); }
.msg-card .mc-img { width: 56px; height: 56px; border-radius: var(--r-xs); background: var(--surface-3); flex: 0 0 auto; }
.msg-card .mc-body { flex: 1; min-width: 0; }
.msg-card .mc-body b { display: block; font-size: var(--fs-sm); }
.msg-card .mc-body .p { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; color: var(--accent-buyer); margin-top: var(--sp-1); }

.chat-input-bar {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: var(--white); border-top: 1px solid var(--border-soft);
}
.chat-input-bar input {
  flex: 1 1 0; min-width: 0; height: 40px; padding: 0 var(--sp-4); font-size: var(--fs-md);
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--r-full);
}
.chat-input-bar input:focus { outline: none; border-color: var(--accent-buyer); background: var(--white); }
.chat-input-bar .ci-btn { display: grid; place-items: center; flex: none; width: 36px; height: 36px; color: var(--text-2); }
.chat-input-bar .ci-btn svg { width: 21px; height: 21px; }
.chat-input-bar .ci-send {
  flex: none; white-space: nowrap;
  padding: 0 var(--sp-4); height: 36px; font-size: var(--fs-sm); font-weight: 700; color: var(--white);
  background: var(--accent-buyer); border-radius: var(--r-full);
}

/* ===========================================================================
   G. 会员中心
   =========================================================================== */
.member-head {
  position: relative; overflow: hidden; padding: var(--sp-6) var(--sp-4) var(--sp-9);
  color: var(--white); background: linear-gradient(150deg, #1B2A33, #0A1F2C 62%);
}
.member-head::after {
  content: ""; position: absolute; right: -18%; top: -34%; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 45, .36), transparent 70%);
  pointer-events: none;
}
.member-head::before {
  content: ""; position: absolute; left: -12%; bottom: -60%; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 192, 139, .22), transparent 70%);
  pointer-events: none;
}
.member-head > * { position: relative; z-index: 1; }

.mh-user { display: flex; align-items: center; gap: var(--sp-4); }
.mh-user .avatar { border: 2px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .16); color: var(--white); }
.mh-user .mh-name { font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }
.mh-user .mh-sub { display: flex; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); }
.mh-vip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px;
  font-size: var(--fs-2xs); font-weight: 700; color: #5C1D0B;
  background: linear-gradient(100deg, #FFD98A, #FFB020); border-radius: var(--r-full);
}
.mh-vip svg { width: 11px; height: 11px; }
.mh-user .mh-org { font-size: var(--fs-xs); color: rgba(255, 255, 255, .7); }
.mh-edit { margin-left: auto; }

/* 会员头图操作行：续费 / 升级（浅色描边按钮，浮于深色头图之上） */
.mh-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.mh-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 var(--sp-4); border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .42);
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.mh-btn:hover { background: rgba(255, 255, 255, .18); }
.mh-btn:active { transform: scale(.97); }
.mh-btn svg { width: 15px; height: 15px; }
.mh-btn-strong { background: #fff; color: #0A1F2C; border-color: #fff; }
.mh-btn-strong:hover { background: rgba(255, 255, 255, .88); }

/* 资产条 */
.asset-strip {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: calc(-1 * var(--sp-7)) var(--sp-4) var(--sp-5); padding: var(--sp-4) 0;
  background: var(--white); border-radius: var(--r-md); box-shadow: var(--sh-2); text-align: center;
}
.asset-strip a { display: flex; flex-direction: column; gap: 2px; }
.asset-strip .as-val { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -0.02em; }
.asset-strip .as-key { font-size: var(--fs-2xs); color: var(--text-3); }

/* 宫格菜单 */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5) 0; padding: var(--sp-5) var(--sp-2); }
.menu-grid a { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); position: relative; }
.menu-grid .mg-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-md); }
.menu-grid .mg-icon svg { width: 22px; height: 22px; }
.menu-grid span { font-size: var(--fs-xs); color: var(--text-2); }
.menu-grid .mg-dot {
  position: absolute; top: -2px; right: 14px; min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center; font-size: 9px; font-weight: 700; font-family: var(--font-mono);
  color: var(--white); background: var(--danger); border-radius: var(--r-full);
}

/* 列表菜单 */
.menu-list { padding: 0 var(--sp-4); }
.menu-row {
  display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4);
  background: var(--white); border-bottom: 1px solid var(--border-soft);
}
.menu-row:first-child { border-radius: var(--r-md) var(--r-md) 0 0; }
.menu-row:last-child { border-radius: 0 0 var(--r-md) var(--r-md); border-bottom: 0; }
.menu-row:active { background: var(--surface-2); }
.menu-row .mr-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-xs); }
.menu-row .mr-icon svg { width: 17px; height: 17px; }
.menu-row .mr-label { flex: 1; font-size: var(--fs-md); }
.menu-row .mr-extra { font-size: var(--fs-sm); color: var(--text-3); }
.menu-row .mr-arrow { color: var(--ink-300); }
.menu-row .mr-arrow svg { width: 16px; height: 16px; }

/* ===========================================================================
   H. 会员中心子页
   =========================================================================== */
/* 订单卡 */
.order-card { margin: 0 var(--sp-4) var(--sp-3); background: var(--white); border-radius: var(--r-md); overflow: hidden; }
.order-card .oc-head { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3) var(--sp-4); }
.order-card .oc-shop { display: flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); font-weight: 600; }
.order-card .oc-shop svg { width: 14px; height: 14px; color: var(--text-3); }
.order-card .oc-status { font-size: var(--fs-sm); font-weight: 700; color: var(--accent-buyer); }
.order-card .oc-goods { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--surface-2); }
.order-card .oc-goods .og-img { width: 60px; height: 60px; border-radius: var(--r-sm); background: var(--surface-3); flex: 0 0 auto; overflow: hidden; }
.order-card .oc-goods .og-img img { width: 100%; height: 100%; object-fit: cover; }
.order-card .oc-goods .og-body { flex: 1; min-width: 0; }
.order-card .oc-goods .og-body b { display: block; font-size: var(--fs-md); font-weight: 500; }
.order-card .oc-goods .og-body p { font-size: var(--fs-xs); color: var(--text-3); margin-top: 2px; }
.order-card .oc-goods .og-price { text-align: right; }
.order-card .oc-goods .og-price b { display: block; font-family: var(--font-mono); font-size: var(--fs-md); }
.order-card .oc-goods .og-price span { font-size: var(--fs-2xs); color: var(--text-3); }
.order-card .oc-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: var(--sp-2); padding: var(--sp-3) var(--sp-4); }
.order-card .oc-foot .pill-btn { flex: 0 0 auto; white-space: nowrap; }
.order-card .oc-total { margin-right: auto; font-size: var(--fs-sm); color: var(--text-2); }
.order-card .oc-total b { font-family: var(--font-mono); font-size: var(--fs-md); color: var(--text); }
.pill-btn {
  padding: 6px 15px; font-size: var(--fs-sm); font-weight: 600;
  border: 1px solid var(--border-strong); border-radius: var(--r-full); color: var(--text-2);
  transition: all var(--dur-fast) var(--ease-out);
}
.pill-btn:active { transform: scale(.96); }
.pill-btn.is-solid { background: var(--accent-buyer); border-color: var(--accent-buyer); color: var(--white); }

/* 钱包 */
.wallet-hero {
  position: relative; overflow: hidden; margin: var(--sp-4); padding: var(--sp-6);
  border-radius: var(--r-lg); color: var(--white); background: linear-gradient(145deg, #1B2A33, #0A1F2C);
}
.wallet-hero::after {
  content: ""; position: absolute; right: -14%; top: -40%; width: 220px; height: 220px;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 45, .34), transparent 70%);
}
.wallet-hero > * { position: relative; z-index: 1; }
.wallet-hero .wh-label { font-size: var(--fs-sm); color: rgba(255, 255, 255, .68); }
.wallet-hero .wh-amount {
  font-family: var(--font-display); font-size: 46px; font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.1; margin: var(--sp-2) 0 var(--sp-5);
  font-variant-numeric: tabular-nums;
}
.wallet-hero .wh-actions { display: flex; gap: var(--sp-3); }
.wallet-hero .wh-actions button { flex: 1; height: 42px; font-size: var(--fs-md); font-weight: 700; border-radius: var(--r-full); }
.wallet-hero .wh-actions .wa-main { background: var(--white); color: var(--ink-900); }
.wallet-hero .wh-actions .wa-ghost { background: rgba(255, 255, 255, .16); color: var(--white); }

/* 流水 */
.flow-item { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border-bottom: 1px solid var(--border-soft); }
.flow-item:last-child { border-bottom: 0; }
.flow-item .fi-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-sm); flex: 0 0 auto; }
.flow-item .fi-icon svg { width: 18px; height: 18px; }
.flow-item .fi-body { flex: 1; min-width: 0; }
.flow-item .fi-body b { display: block; font-size: var(--fs-md); font-weight: 500; }
.flow-item .fi-body p { font-size: var(--fs-2xs); color: var(--text-3); margin-top: 2px; font-family: var(--font-mono); }
.flow-item .fi-amt { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 700; }

/* 优惠券 */
.coupon {
  position: relative; display: flex; margin: 0 var(--sp-4) var(--sp-3);
  background: var(--white); border-radius: var(--r-md); overflow: hidden;
}
.coupon .cp-left {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 112px; flex: 0 0 auto; padding: var(--sp-4); color: var(--white);
  background: linear-gradient(150deg, #FF7A4F, var(--accent-buyer));
}
.coupon .cp-left .cp-amt { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.coupon .cp-left .cp-amt small { font-size: var(--fs-sm); font-weight: 600; }
.coupon .cp-left .cp-cond { font-size: var(--fs-2xs); opacity: .92; margin-top: var(--sp-1); }
.coupon .cp-body { flex: 1; min-width: 0; padding: var(--sp-4); display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.coupon .cp-body b { font-size: var(--fs-md); }
.coupon .cp-body p { font-size: var(--fs-2xs); color: var(--text-3); }
.coupon .cp-use { display: flex; align-items: center; padding-right: var(--sp-4); }
.coupon .cp-use button { padding: 5px 14px; font-size: var(--fs-xs); font-weight: 700; color: var(--white); background: var(--accent-buyer); border-radius: var(--r-full); }
.coupon.is-used { opacity: .52; }
.coupon.is-used .cp-left { background: linear-gradient(150deg, var(--ink-400), var(--ink-500)); }
.coupon.is-used .cp-use button { background: var(--ink-300); }
/* 券的锯齿缺口 */
.coupon::before, .coupon::after {
  content: ""; position: absolute; left: 112px; width: 12px; height: 12px;
  background: var(--paper); border-radius: 50%; transform: translateX(-50%);
}
.coupon::before { top: -6px; } .coupon::after { bottom: -6px; }

/* 地址卡 */
.addr-card { margin: 0 var(--sp-4) var(--sp-3); padding: var(--sp-4); background: var(--white); border-radius: var(--r-md); }
.addr-card .ac-top { display: flex; align-items: baseline; gap: var(--sp-3); }
.addr-card .ac-top b { font-size: var(--fs-lg); }
.addr-card .ac-top .ac-tag { padding: 1px 7px; font-size: 10px; font-weight: 700; color: var(--accent-buyer-ink); background: var(--accent-buyer-soft); border-radius: 3px; }
.addr-card .ac-top .ac-phone { margin-left: auto; font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-2); }
.addr-card .ac-addr { font-size: var(--fs-sm); color: var(--text-2); margin-top: var(--sp-2); line-height: 1.6; }
.addr-card .ac-foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--sp-4); margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--border-soft); }
.addr-card .ac-foot button { display: flex; align-items: center; gap: 4px; font-size: var(--fs-sm); color: var(--text-2); }
.addr-card .ac-foot svg { width: 15px; height: 15px; }

/* 签到 */
.signin-card { margin: var(--sp-4); padding: var(--sp-5); background: var(--white); border-radius: var(--r-lg); }
.signin-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--sp-2); margin-top: var(--sp-4); }
.signin-days .sd { display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); padding: var(--sp-2) 0; border-radius: var(--r-sm); background: var(--surface-2); }
.signin-days .sd b { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); }
.signin-days .sd span { font-size: 10px; color: var(--text-3); }
.signin-days .sd.is-done { background: var(--accent-buyer-soft); }
.signin-days .sd.is-done b { color: var(--accent-buyer-ink); }
.signin-days .sd.is-today { background: var(--accent-buyer); }
.signin-days .sd.is-today b, .signin-days .sd.is-today span { color: var(--white); }

/* 设置项 */
.set-group { margin: 0 var(--sp-4) var(--sp-4); background: var(--white); border-radius: var(--r-md); overflow: hidden; }
.set-row { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-4); border-bottom: 1px solid var(--border-soft); }
.set-row:last-child { border-bottom: 0; }
.set-row .sr-label { flex: 1; font-size: var(--fs-md); }
.set-row .sr-label small { display: block; font-size: var(--fs-2xs); color: var(--text-3); margin-top: 1px; }
.set-row .sr-val { font-size: var(--fs-sm); color: var(--text-3); }
.set-row.is-danger .sr-label { color: var(--danger); }

/* 表单页（H5 表单） */
.hform { padding: var(--sp-4); }
.hform .field { margin-bottom: var(--sp-5); }

/* 底部固定按钮 */
.footer-cta {
  position: sticky; bottom: 0; display: flex; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--border-soft);
}
.footer-cta .btn { flex: 1; }

/* ===========================================================================
   J. APP 排版规范与新增组件
   贴近原生 App 的节奏：卡片分组、内缩分割线、更大点击区、底部安全区
   =========================================================================== */

/* 分组卡片：圆角容器 + 内缩分割线 */
.app-group {
  margin: 0 var(--sp-4) var(--sp-4);
  background: var(--white); border-radius: var(--r-md); overflow: hidden;
}
.app-cell {
  display: flex; align-items: center; gap: var(--sp-3);
  min-height: 56px; padding: var(--sp-3) var(--sp-4); position: relative;
}
.app-cell + .app-cell::before {
  content: ""; position: absolute; top: 0; left: var(--sp-4); right: 0;
  height: 1px; background: var(--border-soft);
}
.app-cell:active { background: var(--surface-2); }
.app-cell .ac-ico {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--r-sm); flex: 0 0 auto;
}
.app-cell .ac-ico svg { width: 18px; height: 18px; }
.app-cell .ac-label { flex: 1; min-width: 0; font-size: var(--fs-md); }
.app-cell .ac-label small { display: block; font-size: var(--fs-xs); color: var(--text-3); margin-top: 1px; }
.app-cell .ac-val { font-size: var(--fs-sm); color: var(--text-3); }
.app-cell .ac-go { color: var(--ink-300); }
.app-cell .ac-go svg { width: 16px; height: 16px; }

/* --- 微信绑定卡 --- */
.bind-card {
  display: flex; align-items: center; gap: var(--sp-3);
  margin: 0 var(--sp-4) var(--sp-4); padding: var(--sp-4);
  border-radius: var(--r-md); color: var(--white);
  background: linear-gradient(135deg, #0BB45F, #06A855);
  box-shadow: 0 8px 22px -10px rgba(7, 193, 96, .6);
}
.bind-card.is-unbound {
  background: var(--white); color: var(--text);
  border: 1px solid var(--border-soft); box-shadow: var(--sh-1);
}
.bind-card .bc-ico {
  display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: var(--r-sm); background: rgba(255, 255, 255, .2);
}
.bind-card.is-unbound .bc-ico { background: rgba(7, 193, 96, .12); color: #06A855; }
.bind-card .bc-ico svg { width: 22px; height: 22px; }
.bind-card .bc-body { flex: 1; min-width: 0; }
.bind-card .bc-body b { display: block; font-size: var(--fs-md); }
.bind-card .bc-body p { font-size: var(--fs-xs); margin-top: 2px; color: rgba(255, 255, 255, .84); }
.bind-card.is-unbound .bc-body p { color: var(--text-3); }
.bind-card .bc-btn {
  flex: 0 0 auto; padding: 6px 14px; font-size: var(--fs-sm); font-weight: 700;
  border-radius: var(--r-full); background: rgba(255, 255, 255, .22); color: var(--white);
}
.bind-card.is-unbound .bc-btn { background: #07C160; color: var(--white); }

/* --- 2×2 常用服务卡 --- */
.tile-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin: 0 var(--sp-4) var(--sp-4); }
.tile-card {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-4); background: var(--white); border-radius: var(--r-md);
  transition: transform var(--dur-fast) var(--ease-out);
}
.tile-card:active { transform: scale(.98); }
.tile-card .tc-ico {
  display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 auto; border-radius: var(--r-sm);
}
.tile-card .tc-ico svg { width: 20px; height: 20px; }
.tile-card .tc-body { flex: 1; min-width: 0; }
.tile-card .tc-body b { display: block; font-size: var(--fs-md); }
.tile-card .tc-body span { font-size: var(--fs-xs); color: var(--text-3); }

/* --- 招聘模块 --- */
.job-hero {
  margin: var(--sp-4) var(--sp-4) var(--sp-5); padding: var(--sp-5);
  border-radius: var(--r-lg); color: var(--white);
  background: linear-gradient(150deg, #1B2A33, #0A1F2C);
}
.job-hero h2 { color: var(--white); font-size: var(--fs-xl); }
.job-hero p { font-size: var(--fs-sm); color: var(--text-invert-2); margin-top: var(--sp-2); line-height: 1.65; }
.job-hero .jh-stats { display: flex; gap: var(--sp-6); margin-top: var(--sp-4); }
.job-hero .jh-stats div b { display: block; font-family: var(--font-display); font-size: var(--fs-lg); color: var(--white); }
.job-hero .jh-stats div span { font-size: var(--fs-2xs); color: var(--text-invert-2); }

.job-record {
  display: flex; flex-direction: column; gap: var(--sp-2);
  margin: 0 var(--sp-4) var(--sp-3); padding: var(--sp-4);
  background: var(--white); border-radius: var(--r-md);
}
.job-record .jr-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.job-record .jr-top b { font-size: var(--fs-md); }
.job-record .jr-meta { font-size: var(--fs-xs); color: var(--text-3); }
.job-record .jr-foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  margin-top: var(--sp-2); padding-top: var(--sp-3); border-top: 1px solid var(--border-soft);
}

/* 客服卡片 */
.support-card {
  margin: 0 var(--sp-4) var(--sp-4); padding: var(--sp-5);
  border-radius: var(--r-md); color: var(--white);
  background: linear-gradient(150deg, #0E2735, #0A1F2C);
}
.support-card h3 { color: var(--white); font-size: var(--fs-md); }
.support-card .sc-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: var(--fs-sm);
}
.support-card .sc-row:last-of-type { border-bottom: 0; }
.support-card .sc-row span { color: var(--text-invert-2); }
.support-card .sc-row b { color: var(--white); }
.support-card .sc-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-4); }
.support-card .sc-actions button {
  flex: 1 0 auto; min-height: 44px; padding: var(--sp-2) var(--sp-3); white-space: nowrap; font-size: var(--fs-md); font-weight: 700; border-radius: var(--r-full);
}
.support-card .sc-actions .sa-main { background: var(--white); color: var(--ink-900); }
.support-card .sc-actions .sa-wx { background: #07C160; color: var(--white); }

/* ===========================================================================
   I. 响应式
   =========================================================================== */
@media (min-width: 600px) {
  /* 桌面预览：让固定元素跟着手机框走 */
  .tabbar { box-shadow: 0 -8px 24px rgba(10, 31, 44, .06); }
  .checkout-bar { box-shadow: 0 -8px 24px rgba(10, 31, 44, .06); }
}
@media (max-width: 380px) {
  .goods-grid { gap: var(--sp-2); }
  .kong-grid { grid-template-columns: repeat(4, 1fr); }
  .menu-grid { grid-template-columns: repeat(4, 1fr); }
  .ab-hero h1 { font-size: 32px; }
}

/* ===========================================================================
   工厂服务频道 (h5/service.html)
   =========================================================================== */
.svc-card {
  position: relative;
  display: grid; grid-template-columns: 64px 1fr auto; gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
  box-shadow: var(--sh-1);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.svc-card:active { transform: scale(.992); }
.svc-cover { width: 64px; height: 64px; border-radius: var(--r-sm); background-size: cover; flex: 0 0 auto; }
.svc-cover.sm { width: 48px; height: 48px; }
.svc-main { min-width: 0; }
.svc-title { display: block; font-size: var(--fs-md); font-weight: 700; color: var(--ink-900); }
.svc-desc { display: block; font-size: var(--fs-2xs); color: var(--text-2); margin-top: 2px; line-height: 1.5; }
.svc-meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; flex-wrap: wrap; }
.svc-factory { font-size: var(--fs-2xs); font-weight: 600; color: var(--text-1); }
.svc-card .btn { align-self: center; }

.bar-sticky {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--paper);
  border-bottom: 1px solid var(--border-soft);
}
.svc-row {
  position: relative;
  display: grid; grid-template-columns: 48px 1fr 24px; gap: var(--sp-3); align-items: center;
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.svc-row input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.check-tick {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: transparent; transition: all .18s var(--ease-out);
}
.check-tick svg { width: 14px; height: 14px; }
.svc-row input:checked ~ .check-tick { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc-row:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.rec-card {
  padding: var(--sp-3) var(--sp-4);
  background: var(--white); border: 1px solid var(--border-soft);
  border-radius: var(--r-md); margin-bottom: var(--sp-3);
}
.rec-top { display: flex; align-items: center; justify-content: space-between; }
.rec-top b { font-size: var(--fs-md); }
.rec-meta { display: block; font-size: var(--fs-2xs); color: var(--text-1); margin-top: 4px; }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 8px; font-size: var(--fs-2xs); font-weight: 600;
  color: var(--accent); background: var(--accent-soft);
  border-radius: var(--r-full);
}

.row-list { list-style: none; padding: 0; margin: 0; }
.row-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--sp-3) var(--sp-1); border-bottom: 1px solid var(--border-soft);
}
.row-list-item:last-child { border-bottom: 0; }

/* ===========================================================================
   会员套餐中心 (h5/membership.html)
   =========================================================================== */
.mem-hero {
  position: relative; overflow: hidden;
  margin: var(--sp-4); padding: var(--sp-5);
  border-radius: var(--r-lg); color: #fff;
  background: linear-gradient(150deg, #1B2A33, #0A1F2C 62%);
  box-shadow: var(--sh-2);
}
.mem-hero::after {
  content: ""; position: absolute; right: -16%; top: -42%; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 45, .34), transparent 70%); pointer-events: none;
}
.mem-hero > * { position: relative; z-index: 1; }
.mem-top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.mem-name { font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.02em; }
.mem-expire { font-size: var(--fs-xs); color: rgba(255, 255, 255, .72); margin-top: var(--sp-2); }
.mem-actions { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.mem-actions .mh-btn { min-height: 38px; }

.mem-tabs { display: flex; gap: var(--sp-2); margin: 0 var(--sp-4) var(--sp-4); }
.mem-tab {
  flex: 1; min-height: 44px; border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-2);
  background: var(--white); border: 1px solid var(--border-soft);
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.mem-tab.is-active, .mem-tab[aria-selected="true"] {
  color: #0A1F2C; border-color: var(--accent-buyer-ink);
  box-shadow: 0 0 0 2px var(--accent-buyer-soft);
}

/* 续费档位 */
.renew-opt {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4); margin-bottom: var(--sp-3);
  background: var(--white); border: 1.5px solid var(--border-soft); border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.renew-opt.is-active { border-color: var(--accent-buyer-ink); box-shadow: 0 0 0 3px var(--accent-buyer-soft); }
.renew-opt .ro-main b { font-size: var(--fs-md); }
.renew-opt .ro-main p { font-size: var(--fs-2xs); color: var(--text-2); margin-top: 2px; }
.renew-opt .ro-right { text-align: right; flex: 0 0 auto; }
.renew-opt .ro-price { font-family: var(--font-mono); font-size: var(--fs-lg); font-weight: 700; color: var(--accent-buyer-ink); }
.renew-opt .ro-price s { display: block; font-size: var(--fs-2xs); color: var(--text-3); font-weight: 400; }

/* 升级套餐卡 */
.plan-card {
  position: relative; padding: var(--sp-4); margin-bottom: var(--sp-3);
  background: var(--white); border: 1.5px solid var(--border-soft); border-radius: var(--r-md);
}
.plan-card.is-featured { border-color: var(--accent-buyer-ink); box-shadow: 0 0 0 3px var(--accent-buyer-soft); }
.plan-card.is-current { border-style: dashed; }
.plan-flag {
  position: absolute; top: -10px; right: var(--sp-4); padding: 2px 10px;
  font-size: var(--fs-2xs); font-weight: 700; color: #fff; background: var(--accent-buyer-ink); border-radius: var(--r-full);
}
.plan-name { font-size: var(--fs-lg); font-weight: 700; }
.plan-card .plan-name { color: var(--text-1); }
.plan-price { font-family: var(--font-mono); font-size: var(--fs-xl); font-weight: 700; color: var(--ink-900); margin: var(--sp-2) 0; }
.plan-price small { font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; font-family: var(--font-body); }
.plan-feats { list-style: none; padding: 0; margin: 0 0 var(--sp-3); }
.plan-feats li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--text-1); padding: 4px 0; }
.plan-feats li svg { width: 14px; height: 14px; color: var(--accent-buyer-ink); flex: 0 0 auto; }

/* 支付确认弹窗内的信息行 */
.pay-line { display: flex; align-items: center; justify-content: space-between; padding: var(--sp-3) 0; border-bottom: 1px solid var(--border-soft); }
.pay-line:last-of-type { border-bottom: 0; }
.pay-line b { font-family: var(--font-mono); font-size: var(--fs-md); }

/* 商品详情/购物车底栏比 TabBar 高，按结算条高度留白 */
.page-body:has(~ .checkout-bar),
.checkout-bar ~ .page-body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
.fumio-pdp-detail { max-width: 960px; margin: 0 auto; }
.fumio-pdp-detail img { display: block; max-width: 100%; height: auto; margin: 12px auto; }
/* fumio-fix: 顶部 logo 图标与文字同行 */
.logo{display:flex;align-items:center;gap:8px;text-decoration:none;white-space:nowrap}
.logo-text{display:flex;flex-direction:column;line-height:1.15;font-size:13px;min-width:0}


/* ===========================================================================
   P0-1 交易链路（确认订单 / 收银台 / 支付结果 / 订单详情 / 申请售后 / 评价）
   来源：_design/P0-1/*.html 设计稿公共样式；统一挂在 body.trade-flow 下，避免与旧页冲突。
   2026-10-08a
   =========================================================================== */
.trade-flow .sec-title{margin:var(--sp-5) var(--sp-4) var(--sp-2);font-size:var(--fs-sm);font-weight:600;color:var(--text-3)}
.trade-flow .status-hero{margin:0 0 var(--sp-4);padding:var(--sp-5) var(--sp-4);background:var(--ink-950);color:var(--white)}
.trade-flow .status-hero h2{font-size:var(--fs-xl);font-weight:700;color:var(--white)}
.trade-flow .status-hero p{font-size:var(--fs-sm);opacity:.75;margin-top:4px}
.trade-flow .status-hero .cd{font-family:var(--font-mono);color:var(--accent-buyer)}
.trade-flow .amount-hero{text-align:center;padding:var(--sp-6) var(--sp-4) var(--sp-5)}
.trade-flow .amount-hero small{display:block;font-size:var(--fs-sm);color:var(--text-3)}
.trade-flow .amount-hero b{display:block;font-family:var(--font-mono);font-size:36px;font-weight:700;margin-top:6px}
.trade-flow .amount-hero .meta{font-size:var(--fs-xs);color:var(--text-3);margin-top:6px}
.trade-flow .amount-hero .meta em{font-style:normal;font-family:var(--font-mono);color:var(--accent-buyer)}
.trade-flow .pay-opt{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-4);position:relative;cursor:pointer}
.trade-flow .pay-opt + .pay-opt::before{content:"";position:absolute;top:0;left:var(--sp-4);right:0;height:1px;background:var(--border-soft)}
.trade-flow .pay-opt .po-ico{width:34px;height:34px;border-radius:var(--r-sm);display:grid;place-items:center;font-weight:700;font-size:var(--fs-sm);color:var(--white);flex:0 0 auto}
.trade-flow .pay-opt .po-body{flex:1;min-width:0}
.trade-flow .pay-opt .po-body b{display:block;font-size:var(--fs-md);font-weight:600}
.trade-flow .pay-opt .po-body small{display:block;font-size:var(--fs-xs);color:var(--text-3);margin-top:2px}
.trade-flow .pay-opt.is-off{opacity:.45;cursor:not-allowed}
.trade-flow .pay-opt .radio input{margin:0}
.trade-flow .bottom-act{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;display:flex;gap:var(--sp-2);justify-content:flex-end;align-items:center;padding:var(--sp-3) var(--sp-4) calc(var(--sp-3) + env(safe-area-inset-bottom,0px));background:var(--white);border-top:1px solid var(--border-soft);z-index:var(--z-sticky)}
.trade-flow .bottom-act .pill-btn.is-main{background:var(--accent-buyer);border-color:var(--accent-buyer);color:var(--white)}
.trade-flow .bottom-act:empty{display:none}
.trade-flow .checkout-bar{padding-bottom:calc(var(--sp-3) + env(safe-area-inset-bottom,0px))}
.trade-flow .checkout-bar .cb-btn.is-loading{opacity:.7;pointer-events:none}
.trade-flow .page-body.no-tab{padding-bottom:calc(110px + env(safe-area-inset-bottom,0px))}
.trade-flow .kv{display:flex;justify-content:space-between;gap:var(--sp-3);padding:6px 0;font-size:var(--fs-sm)}
.trade-flow .kv span{color:var(--text-3);flex:0 0 auto}
.trade-flow .kv b{min-width:0;font-weight:500;text-align:right;word-break:break-all}
.trade-flow .kv .mono{font-family:var(--font-mono)}
.trade-flow .kv a{color:var(--info);margin-left:6px;font-size:var(--fs-xs);cursor:pointer}
.trade-flow .kv [data-copy]{display:inline-block;white-space:nowrap;word-break:normal}
.trade-flow .total-row{display:flex;justify-content:space-between;align-items:baseline;padding-top:var(--sp-3);margin-top:var(--sp-2);border-top:1px solid var(--border-soft)}
.trade-flow .total-row b{font-family:var(--font-mono);font-size:var(--fs-xl);color:var(--accent-buyer)}
.trade-flow .form-stack{display:flex;flex-direction:column;gap:var(--sp-5)}
.trade-flow .stars{display:flex;align-items:center;gap:var(--sp-3);padding:6px 0}
.trade-flow .stars span{width:84px;font-size:var(--fs-sm);color:var(--text-2)}
.trade-flow .stars i{font-style:normal;font-size:22px;line-height:1;color:var(--ink-100);cursor:pointer}
.trade-flow .stars i.on{color:var(--warning)}
.trade-flow .stars em{font-style:normal;font-size:var(--fs-xs);color:var(--text-3);margin-left:auto}
.trade-flow .stars.is-off{opacity:.45}
.trade-flow .stars.is-off i{cursor:not-allowed}
.trade-flow .up-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--sp-2)}
.trade-flow .up-grid .cell{aspect-ratio:1;border-radius:var(--r-sm);background:var(--surface-3);position:relative;overflow:hidden}
.trade-flow .up-grid .cell img{width:100%;height:100%;object-fit:cover;display:block}
.trade-flow .up-grid .cell .remove{position:absolute;top:4px;right:4px;width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:rgba(5,9,13,.68);color:var(--white);font-size:12px;line-height:1}
.trade-flow .up-grid .add{aspect-ratio:1;border:1.5px dashed var(--border-strong);border-radius:var(--r-sm);display:grid;place-items:center;color:var(--text-3);font-size:var(--fs-xs);text-align:center;cursor:pointer;position:relative}
.trade-flow .up-grid .add input{position:absolute;inset:0;opacity:0;cursor:pointer}
.trade-flow .up-grid .add.is-busy{opacity:.6;pointer-events:none}
.trade-flow .count{font-size:var(--fs-xs);color:var(--text-3);text-align:right}
.trade-flow .tier{font-size:var(--fs-2xs);color:var(--accent-buyer-ink);background:var(--accent-buyer-soft);padding:1px 6px;border-radius:var(--r-full);margin-left:4px}
.trade-flow .res-wrap{text-align:center;padding:var(--sp-8) var(--sp-5) var(--sp-5)}
.trade-flow .res-ico{width:76px;height:76px;margin:0 auto var(--sp-4);border-radius:50%;display:grid;place-items:center}
.trade-flow .res-ico svg{width:38px;height:38px}
.trade-flow .res-ico.is-pending{background:var(--warning-soft);color:var(--warning)}
.trade-flow .res-ico.is-fail{background:var(--danger-soft);color:var(--danger)}
.res-ico.is-success{background:var(--success-soft);color:var(--success)}
.trade-flow .res-wrap h2{font-size:var(--fs-xl);font-weight:700}
.trade-flow .res-wrap p{font-size:var(--fs-sm);color:var(--text-3);margin-top:6px;line-height:1.6}
.trade-flow .res-btns{display:flex;gap:var(--sp-3);margin:var(--sp-6) var(--sp-4) 0}
.trade-flow .res-btns .btn{flex:1}
.trade-flow .logi{display:flex;gap:var(--sp-3);align-items:flex-start;flex:1;min-width:0}
.trade-flow .logi b{font-size:var(--fs-sm);font-weight:600;display:block}
.trade-flow .logi small{font-size:var(--fs-xs);color:var(--text-3)}
.trade-flow .segment button[disabled]{opacity:.45;cursor:not-allowed}
.trade-flow .chips .badge{cursor:pointer;user-select:none}
.trade-flow .oc-goods + .oc-goods{border-top:1px solid var(--border-soft)}
.trade-flow .app-cell.is-off{opacity:.45}
.trade-flow .app-cell[data-act]{cursor:pointer}
/* 右侧抽屉（core.css .drawer）内的选项列表 */
.trade-flow .drawer-head{display:flex;align-items:center;justify-content:space-between;padding:var(--sp-5) var(--sp-5) var(--sp-3)}
.trade-flow .drawer-head h3{font-size:var(--fs-lg)}
.trade-flow .drawer-body{flex:1;overflow-y:auto;padding:0 var(--sp-5) var(--sp-5)}
.trade-flow .drawer-opt{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-4) 0;border-bottom:1px solid var(--border-soft);cursor:pointer}
.trade-flow .drawer-opt .do-body{flex:1;min-width:0}
.trade-flow .drawer-opt .do-body b{display:block;font-size:var(--fs-md);font-weight:600}
.trade-flow .drawer-opt .do-body small{display:block;font-size:var(--fs-xs);color:var(--text-3);margin-top:2px}
.trade-flow .drawer-opt.is-off{opacity:.45;cursor:not-allowed}
.trade-flow .drawer-mask{position:fixed;inset:0;z-index:calc(var(--z-drawer) - 1);background:rgba(6,14,20,.5)}
.trade-flow .drawer-mask[hidden]{display:none}

/* Mobile headers keep business navigation; auxiliary share/help actions are hidden. */
.phone .app-bar [data-share],
.phone .app-bar [aria-label="分享"],
.phone .app-bar [aria-label="share" i],
.h5-help-trigger,
[data-h5-help-open] { display: none !important; }

/* Shared mobile back controls, including pages without the standard app bar. */
[data-mobile-back]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-width:44px;min-height:44px;box-sizing:border-box;text-decoration:none;touch-action:manipulation}
[data-mobile-back] svg{width:24px;height:24px}
.mobile-back-title{display:flex;align-items:center;gap:4px;min-width:0}
.member-head [data-mobile-back]{color:#fff}
.has-mobile-backbar body{padding-top:56px}
.mobile-backbar{position:fixed;z-index:60;top:0;left:0;right:0;height:56px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:0 64px;background:var(--paper,#FBFAF8);color:var(--text,#0A1F2C);border-bottom:1px solid var(--border-soft,#e7ecef)}
.mobile-backbar>[data-mobile-back]{position:absolute;left:12px;top:6px;color:inherit}
.mobile-backbar>h1,.mobile-backbar>div{margin:0;font:600 16px/1.4 system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
