/* ==========================================================================
   奈斯商行 · 设计系统
   B 方向 · 硬朗工业风：纸灰网格底 / 墨黑粗描边 / 亮琥珀点缀 / 硬投影 / 直角
   ========================================================================== */

:root {
  /* 底色（工业风：纸灰底 + 纯白面板） */
  --bg:        #F1F0EC;
  --bg-soft:   #E9E7E1;
  --panel:     #FFFFFF;
  --panel-2:   #F6F5F1;
  --panel-3:   #ECEAE3;

  /* 描边（粗描边体系：常规线 + 墨黑结构线） */
  --line:      #DDD9D0;
  --line-2:    #B9B5A9;
  --ink-line:  #17150F;

  /* 文本 */
  --text:      #17150F;
  --text-2:    #5D5A52;
  --text-3:    #98948A;

  /* 主色：墨黑为骨，亮琥珀作标点式点缀（kicker / 激活态 / 焦点 / 价格） */
  --ink:       #17150F;
  --brand:     #E8930C;
  --acc:       #E8930C;   /* 旧名别名：公告条 / 徽标仍在引用，勿删 */
  --brand-2:   #C97F0A;
  --brand-dim: rgba(232, 147, 12, .12);
  --gold:      #B7791F;
  --red:       #C0392B;
  --ok:        #1F7A5C;
  --mint:      #10B981;

  /* 品质 */
  --q-white:   #94A3B8;
  --q-green:   #16A34A;
  --q-blue:    #E8930C;
  --q-purple:  #7C3AED;
  --q-gold:    #D97706;
  --q-red:     #DC2626;

  /* 圆角：工业风近直角（徽标 2px / 卡片 4px / 大卡 6px） */
  --radius:    2px;
  --radius-lg: 4px;
  --radius-xl: 6px;

  /* 阴影：硬投影（offset shadow，无模糊），工业风签名 */
  --shadow:    8px 8px 0 rgba(23, 21, 15, .92);
  --shadow-sm: 5px 5px 0 rgba(23, 21, 15, .9);
  --shadow-soft: 3px 3px 0 rgba(23, 21, 15, .16);

  /* 动效 token */
  --ease-out-quart: cubic-bezier(.25, 1, .5, 1);
  --ease-out-expo:  cubic-bezier(.16, 1, .3, 1);

  --container: 1360px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Source Han Sans SC",
          system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, "Roboto Mono", monospace;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background-color: var(--bg); }

