/* ==========================================================================
 * 手机外壳 + 运行时 UI（toast / 弹窗 / 扫码 / 登录框）
 * ========================================================================== */

* { -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background: #10151c;
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue',
    'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 设备外框（桌面端显示，移动端自动隐藏） ---------- */
.wx-device {
  position: relative;
  width: calc(var(--frame-w) + 20px);
  height: calc(var(--frame-h) + 20px);
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(160deg, #2a3038 0%, #0d1116 60%, #1b2027 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

body.wx-mobile .wx-device {
  width: var(--frame-w);
  height: var(--frame-h);
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

/* ---------- 屏幕 ---------- */
#wx-app {
  position: relative;
  width: var(--frame-w);
  height: var(--frame-h);
  overflow: hidden;
  border-radius: 36px;
  background: #fff;
  /*
   * 关键：1rpx = 屏宽/750（750 设计稿）。
   * 编译后的 wxss 里有 3000+ 处 calc(N * var(--rpx))，
   * 这个变量必须在这里定义，否则所有 rpx 尺寸都算不出来 ——
   * 页面内容会全部塔陷成 0 尺寸，表现为白屏。
   */
  --rpx: calc(var(--frame-w) / 750);
  /* 页面级 vh/vw 的兼底值，真正的值由 updatePageScrollHeight 按页覆写 */
  --wx-vh: calc(var(--frame-h) / 100);
  --wx-vw: calc(var(--frame-w) / 100);
  /* 关键：让内部 position:fixed（如 nav-bar 组件）以屏幕为基准，而不是浏览器窗口 */
  transform: translate3d(0, 0, 0);
  isolation: isolate;
}

body.wx-mobile #wx-app { border-radius: 0; }

/* ---------- 状态栏 ---------- */
.wx-statusbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 30px;
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', sans-serif;
}
.wx-statusbar-dark { color: #000; }
.wx-statusbar-light { color: #fff; }
.wx-statusbar-time { letter-spacing: 0.2px; }
.wx-statusbar-icons { display: flex; align-items: center; gap: 5px; }

.wx-sb-signal {
  width: 17px; height: 11px;
  background: currentColor;
  clip-path: polygon(0 100%, 0 72%, 14% 72%, 14% 100%, 28% 100%, 28% 48%, 42% 48%, 42% 100%, 57% 100%, 57% 26%, 71% 26%, 71% 100%, 86% 100%, 86% 8%, 100% 8%, 100% 100%);
}
.wx-sb-wifi {
  width: 16px; height: 11px;
  background: currentColor;
  clip-path: polygon(50% 100%, 0 42%, 12% 30%, 30% 22%, 50% 19%, 70% 22%, 88% 30%, 100% 42%);
}
.wx-sb-battery {
  width: 25px; height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 3.5px;
  position: relative;
  opacity: 0.95;
}
.wx-sb-battery::before {
  content: '';
  position: absolute;
  inset: 1.5px;
  width: 70%;
  background: currentColor;
  border-radius: 1.5px;
}
.wx-sb-battery::after {
  content: '';
  position: absolute;
  right: -4px; top: 3.5px;
  width: 2px; height: 4px;
  background: currentColor;
  border-radius: 0 2px 2px 0;
  opacity: 0.6;
}

/* ---------- 原生导航栏（navigationStyle 非 custom 的页面） ---------- */
.wx-navbar-host {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: none;
}
.wx-navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 12px;
}
.wx-navbar-back {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.wx-navbar-arrow {
  width: 11px; height: 11px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  border-radius: 1px;
}
.wx-navbar-title {
  position: absolute;
  left: 0; right: 0;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  pointer-events: none;
}
.wx-navbar-right { width: 44px; }

/* ---------- 页面栈 ---------- */
.wx-pages {
  position: absolute;
  inset: 0;
  z-index: 1;
  /*
   * 关键：让这里（而不是滚动中的 page）成为 position:fixed 的包含块。
   *
   *  1) 桌面端必须有一个包含块，否则页面里 fixed 的元素（nav-bar 组件、
   *     底部悬浮条）会以「整个浏览器窗口」为基准，直接跑出手机外壳。
   *  2) 这个包含块必须“不滚动”，否则 fixed 元素会跟着内容滚走 ——
   *     之前 transform 加在 page.wx-page 上就有这个毛病：充值页往下滚，
   *     底部「立即充值」条会从屏幕底边往上跑。
   *
   * .wx-pages 不滚动且铺满整个手机屏，正好满足两条。
   */
  transform: translate3d(0, 0, 0);
}

page.wx-page {
  position: absolute;
  left: 0; right: 0;
  /*
   * 上下边界由 updatePageScrollHeight() 按页面类型写成内联变量：
   *   - 非自定义导航页：top = 系统导航栏高度（内容不能钻到导航栏底下）
   *   - tabBar 页面：bottom = tabBar 高度（内容不能钻到 tabBar 底下）
   * 这两条正是「按钮被挡住」的根因：之前写死 top/bottom: 0，
   * 页面铺满整个屏幕，于是顶部钻到导航栏下、底部钻到 tabBar 下。
   */
  top: var(--wx-page-top, 0px);
  bottom: var(--wx-page-bottom, 0px);
  display: block;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  /* 注意：这里不能加 transform。
     transform 会让 page 成为 position:fixed 的包含块，而 page 是会滚动的，
     结果页面里 fixed bottom:0 的底部悬浮条会跟着内容一起滚走
     （充值页「立即充值」、会员页「立即开通」都踩过这个坑）。
     包含块交给不滚动的 .wx-pages（见上）。 */
  /* 背景色由页面自己的 wxss 提供（已作用域化为 .pg-xxx），
     这里不重设 background，让 index、order、mine 各页的 design 主题色生效 */
}
page.wx-page.wx-page-leave {
  animation: wx-page-leave 0.22s ease-out forwards;
  pointer-events: none;
}
@keyframes wx-page-leave {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(28%); opacity: 0.6; }
}

.wx-page-content { min-height: 100%; }

/* 自定义组件宿主 */
.wx-component, .wx-component-content { display: block; }

/* ---------- tabBar ---------- */
.wx-tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50px;
  z-index: 20;
  display: flex;
  border-top: 0.5px solid rgba(0, 0, 0, 0.33);
  padding-bottom: env(safe-area-inset-bottom);
}
.wx-tabbar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  user-select: none;
  font-size: 10px;
  line-height: 1.2;
}
.wx-tabbar-icon {
  width: 24px;
  height: 24px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.wx-tabbar-label { font-size: 10px; }

/* ---------- 下拉刷新 ---------- */
.wx-pulldown {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: height 0.2s ease, opacity 0.2s ease;
  z-index: 5;
}
.wx-pulldown-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: rgba(0, 0, 0, 0.45);
  border-radius: 50%;
}
.wx-pulldown-active .wx-pulldown-spinner { animation: wx-spin 0.8s linear infinite; }
@keyframes wx-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
 * UI 层
 * ========================================================================== */
.wx-ui-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}
.wx-ui-layer > * { pointer-events: auto; }

