/* ============ 全局基础 ============ */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* 禁止双指缩放和双击放大，防止打字误触 */
html { touch-action: manipulation; overscroll-behavior: none; }
body { touch-action: manipulation; overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
:root {
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-light: #eaf3ff;
  --red: #ff4444;
  --grey: #9aa4b2;
  --text: #1f2a3a;
  --card-radius: 16px;
  --card-shadow: 0 6px 18px rgba(31, 64, 104, .07);
}
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #dfe7f2;
  color: var(--text);
  overflow: hidden;
  /* 字体渲染优化：抗锯齿 + 清晰锐利 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 450;
}
button { border: none; background: none; font-family: inherit; cursor: pointer; color: inherit; }
input { font-family: inherit; border: none; outline: none; -webkit-user-select: auto; user-select: auto; }
.hidden { display: none !important; }

/* 手机壳舞台：JS 锁定值优先；前置 100vh 行兕底（变量未就绪/老内核时页面不塌陷） */
.stage { height: 100vh; display: flex; align-items: center; justify-content: center; }
.phone {
  position: relative; width: 100%; max-width: 430px; height: 100vh;
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(20, 50, 90, .25);
}
@media (min-width: 500px) { .phone { border-radius: 36px; } }

/* 状态栏（小程序内隐藏） */
.status-bar {
  display: none;
}

/* ============ 字体大小三档调节 ============ */
.font-small { font-size: 15px; }
.font-small .tab-btn span { font-size: 13px; }

.font-normal { font-size: 17px; }
.font-normal .tab-btn span { font-size: 15px; }

.font-large { font-size: 19px; }
.font-large .tab-btn span { font-size: 17px; }
.font-large .ph-title, .font-large .global-title { font-size: 18px; }
.font-large .mine-section { font-size: 18px; }
.font-large .st-menu-item { font-size: 18px; }

/* 字体大小调节按钮 */
.font-size-control {
  display: flex; gap: 0; border-radius: 8px; overflow: hidden;
  border: 1px solid #ddd; margin-left: auto;
}
.fs-btn {
  padding: 4px 12px; border: none; background: #f5f5f5;
  font-size: 12px; color: #666; cursor: pointer;
  border-right: 1px solid #ddd;
}
.fs-btn:last-child { border-right: none; }
.fs-btn.active {
  background: #4a90d9; color: #fff; font-weight: 600;
}

/* ============ 屏幕切换 ============ */
.screen {
  position: absolute; inset: 0 0 0 0; display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
}
.screen.active { opacity: 1; pointer-events: auto; z-index: 10; }
.tab-screen { inset: 0; padding-top: 0; }
/* Tab页层叠机制：栈中页面可见且可交互，z-index由JS动态设置 */
.tab-screen.tab-stacked { opacity: 1; pointer-events: auto; }
/* 后台驻留Tab页隐藏态：不在栈中，不可见/不可交互 */
.tab-screen.tab-hidden { opacity: 0 !important; pointer-events: none !important; z-index: -1 !important; }

/* 页面进出动画（iOS 风垂直过渡）：打开从底部向上滑入，返回从顶部向下滑出，无缩放无闪屏 */
.screen.screen-in  { animation: screenSlideUp .34s cubic-bezier(.22, .61, .36, 1) both; }
.screen.screen-out { animation: screenSlideDown .3s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes screenSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes screenSlideDown { from { transform: translateY(0); } to { transform: translateY(100%); } }
/* 页面进出动画：已移除过渡效果，避免闪烁 */

/* ============ 首页滚动区 ============ */
.home-scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden; overscroll-behavior: none;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  overflow-anchor: none; /* 禁止浏览器滚动锚定，防止 Tab 切换时 DOM 变化引起回弹 */
}
.home-scroll::-webkit-scrollbar { display: none; }

/* 下拉刷新 */
.pull-indicator {
  position: absolute; top: 0; left: 0; right: 0; height: 58px; z-index: 20;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 12px; color: var(--blue); transform: translateY(-100%);
  transition: transform .25s ease; pointer-events: none;
}
.pull-indicator.show { transform: translateY(0); }
.brand-loader {
  width: 22px; height: 22px; border-radius: 7px; flex: none;
  background: linear-gradient(135deg, var(--blue), #6db3ff);
  animation: loaderSpin 1s linear infinite;
}
.brand-loader::after { content: "用"; }
.brand-loader {
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
.home-scroll { position: relative; }

/* 一、品牌通栏（流光标题 + 浅色海浪/阳光/气泡流畅动态背景） */
.brand-bar {
  position: relative; padding: 6px 16px 4px 30px; overflow: hidden;   /* 左边距30px，标题距左边缘30px */
  background: linear-gradient(180deg, #eaf4ff 0%, #fff8ec 100%);
  text-align: left;   /* 标题左对齐 */
}
.brand-txt { position: relative; z-index: 2; }
.bb-sun {   /* 阳光：右上角暖色光晕呼吸 */
  position: absolute; right: -22px; top: -28px; width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 120, .8) 0%, rgba(255, 214, 120, 0) 70%);
  animation: sunPulse 6s ease-in-out infinite alternate;   /* 减速：4s→6s */
  will-change: transform, opacity;   /* GPU 加速 */
}
@keyframes sunPulse { from { transform: scale(.95); opacity: .85; } to { transform: scale(1.05); opacity: 1; } }
.bb-wave {   /* 海浪：旋转圆角方块上缘起伏 */
  position: absolute; left: 50%; bottom: -190px; width: 340%; height: 212px; margin-left: -170%;
  border-radius: 43%; background: rgba(56, 182, 255, .14);
  animation: waveSpin 16s linear infinite;   /* 减速：8s→16s，降低 GPU 负载 */
  will-change: transform;   /* GPU 加速 */
}
.bb-wave.w2 { bottom: -194px; background: rgba(255, 178, 102, .18); border-radius: 46%; animation-duration: 20s; animation-direction: reverse; will-change: transform; }   /* 减速：11s→20s */
@keyframes waveSpin { to { transform: rotate(360deg); } }
.bb-bubble {   /* 气泡：自下而上浮升消散 */
  position: absolute; bottom: -8px; width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255, 255, 255, .9); box-shadow: 0 0 4px rgba(255, 255, 255, .7);
  animation: bubbleUp 6s ease-in infinite;   /* 减速：4.5s→6s */
  will-change: transform, opacity;   /* GPU 加速 */
}
@keyframes bubbleUp {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translateY(-54px); opacity: 0; }
}
.brand-txt h1 {
  font-size: 22px; font-weight: 900; letter-spacing: 3px;
  color: #333;
}
@keyframes rainbowFlow { from { background-position: 0% 0; } to { background-position: 200% 0; } }
/* 标题入场动画 */
.brand-txt h1 { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; }
.brand-txt h1 .t-ch { display: inline-block; }
.brand-txt h1 .t-sp { display: inline-block; width: 14px; }

