/* aivip 积分返利商城 H5 — 样式 */
:root {
  --blue: #1e9fff;
  --blue-d: #0d8ae8;
  --brand: #1e9fff;
  --green: #3cb878;
  --green-d: #1aad19;
  --orange: #f78b2d;
  --red: #e64340;
  --bg: #f2f3f5;
  --line: #e0e0e0;
  --line-2: #cccccc;
  --text: #333;
  --sub: #777;
  --gray: #999;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  background: #dfe3e8;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
#app {
  max-width: 480px; margin: 0 auto; min-height: 100vh; background: var(--bg);
  position: relative; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, select { font-family: inherit; }

/* ---------- 页面容器 ---------- */
.page { display: none; min-height: 100vh; padding-bottom: 58px; }
.page.active { display: block; }
.page.no-tab { padding-bottom: 60px; }

/* ---------- 首页 ---------- */
.top-notice {
  background: #fff8e6; color: #b8860b; font-size: 12px; padding: 8px 12px;
  border-bottom: 1px solid #f0e2c0; display: flex; align-items: center; gap: 6px;
}
.grid { display: flex; flex-wrap: wrap; padding: 12px 12px 4px; }

/* ---- 商品分类频道栏 ---- */
.ch-wrap { display: flex; align-items: stretch; padding-top: 8px; background: transparent; }
.ch-scroll {
  flex: 1; display: flex; gap: 6px; overflow-x: auto; padding: 0 0 0 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ch-scroll::-webkit-scrollbar { display: none; }
.ch-tab {
  flex: 0 0 calc((100vw - 92px) / 3); min-width: 0; text-align: center;
  box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 8px 6px; font-size: 14px; color: #555; background: #fff;
  border: 1px solid #eceff3; border-radius: 18px; cursor: pointer; user-select: none;
}
.ch-tab.active {
  color: #fff; background: var(--brand, #e2231a); border-color: var(--brand, #e2231a); font-weight: bold;
}
.ch-more {
  flex: 0 0 auto; display: flex; align-items: center; padding: 0 12px 0 12px;
  font-size: 13px; color: #555; cursor: pointer; user-select: none;
}
.ch-more::before { content: ""; width: 1px; height: 14px; background: #e3e6ea; margin-right: 12px; }

/* ---- 频道商品分页条 ---- */
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 8px 0 2px; }
.pg-btn {
  min-width: 76px; text-align: center; box-sizing: border-box;
  padding: 8px 12px; font-size: 13px; color: #555; background: #fff;
  border: 1px solid #eceff3; border-radius: 18px; cursor: pointer; user-select: none;
}
.pg-btn.disabled { opacity: .4; pointer-events: none; }
.pg-info { font-size: 12px; color: #98a2b3; }

/* ---- 商品分类频道页（更多） ---- */
.cat-tip { text-align: center; font-size: 12px; color: #98a2b3; padding: 2px 0 8px; }
.cat-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 4px 0 10px; }
.cat-chip {
  flex: 0 0 calc(33.3% - 10px); box-sizing: border-box; text-align: center;
  padding: 11px 6px; background: #fff; border: 1px solid #eceff3; border-radius: 10px;
  font-size: 13px; color: #444; cursor: pointer; user-select: none;
}
.cat-chip.active {
  color: var(--brand, #e2231a); border-color: var(--brand, #e2231a);
  font-weight: bold; background: #fff5f4;
}
.cat-chip .cnt { display: block; font-size: 11px; color: #98a2b3; margin-top: 3px; font-weight: normal; }

.p-card {
  width: calc(50% - 6px); margin: 0 12px 14px 0; background: #fff;
  border: 1px solid var(--line-2); cursor: pointer;
}
.p-card:nth-child(2n) { margin-right: 0; }
.p-card:active { opacity: .85; }
.p-card .img { width: 100%; aspect-ratio: 1 / .82; overflow: hidden; background: #eef2f6; }
.p-card .img img { width: 100%; height: 100%; object-fit: cover; }
.p-card .name {
  padding: 8px 8px 4px; font-size: 14px; font-weight: bold; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.p-card .desc {
  padding: 0 8px 6px; font-size: 11px; color: var(--sub); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.p-card .meta { padding: 0 8px 10px; display: flex; align-items: baseline; gap: 6px; }
.p-card .meta .now { color: var(--green); font-weight: bold; font-size: 15px; }
.p-card .meta .old { color: var(--gray); font-size: 11px; text-decoration: line-through; }
.p-card .tag {
  display: inline-block; font-size: 10px; color: #fff; background: var(--orange);
  border-radius: 2px; padding: 1px 4px; margin-left: auto;
}

/* ---------- 底部导航 ---------- */
#tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; display: none; height: 52px; background: #fff;
  border-top: 1px solid var(--line-2); z-index: 50;
}
#tabbar.show { display: flex; }
#tabbar .tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 14px; color: #555; border-right: 1px solid var(--line-2);
}
#tabbar .tab:last-child { border-right: none; }
#tabbar .tab.active { background: var(--blue); color: #fff; font-weight: bold; }
#tabbar .tab .ico { font-size: 16px; line-height: 1; }

/* ---------- 通用导航栏 ---------- */
.navbar {
  position: sticky; top: 0; z-index: 40; height: 46px; background: #fff;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 12px;
  font-size: 16px; font-weight: bold;
}
.navbar .back { color: var(--blue); font-size: 15px; font-weight: normal; margin-right: 10px; }
.navbar .right { margin-left: auto; font-size: 13px; font-weight: normal; color: var(--blue); }

/* ---------- 详情页 ---------- */
.d-banner { background: #fff; padding: 12px; }
.d-banner img { width: 100%; border: 1px solid var(--line); }
.price-bar { background: var(--green); color: #fff; padding: 8px 12px; display: flex; align-items: baseline; }
.price-bar .p1 { font-size: 20px; font-weight: bold; }
.price-bar .p2 { font-size: 12px; opacity: .9; text-decoration: line-through; margin-left: 8px; }
.price-bar .p3 { margin-left: auto; font-size: 12px; }
.d-block { background: #fff; margin-top: 10px; padding: 12px; }
.d-name { font-size: 16px; font-weight: bold; margin-bottom: 8px; }
.d-desc { font-size: 13px; color: #666; line-height: 1.85; text-indent: 2em; }
.d-sep-title {
  display: inline-block; background: #efefef; border: 1px solid var(--line-2);
  font-size: 13px; padding: 6px 22px; margin-bottom: 10px;
}
.detail-img img { width: 100%; border: 1px solid var(--line); margin-bottom: 8px; display: block; }
.rebate-tip {
  margin-top: 10px; background: #fff9ec; border: 1px solid #f2dcae; color: #a9761a;
  font-size: 12px; line-height: 1.7; padding: 8px 10px; border-radius: 4px;
}

/* ---------- 底部操作栏 ---------- */
.actionbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%;
  max-width: 480px; height: 54px; background: #fff; border-top: 1px solid #bbb;
  display: none; z-index: 60;
}
.actionbar.show { display: flex; }
.actionbar .btn {
  flex: 1; display: flex; align-items: center; justify-content: center; font-size: 16px;
  border-right: 1px solid #bbb;
}
.actionbar .btn:last-child { border-right: none; }
.actionbar .btn.ghost { color: var(--green-d); background: #fff; }
.actionbar .btn.primary { color: #fff; background: var(--blue); font-weight: bold; }
.actionbar .btn.pay { color: var(--green-d); background: #fff; font-weight: bold; }
.actionbar .btn[disabled] { color: #bbb; background: #e4e6ea; }

/* 详情页操作栏: 上方为直购提示, 下方为按钮(提示更醒目且不挤压按钮) */
#detail-bar { height: auto; flex-direction: column; }
#detail-bar .ab-tip {
  box-sizing: border-box; width: 100%; padding: 6px 12px;
  background: #fff8e6; color: #a9761a; border-bottom: 1px solid #f2dcae;
  font-size: 12px; line-height: 1.45; text-align: center;
}
#detail-bar .ab-btns { display: flex; width: 100%; height: 54px; }
#detail-bar .ab-tip + .ab-btns { height: 52px; }
#page-detail.has-tip { padding-bottom: 96px; }
/* 支付弹窗: 直购订单不返积分提示 */
.pay-tip {
  margin-top: 10px; padding: 8px 10px; border-radius: 4px;
  background: #fff8e6; border: 1px solid #f2dcae; color: #a9761a;
  font-size: 12px; line-height: 1.5; text-align: left;
}

/* ---------- 弹窗 ---------- */
.mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 80; display: none; }
.mask.show { display: block; }
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%;
  max-width: 480px; background: #f7f7f7; border-radius: 14px 14px 0 0; z-index: 90;
  display: none; flex-direction: column; max-height: 88vh; animation: slideUp .22s ease-out;
}
.sheet.show { display: flex; }
@keyframes slideUp { from { transform: translate(-50%, 20px); opacity: .6; } to { transform: translate(-50%, 0); opacity: 1; } }
.sheet-body { overflow-y: auto; padding: 16px 16px 72px; -webkit-overflow-scrolling: touch; }
.sheet-title { text-align: center; font-weight: bold; font-size: 15px; padding: 2px 0 6px; }
/* 弹窗内操作栏: 跟随弹窗排布(不悬浮遮挡内容), 内容区独立滚动 */
.sheet .actionbar {
  position: static; left: auto; transform: none; width: auto; max-width: none;
  flex-shrink: 0; height: 54px; border-radius: 0 0 14px 14px;
}
.sheet .sheet-body { flex: 1 1 auto; min-height: 0; }

/* 活动 / 实名认证 */
.rules-title { font-size: 14px; font-weight: bold; }
.rules-text {
  font-size: 13px; color: #444; line-height: 1.85; margin: 6px 0 16px;
  white-space: pre-wrap; word-break: break-word;
}
.form-row { display: flex; align-items: center; margin-bottom: 12px; font-size: 14px; }
.form-row > label { width: 76px; color: #333; flex-shrink: 0; }
.form-row input, .form-row select {
  flex: 1; height: 34px; border: 1px solid #bbb; background: #fff; padding: 0 8px;
  font-size: 14px; border-radius: 2px; min-width: 0;
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--blue); }
.pair { display: flex; gap: 10px; flex: 1; min-width: 0; }
.pair select { flex: 1; }
.form-hint { font-size: 11px; color: var(--gray); margin: -6px 0 12px 76px; }

/* 支付 */
.pay-sub { text-align: center; font-size: 13px; color: #555; margin: 16px 0 6px; }
.pay-amount { text-align: center; color: var(--green); font-size: 30px; font-weight: bold; margin-bottom: 18px; }
.pay-methods { padding: 0 6px; }
.pay-method {
  display: flex; align-items: center; background: #fff; border: 1px solid #ddd;
  border-radius: 6px; padding: 12px; margin-bottom: 10px; font-size: 14px;
}
.pay-method.sel { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.pay-method .ico {
  width: 26px; height: 26px; border-radius: 50%; margin-right: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 13px; font-weight: bold;
}
.pay-method .radio { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1px solid #ccc; flex-shrink: 0; }
.pay-method.sel .radio { border-color: var(--green); background: radial-gradient(circle at center, #fff 0 4px, var(--green) 4px 10px); }

/* 下单成功 */
.success-wrap { background: #f2f2f2; }
.success-box {
  margin: 26px auto; width: 80%; background: #fbe3b6; border: 2px solid #4caf50;
  border-radius: 14px; padding: 24px 10px; text-align: center;
}
.success-box .big { color: var(--green-d); font-size: 24px; font-weight: bold; }
.success-box .sub { font-size: 14px; font-weight: bold; margin-top: 10px; }
.success-box .note { font-size: 12px; color: #7a6a4d; margin-top: 8px; line-height: 1.6; }

/* ---------- 我的 ---------- */
.user-card {
  margin: 12px; background: #fae8cd; border-radius: 10px; padding: 14px;
  display: flex; align-items: center;
}
.avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--orange);
  margin-right: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.user-info { min-width: 0; }
.user-info .t { font-size: 17px; font-weight: bold; }
.user-info .id { font-size: 13px; color: #666; margin-top: 4px; }
.user-info .login-tip { font-size: 12px; color: var(--blue); margin-top: 4px; }

.seg {
  display: flex; margin: 0 12px; border: 2px solid var(--blue);
  border-radius: 6px; overflow: hidden; background: #fff;
}
.seg .seg-item {
  flex: 1; text-align: center; padding: 9px 0; font-size: 14px; color: var(--blue);
  border-right: 2px solid var(--blue);
}
.seg .seg-item:last-child { border-right: none; }
.seg .seg-item.active { background: var(--blue); color: #fff; font-weight: bold; }

/* 订单卡片 */
.order-card {
  background: #f4f4f4; border: 1px solid #ddd; border-radius: 8px;
  margin: 12px; padding: 10px 12px; font-size: 13px;
}
.order-card .date { font-weight: bold; margin-bottom: 8px; }
.order-main { display: flex; }
.order-main img { width: 84px; height: 70px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--line-2); }
.order-main .mid { flex: 1; padding-left: 10px; min-width: 0; }
.order-main .oname {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 12px; color: #555; line-height: 1.5;
}
.order-main .prices { margin-top: 6px; font-size: 12px; color: #555; line-height: 1.6; }
.order-main .rb { color: var(--red); font-weight: bold; margin-left: 6px; }
.order-status {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  gap: 6px; flex-shrink: 0; padding-left: 8px;
}
.st { color: var(--green); font-size: 13px; white-space: nowrap; }
.st.warn { color: var(--orange); }
.st.gray { color: var(--gray); }
.order-ops { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.mini-btn {
  font-size: 12px; padding: 5px 14px; border-radius: 4px; border: 1px solid var(--blue);
  color: var(--blue); background: #fff;
}
.mini-btn.solid { background: var(--blue); color: #fff; }

/* 钱包 */
.wallet-card { background: #f7f7f7; border: 1px solid #ddd; border-radius: 8px; margin: 12px; padding: 16px 14px; }
.w-row { display: flex; align-items: center; font-size: 15px; margin-bottom: 14px; }
.w-row:last-of-type { margin-bottom: 0; }
.w-row .num { font-weight: bold; margin: 0 4px; }
.w-row .ex {
  color: var(--blue); font-size: 13px; margin-left: auto; border: 1px solid var(--blue);
  border-radius: 3px; padding: 3px 10px;
}
.w-row .ex[disabled] { color: #bbb; border-color: #ddd; }
.w-divider { height: 1px; background: #ddd; margin: 14px 0 12px; }
.cash-title { font-size: 14px; font-weight: bold; margin-bottom: 4px; }
.period { display: flex; align-items: center; padding: 9px 0; border-bottom: 1px dashed #ddd; font-size: 12px; }
.period:last-child { border-bottom: none; }
.period .pl { flex: 1; min-width: 0; }
.period .pname { color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.period .pmeta { color: var(--sub); margin-top: 3px; }
.period .pr { width: 158px; text-align: right; flex-shrink: 0; }
.period .pts { color: var(--blue); }
.period .pts.got { color: var(--green); }
.period .pts.dim { color: #aaa; }
.period .pts.exp { color: var(--red); }
.period .act { margin-left: 8px; }
.period .act.link { color: var(--blue); font-weight: bold; }
.period .act.done { color: var(--green); }
.period .act.exp { color: var(--red); }
.period .act.future { color: #aaa; }
.empty-tip { text-align: center; color: #bbb; font-size: 13px; padding: 34px 10px; line-height: 1.8; }

/* 通用对话框 */
.dialog { position: fixed; inset: 0; z-index: 110; display: none; align-items: center; justify-content: center; }
.dialog.show { display: flex; }
.dialog .d-mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.dialog .d-box { position: relative; width: 84%; max-width: 350px; background: #fff; border-radius: 10px; padding: 20px; }
.dialog .d-t { text-align: center; font-weight: bold; font-size: 15px; margin-bottom: 14px; }
.dialog .d-c { font-size: 13px; color: #666; line-height: 1.7; margin-bottom: 14px; white-space: pre-wrap; }
.dialog input {
  width: 100%; height: 38px; border: 1px solid #bbb; border-radius: 4px;
  padding: 0 10px; font-size: 14px; margin-bottom: 14px;
}
.dialog .d-btns { display: flex; gap: 10px; }
.dialog .d-btns button { flex: 1; height: 38px; border-radius: 4px; font-size: 14px; border: 1px solid #ccc; background: #fff; color: #555; }
.dialog .d-btns button.ok { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 链接复制弹窗(秒到账/绑定/确认收款) */
.lc-status { text-align: center; font-size: 14px; font-weight: bold; margin: 2px 0 12px; }
.lc-status.ok { color: #188a4a; }
.lc-status.warn { color: #e6a23c; }
.lc-note { font-size: 12px; color: #7a8ba0; line-height: 1.6; margin-bottom: 10px; }
.lc-steps { background: #f5f7fa; border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.lc-step { display: flex; align-items: center; font-size: 13px; color: #4a5a6a; padding: 3px 0; }
.lc-step i {
  font-style: normal; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 11px; line-height: 18px;
  text-align: center; margin-right: 8px; flex-shrink: 0;
}
.lc-step b { color: #2a3a4a; }
.lc-toggle { text-align: center; font-size: 12px; color: var(--blue); padding: 6px 0 2px; cursor: pointer; }
.lc-toggle:active { opacity: .7; }
.lc-box {
  width: 100%; height: 64px; font-size: 12px; color: #4a5a6a; word-break: break-all;
  margin-top: 8px; padding: 6px; border: 1px solid #d8dee6; border-radius: 6px;
  background: #fafafa; -webkit-user-select: text; user-select: text; display: none; box-sizing: border-box;
}

/* Toast / Loading */
#toast {
  position: fixed; top: 44%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .78); color: #fff; font-size: 14px; padding: 12px 22px;
  border-radius: 8px; z-index: 200; display: none; max-width: 76%; text-align: center; line-height: 1.5;
}
#loading {
  position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .5);
}
#loading.show { display: flex; }
#loading .box { background: rgba(0, 0, 0, .75); color: #fff; padding: 12px 22px; border-radius: 8px; font-size: 13px; }
.reset-link { display: block; text-align: center; color: #bbb; font-size: 12px; margin: 20px auto 30px; }

/* ---------- 合规页脚（协议 / 隐私政策 / ICP 备案号） ---------- */
.legal-foot {
  padding: 22px 16px 90px;
  text-align: center;
  font-size: 11px;
  color: #9aa0a6;
  line-height: 1.9;
}
.legal-foot a { color: #9aa0a6; text-decoration: none; }
.legal-foot .sep { padding: 0 8px; color: #dcdfe3; }
.legal-foot [data-icp] a { color: #9aa0a6; text-decoration: none; }


/* ===== 多方式登录 / 注册（认证面板） ===== */
.auth-tabs { display: flex; gap: 6px; margin-bottom: 14px; background: #f2f5f9; border-radius: 8px; padding: 4px; }
.auth-tabs button {
  flex: 1; border: none; background: transparent; color: #5a6b7f; font-size: 13px;
  padding: 8px 0; border-radius: 6px; cursor: pointer; font-family: inherit;
}
.auth-tabs button.active { background: #fff; color: var(--blue); font-weight: bold; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-linkrow { display: flex; justify-content: space-between; font-size: 12px; margin-top: 12px; }
.auth-linkrow a { color: var(--blue); text-decoration: none; cursor: pointer; }
.auth-linkrow a.muted { color: #8a94a6; }
.auth-sub { text-align: center; font-size: 12px; color: #8a94a6; margin-bottom: 14px; line-height: 1.7; }
.auth-err { font-size: 12px; color: #ff4d4f; min-height: 16px; margin: 4px 0 8px; }
.pwd-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: #8a94a6; cursor: pointer; user-select: none; }
.pwd-wrap { position: relative; flex: 1; display: flex; align-items: center; }
.pwd-wrap input { width: 100%; padding-right: 48px; }

/* ===== 现代登录界面（aivip v2.3.2） ===== */
.auth-new { padding-top: 6px; }
.auth-brand { text-align: center; padding: 6px 0 20px; }
.auth-brand .auth-logo {
  font-size: 34px; font-weight: bold; color: var(--brand, #e2231a);
  letter-spacing: 1px; line-height: 1.2;
}
.auth-brand .auth-tagline { font-size: 12px; color: #98a2b3; margin-top: 6px; letter-spacing: .5px; }

/* 主 Tab：居中短下划线，去掉胶囊背景 */
.auth-tabs {
  display: flex; justify-content: center; gap: 32px;
  background: none; border-radius: 0; padding: 0; margin-bottom: 20px;
  border-bottom: 1px solid #f0f2f5;
}
.auth-tabs button {
  flex: none; border: none; background: none; color: #98a2b3; font-size: 15px;
  padding: 0 2px 10px; border-radius: 0; cursor: pointer; font-family: inherit;
  position: relative; box-shadow: none;
}
.auth-tabs button.active { background: none; color: #1a1a1a; font-weight: bold; box-shadow: none; }
.auth-tabs button.active::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 22px; height: 2px; border-radius: 2px; background: var(--brand, #e2231a);
}

/* 输入框：浅底大圆角 */
.field-wrap { position: relative; margin-bottom: 12px; }
.inp-modern {
  width: 100%; box-sizing: border-box; height: 48px; padding: 0 16px;
  font-size: 15px; color: #1a1a1a; background: #f5f6f8; border: 1px solid transparent;
  border-radius: 12px; font-family: inherit; -webkit-appearance: none;
}
.inp-modern::placeholder { color: #b4bac4; font-size: 14px; }
.inp-modern:focus { outline: none; background: #fff; border-color: var(--brand, #e2231a); }
.field-wrap .pwd-wrap input { width: 100%; }
.field-wrap .side-code-btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 36px; padding: 0 12px; font-size: 13px; color: var(--brand, #e2231a);
  background: none; border: none; border-left: 1px solid #e4e7ec; border-radius: 0;
  cursor: pointer; font-family: inherit;
}
.field-wrap .side-code-btn:disabled { color: #b4bac4; cursor: default; }

/* 主按钮：大圆角、高 48 */
.btn-modern {
  width: 100%; height: 48px; border: none; border-radius: 24px; font-size: 16px;
  font-weight: bold; font-family: inherit; cursor: pointer; margin-top: 8px;
  letter-spacing: 1px;
}
.btn-modern.primary { background: var(--brand, #e2231a); color: #fff; }
.btn-modern.primary:disabled { opacity: .55; }
.btn-modern.primary:active { opacity: .88; }

.auth-note { font-size: 12px; color: #98a2b3; margin: 0 0 12px; line-height: 1.6; }
.auth-sub2 { text-align: center; font-size: 17px; font-weight: bold; color: #1a1a1a; margin: 0 0 16px; }
.auth-backrow { margin: 0 0 6px; }
.auth-back { font-size: 13px; color: #667085; cursor: pointer; }
.auth-second {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  font-size: 13px; color: #98a2b3; margin-top: 14px;
}
.auth-second a { color: var(--brand, #e2231a); text-decoration: none; cursor: pointer; }
.auth-second .dot { color: #d0d5dd; }
.auth-skip { display: block; text-align: center; font-size: 12px; color: #98a2b3; cursor: pointer; margin-top: 10px; }
.auth-other { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; }
.auth-other-line { flex: 1; height: 1px; background: #f0f2f5; }
.auth-other-txt { font-size: 12px; color: #b4bac4; white-space: nowrap; }
.auth-other-btns { display: flex; gap: 12px; }
.other-btn {
  flex: 1; height: 46px; background: #fff; border: 1px solid #e4e7ec; border-radius: 12px;
  font-size: 14px; color: #475467; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.other-btn:active { background: #fafbfc; }
.other-btn .ico-mail, .other-btn .ico-gest { font-size: 15px; color: #98a2b3; }

/* ===== 手势九宫格 ===== */
.gesture-wrap { margin: 0 auto; position: relative; touch-action: none; }
.gesture-canvas { display: block; cursor: crosshair; touch-action: none; }
.gesture-hint { text-align: center; font-size: 12px; color: #8a94a6; margin-top: 10px; min-height: 18px; }
.gesture-title { text-align: center; font-size: 13px; color: #5a6b7f; margin: 4px 0 14px; }

/* ===== 安全设置 ===== */
.sec-list { background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
.sec-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #f2f5f9; font-size: 14px;
}
.sec-item:last-child { border-bottom: none; }
.sec-item .sec-l { color: #333; }
.sec-item .sec-r { color: #8a94a6; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.sec-item .sec-r .ok { color: #17b26a; }
.sec-item .sec-r .no { color: #ff4d4f; }
.sec-item.action { cursor: pointer; }
.sec-item.action:active { background: #fafbfc; }
.sec-arrow { color: #c8d0da; font-size: 14px; }

/* ===== 注册成功弹窗（v2.3.4） ===== */
.reg-ok { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(15,23,42,.45);
  align-items: center; justify-content: center; }
.reg-ok.show { display: flex; }
.reg-ok-box { background: #fff; border-radius: 16px; padding: 32px 48px; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); animation: regok .25s ease-out; }
@keyframes regok { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.reg-ok-ico { width: 56px; height: 56px; line-height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: #07c160; color: #fff; font-size: 30px; font-weight: bold; }
.reg-ok-t1 { font-size: 18px; font-weight: bold; color: #1d2939; }
.reg-ok-t2 { font-size: 13px; color: #98a2b3; margin-top: 6px; }

/* ===== 收货地址（v2.4.0）：我的-地址管理 + 支付后填写/确认 ===== */
.seg .seg-item { flex: 1; }
.addr-card { background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
  display: flex; align-items: flex-start; gap: 10px; }
.addr-card.sel { box-shadow: 0 0 0 2px var(--blue); }
.addr-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #c8d0da;
  flex-shrink: 0; margin-top: 3px; box-sizing: border-box; }
.addr-card.sel .addr-radio { border-color: var(--blue); background: var(--blue);
  box-shadow: inset 0 0 0 3px #fff; }
.addr-main { flex: 1; min-width: 0; }
.addr-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.addr-name { font-size: 15px; font-weight: bold; color: #1d2939; }
.addr-phone { font-size: 13px; color: #667085; }
.addr-def { font-size: 10px; color: var(--blue); border: 1px solid var(--blue);
  border-radius: 4px; padding: 0 4px; line-height: 16px; flex-shrink: 0; }
.addr-text { font-size: 13px; color: #475467; line-height: 1.5; word-break: break-all; }
.addr-ops { display: flex; gap: 14px; margin-top: 6px; flex-shrink: 0; }
.addr-ops span { font-size: 12px; color: #98a2b3; cursor: pointer; }
.addr-ops span:active { color: var(--blue); }
.addr-ops span.danger:active { color: #ff4d4f; }
.addr-add-btn { display: block; width: 100%; padding: 10px 0; text-align: center;
  border: 1px dashed #c8d0da; border-radius: 10px; color: var(--blue); font-size: 14px;
  background: #fff; margin-top: 2px; cursor: pointer; }
.addr-default-row { display: flex; align-items: center; gap: 6px; font-size: 13px;
  color: #475467; margin: 4px 0 2px; cursor: pointer; }
.addr-default-row input { width: 16px; height: 16px; accent-color: var(--blue); }
.addr-manage-tip { font-size: 12px; color: #98a2b3; margin: 2px 0 10px; }
#addr-list .addr-card { cursor: pointer; }
.addr-skip-row { text-align: center; margin-top: 10px; }
.addr-skip-row a { font-size: 13px; color: #98a2b3; cursor: pointer; }

/* 商品规格（颜色/功能）*/
.spec-row { margin-bottom: 12px; }
.spec-row:last-child { margin-bottom: 0; }
.spec-label { font-size: 13px; color: #333; font-weight: 600; margin-bottom: 8px; }
.spec-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-opt {
  padding: 6px 14px; border: 1px solid #e0e4ea; border-radius: 4px;
  font-size: 13px; color: #333; background: #f7f8fa; cursor: pointer;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.spec-opt.active { border-color: #e4393c; color: #e4393c; background: #fff5f5; font-weight: 600; }
.spec-opt .plus { font-size: 11px; opacity: .8; }

/* 提现待确认收款提醒 */
.wd-alert {
  background: #fff7e6; color: #a9761a; border: 1px solid #ffe2b0;
  border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.5;
  margin-bottom: 10px;
}

/* 列表分页（订单 / 提现记录 / 地址 统一每页 10 条），与首页频道分页样式隔离 */
.list-pager {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 14px 12px 6px;
}
.list-pager .lp-btn {
  min-width: 76px; padding: 8px 14px; border-radius: 6px;
  background: #fff; border: 1px solid var(--blue); color: var(--blue);
  font-size: 13px; line-height: 1.2;
}
.list-pager .lp-btn[disabled] { border-color: #ddd; color: #bbb; background: #fafafa; }
.list-pager .lp-info { flex: 1; text-align: center; font-size: 12px; color: var(--sub); }
.list-pager .lp-info b { color: var(--text); font-weight: 600; }