/* ---------- Toast ---------- */
.wx-toast {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.wx-toast-mask { pointer-events: auto; }
.wx-toast-box {
  min-width: 120px;
  max-width: 70%;
  padding: 18px 16px;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.82);
  color: #fff;
  font-size: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: wx-toast-in 0.16s ease-out;
}
@keyframes wx-toast-in { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.wx-toast-text { line-height: 1.35; word-break: break-word; }
.wx-toast-icon { width: 36px; height: 36px; position: relative; }

.wx-toast-icon-success::before {
  content: '';
  position: absolute;
  left: 10px; top: 4px;
  width: 11px; height: 20px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(45deg);
}
.wx-toast-icon-error::before,
.wx-toast-icon-error::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 28px; height: 3px;
  background: #fff;
  border-radius: 2px;
}
.wx-toast-icon-error::before { transform: translate(-50%, -50%) rotate(45deg); }
.wx-toast-icon-error::after { transform: translate(-50%, -50%) rotate(-45deg); }

.wx-toast-icon-loading {
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wx-spin 0.8s linear infinite;
}
.wx-toast-none { padding: 14px 18px; }

/* ---------- 遮罩 / 弹窗 ---------- */
.wx-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  animation: wx-fade 0.15s ease-out;
}
@keyframes wx-fade { from { opacity: 0; } to { opacity: 1; } }
.wx-modal-wrap, .wx-actionsheet-wrap { position: absolute; inset: 0; display: flex; }

