/* ============================================================
   姜聊 V2.4 · Liquid Glass 正式视觉样式（单文件）
   ------------------------------------------------------------
   加载顺序即层级：base → glass → v22 → v23 → v24。
   已合并 app.css / liquid-glass.css / liquid-glass-v22.css /
   liquid-glass-v23.css，index 只加载本文件。
   仅覆盖视觉样式，不包含业务逻辑、路由、API 或数据结构。
   ============================================================ */

/* ===== 0. 基础布局（原 app.css）===== */
:root{
  --jc-green:#07c160;
  --jc-bg:#ededed;
  --jc-card:#ffffff;
  --jc-line:#e4e4e4;
  --jc-text:#111111;
  --jc-muted:#4C6355;
  --jc-soft:#f7f7f7;
  --vvHeight:100%;
  --vvTop:0px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent;}
button,input,textarea,select{font-family:inherit;font-size:inherit;color:inherit;}
button{cursor:pointer;}
html,body{
  margin:0;padding:0;width:100%;height:100%;overflow:hidden;
  overscroll-behavior:none;background:var(--jc-bg);color:var(--jc-text);
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
body{position:fixed;inset:0;}
#app{position:fixed;left:0;right:0;top:var(--vvTop);height:var(--vvHeight);overflow:hidden;}
.screen{height:100%;display:flex;flex-direction:column;background:var(--jc-bg);}
.header{
  height:calc(50px + env(safe-area-inset-top));flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;
  padding:0 12px;padding-top:env(safe-area-inset-top);background:#ededed;
  border-bottom:1px solid #dfdfdf;position:relative;z-index:5;
}
.header-main{height:calc(56px + env(safe-area-inset-top));justify-content:flex-start;gap:8px;padding-left:18px;}
.header-title{font-size:17px;font-weight:600;letter-spacing:.2px;}
.header-title-left{font-size:20px;font-weight:700;}
.header-right{width:40px;display:flex;justify-content:flex-end;align-items:center;}
.icon-btn{
  width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  border:0;background:transparent;color:#333;border-radius:10px;padding:0;
}
.icon-btn:active{background:rgba(0,0,0,.06);}
.content{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
.tabbar{
  flex:0 0 auto;display:flex;background:#f7f7f7;border-top:1px solid #d8d8d8;
  padding-bottom:env(safe-area-inset-bottom);z-index:6;
}
.tab{
  flex:1;border:0;background:transparent;padding:6px 0 5px;display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:2px;font-size:12px;color:#5d5d5d;position:relative;
}
.tab.active{color:var(--jc-green);}
.tab svg{width:23px;height:23px;}
.tab .dot{
  position:absolute;top:2px;left:calc(50% + 10px);min-width:16px;height:16px;border-radius:9px;
  background:#fa5151;color:#fff;font-size:10px;line-height:16px;text-align:center;padding:0 4px;
}
.avatar{
  flex:0 0 auto;border-radius:5px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-weight:600;overflow:hidden;user-select:none;
}
.avatar-sm{width:44px;height:44px;font-size:18px;}
.avatar-xs{width:34px;height:34px;font-size:14px;border-radius:5px;}
.conversation{
  width:100%;border:0;background:#fff;display:flex;align-items:center;gap:12px;
  padding:11px 14px;border-bottom:1px solid #ededed;text-align:left;
}
.conversation:active{background:#f2f2f2;}
.conv-main{min-width:0;flex:1;}
.conv-name{font-size:16px;font-weight:500;line-height:22px;display:flex;align-items:center;gap:6px;}
.conv-last{font-size:13px;color:#4C6355;line-height:20px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px;}
.conv-side{width:58px;flex:0 0 auto;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px;}
.conv-time{font-size:11px;color:#a0a0a0;white-space:nowrap;}
.badge{
  min-width:18px;height:18px;border-radius:9px;background:#fa5151;color:#fff;
  font-size:11px;line-height:18px;text-align:center;padding:0 5px;font-weight:500;
}
.badge-gray{background:#c9c9c9;}
.section-title{font-size:13px;color:#4C6355;padding:14px 16px 7px;}
.card{background:#fff;border-top:1px solid var(--jc-line);border-bottom:1px solid var(--jc-line);}
.menu-item{
  width:100%;border:0;background:#fff;display:flex;align-items:center;justify-content:space-between;
  padding:15px 16px;border-bottom:1px solid #ededed;font-size:16px;text-align:left;
}
.menu-item:active{background:#f3f3f3;}
.menu-item .arrow{color:#b5b5b5;font-size:18px;line-height:18px;}
.friend-row{
  display:flex;align-items:center;gap:12px;padding:11px 14px;background:#fff;border-bottom:1px solid #ededed;
}
.friend-row .main{flex:1;min-width:0;}
.friend-row .name{font-size:16px;font-weight:500;line-height:22px;}
.friend-row .account{font-size:12px;color:#9b9b9b;line-height:18px;margin-top:1px;}
.mini-btn{
  border:0;border-radius:6px;padding:6px 10px;font-size:13px;line-height:18px;
  background:#f2f2f2;color:#333;white-space:nowrap;
}
.mini-btn.green{background:var(--jc-green);color:#fff;}
.mini-btn.red{background:#fff1f0;color:#d93026;}
.mini-btn.gray{background:#f2f2f2;color:#777;}
.search-box{display:flex;gap:8px;padding:10px 12px;background:#fff;}
.search-box input{
  flex:1;min-width:0;border:1px solid #e2e2e2;border-radius:8px;background:#f7f7f7;
  padding:9px 11px;font-size:16px;outline:none;
}
.search-box button{
  border:0;border-radius:8px;background:var(--jc-green);color:#fff;padding:0 15px;font-size:14px;font-weight:500;
}
.search-result{padding:0 12px 12px;background:#fff;}
.search-card{border:1px solid #ededed;border-radius:9px;padding:10px;display:flex;align-items:center;gap:10px;}
.empty{
  padding:56px 24px;text-align:center;color:#9a9a9a;font-size:14px;line-height:22px;
}
.empty .empty-icon{font-size:34px;color:#c7c7c7;margin-bottom:10px;}
.request-row{padding:12px 14px;background:#fff;border-bottom:1px solid #ededed;display:flex;align-items:center;gap:10px;}
.request-main{flex:1;min-width:0;}
.request-name{font-size:15px;font-weight:500;}
.request-sub{font-size:12px;color:#4C6355;margin-top:3px;}
.request-actions{display:flex;gap:6px;}
.status-text{font-size:13px;color:#4C6355;white-space:nowrap;}
.status-accepted{color:var(--jc-green);}
.status-rejected{color:#c33;}
.profile-card{
  margin:14px 12px;background:#fff;border-radius:12px;padding:18px 16px;display:flex;align-items:center;gap:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.profile-name{font-size:19px;font-weight:600;line-height:26px;display:flex;align-items:center;gap:7px;}
.profile-account{font-size:13px;color:#4C6355;line-height:20px;margin-top:3px;}
.admin-tag{font-size:10px;background:#e8f7ee;color:#079c4d;padding:2px 6px;border-radius:5px;font-weight:500;}
.official-tag{font-size:10.5px;background:#e8f7ee;color:#0b7a42;border:1px solid #cfe9da;padding:2px 7px;border-radius:6px;font-weight:700;}
.official-avatar{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:inherit;background:linear-gradient(145deg,#3ecf73,#1aa657);color:#fff;font-weight:800;letter-spacing:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.25);}
.field-official{padding:14px 16px;display:flex;align-items:center;gap:12px;width:100%;background:#fff;border:0;text-align:left;font-family:inherit;color:inherit;}
.field-official:active{background:#f1faf3;}
.field-official-main{flex:1;min-width:0;}
.field-official-name{font-size:16px;font-weight:600;color:#173d27;display:flex;align-items:center;gap:6px;}
.field-official-sub{font-size:12.5px;color:#5d7265;margin-top:4px;}
.field-note{padding:14px 16px;background:#fff;border-top:1px solid #e2ebe4;color:#5d7265;font-size:13px;line-height:1.75;}
.me-section{margin-top:12px;background:#fff;border-top:1px solid var(--jc-line);border-bottom:1px solid var(--jc-line);}
.me-section-title{font-size:13px;color:#888;padding:12px 16px 4px;background:#fff;}
.device-row{padding:10px 16px;border-top:1px solid #f0f0f0;font-size:13px;color:#555;line-height:20px;}
.device-row .dev-id{font-size:11px;color:#4C6355;word-break:break-all;}
.pwd-form{padding:12px 16px 16px;background:#fff;border-top:1px solid #eee;}
.pwd-form input{
  width:100%;border:1px solid #e2e2e2;border-radius:8px;padding:10px 11px;font-size:16px;margin-bottom:9px;outline:none;background:#f8f8f8;
}
.admin-stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px;}
.stat-card{background:#fff;border-radius:10px;padding:12px;border:1px solid #ededed;}
.stat-num{font-size:24px;font-weight:700;color:#1f1f1f;line-height:30px;}
.stat-label{font-size:12px;color:#4C6355;margin-top:2px;}
.admin-block{margin-top:12px;background:#fff;border-top:1px solid var(--jc-line);border-bottom:1px solid var(--jc-line);}
.admin-block-title{font-size:14px;font-weight:600;padding:13px 14px 6px;}
.admin-form{padding:0 14px 14px;}
.admin-form input{
  width:100%;border:1px solid #e2e2e2;border-radius:8px;padding:9px 10px;font-size:16px;margin-bottom:8px;outline:none;background:#fafafa;
}
.admin-form label{display:flex;align-items:center;gap:8px;font-size:14px;color:#555;margin:2px 0 10px;}
.admin-form label input{width:18px;height:18px;margin:0;padding:0;}
.admin-user-row{display:flex;align-items:center;gap:8px;padding:10px 14px;border-top:1px solid #f0f0f0;}
.admin-user-main{flex:1;min-width:0;font-size:14px;line-height:20px;}
.admin-user-sub{font-size:11px;color:#4C6355;margin-top:2px;}
.admin-device-row{padding:9px 14px;border-top:1px solid #f0f0f0;font-size:12px;color:#666;line-height:19px;}
.admin-device-row .dev-title{font-size:13px;color:#333;font-weight:500;}
.chat-screen{height:100%;display:flex;flex-direction:column;background:#ededed;overflow:hidden;}
.chat-header{
  height:calc(50px + env(safe-area-inset-top));flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;
  padding:0 10px;padding-top:env(safe-area-inset-top);background:#ededed;border-bottom:1px solid #dedede;z-index:5;
}
.chat-header .title{font-size:17px;font-weight:600;max-width:65%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;}
.chat-header .right{width:38px;}
.message-list{
  flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:10px 12px 14px;background:#ededed;
}
.time-divider{text-align:center;margin:10px 0 12px;color:#9b9b9b;font-size:11px;}
.msg-row{display:flex;align-items:flex-start;gap:9px;margin-bottom:12px;}
.msg-row.self{flex-direction:row-reverse;}
.msg-bubble{
  max-width:74%;border-radius:6px;padding:9px 12px;font-size:16px;line-height:1.48;
  white-space:pre-wrap;word-break:break-word;position:relative;
  box-shadow:0 1px 1px rgba(0,0,0,.025);min-height:38px;
}
.msg-bubble:active{filter:brightness(.985);}
.msg-bubble.other{background:#fff;color:#111;border:1px solid #e6e6e6;}
.msg-bubble.other:before{
  content:"";position:absolute;left:-6px;top:13px;width:0;height:0;
  border-top:5px solid transparent;border-bottom:5px solid transparent;border-right:6px solid #fff;
}
.msg-bubble.self{background:#95ec69;color:#111;}
.msg-bubble.self:after{
  content:"";position:absolute;right:-6px;top:13px;width:0;height:0;
  border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid #95ec69;
}
.msg-bubble.pending{opacity:.72;}
.msg-bubble.failed{background:#ffdede;}
.msg-status{font-size:10px;color:#a0a0a0;text-align:right;margin-top:3px;height:12px;line-height:12px;}
.msg-status.self-status{color:#8d8d8d;}
.msg-status.failed{color:#d93026;}
.msg-stack{max-width:78%;display:flex;flex-direction:column;}
.msg-stack.self{align-items:flex-end;}
.msg-stack.other{align-items:flex-start;}
.chat-empty{color:#9a9a9a;text-align:center;padding:60px 20px;font-size:13px;line-height:22px;}
.composer{
  flex:0 0 auto;background:#f7f7f7;border-top:1px solid #dedede;
  padding:8px 9px calc(8px + env(safe-area-inset-bottom));
  display:flex;align-items:flex-end;gap:8px;z-index:8;
}
.composer textarea{
  flex:1;min-width:0;resize:none;border:0;border-radius:7px;background:#fff;padding:9px 10px;
  font-size:16px;line-height:21px;max-height:112px;outline:none;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.025);
}
.composer textarea::-webkit-scrollbar{display:none;width:0;height:0;}
.composer button{
  border:0;border-radius:6px;background:var(--jc-green);color:#fff;font-size:15px;font-weight:500;
  height:36px;padding:0 14px;min-width:58px;
}
.composer button:disabled{background:#b9dfc6;color:rgba(255,255,255,.92);}
.composer button:not(:disabled){box-shadow:0 1px 2px rgba(0,0,0,.08);}
.login-screen{
  height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#f3f6f4 0%,#ededed 55%,#e8e8e8 100%);padding:24px;
}
.login-logo{
  width:76px;height:76px;border-radius:18px;background:var(--jc-green);display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:34px;font-weight:700;box-shadow:0 10px 24px rgba(7,193,96,.22);margin-bottom:16px;
}
.login-title{font-size:24px;font-weight:700;letter-spacing:1px;margin-bottom:6px;}
.login-sub{font-size:13px;color:#8b8b8b;margin-bottom:26px;}
.login-card{width:100%;max-width:360px;background:#fff;border-radius:14px;padding:18px 16px 16px;box-shadow:0 6px 24px rgba(0,0,0,.06);}
.login-card label{display:block;font-size:12px;color:#888;margin:0 2px 6px;}
.login-card input{
  width:100%;border:1px solid #e2e2e2;border-radius:9px;padding:11px 12px;font-size:16px;margin-bottom:13px;outline:none;background:#fafafa;
}
.login-card input:focus{border-color:#b9e4c9;background:#fff;}
.login-btn{
  width:100%;border:0;border-radius:9px;background:var(--jc-green);color:#fff;font-size:16px;font-weight:600;
  padding:11px 0;margin-top:3px;
}
.login-btn:disabled{background:#b9dfc6;}
.login-error{min-height:18px;font-size:12px;color:#d93026;padding:2px 2px 8px;}
.login-hint{font-size:11px;color:#4C6355;text-align:center;margin-top:16px;line-height:18px;}
.toast{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-50%) scale(.96);
  background:rgba(20,20,20,.82);color:#fff;font-size:13px;line-height:20px;padding:10px 14px;
  border-radius:8px;z-index:100;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;max-width:80%;text-align:center;
}
.toast.show{opacity:1;transform:translate(-50%,-50%) scale(1);}
.skeleton{padding:14px;}
.skeleton-line{height:16px;background:#e3e3e3;border-radius:8px;margin-bottom:9px;animation:pulse 1.2s infinite ease-in-out;}
@keyframes pulse{0%,100%{opacity:.55}50%{opacity:1}}
@media (min-width: 700px){
  .screen,.chat-screen{max-width:520px;margin:0 auto;box-shadow:0 0 0 1px rgba(0,0,0,.04);}
  #app{background:#e4e4e4;}
}
/* ===== 姜聊风格首页 / 田友簿 / 田地 / 我 ===== */
.jc-header{
  height:calc(44px + env(safe-area-inset-top));flex:0 0 auto;display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;
  padding:env(safe-area-inset-top) 6px 0;background:#ededed;position:relative;z-index:5;
}
.jc-header-left,.jc-header-right{min-width:0;display:flex;align-items:center;}
.jc-header-right{justify-content:flex-end;}
.jc-title{font-size:17px;font-weight:600;line-height:24px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.2px;}
.jc-title-count{font-weight:400;}
.jc-icon-btn{
  width:40px;height:40px;border:0;border-radius:10px;background:transparent;color:#1a1a1a;
  display:flex;align-items:center;justify-content:center;padding:0;
}
.jc-icon-btn:active{background:rgba(0,0,0,.06);}
.jc-icon-btn svg{width:25px;height:25px;}
.jc-search-wrap{flex:0 0 auto;background:#ededed;padding:0 10px 8px;}
.jc-search{
  height:36px;background:#fff;border-radius:8px;display:flex;align-items:center;gap:6px;padding:0 9px;
}
.jc-search svg{width:16px;height:16px;color:#8d8d8d;flex:0 0 auto;}
.jc-search input{
  flex:1;min-width:0;border:0;outline:none;background:transparent;color:#111;
  font-size:16px;line-height:22px;padding:0;
}
.jc-search input::placeholder{color:#b4b4b4;}
.jc-list{background:#ededed;}
.conversation{min-height:66px;padding:9px 14px;gap:11px;border-bottom:1px solid #ededed;}
.conv-avatar{position:relative;flex:0 0 auto;line-height:0;}
.conv-badge{
  position:absolute;top:-6px;right:-6px;min-width:17px;height:17px;border-radius:9px;
  background:#fa5151;border:1.5px solid #fff;color:#fff;font-size:10px;line-height:15px;
  text-align:center;padding:0 4px;font-weight:500;z-index:2;
}
.conv-name{font-size:17px;font-weight:500;line-height:23px;}
.conv-last{font-size:13.5px;color:#9a9a9a;line-height:20px;margin-top:1px;}
.conv-side{width:66px;}
.conv-time{font-size:11px;color:#b0b0b0;}
.badge{display:none;}
.tabbar{height:calc(56px + env(safe-area-inset-bottom));background:#f7f7f7;border-top:1px solid #d6d6d6;}
.tab{padding:4px 0 3px;font-size:11.5px;gap:1px;}
.tab svg{width:26px;height:26px;}
.tab-badge{
  position:absolute;top:1px;left:calc(50% + 12px);min-width:17px;height:17px;border-radius:9px;
  background:#fa5151;color:#fff;font-size:10px;line-height:17px;text-align:center;padding:0 4px;
  border:1px solid #fff;
}
.tab-dot{
  position:absolute;top:5px;left:calc(50% + 12px);width:9px;height:9px;border-radius:50%;
  background:#fa5151;border:1.5px solid #f7f7f7;
}
.contacts-group{background:#fff;border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;}
.contacts-row{
  width:100%;border:0;background:#fff;display:flex;align-items:center;gap:12px;
  padding:10px 14px;border-bottom:1px solid #ededed;text-align:left;min-height:60px;
}
.contacts-row:active{background:#f3f3f3;}
.contact-icon{
  width:40px;height:40px;border-radius:7px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;
  color:#fff;background:linear-gradient(135deg,#f6ad55,#f08a35);
}
.contact-icon svg{width:23px;height:23px;}
.contacts-row .main{flex:1;min-width:0;}
.contacts-row .name{font-size:17px;font-weight:500;line-height:23px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.contacts-row .account{font-size:12px;color:#9b9b9b;line-height:18px;margin-top:1px;}
.contacts-row .chevron{color:#bcbcbc;width:18px;height:18px;flex:0 0 auto;}
.contacts-row .chevron svg{width:18px;height:18px;display:block;}
.contacts-empty{padding:34px 20px;text-align:center;color:#9a9a9a;font-size:13px;line-height:21px;background:#fff;}
.new-friends-badge{
  min-width:18px;height:18px;border-radius:9px;background:#fa5151;color:#fff;font-size:10px;
  line-height:18px;text-align:center;padding:0 5px;margin-left:auto;
}
.add-page{background:#ededed;}
.add-search-card{background:#fff;padding:12px;border-bottom:1px solid #e4e4e4;}
.add-search-inner{display:flex;gap:8px;}
.add-search-inner input{
  flex:1;min-width:0;border:1px solid #e2e2e2;border-radius:8px;background:#f7f7f7;
  padding:9px 11px;font-size:16px;outline:none;
}
.add-search-inner button{
  border:0;border-radius:8px;background:var(--jc-green);color:#fff;padding:0 15px;font-size:14px;font-weight:500;
}
.add-result-wrap{padding:12px;}
.search-result{padding:0;background:transparent;}
.search-card{
  border:0;border-radius:10px;padding:14px;display:flex;align-items:center;gap:12px;background:#fff;
}
.add-tip{padding:12px 16px 0;color:#9a9a9a;font-size:12px;line-height:20px;}
.friend-profile-card{
  margin-top:12px;background:#fff;border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;
  padding:22px 18px 18px;display:flex;align-items:center;gap:15px;
}
.friend-profile-card .info{min-width:0;flex:1;}
.friend-profile-card .name{font-size:20px;font-weight:600;line-height:27px;word-break:break-all;}
.friend-profile-card .account{font-size:13px;color:#4C6355;line-height:20px;margin-top:3px;word-break:break-all;}
.friend-profile-card .state-line{font-size:12px;color:#9a9a9a;line-height:18px;margin-top:5px;}
.status-pill{
  display:inline-block;vertical-align:middle;margin-left:6px;
  font-size:10px;line-height:16px;padding:0 5px;border-radius:4px;
  background:#f2f2f2;color:#888;font-weight:400;letter-spacing:0;
}
.status-pill.off{background:#fff1f0;color:#d93026;}
.friend-action-main{background:#fff;border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;padding:14px 16px;}
.friend-action-main button{
  width:100%;border:0;border-radius:8px;background:var(--jc-green);color:#fff;padding:12px 0;
  font-size:16px;font-weight:500;
}
.friend-danger-wrap{padding:26px 16px 34px;}
.friend-danger{
  width:100%;border:0;border-radius:8px;background:#fff;color:#d93026;font-size:16px;padding:12px 0;
  border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;
}
.discover-group{margin-top:10px;background:#fff;border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;}
.discover-row{
  width:100%;border:0;background:#fff;display:flex;align-items:center;gap:12px;
  padding:12px 14px;border-bottom:1px solid #ededed;text-align:left;min-height:56px;
}
.discover-row:active{background:#f3f3f3;}
.discover-row:last-child{border-bottom:0;}
.discover-icon{
  width:30px;height:30px;border-radius:7px;display:flex;align-items:center;justify-content:center;
  color:#fff;font-size:15px;font-weight:600;flex:0 0 auto;
}
.discover-icon svg{width:21px;height:21px;}
.discover-row .label{flex:1;font-size:16px;color:#222;}
.discover-note{font-size:12px;color:#4C6355;}
.discover-row .chevron{width:18px;height:18px;color:#bdbdbd;margin-left:2px;}
.me-content{padding-top:env(safe-area-inset-top);background:#ededed;}
.me-profile{
  width:100%;border:0;background:#fff;display:flex;align-items:center;gap:15px;padding:22px 18px 20px;
  text-align:left;border-bottom:1px solid #e2e2e2;
}
.me-profile:active{background:#f5f5f5;}
.me-profile .info{flex:1;min-width:0;}
.me-profile .name{font-size:20px;font-weight:600;line-height:27px;display:flex;align-items:center;gap:7px;}
.me-profile .account{font-size:12px;color:#4C6355;line-height:19px;margin-top:3px;}
.me-profile .chevron{width:18px;height:18px;color:#bdbdbd;}
.me-group{margin-top:10px;background:#fff;border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;}
.me-row{
  width:100%;border:0;background:#fff;display:flex;align-items:center;gap:12px;padding:13px 15px;
  border-bottom:1px solid #ededed;text-align:left;font-size:16px;min-height:52px;
}
.me-row:active{background:#f3f3f3;}
.me-row:last-child{border-bottom:0;}
.me-icon{width:28px;height:28px;border-radius:6px;display:flex;align-items:center;justify-content:center;color:#fff;flex:0 0 auto;}
.me-icon svg{width:17px;height:17px;}
.me-icon.green{background:#07c160;}
.me-icon.blue{background:#4b8bd6;}
.me-icon.orange{background:#e9a23b;}
.me-icon.gray{background:#8c8c8c;}
.me-row .label{flex:1;}
.me-row .chevron{width:18px;height:18px;color:#bdbdbd;}
.me-logout-wrap{padding:24px 14px 34px;}
.me-logout{
  width:100%;border:0;border-radius:8px;background:#fff;color:#d93026;font-size:16px;padding:12px 0;
  border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;
}
.device-page{background:#ededed;}
.device-list{background:#fff;border-top:1px solid #e2e2e2;border-bottom:1px solid #e2e2e2;}
.device-item{padding:12px 15px;border-bottom:1px solid #ededed;font-size:13px;color:#555;line-height:20px;}
.device-item:last-child{border-bottom:0;}
.device-item .dev-title{font-size:14px;color:#222;font-weight:500;margin-bottom:2px;}
.demo-status{display:none;}
@media (min-width:700px){
  .jc-header,.jc-search-wrap,.tabbar,.me-content{max-width:520px;margin-left:auto;margin-right:auto;}
}
@media (min-width:900px){
  .demo-status{
    display:flex;position:fixed;top:0;left:50%;transform:translateX(-50%);width:520px;height:26px;
    padding:5px 16px 2px;background:#ededed;font-size:12px;font-weight:600;z-index:20;
    align-items:center;justify-content:space-between;color:#111;
  }
  #app{top:calc(var(--vvTop) + 26px)!important;height:calc(var(--vvHeight) - 26px)!important;}
}

/* ===== 姜聊 UI 精修：更接近姜聊移动端的层级与触控反馈 ===== */
:root{
  --jc-green:#07c160;
  --jc-bg:#ededed;
  --jc-line:#e7e7e7;
  --jc-muted:#4C6355;
}
button{ -webkit-appearance:none; }
.screen,.chat-screen{background:var(--jc-bg);}
.jc-header,.chat-header,.header{box-shadow:0 1px 0 rgba(0,0,0,.015);}
.conversation{min-height:72px;padding:10px 15px;transition:background .12s ease;}
.conversation:active,.contacts-row:active,.discover-row:active,.me-row:active{background:#f2f2f2;}
.conv-avatar .avatar{border-radius:6px;box-shadow:0 1px 2px rgba(0,0,0,.05);}
.conv-name{font-size:16.5px;letter-spacing:.05px;}
.conv-last{font-size:13px;color:#4C6355;line-height:19px;}
.conv-time{font-size:11px;color:#b3b3b3;}
.chat-header{height:calc(50px + env(safe-area-inset-top));padding-left:8px;padding-right:10px;}
.chat-header .title{font-size:17px;font-weight:600;letter-spacing:.1px;}
.message-list{
  padding:14px 12px 18px;
  background:#ededed;
}
.time-divider{
  margin:14px 0 16px;
  color:#a5a5a5;
  font-size:11px;
  letter-spacing:.1px;
}
.msg-row{gap:8px;margin-bottom:13px;align-items:flex-start;}
.msg-row .avatar{width:40px;height:40px;border-radius:5px;box-shadow:0 1px 2px rgba(0,0,0,.04);}
.msg-stack{max-width:min(78%, 340px);padding-top:1px;}
.msg-bubble{
  max-width:100%;
  padding:9px 11px;
  border-radius:7px;
  font-size:16px;
  line-height:1.48;
  letter-spacing:.05px;
  box-shadow:0 1px 1px rgba(0,0,0,.025);
  user-select:text;
  -webkit-user-select:text;
}
.msg-bubble.other{
  background:#fff;
  border:1px solid #e8e8e8;
}
.msg-bubble.other:before{
  left:-6px;top:13px;
  border-right-color:#fff;
}
.msg-bubble.self{
  background:#95ec69;
  border:1px solid #8fe263;
}
.msg-bubble.self:after{right:-6px;top:13px;border-left-color:#95ec69;}
.msg-bubble.self.failed{background:#ffdede;border-color:#f3b8b8;}
.msg-bubble.self.failed:after{border-left-color:#ffdede;}
.msg-bubble.self.pending{background:#95ec69;}
.msg-status{font-size:10px;min-height:13px;line-height:13px;margin-top:3px;color:#a3a3a3;}
.msg-status .retry-link{
  border:0;background:transparent;padding:0;color:#d93026;font-size:10px;text-decoration:underline;
}
.composer{
  min-height:56px;
  padding:7px 9px calc(7px + env(safe-area-inset-bottom));
  gap:7px;
  background:#f7f7f7;
  border-top:1px solid #dcdcdc;
}
.composer textarea{
  min-height:36px;
  max-height:112px;
  border-radius:7px;
  background:#fff;
  border:1px solid #e6e6e6;
  padding:8px 10px;
  line-height:20px;
  font-size:16px;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.composer textarea::-webkit-scrollbar{display:none;width:0;height:0;}
.composer .tool-btn{
  width:36px;min-width:36px;height:36px;padding:0;
  display:flex;align-items:center;justify-content:center;
  color:#555;background:transparent;border:1px solid #c9c9c9;
  border-radius:50%;font-size:20px;font-weight:400;
}
.composer .tool-btn:active{background:#e8e8e8;}
.composer .tool-btn:disabled{opacity:.4;}
.composer textarea:disabled{background:#f2f2f2;color:#8f8f8f;}
.composer #sendBtn{
  min-width:58px;height:36px;padding:0 13px;border-radius:6px;
  background:var(--jc-green);font-size:14px;font-weight:500;
  box-shadow:0 1px 1px rgba(0,0,0,.04);
}
.composer #sendBtn:disabled{background:#b9dfc6;box-shadow:none;}
.emoji-panel{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:repeat(8,minmax(0,1fr));
  gap:3px;
  padding:9px 10px;
  background:#f7f7f7;
  border-top:1px solid #e4e4e4;
}
.emoji-panel button{
  border:0;background:transparent;border-radius:7px;
  height:36px;font-size:22px;display:flex;align-items:center;justify-content:center;
}
.emoji-panel button:active{background:#e8e8e8;}
.message-actions-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.24);z-index:40;
  display:flex;align-items:flex-end;justify-content:center;
}
.message-actions{
  width:min(100%,520px);padding:10px 12px calc(12px + env(safe-area-inset-bottom));
  background:#f6f6f6;border-radius:14px 14px 0 0;
  box-shadow:0 -5px 24px rgba(0,0,0,.08);
}
.message-actions button{
  width:100%;border:0;border-radius:8px;background:#fff;
  padding:13px 12px;margin:4px 0;font-size:15px;text-align:center;
}
.message-actions button.cancel{color:#777;margin-top:9px;}
.hidden{display:none!important;}
.toast{z-index:100;}
@media (min-width:700px){
  .chat-screen{max-width:520px;margin:0 auto;box-shadow:0 0 0 1px rgba(0,0,0,.04);}
}


:root{
  --jc-bg:#edf7ee;
  --jc-bg-soft:#f5fbf5;
  --jc-line:#dbeadd;
  --jc-green:#17a35b;
  --jc-green-press:#128a4c;
  --jc-text:#1b1f1b;
  --jc-muted:#7d8c80;
  --jc-card:#ffffff;
  --jc-red:#e5484d;
}
html,body{
  background:var(--jc-bg)!important;
  color:var(--jc-text)!important;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","Microsoft YaHei","Helvetica Neue",Arial,sans-serif!important;
  -webkit-font-smoothing:antialiased;
  text-rendering:geometricPrecision;
  letter-spacing:.2px;
}
#app,.screen,.chat-screen,.me-content,.add-page,.device-page{
  background:var(--jc-bg)!important;
}
.header,.jc-header,.chat-header{
  background:var(--jc-bg-soft)!important;
  border-bottom:1px solid var(--jc-line)!important;
  box-shadow:none!important;
}
.jc-search-wrap,.composer,.tabbar{
  background:var(--jc-bg-soft)!important;
  border-color:var(--jc-line)!important;
}
.tabbar{box-shadow:0 -1px 0 rgba(0,0,0,.02);}
.jc-title,.header-title,.chat-header .title{
  color:var(--jc-text)!important;
  font-weight:600!important;
  letter-spacing:.3px!important;
}
.jc-list,.content,.screen,.chat-screen,.me-content,.add-page,.device-page{
  background:var(--jc-bg)!important;
}
.conversation,.contacts-row,.me-row,.me-profile,.discover-row,.add-search-card,
.device-list,.admin-block,.card,.login-card,.friend-profile-card,.friend-action-main,
.search-card,.friend-danger,.me-logout,.admin-user-row,.device-item{
  background:var(--jc-card)!important;
}
.conversation,.contacts-row,.me-row,.discover-row,.menu-item{
  border-bottom-color:var(--jc-line)!important;
}
.conversation:active,.contacts-row:active,.discover-row:active,.me-row:active,
.menu-item:active,.me-profile:active,.friend-action-main:active{
  background:#eaf5eb!important;
}
.jc-search{
  background:#fff!important;
  border:1px solid var(--jc-line)!important;
  border-radius:9px!important;
  height:38px!important;
}
.jc-search input{font-size:16.5px!important;letter-spacing:.2px;}
.conv-name,.contacts-row .name,.me-profile .name,.friend-profile-card .name{
  font-size:17px!important;
  font-weight:600!important;
  letter-spacing:.2px!important;
  color:#171b17!important;
}
.conv-last,.contacts-row .account,.me-profile .account{
  font-size:13.5px!important;
  color:var(--jc-muted)!important;
}
.tab{color:#68786b!important;font-weight:500!important;}
.tab.active{color:var(--jc-green)!important;}
.tabbar{background:#f7fcf7!important;}
.btn,.mini-btn,.login-btn,.composer #sendBtn,.add-search-inner button,
.friend-action-main button,.search-box button{
  border-radius:8px!important;
  font-weight:600!important;
}
.mini-btn.green,.login-btn,.composer #sendBtn,.add-search-inner button,
.friend-action-main button,.search-box button{
  background:var(--jc-green)!important;
  box-shadow:0 1px 2px rgba(23,163,91,.16)!important;
}
.mini-btn.green:active,.login-btn:active,.composer #sendBtn:active{background:var(--jc-green-press)!important;}
.composer{
  background:#f6fbf6!important;
  border-top:1px solid var(--jc-line)!important;
  padding:9px 10px calc(9px + env(safe-area-inset-bottom))!important;
}
.composer textarea{
  background:#fff!important;
  border:1px solid #d8e8da!important;
  border-radius:9px!important;
  font-size:16.5px!important;
  line-height:22px!important;
  color:#1a1e1a!important;
}
.composer #sendBtn{height:38px!important;min-width:62px!important;font-size:15px!important;}
.message-list{background:var(--jc-bg)!important;padding:14px 12px 20px!important;}
.msg-bubble.other{background:#fff!important;border:1px solid #dceadf!important;border-radius:8px!important;}
.msg-bubble.self{background:#a9e58f!important;border:1px solid #98dc7d!important;border-radius:8px!important;}
.msg-bubble.self:after{border-left-color:#a9e58f!important;}
.msg-bubble.other:before{border-right-color:#fff!important;}
.msg-bubble{font-size:16.5px!important;line-height:1.5!important;letter-spacing:.2px!important;}
.msg-status{font-size:10.5px!important;}
.chat-empty,.empty,.contacts-empty,.device-item,.admin-device-row{color:var(--jc-muted)!important;}
.login-screen{
  background:linear-gradient(180deg,#f7fcf7 0%,#edf7ee 58%,#e6f2e8 100%)!important;
  padding:26px!important;
}
.login-logo{
  background:linear-gradient(135deg,#24b86a,#128a4c)!important;
  box-shadow:0 12px 28px rgba(23,163,91,.20)!important;
}
.login-title{font-size:25px!important;letter-spacing:1.5px!important;color:#172018!important;}
.login-sub{font-size:13.5px!important;color:#7c8d7f!important;}
.login-card{
  border-radius:16px!important;
  box-shadow:0 8px 28px rgba(26,70,39,.08)!important;
  padding:20px 18px 16px!important;
}
.login-card input{
  border:1px solid #d8e8da!important;
  background:#f9fdf9!important;
  border-radius:10px!important;
  padding:12px!important;
  font-size:16.5px!important;
}
.login-hint{color:#95a497!important;font-size:11.5px!important;}
.me-profile{padding:24px 18px 22px!important;}
.me-icon.green{background:var(--jc-green)!important;}
.admin-block-title,.section-title{color:#526654!important;font-weight:600!important;}
.stat-card{border:1px solid var(--jc-line)!important;border-radius:12px!important;background:#fff!important;}
.stat-num{font-size:25px!important;color:#162016!important;}
.stat-label{font-size:12.5px!important;color:#829184!important;}
.friend-profile-card{border-top:1px solid var(--jc-line)!important;border-bottom:1px solid var(--jc-line)!important;}
.friend-action-main button{padding:13px 0!important;}
.friend-danger,.me-logout{color:var(--jc-red)!important;border-color:var(--jc-line)!important;}
.request-row,.admin-user-row,.admin-device-row{border-color:var(--jc-line)!important;}
.device-item{border-color:var(--jc-line)!important;}
@media (min-width:700px){
  #app{background:#dfeee1!important;}
  .screen,.chat-screen{box-shadow:0 0 0 1px rgba(38,82,47,.08)!important;}
}

/* 用户明确同意：隐藏 Netlify 免费版注入的徽标 */
iframe#nl-badge-frame,
iframe[title="Powered by Netlify"],
[data-netlify-badge],
.netlify-badge{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  opacity:0!important;
  pointer-events:none!important;
}

.avatar svg,.avatar img,.cartoon-avatar-img{display:block;width:100%;height:100%;object-fit:cover;}
.avatar{border-radius:50%!important;background:#fff!important;box-shadow:0 1px 3px rgba(25,45,30,.12)!important;overflow:hidden;}
.avatar-xs,.avatar-sm{border-radius:50%!important;}
.login-title{font-size:27px!important;letter-spacing:2px!important;font-weight:700!important;}
.login-sub{font-size:13.5px!important;color:#718474!important;margin-bottom:24px!important;}
.login-card{border:1px solid #e2f0e4!important;border-radius:18px!important;box-shadow:0 10px 30px rgba(32,80,45,.07)!important;}
.login-card label{font-size:12.5px!important;color:#637665!important;font-weight:600!important;letter-spacing:.4px!important;}
.login-btn{height:48px!important;border-radius:10px!important;font-size:16.5px!important;letter-spacing:1px!important;}
.login-hint{color:#93a397!important;}
.jc-account{font-size:12.5px!important;color:#819184!important;line-height:18px!important;}
.jc-id-line{font-size:12.5px!important;color:#7c8f80!important;line-height:19px!important;margin-top:4px!important;}
.jc-id-line strong{color:#526b56;font-weight:600;}
.profile-id-card{background:#fff;border-top:1px solid #e1eee3;border-bottom:1px solid #e1eee3;margin-top:12px;padding:14px 17px;}
.profile-id-card .row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px;color:#495d4c;}
.profile-id-card .row span:first-child{color:#7c8f80;font-size:12.5px;}
.profile-id-card .id-strong{font-size:15px;font-weight:600;color:#263a29;letter-spacing:.4px;}
.avatar-picker-wrap{margin-top:12px;background:#fff;border-top:1px solid #e1eee3;border-bottom:1px solid #e1eee3;padding:14px 14px 16px;}
.avatar-picker-title{font-size:13px;color:#6d816f;font-weight:600;margin:0 2px 10px;}
.avatar-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;}
.avatar-choice{border:1px solid #dfeee1;background:#f7fcf7;border-radius:12px;padding:7px;display:flex;align-items:center;justify-content:center;position:relative;}
.avatar-choice.selected{border:2px solid #17a35b;background:#eff9f1;padding:6px;}
.avatar-choice .avatar{width:54px!important;height:54px!important;}
.avatar-choice .check{position:absolute;right:4px;bottom:4px;width:16px;height:16px;border-radius:50%;background:#17a35b;color:#fff;font-size:10px;line-height:16px;text-align:center;}
.avatar-picker-actions{display:flex;gap:8px;margin-top:12px;}
.avatar-picker-actions button{flex:1;border:0;border-radius:8px;padding:10px 0;font-size:14px;font-weight:600;}
.avatar-picker-actions .cancel{background:#f0f4f0;color:#657868;}
.avatar-picker-actions .save{background:#17a35b;color:#fff;}
.msg-avatar-btn{border:0;background:transparent;padding:0;margin:0;line-height:0;border-radius:50%;flex:0 0 auto;}
.msg-avatar-btn:active{opacity:.82;}
.msg-avatar-btn .avatar{width:40px!important;height:40px!important;}
.chat-header .title{max-width:62%!important;}

:root{
  --jc-bg:#eaf4ec;
  --jc-bg-soft:#f2faF3;
  --jc-card:#ffffff;
  --jc-line:#dce9de;
  --jc-green:#16a35a;
  --jc-green-deep:#0f8c4b;
  --jc-green-pale:#e7f7ed;
  --jc-text:#17211a;
  --jc-muted:#4C6355;
  --jc-shadow:0 6px 22px rgba(22,70,38,.07);
  --appHeight:100%;
  --kbInset:0px;
}
html{font-size:16px;}
body{
  background:radial-gradient(120% 80% at 50% 0%,#f7fcf8 0%,#eaf4ec 42%,#e5f0e7 100%)!important;
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC","HarmonyOS Sans SC","Microsoft YaHei",sans-serif!important;
  font-weight:450;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
#app{top:0!important;height:var(--appHeight)!important;left:0;right:0;}
.screen,.chat-screen{background:transparent!important;}
.content{background:transparent!important;scroll-behavior:auto;}
.header,.jc-header,.chat-header{
  background:rgba(247,252,248,.94)!important;
  backdrop-filter:saturate(160%) blur(14px);
  -webkit-backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid rgba(210,228,214,.9)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.7) inset!important;
}
.jc-header{height:calc(54px + env(safe-area-inset-top))!important;}
.header{height:calc(54px + env(safe-area-inset-top))!important;}
.header-title,.jc-title{
  font-size:18px!important;
  font-weight:700!important;
  letter-spacing:.5px!important;
  color:#17211a!important;
}
.jc-title-count{font-size:13px!important;color:#7b8c7f!important;font-weight:500!important;margin-left:3px;}
.jc-icon-btn,.icon-btn{
  width:40px!important;height:40px!important;border-radius:12px!important;
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(214,231,217,.9)!important;
  box-shadow:0 1px 2px rgba(30,70,42,.05)!important;
  color:#233127!important;
}
.jc-icon-btn:active,.icon-btn:active{background:#e9f6ec!important;transform:scale(.97);}
.jc-icon-btn svg,.icon-btn svg{width:21px!important;height:21px!important;}

/* 底部导航：始终固定在满屏底部，不被键盘顶起 */
.tabbar{
  flex:0 0 auto!important;
  position:relative!important;
  bottom:auto!important;
  background:rgba(250,253,250,.96)!important;
  backdrop-filter:saturate(170%) blur(16px);
  -webkit-backdrop-filter:saturate(170%) blur(16px);
  border-top:1px solid rgba(204,224,208,.9)!important;
  box-shadow:0 -6px 18px rgba(25,70,40,.04)!important;
  padding:5px 4px calc(4px + env(safe-area-inset-bottom))!important;
  z-index:20!important;
  transform:translateZ(0);
}
.tab{
  gap:1px!important;
  padding:2px 0!important;
  background:transparent!important;
  border:0!important;
  min-height:50px!important;
}
.tab-icon{
  width:30px!important;height:27px!important;display:flex!important;align-items:center!important;justify-content:center!important;
  border-radius:10px!important;transition:background .16s ease,transform .16s ease;
}
.tab-icon svg{width:24px!important;height:24px!important;stroke-width:1.8!important;}
.tab-label{font-size:12px!important;line-height:16px!important;font-weight:600!important;letter-spacing:.2px!important;color:#5f6f63!important;}
.tab.active .tab-icon{background:var(--jc-green-pale)!important;transform:translateY(-1px);}
.tab.active .tab-icon svg{color:var(--jc-green-deep)!important;}
.tab.active .tab-label{color:var(--jc-green-deep)!important;font-weight:700!important;}
.tab:active .tab-icon{transform:scale(.94);}
.tab-dot,.tab .dot{
  top:2px!important;left:calc(50% + 8px)!important;min-width:15px!important;height:15px!important;
  line-height:15px!important;font-size:10px!important;font-weight:600!important;
  background:#f05454!important;box-shadow:0 2px 5px rgba(240,84,84,.34)!important;
}

/* 通用卡片与质感 */
.contacts-group,.me-group,.discover-group,.profile-card,.admin-block,.device-list{
  border-radius:14px!important;
  border:1px solid rgba(215,232,218,.95)!important;
  box-shadow:var(--jc-shadow)!important;
  overflow:hidden!important;
  background:#fff!important;
}
.contacts-row,.me-row,.discover-row,.conversation{
  padding:12px 14px!important;
  min-height:60px!important;
  background:#fff!important;
  border-bottom:1px solid #edf3ee!important;
}
.contacts-row:last-child,.me-row:last-child,.discover-row:last-child,.conversation:last-child{border-bottom:0!important;}
.contacts-row:active,.me-row:active,.discover-row:active,.conversation:active{background:#f1faf3!important;}
.contacts-row .name,.conv-name,.me-profile .name{font-size:16.5px!important;font-weight:650!important;color:#18231b!important;letter-spacing:.2px!important;}
.contacts-row .account,.conv-last,.me-profile .account{font-size:13px!important;color:#7a8a7d!important;}
.contacts-row .chevron,.me-row .chevron,.discover-row .chevron{color:#b2c0b5!important;}
.contacts-row .chevron svg,.me-row .chevron svg{width:16px!important;height:16px!important;}

/* 田友簿：字母分组 + 间距 + 索引 */
.contacts-wrap{padding:10px 30px 28px 12px!important;position:relative;}
.discover-group{margin:12px 12px 0!important;}
.new-friends-card{
  border:1px solid rgba(215,232,218,.95)!important;
  border-radius:14px!important;
  box-shadow:var(--jc-shadow)!important;
  margin-bottom:14px!important;
  min-height:64px!important;
}
.new-friends-card .contact-icon{
  width:44px!important;height:44px!important;border-radius:12px!important;
  background:linear-gradient(135deg,#34c27a,#159457)!important;
  color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;
  box-shadow:0 4px 10px rgba(22,163,90,.22)!important;
}
.new-friends-card .contact-icon svg{width:23px!important;height:23px!important;}
.new-friends-card .sub{font-size:12px!important;color:#4C6355!important;line-height:17px!important;margin-top:2px!important;}
.letter-group{margin-bottom:12px;}
.letter-head{
  position:sticky;top:0;z-index:3;
  display:flex;align-items:center;justify-content:space-between;
  padding:5px 7px 5px 3px!important;
  background:linear-gradient(180deg,rgba(234,244,236,.98),rgba(234,244,236,.9))!important;
  backdrop-filter:blur(6px);
  font-size:12.5px!important;font-weight:750!important;color:#5c7563!important;
  letter-spacing:.7px;
}
.letter-head em{font-style:normal;font-size:11px;font-weight:500;color:#9aab9d;}
.letter-head span{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;border-radius:7px;background:rgba(255,255,255,.7);border:1px solid #d9e9dc;}
.alpha-index{
  position:fixed;
  right:max(3px,calc((100vw - 520px)/2 + 3px))!important;
  top:46%!important;
  transform:translateY(-50%);
  display:flex;flex-direction:column;align-items:center;gap:1px;
  z-index:9;
}
.alpha-index button{
  width:22px;height:18px;border:0;background:transparent;padding:0;
  font-size:11px;font-weight:700;color:#6d8573;border-radius:6px;
}
.alpha-index button:active{background:#dff2e4;color:#0f7e44;}

/* 我的页面 */
.me-content{padding:calc(12px + env(safe-area-inset-top)) 12px 30px!important;}
.me-profile{
  border-radius:16px!important;border:1px solid rgba(214,232,218,.95)!important;
  box-shadow:var(--jc-shadow)!important;padding:20px 17px!important;margin-bottom:12px!important;
  background:linear-gradient(135deg,#ffffff 0%,#f8fdf9 72%,#f1faf3 100%)!important;
}
.me-profile .admin-tag{margin-left:6px;}
.me-profile-hint{font-size:11.5px!important;color:#8fa094!important;line-height:17px!important;margin-top:4px!important;}
.settings-page{padding-top:16px!important;padding-left:12px!important;padding-right:12px!important;}
.settings-note{font-size:12px!important;line-height:1.7!important;color:#8b9c8f!important;padding:0 6px 18px!important;}
.me-group{margin-bottom:12px!important;}
.me-row{min-height:54px!important;}
.me-icon{width:34px!important;height:34px!important;border-radius:10px!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 auto;margin-right:10px!important;}
.me-icon svg{width:19px!important;height:19px!important;}
.me-icon.green{background:#e4f7eb!important;color:#159a56!important;}
.me-icon.blue{background:#e8f1ff!important;color:#3478d4!important;}
.me-icon.orange{background:#fff1e4!important;color:#d28329!important;}
.me-icon.gray{background:#eef1ef!important;color:#728178!important;}
.about-card{
  border-radius:16px!important;border:1px solid rgba(214,232,218,.95)!important;
  background:#fff!important;box-shadow:var(--jc-shadow)!important;
  padding:16px 15px 14px!important;margin-top:12px;
}
.about-head{display:flex;align-items:center;gap:11px;margin-bottom:13px;}
.about-logo{
  width:43px;height:43px;border-radius:13px;background:linear-gradient(135deg,#2fbf76,#118a4c);
  color:#fff;font-size:18px;font-weight:750;display:flex;align-items:center;justify-content:center;
  box-shadow:0 5px 14px rgba(18,150,83,.22);
}
.about-title{font-size:15px!important;font-weight:700!important;color:#1b2a1f!important;line-height:20px!important;}
.about-sub{font-size:11.5px!important;color:#8a9a8d!important;line-height:16px!important;}
.about-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:2px 0 12px;}
.about-metrics>div{background:#f4fbf5;border:1px solid #e3f1e6;border-radius:10px;padding:8px 5px;text-align:center;}
.about-metrics strong{display:block;font-size:16px;color:#15824a;line-height:20px;}
.about-metrics span{font-size:11px;color:#819285;}
.about-text{font-size:12.5px!important;line-height:1.65!important;color:#6f8174!important;margin:0 0 8px!important;}
.about-version{font-size:11px!important;color:#9aab9e!important;border-top:1px solid #edf4ee;padding-top:10px;margin-top:2px;}
.me-logout-wrap{padding:18px 0 10px!important;}
.me-logout{height:48px!important;border-radius:12px!important;background:#fff!important;font-size:15px!important;font-weight:600!important;box-shadow:var(--jc-shadow)!important;}

/* 个人主页 */
.profile-page{padding:12px 12px 36px!important;}
.profile-hero{
  border-radius:18px!important;border:1px solid rgba(214,232,218,.95)!important;
  background:linear-gradient(150deg,#ffffff 0%,#f4fcf6 68%,#e9f7ed 100%)!important;
  box-shadow:var(--jc-shadow)!important;padding:22px 18px 18px!important;text-align:center;margin-bottom:12px;
}
.profile-avatar-wrap{display:flex;justify-content:center;margin-bottom:10px;}
.profile-avatar-wrap .avatar{width:78px!important;height:78px!important;box-shadow:0 7px 20px rgba(22,60,35,.14)!important;}
.profile-avatar-btn{display:inline-flex;flex-direction:column;align-items:center;gap:7px;border:0;background:transparent;padding:0;color:#54705c;}
.profile-avatar-btn:active .avatar{transform:scale(.96);}
.profile-avatar-btn .avatar{transition:transform .14s ease;}
.profile-avatar-tip{font-size:11.5px;font-weight:650;color:#6d8375;background:#f1faf3;border:1px solid #dceee1;border-radius:20px;padding:2px 10px;}
.profile-name{font-size:23px!important;font-weight:750!important;color:#152219!important;line-height:30px!important;display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;}
.profile-account{font-size:13.5px!important;color:#687c6d!important;line-height:20px!important;margin-top:5px!important;}
.profile-account strong{color:#21643c;font-weight:700;letter-spacing:.5px;}
.profile-state{display:inline-flex;align-items:center;gap:5px;margin-top:9px;font-size:11.5px!important;font-weight:600!important;color:#21864d!important;background:#e9f8ee;border:1px solid #d5efdd;border-radius:20px;padding:4px 11px;}
.profile-state:before{content:"";width:6px;height:6px;border-radius:50%;background:#20a25c;}
.profile-state.off{color:#b76a25;background:#fff5e9;border-color:#f3dfc1;}
.profile-state.off:before{background:#d68b3a;}
.profile-muted{font-size:10.5px!important;font-weight:700;color:#b86b26;background:#fff3e2;border:1px solid #f0d9b8;border-radius:8px;padding:2px 7px;}
.profile-card{margin-bottom:12px!important;padding:4px 15px!important;display:block!important;align-items:initial!important;}
.profile-row{display:flex!important;align-items:center!important;justify-content:space-between;gap:10px;min-height:50px;border-bottom:1px solid #edf3ee;font-size:14.5px;}
.profile-row:last-child{border-bottom:0;}
.profile-row>span{width:76px;flex:0 0 auto;color:#7d8d81;font-size:13px;}
.profile-row>strong{flex:1;min-width:0;color:#24332a;font-weight:650;word-break:break-all;text-align:right;}
.profile-row>strong.ok{color:#15824a;}
.profile-row>strong.off{color:#c46c3d;}
.copy-mini{border:0;background:#eaf7ee;color:#15824a;border-radius:7px;font-size:11.5px;font-weight:700;padding:4px 9px;}
.profile-about{border-radius:14px!important;background:#f7fcf8!important;border:1px solid #e0efe3!important;padding:13px 15px;margin-bottom:14px;}
.profile-about-title{font-size:13px!important;font-weight:700!important;color:#365840!important;margin-bottom:5px;}
.profile-about p{font-size:12.5px!important;line-height:1.65!important;color:#718475!important;margin:0;}
.profile-actions{display:flex;gap:9px;margin-top:10px;}
.profile-btn{flex:1;border:0;border-radius:12px;min-height:48px;font-size:15px!important;font-weight:700!important;letter-spacing:.2px;}
.profile-btn.primary{background:linear-gradient(180deg,#1bad62,#139453)!important;color:#fff!important;box-shadow:0 5px 14px rgba(22,160,88,.24)!important;}
.profile-btn.primary:active{background:#118a4c!important;}
.profile-btn.soft{background:#eef7f0!important;color:#186737!important;border:1px solid #dcecdf!important;}
.profile-tip{font-size:12px;color:#b67330;text-align:center;margin-top:10px;line-height:18px;}
.friend-danger-wrap{padding:22px 0 0!important;}
.friend-danger{height:48px!important;border-radius:12px!important;background:#fff!important;border:1px solid #f2d9d9!important;box-shadow:var(--jc-shadow)!important;font-size:15px!important;font-weight:650!important;}

/* 管理后台 */
.admin-page{padding:12px 12px 30px!important;}
.admin-hero{
  border-radius:16px;background:linear-gradient(135deg,#1eaa61 0%,#128349 100%);
  padding:18px 17px;color:#fff;margin-bottom:12px;box-shadow:0 10px 24px rgba(22,140,78,.18);
}
.admin-hero-title{font-size:19px;font-weight:750;letter-spacing:.3px;line-height:26px;}
.admin-hero-sub{font-size:12px;opacity:.86;line-height:18px;margin-top:4px;}
.admin-stat-grid{gap:8px!important;margin-bottom:12px!important;}
.stat-card{border-radius:12px!important;padding:12px 8px!important;text-align:center!important;box-shadow:var(--jc-shadow)!important;}
.stat-num{font-size:23px!important;font-weight:750!important;color:#148049!important;line-height:28px!important;}
.stat-label{font-size:11.5px!important;color:#7d8c80!important;line-height:16px!important;}
.admin-block{padding:14px 12px!important;margin-bottom:12px!important;}
.admin-block-title{font-size:14px!important;font-weight:750!important;color:#35553e!important;margin:0 2px 10px!important;display:flex;align-items:center;justify-content:space-between;}
.admin-count{font-size:11px;color:#4C6355;background:#f1f8f2;border-radius:8px;padding:2px 8px;font-weight:600;}
.admin-form{gap:9px!important;}
.admin-form input{border:1px solid #dcecdf!important;background:#f8fdf9!important;border-radius:10px!important;padding:11px 12px!important;font-size:15px!important;}
.admin-user-card{border:1px solid #e0eee3;border-radius:12px;padding:12px 11px;margin-bottom:9px;background:#fcfefc;}
.admin-user-card.is-disabled{background:#fafafa;opacity:.92;}
.admin-user-head{display:flex;align-items:center;gap:10px;}
.admin-user-main{flex:1;min-width:0;}
.admin-user-name{font-size:15.5px;font-weight:700;color:#1c2b22;line-height:21px;display:flex;align-items:center;gap:5px;flex-wrap:wrap;}
.admin-user-sub{font-size:11.5px;color:#819185;line-height:17px;margin-top:2px;}
.admin-badges{display:flex;gap:5px;margin:8px 0 9px;}
.badge-on,.badge-off,.badge-mute{font-size:10.5px;font-weight:700;border-radius:7px;padding:2px 7px;line-height:16px;}
.badge-on{color:#16844a;background:#eaf8ef;border:1px solid #d4efdc;}
.badge-off{color:#8a6a4a;background:#f4f0eb;border:1px solid #e8ded0;}
.badge-mute{color:#b46922;background:#fff3e2;border:1px solid #f0d9b8;}
.admin-user-actions{display:flex;gap:6px;flex-wrap:wrap;}
.admin-user-actions .mini-btn{padding:6px 9px!important;font-size:12px!important;border-radius:8px!important;}
.admin-device-row{padding:11px 2px!important;font-size:12.5px!important;line-height:1.7!important;color:#687a6d!important;border-bottom:1px solid #edf3ee!important;}
.admin-device-row:last-child{border-bottom:0!important;}
.admin-device-row .dev-title{color:#2f4936!important;font-weight:650!important;}

/* 弹层与选择器 */
.jc-modal-backdrop{position:fixed;inset:0;z-index:60;background:rgba(18,34,23,.36);display:flex;align-items:flex-end;justify-content:center;backdrop-filter:blur(2px);animation:fadeIn .16s ease;}
.jc-modal{width:100%;max-width:520px;max-height:calc(100dvh - 10px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;background:#fbfefb;border-radius:22px 22px 0 0;padding:18px 18px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -18px 44px rgba(14,40,24,.18);animation:sheetUp .22s cubic-bezier(.22,.9,.36,1);}
@keyframes sheetUp{from{transform:translateY(28px);opacity:.65}to{transform:translateY(0);opacity:1}}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.sheet-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px;}
.sheet-title{font-size:17px;font-weight:750;color:#17261c;line-height:23px;}
.sheet-sub{font-size:11.5px;color:#819185;line-height:16px;margin-top:3px;}
.sheet-close{width:32px;height:32px;border:0;border-radius:9px;background:#edf5ee;color:#607564;font-size:20px;line-height:30px;padding:0;}
.sheet-input{width:100%;border:1px solid #d7e9db;background:#fff;border-radius:11px;padding:13px 12px;font-size:16px;outline:none;margin-bottom:14px;}
.sheet-input:focus{border-color:#1aa65b;box-shadow:0 0 0 3px rgba(26,166,91,.12);}
.sheet-actions{display:flex;gap:9px;position:sticky;bottom:-18px;background:#fbfefb;padding:10px 0 2px;z-index:2;}
.modal-avatar-grid{grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:2px;}
.avatar-choice{border-radius:12px!important;padding:6px!important;}
.avatar-choice .avatar{width:50px!important;height:50px!important;}
.avatar-choice.selected{border:2px solid #16a35a!important;background:#f0fbf3!important;padding:7px!important;}

/* 输入与按钮可读性 */
.login-card input,.search-box input,.jc-search input,.admin-form input,.composer textarea{font-weight:500!important;}
.login-card label{font-size:12.5px!important;letter-spacing:.5px!important;}
.login-btn{letter-spacing:1px!important;font-weight:750!important;}
.mini-btn{font-weight:650!important;border-radius:8px!important;}
.empty,.contacts-empty{font-size:14px!important;line-height:1.7!important;color:#4C6355!important;}
.discover-footnote{padding:15px 8px!important;color:#4C6355!important;font-size:12.5px!important;line-height:1.7!important;}
.notice,.login-hint{letter-spacing:.2px;}
.muted-pill{font-size:10px!important;font-weight:700!important;color:#b06a25!important;background:#fff3e2;border:1px solid #efd9b7;border-radius:6px;padding:1px 5px;white-space:nowrap;}
.muted-pill.off{color:#8b7a68;background:#f3f0ec;border-color:#e3dcd3;}

/* 聊天页：键盘不遮挡输入区，返回按钮清晰 */
.chat-screen{height:100%!important;padding-bottom:var(--kbInset,0px)!important;background:linear-gradient(180deg,#edf7ef 0%,#e7f2e9 100%)!important;transition:padding-bottom .12s ease-out;}
.chat-header{
  height:calc(56px + env(safe-area-inset-top))!important;
  padding:0 8px!important;gap:6px!important;
  flex:0 0 auto;
}
.chat-back-btn{
  flex:0 0 auto;height:38px;min-width:64px;display:inline-flex;align-items:center;gap:2px;
  border:1px solid #cfe3d4;background:#fff;color:#1f6b3f;border-radius:11px;
  padding:0 10px 0 6px;font-size:13px;font-weight:700;box-shadow:0 2px 7px rgba(25,70,40,.07);
}
.chat-back-btn svg{width:19px;height:19px;stroke-width:2.2;color:#168a4d;}
.chat-back-btn:active{background:#eaf7ee;transform:scale(.98);}
.chat-title-wrap{flex:1;min-width:0;text-align:center;}
.chat-title-wrap .title{font-size:17px!important;font-weight:700!important;color:#142018!important;line-height:21px!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%!important;margin:0 auto!important;}
.chat-title-sub{font-size:10.5px!important;color:#4C6355!important;line-height:14px!important;margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.chat-info-btn{flex:0 0 auto;width:38px;height:38px;border:1px solid #d6e7da;background:#fff;border-radius:11px;font-size:21px;font-weight:700;color:#38493d;line-height:34px;padding:0;box-shadow:0 2px 7px rgba(25,70,40,.06);}
.chat-info-btn:active{background:#eaf7ee;}
.chat-muted-banner{flex:0 0 auto;background:#fff5e8;color:#a86322;border-top:1px solid #f1ddc0;padding:8px 14px;font-size:12px;font-weight:600;text-align:center;}
.message-list{padding:14px 10px 18px!important;background:transparent!important;}
.msg-bubble{font-size:16px!important;line-height:1.52!important;border-radius:9px!important;padding:9px 11px!important;}
.msg-bubble.self{background:#a8e58c!important;border-color:#96d97b!important;box-shadow:0 2px 5px rgba(65,120,50,.06)!important;}
.msg-bubble.other{background:#fff!important;border-color:#e0ece2!important;box-shadow:0 2px 7px rgba(30,70,42,.05)!important;}
.message-list .time-divider{font-size:11px!important;color:#94a497!important;}
.composer{padding:8px 8px calc(8px + env(safe-area-inset-bottom))!important;}
.keyboard-open .composer{padding-bottom:8px!important;}
.composer textarea{font-size:16px!important;line-height:22px!important;max-height:104px!important;}
.composer #sendBtn{height:38px!important;min-width:60px!important;border-radius:9px!important;font-size:14.5px!important;}
.chat-empty{font-size:12.5px!important;color:#93a396!important;line-height:1.8!important;}

/* 登录页微调 */
.login-screen{padding:30px 22px 24px!important;}
.login-card{padding:20px 18px 17px!important;background:rgba(255,255,255,.9)!important;backdrop-filter:blur(12px);}
.login-card input{height:48px!important;line-height:24px!important;font-size:16px!important;}
.login-logo{width:76px!important;height:76px!important;font-size:31px!important;}
.login-title{font-size:29px!important;}

/* 桌面容器 */
@media (min-width:700px){
  body{background:radial-gradient(100% 100% at 50% 0,#f7fcf8 0,#dcecdd 100%)!important;}
  .screen,.chat-screen{max-width:520px;margin:0 auto;border-radius:0;box-shadow:0 0 0 1px rgba(38,82,47,.08),0 18px 60px rgba(20,60,32,.10)!important;overflow:hidden;}
  #app{width:520px;margin:0 auto;background:transparent!important;}
  .alpha-index{right:calc((100vw - 520px)/2 + 3px)!important;}
  .jc-modal{max-width:520px;}
}

:root{--jc-muted:#5b7062;}
.about-page{padding:12px 12px 30px!important;background:transparent!important;}
.about-page .about-card{margin:0!important;border-radius:18px!important;padding:20px 17px 18px!important;}
.about-page .about-title{font-size:19px!important;line-height:26px!important;}
.about-page .about-sub{font-size:13px!important;color:#52695a!important;}
.about-text{font-size:13.5px!important;line-height:1.75!important;color:#4c6254!important;margin-bottom:10px!important;}
.about-version{font-size:12px!important;color:#5f7466!important;}
.about-metrics strong{font-size:18px!important;color:#0f8047!important;}
.about-metrics span{font-size:12px!important;color:#52695a!important;}
.settings-note{font-size:13px!important;line-height:1.72!important;color:#52695a!important;}
.me-profile-hint{font-size:12.5px!important;color:#5a7061!important;line-height:18px!important;}
.discover-note{font-size:13px!important;color:#5d7265!important;}
.discover-footnote{font-size:12.5px!important;color:#5d7265!important;line-height:1.7!important;}
.profile-row>span{color:#566b5d!important;font-size:13.5px!important;}
.profile-row>strong{font-size:15px!important;color:#1d2d23!important;}
.profile-account{font-size:14px!important;color:#4f6757!important;}
.profile-name{color:#132018!important;}
.conv-name{font-size:16.5px!important;color:#17231b!important;}
.conv-last{font-size:13.5px!important;color:#5d7265!important;line-height:19px!important;}
.conv-time{font-size:12px!important;color:#617568!important;}
.chat-title-sub{font-size:12px!important;color:#607565!important;}
.message-list .time-divider{font-size:11.5px!important;color:#5f7466!important;}
.chat-empty{font-size:13px!important;color:#5f7466!important;}
.jc-title,.header-title,.chat-header .title{font-size:17.5px!important;color:#132018!important;font-weight:700!important;}
.jc-search input{color:#17231b!important;}
.jc-search input::placeholder,.composer textarea::placeholder,.login-card input::placeholder{color:#7a8c7e!important;opacity:1!important;}
.tab{color:#4d6355!important;font-size:12.5px!important;font-weight:600!important;}
.tab.active{color:#0b8d49!important;}
.admin-tag{background:#fff4e2!important;color:#8a5a14!important;border:1px solid #eed8b4!important;font-size:10.5px!important;font-weight:700!important;padding:2px 7px!important;border-radius:6px!important;}
.muted-pill{font-size:10.5px!important;font-weight:700!important;}
.admin-user-sub{color:#566b5d!important;font-size:12.5px!important;}
.letter-head{color:#3f5b48!important;font-size:13px!important;}
.alpha-index button{color:#4f6958!important;font-size:12px!important;}
@media (min-width:700px){.about-page .about-card{max-width:520px;margin:0 auto!important;}}

/* 苹果毛玻璃：导航、卡片、聊天与输入区 */
:root{
  --glass-white:rgba(255,255,255,.58);
  --glass-white-strong:rgba(255,255,255,.72);
  --glass-line:rgba(255,255,255,.72);
  --glass-shadow:0 14px 38px rgba(17,55,30,.10);
}
body{
  background:
    radial-gradient(90% 60% at 12% 0%,rgba(255,255,255,.9) 0%,rgba(255,255,255,0) 60%),
    radial-gradient(80% 55% at 92% 8%,rgba(183,236,199,.55) 0%,rgba(183,236,199,0) 65%),
    linear-gradient(165deg,#eef8f1 0%,#e6f2e9 46%,#dfeee4 100%)!important;
}
.header,.jc-header,.chat-header{
  background:linear-gradient(180deg,rgba(255,255,255,.76) 0%,rgba(246,253,248,.56) 100%)!important;
  -webkit-backdrop-filter:blur(28px) saturate(185%);
  backdrop-filter:blur(28px) saturate(185%);
  border-bottom:1px solid var(--glass-line)!important;
  box-shadow:0 10px 26px rgba(18,58,33,.07),inset 0 1px 0 rgba(255,255,255,.85)!important;
}
.jc-header{border-radius:0 0 18px 18px!important;}
.chat-header{border-radius:0 0 20px 20px!important;}
.jc-icon-btn,.icon-btn,.chat-back-btn,.chat-info-btn{
  background:rgba(255,255,255,.62)!important;
  -webkit-backdrop-filter:blur(18px) saturate(170%);
  backdrop-filter:blur(18px) saturate(170%);
  border:1px solid rgba(255,255,255,.78)!important;
  box-shadow:0 5px 16px rgba(18,58,33,.09),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
.jc-icon-btn,.icon-btn,.chat-info-btn{border-radius:50%!important;}
.chat-back-btn{border-radius:14px!important;}
.jc-search-wrap{
  background:rgba(255,255,255,.48)!important;
  -webkit-backdrop-filter:blur(22px) saturate(170%);
  backdrop-filter:blur(22px) saturate(170%);
  border-bottom:1px solid rgba(255,255,255,.65)!important;
  padding:7px 12px 10px!important;
}
.jc-search{
  background:rgba(255,255,255,.74)!important;
  border:1px solid rgba(255,255,255,.88)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 4px 14px rgba(18,58,33,.05)!important;
}

/* 悬浮玻璃导航栏 */
.tabbar{
  margin:0 10px calc(6px + env(safe-area-inset-bottom))!important;
  padding:6px 5px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.66),rgba(247,253,248,.48))!important;
  -webkit-backdrop-filter:blur(32px) saturate(195%);
  backdrop-filter:blur(32px) saturate(195%);
  border:1px solid rgba(255,255,255,.82)!important;
  border-radius:26px!important;
  box-shadow:0 14px 36px rgba(17,55,30,.14),inset 0 1px 0 rgba(255,255,255,.96)!important;
  transform:translateZ(0);
  will-change:transform;
}
.tab{
  margin:0 2px!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.16)!important;
  border:1px solid rgba(255,255,255,.34)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
  transition:background .14s ease,box-shadow .14s ease,transform .14s ease;
}
.tab.active{
  background:linear-gradient(180deg,rgba(255,255,255,.78),rgba(255,255,255,.46))!important;
  border-color:rgba(255,255,255,.92)!important;
  box-shadow:0 6px 16px rgba(17,55,30,.08),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
.tab-icon{background:transparent!important;}
.tab.active .tab-icon{background:rgba(222,246,230,.66)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);}
.tab-label{font-weight:650!important;letter-spacing:.1px!important;}

/* 玻璃卡片与列表 */
.contacts-group,.me-group,.discover-group,.profile-card,.admin-block,.device-list,
.new-friends-card,.stat-card,.avatar-picker-wrap,.profile-id-card,.about-metrics>div{
  background:linear-gradient(145deg,rgba(255,255,255,.70),rgba(255,255,255,.42))!important;
  -webkit-backdrop-filter:blur(22px) saturate(165%);
  backdrop-filter:blur(22px) saturate(165%);
  border:1px solid rgba(255,255,255,.78)!important;
  box-shadow:var(--glass-shadow),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
.contacts-row,.me-row,.discover-row,.friend-official,.field-official{
  background:rgba(255,255,255,.20)!important;
  border-bottom:1px solid rgba(255,255,255,.48)!important;
}
.contacts-row:active,.me-row:active,.discover-row:active,.field-official:active{
  background:rgba(255,255,255,.50)!important;
}
.conversation{
  width:calc(100% - 20px)!important;
  margin:8px 10px!important;
  padding:12px 14px!important;
  background:linear-gradient(145deg,rgba(255,255,255,.66),rgba(255,255,255,.38))!important;
  border:1px solid rgba(255,255,255,.78)!important;
  border-radius:16px!important;
  box-shadow:0 8px 22px rgba(17,55,30,.07),inset 0 1px 0 rgba(255,255,255,.88)!important;
}
.conversation:active{background:rgba(255,255,255,.58)!important;transform:scale(.992);}
.conv-avatar{position:relative;flex:0 0 auto;}
.me-profile{
  background:linear-gradient(145deg,rgba(255,255,255,.76),rgba(244,253,247,.45))!important;
  -webkit-backdrop-filter:blur(24px) saturate(170%);
  backdrop-filter:blur(24px) saturate(170%);
  border:1px solid rgba(255,255,255,.82)!important;
}
.profile-hero,.about-card{
  background:linear-gradient(150deg,rgba(255,255,255,.78),rgba(241,251,244,.46))!important;
  -webkit-backdrop-filter:blur(26px) saturate(175%);
  backdrop-filter:blur(26px) saturate(175%);
  border:1px solid rgba(255,255,255,.85)!important;
}
.login-card{
  background:linear-gradient(155deg,rgba(255,255,255,.78),rgba(255,255,255,.48))!important;
  -webkit-backdrop-filter:blur(30px) saturate(180%);
  backdrop-filter:blur(30px) saturate(180%);
  border:1px solid rgba(255,255,255,.88)!important;
  box-shadow:0 24px 54px rgba(17,55,30,.13),inset 0 1px 0 rgba(255,255,255,.95)!important;
}
.login-card input,.sheet-input,.admin-form input,.jc-search input,.composer textarea{
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(255,255,255,.88)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.88),0 3px 10px rgba(17,55,30,.04)!important;
}

/* 聊天：轻量毛玻璃，滚动更顺 */
.chat-screen{background:linear-gradient(180deg,#edf7ef 0%,#e4f1e8 52%,#deece2 100%)!important;}
.message-list{
  background:transparent!important;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:auto;
  contain:layout style;
}
.message-list .msg-row{contain:layout style;}
.msg-bubble{
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
}
.msg-bubble.other{
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(255,255,255,.88)!important;
  box-shadow:0 5px 14px rgba(17,55,30,.07),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
.msg-bubble.self{
  background:linear-gradient(135deg,rgba(183,239,173,.92),rgba(148,224,151,.82))!important;
  border:1px solid rgba(255,255,255,.64)!important;
  box-shadow:0 5px 14px rgba(45,110,55,.09),inset 0 1px 0 rgba(255,255,255,.55)!important;
}
.composer{
  background:linear-gradient(180deg,rgba(255,255,255,.62),rgba(247,253,248,.50))!important;
  -webkit-backdrop-filter:blur(30px) saturate(185%);
  backdrop-filter:blur(30px) saturate(185%);
  border-top:1px solid rgba(255,255,255,.78)!important;
  border-radius:20px 20px 0 0!important;
  box-shadow:0 -12px 30px rgba(17,55,30,.07),inset 0 1px 0 rgba(255,255,255,.95)!important;
}
.composer #sendBtn{
  border-radius:12px!important;
  background:linear-gradient(180deg,#23b96b,#138f4f)!important;
  box-shadow:0 6px 16px rgba(19,143,79,.26),inset 0 1px 0 rgba(255,255,255,.28)!important;
}
.jc-modal-backdrop{
  -webkit-backdrop-filter:blur(10px) saturate(150%);
  backdrop-filter:blur(10px) saturate(150%);
  background:rgba(16,38,24,.26)!important;
}
.jc-modal{
  background:linear-gradient(165deg,rgba(255,255,255,.86),rgba(246,253,248,.72))!important;
  -webkit-backdrop-filter:blur(34px) saturate(185%);
  backdrop-filter:blur(34px) saturate(185%);
  border:1px solid rgba(255,255,255,.86)!important;
  box-shadow:0 -22px 54px rgba(12,42,25,.24),inset 0 1px 0 rgba(255,255,255,.92)!important;
}
.about-logo,.login-logo,.new-friends-card .contact-icon{
  box-shadow:0 8px 20px rgba(17,130,71,.24),inset 0 1px 0 rgba(255,255,255,.30)!important;
}
.me-logout,.friend-danger{
  background:rgba(255,255,255,.60)!important;
  -webkit-backdrop-filter:blur(18px) saturate(160%);
  backdrop-filter:blur(18px) saturate(160%);
  border:1px solid rgba(255,255,255,.76)!important;
}
@media (prefers-reduced-motion:reduce){
  .tab,.conversation,.tab-icon{transition:none!important;}
}
/* ============================================================
   姜聊 v2 设计层 —— 收口原有 6 层补丁
   1) 毛玻璃：分层模糊、边缘高光、低饱和绿底，提高可读性
   2) 按钮：default / hover / active / focus-visible / disabled 五态齐全
   3) 布局：流式间距、卡片圆角与阴影统一、聊天页头部网格化
   ============================================================ */

:root{
  --v2-bg:#e6f2ea;
  --v2-ink:#12211a;
  --v2-ink-2:#3d5247;
  --v2-muted:#74887c;
  --v2-green:#0f9d56;
  --v2-green-deep:#0a7a43;
  --v2-green-soft:#e4f6ea;
  --v2-red:#c9372f;
  --v2-red-soft:#fff0ee;
  --v2-line:rgba(24,66,42,.10);
  --v2-glass:linear-gradient(150deg,rgba(255,255,255,.90),rgba(255,255,255,.62));
  --v2-glass-strong:linear-gradient(150deg,rgba(255,255,255,.96),rgba(255,255,255,.80));
  --v2-stroke:rgba(255,255,255,.94);
  --v2-shadow:0 12px 32px rgba(14,60,34,.09),inset 0 1px 0 rgba(255,255,255,.94);
  --v2-shadow-sm:0 5px 16px rgba(14,60,34,.08),inset 0 1px 0 rgba(255,255,255,.92);
  --v2-shadow-xs:0 2px 8px rgba(14,60,34,.06);
  --v2-r-lg:22px;
  --v2-r-md:16px;
  --v2-r-sm:12px;
}

/* ---------- 底色与环境光 ---------- */
html,body{background:var(--v2-bg)!important;}
body{
  color:var(--v2-ink)!important;
  background:
    radial-gradient(120% 70% at 6% -12%,#ffffff 0%,rgba(255,255,255,0) 58%),
    radial-gradient(90% 60% at 102% 2%,#c8efd9 0%,rgba(200,239,217,0) 62%),
    radial-gradient(80% 60% at 46% 112%,#cfe9db 0%,rgba(207,233,219,0) 64%),
    linear-gradient(168deg,#eef8f2 0%,#e5f1e9 46%,#dbeae2 100%)!important;
  -webkit-background-attachment:fixed;
}
/* 旧版桌面假状态栏：彻底移除（它会把 #app 往下顶 26px，造成聊天页头部重叠） */
.demo-status{display:none!important;}
#app{top:var(--vvTop)!important;height:var(--vvHeight)!important;background:transparent!important;}
.screen,.chat-screen,.me-content,.add-page,.device-page,.login-screen{
  background:
    radial-gradient(58% 42% at 10% 6%,rgba(255,255,255,.96) 0%,rgba(255,255,255,0) 62%),
    radial-gradient(52% 38% at 94% 2%,#a7e2c1 0%,rgba(167,226,193,0) 64%),
    radial-gradient(62% 46% at 84% 98%,#b7e5cd 0%,rgba(183,229,205,0) 62%),
    radial-gradient(55% 40% at 4% 88%,#c9ecd9 0%,rgba(201,236,217,0) 60%),
    linear-gradient(166deg,#f3faf6 0%,#e4f2e9 52%,#d5e9df 100%)!important;
}
/* 搜索条：与顶栏分层，避免整片死白 */
.jc-search-wrap{
  background:linear-gradient(180deg,rgba(255,255,255,.52),rgba(255,255,255,.28))!important;
  border-bottom:1px solid rgba(22,64,40,.07)!important;
}
.content,.jc-list,.profile-page,.about-page,.settings-page{background:transparent!important;}

/* ---------- 按钮基础：统一五态 ---------- */
button{
  -webkit-appearance:none;appearance:none;
  font:inherit;color:inherit;
  border-radius:var(--v2-r-md);
  transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .18s ease,transform .1s ease,filter .16s ease;
  touch-action:manipulation;
}
button:not(:disabled){cursor:pointer;}
button:not(:disabled):active{transform:translateY(1px) scale(.995);}
button:disabled{opacity:.48;cursor:not-allowed;transform:none!important;box-shadow:none!important;filter:saturate(.6);}
button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid rgba(15,157,86,.45);outline-offset:2px;
}

/* 主按钮（绿色实心） */
.login-btn,.mini-btn.green,.search-box button,.add-search-inner button,
.composer #sendBtn,.friend-action-main button,.profile-btn.primary,.admin-form button,.pwd-form button,
.message-actions button.primary{
  background:linear-gradient(180deg,#18b566,#0c8748)!important;
  color:#fff!important;
  border:1px solid rgba(8,105,56,.42)!important;
  border-radius:14px!important;
  font-weight:650!important;
  box-shadow:0 8px 20px rgba(10,120,64,.22),inset 0 1px 0 rgba(255,255,255,.34)!important;
  letter-spacing:.2px;
}
.login-btn:not(:disabled):hover,.mini-btn.green:not(:disabled):hover,.composer #sendBtn:not(:disabled):hover,
.friend-action-main button:not(:disabled):hover,.profile-btn.primary:not(:disabled):hover,
.search-box button:not(:disabled):hover,.add-search-inner button:not(:disabled):hover{
  filter:brightness(1.04);
  box-shadow:0 10px 24px rgba(10,120,64,.26),inset 0 1px 0 rgba(255,255,255,.40)!important;
}
.login-btn:not(:disabled):active,.mini-btn.green:not(:disabled):active,.composer #sendBtn:not(:disabled):active,
.friend-action-main button:not(:disabled):active,.profile-btn.primary:not(:disabled):active,
.search-box button:not(:disabled):active,.add-search-inner button:not(:disabled):active{
  background:linear-gradient(180deg,#12a058,#0a7740)!important;
  box-shadow:0 3px 10px rgba(10,120,64,.20),inset 0 2px 6px rgba(0,0,0,.16)!important;
}
.login-btn:disabled,.mini-btn.green:disabled,.composer #sendBtn:disabled,.friend-action-main button:disabled,
.profile-btn.primary:disabled{
  background:#cfdfd4!important;
  color:#eef5f0!important;
  border-color:rgba(20,60,38,.10)!important;
  box-shadow:none!important;
}

/* 次按钮（玻璃白 + 明确描边） */
.mini-btn,.mini-btn.gray,.profile-btn,.profile-btn.soft,
.chat-back-btn,.chat-info-btn,.jc-icon-btn,.icon-btn,.tool-btn,
.copy-mini,.avatar-back,.sheet-btn,.message-actions button{
  background:var(--v2-glass-strong)!important;
  color:var(--v2-ink)!important;
  border:1px solid rgba(24,66,42,.14)!important;
  box-shadow:var(--v2-shadow-sm)!important;
  -webkit-backdrop-filter:blur(18px) saturate(180%);
  backdrop-filter:blur(18px) saturate(180%);
  font-weight:600;
}
.mini-btn:not(:disabled):hover,.profile-btn:not(:disabled):hover,.chat-back-btn:not(:disabled):hover,
.chat-info-btn:not(:disabled):hover,.jc-icon-btn:not(:disabled):hover,.icon-btn:not(:disabled):hover,
.tool-btn:not(:disabled):hover,.copy-mini:not(:disabled):hover{
  background:#fff!important;
  border-color:rgba(15,157,86,.30)!important;
  box-shadow:0 8px 20px rgba(14,60,34,.12)!important;
}
.mini-btn:not(:disabled):active,.profile-btn:not(:disabled):active,.chat-back-btn:not(:disabled):active,
.chat-info-btn:not(:disabled):active,.jc-icon-btn:not(:disabled):active,.icon-btn:not(:disabled):active,
.tool-btn:not(:disabled):active,.copy-mini:not(:disabled):active{
  background:#eef7f1!important;
  box-shadow:inset 0 2px 6px rgba(14,60,34,.10)!important;
}

/* 危险按钮 */
.mini-btn.red,.friend-danger,.me-logout,.message-actions button.danger{
  background:var(--v2-red-soft)!important;
  color:var(--v2-red)!important;
  border:1px solid rgba(201,55,47,.26)!important;
  border-radius:14px!important;
  box-shadow:0 4px 14px rgba(201,55,47,.10)!important;
  font-weight:650;
}
.mini-btn.red:not(:disabled):hover,.friend-danger:not(:disabled):hover,.me-logout:not(:disabled):hover{
  background:#ffe6e2!important;border-color:rgba(201,55,47,.40)!important;
}
.mini-btn.red:not(:disabled):active,.friend-danger:not(:disabled):active,.me-logout:not(:disabled):active{
  background:#ffdbd5!important;box-shadow:inset 0 2px 6px rgba(201,55,47,.14)!important;
}

/* ---------- 顶部栏：稳定的玻璃层 ---------- */
.header,.jc-header,.chat-header{
  background:linear-gradient(180deg,rgba(255,255,255,.94) 0%,rgba(247,253,249,.76) 100%)!important;
  -webkit-backdrop-filter:blur(26px) saturate(185%);
  backdrop-filter:blur(26px) saturate(185%);
  border-bottom:1px solid rgba(22,64,40,.10)!important;
  box-shadow:0 8px 22px rgba(14,60,34,.06)!important;
  border-radius:0!important;
}
.header-title,.jc-title,.jc-title-left,.chat-header .title,.header-title-left{
  color:var(--v2-ink)!important;letter-spacing:.3px;
}

/* ---------- 聊天页头部：三栏网格，彻底消除返回键与标题/消息重叠 ---------- */
.chat-header{
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  column-gap:8px;
  height:calc(54px + env(safe-area-inset-top))!important;
  padding:env(safe-area-inset-top) 10px 0!important;
  z-index:12!important;
}
.chat-back-btn{
  min-width:0!important;max-width:108px;height:36px;
  display:inline-flex!important;align-items:center;justify-content:center;gap:3px;
  padding:0 12px 0 7px!important;
  font-size:13px!important;font-weight:650!important;
  border-radius:12px!important;
}
.chat-back-btn svg{width:18px;height:18px;flex:0 0 auto;}
.chat-back-btn span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.chat-title-wrap{
  min-width:0;max-width:100%;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;
  overflow:hidden;
}
.chat-title-wrap .title{max-width:100%!important;font-size:17px!important;line-height:21px!important;}
.chat-title-sub{max-width:100%;font-size:10.5px!important;line-height:14px!important;color:#7d8f82!important;}
.chat-info-btn{width:38px;height:36px;padding:0!important;font-size:19px!important;line-height:34px!important;border-radius:12px!important;}
@media (max-width:370px){
  .chat-header{grid-template-columns:42px minmax(0,1fr) 42px;column-gap:6px;}
  .chat-back-btn{width:38px;padding:0!important;gap:0;}
  .chat-back-btn span{display:none;}
}
.message-list{padding:12px 12px 16px!important;background:transparent!important;}

/* ---------- 悬浮玻璃底栏 ---------- */
.tabbar{
  height:auto!important;
  min-height:calc(58px + env(safe-area-inset-bottom));
  margin:0 10px calc(8px + env(safe-area-inset-bottom))!important;
  padding:6px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(247,253,249,.70))!important;
  -webkit-backdrop-filter:blur(30px) saturate(190%);
  backdrop-filter:blur(30px) saturate(190%);
  border:1px solid rgba(255,255,255,.94)!important;
  border-radius:24px!important;
  box-shadow:0 16px 36px rgba(14,60,34,.14),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
.tab{
  min-height:46px;border-radius:18px!important;
  border:1px solid transparent!important;
  color:#5f7268!important;
  transition:background-color .16s ease,color .16s ease,box-shadow .18s ease;
}
.tab:not(.active):hover{background:rgba(255,255,255,.55)!important;color:#2c4438!important;}
.tab:not(.active):active{background:rgba(15,157,86,.10)!important;}
.tab.active{
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(232,248,238,.92))!important;
  border-color:rgba(15,157,86,.20)!important;
  color:var(--v2-green-deep)!important;
  box-shadow:0 6px 16px rgba(14,60,34,.10),inset 0 1px 0 #fff!important;
}
.tab.active .tab-label{font-weight:700!important;}
.tab-icon svg{color:currentColor;}

/* ---------- 卡片与列表：统一圆角、描边、阴影 ---------- */
.contacts-group,.me-group,.discover-group,.profile-card,.admin-block,.device-list,
.new-friends-card,.stat-card,.avatar-picker-wrap,.friend-profile-card,
.profile-hero,.about-card,.login-card,.friend-action-main{
  background:var(--v2-glass)!important;
  -webkit-backdrop-filter:blur(24px) saturate(175%);
  backdrop-filter:blur(24px) saturate(175%);
  border:1px solid var(--v2-stroke)!important;
  border-radius:var(--v2-r-lg)!important;
  box-shadow:var(--v2-shadow)!important;
  overflow:hidden;
}
.contacts-group,.me-group,.discover-group,.admin-block,.device-list{position:relative;}
.contacts-row,.me-row,.discover-row,.request-row,.admin-user-row,.friend-official{
  min-height:56px;
  background:transparent!important;
  border-bottom:1px solid rgba(24,66,42,.08)!important;
  transition:background-color .15s ease;
}
.contacts-row:last-child,.me-row:last-child,.discover-row:last-child{border-bottom:0!important;}
.contacts-row:not(:disabled):active,.me-row:not(:disabled):active,.discover-row:not(:disabled):active,
.field-official:not(:disabled):active{background:rgba(15,157,86,.08)!important;}
@media (hover:hover) and (pointer:fine){
  .conversation:not(:disabled):hover,.contacts-row:not(:disabled):hover,.me-row:not(:disabled):hover,
  .discover-row:not(:disabled):hover,.request-row:hover{background:rgba(255,255,255,.90)!important;}
}

/* 会话列表：独立玻璃卡 */
.conversation{
  width:calc(100% - 24px)!important;
  margin:7px 12px!important;
  padding:12px 14px!important;
  min-height:74px!important;
  background:var(--v2-glass)!important;
  border:1px solid var(--v2-stroke)!important;
  border-radius:18px!important;
  box-shadow:var(--v2-shadow-sm)!important;
}
.conversation:not(:disabled):active{background:#fff!important;transform:scale(.995);}
.conv-name{font-size:16.5px!important;color:var(--v2-ink)!important;}
.conv-last{color:#7c8f83!important;}
.conv-time{color:#93a49a!important;}
.conv-badge,.badge,.tab-badge,.tab-dot,.new-friends-badge{
  background:linear-gradient(180deg,#ff6b63,#e03b34)!important;
  border:1.5px solid rgba(255,255,255,.96)!important;
  box-shadow:0 2px 6px rgba(201,55,47,.28);
}

/* ---------- 表单控件：清晰边界 + 聚焦光环 ---------- */
input,textarea,select{
  border-radius:14px!important;
  background:rgba(255,255,255,.90)!important;
  border:1px solid rgba(24,66,42,.14)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 8px rgba(14,60,34,.04)!important;
  color:var(--v2-ink)!important;
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
input::placeholder,textarea::placeholder{color:#9aaca1;}
input:focus,textarea:focus,select:focus{
  background:#fff!important;
  border-color:rgba(15,157,86,.55)!important;
  box-shadow:0 0 0 4px rgba(15,157,86,.12),inset 0 1px 0 #fff!important;
}
.login-card input{height:46px;font-size:16px;}
.login-card label{font-weight:600;color:#5b7264!important;letter-spacing:.2px;}

/* ---------- 登录页 ---------- */
.login-screen{
  gap:0;
  background:
    radial-gradient(90% 60% at 50% 0%,#ffffff 0%,rgba(255,255,255,0) 65%),
    linear-gradient(180deg,#f0faf4 0%,#e5f1e9 60%,#dcebe3 100%)!important;
}
.login-logo{
  width:92px;height:92px!important;
  background:rgba(255,255,255,.72)!important;
  border:1px solid rgba(255,255,255,.98)!important;
  border-radius:26px!important;
  padding:10px!important;
  box-shadow:0 18px 42px rgba(12,96,54,.20),inset 0 1px 0 #fff!important;
}
.login-logo img{width:100%;height:100%;object-fit:contain;display:block;}
.login-title{font-size:26px!important;letter-spacing:2px!important;color:var(--v2-ink)!important;}
.login-sub{color:#6f8478!important;letter-spacing:.3px;}
.login-card{padding:22px 18px 18px!important;border-radius:24px!important;}
.login-btn{height:48px;font-size:16px;}
.login-hint{color:#7d9184!important;}

/* ---------- 聊天内容 ---------- */
.chat-screen{background:transparent!important;}
.message-list{background:transparent!important;}
.msg-bubble.other{
  background:rgba(255,255,255,.95)!important;
  border:1px solid rgba(255,255,255,.98)!important;
  color:var(--v2-ink)!important;
  border-radius:14px!important;
  box-shadow:0 6px 18px rgba(14,60,34,.08),inset 0 1px 0 #fff!important;
}
.msg-bubble.self{
  background:linear-gradient(160deg,#c6f0b4,#94df7c)!important;
  border:1px solid rgba(255,255,255,.78)!important;
  color:#102d1b!important;
  border-radius:14px!important;
  box-shadow:0 6px 18px rgba(30,110,55,.16),inset 0 1px 0 rgba(255,255,255,.55)!important;
}
.msg-bubble.other:before{border-right-color:rgba(255,255,255,.95);}
.msg-bubble.self:after{border-left-color:#a9e58f;}
.msg-status{color:#86988c!important;}
.time-divider{color:#8b9c91!important;font-size:11px;}
.composer{
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(244,252,247,.78))!important;
  -webkit-backdrop-filter:blur(26px) saturate(185%);
  backdrop-filter:blur(26px) saturate(185%);
  border-top:1px solid rgba(255,255,255,.96)!important;
  border-radius:22px 22px 0 0!important;
  box-shadow:0 -12px 30px rgba(14,60,34,.08)!important;
}
.composer textarea{background:#fff!important;border:1px solid rgba(24,66,42,.16)!important;border-radius:16px!important;}
.composer .tool-btn{border-radius:50%!important;border:1px solid rgba(24,66,42,.18)!important;background:#fff!important;}
.composer #sendBtn{min-width:66px;height:38px;border-radius:13px!important;}

/* ---------- 我的 / 个人主页 ---------- */
.me-profile{border-radius:0!important;}
.profile-avatar-wrap,.avatar,.avatar-picker-wrap{overflow:hidden;}
.avatar img,.cartoon-avatar-img,.photo-avatar-img,.avatar-picker img{width:100%;height:100%;object-fit:cover;display:block;}
.profile-row{padding:13px 16px;border-bottom:1px solid rgba(24,66,42,.08);font-size:14.5px;}
.profile-row:last-child{border-bottom:0;}
.profile-btn{height:46px;}

/* ---------- 后台统计卡：自适应栅格 ---------- */
.admin-stat-grid{grid-template-columns:repeat(auto-fit,minmax(128px,1fr))!important;gap:10px!important;padding:12px!important;}
.stat-card{padding:14px!important;border-radius:18px!important;}
.stat-num{font-size:26px!important;color:var(--v2-ink)!important;}

/* ---------- 田地 / 姜友圈 ---------- */
.field-banner{
  margin:12px;padding:16px 16px;
  display:flex;align-items:center;gap:14px;
  background:var(--v2-glass)!important;
  border:1px solid var(--v2-stroke)!important;
  border-radius:var(--v2-r-lg)!important;
  box-shadow:var(--v2-shadow)!important;
  -webkit-backdrop-filter:blur(24px) saturate(175%);
  backdrop-filter:blur(24px) saturate(175%);
}
.field-banner-logo{width:56px;height:56px;flex:0 0 auto;border-radius:16px;background:rgba(255,255,255,.66);padding:6px;box-shadow:var(--v2-shadow-xs);}
.field-banner-logo img{width:100%;height:100%;object-fit:contain;display:block;}
.field-banner-title{font-size:18px;font-weight:700;color:var(--v2-ink);line-height:24px;}
.field-banner-sub{font-size:12.5px;color:#6f8478;line-height:19px;margin-top:2px;}
.field-note-card{
  margin:0 12px 16px;padding:14px 16px;
  background:rgba(255,255,255,.62)!important;
  border:1px solid rgba(255,255,255,.86)!important;
  border-radius:18px!important;
  color:#60766a!important;font-size:12.5px;line-height:20px;
}
.discover-group{margin:12px!important;}
.discover-icon.moments{background:linear-gradient(145deg,#34c27a,#0d8a4c)!important;}
.discover-note{color:#8fa196!important;}
.moments-empty{padding:44px 26px;text-align:center;}
.moments-empty-icon{
  width:68px;height:68px;margin:0 auto 14px;border-radius:22px;
  display:flex;align-items:center;justify-content:center;
  background:rgba(255,255,255,.78);border:1px solid rgba(255,255,255,.95);
  box-shadow:var(--v2-shadow-sm);color:var(--v2-green);
}
.moments-empty-icon svg{width:32px;height:32px;}
.moments-empty-title{font-size:16px;font-weight:650;color:var(--v2-ink);margin-bottom:6px;}
.moments-empty-sub{font-size:13px;color:#7b8f83;line-height:21px;}

/* ---------- 弹窗 ---------- */
.jc-modal-backdrop{background:rgba(12,40,24,.28)!important;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);}
.jc-modal{
  background:var(--v2-glass-strong)!important;
  -webkit-backdrop-filter:blur(30px) saturate(185%);
  backdrop-filter:blur(30px) saturate(185%);
  border:1px solid rgba(255,255,255,.96)!important;
  border-radius:24px 24px 0 0!important;
  box-shadow:0 -24px 54px rgba(12,42,25,.22)!important;
}
.jc-modal .sheet-btn{
  width:100%;margin:6px 0;height:48px;border-radius:16px!important;font-size:15px!important;
}

/* ---------- 响应式适配 ---------- */
@media (min-width:700px){
  .screen,.chat-screen{max-width:560px;margin:0 auto;border-radius:30px;overflow:hidden;box-shadow:0 24px 60px rgba(12,60,34,.14);}
  /* 关键：必须保留 width:100%，否则 max-width + 自动外边距会把顶栏压成内容宽度 */
  .jc-header,.jc-search-wrap,.me-content,.message-list,.composer,.chat-header,.header{width:100%;max-width:560px;margin-left:auto;margin-right:auto;}
  .tabbar{width:calc(100% - 20px);max-width:540px;margin-left:auto!important;margin-right:auto!important;margin-bottom:14px!important;}
  #app{background:transparent!important;}
}
@media (min-width:1100px){
  .screen,.chat-screen{max-width:600px;}
  .jc-header,.jc-search-wrap,.me-content,.message-list,.composer,.chat-header,.header{max-width:600px;}
  .tabbar{max-width:580px;}
}
@media (max-width:380px){
  .login-card{padding:18px 14px!important;}
  .conversation{width:calc(100% - 16px)!important;margin:6px 8px!important;padding:10px 12px!important;}
  .admin-stat-grid{grid-template-columns:1fr 1fr!important;}
  .field-banner{margin:10px;padding:13px 14px;}
}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;}
}

/* ---------- 写实生姜头像 / 官方号头像 ---------- */
.official-avatar{
  background:radial-gradient(120% 120% at 32% 18%,#fffdf6,#efe5cf)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.9)!important;
  border-radius:inherit;overflow:hidden;
}
.official-avatar .photo-avatar-img{width:100%;height:100%;object-fit:cover;display:block;}
.photo-avatar{
  background:radial-gradient(120% 120% at 30% 18%,#fffdf6,#efe5cf)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.85),0 1px 3px rgba(14,60,34,.08);
}
.about-logo{overflow:hidden;background:rgba(255,255,255,.7)!important;padding:5px;}
.about-logo img{width:100%;height:100%;object-fit:contain;display:block;}
.avatar-picker .avatar-choice img,.avatar-picker img{border-radius:inherit;}

/* ---------- 滚动条：移动端观感，彻底隐藏 ---------- */
.message-list,.content,.jc-list,.profile-page,.about-page,.settings-page,.sheet-body,.modal-body{scrollbar-width:none!important;-ms-overflow-style:none!important;}
.message-list::-webkit-scrollbar,.content::-webkit-scrollbar,.jc-list::-webkit-scrollbar,.profile-page::-webkit-scrollbar,.about-page::-webkit-scrollbar,.settings-page::-webkit-scrollbar,.sheet-body::-webkit-scrollbar,.modal-body::-webkit-scrollbar{width:0!important;height:0!important;display:none!important;}

/* ---------- 「我」页：统一内边距与卡片对齐 ---------- */
.content{padding-top:10px!important;}
.me-content{padding:10px 12px calc(104px + env(safe-area-inset-bottom))!important;}
.me-profile{margin:0!important;width:100%!important;}
.me-group{margin-top:12px!important;}
.me-logout-wrap{margin-top:14px!important;padding:0!important;}
.me-logout{
  height:48px!important;border-radius:16px!important;font-weight:650!important;
  background:linear-gradient(180deg,#fff6f4,#ffe9e5)!important;
  color:#c0342b!important;border:1px solid rgba(201,55,47,.30)!important;
  box-shadow:0 6px 16px rgba(160,44,36,.10),inset 0 1px 0 rgba(255,255,255,.9)!important;
}
.me-logout:not(:disabled):hover{background:linear-gradient(180deg,#ffefec,#ffded8)!important;}
.me-logout:not(:disabled):active{background:#ffd9d2!important;box-shadow:inset 0 2px 6px rgba(201,55,47,.16)!important;}

/* ---------- 「我」页资料卡：圆角 + 玻璃层次 ---------- */
.me-profile{
  border-radius:22px!important;
  background:linear-gradient(150deg,rgba(255,255,255,.95) 0%,rgba(233,249,240,.80) 100%)!important;
  border:1px solid rgba(255,255,255,.96)!important;
  box-shadow:0 12px 30px rgba(14,60,34,.10),inset 0 1px 0 rgba(255,255,255,.98)!important;
  overflow:hidden;
}
.me-profile:not(:disabled):hover{border-color:rgba(15,157,86,.28)!important;}
.me-profile:not(:disabled):active{background:linear-gradient(150deg,#fff,#e2f5ea)!important;}

/* ---------- 玻璃强化：更通透 + 更明显的磨砂折射 ---------- */
:root{
  --v2-glass:linear-gradient(150deg,rgba(255,255,255,.84),rgba(255,255,255,.54));
  --v2-glass-strong:linear-gradient(150deg,rgba(255,255,255,.94),rgba(255,255,255,.74));
}
.screen,.chat-screen,.login-screen{
  background:
    radial-gradient(46% 34% at 16% 14%,rgba(112,212,164,.50) 0%,rgba(112,212,164,0) 66%),
    radial-gradient(40% 30% at 96% 4%,rgba(255,232,168,.42) 0%,rgba(255,232,168,0) 62%),
    radial-gradient(52% 40% at 86% 82%,rgba(88,198,148,.46) 0%,rgba(88,198,148,0) 64%),
    radial-gradient(44% 30% at 0% 74%,rgba(140,220,180,.40) 0%,rgba(140,220,180,0) 60%),
    linear-gradient(166deg,#f7fcf9 0%,#e8f6ee 48%,#d8ece1 100%)!important;
}
.conv-item,.discover-row,.field-note-card,.field-banner,.about-card,.me-profile,.settings-group,.me-group,
.device-row,.admin-card,.friend-card,.request-row,.card{
  -webkit-backdrop-filter:blur(20px) saturate(165%);
  backdrop-filter:blur(20px) saturate(165%);
}
.field-note-card,.about-card,.settings-group,.me-group{
  background:var(--v2-glass)!important;
}

/* ---------- 桌面端：悬浮手机框 ---------- */
@media (min-width:700px){
  #app{
    padding:14px 16px 18px!important;
    box-sizing:border-box!important;
    background:
      radial-gradient(60% 50% at 50% 0%,rgba(255,255,255,.9),rgba(255,255,255,0))!important;
  }
  .screen,.chat-screen{height:100%;}
}

/* ---------- 顶部搜索条：去掉整片白底，只留玻璃胶囊 ---------- */
.jc-search-wrap{
  background:transparent!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  border-bottom:0!important;
  padding:8px 12px 8px!important;
}
.jc-search{
  height:40px!important;
  border-radius:20px!important;
  background:linear-gradient(150deg,rgba(255,255,255,.92),rgba(255,255,255,.66))!important;
  border:1px solid rgba(255,255,255,.94)!important;
  box-shadow:0 6px 18px rgba(14,60,34,.07),inset 0 1px 0 rgba(255,255,255,.96)!important;
}
.jc-search:focus-within{
  border-color:rgba(15,157,86,.42)!important;
  box-shadow:0 0 0 3px rgba(15,157,86,.14),0 6px 18px rgba(14,60,34,.08)!important;
}
.jc-header{
  background:linear-gradient(180deg,rgba(255,255,255,.90) 0%,rgba(246,252,248,.72) 100%)!important;
  border-bottom:1px solid rgba(22,64,40,.07)!important;
  box-shadow:0 1px 0 rgba(255,255,255,.7),0 6px 18px rgba(14,60,34,.05)!important;
}

/* ---------- 字母索引：少于此数不出现，出现时做成玻璃导轨 ---------- */
.alpha-index{
  right:12px!important;
  top:50%!important;transform:translateY(-50%)!important;
  padding:6px 3px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.62))!important;
  -webkit-backdrop-filter:blur(16px) saturate(160%);
  backdrop-filter:blur(16px) saturate(160%);
  border:1px solid rgba(255,255,255,.9)!important;
  border-radius:14px!important;
  box-shadow:0 8px 22px rgba(14,60,34,.10)!important;
}
.alpha-index button{border-radius:9px!important;font-size:11px!important;font-weight:650!important;color:#5c7566!important;}
.alpha-index button:active{background:rgba(15,157,86,.14)!important;color:#0a7a43!important;}

/* ---------- 后台统计：固定 2×2，避免 3+1 断裂 ---------- */
.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:12px!important;}
.stat-card{
  background:linear-gradient(150deg,rgba(255,255,255,.95),rgba(240,251,245,.78))!important;
  border:1px solid rgba(255,255,255,.95)!important;border-radius:16px!important;
  box-shadow:var(--v2-shadow-xs)!important;padding:12px 14px!important;
}
.stat-num{font-size:24px!important;font-weight:750!important;color:var(--v2-ink)!important;}
.stat-label{font-size:11.5px!important;color:#6d8276!important;}

/* ---------- 登录设备：卡片化，顶部留白 ---------- */
.device-page .content,.device-list{padding-top:10px!important;}
.device-row{
  background:linear-gradient(150deg,rgba(255,255,255,.95),rgba(255,255,255,.72))!important;
  border:1px solid rgba(255,255,255,.94)!important;
  border-radius:16px!important;margin:8px 12px!important;padding:12px 14px!important;
  box-shadow:var(--v2-shadow-xs)!important;
}

/* ===== 1. Liquid Glass 基础层（原 liquid-glass.css）===== */
/* ==========================================================
   姜聊 · Liquid Glass 视觉层
   仅覆盖视觉样式；不包含业务逻辑、事件、路由或 API 代码。
   ========================================================== */

:root {
  color-scheme: light;
  --lg-ink: #163126;
  --lg-ink-soft: #49685a;
  --lg-muted: #4C6355;
  --lg-green: #159b5a;
  --lg-green-deep: #087a43;
  --lg-glass: linear-gradient(135deg,
    rgba(255,255,255,.48) 0%,
    rgba(245,255,249,.25) 48%,
    rgba(222,248,232,.30) 100%);
  --lg-glass-strong: linear-gradient(140deg,
    rgba(255,255,255,.66) 0%,
    rgba(245,255,249,.42) 52%,
    rgba(224,248,233,.40) 100%);
  --lg-edge: rgba(255,255,255,.76);
  --lg-edge-soft: rgba(255,255,255,.48);
  --lg-shadow: 0 14px 34px rgba(25, 77, 49, .105),
               0 3px 9px rgba(25, 77, 49, .045),
               inset 0 1px 0 rgba(255,255,255,.92),
               inset 0 -1px 0 rgba(255,255,255,.20);
  --lg-shadow-soft: 0 8px 22px rgba(25,77,49,.075),
                    inset 0 1px 0 rgba(255,255,255,.88);
  --lg-radius: 22px;
}

html, body {
  background: #e8f5ed !important;
  color: var(--lg-ink) !important;
}

body {
  background:
    radial-gradient(72% 54% at 4% 0%, rgba(255,255,255,.94) 0%, rgba(255,255,255,0) 72%),
    radial-gradient(58% 48% at 100% 13%, rgba(135,224,174,.38) 0%, rgba(135,224,174,0) 72%),
    radial-gradient(64% 54% at 82% 100%, rgba(105,194,146,.30) 0%, rgba(105,194,146,0) 74%),
    radial-gradient(46% 42% at 0% 74%, rgba(190,235,207,.56) 0%, rgba(190,235,207,0) 70%),
    linear-gradient(150deg, #f4fbf6 0%, #e8f5ed 48%, #dcefe3 100%) !important;
  color: var(--lg-ink) !important;
}

#app,
.screen,
.chat-screen,
.login-screen,
.content,
.jc-list,
.me-content,
.profile-page,
.add-page,
.device-page,
.admin-page {
  background: transparent !important;
}

/* 页面背景保持有纵深的环境光，而不是整页铺一层白色磨砂 */
.screen,
.chat-screen,
.login-screen {
  isolation: isolate;
  background:
    radial-gradient(58% 34% at 14% 5%, rgba(255,255,255,.48), transparent 72%),
    radial-gradient(48% 38% at 100% 16%, rgba(160,231,187,.22), transparent 72%),
    radial-gradient(58% 42% at 78% 100%, rgba(159,222,181,.20), transparent 72%),
    transparent !important;
}

/* 顶部栏：清透、低对比度边线，保留原有高度和安全区 */
.header,
.jc-header,
.chat-header {
  color: var(--lg-ink) !important;
  background: linear-gradient(180deg, rgba(250,255,252,.60), rgba(241,252,246,.30)) !important;
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  backdrop-filter: blur(30px) saturate(190%);
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.58) !important;
  box-shadow: 0 8px 24px rgba(30,77,50,.045), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

.jc-title,
.header-title,
.header-title-left,
.chat-header .title {
  color: var(--lg-ink) !important;
  letter-spacing: .12px !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.42);
}

.jc-icon-btn,
.icon-btn,
.chat-back-btn,
.chat-info-btn,
.tool-btn,
.copy-mini,
.avatar-back,
.sheet-btn {
  color: var(--lg-ink-soft) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.66), rgba(233,249,239,.34)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,.78) !important;
  box-shadow: 0 5px 16px rgba(24,78,48,.075), inset 0 1px 0 rgba(255,255,255,.94) !important;
}

.jc-icon-btn,
.icon-btn,
.chat-info-btn {
  border-radius: 50% !important;
}

/* 搜索：独立的液态玻璃胶囊 */
.jc-search-wrap {
  padding: 8px 13px 10px !important;
  background: transparent !important;
  border: 0 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.jc-search {
  min-height: 43px;
  border-radius: 999px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.70), rgba(232,249,238,.40)) !important;
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255,255,255,.82) !important;
  box-shadow: 0 8px 22px rgba(22,78,47,.065),
              inset 0 1px 0 rgba(255,255,255,.98),
              inset 0 -1px 0 rgba(255,255,255,.24) !important;
}

.jc-search input {
  color: var(--lg-ink) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.jc-search:focus-within {
  border-color: rgba(21,155,90,.42) !important;
  box-shadow: 0 0 0 3px rgba(21,155,90,.10), 0 9px 24px rgba(22,78,47,.075), inset 0 1px 0 #fff !important;
}

/* 底部主导航：悬浮玻璃底座 + 独立选中胶囊 */
.tabbar {
  position: relative;
  z-index: 10;
  height: auto !important;
  min-height: 62px;
  margin: 0 12px 8px !important;
  padding: 7px 7px calc(7px + env(safe-area-inset-bottom)) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(233,249,239,.34) 58%, rgba(218,244,228,.36)) !important;
  -webkit-backdrop-filter: blur(36px) saturate(205%);
  backdrop-filter: blur(36px) saturate(205%);
  border: 1px solid rgba(255,255,255,.82) !important;
  border-radius: 27px !important;
  box-shadow: 0 16px 38px rgba(24,75,47,.13),
              0 3px 10px rgba(24,75,47,.055),
              inset 0 1px 0 rgba(255,255,255,.98),
              inset 0 -1px 0 rgba(255,255,255,.22) !important;
}

.tab {
  min-height: 47px;
  margin: 0 2px !important;
  border: 1px solid transparent !important;
  border-radius: 20px !important;
  color: #60796b !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: background .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease !important;
}

.tab.active {
  color: var(--lg-green-deep) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.80), rgba(239,252,244,.53) 58%, rgba(221,246,230,.48)) !important;
  border-color: rgba(255,255,255,.92) !important;
  box-shadow: 0 6px 18px rgba(19,91,52,.10),
              inset 0 1px 0 rgba(255,255,255,.98),
              inset 0 -1px 0 rgba(255,255,255,.30) !important;
}

.tab.active .tab-icon {
  background: transparent !important;
  box-shadow: none !important;
}

.tab.active .tab-icon svg,
.tab.active .tab-label {
  color: var(--lg-green-deep) !important;
}

.tab-label {
  font-weight: 650 !important;
  letter-spacing: .12px;
}

/* 列表卡片：半透明材质，不使用纯白实心块 */
.conversation,
.me-profile,
.profile-hero,
.profile-card,
.field-banner,
.field-note-card,
.moments-empty,
.about-card,
.login-card,
.stat-card,
.admin-user-card,
.device-item,
.friend-action-main,
.search-card,
.add-search-card {
  background: var(--lg-glass) !important;
  -webkit-backdrop-filter: blur(26px) saturate(178%);
  backdrop-filter: blur(26px) saturate(178%);
  border: 1px solid var(--lg-edge) !important;
  box-shadow: var(--lg-shadow) !important;
}

.contacts-group,
.me-group,
.discover-group,
.admin-block,
.device-list,
.settings-group {
  background: linear-gradient(145deg, rgba(255,255,255,.42), rgba(239,252,244,.22) 60%, rgba(225,247,233,.26)) !important;
  -webkit-backdrop-filter: blur(24px) saturate(175%);
  backdrop-filter: blur(24px) saturate(175%);
  border: 1px solid rgba(255,255,255,.70) !important;
  border-radius: var(--lg-radius) !important;
  box-shadow: var(--lg-shadow-soft) !important;
  overflow: hidden;
}

.conversation {
  width: calc(100% - 24px) !important;
  min-height: 76px !important;
  margin: 7px 12px !important;
  padding: 12px 14px !important;
  border-radius: 21px !important;
  text-align: left;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease !important;
}

.conversation:active {
  transform: scale(.988) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.68), rgba(224,247,232,.44)) !important;
}

.conv-name,
.contacts-row .name,
.me-profile .name,
.profile-name,
.request-name {
  color: var(--lg-ink) !important;
}

.conv-last,
.conv-time,
.contacts-row .account,
.me-profile-hint,
.profile-account,
.request-sub {
  color: var(--lg-muted) !important;
}

.contacts-row,
.me-row,
.discover-row,
.request-row,
.admin-user-row,
.admin-device-row,
.friend-official,
.field-official {
  background: transparent !important;
  border-bottom: 1px solid rgba(255,255,255,.50) !important;
  color: var(--lg-ink) !important;
  transition: background .18s ease !important;
}

.contacts-row:last-child,
.me-row:last-child,
.discover-row:last-child {
  border-bottom: 0 !important;
}

.contacts-row:active,
.me-row:active,
.discover-row:active,
.field-official:active {
  background: rgba(255,255,255,.34) !important;
}

.new-friends-card {
  background: linear-gradient(140deg, rgba(255,255,255,.64), rgba(224,247,232,.38)) !important;
  border-bottom: 1px solid rgba(255,255,255,.62) !important;
}

/* 「我」、田地、个人主页及设置页 */
.me-profile {
  width: 100% !important;
  border-radius: 25px !important;
  padding: 20px 17px !important;
  text-align: left;
}

.me-profile .avatar,
.profile-hero .avatar,
.profile-avatar-btn .avatar {
  box-shadow: 0 8px 20px rgba(22,77,47,.12), 0 0 0 3px rgba(255,255,255,.50) !important;
}

.me-logout,
.friend-danger {
  border: 1px solid rgba(255,255,255,.78) !important;
  border-radius: 17px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.58), rgba(255,239,237,.42)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: var(--lg-shadow-soft) !important;
}

.field-banner {
  margin: 14px 12px 16px !important;
  padding: 17px 16px !important;
  border-radius: 25px !important;
}

.field-banner-logo {
  border: 1px solid rgba(255,255,255,.82) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(225,247,233,.42)) !important;
  box-shadow: 0 8px 22px rgba(22,77,47,.09), inset 0 1px 0 rgba(255,255,255,.96) !important;
}

.field-note-card,
.moments-empty {
  margin: 12px !important;
  padding: 20px 18px !important;
  border-radius: 23px !important;
  color: var(--lg-ink-soft) !important;
  line-height: 1.8;
}

.section-title,
.letter-head,
.admin-block-title,
.me-section-title {
  color: #688273 !important;
}

/* 登录页：玻璃登录面板与更柔和的环境光 */
.login-screen {
  background:
    radial-gradient(56% 38% at 50% 14%, rgba(255,255,255,.75), transparent 72%),
    radial-gradient(65% 48% at 100% 82%, rgba(142,221,174,.25), transparent 72%),
    linear-gradient(155deg, #f4fbf6 0%, #e8f5ed 54%, #dceddf 100%) !important;
}

.login-logo {
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(229,248,236,.48)) !important;
  border: 1px solid rgba(255,255,255,.90) !important;
  box-shadow: 0 18px 38px rgba(23,91,52,.14), inset 0 1px 0 #fff !important;
}

.login-title,
.login-card label {
  color: var(--lg-ink) !important;
}

.login-sub,
.login-hint {
  color: var(--lg-muted) !important;
}

.login-card {
  border-radius: 27px !important;
  padding: 22px 19px 19px !important;
  box-shadow: 0 22px 54px rgba(25,77,49,.12), inset 0 1px 0 rgba(255,255,255,.98) !important;
}

/* 输入区：玻璃内嵌控件，避免发白的厚重输入框 */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  color: var(--lg-ink) !important;
  background: rgba(255,255,255,.48) !important;
  border: 1px solid rgba(255,255,255,.80) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 3px 10px rgba(25,77,49,.035) !important;
}

input::placeholder,
textarea::placeholder {
  color: #8da397 !important;
  opacity: 1;
}

input:focus,
textarea:focus,
select:focus {
  background: rgba(255,255,255,.72) !important;
  border-color: rgba(21,155,90,.46) !important;
  box-shadow: 0 0 0 3px rgba(21,155,90,.10), inset 0 1px 0 #fff !important;
}

.jc-search input {
  background: transparent !important;
  box-shadow: none !important;
}

/* 聊天页：保留消息布局，只调整气泡和输入区材质 */
.chat-screen {
  background:
    radial-gradient(54% 36% at 10% 0%, rgba(255,255,255,.45), transparent 72%),
    radial-gradient(56% 42% at 100% 80%, rgba(143,220,174,.22), transparent 72%),
    linear-gradient(160deg, rgba(237,249,241,.40), rgba(219,240,226,.48)) !important;
}

.message-list {
  background: transparent !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.msg-bubble {
  border-radius: 18px !important;
  box-shadow: 0 6px 15px rgba(25,77,49,.055), inset 0 1px 0 rgba(255,255,255,.52) !important;
}

.msg-bubble.other {
  color: var(--lg-ink) !important;
  background: linear-gradient(145deg, rgba(255,255,255,.76), rgba(244,255,248,.54)) !important;
  border: 1px solid rgba(255,255,255,.88) !important;
}

.msg-bubble.other:before {
  border-right-color: rgba(255,255,255,.76) !important;
}

.msg-bubble.self,
.msg-bubble.self.pending {
  color: #123d29 !important;
  background: linear-gradient(145deg, rgba(190,244,205,.94), rgba(139,222,165,.82)) !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  box-shadow: 0 7px 17px rgba(32,120,67,.10), inset 0 1px 0 rgba(255,255,255,.62) !important;
}

.msg-bubble.self:after,
.msg-bubble.self.pending:after {
  border-left-color: rgba(161,232,182,.90) !important;
}

.composer {
  margin: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
  width: calc(100% - 20px) !important;
  padding: 8px !important;
  border: 1px solid rgba(255,255,255,.82) !important;
  border-radius: 25px !important;
  background: linear-gradient(145deg, rgba(255,255,255,.66), rgba(235,250,241,.40)) !important;
  -webkit-backdrop-filter: blur(34px) saturate(195%);
  backdrop-filter: blur(34px) saturate(195%);
  box-shadow: 0 12px 30px rgba(25,77,49,.10), inset 0 1px 0 rgba(255,255,255,.98) !important;
}

.composer textarea {
  min-height: 38px;
  border-radius: 17px !important;
  background: rgba(255,255,255,.54) !important;
  border: 1px solid rgba(255,255,255,.78) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.90) !important;
}

.composer .tool-btn {
  background: rgba(255,255,255,.48) !important;
  border: 1px solid rgba(255,255,255,.80) !important;
}

.composer #sendBtn,
.login-btn,
.mini-btn.green,
.search-box button,
.add-search-inner button,
.profile-btn.primary,
.friend-action-main button,
.admin-form button,
.pwd-form button {
  color: #fff !important;
  background: linear-gradient(145deg, #28b873 0%, #0d9654 100%) !important;
  border: 1px solid rgba(5,123,66,.24) !important;
  border-radius: 15px !important;
  box-shadow: 0 7px 17px rgba(13,137,73,.20), inset 0 1px 0 rgba(255,255,255,.30) !important;
}

.keyboard-open .composer {
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
}

/* 弹出层和消息操作面板 */
.jc-modal-backdrop {
  background: rgba(17,52,32,.24) !important;
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
}

.jc-modal {
  background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(235,250,241,.67)) !important;
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  backdrop-filter: blur(34px) saturate(190%);
  border: 1px solid rgba(255,255,255,.88) !important;
  box-shadow: 0 -20px 48px rgba(17,52,32,.17), inset 0 1px 0 rgba(255,255,255,.98) !important;
}

/* 按压反馈与键盘可见焦点 */
button {
  -webkit-tap-highlight-color: transparent;
  transition: background .18s ease, border-color .18s ease, box-shadow .2s ease, transform .16s ease;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(21,155,90,.48) !important;
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .conversation:hover,
  .contacts-row:hover,
  .me-row:hover,
  .discover-row:hover {
    background: rgba(255,255,255,.34) !important;
  }

  .tab:not(.active):hover {
    background: rgba(255,255,255,.24) !important;
  }
}

@media (min-width: 700px) {
  .tabbar {
    margin-bottom: 12px !important;
  }
  .composer {
    max-width: 580px;
  }
}

@media (max-width: 380px) {
  .tabbar {
    margin-left: 9px !important;
    margin-right: 9px !important;
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .tab {
    margin-left: 1px !important;
    margin-right: 1px !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .tab.active {
    animation: lg-selected-in .24s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes lg-selected-in {
    from { transform: scale(.965); filter: brightness(1.02); }
    to { transform: scale(1); filter: brightness(1); }
  }
}

/* 不支持 backdrop-filter 的旧浏览器：以透明度和描边降级 */
@supports not (backdrop-filter: blur(1px)) {
  .tabbar,
  .header,
  .jc-header,
  .chat-header,
  .jc-search,
  .conversation,
  .contacts-group,
  .me-group,
  .discover-group,
  .profile-card,
  .me-profile,
  .field-banner,
  .field-note-card,
  .login-card,
  .composer,
  .jc-modal {
    background-color: rgba(242,251,246,.90) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== 2. V2.2 页面玻璃层（原 liquid-glass-v22.css）===== */
/* ============================================================
   姜聊 V2.2 · Apple Liquid Glass
   纯视觉覆盖层：不修改业务逻辑、事件、路由、接口或数据结构。
   所有材质按层级拆分，避免整站使用同一种白色半透明。
   ============================================================ */

:root {
  color-scheme: light;
  --v22-ink: #12261b;
  --v22-ink-soft: #365444;
  --v22-muted: #4C6355;
  --v22-muted-soft: #4C6355;
  --v22-green: #0f9d58;
  --v22-green-deep: #087342;
  --v22-green-bright: #34c27a;
  --v22-green-soft: #d9f5e4;
  --v22-cream: #fbf8ef;
  --v22-aqua: #ddf4f0;
  --v22-edge: rgba(255, 255, 255, .78);
  --v22-edge-soft: rgba(255, 255, 255, .46);
  --v22-edge-green: rgba(159, 224, 185, .32);

  /* 导航：最轻薄、模糊最强 */
  --v22-nav-surface: linear-gradient(155deg,
    rgba(255, 255, 255, .66) 0%,
    rgba(245, 255, 249, .44) 46%,
    rgba(213, 242, 226, .40) 100%);
  /* 卡片：中等厚度，带薄荷与乳白反射 */
  --v22-card-surface: linear-gradient(148deg,
    rgba(255, 255, 255, .69) 0%,
    rgba(250, 255, 252, .40) 44%,
    rgba(221, 245, 232, .33) 100%);
  /* 大卡片：更明显的光线折射与层次 */
  --v22-hero-surface: linear-gradient(142deg,
    rgba(255, 255, 252, .78) 0%,
    rgba(247, 255, 251, .48) 38%,
    rgba(214, 243, 228, .38) 72%,
    rgba(196, 234, 218, .28) 100%);
  /* 内嵌控件：比卡片更透明 */
  --v22-inset-surface: linear-gradient(145deg,
    rgba(255, 255, 255, .56) 0%,
    rgba(246, 255, 251, .30) 60%,
    rgba(219, 243, 229, .26) 100%);
  /* 弹层：最厚、最清晰 */
  --v22-modal-surface:
    radial-gradient(130% 74% at 16% -14%, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(155deg,
      rgba(255, 255, 252, .80) 0%,
      rgba(241, 255, 249, .66) 46%,
      rgba(210, 244, 227, .56) 100%);

  --v22-shadow-nav:
    0 24px 48px rgba(14, 62, 36, .16),
    0 4px 12px rgba(14, 62, 36, .07),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(255, 255, 255, .28),
    inset 1px 0 0 rgba(255, 255, 255, .46);
  --v22-shadow-card:
    0 16px 38px rgba(14, 62, 36, .095),
    0 3px 9px rgba(14, 62, 36, .045),
    inset 0 1px 0 rgba(255, 255, 255, .94),
    inset 0 -1px 0 rgba(255, 255, 255, .18);
  --v22-shadow-hero:
    0 22px 52px rgba(14, 62, 36, .13),
    0 5px 14px rgba(14, 62, 36, .06),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(255, 255, 255, .24);
  --v22-shadow-inset:
    0 9px 24px rgba(14, 62, 36, .055),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(255, 255, 255, .22);
  --v22-radius-lg: 28px;
  --v22-radius-md: 22px;
  --v22-radius-sm: 16px;
}

html {
  background: #eaf7ef !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  color: var(--v22-ink) !important;
  background:
    radial-gradient(76% 58% at 8% -8%, #fffdf4 0%, rgba(255, 253, 244, 0) 62%),
    radial-gradient(66% 48% at 100% 2%, rgba(129, 226, 172, .43) 0%, rgba(129, 226, 172, 0) 68%),
    radial-gradient(58% 46% at 96% 100%, rgba(118, 208, 196, .25) 0%, rgba(118, 208, 196, 0) 72%),
    radial-gradient(54% 44% at 0% 82%, rgba(196, 236, 211, .48) 0%, rgba(196, 236, 211, 0) 72%),
    linear-gradient(162deg, #f8fbf2 0%, #ecf8f0 44%, #dff1e9 100%) !important;
}

/* 柔和环境光：只作为背景，不参与文字层 */
body::before {
  content: "";
  position: fixed;
  inset: -16%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(30% 24% at 18% 18%, rgba(255, 255, 255, .58) 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(28% 22% at 78% 24%, rgba(150, 238, 186, .34) 0%, rgba(150, 238, 186, 0) 74%),
    radial-gradient(26% 20% at 52% 86%, rgba(140, 221, 206, .24) 0%, rgba(140, 221, 206, 0) 76%);
  filter: blur(44px) saturate(108%);
}

#app {
  z-index: 2;
  background: transparent !important;
}

.screen,
.chat-screen,
.login-screen,
.content,
.jc-list,
.me-content,
.profile-page,
.about-page,
.settings-page,
.add-page,
.device-page,
.admin-page {
  background: transparent !important;
}

.screen,
.chat-screen {
  color: var(--v22-ink) !important;
}

/* 内容进入时仅做极轻的透明度过渡，避免破坏毛玻璃层 */
.content,
.jc-list {
  animation: v22ContentIn .20s ease both;
}
@keyframes v22ContentIn {
  from { opacity: .88; }
  to { opacity: 1; }
}

/* ---------- 顶部栏：薄玻璃，保留完整安全区 ---------- */
.header,
.jc-header,
.chat-header {
  color: var(--v22-ink) !important;
  background: linear-gradient(180deg,
    rgba(255, 255, 253, .68) 0%,
    rgba(244, 255, 249, .42) 62%,
    rgba(230, 250, 239, .28) 100%) !important;
  -webkit-backdrop-filter: blur(38px) saturate(200%);
  backdrop-filter: blur(38px) saturate(200%);
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .62) !important;
  box-shadow:
    0 10px 28px rgba(13, 61, 36, .06),
    inset 0 1px 0 rgba(255, 255, 255, .88),
    inset 0 -1px 0 rgba(255, 255, 255, .18) !important;
}
.jc-header { border-radius: 0 0 28px 28px !important; }
.chat-header { border-radius: 0 0 26px 26px !important; }

.jc-title,
.header-title,
.chat-header .title {
  color: var(--v22-ink) !important;
  font-weight: 700 !important;
  font-size: 18px !important;
  letter-spacing: .2px !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .5);
}
.chat-header .title { font-size: 17.5px !important; font-weight: 700 !important; }

.jc-icon-btn,
.icon-btn,
.chat-info-btn,
.chat-back-btn,
.tool-btn,
.copy-mini,
.sheet-close {
  color: var(--v22-ink-soft) !important;
  background: linear-gradient(150deg,
    rgba(255, 255, 255, .74) 0%,
    rgba(240, 253, 245, .42) 54%,
    rgba(216, 243, 228, .34) 100%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, .86) !important;
  box-shadow:
    0 8px 18px rgba(13, 61, 36, .085),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(255, 255, 255, .20) !important;
}
.jc-icon-btn,
.icon-btn,
.chat-info-btn,
.tool-btn { border-radius: 50% !important; }
.chat-back-btn { border-radius: 16px !important; }
.jc-icon-btn:not(:disabled):active,
.icon-btn:not(:disabled):active,
.chat-info-btn:not(:disabled):active,
.chat-back-btn:not(:disabled):active,
.tool-btn:not(:disabled):active {
  transform: scale(.95) !important;
  box-shadow:
    inset 0 2px 6px rgba(13, 61, 36, .08),
    0 4px 10px rgba(13, 61, 36, .05) !important;
}

/* ---------- 搜索：独立液态玻璃胶囊 ---------- */
.jc-search-wrap {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  padding: 10px 14px 11px !important;
}
.jc-search {
  height: 44px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, .80) 0%,
      rgba(248, 255, 252, .50) 48%,
      rgba(221, 245, 232, .42) 100%) !important;
  -webkit-backdrop-filter: blur(30px) saturate(205%);
  backdrop-filter: blur(30px) saturate(205%);
  border: 1px solid rgba(255, 255, 255, .90) !important;
  box-shadow:
    0 11px 28px rgba(13, 61, 36, .075),
    0 2px 6px rgba(13, 61, 36, .035),
    inset 0 1px 0 rgba(255, 255, 255, .99),
    inset 0 -1px 0 rgba(255, 255, 255, .24),
    inset 1px 0 0 rgba(255, 255, 255, .44) !important;
}
.jc-search svg { color: #5f7a68 !important; }
.jc-search input {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--v22-ink) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
}
.jc-search input::placeholder { color: #849a8b !important; opacity: 1; }
.jc-search:focus-within {
  border-color: rgba(28, 161, 91, .42) !important;
  box-shadow:
    0 0 0 3px rgba(28, 161, 91, .10),
    0 13px 30px rgba(13, 61, 36, .09),
    inset 0 1px 0 rgba(255, 255, 255, .99) !important;
}

/* ---------- 底部导航：悬浮液态玻璃底座 ---------- */
.tabbar {
  position: relative !important;
  z-index: 10 !important;
  width: calc(100% - 24px) !important;
  max-width: 540px !important;
  height: auto !important;
  min-height: 68px !important;
  margin: 0 auto calc(8px + env(safe-area-inset-bottom)) !important;
  padding: 7px 6px !important;
  background: var(--v22-nav-surface) !important;
  -webkit-backdrop-filter: blur(46px) saturate(220%) brightness(1.025);
  backdrop-filter: blur(46px) saturate(220%) brightness(1.025);
  border: 1px solid rgba(255, 255, 255, .76) !important;
  border-radius: 31px !important;
  box-shadow: var(--v22-shadow-nav) !important;
  isolation: isolate;
  overflow: hidden;
  transform: translateZ(0);
}
.tabbar::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(120deg,
      rgba(255, 255, 255, .55) 0%,
      rgba(255, 255, 255, .10) 22%,
      rgba(255, 255, 255, 0) 46%,
      rgba(137, 218, 169, .10) 72%,
      rgba(255, 255, 255, .32) 100%);
  mix-blend-mode: screen;
  opacity: .88;
}
.tabbar::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 2px;
  height: 12px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(50% 100% at 50% 0%,
    rgba(9, 83, 45, .12) 0%,
    rgba(9, 83, 45, 0) 100%);
  filter: blur(8px);
}
.tab {
  min-height: 50px !important;
  margin: 0 2px !important;
  padding: 5px 0 4px !important;
  border-radius: 24px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #607a69 !important;
  transition:
    background .30s cubic-bezier(.22, .9, .36, 1),
    color .24s ease,
    border-color .30s ease,
    box-shadow .30s ease,
    transform .24s cubic-bezier(.22, .9, .36, 1) !important;
}
.tab:not(.active):not(:disabled):active {
  transform: scale(.955) !important;
  background: rgba(255, 255, 255, .24) !important;
}
.tab.active {
  color: var(--v22-green-deep) !important;
  background:
    linear-gradient(168deg,
      rgba(255, 255, 255, .94) 0%,
      rgba(244, 255, 249, .70) 52%,
      rgba(215, 246, 228, .58) 100%) !important;
  border-color: rgba(255, 255, 255, .92) !important;
  box-shadow:
    0 9px 22px rgba(13, 83, 46, .12),
    0 2px 5px rgba(13, 83, 46, .04),
    inset 0 1px 0 rgba(255, 255, 255, .99),
    inset 0 -1px 0 rgba(160, 224, 183, .18) !important;
  transform: translateY(-1px) !important;
}
.tab svg { width: 24px !important; height: 24px !important; }
.tab-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  background: transparent !important;
  box-shadow: none !important;
}
.tab.active .tab-icon svg { color: var(--v22-green-deep) !important; }
.tab-label {
  font-size: 11.5px !important;
  line-height: 15px !important;
  font-weight: 650 !important;
  letter-spacing: .15px !important;
}
.tab.active .tab-label { font-weight: 750 !important; }
.tab-badge,
.tab-dot { z-index: 2; }
.tab-badge {
  background: linear-gradient(180deg, #ff6569, #e84248) !important;
  box-shadow: 0 3px 7px rgba(209, 50, 55, .20), inset 0 1px 0 rgba(255, 255, 255, .36) !important;
}

/* ---------- 列表与卡片：三级玻璃材质 ---------- */
.conversation {
  width: calc(100% - 24px) !important;
  min-height: 78px !important;
  margin: 8px 12px !important;
  padding: 13px 15px !important;
  border-radius: 24px !important;
  background: var(--v22-card-surface) !important;
  -webkit-backdrop-filter: blur(30px) saturate(200%);
  backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid var(--v22-edge) !important;
  box-shadow: var(--v22-shadow-card) !important;
  overflow: hidden;
  transition:
    transform .22s cubic-bezier(.22, .9, .36, 1),
    box-shadow .24s ease,
    background .24s ease !important;
}
.conversation:not(:disabled):active {
  transform: scale(.988) !important;
  background:
    linear-gradient(148deg,
      rgba(255, 255, 255, .76) 0%,
      rgba(232, 251, 241, .58) 56%,
      rgba(207, 241, 221, .50) 100%) !important;
  box-shadow:
    0 9px 22px rgba(13, 61, 36, .075),
    inset 0 2px 5px rgba(13, 61, 36, .045),
    inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}
.conversation .avatar {
  box-shadow:
    0 7px 16px rgba(13, 61, 36, .13),
    0 0 0 1px rgba(255, 255, 255, .72) !important;
}
.conv-name {
  color: var(--v22-ink) !important;
  font-size: 17px !important;
  font-weight: 650 !important;
  line-height: 23px !important;
  letter-spacing: .1px !important;
}
.conv-last {
  color: #657c6c !important;
  font-size: 13.5px !important;
  line-height: 20px !important;
}
.conv-time {
  color: #7d9383 !important;
  font-size: 11.5px !important;
}
.conv-badge {
  background: linear-gradient(180deg, #ff6468, #e84248) !important;
  color: #fff !important;
  box-shadow: 0 4px 10px rgba(208, 48, 53, .24), inset 0 1px 0 rgba(255, 255, 255, .30) !important;
}

/* 姜友簿、我、田地、设置中的分组卡 */
.contacts-group,
.me-group,
.discover-group,
.settings-group,
.device-list,
.admin-block,
.profile-card,
.about-card,
.about-metrics > div,
.avatar-picker-wrap,
.profile-id-card,
.admin-user-card,
.stat-card {
  background: var(--v22-card-surface) !important;
  -webkit-backdrop-filter: blur(30px) saturate(195%);
  backdrop-filter: blur(30px) saturate(195%);
  border: 1px solid var(--v22-edge) !important;
  border-radius: var(--v22-radius-md) !important;
  box-shadow: var(--v22-shadow-card) !important;
  overflow: hidden;
}
.contacts-group,
.me-group,
.discover-group {
  width: calc(100% - 24px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
.contacts-group { margin-top: 8px !important; margin-bottom: 8px !important; }
.me-group { margin-top: 14px !important; }
.discover-group { margin: 12px auto 12px !important; }

.contacts-row,
.me-row,
.discover-row,
.friend-official,
.field-official,
.profile-row,
.admin-device-row {
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, .48) !important;
  color: var(--v22-ink) !important;
  transition: background .18s ease, transform .18s ease !important;
}
.contacts-row:not(:disabled):active,
.me-row:not(:disabled):active,
.discover-row:not(:disabled):active,
.friend-official:not(:disabled):active,
.field-official:not(:disabled):active {
  background: linear-gradient(90deg, rgba(255, 255, 255, .38), rgba(220, 247, 232, .30)) !important;
}
.contacts-row .name,
.me-row .label,
.discover-row .label {
  color: var(--v22-ink) !important;
  font-weight: 650 !important;
}
.contacts-row .account,
.discover-note,
.me-row .chevron,
.contacts-row .chevron {
  color: var(--v22-muted) !important;
}
.contact-icon,
.me-icon,
.discover-icon {
  border-radius: 12px !important;
  box-shadow:
    0 5px 12px rgba(13, 61, 36, .075),
    inset 0 1px 0 rgba(255, 255, 255, .55) !important;
}
.new-friends-card {
  width: calc(100% - 24px) !important;
  margin: 0 auto 8px !important;
  border: 1px solid var(--v22-edge) !important;
  border-radius: 23px !important;
  box-shadow: var(--v22-shadow-card) !important;
  background:
    linear-gradient(148deg,
      rgba(255, 255, 255, .74) 0%,
      rgba(240, 255, 247, .48) 54%,
      rgba(210, 244, 226, .36) 100%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(195%);
  backdrop-filter: blur(28px) saturate(195%);
}
.new-friends-badge {
  background: linear-gradient(180deg, #ff6468, #e84248) !important;
  box-shadow: 0 3px 8px rgba(208, 48, 53, .18) !important;
}
.contacts-wrap { padding: 10px 12px 28px !important; }
.letter-group { margin-bottom: 8px !important; }
.letter-head {
  width: calc(100% - 32px) !important;
  margin: 0 auto !important;
  padding: 10px 4px 6px !important;
  background: transparent !important;
  color: #456756 !important;
  font-size: 12px !important;
  font-weight: 750 !important;
  letter-spacing: .10em !important;
}
.letter-head em {
  color: #7f9486 !important;
  font-style: normal !important;
  font-weight: 600 !important;
}
.alpha-index {
  background: linear-gradient(150deg, rgba(255, 255, 255, .68), rgba(226, 247, 235, .38)) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .78) !important;
  border-radius: 16px !important;
  box-shadow: var(--v22-shadow-card) !important;
  padding: 3px !important;
}
.alpha-index button {
  color: #3f6350 !important;
  font-weight: 650 !important;
}

/* ---------- 我 / 田地 / 个人主页的 Hero 玻璃 ---------- */
.me-profile,
.profile-hero,
.field-banner,
.login-card,
.moments-empty,
.admin-hero {
  background: var(--v22-hero-surface) !important;
  -webkit-backdrop-filter: blur(38px) saturate(205%);
  backdrop-filter: blur(38px) saturate(205%);
  border: 1px solid rgba(255, 255, 255, .84) !important;
  border-radius: var(--v22-radius-lg) !important;
  box-shadow: var(--v22-shadow-hero) !important;
}
.me-profile {
  position: relative !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 22px 18px !important;
  overflow: hidden !important;
}
.me-profile::before,
.profile-hero::before,
.field-banner::before,
.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(125deg,
      rgba(255, 255, 255, .50) 0%,
      rgba(255, 255, 255, .06) 30%,
      rgba(255, 255, 255, 0) 56%,
      rgba(157, 228, 184, .10) 80%,
      rgba(255, 255, 255, .22) 100%);
  mix-blend-mode: screen;
}
.me-profile > *,
.profile-hero > *,
.field-banner > *,
.login-card > * { position: relative; z-index: 1; }
.me-profile .avatar,
.profile-hero .avatar,
.profile-avatar-btn .avatar {
  box-shadow:
    0 10px 24px rgba(13, 61, 36, .14),
    0 0 0 1px rgba(255, 255, 255, .78),
    0 0 0 6px rgba(255, 255, 255, .18) !important;
}
.me-profile .name,
.profile-name {
  color: var(--v22-ink) !important;
  font-weight: 750 !important;
}
.profile-hero {
  position: relative;
  margin: 0 !important;
  padding: 24px 18px 20px !important;
  text-align: center;
  overflow: hidden;
}
.profile-page { padding: 12px 12px calc(34px + env(safe-area-inset-bottom)) !important; }
.profile-card { margin-top: 12px !important; margin-bottom: 12px !important; }
.profile-row { min-height: 51px !important; font-size: 14.5px !important; }
.profile-row > span { color: var(--v22-muted) !important; font-size: 13px !important; }
.profile-row > strong { color: var(--v22-ink) !important; font-weight: 650 !important; }
.profile-avatar-tip {
  background: linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(230, 250, 238, .54)) !important;
  border: 1px solid rgba(255, 255, 255, .84) !important;
  color: #577264 !important;
  box-shadow: 0 4px 12px rgba(13, 61, 36, .06) !important;
}
.profile-state {
  background: linear-gradient(180deg, rgba(235, 252, 241, .76), rgba(215, 245, 226, .54)) !important;
  border-color: rgba(121, 201, 151, .36) !important;
  color: #147a45 !important;
}
.profile-btn {
  border-radius: 17px !important;
  box-shadow: 0 8px 20px rgba(13, 99, 55, .14), inset 0 1px 0 rgba(255, 255, 255, .26) !important;
}
.profile-btn.primary {
  background: linear-gradient(160deg, #25b76b 0%, #0b8e4f 58%, #087d44 100%) !important;
  border: 1px solid rgba(6, 108, 57, .24) !important;
}
.profile-btn.soft {
  background: linear-gradient(160deg, rgba(255, 255, 255, .66), rgba(235, 250, 241, .46)) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  color: #28523b !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
.copy-mini {
  background: rgba(255, 255, 255, .52) !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  color: #157a46 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

/* 认证、身份标签 */
.official-tag,
.admin-tag,
.muted-pill,
.profile-muted {
  border-radius: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .2px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6) !important;
}
.official-tag {
  color: #0c7040 !important;
  background: linear-gradient(180deg, rgba(232, 252, 240, .88), rgba(207, 243, 222, .66)) !important;
  border: 1px solid rgba(139, 210, 166, .48) !important;
}

/* 退出登录：半透明红色玻璃，而不是实白按钮 */
.me-logout,
.friend-danger {
  color: #b5322d !important;
  background:
    linear-gradient(155deg,
      rgba(255, 255, 255, .64) 0%,
      rgba(255, 241, 239, .46) 52%,
      rgba(255, 219, 214, .38) 100%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .82) !important;
  box-shadow:
    0 12px 28px rgba(142, 43, 38, .09),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(255, 255, 255, .18) !important;
}
.me-logout:not(:disabled):active,
.friend-danger:not(:disabled):active {
  transform: scale(.985) !important;
  background: linear-gradient(155deg, #fff0ed, #ffddd8) !important;
  box-shadow: inset 0 2px 7px rgba(142, 43, 38, .12) !important;
}

/* ---------- 田地 / 姜友圈 ---------- */
.field-banner {
  margin: 14px 12px 14px !important;
  padding: 17px 16px !important;
  position: relative;
  overflow: hidden;
}
.field-banner-logo {
  border: 1px solid rgba(255, 255, 255, .88) !important;
  background: linear-gradient(150deg, rgba(255, 255, 255, .84), rgba(229, 250, 238, .48)) !important;
  box-shadow:
    0 10px 22px rgba(13, 61, 36, .10),
    inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}
.field-banner-title {
  color: var(--v22-ink) !important;
  font-size: 18px !important;
  font-weight: 750 !important;
}
.field-banner-sub {
  color: #627b6a !important;
  font-size: 12.5px !important;
  line-height: 19px !important;
}
.field-note-card {
  margin: 0 12px 16px !important;
  padding: 17px 18px !important;
  color: #4d6959 !important;
  background:
    linear-gradient(150deg,
      rgba(255, 255, 251, .64) 0%,
      rgba(247, 255, 251, .38) 48%,
      rgba(216, 243, 228, .32) 100%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--v22-edge) !important;
  border-radius: 23px !important;
  box-shadow: var(--v22-shadow-card) !important;
  font-size: 13px !important;
  line-height: 21px !important;
}
.discover-note {
  color: #71887a !important;
  font-size: 12px !important;
}
.moments-empty {
  margin: 12px !important;
  padding: 42px 24px !important;
}
.moments-empty-icon {
  background: linear-gradient(150deg, rgba(255, 255, 255, .82), rgba(227, 248, 236, .48)) !important;
  border: 1px solid rgba(255, 255, 255, .92) !important;
  box-shadow: var(--v22-shadow-card) !important;
}
.moments-empty-title,
.about-title {
  color: var(--v22-ink) !important;
  font-weight: 750 !important;
}

/* ---------- 关于页 ---------- */
.about-card {
  margin: 12px !important;
  padding: 18px !important;
  border-radius: 26px !important;
}
.about-metrics > div {
  background:
    linear-gradient(150deg, rgba(255, 255, 255, .70), rgba(225, 247, 235, .40)) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 4px 12px rgba(13, 61, 36, .04) !important;
}
.about-text {
  color: #506b5a !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
}
.about-version { color: #4C6355 !important; }

/* ---------- 登录页：强玻璃面板 ---------- */
.login-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 26px !important;
}
.login-logo {
  background: linear-gradient(150deg, rgba(255, 255, 255, .86), rgba(221, 247, 233, .48)) !important;
  border: 1px solid rgba(255, 255, 255, .92) !important;
  box-shadow:
    0 20px 42px rgba(13, 61, 36, .15),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(255, 255, 255, .28) !important;
}
.login-title { color: var(--v22-ink) !important; font-weight: 800 !important; }
.login-sub { color: #5e7768 !important; }
.login-card {
  position: relative;
  border-radius: 28px !important;
  padding: 22px 19px 18px !important;
  overflow: hidden;
  box-shadow:
    0 26px 60px rgba(13, 61, 36, .15),
    0 5px 14px rgba(13, 61, 36, .06),
    inset 0 1px 0 rgba(255, 255, 255, .99) !important;
}
.login-card label { color: #4b6655 !important; font-weight: 700 !important; }
.login-card input {
  height: 48px !important;
  background: var(--v22-inset-surface) !important;
  border: 1px solid rgba(255, 255, 255, .84) !important;
  border-radius: 15px !important;
  box-shadow:
    0 6px 16px rgba(13, 61, 36, .045),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(255, 255, 255, .20) !important;
  color: var(--v22-ink) !important;
  font-size: 16px !important;
}
.login-card input::placeholder { color: #849a8c !important; }
.login-btn {
  height: 50px !important;
  border-radius: 16px !important;
  background: linear-gradient(160deg, #27ba70 0%, #0d9654 58%, #087e46 100%) !important;
  border: 1px solid rgba(6, 108, 57, .28) !important;
  box-shadow:
    0 14px 28px rgba(11, 126, 68, .22),
    inset 0 1px 0 rgba(255, 255, 255, .34),
    inset 0 -1px 0 rgba(4, 77, 41, .12) !important;
}
.login-guide-hint,
.login-hint { color: #4C6355 !important; }

/* ---------- 聊天页：气泡与输入区 ---------- */
.chat-screen {
  background:
    radial-gradient(52% 34% at 8% 0%, rgba(255, 255, 255, .34), transparent 74%),
    radial-gradient(48% 38% at 94% 86%, rgba(139, 222, 174, .14), transparent 76%),
    transparent !important;
}
.message-list {
  background: transparent !important;
  padding: 14px 12px 20px !important;
}
.msg-bubble {
  font-size: 16px !important;
  line-height: 1.55 !important;
  border-radius: 18px !important;
  letter-spacing: .15px !important;
}
.msg-bubble.other {
  color: var(--v22-ink) !important;
  background:
    linear-gradient(150deg,
      rgba(255, 255, 255, .80) 0%,
      rgba(250, 255, 252, .58) 54%,
      rgba(235, 250, 242, .52) 100%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .90) !important;
  box-shadow:
    0 10px 24px rgba(13, 61, 36, .07),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(255, 255, 255, .22) !important;
}
.msg-bubble.other:before { border-right-color: rgba(255, 255, 255, .80) !important; }
.msg-bubble.self,
.msg-bubble.self.pending {
  color: #0b3a24 !important;
  background:
    linear-gradient(145deg,
      rgba(193, 245, 210, .93) 0%,
      rgba(151, 229, 179, .87) 56%,
      rgba(124, 213, 157, .82) 100%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .68) !important;
  box-shadow:
    0 10px 22px rgba(21, 107, 58, .10),
    inset 0 1px 0 rgba(255, 255, 255, .62),
    inset 0 -1px 0 rgba(63, 156, 98, .12) !important;
}
.msg-bubble.self:after { border-left-color: rgba(170, 233, 191, .88) !important; }
.msg-bubble.self.failed { background: #ffe0dc !important; color: #8b2f29 !important; }
.msg-status { color: #788e7e !important; font-size: 11px !important; }
.time-divider {
  display: table !important;
  width: auto !important;
  margin: 9px auto 11px !important;
  color: #6e8577 !important;
  font-size: 11.5px !important;
  background: rgba(255, 255, 255, .34) !important;
  border: 1px solid rgba(255, 255, 255, .50) !important;
  border-radius: 9px !important;
  padding: 2px 9px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .66) !important;
}
.composer {
  width: calc(100% - 20px) !important;
  margin: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
  padding: 8px !important;
  border-radius: 27px !important;
  background: var(--v22-nav-surface) !important;
  -webkit-backdrop-filter: blur(40px) saturate(210%);
  backdrop-filter: blur(40px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, .80) !important;
  box-shadow:
    0 18px 38px rgba(13, 61, 36, .13),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(255, 255, 255, .22) !important;
}
.composer textarea {
  min-height: 40px !important;
  border-radius: 19px !important;
  background: var(--v22-inset-surface) !important;
  border: 1px solid rgba(255, 255, 255, .80) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96), inset 0 -1px 0 rgba(255, 255, 255, .18) !important;
  color: var(--v22-ink) !important;
  font-size: 16px !important;
}
.composer .tool-btn {
  background: linear-gradient(150deg, rgba(255, 255, 255, .66), rgba(232, 250, 240, .40)) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
}
.composer #sendBtn {
  min-width: 68px !important;
  height: 40px !important;
  border-radius: 16px !important;
  background: linear-gradient(160deg, #25b76b, #0b8e4f 62%, #087d44) !important;
  border: 1px solid rgba(6, 108, 57, .24) !important;
  box-shadow:
    0 8px 18px rgba(10, 120, 64, .20),
    inset 0 1px 0 rgba(255, 255, 255, .30) !important;
}
.composer #sendBtn:disabled {
  background: linear-gradient(160deg, rgba(180, 224, 195, .58), rgba(154, 205, 173, .48)) !important;
  color: rgba(255, 255, 255, .90) !important;
  box-shadow: none !important;
}
.emoji-panel {
  background: var(--v22-modal-surface) !important;
  -webkit-backdrop-filter: blur(34px) saturate(195%);
  backdrop-filter: blur(34px) saturate(195%);
  border: 1px solid rgba(255, 255, 255, .88) !important;
  box-shadow: 0 -14px 34px rgba(13, 61, 36, .11) !important;
}
.emoji-panel button {
  background: rgba(255, 255, 255, .52) !important;
  border: 1px solid rgba(255, 255, 255, .74) !important;
  border-radius: 12px !important;
}
.emoji-panel button:active { background: rgba(219, 247, 231, .72) !important; }

/* ---------- 弹层与输入控件 ---------- */
.jc-modal-backdrop,
.modal-backdrop,
.sheet-backdrop {
  background: rgba(10, 39, 24, .26) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
}
.jc-modal {
  background: var(--v22-modal-surface) !important;
  -webkit-backdrop-filter: blur(48px) saturate(215%);
  backdrop-filter: blur(52px) saturate(230%);
  border: 1px solid rgba(255, 255, 255, .94) !important;
  border-bottom: 0 !important;
  border-radius: 28px 28px 0 0 !important;
  box-shadow:
    0 -26px 58px rgba(10, 45, 26, .22),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}
.jc-modal::before {
  content: "";
  display: block;
  width: 38px;
  height: 5px;
  margin: -6px auto 12px;
  border-radius: 5px;
  background: rgba(51, 92, 67, .20);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .64);
}
.sheet-title { color: var(--v22-ink) !important; font-weight: 750 !important; }
.sheet-sub { color: #6f8677 !important; font-size: 12px !important; }
.sheet-input {
  background: var(--v22-inset-surface) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 14px !important;
  color: var(--v22-ink) !important;
  font-size: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}
.sheet-input:focus {
  border-color: rgba(26, 161, 91, .44) !important;
  box-shadow: 0 0 0 3px rgba(26, 161, 91, .11), inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}
.sheet-actions {
  background: linear-gradient(180deg, rgba(247, 255, 251, .42), rgba(247, 255, 251, .90)) !important;
  border-top: 1px solid rgba(255, 255, 255, .54) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.sheet-close {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
  font-size: 20px !important;
}
.avatar-choice {
  background: linear-gradient(150deg, rgba(255, 255, 255, .62), rgba(226, 248, 235, .38)) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 15px !important;
  box-shadow: 0 6px 14px rgba(13, 61, 36, .045), inset 0 1px 0 rgba(255, 255, 255, .94) !important;
}
.avatar-choice.selected {
  background: linear-gradient(150deg, rgba(240, 255, 247, .88), rgba(203, 243, 220, .54)) !important;
  border: 2px solid rgba(20, 158, 89, .74) !important;
  box-shadow: 0 0 0 3px rgba(20, 158, 89, .10), 0 8px 18px rgba(13, 61, 36, .08) !important;
}
.avatar-choice .check {
  background: linear-gradient(180deg, #26b66d, #0b8a4d) !important;
  box-shadow: 0 2px 5px rgba(6, 105, 56, .18) !important;
}

/* ---------- 统一输入控件与按钮反馈 ---------- */
input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  color: var(--v22-ink) !important;
  background: var(--v22-inset-surface) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(255, 255, 255, .20) !important;
}
input::placeholder,
textarea::placeholder { color: #879b8c !important; opacity: 1; }
input:focus,
textarea:focus,
select:focus {
  border-color: rgba(24, 158, 90, .44) !important;
  box-shadow:
    0 0 0 3px rgba(24, 158, 90, .10),
    inset 0 1px 0 rgba(255, 255, 255, .98) !important;
}
.mini-btn.green,
.login-btn,
.search-box button,
.add-search-inner button,
.profile-btn.primary,
.friend-action-main button,
.admin-form button,
.pwd-form button,
.message-actions button.primary {
  color: #fff !important;
  background: linear-gradient(160deg, #25b76b 0%, #0b8e4f 60%, #087d44 100%) !important;
  border: 1px solid rgba(6, 108, 57, .24) !important;
  box-shadow:
    0 9px 20px rgba(10, 120, 64, .19),
    inset 0 1px 0 rgba(255, 255, 255, .30),
    inset 0 -1px 0 rgba(4, 77, 41, .10) !important;
}
.mini-btn,
.profile-btn,
.login-btn,
.me-logout,
.message-actions button {
  transition: transform .16s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease !important;
}
.mini-btn.green:not(:disabled):active,
.profile-btn.primary:not(:disabled):active,
.login-btn:not(:disabled):active,
.composer #sendBtn:not(:disabled):active,
.add-search-inner button:not(:disabled):active,
.friend-action-main button:not(:disabled):active {
  transform: translateY(1px) scale(.982) !important;
  box-shadow:
    0 4px 10px rgba(10, 120, 64, .13),
    inset 0 2px 5px rgba(4, 77, 41, .10) !important;
}
button:disabled { opacity: .52 !important; filter: saturate(.62) !important; }

/* ---------- 管理后台 ---------- */
.admin-hero {
  background:
    linear-gradient(150deg, rgba(30, 171, 101, .92) 0%, rgba(10, 126, 72, .90) 60%, rgba(9, 105, 61, .88) 100%) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .28) !important;
  box-shadow:
    0 20px 42px rgba(9, 92, 53, .18),
    inset 0 1px 0 rgba(255, 255, 255, .24) !important;
}
.admin-hero-title,
.admin-hero-sub { text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.stat-card {
  border-radius: 19px !important;
  padding: 14px 9px !important;
}
.stat-num { color: #0a7d45 !important; }
.stat-label { color: #6d8475 !important; }
.admin-user-card { border-radius: 18px !important; padding: 13px 12px !important; }
.admin-block-title { color: #345a44 !important; font-weight: 750 !important; }
.admin-form input { min-height: 45px !important; }

/* ---------- 登录设备：独立玻璃卡片 ---------- */
.device-page .content,
.device-page .device-list { background: transparent !important; border: 0 !important; }
.device-page .content { padding: 12px 12px 30px !important; }
.device-list { display: flex; flex-direction: column; gap: 10px; padding: 0 !important; }
.device-item {
  margin: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  border-radius: 18px !important;
  background: var(--v22-card-surface) !important;
  box-shadow:
    0 8px 22px rgba(13, 61, 36, .06),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -14px 24px rgba(48, 120, 79, .04) !important;
  font-size: 13px !important;
  line-height: 1.75 !important;
  color: #4b6856 !important;
}
.device-item .dev-title {
  color: #1b3a2a !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
  margin-bottom: 4px !important;
  word-break: break-all;
}

/* ---------- 通用可读性 ---------- */
.empty,
.chat-empty,
.contacts-empty,
.device-item {
  color: #5f7968 !important;
  font-size: 13.5px !important;
}
.section-title,
.letter-head { color: #4c6958 !important; }
.muted-pill { color: #9c6224 !important; background: rgba(255, 245, 231, .64) !important; }
.profile-tip { color: #9a6227 !important; }

/* ---------- 桌面预览：只保留中央玻璃画板，不拉伸列表 ---------- */
@media (min-width: 700px) {
  #app { background: transparent !important; }
  .screen,
  .chat-screen {
    max-width: 560px !important;
    margin: 0 auto !important;
    border-radius: 32px !important;
    overflow: hidden !important;
    box-shadow:
      0 30px 80px rgba(13, 61, 36, .16),
      0 0 0 1px rgba(255, 255, 255, .34),
      inset 0 1px 0 rgba(255, 255, 255, .52) !important;
  }
  .jc-header,
  .jc-search-wrap,
  .chat-header,
  .header,
  .me-content,
  .message-list,
  .composer {
    max-width: 560px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .tabbar {
    max-width: 532px !important;
    margin-bottom: 16px !important;
  }
}
@media (min-width: 1100px) {
  .screen,
  .chat-screen { max-width: 600px !important; }
  .jc-header,
  .jc-search-wrap,
  .chat-header,
  .header,
  .me-content,
  .message-list,
  .composer { max-width: 600px !important; }
  .tabbar { max-width: 570px !important; }
}

/* ---------- 小屏适配 ---------- */
@media (max-width: 380px) {
  .jc-search-wrap { padding: 8px 10px 9px !important; }
  .tabbar { width: calc(100% - 16px) !important; border-radius: 28px !important; }
  .tab { min-height: 48px !important; }
  .tab-label { font-size: 11px !important; }
  .conversation {
    width: calc(100% - 16px) !important;
    margin: 6px 8px !important;
    padding: 11px 12px !important;
    border-radius: 21px !important;
  }
  .me-profile { padding: 18px 14px !important; }
  .field-banner { margin: 10px 8px !important; padding: 14px 13px !important; }
  .field-note-card { margin: 0 8px 12px !important; padding: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .content,
  .jc-list { animation: none !important; }
}

/* ===== 3. V2.3 薄荷绿终层（原 liquid-glass-v23.css）===== */
/* ============================================================
   姜聊 V2.3 · 薄荷绿 Liquid Glass 精修
   仅视觉层：不新增业务、不改接口、不改数据结构。
   色卡与材质层级严格按 V2.0 设计稿统一。
   ============================================================ */

:root {
  --lg-brand: #8BCFB0;
  --lg-mint: #DDF5E8;
  --lg-warm: #F3FAF5;
  --lg-forest: #247653;
  --lg-ink: #173D2D;
  --lg-muted: #4C6355;
  --lg-edge: #C9EBDD;
  --lg-bg: #E7F1EA;

  --lg-level1:
    linear-gradient(150deg,
      rgba(255, 255, 255, .64) 0%,
      rgba(243, 250, 245, .42) 46%,
      rgba(221, 245, 232, .30) 100%);
  --lg-level2:
    linear-gradient(150deg,
      rgba(255, 255, 255, .56) 0%,
      rgba(243, 250, 245, .38) 52%,
      rgba(221, 245, 232, .26) 100%);
  --lg-level3:
    linear-gradient(152deg,
      rgba(255, 255, 255, .50) 0%,
      rgba(243, 250, 245, .32) 54%,
      rgba(221, 245, 232, .22) 100%);
  --lg-level4:
    linear-gradient(155deg,
      rgba(255, 255, 255, .84) 0%,
      rgba(243, 250, 245, .72) 48%,
      rgba(221, 245, 232, .62) 100%);

  --lg-edge-light: rgba(255, 255, 255, .86);
  --lg-edge-soft: rgba(201, 235, 221, .52);
  --lg-shadow-1:
    0 18px 42px rgba(23, 61, 45, .085),
    0 3px 10px rgba(23, 61, 45, .035),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(201, 235, 221, .18);
  --lg-shadow-3:
    0 12px 30px rgba(23, 61, 45, .055),
    inset 0 1px 0 rgba(255, 255, 255, .92),
    inset 0 -1px 0 rgba(201, 235, 221, .14);
}

html { background: var(--lg-bg) !important; }

body {
  color: var(--lg-ink) !important;
  background:
    radial-gradient(92% 62% at 8% -8%, #F5FAF5 0%, rgba(245, 250, 245, 0) 62%),
    radial-gradient(68% 48% at 100% 2%, rgba(205, 237, 221, .74) 0%, rgba(205, 237, 221, 0) 70%),
    radial-gradient(58% 44% at 95% 94%, rgba(139, 207, 176, .20) 0%, rgba(139, 207, 176, 0) 74%),
    radial-gradient(50% 40% at 2% 86%, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, 0) 72%),
    linear-gradient(135deg, #F5FAF5 0%, #E1F4E9 48%, #CDEDDD 100%) !important;
  background-attachment: fixed !important;
}

body::before {
  opacity: .58 !important;
  filter: blur(58px) saturate(104%) !important;
}

/* ---------- 一级玻璃：顶部与底部悬浮 ---------- */
.jc-header,
.chat-header {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, .72) 0%,
      rgba(243, 250, 245, .42) 58%,
      rgba(221, 245, 232, .24) 100%) !important;
  border-bottom: 1px solid rgba(201, 235, 221, .50) !important;
  box-shadow:
    0 14px 34px rgba(23, 61, 45, .055),
    inset 0 1px 0 rgba(255, 255, 255, .96) !important;
  -webkit-backdrop-filter: blur(42px) saturate(190%) !important;
  backdrop-filter: blur(42px) saturate(190%) !important;
}

.jc-title,
.chat-title-wrap .title {
  color: var(--lg-ink) !important;
  font-weight: 750 !important;
  letter-spacing: .2px;
}

.chat-title-sub {
  color: var(--lg-muted) !important;
  font-size: 11.5px !important;
}

.chat-back-btn,
.chat-info-btn,
.jc-icon-btn {
  background:
    linear-gradient(150deg,
      rgba(255, 255, 255, .64),
      rgba(243, 250, 245, .34)) !important;
  border: 1px solid rgba(255, 255, 255, .80) !important;
  box-shadow:
    0 7px 16px rgba(23, 61, 45, .055),
    inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

/* ---------- 二级玻璃：搜索框与聊天输入 ---------- */
.jc-search-wrap {
  background: transparent !important;
  padding: 8px 14px 10px !important;
}

.jc-search {
  height: 44px !important;
  border-radius: 20px !important;
  background: var(--lg-level2) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
  border: 1px solid var(--lg-edge-soft) !important;
  box-shadow:
    0 9px 22px rgba(23, 61, 45, .050),
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(201, 235, 221, .16) !important;
}

.jc-search:focus-within {
  border-color: rgba(36, 118, 83, .34) !important;
  box-shadow:
    0 0 0 3px rgba(139, 207, 176, .16),
    0 10px 24px rgba(23, 61, 45, .058),
    inset 0 1px 0 rgba(255, 255, 255, .97) !important;
}

.jc-search input:not([type="checkbox"]):not([type="radio"]) {
  color: var(--lg-ink) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding-left: 0 !important;
}
.jc-search input::placeholder { color: #4C6355 !important; }
.jc-search svg { color: #4C6355 !important; }

/* ---------- 三级玻璃：聊天列表整组轻玻璃，而不是逐行厚卡 ---------- */
.jc-list {
  flex: 0 1 auto !important;
  min-height: 0 !important;
  width: calc(100% - 24px) !important;
  margin: 0 12px calc(94px + env(safe-area-inset-bottom)) !important;
  padding: 5px 0 !important;
  overflow-y: auto !important;
  border-radius: 26px !important;
  background: var(--lg-level3) !important;
  -webkit-backdrop-filter: blur(28px) saturate(185%) !important;
  backdrop-filter: blur(28px) saturate(185%) !important;
  border: 1px solid rgba(255, 255, 255, .66) !important;
  box-shadow: var(--lg-shadow-3) !important;
  overflow: hidden !important;
}

.jc-list .conversation {
  width: 100% !important;
  min-height: 76px !important;
  margin: 0 !important;
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(36, 118, 83, .075) !important;
  transition: background .16s ease !important;
}

.jc-list .conversation:last-child {
  border-bottom: 0 !important;
}

.jc-list .conversation:not(:disabled):active {
  background: rgba(221, 245, 232, .32) !important;
  transform: none !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .46) !important;
}

.conversation .avatar {
  box-shadow:
    0 7px 16px rgba(23, 61, 45, .10),
    0 0 0 1px rgba(255, 255, 255, .78) !important;
}

.conv-name {
  color: var(--lg-ink) !important;
  font-size: 17px !important;
  font-weight: 650 !important;
}

.conv-last { color: #4C6355 !important; font-size: 13px !important; }
.conv-time { color: #4C6355 !important; font-size: 11.5px !important; }

.conv-badge {
  background: linear-gradient(155deg, #2F8B64, #247653 68%, #1B5C41) !important;
  color: #F3FAF5 !important;
  box-shadow:
    0 4px 10px rgba(36, 118, 83, .26),
    inset 0 1px 0 rgba(255, 255, 255, .30) !important;
}

/* 列表为空时，轻玻璃容器内部也保持留白 */
.jc-list .empty {
  min-height: 180px;
  display: flex;
}

/* ---------- 三级玻璃：姜友簿 ---------- */
.contacts-wrap { padding: 8px 12px 28px !important; }

.new-friends-card {
  width: 100% !important;
  margin: 0 0 9px !important;
  min-height: 72px !important;
  border-radius: 22px !important;
  background: var(--lg-level3) !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  box-shadow: var(--lg-shadow-3) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
}

.new-friends-card .contact-icon {
  background: linear-gradient(150deg, #8BCFB0 0%, #39A878 54%, #247653 100%) !important;
  box-shadow:
    0 7px 15px rgba(36, 118, 83, .18),
    inset 0 1px 0 rgba(255, 255, 255, .46) !important;
}

.new-friends-badge {
  background: linear-gradient(155deg, #2F8B64, #247653 68%, #1B5C41) !important;
  box-shadow: 0 3px 8px rgba(36, 118, 83, .22) !important;
}

.contacts-group {
  width: 100% !important;
  margin: 0 0 9px !important;
  border-radius: 22px !important;
  background: var(--lg-level3) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, .64) !important;
  box-shadow: var(--lg-shadow-3) !important;
}

.contacts-row {
  background: transparent !important;
  border-bottom: 1px solid rgba(36, 118, 83, .07) !important;
  min-height: 62px !important;
}
.contacts-row:last-child { border-bottom: 0 !important; }
.contacts-row:active { background: rgba(221, 245, 232, .30) !important; }
.contacts-row .name { color: var(--lg-ink) !important; font-weight: 650 !important; }
.contacts-row .account { color: #4C6355 !important; }
.contacts-row .chevron { color: #4C6355 !important; }

.letter-head {
  color: #4C6355 !important;
  font-weight: 700 !important;
  letter-spacing: .6px !important;
  padding: 11px 6px 6px !important;
}

.alpha-index {
  padding: 5px 1px !important;
  border-radius: 12px !important;
  background: rgba(243, 250, 245, .56) !important;
  border: 1px solid rgba(255, 255, 255, .66) !important;
  box-shadow: 0 6px 16px rgba(23, 61, 45, .045) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  backdrop-filter: blur(16px) !important;
}
.alpha-index button {
  width: 18px !important;
  height: 16px !important;
  font-size: 10px !important;
  color: #4C6355 !important;
 }

.screen:has(.tabbar) .content:not(.jc-list) {
  padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
}

/* ---------- 聊天详情：环境光、气泡、表情与输入 ---------- */
.chat-screen {
  height: 100% !important;
  padding-bottom: 0 !important;
  transition: none !important;
  background:
    radial-gradient(60% 34% at 82% 12%, rgba(139, 207, 176, .16), transparent 72%),
    radial-gradient(50% 36% at 6% 78%, rgba(255, 255, 255, .38), transparent 76%),
    transparent !important;
}

.message-list {
  padding: 14px 12px 14px !important;
}

.chat-screen .msg-bubble {
  border-radius: 18px !important;
  font-size: 16px !important;
  line-height: 1.58 !important;
  letter-spacing: .1px !important;
}

.msg-bubble.other {
  color: var(--lg-ink) !important;
  background:
    linear-gradient(150deg,
      rgba(255, 255, 255, .88) 0%,
      rgba(243, 250, 245, .68) 52%,
      rgba(221, 245, 232, .56) 100%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(176%) !important;
  backdrop-filter: blur(18px) saturate(176%) !important;
  border: 1px solid rgba(201, 235, 221, .68) !important;
  box-shadow:
    0 8px 20px rgba(23, 61, 45, .062),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(201, 235, 221, .20) !important;
}

.msg-bubble.other:before {
  border-right-color: rgba(255, 255, 255, .86) !important;
}

.msg-bubble.self,
.msg-bubble.self.pending {
  color: var(--lg-ink) !important;
  background:
    linear-gradient(150deg,
      rgba(139, 207, 176, .78) 0%,
      rgba(180, 229, 202, .66) 48%,
      rgba(221, 245, 232, .58) 100%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(185%) !important;
  backdrop-filter: blur(20px) saturate(185%) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  box-shadow:
    0 8px 18px rgba(36, 118, 83, .095),
    inset 0 1px 0 rgba(255, 255, 255, .76),
    inset 0 -1px 0 rgba(36, 118, 83, .10) !important;
}

.msg-bubble.self:after {
  border-left-color: rgba(168, 222, 191, .76) !important;
}

.msg-status { color: #4C6355 !important; font-size: 10.5px !important; }
.msg-status.failed { color: #B14545 !important; }

.time-divider {
  display: table !important;
  width: auto !important;
  margin: 8px auto 10px !important;
  padding: 2px 9px !important;
  color: #4C6355 !important;
  font-size: 11px !important;
  background: rgba(255, 255, 255, .20) !important;
  border: 1px solid rgba(255, 255, 255, .34) !important;
  border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .54) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  backdrop-filter: blur(12px) !important;
}

.composer {
  width: calc(100% - 20px) !important;
  margin: 8px 10px calc(8px + env(safe-area-inset-bottom)) !important;
  padding: 7px !important;
  gap: 6px !important;
  border-radius: 27px !important;
  background: var(--lg-level2) !important;
  -webkit-backdrop-filter: blur(42px) saturate(200%) !important;
  backdrop-filter: blur(42px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, .74) !important;
  box-shadow:
    0 16px 36px rgba(23, 61, 45, .090),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(201, 235, 221, .18) !important;
}

.composer textarea {
  min-height: 40px !important;
  border: 0 !important;
  border-radius: 19px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--lg-ink) !important;
  font-size: 16px !important;
}

.composer textarea:focus,
.composer textarea:focus-visible {
  outline: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.jc-search input:focus,
.jc-search input:focus-visible {
  outline: 0 !important;
}

.composer .tool-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background:
    linear-gradient(150deg,
      rgba(255, 255, 255, .62),
      rgba(221, 245, 232, .36)) !important;
  border: 1px solid rgba(255, 255, 255, .76) !important;
  color: #496956 !important;
  box-shadow:
    0 5px 12px rgba(23, 61, 45, .045),
    inset 0 1px 0 rgba(255, 255, 255, .92) !important;
}

.composer #sendBtn {
  min-width: 66px !important;
  height: 40px !important;
  border-radius: 15px !important;
  background:
    linear-gradient(155deg, #2F8B64 0%, #247653 58%, #19563B 100%) !important;
  border: 1px solid rgba(255, 255, 255, .20) !important;
  box-shadow:
    0 8px 17px rgba(36, 118, 83, .20),
    inset 0 1px 0 rgba(255, 255, 255, .24) !important;
  color: #F3FAF5 !important;
  font-weight: 650 !important;
}

.composer #sendBtn:disabled {
  background: rgba(255, 255, 255, .28) !important;
  color: #4C6355 !important;
  border: 1px solid rgba(201, 235, 221, .42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .60) !important;
}

.emoji-panel {
  margin: 0 10px 6px !important;
  padding: 10px !important;
  border-radius: 22px !important;
  background: var(--lg-level4) !important;
  -webkit-backdrop-filter: blur(46px) saturate(200%) !important;
  backdrop-filter: blur(46px) saturate(200%) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  box-shadow:
    0 18px 40px rgba(23, 61, 45, .085),
    inset 0 1px 0 rgba(255, 255, 255, .96) !important;
}

.emoji-panel button {
  background: rgba(255, 255, 255, .38) !important;
  border: 1px solid rgba(255, 255, 255, .58) !important;
  border-radius: 11px !important;
}
.emoji-panel button:active { background: rgba(221, 245, 232, .56) !important; }

/* ---------- 悬浮导航：一级玻璃 ---------- */
.tabbar {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  transform: translateX(-50%) !important;
  width: calc(100% - 24px) !important;
  max-width: 520px !important;
  margin: 0 !important;
  background: var(--lg-level1) !important;
  -webkit-backdrop-filter: blur(46px) saturate(205%) !important;
  backdrop-filter: blur(46px) saturate(205%) !important;
  border: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 30px !important;
  box-shadow:
    0 22px 48px rgba(23, 61, 45, .105),
    0 5px 14px rgba(23, 61, 45, .045),
    inset 0 1px 0 rgba(255, 255, 255, .98),
    inset 0 -1px 0 rgba(201, 235, 221, .24) !important;
}

.tabbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(48% 72% at 16% 0%, rgba(255, 255, 255, .46), transparent 68%),
    linear-gradient(112deg, transparent 22%, rgba(201, 235, 221, .22) 48%, transparent 70%);
  opacity: .55;
}

.tab {
  color: #4C6355 !important;
  font-weight: 560 !important;
}

.tab.active {
  background:
    linear-gradient(150deg,
      rgba(255, 255, 255, .74) 0%,
      rgba(243, 250, 245, .44) 48%,
      rgba(221, 245, 232, .34) 100%) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  box-shadow:
    0 8px 18px rgba(23, 61, 45, .070),
    inset 0 1px 0 rgba(255, 255, 255, .96),
    inset 0 -1px 0 rgba(201, 235, 221, .20) !important;
}

.tab.active .tab-label { color: var(--lg-forest) !important; }

.tab-badge {
  background: linear-gradient(155deg, #2F8B64, #247653 68%, #19563B) !important;
  color: #F3FAF5 !important;
  box-shadow:
    0 3px 8px rgba(36, 118, 83, .28),
    inset 0 1px 0 rgba(255, 255, 255, .28) !important;
}

/* ---------- 我 / 个人中心 ---------- */
.me-profile {
  background: var(--lg-level3) !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  border-radius: 24px !important;
  box-shadow: var(--lg-shadow-1) !important;
  -webkit-backdrop-filter: blur(30px) saturate(185%) !important;
  backdrop-filter: blur(30px) saturate(185%) !important;
}

.me-profile .name { color: var(--lg-ink) !important; font-size: 20px !important; }
.me-profile .account { color: var(--lg-muted) !important; }
.me-profile-hint { color: #4C6355 !important; }
.me-profile .admin-tag { color: var(--lg-forest) !important; }

.me-group,
.settings-group {
  background: var(--lg-level3) !important;
  border: 1px solid rgba(255, 255, 255, .66) !important;
  border-radius: 22px !important;
  box-shadow: var(--lg-shadow-3) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
}

.me-row { background: transparent !important; border-bottom: 1px solid rgba(36, 118, 83, .07) !important; }
.me-row:last-child { border-bottom: 0 !important; }
.me-row .label { color: var(--lg-ink) !important; font-weight: 650 !important; }
.me-row .chevron { color: #4C6355 !important; }

.me-row .me-icon,
.settings-group .me-icon {
  border-radius: 12px !important;
  box-shadow:
    0 5px 12px rgba(23, 61, 45, .05),
    inset 0 1px 0 rgba(255, 255, 255, .90) !important;
}

.me-logout {
  background:
    linear-gradient(150deg,
      rgba(255, 255, 255, .46),
      rgba(252, 238, 238, .28)) !important;
  border: 1px solid rgba(255, 255, 255, .64) !important;
  border-radius: 20px !important;
  box-shadow:
    0 10px 24px rgba(23, 61, 45, .045),
    inset 0 1px 0 rgba(255, 255, 255, .88) !important;
}

/* 个人主页：减少重卡片，把信息做成轻玻璃层级 */
.profile-page .profile-card,
.profile-page .profile-id-card {
  background: var(--lg-level3) !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  box-shadow: var(--lg-shadow-1) !important;
  -webkit-backdrop-filter: blur(28px) saturate(185%) !important;
  backdrop-filter: blur(28px) saturate(185%) !important;
}
.profile-page .profile-row { border-bottom: 1px solid rgba(36, 118, 83, .07) !important; }
.profile-page .profile-row .label { color: #4C6355 !important; }
.profile-page .profile-row .value { color: var(--lg-ink) !important; }

/* ---------- 登录设备：短 ID + 次级信息 ---------- */
.device-page,
.device-page .device-list { background: transparent !important; border: 0 !important; }
.device-page { padding: 12px 12px 30px !important; }
.device-page .device-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--lg-level3) !important;
  border: 1px solid rgba(255, 255, 255, .62) !important;
  border-radius: 22px !important;
  box-shadow: var(--lg-shadow-3) !important;
  -webkit-backdrop-filter: blur(26px) saturate(180%) !important;
  backdrop-filter: blur(26px) saturate(180%) !important;
  overflow: hidden;
}

.device-page .device-item {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 14px 16px !important;
}

.device-page .device-item + .device-item {
  border-top: 1px solid rgba(36, 118, 83, .075) !important;
}

.device-page .dev-title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--lg-ink) !important;
  font-size: 14px !important;
  font-weight: 680 !important;
  word-break: normal !important;
}

.device-page .dev-title:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lg-brand);
  box-shadow:
    0 0 0 3px rgba(139, 207, 176, .14),
    inset 0 1px 0 rgba(255, 255, 255, .48);
  flex: 0 0 auto;
}

.device-page .device-meta {
  margin-top: 4px;
  color: #4C6355;
  font-size: 12px;
  line-height: 1.65;
}

.device-page .dev-detail {
  margin-top: 5px;
  color: #4C6355;
  font-size: 11.5px;
}
.device-page .dev-detail summary {
  cursor: pointer;
  list-style: none;
  color: var(--lg-forest);
  font-weight: 600;
}
.device-page .dev-detail summary::-webkit-details-marker { display: none; }
.device-page .dev-detail code {
  display: block;
  margin-top: 4px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .34);
  color: #4C6355;
  font-family: inherit;
  font-size: 10.5px;
  word-break: break-all;
}

/* ---------- 姜管后台：深松绿强调，玻璃卡片分层 ---------- */
.admin-hero {
  background:
    radial-gradient(110% 90% at 0% 0%, rgba(255, 255, 255, .18) 0%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(80% 70% at 100% 100%, rgba(139, 207, 176, .26) 0%, rgba(139, 207, 176, 0) 64%),
    linear-gradient(150deg, rgba(54, 142, 102, .88) 0%, rgba(36, 118, 83, .84) 50%, rgba(23, 61, 45, .86) 100%) !important;
  border: 1px solid rgba(255, 255, 255, .26) !important;
  border-radius: 24px !important;
  box-shadow:
    0 18px 42px rgba(23, 61, 45, .16),
    inset 0 1px 0 rgba(255, 255, 255, .20) !important;
  -webkit-backdrop-filter: blur(22px) saturate(170%) !important;
  backdrop-filter: blur(22px) saturate(170%) !important;
}

.admin-hero-title,
.admin-hero-sub { color: #F3FAF5 !important; }
.admin-hero-sub { opacity: .78; }

.stat-card {
  background: var(--lg-level3) !important;
  border: 1px solid rgba(255, 255, 255, .66) !important;
  box-shadow: var(--lg-shadow-3) !important;
}
.stat-num { color: var(--lg-forest) !important; }
.stat-label { color: #4C6355 !important; }

.admin-block {
  background: var(--lg-level3) !important;
  border: 1px solid rgba(255, 255, 255, .66) !important;
  box-shadow: var(--lg-shadow-3) !important;
}
.admin-block-title { color: var(--lg-ink) !important; font-weight: 750 !important; }

.admin-block .admin-user-card {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  padding: 14px 2px !important;
  margin: 0 !important;
}

.admin-block .admin-user-card + .admin-user-card {
  border-top: 1px solid rgba(36, 118, 83, .075) !important;
}

.admin-block .admin-user-card.is-disabled { opacity: .78; }

.admin-form input:not([type="checkbox"]):not([type="radio"]) {
  background: var(--lg-level2) !important;
  border: 1px solid var(--lg-edge-soft) !important;
  border-radius: 14px !important;
  color: var(--lg-ink) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .94),
    inset 0 -1px 0 rgba(201, 235, 221, .14) !important;
}

.admin-form input::placeholder { color: #4C6355 !important; }

/* ---------- 降低荧光感、保持文本对比 ---------- */
.jc-title-count {
  color: var(--lg-forest) !important;
}

.muted-pill {
  background: rgba(255, 245, 231, .64) !important;
  color: #8A5E2A !important;
}

/* ---------- 小屏：保持轻玻璃而不是缩成厚卡 ---------- */
@media (max-width: 380px) {
  .jc-list { width: calc(100% - 16px) !important; margin: 0 8px 18px !important; }
  .conversation { padding: 11px 13px !important; }
  .composer { width: calc(100% - 16px) !important; margin-left: 8px !important; margin-right: 8px !important; }
}


/* ============================================================
   4. V2.4 精修层
   在 V2.3 基础上只做减法与可读性修正，不改业务逻辑。
   ============================================================ */

:root {
  --lg-muted: #4C6355;
  --lg-muted-soft: #607A6B;
  --lg-muted-strong: #4C6457;
  --v22-muted: #4C6355;
  --v22-muted-soft: #4C6355;
  --jc-muted: #4C6355;
  --v24-tab-clearance: calc(96px + env(safe-area-inset-bottom));
}

/* ---------- 4.1 辅助文字统一为可读的深松灰绿 ---------- */
.me-profile-hint,
.me-profile .account,
.me-row .chevron,
.conv-last,
.conv-time,
.msg-status,
.time-divider,
.device-page .device-meta,
.device-page .dev-detail,
.device-page .dev-detail code,
.tab,
.alpha-index button,
.stat-label,
.admin-user-sub,
.admin-device-row,
.settings-note,
.login-hint,
.about-version,
.empty,
.contacts-empty,
.discover-footnote {
  color: var(--lg-muted) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--lg-muted) !important;
  opacity: 1 !important;
}

/* ---------- 4.2 个人中心：压缩顶部，但保留呼吸感 ---------- */
.me-content {
  padding-top: 8px !important;
}

.me-profile {
  padding: 18px 18px 16px !important;
  border-radius: 22px !important;
}

.me-profile .avatar {
  width: 64px !important;
  height: 64px !important;
}

/* 官方标识：从实色小标签改为轻玻璃徽标 */
.official-tag {
  display: inline-flex !important;
  align-items: center !important;
  height: 20px !important;
  padding: 0 8px !important;
  color: #1F664B !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  letter-spacing: .015em !important;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, .46) 0%,
      rgba(221, 245, 232, .36) 100%) !important;
  border: 1px solid rgba(255, 255, 255, .74) !important;
  border-radius: 999px !important;
  box-shadow:
    0 3px 8px rgba(23, 61, 45, .045),
    inset 0 1px 0 rgba(255, 255, 255, .94) !important;
  -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
  backdrop-filter: blur(14px) saturate(160%) !important;
  white-space: nowrap !important;
}

/* 退出登录：降低红色饱和度，保留危险操作辨识度 */
.me-logout {
  color: #965551 !important;
  font-weight: 600 !important;
  background:
    linear-gradient(150deg,
      rgba(255, 252, 251, .50) 0%,
      rgba(247, 236, 234, .30) 100%) !important;
  border: 1px solid rgba(255, 255, 255, .68) !important;
  box-shadow:
    0 10px 24px rgba(23, 61, 45, .040),
    inset 0 1px 0 rgba(255, 255, 255, .90) !important;
}

.settings-note {
  font-size: 12px !important;
  line-height: 1.65 !important;
}

/* ---------- 4.3 登录设备：移除会被误读为“在线”的绿点 ---------- */
.device-page .dev-title:before {
  display: none !important;
  content: none !important;
}

.device-page .dev-title {
  gap: 0 !important;
}

.device-page .dev-detail summary {
  color: var(--lg-forest) !important;
  font-size: 11.5px !important;
  line-height: 1.7 !important;
}

/* 完整设备 ID 入口与展开区域保留 */
.device-page .dev-detail code {
  background: rgba(255, 255, 255, .30) !important;
  border: 1px solid rgba(201, 235, 221, .42) !important;
  line-height: 1.55 !important;
}

/* ---------- 4.4 底部导航与安全区域 ---------- */
.jc-list {
  margin-bottom: var(--v24-tab-clearance) !important;
}

.screen:has(.tabbar) .content:not(.jc-list) {
  padding-bottom: var(--v24-tab-clearance) !important;
}

.tabbar {
  bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  padding-bottom: 0 !important;
}

/* ---------- 4.5 聊天页：键盘与表情面板 ---------- */
.composer {
  margin-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
  flex: 0 0 auto !important;
}

.emoji-panel {
  max-height: min(248px, calc(100% - 190px)) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
}

.emoji-panel::-webkit-scrollbar { width: 0; height: 0; }

.chat-screen.keyboard-open .chat-header {
  flex: 0 0 auto !important;
}

.chat-screen.keyboard-open .message-list {
  min-height: 0 !important;
}

/* ---------- 4.6 其他次级文本 ---------- */
.settings-page .me-row .label,
.settings-page .me-row .chevron {
  text-shadow: 0 1px 0 rgba(255, 255, 255, .34);
}

/* ---------- 4.7 小屏仍保证底栏与内容的安全距离 ---------- */
@media (max-width: 380px) {
  :root { --v24-tab-clearance: calc(94px + env(safe-area-inset-bottom)); }
  .me-profile { padding: 16px 16px 14px !important; }
}

/* ============================================================
   4.8 对比度兜底（仅颜色，不动布局与业务）
   ============================================================ */

/* 仍低于 4.5:1 的次级文字 */
.add-tip,
.jc-id-line,
.letter-head em,
.discover-note,
.field-banner-sub,
.moments-empty-sub,
.device-page > div[style*="font-size:12px"] {
  color: var(--lg-muted) !important;
}

.jc-id-line strong { color: #3F5C4B !important; }

/* 统计数字与状态徽标 */
.stat-num { color: #0B7541 !important; }
.badge-on { color: #0C6E3B !important; }

/* 主按钮：白字在渐变顶部也达到 4.5:1 */
.mini-btn.green,
.login-btn,
.search-box button,
.add-search-inner button,
.composer #sendBtn,
.profile-btn.primary,
.friend-action-main button,
.admin-form button,
.pwd-form button,
.message-actions button.primary {
  color: #fff !important;
  background: linear-gradient(160deg, #158047 0%, #0F6F3F 58%, #0B6137 100%) !important;
  border-color: rgba(5, 89, 49, .26) !important;
}

.composer #sendBtn:disabled {
  color: #4C6457 !important;
  background: linear-gradient(160deg, rgba(212, 236, 221, .82), rgba(190, 224, 202, .70)) !important;
  opacity: .78 !important;
  filter: none !important;
  box-shadow: none !important;
}

/* 姜管头部：去掉高光叠层，深绿底保证小字可读 */
.admin-hero {
  background:
    radial-gradient(72% 62% at 100% 100%, rgba(139, 207, 176, .20) 0%, rgba(139, 207, 176, 0) 66%),
    linear-gradient(150deg, #2C7C58 0%, #1F6648 56%, #173D2D 100%) !important;
}

.admin-hero-sub {
  opacity: 1 !important;
  color: #F3FAF5 !important;
}

.about-metrics strong { color: #0B7541 !important; }

.login-sub { color: var(--lg-muted) !important; }


/* 4.9 高优先级补充（覆盖早期具体选择器） */
.tab-label,
.message-list .time-divider,
.chat-empty,
.profile-account,
.profile-state,
.copy-mini,
.device-page .dev-detail summary,
.settings-note,
.device-page > div[style*="font-size:12px"] {
  color: #4C6355 !important;
}

.tab.active .tab-label { color: #1F664B !important; }
.profile-state,
.copy-mini { color: #0C6E3B !important; }
.device-page .dev-detail summary { color: #1F664B !important; }

.login-card input::placeholder,
.jc-search input::placeholder,
.composer textarea::placeholder,
.add-search-inner input::placeholder,
.admin-form input::placeholder,
.pwd-form input::placeholder {
  color: #4C6355 !important;
  opacity: 1 !important;
}

/* 4.10 后台原生复选框不受输入框 min-height 影响 */
.admin-form input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px !important;
}

/* ============================================================
   V2.5 增量层 · 布局节奏与轻量交互（叠加于 V2.4 之上，不改业务逻辑）
   —— 登录口令可视切换 / 会话空态引导按钮 / 列表呼吸感 / 点击反馈
   —— 延续薄荷绿与四级玻璃，所有文字色遵循已审计的 #4C6355 基线
   ============================================================ */

/* 5.1 登录口令显示/隐藏切换 */
.login-pwd-wrap { position: relative; width: 100%; }
.login-pwd-wrap input { padding-right: 46px !important; }
.login-pwd-toggle {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer; border-radius: 9px;
  color: #4C6355 !important; transition: background .16s ease, color .16s ease;
  -webkit-tap-highlight-color: transparent;
}
.login-pwd-toggle svg { width: 19px; height: 19px; display: block; }
.login-pwd-toggle.is-on { color: #0F6F3F !important; background: rgba(221,245,232,.55); }
.login-pwd-toggle:active { background: rgba(221,245,232,.7); }

/* 5.2 会话空态引导按钮 */
.jc-list .empty { flex-direction: column !important; align-items: center !important; justify-content: center !important; }
.empty-cta-wrap { margin-top: 16px; display: flex; justify-content: center; width: 100%; }
.empty-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  white-space: nowrap; flex: 0 0 auto;
  min-height: 42px; padding: 9px 20px; border-radius: 13px; cursor: pointer;
  font-size: 14px; font-weight: 700; letter-spacing: .3px; color: #fff !important;
  background: linear-gradient(160deg,#158047 0%,#0F6F3F 58%,#0B6137 100%) !important;
  border: 1px solid rgba(5,89,49,.26) !important;
  box-shadow: 0 8px 20px rgba(11,97,55,.18);
  transition: transform .14s ease, box-shadow .14s ease;
  -webkit-tap-highlight-color: transparent;
}
.empty-cta svg { width: 17px; height: 17px; }
.empty-cta:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(11,97,55,.16); }

/* 5.3 会话列表：适度呼吸与层次 */
.jc-list .conversation { padding-top: 13px !important; padding-bottom: 13px !important; }
.jc-list .conversation .conv-last { color: #4C6355 !important; }

/* 5.4 联系人列表：柔和分隔与整行点按反馈 */
.contacts-wrap .contacts-row { transition: background .14s ease; }
.contacts-wrap .contacts-row:active { background: rgba(221,245,232,.42) !important; }

/* 5.5 底栏激活态：轻微抬升，强化当前定位（低饱和、不抢内容） */
.tabbar .tab.active .tab-icon {
  transition: transform .18s ease;
}
.tabbar .tab.active .tab-icon svg {
  filter: drop-shadow(0 2px 4px rgba(15,111,63,.22));
}

/* 5.6 通用点击反馈：让可点区域可感知 */
button:not(:disabled) { -webkit-tap-highlight-color: transparent; }
.jc-icon-btn:active,
.chat-info-btn:active,
.chat-back-btn:active { opacity: .62; transition: opacity .12s ease; }

/* ============================================================
   V2.6 · iOS 26 Liquid Glass（液态玻璃）
   叠加于 V2.5 之上，仅视觉层：不改业务逻辑/接口/数据结构。
   核心：镜面边缘高光 + 玻璃厚度 + 彩色光晕折射 + 药丸控件 + 弹性光泽
   品牌基因保留：薄荷绿 / 四级玻璃 / #4C6355 文字基线不降低对比度
   ============================================================ */

:root{
  /* iOS 26 高光与折射 token */
  --g26-edge: rgba(255,255,255,.92);
  --g26-edge-soft: rgba(255,255,255,.58);
  --g26-tint: rgba(139,207,176,.26);
  --g26-spec: linear-gradient(135deg, rgba(255,255,255,.66) 0%, rgba(255,255,255,.10) 34%, rgba(255,255,255,0) 52%, rgba(255,255,255,.16) 100%);
  --g26-glass:
    linear-gradient(150deg, rgba(255,255,255,.70) 0%, rgba(255,255,255,.34) 46%, rgba(221,245,232,.26) 100%);
  --g26-glass-strong:
    linear-gradient(155deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.46) 50%, rgba(221,245,232,.34) 100%);
  /* 镜面高光：顶部亮线 + 底部柔光 + 外圈折射 */
  --g26-shadow:
    0 22px 48px rgba(23,61,45,.10),
    0 4px 12px rgba(23,61,45,.05),
    0 0 0 .5px rgba(255,255,255,.55),
    inset 0 1px 1px rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(201,235,221,.28);
  --g26-shadow-sm:
    0 10px 24px rgba(23,61,45,.075),
    0 0 0 .5px rgba(255,255,255,.58),
    inset 0 1px 1px rgba(255,255,255,.96),
    inset 0 -1px 0 rgba(201,235,221,.24);
}

/* ---------- 6.1 背景：彩色光晕折射（玻璃透镜感的来源） ---------- */
body{
  background:
    radial-gradient(74% 52% at 6% -6%, rgba(255,255,255,.92) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(56% 44% at 96% 4%, rgba(139,207,176,.52) 0%, rgba(139,207,176,0) 70%),
    radial-gradient(46% 42% at 88% 92%, rgba(126,205,231,.26) 0%, rgba(126,205,231,0) 72%),
    radial-gradient(50% 40% at 4% 88%, rgba(196,232,208,.42) 0%, rgba(196,232,208,0) 74%),
    linear-gradient(138deg, #F6FBF7 0%, #E3F5EB 46%, #D2EFE0 100%) !important;
}
/* 缓慢流动的光斑，让玻璃产生"活"的折射 */
body::after{
  content:"";
  position:fixed;
  z-index:0;
  pointer-events:none;
  width:70vmax; height:70vmax;
  right:-26vmax; top:-24vmax;
  background:
    radial-gradient(circle at 40% 40%, rgba(139,207,176,.28), rgba(139,207,176,0) 62%),
    radial-gradient(circle at 66% 60%, rgba(126,205,231,.18), rgba(126,205,231,0) 58%);
  filter:blur(30px);
  animation:g26Float 18s ease-in-out infinite alternate;
}
@keyframes g26Float{
  0%{transform:translate3d(0,0,0) scale(1);}
  100%{transform:translate3d(-5%,6%,0) scale(1.08);}
}

/* ---------- 6.2 一级玻璃：顶部导航 + 悬浮底栏 ---------- */
.jc-header, .chat-header, .header{
  background:var(--g26-glass) !important;
  -webkit-backdrop-filter:blur(34px) saturate(190%) !important;
  backdrop-filter:blur(34px) saturate(190%) !important;
  border-bottom:1px solid rgba(255,255,255,.66) !important;
  box-shadow:var(--g26-shadow-sm) !important;
  position:relative;
}
/* 顶栏镜面斜光 */
.jc-header::after, .chat-header::after, .header::after{
  content:"";
  position:absolute; inset:0; pointer-events:none;
  background:var(--g26-spec);
  opacity:.5;
}

.tabbar{
  background:var(--g26-glass-strong) !important;
  -webkit-backdrop-filter:blur(52px) saturate(215%) !important;
  backdrop-filter:blur(52px) saturate(215%) !important;
  border:1px solid rgba(255,255,255,.80) !important;
  box-shadow:var(--g26-shadow) !important;
}
.tabbar::before{
  background:
    radial-gradient(46% 84% at 14% -4%, rgba(255,255,255,.72), transparent 66%),
    linear-gradient(112deg, transparent 18%, rgba(255,255,255,.42) 46%, rgba(139,207,176,.24) 60%, transparent 78%) !important;
  opacity:.72 !important;
}
.tabbar .tab.active{
  background:var(--g26-glass-strong) !important;
  border:1px solid rgba(255,255,255,.94) !important;
  box-shadow:
    0 10px 22px rgba(23,61,45,.10),
    0 0 0 .5px rgba(255,255,255,.7),
    inset 0 1px 1px rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(201,235,221,.3) !important;
}

/* ---------- 6.3 药丸搜索框 + 列表玻璃 ---------- */
.jc-search{
  background:var(--g26-glass) !important;
  -webkit-backdrop-filter:blur(30px) saturate(190%) !important;
  backdrop-filter:blur(30px) saturate(190%) !important;
  border:1px solid rgba(255,255,255,.76) !important;
  box-shadow:var(--g26-shadow-sm) !important;
  position:relative; overflow:hidden;
}
.jc-search::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:var(--g26-spec); opacity:.42;
}
.jc-list{
  background:var(--g26-glass) !important;
  -webkit-backdrop-filter:blur(40px) saturate(195%) !important;
  backdrop-filter:blur(40px) saturate(195%) !important;
  border:1px solid rgba(255,255,255,.72) !important;
  box-shadow:var(--g26-shadow) !important;
}

/* ---------- 6.4 会话卡：按压时镜面扫光 ---------- */
.jc-list .conversation{
  position:relative; overflow:hidden;
  transition:background .18s ease, box-shadow .18s ease !important;
}
.jc-list .conversation::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform:translateX(-120%);
  transition:transform .55s cubic-bezier(.2,.7,.2,1);
}
.jc-list .conversation:active::after{ transform:translateX(120%); }
.conversation .avatar{
  box-shadow:
    0 8px 18px rgba(23,61,45,.14),
    0 0 0 1.5px rgba(255,255,255,.92),
    0 0 0 2.5px rgba(139,207,176,.28) !important;
}

/* ---------- 6.5 聊天气泡：玻璃化 + 高光边缘 ---------- */
.msg-bubble{
  position:relative;
  -webkit-backdrop-filter:blur(18px) saturate(170%) !important;
  backdrop-filter:blur(18px) saturate(170%) !important;
}
.msg-bubble.other{
  background:var(--g26-glass-strong) !important;
  border:1px solid rgba(255,255,255,.86) !important;
  box-shadow:var(--g26-shadow-sm) !important;
}
.msg-bubble.self{
  background:linear-gradient(155deg,#2E9C6C 0%,#1E8057 56%,#146945 100%) !important;
  border:1px solid rgba(255,255,255,.28) !important;
  box-shadow:
    0 10px 22px rgba(30,128,87,.24),
    0 0 0 .5px rgba(255,255,255,.24),
    inset 0 1px 1px rgba(255,255,255,.34),
    inset 0 -1px 0 rgba(0,0,0,.06) !important;
  color:#fff !important;
}
.msg-bubble.self:after{ border-left-color:#1E8057 !important; }
.msg-bubble.other:before{ background:var(--g26-glass-strong) !important; }

/* ---------- 6.6 输入区：药丸发光 ---------- */
.composer{
  background:var(--g26-glass-strong) !important;
  -webkit-backdrop-filter:blur(52px) saturate(210%) !important;
  backdrop-filter:blur(52px) saturate(210%) !important;
  border:1px solid rgba(255,255,255,.86) !important;
  box-shadow:var(--g26-shadow) !important;
}
.composer #sendBtn{
  border-radius:20px !important;
  background:linear-gradient(155deg,#35A875 0%,#22865C 56%,#176B48 100%) !important;
  box-shadow:
    0 10px 20px rgba(34,134,92,.28),
    0 0 0 .5px rgba(255,255,255,.3),
    inset 0 1px 1px rgba(255,255,255,.38),
    inset 0 -1px 0 rgba(0,0,0,.05) !important;
  transition:transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .14s ease !important;
}
.composer #sendBtn:active{ transform:scale(.94) !important; }
.composer .tool-btn{
  box-shadow:0 6px 14px rgba(23,61,45,.07), inset 0 1px 1px rgba(255,255,255,.96), 0 0 0 .5px rgba(255,255,255,.6) !important;
}

/* ---------- 6.7 药丸主按钮：登录/发送/新建/提交 ---------- */
.login-btn, .mini-btn.green, .profile-btn.primary,
.friend-action-main button, .admin-form button, .pwd-form button,
.message-actions button.primary, .search-box button, .add-search-inner button{
  border-radius:999px !important;
  position:relative; overflow:hidden;
  background:linear-gradient(155deg,#2E9C6C 0%,#1E8057 58%,#146945 100%) !important;
  box-shadow:
    0 12px 24px rgba(30,128,87,.26),
    0 0 0 .5px rgba(255,255,255,.3),
    inset 0 1px 1px rgba(255,255,255,.38),
    inset 0 -1px 0 rgba(0,0,0,.06) !important;
  transition:transform .14s cubic-bezier(.2,.8,.2,1), box-shadow .14s ease !important;
}
.login-btn:active:not(:disabled),
.mini-btn.green:active,
.profile-btn.primary:active{ transform:scale(.97) !important; }
/* 按钮光泽扫过 */
.login-btn::after, .composer #sendBtn::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(110deg, transparent 26%, rgba(255,255,255,.42) 50%, transparent 72%);
  transform:translateX(-120%);
  transition:transform .6s cubic-bezier(.2,.7,.2,1);
}
.login-btn:hover::after, .composer #sendBtn:hover::after{ transform:translateX(120%); }

/* ---------- 6.8 登录卡：厚重玻璃 ---------- */
.login-card{
  background:var(--g26-glass-strong) !important;
  -webkit-backdrop-filter:blur(44px) saturate(200%) !important;
  backdrop-filter:blur(44px) saturate(200%) !important;
  border:1px solid rgba(255,255,255,.88) !important;
  box-shadow:var(--g26-shadow) !important;
  border-radius:30px !important;
}
.login-card input{
  background:rgba(255,255,255,.5) !important;
  border:1px solid rgba(255,255,255,.82) !important;
  box-shadow:inset 0 1px 2px rgba(23,61,45,.04), inset 0 1px 0 rgba(255,255,255,.9) !important;
  border-radius:15px !important;
}

/* ---------- 6.9 通用玻璃卡：个人中心/设置/后台 ---------- */
.me-profile, .me-row, .stat-card, .settings-card, .field-banner,
.request-card, .device-card, .profile-card, .admin-block{
  background:var(--g26-glass) !important;
  -webkit-backdrop-filter:blur(28px) saturate(185%) !important;
  backdrop-filter:blur(28px) saturate(185%) !important;
  border:1px solid rgba(255,255,255,.72) !important;
  box-shadow:var(--g26-shadow-sm) !important;
}

/* ---------- 6.10 弹窗玻璃 ---------- */
.jc-modal{
  background:var(--g26-glass-strong) !important;
  -webkit-backdrop-filter:blur(48px) saturate(210%) !important;
  backdrop-filter:blur(48px) saturate(210%) !important;
  border:1px solid rgba(255,255,255,.88) !important;
  box-shadow:var(--g26-shadow) !important;
  border-radius:28px !important;
}

/* ---------- 6.11 尊重减弱动效 ---------- */
@media (prefers-reduced-motion: reduce){
  body::after{ animation:none !important; }
  .jc-list .conversation::after,
  .login-btn::after, .composer #sendBtn::after{ transition:none !important; }
}

/* ---------- 6.12 消息操作弹窗：iOS 26 玻璃药丸 ---------- */
.message-actions-backdrop{
  background:rgba(23,61,45,.28) !important;
  -webkit-backdrop-filter:blur(10px) saturate(150%) !important;
  backdrop-filter:blur(10px) saturate(150%) !important;
}
.message-actions{
  background:var(--g26-glass-strong) !important;
  -webkit-backdrop-filter:blur(52px) saturate(210%) !important;
  backdrop-filter:blur(52px) saturate(210%) !important;
  border:1px solid rgba(255,255,255,.9) !important;
  border-radius:26px !important;
  box-shadow:var(--g26-shadow) !important;
  padding:8px !important;
  overflow:hidden;
}
.message-actions button{
  background:rgba(255,255,255,.42) !important;
  border:1px solid rgba(255,255,255,.7) !important;
  border-radius:16px !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9) !important;
  color:#1B4A33 !important;
  font-weight:600 !important;
  transition:transform .14s ease, background .14s ease !important;
}
.message-actions button:active{ transform:scale(.97) !important; background:rgba(221,245,232,.62) !important; }
.message-actions button.time-action{
  background:transparent !important;
  border:1px solid transparent !important;
  box-shadow:none !important;
  color:#4C6355 !important;
  font-size:12px !important;
  font-weight:500 !important;
  padding:8px !important;
}
.message-actions button.cancel{
  background:linear-gradient(155deg,#2E9C6C 0%,#1E8057 58%,#146945 100%) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.28) !important;
  border-radius:999px !important;
  box-shadow:0 10px 20px rgba(30,128,87,.24), inset 0 1px 1px rgba(255,255,255,.36) !important;
  margin-top:6px !important;
}

/* =====================================================================
   V2.7 增量层 · 自聊 / 复制删除 / 表情模板 / 输入区 / 消息提示
   全部沿用 iOS 26 Liquid Glass 视觉语言，独立作用域避免污染旧样式。
   ===================================================================== */

/* ---------- 7.1 我自己（本地自聊）会话卡 ---------- */
.self-chat-slot{ padding-bottom:2px; }
.self-chat-card{
  position:relative;
  background:linear-gradient(135deg, rgba(224,247,234,.92), rgba(198,233,215,.82)) !important;
  border:1px solid rgba(255,255,255,.9) !important;
  box-shadow:0 10px 24px rgba(30,128,87,.12), inset 0 1px 1px rgba(255,255,255,.98) !important;
  border-radius:20px !important;
  margin:8px 10px 6px !important;
}
.self-only-tag{
  display:inline-block; margin-left:6px; padding:1px 7px;
  font-size:10px; line-height:16px; font-weight:600;
  color:#1E8057; background:rgba(255,255,255,.72);
  border:1px solid rgba(46,156,108,.22); border-radius:999px;
  vertical-align:middle;
}
.self-chat-banner{
  display:flex; align-items:flex-start; gap:8px;
  margin:0 12px 8px; padding:10px 12px;
  font-size:12px; line-height:1.6; color:#3C6B52;
  background:rgba(224,247,234,.86);
  border:1px solid rgba(255,255,255,.9);
  border-radius:16px;
  box-shadow:inset 0 1px 1px rgba(255,255,255,.9);
}
.self-chat-banner svg{ width:16px; height:16px; flex:0 0 16px; margin-top:1px; color:#2E9C6C; }
.status-local{ color:#2E9C6C; font-weight:600; }
.profile-btn.soft svg{ width:17px; height:17px; vertical-align:-3px; margin-right:2px; }

/* ---------- 7.2 输入工具条：表情 + 常用语 ---------- */
.composer .tool-btn.active{
  background:linear-gradient(155deg,#EAF9F0,#D3EDDC) !important;
  color:#1B7A50 !important;
  box-shadow:0 8px 16px rgba(30,128,87,.16), inset 0 1px 1px #fff !important;
}
.composer .tool-btn svg{ width:21px; height:21px; display:block; }

/* 表情面板 */
.emoji-panel, .template-panel{
  position:relative;
  flex:0 0 auto !important;
  display:block !important;
  box-sizing:border-box;
  width:calc(100% - 16px) !important;
  max-height:266px !important;
  height:auto !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  background:var(--g26-glass-strong) !important;
  -webkit-backdrop-filter:blur(52px) saturate(210%) !important;
  backdrop-filter:blur(52px) saturate(210%) !important;
  border:1px solid rgba(255,255,255,.88) !important;
  box-shadow:var(--g26-shadow) !important;
  border-radius:24px !important;
  margin:0 8px 6px !important; padding:10px 12px 8px;
}
.emoji-panel::-webkit-scrollbar, .template-panel::-webkit-scrollbar{ width:0; height:0; }
.emoji-panel.hidden, .template-panel.hidden{ display:none !important; }
.emoji-tabs{
  display:flex; gap:6px; padding-bottom:8px; margin-bottom:8px;
  border-bottom:1px solid rgba(24,66,42,.1);
}
.emoji-tab{
  flex:0 0 auto; min-width:38px; height:32px; padding:0 10px;
  font-size:17px; line-height:1; border-radius:12px;
  background:rgba(255,255,255,.46); border:1px solid rgba(255,255,255,.7);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  transition:transform .14s ease, background .14s ease;
}
.emoji-tab:active{ transform:scale(.93); }
.emoji-tab.active{
  background:linear-gradient(155deg,#EAF9F0,#D3EDDC) !important;
  border:1px solid rgba(46,156,108,.3);
  box-shadow:0 6px 14px rgba(30,128,87,.14), inset 0 1px 1px #fff;
}
.emoji-grid{
  display:grid; grid-template-columns:repeat(8, minmax(0, 1fr)); gap:2px;
  overflow:visible;
}
.emoji-item{
  height:40px; font-size:23px; line-height:1; border-radius:12px;
  transition:transform .12s ease, background .12s ease;
}
.emoji-item:active{ transform:scale(1.18); background:rgba(219,247,231,.72); }
.emoji-empty{
  grid-column:1 / -1; text-align:center; color:#7C9285;
  font-size:12px; padding:28px 0;
}
.emoji-foot, .tpl-foot{
  text-align:center; font-size:11px; color:#8A9C90;
  padding-top:8px; margin-top:6px;
  border-top:1px solid rgba(24,66,42,.08);
}

/* 常用语面板 */
.tpl-head{
  display:flex; align-items:center; justify-content:space-between;
  padding:2px 2px 10px; font-size:13px; font-weight:700; color:#1B4A33;
}
.tpl-manage{
  font-size:12px; font-weight:600; color:#2E9C6C;
  padding:5px 12px; border-radius:999px;
  background:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.85);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.tpl-manage:active{ transform:scale(.95); }
.tpl-list{ overflow:visible; }
.tpl-item{
  display:block; width:100%; text-align:left;
  padding:10px 13px; margin-bottom:6px;
  font-size:14px; line-height:1.4; color:#214B36;
  background:rgba(255,255,255,.52);
  border:1px solid rgba(255,255,255,.82);
  border-radius:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
  transition:transform .14s ease, background .14s ease;
}
.tpl-item:active{ transform:scale(.985); background:rgba(219,247,231,.7); }

/* 常用语管理弹窗 */
.tpl-manager-list{ max-height:46vh; overflow-y:auto; padding:2px 4px; }
.tpl-manager-row{ display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.tpl-idx{ flex:0 0 18px; text-align:center; font-size:12px; color:#8A9C90; }
.tpl-manager-row .tpl-edit{
  flex:1; min-width:0; height:38px; padding:0 12px;
  font-size:14px; color:#214B36;
  background:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.88);
  border-radius:12px; box-shadow:inset 0 1px 2px rgba(23,61,45,.05);
}
.tpl-del{
  flex:0 0 30px; height:30px; font-size:18px; color:#B14545;
  background:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.8);
  border-radius:10px;
}
.tpl-add{
  width:100%; height:40px; margin-top:4px; font-size:14px; font-weight:600; color:#2E9C6C;
  background:rgba(255,255,255,.55); border:1px dashed rgba(46,156,108,.4); border-radius:14px;
}

/* ---------- 7.3 新消息浮标 ---------- */
.new-msg-float{
  position:absolute; right:16px; z-index:6;
  bottom:calc(72px + env(safe-area-inset-bottom));
  display:flex; align-items:center; gap:4px;
  padding:8px 14px; font-size:13px; font-weight:600; color:#fff;
  background:linear-gradient(155deg,#2E9C6C,#1E8057) !important;
  border:1px solid rgba(255,255,255,.3); border-radius:999px;
  box-shadow:0 12px 26px rgba(30,128,87,.36), inset 0 1px 1px rgba(255,255,255,.38);
  animation:g26FloatIn .28s cubic-bezier(.2,.8,.2,1);
}
.new-msg-float svg{ width:15px; height:15px; }
.new-msg-float.hidden{ display:none !important; }
@keyframes g26FloatIn{ from{ opacity:0; transform:translateY(10px) scale(.94); } to{ opacity:1; transform:none; } }

/* ---------- 7.4 聊天信息菜单 / 字号 ---------- */
.chat-info-menu{ padding:2px 4px 6px; }
.cim-row{
  display:flex; align-items:center; gap:12px; width:100%;
  padding:13px 12px; text-align:left;
  background:transparent; border-bottom:1px solid rgba(24,66,42,.08);
}
.cim-row:last-child{ border-bottom:none; }
.cim-row:active{ background:rgba(219,247,231,.5); }
.cim-ico{ flex:0 0 22px; color:#2E9C6C; }
.cim-ico svg{ width:21px; height:21px; display:block; }
.cim-label{ flex:1; font-size:15px; color:#214B36; font-weight:500; }
.cim-val{ display:flex; align-items:center; gap:4px; font-size:13px; color:#7C9285; }
.cim-val svg{ width:14px; height:14px; }
.font-size-options{ display:flex; gap:10px; padding:8px 4px 4px; }
.font-size-opt{
  flex:1; height:48px; font-size:15px; font-weight:600; color:#214B36;
  background:rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.85);
  border-radius:16px; box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.font-size-opt.selected{
  background:linear-gradient(155deg,#EAF9F0,#D3EDDC) !important;
  border:1px solid rgba(46,156,108,.34);
  box-shadow:0 8px 16px rgba(30,128,87,.14), inset 0 1px 1px #fff;
  color:#1B7A50;
}
.font-size-opt .check{ color:#2E9C6C; }

/* ---------- 7.5 消息操作菜单：图标 + 删除危险色 ---------- */
.message-actions button .ma-ico{
  display:inline-flex; vertical-align:-4px; margin-right:8px; color:#2E9C6C;
}
.message-actions button .ma-ico svg{ width:18px; height:18px; }
.message-actions button.danger{ color:#B14545 !important; }
.message-actions button.danger .ma-ico{ color:#C05353; }
.message-actions button.danger:active{ background:rgba(255,224,220,.6) !important; }

/* ---------- 7.6 消息字号档位（本机显示） ---------- */
.message-list.font-small .msg-bubble{ font-size:14px !important; line-height:1.45 !important; padding:8px 10px !important; }
.message-list.font-large .msg-bubble{ font-size:19px !important; line-height:1.6 !important; padding:11px 13px !important; }

/* ---------- 7.7 消息文本可选中（长按系统复制也算兜底） ---------- */
.msg-bubble{ -webkit-user-select:text; user-select:text; -webkit-touch-callout:default; }

/* ---------- 7.8 减弱动效 ---------- */
@media (prefers-reduced-motion: reduce){
  .new-msg-float{ animation:none !important; }
  .emoji-tab, .tpl-item, .emoji-item{ transition:none !important; }
}

/* ============================================================
   V2.8 增量层 · 微信/WhatsApp 风格输入区 + 登录页改版 + 备份模块
   ============================================================ */

/* ---------- 8.1 输入区：+ 更多 / 发送按钮随内容显隐 ---------- */
.composer .tool-btn.more-hidden{ display:none !important; }
.composer #sendBtn.send-hidden{ display:none !important; }
.composer-input-wrap{
  flex:1 1 auto; display:flex; align-items:flex-end; min-width:0;
  background:rgba(255,255,255,.72); border:1px solid rgba(255,255,255,.92);
  border-radius:20px; padding:2px 4px;
  box-shadow:inset 0 1px 3px rgba(30,80,55,.05);
}
.composer-input-wrap textarea{
  flex:1 1 auto; width:100%; border:none !important; outline:none !important;
  background:transparent !important; box-shadow:none !important;
  border-radius:0 !important; resize:none; max-height:112px;
  line-height:22px; padding:7px 10px !important; font-size:16px;
}
.composer .tool-btn.tpl-btn{ flex:0 0 auto; }
.composer #sendBtn{
  flex:0 0 auto; min-width:60px; height:38px; border-radius:19px !important;
  font-weight:700; letter-spacing:.5px;
  background:linear-gradient(155deg,#2E9C6C,#1E8057 62%,#146945) !important;
  color:#fff !important; border:1px solid rgba(255,255,255,.28) !important;
  box-shadow:0 6px 16px rgba(30,128,87,.28), inset 0 1px 1px rgba(255,255,255,.36) !important;
  animation:sendPop .18s ease-out;
}
.composer #sendBtn:disabled{ opacity:.6; }
@keyframes sendPop{ from{ transform:scale(.86); opacity:.4; } to{ transform:scale(1); opacity:1; } }

/* ---------- 8.2 更多面板（+） ---------- */
.more-panel{
  position:relative; margin:0 8px 6px; padding:8px;
  background:var(--g26-glass-strong, rgba(255,255,255,.82)) !important;
  -webkit-backdrop-filter:blur(52px) saturate(200%) !important;
  backdrop-filter:blur(52px) saturate(200%) !important;
  border:1px solid rgba(255,255,255,.9) !important;
  border-radius:22px; box-shadow:var(--g26-shadow, 0 12px 28px rgba(23,61,45,.12)) !important;
  display:grid; grid-template-columns:repeat(4, 1fr); gap:4px;
  animation:panelUp .2s ease-out;
}
.more-panel.hidden{ display:none !important; }
.more-item{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px;
  min-height:66px; padding:8px 2px; border-radius:16px;
  color:#214B36; font-size:12px; font-weight:500;
  background:rgba(255,255,255,.42); border:1px solid rgba(255,255,255,.6);
  transition:background .15s, transform .1s;
}
.more-item svg{ width:24px; height:24px; color:#2E9C6C; }
.more-item:active{ background:rgba(210,238,220,.9); transform:scale(.96); }
@keyframes panelUp{ from{ transform:translateY(10px); opacity:0; } to{ transform:translateY(0); opacity:1; } }

/* ---------- 8.3 登录页改版 ---------- */
.login-screen{
  position:relative; overflow:hidden;
  background:radial-gradient(120% 80% at 15% 0%, #d8f3e3 0%, transparent 55%),
             radial-gradient(100% 70% at 100% 20%, #cfe9f5 0%, transparent 50%),
             linear-gradient(160deg,#eef8f1 0%,#e3f2ea 45%,#eaf4ef 100%) !important;
  justify-content:center !important; padding:24px !important;
}
.login-aurora{ position:absolute; inset:0; pointer-events:none; filter:blur(34px); opacity:.7; }
.login-aurora i{ position:absolute; display:block; border-radius:50%; }
.login-aurora i:nth-child(1){ width:180px; height:180px; left:-40px; top:12%; background:#8fe0b4; animation:aurora1 14s ease-in-out infinite alternate; }
.login-aurora i:nth-child(2){ width:150px; height:150px; right:-30px; top:30%; background:#8fd0e8; animation:aurora2 18s ease-in-out infinite alternate; }
.login-aurora i:nth-child(3){ width:130px; height:130px; left:30%; bottom:6%; background:#c7e8a8; animation:aurora1 20s ease-in-out infinite alternate-reverse; }
@keyframes aurora1{ from{ transform:translate(0,0) scale(1); } to{ transform:translate(30px,26px) scale(1.15); } }
@keyframes aurora2{ from{ transform:translate(0,0) scale(1); } to{ transform:translate(-26px,20px) scale(1.1); } }
.login-brand{ position:relative; z-index:1; text-align:center; margin-bottom:30px; }
.login-logo{
  width:88px !important; height:88px !important; margin:0 auto 16px !important;
  border-radius:26px !important; padding:6px !important;
  background:linear-gradient(155deg,rgba(255,255,255,.95),rgba(224,244,232,.75)) !important;
  border:1px solid rgba(255,255,255,.95) !important;
  box-shadow:0 18px 40px rgba(30,110,70,.16), inset 0 1px 1px #fff !important;
}
.login-logo img{ width:100%; height:100%; border-radius:20px; }
.login-title{ font-size:30px !important; letter-spacing:4px !important; color:#16452C !important; text-shadow:0 1px 0 rgba(255,255,255,.8); }
.login-sub{ font-size:13.5px !important; color:#5C7A66 !important; margin-top:6px !important; letter-spacing:1px; }
.login-card{
  position:relative; z-index:1;
  background:rgba(255,255,255,.66) !important;
  -webkit-backdrop-filter:blur(40px) saturate(190%) !important;
  backdrop-filter:blur(40px) saturate(190%) !important;
  border:1px solid rgba(255,255,255,.92) !important;
  border-radius:24px !important; padding:22px 20px 20px !important;
  box-shadow:0 24px 54px rgba(28,86,55,.12), inset 0 1px 1px #fff !important;
}
.login-card-head{ display:flex; align-items:center; gap:8px; margin-bottom:18px; }
.login-card-title{ font-size:18px; font-weight:750; color:#1B4D33; letter-spacing:.5px; }
.login-card-dot{ width:7px; height:7px; border-radius:50%; background:#2E9C6C; box-shadow:0 0 0 4px rgba(46,156,108,.14); }
.login-card label{ font-size:12.5px !important; color:#4F6B58 !important; font-weight:650 !important; letter-spacing:.5px !important; }
.login-field{
  display:flex; align-items:center; gap:6px; margin-bottom:16px; padding:0 10px;
  background:rgba(255,255,255,.7); border:1px solid rgba(255,255,255,.95);
  border-radius:14px; box-shadow:inset 0 1px 3px rgba(30,80,55,.05), 0 1px 0 rgba(255,255,255,.6);
  transition:border-color .18s, box-shadow .18s;
}
.login-field:focus-within{ border-color:rgba(46,156,108,.5) !important; box-shadow:0 0 0 3px rgba(46,156,108,.12), inset 0 1px 3px rgba(30,80,55,.04); }
.login-field-ico{ display:inline-flex; color:#7FA48C; flex:0 0 auto; }
.login-field-ico svg{ width:19px; height:19px; }
.login-card .login-field input{
  flex:1 1 auto; width:100%; height:50px !important; line-height:24px !important;
  font-size:16px !important; border:none !important; outline:none !important;
  background:transparent !important; box-shadow:none !important; border-radius:0 !important;
  color:#173B28;
}
.login-pwd-wrap{ position:relative; }
.login-pwd-toggle{ flex:0 0 auto; }
.login-pwd-toggle svg{ width:20px; height:20px; }
.login-btn{
  height:50px !important; border-radius:15px !important; font-size:16.5px !important;
  display:flex; align-items:center; justify-content:center; gap:8px;
  background:linear-gradient(155deg,#2E9C6C,#1E8057 60%,#146945) !important;
  box-shadow:0 12px 26px rgba(30,128,87,.28), inset 0 1px 1px rgba(255,255,255,.36) !important;
}
.login-btn svg{ width:18px; height:18px; }
.login-btn:active{ transform:translateY(1px); }
.login-trust{
  position:relative; z-index:1; display:flex; align-items:center; justify-content:center; gap:6px;
  margin-top:18px; padding:9px 14px; max-width:400px;
  font-size:12px; line-height:1.5; color:#3E6B50; text-align:center;
  background:rgba(255,255,255,.5); border:1px solid rgba(255,255,255,.85);
  border-radius:14px; -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
}
.login-trust span{ display:inline-flex; color:#2E9C6C; flex:0 0 auto; }
.login-trust svg{ width:17px; height:17px; }
.login-hint{ max-width:400px; margin:12px auto 0 !important; line-height:1.6 !important; }

/* ---------- 8.4 备份页 ---------- */
.backup-page{ display:flex; flex-direction:column; gap:14px; }
.backup-hero{
  position:relative; overflow:hidden; padding:20px; border-radius:22px;
  background:linear-gradient(155deg,rgba(255,255,255,.9),rgba(225,245,232,.75));
  border:1px solid rgba(255,255,255,.95);
  box-shadow:0 14px 30px rgba(28,86,55,.1), inset 0 1px 1px #fff;
}
.backup-hero-ico{ display:inline-flex; color:#2E9C6C; margin-bottom:8px; }
.backup-hero-ico svg{ width:30px; height:30px; }
.backup-hero-title{ font-size:17px; font-weight:750; color:#16452C; }
.backup-hero-sub{ font-size:12.5px; line-height:1.6; color:#4F6B58; margin-top:6px; }
.backup-stats{ display:flex; gap:22px; margin-top:14px; font-size:12.5px; color:#4F6B58; }
.backup-stats strong{ font-size:20px; color:#1B7A50; margin-right:3px; }
.backup-actions{ display:flex; gap:10px; }
.backup-action{
  flex:1; display:flex; align-items:center; justify-content:center; gap:8px;
  min-height:50px; border-radius:16px; font-size:14.5px; font-weight:650; color:#215139;
  background:rgba(255,255,255,.72); border:1px solid rgba(255,255,255,.95);
  box-shadow:0 6px 16px rgba(28,86,55,.08), inset 0 1px 1px #fff;
}
.backup-action svg{ width:20px; height:20px; color:#2E9C6C; }
.backup-action.primary{
  background:linear-gradient(155deg,#2E9C6C,#1E8057 62%,#146945) !important; color:#fff !important;
  border:1px solid rgba(255,255,255,.28) !important;
  box-shadow:0 10px 22px rgba(30,128,87,.26), inset 0 1px 1px rgba(255,255,255,.34) !important;
}
.backup-action.primary svg{ color:#fff; }
.backup-action:active{ transform:translateY(1px); }
.backup-section-title{ font-size:12.5px; font-weight:700; color:#5A7462; letter-spacing:.5px; margin-top:6px; padding-left:2px; }
.backup-list{ display:flex; flex-direction:column; gap:8px; }
.backup-row{
  display:flex; align-items:center; gap:10px; padding:12px;
  background:rgba(255,255,255,.62); border:1px solid rgba(255,255,255,.9);
  border-radius:16px; box-shadow:0 4px 12px rgba(28,86,55,.05);
}
.backup-row-ico{ display:inline-flex; width:38px; height:38px; align-items:center; justify-content:center; border-radius:12px; background:rgba(46,156,108,.1); color:#2E9C6C; flex:0 0 auto; }
.backup-row-ico svg{ width:20px; height:20px; }
.backup-row-main{ flex:1; min-width:0; }
.backup-row-name{ font-size:14.5px; font-weight:650; color:#1B4030; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.backup-row-sub{ font-size:11.5px; color:#78907F; margin-top:2px; }
.backup-one-btn{
  display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px;
  border-radius:12px; color:#2E9C6C; background:rgba(255,255,255,.8);
  border:1px solid rgba(255,255,255,.95); flex:0 0 auto;
}
.backup-one-btn svg{ width:19px; height:19px; }
.backup-one-btn:active{ background:rgba(210,238,220,.9); }
.backup-empty{ text-align:center; color:#8AA092; font-size:13px; padding:22px 0; }
.backup-note{ font-size:11.5px; line-height:1.7; color:#7C9182; padding:2px 4px 10px; }
.backup-export-text{
  width:100%; min-height:220px; margin-top:8px; padding:12px; border-radius:14px;
  border:1px solid rgba(255,255,255,.9); background:rgba(255,255,255,.7);
  font-family:ui-monospace,Menlo,Consolas,monospace; font-size:11px; color:#214B36; resize:vertical;
}

/* ---------- 8.5 自聊提示条 / 24h 说明融入玻璃体系 ---------- */
.self-chat-banner, .chat-muted-banner{ font-size:12px !important; line-height:1.6 !important; }

@media (prefers-reduced-motion: reduce){
  .login-aurora i{ animation:none !important; }
  .composer #sendBtn, .more-panel{ animation:none !important; }
}

/* ============================================================
   V2.9 增量层 · 多端登录 + 键盘缩放 + 更多卡片子页面
   ============================================================ */

/* ---------- 9.1 更多面板：功能模块卡片 ---------- */
.more-panel{
  grid-template-columns:1fr !important; gap:6px !important; padding:12px !important;
  max-height:min(320px, calc(var(--vvHeight, 100%) - 210px)) !important;
  overflow-y:auto !important; overscroll-behavior:contain !important;
}
.more-panel::-webkit-scrollbar{ width:0; height:0; }
.more-panel-head{
  display:flex; align-items:center; justify-content:space-between;
  font-size:13px; font-weight:750; color:#1B4D33; padding:2px 4px 8px;
  border-bottom:1px solid rgba(24,66,42,.08); margin-bottom:4px;
}
.more-panel-close{
  display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px;
  border-radius:9px; color:#5C7A66; background:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.9);
}
.more-panel-close svg{ width:18px; height:18px; transform:rotate(180deg); }
.more-cards{ display:flex; flex-direction:column; gap:6px; }
.more-card{
  display:flex; align-items:center; gap:12px; width:100%; min-height:58px; padding:9px 11px;
  border-radius:16px; text-align:left;
  background:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.92);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), 0 3px 10px rgba(28,86,55,.05);
  transition:transform .12s, background .15s;
}
.more-card:active{ transform:scale(.985); background:rgba(220,242,228,.9); }
.more-card-ico{
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  width:40px; height:40px; border-radius:13px; background:rgba(46,156,108,.11); color:#2E9C6C;
}
.more-card-ico svg{ width:21px; height:21px; }
.more-card.tone-red .more-card-ico{ background:rgba(193,73,73,.1); color:#C14949; }
.more-card.tone-blue .more-card-ico{ background:rgba(74,124,178,.12); color:#3E78B0; }
.more-card.tone-amber .more-card-ico{ background:rgba(196,146,58,.13); color:#B98A32; }
.more-card-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:2px; }
.more-card-text strong{ font-size:14.5px; font-weight:680; color:#1B4030; }
.more-card-text em{ font-style:normal; font-size:11.5px; color:#7C9285; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.more-card-arrow{ display:inline-flex; color:#9DB4A4; }
.more-card-arrow svg{ width:16px; height:16px; }

/* ---------- 9.2 功能子页面通用卡片（备份/清除） ---------- */
.func-hero{
  display:flex; gap:12px; align-items:flex-start; margin:4px 0 12px; padding:14px;
  border-radius:16px; background:linear-gradient(155deg,rgba(234,249,240,.9),rgba(211,237,220,.7));
  border:1px solid rgba(255,255,255,.9);
}
.func-hero.danger{ background:linear-gradient(155deg,rgba(255,240,238,.92),rgba(250,222,218,.75)); border-color:rgba(255,255,255,.9); }
.func-hero-ico{ display:inline-flex; color:#2E9C6C; flex:0 0 auto; }
.func-hero.danger .func-hero-ico{ color:#C14949; }
.func-hero-ico svg{ width:26px; height:26px; }
.func-hero strong{ font-size:14.5px; color:#1B4030; }
.func-hero.danger strong{ color:#8E3838; }
.func-hero p{ font-size:12.5px; line-height:1.65; color:#54705D; margin:4px 0 0; }
.func-hero.danger p{ color:#8A5B5B; }
.func-stat{
  display:flex; justify-content:space-between; align-items:center; padding:10px 14px; margin-bottom:12px;
  border-radius:14px; background:rgba(255,255,255,.6); border:1px solid rgba(255,255,255,.9);
  font-size:12.5px; color:#5C7A66;
}
.func-stat b{ font-size:18px; color:#1B7A50; }
.func-actions{ display:flex; gap:10px; }
.func-actions .profile-btn{ flex:1; display:flex; align-items:center; justify-content:center; gap:6px; }
.func-actions .profile-btn svg{ width:17px; height:17px; }
.func-actions .danger-btn{
  background:linear-gradient(155deg,#D05555,#B13C3C) !important; color:#fff !important;
  border:1px solid rgba(255,255,255,.25) !important;
  box-shadow:0 8px 18px rgba(177,60,60,.22) !important;
}

/* ---------- 9.3 设备页：多端说明 + 当前设备 ---------- */
.device-intro{
  display:flex; gap:10px; align-items:flex-start; margin-bottom:14px; padding:13px 14px;
  border-radius:16px; background:linear-gradient(155deg,rgba(234,249,240,.9),rgba(211,237,220,.7));
  border:1px solid rgba(255,255,255,.9); font-size:12.5px; line-height:1.7; color:#4F6B58;
}
.device-intro strong{ color:#1B4D33; font-size:14px; }
.device-intro-ico{ display:inline-flex; color:#2E9C6C; flex:0 0 auto; }
.device-intro-ico svg{ width:22px; height:22px; }
.device-item.is-current{ border-color:rgba(46,156,108,.4) !important; box-shadow:0 4px 14px rgba(30,128,87,.1) !important; }
.device-current-tag{
  display:inline-block; margin-left:8px; padding:2px 8px; border-radius:999px;
  font-size:10.5px; font-weight:700; color:#fff; letter-spacing:.3px;
  background:linear-gradient(155deg,#2E9C6C,#1E8057); vertical-align:1px;
}

@media (prefers-reduced-motion: reduce){
  .more-card{ transition:none !important; }
}

/* ============================================================
   V3.0 增量层：输入助手（+/表情/常用语）+ 聊天功能子页面 + 音效
   ============================================================ */

/* ---------- 10.1 输入助手面板：紧邻输入区上方弹起 ---------- */
.assist-panel{
  position:relative;
  z-index:6;
  flex:0 0 auto;
  margin:0 8px 8px;
  padding:10px 12px 8px;
  background:var(--g26-glass-strong, rgba(255,255,255,.72)) !important;
  -webkit-backdrop-filter:blur(52px) saturate(210%) !important;
  backdrop-filter:blur(52px) saturate(210%) !important;
  border:1px solid rgba(255,255,255,.9) !important;
  border-radius:22px !important;
  box-shadow:0 18px 40px rgba(23,61,45,.13), inset 0 1px 1px rgba(255,255,255,.98) !important;
  max-height:min(320px, calc(100% - 200px));
  overflow-y:auto; overscroll-behavior:contain;
  animation:g26AssistIn .22s cubic-bezier(.22,.9,.3,1.2);
}
.assist-panel.hidden{ display:none !important; }
.assist-panel::-webkit-scrollbar{ width:0; height:0; }
@keyframes g26AssistIn{
  from{ opacity:0; transform:translateY(14px) scale(.98); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
.assist-tabs{
  display:flex; align-items:center; gap:6px;
  padding-bottom:8px; margin-bottom:8px;
  border-bottom:1px solid rgba(46,156,108,.12);
}
.assist-tab{
  display:inline-flex; align-items:center; gap:5px;
  padding:7px 14px; border:0; border-radius:999px; cursor:pointer;
  font-size:13px; font-weight:620; color:#5C7A66;
  background:rgba(255,255,255,.55);
  transition:all .18s ease;
}
.assist-tab svg{ width:17px; height:17px; }
.assist-tab.active{
  color:#fff; background:linear-gradient(155deg,#2E9C6C,#1E8057);
  box-shadow:0 6px 14px rgba(30,128,87,.24), inset 0 1px 1px rgba(255,255,255,.32);
}
.assist-close{
  margin-left:auto; width:30px; height:30px; border:0; border-radius:50%; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  color:#7C9285; background:rgba(255,255,255,.6);
}
.assist-close svg{ width:18px; height:18px; }
.assist-body{ min-height:150px; }
.assist-body .emoji-grid{ grid-template-columns:repeat(8,minmax(0,1fr)); max-height:none; overflow:visible; }
.assist-body .tpl-list{ max-height:none; overflow:visible; }
.composer #moreToggle.active{
  color:#1B7A50; background:rgba(46,156,108,.14);
  box-shadow:inset 0 0 0 1px rgba(46,156,108,.25);
}

/* ---------- 10.2 聊天功能子页面（顶部更多进入） ---------- */
.chattools-page{ padding:14px 14px 30px; }
.tools-hero{
  display:flex; gap:12px; align-items:flex-start; margin-bottom:16px; padding:15px;
  border-radius:18px;
  background:linear-gradient(155deg,rgba(234,249,240,.92),rgba(211,237,220,.72));
  border:1px solid rgba(255,255,255,.92);
  box-shadow:0 8px 22px rgba(23,61,45,.06), inset 0 1px 1px rgba(255,255,255,.9);
}
.tools-hero-ico{ display:inline-flex; color:#2E9C6C; flex:0 0 auto; }
.tools-hero-ico svg{ width:26px; height:26px; }
.tools-hero strong{ font-size:15px; color:#1B4030; }
.tools-hero p{ font-size:12.5px; line-height:1.65; color:#54705D; margin:4px 0 0; }
.tools-grid{ display:flex; flex-direction:column; gap:10px; }
.tool-card{
  display:flex; align-items:center; gap:12px; width:100%; text-align:left;
  padding:13px 14px; border-radius:17px; cursor:pointer;
  background:rgba(255,255,255,.68);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:0 4px 14px rgba(23,61,45,.05), inset 0 1px 1px rgba(255,255,255,.9);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  backdrop-filter:blur(20px) saturate(180%);
  transition:transform .16s ease, box-shadow .16s ease;
}
.tool-card:active{ transform:scale(.985); box-shadow:0 2px 8px rgba(23,61,45,.08); }
.tool-card-ico{
  display:inline-flex; align-items:center; justify-content:center;
  width:42px; height:42px; border-radius:13px; flex:0 0 auto;
  background:rgba(46,156,108,.11); color:#2E9C6C;
}
.tool-card-ico svg{ width:21px; height:21px; }
.tool-card.tone-red .tool-card-ico{ background:rgba(193,73,73,.1); color:#C14949; }
.tool-card.tone-blue .tool-card-ico{ background:rgba(74,124,178,.12); color:#3E78B0; }
.tool-card.tone-amber .tool-card-ico{ background:rgba(196,146,58,.13); color:#B98A32; }
.tool-card.tone-violet .tool-card-ico{ background:rgba(126,94,178,.12); color:#7C5EB2; }
.tool-card.tone-cyan .tool-card-ico{ background:rgba(46,140,156,.12); color:#2E8C9C; }
.tool-card.tone-gray .tool-card-ico{ background:rgba(120,132,126,.13); color:#6E7E74; }
.tool-card-text{ flex:1; min-width:0; display:flex; flex-direction:column; gap:3px; }
.tool-card-text strong{ font-size:14.5px; font-weight:680; color:#1B4030; }
.tool-card-text em{ font-style:normal; font-size:11.5px; color:#7C9285; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tool-card-arrow{ display:inline-flex; color:#9DB4A4; }
.tool-card-arrow svg{ width:16px; height:16px; }
.tools-note{
  margin-top:16px; padding:0 6px; font-size:11.5px; line-height:1.7; color:#9AAEA0; text-align:center;
}

@media (prefers-reduced-motion: reduce){
  .assist-panel{ animation:none !important; }
  .tool-card{ transition:none !important; }
}

/* ============================================================
   V3.1 增量层：图片/语音消息 + 输入区下方的功能面板 + 预览/录音
   ============================================================ */

/* ---------- 输入区布局：图片/语音按钮 ---------- */
.composer .media-tool-btn{
  flex:0 0 auto;
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:50%;
  color:#2E9C6C; transition:transform .16s ease, background .16s ease;
}
.composer .media-tool-btn svg{ width:21px; height:21px; display:block; }
.composer .media-tool-btn:not(:disabled):active{ transform:scale(.9); background:rgba(46,156,108,.12) !important; }
.composer .media-tool-btn.recording-on{
  color:#C14949; background:rgba(193,73,73,.12) !important;
  animation:v31RecPulse 1.1s ease-in-out infinite;
}
@keyframes v31RecPulse{ 0%,100%{ box-shadow:0 0 0 0 rgba(193,73,73,.28); } 50%{ box-shadow:0 0 0 7px rgba(193,73,73,0); } }
.hidden-file-input{ position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; left:-9999px; }

/* ---------- 输入助手面板：位于输入区下方（紧邻 composer） ---------- */
.chat-screen .assist-panel{
  margin:-2px 8px calc(8px + env(safe-area-inset-bottom)) !important;
  animation:v31AssistIn .22s cubic-bezier(.22,.9,.3,1.2) !important;
  order:0;
}
@keyframes v31AssistIn{
  from{ opacity:0; transform:translateY(-10px) scale(.985); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
/* 面板打开时收紧 composer 底部外边距，使两者贴合 */
.chat-screen:has(.assist-panel:not(.hidden)) .composer{ margin-bottom:2px !important; }

/* ---------- 媒体消息气泡（图片/语音） ---------- */
.msg-bubble.is-media{
  padding:5px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  max-width:100%;
}
.msg-bubble.is-media:after{ display:none !important; }
.media-bubble{ position:relative; border-radius:16px; overflow:hidden; }
.image-bubble{
  display:block; line-height:0; cursor:zoom-in;
  background:#e9efe9;
  box-shadow:0 6px 15px rgba(25,77,49,.10), inset 0 1px 0 rgba(255,255,255,.5);
}
.image-bubble .media-img{ display:block; object-fit:cover; max-width:100%; }
.media-zoom-hint{
  position:absolute; right:7px; top:7px;
  display:inline-flex; align-items:center; justify-content:center;
  width:26px; height:26px; border-radius:50%;
  color:#fff; background:rgba(20,40,28,.42);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.media-zoom-hint svg{ width:15px; height:15px; }
.voice-bubble{
  display:flex; align-items:center; gap:9px;
  min-width:152px; height:44px; padding:0 13px;
  cursor:pointer; color:#1B4030;
  background:linear-gradient(150deg,rgba(255,255,255,.9),rgba(232,250,239,.82)) !important;
  border:1px solid rgba(255,255,255,.9) !important;
  box-shadow:0 6px 15px rgba(25,77,49,.08), inset 0 1px 0 rgba(255,255,255,.95);
}
.msg-bubble.self .voice-bubble{
  background:linear-gradient(150deg,rgba(190,244,205,.95),rgba(139,222,165,.86)) !important;
  border-color:rgba(255,255,255,.7) !important;
}
.voice-play-ico{ display:inline-flex; color:#2E9C6C; flex:0 0 auto; }
.voice-play-ico svg{ width:17px; height:17px; display:block; }
.voice-bubble.playing .voice-play-ico{ animation:v31VoicePulse 1s ease-in-out infinite; }
@keyframes v31VoicePulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
.voice-wave{ display:flex; align-items:center; gap:2px; flex:1; height:24px; overflow:hidden; }
.voice-wave i{ display:block; width:2.5px; border-radius:2px; background:currentColor; opacity:.62; }
.voice-bubble.playing .voice-wave i{ animation:v31Wave .8s ease-in-out infinite alternate; }
.voice-bubble.playing .voice-wave i:nth-child(2n){ animation-delay:.15s; }
.voice-bubble.playing .voice-wave i:nth-child(3n){ animation-delay:.3s; }
@keyframes v31Wave{ from{ transform:scaleY(.5); } to{ transform:scaleY(1.15); } }
.voice-dur{ font-size:12px; font-weight:650; flex:0 0 auto; opacity:.8; }

/* ---------- 录音浮层 ---------- */
.record-overlay{
  position:absolute; inset:0; z-index:40;
  display:flex; align-items:center; justify-content:center;
  background:rgba(18,42,30,.28);
  -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px);
}
.record-overlay.hidden{ display:none !important; }
.record-card{
  min-width:230px; padding:26px 22px 20px; text-align:center;
  border-radius:24px; color:#1B4030;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(255,255,255,.95);
  box-shadow:0 24px 60px rgba(20,50,34,.28), inset 0 1px 1px #fff;
  animation:v31RecIn .2s ease;
}
@keyframes v31RecIn{ from{ opacity:0; transform:scale(.9); } to{ opacity:1; transform:scale(1); } }
.record-card strong{ font-size:34px; font-weight:750; }
.record-dot{
  display:inline-block; width:12px; height:12px; border-radius:50%;
  background:#C14949; margin-right:8px; vertical-align:middle;
  animation:v31RecPulse 1.1s ease-in-out infinite;
}
.record-tip{ margin-top:8px; font-size:12.5px; color:#6E8577; }
.record-actions{ display:flex; gap:10px; margin-top:18px; }
.record-cancel,.record-send{
  flex:1; padding:10px 0; border:0; border-radius:13px; cursor:pointer;
  font-size:14px; font-weight:650;
}
.record-cancel{ color:#5C7A66; background:rgba(46,156,108,.1); }
.record-send{ color:#fff; background:linear-gradient(155deg,#2E9C6C,#1E8057); }
.record-limit .record-dot{ background:#B98A32; }

/* ---------- 媒体全屏预览 + 保存 ---------- */
.media-preview{ position:fixed; inset:0; z-index:120; display:flex; align-items:center; justify-content:center; }
.media-preview.hidden{ display:none !important; }
.media-preview-backdrop{ position:absolute; inset:0; background:rgba(12,26,18,.86); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); }
.media-preview-card{
  position:relative; z-index:1; max-width:94vw; max-height:88vh;
  display:flex; flex-direction:column; align-items:center; gap:14px;
  animation:v31RecIn .2s ease;
}
.vp-image{ display:block; max-width:94vw; max-height:74vh; object-fit:contain; border-radius:14px; box-shadow:0 20px 60px rgba(0,0,0,.4); }
.media-preview-close{
  position:absolute; top:-46px; right:0;
  width:38px; height:38px; border:0; border-radius:50%; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
  color:#fff; background:rgba(255,255,255,.16);
}
.media-preview-close svg{ width:20px; height:20px; }
.vp-save-btn{
  display:inline-flex; align-items:center; gap:7px;
  padding:11px 20px; border:0; border-radius:999px; cursor:pointer;
  font-size:14px; font-weight:660; color:#123d29;
  background:linear-gradient(155deg,#eafff1,#bfe9cc);
  box-shadow:0 8px 22px rgba(0,0,0,.25);
}
.vp-save-btn svg{ width:18px; height:18px; }
.voice-preview-card{
  padding:34px 30px 28px; border-radius:24px; min-width:260px; text-align:center;
  background:rgba(255,255,255,.94); border:1px solid #fff;
  box-shadow:0 24px 60px rgba(0,0,0,.35);
}
.voice-preview-card .media-preview-close{ top:10px; right:10px; color:#5C7A66; background:rgba(46,156,108,.1); }
.vp-voice-ico{ display:inline-flex; color:#2E9C6C; }
.vp-voice-ico svg{ width:38px; height:38px; }
.vp-voice-title{ font-size:14px; color:#5C7A66; margin:6px 0 4px; }
.vp-play-btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 22px; border:0; border-radius:999px; cursor:pointer;
  font-size:14px; font-weight:660; color:#fff;
  background:linear-gradient(155deg,#2E9C6C,#1E8057);
}
.vp-play-btn svg{ width:15px; height:15px; }
.voice-preview-card .vp-save-btn{ box-shadow:none; background:rgba(46,156,108,.1); }

/* ---------- 图片来源选择浮层 ---------- */
.source-sheet{
  position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:min(420px,100%); padding:10px 10px calc(14px + env(safe-area-inset-bottom));
  border-radius:24px 24px 0 0;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(30px) saturate(190%); backdrop-filter:blur(30px) saturate(190%);
  box-shadow:0 -14px 40px rgba(20,50,34,.14);
  animation:v31AssistIn .22s ease;
}
.source-sheet-title{ text-align:center; font-size:13px; color:#8AA094; padding:8px 0 12px; font-weight:600; }
.source-sheet button{
  display:flex; align-items:center; gap:12px; width:100%;
  padding:14px 16px; border:0; border-radius:14px; cursor:pointer;
  font-size:15px; font-weight:620; color:#1B4030; background:rgba(46,156,108,.07);
  margin-bottom:8px; text-align:left;
}
.source-sheet button .ma-ico{ display:inline-flex; color:#2E9C6C; }
.source-sheet button .ma-ico svg{ width:22px; height:22px; }
.source-sheet button.cancel{ justify-content:center; background:rgba(120,132,126,.1); color:#6E7E74; }

@media (prefers-reduced-motion: reduce){
  .image-bubble,.media-bubble,.record-card,.source-sheet,.media-preview-card{ animation:none !important; }
  .record-dot,.record-card,.voice-bubble.playing .voice-play-ico,.voice-bubble.playing .voice-wave i,.composer .media-tool-btn.recording-on{ animation:none !important; }
}

/* ============================================================
   V3.2 — 录音停止/试听、图片弹窗优化、返回流畅度
   ============================================================ */
/* 麦克风按钮录音中高亮 */
.composer .media-tool-btn.recording-on{
  color:#fff !important; background:linear-gradient(155deg,#C14949,#A03636) !important;
  animation:v32MicPulse 1s ease-in-out infinite;
}
@keyframes v32MicPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.08); } }

/* 录音停止按钮（描边红） */
.record-stop{
  color:#C14949; background:rgba(193,73,73,.12);
  border:1px solid rgba(193,73,73,.28);
}
/* 已停止待确认卡片 */
.stopped-card{ animation:v31RecIn .22s ease; }
.stopped-ico{
  display:inline-flex; align-items:center; justify-content:center;
  width:52px; height:52px; border-radius:50%; margin-bottom:6px;
  color:#2E9C6C; background:rgba(46,156,108,.12);
}
.stopped-ico svg{ width:26px; height:26px; }
.stopped-title{ font-size:15px; font-weight:700; color:#1B4030; }
.stopped-dur{ font-size:13px; color:#6E8577; margin:4px 0 2px; }
.stopped-dur strong{ font-size:22px; font-weight:750; color:#1B4030; }
.record-retry{
  color:#5C7A66; background:rgba(120,132,126,.12);
}
.record-preview{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  margin-top:12px; padding:8px 18px; border:1px solid rgba(46,156,108,.25);
  border-radius:999px; cursor:pointer; font-size:13px; font-weight:640;
  color:#2E9C6C; background:transparent; transition:background .18s,color .18s;
}
.record-preview svg{ width:14px; height:14px; }
.record-preview.previewing{ color:#fff; background:#2E9C6C; }

/* 图片来源浮层：独立遮罩 + 平滑出入 */
.source-backdrop{
  position:fixed; inset:0; z-index:130;
  background:rgba(12,26,18,0);
  -webkit-backdrop-filter:blur(0); backdrop-filter:blur(0);
  transition:background .2s ease, backdrop-filter .2s ease;
}
.source-backdrop.show{
  background:rgba(12,26,18,.34);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.source-backdrop .source-sheet{
  transform:translate(-50%,100%);
  animation:none !important;
  transition:transform .24s cubic-bezier(.22,.9,.28,1);
}
.source-backdrop.show .source-sheet{ transform:translate(-50%,0); }
.source-sheet-handle{
  width:38px; height:4px; border-radius:4px; margin:2px auto 6px;
  background:rgba(120,132,126,.3);
}
.source-sheet .src-arrow{
  margin-left:auto; display:inline-flex; color:#A9BCB0;
}
.source-sheet .src-arrow svg{ width:16px; height:16px; }


/* ===== V3.3 对象存储：媒体加载占位态 ===== */
.media-bubble.media-placeholder{
  min-width:132px; min-height:76px; padding:14px 16px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  background:rgba(120,132,126,.14); color:#6E7E74;
}
.media-ph-ico{ display:inline-flex; color:#8AA094; }
.media-ph-ico svg{ width:24px; height:24px; }
.media-ph-tip{ font-size:11.5px; font-weight:600; }
.media-bubble.media-placeholder.expired{ background:rgba(193,73,73,.1); color:#B45B5B; }
.media-bubble.media-placeholder.expired .media-ph-ico{ color:#C17D7D; }

/* ===== V3.3 存储与配额面板 ===== */
.quota-sheet .source-sheet-title{ display:flex; align-items:center; justify-content:center; gap:7px; color:#1B4030; font-size:15px; }
.quota-sheet .source-sheet-title svg{ width:19px; height:19px; color:#2E9C6C; }
.quota-body{ padding:4px 4px 12px; }
.quota-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:11px 2px; border-bottom:1px solid rgba(120,132,126,.12);
}
.quota-row span{ font-size:13px; color:#7C9285; }
.quota-row strong{ font-size:14px; font-weight:700; color:#1B4030; }
.quota-bar{
  height:8px; border-radius:8px; margin:14px 2px 8px;
  background:rgba(120,132,126,.15); overflow:hidden;
}
.quota-bar i{
  display:block; height:100%; border-radius:8px;
  background:linear-gradient(90deg,#57C08A,#2E9C6C);
  transition:width .4s ease;
}
.quota-hint{ font-size:11.5px; line-height:1.6; color:#8AA094; padding:2px 2px 10px; }
.quota-loading{ font-size:12px; color:#2E9C6C; padding:8px 2px; font-weight:600; }
.quota-tips{ margin-top:6px; padding:10px 12px; border-radius:12px; background:rgba(46,156,108,.08); }
.quota-tips-title{ font-size:12px; font-weight:700; color:#2E7A57; margin-bottom:6px; }
.quota-tip{ font-size:11.5px; line-height:1.6; color:#5C7A69; padding:2px 0; }

@media (prefers-reduced-motion:reduce){
  .quota-bar i{ transition:none !important; }
}

/* ===== 登录页自适应修复（最高优先级，覆盖历史 !important） ===== */
html,body{ height:100%; }
.login-screen{
  height:100% !important;
  min-height:100dvh !important;
  max-height:none !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
  justify-content:flex-start !important;
  padding:calc(30px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)) !important;
  box-sizing:border-box;
}
.login-brand{
  margin-top:auto !important;
  margin-bottom:6px !important;
  flex-shrink:0;
}
.login-logo{ width:82px !important; height:82px !important; margin-bottom:14px !important; flex-shrink:0; }
.login-title{ font-size:25px !important; margin-bottom:5px !important; }
.login-sub{ margin-bottom:20px !important; }
.login-card{
  flex-shrink:0;
  margin-bottom:auto !important;
  padding:20px 18px 16px !important;
}
.login-card input{ height:46px !important; line-height:22px !important; }
.login-btn{ height:46px !important; flex-shrink:0; }
.login-trust{ flex-shrink:0; margin-top:14px !important; }
.login-hint{ flex-shrink:0; margin-top:10px !important; }
/* 小屏 / 矮屏（横屏、老机型、软键盘弹出）：进一步压缩，保证按钮可见可滚动 */
@media (max-height:680px){
  .login-screen{ padding-top:calc(16px + env(safe-area-inset-top)) !important; padding-bottom:calc(14px + env(safe-area-inset-bottom)) !important; }
  .login-logo{ width:64px !important; height:64px !important; margin-bottom:8px !important; }
  .login-title{ font-size:21px !important; }
  .login-sub{ margin-bottom:12px !important; }
  .login-card{ padding:14px 16px 12px !important; }
  .login-card input{ height:42px !important; margin-bottom:9px !important; }
  .login-error{ min-height:14px !important; padding-bottom:4px !important; }
  .login-trust{ margin-top:8px !important; }
  .login-hint{ margin-top:6px !important; font-size:10.5px !important; }
}
/* 极窄屏 */
@media (max-width:340px){
  .login-screen{ padding-left:16px !important; padding-right:16px !important; }
  .login-card{ padding:16px 14px !important; }
}

/* ===== iMessage 风格内联录音条（高仿视频设计，覆盖旧全屏浮层） ===== */
.record-overlay{
  position:absolute !important;
  left:0 !important; right:0 !important;
  bottom:0 !important; top:auto !important;
  inset:auto 0 0 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:stretch !important;
  padding:0 !important;
  background:transparent !important;
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
  z-index:41 !important;
}
.record-overlay.hidden{ display:none !important; }
.rec-inline{
  width:100%;
  display:flex; align-items:center; gap:10px;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(244,252,247,.9));
  -webkit-backdrop-filter:blur(26px) saturate(185%); backdrop-filter:blur(26px) saturate(185%);
  border-top:1px solid rgba(255,255,255,.96);
  border-radius:22px 22px 0 0;
  box-shadow:0 -12px 30px rgba(14,60,34,.1);
  box-sizing:border-box;
  animation:recInlineIn .18s ease;
}
@keyframes recInlineIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }
.rec-inline button{ border:0; cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.rec-del{
  width:38px; height:38px; border-radius:50%;
  color:#6E8577; background:rgba(120,132,126,.12);
}
.rec-del svg{ width:20px; height:20px; }
.rec-mid{
  flex:1; min-width:0; display:flex; align-items:center; gap:10px;
  height:40px; padding:0 14px; border-radius:20px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(24,66,42,.12);
  box-sizing:border-box;
}
.rec-time{ font-size:14px; font-weight:700; color:#1B4030; font-variant-numeric:tabular-nums; flex-shrink:0; min-width:34px; }
.rwave{ flex:1; display:flex; align-items:center; gap:2px; height:22px; overflow:hidden; }
.rwave i{
  display:block; flex:1; min-width:2px; max-width:4px; height:6px; border-radius:3px;
  background:linear-gradient(180deg,#57C08A,#2E9C6C);
  animation:recWave 1s ease-in-out infinite;
}
.rwave i:nth-child(3n){ animation-delay:.15s; }
.rwave i:nth-child(3n+1){ animation-delay:.3s; }
.rwave i:nth-child(4n){ animation-delay:.45s; }
@keyframes recWave{ 0%,100%{ height:5px; opacity:.65; } 50%{ height:20px; opacity:1; } }
.rec-pause{
  width:40px; height:40px; border-radius:50%;
  color:#D9483E; background:#fff;
  border:2px solid #D9483E !important;
}
.rec-pause svg{ width:18px; height:18px; }
.rec-pause.is-paused{ color:#2E9C6C; border-color:#2E9C6C !important; }
.record-limit .rec-time{ color:#B98A32; }
.rec-inline.rec-paused .rwave i{ animation-play-state:paused; height:5px; opacity:.5; }
.rec-send{
  width:42px; height:42px; border-radius:50%;
  color:#fff; background:linear-gradient(155deg,#F0665A,#D9483E);
  box-shadow:0 6px 16px rgba(217,72,62,.32);
}
.rec-send svg{ width:22px; height:22px; transform:translateX(-1px); }
/* stopped 态 */
.rec-inline-stopped .rec-time{ min-width:auto; }
.rec-preview{
  width:30px; height:30px; border-radius:50%;
  color:#2E9C6C; background:rgba(46,156,108,.12);
}
.rec-preview svg{ width:15px; height:15px; }
.rec-preview.previewing{ color:#fff; background:#2E9C6C; }
.rec-tap-tip{ font-size:11px; color:#93A79A; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.rec-retry{
  width:40px; height:40px; border-radius:50%;
  color:#2E9C6C; background:rgba(46,156,108,.12);
}
.rec-retry svg{ width:19px; height:19px; }
@media (prefers-reduced-motion:reduce){
  .rec-inline{ animation:none !important; }
  .rwave i{ animation:none !important; height:12px !important; }
}

/* 录音时 composer 只剩录音条：隐藏输入区其它子元素，录音条转为静态流占满 */
.composer.voice-recording > :not(#recordOverlay){ display:none !important; }
.composer.voice-recording{
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:0 !important;
  -webkit-backdrop-filter:none !important; backdrop-filter:none !important;
}
.composer.voice-recording #recordOverlay{
  position:static !important;
  display:block !important;
  width:100%;
  background:transparent !important;
}
.composer.voice-recording .rec-inline{
  border-radius:22px 22px 0 0 !important;
  box-shadow:0 -12px 30px rgba(14,60,34,.1) !important;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(244,252,247,.9)) !important;
}