/* 六、轮播海报（模块间距统一缩小，居中匀称） */
.carousel { margin: 10px 12px 0; position: relative; height: 215px; }   /* 加高让车辆图片显示更完整 */
.car-track { position: relative; height: 100%; }
.poster {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden;
  opacity:0;transition:opacity .6s cubic-bezier(0.16,1,0.3,1); pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  box-shadow: 0 10px 24px rgba(31, 64, 104, .14);
}
/* logoIn 关键帧供推广海报弹窗等内联动画引用 */
@keyframes logoIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.poster.on { opacity: 1 !important; pointer-events: auto; }
.poster.p1 { background: linear-gradient(120deg, #4f8df9, #7db6ff); }
.poster.p2 { background: linear-gradient(120deg, #6a5af9, #8f7bff); }
.poster.p3 { background: linear-gradient(120deg, #12b8a6, #4fd0b8); }
.poster-txt h3 { color: #fff; font-size: 19px; letter-spacing: 1px; }
.poster-txt p { color: rgba(255, 255, 255, .85); font-size: 12px; margin-top: 6px; }
.poster-emoji { font-size: 52px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.poster-cta {
  position: absolute; right: 12px; bottom: 9px; font-size: 10.5px;
  color: rgba(255, 255, 255, .92); background: rgba(255, 255, 255, .22);
  padding: 3px 9px; margin: 0 30px; border-radius: 10px; backdrop-filter: blur(2px);   /* 左右两侧各减少30像素 */
}
.car-dots {
  position: absolute; left: 0; right: 0; bottom: 8px;
  display: flex; justify-content: center; gap: 5px;
}
.car-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); transition: all .3s; }
.car-dots i.on { width: 16px; background: #2f6fe6; }

/* 七、限时秒杀 */
.flash-sale {
  margin: 10px 10px 0; border-radius: var(--card-radius); overflow: hidden;
  background: #fff; box-shadow: var(--card-shadow);
}
.fs-head {
  display: flex; align-items: center; gap: 6px; padding: 9px 0;
}
.fs-alarm { font-size: 17px; display: inline-block; animation: alarmSwing 2.4s ease-in-out infinite; transform-origin: top center; will-change: transform; }   /* 减速：1.2s→2.4s + GPU加速 */
@keyframes alarmSwing {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); }
  60% { transform: rotate(9deg); } 80% { transform: rotate(-6deg); }
}
.fs-title { font-size: 16px; font-weight: 800; letter-spacing: 1px; }
.fs-count { margin-left: auto; display: flex; align-items: center; gap: 3px; }
.fs-label { font-size: 11px; color: #d22c2c; margin-right: 4px; }
.fs-count b {
  min-width: 22px; height: 20px; padding: 0 3px; border-radius: 5px; text-align: center;
  background: #e23c3c; color: #fff; font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.fs-count i { color: #e23c3c; font-style: normal; font-weight: 700; font-size: 12px; }
.fs-scroll {
  display: flex; flex-wrap: nowrap; overflow-x: auto; padding: 12px 0 14px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.fs-scroll::-webkit-scrollbar { display: none; }
.fs-item { width: 33.333%; flex-shrink: 0; position: relative; padding: 0 4px; box-sizing: border-box; }
.fs-img {
  width: 100%; aspect-ratio: 1; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 36px;
}
.fs-badge {
  position: absolute; left: 4px; top: 0; font-size: 9.5px; color: #fff; font-weight: 600;
  background: linear-gradient(90deg, #ff6034, #ee0a24); padding: 2px 7px;
  border-radius: 12px 0 12px 0;
}
.fs-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-price { margin-top: 2px; font-size: 10.5px; color: #aab6c4; text-decoration: line-through; white-space: nowrap; overflow: hidden; }
.fs-price s { font-size: 10.5px; color: #aab6c4; font-weight: 400; text-decoration: line-through; }
.fs-stock { font-size: 12px; font-weight: 700; color: #e6a23c; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-discount { font-size: 15px; color: var(--red); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 800; }

/* 八、为你推荐 */
.recommend { margin: 10px 10px 0; }   /* 间距压缩：14px 12px→10px 10px */
.rec-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 0 4px; position: relative; flex-wrap: wrap; }
.rec-star { animation: starTwinkle 1.6s ease-in-out infinite; }
@keyframes starTwinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.25); opacity: .7; } }
.rec-title { font-size: 16px; font-weight: 800; letter-spacing: 1px; color: #333; }
/* 分类标签栏：横向可滚动，保证手机端全部显示 */
.rec-cats { display: flex; align-items: center; flex: 1; margin: 0 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.rec-cats::-webkit-scrollbar { display: none; }
.rec-cat { flex: none; white-space: nowrap; font-size: 14px; color: #333; cursor: pointer; padding: 9px 12px; font-weight: 500; position: relative; transition: color 0.2s, background 0.2s; border-radius: 6px; text-align: center; box-sizing: border-box; }  /* 点击热区加大：6px 10px→9px 12px，手指点偏一点也能命中，避免“点两下才响应” */
.rec-cat::after { content: ''; position: absolute; left: 20%; right: 20%; bottom: 2px; height: 2px; background: transparent; border-radius: 1px; transition: background 0.2s; }
.rec-cat:active { opacity: 0.6; }
.rec-cat:hover::after { background: #3b82f6; }
.rec-cat.active { color: #3b82f6; background: #fff; text-shadow: 0.3px 0 0 #3b82f6, -0.3px 0 0 #3b82f6; }
.rec-cat.active::after { background: #3b82f6; }

/* ===== 定制需求页面 ===== */
.cust-page { display: flex; flex-direction: column; height: 100%; background: #f5f7fa; }
.cust-header { display: flex; align-items: center; min-height: 50px; padding: 0 16px 0; background: #fff; border-bottom: 1px solid #eee; flex-shrink: 0; }
.cust-header .page-back-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; cursor: pointer; background: none; border: none; position: relative; z-index: 10; }
.cust-header .cust-title { flex: 1; text-align: center; font-size: 18px; font-weight: 600; color: #333; margin-right: 36px; }
.cust-body { flex: 1; overflow-y: auto; padding: 16px; scrollbar-width: none; }
.cust-body::-webkit-scrollbar { display: none; }
.cust-section { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.cust-section-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 12px; }
.cust-input { width: 100%; min-height: 120px; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; font-size: 14px; resize: vertical; font-family: inherit; }
.cust-input:focus { outline: none; border-color: #3b82f6; }
.cust-title-input { width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; font-size: 14px; font-family: inherit; margin-bottom: 12px; }
.cust-title-input:focus { outline: none; border-color: #3b82f6; }
.cust-btn-group { display: flex; gap: 12px; margin-top: 16px; }
.cust-btn { flex: 1; padding: 12px 0; border: none; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; transition: opacity 0.2s; }
.cust-btn:active { opacity: 0.7; }
.cust-btn-primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; }
.cust-btn-secondary { background: #f0f0f0; color: #333; }
.cust-list { display: flex; flex-direction: column; gap: 12px; }
.cust-item { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); cursor: pointer; }
.cust-item:active { opacity: 0.7; }
.cust-item-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 6px; }
.cust-item-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #999; }
.cust-item-status { padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; }
.cust-item-status.pending { background: #fef3c7; color: #92400e; }
.cust-item-status.approved { background: #d1fae5; color: #065f46; }
.cust-item-status.rejected { background: #fee2e2; color: #991b1b; }
.cust-item-content { margin-top: 10px; padding: 12px; background: #f9fafb; border-radius: 8px; font-size: 13px; color: #555; line-height: 1.6; white-space: pre-wrap; }
.cust-empty { text-align: center; padding: 40px 20px; color: #999; }
.cust-empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.cust-tip { font-size: 12px; color: #999; text-align: center; padding: 12px; }

.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 4px; }
.rec-card {
  background: #fff; border-radius: var(--card-radius); overflow: hidden;
  box-shadow: var(--card-shadow);
}
@keyframes recIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.rec-img { height: 128px; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.rec-img img { border-radius: 12px; }
.rec-body { padding: 8px 10px 10px; position: relative; }   /* 间距压缩：9px 11px 12px→8px 10px 10px */
.rec-name { font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.rec-line2 { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 10.5px; color: #aab6c4; }
.rec-old { font-size: 10.5px; color: #aab6c4; text-decoration: line-through; font-style: normal; }
.rec-zk {
  font-size: 12px; font-weight: 700; color: #e6a23c;
  background: rgba(226, 60, 60, .08); border-radius: 4px; padding: 2px 5px;
}
.rec-cost { display: flex; align-items: center; gap: 14px; margin-top: 7px; font-size: 10.5px; color: var(--grey); }
.rc-item { display: flex; align-items: baseline; gap: 3px; }
.rc-item b { font-size: 15px; font-weight: 800; color: var(--red); }
.rec-btn {
  width: calc(100% - 60px); margin: 9px auto 0; padding: 7px 0; border-radius: 14px;
  font-size: 12.5px; font-weight: 700; color: #666; letter-spacing: 2px;
  background: #f0f1f3;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: none;
  animation: none;
}
/* 引导手指：积分兑换按钮右侧摆动指引 */
.rec-finger {
  position: absolute;
  left: calc(100% - 52px);
  bottom: 14px;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  transition: transform .2s ease;
  animation: fingerBob 1.2s ease-in-out infinite;
}
.rec-card.pressed .rec-finger {
  transform: translateX(calc(100% - 45px));
}
@keyframes fingerBob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, -10px); }
}
.rec-more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 12px; color: var(--grey); padding: 16px 0 6px;
}
.mini-loader {
  width: 14px; height: 14px; border: 2px solid #cfd9e6; border-top-color: var(--blue);
  border-radius: 50%; animation: loaderSpin .8s linear infinite;
}
.home-footer-tip { text-align: center; font-size: 11px; color: #b3bfce; padding: 8px 0 86px; }   /* 底部预留胶囊高度，内容可上滑穿过胶囊下方 */

/* 一、侧边福利固定长条控件：左侧收缩贴靠，默认收起隐藏状态 */
.wf-bar-zone {
  position: absolute; left: 0; top: 33.3%; z-index: 30;   /* 左侧贴边，位置锁死不可拖动，所有页面常驻 */
  padding: 0 15px 0 0;   /* 右侧 4mm 隐形点击热区外扩 */
}
.wf-bar {
  position: relative; width: 36px; padding: 8px 0;   /* 加宽至 36px，上下各留 8px 间距，保证文字完整显示 */
  border-radius: 0 14px 14px 0;   /* 左侧贴边，圆角在右侧 */
  background: linear-gradient(180deg, #ff9a3d, #ff5e62, #ff9a3d);
  border: 1px solid rgba(255, 255, 255, .85);   /* 高亮细描边 */
  display: flex; align-items: center; justify-content: center;
  transform: translateX(-28px);   /* 左侧向内缩进，常态露出 8px 窄边 */
  transition: transform .35s cubic-bezier(.34, 1.4, .6, 1);
  animation: wfBreathe 3s ease-in-out infinite alternate;   /* 缓慢呼吸明暗 */
  overflow: hidden;   /* 为激光效果提供裁切容器 */
}
/* 激光特亮光效果：在标签区域内上下往复移动（收起状态时更亮） */
.wf-bar::before {
  content: '';
  position: absolute; left: 0; right: 0;
  top: 0;   /* 基准位置，用 transform 代替 top 动画 */
  height: 50%;   /* 光亮带高度 */
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 35%,
    rgba(255, 255, 255, 1) 50%,
    rgba(255, 255, 255, 1) 65%,
    rgba(255, 255, 255, 0) 100%);
  box-shadow: 0 0 40px rgba(255, 255, 255, 1), 0 0 80px rgba(255, 255, 255, 0.8), 0 0 120px rgba(255, 255, 255, 0.4);   /* 超强发光效果 */
  animation: wfLaser 4.5s ease-in-out infinite;
  pointer-events: none;
  opacity: 1;   /* 收起状态时显示 */
  transition: opacity .15s ease-out;   /* 快速淡出 */
}
@keyframes wfLaser {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(300%); }
  100% { transform: translateY(-100%); }
}
@keyframes wfBreathe {
  from { opacity: .85; }
  to   { opacity: 1; }
}
.wf-bar-zone:hover .wf-bar,   /* 靠近自动展开 */
.wf-bar-zone.open .wf-bar { transform: translateX(0); }
/* 悬浮展开时：立即关闭激光亮光动画与图标移动动画 */
.wf-bar-zone:hover .wf-bar::before {
  opacity: 0;   /* 亮光效果消失 */
  animation-play-state: paused;   /* 暂停激光滚动 */
}
.wf-bar-zone:hover .wf-bar-txt {
  animation-play-state: paused;   /* 暂停图标移动 */
  transform: translateY(0);   /* 图标停止移动 */
}
.wf-bar.pressable:active { transform: translateX(0) scale(.94); }
.wf-bar-txt {
  writing-mode: vertical-rl; letter-spacing: 4px;
  color: #fff; font-size: 15px; font-weight: 800;   /* 加粗大号高亮字体 */
  text-shadow: 0 1px 3px rgba(120, 30, 0, .5), 0 0 8px rgba(255, 255, 255, .4);
  animation: wfIconFloat 3s ease-in-out infinite;   /* 图标缓慢上下移动 */
}
@keyframes wfIconFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}
.wf-bar-badge {
  position: absolute; top: 6px; right: 1px; min-width: 14px; height: 14px; padding: 0 3px;
  border-radius: 7px; background: var(--red); color: #fff; font-size: 9px; font-style: normal;
  display: flex; align-items: center; justify-content: center;   /* 未读播报数字红点 */
}

/* 三、活动悬浮窗（幽灵冒泡动效，遮罩防误触，内部上下滑动） */
.wf-float {
  width: 86%; max-height: 72%; display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .32); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 18px; overflow: hidden;
  animation: wfGhost .45s cubic-bezier(.34, 1.45, .64, 1) both;
}
@keyframes wfGhost { from { opacity: 0; transform: translateX(-28%) scale(.4); } to { opacity: 1; transform: none; } }
.wff-head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; background: linear-gradient(90deg, rgba(255,243,230,.7), rgba(255,233,236,.7));
}
.wff-head b { font-size: 14.5px; }
.wff-home {
  font-size: 11.5px; font-weight: 700; color: #fff; padding: 6px 10px; border-radius: 12px;
  background: linear-gradient(135deg, #ff9a3d, #ff5e62);
}
.wff-list { overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px; max-height: 44vh; }
.wff-tip { flex: none; text-align: center; font-size: 10.5px; color: #aab6c4; padding: 8px 0 10px; }
.wff-card {
  display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.55); cursor: pointer;
  border: 1px solid rgba(31, 64, 104, .06); border-radius: 14px; padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(31, 64, 104, .06);
}
.wfc-ico {
  width: 40px; height: 40px; border-radius: 12px; background: var(--blue-light); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.wfc-name { font-size: 13px; font-weight: 700; }
.wfc-meta { font-size: 10.5px; color: var(--grey); margin-top: 2px; }
.wfc-state {
  margin-left: auto; flex: none; font-size: 10px; font-weight: 700; padding: 3px 7px;
  border-radius: 8px; background: rgba(226, 60, 60, .08); color: var(--red);
}
.wfc-state.free { background: var(--blue-light); color: var(--blue-deep); }
.wfc-reward { font-size: 14px; font-weight: 800; color: #e63c3c; margin-top: 3px; letter-spacing: 0.3px; }
.wfc-state.wfc-signup {
  background: linear-gradient(135deg, #ff9a3d, #ff5e62); color: #fff;
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 20px;
  cursor: pointer; letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255,94,98,.3);
}

/* ===== 福利活动中心弹窗（限时秒杀商品列表） ===== */
.wfc-popup {
  width: 90%; max-width: 420px; max-height: 78vh;
  display: flex; flex-direction: column;
  background: #f5f6f8; border-radius: 18px; overflow: hidden;
  animation: wfGhost .45s cubic-bezier(.34, 1.45, .64, 1) both;
}
.wfc-header {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
}
.wfc-header b { font-size: 16px; }
.wfc-close {
  width: 28px; height: 28px; border: none; background: rgba(255,255,255,0.15);
  border-radius: 50%; color: #fff; font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.wfc-close:active { background: rgba(255,255,255,0.3); }
.wfc-list {
  flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  max-height: 60vh;
}
.wfc-list::-webkit-scrollbar { display: none; }
.wfc-card {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: 14px; padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  cursor: pointer; transition: transform 0.15s;
}
.wfc-card:active { transform: scale(0.98); }
.wfc-img {
  width: 72px; height: 72px; border-radius: 10px; overflow: hidden; flex: none;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  display: flex; align-items: center; justify-content: center;
}
.wfc-img img { width: 100%; height: 100%; object-fit: cover; }
.wfc-ico { font-size: 28px; }
.wfc-info { flex: 1; min-width: 0; }
.wfc-info .wfc-name { font-size: 14px; font-weight: 600; color: #333; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfc-tags { margin-bottom: 6px; }
.wfc-tag {
  display: inline-block; font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; margin-right: 4px;
}
.wfc-tag-level { background: rgba(64,158,255,0.1); color: #409eff; }
.wfc-row {
  display: flex; align-items: center; gap: 6px; font-size: 12px; margin-top: 3px;
}
.wfc-label { color: #999; }
.wfc-val { color: #333; font-weight: 600; }
.wfc-val-orange { color: #e6a23c; font-weight: 700; }
.wfc-empty { text-align: center; padding: 40px 0; color: #999; font-size: 14px; }
.wfc-footer {
  flex: none; text-align: center; font-size: 11px; color: #aab6c4;
  padding: 10px 0 12px; border-top: 1px solid #eee;
}

/* 福利主页快捷入口与活动列表 */
.wf-quick { display: flex; gap: 10px; margin-bottom: 6px; }
.wfq-item {
  flex: 1; background: #fff; box-shadow: var(--card-shadow); border-radius: 14px;
  padding: 12px 0; font-size: 12px; font-weight: 700; color: var(--blue-deep);
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.wfq-item span { font-size: 20px; }
.wf-sec-title { font-size: 13.5px; font-weight: 800; margin: 4px 2px 10px; }
.wf-act-list { display: flex; flex-direction: column; gap: 10px; }

/* 报名向导 */
.wfd-hero {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border-radius: 16px; padding: 14px; box-shadow: var(--card-shadow);
}
.wfd-hero .wfc-ico { width: 46px; height: 46px; font-size: 24px; }
.wfd-steps { display: flex; gap: 6px; margin: 12px 0; }
.wfd-steps i {
  flex: 1; text-align: center; font-size: 10.5px; font-style: normal;
  color: #9aa7b6; background: #eef2f7; border-radius: 8px; padding: 6px 0;
}
.wfd-steps i.on { color: #fff; background: linear-gradient(135deg, #ff9a3d, #ff5e62); font-weight: 700; }
.wfd-steps i.done { color: var(--blue-deep); background: var(--blue-light); }
.wfd-panel {
  background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--card-shadow);
  min-height: 180px; font-size: 12.5px; color: #3c4c62;
}
.wfd-next {
  width: 100%; height: 44px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), #6db3ff); color: #fff; font-size: 15px; font-weight: 700;
  border: none; cursor: pointer;
}
.wfd-next:disabled { background: #cfd9e6; }
/* 活动详情页：按钮在滚动区外固定底部，flex 自然占位 */
.wfd-footer {
  flex-shrink: 0; padding: 10px 10px 0;   /* 10px 间距与上方滚动内容隔开 */
  margin-bottom: 78px;   /* 留出底部 tabbar 空间（tabbar 高 64px + 底边 10px + 余量） */
}
#screenWfDetail .wfd-scroll { padding-bottom: 16px; }   /* 滚动区底部仅需少量间距，按钮已在外部 */
.wfd-kv { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed rgba(31, 64, 104, .08); }
.wfd-kv b { color: var(--red); text-align: right; }
.wfd-compare { background: #f7fafd; border-radius: 10px; padding: 6px 14px; margin-bottom: 12px; }
.wfd-compare-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(31,64,104,.06); font-size: 14px; }
.wfd-compare-row:last-child { border-bottom: none; }
.wfd-cr-label { flex: 0 0 auto; min-width: 90px; color: #303133; font-weight: 600; }
.wfd-cr-val { flex: 1; text-align: center; font-weight: 700; color: #303133; font-size: 15px; }
.wfd-cr-st { flex: 0 0 auto; min-width: 30px; text-align: right; }
.wfd-cr-st i { font-style: normal; font-size: 18px; font-weight: 700; }

/* 活动参数展示区（只读） */
.wfd-params { background: linear-gradient(135deg, #fff7ed, #fef3c7); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.wfd-param-row { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,0.06); font-size: 14px; }
.wfd-param-row:last-child { border-bottom: none; }
.wfd-param-label { flex: 0 0 auto; min-width: 80px; color: #92400e; font-weight: 500; }
.wfd-param-val { flex: 1; text-align: right; font-weight: 700; color: #b45309; font-size: 15px; }

/* 用户对比区 */
.wfd-user-compare { margin-bottom: 12px; }
.wfd-uc-title { font-size: 12px; color: #999; padding: 8px 0 4px; border-bottom: 1px solid #eee; margin-bottom: 4px; }

/* 协议页标题 */
.wfd-clause-title { text-align: center; font-size: 15px; font-weight: 700; color: #333; padding: 12px 0 8px; }

/* 车标样式 */
.car-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px;
  font-size: 24px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.car-logo-img {
  width: 56px; height: 56px; border-radius: 14px;
  object-fit: contain; flex-shrink: 0;
  background: #f5f5f5;
}
.car-logo-default { background: linear-gradient(135deg, #667eea, #764ba2); font-size: 18px; }

.wfd-type {
  max-height: 150px; overflow-y: auto; white-space: pre-line; line-height: 1.7;
  background: #f7fafd; border-radius: 10px; padding: 10px; font-size: 12px;
}
.wfd-type-state { font-size: 11px; color: var(--blue-deep); margin-top: 8px; }
.wfd-agree {
  width: 100%; margin-top: 10px; height: 40px; border-radius: 12px;
  background: var(--blue); color: #fff; font-weight: 700;
}
.wfd-agree:disabled { background: #cfd9e6; }   /* 未读完前灰色不可点 */
.wfd-code {
  width: 100%; height: 42px; text-align: center; font-size: 18px; letter-spacing: 6px;
  border: 1.5px solid #cfd9e6; border-radius: 10px; margin: 10px 0;
  box-sizing: border-box;
}
.wfd-code::placeholder {
  color: #c0c4cc; font-size: 18px; letter-spacing: 6px;
}
.id-box {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 26px; border: 1.5px solid #cfd9e6; border-radius: 4px;
  font-size: 14px; font-weight: 600; color: #333; background: #f7fafd;
}
.id-box.filled { border-color: #ff5e62; color: #ff5e62; background: #fff5f5; }
.id-input {
  width: 22px; height: 26px; border: 1.5px solid #cfd9e6; border-radius: 4px;
  font-size: 14px; font-weight: 600; color: #ff5e62; background: #fff5f5;
  text-align: center; padding: 0; outline: none;
  caret-color: #ff5e62;
}
.id-input:focus { border-color: #ff5e62; box-shadow: 0 0 4px rgba(255,94,98,0.3); }
.wfd-subbtn {
  width: 100%; height: 40px; border-radius: 12px; margin-top: 8px;
  background: linear-gradient(135deg, #ff9a3d, #ff5e62); color: #fff; font-weight: 700;
}
.stamp {
  position: absolute; left: 50%; top: 40%; z-index: 60; width: 130px; height: 130px; margin: -65px 0 0 -65px;
  border: 4px solid #d33; border-radius: 50%; color: #d33; font-weight: 800; font-size: 13px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: rgba(255, 255, 255, .6); transform: scale(2.6) rotate(-18deg); opacity: 0;
  animation: stampDown .5s cubic-bezier(.2, .9, .3, 1.2) both; pointer-events: none;
}
@keyframes stampDown { to { transform: scale(1) rotate(-12deg); opacity: .92; } }

/* 台账 / 积分明细 / 档案 */
.led-row {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border-radius: 14px; box-shadow: var(--card-shadow); padding: 12px 14px;
  margin-bottom: 10px; font-size: 12.5px;
}
.led-row b.val { margin-left: auto; color: var(--blue-deep); }
.pt-notice {
  background: #fff6e8; border: 1px solid #ffd9a0; color: #b25e00;
  font-size: 11.5px; font-weight: 700; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px;
}
.pt-rule { font-size: 12px; color: #5a6b82; line-height: 1.7; background: #fff; border-radius: 14px; box-shadow: var(--card-shadow); padding: 12px 14px; margin-bottom: 12px; }

/* 后台配置中心（演示） */
.adm-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 10px 0; border-bottom: 1px solid rgba(31, 64, 104, .06); }
.adm-avs { display: flex; gap: 8px; }
.adm-av {
  width: 34px; height: 34px; border-radius: 50%; background: #eef2f7; font-style: normal;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  cursor: pointer; border: 2px solid transparent;
}
.adm-av.on { transform: scale(0.98); }
.adm-editor { margin-top: 12px; }
.adm-editor > b { font-size: 13px; display: block; margin-bottom: 6px; }
.adm-cl { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(31, 64, 104, .08); }
.adm-cl u { color: var(--red); cursor: pointer; text-decoration: none; flex: none; }
.adm-add { display: flex; gap: 8px; margin-top: 8px; }
.adm-add input { flex: 1; height: 34px; border: 1px solid #cfd9e6; border-radius: 8px; padding: 0 10px; font-size: 12px; }
.adm-add button, .adm-btns button { background: var(--blue); color: #fff; border-radius: 8px; height: 34px; padding: 0 14px; font-size: 12.5px; font-weight: 700; }
.adm-btns { display: flex; gap: 10px; margin-top: 10px; }
.adm-log { font-size: 11px; color: #8b98a9; margin-top: 10px; }

/* 福利页全屏展开/收回（iOS 风垂直滑动） */
#screenWelfare { transform-origin: 50% 28%; }
#screenWelfare.active { z-index: 14; }
.screen.welfare-in  { animation: screenSlideUp .34s cubic-bezier(.22, .61, .36, 1) both; }
.screen.zoom-in { animation: zoomExpand .38s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes zoomExpand { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.screen.welfare-out { animation: screenSlideDown .3s cubic-bezier(.4, 0, .6, 1) both; }
.wf-card {
  display: flex; align-items: center; gap: 12px; background: #fff;
  border-radius: var(--card-radius); box-shadow: var(--card-shadow);
  padding: 14px 16px; margin-bottom: 12px;
}
.wf-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--blue-light);
}
.wf-card h4 { font-size: 14px; }
.wf-card p { font-size: 11.5px; color: var(--grey); margin-top: 2px; }
.wf-btn {
  margin-left: auto; flex: none; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #ff9a3d, #ff5e62);
  padding: 7px 12px; border-radius: 14px;
}

/* 空态 */
.empty-state { text-align: center; padding: 34px 0 12px; }
.empty-logo {
  width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 18px;
  background: linear-gradient(135deg, #d7e6fb, #e9f2ff); color: #8fb3e4;
  font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.empty-state p { font-size: 14px; color: #7d8b9d; font-weight: 600; }
.empty-state span { font-size: 11px; color: #b3bfce; display: block; margin-top: 6px; }

/* ============ 四个导航页通用 ============ */
.page-head {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 64, 104, .06);
  position: relative;
}
.ph-title { font-size: 18px; font-weight: 700; color: #333; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.ph-space { width: 44px; margin-left: auto; flex-shrink: 0; }

/* ===== 全局按钮点击即时反馈：按下立即缩小 ===== */
.pressable {
  transition: transform .12s ease, opacity .12s ease;
}
.pressable:active {
  transform: scale(.94);
  opacity: .85;
}

/* ── 全局返回按钮：直角左箭头（CSS border 绘制，无容器底色） ── */
.back-icon {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
}
.back-icon::before {
  content: '';
  display: block;
  width: 10px; height: 10px;
  border-left: 2.5px solid #5a6b82;
  border-bottom: 2.5px solid #5a6b82;
  transform: rotate(45deg);
  margin-left: 2px;
}
/* 统一返回按钮：无底色容器，纯箭头，36×36 点击区 */
.back-home {
  width: 36px; height: 36px; padding: 0; flex-shrink: 0;
  background: none; border: none; outline: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, opacity .12s ease;
}
.back-home:hover { opacity: .65; }
.back-home:active {
  transform: scale(.88);
  opacity: .45;
}
/* 团队列表返回按钮 */
#teamBackTxt {
  transition: transform .15s ease, opacity .12s ease;
}
#teamBackTxt:hover {
  opacity: .65;
}
#teamBackTxt:active {
  transform: scale(.88);
  opacity: .45;
}
/* overflow-x:hidden 必配：只设 overflow-y:auto 时横向会被计算为 auto，内容超宽则整页可左右拖动（消息/我的页滑动根因） */
.tab-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 0 10px 86px; margin: 0 -2px; scrollbar-width: none; display: flex; flex-direction: column; align-items: center; overscroll-behavior: none; }
.tab-body > * { width: 100%; }   /* 子元素撑满宽度 */
.tab-body::-webkit-scrollbar { display: none; }

/* 添加页 */
/* 添加页：标题栏（返回箭头 + 居中标题 + 右上三点，上下留白） */
.add-head .ph-title { font-size: 18px; }
.add-arrow { font-style: normal; font-size: 19px; line-height: 1; margin-right: 2px; vertical-align: -2px; }   /* 保留返回箭头 */
.ph-more { margin-left: auto; font-size: 20px; letter-spacing: 1px; color: #5a6b82; padding: 6px 8px; line-height: 1; }

/* 添加页表单：两张独立白色圆角卡片，卡间留白；整体框架缩小、左右边距收窄 */
#addBody { padding-left: 10px; padding-right: 10px; padding-top: 6px; margin-left: -2px; margin-right: -2px; background: #fff; }
#mineBody { padding-top: 1px; }
.add-card {
  background: #fff; border-radius: 14px; box-shadow: var(--card-shadow);
  padding: 11px 12px; margin-bottom: 12px;   /* 框体缩小，上下位置不变 */
}
.add-card:first-child { margin-bottom: 4px; }   /* 表单卡片与缴费卡片间距收窄8px */
.add-card-title { font-size: 13px; font-weight: 800; margin-bottom: 4px; }
.add-field { margin-top: 10px; }
.add-card > .add-field:first-child { margin-top: 0; }   /* 无标题卡片首字段置顶 */
.add-label { font-size: 12.5px; font-weight: 700; color: #3c4c62; }
.req { color: var(--red); font-style: normal; font-size: 11px; margin-left: 3px; }   /* 红色星号紧贴字段名 */
.add-input {
  display: flex; align-items: center; gap: 7px; margin-top: 6px;
  background: #f6f8fb; border: 1px solid #e3e9f2; border-radius: 10px; padding: 0 10px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.add-input:focus-within { transform: scale(0.98); background: #fff; box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }   /* 激活态品牌蓝边框 */
.add-ico { font-size: 13.5px; opacity: .75; flex: none; }   /* 图标尺寸统一柔和 */
.add-input input { flex: 1; height: 36px; background: none; font-size: 12.5px; color: #2c3a4d; }   /* 输入框尺寸缩小 */
.add-input input::placeholder { color: #b6c1cf; font-size: 12px; }   /* 提示文字浅灰 */
.add-field.err .add-input { border-color: var(--red); background: #fff6f6; }
.add-card.err .pay-card { border-color: rgba(226, 60, 60, .55); background: #fff6f6; }
.add-err { font-size: 11px; color: var(--red); min-height: 15px; padding: 3px 2px 0; }   /* 字段下方错误提示 */

/* 性别单选：并排等分两栏（再缩小尺寸） */
.add-genders { display: flex; gap: 10px; margin-top: 6px; }
.ag-card {
  flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 0;
  background: #f6f8fb; border: 1.5px solid #e3e9f2; border-radius: 10px; padding: 6px 0 4px;
  transition: border-color .2s, background .2s;
}
.ag-card:hover { border-color: #bcd6fb; }
.ag-card.on { border-color: var(--blue); background: var(--blue-light); }   /* 选中：蓝边 + 浅蓝底 */
.ag-ico { font-size: 14px; }
.ag-ico.m { color: #3b82f6; }   /* 男蓝 */
.ag-ico.f { color: #f49ab5; }   /* 女浅粉 */
.ag-name { font-size: 11.5px; font-weight: 700; }
.ag-dot {
  position: absolute; top: 5px; right: 5px; width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid #cfd9e6; background: #fff; transition: .2s;
}
.ag-card.on .ag-dot { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 2px #fff; }   /* 圆点填充蓝 */
.ag-tip { font-size: 9px; color: #aab6c4; }   /* 下方小字说明弱化 */

/* 缴费方式：横向并排两栏（框体缩小） */
.pay-list { display: flex; gap: 10px; margin-top: 7px; }
.pay-card {
  display: flex; flex: 1; position: relative; flex-direction: column; align-items: flex-start;
  background: #f6f8fb; border: 1.5px solid #e3e9f2; border-radius: 12px; padding: 10px 10px 9px;
  transition: border-color .2s, background .2s;
}
.pay-card:hover { border-color: #bcd6fb; }
.pay-card.on { border-color: var(--blue); background: var(--blue-light); }   /* 选中：蓝边 + 浅蓝底 */
.pay-txt b { font-size: 13px; }
.pay-tag {
  font-style: normal; font-size: 9.5px; color: var(--blue-deep); background: rgba(59, 130, 246, .12);
  border-radius: 6px; padding: 2px 6px; margin-left: 5px; vertical-align: 1px;
}
.pay-txt span { display: block; font-size: 10.5px; color: #aab6c4; margin-top: 3px; }   /* 辅助说明浅灰小字 */
.pay-dot {
  position: absolute; top: 8px; right: 8px;
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid #cfd9e6; background: #fff; flex: none; transition: .2s;
}
.pay-card.on .pay-dot { border-color: var(--blue); background: var(--blue); box-shadow: inset 0 0 0 3px #fff; }

/* 提交按钮：铺满卡片边距（随整体收窄）、纯色品牌蓝、悬浮阴影、按压变暗 */
.add-submit {
  width: 100%; height: 58px; margin: 34px 0 8px; border-radius: 13px;
  background: var(--blue); color: #fff; font-size: 15.5px; font-weight: 800; letter-spacing: 3px;
  box-shadow: 0 8px 18px rgba(59, 130, 246, .35);
  transition: background .2s, box-shadow .2s, opacity .25s ease, max-height .25s ease, margin .25s ease;
  overflow: hidden;
}
.add-submit.pressable:active { background: #2f6fd0; box-shadow: 0 3px 8px rgba(59, 130, 246, .3); transform: scale(.99); }
.add-submit:disabled { background: #c5d2e0; box-shadow: none; color: #f2f6fb; }
/* 键盘弹出时隐藏提交按钮 */
.add-submit.kb-hidden { opacity: 0; max-height: 0; margin: 0; padding: 0; border: 0; box-shadow: none; pointer-events: none; }

/* 提交成功弹窗 */
.ok-dlg { width: 80%; background: #fff; border-radius: 18px; padding: 22px 18px; text-align: center; }
.ok-dlg > span { font-size: 40px; display: block; }
.ok-dlg b { font-size: 16px; display: block; margin-top: 8px; }
.ok-dlg p { font-size: 12px; color: var(--grey); margin-top: 5px; }
.ok-select {
  width: 100%; height: 42px; margin-top: 14px; border: 1px solid #d7e0ec; border-radius: 10px;
  padding: 0 10px; font-size: 13px; color: #2c3a4d; background: #f8fafd;
}
.ok-btn {
  width: 100%; height: 44px; margin-top: 14px; border-radius: 12px;
  background: var(--blue); color: #fff; font-size: 14.5px; font-weight: 700;
}

/* ============================================================
   团队页（纯列表排版：磨砂背景 + 幽灵卡片 + 吸顶展开）
   ============================================================ */
#screenTeam {
  display: flex; flex-direction: column;
  background: linear-gradient(170deg, #f2f6fb 0%, #eaf1f9 55%, #e9f0f8 100%);   /* 极浅灰蓝磨砂质感 */
}
.team-head {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 64, 104, .06);
  position: relative;
}
.team-title { font-size: 18px; font-weight: 700; color: #333; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.tt-space { width: 44px; margin-left: auto; flex-shrink: 0; }
.back-tri {   /* 返回按钮：统一无底色，36×36 点击区 */
  width: 36px; height: 36px; margin-left: 3px; padding: 0;
  border: none; background: none;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.back-tri.pressable:active { transform: scale(.85); }
.team-body {
  flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 0;
  position: relative;   /* 为流光动画定位 */
  background: linear-gradient(180deg, rgba(200, 210, 225, 0) 0%, rgba(200, 210, 225, .15) 50%, rgba(200, 210, 225, 0) 100%);
  background-size: 100% 200%;
  animation: teamFlowLight 4s ease-in-out infinite;   /* 浅灰色流光从下向上流动 */
}
@keyframes teamFlowLight {
  0% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}
.team-pinned { display: none !important; /* 隐藏标题下方的头像和名字 */ flex: none; display: flex; justify-content: center; padding: 12px 0 4px; }
.team-pinned.hidden { display: none; }
.team-pinned .pin-card { display: flex; flex-direction: column; align-items: center; gap: 6px; animation: pinFloat .4s ease both; }
@keyframes pinFloat { from { opacity: 0; transform: translateY(26px) scale(.85); } }   /* 向上飘动吸顶 */
.pin-card .tm-av { width: 56px; height: 56px; font-size: 20px; }
.pin-card .pin-name { font-size: 14px; font-weight: 700; color: var(--text); }
.team-list {
  flex: 1; width: 100%;   /* 宽度由父容器.team-body的padding控制 */
  display: flex; flex-direction: column; gap: 5px; align-items: stretch;   /* 竖向排列 */
  padding: 5px 5px 90px; overflow-y: auto;
  scrollbar-width: none;   /* 隐藏滚动条 */
}
.team-list::-webkit-scrollbar { width: 0; height: 0; }
.team-list.lock { overflow: hidden; }   /* 一屏满屏10人时锁定不滚动 */
.split-col { display: flex; flex-direction: column; gap: 5px; flex: none; }   /* 条目间隔5px */
.av-col { width: 66px; }   /* 头像区独立排版 */
.tx-col { flex: 1; }   /* 文字列表区独立排版 */
.tm-cell {
  position: relative; display: flex; align-items: center; height: 48px; padding: 0 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .55);   /* 半透明毛玻璃 */
  backdrop-filter: blur(10px);
  border: none;   /* 移除白色边框 */
  box-shadow: 0 12px 26px rgba(31, 64, 104, .08);   /* 柔和弥散阴影悬浮感 */
  transition: background .2s, box-shadow .2s;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.av-cell { justify-content: center; background: transparent; box-shadow: none; backdrop-filter: none; }   /* 头像区去除白色背景块 */
.tx-cell { padding: 0 16px; }   /* 左右内边距16px */
.tm-cell.child { height: 48px; background: transparent; opacity: .88; }   /* 下级卡片高度统一48px */
.tm-cell.pressed:not(.av-cell) { background: rgba(255, 255, 255, .8); box-shadow: 0 16px 34px rgba(31, 64, 104, .14); }   /* 头像格按压不出现白色底色 */
.tm-cell.av-cell.pressed { box-shadow: none; }
.tm-cell.pressed .tm-av, .tm-cell.pressed .tm-name { transform: scale(1.13); }   /* 触碰放大：头像与姓名同时放大 */
.tm-av {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 800;
  margin-left: 5px;   /* 头像整体向右偏移5px */
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1);
}
.tm-card.child .tm-av { width: 37px; height: 37px; font-size: 14px; }
.tm-cell.child .tm-av { width: 34px; height: 34px; font-size: 13px; }
.tm-av .tm-dot {   /* 状态小圆点贴头像右下角，随头像移动 */
  position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%;
  background: #9aa7b8; border: 2px solid #fff;
}
.tm-av .tm-dot.on { background: #2fe36b; box-shadow: 0 0 8px rgba(47, 227, 107, .7); }   /* 在线亮绿 */
.tm-name { font-size: 15px; font-weight: 700; color: var(--text); margin-left: 8px; transition: transform .18s cubic-bezier(.34, 1.56, .64, 1); }   /* 整体右偏移8px */
.tm-card.child .tm-name { font-size: 13.5px; }
.tm-cell.child .tm-name { font-size: 13px; }

/* 新版团队列表卡片：左右分栏布局 */
.tm-row-card {
  display: flex !important; align-items: center !important; gap: 0 !important; padding: 0 !important;
  background: transparent !important; border-radius: 14px; 
  box-shadow: none !important; cursor: pointer;
  transition: transform .18s ease;
  overflow: hidden;
}
.tm-row-card:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(31, 64, 104, .12); }
/* 左侧头像区 */
.tm-row-left {
  flex: none !important;
  width: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 0 !important;
  margin-left: 5px !important;
}
.tm-row-av {
  width: 44px !important; height: 44px !important; min-width: 44px !important; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  color: #fff; font-size: 18px; font-weight: 700; flex: none !important; flex-shrink: 0 !important;
  background-size: cover; background-position: center;
  /* 头像加载占位：灰色圆形背景 */
  background-color: #e2e5ea;
  transition: opacity .3s ease;
}
.tm-row-av-img { 
  width: 100%; height: 100%; object-fit: cover; display: block;
  /* 淡入动画 */
  animation: avatarFadeIn .3s ease;
}
/* 头像加载失败回退 */
.tm-row-av-fallback { 
  background-color: #e2e5ea;
}
.tm-row-av-fallback::after {
  content: '?';
  color: #8492a6;
  font-size: 18px;
  font-weight: 700;
}
@keyframes avatarFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}


/* 右侧信息区 */
.tm-row-right {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 5px 16px !important;
  margin: 0 8px 0 10px !important;
  background: rgba(255, 255, 255, .95) !important;
  border-radius: 20px !important;
  box-shadow: 0 2px 8px rgba(31, 64, 104, .08) !important;
}
.tm-row-name { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.tm-row-phone { font-size: 13px; color: #8492a6; }
/* 团队成员等级星标 */
.tm-lv-tag { display: inline-flex; align-items: center; font-size: 13px; color: #fadb14; letter-spacing: 1px; line-height: 1; vertical-align: middle; }
.tm-lv-tag .star-big { font-size: 16px; }
.tm-lv-tag .star-small { font-size: 12px; }

.grow { transform-origin: 50% 0; animation: tmGrow .5s cubic-bezier(.34, 1.5, .64, 1) both; }
@keyframes tmGrow { from { opacity: 0; transform: translateY(-16px) scale(.5); } }   /* 从吸顶卡片正中生长 */

/* 幽灵名片悬浮窗 */
.tp-card { width: 100%; height: calc(100% - 20px); margin-top: 20px; align-self: flex-start; background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); border-radius: 24px; overflow: hidden; border: none; box-shadow: 0 24px 60px rgba(15, 35, 60, .25); display: flex; flex-direction: column; }
.tp-hero { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; background: linear-gradient(160deg, rgba(224, 237, 255, .9), rgba(255, 255, 255, .4)); }
.tp-av {
  width: 38vw; height: 38vw; max-width: 180px; max-height: 180px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14vw; font-weight: 800; box-shadow: 0 10px 26px rgba(31, 64, 104, .25); border: 3px solid #fff;
}
.tp-stars { display: flex; gap: 4px; font-size: 17px; letter-spacing: 2px; }   /* 星级一排星星，大头像正下方 */
.tp-stars .off { opacity: .18; }
.tp-info { padding: 14px 22px 22px; }
.tp-row { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(31, 64, 104, .06); text-align: left; }
.tp-row:last-child { border-bottom: none; }
.tp-k { flex: none; width: 66px; color: #8492a6; font-size: 12.5px; }
.tp-v { color: var(--text); font-size: 13.5px; font-weight: 600; word-break: break-all; }

/* 新版幽灵名片悬浮窗：大头像 + 等级星星 + 详细信息 */
.tp-card-new { width: 90%; max-width: 360px; height: auto; max-height: 60vh; margin-top: 20px; align-self: flex-start; background: rgba(255, 255, 255, .95); backdrop-filter: blur(20px); border-radius: 24px; overflow: hidden; border: none; box-shadow: 0 24px 60px rgba(15, 35, 60, .28); display: flex; flex-direction: column; }
.tp-hero-new { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 24px 20px 12px; background: linear-gradient(160deg, rgba(224, 237, 255, .95), rgba(255, 248, 230, .6)); }
.tp-av-large { width: 110px; height: 110px; max-width: 110px; max-height: 110px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 44px; font-weight: 800; box-shadow: 0 8px 20px rgba(31, 64, 104, .3); border: 4px solid #fff;
  margin-top: 6px;
}
.tp-heart-row { display: flex; align-items: center; justify-content: center; min-height: 24px; }
.tp-stars { display: inline-flex; align-items: center; gap: 2px; }
.tp-star-icon { color: #FFD700; font-size: 22px; text-shadow: 0 2px 8px rgba(255, 215, 0, .5); animation: starPulse 1.5s ease-in-out infinite; }
@keyframes starPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.tp-info-new { padding: 16px 24px 24px; }
.tp-row-new { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(31, 64, 104, .08); text-align: left; align-items: flex-start; }
.tp-row-new:last-child { border-bottom: none; }
.tp-k-new { flex: none; width: 60px; color: #8492a6; font-size: 13px; font-weight: 500; }
.tp-v-new { color: var(--text); font-size: 13px; font-weight: 500; word-break: break-all; line-height: 1.5; }


/* 权限提示气泡（屏幕中央浮现 + 震动） */
.perm-bubble {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 95;
  background: rgba(20, 32, 48, .86); color: #fff; font-size: 13px; font-weight: 600;
  padding: 13px 18px; border-radius: 14px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); pointer-events: none;
  animation: permIn .25s ease;
}
@keyframes permIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.85); } }

/* 长按幽灵快捷菜单 */
/* 长按快捷菜单悬浮窗口：页面中上方弹出（动画由原点缩放系统接管） */
.qm-float {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(16px);
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 24px 60px rgba(15, 35, 60, .28); padding: 16px 12px 18px;
}
.qm-name { color: var(--text); font-size: 14px; font-weight: 700; }
.qm-menu { display: flex; gap: 14px; padding: 2px 0 0; }
.qm-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 58px; padding: 6px 0; }
.qm-ico {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; box-shadow: 0 6px 14px rgba(15, 35, 60, .2);
}
.qm-item span { font-size: 11.5px; color: #4a5a70; font-weight: 600; }

/* 全局弹层动效（iOS 风垂直过渡）：打开从底部向上滑入，返回从顶部向下滑出；中心对话框淡入淡出，顶部悬浮窗从上方滑入 */
.ov-in  { animation: ovSlideUp .22s cubic-bezier(.22, .61, .36, 1) both; }
.ov-out { animation: ovSlideDown .16s cubic-bezier(.4, 0, .6, 1) both !important; }
.ov-in-top  { animation: ovTopIn .2s cubic-bezier(.22, .61, .36, 1) both; }
.ov-out-top { animation: ovTopOut .15s ease both !important; }
.ov-fade-in  { animation: ovFadeIn .15s ease both; }
.ov-fade-out { animation: ovFadeOut .12s ease both !important; }

/* 服务中心页面：从中心放大/缩小动画 */
/* Mac风格极致顺滑动画：ease-out-expo曲线，像从Dock弹出一样 */
@keyframes ovZoomIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes ovZoomOut { 0% { transform: scale(1); opacity: 1; } 40% { opacity: 0; } 100% { transform: scale(0.5); opacity: 0; } }
.ov-zoom-in  { animation: ovZoomIn .25s cubic-bezier(0.16, 1, 0.3, 1) both; transform-origin: center center;  }
.ov-zoom-out { animation: ovZoomOut .15s cubic-bezier(0.7, 0, 0.84, 0) both !important; transform-origin: center center;  }
@keyframes ovSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ovSlideDown { to { transform: translateY(100%); } }
/* 团队子页面滑入滑出动画 */
.tm-slide-up { animation: tmSlideUp .2s cubic-bezier(.22, .61, .36, 1) both; }
.tm-slide-down { animation: tmSlideDown .16s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes tmSlideUp { from { transform: translateY(100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes tmSlideDown { from { transform: translateY(0); opacity: 1; } to { transform: translateY(30%); opacity: 0; } }
@keyframes ovTopIn { from { transform: translateY(-30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes ovTopOut { to { transform: translateY(-30px); opacity: 0; } }
@keyframes ovFadeIn { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
@keyframes ovFadeOut { to { opacity: 0; transform: scale(.82); } }

/* 全局顶部轻提示（服务器端错误） */
.gtoast {
  position: absolute; top: 44px; left: 50%; transform: translateX(-50%) translateY(-10px);
  background: rgba(20, 35, 60, .9); color: #fff; font-size: 12.5px; padding: 8px 18px;
  border-radius: 18px; opacity: 0; pointer-events: none; z-index: 99; white-space: nowrap;
  transition: opacity .3s, transform .3s;
}
.gtoast.show { opacity: 1; transform: translateX(-50%) translateY(0); }



.overlay-layer.float-top { align-items: center; justify-content: center; padding: 0 16px; }




/* ========== 我的页 · 全面重构 ========== */
#screenWelfare .tab-body { padding: 14px 24px 86px; }   /* 福利活动中心左右各加10px */
#screenMine .tab-body { padding: 0 10px 90px; margin: 0 -2px; overflow-y: auto; overflow-x: hidden; background: #e8ecf1; }
#screenMine .tab-body::-webkit-scrollbar { display: none; }
.mine-section {
  margin: 12px 10px 0; background: #fff; border-radius: 16px; box-shadow: var(--card-shadow);
  padding: 14px 14px 10px; overflow: hidden;
}
.mine-section.mi-bottom { padding: 14px; }
.mi-sec-head { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid #f0f3f8; margin-bottom: 10px; }
.mi-sec-head b { font-size: 14.5px; color: var(--text); }
.mi-sec-head .mi-tag { font-size: 10px; color: var(--blue); background: rgba(59,130,246,.08); padding: 2px 8px; border-radius: 10px; font-style: normal; }

/* §1 用户信息卡片 */
#miUserCard {
  position: relative; overflow: visible; cursor: pointer;
  background: linear-gradient(135deg, #7cb8ff 0%, #93c5fd 25%, #bfdbfe 50%, #93c5fd 75%, #7cb8ff 100%);
  background-size: 200% 200%;
  animation: laserFlow 8s ease-in-out infinite;   /* 浅蓝流光，左右缓慢流动 */
  color: #fff;
  padding: 18px 16px 15px; display: flex; align-items: center; gap: 14px;   /* 顶部18px，底部15px（给等级标签留空间） */
}
#miUserCard::before {   /* 流光质感层（降低闪动速度） */
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(110deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,.12) 30%, 
    rgba(255,255,255,.22) 50%, 
    rgba(255,255,255,.12) 70%, 
    rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes laserFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes shimmer {
  0%, 100% { background-position: -200% 0; }
  50% { background-position: 200% 0; }
}
.mine-av-wrap { position: relative; flex: none; z-index: 1; }
#miUserCard .mine-av {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.25); border: 2px solid rgba(255,255,255,.6);
  font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.mine-status {
  position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%;
  background: #9aa7b8; border: 2px solid #fff;
}
.mine-status.on { background: #2fe36b; animation: statusBreath 2s ease-in-out infinite; }
@keyframes statusBreath { 0%,100% { opacity: 1; box-shadow: 0 0 6px rgba(47,227,107,.5); } 50% { opacity: .6; } }
.mine-badge {
  position: absolute; top: -4px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: #f43f5e; color: #fff; font-size: 10px; font-weight: 700; font-style: normal;
  display: flex; align-items: center; justify-content: center; animation: badgeBreath 1.6s ease-in-out infinite;
}
@keyframes badgeBreath { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
#miUserCard .mine-info { flex: 1; margin-top: 10px; position: relative; z-index: 1; }
#miUserCard .mine-info b { font-size: 16px; display: flex; align-items: center; gap: 6px; }
.mine-online { font-size: 10px; font-weight: 400; opacity: .85; font-style: normal; }
/* 迈迈号展示 */
.mine-mai-id {
  font-size: 10.5px; color: rgba(255,255,255,.8); margin-top: 3px; font-weight: 500;
  letter-spacing: .5px;
}
#miUserCard .mine-stars { margin-top: 10px; padding-bottom: 10px; display: flex; align-items: flex-end; gap: 2px; flex-wrap: nowrap; }
/* 普通会员文字标签 */
.mi-level-text {
  font-size: 11px; color: #fff;
  background: rgba(0,0,0,.35);
  padding: 3px 10px; border-radius: 10px;
  font-weight: 500; letter-spacing: .5px;
  display: inline-block;
  border: 1px solid rgba(255,255,255,.3);
}
/* 星星基础类：统一金黄色，禁止黑色 */
.mi-star {
  display: inline-block; font-size: 14px; opacity: 0; transform: scale(0);
  animation: starPop .35s cubic-bezier(.34,1.56,.64,1) forwards;
  color: #FFD700;   /* 统一金黄色，禁止黑色 */
}
/* 小星星：金黄色 + 简单呼吸闪动，无七彩无流光 */
.mi-star.vital {
  color: #FFD700 !important;   /* 强制金黄色 */
  filter: drop-shadow(0 0 3px rgba(255, 215, 0, .6));
  animation: starPop .35s cubic-bezier(.34,1.56,.64,1) forwards,
             starBreath 2s ease-in-out infinite .35s;
}
.mi-star.vital .star-gold {
  font-size: 16px; line-height: 1;
  color: #FFD700 !important;   /* 强制金黄色，禁止黑色 */
  background: linear-gradient(180deg, #ffd700, #ffb300);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.mi-star.upgrade { animation: starUpgrade .6s ease forwards; }

/* 前方金黄闪闪大星：循环高亮流光 + 浮动 + 闪粉 + 皇冠帽 + 水面倒影 */
.mi-hat-star {
  position: relative; display: inline-flex; flex-direction: column; align-items: center;
  margin-right: 2px;
  filter: drop-shadow(0 2px 8px rgba(255, 193, 7, .5));
  animation: hatStarBounce .5s cubic-bezier(.34,1.56,.64,1) forwards,
             starFloat 3.5s ease-in-out infinite .5s;   /* 弹跳后开始浮动 */
}
/* 水面倒影层（::after）—— 半透明 + 波纹晃动 + 跟随浮动 */
.mi-hat-star::after {
  content: '★';
  position: absolute; bottom: -16px; left: 50%;
  transform: translateX(-50%) scaleY(-0.35) scaleX(0.65);
  font-size: 28px; line-height: 1;
  background: linear-gradient(180deg, rgba(255,215,0,.32), rgba(255,215,0,.08) 60%, rgba(255,215,0,0));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  opacity: .35; pointer-events: none;
  filter: blur(1.5px);
  animation: reflectionRipple 3.5s ease-in-out infinite;
}
/* 星星主体：金色流光扫过动画（仅星星，不含皇冠） */
.mi-hat-star .hat-star-body {
  position: relative; display: inline-block;
  font-size: 32px; line-height: 1;
  background: linear-gradient(135deg, #ffd700 0%, #ffec80 25%, #ffb300 50%, #ff8f00 75%, #ffd700 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: starFlow 3s ease-in-out infinite;
}
/* 星星主体流光扫过层（::before）—— 仅覆盖星星，不含皇冠 */
.mi-hat-star .hat-star-body::before {
  content: ''; position: absolute; inset: -2px;
  background: linear-gradient(105deg,
    transparent 20%,
    rgba(255,215,0,.0) 30%,
    rgba(255,235,80,.75) 45%,
    rgba(255,255,200,.9) 50%,
    rgba(255,200,60,.75) 55%,
    rgba(255,215,0,.0) 65%,
    transparent 80%);
  background-size: 300% 100%;
  background-position: 100% 0;
  animation: starShimmer 2.5s ease-in-out infinite;   /* 单颗星星流光扫过时长2.5秒 */
  pointer-events: none; z-index: 5;
  border-radius: 6px;
  mix-blend-mode: screen;
}
.mi-hat-star .sparkle-layer {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.95) 1.2px, transparent 1.2px),
    radial-gradient(circle, rgba(255,248,200,.8) 0.6px, transparent 0.6px),
    radial-gradient(circle, rgba(255,255,255,.7) 0.9px, transparent 0.9px);
  background-size: 7px 7px, 5px 5px, 9px 9px;
  background-position: 2px 3px, 5px 7px, 1px 5px;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: sparkleShift 2.5s linear infinite;
  pointer-events: none;
}

@keyframes hatStarBounce {
  0% { opacity: 0; transform: scale(0) translateY(6px); }
  60% { transform: scale(1.2) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
/* 星星上下浮动 3-6px */
@keyframes starFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
/* 星星流光扫过动画：2.5秒一圈，柔和不刺眼 */
@keyframes starShimmer {
  0% { background-position: 100% 0; opacity: 0; }
  10% { opacity: 1; }
  90% { background-position: -100% 0; opacity: 1; }
  100% { background-position: -100% 0; opacity: 0; }
}
/* 倒影波纹晃动 */
@keyframes reflectionRipple {
  0%, 100% { transform: translateX(-50%) scaleY(-0.35) scaleX(0.65); opacity: .35; }
  25% { transform: translateX(-52%) scaleY(-0.32) scaleX(0.68); opacity: .30; }
  50% { transform: translateX(-48%) scaleY(-0.38) scaleX(0.62); opacity: .40; }
  75% { transform: translateX(-51%) scaleY(-0.33) scaleX(0.67); opacity: .32; }
}
@keyframes crownFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-1px) rotate(2deg); }
}
@keyframes starFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes sparkleShift {
  0% { background-position: 0 0, 0 0, 0 0; opacity: .5; }
  50% { opacity: 1; }
  100% { background-position: 7px 7px, -5px 5px, 9px -9px; opacity: .5; }
}
@keyframes starPop { to { opacity: 1; transform: scale(1); } }
@keyframes starUpgrade {
  0% { transform: scale(1); filter: none; }
  40% { transform: scale(1.5); filter: drop-shadow(0 0 8px #ffd700) brightness(1.4); }
  100% { transform: scale(1); filter: drop-shadow(0 0 4px #ffd700); }
}
/* 小星星呼吸明暗闪动：仅金黄色明暗变化，无七彩 */
@keyframes starBreath {
  0%, 100% { opacity: 1; filter: drop-shadow(0 0 3px rgba(255, 215, 0, .6)); }
  50% { opacity: .65; filter: drop-shadow(0 0 1px rgba(255, 215, 0, .3)); }
}
/* 皇冠金色光芒放射效果 */
.mi-hat-star .hat-crown {
  font-size: 14px; line-height: 1; position: relative; z-index: 2;
  margin-bottom: -4px;
  color: #FFD700 !important;   /* 皇冠强制金黄色 */
  animation: crownFloat 3s ease-in-out infinite, crownSparkle 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(255, 215, 0, .7));
}
@keyframes crownSparkle {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 215, 0, .7)) drop-shadow(0 0 8px rgba(255, 193, 7, .3)); }
  50% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, .9)) drop-shadow(0 0 14px rgba(255, 193, 7, .5)); }
}
#miUserCard .mine-arrow {
  font-size: 28px; opacity: .7; cursor: pointer;
  transition: color .2s, opacity .2s, transform .2s ease, text-shadow .2s ease;
  text-shadow: 0 1px 3px rgba(31, 64, 104, .15), 0 2px 6px rgba(31, 64, 104, .08);   /* 常态立体凸起 */
}
#miUserCard:hover .mine-arrow { color: #000; opacity: 1; }
#miUserCard .mine-arrow.clicked { color: #000; opacity: 1; }   /* 点击后变黑 */
#miUserCard:active .mine-arrow {
  color: #e74c3c; opacity: 1;
  transform: translateZ(2px) scale(1.1);   /* 悬浮增强 */
  text-shadow: 0 2px 8px rgba(231, 76, 60, .35), 0 4px 16px rgba(231, 76, 60, .15);   /* 红色光晕 */
}

/* §2 功能网格（5个入口，2x3布局） */
.mine-func-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 12px 16px;
  padding: 6px 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  overflow: hidden;
}
.mine-func-item {
  display: flex; flex-direction: row; align-items: center;
  gap: 12px; padding: 13px 16px;
  border-radius: 0;
  cursor: pointer; transition: all .15s;
  background: transparent;
  border-bottom: 1px solid #f2f3f5;
  touch-action: manipulation;
}
.mine-func-item:last-child { border-bottom: none; }
.mine-func-item:active {
  background: #f5f7fa;
}
.mine-func-item .func-ico {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0; background: none !important;
  transition: transform .15s;
}
.mine-func-item .func-ico svg { width: 20px; height: 20px; }
/* 竖排列表无需图标缩放 */
/* 各图标独立背景色 */
.func-ico-service { background: none; }
.func-ico-favorites { background: none; }
.func-ico-works { background: none; }
.func-ico-emoji { background: none; }
.func-ico-settings { background: none; }
.func-ico-cs { background: none; }
.mine-func-item em {
  font-size: 14px; font-style: normal; color: var(--text); font-weight: 500;
  flex: 1;
}

/* §3 列表菜单区 */
.mine-list-menu {
  margin: 12px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  overflow: hidden;
}
.mine-list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  cursor: pointer; transition: all .15s;
  border-bottom: 1px solid #f5f5f5;
}
.mine-list-item:last-child { border-bottom: none; }
.mine-list-item:active { background: #f8fafc; }
.ml-icon { font-size: 22px; flex-shrink: 0; }
.ml-content {
  flex: 1; display: flex; flex-direction: column; gap: 2px;
}
.ml-content b { font-size: 15px; color: var(--text); font-weight: 500; }
.ml-content span { font-size: 12px; color: #8492a6; }
.ml-arrow { font-size: 20px; color: #c0c8d4; }

/* §4 “我的”页面退出系统按钮 */
.mine-exit-sys {
  text-align: center; margin: 20px 16px 30px; padding: 14px 0;
  font-size: 16px; font-weight: 600; color: #e5503c;
  cursor: pointer; transition: all .15s;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.mine-exit-sys:active { color: #d4432e; background: #fef2f2; transform: scale(.98); }

/* 胶囊按钮行 */
.mine-capsule-row {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px 16px 24px;
}
.mine-capsule-btn {
  flex: 1;
  height: 58px; border: none; border-radius: 20px;
  font-size: 14px; font-weight: 400;
  cursor: pointer; transition: all .2s;
  background: rgba(0,0,0,.04); color: #e74c3c;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}
.mine-capsule-btn:active {
  background: rgba(0,0,0,.08);
  transform: scale(.97);
}

/* 客服弹窗（新布局） */
.cs-popup {
  width: 320px; max-width: 90vw;
  background: #fff; border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.15);
}
.cs-popup-header {
  text-align: center; padding: 28px 20px 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
}
.cs-phone-icon {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.cs-popup-header h2 {
  font-size: 20px; font-weight: 700; margin: 0 0 4px;
}
.cs-subtitle {
  font-size: 13px; opacity: .85; margin: 0;
}
.cs-chat-section {
  padding: 16px 20px;
}
.cs-info-cards {
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 16px;
}
.cs-info-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
}
.cs-card-icon {
  font-size: 24px; flex-shrink: 0;
}
.cs-card-text {
  display: flex; flex-direction: column; gap: 2px;
}
.cs-card-text b {
  font-size: 14px; color: var(--text); font-weight: 600;
}
.cs-card-text span {
  font-size: 12px; color: #8492a6;
}
/* 私聊客服按钮 */
.cs-private-chat-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all .15s;
  box-shadow: 0 4px 16px rgba(102,126,234,.35);
}
.cs-private-chat-btn:active {
  transform: scale(.97);
  box-shadow: 0 2px 10px rgba(102,126,234,.4);
}
/* 关闭按钮 */
.cs-close-btn {
  display: block; width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px;
  background: #f5f5f5;
  border: none; border-radius: 12px;
  font-size: 15px; font-weight: 500; color: #666;
  cursor: pointer; transition: all .15s;
}
.cs-close-btn:active {
  background: #e5e5e5;
  transform: scale(.98);
}

/* 切换账号弹窗 */
.acct-sheet { max-height: 80vh; overflow-y: auto; }
.acct-list { margin: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.acct-item {
  display: flex; flex-direction: column;
  background: #f8fafe; border-radius: 12px; padding: 12px 14px;
  cursor: pointer; transition: all .15s; position: relative;
}
.acct-item:active { background: #eef2f7; }
.acct-item.acct-current { background: #f0f8ff; border: 1px solid #d0e3f7; }
.acct-item-main { display: flex; align-items: center; gap: 12px; }
.acct-av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.acct-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.acct-info b { font-size: 15px; color: var(--text); }
.acct-info span { font-size: 12px; color: #8492a6; }
.acct-check { color: #3b82f6; font-size: 20px; font-style: normal; font-weight: 700; }
.acct-del {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: #fee2e2; color: #e5503c; border: none; border-radius: 6px;
  padding: 4px 10px; font-size: 12px; cursor: pointer;
}
.acct-del:active { background: #fca5a5; }
.acct-empty { text-align: center; color: #8492a6; padding: 30px 0; font-size: 14px; }

/* §2 资产 */
.mi-asset-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mi-asset {
  width: calc(50% - 4px); background: #f8fafe; border-radius: 12px; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px; position: relative;
}
.mi-asset em { font-size: 18px; font-weight: 800; color: var(--text); font-style: normal; }
.mi-asset span { font-size: 11px; color: #8492a6; }
.mi-detail {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 10px; color: var(--blue); background: rgba(59,130,246,.06);
  border: none; padding: 3px 8px; border-radius: 8px; cursor: pointer;
}
.mi-detail:active { transform: translateY(-50%) scale(.92); }
.mi-btn {
  width: 100%; height: 38px; margin-top: 10px; border-radius: 12px;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 600; border: none;
}
.mi-btn:active { transform: scale(.96); }

/* §3 银行卡 */
.mi-card-list { display: flex; flex-direction: column; gap: 8px; }
.mi-bank-card {
  background: linear-gradient(135deg, #1a365d, #2d5a8e); color: #fff; border-radius: 14px;
  padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; position: relative;
  animation: cardSlideIn .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes cardSlideIn { from { opacity: 0; transform: translateY(20px); } }
.mi-bank-card .bc-bank { font-size: 12px; opacity: .8; }
.mi-bank-card .bc-num { font-size: 17px; font-weight: 700; letter-spacing: 2px; }
.mi-bank-card .bc-actions { display: flex; gap: 8px; margin-top: 6px; }
.mi-bank-card .bc-btn {
  font-size: 10px; padding: 3px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.4);
  background: transparent; color: #fff; cursor: pointer;
}
.mi-bank-card .bc-btn:active { background: rgba(255,255,255,.15); }
.mi-bank-card .bc-btn.default { background: rgba(47,227,107,.25); border-color: #2fe36b; }
.mi-btn.add-card { background: transparent; border: 1.5px dashed #b8c7db; color: #5a6b82; }

/* §4 快捷功能区 */
.mi-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mi-quick {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px;
  border-radius: 12px; background: #f8fafe; cursor: pointer; opacity: 0;
  animation: quickPop .3s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes quickPop { from { opacity: 0; transform: scale(.5) translateY(12px); } to { opacity: 1; transform: none; } }
.mi-quick:active { transform: scale(.9); }
.mi-quick span { font-size: 24px; }
.mi-quick em { font-size: 11px; color: var(--text); font-style: normal; }

/* §5/6/7 行内条目 */
.mi-row-grid { display: flex; flex-direction: column; gap: 0; }
.mi-row-item {
  display: flex; align-items: center; gap: 10px; padding: 12px 19px; margin: 20px;   /* 整体尺寸减少40像素（四边各内缩20px） */
  border-bottom: 1px solid #f2f5f9; font-size: 13.5px; cursor: pointer;
}
.mi-row-item:last-child { border-bottom: none; }
.mi-row-item:active { background: #f5f8fc; }
.mi-row-item span { font-size: 18px; }
.mi-row-item i { margin-left: auto; font-style: normal; color: #c3ccd8; font-size: 18px; }

/* 积分过期提醒 */
.mi-expire { font-size: 10.5px; color: #e67e22; font-style: normal; margin-left: auto; animation: expireShake 1.5s ease-in-out infinite; }
@keyframes expireShake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

/* §8 设置列表 */
.mi-set-list { display: flex; flex-direction: column; }
.mi-set-item {
  display: flex; align-items: center; gap: 10px; padding: 13px 4px;
  border-bottom: 1px solid #f2f5f9; font-size: 13.5px; cursor: pointer;
  opacity: 0; animation: setSlideIn .3s ease forwards;
}
@keyframes setSlideIn { from { opacity: 0; transform: translateY(8px); } }
.mi-set-item:last-child { border-bottom: none; }
.mi-set-item span { font-size: 18px; }
.mi-arrow { margin-left: auto; font-style: normal; color: #c3ccd8; font-size: 18px; transition: transform .2s; }
.mi-set-item:active .mi-arrow { transform: rotate(90deg); }

/* 开关 */
.mi-toggle {
  margin-left: auto; width: 38px; height: 22px; border-radius: 11px; background: #cfd9e6;
  position: relative; cursor: pointer; transition: background .25s;
}
.mi-toggle::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .25s;
}
.mi-toggle.on { background: var(--blue); }
.mi-toggle.on::after { transform: translateX(16px); }

/* §10 底部 */
.mi-invite-row { display: flex; gap: 10px; margin-bottom: 12px; }
.mi-invite-btn, .mi-poster-btn {
  flex: 1; height: 38px; border-radius: 12px; font-size: 13px; font-weight: 600;
  border: none; color: #fff; cursor: pointer;
}
.mi-invite-btn { background: var(--blue); }
.mi-poster-btn { background: linear-gradient(135deg, #f7b731, #e67e22); }
.mi-invite-btn:active, .mi-poster-btn:active { transform: scale(.96); }
.mi-phone-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  border-bottom: 1px solid #f2f5f9; font-size: 13px; color: #5a6b82; margin-bottom: 12px;
}
.mi-phone-row b { color: var(--blue); font-size: 14px; }
.mi-logout {
  width: 100%; height: 42px; border-radius: 12px; font-size: 14px; font-weight: 600;
  color: var(--red); background: #fff; box-shadow: var(--card-shadow); border: none;
}
.mi-logout:active { transform: scale(.96); }

/* 页面入场动画：从下向上渐显滑入 */
.mi-fade { opacity: 0; transform: translateY(18px); transition: opacity .4s ease, transform .4s cubic-bezier(.22,.61,.36,1); }   /* 去除过冲回弹，平稳上浮不抖动 */
.mi-fade.show { opacity: 1; transform: none; }

/* 数字滚动动画（JS驱动，此仅为备用样式） */
.mi-asset em { transition: none; }

/* 震动反馈启闭开关（后台配备） */
.switch {
  position: relative; margin-left: auto; width: 38px; height: 22px;
  border-radius: 11px; background: #cfd9e6; cursor: pointer;
  font-style: normal; transition: background .25s;
}
.switch i {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .25s;
}
.switch.on { background: var(--blue); }
.switch.on i { transform: translateX(16px); }
.btn-logout {
  width: 100%; margin-top: 20px; height: 46px; border-radius: 14px; font-size: 15px;
  color: var(--red); background: #fff; box-shadow: var(--card-shadow);
}

/* ============ 底部导航栏（胶囊悬浮面板 + 下方同底色柔和渐变遮罩） ============ */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 18px; z-index: 10000;
  contain: layout style; /* 防止内部变化影响外部布局 */   /* 顶层常驻：距屏幕最底边约5px */
  width: min(94%, 420px); height: 64px;   /* 继续放大 */
  background: rgba(255, 255, 255, 0.8);   /* 80% 透明度白底 */
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 32px;
  box-shadow: none;
  display: flex; padding: 0 12px;
}
/* 胶囊下方柔和渐变遮罩：与页面底色一致，自导航底部向下逐渐加深，最底部最深并与底色自然融合；
   仅遮挡导航下方区域的页面内容（防止红色等元素露出），不形成深色块，不影响页面上方内容 */
.tabbar::before {
  display: none;
}
.tab-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; font-size: 14px; color: #333; position: relative;
  transition: color .2s, transform .18s cubic-bezier(.34, 1.56, .64, 1);
  font-weight: 500;
}
.tab-btn:active { transform: scale(1.08); }
.tab-btn.on { color: #1677ff; font-weight: 700; }
/* 底部导航玻璃笼罩（独立元素，平滑滑动） */
.glass-cover {
  position: absolute;
  top: 2px; bottom: 2px;
  border-radius: 35%;
  background: rgba(220, 235, 255, 0.45);
  backdrop-filter: blur(12px) saturate(2);
  -webkit-backdrop-filter: blur(12px) saturate(2);
  box-shadow: 0 4px 16px rgba(22,119,255,0.3), 0 1px 4px rgba(0,0,0,0.12), inset 0 1px 4px rgba(255,255,255,1), inset 0 -2px 4px rgba(200,220,255,0.6);
  border: 2px solid rgba(255,255,255,0.9);
  pointer-events: none; z-index: 0;
  transition: left .3s ease-out, right .3s ease-out, transform .18s ease-out, opacity .2s;
  opacity: 0;
  transform: scale(1);
}
.glass-cover.show { opacity: 1; }
.glass-cover.press { transform: scale(1.3); }

/* 选中态：全透明玻璃笼罩，视觉凸起 */
.tab-btn.on {
  /* 选中按钮本身的高亮由玻璃笼罩独立元素承担 */
}
.tab-btn svg, .tab-btn span { position: relative; z-index: 1; }

/* ★ 底部Tab红点角标（微信式：红色圆点/数字，定位在按钮右上角） */
.tab-badge {
  position: absolute;
  top: 4px; right: calc(50% - 18px);
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: #f5222d;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  border-radius: 9px;
  white-space: nowrap;
  box-sizing: border-box;
  z-index: 10;
  pointer-events: none;
}

/* ============ 服务二级页面 ============ */
.service-page {
  width: 100%; height: 100%; background: linear-gradient(180deg, #fdfefe 0%, #eef4fb 50%, #eef4fb 100%);
  display: flex; flex-direction: column;
}
/* ── 我的资产页面专属进场/出场动画 ── */
@keyframes svcScaleIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes svcScaleOut { from { transform: scale(1); } to { transform: scale(0); } }
.service-page.svc-scale-in  { animation: svcScaleIn .32s cubic-bezier(.22,.61,.36,1) both; }
.service-page.svc-scale-out { animation: svcScaleOut .28s cubic-bezier(.4,0,.6,1) both; }
.sp-header {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 64, 104, .06);
  position: relative;   /* 标题绝对居中 */
}
.sp-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 700; color: var(--text); }
.sp-back-btn {
  position: absolute; top: 6px; left: 12px;
  z-index: 10; width: 36px; height: 36px; padding: 0;
  background: none; border: none; outline: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .12s ease;
}
.sp-back-btn:hover { opacity: .65; }
.sp-back-btn:active {
  transform: scale(.88);
  opacity: .45;
  transition-duration: .04s;
}
/* 通用子页面返回按钮（无底色，统一位置） */
.page-back-btn {
  position: absolute !important; top: 6px !important; left: 12px !important;
  z-index: 10001 !important; width: 36px !important; height: 36px !important; padding: 0 !important;
  background: none !important; border: none !important; outline: none !important; cursor: pointer;
  display: flex !important; align-items: center !important; justify-content: center !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.page-back-btn:hover { opacity: .65; }
.page-back-btn:active {
  transform: scale(.88) !important;
  opacity: .45;
}
.sp-space { display: none; }   /* 不需要占位 */
.sp-body { flex: 1; overflow-y: auto; padding: 0 0 86px; scrollbar-width: none; -ms-overflow-style: none; }   /* 与“我的”页tab-body一致，无左右内边距 */
.sp-body::-webkit-scrollbar { display: none; }
/* 积分提示：标题下方浮动显示 */
.sp-points-tip {
  position: absolute;
  top: 48px;   /* 紧贴标题下方 */
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, .75);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  z-index: 100;
  animation: fadeInDown .3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
/* 佣金/积分展示卡片：与麦小星蓝色底框完全一致 */
/* ===== 资产总览卡片 ===== */
.sp-total-asset-card {
  margin: 16px 12px;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(102,126,234,.3);
  position: relative;
  overflow: hidden;
}
.sp-total-asset-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.1) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
.sp-total-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.sp-total-label {
  font-size: 13px; opacity: .85;
}
.sp-total-eye {
  font-size: 18px; cursor: pointer;
  opacity: .8;
  transition: opacity .15s;
}
.sp-total-eye:active { opacity: 1; }
.sp-total-amount {
  font-size: 36px; font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 4px;
  position: relative;
}
.sp-total-tip {
  font-size: 12px;
  opacity: .6;
  margin-bottom: 12px;
  position: relative;
  text-align: right;
  padding-right: 4px;
}
.sp-total-sub {
  display: flex; align-items: center; justify-content: space-around;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 12px 8px;
  position: relative;
}
.sp-sub-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.sp-sub-label {
  font-size: 12px; opacity: .8;
}
.sp-sub-value {
  font-size: 16px; font-weight: 600;
}
.sp-sub-divider {
  width: 1px; height: 28px;
  background: rgba(255,255,255,.3);
}

/* ===== 快捷功能网格 ===== */
.sp-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 16px 12px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.sp-quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 12px 8px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  touch-action: manipulation;
}
.sp-quick-item:active {
  background: #f5f7fa;
  transform: scale(.96);
}
.sp-quick-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.sp-quick-item > span:last-child {
  font-size: 13px; color: #4a5568; font-weight: 500;
}

/* ===== 常用服务列表 ===== */
.sp-service-list {
  margin: 16px 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  overflow: hidden;
}
.sp-service-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid #f0f0f0;
}
.sp-service-header b {
  font-size: 15px; color: var(--text); font-weight: 600;
}
.sp-service-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: background .15s;
  border-bottom: 1px solid #f8f8f8;
  touch-action: manipulation;
}
.sp-service-item:last-child { border-bottom: none; }
.sp-service-item:active { background: #f8fafc; }
.sp-svc-icon {
  font-size: 22px;
}
.sp-svc-text {
  flex: 1;
  font-size: 15px; color: var(--text); font-weight: 500;
}
.sp-svc-arrow {
  font-size: 20px; color: #c0c4cc;
}

/* ============ 积分明细页面 ============ */
.points-page {
  width: 100%; height: 100%; background: linear-gradient(180deg, #fdfefe 0%, #eef4fb 50%, #eef4fb 100%);
  display: flex; flex-direction: column;
}
.pt-header {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 64, 104, .06);
  position: relative;
}
.pt-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 700; color: var(--text); }
.pt-body { flex: 1; overflow-y: auto; padding: 20px 16px; }
/* 积分余额卡片 */
.pt-balance-card {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  border-radius: 16px; padding: 24px; text-align: center; color: #fff;
  box-shadow: 0 6px 18px rgba(251, 191, 36, .3);
  margin-bottom: 20px;
}
.pt-label { font-size: 13px; opacity: .9; display: block; margin-bottom: 8px; }
.pt-amount { font-size: 36px; font-weight: 800; letter-spacing: .5px; }
/* 积分列表 */
.pt-list { display: flex; flex-direction: column; gap: 8px; }
.pt-item {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(31, 64, 104, .05);
}
.pt-desc { flex: 1; font-size: 14px; color: var(--text); font-weight: 500; }
.pt-value { font-size: 15px; font-weight: 700; }
.pt-value:not([class*="-"]) { color: #10b981; }  /* 正数绿色 */
.pt-item .pt-value { color: #10b981; }
.pt-item:has(.pt-value:first-child) .pt-value { color: #ef4444; }  /* 负数红色 */
.pt-time { font-size: 11px; color: #aab6c4; }

/* ============ 银行卡管理页面 ============ */
.bank-page {
  width: 100%; height: 100%; background: linear-gradient(180deg, #fdfefe 0%, #eef4fb 50%, #eef4fb 100%);
  display: flex; flex-direction: column; position: relative;
}
.bk-header {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 64, 104, .06);
  position: relative;
}
.bk-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 700; color: var(--text); }
.bk-menu-btn:active { opacity: .5; }
.bk-dropdown-item:active { background: #f5f5f5; }
@keyframes bkDropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
/* 长按卡片视觉反馈 */
.bk-card-inner.bk-longpress { transform: scale(0.97); opacity: 0.85; transition: transform 0.15s, opacity 0.15s; }
.bk-body { flex: 1; overflow-y: auto; padding: 16px 16px 24px; display: flex; flex-direction: column; }
/* 银行卡卡片 */
.bk-card {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a7f 50%, #3d7a9f 100%);
  border-radius: 10px; padding: 10px 12px 10px; color: #fff;
  box-shadow: 0 4px 12px rgba(26, 51, 85, .3), 0 1px 3px rgba(0,0,0,.08);
  margin-bottom: 12px;
  position: relative; overflow: hidden;
}
.bk-card::before {
  content: ''; position: absolute; top: -30px; right: -20px;
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.bk-card::after {
  content: ''; position: absolute; bottom: -20px; left: -15px;
  width: 70px; height: 70px;
  background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
  border-radius: 50%;
}
.bk-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.bk-chip { width: 22px; height: 16px; background: linear-gradient(135deg, #d4a84b 0%, #f0d68a 50%, #c49b38 100%); border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.bk-bank { font-size: 13px; font-weight: 700; margin-bottom: 5px; opacity: .95; letter-spacing: 0.5px; }
.bk-masked-no { display: none; }
.bk-number { font-size: 18px; font-weight: 700; letter-spacing: 2px; margin-bottom: 8px; font-family: 'Courier New', monospace; }
.bk-type { font-size: 11px; opacity: .7; }
.bk-full-number-row { display: none; }
.bk-full-number { font-size: 15px; font-weight: 600; letter-spacing: 1.5px; font-family: 'Courier New', monospace; color: rgba(255,255,255,.85); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-card-bottom.bk-revealed .bk-full-number { color: #7ec8f6; font-size: 16px; margin-left: auto; margin-right: 3px; }
.bk-copy-card { font-size: 10px; color: rgba(255,255,255,.85); cursor: pointer; padding: 2px 8px; border: 1px solid rgba(255,255,255,.4); border-radius: 14px; background: rgba(255,255,255,.12); margin-left: 8px; white-space: nowrap; transition: all .2s; flex-shrink: 0; }
.bk-copy-card:hover { background: rgba(255,255,255,.25); color: #fff; }
.bk-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bk-holder { font-size: 15px; font-weight: 600; color: rgba(255,255,255,.85); letter-spacing: 0.5px; flex-shrink: 0; }
.bk-card-no-display { font-size: 15px; font-weight: 600; letter-spacing: 1px; font-family: 'Courier New', monospace; color: rgba(255,255,255,.85); flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-show-full { font-size: 10px; color: rgba(255,255,255,.75); cursor: pointer; padding: 4px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; transition: all .2s; background: rgba(255,255,255,.08); position: relative; z-index: 5; flex-shrink: 0; }
.bk-show-full:hover { background: rgba(255,255,255,.2); color: #fff; }
/* 添加按钮 */
.bk-cards-container { }
.bk-add-btn {
  width: 80%; max-width: 280px; height: 44px; margin: 20px auto 0; display: block; flex-shrink: 0;
  background: rgba(240, 240, 245, .9); color: #666;
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(200, 200, 210, .4);
  border-radius: 22px; cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.bk-add-btn:active {
  background: rgba(230, 230, 235, .95);
  transform: scale(0.98);
}

/* ============ 表情二级页面 ============ */
.emoji-page {
  width: 100%; height: 100%; background: linear-gradient(180deg, #fdfefe 0%, #eef4fb 50%, #eef4fb 100%);
  display: flex; flex-direction: column;
}
/* ── 表情页面专属进场/出场动画 ── */
@keyframes epScaleIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes epScaleOut { from { transform: scale(1); } to { transform: scale(0); } }
.emoji-page.ep-scale-in  { animation: epScaleIn .32s cubic-bezier(.22,.61,.36,1) both; }
.emoji-page.ep-scale-out { animation: epScaleOut .28s cubic-bezier(.4,0,.6,1) both; }
.ep-header {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 64, 104, .06);
  position: relative;
}
.ep-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 700; color: var(--text); }
/* 分类标签栏 */
.ep-tabs {
  flex: none; display: flex; height: 44px; padding: 0 16px;
  background: #fff; border-bottom: 1px solid rgba(31, 64, 104, .06);
}
.ep-tab {
  flex: 1; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 500; color: #8492a6;
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.ep-tab.active {
  color: var(--blue); font-weight: 600;
  border-bottom-color: var(--blue);
}
/* 内容区 */
.ep-body { flex: 1; overflow-y: auto; padding: 16px; }
.ep-panel { display: none; }
.ep-panel.active { display: block; }
.ep-empty {
  display: flex; align-items: center; justify-content: center;
  height: 200px; color: #aab6c4; font-size: 14px;
}

/* ============ 设置二级页面 ============ */
.settings-page, .sub-page {
  width: 100%; height: 100%; background: linear-gradient(180deg, #fdfefe 0%, #eef4fb 50%, #eef4fb 100%);
  display: flex; flex-direction: column;
}
/* ── 系统设置页面专属进场/出场动画 ── */
@keyframes stScaleIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes stScaleOut { from { transform: scale(1); } to { transform: scale(0); } }
.settings-page.st-scale-in  { animation: stScaleIn .32s cubic-bezier(.22,.61,.36,1) both; }
.settings-page.st-scale-out { animation: stScaleOut .28s cubic-bezier(.4,0,.6,1) both; }
.st-header, .sub-header {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 64, 104, .06);
  position: relative;
}
.st-title, .sub-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 700; color: var(--text); }
.st-body { flex: 1; overflow-y: auto; padding: 6px 0 16px; }
.sub-body { flex: 1; overflow-y: auto; padding: 16px 0; }
/* 菜单条目：与功能板块样式统一，立体悬浮质感 */
.st-menu-item {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px; margin: 0 10px 5px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(31, 64, 104, .06), 0 4px 16px rgba(31, 64, 104, .04), inset 0 1px 0 rgba(255, 255, 255, .8);   /* 常态立体悬浮 */
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease, background .15s;
  touch-action: manipulation;
}
.st-menu-item:active {
  background: #f5f8fc;
  box-shadow: 0 4px 14px rgba(31, 64, 104, .12), 0 8px 28px rgba(31, 64, 104, .08), inset 0 1px 0 rgba(255, 255, 255, .9);   /* 按下悬浮增强 */
  transform: translateY(-1px);
}
.st-menu-item em, .st-menu-item span { font-size: 14px; font-style: normal; color: var(--text); font-weight: 500; flex: 1; }
.st-menu-item i { font-size: 18px; color: #b3bfce; font-style: normal; transition: color .15s ease; }
.st-menu-item:active i { color: #e74c3c; }   /* 按下箭头变红 */
/* 退出登录容器：固定在底部，距底边100px */
.st-logout-wrap {
  flex: none;
  padding: 0 10px 100px;
}
/* 退出登录按钮 */
.st-menu-item.st-logout {
  justify-content: center;
  color: #e74c3c;
  background: #fff5f5;
}
.st-menu-item.st-logout:active { background: #ffe8e8; }
/* 退出系统文字按钮 */
/* 退出系统按钮：微信风格圆角按钮 */
.st-exit-wrap {
  padding: 60px 24px 0;
}
.st-exit-btn {
  display: block;
  width: 100%;
  height: 48px;
  border: 1px solid #e5503c;
  border-radius: 8px;
  background: #fff;
  color: #e5503c;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all .15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.st-exit-btn:active {
  background: #fdf0ee;
  border-color: #d4432e;
  color: #d4432e;
  transform: scale(.97);
  opacity: .85;
}
/* 开关样式 */
.st-menu-item.st-switch-item { justify-content: space-between; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc; transition: .3s; border-radius: 24px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--blue); }
input:checked + .slider:before { transform: translateX(20px); }
/* 关于我们 */
.about-content { text-align: center; padding: 40px 20px; }
.about-logo {
  width: 80px; height: 80px; margin: 0 auto 20px;
  background: linear-gradient(135deg, #7cb8ff, #93c5fd);
  border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: #fff;
}
.about-version { font-size: 14px; color: #8492a6; margin-bottom: 16px; }
.about-desc { font-size: 13px; color: #5a6b82; line-height: 1.8; }

/* ============ 收藏页面 ============ */
.favorites-page {
  width: 100%; height: 100%; background: linear-gradient(180deg, #fdfefe 0%, #eef4fb 50%, #eef4fb 100%);
  display: flex; flex-direction: column;
}
/* ── 收藏页面专属进场/出场动画 ── */
@keyframes favScaleIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes favScaleOut { from { transform: scale(1); } to { transform: scale(0); } }
.favorites-page.fav-scale-in  { animation: favScaleIn .32s cubic-bezier(.22,.61,.36,1) both; }
.favorites-page.fav-scale-out { animation: favScaleOut .28s cubic-bezier(.4,0,.6,1) both; }
.fav-header {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 64, 104, .06);
  position: relative;
}
.fav-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 700; color: var(--text); }
.fav-body { flex: 1; overflow-y: auto; padding: 16px 0; }
.fav-item {
  display: flex; align-items: center; gap: 12px;
  height: 64px; padding: 0 16px; margin: 0 10px 8px;
  background: #fff; border-radius: 12px; box-shadow: var(--card-shadow);
}
.fav-av {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, #e3eefa, #d4e4f7);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: var(--blue);
}
.fav-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.fav-info b { font-size: 14px; font-weight: 600; color: var(--text); }
.fav-info span { font-size: 11px; color: #aab6c4; }

/* ============ 作品页面 ============ */
.works-page {
  width: 100%; height: 100%; background: linear-gradient(180deg, #fdfefe 0%, #eef4fb 50%, #eef4fb 100%);
  display: flex; flex-direction: column;
}
/* ── 作品页面专属进场/出场动画 ── */
@keyframes wkScaleIn { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes wkScaleOut { from { transform: scale(1); } to { transform: scale(0); } }
.works-page.wk-scale-in  { animation: wkScaleIn .32s cubic-bezier(.22,.61,.36,1) both; }
.works-page.wk-scale-out { animation: wkScaleOut .28s cubic-bezier(.4,0,.6,1) both; }
.wk-header {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 64, 104, .06);
  position: relative;
}
.wk-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 700; color: var(--text); }
.wk-body { flex: 1; overflow-y: auto; padding: 16px 0; }
.wk-item {
  display: flex; align-items: center; gap: 12px;
  height: 72px; padding: 0 16px; margin: 0 10px 8px;
  background: #fff; border-radius: 12px; box-shadow: var(--card-shadow);
}
.wk-cover {
  width: 48px; height: 48px; border-radius: 8px;
  background: linear-gradient(135deg, #7cb8ff, #93c5fd);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: #fff;
}
.wk-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.wk-info b { font-size: 14px; font-weight: 600; color: var(--text); }
.wk-info span { font-size: 11px; color: #aab6c4; }

/* ============ 个人信息编辑页（二级页面） ============ */
.profile-edit-page {
  width: 100%; height: 100%; background: linear-gradient(180deg, #fdfefe 0%, #eef4fb 50%, #eef4fb 100%);
  display: flex; flex-direction: column; position: relative;
}
.pe-header {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 64, 104, .06);
  position: relative;
}
.pe-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 18px; font-weight: 700; color: var(--text); }
.pe-body { flex: 1; overflow-y: auto; padding: 3px 0 16px; }
.pe-item {
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 16px; margin: 0 10px 5px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(31, 64, 104, .06), 0 4px 16px rgba(31, 64, 104, .04), inset 0 1px 0 rgba(255, 255, 255, .8);
  cursor: pointer;
  transition: box-shadow .2s ease, transform .2s ease, background .15s;
}
.pe-item:active {
  background: #f5f8fc;
  box-shadow: 0 4px 14px rgba(31, 64, 104, .12), 0 8px 28px rgba(31, 64, 104, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
  transform: translateY(-1px);
}
.pe-label { font-size: 14px; color: #8492a6; font-weight: 500; }
.pe-value { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.pe-avatar {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; font-weight: 800;
}
.pe-hint { font-size: 11px; color: #b3bfce; font-weight: 400; }
.pe-lock { font-size: 12px; opacity: .5; }
.pe-edit { font-size: 14px; cursor: pointer; }
.pe-item:active { background: #f5f8fc; }

/* 头像放大预览弹窗 */
.avatar-preview {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(16px);
  border-radius: 0 0 24px 24px; padding: 0; overflow: hidden;
  box-shadow: 0 20px 50px rgba(15, 35, 60, .25);
  width: 100%;
}
.av-top {
  width: 100%; display: flex; align-items: center; justify-content: flex-start;
  padding: 10px 10px 10px;
}
.av-large {
  width: 100%; aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28vw; font-weight: 800;
  box-shadow: 0 10px 30px rgba(31, 64, 104, .2);
}
.av-bottom {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 8px 0 16px; flex: none;
}
/* 返回按钮（无底色，统一 36×36） */
.av-back-btn {
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.av-back-btn:active { transform: scale(.9); }

/* 迈迈号悬浮编辑窗口 */
.mai-edit-float {
  position: relative; z-index: 5;
  margin: 0 12px 12px; padding: 16px;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(16px);
  border-radius: 14px; border: 1px solid rgba(59, 130, 246, .3);
  box-shadow: 0 8px 24px rgba(59, 130, 246, .18), 0 2px 8px rgba(31, 64, 104, .08);
  animation: maiEditIn .3s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes maiEditIn {
  from { opacity: 0; transform: translateY(-12px) scale(.95); }
}
.mai-edit-title {
  font-size: 13px; font-weight: 700; color: var(--blue); margin-bottom: 10px;
}
.mai-edit-input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1.5px solid #d4dce8; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--text);
  outline: none; transition: border-color .2s;
  box-sizing: border-box;
}
.mai-edit-input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 130, 246, .12); }
.mai-edit-btns { display: flex; gap: 10px; margin-top: 12px; }
.mai-edit-cancel {
  flex: 1; height: 34px; border-radius: 10px; border: none;
  background: #f0f3f7; color: #8492a6; font-size: 13px; font-weight: 600; cursor: pointer;
}
.mai-edit-submit {
  flex: 1; height: 34px; border-radius: 10px; border: none;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: background .2s;
}
.mai-edit-submit:active { background: #1d4ed8; }

/* ============ 弹层：全站统一 Mac 窗口式原点缩放动效（260ms / cubic-bezier(0.34,1.56,0.64,1)） ============ */
.overlay-layer {
  position: absolute; inset: 0; z-index: 60; background: rgba(0, 0, 0, .7);
  opacity: 0; display: flex; align-items: flex-end; justify-content: center;
  transition: opacity .2s ease-out;
  pointer-events: none;
  overscroll-behavior: none;
}
.overlay-layer.show { opacity: 1; pointer-events: auto; }
/* 关闭过渡：先略暗再淡出，避免白屏闪烁 */
@keyframes ovCloseFade {
  0%   { opacity: 1; }
  25%  { opacity: 1; background: rgba(0, 0, 0, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  100% { opacity: 0; background: rgba(0, 0, 0, 0); backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
}
.overlay-layer.ov-close {
  animation: ovCloseFade .2s ease both !important;
  transition: none !important;
  pointer-events: none !important;
}
.overlay-layer.center { align-items: center; justify-content: center; padding: 0 20px; padding-top: 8vh; }
.overlay-layer.fullscreen { position: fixed; inset: 0; z-index: 9999; align-items: stretch; background: #f0f4f8; overscroll-behavior: none; }
.overlay-layer.top-card { align-items: flex-start; justify-content: center; padding-top: 20px; }   /* 顶部对齐，距屏幕顶部 20px */
/* 键盘感知模式：键盘弹出时缩小 overlay 底部区域，弹窗居中于可见区域（紧贴键盘上方） */
.overlay-layer.kb-open { bottom: var(--kb-h, 0px); }
/* instant 直跳模式：无灰蒙层、无毛玻璃、无过渡，等同页面直接跳转 */
.overlay-layer.instant { background: transparent; transition: none; }
.overlay-layer.instant.show { backdrop-filter: none; }
/* 堆叠导航模式：父页面驻留，子页面叠加，返回时子页缩小收起 */
.overlay-layer.stacked { background: transparent; }
/* fullscreen/stacked模式下子页面绝对定位堆叠，避免flex并排 */
.overlay-layer.fullscreen > *,
.overlay-layer.stacked > * {
  position: absolute; inset: 0;
}
.sheet {
  width: 100%; background: #fff; border-radius: 22px 22px 0 0; padding: 18px 18px 20px;
  max-height: 72%; overflow-y: auto;   /* 去除滑入动画，由原点缩放统一接管 */
}
.sheet.center-card {
  width: 85%; max-width: 300px; margin: 0 auto; border-radius: 16px; padding: 20px 18px; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}
.sheet.center-card input[type='password'],
.sheet.center-card input[type='text'] {
  width: 100%; box-sizing: border-box;
}
.sheet.center-card h3 { font-size: 15px; margin-bottom: 4px; }
/* 密码弹窗关闭按钮 */
.cc-close {
  position: absolute; top: 8px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #f0f0f0; border: none; font-size: 18px; line-height: 28px;
  color: #999; cursor: pointer; text-align: center; padding: 0;
}
.cc-close:active { background: #e0e0e0; color: #666; }
#exitSysCard { margin-top: -12vh; }
#switchAcctCard { margin-top: -12vh; }
.sheet h3 { font-size: 16px; margin-bottom: 6px; }
.sheet .sheet-sub { font-size: 12.5px; color: var(--grey); line-height: 1.6; margin-bottom: 14px; }
.sheet-bar { width: 38px; height: 4px; border-radius: 2px; background: #e2e8f0; margin: 0 auto 14px; }
.sheet-btns { display: flex; gap: 10px; margin-top: 16px; }
.sheet-btns button { flex: 1; height: 44px; border-radius: 12px; font-size: 14.5px; font-weight: 600; border: none; cursor: pointer; touch-action: manipulation; transition: transform .12s, opacity .12s; }
.sheet-btns button:active { transform: scale(.96); opacity: .7; }
.btn-ghost { background: #f0f3f8; color: #5a6b82; }
.btn-gray { background: #f0f3f8; color: #5a6b82; }   /* 取消按钮 */
.btn-red { background: #f43f5e; color: #fff; }   /* 危险操作确认 */
.btn-blue { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; }
.sheet-input {
  width: 100%; height: 40px; border: 1px solid #e3e9f2; border-radius: 10px; padding: 0 12px;
  font-size: 14px; background: #f6f8fb; margin-bottom: 12px;
}
.sheet-input:focus { outline: none; border-color: var(--blue); background: #fff; }
.sheet-list { display: flex; flex-direction: column; gap: 8px; }
.sheet-list button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: #f5f8fc; border-radius: 12px; padding: 13px 14px; font-size: 14px;
}

/* 佣金悬浮框：固定在屏幕中上方，距顶部 20px */












/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%) translateY(12px);
  background: rgba(20, 35, 60, .88); color: #fff; font-size: 13px; padding: 9px 18px;
  border-radius: 20px; opacity: 0; pointer-events: none; z-index: 300000;
  transition: opacity .3s, transform .3s; white-space: nowrap; max-width: 86%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 顶部新消息通知弹窗：从顶部下滑，停甹5秒后上滑消失 */
.chat-notify {
  position: fixed; top: 10px; left: 50%; z-index: 99998;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px;
  max-width: 340px; width: calc(100% - 32px);
  background: rgba(255,255,255,0.95); backdrop-filter: blur(16px);
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12), 0 1px 4px rgba(0,0,0,0.06);
  transform: translate(-50%, -120%); opacity: 0;
  transition: transform .45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .35s;
  cursor: pointer;
}
.chat-notify.show { transform: translate(-50%, 0); opacity: 1; }
.chat-notify-av {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #6366f1, #818cf8); color: #fff; font-size: 13px; font-weight: 600;
  overflow: hidden;
}
.chat-notify-av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-notify-text { flex: 1; min-width: 0; }
.chat-notify-text b { font-size: 13px; display: block; color: #1a1a2e; line-height: 1.3; }
.chat-notify-text span { font-size: 12px; color: #8492a6; display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 通讯录头像抖动动画（V形跳法） */
@keyframes avatarFlash {
  0%   { transform: translateY(0) scaleY(1); }
  15%  { transform: translateY(0) scaleY(0.85) scaleX(1.1); }
  30%  { transform: translateY(-14px) scaleY(1.1) scaleX(0.95); }
  45%  { transform: translateY(0) scaleY(0.9) scaleX(1.05); }
  55%  { transform: translateY(-8px) scaleY(1.05) scaleX(0.98); }
  65%  { transform: translateY(0) scaleY(0.95) scaleX(1.02); }
  72%  { transform: translateY(-3px) scaleY(1); }
  80%  { transform: translateY(0) scaleY(1); }
  100% { transform: translateY(0) scaleY(1); }
}
.contact-avatar.flash {
  animation: avatarFlash 0.7s ease-in-out infinite;
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
}
/* 通讯录好友头像红点（未读消息提示） */
.contact-avatar { position: relative; }
.contact-avatar .contact-badge {
  position: absolute; top: -3px; right: -3px; width: 10px; height: 10px;
  border-radius: 50%; background: #f43f5e; border: 2px solid #fff;
  display: none; z-index: 2;
}
.contact-avatar .contact-badge.show { display: block; }

/* 按压反馈 */
.pressable { transition: transform .08s ease, opacity .1s; }
.pressable:active { transform: scale(.93); }


/* 长按快捷菜单：圆形按钮样式 */
.qm-float-circle { width: 65%; max-width: 310px; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border-radius: 20px; padding: 20px 16px 16px; box-shadow: 0 20px 50px rgba(15,35,60,.25); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.qm-name-circle { font-size: 15px; font-weight: 700; color: var(--text); }
.qm-menu-circle { display: flex; gap: 16px; justify-content: center; }
.qm-item-circle { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; transition: transform .15s; }
.qm-item-circle:active { transform: scale(.9); }
.qm-ico-circle { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.qm-label-circle { font-size: 11px; color: #64748b; font-weight: 500; }

/* ============ 团队用户信息页（悬浮大窗口） ============ */
.uip-float { position: relative; width: 100%; max-width: 360px; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 22px; box-shadow: 0 18px 48px rgba(15, 35, 60, .22); padding: 10px 8px 8px; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
.uip-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: none; background: rgba(15, 35, 60, .06); color: #1f4068; font-size: 22px; line-height: 1; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; z-index: 2; }
.uip-close:active { background: rgba(15, 35, 60, .14); transform: scale(.9); }
.uip-float-card { display: flex; flex-direction: column; align-items: center; padding: 0 0 18px; border-bottom: 1px solid #f1f5f9; margin-bottom: 14px; }
.uip-avatar { width: 260px; height: 260px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 104px; font-weight: 700; box-shadow: 0 6px 18px rgba(15, 35, 60, .18); overflow: hidden; margin-top: 10px; }
.uip-av-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uip-star-row { margin-top: 14px; display: flex; align-items: center; justify-content: center; }
.uip-stars { display: inline-flex; align-items: center; gap: 3px; }
.uip-star-icon { color: #FFD700; font-size: 28px; text-shadow: 0 2px 10px rgba(255, 215, 0, .5); animation: uipStarPulse 1.5s ease-in-out infinite; }
@keyframes uipStarPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.uip-level-row { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.uip-level-tag { font-size: 12.5px; font-weight: 600; color: #64748b; padding: 3px 10px; border-radius: 12px; background: #f1f5f9; }

/* ===== 大星星五彩流光特效 ===== */
.star-big {
  font-size: 22px;
  display: inline-block;
  vertical-align: bottom;
  color: #FFD700;
  position: relative;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6), 0 0 16px rgba(255, 180, 0, 0.3);
  animation: starGlow 3s ease-in-out infinite;
}
.star-big::after {
  content: attr(data-c);
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 25%,
    rgba(255,100,100,0.8) 33%,
    rgba(255,220,80,0.9) 40%,
    rgba(120,255,120,0.8) 47%,
    rgba(100,200,255,0.8) 54%,
    rgba(180,120,255,0.8) 61%,
    transparent 70%,
    transparent 100%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: starSweep 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes starSweep {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
@keyframes starGlow {
  0%, 100% { filter: brightness(0.8); }
  50% { filter: brightness(1.3); }
}
.star-small {
  font-size: 16px;
  color: #FFD700;
  display: inline-block;
  vertical-align: bottom;
  text-shadow: 0 1px 4px rgba(255, 215, 0, 0.4);
}

.uip-no-level { font-size: 12.5px; font-weight: 600; color: #94a3b8; padding: 3px 10px; border-radius: 12px; background: #f1f5f9; }
.uip-info { width: 100%; background: #f8fafc; border-radius: 14px; overflow: hidden; }
.uip-info-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #eef2f7; gap: 12px; }
.uip-info-row:last-child { border-bottom: none; }
.uip-info-k { font-size: 13px; color: #64748b; flex: none; }
.uip-info-v { font-size: 14px; color: #1f4068; font-weight: 600; text-align: right; max-width: 65%; word-break: break-all; }
/* 头像可点击效果 */
.tm-row-av-clickable { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tm-row-av-clickable:active { transform: scale(.92); box-shadow: 0 0 0 3px rgba(61, 139, 253, .25); }

/* 标题区头像 */
.title-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
  vertical-align: middle;
}







/* 佣金弹窗：居中显示 */
.commission-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: overlayFadeIn 0.25s ease;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.commission-popup {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 360px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.commission-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.commission-popup-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  line-height: 1;
}

.commission-popup-close:hover {
  color: #333;
}

/* 弹窗头部返回按钮 */
.wd-header-back-btn {
  background: none;
  border: none;
  font-size: 14px;
  color: #667eea;
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.wd-header-back-btn:active {
  transform: scale(0.9);
  opacity: 0.6;
  background: rgba(102, 126, 234, 0.08);
}

.commission-popup-body {
  padding: 24px 20px;
  overflow-y: auto;
  flex: 1;
}

.commission-popup-balance {
  font-size: 15px;
  color: #666;
  margin-bottom: 16px;
}

.commission-popup-balance strong {
  font-size: 24px;
  color: #e74c3c;
  font-weight: 700;
}

.commission-popup-tip {
  font-size: 13px;
  color: #999;
  text-align: center;
  padding: 12px 0;
}


/* 提现流程样式 */
.wd-next-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: all 0.3s;
}

.wd-next-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.wd-next-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.wd-tip {
  font-size: 13px;
  color: #999;
  text-align: center;
  margin: 12px 0;
}

.wd-form {
  margin: 16px 0;
}

.wd-form-item {
  margin-bottom: 12px;
}

.wd-form-item label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.wd-form-item input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.wd-form-item input:focus {
  outline: none;
  border-color: #667eea;
}

/* 字段错误状态 */
.wd-field-error {
  font-size: 12px;
  color: #e74c3c;
  margin-top: 4px;
  min-height: 16px;
  line-height: 1.3;
}

.wd-field-error-state input {
  border-color: #e74c3c !important;
  background: #fff5f5;
}

.wd-field-error-state input:focus {
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}

.wd-loading {
  color: #999;
  font-size: 14px;
}

.wd-face-area {
  width: 150px;
  height: 150px;
  margin: 20px auto;
  border: 2px dashed #ddd;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.3s;
  overflow: hidden;
}

.wd-face-area:hover {
  border-color: #667eea;
}

.wd-face-placeholder {
  color: #999;
  font-size: 13px;
  text-align: center;
  padding: 10px;
}

.wd-amount-display {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 8px;
}

.wd-amount-input {
  text-align: center;
  margin-bottom: 12px;
}

.wd-amount-input input {
  width: 150px;
  padding: 8px;
  border: none;
  border-bottom: 2px solid #667eea;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-align: center;
  outline: none;
  background: transparent;
}

.wd-balance-hint {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.wd-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
}

.wd-success-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.wd-success-amount {
  font-size: 28px;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 16px;
}


/* 佣金明细记录列表 */
.wd-record-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.wd-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.wd-record-item:last-child {
  border-bottom: none;
}

.wd-record-item:hover {
  background: #fafafa;
}

.wd-record-left {
  flex: 1;
  min-width: 0;
}

.wd-record-type {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-record-time {
  font-size: 12px;
  color: #999;
}

.wd-record-right {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 12px;
}

.wd-record-income {
  color: #10b981;
}

.wd-record-expense {
  color: #ef4444;
}


/* 提现流程 - 余额行 */
.wd-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 10px;
  margin-bottom: 14px;
}

.wd-balance-label {
  font-size: 14px;
  color: #666;
}

.wd-balance-value {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* 提现金额输入行 */
.wd-amount-row {
  margin-bottom: 12px;
}

.wd-amount-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.wd-amount-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.3s;
  outline: none;
}

.wd-amount-input:focus {
  border-color: #667eea;
}

/* 提示条 */
.wd-hint-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #9a3412;
}

.wd-hint-icon {
  width: 20px;
  height: 20px;
  background: #f97316;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

/* 必填星号 */
.wd-required {
  color: #ef4444;
  font-weight: bold;
}

/* 确认提现金额展示 */
.wd-confirm-amount-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 4px;
}

.wd-confirm-amount {
  font-size: 32px;
  font-weight: 800;
  color: #e74c3c;
  letter-spacing: 1px;
}


/* 全屏佣金明细 */

/* ========== 佣金提现全屏页面 ========== */
.wd-fullscreen-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, #f8f9ff 0%, #f0f2f8 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}


/* 服务中心子页面：缩放进入/退出动画 */
@keyframes wdZoomIn { 0% { transform: scale(0.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes wdZoomOut { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(0.5); opacity: 0; } }
.wd-zoom-in  { animation: wdZoomIn 1s cubic-bezier(0.16, 1, 0.3, 1) both; transform-origin: center center;  }
.wd-zoom-out { animation: wdZoomOut .3s cubic-bezier(0.7, 0, 0.84, 0) both; transform-origin: center center;  }

.wd-fullscreen-popup {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  animation: wdZoomIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: center center;
}

/* 顶部导航 */
.wd-fs-header {
  display: flex;
  align-items: center;
  padding: 0 20px;
  height: 56px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.wd-fs-back {
  width: 36px; height: 36px; padding: 0;
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.wd-fs-title {
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-right: 40px;
  letter-spacing: 0.5px;
}

/* 内容区 */
.wd-fs-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 余额卡片 - 精美渐变 */
.wd-fs-balance-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  border-radius: 20px;
  padding: 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.wd-fs-balance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.wd-fs-balance-card::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.wd-fs-bal-label {
  font-size: 14px;
  opacity: 0.9;
  display: block;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.wd-fs-bal-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 金额输入区域 */
.wd-amount-section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.wd-amount-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  font-weight: 500;
}

.wd-amount-input-wrap {
  display: flex;
  align-items: center;
  background: #f8f9ff;
  border-radius: 12px;
  padding: 16px 20px;
  border: 2px solid #e8ecf4;
  transition: all 0.3s ease;
}

.wd-amount-input-wrap:focus-within {
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.wd-currency {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin-right: 12px;
}

.wd-amount-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  outline: none;
  letter-spacing: -0.5px;
}

.wd-amount-input::placeholder {
  color: #c8cdd8;
  font-weight: 400;
  font-size: 22px;
}

/* 明细列表 */
.wd-fs-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  padding-left: 4px;
}

.wd-fs-record-list {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.wd-fs-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.wd-fs-record-item:last-child {
  border-bottom: none;
}

.wd-fs-record-item:active {
  background: #f8f9ff;
}

.wd-fs-record-left {
  flex: 1;
  min-width: 0;
}

.wd-fs-record-type {
  font-size: 15px;
  color: #1a1a1a;
  font-weight: 500;
  margin-bottom: 4px;
}

.wd-fs-record-time {
  font-size: 12px;
  color: #999;
}

.wd-fs-record-amt {
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 16px;
}

.wd-fs-income {
  color: #10b981;
}

.wd-fs-expense {
  color: #ef4444;
}

/* 底部按钮 */
.wd-fs-footer {
  padding: 16px 20px 24px;
  background: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.03);
  flex-shrink: 0;
}

.wd-fs-withdraw-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
  letter-spacing: 1px;
}

.wd-fs-withdraw-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.wd-fs-withdraw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


.wd-amount-input input {
  width: 150px;
  padding: 8px;
  border: none;
  border-bottom: 2px solid #667eea;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  text-align: center;
  outline: none;
  background: transparent;
}

.wd-balance-hint {
  font-size: 12px;
  color: #999;
  text-align: center;
}

.wd-success-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
}

.wd-success-title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.wd-success-amount {
  font-size: 28px;
  font-weight: 700;
  color: #e74c3c;
  margin-bottom: 16px;
}


/* 佣金明细记录列表 */
.wd-record-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
}

.wd-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.wd-record-item:last-child {
  border-bottom: none;
}

.wd-record-item:hover {
  background: #fafafa;
}

.wd-record-left {
  flex: 1;
  min-width: 0;
}

.wd-record-type {
  font-size: 14px;
  color: #333;
  font-weight: 500;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wd-record-time {
  font-size: 12px;
  color: #999;
}

.wd-record-right {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 12px;
}

.wd-record-income {
  color: #10b981;
}

.wd-record-expense {
  color: #ef4444;
}


/* 提现流程 - 余额行 */
.wd-balance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 10px;
  margin-bottom: 14px;
}

.wd-balance-label {
  font-size: 14px;
  color: #666;
}

.wd-balance-value {
  font-size: 22px;
  font-weight: 800;
  color: #e74c3c;
}

/* 提现金额输入行 */
.wd-amount-row {
  margin-bottom: 12px;
}

.wd-amount-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.wd-amount-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.3s;
  outline: none;
}

.wd-amount-input:focus {
  border-color: #667eea;
}

/* 提示条 */
.wd-hint-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  color: #9a3412;
}

.wd-hint-icon {
  width: 20px;
  height: 20px;
  background: #f97316;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
}

/* 必填星号 */
.wd-required {
  color: #ef4444;
  font-weight: bold;
}

/* 确认提现金额展示 */
.wd-confirm-amount-label {
  font-size: 14px;
  color: #999;
  margin-bottom: 4px;
}

.wd-confirm-amount {
  font-size: 32px;
  font-weight: 800;
  color: #e74c3c;
  letter-spacing: 1px;
}


/* 全屏佣金明细 - 记录列表样式 */

.wd-fs-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 14px;
  margin-bottom: 20px;
  color: #fff;
}

.wd-fs-bal-label {
  font-size: 14px;
  opacity: .9;
}

.wd-fs-bal-value {
  font-size: 26px;
  font-weight: 800;
}

.wd-fs-section-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  padding-left: 2px;
}

.wd-fs-record-list {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.wd-fs-record-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f5f5f5;
}

.wd-fs-record-item:last-child {
  border-bottom: none;
}

.wd-fs-record-left {
  flex: 1;
  min-width: 0;
}

.wd-fs-record-type {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  margin-bottom: 3px;
}

.wd-fs-record-time {
  font-size: 12px;
  color: #999;
}

.wd-fs-record-amt {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 12px;
}

.wd-fs-income {
  color: #10b981;
}

.wd-fs-expense {
  color: #ef4444;
}

.wd-fs-footer {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #eee;
  flex-shrink: 0;
}

.wd-fs-withdraw-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s;
}

.wd-fs-withdraw-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}


/* 提现主页 - 金额输入区域 */
.wd-amount-section {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin: 12px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wd-amount-label {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.wd-amount-input-wrap {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 16px;
  border: 1px solid #e8e8e8;
}

.wd-currency {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-right: 8px;
}

.wd-amount-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 24px;
  font-weight: 600;
  color: #333;
  outline: none;
}

.wd-amount-input::placeholder {
  color: #ccc;
  font-weight: 400;
}


/* ========== 佣金提现弹窗样式 ========== */
.wd-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.wd-popup-title {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: 0.3px;
}

.wd-popup-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.wd-popup-close:hover {
  color: #333;
}

.wd-popup-body {
  padding: 22px 20px;
}

.wd-balance-card-mini {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 22px 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.wd-balance-card-mini::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.wd-balance-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wd-balance-value {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.wd-amount-input-group {
  margin-top: 8px;
}

.wd-input-label {
  display: block;
  font-size: 15px;
  color: #333;
  margin-bottom: 12px;
  font-weight: 600;
}

.wd-input-wrap {
  display: flex;
  align-items: center;
  background: #f5f7ff;
  border: 2px solid #e0e5f0;
  border-radius: 14px;
  padding: 16px 18px;
  transition: all 0.3s ease;
}

.wd-input-wrap:focus-within {
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.wd-yuan {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  margin-right: 12px;
}

.wd-pay-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
  outline: none;
}

.wd-pay-input::placeholder {
  color: #b8c0d0;
  font-weight: 400;
  font-size: 20px;
}

.wd-popup-footer {
  padding: 4px 20px 22px;
}

.wd-confirm-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
  letter-spacing: 0.5px;
}

.wd-confirm-btn:active {
  transform: scale(0.97);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wd-confirm-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ========== 意见反馈样式 ========== */
.fb-type-section,
.fb-content-section {
  margin-bottom: 20px;
}

.fb-section-label {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.fb-type-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fb-type-item {
  padding: 10px 16px;
  border: 2px solid #e8ecf4;
  border-radius: 12px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8f9ff;
  flex: 1;
  text-align: center;
  min-width: 90px;
}

.fb-type-item:active {
  transform: scale(0.95);
}

.fb-type-item.active {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
  color: #667eea;
  font-weight: 600;
}

.fb-textarea {
  width: 100%;
  min-height: 160px;
  padding: 14px 16px;
  border: 2px solid #e8ecf4;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  background: #f8f9ff;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.3s, background 0.3s;
  font-family: inherit;
}

.fb-textarea:focus {
  outline: none;
  border-color: #667eea;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.fb-textarea::placeholder {
  color: #b8c0d0;
}

.fb-char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 6px;
}

.fb-submit-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
  letter-spacing: 0.5px;
  margin-top: 10px;
}

.fb-submit-btn:active {
  transform: scale(0.97);
}

.fb-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.fb-back-btn {
  padding: 12px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.fb-back-btn:active {
  transform: scale(0.95);
}


/* ========== 人脸认证样式 ========== */
.wd-face-container {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
}

.wd-face-container video {
  width: 100%;
  display: block;
  transform: scaleX(-1); /* 镜像 */
}

.wd-face-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wd-face-guide {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  z-index: 2;
}

.wd-face-status {
  font-size: 14px;
  color: #666;
  padding: 8px 16px;
  border-radius: 20px;
  background: #f5f5f5;
  display: inline-block;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.wd-status-warning {
  background: #fff3cd;
  color: #856404;
}

.wd-status-success {
  background: #d4edda;
  color: #155724;
}

.wd-status-error {
  background: #f8d7da;
  color: #721c24;
}

/* ========== 人脸认证样式 ========== */
.wd-face-container {
  position: relative;
  width: 100%;
  max-width: 260px;
  margin: 0 auto 16px;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.wd-face-container video {
  width: 100%;
  display: block;
  transform: scaleX(-1);
}

.wd-face-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wd-face-silhouette {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 75%;
  height: 80%;
  pointer-events: none;
  z-index: 2;
}

.wd-face-silhouette svg {
  width: 100%;
  height: 100%;
}

.wd-face-silhouette .silhouette-path {
  fill: none;
  stroke: #667eea;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 6px rgba(102, 126, 234, 0.5));
}

.wd-face-silhouette .silhouette-mask {
  fill: rgba(0, 0, 0, 0.5);
}

.wd-face-tip {
  position: absolute;
  bottom: 10%;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  z-index: 3;
}

.wd-face-status {
  font-size: 13px;
  color: #666;
  padding: 8px 16px;
  border-radius: 20px;
  background: #f5f5f5;
  display: inline-block;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.wd-status-warning {
  background: #fff8e1;
  color: #f57c00;
  font-weight: 500;
}

.wd-status-success {
  background: #e8f5e9;
  color: #2e7d32;
  font-weight: 500;
}

.wd-status-error {
  background: #ffebee;
  color: #c62828;
  font-weight: 500;
}

.wd-face-manual {
  margin-top: 16px;
}

.wd-capture-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
  transition: all 0.2s;
}

.wd-capture-btn:active {
  transform: scale(0.95);
}

/* 银行卡滑动操作菜单 */
.bk-swipe-wrap { position: relative; margin-bottom: 10px; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.bk-card-inner { position: relative; z-index: 1; transition: transform 0.3s ease; }
.bk-swipe-actions { position: absolute; top: 0; right: 0; bottom: 0; width: 60px; display: flex; flex-direction: column; z-index: 0; }
.bk-act-btn { flex: 1; border: none; color: #fff; font-size: 11px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; }
.bk-act-unbind { background: #e74c3c; }
.bk-act-default { background: #3498db; }
.bk-default-tag { background: rgba(255,255,255,.2); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 6px; font-weight: 500; }

/* 拍照识别按钮 */
.wd-camera-btn { cursor: pointer; font-size: 16px; margin-left: 6px; vertical-align: middle; }
.wd-camera-btn:hover { opacity: .7; }
.wd-camera-area { position: relative; border-radius: 8px; overflow: hidden; background: #000; min-height: 180px; display: flex; align-items: center; justify-content: center; }
.wd-camera-guide { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: 12px; }

/* ============ 佣金宝页面 ============ */
.cbaby-page {
  width: 100%; height: 100%;
  background: #f4f6f9;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.cbaby-header {
  flex: none; min-height: 50px; display: flex; align-items: center; padding: 0 12px 0;
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  position: relative; z-index: 2;
}
/* cbaby-header 返回按钮使用统一 .back-icon 箭头，无需额外覆盖 */
.cbaby-header-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 18px; font-weight: 600; color: #1a1a2e;
  white-space: nowrap;
}

.cbaby-body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: 24px;
}

/* Hero 区域 */
.cbaby-hero {
  position: relative; padding: 32px 24px 28px; text-align: center;
  background: linear-gradient(145deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  overflow: hidden;
}
.cbaby-hero::before {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,215,0,.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(138,43,226,.1) 0%, transparent 50%);
  animation: cbaby-shimmer 8s ease-in-out infinite alternate;
}
@keyframes cbaby-shimmer {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, 3%) scale(1.05); }
}
.cbaby-hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(to top, #f4f6f9, transparent);
  z-index: 1;
}
.cbaby-hero-content { position: relative; z-index: 1; }
.cbaby-hero-label {
  font-size: 12px; color: rgba(255,255,255,.6); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 8px;
}
.cbaby-hero-amount {
  font-size: 42px; font-weight: 700; color: #fff;
  font-family: 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif;
  text-shadow: 0 2px 20px rgba(255,215,0,.2);
  line-height: 1.1; margin-bottom: 4px;
}
.cbaby-hero-amount .cbaby-currency {
  font-size: 20px; font-weight: 500; margin-right: 2px; vertical-align: top;
  position: relative; top: 6px;
}
.cbaby-hero-sub {
  font-size: 12px; color: rgba(255,255,255,.5); margin-top: 6px;
}
.cbaby-hero-sub span {
  color: #ffd700; font-weight: 600; font-size: 13px;
}

/* 金色装饰线 */
.cbaby-gold-line {
  width: 48px; height: 2px; margin: 12px auto 0;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  border-radius: 1px;
}

/* 统计卡片行 */
.cbaby-stats-row {
  display: flex; gap: 10px; padding: 0 16px; margin-top: -16px;
  position: relative; z-index: 2;
}
.cbaby-stat-card {
  flex: 1; background: #fff; border-radius: 14px;
  padding: 14px 10px; text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: transform .2s ease;
}
.cbaby-stat-card:active { transform: scale(0.97); }
.cbaby-stat-icon { font-size: 20px; margin-bottom: 6px; }
.cbaby-stat-value {
  font-size: 18px; font-weight: 700; color: #1a1a2e;
  font-family: 'DIN Alternate', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.2;
}
.cbaby-stat-label { font-size: 11px; color: #999; margin-top: 3px; }

/* 操作按钮区 */
.cbaby-actions {
  display: flex; gap: 12px; padding: 20px 16px 0;
}
.cbaby-action-btn {
  flex: 1; height: 46px; border: none; border-radius: 23px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .2s ease;
}
.cbaby-action-btn:active { transform: scale(0.97); }
.cbaby-action-primary {
  background: #fff; color: #333;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.cbaby-action-secondary {
  background: #f7f8fa; color: #555;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 1px 4px rgba(0,0,0,.03);
}

/* 旧记录列表样式已移除 */

/* 空状态 */
.cbaby-empty {
  text-align: center; padding: 48px 20px; color: #ccc;
}
.cbaby-empty-icon { font-size: 48px; margin-bottom: 12px; }
.cbaby-empty-text { font-size: 13px; }

/* 加载动画 */
.cbaby-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: cbaby-skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: 8px;
}
@keyframes cbaby-skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* 提现输入框闪烁光标 */
.wd-blink-cursor {
  caret-color: #333;
  animation: blink-caret 1s step-end infinite;
}
@keyframes blink-caret {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* 自动转入设置 */
.cbaby-auto-section {
  padding: 20px 16px 24px;
}
.cbaby-section-title {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cbaby-section-title span {
  font-size: 15px; font-weight: 600; color: #1a1a2e;
}

/* 开关 */
.cbaby-switch {
  position: relative; display: inline-block; width: 48px; height: 26px;
}
.cbaby-switch input { opacity: 0; width: 0; height: 0; }
.cbaby-switch-slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ddd; border-radius: 26px;
  transition: .3s;
}
.cbaby-switch-slider:before {
  position: absolute; content: ""; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%;
  transition: .3s; box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.cbaby-switch input:checked + .cbaby-switch-slider {
  background: linear-gradient(135deg, #667eea, #764ba2);
}
.cbaby-switch input:checked + .cbaby-switch-slider:before {
  transform: translateX(22px);
}

/* 设置卡片 */
.cbaby-auto-card {
  background: #fff; border-radius: 16px; padding: 4px 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  margin-bottom: 14px;
}
.cbaby-auto-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.04);
}
.cbaby-auto-row:last-child { border-bottom: none; }
.cbaby-auto-label {
  font-size: 14px; color: #555; flex: none; white-space: nowrap;
}
.cbaby-auto-select {
  border: 1px solid #e8e8e8; border-radius: 8px; padding: 6px 10px;
  font-size: 13px; color: #333; background: #fafafa;
  outline: none; min-width: 160px; text-align: right;
}
.cbaby-auto-input {
  border: 1px solid #e8e8e8; border-radius: 8px; padding: 7px 12px;
  font-size: 13px; color: #333; background: #fafafa;
  outline: none; width: 160px; text-align: right;
}
.cbaby-auto-input:focus { border-color: #667eea; background: #fff; }
.cbaby-auto-time { width: 120px; text-align: center; }
.cbaby-auto-amount-wrap {
  display: flex; align-items: center; gap: 4px;
}
.cbaby-auto-yuan { font-size: 14px; color: #999; }
.cbaby-auto-amount { width: 120px !important; }

/* 周期选择药丸 */
.cbaby-auto-pills {
  display: flex; gap: 8px;
}
.cbaby-pill {
  padding: 5px 14px; border-radius: 20px; border: 1px solid #e0e0e0;
  background: #fafafa; font-size: 12px; color: #666; cursor: pointer;
  transition: all .2s;
}
.cbaby-pill.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 8px rgba(102,126,234,.3);
}

/* 保存按钮 */
.cbaby-auto-save {
  width: 100%; height: 44px; border: none; border-radius: 22px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; box-shadow: 0 4px 15px rgba(102,126,234,.25);
  transition: all .2s;
}
.cbaby-auto-save:active { transform: scale(0.97); }

/* 研发中提示 */
.cbaby-dev-notice {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 32px; text-align: center;
}
.cbaby-dev-icon {
  font-size: 64px; margin-bottom: 24px;
  animation: cbaby-dev-bounce 2s ease-in-out infinite;
}
@keyframes cbaby-dev-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.cbaby-dev-title {
  font-size: 18px; font-weight: 600; color: #333; margin-bottom: 12px;
}
.cbaby-dev-text {
  font-size: 14px; color: #666; line-height: 1.6;
  max-width: 280px;
}

/* ============ 通讯录半屏面板 ============ */
.contacts-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.15); z-index: 10001;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.contacts-overlay.open { opacity: 1; pointer-events: auto; }

.contacts-panel {
  position: absolute;
  top: 10px; left: 10px; bottom: 80px;
  width: 60%; max-width: 250px;
  background: rgba(255,255,255,0.2);
  -webkit-backdrop-filter: blur(40px) saturate(2);
  backdrop-filter: blur(40px) saturate(2);
  z-index: 10002;
  transform: translateX(calc(-100% - 20px));
  transition: transform .35s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,.15), 0 2px 8px rgba(0,0,0,.08);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.4);
  overflow: hidden;
}
.contacts-panel.open { transform: translateX(0); }

/* === 通讯录头部：透明悬浮 === */
.contacts-blue-header {
  padding-bottom: 0;
}
.contacts-header {
  padding: 0 14px;
  height: 46px; min-height: 46px;
  padding-top: 8px;
  background: transparent;
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: none;
  padding-bottom: 8px;
}
.contacts-header h3 { font-size: 18px; font-weight: 700; color: #1f4068; letter-spacing: 0.5px; }
.contacts-header p { display: none; }
.contacts-head-actions { display: flex; gap: 6px; }
.contacts-head-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(31,64,104,0.08); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, transform .15s;
  color: #1f4068;
}
.contacts-head-btn:active { background: rgba(31,64,104,0.18); transform: scale(0.92); }
.contacts-head-btn svg { width: 17px; height: 17px; color: #1f4068; }

/* === 添加好友栏 === */
.contacts-add-bar {
  padding: 6px 14px 8px;
  background: transparent;
  border-bottom: none;
  display: flex; gap: 8px; align-items: center;
}
.contacts-add-input {
  flex: 1; height: 36px; border: 1px solid #e2e8f0;
  border-radius: 18px; padding: 0 14px; font-size: 13px;
  outline: none; background: rgba(255,255,255,0.8);
  transition: border-color .2s, box-shadow .2s;
}
.contacts-add-input:focus { border-color: #3b82f6; background: #fff; box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }
.contacts-add-btn {
  height: 36px; padding: 0 16px; border-radius: 18px;
  background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; font-size: 12px;
  font-weight: 500; white-space: nowrap; border: none;
  box-shadow: 0 2px 8px rgba(59,130,246,0.25);
}
.contacts-add-btn:active { opacity: .85; transform: scale(0.97); }

/* === 好友列表：卡片式 === */
.contacts-list {
  flex: 1; overflow-y: auto; padding: 0;
  -webkit-overflow-scrolling: touch;
  margin: 2px 1px 10px 10px;
}
.contacts-empty {
  text-align: center; padding: 60px 20px;
  color: #9aa4b2; font-size: 14px;
}
.contacts-empty-icon { font-size: 48px; margin-bottom: 12px; }

.contact-item {
  position: relative; display: flex; align-items: center; gap: 10px; text-align: left;
  background: none; box-shadow: none; padding: 0 15px 0 15px; width: 100%; border: none; border-radius: 0;
  border-bottom: 1px solid rgba(31, 64, 104, .06);   /* 列表分割线 */
  height: 48px;
  margin-bottom: 0;
  overflow: visible;
}
.contact-avatar {
  flex: none; width: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.contact-item:active { background: rgba(232,236,242,0.9); transform: scale(0.98); }

.contact-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #818cf8); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; flex-shrink: 0;
  overflow: hidden;
}
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; }

.contact-info { flex: 1; min-width: 0; }
.contact-name { font-size: 14px; font-weight: 600; color: #1a1a2e; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-sub { font-size: 11px; color: #9ca3af; margin-top: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.contact-action {
  padding: 6px 12px; border-radius: 14px;
  font-size: 12px; font-weight: 500;
  background: var(--blue-light); color: var(--blue);
}
.contact-action:active { opacity: .7; }

/* === 通讯录底部功能栏 === */
.contacts-bottom-bar {
  display: flex; align-items: stretch; justify-content: space-around;
  padding: 6px 8px;
  padding-bottom: 6px;
  background: transparent;
  border-top: 1px solid rgba(31,64,104,0.06);
}
.contacts-bottom-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0; flex: 1; cursor: pointer;
  border-radius: 10px; transition: background .15s;
  border: none; background: none;
}
.contacts-bottom-item:active { background: rgba(59,130,246,0.08); }
.contacts-bottom-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(59,130,246,0.08);
  display: flex; align-items: center; justify-content: center;
}
.contacts-bottom-icon svg { width: 16px; height: 16px; color: #3b82f6; }
.contacts-bottom-label { font-size: 10px; color: #6b7280; font-weight: 500; }

.contacts-close {
  position: absolute; top: 50px; right: 16px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.contacts-close:active { background: rgba(255,255,255,.35); }

/* 消息中心光标样式：手掌 */
#screenMsg, #screenMsg * { cursor: pointer !important; }

/* 通讯录好友申请区域 */
.contacts-section-title { padding: 12px 16px 6px; font-size: 13px; font-weight: 600; color: #6b7280; }
.contact-request-item { background: #fffbeb; }
.contact-request-actions { display: flex; gap: 6px; flex-shrink: 0; }
.contact-accept-btn { padding: 5px 12px; border-radius: 14px; border: none; background: #22c55e; color: #fff; font-size: 12px; cursor: pointer; }
.contact-reject-btn { padding: 5px 12px; border-radius: 14px; border: none; background: #e5e7eb; color: #6b7280; font-size: 12px; cursor: pointer; }
.contact-accept-btn:hover { background: #16a34a; }
.contact-reject-btn:hover { background: #d1d5db; }


/* ============ 好友申请悬浮弹窗 ============ */
.friend-req-overlay {
  position: fixed; inset: 0; z-index: 20000;
  background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
.friend-req-dialog {
  width: 280px; background: #fff; border-radius: 16px;
  padding: 24px 20px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  animation: scaleIn .25s cubic-bezier(.16, 1, .3, 1);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.friend-req-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: #3b82f6; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; overflow: hidden;
}

.friend-req-accept-btn {
  flex: 1; padding: 10px 0; border-radius: 20px;
  background: #3b82f6; color: #fff; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; transition: all .2s;
}
.friend-req-accept-btn:active { transform: scale(.95); background: #2563eb; }

.friend-req-reject-btn {
  flex: 1; padding: 10px 0; border-radius: 20px;
  background: #f3f4f6; color: #6b7280; font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; transition: all .2s;
}
.friend-req-reject-btn:active { transform: scale(.95); background: #e5e7eb; }



/* ============ 通讯录搜索样式 ============ */
.contacts-search-bar {
  display: flex; gap: 6px; padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.contacts-search-input {
  flex: 1; padding: 6px 10px; border-radius: 16px;
  border: 1px solid #e5e7eb; font-size: 12px; outline: none;
}
.contacts-search-input:focus { border-color: #3b82f6; }
.contacts-search-btn {
  padding: 6px 12px; border-radius: 16px;
  background: #3b82f6; color: #fff; font-size: 12px;
  border: none; cursor: pointer;
}
.contacts-search-btn:active { background: #2563eb; }

.contacts-search-results {
  max-height: 200px; overflow-y: auto;
  border-bottom: 1px solid #f0f0f0;
}
.search-results-title {
  padding: 8px 16px; font-size: 12px; color: #6b7280;
  background: #f9fafb;
}
.search-result-item {
  display: flex; align-items: center; padding: 10px 16px;
  border-bottom: 1px solid #f5f5f5;
}
.search-result-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: #3b82f6; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; overflow: hidden; flex-shrink: 0;
}
.search-result-info {
  flex: 1; margin-left: 12px; min-width: 0;
}
.search-result-name {
  font-size: 14px; font-weight: 500; color: #111;
}
.search-result-uid, .search-result-phone {
  font-size: 11px; color: #9ca3af; margin-top: 2px;
}
.search-add-btn {
  padding: 6px 12px; border-radius: 14px;
  background: #3b82f6; color: #fff; font-size: 12px;
  border: none; cursor: pointer; flex-shrink: 0;
}
.search-add-btn:active { background: #2563eb; }
.search-empty {
  padding: 20px; text-align: center; color: #9ca3af; font-size: 13px;
}

/* 隐藏聊天按钮 */
.contact-action { display: none !important; }

/* ============================================================
   全局统一边距规范：输入框 / 列表条目 左右外边距 15px
   ============================================================ */

/* 输入框通用 */
.input-item {
  height: 56px;
  line-height: 56px;
  margin-left: 15px;
  margin-right: 15px;
}

/* 普通列表行通用 */
.list-item {
  height: 56px;
  line-height: 56px;
  margin-left: 15px;
  margin-right: 15px;
}

/* 好友列表单独高度，边距不变 */
.list-item-friend {
  height: 48px;
  line-height: 48px;
  margin-left: 15px;
  margin-right: 15px;
}


/* --- 团队列表容器：左右 15px --- */
.tm-list-wrap,
#screenTeam .tm-scroll {
  padding-left: 15px;
  padding-right: 15px;
}

/* --- 好友/通讯录列表容器：左右 15px --- */
.contacts-list {
  margin-left: 15px;
  margin-right: 15px;
  margin-top: 6px;
  margin-bottom: 10px;
}
.contact-item {
  height: 48px;
}

/* --- 佣金明细列表容器：左右 15px --- */
.wd-record-list {
  margin-left: 15px;
  margin-right: 15px;
}
.wd-record-item {
  height: 56px;
  padding: 10px 14px;
}

/* --- 新增用户表单输入框：左右 15px --- */
.add-card {
  margin-left: 15px;
  margin-right: 15px;
}
.add-input {
  height: 56px;
  box-sizing: border-box;
}

/* --- 佣金/积分全屏明细列表 --- */
.cdt-list-wrap {
  margin-left: 15px;
  margin-right: 15px;
}

/* ============================================================
 * 移动端专项性能优化
 * - 消除 300ms 点击延迟
 * - 硬件加速渲染动画元素
 * - 降级/禁用高开销动画（模糊、呼吸、大尺寸缩放）
 * - 列表容器开启 contain 隔离重绘
 * ============================================================ */

/* 所有可交互元素：消除 300ms 触摸延迟 */
button, .pressable, .tab-btn, .ok-btn, .kd-btn, .fs-btn,
.msg-item, .team-card, .mi-fade, a, [onclick] {
  touch-action: manipulation;
}

/* 动画元素统一开启 GPU 合成层 */
.screen-in, .screen-out, .welfare-in, .welfare-out,
.ov-zoom-in, .ov-zoom-out, .tm-slide-up,
.overlay-layer, .overlay-mask {
  will-change: transform, opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* 列表容器：contain 隔离，子元素变化不触发全局重排 */
#teamList, #msgList, .msg-contacts-list, .rec-list {
  contain: layout style;
}

/* ===== 骨架屏加载动画 ===== */
@keyframes skShimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}
.sk-line {
  height: 14px; border-radius: 7px; margin-bottom: 10px;
  background: linear-gradient(90deg, #eef2f7 0px, #e0e7f0 100px, #eef2f7 200px);
  background-size: 200px 100%;
  animation: skShimmer 1.2s ease-in-out infinite;
}
.sk-line.w60 { width: 60%; }
.sk-line.w80 { width: 80%; }
.sk-line.w40 { width: 40%; }
.sk-circle {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(90deg, #eef2f7 0px, #e0e7f0 100px, #eef2f7 200px);
  background-size: 200px 100%;
  animation: skShimmer 1.2s ease-in-out infinite;
}
.sk-card {
  background: #fff; border-radius: 0; padding: 14px 16px; margin-bottom: 0;
  box-shadow: none; border-bottom: 0.5px solid #c8c7cc;
}

/* ===== 全局平滑滚动 ===== */
.phone { -webkit-overflow-scrolling: touch; }
.tab-body { -webkit-overflow-scrolling: touch; scroll-behavior: smooth; }
.home-scroll { -webkit-overflow-scrolling: touch; /* 禁止 smooth，否则 Tab 切换恢复滚动位置会 visibly 回弹 */ }

/* ★ 全局封锁 overscroll：所有主页面滚动容器禁止穿透到文档根，防止下拉触发浏览器返回导航 */
.tab-body, .home-scroll, .sp-body, .pt-body, .bk-body, .ep-body, .st-body,
.cust-body, .wff-list, .wd-body, .team-body, .fs-scroll, .sub-body, .sheet {
  overscroll-behavior: none;
}

/* ===== 移动端（触摸屏设备）动画降级 ===== */
@media (hover: none) and (pointer: coarse) {
  /* 品牌通栏：关闭全部装饰动画（阳光/海浪/气泡），节省 GPU */
  .bb-sun, .bb-wave, .bb-bubble {
    animation: none !important;
    display: none;
  }

  /* 福利按钮：关闭呼吸灯 + 激光滚动 + 图标浮动 */
  .wf-bar {
    animation: none !important;
    will-change: auto;
  }
  .wf-bar::before {
    animation: none !important;
    display: none;
  }
  .wf-bar-txt {
    animation: none !important;
  }

  /* 页面切换动画：快速淡入淡出 */
  .screen.screen-in  { animation-duration: .14s; animation-timing-function: ease-out; }
  .screen.screen-out { animation-duration: .1s; animation-timing-function: ease-in; }
  .screen.welfare-in  { animation-duration: .14s; }
  .screen.welfare-out { animation-duration: .1s; }

  /* 弹窗/覆盖层：快速淡入淡出 */
  .ov-zoom-in  { animation: ovFadeIn .14s ease-out both !important; }
  .ov-zoom-out { animation: ovFadeOut .1s ease-in both !important; }

  /* zoomExpand（福利子页放大入场）降级为淡入 */
  .screen.zoom-in { animation: ovFadeIn .2s ease-out both !important; }

  /* 去掉大尺寸 box-shadow，减少合成开销 */
  .phone { box-shadow: none; }
  .wf-card, .mi-fade, .team-card { box-shadow: 0 1px 4px rgba(0,0,0,.06); }

  /* 头像在线/离线切换：纯 CSS filter，不重新加载图片 */
  .mine-av-wrap.offline .mine-av,
  .mine-av-wrap.offline .mine-av img {
    filter: grayscale(100%);
    opacity: 0.6;
  }

  /* 减少 will-change 常驻占用（移动端 GPU 内存有限） */
  .bb-sun, .bb-wave { will-change: auto; }
}

/* 移动端降级专用关键帧 */
@keyframes ovFadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes ovFadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ========== 小程序 web-view 域名复制弹窗 ========== */
.miniprog-copy-mask {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 99998; display: flex; align-items: center; justify-content: center;
  animation: mcFadeIn .25s ease;
}
@keyframes mcFadeIn { from { opacity: 0; } to { opacity: 1; } }

.miniprog-copy-box {
  width: 85%; max-width: 340px; background: #fff; border-radius: 18px;
  padding: 30px 24px 22px; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  animation: mcSlideUp .3s ease;
}
@keyframes mcSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.mc-icon { font-size: 42px; margin-bottom: 10px; }
.mc-title { font-size: 18px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.mc-desc { font-size: 13px; color: #888; line-height: 1.6; margin-bottom: 16px; }

.mc-url-box {
  background: #f0f4ff; border: 1px solid #d4dfef; border-radius: 10px;
  padding: 12px 16px; font-size: 15px; color: #3b82f6; font-weight: 500;
  letter-spacing: 0.5px; word-break: break-all; margin-bottom: 20px;
  user-select: all; -webkit-user-select: all;
}

.mc-btns { display: flex; gap: 10px; }
.mc-btn {
  flex: 1; height: 44px; border: none; border-radius: 22px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.mc-cancel { background: #f3f4f6; color: #6b7280; }
.mc-cancel:active { background: #e5e7eb; }
.mc-confirm { background: #3b82f6; color: #fff; }
.mc-confirm:active { background: #2563eb; }

.mc-never { font-size: 12px; color: #aaa; text-decoration: underline; cursor: pointer; margin-top: 12px; }
.mc-never:active { color: #888; }

/* ====== 商品详情页 ====== */
#screenProductDetail { background: #f5f6f8; }
.pd-header { background: #fff; border-bottom: 1px solid #eee; }
.pd-body { padding: 0; padding-bottom: 80px; overflow-y: auto; }
.pd-carousel {
  position: relative; width: 100%; height: 260px; overflow: hidden; background: #e8eaee;
}
.pd-carousel-track {
  display: flex; height: 100%; transition: transform 0.3s ease;
}
.pd-carousel-track img {
  flex: none; width: 100%; height: 100%; object-fit: cover;
}
.pd-carousel-dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.pd-carousel-dots .dot {
  width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5);
  transition: background 0.2s;
}
.pd-carousel-dots .dot.on { background: #fff; }
.pd-info {
  background: #fff; margin-top: 10px; padding: 16px; border-radius: 10px;
  margin-left: 12px; margin-right: 12px;
}
.pd-price-row {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px;
}
.pd-price { font-size: 26px; font-weight: 800; color: #e53e3e; }
.pd-orig-price { font-size: 14px; color: #aaa; text-decoration: line-through; }
.pd-discount-tag {
  font-size: 12px; color: #fff; background: #e53e3e; padding: 2px 8px;
  border-radius: 4px; font-weight: 600;
}
.pd-discount-tag:empty { display: none; }
.pd-name {
  font-size: 18px; font-weight: 700; color: #1a202c; margin: 0 0 14px; line-height: 1.4;
}
.pd-meta-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px;
}
.pd-meta-item {
  background: #f7f8fa; padding: 10px 12px; border-radius: 8px;
}
.pd-meta-label { display: block; font-size: 12px; color: #888; margin-bottom: 4px; }
.pd-meta-val { display: block; font-size: 16px; font-weight: 600; color: #333; }
.pd-desc {
  font-size: 14px; color: #666; line-height: 1.7; padding-top: 14px;
  border-top: 1px solid #f0f0f0; white-space: pre-wrap;
}
.pd-desc:empty { display: none; }
.pd-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; padding: 10px 16px; padding-bottom: 10px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06); z-index: 100;
}
.pd-join-btn {
  width: 100%; height: 48px; border: none; border-radius: 24px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 2px;
  cursor: pointer;
}
.pd-join-btn:active { opacity: 0.85; }

/* ============================================================
 * 广告商品全屏弹窗（秒杀 + 推荐商品）
 * ============================================================ */
.ad-popup-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  animation: adPopupFadeIn 0.25s ease;
}
@keyframes adPopupFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ad-popup-box {
  width: 100%; height: 100%;
  background: #fff;
  display: flex; flex-direction: column;
  animation: adPopupSlideUp 0.3s ease;
}
@keyframes adPopupSlideUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.ad-popup-header {
  display: flex; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.ad-popup-back {
  width: 36px; height: 36px; padding: 0;
  background: rgba(255,255,255,0.8); border-radius: 50%; border: none; outline: none;
  cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  -webkit-tap-highlight-color: transparent;
}
.ad-popup-back::after {
  content: '';
  display: block; width: 10px; height: 10px;
  border-left: 2.5px solid #333; border-bottom: 2.5px solid #333;
  transform: rotate(45deg);
  margin-left: 3px;
}
.ad-popup-back:active { transform: scale(.88); opacity: .45; }
.ad-popup-title {
  flex: 1; text-align: center;
  font-size: 16px; font-weight: 600; color: #333;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ad-popup-spacer { width: 36px; flex-shrink: 0; }

.ad-popup-body {
  flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ad-popup-body::-webkit-scrollbar {
  display: none;
}

.ad-popup-images {
  width: 100%;
}
.ad-popup-img {
  display: block;
  width: 100%;
  height: auto;
}

/* === 海报英雄区：深色高级底板 === */
.ad-popup-product-hero {
  margin: 12px 16px;
  padding: 28px 24px 22px;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-radius: 16px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ad-popup-product-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(234,179,8,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.ad-hero-badge {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251,191,36,0.12);
  border: 1px solid rgba(251,191,36,0.25);
  padding: 5px 16px;
  border-radius: 24px;
  margin-bottom: 14px;
  letter-spacing: 1px;
}
.ad-hero-title {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 18px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}
.ad-hero-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.ad-hero-price-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.ad-hero-price-num {
  font-size: 26px;
  font-weight: 800;
  color: #fbbf24;
  letter-spacing: 0.5px;
}

/* === 核心条件卡片 === */
.ad-popup-info-card {
  margin: 0 16px 14px;
  background: #fffbeb;
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #fde68a;
}
.ad-ic-title {
  font-size: 15px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #fde68a;
}
.ad-ic-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.ad-ic-row + .ad-ic-row {
  border-top: 1px solid rgba(0,0,0,0.04);
}
.ad-ic-label {
  font-size: 14px;
  color: #78716c;
}
.ad-ic-value {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}
.ad-ic-hl {
  font-size: 20px;
  font-weight: 800;
  color: #dc2626;
}
.ad-ic-note {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(220,38,38,0.05);
  border-radius: 8px;
  font-size: 12px;
  color: #991b1b;
  line-height: 1.5;
}

/* === 积分达成测算卡片（特殊底色，突出显眼） === */
.ad-popup-calc-card {
  margin: 0 16px 14px;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid #c7d2fe;
}
.ad-cc-title {
  font-size: 16px;
  font-weight: 700;
  color: #312e81;
  margin-bottom: 12px;
}
.ad-cc-note {
  padding: 14px 16px;
  background: rgba(234,179,8,0.15);
  border: 1.5px solid rgba(234,179,8,0.4);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #92400e;
  line-height: 1.6;
  margin-bottom: 16px;
}
.ad-cc-sub {
  font-size: 13px;
  font-weight: 600;
  color: #4338ca;
  margin-bottom: 8px;
}
.ad-cc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ad-cc-table thead th {
  text-align: left;
  padding: 9px 10px;
  font-weight: 600;
  color: #4338ca;
  background: rgba(99,102,241,0.12);
  font-size: 13px;
  border-radius: 6px;
}
.ad-cc-table thead th:last-child {
  text-align: right;
}
.ad-cc-table tbody td {
  padding: 11px 10px;
  color: #333;
  border-bottom: 1px solid rgba(99,102,241,0.1);
}
.ad-cc-table tbody tr:last-child td {
  border-bottom: none;
}
.ad-cc-val {
  font-weight: 800;
  color: #4f46e5;
  font-size: 16px;
  text-align: right;
}
.ad-cc-total {
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(79,70,229,0.08);
  border-radius: 8px;
  font-size: 14px;
  color: #312e81;
  text-align: center;
}
.ad-cc-total b {
  font-size: 18px;
  font-weight: 800;
  color: #4f46e5;
}

/* === 通用模块标题 === */
.ad-sec-title {
  font-size: 16px;
  font-weight: 700;
  color: #1a1a1a;
  padding: 20px 20px 10px;
}

/* === 活动规则卡片 === */
.ad-popup-rules {
  margin: 0 16px 20px;
  background: #f8fafc;
  border-radius: 14px;
  padding: 0 20px 16px;
}
.ad-rules-list {
  padding: 0;
}
.ad-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  font-size: 15px;
  color: #333;
  line-height: 1.8;
}
.ad-rule-item + .ad-rule-item {
  border-top: 1px solid #eef0f2;
}
.ad-rule-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  background: #4f46e5;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}
.ad-rule-text {
  flex: 1;
}

/* === 底部报名按钮 === */
.ad-popup-bottom {
  flex-shrink: 0;
  padding: 14px 20px;
  padding-bottom: 14px;
  border-top: 1px solid #f0f0f0;
  background: #fff;
}
.ad-popup-join {
  width: 100%; height: 52px; border: none; border-radius: 26px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 3px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(239,68,68,0.3);
  transition: opacity 0.3s, background 0.3s;
}
.ad-popup-join.ad-join-locked {
  background: #d1d5db;
  color: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.ad-popup-join:active { opacity: 0.85; transform: scale(0.98); }
.ad-popup-join.ad-join-locked:active { opacity: 1; transform: none; }

/* 定制商品表单弹窗滚动条隐藏 */
.cp-form-scroll {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.cp-form-scroll::-webkit-scrollbar {
  display: none !important;
}

/* ============ 消息中心 ============ */
/* 消息页导航栏右上角 */
.msg-head-btns {
  display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0;
}
.msg-head-btns .msg-contacts-btn {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  background: none; color: #5fa0f6; border: none; outline: none; cursor: pointer; transition: all .2s; padding: 0; flex-shrink: 0;
}
.msg-head-btns .msg-contacts-btn:hover { opacity: .6; }
.msg-head-btns .msg-contacts-btn:active { transform: scale(.88); }

/* 消息页 - 胶囊式列表 */
#screenMessage .tab-body { padding: 0; margin: 0; background: #e8ecf1; height: 0; }
#screenMessage .tab-body::-webkit-scrollbar { display: none; }
.conver-list { display: flex; flex-direction: column; background: transparent; gap: 6px; padding: 8px 13px 0; margin-left: 15px; margin-right: 15px; }
.msg-row { display: flex; align-items: center; gap: 10px; }
.cv-av-tile { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: transparent; }
.c-av { width: 44px; height: 44px; min-width: 44px; border-radius: 50%; flex: none; flex-shrink: 0; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; background-size: cover; background-position: center; transition: opacity .3s ease; }
.c-av.cs { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.c-av.sys { background: linear-gradient(135deg, #fa709a, #fee140); }
.c-av.team { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.c-av.act { background: linear-gradient(135deg, #fa709a, #fee140); }

/* 胶囊 */
.conver-item { position: relative; display: flex; align-items: center; text-align: left; background: rgba(255,255,255,.95); padding: 0 15px; flex: 1; min-width: 0; border: none; border-radius: 20px; margin: 0; overflow: visible; height: 56px; box-shadow: 0 2px 8px rgba(31,64,104,.08); }
.conver-item:active { background: rgba(255,255,255,.4); }

/* 文本区域 */
.cv-tx-tile { flex: 1; position: relative; padding: 0; display: flex; flex-direction: column; gap: 2px; overflow: hidden; min-width: 0; }
.cv-tx-tile b { font-size: 15px; color: #191919; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 400; line-height: 1.35; padding-right: 50px; }
.cv-tx-tile span { font-size: 13px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.35; }
.cv-tx-tile em { position: absolute; right: 0; top: 2px; font-style: normal; font-size: 12px; color: #b2b2b2; font-weight: 400; }

/* 未读 */
.conver-item.unread .cv-tx-tile b { font-weight: 600; color: #000; }
.conver-item.unread .cv-tx-tile span { color: #333; }

/* 角标 */
.c-badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #ff3b30; color: #fff; font-size: 12px; font-weight: 500; font-style: normal; display: flex; align-items: center; justify-content: center; z-index: 2; }

/* 消息详情悬浮弹窗 */
.md-float { width: 100%; max-height: 68vh; background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border-radius: 18px; border: 1px solid rgba(255,255,255,.95); box-shadow: 0 24px 60px rgba(15,35,60,.28); display: flex; flex-direction: column; overflow: hidden; margin-top: calc(5px - 11vh); }
.md-float.md-float-center { margin-top: 0; max-height: 70vh; width: 100%; }
.md-chat-empty { text-align: center; padding: 60px 0 40px; color: #aab6c4; font-size: 13px; letter-spacing: .3px; }
.md-float .md-header { justify-content: space-between; height: 48px; background: transparent; }
.md-header { flex: none; height: 56px; background: #fff; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid rgba(31,64,104,.08); position: relative; }
.md-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(31,64,104,.06); border: none; font-size: 20px; color: #5a6b82; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.md-close:hover { background: rgba(31,64,104,.12); }
.md-title { font-size: 16px; font-weight: 700; color: var(--text); }
.md-body { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.md-row { background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 2px 8px rgba(31,64,104,.06); display: flex; flex-direction: column; gap: 4px; }
.md-row.unread { background: #fff6f6; border-left: 3px solid var(--red); }
.md-row b { font-size: 13.5px; color: var(--text); font-weight: 600; line-height: 1.5; }
.md-row span { font-size: 11px; color: #aab6c4; }

.msg-total { text-align: center; font-size: 11.5px; color: #8b98a9; padding: 14px 0 4px; }

/* 消息页骨架屏 */
#msgSkeleton { background: #fff; }
#msgSkeleton .sk-card { display: flex; align-items: center; gap: 12px; }
#msgSkeleton .sk-circle { width: 50px; height: 50px; flex-shrink: 0; margin-bottom: 0; }
#msgSkeleton .sk-line { margin-bottom: 4px; }

/* 底部导航消息角标 */
.tab-badge {
  position: absolute !important; top: 2px !important; right: calc(50% - 16px) !important; min-width: 16px; height: 16px;
  padding: 0 3px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px;
  font-style: normal; display: flex; align-items: center; justify-content: center; z-index: 2;
}

/* 未登录提示条 */
.not-logged-bar {
  display: none;
  text-align: center; padding: 10px 16px; margin: 8px;
  border-radius: 10px; background: rgba(255,107,107,0.08);
  color: #ee5a5a; font-size: 13px;
}

/* ===== 消息中心条目折叠门式左滑（删除/不显示）：与聊天会话同款像素规范 ===== */
.msg-swipe-wrap { position: relative; flex: 1; min-width: 0; display: flex; overflow: hidden; }
.msg-swipe-inner { position: relative; z-index: 1; flex: 1; min-width: 0; display: flex; align-items: stretch; touch-action: pan-y; will-change: transform; }
.msg-swipe-inner .conver-item { width: 100%; }
.msg-swipe-actions { position: absolute; top: 0; right: 20px; bottom: 0; display: flex; align-items: center; z-index: 0; }
.msg-swipe-act { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; cursor: pointer; opacity: 0; flex: none; -webkit-user-select: none; user-select: none; }
.msg-swipe-act.hide { background: #07c160; margin-right: 15px; transform: translateX(63px); }
.msg-swipe-act.del { background: #fa5151; }

/* ===== 返回按钮/头部定位：固定像素 ===== */
.page-back-btn,
.sp-back-btn {
  top: 7px !important;
}
.page-head,
.team-head,
.pt-header,
.bk-header,
.ep-header,
.st-header,
.sub-header,
.fav-header,
.wk-header,
.pe-header,
.cbaby-header,
.sp-header,
.cust-header {
  padding-top: 0 !important;
}
.tm-chat-head {
  padding-top: 0 !important;
}
.av-top {
  padding-top: 50px !important;
}
