/* 只放原站没有的样式：native-* 是本站自造的 toast/loading/modal，
   其余是原生重写时新增的辅助类。
   与原站同名的 class 一律不要写在这里——页面样式由 tools/extract-css.js 从镜像提取，
   在这里重复定义会反过来覆盖原站样式（实测提现记录的 tab 因此变了字号、圆角和配色）。*/
/* 仅补充原站 index.css 未覆盖的部分：toast / loading / modal / 筛选面板。
   页面布局与配色一律沿用 index.css，避免与镜像站产生视觉偏差。 */

/* uni-app 是 `height:100%`（index.css），挂载容器不给高度它就塌成内容高，
   position:absolute; bottom:… 的元素（如设置页的 .weiye）会跟着跑位 */
#app { height: 100%; }

/* ---- 轻提示 ---- */
.native-toast {
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  max-width: 70vw;
  padding: 10px 16px;
  background: rgba(0, 0, 0, .75);
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 6px;
  text-align: center;
  z-index: 10110; /* 要压过 ui/popup.js 的弹层（10075）和确认框，否则支付面板里的提示看不见 */
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
  pointer-events: none;
}
.native-toast.is-show { opacity: 1; visibility: visible; }

/* ---- 加载遮罩 ---- */
.native-loading {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .25);
  z-index: 10100;
}
.native-loading.is-show { display: flex; }
.native-loading__box {
  background: rgba(0, 0, 0, .75);
  color: #fff;
  padding: 18px 22px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
}
.native-loading__spin {
  width: 26px;
  height: 26px;
  margin: 0 auto 8px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: native-spin .8s linear infinite;
}
@keyframes native-spin { to { transform: rotate(360deg); } }

