/* ============================================================
   念念生活助手 · 工作台首页（服务号风格）
   命名空间 .wb-*，仅作用于 #home 顶部工作台，不污染全站
   ============================================================ */

.wb { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }

/* ---------- 顶部品牌卡 ---------- */
.wb-hero {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 20px 20px 18px;
  color: #fff;
  background: linear-gradient(135deg, #2b6cff 0%, #4f9dff 55%, #6cc0ff 100%);
  box-shadow: 0 10px 26px rgba(43, 108, 255, .28);
}
.wb-hero::after { content: ""; position: absolute; right: -46px; bottom: -70px; width: 190px; height: 190px; border-radius: 50%; background: rgba(255,255,255,.14); }
.wb-hero::before { content: ""; position: absolute; right: 54px; top: -76px; width: 132px; height: 132px; border-radius: 50%; background: rgba(255,255,255,.10); }

.wb-hero-top { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wb-hero h1 { font-size: 20px; line-height: 1.3; letter-spacing: .5px; }
.wb-hero .wb-user { display: none; margin-top: 6px; font-size: 12px; opacity: .9; }
.wb-hero .wb-slogan { margin-top: 7px; font-size: 12.5px; letter-spacing: 1.5px; opacity: .92; }

.wb-hero-btn {
  flex-shrink: 0;
  border: 0; border-radius: 999px; padding: 8px 15px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.22); color: #fff;
  transition: background .15s;
}
.wb-hero-btn:hover { background: rgba(255,255,255,.36); }

.wb-hero-stats { position: relative; z-index: 1; display: flex; gap: 26px; margin-top: 16px; }
.wb-hero-stats .it b { display: block; font-size: 17px; line-height: 1.2; }
.wb-hero-stats .it span { font-size: 11px; opacity: .86; }

/* ---------- 公告条 ---------- */
.wb-notice {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 11px 14px; box-shadow: var(--shadow);
}
.wb-notice .tag {
  flex-shrink: 0; background: #fff4e6; color: #e07b1a;
  font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 6px;
}
.wb-notice .txt { flex: 1; min-width: 0; font-size: 13px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb-notice .more { flex-shrink: 0; font-size: 12px; color: var(--muted); cursor: pointer; }
.wb-notice .more:hover { color: var(--brand); }

/* ---------- 功能分组九宫格 ---------- */
.wb-group {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 15px 12px 6px; box-shadow: var(--shadow);
}
.wb-group-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ink); }
.wb-group-title::before { content: ""; width: 3px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.wb-group-title small { font-size: 11.5px; font-weight: 400; color: var(--muted); }

.wb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }

.wb-tile {
  border: 0; background: transparent; border-radius: 14px; cursor: pointer;
  padding: 12px 2px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: inherit; transition: background .15s, transform .15s;
}
.wb-tile:hover { background: #f5f8ff; transform: translateY(-2px); }
.wb-tile .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; background: #eef3ff; }
.wb-tile .lb { font-size: 12.5px; color: var(--ink); font-weight: 500; line-height: 1.2; text-align: center; }

/* 图标底色（浅色系，保持整站清爽） */
.wb-i-blue   .ico { background: #e8f0ff; }
.wb-i-green  .ico { background: #e6f9ee; }
.wb-i-purple .ico { background: #f1eaff; }
.wb-i-amber  .ico { background: #fff3e0; }
.wb-i-red    .ico { background: #ffeaea; }
.wb-i-teal   .ico { background: #e3f8f7; }
.wb-i-pink   .ico { background: #ffe9f3; }
.wb-i-slate  .ico { background: #eef1f6; }
.wb-i-gold   .ico { background: #fff6d9; }

/* ---------- 底部产品介绍 banner ---------- */
.wb-banner {
  position: relative; overflow: hidden;
  border-radius: 18px; padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #14203c 0%, #243b6b 55%, #3c5aa8 100%);
  box-shadow: 0 10px 26px rgba(20, 32, 60, .25);
}
.wb-banner::after { content: ""; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.07); }
.wb-banner h3 { position: relative; z-index: 1; font-size: 16px; margin-bottom: 7px; }
.wb-banner p { position: relative; z-index: 1; font-size: 12.5px; line-height: 1.75; opacity: .85; }
.wb-banner .btn {
  position: relative; z-index: 1; margin-top: 13px;
  background: #fff; color: #243b6b; text-decoration: none;
  display: inline-block;
}

/* ---------- 移动端 ---------- */
@media (max-width: 768px) {
  .wb { gap: 12px; }
  .wb-hero { padding: 16px 16px 15px; border-radius: 16px; }
  .wb-hero h1 { font-size: 18px; }
  .wb-hero-stats { gap: 20px; margin-top: 14px; }
  .wb-grid { gap: 2px; }
  .wb-tile { padding: 10px 0; }
  .wb-tile .ico { width: 46px; height: 46px; font-size: 23px; }
  .wb-tile .lb { font-size: 12px; }
  .wb-group { padding: 14px 8px 4px; border-radius: 14px; }
  .wb-banner { padding: 17px; border-radius: 16px; }
}
@media (max-width: 420px) {
  .wb-tile .ico { width: 43px; height: 43px; border-radius: 13px; font-size: 21px; }
  .wb-tile .lb { font-size: 11px; }
  .wb-hero-stats .it b { font-size: 16px; }
}

/* ---------- 移动端首屏瘦身 ----------
   顶栏的「预览视角」是管理/调试控件，「发布信息」「视频工厂」与九宫格重复，
   顶栏登录按钮与品牌卡按钮重复 —— 手机上统一隐藏，让工作台第一眼可见。
   （仅 CSS 隐藏，DOM 与 JS 逻辑不变，桌面端照常保留） */
@media (max-width: 768px) {
  .topbar .viewas,
  .topbar .btn[data-jump],
  .topbar #headerLoginBtn { display: none !important; }
}