body {
  margin: 0;
  background-color: var(--bg);
  /* 工业网格底纹：44px 方格，极低对比 */
  background-image:
    linear-gradient(rgba(23, 21, 15, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 15, .04) 1px, transparent 1px);
  background-size: 44px 44px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

/* 弹窗开关时滚动条空间恒定保留，避免整页横向跳动（闪烁主因） */
html { scrollbar-gutter: stable; }

/* 弹窗淡入淡出，避免硬弹出/硬消失的闪动感 */
.modal.is-open { display: flex; animation: dfModalIn .16s ease; }
.modal.is-open .modal__box { animation: dfModalBoxIn .16s ease; }
@keyframes dfModalIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes dfModalBoxIn { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

button { cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, h4 { letter-spacing: -.015em; text-wrap: balance; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--brand); color: #17150F; }

/* 键盘焦点可见性（v19 a11y）：仅键盘导航时显示橙色焦点环 */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

::-webkit-scrollbar { width: 10px; height: 10px; }

::-webkit-scrollbar-track { background: var(--bg-soft); }

::-webkit-scrollbar-thumb { background: #D8D5CE; border-radius: 8px; border: 2px solid var(--bg-soft); }

::-webkit-scrollbar-thumb:hover { background: #C2BEB4; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   通用组件
   ========================================================================== */

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .3px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .18s var(--ease-out-quart), border-color .18s var(--ease-out-quart), color .18s var(--ease-out-quart), transform .12s;
}

.btn:active { transform: translateY(1px); }

.btn[disabled] { opacity: .45; pointer-events: none; }

.btn--primary {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: var(--shadow-soft);
}

.btn--primary:hover {
  background: #000000;
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(232, 147, 12, .95);
}

.btn--ghost {
  border: 1.5px solid var(--ink-line);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover { border-color: var(--brand); color: var(--brand-2); background: var(--brand-dim); }

.btn--soft {
  background: var(--panel-2);
  border: 1.5px solid var(--ink-line);
  color: var(--text);
}

.btn--soft:hover { background: var(--panel-3); transform: translate(-1px, -1px); box-shadow: 3px 3px 0 rgba(23, 21, 15, .85); }

.btn--sm { height: 32px; padding: 0 12px; font-size: 13px; }

.btn--lg { height: 48px; padding: 0 26px; font-size: 15px; }

.btn--block { width: 100%; }

.btn--danger { border-color: rgba(220, 38, 38, .3); color: var(--red); background: rgba(220, 38, 38, .06); }

.btn--danger:hover { background: rgba(220, 38, 38, .12); }

/* ---- 标签 / 徽标 ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  border: 1.5px solid var(--ink-line);
  color: var(--text);
  background: var(--panel);
}

.tag--brand { color: var(--brand-2); border-color: rgba(232, 147, 12, .32); background: var(--brand-dim); }

.tag--gold  { color: var(--gold); border-color: rgba(224, 176, 75, .3); background: rgba(224, 176, 75, .1); }

.tag--ok    { color: var(--ok); border-color: rgba(5, 150, 105, .26); background: rgba(5, 150, 105, .08); }

.tag--muted { color: var(--text-3); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ---- 表单 ---- */
.field { display: flex; flex-direction: column; gap: 7px; }

.field__label {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 4px;
}

.field__label .req { color: var(--brand); font-weight: 700; }

.field__hint { font-size: 12px; color: var(--text-3); line-height: 1.5; }

.input, .select, .textarea {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  transition: border-color .16s, background .16s, box-shadow .16s;
}

.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.6; }

.input::placeholder, .textarea::placeholder { color: #A89C8C; }

.input:hover, .select:hover, .textarea:hover { border-color: var(--line-2); }

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ink-line);
  background: #FFFFFF;
  box-shadow: 3px 3px 0 var(--brand);
}

.input.is-error, .textarea.is-error { border-color: var(--red); }

.select {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5L6 8.5L10 4.5' stroke='%238B8779' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.field__err { font-size: 12px; color: var(--red); display: none; }


/* ---- 卡片 ---- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* ---- 分区标题 ---- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.sec-head__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sec-head h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.sec-head h2 small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
  margin-left: 10px;
  letter-spacing: 0;
}

/* ---- 空状态 / 载入 ---- */
.empty {
  padding: 64px 20px;
  text-align: center;
  color: var(--text-3);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
}

.empty__title { color: var(--text-2); font-size: 15px; margin-bottom: 6px; }

.skeleton {
  background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 37%, var(--panel) 63%);
  background-size: 400% 100%;
  animation: sk 1.3s ease infinite;
  border-radius: var(--radius);
}

@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }




.brand { display: flex; align-items: center; gap: 10px; flex: none; }

.brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #FFF1E7, #FFE3D0);
  border: 1px solid rgba(232, 147, 12, .22);
  border-radius: var(--radius);
}

.brand__mark svg { width: 18px; height: 18px; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name { font-size: 16px; font-weight: 700; letter-spacing: .5px; }

.brand__sub { font-size: 10px; color: var(--text-3); letter-spacing: 2.4px; text-transform: uppercase; }

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}

.drawer.is-open { display: block; }

@keyframes slideIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ==========================================================================
   轮播
   ========================================================================== */
.hero {
  position: relative;
  height: 470px;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.hero__slide.is-active { opacity: 1; pointer-events: auto; }

/* 图片轮播帧：后台可上传图片与设置跳转链接 */
.hero__slide--img { display: block; }

.hero:has(.hero__slide--img.is-active) { height: min(470px, 33vw); }

.hero__slide--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
}

.hero__slide--img::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 70px;
  background: linear-gradient(180deg, transparent, rgba(60, 40, 20, .08));
  pointer-events: none;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.8px;
  margin-bottom: 16px;
  color: var(--text);
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand);
  background: linear-gradient(180deg, transparent 62%, rgba(232, 147, 12, .18) 62%);
}

@keyframes floatY {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

/* 控制器 */
.hero__ctrlwrap {
  position: absolute;
  left: 0; right: 0; bottom: 30px;
  z-index: 4;
  pointer-events: none;
}

.hero__ctrl {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  pointer-events: auto;
}

.hero__dots { display: flex; gap: 6px; }

.hero__dots button {
  width: 26px; height: 4px;
  background: rgba(96, 66, 32, .18);
  border-radius: 8px;
  transition: .25s;
}

.hero__dots button.is-active { background: var(--brand); width: 40px; }

.hero__arrow {
  width: 34px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--text-2);
  transition: .18s;
  background: rgba(255, 255, 255, .9);
}

.hero__arrow:hover { border-color: var(--brand); color: var(--brand); background: #fff; }

/* ==========================================================================
   搜索 + 品类
   ========================================================================== */
.searchbox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s, box-shadow .16s;
}

.searchbox:focus-within { border-color: rgba(232, 147, 12, .5); box-shadow: 0 0 0 3px rgba(232, 147, 12, .08); }

.searchbox svg { flex: none; color: var(--text-3); }

.searchbox input {
  flex: 1;
  height: 100%;
  border: none;
  background: none;
  outline: none;
  font-size: 15px;
}

.searchbox input::placeholder { color: #5C5347; }

/* ==========================================================================
   筛选 + 物资列表
   ========================================================================== */
/* .market 不覆盖 .container 的左右 padding（用单边属性，避免简写清零） */
.market { padding-top: 0; padding-bottom: 20px; }

.filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: var(--panel);
  border: 2px solid var(--ink-line);
  border-bottom-width: 1px;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap;
}

.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  height: 30px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 13px;
  color: var(--text-2);
  transition: .16s;
}

.chip:hover { background: var(--panel-3); color: var(--text); }

.chip.is-active { background: var(--ink); color: #FFFFFF; font-weight: 600; }

.resultbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 2px solid var(--ink-line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}

.resultbar b { color: var(--text); font-family: var(--mono); font-weight: 600; }

.resultbar__tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.activetag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--text-2);
}

