/* 只放原站没有的样式：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: 10000;
  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: 10000;
}
.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: 10000;
}
.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, .filter-panel__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); }

.home-notice { padding: 20px 18px 16px; }
.home-notice__title { font-size: 16px; font-weight: 600; text-align: center; padding-bottom: 12px; }
.home-notice__btn { margin-top: 16px; height: 38px; border-radius: 19px; background: #ff6a00; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }

/* ---- 商品详情：原站缺参直达会崩溃，这里补可恢复空态 ---- */
.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-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; }
.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; }
