/* 首页顶部：只留三横线 + 放大镜两个图标，无搜索框、无标题黑条（轻量透明） */
.topbar{ position:fixed; top:0; left:0; right:0; z-index:30; background:transparent; padding:calc(2px + env(safe-area-inset-top)) 12px 0; }
.top-row{ display:flex; align-items:center; justify-content:space-between; margin-bottom:0; gap:6px; }
.menu-btn{ background:transparent; border:none; color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center; width:34px; height:34px; flex-shrink:0; }
.menu-btn svg{ width:24px; height:24px; }
.search-ico-btn{ color:var(--ink-soft); }
.search-ico-btn svg{ width:22px; height:22px; }
.top-actions{ display:flex; align-items:center; gap:10px; }
.tap-scan{ font-size:13px; color:var(--ink-soft); cursor:pointer; white-space:nowrap; letter-spacing:.5px; line-height:22px; display:flex; align-items:center; }
.tap-scan:hover{ color:var(--ink); }

/* tabs：透明融入背景，无黑底 */
.tabs{ display:flex; gap:22px; padding:2px 4px 2px; }
.tabs span{ font-size:var(--fs-md); color:var(--ink-dim); cursor:pointer; position:relative; padding:3px 0 3px; }
.tabs span.active{ color:var(--ink); font-weight:600; }
.tabs span.active::after{ content:''; position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:18px; height:3px; background:var(--jade); border-radius:2px; box-shadow:var(--glow); }
/* 首页顶栏：三条线缩小 + tabs 移至中间同排居中 */
.top-row .menu-btn[data-ico="menu"]{ width:28px; height:28px; }
.top-row .menu-btn[data-ico="menu"] svg{ width:18px; height:18px; }
.top-row .tabs{ flex:1; justify-content:center; align-items:center; gap:18px; padding:0; margin:0; }