.wx-modal {
  position: relative;
  margin: auto;
  width: 76%;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  animation: wx-modal-in 0.18s ease-out;
}
@keyframes wx-modal-in { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
.wx-modal-title {
  padding: 22px 20px 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #000;
}
.wx-modal-content {
  padding: 12px 22px 22px;
  font-size: 14px;
  line-height: 1.55;
  color: #333;
  text-align: center;
  max-height: 50vh;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.wx-modal-input {
  margin: 0 22px 16px;
  width: calc(100% - 44px);
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}
.wx-modal-actions {
  display: flex;
  border-top: 0.5px solid #ededed;
}
.wx-modal-btn {
  flex: 1;
  padding: 14px 0;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  user-select: none;
}
.wx-modal-btn:active { background: #f5f5f5; }
.wx-modal-cancel { color: #000; border-right: 0.5px solid #ededed; }
.wx-modal-confirm { font-weight: 500; }

/* ---------- ActionSheet ---------- */
.wx-actionsheet {
  position: relative;
  margin-top: auto;
  width: 100%;
  animation: wx-sheet-in 0.2s ease-out;
}
@keyframes wx-sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
.wx-actionsheet-list { background: #fff; border-radius: 12px 12px 0 0; overflow: hidden; }
.wx-actionsheet-item {
  padding: 16px 0;
  text-align: center;
  font-size: 16px;
  color: #000;
  cursor: pointer;
  border-bottom: 0.5px solid #ededed;
}
.wx-actionsheet-item:last-child { border-bottom: none; }
.wx-actionsheet-item:active { background: #f5f5f5; }
.wx-actionsheet-cancel {
  margin-top: 8px;
  padding: 16px 0;
  text-align: center;
  font-size: 16px;
  background: #fff;
  cursor: pointer;
  color: #000;
}
.wx-actionsheet-cancel:active { background: #f5f5f5; }

/* ---------- picker（滚轮选择器） ---------- */
.wx-picker-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.wx-picker-sheet {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  animation: wx-sheet-in 0.2s ease-out;
  padding-bottom: env(safe-area-inset-bottom);
}
.wx-picker-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 16px;
  border-bottom: 0.5px solid #ededed;
  font-size: 16px;
}
.wx-picker-cancel { color: #000; cursor: pointer; padding: 6px 4px; }
.wx-picker-confirm { color: #576b95; font-weight: 500; cursor: pointer; padding: 6px 4px; }
.wx-picker-cancel:active, .wx-picker-confirm:active { opacity: 0.55; }

.wx-picker-stage {
  position: relative;
  height: 220px; /* 5 行 × 44px，与 picker.js 的 VISIBLE_ROWS/ITEM_H 对应 */
  overflow: hidden;
}
/* 选中行上下分割线（微信的中间高亮带） */
.wx-picker-band {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 50%;
  height: 44px;
  transform: translateY(-50%);
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  pointer-events: none;
}
.wx-picker-wheel {
  position: relative;
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.wx-picker-wheel::-webkit-scrollbar { display: none; }
.wx-picker-pad { pointer-events: none; }
.wx-picker-item {
  height: 44px;
  line-height: 44px;
  text-align: center;
  font-size: 16px;
  color: #888;
  scroll-snap-align: center;
  transition: color 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 20px;
}
.wx-picker-item.is-active { color: #000; font-weight: 500; }

/* ---------- 微信内引导去浏览器 ---------- */
.wx-openbrowser {
  position: absolute;
  inset: 0;
  z-index: 85;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}
.wx-openbrowser-box {
  width: 100%;
  max-width: 320px;
  margin-top: 46px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 18px 14px;
  text-align: center;
  animation: wx-modal-in 0.2s ease-out;
}
.wx-openbrowser-arrow {
  font-size: 30px;
  line-height: 1;
  color: #D8BE86;
  margin-bottom: 6px;
}
.wx-openbrowser-title {
  font-size: 17px;
  font-weight: 600;
  color: #111;
  margin-bottom: 10px;
}
.wx-openbrowser-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 16px;
}
.wx-openbrowser-btn {
  padding: 12px 0;
  border-radius: 9px;
  background: linear-gradient(135deg, #F0DDB0 0%, #D8BE86 50%, #C9A46A 100%);
  color: #0a1626;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
}
.wx-openbrowser-btn.is-plain {
  background: #f2f2f2;
  color: #444;
  font-weight: 500;
  margin-bottom: 0;
}
.wx-openbrowser-btn:active { opacity: 0.8; }

/* ---------- Native 扫码支付 ---------- */
.wx-payqr {
  position: absolute;
  inset: 0;
  z-index: 85;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
}
.wx-payqr-box {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 14px;
  padding: 20px 18px 14px;
  text-align: center;
  animation: wx-modal-in 0.2s ease-out;
}
.wx-payqr-title { font-size: 17px; font-weight: 600; color: #111; margin-bottom: 14px; }
.wx-payqr-img {
  width: 220px;
  height: 220px;
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
}
.wx-payqr-raw {
  font-size: 11px;
  color: #888;
  word-break: break-all;
  line-height: 1.5;
}
.wx-payqr-tip { font-size: 13px; color: #555; margin-top: 12px; }
.wx-payqr-state { font-size: 13px; color: #9b8a5e; margin-top: 6px; min-height: 18px; }
.wx-payqr-cancel {
  margin-top: 14px;
  padding: 11px 0;
  border-radius: 9px;
  background: #f2f2f2;
  color: #444;
  font-size: 15px;
  cursor: pointer;
}
.wx-payqr-cancel:active { opacity: 0.8; }

/* ---------- 支付结果轻提示（H5 支付回来后） ---------- */
.wx-paytoast {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  z-index: 95;
  padding: 14px 22px;
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.85);
  color: #fff;
  font-size: 15px;
  pointer-events: none;
  animation: wx-toast-in 0.16s ease-out;
}

/* ---------- 图片预览 ---------- */
.wx-preview {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wx-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ==========================================================================
 * 扫码
 * ========================================================================== */
.wx-scan {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: #000;
  display: flex;
  flex-direction: column;
  color: #fff;
}
.wx-scan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 52px 18px 10px;
  font-size: 17px;
  font-weight: 600;
}
.wx-scan-close { cursor: pointer; padding: 0 4px; font-size: 20px; opacity: 0.85; }
.wx-scan-stage { position: relative; flex: 1; overflow: hidden; }
.wx-scan-video { width: 100%; height: 100%; object-fit: cover; }
.wx-scan-frame {
  position: absolute;
  left: 50%; top: 42%;
  width: 224px; height: 224px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.wx-scan-frame span {
  position: absolute;
  width: 26px; height: 26px;
  border: 3px solid #45C878;
}
.wx-scan-frame span:nth-child(1) { left: 0; top: 0; border-right: none; border-bottom: none; }
.wx-scan-frame span:nth-child(2) { right: 0; top: 0; border-left: none; border-bottom: none; }
.wx-scan-frame span:nth-child(3) { left: 0; bottom: 0; border-right: none; border-top: none; }
.wx-scan-frame span:nth-child(4) { right: 0; bottom: 0; border-left: none; border-top: none; }
.wx-scan-tip {
  position: absolute;
  left: 0; right: 0;
  top: calc(42% + 132px);
  text-align: center;
  font-size: 13px;
  opacity: 0.85;
}
.wx-scan-hint {
  position: absolute;
  left: 16px; right: 16px;
  bottom: 12px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: #F5A623;
}
.wx-scan-actions { padding: 12px 18px 28px; display: flex; flex-direction: column; gap: 10px; }
.wx-scan-btn {
  padding: 12px 0;
  text-align: center;
  border-radius: 8px;
  background: #45C878;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.wx-scan-btn-plain { background: rgba(255, 255, 255, 0.14); }
.wx-scan-manual {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2;
}
.wx-scan-manual-box {
  width: 100%;
  background: #1b2027;
  border-radius: 12px;
  padding: 18px;
  box-sizing: border-box;
}
.wx-scan-manual-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.wx-scan-manual-desc { font-size: 12px; opacity: 0.6; margin-bottom: 12px; }
.wx-scan-manual-input {
  width: 100%;
  height: 84px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #0f1319;
  color: #fff;
  padding: 10px;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  resize: none;
  font-family: inherit;
}
.wx-scan-manual-actions { display: flex; gap: 10px; margin-top: 14px; }
.wx-scan-manual-actions .wx-scan-btn { flex: 1; }

/* ==========================================================================
 * 登录 / 注册
 * ========================================================================== */
.wx-auth { position: absolute; inset: 0; z-index: 80; display: flex; }
.wx-auth-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.wx-auth-box {
  position: relative;
  margin: auto;
  width: 84%;
  max-width: 320px;
  max-height: 92%;
  overflow-y: auto;
  background: linear-gradient(180deg, #12233c 0%, #0a1626 100%);
  border: 1px solid rgba(216, 190, 134, 0.28);
  border-radius: 16px;
  padding: 22px 20px 18px;
  box-sizing: border-box;
  color: #fff;
  animation: wx-modal-in 0.2s ease-out;
}
.wx-auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.wx-auth-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #F0DDB0 0%, #D8BE86 50%, #C9A46A 100%);
  color: #0a1626;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.5px;
}
.wx-auth-brand-title { font-size: 16px; font-weight: 600; }
.wx-auth-brand-sub { font-size: 12px; color: #9BA7B5; margin-top: 2px; }

.wx-auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 16px;
}
.wx-auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  font-size: 14px;
  border-radius: 8px;
  color: #9BA7B5;
  cursor: pointer;
  transition: all 0.15s;
}
.wx-auth-tab.is-active { background: #D8BE86; color: #0a1626; font-weight: 600; }

.wx-auth-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 11px 0;
}
.wx-auth-label { font-size: 13px; color: #9BA7B5; width: 60px; flex: none; }
.wx-auth-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  min-width: 0;
}
.wx-auth-input::placeholder { color: #4d5b6b; }

.wx-auth-error {
  min-height: 18px;
  font-size: 12px;
  color: #E05A4A;
  margin-top: 8px;
  line-height: 1.4;
}
.wx-auth-submit {
  margin-top: 6px;
  padding: 13px 0;
  text-align: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #F0DDB0 0%, #D8BE86 50%, #C9A46A 100%);
  color: #0a1626;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.wx-auth-submit.is-busy { opacity: 0.6; pointer-events: none; }
.wx-auth-hint { font-size: 11px; color: #6B7684; text-align: center; margin-top: 12px; line-height: 1.5; }
.wx-auth-cancel { text-align: center; font-size: 14px; color: #9BA7B5; padding: 12px 0 4px; cursor: pointer; }

/* ---------- 启动加载 ---------- */
.wx-boot {
  position: absolute;
  inset: 0;
  z-index: 90;
  background: #091E38;
  color: #D8BE86;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 13px;
  letter-spacing: 1px;
  transition: opacity 0.3s;
}
.wx-boot.is-done { opacity: 0; pointer-events: none; }
.wx-boot-spinner {
  width: 30px; height: 30px;
  border: 2px solid rgba(216, 190, 134, 0.25);
  border-top-color: #D8BE86;
  border-radius: 50%;
  animation: wx-spin 0.9s linear infinite;
}
.wx-boot-error {
  max-width: 80%;
  text-align: center;
  color: #E05A4A;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0;
}
