/* ============================================================
   超级通讯平台 · App 外壳布局（手机框 + 顶栏 + 底部Tab）
   ============================================================ */

/* 桌面舞台：左侧品牌信息 + 居中手机外壳 */
.stage {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  gap: 56px; padding: 40px 24px; flex-wrap: wrap;
}

/* 左侧品牌区（桌面宽屏显示） */
.brand-pane { width: 340px; }
.brand-logo {
  width: 64px; height: 64px; border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-size: 32px;
  box-shadow: var(--glow-primary); margin-bottom: var(--sp-4);
}
.brand-pane h1 { font-size: 30px; font-weight: 800; letter-spacing: .5px; }
.brand-pane .sub { color: var(--text-sub); font-size: var(--fs-16); margin-top: 10px; line-height: 1.7; }
.brand-pane .pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-6); }
.brand-pane .foot { margin-top: var(--sp-8); color: var(--text-faint); font-size: var(--fs-12); line-height: 1.8; }

/* —— 手机外壳 —— */
.phone {
  width: var(--phone-w); height: 860px; max-height: calc(100vh - 64px);
  background: var(--bg-base); border-radius: 40px; position: relative;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg), 0 0 0 8px rgba(255,255,255,0.02);
  display: flex; flex-direction: column; overflow: hidden;
}

/* 顶栏 */
.topbar {
  height: var(--topbar-h); flex: none; display: flex; align-items: center; gap: var(--sp-3);
  padding: 0 var(--sp-4); background: var(--bg-elevated);
  border-bottom: 1px solid var(--border); position: relative; z-index: 5;
}
.topbar .tb-title { font-size: var(--fs-18); font-weight: 700; flex: 1; }
.topbar .tb-btn {
  width: 38px; height: 38px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  color: var(--text-sub);
}
.topbar .tb-btn:hover { background: var(--bg-card-2); color: var(--accent); }
.topbar .tb-back { color: var(--text); }

/* 内容滚动区 */
.screen { flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; position: relative; }
.screen-pad { padding: var(--sp-3) var(--sp-4) calc(var(--tabbar-h) + 24px); }

/* 底部 Tab 栏 */
.tabbar {
  height: var(--tabbar-h); flex: none; display: flex; background: var(--bg-elevated);
  border-top: 1px solid var(--border); position: relative; z-index: 5;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-faint); font-size: var(--fs-12); transition: color .15s ease; position: relative;
}
.tab .ti { width: 24px; height: 24px; }
.tab.active { color: var(--primary); }
.tab.active .ti { filter: drop-shadow(0 0 6px rgba(59,130,246,0.6)); }
.tab .tab-badge { position: absolute; top: 8px; left: 56%; }

/* 搜索条 */
.searchbar { padding: var(--sp-2) var(--sp-4) 0; }
.searchbar .box {
  height: 38px; background: var(--bg-input); border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--text-faint); font-size: var(--fs-14);
  border: 1px solid var(--border);
}

/* 聊天气泡 */
.bubble-row { display: flex; gap: 8px; margin-bottom: var(--sp-4); align-items: flex-end; }
.bubble-row.me { flex-direction: row-reverse; }
.bubble {
  max-width: 72%; padding: 10px 13px; border-radius: 14px; font-size: var(--fs-14); line-height: 1.5;
  background: var(--bg-card-2); border: 1px solid var(--border);
}
.bubble-row.me .bubble { background: var(--primary); color: #fff; border-color: transparent; }
.sys-tip { text-align: center; color: var(--text-faint); font-size: var(--fs-12); margin: var(--sp-3) 0; }

/* 动态/Feed 卡片 */
.feed-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); margin-bottom: var(--sp-3); }
.feed-card .head { display: flex; gap: 10px; align-items: center; margin-bottom: var(--sp-3); }
.feed-card .name { font-weight: 600; }
.feed-card .time { font-size: var(--fs-12); color: var(--text-faint); }
.feed-card .body { font-size: var(--fs-14); line-height: 1.6; margin-bottom: var(--sp-3); }
.feed-card .imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: var(--sp-3); }
.feed-card .imgs .ph { aspect-ratio: 1; background: linear-gradient(135deg, #1d2942, #141b2d); border-radius: var(--r-sm); }
.feed-card .acts { display: flex; gap: var(--sp-6); color: var(--text-sub); font-size: var(--fs-13); padding-top: var(--sp-2); border-top: 1px solid var(--divider); }
.feed-card .acts span { display: flex; align-items: center; gap: 5px; }

/* 视频/发现 网格 */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.video-cell { aspect-ratio: 3/4; border-radius: var(--r-md); position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1c2740, #10162600); border: 1px solid var(--border); display: flex; align-items: flex-end; }
.video-cell .vinfo { padding: 10px; font-size: var(--fs-13); }
.video-cell .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.5); font-size: 30px; }

/* 我的-头部 */
.me-head { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-4); background: linear-gradient(135deg, #18233b, #0f1626); border-radius: var(--r-lg); border: 1px solid var(--border); }
.me-head .nm { font-size: var(--fs-22); font-weight: 700; }
.me-head .id { color: var(--text-sub); font-size: var(--fs-13); margin-top: 4px; }

/* 宫格入口 */
.grid-entries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.grid-entry { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 4px; border-radius: var(--r-md); cursor: pointer; transition: background .15s; }
.grid-entry:hover { background: var(--bg-card-2); }
.grid-entry .gi { width: 28px; height: 28px; color: var(--accent); }
.grid-entry .gl { font-size: var(--fs-12); color: var(--text-sub); }
.grid-entry.reserved .gi { color: var(--text-faint); }
.grid-entry .lock-mini { position: relative; }

/* 功能开关中心 */
.fc-group-title { display:flex; align-items:center; gap:8px; font-size: var(--fs-14); font-weight:700; color: var(--text); margin: var(--sp-4) var(--sp-2) var(--sp-2); }
.fc-row { display:flex; align-items:center; gap:12px; padding: var(--sp-3) var(--sp-4); }
.fc-row .fc-name { font-size: var(--fs-14); }
.fc-row .fc-desc { font-size: var(--fs-12); color: var(--text-faint); margin-top:2px; }

/* 响应式：窄屏隐藏左侧品牌区，手机壳铺满 */
@media (max-width: 820px) {
  .brand-pane { display: none; }
  .stage { padding: 0; }
  .phone { width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; border: none; box-shadow: none; }
}