/* ---- 确认框 ---- */
.native-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .4);
  z-index: 10100; /* 高于弹层 10075：支付面板上弹的确认框以前被面板盖住 */
}
.native-modal.is-show { display: flex; }
.native-modal__box {
  width: 280px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.native-modal__title { padding: 18px 16px 6px; text-align: center; font-size: 16px; font-weight: 600; }
.native-modal__content { padding: 6px 16px 18px; text-align: center; font-size: 14px; color: #666; line-height: 1.5; }
.native-modal__btns { display: flex; border-top: 1px solid #eee; }
.native-modal__btn { flex: 1; padding: 12px 0; text-align: center; font-size: 15px; color: #666; }
.native-modal__btn + .native-modal__btn { border-left: 1px solid #eee; }
.native-modal__btn--primary { color: #ff6a00; }

.dp-actions { display: flex; gap: 12px; padding-top: 6px; }
.page-error { padding: 60px 0; text-align: center; color: #999; font-size: 14px; justify-content: center; }
.u-popup__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }

/* index.css 里 `uni-scroll-view{display:block;width:100%}` 是 content-box，
   页面再给它写 `padding:0 15px`（入门指引、图鉴、成就三处）宽度就变成 100%+30px，
   整页跟着横向滚 30px。border-box 让 padding 收进 100% 里，内容照旧在内层滚。
   quick-filter-scroll 本来就自己写了 border-box，这条对它没有影响。 */
uni-scroll-view { box-sizing: border-box; }

/* 注意：别给 #app 加 overflow-x:hidden 来治那 5px 横向溢出。
   CSS 规定 overflow-x 一旦不是 visible，overflow-y 的 visible 就会被算成 auto——
   #app 会变成滚动容器，整页高度塌成一屏，监听 window 滚动的触底加载全失效。
   实测：文档高从几千 px 变成 844，首页翻页直接不动了。 */

/* ---- 商品详情：原站缺参直达会崩溃，这里补可恢复空态 ---- */
.detail-empty { padding: 100px 24px; text-align: center; display: block; }
.detail-empty__text { display: block; color: #999; font-size: 15px; margin-bottom: 20px; }
.detail-empty__btn { display: inline-flex; align-items: center; justify-content: center; margin: 0 auto; width: 160px; height: 38px; border-radius: 19px; background: #ff6a00; color: #fff; font-size: 15px; }

/* 图片预览 */
.preview-box { background: transparent; }
/* 预览图没有尺寸约束就会按原图铺开（商品大图动辄两三千像素）；
   弹窗现在是居中浮层，这里给它一个视口内的上限 */
.preview-box .preview-img { display: block; max-width: 86vw; max-height: 70vh; object-fit: contain; }
.preview-nav { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 0; color: #fff; }
.preview-nav__btn { font-size: 26px; line-height: 1; padding: 0 12px; }
.preview-nav__count { font-size: 14px; }

/* 确认交易时间弹窗 */
.consult-box { padding: 20px 18px 16px; }
.consult-title { font-size: 16px; font-weight: 600; text-align: center; padding-bottom: 12px; }

.seller-remark { padding-top: 14px; }
.seller-remark__text { font-size: 13px; color: #666; line-height: 1.7; padding-top: 8px; }

/* ---- 钱包 / 提现 ---- */
.wallet-balance { padding: 20px 16px; background: #fff; margin-bottom: 10px; display: block; }
.wallet-balance__label { font-size: 13px; color: #999; }
.wallet-balance__value { font-size: 28px; font-weight: 600; color: #333; margin-top: 6px; }
.money-item { padding: 14px 16px; background: #fff; border-bottom: 1px solid #f5f5f5; align-items: center; }
.money-item__title { font-size: 14px; color: #333; }
.money-item__time { font-size: 12px; color: #999; margin-top: 4px; }
.money-item__amount { font-size: 16px; font-weight: 600; }
.money-item__amount.is-in { color: #ff6a00; }
.money-item__amount.is-out { color: #333; }
.withdraw-field, .bind-field { margin-bottom: 14px; }
.withdraw-label { font-size: 13px; color: #666; padding-bottom: 6px; }
.withdraw-accounts { display: block; }
.withdraw-account { padding: 10px 12px; border-radius: 8px; background: #f3f5f9; margin-bottom: 8px; border: 1px solid transparent; display: block; }
.withdraw-account.is-active { border-color: #ff6a00; background: #fff1e6; }
.withdraw-account__name { font-size: 13px; color: #333; }
.withdraw-account__no { font-size: 12px; color: #999; margin-top: 2px; }
.bind-buttons { display: flex; gap: 12px; padding: 20px 16px; }
.bind-btn { flex: 1; height: 40px; border-radius: 20px; background: #ff6a00; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }

/* ---- 发布 / 估价 ---- */
.push-page { padding-bottom: 30px; display: block; }
.push-header { padding: 16px; font-size: 18px; font-weight: 600; }
.push-form { display: block; }
.push-field { padding: 12px 16px; background: #fff; border-bottom: 1px solid #f5f5f5; display: block; }
.push-label { font-size: 14px; color: #333; padding-bottom: 8px; }
.push-required { color: #ff3b30; }
.push-input { width: 100%; height: 38px; border: 0; background: #f3f5f9; border-radius: 8px; padding: 0 12px; font-size: 14px; box-sizing: border-box; }
.push-textarea { height: 76px; padding: 10px 12px; resize: none; font-family: inherit; }
.push-picker { height: 38px; line-height: 38px; background: #f3f5f9; border-radius: 8px; padding: 0 12px; font-size: 14px; color: #333; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.push-picker.is-placeholder { color: #bbb; }
.push-tip { font-size: 12px; color: #999; padding-top: 6px; }
.push-radio-group { display: flex; gap: 10px; }
.push-radio { flex: 1; height: 34px; border-radius: 8px; background: #f3f5f9; color: #666; font-size: 12px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0 6px; }
.push-radio.is-active { background: #fff1e6; color: #ff6a00; }
.push-images { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 8px; }
.push-image { width: 72px; height: 72px; border-radius: 6px; overflow: hidden; }
.push-upload-btn { height: 38px; border-radius: 8px; border: 1px dashed #ccc; color: #999; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.push-estimate { margin: 12px 16px; padding: 14px; background: #fff; border-radius: 10px; display: block; }
.push-estimate__row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: #666; }
.push-estimate__value { color: #ff3b30; font-size: 18px; font-weight: 600; }
.push-estimate__hint { font-size: 12px; color: #999; padding-top: 6px; }
.push-actions { display: flex; gap: 10px; padding: 16px; }
.push-btn { flex: 1; height: 40px; border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.push-btn--ghost { background: #f3f5f9; color: #666; }
.push-btn--calc { background: #fff1e6; color: #ff6a00; }
.push-btn--submit { background: #ff6a00; color: #fff; }
.picker-panel { padding: 16px 0 12px; width: 300px; }
.picker-list { max-height: 46vh; overflow-y: auto; display: block; }
.picker-option { padding: 11px 16px; font-size: 14px; color: #333; }
.picker-option.is-active { color: #ff6a00; background: #fff8f3; }

/* ---- 我的商品 / 售后 ---- */
.my-goods-list { display: block; }
.my-goods-item { padding: 12px 16px; background: #fff; border-bottom: 1px solid #f5f5f5; display: block; }
.my-goods-item__head { display: flex; gap: 10px; }
.my-goods-item__img { width: 84px; height: 68px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.my-goods-item__info { flex: 1; min-width: 0; }
.my-goods-item__title { font-size: 14px; color: #333; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.my-goods-item__meta { font-size: 12px; color: #999; margin-top: 4px; }
.my-goods-item__status { font-size: 12px; margin-top: 4px; }
.my-goods-item__status.is-pending { color: #ff9500; }
.my-goods-item__status.is-online { color: #34c759; }
.my-goods-item__status.is-offline { color: #999; }
.my-goods-item__status.is-sold { color: #007aff; }
.my-goods-item__status.is-rejected { color: #ff3b30; }
.my-goods-item__reject { font-size: 12px; color: #ff3b30; margin-top: 4px; }
.after-reasons { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- 聊天气泡（原站靠环信 SDK 渲染，这里自建） ---- */
.msg-row { display: flex; padding: 8px 12px; gap: 8px; align-items: flex-start; }
.msg-row.is-mine { flex-direction: row-reverse; }
.msg-main { display: block; max-width: 70%; }
.msg-name { font-size: 11px; color: #999; margin-bottom: 3px; }
.msg-bubble { max-width: 70%; padding: 8px 12px; border-radius: 8px; background: #fff; font-size: 14px; color: #333; word-break: break-word; line-height: 1.5; }
.msg-row.is-mine .msg-bubble { background: #95ec69; }
/* 图片消息：气泡本身退成透明，不然图片外面还套着一层白底和内边距 */
.msg-bubble.is-img { padding: 0; background: transparent; max-width: 60%; }
.msg-row.is-mine .msg-bubble.is-img { background: transparent; }
.msg-img { display: block; width: 100%; border-radius: 8px; }
.reject-reason { padding: 6px 16px; font-size: 12px; color: #ff3b30; display: block; }

/* ---- iOS 添加到桌面引导页 ----
   原站是一整张烤死了品牌和域名的海报，这里用 DOM 重画。
   native- 前缀：app.css 只放原站没有的东西，避免和提取出来的原站样式重名互相覆盖。 */
.native-dl-body { padding: 8px 20px 40px; box-sizing: border-box; }
.native-dl-hero { display: flex; flex-direction: column; align-items: center; padding: 18px 0 26px; }
.native-dl-logo { width: 236px; height: 36px; }
.native-dl-title { margin-top: 22px; font-size: 24px; font-weight: 800; color: #14231d; letter-spacing: .5px; }
.native-dl-subtitle { margin-top: 8px; font-size: 13px; color: #6b8078; }

.native-dl-steps { display: flex; flex-direction: column; gap: 14px; }
.native-dl-step { display: flex; align-items: flex-start; gap: 14px; padding: 18px 16px;
  background: #fff; border-radius: 16px; box-shadow: 0 4px 14px rgba(18, 176, 122, .07); }
.native-dl-step-icon-box { position: relative; flex-shrink: 0; }
.native-dl-step-icon { width: 48px; height: 48px; display: block; }
.native-dl-step-no { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px;
  border-radius: 10px; background: #12b07a; color: #fff; font-size: 12px; font-weight: 700;
  line-height: 20px; text-align: center; }
.native-dl-step-text { flex: 1; min-width: 0; }
.native-dl-step-title { display: block; font-size: 15px; font-weight: 600; color: #1f2a26; line-height: 21px; }
.native-dl-step-desc { display: block; margin-top: 6px; font-size: 12.5px; color: #7b8b85; line-height: 19px; }

.native-dl-foot { margin-top: 34px; text-align: center; }
.native-dl-foot-line { font-size: 12px; color: #9ab0a8; letter-spacing: 2px; }

/* ---- 404 ----
   未注册路由以前是整页交回镜像站，镜像拆掉后由前台自己兜。 */
.native-404 { display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 60vh; padding: 0 40px; }
.native-404-code { font-size: 72px; font-weight: 800; color: #d7e3de; line-height: 1; letter-spacing: 2px; }
.native-404-tip { margin-top: 14px; font-size: 15px; color: #8b9a94; }
.native-404-btn { margin-top: 28px; padding: 0 34px; height: 40px; line-height: 40px;
  border-radius: 20px; background: linear-gradient(53deg, #ff5985, #ff3d44); color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: 0 4px 9px rgba(255, 61, 68, .22); }

/* ---- 注册页的图形验证码 ----
   110×40 是 guard.js 出图尺寸 132×48 的 1.2 倍缩放，比例一致所以 cover 不会裁掉数字。
   早先是 88×32——比原图还小，等于把已经不好认的数字再缩 20%，线上真有人反复换图也没敢填。 */
.native-captcha-img { width: 110px; height: 40px; flex-shrink: 0; border-radius: 4px;
  background: #f3f4f8; object-fit: cover; cursor: pointer; user-select: none; }

/* ---- 注册页：没勾协议时让勾选框闪一下 ----
   只弹 toast 不够——按钮在勾选框上面，用户看完提示还得自己找那个 18px 的圈。 */
@keyframes native-agree-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(242, 36, 60, 0); border-color: rgb(200, 201, 204); }
  25%, 75% { box-shadow: 0 0 0 5px rgba(242, 36, 60, .25); border-color: rgb(242, 36, 60); }
}
.native-agree-flash { animation: native-agree-flash .9s ease-in-out 2; }

/* ---- 注册页：协议弹层（不跳页，表单不丢） ---- */
.native-agreement-dialog { width: 86vw; max-width: 340px; background: #fff; border-radius: 12px;
  padding: 18px 16px 16px; box-sizing: border-box; }
.native-agreement-title { font-size: 16px; font-weight: 600; color: #323233; text-align: center;
  margin-bottom: 12px; }
.native-agreement-body { max-height: 56vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  font-size: 13px; line-height: 1.7; color: #606266; word-break: break-word; }
.native-agreement-body img { max-width: 100%; height: auto; }

/* ---------- 首页「下载 App」悬浮条（hub-index.js appDownloadFloat） ---------- */
.native-appdl {
  position: fixed; z-index: 90; left: 12px; right: 12px; max-width: 476px; margin: 0 auto;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 10px; box-sizing: border-box;
  background: var(--card, #fff); border-radius: 14px; cursor: pointer;
  box-shadow: 0 6px 24px rgba(11, 31, 68, .16), 0 0 0 1px var(--line, rgba(0,0,0,.06));
  animation: native-appdl-in .35s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes native-appdl-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.native-appdl-close {
  position: absolute; top: -8px; left: -6px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 16px; line-height: 22px; text-align: center; cursor: pointer;
}
.native-appdl-icon { width: 44px; height: 44px; border-radius: 11px; flex: none; object-fit: cover; background: var(--tap-tint, #E6FBF9); }
.native-appdl-info { flex: 1; min-width: 0; }
.native-appdl-title { font-size: 15px; font-weight: 600; color: var(--t1, #16202A); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.native-appdl-sub { margin-top: 3px; font-size: 12px; color: var(--t2, #6B717A); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.native-appdl-btn {
  flex: none; height: 32px; padding: 0 18px; border-radius: 16px; line-height: 32px;
  background: var(--tap, #00D9C5); color: #fff; font-size: 14px; font-weight: 600;
}
.native-appdl:active .native-appdl-btn { background: var(--tap-deep, #00A99A); }
.native-appdl-guide { position: fixed; inset: 0; z-index: 999; background: rgba(0, 0, 0, .72); }
.native-appdl-guide-arrow {
  position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 22px; width: 44px; height: 60px;
  border-top: 3px solid #fff; border-right: 3px solid #fff; border-top-right-radius: 40px;
}
.native-appdl-guide-text { position: absolute; top: calc(84px + env(safe-area-inset-top, 0px)); right: 24px; left: 24px; text-align: right; color: #fff; font-size: 17px; line-height: 1.7; }
