*{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
html,body{height:100%;overflow:hidden;}
body{font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;background:#e9e9e9;color:#191919;
  position:fixed;left:0;top:0;width:100%;touch-action:manipulation;overscroll-behavior:none;}
.hide{display:none !important;}
.phone{width:100%;max-width:390px;height:100vh;height:100dvh;max-height:780px;margin:0 auto;
  background:#ededed;display:flex;flex-direction:column;position:relative;overflow:hidden;overscroll-behavior:none;}
@media (min-width:520px){
  .phone{margin-top:24px;height:min(780px,calc(100vh - 24px));height:min(780px,calc(100dvh - 24px));border-radius:26px;box-shadow:0 8px 40px rgba(0,0,0,.22);}
}
.auth{padding:54px 22px 20px;flex:1;overflow-y:auto;}
.logo{font-size:60px;text-align:center;line-height:1;}
.slogan{text-align:center;color:#7a7a7a;font-size:15px;margin:12px 0 26px;}
.card{background:#fff;border-radius:14px;padding:22px 20px 24px;box-shadow:0 2px 14px rgba(0,0,0,.06);}
.card h3{font-size:18px;text-align:center;margin-bottom:18px;}
.field{margin-bottom:14px;}
.field label{display:block;font-size:13px;color:#7a7a7a;margin-bottom:7px;}
.field input{width:100%;height:44px;border:1px solid #e5e5e5;border-radius:8px;padding:0 12px;
  font-size:15px;background:#fafafa;outline:none;}
.field input:focus{border-color:#07c160;background:#fff;}
.tip{min-height:18px;font-size:13px;color:#fa5151;margin-bottom:8px;}
.tip.ok{color:#07c160;}
.btn-main{width:100%;height:46px;border:none;border-radius:8px;background:#07c160;color:#fff;
  font-size:16px;font-weight:600;cursor:pointer;}
.btn-main:active{background:#06ad56;}
.btn-link{width:100%;height:40px;border:none;background:transparent;color:#576b95;font-size:14px;cursor:pointer;}
.app{flex:1;display:flex;flex-direction:column;overflow:hidden;}
.topbar{height:46px;display:flex;align-items:center;justify-content:center;position:relative;
  background:#ededed;border-bottom:1px solid #dcdcdc;flex:none;}
.topbar .title{font-size:17px;font-weight:600;}
.topbar .right{position:absolute;right:12px;font-size:19px;color:#191919;}
.body{flex:1;overflow:hidden;min-height:0;}
.page{padding:0;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.empty{color:#9a9a9a;font-size:14px;text-align:center;padding:60px 20px;}
.tabbar{position:absolute;left:0;bottom:0;width:100%;height:56px;display:flex;
  background:#f7f7f7;border-top:1px solid #dcdcdc;}
.tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;font-size:12px;color:#666;cursor:pointer;}
.tab .ico{font-size:19px;line-height:1;}
.tab.active{color:#07c160;}
#inputBox {
  display: none;
}
.app{
  flex:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-height:0;
}
.body{
  flex:1;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  min-height:0;
}
#pageChat{
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height:0;
}
#groupListBox{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 56px;
  box-sizing: border-box;
}
#chatWrap {
  flex: 1;
  display: none;
  flex-direction: column;
  overflow: hidden;
  min-height:0;
}
#msgBox {
  flex: 1;
  overflow-y: auto;
  min-height:0;
  -webkit-overflow-scrolling:touch;
}
#inputBox {
  display: flex;
  gap: 8px;
  padding: 8px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
  box-sizing: border-box;
  flex-shrink: 0;
}
#pageMe{
  background:#f4f5f7;
  display:block;
  flex:1;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding-bottom:70px;
}
.me-profile-card{
  background:#ffffff;
  margin:12px;
  padding:16px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.me-profile-left{
  display:flex;
  align-items:center;
  gap:14px;
}
#meAvatar{
  width:58px;
  height:58px;
  border-radius:50%;
  font-size:22px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.me-info-wrap{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.me-tag{
  background:#f0f1f3;
  font-size:12px;
  color:#666;
  padding:2px 8px;
  border-radius:10px;
  display:inline-block;
  width:fit-content;
}
.me-username{
  font-size:16px;
  font-weight:bold;
  color:#222;
}
.me-id-text{
  font-size:13px;
  color:#777;
}
.me-qr-box{
  width:44px;
  height:44px;
  border:1px solid #ddd;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:11px;
  color:#888;
  background:#fafafa;
}
.me-menu-wrap{
  background:#fff;
  margin:0 12px;
  border-radius:12px;
  overflow:hidden;
}
.me-menu-row{
  display:flex;
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid #f1f1f1;
  gap:12px;
}
.me-menu-row:last-child{
  border-bottom:none;
}
.me-icon{
  width:28px;
  height:28px;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
}
.icon-score{
  background:#fff7e6;
  color:#faad14;
}
.icon-active{
  background:#e6f4ff;
  color:#1677ff;
}
.icon-pwd{
  background:#fff1f0;
  color:#f5222d;
}
.icon-setting{
  background:#e6fffb;
  color:#13c2c2;
}
.me-menu-label{
  flex:1;
  font-size:15px;
  color:#333;
}
.me-arrow{
  color:#bbbbbb;
  font-size:18px;
}
/*====积分详情css====*/
#pageScore{
  background:#f4f5f7;
  display:block;
  flex:1;
  min-height:0;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:12px;
  padding-bottom:70px;
}
.score-card{
  background:#ff9500;
  border-radius:12px;
  padding:20px 16px;
  color:#fff;
}
.score-current{
  margin-bottom:16px;
}
.score-label{
  font-size:14px;
  opacity:0.9;
}
.score-num{
  font-size:32px;
  font-weight:bold;
  margin-top:4px;
}
.score-row-two{
  display:flex;
  justify-content:space-between;
}
.score-sub-label{
  font-size:13px;
  opacity:0.85;
}
.score-sub-num{
  font-size:18px;
  font-weight:bold;
  margin-top:2px;
}
.score-tip-text{
  font-size:12px;
  color:#888;
  margin:10px 4px;
}
.score-tab-wrap{
  display:flex;
  background:#fff;
  border-radius:8px;
  overflow:hidden;
  margin-bottom:10px;
}
.score-tab{
  flex:1;
  text-align:center;
  padding:10px 0;
  font-size:15px;
  color:#666;
  cursor:pointer;
}
.score-tab.active{
  background:#ff9500;
  color:#fff;
}
.score-record-item{
  background:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-radius:8px;
  margin-bottom:8px;
}
.record-user{
  font-size:13px;
  font-weight:600;
  color:#333;
  margin-bottom:3px;
}
.record-desc{
  font-size:15px;
  color:#222;
}
.record-time{
  font-size:12px;
  color:#999;
  margin-top:3px;
}
.text-income{
  color:#f5222d;
}
.text-expend{
  color:#07c160;
}
.score-empty{
  text-align:center;
  color:#999;
  font-size:14px;
  padding:40px 0;
}
.score-detail-card{background:#fff;border-radius:12px;padding:14px 14px 8px;margin-bottom:12px;}
.score-detail-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;}
.score-detail-title{font-size:17px;font-weight:600;color:#222;}
.score-refresh{background:none;border:none;color:#1677ff;font-size:14px;cursor:pointer;padding:4px 6px;}
.score-mode-wrap.score-mode-main{display:none !important;}
.score-detail-card .score-tip-text{background:#fffbe6;border:1px solid #ffe58f;border-radius:8px;padding:10px 12px;color:#ad6800;font-size:13px;margin:0 0 12px;}

.active-card{background:linear-gradient(135deg,#ff7a45,#f5222d);border-radius:14px;padding:20px 16px;color:#fff;margin-bottom:14px;}
.active-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
.active-date{background:rgba(255,255,255,.18);border-radius:16px;padding:6px 14px;font-size:14px;}
.active-refresh{background:rgba(255,255,255,.18);border:none;color:#fff;width:32px;height:32px;border-radius:50%;font-size:16px;cursor:pointer;}
.active-total{font-size:38px;font-weight:bold;text-align:center;}
.active-total-label{text-align:center;font-size:14px;opacity:.9;margin-top:6px;}
.active-count-pill{text-align:center;background:rgba(255,255,255,.18);border-radius:16px;padding:7px 14px;margin:14px auto 10px;width:fit-content;font-size:14px;}
.active-update{text-align:center;font-size:12px;opacity:.8;}
.active-sub-card{background:#fff;border-radius:14px;padding:16px;margin-bottom:14px;}
.active-sub-head{display:flex;align-items:center;gap:10px;}
.active-sub-icon{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;}
.active-sub-icon.income{background:#fff1f0;}
.active-sub-icon.expend{background:#e6fffb;}
.active-sub-title{font-size:17px;font-weight:600;color:#222;flex:1;}
.active-tag{font-size:12px;padding:3px 10px;border-radius:12px;}
.active-tag.income{background:#fff1f0;color:#f5222d;}
.active-tag.expend{background:#e6fffb;color:#07c160;}
.active-sub-desc{font-size:12px;color:#999;margin:8px 0 14px 52px;}
.active-sub-stats{display:flex;border-top:1px solid #f2f2f2;padding-top:14px;}
.active-stat{flex:1;text-align:center;}
.active-sub-num{font-size:24px;font-weight:bold;}
.active-sub-num.income{color:#f5222d;}
.active-sub-num.expend{color:#07c160;}
.active-sub-label{font-size:12px;color:#999;margin-top:4px;}
.score-mode-wrap{display:flex;background:#fff;border-radius:8px;overflow:hidden;margin-bottom:10px;}
.score-mode{flex:1;text-align:center;padding:10px 0;font-size:15px;color:#666;cursor:pointer;}
.score-mode.active{background:#ff9500;color:#fff;}
.red-log-bar{display:flex;align-items:center;gap:10px;margin-bottom:10px;}
.red-log-user{flex:1;max-width:150px;padding:8px 10px;border:1px solid #e5e5e5;border-radius:8px;font-size:14px;background:#fff;}
.red-log-date{flex:1;max-width:150px;padding:8px 10px;border:1px solid #e5e5e5;border-radius:8px;font-size:14px;background:#fff;}
.red-log-summary{flex:1;text-align:right;font-size:13px;color:#666;}
.red-log-item .record-left{min-width:0;}
.plus-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 0;
  border-radius: 8px;
  cursor: pointer;
}
.plus-item:active {
  background: #ececec;
}
.plus-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.plus-label {
  font-size: 12px;
  color: #666;
}
/*====红包样式====*/
.red-pack-bubble{
  position:relative;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:12px;
  width:236px;
  min-height:86px;
  padding:12px 14px 26px;
  border-radius:10px;
  background:linear-gradient(135deg,#d4d7db,#a9adb3);
  color:#555;
  cursor:pointer;
  text-align:left;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
  transition:none;
  overflow:hidden;
}
.rp-icon{
  width:44px; height:44px; border-radius:8px; flex-shrink:0;
  background:linear-gradient(180deg,#fff4e6 50%,#efa24e 50%);
  display:flex; align-items:center; justify-content:center;
}
.rp-icon span{
  width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.55);
  display:flex; align-items:center; justify-content:center;
  color:#a85c14; font-size:16px; font-weight:700;
}
.rp-body{ flex:1; display:flex; flex-direction:column; gap:6px; min-width:0; }
.rp-tag{
  position:absolute; left:14px; bottom:10px;
  font-size:12px; color:rgba(255,255,255,.9);
}
.red-pack-bubble .red-pack-title{
  font-size:16px;
  font-weight:600;
  line-height:1.2;
}
.red-pack-bubble .red-pack-sub{
  font-size:13px;
  opacity:.86;
}
.red-pack-bubble.unclaimed{
  background:#fa9d3b !important;
  color:#fff;
  box-shadow:0 3px 10px rgba(220,140,50,.30) !important;
  animation:redPackShake 1.45s ease-in-out infinite;
}
.red-pack-bubble.unclaimed:active{
  transform:scale(.96);
}
.red-pack-bubble.claimed{
  animation:none !important;
  transform:none !important;
  transition:none !important;
  background:#fdce9e !important;
  color:#fff;
  box-shadow:0 3px 10px rgba(220,140,50,.30) !important;
  cursor:default;
}
.red-pack-bubble.red-pack-pending{
  animation:none !important;
  transform:none !important;
  transition:none !important;
  cursor:pointer;
  background:#fa9d3b !important;
  color:#fff;
}
.red-pack-bubble.red-pack-pending .rp-tag{ color:rgba(255,255,255,.86); }
.red-pack-bubble.claimed .rp-icon{ background:linear-gradient(180deg,rgba(255,244,230,.92) 50%,#f3bd85 50%); }
.red-pack-bubble.claimed .red-pack-sub{
  color:rgba(255,255,255,.85);
}
.red-pack-bubble.claimed .rp-tag{
  color:rgba(255,255,255,.8);
}
.red-pack-bubble.claimed-self{
  background:#fdce9e !important;
  color:#fff;
}
.red-pack-bubble.claimed-full{
  background:#fdce9e !important;
  color:rgba(255,255,255,.92);
}
.red-pack-bubble.claimed-expired{
  background:linear-gradient(135deg,#62666d,#464a50) !important;
  color:rgba(255,255,255,.88);
}
.red-pack-bubble.opening{
  animation:redPackOpen .34s ease;
}
/* 群内定向转账卡片：横向布局，左侧积字图标，右侧标题/状态，左下角标签 */
.red-pack-bubble.transfer-card{
  flex-direction:row;
  align-items:center;
  gap:12px;
  width:236px;
  min-height:86px;
  padding:12px 14px 26px;
  background:#2fae63;
  color:#fff;
  filter:none;
}
.red-pack-bubble.transfer-card::before{ display:none; }
.red-pack-bubble.transfer-card.claimed,
.red-pack-bubble.transfer-card.claimed-self,
.red-pack-bubble.transfer-card.claimed-full,
.red-pack-bubble.transfer-card.claimed-expired{
  background:#2fae63 !important;
  filter:none;
  color:#fff;
}
.tr-icon{
  width:46px; height:46px; border-radius:8px; flex-shrink:0;
  background:linear-gradient(180deg,#fbf3e8 50%,#f89a92 50%);
  display:flex; align-items:center; justify-content:center;
}
.tr-icon span{
  width:30px; height:30px; border-radius:50%; background:rgba(255,255,255,.55);
  display:flex; align-items:center; justify-content:center;
  color:#a85c14; font-size:16px; font-weight:700;
}
.tr-body{ flex:1; display:flex; flex-direction:column; gap:6px; min-width:0; }
.transfer-card .red-pack-title{ font-size:16px; font-weight:600; color:#fff; line-height:1.2; }
.transfer-card .red-pack-sub{ font-size:13px; color:rgba(255,255,255,.92); }
.tr-tag{
  position:absolute; left:14px; bottom:10px;
  font-size:12px; color:rgba(255,255,255,.9);
}
/* 扫雷群红包卡片：横向布局 + 积字图标，颜色沿用红包自身状态色（不跟着转账卡变绿） */
.red-pack-bubble.red-amount-card{
  flex-direction:row;
  align-items:center;
  gap:12px;
  width:236px;
  min-height:86px;
  padding:12px 14px 26px;
  filter:none;
}
.red-pack-bubble.red-amount-card::before{ display:none; }
.red-amount-card .red-pack-title{ font-size:16px; font-weight:600; color:#fff; line-height:1.2; }
.red-amount-card .red-pack-sub{ font-size:13px; color:rgba(255,255,255,.92); }
@keyframes redPackShake{
  0%,100%{transform:rotate(0) translateY(0);}
  20%{transform:rotate(-3deg) translateY(-1px);}
  40%{transform:rotate(3deg) translateY(1px);}
  60%{transform:rotate(-2deg);}
  80%{transform:rotate(2deg);}
}
@keyframes redPackOpen{
  0%{transform:scale(.94);}
  60%{transform:scale(1.05);}
  100%{transform:scale(1);}
}
.red-send-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.62);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999;
}
.red-send-box{
  width:88%;
  max-width:340px;
  max-height:92%;
  background:#f4f4f4;
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.red-send-head{
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background:#fff;
  font-size:17px;
  font-weight:600;
}
.red-send-back{
  position:absolute;
  left:10px;
  border:none;
  background:none;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}
.red-send-body{
  padding:14px;
  overflow-y:auto;
}
.red-pack-type{
  color:#c98a28;
  font-size:14px;
  margin:4px 2px 12px;
}
.red-form-card{
  background:#fff;
  border-radius:12px;
  padding:4px 14px;
}
.red-form-line{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:50px;
  border-bottom:1px solid #f1f1f1;
}
.red-form-line:last-child{border-bottom:none;}
.red-line-icon{
  width:26px;
  height:26px;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:15px;
  background:#ff4d4f;
  color:#fff;
}
.red-icon-pin{background:#d99a29;}
.red-icon-lei{background:#333;}
.red-fixed-value{margin-left:auto;font-size:15px;color:#333;}
.red-line-label{
  width:72px;
  color:#222;
  font-size:15px;
}
.red-form-line input{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  font-size:15px;
  text-align:right;
  color:#333;
}
.red-message-line input{
  text-align:left;
}
.red-line-unit{
  color:#999;
  font-size:13px;
}
.red-group-tip{
  font-size:12px;
  color:#999;
  margin:6px 2px 10px;
}
.red-emoji{color:#999;}
.red-cover-select{margin-left:auto;color:#999;font-size:14px;}
.red-cover-row{
  display:flex;
  gap:10px;
  margin:12px 2px;
}
.red-cover-thumb{
  flex:1;
  height:42px;
  border:1px solid #ddd;
  background:#fff;
  border-radius:10px;
  cursor:pointer;
  color:#555;
}
.red-cover-thumb.active{
  border-color:#ff6b57;
  background:#fff2f0;
  color:#ff4d4f;
  font-weight:600;
}
.red-send-summary{
  margin-top:20px;
  text-align:center;
}
.red-send-score{
  font-size:30px;
  font-weight:700;
  color:#222;
}
.red-send-submit{
  width:62%;
  height:42px;
  margin-top:16px;
  border:none;
  border-radius:22px;
  background:#f79a1e;
  color:#fff;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
}
.my-score-tip{
  text-align:center;
  margin-top:10px;
  font-size:13px;
  color:#666;
}

.red-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:999;
}
.open-red-wrap{
  width:86%;
  max-width:330px;
  padding:0;
  border-radius:18px;
  overflow:hidden;
  text-align:center;
  background:#f35e4c;
}
.open-red-main{
  min-height:380px;
  padding:34px 22px 18px;
  background:#f35e4c;
  color:#fff;
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.open-red-main::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:72px;
  height:70px;
  border-radius:50% 50% 0 0;
  border-top:1px solid rgba(255,255,255,.25);
  transform:scaleX(1.18);
}
.open-red-sender-box{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:10px;
}
.open-red-sender-avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,.3);
}
.open-red-sender{
  font-size:15px;
  color:#ffe3a8;
}
.open-red-total{
  font-size:20px;
  font-weight:700;
  color:#ffe3a8;
  margin-bottom:6px;
}
.open-red-bless{
  margin-top:22px;
  font-size:19px;
  font-weight:600;
}
.open-red-result{
  margin-top:16px;
  min-height:0;
  font-size:22px;
  font-weight:700;
  color:#ffe3a8;
}
.open-red-tip{
  margin-top:10px;
  font-size:13px;
  opacity:.9;
}
.open-red-wallet{
  width:132px;
  height:132px;
  margin:auto auto 12px;
  border-radius:50%;
  background:#ffd166;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:48px;
  font-weight:700;
  color:#7b3f0d;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
  transition:transform .2s ease;
  position:relative;
  z-index:1;
  cursor:pointer;
}
.open-red-wallet.disabled{
  cursor:default;
}
.wallet-spinning{
  animation:walletSpin 0.65s ease-in-out;
}
@keyframes walletSpin{
  0%{transform:scale(.9) rotate(0deg);}
  50%{transform:scale(1.08) rotate(180deg);}
  100%{transform:scale(1) rotate(360deg);}
}
.opening-pack{
  animation:buttonPulse .65s ease-in-out;
}
@keyframes buttonPulse{
  0%,100%{opacity:.65;transform:scale(1);}
  50%{opacity:1;transform:scale(1.04);}
}
.open-red-btn{
  width:80%;
  margin:16px auto 0;
  padding:14px 22px;
  border:none;
  border-radius:26px;
  background:#ffd166;
  color:#783b0d;
  font-size:17px;
  font-weight:600;
  cursor:pointer;
}
.red-detail-link{
  display:block;
  margin:12px auto 0;
  border:none;
  background:none;
  color:#ffe3a8;
  font-size:14px;
  cursor:pointer;
}
.open-red-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
}
.open-red-list{
  margin:14px 14px 18px;
  padding:12px;
  border-radius:12px;
  background:rgba(255,255,255,.12);
  text-align:left;
}
#redListTitle{
  margin:0 0 8px;
  font-weight:bold;
  color:#ffe3a8;
  font-size:14px;
}
.open-red-detail-sender{
  margin:0 0 8px;
  font-size:15px;
  color:#ffe3a8;
  text-align:left;
}
#backToRedMainBtn{
  margin-top:12px;
}
#redReceiveListBox{
  max-height:220px;
  overflow-y:auto;
  font-size:14px;
}
.red-receive-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px 2px;
  border-bottom:1px solid rgba(255,255,255,.15);
  color:#fff;
  font-size:14px;
}
.red-receive-avatar{
  width:36px;
  height:36px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}
.red-receive-user{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
}
.red-receive-parent{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
  min-width:0;
  max-width:100%;
}
.red-receive-time{
  margin-top:2px;
  color:rgba(255,255,255,.7);
  font-size:12px;
  white-space:nowrap;
}
.red-receive-row > span:last-child{
  flex-shrink:0;
  white-space:nowrap;
}
.red-best-tag,.red-lei-tag,.red-me-tag{
  white-space:nowrap;
  flex-shrink:0;
}
.red-receive-row:last-child{
  border-bottom:none;
}
.red-best-tag{
  margin-left:6px;
  padding:1px 7px;
  border-radius:9px;
  background:#fff1d6;
  color:#e67a00;
  font-size:12px;
}
.red-lei-tag{
  margin-left:6px;
  padding:1px 7px;
  border-radius:9px;
  background:#fdecec;
  color:#e02a2a;
  font-size:12px;
}
.red-receive-row.mine{background:rgba(255,122,24,.10);border-radius:10px;}
.red-me-tag{margin-left:6px;padding:1px 7px;border-radius:9px;background:rgba(255,193,7,.18);color:#ffc107;font-size:12px;}
.open-red-closed{
  padding:18px 20px 26px;
  background:#f35e4c;
  color:#ffe3a8;
  font-size:14px;
}
#closeOpenRedBtn{
  background:rgba(255,255,255,.18);
  color:#ffe3a8;
}

.copy-id-btn{
  margin-left:6px;
  border:1px solid #ddd;
  background:#f7f7f7;
  border-radius:4px;
  padding:2px 8px;
  font-size:12px;
  color:#555;
  cursor:pointer;
}
.copy-id-btn:active{ background:#eee; }

.me-username-row{display:flex;align-items:center;gap:6px;}
.nick-edit-btn{border:none;background:transparent;padding:0;font-size:15px;color:#888;cursor:pointer;line-height:1;}
.nick-edit-btn:active{color:#07c160;}

/*====群聊信息页====*/
#pageGroupInfo{flex:1;overflow-y:auto;min-height:0;background:#f4f5f7;}
.gi-body{padding:12px 0 30px;}
.gi-card{background:#fff;margin:0 12px 10px;border-radius:12px;overflow:hidden;}
.gi-member-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px 8px;padding:16px 12px 10px;}
.gi-member{display:flex;flex-direction:column;align-items:center;gap:5px;cursor:pointer;}
.gi-member img{width:46px;height:46px;border-radius:8px;object-fit:cover;background:#eee;}
.gi-member .gi-m-name{font-size:11px;color:#555;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:center;}
.gi-more{padding:13px 16px;font-size:14px;color:#333;border-top:1px solid #f1f1f1;cursor:pointer;}
.gi-more span{color:#bbb;float:right;}
.gi-row{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid #f1f1f1;cursor:pointer;}
.gi-row:last-child{border-bottom:none;}
.gi-row-sub{padding-left:28px;}
.gi-label{font-size:15px;color:#222;flex:0 0 auto;}
.gi-value{flex:1;text-align:right;font-size:14px;color:#999;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.gi-value-sub{color:#bbb;}
.gi-arrow{color:#bbb;font-size:18px;flex:0 0 auto;}
.gi-sub{flex:1;text-align:right;font-size:12px;color:#999;}
.gi-row-block{flex-direction:column;align-items:stretch;gap:6px;}
.gi-row-top{display:flex;align-items:center;justify-content:space-between;}
.gi-ann{font-size:13px;color:#888;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.gi-switch{position:relative;display:inline-block;width:46px;height:28px;flex:0 0 auto;cursor:pointer;}
.gi-switch input{opacity:0;width:0;height:0;position:absolute;}
.gi-slider{position:absolute;inset:0;background:#d1d1d1;border-radius:28px;transition:.2s;}
.gi-slider::before{content:"";position:absolute;width:24px;height:24px;left:2px;top:2px;background:#fff;border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.25);}
.gi-switch input:checked + .gi-slider{background:#07c160;}
.gi-switch input:checked + .gi-slider::before{transform:translateX(18px);}
.gi-row .gi-switch{cursor:pointer;}
.gi-row .gi-row{cursor:default;}

#pageRedDetail{flex:1;display:flex;flex-direction:column;min-height:0;background:#1c1c1e;}
.rd-head{
  background:#f35e4c;
  padding:28px 20px 46px;
  text-align:center;
  border-radius:0 0 48% 48% / 0 0 34px 34px;
}
.rd-sender-box{display:flex;align-items:center;justify-content:center;gap:8px;}
.rd-avatar{width:44px;height:44px;border-radius:10px;object-fit:cover;}
.rd-sender{font-size:17px;color:#fff;font-weight:600;}
.rd-amount{margin-top:10px;font-size:26px;font-weight:700;color:#ffe3a8;}
.rd-bless{margin-top:10px;font-size:14px;color:rgba(255,255,255,.78);}
.rd-stored{margin-top:8px;font-size:13px;color:#ffe3a8;}
.rd-lei{margin-top:6px;font-size:13px;color:rgba(255,255,255,.85);}
.rd-footer{margin-top:20px;text-align:center;font-size:13px;color:#888;padding:0 16px;}
.rd-body{flex:1;overflow-y:auto;min-height:0;padding:16px 12px 30px;}
.rd-title{font-size:14px;color:#999;padding:6px 16px 12px;}
#rdListBox{}
.rd-body .red-receive-row{color:#fff;border-bottom:1px solid #2c2c2e;padding:12px 16px;}
.rd-body .red-receive-time{color:#888;}
.rd-body .red-receive-row:last-child{border-bottom:none;}
.rd-body .red-best-tag{background:rgba(255,193,7,.15);color:#ffc107;}
.rd-body .red-lei-tag{background:rgba(224,42,42,.18);color:#ff6b6b;}
.red-list-lock{text-align:center;color:#888;font-size:14px;padding:40px 16px;}
.session-avatar{position:relative;flex-shrink:0;}
.unread-dot{position:absolute;top:-3px;right:-3px;width:15px;height:15px;border-radius:50%;background:#e9362f;border:2.5px solid #fff;box-shadow:0 1px 3px rgba(0,0,0,.25);}

/* ===== 改密 / 上分小页面 ===== */
.me-form-card{background:#fff;border-radius:14px;padding:22px 20px 24px;box-shadow:0 2px 14px rgba(0,0,0,.06);margin:12px 10px;}
.btn-line{width:100%;height:42px;border:1px solid #07c160;border-radius:8px;background:#fff;color:#07c160;font-size:15px;font-weight:600;cursor:pointer;margin-bottom:14px;}
.btn-line:active{background:#f0faf4;}
.as-user-card{background:#f6f8f7;border-radius:10px;padding:14px;margin-bottom:14px;}
.as-user-name{font-size:16px;font-weight:600;color:#191919;margin-bottom:6px;}
.as-user-meta{font-size:13px;color:#7a7a7a;margin-bottom:8px;}
.as-user-balance{font-size:14px;color:#191919;}
.as-user-balance #asUserScore{font-weight:700;color:#ff9500;font-size:16px;}

/* ===== 主题切换：右侧状态值 ===== */
.me-menu-value{margin-left:auto;font-size:13px;color:#9a9aa2;}

/* ===== 深色（夜间）模式 ===== */
body.dark{background:#121214;color:#ececef;}
body.dark .phone{background:#1a1a1d;}
body.dark .topbar{background:#1c1c1f;border-bottom-color:#2e2e33;}
body.dark .topbar .title,body.dark .topbar .right{color:#ececef;}
body.dark .tabbar{background:#1c1c1f;border-top-color:#2e2e33;}
body.dark .tab{color:#9a9aa2;}
body.dark #pageMe,body.dark #pageScore,body.dark #pageGroupInfo{background:#161618;}

body.dark .card,
body.dark .me-profile-card,
body.dark .me-menu-wrap,
body.dark .score-detail-card,
body.dark .active-sub-card,
body.dark .score-mode-wrap,
body.dark .score-tab-wrap,
body.dark .score-record-item,
body.dark .gi-card,
body.dark .me-form-card,
body.dark .red-form-card,
body.dark .red-send-head,
body.dark .red-log-user,
body.dark .red-log-date,
body.dark .plus-icon,
body.dark .red-cover-thumb,
body.dark .btn-line{background:#26262a;}

body.dark .field input{background:#232327;border-color:#3a3a3f;color:#eee;}
body.dark .field input:focus{background:#2a2a2e;border-color:#07c160;}
body.dark .me-tag{background:#2e2e33;color:#9a9aa2;}
body.dark .me-qr-box{background:#232327;border-color:#3a3a3f;color:#9a9aa2;}
body.dark .as-user-card{background:#2e2e33;}
body.dark .btn-line{border-color:#07c160;}
body.dark .btn-line:active{background:#303036;}

body.dark .me-username{color:#f2f2f2;}
body.dark .me-id-text,body.dark .me-menu-label,body.dark .score-tab,
body.dark .gi-more,body.dark .red-cover-thumb,body.dark .red-fixed-value{color:#d8d8dc;}
body.dark .me-arrow{color:#6a6a72;}
body.dark .me-menu-row{border-bottom-color:#2e2e33;}
body.dark .slogan,body.dark .field label,body.dark .as-user-meta{color:#9a9aa2;}
body.dark .as-user-name,body.dark .as-user-balance{color:#ececef;}

body.dark .msg-bubble-other{background:#2e2e33 !important;color:#eee !important;}

body.dark .red-send-box{background:#26262a;}
body.dark .red-form-line{border-bottom-color:#2e2e33;}

body.dark #inputBox{border-top-color:#2e2e33 !important;}
body.dark #msgInput{background:#232327 !important;border-color:#3a3a3f !important;color:#eee;}
body.dark #sendMsgBtn{background:#07c160;color:#fff;border:none;}
body.dark .gi-label{color:#d8d8dc;}
body.dark .gi-row{border-bottom-color:#2e2e33;}

/* ===== 深色补充：会话列表分隔线 / 红包转账弹窗文字 ===== */
body.dark .session-row{ border-bottom-color:#2e2e33 !important; }
body.dark .transfer-member-row{ border-bottom-color:#2e2e33 !important; }
body.dark .red-line-label,
body.dark .red-send-score,
body.dark .red-form-line input{ color:#eee; }
body.dark .red-line-unit,
body.dark .red-group-tip,
body.dark .red-cover-select,
body.dark .red-emoji,
body.dark .my-score-tip{ color:#9a9aa2; }
body.dark .red-pack-type{ color:#e0a54a; }
body.dark .red-form-line input::placeholder{ color:#6a6a72; }

/* ===== 深色补充：加号功能面板 / 消息昵称时间 / 自己气泡文字 ===== */
body.dark #plusPanel{ background:#1c1c1f !important; border-top-color:#2e2e33 !important; }
body.dark .plus-label{ color:#9a9aa2; }
body.dark .plus-item:active{ background:#303036; }
body.dark .msg-name{ color:#9a9aa2 !important; }
body.dark .msg-time{ color:#6a6a72 !important; }
body.dark .msg-bubble-mine{ color:#191919 !important; }

/* ===== 深色补充：@成员面板 / 转账选中行 ===== */
body.dark #atPanel{ background:#1c1c1f !important; border-top-color:#2e2e33 !important; }
body.dark .transfer-member-row.selected{ background:#3a2626 !important; }
body.dark #transferMemberSearch{ background:#232327 !important; border-color:#3a3a3f !important; color:#eee; }
body.dark #transferMemberSearch::placeholder{ color:#6a6a72; }
/* ============ 红包气泡：未拆 / 已拆 信封图标 ============ */
.red-pack-bubble .rp-icon{
  position:relative;
  width:44px;
  height:44px;
  border-radius:5px;
  overflow:hidden;
  background:linear-gradient(180deg,#f8553f,#dc3626);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);
}
.red-pack-bubble .rp-icon::before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:0;
  border-top:15px solid #c32616;
  border-left:22px solid transparent;
  border-right:22px solid transparent;
}
.red-pack-bubble .rp-icon span{
  position:absolute;
  left:50%;bottom:4px;
  transform:translateX(-50%);
  width:18px;height:18px;
  border-radius:50%;
  background:linear-gradient(180deg,#ffe08a,#f3b13c);
  border:1px solid rgba(180,90,10,.35);
  color:#b8501b;
  font-size:10px;
  font-weight:700;
  display:flex;align-items:center;justify-content:center;
}

/* 已领取：信封被拆开（封口褪色、封皮发旧、金币压扁变浅） */
.red-pack-bubble.claimed .rp-icon,
.red-pack-bubble.claimed-self .rp-icon,
.red-pack-bubble.claimed-full .rp-icon{
  background:linear-gradient(180deg,#f3d9bc,#d3a978);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.3);
}
.red-pack-bubble.claimed .rp-icon::before,
.red-pack-bubble.claimed-self .rp-icon::before,
.red-pack-bubble.claimed-full .rp-icon::before{
  border-top:9px solid #b98a58;
  border-left:22px solid transparent;
  border-right:22px solid transparent;
}
.red-pack-bubble.claimed .rp-icon span,
.red-pack-bubble.claimed-self .rp-icon span,
.red-pack-bubble.claimed-full .rp-icon span{
  width:16px;height:12px;
  border-radius:6px/4px;
  background:linear-gradient(180deg,rgba(255,255,255,.9),#e9c79a);
  border:1px solid rgba(150,105,60,.4);
  color:#9a6a38;
  font-size:9px;
}

/* ============ 红包气泡：未拆信封 / 已拆信封（SVG 图标） ============ */
.red-pack-bubble .rp-icon{
  background:transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2044%2044%27%3E%3Crect%20x%3D%274%27%20y%3D%2711%27%20width%3D%2736%27%20height%3D%2727%27%20rx%3D%273%27%20fill%3D%27%23e8402c%27%2F%3E%3Cpath%20d%3D%27M4%2014%20L22%2025%20L40%2014%20L40%2011%20L4%2011%20Z%27%20fill%3D%27%23bf2417%27%2F%3E%3Crect%20x%3D%274%27%20y%3D%2711%27%20width%3D%2736%27%20height%3D%272.2%27%20rx%3D%271%27%20fill%3D%27%23f4725f%27%20opacity%3D%27.9%27%2F%3E%3Ccircle%20cx%3D%2722%27%20cy%3D%2730%27%20r%3D%276.4%27%20fill%3D%27%23ffd46a%27%20stroke%3D%27%23d59430%27%20stroke-width%3D%27.8%27%2F%3E%3Ctext%20x%3D%2722%27%20y%3D%2733.4%27%20font-family%3D%27sans-serif%27%20font-size%3D%278.6%27%20font-weight%3D%27700%27%20fill%3D%27%23b04a16%27%20text-anchor%3D%27middle%27%3E%C2%A5%3C%2Ftext%3E%3C%2Fsvg%3E") no-repeat center/contain !important;
  box-shadow:none !important;
  overflow:visible;
}
.red-pack-bubble .rp-icon::before,
.red-pack-bubble .rp-icon::after{ content:none !important; }
.red-pack-bubble .rp-icon span{ display:none !important; }
.red-pack-bubble.claimed .rp-icon,
.red-pack-bubble.claimed-self .rp-icon,
.red-pack-bubble.claimed-full .rp-icon,
.red-pack-bubble.claimed-expired .rp-icon{
  background:transparent url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2044%2044%27%3E%3Crect%20x%3D%274%27%20y%3D%2718%27%20width%3D%2736%27%20height%3D%2720%27%20rx%3D%273%27%20fill%3D%27%23d7ad7c%27%2F%3E%3Cpath%20d%3D%27M4%2021%20L22%2031%20L40%2021%20L40%2018%20L4%2018%20Z%27%20fill%3D%27%23bd8c56%27%2F%3E%3Cpath%20d%3D%27M4%2018%20L22%205%20L40%2018%20L22%2026%20Z%27%20fill%3D%27%23f1dcc0%27%2F%3E%3Cpath%20d%3D%27M4%2018%20L22%205%20L40%2018%27%20fill%3D%27none%27%20stroke%3D%27%23c9a273%27%20stroke-width%3D%271%27%2F%3E%3Crect%20x%3D%2713%27%20y%3D%2720%27%20width%3D%2718%27%20height%3D%272.6%27%20rx%3D%271%27%20fill%3D%27%23ffffff%27%20opacity%3D%27.82%27%2F%3E%3C%2Fsvg%3E") no-repeat center/contain !important;
}

/* ============ 红包气泡信封图标（独立 SVG 文件，避免 data URI 兼容问题） ============ */
.red-pack-bubble .rp-icon,
.red-pack-bubble.unclaimed .rp-icon,
.red-pack-bubble.red-pack-pending .rp-icon{
  background:transparent url("assets/redpack/closed.svg") no-repeat center/contain !important;
  box-shadow:none !important;
  overflow:visible !important;
}
.red-pack-bubble .rp-icon::before,
.red-pack-bubble .rp-icon::after{ content:none !important; display:none !important; }
.red-pack-bubble .rp-icon span{ display:none !important; }
.red-pack-bubble.claimed .rp-icon,
.red-pack-bubble.claimed-self .rp-icon,
.red-pack-bubble.claimed-full .rp-icon,
.red-pack-bubble.claimed-expired .rp-icon{
  background:transparent url("assets/redpack/opened.svg") no-repeat center/contain !important;
}

/* ============ 微信式长方形红包图标：普通红包 + 踩雷群游戏红包 ============ */
.red-pack-bubble .rp-icon{
  background:transparent url("assets/redpack/wx_closed.svg?v=2") no-repeat center/contain !important;
  box-shadow:none !important;
  overflow:visible !important;
}
.red-pack-bubble .rp-icon::before,
.red-pack-bubble .rp-icon::after{ content:none !important; display:none !important; }
.red-pack-bubble .rp-icon span{ display:none !important; }
.red-pack-bubble.claimed .rp-icon,
.red-pack-bubble.claimed-self .rp-icon,
.red-pack-bubble.claimed-full .rp-icon,
.red-pack-bubble.claimed-expired .rp-icon{
  background:transparent url("assets/redpack/wx_opened.svg?v=2") no-repeat center/contain !important;
}

.red-pack-bubble.red-amount-card:not(.transfer-card) .tr-icon{
  background:transparent url("assets/redpack/wx_closed.svg?v=2") no-repeat center/contain !important;
  box-shadow:none !important;
}
.red-pack-bubble.red-amount-card:not(.transfer-card) .tr-icon span{ display:none !important; }
.red-pack-bubble.red-amount-card.claimed:not(.transfer-card) .tr-icon,
.red-pack-bubble.red-amount-card.claimed-full:not(.transfer-card) .tr-icon,
.red-pack-bubble.red-amount-card.claimed-self:not(.transfer-card) .tr-icon,
.red-pack-bubble.red-amount-card.claimed-expired:not(.transfer-card) .tr-icon{
  background:transparent url("assets/redpack/wx_opened.svg?v=2") no-repeat center/contain !important;
}

/* 群规页 / 群公告图片 */
.rules-wrap{padding:16px 14px 30px;}
.rules-title{font-size:19px;font-weight:600;color:#333;margin:0 2px 12px;}
#rulesContent{background:#fff;border-radius:10px;padding:14px;font-size:14px;line-height:1.7;color:#444;white-space:pre-wrap;word-break:break-word;}
#rulesContent .empty{padding:20px 0;}
#rulesActions{padding:14px 0 0;}
#rulesEditTip{font-size:12px;color:#999;padding:10px 2px 0;}
.rich-img{display:block;max-width:100%;height:auto;border-radius:8px;margin:6px 0;cursor:zoom-in;}
.gi-ann img{max-width:100%;height:auto;border-radius:6px;margin:4px 0;display:block;}

/* 群公告展开显示图片，不再两行截断 */
.gi-ann{display:block !important;-webkit-line-clamp:unset !important;overflow:visible !important;}
.btn-ghost{width:100%;height:46px;border:1px solid #07c160;border-radius:8px;background:#fff;color:#07c160;font-size:16px;cursor:pointer;}
.gi-ann{white-space:pre-wrap !important;}
.rich-img-wrap{position:relative;display:block;max-width:100%;margin:6px 0;}
.rich-img-wrap .rich-img{margin:0;}
.rich-img-del{position:absolute;top:4px;right:4px;width:26px;height:26px;border:none;border-radius:50%;background:rgba(0,0,0,.55);color:#fff;font-size:16px;line-height:26px;text-align:center;padding:0;cursor:pointer;z-index:2;}

/* ===== 群内 @ 重点提醒 ===== */
.at-notice{
  display:flex;align-items:center;gap:10px;flex-shrink:0;
  margin:8px 10px 4px;padding:10px 12px;border-radius:12px;cursor:pointer;
  background:linear-gradient(90deg,#fff1f1,#ffe1e1);
  border:1px solid #ffb3b3;border-left:4px solid #e60012;
  box-shadow:0 3px 12px rgba(230,0,18,.14);
}
.at-notice-ico{
  width:30px;height:30px;border-radius:50%;flex-shrink:0;
  background:#e60012;color:#fff;font-size:17px;font-weight:700;
  display:flex;align-items:center;justify-content:center;
}
.at-notice-main{flex:1;min-width:0;}
.at-notice-title{font-size:14px;font-weight:700;color:#e60012;line-height:1.2;}
.at-notice-text{
  margin-top:3px;font-size:12px;color:#d32f2f;line-height:1.35;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.at-notice-go{
  flex-shrink:0;font-size:13px;font-weight:600;color:#e60012;
  background:#fff;border:1px solid #ff9a9a;border-radius:14px;padding:5px 10px;
}
.at-flash{animation:atFlash 1.8s ease-out;}
@keyframes atFlash{
  0%,100%{background:transparent;}
  15%,45%{background:#ffd1d1;box-shadow:0 0 0 2px #ff9a9a inset;}
}
.mention-tag{
  flex-shrink:0;font-size:12px;color:#e9362f;font-weight:600;
}
body.dark .at-notice{background:#2c1a1a;border-color:#5b2222;border-left-color:#ff4d4d;}
body.dark .at-notice-title{color:#ff5c5c;}
body.dark .at-notice-text{color:#ff9a9a;}
body.dark .at-notice-go{background:#3a2020;color:#ff5c5c;border-color:#6a2828;}

/* ===== 群规页：图片铺满 ===== */
#pageContacts{overflow-y:auto;-webkit-overflow-scrolling:touch;}
.rules-wrap.rules-fill{background:#fff;min-height:100%;padding:0;}
.rules-wrap.rules-fill #rulesContent{background:transparent;border-radius:0;padding:0;}
.rules-wrap.rules-fill .rich-img-wrap,
.rules-wrap.rules-fill .rich-img{width:100%;max-width:100%;margin:0;border-radius:0;}
.rules-wrap.rules-fill .rich-img{display:block;width:100%;height:auto;}
/* 手机端去掉 390x780 预览框限制，内容真正铺满屏幕 */
@media (max-width:520px){
  .phone{max-width:none;max-height:none;width:100%;height:100vh;height:100dvh;}
}