/* 红布林包袋搜索 - 浅色主题 */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #d43c33;        /* 红布林红 */
  --primary-dark: #b32e26;
  --bg: #f6f5f3;
  --card: #ffffff;
  --text: #2b2622;
  --text2: #8a817a;
  --line: #ece7e2;
  --radius: 12px;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.hidden { display: none !important; }

/* ---------- 顶栏 ---------- */
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.logo { font-size: 20px; font-weight: 700; white-space: nowrap; }
.logo-sub { font-size: 11px; color: var(--text2); font-weight: 400; letter-spacing: 2px; margin-left: 6px; }

.search-box { display: flex; flex: 1; min-width: 280px; max-width: 520px; }
.search-box input {
  flex: 1;
  border: 2px solid var(--primary);
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.search-box button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 0 22px;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.search-box button:hover { background: var(--primary-dark); }

/* 以图搜款按钮 */
.img-btn {
  background: #fff;
  border: 2px solid var(--primary);
  border-left: 1px solid var(--line);
  border-right: none;
  border-radius: 0;
  padding: 0 12px;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.img-btn:hover { background: #fdf3f2; }
.img-btn:disabled { opacity: .55; cursor: wait; }

/* 识别结果横幅 */
.img-banner {
  max-width: 1200px;
  margin: 10px auto 0;
  padding: 0 20px;
}
.img-banner .inner {
  background: #fdeeec;
  border: 1px solid #f6c8c3;
  color: var(--primary-dark);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  line-height: 1.6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  animation: fadeIn .3s ease both;
}
.img-banner .inner .close { cursor: pointer; color: var(--text2); font-size: 16px; }
.img-banner .inner .close:hover { color: var(--primary); }

/* 品牌条 */
.brand-bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 12px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.brand-chip {
  border: 1px solid var(--line);
  background: #faf9f7;
  color: var(--text2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.brand-chip:hover { border-color: var(--primary); color: var(--primary); }
.brand-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 600;
}

/* ---------- 筛选栏（横向工具条） ----------
 * 布局（手机/平板 = 图示1，桌面同风格）：
 *   .fbar-wrap  固定在结果区顶部，横向滚动的筛选条目
 *   .fdrawer    点击条目后展开的筛选面板（桌面=下拉面板，手机=底部弹层）
 *   .brand-col  品牌单独一列，浮动在左侧
 */
.fbar-wrap {
  position: sticky;
  top: 108px;
  z-index: 40;
  margin-bottom: 14px;
}
.fbar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(43, 38, 34, .05);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.fbar-scroll {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.fbar-scroll::-webkit-scrollbar { display: none; }

/* 横向条左端固定的标题 + 右端 Reset */
.fbar-lead {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  background: #fdeeec;
  border-right: 1px solid var(--line);
}
.fbar-reset {
  flex-shrink: 0;
  border: none;
  border-left: 1px solid var(--line);
  background: none;
  padding: 12px 15px;
  font-size: 12.5px;
  color: var(--text2);
  cursor: pointer;
  white-space: nowrap;
}
.fbar-reset:hover { color: var(--primary); }

/* 单个筛选条目（Brand / Condition / Price …） */
.fbar-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: none;
  border-right: 1px solid var(--line);
  padding: 12px 15px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s;
  position: relative;
}
.fbar-item:last-child { border-right: none; }
.fbar-item:hover { background: #faf8f6; color: var(--primary); }
.fbar-item.active { color: var(--primary); font-weight: 600; background: #fdeeec; }
.fbar-item .fbar-caret {
  font-size: 9px;
  color: var(--text2);
  transition: transform .2s;
}
.fbar-item.active .fbar-caret { transform: rotate(180deg); color: var(--primary); }
/* 有已选条件的条目，右侧显示小红点 */
.fbar-item .fbar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-left: 1px;
}

/* 展开面板（桌面下拉 / 手机底部弹层共用） */
.fdrawer { position: fixed; inset: 0; z-index: 90; display: none; }
.fdrawer.open { display: block; }
.fdrawer-mask {
  position: absolute; inset: 0;
  background: rgba(20, 15, 12, .45);
  animation: fadeIn .2s ease both;
}
.fdrawer-card {
  position: absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: min(720px, 94vw);
  max-width: 720px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 28px);
  animation: dropIn .22s ease both;
}
@keyframes dropIn { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.fdrawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.fdrawer-title { font-size: 14px; font-weight: 700; }
.fdrawer-close {
  background: none; border: none;
  font-size: 17px; line-height: 1;
  color: var(--text2); cursor: pointer;
  padding: 0 2px;
}
.fdrawer-close:hover { color: var(--primary); }
.fdrawer-body {
  overflow-y: auto;
  padding: 4px 18px 14px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.fdrawer-foot {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.fbtn-ghost, .fbtn-primary {
  flex: 1;
  border-radius: 999px;
  padding: 10px 0;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
}
.fbtn-primary { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.fbtn-primary:hover { background: var(--primary-dark); }
.fbtn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* 品牌独立浮动列 */
.brand-col {
  position: sticky;
  top: 162px;
  align-self: flex-start;
  width: 208px;
  flex-shrink: 0;
  z-index: 30;
}
.brand-col-tab {
  display: none;
}
.brand-col-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 130px);
}
.brand-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.brand-col-title { font-size: 14px; font-weight: 700; }
.brand-col-close { display: none; background: none; border: none; font-size: 16px; color: var(--text2); cursor: pointer; }
.brand-col-close:hover { color: var(--primary); }
.brand-col-body {
  overflow-y: auto;
  padding: 8px 15px 14px;
  flex: 1;
}

/* ---------- 筛选分组（面板内部） ---------- */
.fgroup { border-bottom: 1px solid var(--line); }
.fgroup:last-child { border-bottom: none; }
/* 分组标题浮动（sticky）：选项列表很长时（如 LV 的 936 个系列），
   滚动时标题仍固定在顶部，不用滚回去才知道当前在看哪一组。 */
.fgroup-head {
  width: 100%;
  background: var(--card);
  border: none;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 0 var(--line);
}
.fgroup-head:hover { color: var(--primary); }
.fgroup-head .arrow {
  font-size: 10px;
  color: var(--text2);
  transition: transform .2s;
}
.fgroup.open .fgroup-head .arrow { transform: rotate(90deg); }
.fgroup-body { display: none; padding: 0 16px 10px; margin-top: 10px;}
.fgroup.open .fgroup-body { display: block; }

/* 品牌首字母分组（A / B / C …） */
.fletter { margin-bottom: 6px; }
.fletter:last-child { margin-bottom: 0; }
.fletter-head {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: .5px;
  padding: 6px 0 3px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 3px;
}
.fletter .fopt { padding: 3px 0; }

.fopt {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text2);
  padding: 4px 0;
  cursor: pointer;
  line-height: 1.4;
}
.fopt:hover { color: var(--primary); }
.fopt input { accent-color: var(--primary); cursor: pointer; margin: 0; flex-shrink: 0; }
.fopt.on { color: var(--primary); font-weight: 600; }
.fopt .cnt { margin-left: auto; font-size: 11px; color: #c2bab2; }

.fsearch {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 12px;
  margin-bottom: 6px;
  outline: none;
}
.fsearch:focus { border-color: var(--primary); }

.fmore {
  font-size: 11.5px;
  color: var(--primary);
  cursor: pointer;
  padding: 5px 0 0;
  user-select: none;
}
.fmore:hover { text-decoration: underline; }

/* 价格区间 */
.fprice { display: flex; align-items: center; gap: 6px; }
.fprice input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  outline: none;
}
.fprice input:focus { border-color: var(--primary); }
.fprice span { color: var(--text2); font-size: 12px; }
.fprice-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.fprice-quick button {
  border: 1px solid var(--line);
  background: #faf9f7;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  cursor: pointer;
  color: var(--text2);
}
.fprice-quick button:hover { border-color: var(--primary); color: var(--primary); }
.fhint { font-size: 11px; color: var(--text2); margin-top: 6px; line-height: 1.4; }

/* 系列下拉（在品牌下方联动出现） */
.fseries { max-height: 300px; overflow-y: auto; }
.fseries .fopt { padding: 3px 0; }

/* 已选条件 */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.active-filters:empty { display: none; }
.afilter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fdeeec;
  border: 1px solid #f6c8c3;
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
}
.afilter b { font-weight: 600; }
.afilter .x { cursor: pointer; font-size: 14px; line-height: 1; opacity: .7; }
.afilter .x:hover { opacity: 1; }

/* ---------- 结果区布局 ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.result-col { flex: 1; min-width: 0; }
/* 横向筛选栏占满容器宽度（在品牌列与结果列上方） */
.fbar-wrap { width: 100%; }

.result-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 14px;
}
#resultKeyword { font-weight: 600; color: var(--text); }

/* 价格排序下拉 */
.sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.sort-box label { color: var(--text2); }
.sort-box select {
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.sort-box select:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

/* ---------- 响应式：手机 / 平板（APP 风格） ---------- */
@media (max-width: 900px) {
  .container { padding: 12px; gap: 12px; }
  .fbar-wrap { top: 96px; margin-bottom: 10px; }
  .fbar-item { padding: 11px 13px; font-size: 12.5px; }

  /* 展开面板 → 底部弹层（APP 风格） */
  .fdrawer-card {
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    border-radius: 16px 16px 0 0;
    max-height: 78vh;
    animation: sheetIn .25s ease both;
  }
  @keyframes sheetIn { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .fdrawer-body { padding: 4px 16px 14px; }
  .fdrawer-foot { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }

  /* 品牌列 → 独立抽屉（左/右侧滑出），用 tab 唤起 */
  .brand-col {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 95;
    pointer-events: none;
  }
  .brand-col-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    pointer-events: auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 14px 9px;
    writing-mode: vertical-rl;
    font-size: 12.5px;
    color: var(--text);
    cursor: pointer;
    box-shadow: 2px 0 10px rgba(43, 38, 34, .1);
  }
  .brand-col-tab .fbar-caret { display: none; }
  .brand-col-panel {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 86%;
    max-width: 340px;
    border-radius: 0;
    max-height: none;
    height: 100%;
    transform: translateX(-100%);
    transition: transform .26s ease;
    pointer-events: auto;
    box-shadow: 4px 0 20px rgba(0, 0, 0, .16);
  }
  .brand-col.open .brand-col-panel { transform: translateX(0); }
  .brand-col-head { padding-top: calc(13px + env(safe-area-inset-top)); }
  .brand-col-close { display: block; }
  .brand-col-body { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .brand-col-mask {
    position: absolute;
    top: 0; bottom: 0; left: 0; right: 0;
    height: 100%;
    background: rgba(20, 15, 12, .45);
    opacity: 0;
    transition: opacity .26s ease;
    /* 关闭状态必须完全不拦截点击，否则会挡住整个页面 */
    pointer-events: none;
  }
  .brand-col.open .brand-col-mask { opacity: 1; pointer-events: auto; }
}

@media (max-width: 720px) {
  .modal-body { flex-direction: column; }
  .gallery { width: 100%; min-width: 0; height:auto !important;}
  .gallery .swiper { height:auto !important;}
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  animation: fadeIn .3s ease both;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(43, 38, 34, .1);
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

.card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f0eeeb;
  display: block;
}
.card-body { padding: 12px 14px 14px; }
.card-name {
  font-size: 13px;
  line-height: 1.45;
  height: 38px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
}
.card-price { color: var(--primary); font-size: 17px; font-weight: 700; }
.card-price { /* 美元价格，符号由 JS 拼入 */ }
/* 展示价 + 删除线虚拟原价（虚拟价 = 展示价 × 1.4） */
.p-now { color: var(--primary); font-weight: 700; }
.p-old {
  color: var(--text2);
  font-size: 12px;
  font-weight: 400;
  margin-left: 6px;
  text-decoration: line-through;
}
.card-orig { color: var(--text2); font-size: 11px; text-decoration: line-through; }
.card-tags { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  font-size: 11px;
  border-radius: 4px;
  padding: 2px 7px;
  background: #f4efe9;
  color: #9b7e5b;
}
.tag.cond { background: #fdeeec; color: var(--primary); font-weight: 600; }

.empty, .loading { text-align: center; color: var(--text2); padding: 60px 0; font-size: 14px; }
.loading::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: -2px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.more-wrap { text-align: center; padding: 24px 0 40px; }
.btn-more {
  background: var(--card);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 999px;
  padding: 10px 40px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.btn-more:hover { background: var(--primary); color: #fff; }
.btn-more:disabled { opacity: .5; cursor: default; }

/* ---------- 详情弹窗 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(20, 15, 12, .55); }
.modal-card {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  width: min(960px, 94vw);
  max-height: 88vh;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
  animation: pop .25s ease both;
}
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.modal-close {
  position: absolute; top: 10px; right: 14px; z-index: 5;
  background: rgba(255,255,255,.85);
  border: none; width: 34px; height: 34px; border-radius: 50%;
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--text2);
}
.modal-close:hover { color: var(--primary); }
.modal-body { display: flex; gap: 0; overflow-y: auto; max-height: 88vh; flex-direction: column;}

.gallery { width: 100%; min-width: 320px; background: #f4f2ef; padding: 0px 0 10px;height:600px; }
.gallery .swiper { aspect-ratio: 1 / 1;height:600px; }
.gallery .swiper-slide img {
  width: 100%; height: 100%; object-fit: contain; cursor: zoom-in;
}
.gallery-tip { text-align: center; font-size: 12px; color: var(--text2); padding: 8px 0 6px; }
.swiper-pagination-bullet-active { background: var(--primary); }
.swiper-button-prev, .swiper-button-next { --swiper-theme-color: var(--primary); }

.info { flex: 1; padding: 26px 26px 20px; }
.m-name { font-size: 17px; line-height: 1.5; margin-bottom: 14px; }
.m-price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.m-price { color: var(--primary); font-size: 26px; font-weight: 800; }
.m-price .p-now { color: var(--primary); font-size: 26px; font-weight: 800; }
.m-price .p-old { font-size: 16px; font-weight: 400; margin-left: 0; }
.m-orig .p-old { font-size: 16px; font-weight: 400; }

.m-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }

/* 卡片价格占位（两阶段加载）：小方块呼吸动画，补价后替换为 $xx */
.price-loading {
  display: inline-block;
  width: 44px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #efe9e4 25%, #f7f3f0 50%, #efe9e4 75%);
  background-size: 200% 100%;
  animation: pricePulse 1.2s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes pricePulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 详情弹窗操作区 */
.m-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- 「复制采购信息」按钮 ---------- */
.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-copy:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-copy.done { background: #07c160; }
.btn-copy-ico { font-size: 13px; line-height: 1; }

/* 采购信息预览（中文原文） */
.m-purchase-tip {
  flex: 1 1 100%;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  background: #faf9f7;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  word-break: break-all;
  white-space: pre-line;      /* 保留采购信息里的空行（销售商品ID 前空 2 行） */
}

/* ---------- 手动复制面板（兜底） ---------- */
.wx-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; }
.wx-sheet-mask { position: absolute; inset: 0; background: rgba(20, 15, 12, .5); animation: fadeIn .2s ease both; }
.wx-sheet-card {
  position: relative;
  background: var(--card);
  border-radius: 14px;
  width: min(460px, 92vw);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .26);
  animation: pop .25s ease both;
}
.wx-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.wx-sheet-title { font-size: 15px; font-weight: 700; }
.wx-sheet-close { background: none; border: none; font-size: 17px; color: var(--text2); cursor: pointer; line-height: 1; }
.wx-sheet-close:hover { color: var(--primary); }
.wx-sheet-body { padding: 16px 18px; }
.wx-sheet-desc { font-size: 12.5px; color: var(--text2); line-height: 1.6; margin-bottom: 12px; }
.wx-link-box { display: flex; gap: 8px; }
.wx-link-box input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: 12px;
  color: var(--text);
  background: #faf9f7;
  outline: none;
}
.wx-copy-btn {
  flex-shrink: 0;
  border: none;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 13px;
  cursor: pointer;
}
.wx-copy-btn:hover { background: var(--primary-dark); }
.wx-copy-btn.done { background: #07c160; }

.m-props { border-top: 1px dashed var(--line); padding-top: 14px; }
.m-props .prop {
  display: flex;
  font-size: 13px;
  padding: 6px 0;
  line-height: 1.5;
}
.m-props .prop b { width: 96px; flex-shrink: 0; color: var(--text2); font-weight: 400; }
.m-note { margin-top: 14px; background: #faf7f4; border-radius: 10px; padding: 12px 14px; }
.m-note h3 { font-size: 13px; color: var(--text2); font-weight: 500; margin-bottom: 6px; }
.m-note p { font-size: 13px; line-height: 1.6; }
.m-src { margin-top: 16px; font-size: 11px; color: #c2bab2; }

/* ---------- 瑕疵视图（视角图 + 瑕疵标记点） ---------- */
.m-flaws { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.m-flaw-head {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13px; color: var(--text2); font-weight: 500; margin-bottom: 10px;
}
.m-flaw-count { font-size: 12px; color: var(--primary); font-weight: 600; }

/* 视角切换标签 */
.m-flaw-tabs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.m-flaw-tab {
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 5px 12px;
  font-size: 12px; color: var(--text2); cursor: pointer;
  transition: all .15s; position: relative;
  display: inline-flex; align-items: center; gap: 5px;
}
.m-flaw-tab:hover { border-color: #d8cfc7; color: var(--text); }
.m-flaw-tab.on {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.m-flaw-tab .fdot {
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: #ece7e2; color: var(--text2);
  font-size: 10px; line-height: 16px; text-align: center;
}
.m-flaw-tab.on .fdot { background: rgba(255,255,255,.25); color: #fff; }

/* 视角图舞台 */
.m-flaw-stage {
  position: relative;
  background: #f4f2ef; border-radius: 10px; overflow: hidden;
  height:400px;
}
.m-flaw-stage .fs-wrap { position: relative; width: 100%; }
.m-flaw-stage .fs-img {
  display: block; width: 100%; object-fit: contain; background: #f4f2ef;height:400px;
  cursor: zoom-in;
}

/* 瑕疵清单 */
.m-flaw-list { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.flaw-item {
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 8px; background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.flaw-item:hover { border-color: #e0b7b3; background: #fdfaf9; }
.flaw-item.on { border-color: var(--primary); background: #fdf6f5; }
.flaw-item img {
  width: 60px; height: 60px; border-radius: 6px;
  object-fit: cover; flex-shrink: 0; background: #f4f2ef;
}
.flaw-item .fi-body { flex: 1; min-width: 0; }
.flaw-item .fi-desc { font-size: 13px; color: var(--text); line-height: 1.45; }
.flaw-item .fi-pos {
  font-size: 11px; color: var(--text2); margin-top: 3px;
  display: inline-block; background: #f4f2ef; border-radius: 4px; padding: 1px 6px;
}
.flaw-item .fi-no {
  font-size: 11px; color: var(--primary); font-weight: 600; margin-right: 5px;
}
.m-flaw-empty { font-size: 13px; color: var(--text2); padding: 20px 0; text-align: center; }

/* ---------- 图片放大层（支持左右滑动 + 双指缩放） ---------- */
.zoom {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 8, 6, .94);
  display: flex; align-items: center; justify-content: center;
}
.zoom-swiper { width: 100%; height: 100%; }
.zoom-swiper .swiper-wrapper { align-items: center; }
.zoom-swiper .swiper-slide {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  overflow: hidden;
}
.zoom-swiper .swiper-slide.is-zoomed { overflow: visible; }
.zoom-swiper .swiper-slide img {
  max-width: 94vw; max-height: 88vh;
  object-fit: contain;
  /* 放大后可拖动查看细节 */
  transition: transform .18s ease-out;
  will-change: transform;
}
.zoom-swiper .swiper-slide img.zoomed {
  cursor: grab;
  transition: none;
}
.zoom-swiper .swiper-slide img.zoomed.dragging { cursor: grabbing; }

/* 放大层左右切换箭头 */
.zoom-nav {
  color: rgba(255,255,255,.7);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  transition: background .15s, color .15s;
}
.zoom-nav:hover { color: #fff; background: rgba(255,255,255,.2); }
.zoom-nav::after { font-size: 18px; font-weight: 700; }

/* 关闭按钮 */
.zoom-close-btn {
  position: absolute; top: 16px; right: 18px; z-index: 5;
  width: 38px; height: 38px;
  border: none; border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.85);
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.zoom-close-btn:hover { background: rgba(255,255,255,.22); color: #fff; }

/* 页码指示 */
.zoom-counter {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 5;
  color: rgba(255,255,255,.8); font-size: 13px;
  background: rgba(255,255,255,.08);
  padding: 4px 12px; border-radius: 999px;
}

/* 底部提示 */
.zoom-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 5;
  color: rgba(255,255,255,.55); font-size: 12px;
  pointer-events: none;
}