.activetag button { color: var(--text-3); font-size: 13px; line-height: 1; }

.activetag button:hover { color: var(--red); }

/* 分页 */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 30px 0 10px;
}

.pager button {
  min-width: 34px; height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text-2);
  font-size: 13px;
  font-family: var(--mono);
  transition: .16s;
}

.pager button:hover:not([disabled]) { border-color: var(--line-2); color: var(--text); background: var(--panel-2); }

.pager button.is-active { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }

.pager button[disabled] { opacity: .35; cursor: default; }

/* ==========================================================================
   我要收物资 · 登记单
   ========================================================================== */

.grid-orders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* ==========================================================================
   弹窗 / 提示
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.is-open { display: flex; }

.modal__mask { position: absolute; inset: 0; background: rgba(4, 6, 9, .72); backdrop-filter: blur(4px); }

.modal__box {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  background: var(--panel);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  animation: pop .2s ease;
}

@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal__head h3 { font-size: 16px; font-weight: 700; }

.modal__close { width: 30px; height: 30px; border-radius: 8px; color: var(--text-3); display: grid; place-items: center; }

.modal__close:hover { background: var(--panel-3); color: var(--text); }

.modal__body { padding: 20px; }

.modal__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-soft);
}

/* toast */
.toasts {
  position: fixed;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background: var(--panel-3);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  animation: toastIn .22s ease;
  max-width: 90vw;
}

@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.toast--ok { border-color: rgba(47, 163, 107, .4); }

.toast--ok svg { color: var(--ok); }

.toast--err { border-color: rgba(229, 72, 77, .4); }

.toast--err svg { color: var(--red); }

/* ==========================================================================
   客服浮窗
   ========================================================================== */
.kf-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.kf-fab__btn {
  width: 54px; height: 54px;
  border-radius: var(--radius);
  border: 2px solid var(--ink-line);
  background: var(--brand);
  color: #17150F;
  display: grid;
  place-items: center;
  box-shadow: 5px 5px 0 rgba(23, 21, 15, .9);
  transition: .2s;
  position: relative;
}

.kf-fab__btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(23, 21, 15, .9); }

/* 登录/注册页：只留面板（由顶栏「联系客服」唤起），不显示圆形悬浮按钮 */
.kf-fab.is-bare .kf-fab__btn { display: none; }

.kf-fab__btn::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1.5px solid rgba(232, 147, 12, .45);
  animation: pulse 2.4s ease infinite;
}

@keyframes pulse { 0% { transform: scale(.96); opacity: .9; } 70% { transform: scale(1.06); opacity: 0; } 100% { opacity: 0; } }

.kf-panel {
  width: 300px;
  background: var(--panel);
  border: 2px solid var(--ink-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(.98);
  pointer-events: none;
  transition: .2s;
  transform-origin: bottom right;
}

.kf-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.kf-panel__head {
  padding: 16px;
  background: linear-gradient(135deg, rgba(232, 147, 12, .16), transparent 70%);
  border-bottom: 1px solid var(--line);
}

.kf-panel__head b { display: block; font-size: 14px; margin-bottom: 3px; }

.kf-panel__head span { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 5px; }

.kf-panel__head span .dot { color: var(--ok); }

.kf-panel__body { padding: 16px; }

.kf-qr {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
  margin-bottom: 12px;
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
  padding: 10px;
}

.kf-qr img { width: 100%; height: 100%; object-fit: contain; }

.kf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.kf-row:last-child { border-bottom: 0; }

.kf-row span { color: var(--text-3); font-size: 12px; }

.kf-row b { font-family: var(--mono); font-weight: 600; letter-spacing: .2px; }

.kf-copy {
  font-size: 11px;
  color: var(--brand-2);
  border: 1px solid rgba(232, 147, 12, .3);
  padding: 1px 6px;
  border-radius: 8px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
/* 顶条公告标签：琥珀条上的黑章 */
.shell-top__notice .tag { background: var(--panel); border-color: var(--ink-line); color: var(--text); font-weight: 800; }

/* toast：粗描边 */
.toast {
  border: 2px solid var(--ink-line);
  box-shadow: 4px 4px 0 rgba(23, 21, 15, .85);
}

.footer {
  border-top: 2px solid var(--ink-line);
  background: var(--panel);
  padding: 44px 0 26px;
}

.footer__bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
  flex-wrap: wrap;
}

.footer__disclaimer {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 900px;
}

/* ==========================================================================
   v50 单顶栏外壳（页面互相独立，无跨页导航）
   ========================================================================== */

/* 顶栏：白底 + 墨黑结构线，品牌方章 + 客服/账号入口 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  height: 58px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border-bottom: 2px solid var(--ink-line);
}

.topbar__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

.topbar__brand svg { width: 26px; height: 26px; flex: none; }

.topbar__brand b {
  display: block;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: .3px;
}

.topbar__brand i {
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 2.2px;
  color: var(--text-3);
  font-family: var(--mono);
  display: block;
}

.topbar__right { display: flex; align-items: center; gap: 10px; flex: none; }

/* v71：PC 端导航靠右（紧挨客服/账号按钮左侧），margin-left:auto 吃掉左侧剩余空间；
   ≤640px 由 site.css 两行化覆盖 */
.topbar__nav { display: flex; align-items: center; gap: 18px; margin-left: auto; padding-right: 8px; }

/* 公告条：琥珀底 + 黑章 tag（紧跟顶栏第二行） */
.shell-top {
  position: sticky;
  top: 58px;
  z-index: 60;
  height: 46px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--acc);
  border-bottom: 2px solid var(--ink-line);
  font-size: 12px;
  font-weight: 600;
  color: #17150F;
}