#screen{ padding-top:calc(50px + env(safe-area-inset-top)); padding-bottom:calc(72px + env(safe-area-inset-bottom)); overflow-y:auto; -webkit-overflow-scrolling:touch; }
.page{ min-height:calc(100dvh - 160px); }
/* 充值支付方式选择器 */
.pay-methods{ display:flex; flex-direction:column; gap:8px; margin-top:6px }
.pay-m{ display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px solid rgba(255,255,255,.12); border-radius:12px; cursor:pointer; background:rgba(255,255,255,.04) }
.pay-m .pm-ico{ font-size:18px; line-height:1 }
.pay-m .pm-name{ flex:1; font-size:14px; color:var(--ink) }
.pay-m .pm-tip{ font-size:11px; color:#8f86b8 }
.pay-m.on{ border-color:#6d4ed6; background:rgba(47,158,110,.16) }
.pay-m.disabled{ opacity:.5; cursor:not-allowed }
/* 我页：容器顶部留安全区，封面绝对定位铺在 padding 之下，安卓 WebView 不再错位 */
#page-me{ position:relative; padding-top:env(safe-area-inset-top); }

/* 底部栏：纯文字四栏（实体背景，不用 backdrop-filter——微信 WebView 会因 blur 导致整条 0×0 不渲染） */
.bottombar{ position:fixed; bottom:0; left:0; right:0; height:calc(58px + env(safe-area-inset-bottom, 0px)); padding-bottom:env(safe-area-inset-bottom, 0px); display:flex; align-items:center; justify-content:space-around; background:#0d0a1a; border-top:1px solid rgba(255,255,255,0.08); z-index:30; }
/* 兜底：防止任何 WebView 把底栏压在内容之下或推出屏幕 */
.bottombar{ z-index:9990 !important; }
@supports not (bottom:env(safe-area-inset-bottom)) { .bottombar{ padding-bottom:0; } }


/* 底部导航 5 项：等权均分，中间红色圆角 + 发布按钮 */
.bottombar{ justify-content:space-evenly; }
.nav-item{ flex:1 1 0; min-width:0; }
.nav-publish{ flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; padding:0; }
.nav-pub-btn{ width:46px; height:34px; border-radius:11px; background:#ff2442; display:flex; align-items:center; justify-content:center; box-shadow:0 4px 12px rgba(255,36,66,.35); transition:transform .15s; }
.nav-pub-btn:active{ transform:scale(0.92); }
.nav-pub-btn svg{ width:22px; height:22px; }

/* 发布动作面板 */
#publish-panel.settings-panel{ align-items:flex-end; padding:0; background:rgba(0,0,0,.45); }
.publish-sheet{ width:100%; background:var(--bg-deep,#0d0a1a); border-radius:var(--r-lg) var(--r-lg) 0 0; padding:18px 18px calc(24px + env(safe-area-inset-bottom)); animation:slideUp .25s ease; max-height:88vh; overflow-y:auto; -webkit-overflow-scrolling:touch; }
.publish-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.publish-head .title{ font-family:var(--font-title); font-size:16px; color:var(--ink); }
.publish-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:18px; }
.publish-item{ display:flex; flex-direction:column; align-items:center; gap:8px; font-size:12px; color:var(--ink-soft); cursor:pointer; }
.publish-item:active{ opacity:.8; }
.publish-ico{ width:54px; height:54px; border-radius:16px; display:flex; align-items:center; justify-content:center; }
.publish-ico svg{ width:26px; height:26px; }
.publish-more{ text-align:center; padding:14px; font-size:14px; color:var(--jade); border-top:1px solid rgba(255,255,255,.08); cursor:pointer; }

/* ==== 首页笔记流（小红书双列 + 抖音式右侧互动浮控） ==== */
.notes{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; padding:10px 12px; }
.note{ position:relative; background:var(--bg-card); border:1px solid rgba(255,255,255,.06); border-radius:var(--r-md); overflow:hidden; margin:0; }
.note-cover{ width:100%; position:relative; color:#fff; text-shadow:0 2px 10px rgba(0,0,0,.45); }
.note-title{ font-size:13px; color:var(--ink); line-height:1.45; padding:8px 10px 2px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.note-foot{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:4px 10px 10px; min-width:0; }
.note-foot .author{ display:flex; align-items:center; gap:6px; min-width:0; flex:1; }
.note-foot .av{ width:22px; height:22px; border-radius:50%; background:linear-gradient(135deg,var(--jade-deep),var(--mist)); color:#fff; font-size:12px; font-weight:700; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.note-foot .nm{ font-size:12px; color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.note-foot .acts{ font-size:12px; color:var(--mist); flex-shrink:0; white-space:nowrap; }
.pill{ display:inline-flex; align-items:center; padding:1px 7px; border-radius:999px; font-size:10px; background:rgba(124,92,255,.18); color:var(--mist); border:1px solid rgba(124,92,255,.3); }
.pill.demo{ background:rgba(240,198,116,.14); color:var(--gold); border-color:rgba(240,198,116,.35); }
/* 抖音式右侧互动浮控：头像圆圈/小红星收藏/评论/点赞/转发 */
.note-rail{ position:absolute; right:7px; bottom:7px; display:flex; flex-direction:column; align-items:center; gap:13px; z-index:5; }
.note-rail .ra{ display:flex; flex-direction:column; align-items:center; gap:2px; background:none; border:none; padding:0; cursor:pointer; color:#fff; font-size:10.5px; text-shadow:0 1px 4px rgba(0,0,0,.6); font-family:var(--font-body); }
.note-rail .ra svg{ width:25px; height:25px; filter:drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
.note-rail .ra.on{ color:#ff4d6d; }
.note-rail .ra.on svg{ filter:drop-shadow(0 0 6px rgba(255,77,109,.65)); }
.note-rail .ra.star.on{ color:#ffd43b; }
.note-rail .ra.star.on svg{ filter:drop-shadow(0 0 6px rgba(255,212,59,.65)); }
.note-rail .rav{ width:42px; height:42px; border-radius:50%; border:2px solid rgba(255,255,255,.92); background:linear-gradient(135deg,var(--jade),var(--mist)); display:flex; align-items:center; justify-content:center; color:#fff; font-weight:800; font-size:17px; box-shadow:0 2px 8px rgba(0,0,0,.45); }
/* 首页频道 tabs（feed 内） */
.feed-tabs{ display:flex; gap:22px; padding:10px 14px 4px; }
.feed-tabs .ft{ font-size:15px; color:var(--ink-dim); cursor:pointer; position:relative; padding:3px 0; }
.feed-tabs .ft.on{ color:var(--ink); font-weight:700; }
.feed-tabs .ft.on::after{ content:''; position:absolute; left:50%; bottom:-2px; transform:translateX(-50%); width:18px; height:3px; background:var(--jade); border-radius:2px; }
/* 通用空态与区块标题 */
.zeus-empty{ text-align:center; color:var(--ink-dim); font-size:13px; line-height:1.8; padding:26px 16px; }
.zeus-empty .big{ display:block; font-size:34px; margin-bottom:8px; }
.zeus-sec-title{ font-size:15px; font-weight:700; color:var(--ink); padding:12px 14px 4px; }

/* 兜底：确保所有带 hidden 的浮层/面板必定隐藏（双保险，防止 theme.css 未加载时遮罩层盖住 bottombar/topbar） */
.hidden{ display:none !important; }
.nav-item{ display:flex; align-items:center; justify-content:center; color:var(--ink-dim); font-size:var(--fs-md); cursor:pointer; padding:6px 0; }
.nav-item.active{ color:var(--jade); font-weight:600; }
.nav-item.active{ filter:drop-shadow(0 0 6px rgba(160,150,210,0.35)); }

/* 双列错落宫格 feed（瀑布流） */
.feed-grid{ column-count:2; column-gap:12px; padding:12px; }
.feed-card{ break-inside:avoid; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); overflow:hidden; margin-bottom:12px; cursor:pointer; transition:transform .18s ease, box-shadow .18s ease; box-shadow:0 4px 18px rgba(0,0,0,0.25); }
.feed-card:active{ transform:scale(0.98); }
.feed-thumb{ position:relative; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.feed-thumb .thumb-sym{ font-size:40px; filter:drop-shadow(0 2px 6px rgba(0,0,0,0.4)); z-index:2; }
.feed-thumb .thumb-glow{ position:absolute; inset:0; background:radial-gradient(circle at 30% 20%, rgba(255,255,255,0.16), transparent 60%); }
.feed-card-body{ padding:10px 12px 12px; }
.feed-title{ font-family:var(--font-title); font-size:var(--fs-md); line-height:1.4; margin-bottom:6px; color:var(--ink); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.feed-desc{ color:var(--ink-soft); font-size:var(--fs-xs); line-height:1.5; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.feed-card-foot{ display:flex; align-items:center; justify-content:space-between; }
.feed-author{ color:var(--mist); font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:62%; }
.feed-like{ display:inline-flex; align-items:center; gap:3px; color:var(--jade-soft); font-size:11px; }
.feed-card-tags{ margin-top:8px; display:flex; gap:6px; flex-wrap:wrap; }
.feed-card-tags .tag{ font-size:10px; padding:2px 8px; border-radius:999px; background:rgba(160,150,210,0.14); color:var(--jade-soft); }

/* 功能宫格 */
.grid-panel,.module-panel{ position:fixed; inset:0; z-index:40; background:rgba(0,0,0,0.55); display:flex; align-items:flex-end; padding-bottom:calc(58px + env(safe-area-inset-bottom, 0px)); }
.module-panel{ align-items:flex-end; z-index:9995; } /* 高于 bottombar(9990) 确保作品详情等全屏层盖住底部菜单；低于 auth-page(9999) */
.grid-inner{ width:100%; border-radius:var(--r-lg) var(--r-lg) 0 0; padding:18px 18px 36px; animation:slideUp .25s ease; max-height:82vh; overflow-y:auto; -webkit-overflow-scrolling:touch; }
@keyframes slideUp{ from{ transform:translateY(100%);} to{ transform:translateY(0);} }
.grid-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; padding:0 2px; }
.grid-head .title{ font-family:var(--font-title); font-size:15px; color:var(--ink); }
.grid-head button{ background:transparent; border:none; color:var(--ink-soft); font-size:14px; cursor:pointer; width:30px; height:30px; display:flex; align-items:center; justify-content:center; }
.grid-scroll{ max-height:64vh; overflow-y:auto; padding-bottom:12px; }
.grid-section-title{ font-size:11px; color:var(--ink-dim); margin:14px 4px 6px; letter-spacing:.5px; }
.grid-section-title:first-child{ margin-top:0; }
.grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.grid-item-add{ border:1px dashed rgba(160,150,210,0.5); }
.grid-item{ background:var(--bg-glass); border:1px solid rgba(255,255,255,0.1); border-radius:var(--r-md); padding:12px 6px; text-align:center; font-size:12px; cursor:pointer; color:var(--ink-soft); transition:transform .15s, border-color .15s; }
.grid-item:hover{ border-color:var(--jade); }
.grid-item svg{ display:block; width:24px; height:24px; margin:0 auto 6px; color:var(--jade); }

/* 模块浮层内容（底部抽屉感：圆角顶部 + 最大高度 + 上滑） */
.module-panel .sheet{ width:100%; max-height:86vh; display:flex; flex-direction:column; background:var(--bg-mid); border-radius:18px 18px 0 0; overflow:hidden; animation:slideUp .25s ease; }
.module-panel .sheet .sheet-body{ flex:1; overflow-y:auto; padding-bottom:28px; }
/* 商城/太店：整页模式（覆盖半屏底浮层，使商品页整页展示、可正常滚动） */
.module-panel.fullpage{ align-items:stretch; padding-bottom:0; background:rgba(0,0,0,0.96); }
.module-panel.fullpage .sheet{ width:100%; max-height:100vh; height:100vh; border-radius:0; animation:none; }
.module-panel.fullpage .sheet-body{ padding:0; }
@keyframes fadeIn{ from{opacity:0;} to{opacity:1;} }
.sheet-head{ position:sticky; top:0; display:flex; align-items:center; gap:12px; padding:16px; background:rgba(20,15,44,0.9); backdrop-filter:blur(10px); z-index:5; border-bottom:1px solid rgba(255,255,255,0.06); }
.sheet-head .title{ font-size:var(--fs-lg); }
.sheet-head button{ margin-left:auto; background:transparent; border:none; color:var(--ink-soft); font-size:22px; cursor:pointer; }
.sheet-body{ padding:16px; }

/* 抖音式切换账号列表 */
.acc-section{ display:flex; flex-direction:column; gap:8px; }
.acc-item{ display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:var(--r-md); background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); cursor:pointer; transition:border-color .15s, background .15s; }
.acc-item:hover{ border-color:var(--jade); }
.acc-item.on{ border-color:var(--jade); background:rgba(124,92,255,0.12); }
.acc-avatar{ width:42px; height:42px; border-radius:50%; background:linear-gradient(120deg,var(--jade-deep),var(--mist)); color:#fff; display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; }
.acc-info{ flex:1; }
.acc-name{ font-size:15px; color:var(--ink); }
.acc-cur{ font-size:11px; color:var(--jade); margin-left:6px; }
.acc-phone{ font-size:12px; color:var(--ink-dim); margin-top:2px; }
.acc-check{ color:var(--jade); font-size:18px; }
.btn.danger{ color:#ff8a8a; border-color:rgba(255,138,138,0.4); }

/* 通用列表/卡片 */
.list-row{ display:flex; align-items:center; gap:12px; padding:14px; border-bottom:1px solid rgba(255,255,255,0.06); }
.avatar{ width:48px; height:48px; border-radius:50%; background:linear-gradient(120deg,var(--jade-deep),var(--mist)); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.member-card{ background:var(--bg-glass); border:1px solid rgba(255,255,255,0.1); border-radius:var(--r-md); padding:14px; margin-bottom:10px; }
.status-dot{ width:10px; height:10px; border-radius:50%; display:inline-block; background:var(--jade); box-shadow:var(--glow); }
.week-row{ background:var(--bg-card); border-radius:var(--r-sm); padding:12px; margin-bottom:8px; }
.week-row b{ color:var(--gold); }
.field{ width:100%; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.12); color:var(--ink); border-radius:var(--r-sm); padding:12px; font-size:var(--fs-md); margin:8px 0; font-family:var(--font-body); }
.level-pill{ display:inline-block; padding:4px 12px; border-radius:999px; background:linear-gradient(120deg,var(--jade),var(--mist)); color:var(--bg-deep); font-weight:600; font-size:var(--fs-sm); }
.doctor-card,.herb-card{ background:var(--bg-card); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:14px; margin-bottom:10px; }
.toast{ position:fixed; bottom:80px; left:50%; transform:translateX(-50%); background:rgba(0,0,0,0.8); color:#fff; padding:10px 18px; border-radius:999px; font-size:var(--fs-sm); z-index:9997; }

/* 成员全面健康详情 */
.member-click{ cursor:pointer; transition:transform .12s, box-shadow .12s; }
.member-click:active{ transform:scale(0.99); }
.member-click:hover{ box-shadow:var(--glow); }
.vitals-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.vital{ background:var(--bg-card); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-sm); padding:10px 12px; display:flex; flex-direction:column; gap:2px; }
.vital b{ font-size:var(--fs-md); color:var(--ink); }
.risk-tags{ display:flex; flex-wrap:wrap; gap:8px; }
.risk-tag{ background:rgba(220,120,90,0.18); border:1px solid rgba(220,120,90,0.4); color:#f0b89a; border-radius:999px; padding:5px 12px; font-size:var(--fs-sm); }
.plan-box{ display:flex; flex-direction:column; gap:10px; }
.plan-box > div{ display:flex; justify-content:space-between; align-items:center; background:var(--bg-card); border-radius:var(--r-sm); padding:10px 12px; }
.plan-box .dim{ min-width:48px; }
.plan-box b{ font-weight:500; text-align:right; }
.trend-row{ display:flex; align-items:flex-end; gap:8px; height:80px; padding:6px 2px; }
.trend-bar{ flex:1; background:linear-gradient(180deg,var(--jade),var(--mist)); border-radius:4px 4px 0 0; min-height:20%; }

/* ===== 响应式字号标准（按屏幕宽度自适应） ===== */
:root{
  /* 基础字号随屏幕宽度在 14~18px 间浮动，保证不同手机都清晰 */
  --fs-xs: clamp(11px, 2.6vw, 13px);
  --fs-sm: clamp(13px, 3.1vw, 15px);
  --fs-md: clamp(15px, 3.6vw, 18px);
  --fs-lg: clamp(17px, 4.2vw, 21px);
  --fs-xl: clamp(20px, 5.2vw, 26px);
}
@media (min-width:768px){ :root{ --fs-xs:13px; --fs-sm:15px; --fs-md:17px; --fs-lg:20px; --fs-xl:24px; } }

/* ===== 大画面沉浸详情页 ===== */
.detail-view{ position:fixed; inset:0; background:#0d0a1a; z-index:80; display:flex; animation:fadeIn .2s ease; }
.detail-bg{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; }
.detail-sym{ font-size:clamp(80px,26vw,160px); opacity:.92; filter:drop-shadow(0 6px 30px rgba(122,184,158,.4)); }
.detail-rail{ position:absolute; right:14px; bottom:120px; display:flex; flex-direction:column; gap:20px; z-index:90; align-items:center; }
.rail-avatar{ width:46px; height:46px; border-radius:50%; background:linear-gradient(135deg,var(--jade),var(--mist)); color:var(--bg-deep); display:flex; align-items:center; justify-content:center; font-family:var(--font-title); font-size:var(--fs-lg); font-weight:700; box-shadow:var(--glow); border:2px solid rgba(255,255,255,.5); }
.rail-btn{ background:rgba(10,20,18,.45); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.18); color:#fff; border-radius:50%; width:50px; height:50px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:1px; cursor:pointer; transition:transform .12s, background .2s; }
.rail-btn:active{ transform:scale(.9); background:rgba(220,90,90,.35); }
.rail-btn svg{ color:#ffd9d9; }
.rail-num{ font-size:11px; color:#f3e9e9; }
.detail-bar{ position:absolute; left:0; right:0; bottom:0; padding:16px 18px calc(26px + env(safe-area-inset-bottom, 0px)); background:linear-gradient(0deg, rgba(6,15,13,.92), rgba(6,15,13,0)); z-index:85; }
.detail-close{ position:absolute; top:16px; left:16px; z-index:86; width:38px; height:38px; border-radius:50%; background:rgba(0,0,0,.4); border:1px solid rgba(255,255,255,.2); color:#fff; font-size:18px; cursor:pointer; }
.detail-title{ font-family:var(--font-title); font-size:var(--fs-lg); margin-bottom:4px; }
.detail-author{ color:var(--jade); font-size:var(--fs-sm); margin-bottom:8px; }
.detail-desc{ color:var(--ink-soft); font-size:var(--fs-sm); line-height:1.7; max-height:88px; overflow:hidden; }
.detail-tags{ margin-top:10px; display:flex; gap:8px; flex-wrap:wrap; }
@keyframes fadeIn{ from{opacity:0} to{opacity:1} }

/* 详情页右上角返回键 */
.detail-back{ position:absolute; top:14px; left:14px; z-index:86; width:42px; height:42px; border-radius:50%; background:rgba(0,0,0,.55); border:1px solid rgba(255,255,255,.35); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; backdrop-filter:blur(4px); box-shadow:0 2px 8px rgba(0,0,0,.3); }
.detail-back:active{ transform:scale(.9); background:rgba(0,0,0,.7); }

/* 设置浮层 */
.settings-panel{ position:fixed; inset:0; z-index:70; background:rgba(0,0,0,0.5); display:flex; align-items:flex-end; padding-bottom:calc(12px + env(safe-area-inset-bottom)); }
.settings-sheet{ width:100%; border-radius:18px 18px 0 0; padding:16px 18px 42px; animation:slideUp .25s ease; max-height:76vh; overflow-y:auto; -webkit-overflow-scrolling:touch; background:linear-gradient(180deg,rgba(20,15,44,0.96),rgba(13,10,26,0.98)) !important; border:1px solid rgba(167,139,250,0.18); }
.settings-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.settings-head .title{ font-family:var(--font-title); font-size:var(--fs-lg); }
.settings-head-right{ display:flex; align-items:center; gap:14px; }
.settings-scan{ background:transparent; border:none; color:var(--ink-soft); cursor:pointer; display:flex; align-items:center; gap:4px; padding:4px; }
.settings-scan span{ display:flex; align-items:center; color:var(--jade); }
.settings-scan span svg{ width:20px; height:20px; }
.settings-scan em{ font-style:normal; font-size:var(--fs-sm); }
/* 微信授权一键登录按钮 */
.wx-login-btn{ width:100%; margin:4px 0 10px; display:flex; align-items:center; justify-content:center; gap:10px; background:#07c160; color:#fff; border:none; border-radius:12px; padding:14px; font-size:var(--fs-md); font-family:var(--font-body); font-weight:600; cursor:pointer; box-shadow:0 6px 18px rgba(7,193,96,0.28); }
.wx-login-btn:active{ transform:translateY(1px); }
.wx-login-btn .wx-logo{ display:flex; align-items:center; }
.wx-login-btn .wx-logo svg{ width:22px; height:22px; color:#fff; }
.settings-close{ background:transparent; border:none; color:var(--ink-soft); font-size:22px; cursor:pointer; }
.set-row{ display:flex; align-items:center; gap:12px; padding:14px 6px; border-bottom:1px solid rgba(255,255,255,0.06); cursor:pointer; color:var(--ink-soft); font-size:var(--fs-md); }
.set-row > span[data-ico]{ color:var(--jade); display:flex; }
.set-row > span[data-ico] svg{ width:22px; height:22px; }
.set-row > div{ flex:1; }
.set-arrow{ color:var(--ink-dim); display:flex; }
.set-arrow svg{ width:18px; height:18px; }
.settings-foot{ text-align:center; color:var(--ink-dim); font-size:var(--fs-xs); margin-top:16px; letter-spacing:.5px; }

/* ===== 设置三级子面板 / 偏好 ===== */
.set-desc{ color:var(--ink-dim); font-size:var(--fs-xs); line-height:1.6; margin-top:4px; }
.set-row > div:first-child{ flex:1; }
.set-row label.switch{ flex-shrink:0; }
.row-block{ padding:14px 6px; border-bottom:1px solid rgba(255,255,255,0.06); font-size:var(--fs-md); color:var(--ink-soft); }
.row-block b{ color:var(--ink); display:block; margin-bottom:6px; font-weight:600; }
.row-block .btn{ margin-top:6px; }
.c-up{ color:#ff5a5f; }
.c-down{ color:#7c5cff; }
.gen-select{ background:var(--bg-glass); border:1px solid rgba(255,255,255,0.12); color:var(--ink); border-radius:var(--r-sm); padding:6px 10px; font-size:var(--fs-sm); }
/* 壁纸/背景选择网格 */
.wp-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding:12px 4px; }
.wp-card{ text-align:center; cursor:pointer; }
.wp-thumb{ height:64px; border-radius:10px; border:2px solid transparent; }
.wp-card.active .wp-thumb{ border-color:var(--jade); }
.wp-name{ font-size:11px; color:var(--ink-soft); margin-top:5px; }
/* 钱包卡片 */
.wallet-card{ background:linear-gradient(135deg,#7a1f24,#b5464d); border-radius:16px; padding:20px; color:#fff; text-align:center; margin-bottom:14px; }
.wallet-card .wc-bal{ font-size:30px; font-weight:700; font-family:var(--font-title); }
.wallet-card .wc-row{ display:flex; justify-content:space-around; margin-top:8px; font-size:13px; opacity:.92; }
/* FAQ */
.faq-list{ margin:8px 0; }
.faq-q{ padding:10px 6px; border-bottom:1px solid rgba(255,255,255,0.06); color:var(--ink-soft); font-size:var(--fs-sm); cursor:pointer; }
.faq-q:active{ color:var(--jade); }

/* 长辈模式：增强对比与可读性 */
:root.elder-mode{ --ink:#f5f5ee; --ink-soft:#e8e8df; --bg-card:rgba(38,30,60,0.96); --bg-glass:rgba(46,38,70,0.9); }

/* 浅色主题（背景设置里的默认仙境为深，这里提供浅色切换） */
:root.theme-light{ --ink:#1a1438; --ink-soft:#3a3448; --ink-dim:#8a86a3; --bg-card:rgba(255,255,255,0.96); --bg-glass:rgba(245,247,242,0.9); --line:rgba(0,0,0,0.1); }
:root.theme-light .settings-sheet, :root.theme-light .glass{ background:rgba(255,255,255,0.92) !important; color:var(--ink); }
:root.theme-light .topbar{ background:rgba(255,255,255,0.88); }

/* 相关搜索结果卡片 */
.news-card{ background:var(--bg-card); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:14px; margin-bottom:10px; cursor:pointer; }
.news-card:active{ transform:scale(.99); }
.news-title{ font-family:var(--font-title); font-size:var(--fs-md); color:var(--ink); margin-bottom:6px; line-height:1.4; }
.news-src{ color:var(--mist); font-size:var(--fs-xs); margin-bottom:6px; }
.news-desc{ color:var(--ink-soft); font-size:var(--fs-sm); line-height:1.6; }

/* ===== 我页 ===== */
.me-head{ position:relative; z-index:3; display:flex; align-items:center; justify-content:space-between; padding:6px 2px 12px; }
/* 我页封面背景（编辑主页上传的封面图） */
.me-cover{ position:absolute; top:0; left:0; right:0; z-index:0; height:238px; border-radius:0 0 18px 18px; background:linear-gradient(135deg,var(--jade-deep),var(--mist)); background-size:cover; background-position:center; overflow:hidden; }
.me-cover-mask{ position:absolute; inset:0; background:linear-gradient(180deg, rgba(13,10,26,.15), rgba(13,10,26,.72)); }
.me-profile{ position:relative; z-index:4; display:flex; align-items:center; gap:14px; padding:14px 2px 16px; }
.me-menu{ background:transparent; border:none; color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center; width:34px; height:34px; }
.me-menu svg{ width:24px; height:24px; }
/* 添加好友：纯图标+文字，无框，置于左上角 */
.me-addfriend{ background:transparent; border:none; color:var(--ink); cursor:pointer; display:flex; align-items:center; gap:5px; padding:6px 4px; font-style:normal; }
.me-addfriend span{ color:var(--jade); display:flex; align-items:center; }
.me-addfriend span svg{ width:22px; height:22px; }
.me-addfriend em{ font-style:normal; font-size:var(--fs-sm); color:var(--ink-soft); }

/* ===== 好友页 ===== */
.fr-head{ display:flex; align-items:center; justify-content:space-between; padding:4px 2px 12px; }
.fr-title{ font-family:var(--font-title); font-size:var(--fs-xl); letter-spacing:2px; }
.fr-add{ background:transparent; border:none; color:var(--ink-soft); cursor:pointer; display:flex; align-items:center; gap:4px; font-style:normal; }
.fr-add span{ color:var(--jade); display:flex; align-items:center; }
.fr-add span svg{ width:20px; height:20px; }
.fr-add em{ font-style:normal; font-size:var(--fs-sm); }
.fr-search{ display:flex; align-items:center; gap:8px; padding:10px 14px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); border-radius:999px; margin-bottom:12px; }
.fr-search span{ color:var(--ink-soft); display:flex; }
.fr-search span svg{ width:18px; height:18px; }
.fr-search input{ flex:1; background:transparent; border:none; outline:none; color:var(--ink); font-size:var(--fs-sm); font-family:var(--font-body); }
.fr-search input::placeholder{ color:rgba(200,195,225,0.55); }
.fr-filter{ display:flex; gap:18px; padding:6px 2px 12px; border-bottom:1px solid rgba(255,255,255,0.06); margin-bottom:8px; }
.fr-filter span{ font-size:var(--fs-sm); color:var(--ink-dim); cursor:pointer; padding-bottom:4px; }
.fr-filter span.active{ color:var(--jade); font-weight:600; border-bottom:2px solid var(--jade); }
.fr-list{ display:flex; flex-direction:column; }
.fr-row{ display:flex; align-items:center; gap:12px; padding:12px 4px; border-bottom:1px solid rgba(255,255,255,0.05); cursor:pointer; }
.fr-avatar{ width:48px; height:48px; border-radius:50%; background:linear-gradient(135deg,var(--jade-deep),var(--mist)); display:flex; align-items:center; justify-content:center; font-size:24px; flex-shrink:0; box-shadow:var(--glow); }
.fr-main{ flex:1; min-width:0; }
.fr-name{ font-size:var(--fs-md); color:var(--ink); }
.fr-rel{ font-size:11px; color:var(--jade); background:rgba(124,92,255,0.12); border:1px solid rgba(124,92,255,0.25); border-radius:999px; padding:1px 7px; margin-left:6px; }
.fr-sign{ font-size:var(--fs-xs); color:var(--ink-dim); margin-top:3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fr-act{ background:rgba(124,92,255,0.12); border:1px solid rgba(124,92,255,0.3); color:var(--jade); border-radius:999px; padding:6px 14px; font-size:var(--fs-xs); cursor:pointer; font-family:var(--font-body); flex-shrink:0; }
.fr-act:active{ transform:scale(.96); }

.me-avatar{ position:relative; width:64px; height:64px; border-radius:50%; background:linear-gradient(135deg,var(--jade-deep),var(--mist)); display:flex; align-items:center; justify-content:center; font-size:30px; flex-shrink:0; box-shadow:var(--glow); border:2px solid rgba(255,255,255,.35); cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.me-avatar-emoji{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; border-radius:50%; overflow:hidden; background-size:cover; background-position:center; }
.me-avatar-plus{ position:absolute; right:-2px; bottom:-2px; width:22px; height:22px; border-radius:50%; background:var(--jade); color:#0d0a1a; font-size:16px; font-weight:700; line-height:22px; text-align:center; border:2px solid #0d0a1a; box-shadow:0 1px 4px rgba(0,0,0,.4); }
.me-name{ font-family:var(--font-title); font-size:var(--fs-lg); color:var(--ink); display:flex; align-items:center; gap:8px; }
.me-v{ font-size:11px; font-weight:600; color:var(--bg-deep); background:linear-gradient(120deg,var(--gold),#e8c479); border-radius:999px; padding:2px 8px; box-shadow:0 0 8px rgba(232,196,121,.5); }
/* 「认证」标识（企业认证通过）：红底白字横长方体，放在企业名称后面；个人用户不显示 */
.me-v-badge{ display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; vertical-align:middle; flex-shrink:0; }
.me-v-badge svg{ width:100%; height:100%; display:block; }
.me-id{ color:var(--ink-soft); font-size:var(--fs-sm); margin-top:3px; }
.me-company{ color:var(--mist); font-size:var(--fs-xs); margin-top:4px; display:flex; align-items:center; gap:6px; }
.me-v-sm{ display:inline-flex; align-items:center; height:18px; padding:0 8px; font-size:10px; font-weight:600; color:#fff; background:linear-gradient(90deg,#f05245,#e53935); border-radius:4px; margin-left:4px; letter-spacing:.5px; white-space:nowrap; box-shadow:0 2px 6px rgba(229,57,53,.3); }

.me-stats{ position:relative; z-index:2; display:flex; justify-content:space-around; text-align:center; padding:12px 10px; margin:0; background:var(--bg-deep,#0d0a1a); border-top:1px solid rgba(255,255,255,0.06); border-bottom:1px solid rgba(255,255,255,0.06); }
.me-stat{ cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.me-stat b{ display:block; font-size:var(--fs-lg); color:var(--ink); }
/* 数据栏标签统一字号：比数字(--fs-lg)小一档，但比正文小字明显大一点 */
.me-stat span{ font-size:clamp(12px, 2.9vw, 14px); color:var(--ink-soft); }
.me-stat-like{ font-size:clamp(12px, 2.9vw, 14px) !important; color:var(--ink-soft) !important; }

.me-edit{ width:100%; margin:14px 0; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); color:var(--ink); border-radius:var(--r-sm); padding:10px; font-size:var(--fs-md); cursor:pointer; font-family:var(--font-body); }

.me-login-tip{ margin-top:10px; font-size:12px; color:var(--ink-dim); cursor:pointer; }
.me-login-tip span{ color:var(--jade); font-weight:600; }

.me-contact{ background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:4px 14px; margin-bottom:14px; }
.me-line{ display:flex; gap:12px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.05); font-size:var(--fs-sm); cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.me-line > div{ flex:1; color:var(--ink-soft); line-height:1.6; word-break:break-all; }
.me-line:last-child{ border-bottom:none; }
.me-line > span{ color:var(--ink-dim); width:64px; flex-shrink:0; }
.me-link{ color:var(--jade); cursor:pointer; }

.me-tools{ display:grid; grid-template-columns:repeat(5,1fr); gap:10px; margin-bottom:16px; }
.me-tool{ text-align:center; cursor:pointer; color:var(--ink-soft); touch-action:manipulation; -webkit-tap-highlight-color:transparent; transition:transform .1s ease; }
.me-tool:active{ transform:scale(0.93); }
.me-tool span{ display:flex; align-items:center; justify-content:center; width:46px; height:46px; margin:0 auto 6px; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.1); border-radius:14px; color:var(--jade); }
.me-tool span svg{ width:24px; height:24px; }
.me-tool div{ font-size:11px; }
.me-health-sub{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:-8px 0 16px; padding:12px; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); }
.me-health-item{ text-align:center; cursor:pointer; color:var(--ink-soft); touch-action:manipulation; -webkit-tap-highlight-color:transparent; transition:transform .1s ease; }
.me-health-item:active{ transform:scale(0.93); }
.me-health-item span{ display:flex; align-items:center; justify-content:center; width:42px; height:42px; margin:0 auto 6px; background:rgba(167,139,250,0.1); border:1px solid rgba(167,139,250,0.25); border-radius:13px; color:var(--jade); }
.me-health-item span svg{ width:22px; height:22px; }
.me-health-item div{ font-size:11px; }

.me-tabs{ display:flex; gap:20px; border-bottom:1px solid rgba(255,255,255,0.08); margin-bottom:12px; overflow-x:auto; }
.me-tabs span{ font-size:var(--fs-md); color:var(--ink-dim); padding:8px 0; cursor:pointer; position:relative; white-space:nowrap; touch-action:manipulation; -webkit-tap-highlight-color:transparent; }
.me-tabs span.active{ color:var(--ink); font-weight:600; }
.me-tabs span.active::after{ content:''; position:absolute; left:0; right:0; bottom:-1px; height:3px; background:var(--jade); border-radius:2px; }

.me-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding-bottom:20px; }
.me-cell{ min-width:0; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent; transition:transform .1s ease; }
.me-cell:active{ transform:scale(0.96); }
.me-cell-thumb{ width:100%; aspect-ratio:1/1; border-radius:var(--r-sm); display:flex; align-items:center; justify-content:center; font-size:28px; box-shadow:0 3px 12px rgba(0,0,0,.25); overflow:hidden; }
.me-cell-thumb img{ width:100%; height:100%; object-fit:cover; display:block; border-radius:var(--r-sm); }
.me-cell-title{ font-size:11px; color:var(--ink-soft); margin-top:5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ===== 消息页 ===== */
.msg-head{ display:flex; align-items:center; justify-content:space-between; padding:4px 2px 12px; }
.msg-title{ font-family:var(--font-title); font-size:var(--fs-xl); color:var(--ink); }
.msg-stat{ display:flex; justify-content:space-around; text-align:center; padding:14px 0; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); margin-bottom:12px; }
.msg-stat-item b{ display:block; font-size:var(--fs-lg); color:var(--jade); }
.msg-stat-item span{ font-size:var(--fs-xs); color:var(--ink-dim); }
.msg-filter{ display:flex; gap:10px; margin-bottom:12px; }
.msg-filter span{ font-size:var(--fs-sm); color:var(--ink-dim); padding:6px 14px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.1); border-radius:999px; cursor:pointer; }
.msg-filter span.active{ color:var(--bg-deep); background:linear-gradient(120deg,var(--jade),var(--mist)); border-color:transparent; font-weight:600; }
.msg-list{ display:flex; flex-direction:column; gap:8px; padding-bottom:20px; }
.msg-row{ display:flex; align-items:center; gap:12px; padding:12px; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); cursor:pointer; }
.msg-avatar{ width:46px; height:46px; border-radius:50%; background:linear-gradient(135deg,var(--jade-deep),var(--mist)); display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.msg-main{ flex:1; min-width:0; }
.msg-name{ font-size:var(--fs-md); color:var(--ink); margin-bottom:3px; }
.msg-last{ font-size:var(--fs-xs); color:var(--ink-dim); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msg-badge{ min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#e0584e; color:#fff; font-size:11px; font-weight:600; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.msg-badge.ghost{ background:transparent; }

/* 搜索浮层按钮（点放大镜弹出的搜索） */
.news-search-form .search-go{ background:linear-gradient(120deg,var(--jade),var(--mist)); color:var(--bg-deep); border:none; border-radius:var(--r-sm); font-size:var(--fs-md); font-weight:600; padding:12px; cursor:pointer; }

/* ===== 通用设置（参照抖音） ===== */
.settings-back{ background:transparent; border:none; color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center; width:30px; height:30px; }
.settings-back svg{ width:22px; height:22px; }
.gen-group{ font-size:var(--fs-sm); color:var(--ink-dim); margin:14px 4px 6px; letter-spacing:.5px; }
.gen-select{ background:rgba(255,255,255,0.08); color:var(--ink); border:1px solid rgba(255,255,255,0.12); border-radius:var(--r-sm); font-size:var(--fs-sm); padding:5px 8px; font-family:var(--font-body); }
.gen-range{ width:120px; accent-color:var(--jade); }
.switch{ position:relative; display:inline-block; width:42px; height:24px; flex-shrink:0; }
.switch input{ display:none; }
.switch .slider{ position:absolute; inset:0; background:rgba(255,255,255,0.18); border-radius:999px; transition:.2s; }
.switch .slider::before{ content:''; position:absolute; left:3px; top:3px; width:18px; height:18px; background:#fff; border-radius:50%; transition:.2s; }
.switch input:checked + .slider{ background:var(--jade); }
.switch input:checked + .slider::before{ transform:translateX(18px); }

/* ===== 一级菜单（侧滑抽屉，按图1） ===== */
#menu-panel{ align-items:stretch !important; background:rgba(0,0,0,0.55) !important; }
.menu-sheet{ width:100%; max-height:86vh; margin-bottom:calc(58px + env(safe-area-inset-bottom, 0px)); background:linear-gradient(180deg,rgba(20,15,44,0.98),rgba(13,10,26,0.99)) !important; padding:18px 14px 38px; overflow-y:auto; -webkit-overflow-scrolling:touch; animation:slideUp .25s ease; border-radius:18px 18px 0 0; border-top:1px solid rgba(167,139,250,0.2); box-shadow:0 -8px 30px rgba(0,0,0,0.4); }
.menu-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; position:sticky; top:0; background:linear-gradient(180deg,rgba(20,15,44,0.98) 0%,rgba(20,15,44,0.98) 100%); padding:6px 0 10px; z-index:5; }
.menu-back{ width:34px; height:34px; background:transparent; border:none; color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.menu-back svg{ width:24px; height:24px; }
.menu-top-actions{ display:flex; align-items:center; gap:14px; }
.menu-settings,.menu-scan{ background:transparent; border:none; color:var(--ink); cursor:pointer; display:flex; align-items:center; gap:5px; font-size:14px; padding:4px 6px; }
.menu-settings span,.menu-scan span{ display:flex; align-items:center; color:var(--ink); }
.menu-settings span svg,.menu-scan span svg{ width:18px; height:18px; }
.menu-settings em,.menu-scan em{ font-style:normal; font-size:13px; }
.menu-body{ display:flex; flex-direction:column; gap:12px; }
.menu-card{ background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:14px; padding:4px 14px; }
.menu-row{ display:flex; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid rgba(255,255,255,0.06); cursor:pointer; color:var(--ink); font-size:14px; }
.menu-row:last-child{ border-bottom:none; }
.menu-ico{ color:var(--jade); display:flex; align-items:center; }
.menu-ico svg{ width:20px; height:20px; }
.menu-row-main{ flex:1; display:flex; align-items:center; justify-content:space-between; min-width:0; gap:12px; }
.menu-row-main > div{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.menu-tip{ font-style:normal; font-size:12px; color:var(--ink-dim); white-space:nowrap; flex-shrink:0; }
.menu-row .set-arrow{ color:var(--ink-dim); display:flex; }
.menu-row .set-arrow svg{ width:16px; height:16px; }
.menu-more{ margin-top:8px; width:100%; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.1); border-radius:14px; padding:14px; color:var(--ink); font-size:14px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; }
.menu-more span{ display:flex; }
.menu-more span svg{ width:18px; height:18px; }
.menu-more em{ font-style:normal; }

/* 二级设置页：分组标题 + 底部搜索 */
.settings-group-title{ font-size:13px; color:var(--ink-dim); margin:14px 4px 6px; }
.settings-search{ margin-top:16px; display:flex; align-items:center; gap:8px; padding:10px 14px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); border-radius:999px; }
.settings-search span{ color:var(--ink-soft); display:flex; }
.settings-search span svg{ width:18px; height:18px; }
.settings-search input{ flex:1; background:transparent; border:none; outline:none; color:var(--ink); font-size:var(--fs-sm); font-family:var(--font-body); }
.settings-search input::placeholder{ color:rgba(200,195,225,0.55); }

/* ===== 编辑主页浮层 ===== */
.edit-cover{ position:relative; height:148px; margin:-16px -18px 0; border-radius:18px 18px 0 0; background:linear-gradient(135deg,var(--jade-deep),var(--mist) 70%,#d3cce0); overflow:hidden; }
.edit-cover-cam{ position:absolute; top:12px; right:12px; width:36px; height:36px; border-radius:50%; background:rgba(0,0,0,.4); border:1px solid rgba(255,255,255,.4); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; backdrop-filter:blur(4px); }
.edit-cover-cam svg{ width:20px; height:20px; }
.edit-cover-avatar{ position:absolute; left:16px; bottom:-26px; width:72px; height:72px; border-radius:50%; border:3px solid #fff; background:linear-gradient(135deg,#e7e3f3,#d3cce0); display:flex; align-items:center; justify-content:center; font-size:34px; cursor:pointer; }
.edit-avatar-emoji{ width:100%; height:100%; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.edit-avatar-plus{ position:absolute; right:-2px; bottom:-2px; width:24px; height:24px; border-radius:50%; background:var(--jade); color:#fff; border:2px solid #fff; font-size:16px; font-weight:700; line-height:1; display:flex; align-items:center; justify-content:center; }
.edit-back-float{ position:absolute; top:12px; left:12px; color:#fff; background:rgba(0,0,0,.4); border-radius:50%; width:34px; height:34px; border:1px solid rgba(255,255,255,.4); backdrop-filter:blur(4px); }
.edit-back-float svg{ width:20px; height:20px; }
/* 编辑主页字段行 */
#edit-profile-panel .settings-body{ padding-top:34px; }
.set-val{ color:var(--ink-soft); font-size:var(--fs-sm); max-width:54%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:right; }
.set-val-sub{ color:var(--ink-dim); }
/* 二级输入浮层 */
.settings-save{ background:transparent; border:none; color:var(--jade); font-size:15px; font-weight:600; cursor:pointer; }
.field.ep-input{ width:100%; margin-top:10px; background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.14); color:var(--ink); border-radius:var(--r-sm); padding:12px; font-size:var(--fs-md); font-family:var(--font-body); outline:none; }
.field.ep-input:focus{ border-color:var(--jade); }
.seg{ display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.seg-item{ background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); color:var(--ink-soft); border-radius:var(--r-sm); padding:14px; font-size:var(--fs-md); cursor:pointer; text-align:left; }
.seg-item.active{ border-color:var(--jade); color:var(--jade); background:rgba(184,166,240,0.12); }
/* 编辑主页：保存按钮 */
.ep-save-btn{ width:100%; margin-top:18px; background:linear-gradient(135deg,var(--jade),var(--mist)); color:#0d0a1a; font-weight:700; border:none; border-radius:var(--r-md); padding:14px; font-size:var(--fs-md); cursor:pointer; }
/* 自定义生日日历选择器 */
.birthday-picker{ padding:8px 0; position:relative; }
.bd-cols{ display:flex; gap:6px; height:200px; overflow:hidden; border-radius:var(--r-md); background:rgba(255,255,255,0.05); position:relative; }
/* 固定选择框：锁定在容器垂直中心，不随滚动移动 */
.bd-cols::after{ content:''; position:absolute; left:6px; right:6px; top:50%; transform:translateY(-50%); height:44px; border-radius:var(--r-sm); border:2px solid var(--jade); background:rgba(184,166,240,0.10); pointer-events:none; z-index:3; box-shadow:0 0 12px rgba(184,166,240,0.25); }
.bd-col{ flex:1; overflow-y:auto; -webkit-overflow-scrolling:touch; scroll-snap-type:y mandatory; padding:80px 0; text-align:center; scrollbar-width:none; }
.bd-col::-webkit-scrollbar{ display:none; }
.bd-list{ display:flex; flex-direction:column; }
.bd-item{ scroll-snap-align:center; padding:11px 4px; color:var(--ink-dim); font-size:var(--fs-md); cursor:pointer; border-radius:var(--r-sm); transition:color .15s, font-size .15s, background .15s; }
.bd-item.active{ color:var(--jade); font-weight:700; font-size:var(--fs-lg); }
.bd-item.near{ color:var(--ink-soft); }
.bd-hint{ text-align:center; color:var(--ink-dim); font-size:12px; margin-top:8px; }
.region-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:12px; }
.region-item{ background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); color:var(--ink-soft); border-radius:var(--r-sm); padding:12px 4px; font-size:var(--fs-sm); cursor:pointer; }
.region-item.active{ border-color:var(--jade); color:var(--jade); background:rgba(184,166,240,0.12); }

/* 健康活动卡片 */
.bigu-card{ background:var(--bg-card); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:14px; margin-bottom:10px; cursor:pointer; }
.bigu-title{ font-size:var(--fs-md); font-weight:600; color:var(--ink); }
.bigu-meta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:6px; font-size:var(--fs-sm); color:var(--ink-dim); }
.bigu-merchant{ margin-top:6px; font-size:var(--fs-sm); color:var(--jade); }
.bigu-detail{ margin-top:10px; font-size:var(--fs-sm); color:var(--ink-soft); line-height:1.6; }
.bigu-foot{ display:flex; align-items:center; margin-top:10px; }
.bigu-price{ color:var(--warn, #e6a23c); font-size:var(--fs-lg); }
.bigu-remain{ margin-left:auto; font-size:var(--fs-sm); color:var(--ink-dim); }

/* POI 卡片（药房 / 中医馆） */
.poi-card{ background:var(--bg-card); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:14px; margin-bottom:10px; }
.poi-name{ font-size:var(--fs-md); font-weight:600; color:var(--ink); display:flex; align-items:center; gap:8px; }
.poi-open{ font-size:var(--fs-xs); padding:2px 8px; border-radius:10px; background:rgba(255,255,255,0.08); color:var(--ink-dim); }
.poi-open.on{ background:rgba(184,166,240,0.18); color:var(--jade); }
.poi-addr{ margin-top:6px; font-size:var(--fs-sm); color:var(--ink-soft); }
.poi-phone{ margin-top:4px; font-size:var(--fs-sm); color:var(--ink-dim); }

/* 症状词 chip（AI健康辨证） */
.chip-wrap{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.chip{ display:inline-block; padding:6px 12px; border-radius:16px; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12); color:var(--ink-soft); font-size:var(--fs-sm); cursor:pointer; user-select:none; transition:all .15s; }
.chip.active{ background:rgba(184,166,240,0.18); border-color:var(--jade); color:var(--jade); }
.field{ width:100%; box-sizing:border-box; margin-top:8px; background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12); border-radius:var(--r-sm); color:var(--ink); padding:10px; font-size:var(--fs-sm); font-family:inherit; resize:vertical; }
.btn-primary{ background:var(--jade,#b8a6f0); color:#14121f; border:none; border-radius:var(--r-sm); padding:10px 16px; font-weight:600; cursor:pointer; }
.btn-ghost{ background:transparent; border:1px solid rgba(255,255,255,0.18); color:var(--ink-soft); border-radius:var(--r-sm); padding:8px 14px; cursor:pointer; }
.btn{ font-size:var(--fs-sm); }
.level-pill{ display:inline-block; padding:2px 10px; border-radius:12px; background:rgba(184,166,240,0.18); color:var(--jade); font-size:var(--fs-sm); font-weight:600; }

/* 发布动态 + 社区 */
.pub-media{ display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.pub-thumb-wrap{ position:relative; }
.pub-thumb{ width:84px; height:84px; object-fit:cover; border-radius:var(--r-sm); background:#000; }
.pub-thumb[controls]{ width:120px; height:84px; }
.pub-thumb-video{ background:#0d0a1a; }
.pub-del{ position:absolute; top:-6px; right:-6px; width:18px; height:18px; line-height:18px; text-align:center; border-radius:50%; background:#e35; color:#fff; font-size:11px; cursor:pointer; z-index:3; }
.pub-cover-badge{ position:absolute; left:2px; bottom:2px; padding:2px 6px; border-radius:8px; background:rgba(16,20,15,0.78); color:#ffd86b; font-size:10px; font-weight:700; line-height:14px; cursor:pointer; z-index:3; backdrop-filter:blur(2px); }
.pub-cover-badge.is-cover, .pub-thumb-wrap.is-cover .pub-cover-badge{ background:linear-gradient(135deg,#ffd86b,#f6a64b); color:#14121f; box-shadow:0 2px 8px rgba(246,166,75,.4); }
.pub-cover-tip{ margin-top:8px; font-size:11px; }
.comme-cover,.comm-cover{ width:100%; max-height:180px; object-fit:cover; border-radius:var(--r-sm); margin-bottom:6px; }
.comm-card{ background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r); padding:12px; margin-bottom:12px; }
.comm-head{ display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.comm-avatar{ width:28px; height:28px; border-radius:50%; background:var(--jade); color:#14121f; display:inline-flex; align-items:center; justify-content:center; font-weight:700; }
.comm-title{ font-weight:600; margin-bottom:4px; }
.comm-body{ font-size:var(--fs-sm); color:var(--ink-soft); margin-bottom:6px; white-space:pre-wrap; }
.comm-media{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
.comm-media-item{ max-width:100%; max-height:200px; border-radius:var(--r-sm); }
.comm-foot{ font-size:var(--fs-sm); }

/* 通知中心红点角标 */
.notice-badge{ position:absolute; top:-4px; right:-6px; min-width:16px; height:16px; padding:0 4px; border-radius:9px; background:#e35; color:#fff; font-size:10px; font-style:normal; line-height:16px; text-align:center; font-family:var(--font-body); }
.me-tool{ position:relative; }

.me-privacy-tip{ margin-top:4px; min-height:0; }
.me-privacy-tags{ font-size:11px; color:var(--ink-dim); line-height:1.6; }

/* ===== 设置偏好真实生效 ===== */
/* 背景色（背景设置） */
body.has-bg-tint{ --bg-deep: var(--bg-tint); }
body.has-bg-tint #screen,
body.has-bg-tint #topbar,
body.has-bg-tint .settings-sheet.glass,
body.has-bg-tint .grid-inner.glass,
body.has-bg-tint .module-panel .sheet{ background-color: var(--bg-tint); }
/* 动态壁纸（云海/竹林/星辰） */
.has-wallpaper{ background-size:cover !important; background-position:center !important; background-repeat:no-repeat; }
/* 聊天字号（聊天与通话设置） */
#page-msg, #page-friend{ font-size: var(--chat-font, 15px); }
/* 长辈模式：全局加强对比与可读性 */
.elder-mode{ --ink: #fff; --ink-soft: #f0f0f0; --ink-dim: #d8d8d8; }
.elder-mode .feed-card,
.elder-mode .grid-item,
.elder-mode .sheet,
.elder-mode .settings-sheet{ border-color: rgba(255,255,255,0.35) !important; }
.elder-mode .tap-scan,
.elder-mode .tabs span.active{ text-shadow: 0 1px 2px rgba(0,0,0,.6); }

/* ===== 创作者中心（可变三态） ===== */
.creator-hero{ font-size:18px; font-weight:600; display:flex; align-items:center; gap:8px; padding:14px 0; }
.creator-hero .tag{ font-size:12px; }
/* 企业认证：图片上传框 */
.cv-upload{ flex:1; }
.cv-upload-box{ height:84px; border-radius:12px; border:2px dashed rgba(255,255,255,0.25); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:var(--ink-dim); font-size:12px; cursor:pointer; background:rgba(255,255,255,0.04); background-size:cover; background-position:center; }
.cv-upload-box span[data-ico]{ color:var(--jade); display:flex; }
.cv-upload-box span[data-ico] svg{ width:22px; height:22px; }
.cv-upload-box div{ pointer-events:none; }
.creator-stats{ display:flex; gap:10px; margin:6px 0 14px; }
.creator-stats>div{ flex:1; background:rgba(255,255,255,.05); border-radius:12px; padding:10px; text-align:center; }
.creator-stats b{ display:block; font-size:12px; color:var(--ink-dim); font-weight:400; }
.creator-stats span{ font-size:18px; font-weight:700; }

/* ===== 在线客服会话 ===== */
.chat-online{ max-height:200px; overflow-y:auto; background:rgba(0,0,0,.18); border-radius:12px; padding:10px; margin-top:6px; }
.co-msg{ max-width:80%; padding:8px 12px; border-radius:12px; font-size:14px; margin:6px 0; line-height:1.4; }
.co-sys{ background:rgba(255,255,255,.08); color:var(--ink-soft); border-bottom-left-radius:4px; }
.co-me{ background:linear-gradient(135deg,#7a1f24,#b5464d); color:#fff; margin-left:auto; border-bottom-right-radius:4px; }

/* ===== 社区动态卡片 ===== */
.community-card{ padding:12px; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); }
.cc-head{ display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.cc-avatar{ width:38px; height:38px; border-radius:50%; background:rgba(255,255,255,0.06); display:flex; align-items:center; justify-content:center; font-size:20px; flex-shrink:0; }
.cc-meta{ flex:1; min-width:0; }
.cc-name{ font-size:14px; font-weight:600; color:var(--ink); }
.cc-time{ font-size:11px; color:var(--ink-dim); margin-top:2px; }
.cc-hot{ color:#ff8a5b; font-size:12px; font-weight:600; }
.cc-text{ font-size:14px; color:var(--ink-soft); line-height:1.6; margin-bottom:10px; }
.cc-acts{ display:flex; gap:18px; }
.cc-act{ font-size:12px; color:var(--ink-dim); cursor:pointer; }
.cc-act:active{ opacity:.6; }


/* ===== 新增设置子面板样式（菜单打通） ===== */
.wallet-card{ background:linear-gradient(135deg,rgba(124,92,255,0.18),rgba(120,180,210,0.12)); border:1px solid rgba(160,150,210,0.35); border-radius:var(--r-md); padding:18px; margin-bottom:14px; }
.wallet-balance{ font-size:30px; font-weight:700; color:var(--ink); }
.wallet-row{ display:flex; justify-content:space-around; margin:14px 0; }
.wallet-item{ text-align:center; }
.wallet-item b{ display:block; font-size:18px; color:var(--jade-soft); }
.wallet-item span{ font-size:11px; color:var(--ink-dim); }
.wallet-actions{ display:flex; gap:10px; }
.wallet-actions button{ flex:1; }
.wallet-log{ display:flex; justify-content:space-between; align-items:center; padding:11px 4px; border-bottom:1px solid rgba(255,255,255,0.06); font-size:13px; color:var(--ink-soft); }
.wallet-log .wl-left{ display:flex; flex-direction:column; gap:3px; min-width:0; flex:1; margin-right:10px; }
.wallet-log .wl-note{ font-size:13px; color:var(--ink-soft); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.wallet-log .wl-meta{ font-size:11px; color:var(--ink-dim); }
.wallet-log b{ color:var(--jade-soft); font-size:15px; font-weight:700; flex-shrink:0; }
.wallet-log b.plus{ color:#5b3fd6; }
/* 钱包新版（参照抖音钱包：总资产 + 三宫格 + 收益） */
.wallet-hero{ background:linear-gradient(135deg,#b5464d,#7a1f24); border-radius:var(--r-md); padding:22px 18px; color:#fff; text-align:center; margin-bottom:14px; }
.wallet-hero-label{ font-size:12px; opacity:.85; }
.wallet-hero-amount{ font-size:34px; font-weight:800; letter-spacing:.5px; margin:6px 0 4px; }
.wallet-hero-sub{ font-size:11px; opacity:.85; }
.wallet-grid{ display:flex; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); overflow:hidden; margin-bottom:14px; }
.wallet-cell{ flex:1; text-align:center; padding:16px 6px; cursor:pointer; border-right:1px solid rgba(255,255,255,0.06); }
.wallet-cell:last-child{ border-right:none; }
.wallet-cell b{ display:block; font-size:20px; color:var(--jade-soft); font-weight:700; }
.wallet-cell span{ font-size:11px; color:var(--ink-dim); }
.wallet-earn{ background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:14px; margin-bottom:14px; }
.wallet-earn-title{ font-size:13px; color:var(--ink); font-weight:600; margin-bottom:10px; }
.wallet-earn-row{ display:flex; }
.wallet-earn-item{ flex:1; text-align:center; }
.wallet-earn-item b{ display:block; font-size:17px; color:var(--ink); font-weight:700; }
.wallet-earn-item span{ font-size:11px; color:var(--ink-dim); }
.qrcode-box{ display:flex; justify-content:center; padding:14px 0; }
.qrcode-box img{ border-radius:10px; background:#fff; padding:8px; }
.order-card,.ticket-card,.history-card{ display:flex; justify-content:space-between; gap:10px; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:12px 14px; margin-bottom:10px; }
.order-main b,.ticket-top b{ color:var(--ink); }
.order-name{ display:block; font-size:12px; color:var(--ink-dim); margin-top:4px; }
.order-side{ text-align:right; }
.order-side b{ color:var(--jade-soft); }
.order-status,.ticket-status{ display:block; font-size:11px; color:var(--ink-dim); margin-top:4px; }
.ticket-status.open{ color:#ffb86b; }
.ticket-status.replied{ color:var(--jade-soft); }
.ticket-content{ font-size:13px; color:var(--ink-soft); margin-top:6px; }
.ticket-reply{ font-size:12px; color:var(--jade-soft); margin-top:6px; background:rgba(124,92,255,0.1); padding:8px; border-radius:8px; }
.history-ico{ color:var(--jade); }
.history-main b{ display:block; font-size:13px; color:var(--ink); }
.history-main span{ font-size:11px; color:var(--ink-dim); }
.empty-tip{ text-align:center; color:var(--ink-dim); font-size:13px; padding:24px 0; }
.qr-fallback{ background:var(--bg-glass); border:1px solid rgba(255,255,255,0.1); border-radius:12px; padding:18px; font-size:13px; color:var(--ink-soft); word-break:break-all; }
.qr-fallback code{ display:block; font-size:11px; color:var(--ink-dim); margin:8px 0; }
.set-field{ margin:12px 0; }
.set-field label{ display:block; font-size:13px; color:var(--ink-soft); margin-bottom:6px; }
.gen-input{ width:100%; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.12); color:var(--ink); border-radius:var(--r-sm); padding:10px 12px; font-size:14px; font-family:var(--font-body); box-sizing:border-box; }
textarea.gen-input{ resize:vertical; }
.wp-colors{ display:flex; gap:12px; flex-wrap:wrap; padding:6px 0 14px; }
.wp-dot{ width:38px; height:38px; border-radius:50%; cursor:pointer; border:2px solid transparent; }
.wp-dot.on{ border-color:var(--jade); box-shadow:var(--glow); }
.tp-item{ display:flex; justify-content:space-between; align-items:center; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.1); border-radius:var(--r-sm); padding:12px 14px; margin-bottom:8px; font-size:14px; color:var(--ink-soft); cursor:pointer; }
.tp-del{ color:#ff8a8a; cursor:pointer; padding:0 6px; }
.company-verified{ background:rgba(124,92,255,0.14); border:1px solid rgba(124,92,255,0.4); color:var(--jade-soft); border-radius:var(--r-sm); padding:12px; margin-bottom:12px; font-weight:600; }
.settings-foot{ font-size:11px; color:var(--ink-dim); line-height:1.6; margin-top:14px; padding:10px; background:rgba(255,255,255,0.04); border-radius:8px; }

/* ===== 我的钱包：完整手机画面（2026-09-05 用户要求：2/3 抽屉太「小气」，改全屏） =====
   用法：面板 class 用 `settings-panel full-screen` 取代 `settings-panel drawer-right`。
   与 drawer-right 互斥：drawer-right 是 66.67% 宽右抽屉，full-screen 是 100% 铺满的整页。 */
/* z-index 9991：必须高于 bottombar(9990 !important)，否则全屏后底部 58px 会被底部导航条盖住；
   同时低于 module-panel(9995) 与 auth-page(9999)，不抢占更上层。 */
.settings-panel.full-screen { flex-direction: column; align-items: stretch; justify-content: stretch; padding: 0; background: #0d0a1a; z-index: 9991; }
.settings-panel.full-screen > .settings-sheet { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border-radius: 0; border: none; box-shadow: none; animation: none; padding: calc(env(safe-area-inset-top, 0px) + 10px) 0 calc(18px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; background: linear-gradient(180deg,#140f2c 0%,#0d0a1a 100%) !important; }
.settings-panel.full-screen .settings-head { padding: 0 14px 12px; margin-bottom: 0; flex-shrink: 0; }
/* 全屏后适度舒展，避免窄栏放大成大留白 */
.settings-panel.full-screen .wallet-body { padding: 0 16px 10px; }
.settings-panel.full-screen .wallet-hero-card { padding: 24px 20px; border-radius: 18px; }
.settings-panel.full-screen .wallet-hero-amount { font-size: 40px; margin: 12px 0 14px; }

/* ===== 支付设置：完整手机画面（2026-09-05，与钱包保持一致） =====
   🔴 支付设置内容区是浅灰底(#f5f5f5)，而 sheet 背景是深色渐变。
   全屏后若内容不足一屏，底部会露出深色，必须让内容区自身撑满。
   min-height 减去的是 sheet 顶部内边距 + 标题栏高度（约 60px，含安全区预留）。 */
.settings-panel.full-screen .pay-settings-body { min-height: calc(100vh - 120px); padding: 16px; }
.settings-panel.full-screen .pay-settings-group { border-radius: 14px; margin-bottom: 14px; }
.settings-panel.full-screen .pay-user-bar { border-radius: 18px; padding: 24px 20px; margin-bottom: 16px; }

/* ===== 抖音风格钱包（p版） ===== */
.settings-gear{ background:none; border:none; color:var(--ink); padding:6px; display:flex; align-items:center; justify-content:center; }
.wallet-body{ padding:14px; }
.wallet-hero-card{ background:linear-gradient(135deg,#3b82f6,#60a5fa); border-radius:16px; padding:18px; color:#fff; margin-bottom:14px; box-shadow:0 8px 20px rgba(59,130,246,.25); }
.wallet-hero-top{ display:flex; align-items:center; justify-content:space-between; font-size:12px; opacity:.9; }
.wallet-safe{ display:inline-flex; align-items:center; gap:4px; background:rgba(255,255,255,.18); padding:3px 8px; border-radius:999px; }
.wallet-hero-amount{ font-size:36px; font-weight:800; margin:10px 0 12px; letter-spacing:.5px; }
.wallet-hero-promo{ display:inline-flex; align-items:center; gap:6px; background:rgba(255,255,255,.95); color:#333; padding:6px 10px; border-radius:999px; font-size:12px; font-weight:500; }
.wallet-grid-four{ display:flex; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); overflow:hidden; margin-bottom:14px; }
.wallet-cell-four{ flex:1; text-align:center; padding:16px 4px; cursor:pointer; border-right:1px solid rgba(255,255,255,0.06); }
.wallet-cell-four:last-child{ border-right:none; }
.wallet-cell-four b{ display:block; font-size:18px; color:var(--jade-soft); font-weight:700; margin-bottom:2px; }
.wallet-cell-four span{ font-size:11px; color:var(--ink-dim); }
.wallet-bill-row{ display:flex; align-items:center; justify-content:space-between; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:12px 14px; margin-bottom:14px; }
.wallet-bill-row>div{ display:flex; align-items:center; gap:10px; font-size:14px; }
.wallet-bill-tip{ font-size:12px; color:var(--ink-dim); }
.wallet-features{ display:grid; grid-template-columns:repeat(4,1fr); gap:12px 8px; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:16px 10px; margin-bottom:14px; }
.wallet-feat{ display:flex; flex-direction:column; align-items:center; gap:6px; font-size:11px; color:var(--ink-soft); cursor:pointer; }
.wallet-feat-icon{ width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.wallet-signin-card{ background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:14px; margin-bottom:14px; }
.wallet-signin-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.wallet-signin-head>div{ display:flex; flex-direction:column; gap:2px; }
.wallet-signin-btn{ background:linear-gradient(90deg,#ff8a00,#ffb700); color:#fff; border:none; border-radius:999px; padding:6px 14px; font-size:13px; font-weight:600; }
.wallet-signin-days{ display:flex; justify-content:space-between; }
.wallet-day{ display:flex; flex-direction:column; align-items:center; gap:3px; font-size:10px; color:var(--ink-dim); }
.wallet-day b{ background:#f0f0f0; color:#999; padding:3px 6px; border-radius:6px; font-size:11px; }
.wallet-day.active{ color:var(--ink); }
.wallet-day.active b{ background:#fff3e0; color:#ff8a00; }
.wallet-logs-title{ font-size:14px; font-weight:600; margin:16px 0 8px; }

/* ===== 银行卡页面 ===== */
.bank-cards-foot{ padding:12px 16px 24px; }
.bank-card-item{ display:flex; align-items:center; justify-content:space-between; background:var(--bg-glass); border:1px solid rgba(255,255,255,0.08); border-radius:var(--r-md); padding:14px; margin-bottom:10px; }
.bank-card-info{ display:flex; flex-direction:column; gap:4px; }
.bank-card-info b{ font-size:15px; color:var(--ink); }
.bank-card-info span{ font-size:12px; color:var(--ink-dim); }

/* ===== 支付设置页面 ===== */
.pay-settings-body{ padding:14px; background:#f5f5f5; }
.pay-user-bar{ background:linear-gradient(135deg,#3b82f6,#60a5fa); border-radius:16px; padding:20px; color:#fff; margin-bottom:14px; }
.pay-user-phone{ font-size:22px; font-weight:700; margin-bottom:6px; }
.pay-user-meta{ display:flex; align-items:center; gap:6px; font-size:12px; opacity:.9; }
.pay-safe-dot{ width:6px; height:6px; background:#6d4ed6; border-radius:50%; }
.pay-settings-group{ background:#fff; border-radius:12px; margin-bottom:12px; overflow:hidden; }
.pay-row{ display:flex; align-items:center; gap:12px; padding:14px; border-bottom:1px solid #f0f0f0; cursor:pointer; }
.pay-row:last-child{ border-bottom:none; }
.pay-row-icon{ width:22px; height:22px; color:#666; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.pay-row-main{ flex:1; display:flex; flex-direction:column; gap:2px; }
.pay-row-main b{ font-size:14px; color:#1a1a1a; font-weight:500; }
.pay-row-extra{ font-size:13px; color:#999; }
.pay-toggle{ font-size:13px; color:#3b82f6; font-weight:500; }
.pay-row-danger .pay-row-main b{ color:#ff4d4f; }
.pay-row-danger .pay-row-icon{ color:#ff4d4f; }

/* 个人版「我要认证」：ID 下方左对齐 */
.me-auth-line{ margin-top:6px; align-self:flex-start; display:inline-flex; align-items:center; font-size:12px; color:#0d0a1a; font-weight:600; background:linear-gradient(135deg,#ffd54a,#ffb300); border-radius:999px; padding:3px 12px; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,.25); }

/* 手机端发布表单 */
.phone-pub-form{ padding:14px 16px 20px; display:flex; flex-direction:column; gap:12px; }
.phone-pub-input{ width:100%; box-sizing:border-box; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); color:var(--ink); border-radius:10px; padding:11px 12px; font-size:15px; font-family:var(--font-body); }
.phone-pub-textarea{ width:100%; box-sizing:border-box; min-height:96px; resize:vertical; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); color:var(--ink); border-radius:10px; padding:11px 12px; font-size:15px; font-family:var(--font-body); line-height:1.5; }
.phone-pub-media{ display:flex; flex-wrap:wrap; gap:8px; }
.phone-pub-thumb{ position:relative; width:84px; height:84px; border-radius:10px; overflow:hidden; background:#000; }
.phone-pub-del{ position:absolute; top:2px; right:2px; width:20px; height:20px; line-height:18px; text-align:center; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; font-size:12px; cursor:pointer; }
.phone-pub-pick{ align-self:flex-start; background:rgba(255,255,255,.08); border:1px dashed rgba(255,255,255,.3); color:var(--ink-soft); border-radius:10px; padding:10px 14px; font-size:14px; cursor:pointer; font-family:var(--font-body); }
.phone-pub-tags{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-soft); }
.phone-pub-tags .phone-pub-input{ flex:1; }
.phone-pub-submit{ margin-top:4px; background:linear-gradient(135deg,#ff6a3d,#ff2442); color:#fff; border:none; border-radius:12px; padding:13px; font-size:16px; font-weight:600; cursor:pointer; font-family:var(--font-body); }
.phone-pub-submit:disabled{ opacity:.6; }
.phone-pub-tip{ font-size:12px; color:var(--ink-dim); line-height:1.5; }


/* 企业认证：自动识别按钮 + 授权协议 */
.cv-ocr-btn{ width:100%; margin-top:6px; background:rgba(124,92,255,0.16); border:1px solid rgba(124,92,255,0.4); color:var(--jade-soft); border-radius:8px; padding:6px 0; font-size:12px; cursor:pointer; font-family:var(--font-body); }
.cv-ocr-btn:active{ opacity:.7; }
.cv-agree input{ accent-color:var(--jade); width:16px; height:16px; }
.cv-ocr-tip{ line-height:1.5; }

/* ===== 扫一扫识药材：相机框 + 扫描光 ===== */
.herb-cam-sheet .sheet-body{ padding:14px; }
.herb-mode-tabs{ display:flex; gap:8px; margin-bottom:12px; }
.herb-mode{ flex:1; text-align:center; padding:8px; border-radius:10px; background:var(--bg-card); color:var(--ink-2); font-size:var(--fs-sm); cursor:pointer; border:1px solid transparent; }
.herb-mode.on{ background:linear-gradient(90deg,#f05245,#e53935); color:#fff; border-color:rgba(255,255,255,0.2); }
.herb-cam-box{ position:relative; width:100%; aspect-ratio:3/4; background:#0b0f14; border-radius:14px; overflow:hidden; border:1px solid var(--line); }
.herb-cam-box video{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.herb-cam-box canvas{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.herb-cam-hint{ position:absolute; left:0; right:0; bottom:10px; text-align:center; color:#fff; font-size:var(--fs-xs); text-shadow:0 1px 3px rgba(0,0,0,.6); }
.herb-scan-line{ position:absolute; left:6%; right:6%; height:3px; border-radius:3px; background:linear-gradient(90deg,rgba(123,47,247,0),#7b2ff7,#00e5ff,#9f7cff,#ffe600,#ff3d00,rgba(255,61,0,0)); box-shadow:0 0 14px 3px rgba(0,229,255,.55); animation:herbScan 2.4s ease-in-out infinite; }
@keyframes herbScan{ 0%{ top:6%; } 50%{ top:92%; } 100%{ top:6%; } }
.herb-actions{ margin-top:12px; }

.phone-pub-field{margin:12px 0}
.phone-pub-label{font-size:13px;color:#666;margin-bottom:6px}
.phone-pub-chips{display:flex;flex-wrap:wrap;gap:8px}
.pp-chip{padding:6px 12px;border:1px solid #ddd;border-radius:18px;font-size:13px;color:#444;background:#fafafa;cursor:pointer;user-select:none}
.pp-chip.on{background:#6d4ed6;border-color:#6d4ed6;color:#fff}
.phone-pub-cover-tip{font-size:12px;color:#999;margin:8px 0}
.phone-pub-actions{display:flex;gap:10px;margin-top:6px}
.phone-pub-draft{flex:0 0 32%;border:1px solid #6d4ed6;background:#fff;color:#6d4ed6;border-radius:10px;padding:12px;font-size:15px;font-weight:600;cursor:pointer}
.phone-pub-submit{flex:1;border:none;background:linear-gradient(135deg,#6d4ed6,#3a2a7a);color:#fff;border-radius:10px;padding:12px;font-size:15px;font-weight:600;cursor:pointer}
.phone-pub-submit:disabled{opacity:.6}

/* ===== 图文 feed 封面图 + 详情互动 ===== */
.feed-thumb-img{ width:100%; height:100%; object-fit:cover; display:block; }
.feed-thumb{ background:#0d0a1a; }
.detail-cover{ width:100%; height:100%; object-fit:cover; }
.rail-btn.on{ background:rgba(255,60,90,.4); border-color:rgba(255,120,140,.6); }
.rail-btn.on svg{ color:#ff8a9c; }
.mini-follow{ margin-left:10px; font-size:12px; padding:3px 12px; border-radius:999px; border:1px solid var(--jade-soft); color:var(--jade-soft); background:transparent; cursor:pointer; }
.mini-follow:active{ background:rgba(160,150,210,.15); }
.detail-comments{ margin-top:14px; border-top:1px solid rgba(255,255,255,.08); padding-top:12px; }
.detail-comments.hidden{ display:none; }
.cmt-title{ font-size:13px; color:var(--ink-soft); margin-bottom:8px; }
.cmt-list{ max-height:200px; overflow-y:auto; display:flex; flex-direction:column; gap:8px; }
.cmt-item{ font-size:13px; line-height:1.5; color:var(--ink); }
.cmt-item b{ color:var(--jade-soft); font-weight:600; margin-right:4px; }
.cmt-input-row{ display:flex; gap:8px; margin-top:10px; padding-bottom: env(safe-area-inset-bottom, 0px); }
/* 抖音式：聚焦时输入条固定贴键盘上方弹出，规避 iPhone 底部工具栏/键盘遮挡 */
.cmt-input-row.kbd-up{
  position:fixed; left:0; right:0;
  bottom: calc(var(--kbd,0px) + env(safe-area-inset-bottom,0px));
  z-index:9996; margin-top:0;
  background:linear-gradient(0deg, rgba(8,16,14,.99), rgba(8,16,14,.92));
  padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
  box-shadow:0 -8px 24px rgba(0,0,0,.45);
  animation:cmtPop .18s ease;
}
@keyframes cmtPop{ from{ transform:translateY(22px); opacity:.55 } to{ transform:translateY(0); opacity:1 } }
.cmt-input{ flex:1; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.12); border-radius:10px; color:var(--ink); padding:8px 12px; font-size:13px; }
.cmt-send{ background:var(--jade); color:#160a2e; border:none; border-radius:10px; padding:0 16px; font-weight:600; cursor:pointer; }
.cmt-send:active{ transform:scale(.95); }
.dim{ color:var(--ink-soft); font-size:13px; }

/* 安卓 WebView 兼容：fixed 遮罩内可交互元素显式抬层 + 触摸属性，修复“点不动” */
.settings-sheet{ position:relative; z-index:1; }
.set-row{ position:relative; z-index:2; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:rgba(0,0,0,0); }
.set-row *{ pointer-events:none; }
.set-row > div, .set-row > span{ pointer-events:none; }
.set-row{ pointer-events:auto; }
.set-arrow, .set-val{ pointer-events:none; }
.edit-cover-avatar, .edit-cover-cam, .settings-save, .settings-back, .settings-close, .settings-scan{ position:relative; z-index:3; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:rgba(0,0,0,0); }
.publish-item{ position:relative; z-index:2; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:rgba(0,0,0,0); }


/* ===== 家庭健康监控 / 身体指标罗盘 ===== */
.fh-switch{ display:flex; gap:8px; overflow-x:auto; padding:4px 0 8px; }
.fh-chip{ flex:0 0 auto; padding:6px 12px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.12); font-size:12px; color:var(--ink-soft); cursor:pointer; }
.fh-chip.on{ background:var(--jade); color:#160a2e; border-color:var(--jade); font-weight:600; }
.fh-warn{ font-size:12px; }
.fh-empty{ text-align:center; color:var(--ink-soft); padding:30px 16px; font-size:14px; line-height:1.8; }
.fh-empty .btn, .fh-empty button{ background:var(--jade); color:#160a2e; border:none; border-radius:10px; padding:8px 18px; font-weight:600; cursor:pointer; }
.fh-actions{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:14px 0 4px; }
.fh-btn{ background:var(--bg-glass); border:1px solid rgba(255,255,255,.12); border-radius:10px; padding:10px 4px; font-size:12px; color:var(--ink); cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:rgba(0,0,0,0); }
.fh-btn:active{ transform:scale(.96); }
.fh-tabs{ display:flex; gap:6px; margin:6px 0; }
.fh-tab{ flex:1; text-align:center; padding:8px 4px; font-size:12px; border-radius:10px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); color:var(--ink-soft); cursor:pointer; }
.fh-tab.on{ background:var(--jade); color:#160a2e; font-weight:600; border-color:var(--jade); }
.fh-plan-box{ font-size:13px; line-height:1.7; color:var(--ink); }
.week-row{ background:rgba(255,255,255,.05); border-radius:10px; padding:10px 12px; margin-bottom:8px; font-size:12px; line-height:1.6; }
.chips{ display:flex; flex-wrap:wrap; gap:6px; margin:4px 0 8px; }
.chip{ padding:4px 10px; border-radius:999px; background:rgba(255,255,255,.08); font-size:12px; color:var(--ink-soft); }
.chip.ok{ background:rgba(109,78,214,.2); color:#9f8ff0; }
.chip.no{ background:rgba(229,72,77,.18); color:#ff8a8e; }
.disclaimer{ font-size:11px; color:var(--ink-soft); opacity:.8; margin-top:8px; line-height:1.5; }
.subtitle.section{ color:var(--jade-soft); font-weight:600; margin:12px 0 4px; font-size:13px; }

/* ===== 我的健康罗盘（luopan.js）===== */
.lp-idbar{ background:rgba(167,139,250,0.12); border:1px solid rgba(167,139,250,0.25); border-radius:10px; padding:8px 12px; font-size:12px; color:var(--ink-soft); margin:8px 0 4px; }
.lp-idbar b{ color:var(--jade); }
.lp-copy-btn{ margin-left:6px; padding:2px 10px; font-size:11px; border:1px solid rgba(167,139,250,0.5); border-radius:999px; background:transparent; color:var(--jade); cursor:pointer; }
.lp-copy-btn:active{ background:rgba(167,139,250,0.2); }
.lp-idhint{ margin-top:4px; font-size:11px; color:var(--dim); line-height:1.5; }
.fh-idbar{ background:rgba(167,139,250,0.12); border:1px solid rgba(167,139,250,0.25); border-radius:10px; padding:8px 12px; font-size:12px; color:var(--ink-soft); margin:6px 0; }
.fh-idbar b{ color:var(--jade); }
.lp-id-warn{ color:#e6a23c; font-weight:600; }
.lp-section{ background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:12px; margin:10px 0; }
/* 「我的体征」城市切换条（2026-09-06 补齐：此前只有裸 class 无任何样式） */
.lp-city-switch{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:10px 12px; margin:10px 0; }
.lp-city-label{ font-size:12.5px; color:var(--ink); flex:none; }
.lp-city-select{ flex:1; min-width:96px; height:30px; padding:0 8px; font-size:12.5px; color:var(--ink); background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); border-radius:8px; }
.lp-city-btn{ flex:none; height:30px; padding:0 12px; font-size:12px; color:#f3e9c8; background:rgba(167,139,250,0.16); border:1px solid rgba(167,139,250,0.32); border-radius:8px; cursor:pointer; font-family:inherit; }
.lp-city-btn:active{ background:rgba(167,139,250,0.28); }
.lp-city-status{ flex-basis:100%; font-size:11.5px; line-height:1.6; color:var(--ink-soft); }
/* 定位不准时的一键切 HTTPS 按钮（IP 定位会跨省漂移：广元判陕西） */
.lp-https-btn{ display:inline-block; margin-left:4px; padding:6px 10px; font-size:11.5px; font-weight:600; color:#1a1438; background:linear-gradient(180deg,#a78bfa,#8f7fe0); border:none; border-radius:8px; cursor:pointer; font-family:inherit; box-shadow:0 2px 6px rgba(124,92,255,0.22); }
.lp-https-btn:active{ transform:translateY(1px); }
.lp-sec-head{ display:flex; align-items:center; gap:8px; margin-bottom:8px; font-size:14px; }
.lp-sec-head .lp-ico{ font-size:16px; }
.lp-sub{ font-size:12px; color:var(--dim); margin:10px 0 4px; }
.lp-principle{ font-size:13px; color:var(--ink); line-height:1.6; }
.lp-summary{ display:flex; align-items:center; gap:14px; padding:12px; border-radius:12px; background:rgba(255,255,255,0.03); }
.lp-score{ font-size:34px; font-weight:700; line-height:1; }
.lp-score span{ font-size:13px; font-weight:400; color:var(--dim); margin-left:2px; }
.lp-status{ font-size:14px; font-weight:600; }
.lp-risks{ font-size:12px; color:var(--dim); margin-top:4px; }
.lp-sleep-tip{ padding:10px 12px; border-radius:10px; background:rgba(255,255,255,0.03); font-size:13px; line-height:1.6; margin-bottom:6px; }
.lp-water-goal{ font-size:13px; margin-bottom:6px; }
.lp-water-goal b{ color:var(--jade); }
.lp-water-bar{ height:8px; border-radius:6px; background:rgba(255,255,255,0.1); overflow:hidden; }
.lp-water-bar i{ display:block; height:100%; background:linear-gradient(90deg,#6d4ed6,#a78bfa); }
.lp-week-row{ font-size:12px; color:var(--ink-soft); padding:4px 0; border-bottom:1px dashed rgba(255,255,255,0.08); }
.lp-notice{ margin:0; padding-left:18px; }
.lp-notice li{ font-size:13px; color:var(--ink); margin:5px 0; line-height:1.5; }
.chips{ display:flex; flex-wrap:wrap; gap:6px; margin:4px 0; }
.chip{ font-size:12px; padding:3px 10px; border-radius:20px; background:rgba(167,139,250,0.15); color:var(--ink-soft); }
.chip.ok{ background:rgba(109,78,214,0.18); color:#9f8ff0; }
.chip.no{ background:rgba(229,72,77,0.16); color:#ff9a9d; }
.disclaimer{ font-size:11px; color:var(--dim); margin-top:8px; line-height:1.5; }

/* 个人各项指标显示条 */
.lp-metrics{ display:flex; flex-direction:column; gap:8px; margin-top:4px; }
.lp-metric{ border:1px solid rgba(255,255,255,0.08); border-radius:10px; padding:8px 10px; background:rgba(255,255,255,0.03); }
.lp-metric.lv-red{ border-color:rgba(229,72,77,0.5); background:rgba(229,72,77,0.08); }
.lp-metric.lv-yellow{ border-color:rgba(245,166,35,0.45); background:rgba(245,166,35,0.07); }
.lp-metric.lv-green{ border-color:rgba(109,78,214,0.4); background:rgba(109,78,214,0.06); }
/* 面诊参考值（非实测）：蓝色系，与绿/黄/红的实测档位一眼区分 */
.lp-metric.lv-ref{ border-color:rgba(91,141,239,0.4); background:rgba(91,141,239,0.06); }
.lp-m-top{ display:flex; align-items:center; gap:8px; margin-bottom:4px; }
.lp-m-name{ font-size:13px; font-weight:600; color:var(--ink); }
.lp-m-badge{ margin-left:auto; font-size:11px; color:#fff; padding:1px 8px; border-radius:20px; }
.lp-m-warn{ font-size:11px; color:#e5484d; font-weight:600; }
.lp-m-warn.y{ color:#f5a623; }
.lp-m-warn.r{ color:#5b8def; }
.lp-m-row{ display:flex; align-items:baseline; justify-content:space-between; }
.lp-m-val{ font-size:15px; font-weight:700; color:var(--ink); }
.lp-m-un{ font-size:13px; font-weight:400; color:var(--dim); }
.lp-m-ref{ font-size:11px; color:var(--dim); }
.lp-m-banner{ font-size:12px; padding:8px 10px; border-radius:8px; margin-bottom:8px; line-height:1.5; }
.lp-m-banner.red{ background:rgba(229,72,77,0.12); color:#ff8a8e; border:1px solid rgba(229,72,77,0.4); }
.lp-m-banner.yellow{ background:rgba(245,166,35,0.12); color:#ffcf7a; border:1px solid rgba(245,166,35,0.4); }
.lp-m-banner.green{ background:rgba(109,78,214,0.12); color:#9f8ff0; border:1px solid rgba(109,78,214,0.4); }

/* 近期趋势 / 快捷建议 / 更新时间戳（参考健康罗盘可取项补齐） */
.lp-trend-row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:4px 2px; }
.lp-trend-badge{ font-size:12px; color:var(--jade); font-weight:600; }
.lp-trend-item{ display:flex; flex-direction:column; align-items:center; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:10px; padding:6px 12px; }
.lp-trend-name{ font-size:11px; color:var(--dim); }
.lp-trend-pct{ font-size:15px; font-weight:700; }
.lp-quick-tips{ display:flex; gap:8px; flex-wrap:wrap; }
.lp-chip{ font-size:12px; color:var(--ink); background:rgba(167,139,250,0.12); border:1px solid rgba(167,139,250,0.3); border-radius:30px; padding:6px 12px; }
.lp-updated{ display:flex; justify-content:space-between; font-size:11px; color:var(--dim); margin-top:2px; }

/* 好友申请列表 */
.fh-req{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13px; color:var(--ink); padding:8px 10px; border-radius:10px; background:rgba(255,255,255,0.03); margin:6px 0; }
.fh-req .dim{ font-size:12px; }

/* 家庭健康监控主页：成员列表（2026-08-24 导航修复） */
.fh-member-list{ display:flex; flex-direction:column; gap:8px; margin:6px 0 4px; }
.fh-member-card{ display:flex; align-items:center; gap:12px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.08); border-radius:12px; padding:12px 14px; cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:rgba(0,0,0,0); }
.fh-member-card:active{ transform:scale(.985); background:rgba(255,255,255,0.07); }
.fh-member-avatar{ width:40px; height:40px; border-radius:50%; background:linear-gradient(135deg,var(--jade-deep),var(--mist)); color:#160a2e; font-weight:700; font-size:18px; display:flex; align-items:center; justify-content:center; flex:0 0 auto; }
.fh-member-info{ flex:1; display:flex; align-items:center; gap:8px; font-size:15px; color:var(--ink); flex-wrap:wrap; }
.fh-member-go{ color:var(--dim); font-size:22px; flex:0 0 auto; }

/* 健康罗盘：动态解读区块文字加深（2026-08-24 13:34） */
.lp-dynamic{ background:rgba(167,139,250,0.08); border:1px solid rgba(167,139,250,0.22); border-radius:12px; padding:12px 14px; margin:10px 0; }
.lp-dynamic{ color:var(--ink); font-size:14px; font-weight:600; line-height:1.5; }
.lp-dynamic-text{ display:block; margin-top:6px; color:var(--ink); font-size:13px; font-weight:400; line-height:1.7; white-space:pre-wrap; word-break:break-word; }
.lp-dynamic .disclaimer{ margin-top:10px; color:var(--ink-soft); font-size:11px; line-height:1.6; background:rgba(255,255,255,0.06); border-left:3px solid var(--mist); padding:8px 12px; border-radius:6px; }

/* 健康罗盘：扫脸分析结果显示区块（2026-08-24 15:25） */
.lp-face-grid{ display:grid; grid-template-columns:auto 1fr; gap:6px 14px; margin:4px 0 2px; font-size:13px; line-height:1.6; }
.lp-face-grid dt{ color:var(--ink-soft); white-space:nowrap; }
.lp-face-grid dd{ color:var(--ink); margin:0; font-weight:500; }
.lp-face-grid + .disclaimer{ margin-top:8px; }
.lp-face-none{ color:var(--ink-soft); font-size:13px; line-height:1.8; }

/* 全屏登录/注册页 auth-page（2026-08-24 退出/切换账号显示）：覆盖主内容区 */
.auth-page{ position:fixed; inset:0; z-index:9999; display:flex; align-items:flex-start; justify-content:center;
  background:radial-gradient(120% 120% at 50% 0%, rgba(26,16,52,0.96), rgba(13,10,26,0.98));
  padding:calc(24px + env(safe-area-inset-top)) 24px 24px; box-sizing:border-box;
  overflow-y:auto; -webkit-overflow-scrolling:touch; }
.auth-page.hidden{ display:none; }
.auth-card{ width:100%; max-width:360px; border-radius:20px; padding:34px 26px 22px; text-align:center; margin:auto 0; flex-shrink:0;
  background:rgba(255,255,255,0.05); border:1px solid rgba(167,139,250,0.18); box-shadow:0 18px 50px rgba(0,0,0,0.45); }
.auth-brand{ margin-bottom:26px; }
.auth-logo{ font-size:46px; line-height:1; }
.auth-title{ font-size:26px; font-weight:800; color:var(--ink); letter-spacing:4px; margin-top:8px; }
.auth-sub{ font-size:13px; color:var(--ink-soft); margin-top:6px; letter-spacing:1px; }
.auth-btn{ width:100%; height:48px; border:none; border-radius:12px; font-size:16px; font-weight:600;
  margin-top:14px; cursor:pointer; background:linear-gradient(135deg,var(--jade),var(--jade-deep)); color:#160a2e;
  touch-action:manipulation; -webkit-tap-highlight-color:rgba(0,0,0,0); }
.auth-btn:active{ transform:scale(.985); }
.auth-btn-ghost{ background:rgba(255,255,255,0.08); color:var(--ink); border:1px solid rgba(167,139,250,0.25); }
.auth-btn-text{ background:transparent; color:var(--ink-soft); font-weight:500; font-size:14px; margin-top:8px; }
.auth-foot{ margin-top:20px; font-size:11px; color:var(--ink-soft); line-height:1.6; opacity:.8; }

/* ==== 用户主页 user-profile (p38 2026-08-25) ==== */
.up-view{ padding:0 0 30px; color:var(--ink); }
.up-head{ position:relative; padding:18px 16px 0; background:linear-gradient(160deg,#c5d4d7 0%,#a8b9c9 30%,#9b8aab 65%,#7a8aaf 100%); }
.up-cover{ position:absolute; inset:0 0 auto 0; height:200px; background-size:cover; background-position:center; opacity:.7; pointer-events:none; }
.up-head::after{ content:""; position:absolute; left:0; right:0; top:0; bottom:0; background:linear-gradient(180deg,rgba(0,0,0,0) 0%,rgba(0,0,0,0.18) 100%); pointer-events:none; }
.up-topbar{ position:relative; display:flex; align-items:center; justify-content:space-between; z-index:2; }
.up-back{ width:34px; height:34px; border-radius:50%; background:rgba(0,0,0,0.32); color:#fff; border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; touch-action:manipulation; }
.up-back:active{ transform:scale(.95); }
.up-top-actions{ display:flex; gap:8px; align-items:center; }
.up-iconbtn{ display:flex; align-items:center; gap:4px; padding:6px 12px; border-radius:18px; background:rgba(0,0,0,0.32); color:#fff; border:none; font-size:13px; cursor:pointer; touch-action:manipulation; }
.up-iconbtn:active{ transform:scale(.95); }
.up-iconbtn svg{ vertical-align:-2px; }
.up-idcard{ position:relative; display:flex; align-items:flex-end; gap:14px; padding:14px 0 14px 6px; z-index:2; }
.up-avatar-wrap{ position:relative; flex:0 0 auto; }
.up-avatar{ width:64px; height:64px; border-radius:50%; border:3px solid #fff; background:linear-gradient(135deg,#ffd1dc,#a0c4ff); background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:24px; color:#fff; box-shadow:0 4px 14px rgba(0,0,0,0.25); }
.up-live{ position:absolute; left:50%; bottom:-8px; transform:translateX(-50%); background:#ff3a5e; color:#fff; font-size:11px; padding:2px 9px; border-radius:10px; border:2px solid #fff; font-weight:600; white-space:nowrap; }
.up-id{ flex:1; min-width:0; }
.up-name{ font-size:20px; font-weight:800; color:#fff; text-shadow:0 1px 6px rgba(0,0,0,0.5); line-height:1.2; }
.up-verify{ display:flex; align-items:center; gap:8px; margin-top:3px; font-size:12px; color:rgba(255,255,255,0.92); text-shadow:0 1px 3px rgba(0,0,0,0.4); }
.up-copy-btn{ padding:2px 8px; border-radius:10px; background:rgba(255,255,255,0.22); color:#fff; border:none; font-size:11px; cursor:pointer; touch-action:manipulation; }
.up-copy-btn:active{ transform:scale(.94); }
.up-stats{ display:flex; align-items:center; gap:0; padding:14px 0 12px; background:#fff; border-bottom:1px solid rgba(0,0,0,0.04); }
.up-stat{ flex:1; text-align:center; color:#222; }
.up-stat b{ display:block; font-size:18px; font-weight:700; line-height:1.1; color:#111; }
.up-stat span{ display:block; font-size:12px; color:#666; margin-top:3px; }
.up-stat-favs{ border-left:1px dashed rgba(0,0,0,0.08); }
.up-bio{ padding:14px 16px 8px; background:#fff; }
.up-bios{ font-size:14px; color:#222; line-height:1.7; white-space:pre-wrap; word-break:break-word; }
.up-bios:empty::before{ content:"这位道友很神秘，还没有留下简介～"; color:#999; }
.up-region{ margin-top:8px; font-size:12px; color:#888; }
.up-actions{ display:flex; gap:10px; padding:12px 16px 14px; background:#fff; }
.up-btn{ flex:1; height:38px; border:none; border-radius:19px; font-size:14px; font-weight:600; cursor:pointer; touch-action:manipulation; display:flex; align-items:center; justify-content:center; gap:4px; -webkit-tap-highlight-color:rgba(0,0,0,0); }
.up-btn:active{ transform:scale(.985); }
.up-btn-follow{ background:linear-gradient(135deg,#ff5b6e,#ff2e51); color:#fff; box-shadow:0 4px 12px rgba(255,46,81,0.35); }
.up-btn-follow.is-following{ background:rgba(0,0,0,0.06); color:#333; box-shadow:none; }
.up-btn-msg{ background:rgba(0,0,0,0.06); color:#222; }
.up-btn-me{ background:linear-gradient(135deg,#ffd56a,#ff9a3c); color:#5b3300; }
.up-tabs{ display:flex; align-items:center; gap:0; padding:0 8px; background:#fff; border-bottom:1px solid rgba(0,0,0,0.06); border-top:1px solid rgba(0,0,0,0.04); position:sticky; top:0; z-index:3; }
.up-tabs span{ flex:1; text-align:center; padding:11px 0; font-size:14px; color:#888; position:relative; cursor:pointer; touch-action:manipulation; }
.up-tabs span em{ font-style:normal; font-size:11px; color:#aaa; margin-left:3px; }
.up-tabs span.active{ color:#111; font-weight:700; }
.up-tabs span.active::after{ content:""; position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:30%; height:3px; border-radius:3px 3px 0 0; background:#ff2e51; }
.up-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px; padding:6px; background:#fff; }
.up-cell{ cursor:pointer; position:relative; }
.up-cell-thumb{ position:relative; border-radius:6px; overflow:hidden; background:#1a2233; }
.up-cell-img{ width:100%; height:100%; object-fit:cover; display:block; }
.up-cell-sym{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:36px; color:rgba(255,255,255,0.6); background:linear-gradient(155deg,#3b4960,#1d2330); }
.up-cell-type{ position:absolute; left:6px; top:6px; padding:1px 6px; border-radius:4px; background:rgba(0,0,0,0.55); color:#fff; font-size:10px; }
.up-cell-stat{ position:absolute; right:6px; bottom:6px; padding:1px 7px; border-radius:10px; background:rgba(0,0,0,0.55); color:#fff; font-size:11px; display:flex; align-items:center; gap:3px; }
.up-cell-title{ font-size:12px; color:#222; line-height:1.3; margin-top:4px; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
.section.dim{ padding:24px 12px; text-align:center; color:#999; font-size:13px; }
.dim{ color:#999; }

/* 列表卡片上的作者名链：可在首页/feed 上点击作者名进入用户主页 */
.feed-author-link,.detail-name-link,.rail-avatar-link{ cursor:pointer; color:inherit; text-decoration:none; }

/* ==== 私信页 chat (p38 2026-08-25) ==== */
.chat-view{ display:flex; flex-direction:column; height:100%; min-height:520px; background:#f5f5f7; }
.chat-head{ display:flex; align-items:center; gap:12px; padding:10px 14px; background:#fff; border-bottom:1px solid rgba(0,0,0,0.06); position:sticky; top:0; z-index:5; }
.chat-back{ width:34px; height:34px; border-radius:50%; background:transparent; border:none; display:flex; align-items:center; justify-content:center; color:#222; cursor:pointer; }
.chat-back:active{ transform:scale(.95); }
.chat-title{ flex:1; font-size:16px; font-weight:700; color:#222; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-peer-avatar{ width:32px; height:32px; border-radius:50%; background:linear-gradient(135deg,#ffd1dc,#a0c4ff); background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:14px; }
.chat-body{ flex:1; overflow-y:auto; padding:12px 14px; }
.chat-date{ text-align:center; font-size:11px; color:#999; margin:8px 0; }
.chat-bubble{ max-width:74%; margin:4px 0; padding:10px 12px; border-radius:14px; font-size:14px; line-height:1.5; word-break:break-word; box-shadow:0 1px 2px rgba(0,0,0,0.06); }
.chat-bubble.peer{ background:#fff; color:#222; border-top-left-radius:4px; margin-right:auto; }
.chat-bubble.mine{ background:linear-gradient(135deg,#6ec1ff,#3a8dff); color:#fff; border-top-right-radius:4px; margin-left:auto; }
.chat-text{ white-space:pre-wrap; word-break:break-word; }
.chat-time{ font-size:10px; opacity:.7; margin-top:3px; text-align:right; }
.chat-bubble.peer .chat-time{ color:#888; }
.chat-bubble.mine .chat-time{ color:#f0f8ff; }
.chat-input{ display:flex; align-items:flex-end; gap:8px; padding:10px; background:#fff; border-top:1px solid rgba(0,0,0,0.06); }
#chat-input{ flex:1; min-height:38px; max-height:120px; padding:8px 12px; border-radius:18px; border:1px solid rgba(0,0,0,0.1); background:#f5f5f7; font-size:14px; resize:none; outline:none; font-family:inherit; line-height:1.5; }
#chat-input:focus{ border-color:#3a8dff; background:#fff; }
.chat-send{ width:64px; height:38px; border:none; border-radius:19px; background:linear-gradient(135deg,#6ec1ff,#3a8dff); color:#fff; font-size:14px; font-weight:600; cursor:pointer; }
.chat-send:active{ transform:scale(.95); }
.chat-send:disabled{ opacity:.6; cursor:wait; }

/* 让 sheet 内容能填满高度（私信面板需要） */
.sheet{ display:flex; flex-direction:column; min-height:520px; max-height:92vh; }
.sheet-body{ flex:1; overflow-y:auto; }

/* ===== 统一消息中心（p39：私信 + 通知 双区块）===== */
.msg-tabs{ display:flex; gap:18px; padding:2px 4px 10px; border-bottom:1px solid rgba(255,255,255,0.08); }
.msg-tabs span{ font-size:15px; color:var(--ink-dim); cursor:pointer; padding:4px 2px; position:relative; }
.msg-tabs span.active{ color:var(--ink); font-weight:600; }
.msg-tabs span.active::after{ content:''; position:absolute; left:50%; bottom:-11px; transform:translateX(-50%); width:22px; height:3px; border-radius:3px; background:var(--jade); }
.msg-sect{ display:flex; flex-direction:column; gap:8px; padding:12px 0; }
.msg-sect.hidden{ display:none; }
.msg-name{ font-size:14px; font-weight:600; color:var(--ink); }
.msg-last{ font-size:12px; color:var(--ink-dim); margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msg-notif.read{ opacity:.62; }
.msg-conv:hover, .msg-notif:hover{ border-color:rgba(160,150,210,0.35); }
.msg-avatar.notif-ico{ font-size:20px; }
.msg-dot{ width:9px; height:9px; border-radius:50%; background:#e0584e; flex-shrink:0; margin-left:auto; }
.msg-badge{ min-width:20px; height:20px; padding:0 6px; border-radius:999px; background:#e0584e; color:#fff; font-size:11px; font-weight:600; display:flex; align-items:center; justify-content:center; flex-shrink:0; }

/* 消息 tab 未读角标（挂在外层 nav-item 上） */
.msg-unread-badge{ position:absolute; top:2px; right:50%; transform:translateX(14px); min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#e0584e; color:#fff; font-size:11px; font-weight:700; display:flex; align-items:center; justify-content:center; z-index:5; box-shadow:0 0 0 2px var(--bg); }
.nav-item{ position:relative; }

/* 全局可点元素：iOS WebView 首次点击即派发 click，避免「要点好几次才有反应」 */
[data-app],[data-fh],button,.clickable,.me-edit,.me-line,.me-cell,.me-tool,.me-health-item,.me-stat,.nav-item,.rail-btn,.acc-item,.grid-item,.feed-card,.chip,.me-tab{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;}

/* 钱包签到按钮：当天已签→灰色禁用；未签→黄色（默认渐变）可点 */
.wallet-signin-btn.is-signed{ background:#3a3f3d !important; color:#a99fc8 !important; cursor:not-allowed; opacity:.75; }
.wallet-signin-btn:disabled{ cursor:not-allowed; }
/* 金额选择 chips */
.amt-chips{ display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 4px; }
.amt-chip{ background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); color:var(--ink-soft); border-radius:999px; padding:8px 16px; font-size:13px; cursor:pointer; transition:all .15s; }
.amt-chip.active,.amt-chip:active{ border-color:var(--jade,#b8a6f0); color:var(--jade,#b8a6f0); background:rgba(184,166,240,0.12); }
/* 通用输入框 */
.set-input{ width:100%; box-sizing:border-box; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); color:var(--ink,#fff); border-radius:var(--r-sm,10px); padding:10px 12px; font-size:14px; margin-top:6px; outline:none; }
.set-input:focus{ border-color:var(--jade,#b8a6f0); }


/* 分享面板（多平台转发） */
.share-sheet-mask{ position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:9996; display:flex; align-items:flex-end; opacity:0; transition:opacity .2s ease; }
.share-sheet-mask.show{ opacity:1; }
.share-sheet{ width:100%; background:#fff; border-radius:16px 16px 0 0; padding:18px 16px calc(18px + env(safe-area-inset-bottom,0)); transform:translateY(100%); transition:transform .25s ease; }
.share-sheet-mask.show .share-sheet{ transform:translateY(0); }
.share-sheet-title{ text-align:center; font-size:15px; color:#222; margin-bottom:18px; font-weight:600; }
.share-sheet-grid{ display:flex; flex-wrap:wrap; }
.share-item{ width:25%; display:flex; flex-direction:column; align-items:center; gap:8px; cursor:pointer; padding:6px 0; -webkit-tap-highlight-color:transparent; }
.share-item:active{ opacity:.7; }
.share-ico{ width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:24px; color:#fff; }
.share-ico.wx{ background:#6d4ed6; }
.share-ico.pyq{ background:#5b3fd6; }
.share-ico.wb{ background:#e6614c; }
.share-ico.qq{ background:#4c9bff; }
.share-ico.copy{ background:#8a8f99; }
.share-ico.sys{ background:#7a6cf0; }
.share-item span{ font-size:12px; color:#555; }
.share-sheet-cancel{ width:100%; margin-top:18px; padding:13px 0; border:none; background:#f2f3f5; border-radius:12px; font-size:15px; color:#333; cursor:pointer; }
/* 抖音式分享面板（20260828 重做） */
.share-sheet-grid{ display:flex; gap:16px; overflow-x:auto; padding:2px 2px 6px; -webkit-overflow-scrolling:touch; }
.share-item{ flex:0 0 auto; width:56px; text-align:center; font-size:12px; color:#333; cursor:pointer; }
.share-ico{ width:48px; height:48px; border-radius:50%; margin:0 auto 6px; display:flex; align-items:center; justify-content:center; font-size:24px; color:#fff; box-shadow:0 2px 6px rgba(0,0,0,.12); background:#8a8f99; }
.share-sheet-title{ text-align:center; font-size:15px; color:#222; margin-bottom:16px; font-weight:600; }
.share-sheet-cancel{ width:100%; margin-top:14px; padding:13px 0; border:none; background:#f2f3f5; border-radius:12px; font-size:15px; color:#333; cursor:pointer; }
/* 微信内分享引导 */
.wx-guide-mask{ position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:9998; opacity:0; transition:opacity .2s ease; }
.wx-guide-mask.show{ opacity:1; }
.wx-guide-box{ position:absolute; top:8px; right:14px; text-align:right; color:#fff; }
.wx-guide-arrow{ font-size:46px; line-height:1; animation:bob 1s infinite; }
.wx-guide-txt{ font-size:15px; margin-top:4px; }
@keyframes bob{ 0%,100%{transform:translate(0,0)} 50%{transform:translate(6px,-6px)} }

/* 地址管理表单：省/市/区 三级联动 + 宽屏适配（修复保存框过窄） */
.mall-form{ padding:14px 16px; background:#0d0a1a; }
.mall-form .am-lab{ display:block; color:#a99fe0; font-size:13px; margin:12px 0 6px; }
.mall-form .am-input{ width:100%; box-sizing:border-box; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); color:#f3eaff; border-radius:10px; padding:12px; font-size:15px; font-family:inherit; outline:none; }
.mall-form textarea.am-input{ resize:vertical; line-height:1.5; }
.mall-form .am-region{ display:flex; flex-wrap:wrap; gap:8px; }
.mall-form .am-sel{ flex:1 1 30%; min-width:0; box-sizing:border-box; background:rgba(255,255,255,.06); color:#f3eaff; border:1px solid rgba(255,255,255,.14); border-radius:10px; padding:11px 6px; font-size:13px; font-family:inherit; outline:none; }
.mall-form .am-save{ width:100%; margin-top:18px; padding:15px 16px; font-size:16px; font-weight:700; letter-spacing:1px; border:none; border-radius:12px; line-height:1.2; box-sizing:border-box; cursor:pointer; box-shadow:0 4px 14px rgba(47,158,110,.35); }

/* ===== 消息页顶部分类入口：赞和收藏 / 新增关注 / 评论和@ ===== */
.msg-categories{ display:flex; gap:10px; padding:6px 2px 14px; }
.msg-cat{ flex:1; display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; -webkit-tap-highlight-color:transparent; }
.msg-cat:active{ opacity:.72; transform:translateY(1px); }
.msg-cat-ico{ position:relative; width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:23px; color:#fff; box-shadow:0 4px 12px rgba(0,0,0,.28); transition:transform .15s; }
.msg-cat-ico.like{ background:linear-gradient(135deg,#ff7a8c,#e0584e); box-shadow:0 4px 12px rgba(224,88,78,.32); }
.msg-cat-ico.follow{ background:linear-gradient(135deg,#a99fe0,#5b3fd6); box-shadow:0 4px 12px rgba(58,143,111,.32); }
.msg-cat-ico.comment{ background:linear-gradient(135deg,#e6c275,#c9a45c); box-shadow:0 4px 12px rgba(201,164,92,.32); }
.msg-cat-badge{ position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; padding:0 5px; border-radius:999px; background:#e0584e; color:#fff; font-size:10px; font-weight:600; display:flex; align-items:center; justify-content:center; }
.msg-cat-label{ font-size:12px; color:var(--ink-soft,#cfc8e3); }
.msg-cat:active .msg-cat-label{ color:var(--ink,#fff); }

/* ===== 分类详情 sheet 列表 ===== */
.msg-cat-list{ display:flex; flex-direction:column; gap:10px; padding:4px 2px; }
.msg-cat-row{ display:flex; align-items:flex-start; gap:12px; padding:12px; background:var(--bg-glass, rgba(255,255,255,.06)); border:1px solid rgba(255,255,255,.08); border-radius:var(--r-md,12px); cursor:pointer; }
.msg-cat-avatar{ width:46px; height:46px; border-radius:50%; overflow:hidden; background:linear-gradient(135deg,var(--jade-deep,#1a1438),var(--mist,#7a6cb0)); display:flex; align-items:center; justify-content:center; font-size:20px; color:#fff; flex-shrink:0; }
.msg-cat-avatar img{ width:100%; height:100%; object-fit:cover; }
.msg-cat-main{ flex:1; min-width:0; }
.msg-cat-name{ font-size:14px; font-weight:600; color:var(--ink,#fff); margin-bottom:3px; }
.msg-cat-text{ font-size:13px; color:var(--ink-soft,#cfc8e3); line-height:1.5; word-break:break-word; }
.msg-cat-time{ font-size:11px; color:var(--ink-dim,#8a86a3); margin-top:5px; }
.msg-cat-actions{ margin-top:9px; }
.msg-cat-actions .btn{ font-size:13px; padding:8px 18px; border-radius:999px; }
.msg-cat-empty{ text-align:center; color:var(--ink-dim,#8a86a3); font-size:14px; padding:40px 0; }

/* ===== 2026-09-05 汉堡抽屉改版 + 宫格层级 + 订单评价 + 客服会话 ===== */
@keyframes slideInLeft { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
/* 首页左抽屉：宽度 = 屏宽 2/3（2026-09-05 二改） */
#home-drawer { align-items: stretch; justify-content: flex-start; padding-bottom: 0; }
#home-drawer .hd-sheet { width: 66.67%; max-width: 420px; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; background: linear-gradient(180deg, rgba(20,15,44,0.98), rgba(13,10,26,0.99)); padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px 24px; animation: slideInLeft .22s ease; box-shadow: 8px 0 30px rgba(0,0,0,.4); }
.hd-top { display:flex; align-items:center; gap:6px; margin-bottom:12px; }
.hd-loc { color:var(--ink); font-size:13px; font-weight:600; cursor:pointer; display:flex; align-items:center; gap:2px; max-width:54%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.hd-weather { color:var(--ink-soft); font-size:12px; cursor:pointer; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
/* ===== 定位来源标记 + 定位管理面板（2026-09-05：修复 PWA 城市定位不准） ===== */
/* 城市名旁的小字：区分 GPS 精确 / 手动 / IP估算，避免用户被不准的结果误导 */
.hd-loc-mode { font-size:10px; font-weight:500; margin-left:3px; white-space:nowrap; opacity:.9; }
.hd-loc-mode.ok { color:#a78bfa; }
.hd-loc-mode.warn { color:#e8c87a; }
.hd-menu-sheet { width:100%; border-radius:18px 18px 0 0; max-height:78vh; display:flex; flex-direction:column; overflow:hidden; animation:slideUp .25s ease; background:linear-gradient(180deg,rgba(20,15,44,0.97),rgba(13,10,26,0.99)) !important; border:1px solid rgba(167,139,250,0.18); }
.hd-menu-head { display:flex; align-items:center; justify-content:space-between; padding:14px 16px 12px; border-bottom:1px solid rgba(167,139,250,0.12); flex-shrink:0; }
.hd-menu-head .title { font-family:var(--font-title); font-size:15px; color:#f3e9c8; }
.hd-menu-x { background:transparent; border:none; color:var(--ink-soft); font-size:20px; cursor:pointer; padding:2px 6px; }
.hd-menu-body { padding:14px 16px calc(20px + env(safe-area-inset-bottom)); overflow-y:auto; -webkit-overflow-scrolling:touch; }
.hd-menu-cur { text-align:center; padding:4px 0 16px; border-bottom:1px solid rgba(167,139,250,0.12); margin-bottom:12px; }
.hd-menu-cur-city { font-size:22px; font-weight:700; color:#f3e9c8; letter-spacing:1px; }
.hd-menu-cur-mode { font-size:12px; margin-top:6px; color:var(--ink-soft); }
.hd-menu-cur-mode.ip, .hd-menu-cur-mode.cache, .hd-menu-cur-mode.default { color:#e8c87a; }
.hd-menu-item { width:100%; display:flex; align-items:center; gap:12px; padding:12px; margin-bottom:8px; background:rgba(255,255,255,0.04); border:1px solid rgba(167,139,250,0.12); border-radius:12px; cursor:pointer; text-align:left; color:var(--ink); transition:background .15s, border-color .15s; }
.hd-menu-item:active { background:rgba(167,139,250,0.1); }
.hd-menu-ico { font-size:18px; width:24px; text-align:center; flex-shrink:0; }
.hd-menu-txt { flex:1; display:flex; flex-direction:column; gap:3px; min-width:0; }
.hd-menu-txt b { font-size:14px; font-weight:600; }
.hd-menu-txt em { font-size:11px; font-style:normal; color:var(--ink-soft); line-height:1.45; }
.hd-menu-arrow { flex-shrink:0; opacity:.45; display:flex; align-items:center; }
.hd-menu-arrow svg { width:15px; height:15px; }
.hd-menu-note { margin-top:10px; }
.hd-menu-tip { font-size:11.5px; line-height:1.65; color:#e8c87a; background:rgba(232,200,122,0.08); border:1px solid rgba(232,200,122,0.22); border-radius:10px; padding:9px 11px; margin-bottom:8px; }
.hd-menu-tip b { color:#f3e9c8; }
/* 定位不准时的可点徽章 + 一键切 HTTPS 按钮（2026-09-06：IP 定位跨省漂移，广元被判陕西） */
.hd-loc-mode.tappable { cursor:pointer; border-bottom:1px dotted currentColor; padding-bottom:1px; }
.hd-https-btn { display:block; width:100%; margin-top:9px; padding:10px 12px; font-size:12.5px; font-weight:600; line-height:1.4; color:#1a1438; background:linear-gradient(180deg,#a78bfa,#8f7fe0); border:none; border-radius:10px; cursor:pointer; font-family:inherit; box-shadow:0 2px 8px rgba(124,92,255,0.25); }
.hd-https-btn:active { transform:translateY(1px); box-shadow:0 1px 4px rgba(124,92,255,0.2); }
.hd-https-note { display:block; margin-top:7px; font-size:10.5px; line-height:1.6; color:#d6c69c; opacity:.85; }
.hd-set { display:flex; align-items:center; gap:4px; background:var(--bg-glass); border:1px solid rgba(255,255,255,.12); border-radius:999px; padding:4px 10px; color:var(--ink); font-size:12px; cursor:pointer; flex-shrink:0; }
.hd-set span{display:flex} .hd-set span svg{width:14px;height:14px} .hd-set em{font-style:normal}
.hd-quick { display:grid; grid-template-columns:repeat(4,1fr); gap:4px; margin-bottom:10px; }
.hd-quick-item { display:flex; flex-direction:column; align-items:center; gap:4px; padding:6px 0; cursor:pointer; color:var(--ink); }
.hd-qico { width:34px;height:34px;border-radius:11px;background:var(--bg-glass);border:1px solid rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;font-size:16px;line-height:1; }
.hd-qico svg{width:17px;height:17px} .hd-quick-item em{font-style:normal;font-size:11px}
.hd-card { background:var(--bg-glass); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:10px; margin-bottom:10px; }
.hd-card-head { color:var(--ink); font-weight:600; font-size:12px; margin-bottom:8px; }
.hd-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px 4px; }
.hd-item { display:flex; flex-direction:column; align-items:center; gap:5px; cursor:pointer; color:var(--ink); }
.hd-ico { width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.07);display:flex;align-items:center;justify-content:center;font-size:17px;line-height:1; }
.hd-ico svg{width:18px;height:18px} .hd-item em{font-style:normal;font-size:11px}
.hd-ico-emoji, .hd-qico-emoji { font-size:17px; }
/* 左抽屉内容扩充（2026-09-05）：服务列表 / 今日提示 / 底部备案信息 */
.hd-list { display:flex; flex-direction:column; }
.hd-row { display:flex; align-items:center; gap:8px; padding:8px 2px; cursor:pointer; color:var(--ink); border-top:1px solid rgba(255,255,255,.06); }
.hd-row:first-child { border-top:none; }
.hd-row:active { background:rgba(255,255,255,.05); border-radius:8px; }
.hd-row-ico { width:24px;height:24px;border-radius:8px;background:rgba(255,255,255,.07);display:flex;align-items:center;justify-content:center;flex-shrink:0; }
.hd-row-ico svg{width:14px;height:14px}
.hd-row-txt { flex:1; font-size:12px; }
.hd-row-arrow { display:flex; color:var(--ink-soft); opacity:.55; flex-shrink:0; }
.hd-row-arrow svg{width:14px;height:14px}
.hd-tip { display:flex; align-items:flex-start; gap:6px; padding:3px 2px; color:var(--ink-soft); font-size:11.5px; line-height:1.55; }
.hd-tip-ico { flex-shrink:0; font-size:13px; line-height:1.45; }
.hd-tip-txt { flex:1; }
.hd-foot { text-align:center; color:var(--ink-soft); opacity:.45; font-size:10.5px; padding:10px 0 2px; }
/* 【我】页右抽屉：宽度 = 屏宽 2/3；二级面板同为往左拉伸 */
#menu-panel { align-items: stretch; justify-content: flex-end; padding-bottom: 0; }
#menu-panel .menu-sheet { height:100%; max-height:100%; width:66.67%; max-width:380px; margin:0 0 0 auto; border-radius:0; animation:slideInRight .22s ease; padding:calc(env(safe-area-inset-top, 0px) + 12px) 12px 24px; box-shadow:-8px 0 30px rgba(0,0,0,.4); }
/* 右抽屉整体字号收紧 */
#menu-panel .menu-top { margin-bottom:10px; padding:4px 0 8px; }
#menu-panel .menu-back svg { width:20px; height:20px; }
#menu-panel .menu-settings, #menu-panel .menu-scan { font-size:12px; gap:4px; }
#menu-panel .menu-settings span svg, #menu-panel .menu-scan span svg { width:15px; height:15px; }
#menu-panel .menu-settings em, #menu-panel .menu-scan em { font-size:11px; }
#menu-panel .menu-body { gap:9px; }
#menu-panel .menu-card { border-radius:12px; padding:2px 11px; }
#menu-panel .menu-row { padding:11px 0; font-size:13px; gap:10px; }
#menu-panel .menu-ico svg { width:17px; height:17px; }
#menu-panel .menu-ico-emoji { font-size:17px; line-height:1; }
#menu-panel .menu-tip { font-size:11px; }
#menu-panel .menu-more { padding:11px; font-size:13px; border-radius:12px; margin-top:4px; }
#menu-panel .menu-more span svg { width:16px; height:16px; }
/* 二级面板（设置/钱包/订单/客服/券包/支付设置）：从右往左拉伸，宽度 2/3 屏 */
.settings-panel.drawer-right { flex-direction: row; align-items: stretch; justify-content: flex-end; padding: 0; }
.settings-panel.drawer-right > .settings-sheet { width: 66.67%; max-width: 380px; height: 100%; max-height: 100%; margin: 0; border-radius: 0; border-left: 1px solid rgba(167,139,250,0.18); border-top: none; animation: slideInRight .22s ease; padding: calc(env(safe-area-inset-top, 0px) + 12px) 12px calc(24px + env(safe-area-inset-bottom, 0px)); box-shadow: -8px 0 30px rgba(0,0,0,.4); }
.settings-panel.drawer-right > .settings-sheet .settings-head { margin-bottom: 8px; }
.settings-panel.drawer-right > .settings-sheet .settings-head .title { font-size: 15px; }
.settings-panel.drawer-right > .settings-sheet .set-row { padding: 11px 4px; font-size: 13px; }
.settings-panel.drawer-right > .settings-sheet .settings-head-right { gap: 10px; }
/* 券包卡片 */
.coupon-card { display:flex; align-items:center; gap:12px; background:var(--bg-glass); border:1px solid rgba(255,255,255,.1); border-radius:10px; padding:10px 12px; margin-bottom:8px; }
.coupon-left { display:flex; flex-direction:column; align-items:center; min-width:64px; color:var(--jade); }
.coupon-left b { font-size:16px; }
.coupon-left em { font-style:normal; font-size:10px; color:var(--ink-dim); margin-top:2px; }
.coupon-title { color:var(--ink); font-size:13px; }
.coupon-sub { color:var(--ink-dim); font-size:11px; margin-top:2px; }
/* 宫格从菜单打开时盖在菜单上（关宫格回菜单） */
.grid-panel.above-menu { z-index:80; }
/* 订单评价 */
.rv-tag { display:inline-block; padding:4px 10px; border-radius:999px; background:var(--bg-glass); border:1px solid rgba(255,255,255,.12); color:var(--ink); font-size:12px; cursor:pointer; }
.rv-tag.on { background:rgba(167,139,250,.25); border-color:#a78bfa; color:#b8a6f0; }
/* 客服会话 */
.svc-thread { height:56vh; overflow-y:auto; -webkit-overflow-scrolling:touch; padding:4px 0 10px; }
.svc-msg { display:flex; margin-bottom:10px; }
.svc-msg.mine { justify-content:flex-end; }
.svc-bubble { max-width:78%; background:var(--bg-glass); border:1px solid rgba(255,255,255,.1); border-radius:12px; padding:8px 12px; color:var(--ink); font-size:14px; word-break:break-word; }
.svc-msg.mine .svc-bubble { background:rgba(167,139,250,.18); border-color:rgba(167,139,250,.35); }
.svc-who { display:block; font-size:11px; color:var(--ink-dim); margin-bottom:2px; }
.svc-time { display:block; font-size:10px; color:var(--ink-dim); text-align:right; margin-top:2px; }
.svc-inputbar { display:flex; gap:8px; margin-top:10px; }
.svc-inputbar input { flex:1; background:var(--bg-glass); border:1px solid rgba(255,255,255,.12); border-radius:999px; padding:8px 14px; color:var(--ink); font-size:14px; }

.scan-cam{ background:#05070a; }
.scan-cam::before{ content:''; position:absolute; inset:9%; border:1px solid rgba(255,255,255,.22); border-radius:12px; pointer-events:none; }
.scan-cam::after{ content:''; position:absolute; inset:0; pointer-events:none; box-shadow:inset 0 0 46px 14px rgba(0,0,0,.55); }
.scan-cam video{ transform:translateZ(0); }
