/* =========================================================
   企业积分系统 · 移动端样式
   设计基调：钉钉蓝渐变 + 积分金，玻璃拟态卡片、克制的微交互
   主题：light / dark / system 三态，通过 [data-theme] 切换
   ========================================================= */

:root {
  /* 次元系品牌色 */
  --brand-1: #6E5BFF;
  --brand-2: #8b7bff;
  --brand-3: #00D4B5;
  --gold-1: #FFB547;
  --gold-2: #ffd591;
  --danger: #f5533d;
  --success: #16a34a;

  --bg: #f4f6fb;
  --bg-grad: radial-gradient(1200px 600px at 50% -280px, #e6edff 0%, #f4f6fb 60%);
  --card: rgba(255, 255, 255, 0.86);
  --card-solid: #ffffff;
  --border: rgba(17, 24, 39, 0.07);
  --text: #101828;
  --text-sub: #667085;
  --text-dim: #98a2b3;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, 0.12);
  --shadow-lg: 0 20px 48px -16px rgba(43, 108, 255, 0.28);
  --tab-bg: rgba(255, 255, 255, 0.82);
  --skeleton: linear-gradient(90deg, #eceff5 25%, #f6f8fc 37%, #eceff5 63%);
  --gray-btn: #e7eaf1;
  --gray-btn-tx: #98a2b3;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

[data-theme='dark'] {
  --bg: #0b1020;
  --bg-grad: radial-gradient(1200px 600px at 50% -280px, #16224a 0%, #0b1020 60%);
  --card: rgba(255, 255, 255, 0.055);
  --card-solid: #151b2e;
  --border: rgba(255, 255, 255, 0.09);
  --text: #eaeefb;
  --text-sub: #98a2c3;
  --text-dim: #6b7595;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 48px -16px rgba(0, 0, 0, 0.7);
  --tab-bg: rgba(19, 25, 43, 0.86);
  --skeleton: linear-gradient(90deg, #1a2136 25%, #232b45 37%, #1a2136 63%);
  --gray-btn: #232b45;
  --gray-btn-tx: #6b7595;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  background: var(--bg);
  background-image: var(--bg-grad);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
}

/* 主内容容器：移动端单列（继承 .app 的限宽）；桌面端右栏滚动 */
.app-main {
  min-height: 100vh;
  padding-bottom: calc(76px + var(--safe-b));
  position: relative;
}

/* 桌面端侧边导航：移动端隐藏，由桌面媒体查询启用 */
.nav-side { display: none; }

/* ---------- 顶部 ---------- */
.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 16px 8px;
}
.topbar .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}
.topbar .avatar-fallback {
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px; font-weight: 600;
}
.topbar .who { flex: 1; min-width: 0; }
.topbar .hello { font-size: 13px; color: var(--text-sub); }
.topbar .name {
  font-size: 17px; font-weight: 650; letter-spacing: -0.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--card); backdrop-filter: blur(12px);
  display: grid; place-items: center; cursor: pointer; font-size: 16px;
  color: var(--text); transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.icon-btn:active { transform: scale(0.92); }

/* ---------- 通用卡片 ---------- */
.card {
  background: var(--card);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.sec { padding: 0 16px; margin-top: 16px; }
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0 0 10px;
}
.sec-title { font-size: 15px; font-weight: 650; letter-spacing: -0.2px; }
.sec-more { font-size: 12.5px; color: var(--brand-1); cursor: pointer; }

/* ---------- 余额主卡 ---------- */
.hero {
  margin: 8px 16px 0;
  padding: 22px 22px 18px;
  border-radius: 26px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1) 0%, #4a7dff 45%, #6f9bff 100%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}
/* 光晕：两个模糊圆增加纵深，纯 CSS 无图片开销 */
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; z-index: -1;
  background: rgba(255, 255, 255, 0.22); filter: blur(28px);
}
.hero::before { width: 180px; height: 180px; top: -70px; right: -40px; }
.hero::after { width: 140px; height: 140px; bottom: -80px; left: -30px; background: rgba(255, 209, 128, 0.32); }

.hero .label { font-size: 12.5px; opacity: 0.86; letter-spacing: 0.3px; }
.hero .amount {
  display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.hero .amount b {
  font-size: 42px; font-weight: 700; letter-spacing: -1.5px; line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.hero .amount span { font-size: 13px; opacity: 0.85; }
.hero .rank-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(6px);
}
.hero-stats {
  display: flex; gap: 8px; margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 14px;
}
.hero-stats div { flex: 1; }
.hero-stats .k { font-size: 11.5px; opacity: 0.8; }
.hero-stats .v { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
/* 积分有效期提醒（P1，2026-08-05） */
.expire-hint {
  margin-top: 12px; font-size: 12.5px; line-height: 1.5;
  padding: 8px 12px; border-radius: 12px;
  background: rgba(255, 181, 71, 0.16); border: 1px solid rgba(255, 181, 71, 0.42);
  color: #fff;
}

/* ---------- 签到 ---------- */
.checkin {
  margin: 14px 16px 0; padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.checkin .ci-ico {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  font-size: 20px; background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  box-shadow: 0 6px 16px -6px rgba(255, 159, 28, 0.7);
}
.checkin .ci-txt { flex: 1; min-width: 0; }
.checkin .ci-t { font-size: 14.5px; font-weight: 620; }
.checkin .ci-s { font-size: 12px; color: var(--text-sub); }

/* 第一阶段 A2/A3：连击狂欢 / 月度满贯 / 初代满贯 进度条 */
.streak-block { padding: 14px 16px; }
.streak-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.streak-bar { flex: 1; height: 8px; background: var(--bg-2, rgba(0,0,0,.06)); border-radius: 4px; overflow: hidden; }
.streak-fill { height: 100%; border-radius: 4px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.streak-fill.fire     { background: linear-gradient(90deg, #ff7a45, #ff4757); }
.streak-fill.thunder  { background: linear-gradient(90deg, #6E5BFF, #00D4B5); }
.streak-fill.gold     { background: linear-gradient(90deg, #FFB547, #ff7a45); }
/* 初代满贯：静态渐变（此前的 streakShine 无限滑动动画已按需求移除） */
.streak-fill.crown    { background: linear-gradient(90deg, #FFB547, #ff4757, #6E5BFF); }
.streak-text { font-size: 12px; color: var(--text-dim, #666); white-space: nowrap; }
.streak-text.done { color: var(--brand-1, #6E5BFF); font-weight: 600; }
.btn {
  border: none; cursor: pointer; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px;
  box-shadow: 0 6px 16px -8px var(--brand-1);
  transition: transform 0.25s var(--ease), opacity 0.2s, background-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.94); }
.btn[disabled] { opacity: 0.55; box-shadow: none; cursor: default; }
.btn.gold { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); box-shadow: 0 6px 16px -8px var(--gold-1); }
/* 签到完成态：明确灰显，与可点击态区分 */
.btn.done {
  background: var(--gray-btn);
  color: var(--gray-btn-tx);
  box-shadow: none;
  opacity: 1;
  cursor: default;
}
.btn.done:active { transform: none; }
.btn.ghost {
  background: transparent; color: var(--brand-1);
  border: 1px solid var(--brand-1); box-shadow: none;
}

/* ---------- 快捷入口 ---------- */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 16px; }
.gitem {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 6px 2px; border-radius: var(--r-md); cursor: pointer;
  transition: transform 0.28s var(--ease), background 0.2s;
}
.gitem:active { transform: scale(0.93); }
.gitem .gi {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  font-size: 21px; background: linear-gradient(160deg, rgba(110,91,255,.14), rgba(0,212,181,.06));
  border: 1px solid var(--border);
}
.gitem .gt { font-size: 11.5px; color: var(--text-sub); }
.gitem.soon .gi { filter: grayscale(0.5); opacity: 0.7; }

/* ---------- 灵感种草活动卡（A4）---------- */
.act-card { padding: 14px 16px; cursor: pointer; }
.act-banner { display: flex; align-items: center; gap: 12px; }
.act-emoji {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, #FFB547 0%, #ff7a45 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 12px rgba(255, 122, 69, 0.3);
}
.act-meta { flex: 1; min-width: 0; }
.act-name { font-size: 16px; font-weight: 650; color: var(--text-1); }
.act-sub { font-size: 12px; color: var(--text-sub); margin-top: 2px; }
.act-point {
  font-size: 22px; font-weight: 800;
  background: linear-gradient(135deg, #ff7a45, #FFB547);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.act-actions { display: flex; gap: 8px; margin-top: 12px; }
.act-actions .btn.sm { flex: 1; padding: 8px 0; font-size: 13px; }
.btn.primary { background: linear-gradient(135deg, #6E5BFF, #00D4B5); color: #fff; }
.btn.ghost { background: transparent; color: var(--brand-1); border: 1px solid var(--brand-1); }

/* ---------- image-picker（A1 签到附图 / A4 灵感种草）---------- */
.img-picker { padding: 8px 0; }
.img-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 12px;
}
.img-cell {
  aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; position: relative;
  background: var(--bg-2, rgba(0,0,0,.06));
}
.img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-cell .img-rm {
  position: absolute; top: 4px; right: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff; border: none; cursor: pointer;
  font-size: 14px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.img-cell .img-rm:active { background: rgba(255,0,0,.7); }
.img-add {
  aspect-ratio: 1 / 1; border-radius: 8px;
  border: 2px dashed var(--brand-1, #6E5BFF);
  background: transparent; cursor: pointer; color: var(--brand-1, #6E5BFF);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; gap: 2px;
}
.img-add .ic-plus { font-size: 24px; line-height: 1; }
.img-picker textarea {
  width: 100%; min-height: 80px; padding: 10px 12px;
  border: 1px solid var(--border, rgba(0,0,0,.12)); border-radius: 8px;
  font-size: 14px; resize: vertical; font-family: inherit;
  background: var(--bg-1, #fff); color: var(--text-1, #333);
}
.img-picker textarea:focus { outline: none; border-color: var(--brand-1, #6E5BFF); }
.img-hint { font-size: 11px; color: var(--text-sub); margin-top: 4px; }

/* ---------- 打卡内容输入（必填 ≥15 字）---------- */
.ci-textarea {
  width: 100%; min-height: 92px; padding: 10px 12px; box-sizing: border-box;
  border: 1px solid var(--border, rgba(0,0,0,.12)); border-radius: 10px;
  font-size: 14px; line-height: 1.6; resize: vertical; font-family: inherit;
  background: var(--bg-1, #fff); color: var(--text-1, #333);
}
.ci-textarea:focus { outline: none; border-color: var(--brand-1, #6E5BFF); box-shadow: 0 0 0 3px rgba(110, 91, 255, .12); }
.ci-textarea::placeholder { color: var(--text-sub); opacity: .7; }

/* ---------- 申请列表项（A4 我的申请）---------- */
.app-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px; margin-bottom: 8px;
  background: var(--bg-2, rgba(0,0,0,.04));
}
.app-row .ar-meta { flex: 1; min-width: 0; }
.app-row .ar-title { font-size: 14px; color: var(--text-1, #333); }
.app-row .ar-sub { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.app-row .ar-status { font-size: 12px; }
.app-row .ar-status.pending { color: #ff7a45; }
.app-row .ar-status.approved { color: #00b894; }
.app-row .ar-status.rejected { color: #d63031; }

/* ---------- 流水列表 ---------- */
.rec { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.rec + .rec { border-top: 1px solid var(--border); }
.rec .r-ico {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  font-size: 17px; flex-shrink: 0;
  background: linear-gradient(160deg, rgba(110,91,255,.14), rgba(0,212,181,.05));
}
.rec.spend .r-ico { background: linear-gradient(160deg, rgba(245,83,61,.13), rgba(245,83,61,.04)); }
.rec .r-main { flex: 1; min-width: 0; }
.rec .r-t {
  font-size: 14px; font-weight: 560;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rec .r-s { font-size: 11.5px; color: var(--text-dim); margin-top: 1px; }
.rec .r-p {
  font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--success); flex-shrink: 0;
}
.rec.spend .r-p { color: var(--danger); }
.rec .r-b { font-size: 10.5px; color: var(--text-dim); text-align: right; font-weight: 400; }

/* ---------- 筛选 chips ---------- */
.chips { display: flex; gap: 8px; padding: 4px 16px 12px; }
.chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text-sub);
  transition: all 0.25s var(--ease);
}
.chip.on {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff; border-color: transparent; box-shadow: 0 4px 12px -6px var(--brand-1);
}

/* ---------- 我的 ---------- */
.profile { margin: 8px 16px 0; padding: 20px; text-align: center; }
.profile .p-av {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 10px; display: block;
  object-fit: cover; border: 3px solid var(--card-solid); box-shadow: var(--shadow-md);
}
.profile .p-n { font-size: 18px; font-weight: 680; letter-spacing: -0.3px; }
.profile .p-d { font-size: 12.5px; color: var(--text-sub); margin-top: 2px; }
.profile .p-stats { display: flex; margin-top: 18px; }
.profile .p-stats > div { flex: 1; }
.profile .p-stats .v { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.profile .p-stats .k { font-size: 11.5px; color: var(--text-sub); }
.profile .p-stats > div + div { border-left: 1px solid var(--border); }

.list-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
}
.list-item + .list-item { border-top: 1px solid var(--border); }
.list-item .li-i { font-size: 17px; width: 22px; text-align: center; }
.list-item .li-t { flex: 1; font-size: 14.5px; }
.list-item .li-v { font-size: 13px; color: var(--text-dim); }
.list-item .li-link { display: flex; justify-content: flex-end; }
.link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--brand-1); cursor: pointer; }
.link-btn:disabled { color: var(--text-dim); cursor: default; }

/* 主题三态切换 */
.seg {
  display: flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(127, 127, 127, 0.12);
}
.seg button {
  border: none; background: transparent; color: var(--text-sub); cursor: pointer;
  font-size: 12px; padding: 5px 11px; border-radius: 999px;
  transition: all 0.28s var(--ease);
}
.seg button.on { background: var(--card-solid); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- 底部导航 ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0;
  width: 100%; max-width: 480px; z-index: 50;
  display: flex; padding: 8px 8px calc(8px + var(--safe-b));
  background: var(--tab-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top: 1px solid var(--border);
}
.tabbar button {
  flex: 1; border: none; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--text-dim); font-size: 10.5px; padding: 5px 0;
  transition: color 0.25s var(--ease);
}
.tabbar button .ti { font-size: 19px; transition: transform 0.35s var(--ease); }
.tabbar button.on { color: var(--brand-1); font-weight: 600; }
.tabbar button.on .ti { transform: translateY(-2px) scale(1.12); }

/* ---------- 页面切换动画 ---------- */
.page { display: none; animation: fadeUp 0.34s var(--ease); }
.page.on { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 骨架屏 ---------- */
.sk { border-radius: 8px; background: var(--skeleton); background-size: 400% 100%; animation: sh 1.3s ease infinite; }
@keyframes sh { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--text-dim); }
.empty .e-i { font-size: 40px; opacity: 0.5; }
.empty .e-t { font-size: 13.5px; margin-top: 8px; }

/* 首页「最近动态」轻量空状态：浅色小字、居中、不引起警觉 */
.home-rec-empty { text-align: center; padding: 32px 20px; font-size: 13px; color: var(--text-dim); }

/* ---------- Toast ---------- */
#toast {
  position: fixed; left: 50%; top: 22%; transform: translate(-50%, -8px);
  background: rgba(16, 24, 40, 0.92); color: #fff; padding: 10px 18px;
  border-radius: 12px; font-size: 13.5px; z-index: 200; max-width: 78%;
  text-align: center; opacity: 0; pointer-events: none;
  backdrop-filter: blur(10px); transition: all 0.3s var(--ease);
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 签到成功的 +N 飘字 */
.float-point {
  position: fixed; left: 50%; top: 42%; z-index: 210;
  font-size: 34px; font-weight: 800; color: var(--gold-1);
  text-shadow: 0 4px 18px rgba(255, 159, 28, 0.5);
  pointer-events: none; animation: floatUp 1.3s var(--ease) forwards;
}
@keyframes floatUp {
  0% { opacity: 0; transform: translate(-50%, 16px) scale(0.7); }
  30% { opacity: 1; transform: translate(-50%, -10px) scale(1.15); }
  100% { opacity: 0; transform: translate(-50%, -78px) scale(1); }
}

/* ---------- 中间弹层（排行榜 / 规则 / 申请） ---------- */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(9, 12, 24, 0.45); z-index: 100;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s;
  backdrop-filter: blur(2px);
}
.sheet-mask.on { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 0.25s var(--ease); }
.sheet {
  /* 独立 fixed 居中（不依赖 mask flex 容器），避免与 mask 为兄弟节点时被布局到流式位置 */
  position: fixed; top: 50%; left: 50%;
  width: calc(100% - 40px); max-width: 440px;
  max-height: min(80vh, 640px);
  background: var(--card-solid); border-radius: 16px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  z-index: 101;
  transform: translate(-50%, calc(-50% + 12px)) scale(0.96); opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.25s var(--ease);
  overflow: hidden;
  padding-bottom: var(--safe-b);
  pointer-events: none; /* 关闭态不拦截页面点击，避免透明浮层吃掉中央按钮 */
}
.sheet.on { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.sheet .sh-head {
  padding: 16px 20px 12px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.sheet .sh-head b { font-size: 16px; }
.sheet .sh-body { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; min-height: 0; }
.sheet .grab { display: none; } /* 中央弹层不需要顶部抓握条 */

/* 排行榜行 */
.rk { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.rk + .rk { border-top: 1px solid var(--border); }
.rk .no {
  width: 26px; text-align: center; font-weight: 700; font-size: 14px; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.rk .no.top { font-size: 18px; }
.rk .rav { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--border); }
.rk .rn { flex: 1; font-size: 14px; min-width: 0; }
.rk .rn small { display: block; font-size: 11px; color: var(--text-dim); }
.rk .rp { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand-1); }
.rk.me { background: linear-gradient(90deg, rgba(43,108,255,.09), transparent); }
.rk { flex-wrap: wrap; cursor: pointer; }
.rk-detail {
  flex-basis: 100%; display: none; gap: 8px 20px; flex-wrap: wrap;
  padding: 8px 0 2px; margin-top: 4px; border-top: 1px dashed var(--border);
  font-size: 12px; color: var(--text-dim);
}
.rk-detail.open { display: flex; }
.rk-detail b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 部门排行榜（排行榜页 + 广场页共用部分样式） */
.drk { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.drk + .drk { border-top: 1px solid var(--border); }
.drk.me { background: linear-gradient(90deg, rgba(43,108,255,.09), transparent); }
.drk .dn { flex: 1; min-width: 0; font-size: 14px; }
.drk .dn small { display: block; font-size: 11px; color: var(--text-dim); }
.drk .dm { display: flex; gap: 16px; }
.drk .dm-row { display: flex; flex-direction: column; align-items: flex-end; font-size: 11px; color: var(--text-dim); }
.drk .dm-row b { font-size: 15px; color: var(--brand-1); font-variant-numeric: tabular-nums; }

/* 广场页部门榜迷你行 */
.drk-mini { display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.drk-mini + .drk-mini { border-top: 1px solid var(--border); }
.drk-mini .drk-no { width: 22px; text-align: center; font-size: 14px; }
.drk-mini b { font-size: 14px; }
.drk-mini .drk-sc { margin-left: auto; font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.rank-filter { padding: 10px 16px 4px; }
.rank-filter .chip { cursor: pointer; user-select: none; }
.rank-filter .chip.on { background: var(--brand-1); color: #fff; border-color: var(--brand-1); }


/* ---------- 登录引导页 ---------- */
#gate {
  position: fixed; inset: 0; z-index: 300;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 32px; text-align: center;
  background: var(--bg); background-image: var(--bg-grad);
}
#gate .logo {
  width: 76px; height: 76px; border-radius: 24px; object-fit: contain;
  box-shadow: var(--shadow-lg); margin-bottom: 4px;
}
#gate h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }
#gate p { font-size: 13.5px; color: var(--text-sub); max-width: 300px; }
#gate .spin {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--border); border-top-color: var(--brand-1);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
/* 修复：HTML 的 hidden 属性会被 .ns-item / .tabbar button 等显式 display 覆盖，
   导致「入职任务」等按标志隐藏的入口仍显示。全局强制 hidden 生效。 */
[hidden] { display: none !important; }

/* 登录页输入框：使用主题变量确保亮/暗双态可读 */
.gate-inp {
  width: 100%; box-sizing: border-box; padding: 11px 13px;
  border: 1px solid var(--border, #e6e9f0); border-radius: 11px;
  background: var(--card-solid, #fff); color: var(--text, #101828);
  font-size: 14px; outline: none;
}
.gate-inp:focus { border-color: var(--brand-1, #6E5BFF); box-shadow: 0 0 0 2px rgba(110,91,255,.18); }
.gate-inp::placeholder { color: var(--text-dim, #98a2b3); }

/* ---------- 积分商城 ---------- */
.balance-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 650; color: var(--brand-1);
  padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(43,108,255,.1), rgba(91,141,255,.06));
  border: 1px solid var(--border); font-variant-numeric: tabular-nums;
}
.balance-pill b { font-size: 15px; }

.mall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.pcard {
  background: var(--card); backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px 14px 12px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; min-height: 188px;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.pcard:active { transform: scale(0.98); }
.pcard.out { opacity: 0.62; }
.pc-ico {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 10px;
  background: linear-gradient(160deg, rgba(255,159,28,.16), rgba(255,197,92,.06));
  border: 1px solid var(--border);
}
.pc-name { font-size: 15px; font-weight: 680; letter-spacing: -0.2px; }
.pc-desc {
  font-size: 12px; color: var(--text-sub); margin-top: 3px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 34px;
}
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.pc-cost { font-size: 13px; color: var(--text-sub); font-variant-numeric: tabular-nums; }
.pc-cost b { font-size: 17px; color: var(--gold-1); font-weight: 750; }
.pc-stock { font-size: 11px; color: var(--text-dim); margin-top: 8px; }

/* 小按钮：卡片内兑换按钮 */
.btn.sm { padding: 7px 14px; font-size: 12.5px; border-radius: 999px; }

/* 弹层确认操作区 */
.sheet-actions { display: flex; gap: 10px; padding: 16px 20px 20px; }
.sheet-actions .btn { flex: 1; }

/* ---------- 获取积分（活动） ---------- */
.earn-group { margin-bottom: 14px; }
.earn-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--card); border-radius: var(--r-md) var(--r-md) 0 0; border-bottom: 1px solid var(--border); }
.earn-name { font-size: 15px; font-weight: 680; color: var(--text-main); }
.earn-type { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--brand-1); color: #fff; }
.earn-terms .rec { background: transparent; box-shadow: none; border-bottom: 1px solid var(--border); border-radius: 0; }
.earn-terms .rec:last-child { border-bottom: none; border-radius: 0 0 var(--r-md) var(--r-md); }

/* ---------- 状态标签（活动申请 / 兑换记录共用） ---------- */
.tag {
  flex: none; font-size: 11px; line-height: 1; padding: 5px 9px; border-radius: 999px;
  font-weight: 600; white-space: nowrap;
}
.tag-gray { background: rgba(140, 152, 180, 0.16); color: var(--text-sub); }
.tag-green { background: rgba(28, 176, 116, 0.14); color: #12a06a; }
.tag-blue { background: rgba(110, 91, 255, 0.14); color: var(--brand-1); }
.tag-red { background: rgba(240, 78, 78, 0.14); color: #e04545; }
[data-theme='dark'] .tag-green { color: #4ad9a0; }
[data-theme='dark'] .tag-red { color: #ff8080; }

/* ---------- 表单行（弹层/抽屉通用） ---------- */
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 13px; font-weight: 500; color: var(--tx, #101828); margin-bottom: 5px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--bd, #e6e9f0);
  border-radius: 10px; background: var(--card, #fff); color: var(--tx, #101828); font-size: 14px; font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 72px; }

/* ---------- 导师辅导进度条 ---------- */
.pr-bar { height: 6px; background: #eef0f3; border-radius: 4px; overflow: hidden; }
.pr-fill { height: 100%; background: linear-gradient(90deg, var(--brand-1, #6E5BFF), var(--brand-3, #00D4B5)); border-radius: 4px; }

/* ---------- 导师辅导卡片（B2） ---------- */
.mentor-list { display: flex; flex-direction: column; gap: 12px; }
.mentor-card { background: var(--card, #fff); border: 1px solid var(--bd, #e6e9f0); border-radius: 14px; padding: 14px; }
.mentor-head { display: flex; align-items: center; gap: 10px; }
.m-av { width: 38px; height: 38px; border-radius: 10px; background: rgba(110, 91, 255, 0.1); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.m-meta { flex: 1; min-width: 0; }
.m-name { font-size: 15px; font-weight: 600; color: var(--tx, #101828); }
.m-sub { font-size: 12px; color: var(--text-dim, #667085); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-list { margin-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.ms-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim, #667085); padding: 4px 8px; background: rgba(110, 91, 255, 0.05); border-radius: 8px; }

/* ---------- 商品卡片：限兑提示 ---------- */
.pc-limit { font-size: 11px; color: var(--gold-1); margin-top: 4px; line-height: 1.4; }

/* ---------- 兑换成功弹框 ---------- */
.ex-succ { padding: 8px 20px 4px; text-align: center; }
.ex-succ-ico { font-size: 44px; line-height: 1; animation: exPop 0.42s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes exPop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ex-succ-t { font-size: 19px; font-weight: 750; color: var(--text-main); margin-top: 8px; }
.ex-succ-s { font-size: 13px; color: var(--text-sub); margin-top: 4px; }
.ex-code-box {
  margin: 16px 0 12px; padding: 14px; border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(255, 159, 28, 0.12), rgba(255, 197, 92, 0.05));
  border: 1px dashed var(--gold-1);
}
.ex-code-k { font-size: 11.5px; color: var(--text-dim); letter-spacing: 1px; }
.ex-code-v {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 16px; font-weight: 700; color: var(--gold-1);
  margin: 7px 0 11px; word-break: break-all; letter-spacing: 0.5px;
}
.ex-succ-meta { display: flex; justify-content: space-around; font-size: 11.5px; color: var(--text-dim); }
.ex-succ-meta b { color: var(--text-sub); font-weight: 650; }

/* ---------- 我的兑换列表 ---------- */
.exr-wrap { padding-bottom: 8px; }
.exr { padding: 12px 20px; border-bottom: 1px solid var(--border); }
.exr:last-of-type { border-bottom: none; }
.exr-head { display: flex; align-items: center; gap: 10px; }
.exr-ico {
  flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  font-size: 18px; background: linear-gradient(160deg, rgba(255, 159, 28, 0.16), rgba(255, 197, 92, 0.06));
}
.exr-main { flex: 1; min-width: 0; }
.exr-t { font-size: 14px; font-weight: 650; color: var(--text-main); }
.exr-s { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.exr-code {
  display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 8px 11px;
  border-radius: 10px; background: var(--card); border: 1px dashed var(--border); cursor: pointer;
}
.exr-code:active { transform: scale(0.985); }
.exr-code-v {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; color: var(--text-sub); word-break: break-all;
}
.exr-copy { flex: none; font-size: 11.5px; color: var(--brand-1); font-weight: 600; }

/* ---------- 兑换码管理（管理员） ---------- */
.exm-redeem-row { display: flex; gap: 8px; align-items: center; }
.exm-redeem-row input {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--text-main); font-size: 14px;
}
.exm-redeem-tip { font-size: 12px; color: var(--text-dim); padding: 8px 2px 2px; }

.exm-search {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--card); color: var(--text-main); font-size: 14px;
}

.exm-item { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.exm-item:last-child { border-bottom: none; }
.exm-head { display: flex; align-items: center; gap: 10px; }
.exm-ico {
  flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  font-size: 20px; background: linear-gradient(160deg, rgba(255, 159, 28, 0.16), rgba(255, 197, 92, 0.06));
}
.exm-main { flex: 1; min-width: 0; }
.exm-t { font-size: 15px; font-weight: 650; color: var(--text-main); }
.exm-s { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.exm-code {
  display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; padding: 8px 11px;
  border-radius: 10px; background: var(--card); border: 1px dashed var(--border); cursor: pointer;
}
.exm-code:active { transform: scale(0.985); }
.exm-code-v {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; color: var(--brand-1); word-break: break-all;
}
.exm-copy { flex: none; font-size: 11.5px; color: var(--brand-1); font-weight: 600; }
.exm-meta { font-size: 12px; color: var(--text-dim); margin-bottom: 10px; }
.exm-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.xs { padding: 6px 14px; font-size: 13px; border-radius: 9px; }
.exm-muted { font-size: 12px; color: var(--text-dim); }
.exm-sum { padding: 2px 0 10px; font-size: 14px; line-height: 1.6; }
.exm-sum .muted { color: var(--text-dim); font-size: 12.5px; }

.exm-log-wrap { padding-bottom: 8px; }
.exm-log { padding: 11px 0; border-bottom: 1px solid var(--border); }
.exm-log:last-child { border-bottom: none; }
.exm-log-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.exm-log-time { font-size: 12px; color: var(--text-dim); }
.exm-log-body { font-size: 13px; color: var(--text-main); line-height: 1.5; word-break: break-all; }

/* =========================================================
   桌面端适配（≥ 900px）：左侧固定导航 + 右栏限宽内容
   ========================================================= */
@media (min-width: 900px) {
  .app {
    max-width: none;
    margin: 0;
    display: flex;
    align-items: stretch;
    padding-bottom: 0;
    min-height: 100vh;
  }

  /* ---- 侧边导航 ---- */
  .nav-side {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 248px;
    padding: 22px 16px;
    background: linear-gradient(180deg, #1c1342 0%, #2a1d5e 55%, #1f2a52 100%);
    color: #fff;
    z-index: 40;
    box-shadow: 8px 0 32px -16px rgba(43, 108, 255, 0.4);
  }
  .ns-brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 24px; }
  .ns-logo {
    width: 38px; height: 38px; border-radius: 12px; object-fit: contain;
    box-shadow: 0 6px 16px -6px var(--brand-1);
  }
  .ns-name { font-size: 17px; font-weight: 750; letter-spacing: -0.3px; }
  .ns-nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
  .ns-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: none; background: transparent; cursor: pointer;
    color: #c8c1ee; font-size: 14.5px; border-radius: 14px; text-align: left;
    font-family: inherit; transition: all 0.25s var(--ease);
  }
  .ns-item .ns-ico { font-size: 19px; transition: transform 0.35s var(--ease); }
  .ns-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
  .ns-item.on {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
    color: #fff; box-shadow: 0 10px 22px -10px var(--brand-1);
  }
  .ns-item.on .ns-ico { transform: scale(1.12); }
  .ns-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .ns-theme {
    width: 100%; padding: 10px; border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06); color: #fff; border-radius: 12px;
    cursor: pointer; font-size: 13px; font-family: inherit;
    transition: background 0.25s var(--ease);
  }
  .ns-theme:hover { background: rgba(255, 255, 255, 0.14); }

  /* ---- 主内容区 ---- */
  .app-main {
    margin-left: 248px;
    width: calc(100% - 248px);
    min-height: 100vh;
    padding-bottom: 48px;
  }
  /* 顶栏吸顶 */
  .app-main > .topbar {
    position: sticky; top: 0; z-index: 30;
    background: var(--bg);
    background-image: var(--bg-grad);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin: 0;
    padding-top: 18px;
    border-bottom: 1px solid var(--border);
  }
  /* 页面内容限宽居中，避免超宽拉伸 */
  .app-main .page { max-width: 780px; margin: 0 auto; padding: 8px 28px 48px; }
  .page#page-home, .page#page-mall { max-width: 1160px; padding: 8px 36px 48px; }
  /* 取消首页各块自带外边距，交由 page 控制留白 */
  .page#page-home > .hero,
  .page#page-home > .checkin { margin-left: 0; margin-right: 0; }
  .page#page-home > .sec { padding: 0; margin-left: 0; margin-right: 0; }
  /* 底部导航在桌面端隐藏 */
  .tabbar { display: none; }
  /* 桌面端让首页快捷入口与信息更舒展 */
  .page#page-home .grid4 { gap: 10px; }
  .page#page-home .gitem .gi { width: 54px; height: 54px; font-size: 24px; border-radius: 17px; }
  .mall-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 种草广场（社区化） ---------- */
#page-lingsharing .topbar .name { font-weight: 650; font-size: 17px; }
#lsChips { display: flex; gap: 8px; padding: 4px 16px 10px; }
#lsChips .chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--text-sub);
}
#lsChips .chip.on { background: var(--brand-1); color: #fff; border-color: var(--brand-1); }

.ls-item { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.ls-item:last-child { border-bottom: none; }
.ls-head { display: flex; align-items: center; gap: 10px; }
.ls-av {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-3));
}
.ls-meta { flex: 1; min-width: 0; }
.ls-name { font-size: 14.5px; font-weight: 600; }
.ls-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.ls-vis {
  flex: none; font-size: 11px; color: var(--text-sub);
  background: var(--bg-2, rgba(0, 0, 0, 0.05));
  padding: 3px 8px; border-radius: 999px;
}
.ls-content {
  font-size: 14px; line-height: 1.6; color: var(--tx);
  margin: 10px 0 0; white-space: pre-wrap; word-break: break-word;
}
.ls-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.ls-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.ls-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ls-like {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text-sub);
  border-radius: 999px; padding: 5px 12px; font-size: 13px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.ls-like:active { transform: scale(0.94); }
.ls-like.on { color: #ff5b78; border-color: rgba(255, 91, 120, 0.4); background: rgba(255, 91, 120, 0.08); }
.ls-tip { font-size: 11px; color: var(--text-dim); margin-left: auto; }
.ls-report {
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
  border: 1px solid transparent; background: transparent; color: var(--text-dim);
  border-radius: 999px; padding: 5px 8px; font-size: 12px;
}
.ls-report:active { transform: scale(0.94); }

/* 互动版块 */
.ia-point { margin-left: auto; color: var(--brand-1); font-weight: 600; font-size: 13px; }
.ia-card { cursor: pointer; }
.ia-card .ls-like { cursor: pointer; }
.ia-quiz { margin: 6px 0 4px; }
.ia-q { margin-bottom: 14px; }
.ia-qt { font-size: 14px; margin-bottom: 8px; color: var(--text); }
.ia-opt { display: block; padding: 8px 12px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.ia-opt:active { background: var(--bg-2); }

/* 发布器内：可见范围分段 + 部门多选 */
.seg button.on { background: var(--brand-1); color: #fff; }
.ls-depts { margin: 10px 0 4px; }
.ls-depts-h { font-size: 12px; color: var(--text-sub); margin-bottom: 8px; }
.ls-dept {
  display: inline-block; margin: 0 8px 8px 0; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  color: var(--text-sub); font-size: 12.5px; cursor: pointer;
}
.ls-dept.on { background: var(--brand-1); color: #fff; border-color: var(--brand-1); }
.ls-pub .ls-tip { display: block; margin: 8px 0 0; }

/* 更宽屏幕：商城 4 列 */
@media (min-width: 1240px) {
  .mall-grid { grid-template-columns: repeat(4, 1fr); }
  .page#page-home, .page#page-mall { max-width: 1240px; }
}

/* ---------- 规划中模块 · 功能建设中 ---------- */
.roadmap-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.roadmap-card + .roadmap-card { border-top: 1px solid var(--border, #eef0f5); }
.roadmap-card:active { background: var(--bg-2, rgba(0,0,0,0.03)); }
.rm-ico { font-size: 22px; flex: 0 0 auto; }
.rm-body { flex: 1; min-width: 0; }
.rm-t { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.rm-s { font-size: 12.5px; color: var(--text-dim, #667085); margin-top: 2px; line-height: 1.5; }
.rm-go { color: var(--text-dim, #98a2b3); font-size: 18px; flex: 0 0 auto; }
.rm-tag {
  display: inline-block; padding: 1px 7px; border-radius: 8px;
  background: #eef0f5; color: #98a2b3; font-size: 11px; font-weight: 500;
}
.build-wrap { padding: 4px 2px; }
.build-block { padding: 10px 2px; }
.build-sep { border: none; border-top: 1px solid #eef0f5; margin: 12px 0; }
.build-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.build-ico { font-size: 18px; }
.build-desc { font-size: 13px; color: #475467; margin: 8px 0; line-height: 1.6; }
.build-list { margin: 6px 0 6px 18px; font-size: 13px; color: #475467; padding: 0; }
.build-list li { margin: 3px 0; }
.build-eta { font-size: 12.5px; color: #98a2b3; margin-top: 6px; }

/* 模块骨架页（建设中预览） */
.mod-wrap { padding: 4px 2px; }
.mod-shell { padding: 4px 0 8px; }
.mod-banner {
  margin: 8px 0 14px; padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,181,71,.16), rgba(255,181,71,.08));
  color: #b7791f; font-size: 13.5px; font-weight: 600; text-align: center;
}
.mod-head { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.mod-ico { font-size: 22px; }
.mod-desc { font-size: 13px; color: #475467; margin: 8px 0 14px; line-height: 1.6; }
.mod-secs { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mod-sec { border: 1px solid #eef0f5; border-radius: 12px; padding: 12px 14px; background: #fafbfc; }
.mod-sec-t { font-size: 13.5px; font-weight: 600; color: #344054; margin-bottom: 10px; }
.mod-eta { font-size: 12.5px; color: #98a2b3; margin-top: 14px; }
.sk-bar { height: 10px; border-radius: 6px; background: linear-gradient(90deg, #eef0f5 25%, #f6f7f9 37%, #eef0f5 63%); background-size: 400% 100%; animation: sk-shimmer 1.4s ease infinite; margin: 7px 0; }
.sk-bar.w70 { width: 70%; }
@keyframes sk-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ===== 问答跳一跳 Quiz Tower ===== */
.qj-wrap { display: flex; flex-direction: column; height: 70vh; overflow: hidden; }
.qj-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: #fafbff; border-bottom: 1px solid #eef0f5; flex-shrink: 0; }
.qj-info { flex: 1; }
.qj-score { font-size: 14px; font-weight: 600; color: var(--brand-1); }
.qj-lives { font-size: 16px; display: flex; gap: 4px; }
.qj-heart { transition: color .3s; }
.qj-tower {
  flex: 1; overflow-y: auto; padding: 10px 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  background: linear-gradient(180deg, #e8f4fd 0%, #f0f7ff 40%, #fff 100%);
}
.qj-plat {
  width: 80%; max-width: 280px; padding: 6px 0; text-align: center;
  border-radius: 8px; background: #e0e4f0; color: #888; font-size: 13px;
  transition: all .3s; position: relative;
}
.qj-plat.done { background: #00D4B5; color: #fff; }
.qj-plat.current { background: var(--brand-1); color: #fff; box-shadow: 0 0 12px rgba(110,91,255,.4); font-weight: 700; transform: scale(1.05); }
.qj-footer { flex-shrink: 0; border-top: 1px solid #eef0f5; background: #fff; padding: 10px 12px 16px; }
.qj-qcard { animation: qjSlideIn .25s ease; }
.qj-qtext { font-size: 15px; font-weight: 600; color: #1e293b; margin-bottom: 12px; line-height: 1.5; }
.qj-opts { display: flex; flex-direction: column; gap: 8px; }
.qj-opt {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 11px 12px; border: 1.5px solid #e0e4f0; border-radius: 10px;
  background: #fff; font-size: 14px; color: #344054; cursor: pointer;
  transition: all .15s; text-align: left;
}
.qj-opt:hover { border-color: var(--brand-1); background: #f8f5ff; }
.qj-opt:active { background: #efeaff; transform: scale(.98); }
.qj-opt:disabled { opacity: .5; pointer-events: none; }
.qj-okey {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-2); color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0;
}
@keyframes qjSlideIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ===== 游戏内联容器（钉钉兼容） ===== */
.game-box { min-height: 300px; }

/* 减少动效偏好：尊重系统设置 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ===== 美团式首页搜索条 ===== */
.home-search {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 14px 2px; padding: 10px 14px;
  background: #fff; border-radius: 999px;
  box-shadow: 0 4px 14px -8px rgba(110,91,255,.35);
  cursor: pointer;
}
.home-search .hs-ico { font-size: 15px; }
.home-search .hs-ph { flex: 1; color: var(--text-dim, #98a2b3); font-size: 13.5px; }
.home-search .hs-go {
  font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  padding: 5px 14px; border-radius: 999px;
}

/* ===== 首页服务网格（手机端 3×2） ===== */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 4px; padding: 16px 10px; }
.sg-item {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 8px 2px; border-radius: 14px; cursor: pointer;
  transition: transform .12s, background .12s;
}
.sg-item:active { transform: scale(.93); background: rgba(110,91,255,.06); }
.sg-ico {
  width: 50px; height: 50px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
  background: color-mix(in srgb, var(--c, #6E5BFF) 16%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c, #6E5BFF) 22%, transparent);
}
.sg-tx { font-size: 11.5px; color: var(--text-sub, #475467); }

/* ===== 搜索页 ===== */
.search-top { gap: 10px; }
.search-top .search-box {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--card, #fff); border: 1px solid var(--bd, #e6e9f0);
  border-radius: 999px; padding: 9px 14px;
}
.search-top .sb-ico { font-size: 15px; }
.search-top .sb-input { flex: 1; border: none; outline: none; background: transparent; font-size: 14px; color: var(--tx, #101828); }
.search-top .sb-clear { border: none; background: #eef0f5; color: #667085; width: 20px; height: 20px; border-radius: 50%; font-size: 11px; cursor: pointer; }
.search-history { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 4px 4px; }
.search-history .sh-label { width: 100%; font-size: 12.5px; color: var(--text-dim, #98a2b3); }
.search-history .sh-tag {
  font-size: 12.5px; padding: 6px 14px; border-radius: 999px;
  background: var(--card, #fff); border: 1px solid var(--bd, #e6e9f0); color: var(--text-sub, #475467); cursor: pointer;
}
.search-history .sh-clear { font-size: 12px; color: var(--text-dim, #98a2b3); margin-left: auto; cursor: pointer; align-self: center; }
.search-res-empty { padding: 40px 16px; text-align: center; color: var(--text-dim, #98a2b3); font-size: 13.5px; }
.sres-sec { padding: 10px 4px; }
.sres-sec-head { font-size: 13px; font-weight: 700; color: var(--text-sub, #475467); margin-bottom: 6px; }
.sres-item { display: flex; align-items: center; gap: 10px; padding: 12px 6px; border-bottom: 1px solid var(--bd, #f0f1f5); cursor: pointer; }
.sres-item:last-child { border-bottom: none; }
.sres-ico { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; background: rgba(110,91,255,.1); flex: none; }
.sres-main { flex: 1; min-width: 0; }
.sres-title { font-size: 14px; color: var(--tx, #101828); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sres-sub { font-size: 11.5px; color: var(--text-dim, #98a2b3); margin-top: 2px; }
.sres-go { font-size: 12px; color: var(--brand-1); flex: none; }
.sres-loading { padding: 30px; text-align: center; color: var(--text-dim, #98a2b3); }

/* 桌面端网格放大 */
@media (min-width: 900px) {
  .page#page-home .service-grid { grid-template-columns: repeat(10, 1fr); }
  .page#page-home .sg-ico { width: 56px; height: 56px; font-size: 26px; }
}