.shell-top__notice { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }

.shell-top__notice span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 960px) {
  .topbar { height: 52px; padding: 0 16px; }

  .shell-top { top: 52px; height: auto; min-height: 40px; padding: 6px 16px; flex-wrap: wrap; }

  .topbar__brand i { letter-spacing: 1.4px; }
}

@media (max-width: 640px) {
  .topbar__brand b { font-size: 14.5px; }

  .topbar__brand i { display: none; }
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1100px) {
  .grid-orders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 860px) {
  .nav__actions .btn--ghost { display: none; }

  .hero { height: 420px; }

  .hero h1 { font-size: 28px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .hero { height: auto; min-height: 460px; padding: 40px 0 60px; margin: 10px 12px 0; }

  .hero__slide { position: relative; display: none; padding: 40px 0 30px; }

  .hero__slide.is-active { display: block; }

  .hero__slide--img { position: absolute; inset: 0; padding: 0; }

  .hero__slide--img.is-active { display: block; }

  .hero:has(.hero__slide--img.is-active) { min-height: 0; height: 46vw; padding: 0; }

  .hero__ctrlwrap { position: static; margin-top: 4px; }

  .filterbar { gap: 8px; }

  .kf-fab { right: 14px; bottom: 14px; }

  .kf-panel { width: min(84vw, 300px); }

  .modal { padding: 0; align-items: flex-end; }

  .modal__box { max-width: 100%; border-radius: 10px 10px 0 0; max-height: 92vh; }
}

/* ==========================================================================
   v25：顶栏右侧（显眼客服 + 登录）/ 公告滚动 / 跨页防闪
   ========================================================================== */

/* v102：跨页切换改为瞬时绘制（去掉交叉淡化——整页明暗交替正是「闪」的来源）；
   html 已固定底色，直接切页不会白闪 */
html { background: var(--bg); }

/* 客服按钮（橙色实心，显眼） */
.top-kf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1.5px solid var(--ink-line);
  border-radius: var(--radius);
  background: var(--brand);
  color: #17150F;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s var(--ease-out-quart);
}

.top-kf:hover { background: var(--acc, #E8930C); filter: brightness(1.06); }

/* 登录 / 注册（墨色描边按钮） */
.top-acc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  border: 1.5px solid var(--ink-line);
  border-radius: var(--radius);
  color: var(--ink, #17150F);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.top-acc:hover { border-color: var(--ink, #17150F); color: var(--ink, #17150F); }

/* 顶栏文字链接：价格表 / 出售登记（v53） */
.top-link {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 4px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.top-link:hover { color: var(--brand-2, #2563EB); border-bottom-color: var(--brand-2, #2563EB); }
.top-link.is-active { color: var(--brand-2, #2563EB); border-bottom-color: var(--brand-2, #2563EB); }

@media (max-width: 560px) {
  .top-link { padding: 0 2px; font-size: 11.5px; }
  .topbar { flex-wrap: wrap; row-gap: 6px; }
}

/* 公告轮播（v107）：逐条翻页式——steps() 离散跳变，每条停留数秒后瞬间切到下一条 */
/* 视口定高一行，轨道内放两份相同列表，位移 50% 即回到开头实现无缝循环 */
.notice-viewport {
  position: relative;
  display: block;
  overflow: hidden;
  min-width: 0;
  flex: 1;
  height: 20px;
}

.notice-track {
  display: flex;
  flex-direction: column;
  animation: noticeFlip 16s steps(4, end) infinite;
  will-change: transform;
}

/* 悬停暂停，方便看清当前条目 */
.topbar__notice:hover .notice-track { animation-play-state: paused; }

.notice-roll {
  display: block;
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

@keyframes noticeFlip { to { transform: translateY(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .notice-track { animation: none; }
}

/* ==========================================================================
   登录弹窗
   ========================================================================== */
.am-field { display: block; margin-bottom: 12px; }

.am-field span {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2, #57534A);
}

.am-field input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1.5px solid var(--ink-line);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink, #17150F);
  font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}

.am-field input:focus {
  outline: none;
  border-color: var(--ink, #17150F);
  box-shadow: 0 0 0 3px rgba(23, 21, 15, .08);
}

.am-err { display: none; margin: -4px 0 10px; color: #C92A2A; font-size: 12px; }

.am-hint { margin: 12px 0 0; text-align: center; font-size: 12px; color: var(--text-3, #8A857A); }

.am-hint a { color: var(--brand-2, #E8930C); font-weight: 600; text-decoration: none; }


/* ==========================================================================
   v34 客服值守分流（顶栏徽标 + 浮窗值守卡片 / 全部客服时段）
   ========================================================================== */
.top-kf__badge {
  margin-left: 6px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  color: #FFFFFF;
  background: rgba(255, 255, 255, .22);
  border-radius: 999px;
  white-space: nowrap;
}

.kf-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line, #E9E7E2);
  border-radius: 8px;
  background: var(--bg-soft, #F7F6F3);
}

.kf-now__l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.kf-now__l b { font-size: 14px; color: var(--ink, #17150F); }

.kf-online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ok, #1F7A5C);
}

.kf-online i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint, #10B981);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

.kf-time { font-size: 11.5px; color: var(--text-3, #A3A099); }

.kf-now__r { flex: none; }

.kf-list-h {
  margin: 14px 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-3, #A3A099);
}

.kf-cslist { border-top: 1px solid var(--line, #E9E7E2); }

.kf-csrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line, #E9E7E2);
  font-size: 12.5px;
}

.kf-csrow__name { color: var(--ink, #17150F); font-weight: 600; }

.kf-csrow.is-cur .kf-csrow__name { color: var(--brand, #E8930C); font-weight: 700; }

.kf-csrow.is-cur .kf-csrow__name::after {
  content: '· 值守中';
  margin-left: 6px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ok, #1F7A5C);
}

.kf-csrow__time {
  flex: 1;
  color: var(--text-3, #A3A099);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.kf-csrow__go {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--brand-2, #C97F0A);
  text-decoration: none;
}

.kf-csrow__go:hover { text-decoration: underline; }

.kf-tip {
  margin: 14px 0 0;
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-3, #A3A099);
  background: var(--bg-soft, #F7F6F3);
  border-radius: 6px;
}

/* ---- 提交订单状态弹窗：胶囊式状态选择 + 支付截图上传 ---- */
.fin-tabs { display: flex; gap: 8px; }
.fin-tabs button {
  flex: 1; padding: 10px 0; border: 1px solid var(--line); background: var(--panel);
  border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--text-2);
  transition: border-color .12s, color .12s, background .12s;
}
.fin-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.fin-tabs button.is-active {
  border-color: var(--brand); color: var(--brand); font-weight: 600;
  background: rgba(232, 147, 12, .07);
}
.fin-proof {
  display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap;
  padding: 12px; border: 1px dashed var(--line); border-radius: 8px; background: var(--bg-soft);
}
.fin-proof__qr {
  width: 110px; height: 110px; object-fit: contain; flex: none;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
.fin-up { flex: 1; min-width: 210px; }
.fin-up__row { display: flex; gap: 10px; align-items: flex-start; }
/* 空状态：虚线上传方块 */
.fin-up__tile {
  width: 96px; height: 96px; flex: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: #fff; border: 1px dashed var(--line); border-radius: 8px; color: var(--text-3);
  font: inherit; transition: border-color .12s, color .12s, background .12s, box-shadow .12s;
}
.fin-up__tile svg { width: 22px; height: 22px; }
.fin-up__tile b { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.fin-up__tile span { font-size: 10.5px; }
.fin-up__tile:hover {
  border-color: var(--brand); color: var(--brand);
  background: rgba(232, 147, 12, .05); box-shadow: 0 0 0 3px rgba(232, 147, 12, .08);
}
.fin-up__tile:disabled { cursor: wait; opacity: .55; }
/* 已上传：缩略图 + 角标 + 悬停操作遮罩 */
.fin-up__prev { position: relative; width: 96px; height: 96px; flex: none; }
.fin-up__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: 8px; border: 1px solid var(--line); background: #fff;
}
.fin-up__ok {
  position: absolute; left: 6px; top: 6px; padding: 2px 7px;
  font-size: 10.5px; font-weight: 600; color: #fff;
  background: var(--ok, #2E7D32); border-radius: 999px;
}
.fin-up__mask {
  position: absolute; inset: 0; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(23, 21, 15, .55); opacity: 0; transition: opacity .15s;
}
.fin-up__prev:hover .fin-up__mask, .fin-up__prev:focus-within .fin-up__mask { opacity: 1; }
.fin-up__mask button {
  padding: 5px 11px; border: 0; border-radius: 6px; cursor: pointer;
  background: #fff; color: var(--text); font-size: 12px; font-weight: 600;
  transition: background .12s, color .12s;
}
.fin-up__mask button:hover { background: var(--brand); color: #fff; }

/* ==========================================================================
   v48 质感升级 · 动效层（全部 transform/opacity，尊重减动效偏好）
   ========================================================================== */

/* 卡片入场：微动效（对齐规范：透明度 + ≤3px 位移，140-200ms，几乎无级联延迟）
   —— 旧版 550ms + 70ms/级延迟在切页时整页明暗交替，观感是「一闪一闪」 */
@keyframes riseIn {
  from { transform: translateY(3px); opacity: .01; }
  to   { transform: none; opacity: 1; }
}

.rise {
  animation: riseIn .16s ease-out both;
  animation-delay: calc(min(var(--rise-i, 0), 3) * 24ms);
}

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   v76 · 切页流畅度（顶栏常驻 + 纸灰遮罩转场）
   --------------------------------------------------------------------------
   闪屏的来源，逐条处理：
   ① 首帧无顶栏：顶栏原先由 JS 注入，插入前高度 0，脚本一跑整页下推 58px。
      → 各页面 HTML 已预置 .topbar 静态骨架，JS 只做文本增量填充。
   ② 新文档首帧无底色：html 未设背景，绘制前是浏览器白底。
      → html 补 background-color（与 body 同色），首帧即纸灰。
   ③ 两页面硬切：旧文档销毁 → 新文档绘制，中间是空白帧。
      → 用「纸灰遮罩接力」盖住这一帧，不依赖浏览器新特性（Edge 114 这类旧内核同样生效）：
        点击导航 → 旧页 70ms 盖上纸灰 → 跳转 → 新页首帧已是纸灰并 180ms 淡出。
        两个遮罩同色首尾相接，视觉上只有内容淡出淡入，看不到白帧。
   ========================================================================== */

/* 顶栏容器接管 sticky：原先 .topbar 的 sticky 受「等高父容器」限制（#siteHeader 高度 = 顶栏高），
   滚动时其实会跟着滚走；改由容器吸附后修好吸顶 */
#siteHeader {
  position: sticky;
  top: 0;
  z-index: 70;
  min-height: 58px;
  background: var(--panel);
  view-transition-name: df-topbar;
}

#siteHeader > .topbar { position: static; top: auto; z-index: auto; }

@media (max-width: 960px) {
  #siteHeader { min-height: 52px; }
}

/* 移动端顶栏两行化，高度由内容决定 */
@media (max-width: 640px) {
  #siteHeader { min-height: 0; }
}

/* ---- 纸灰遮罩：入场 ---- */
.df-veil {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  pointer-events: none;
  animation: dfVeilOut 200ms cubic-bezier(.22, 0, 0, 1) both;
}

@keyframes dfVeilOut {
  from { opacity: 1; }
  to   { opacity: 0; visibility: hidden; }
}

/* ---- 纸灰遮罩：离场（由 common.js 在点击站内链接时插入） ---- */
.df-veil--out {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  pointer-events: none;
  animation: dfVeilIn 70ms linear both;
}

@keyframes dfVeilIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- SPA 壳内切页：内容轻淡入（顶栏 / 页脚不动） ---- */
.spa-in {
  animation: dfSpaIn .18s cubic-bezier(.22, 0, 0, 1) both;
}

@keyframes dfSpaIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 兼容保留：支持跨文档视图过渡的浏览器可另启用，当前统一走遮罩方案 */
@supports (view-transition-name: none) {
  .rise { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .df-veil { animation: none; opacity: 0; visibility: hidden; }
  .df-veil--out { animation: none; opacity: 1; }
}

/* ==========================================================================
   v80 顶栏用户下拉菜单（登录态：头像 + 用户名 + caret → 面板）
   ========================================================================== */
.top-acc.u-dd__btn { position: relative; gap: 7px; padding: 0 10px 0 5px; }
.top-acc.u-dd__btn.is-open { border-color: var(--ink, #17150F); }

.u-dd__ava {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex: none;
  border-radius: 50%;
  background: var(--ink, #17150F);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
}
.u-dd__ava--lg { width: 36px; height: 36px; font-size: 15px; }

.u-dd__name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.u-dd__caret { transition: transform .16s cubic-bezier(.2, 0, 0, 1); }
.top-acc.u-dd__btn.is-open .u-dd__caret { transform: rotate(180deg); }

.u-dd__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 300;
  width: 208px;
  background: var(--panel, #fff);
  border: 1.5px solid var(--ink-line, #17150F22);
  border-radius: 6px;
  box-shadow: 0 12px 32px rgba(15, 18, 22, .13);
  animation: uddIn .16s cubic-bezier(.2, 0, 0, 1);
}
@keyframes uddIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

.u-dd__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line, #E8E4DB);
}
.u-dd__who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.u-dd__who b { font-size: 13.5px; font-weight: 700; color: var(--text, #17150F); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-dd__who span { font-size: 11px; color: var(--text-3, #9A958A); font-family: var(--mono, monospace); }
.u-dd__uid { display: block; margin-top: 2px; }
.u-dd__uid i {
  display: inline;             /* 号码紧跟「UID」标签同一行，不换行 */
  margin-left: 4px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .6px;
  white-space: nowrap;         /* 10 位号码不折行 */
  color: var(--text-2, #4E4A42);
  font-family: var(--mono, monospace);
}

.u-dd__menu { padding: 6px; }

.u-dd__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 4px;
  color: var(--text-2, #4E4A42);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .13s, color .13s;
}
.u-dd__item svg { color: var(--text-3, #9A958A); transition: color .13s; flex: none; }
.u-dd__item:hover { background: var(--bg-soft, #F6F4EF); color: var(--ink, #17150F); }
.u-dd__item:hover svg { color: var(--brand-2, #2563EB); }

.u-dd__foot { padding: 6px; border-top: 1px solid var(--line, #E8E4DB); }
.u-dd__item--out { color: #C2402A; }
.u-dd__item--out svg { color: #C2402A; }
.u-dd__item--out:hover { background: #FBF0ED; color: #A83320; }
.u-dd__item--out:hover svg { color: #A83320; }

@media (max-width: 560px) {
  .u-dd__name { max-width: 64px; }
  .u-dd__panel { width: 196px; right: -8px; }
}

/* ==========================================================================
   v111 提交订单状态：两级选择（已出完 / 未出完）+ 原因卡 + 市场处置提示
   ========================================================================== */
.modal__box--wide { max-width: 560px; }

.fx { display: flex; flex-direction: column; gap: 18px; }

/* 订单摘要 */
.fx__sum {
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg-soft, #F7F6F3);
}
.fx__sum-row { display: flex; justify-content: space-between; gap: 16px; font-size: 12.5px; }
.fx__sum-row > span { flex: none; color: var(--text-3); }
.fx__sum-row > b { font-weight: 600; color: var(--text); text-align: right; word-break: break-all; }
.fx__sum-row > b.fx__brand { color: var(--brand); }

/* 分组标题 */
.fx__group { display: flex; flex-direction: column; gap: 10px; }
.fx__label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.fx__label-sub { font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.fx__req { font-size: 11px; font-weight: 600; color: #C2402A; }

/* 一级：两块结果卡 */
.fx__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fx__seg button {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 12px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: 5px;
  background: var(--panel); cursor: pointer;
  transition: border-color .14s cubic-bezier(.2,0,0,1), background .14s cubic-bezier(.2,0,0,1);
}
.fx__seg button b { font-size: 14px; font-weight: 700; color: var(--text); }
.fx__seg button em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.fx__seg button:hover { border-color: #B9B3A6; }
.fx__seg button.is-active { border-color: var(--brand); background: #F5F8FF; }
.fx__seg button.is-active b { color: var(--brand); }

/* 二级：原因单选卡 */
.fx__opts { display: flex; flex-direction: column; gap: 8px; }
.fx__opt {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--panel); cursor: pointer;
  transition: border-color .14s cubic-bezier(.2,0,0,1), background .14s cubic-bezier(.2,0,0,1);
}
.fx__opt input { position: absolute; opacity: 0; pointer-events: none; }
.fx__opt::before {
  content: ''; flex: none; width: 14px; height: 14px; margin-top: 2px;
  border: 1.5px solid #CFC9BC; border-radius: 50%; background: #fff;
  transition: border .14s cubic-bezier(.2,0,0,1);
}
.fx__opt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fx__opt-body b { font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--text); }
.fx__opt-body em { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.fx__opt:hover { border-color: #B9B3A6; }
.fx__opt.is-checked { border-color: var(--brand); background: #F5F8FF; }
.fx__opt.is-checked::before { border: 4.5px solid var(--brand); }
.fx__opt.is-checked .fx__opt-body b { color: var(--brand); }
.fx__opt.is-disabled { opacity: .45; cursor: not-allowed; }

/* 处置标签 */
.fx__tag {
  flex: none; white-space: nowrap;
  padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px;
  font-size: 10.5px; font-weight: 600; color: var(--text-3); background: var(--panel);
}
.fx__tag--off { color: #C2402A; border-color: #EBC7BF; background: #FBF0ED; }
.fx__tag--delay { color: #8A6A12; border-color: #E8D9AE; background: #FCF7E8; }
.fx__tag--now, .fx__tag--split { color: #2563EB; border-color: #CBD9F6; background: #F1F5FF; }
.fx__tag--ok { color: #2F6B4F; border-color: #C9E1D4; background: #F0F7F3; }

/* 剩余数量步进器 */
.fx__qty { display: flex; width: 184px; }
.fx__qty button {
  width: 38px; flex: none; border: 1px solid var(--line); background: var(--bg-soft, #F7F6F3);
  color: var(--text-2); font-size: 16px; line-height: 1; cursor: pointer;
  transition: background .14s, color .14s;
}
.fx__qty button:hover { background: var(--panel-3, #EFECE5); color: var(--text); }
.fx__qty button:first-child { border-radius: 5px 0 0 5px; border-right: 0; }
.fx__qty button:last-child { border-radius: 0 5px 5px 0; border-left: 0; }
.fx__qty input {
  flex: 1; min-width: 0; width: 100%; padding: 9px 4px; text-align: center;
  border: 1px solid var(--line); border-radius: 0; background: #fff;
  font-size: 14px; font-weight: 700; color: var(--text);
  -moz-appearance: textfield;
}
.fx__qty input::-webkit-outer-spin-button,
.fx__qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* 说明与提示 */
.fx__hint { margin: 0; font-size: 11.5px; line-height: 1.65; color: var(--text-3); }
.fx__hint b { color: var(--text); }
.fx__hint--warn, .fx__warn { color: #C2402A; }

/* 支付截图区 */
.fx__pay {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px; border: 1px dashed var(--line); border-radius: 6px;
  background: var(--bg-soft, #F7F6F3);
}
.fx__pay-tip { font-size: 12px; line-height: 1.6; color: var(--text-2); }
.fx__pay-tip b { font-size: 13px; color: var(--brand); }

/* v84 弹窗支付块：左侧提示+上传 / 右侧收款码浮动 */
.fx__pay-row { display: flex; gap: 14px; align-items: flex-start; }
.fx__pay-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.fx__pay-qr { flex: none; width: 108px; text-align: center; }
.fx__pay-qr img {
  display: block; width: 108px; height: 108px; object-fit: cover;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  cursor: zoom-in;
}
.fx__pay-qr em { display: block; margin-top: 4px; font-size: 11px; font-style: normal; color: var(--text-3); }
@media (max-width: 560px) {
  .fx__pay-row { flex-direction: column-reverse; }
  .fx__pay-qr { width: 96px; }
  .fx__pay-qr img { width: 96px; height: 96px; }
}

/* v109：提成收款码外浮层——宽屏挂在弹窗右侧（独立于弹窗容器，JS 按弹窗实际位置 top 对齐），窄屏隐藏回落 */
.fx__qr-float {
  position: fixed;
  display: none; flex-direction: column; align-items: center;
  padding: 0;
  background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
  z-index: 2;
  overflow: hidden;
}
.fx__qr-float .fx__qr-hd {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 9px 12px 8px;
  background: var(--ink, #23201C); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: 1px;
}
.fx__qr-float .fx__qr-hd svg { stroke: #E8C87A; }
.fx__qr-float img {
  display: block; width: 140px; height: auto; margin: 10px 12px 0;
  border: 1px solid var(--line); border-radius: 4px; background: #fff;
  cursor: zoom-in;
}
.fx__qr-float em {
  font-size: 11px; font-style: normal; color: var(--text-2); font-weight: 600;
  margin-top: 8px;
}
.fx__qr-float i {
  font-size: 10.5px; font-style: normal; color: var(--text-3);
  margin: 3px 12px 10px; padding-top: 6px; border-top: 1px dashed var(--line);
  width: calc(100% - 24px); text-align: center;
}
@media (min-width: 1240px) {
  .fx__qr-float { display: flex; }
  .modal .fx__pay-qr { display: none; }   /* 宽屏只用外浮层，支付块内不再重复 */
}

/* 处置结果提示条 */
.fx__result {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--bg-soft, #F7F6F3);
  font-size: 12px; line-height: 1.6; color: var(--text-2);
}
.fx__result > b { flex: none; padding-top: 1px; font-size: 11px; font-weight: 700; color: var(--text-3); }
.fx__result.is-ok { border-color: #C9E1D4; background: #F2F8F4; color: #2F6B4F; }
.fx__result.is-ok > b { color: #2F6B4F; }
.fx__result.is-warn { border-color: #EBC7BF; background: #FBF2EF; color: #A8442C; }
.fx__result.is-warn > b { color: #A8442C; }

@media (max-width: 560px) {
  .modal__box--wide { max-width: 100%; }
  .fx__seg { grid-template-columns: 1fr; }
  .fx__opt { flex-wrap: wrap; }
}

/* ==========================================================================
   v118 提交订单状态成功态：弹窗内明确反馈（原先仅 toast，用户感知不到）
   ========================================================================== */
.fx--done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 12px 22px; text-align: center; }
.fx-done__ico {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #F2F8F4; color: #2F8A57; border: 1px solid #C9E1D4;
}
.fx-done__title { font-size: 17px; font-weight: 700; color: var(--text); }
.fx-done__result { font-size: 13.5px; font-weight: 600; color: #2F8A57; }
.fx-done__after { margin: 2px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--text-3); max-width: 380px; }

/* ==========================================================================
   v83 提交订单状态：多出物品计抽成（下拉选物资 + 数量 → 实时合计）
   ========================================================================== */
.fx__xrow { display: flex; gap: 8px; }
.fx__xrow select,
.fx__xrow input {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line, #E8E4DB);
  border-radius: 4px;
  background: #fff;
  font-size: 12.5px;
  color: var(--text, #17150F);
  font-family: inherit;
}
.fx__xrow select { flex: 1; min-width: 0; }
.fx__xrow input { width: 92px; flex: none; }
.fx__xrow select:focus,
.fx__xrow input:focus { outline: none; border-color: var(--brand-2, #2563EB); }
.fx__xrow button {
  flex: none;
  padding: 0 14px;
  border: 1px solid var(--line, #E8E4DB);
  border-radius: 4px;
  background: var(--bg-soft, #F7F6F3);
  color: var(--text-2, #4E4A42);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .14s cubic-bezier(.2, 0, 0, 1), color .14s cubic-bezier(.2, 0, 0, 1);
}
.fx__xrow button:hover { background: var(--panel-3, #EFECE5); color: var(--text, #17150F); }

.fx__xitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid var(--line, #E8E4DB);
  border-radius: 4px;
  background: var(--bg-soft, #F7F6F3);
  font-size: 12.5px;
  color: var(--text, #17150F);
}
.fx__xitem em { font-style: normal; color: var(--brand-2, #2563EB); font-weight: 600; font-family: var(--mono, monospace); }
.fx__xitem button {
  flex: none;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--text-3, #9A958A);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background .14s, color .14s;
}
.fx__xitem button:hover { background: #FBF0ED; color: #C2402A; }
