/* ============================================================
   OfficeMind · Page-specific styles
   ============================================================ */

/* ============ 数字员工办公室 ============ */
.office-wrap { display: flex; flex-direction: column; gap: var(--sp-4); }
.office-toolbar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  padding: 10px var(--sp-4); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.ot-rooms { display: flex; gap: 6px; flex-wrap: wrap; }
.ot-room {
  display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: var(--r-full);
  font-size: var(--fs-12); font-weight: 620; color: var(--text-dim);
  background: var(--surface-2); border: 1px solid var(--border); transition: all var(--dur) var(--ease);
}
.ot-room:hover { color: var(--text); border-color: var(--border-strong); }
.ot-room.active { background: var(--accent); color: var(--accent-text); border-color: transparent; }
.ot-room .r-count { font-size: 10px; opacity: .75; font-family: var(--font-mono); }

.office-stage {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); background: var(--floor-b);
  box-shadow: var(--shadow-2) inset;
}
.office-scroll { overflow: auto; padding: 0; }
.office-floor {
  position: relative; width: 1180px; height: 720px; transform-origin: 0 0;
  background-color: var(--floor-a);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(900px 500px at 20% 10%, var(--accent-soft) 0%, transparent 60%);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}
.floor-deco { position: absolute; inset: 0; pointer-events: none; }

.room-zone {
  position: absolute; border-radius: var(--r-xl); border: 1.5px dashed var(--border-strong);
  background: color-mix(in srgb, var(--accent) 4%, transparent);
  display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 14px;
}
.room-zone .rz-name { font-size: var(--fs-12); font-weight: 750; color: var(--text-dim); letter-spacing: .3px; }
.room-zone .rz-sub { font-size: 10px; color: var(--text-mute); }
.room-zone .rz-tag {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-mute);
}

/* 工位 */
.desk {
  position: absolute; width: 138px; cursor: pointer;
  transition: transform .18s var(--ease-out), filter .18s var(--ease);
}
.desk:hover { transform: translateY(-3px); z-index: 20; }
.desk.dragging { opacity: .4; }
.desk .desk-lamp {
  position: absolute; top: -6px; right: 14px; width: 8px; height: 8px; border-radius: 99px;
  background: var(--text-mute); z-index: 3; transition: all .3s var(--ease);
}
.desk.working .desk-lamp { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.desk.thinking .desk-lamp { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.3s infinite; }
.desk.meeting .desk-lamp { background: var(--info); box-shadow: 0 0 10px var(--info); }
.desk.resting .desk-lamp { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.desk.offline .desk-lamp { background: var(--danger); }

.desk-top {
  height: 62px; border-radius: 10px 10px 6px 6px; position: relative;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface-3));
  border: 1px solid var(--border-strong);
  box-shadow: 0 6px 0 -1px color-mix(in srgb, var(--surface-3) 70%, #000 12%), 0 12px 22px rgba(0, 0, 0, .18);
  display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 10px;
}
.desk-top::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -7px; height: 7px;
  border-radius: 0 0 6px 6px; background: color-mix(in srgb, var(--surface-3) 82%, #000 18%);
}
.monitor {
  width: 54px; height: 38px; border-radius: 5px; position: relative;
  background: linear-gradient(160deg, #232B4D, #10142B);
  border: 1.5px solid var(--border-strong); padding: 5px 4px;
  display: flex; flex-direction: column; gap: 3px; overflow: hidden;
}
.monitor::before {
  content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 4px; border-radius: 0 0 3px 3px; background: var(--border-strong);
}
.monitor i { display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.monitor i:nth-child(1) { width: 78%; background: var(--accent-2); opacity: .85; }
.monitor i:nth-child(2) { width: 56%; }
.monitor i:nth-child(3) { width: 68%; background: var(--accent); opacity: .7; }
.desk.working .monitor i:nth-child(1) { animation: typing 1.1s infinite; }
.desk.thinking .monitor i:nth-child(3) { animation: typing .8s infinite; }
.desk.offline .monitor { opacity: .45; }
.desk.offline .monitor i { background: rgba(255, 255, 255, .12); }
@keyframes typing { 0%, 60% { width: 78%; } 80% { width: 40%; } 100% { width: 78%; } }

.desk-side { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.mug {
  width: 13px; height: 12px; border-radius: 2px 2px 5px 5px; background: var(--warn);
  position: relative; box-shadow: inset -3px 0 0 rgba(0, 0, 0, .16);
}
.mug::after {
  content: ""; position: absolute; right: -4px; top: 3px; width: 4px; height: 5px;
  border: 1.5px solid var(--warn); border-left: 0; border-radius: 0 4px 4px 0;
}
.desk.working .mug::before {
  content: ""; position: absolute; top: -6px; left: 3px; width: 3px; height: 6px;
  border-radius: 99px; background: currentColor; opacity: .35; animation: steam 2.4s infinite;
}
@keyframes steam { 0% { transform: translateY(0); opacity: .38; } 100% { transform: translateY(-9px); opacity: 0; } }
.paper-stack { width: 16px; height: 9px; border-radius: 2px; background: var(--surface); border: 1px solid var(--border-strong); box-shadow: 0 -2px 0 -1px var(--surface-hi), 0 -4px 0 -2px var(--surface-hi); }

.seat { display: flex; align-items: center; justify-content: center; margin-top: 14px; position: relative; }
.seat .avatar { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, .22); }
.seat .avatar.working { animation: bob 2.6s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.seat .chair {
  position: absolute; bottom: -8px; width: 40px; height: 12px; border-radius: 6px;
  background: var(--surface-3); border: 1px solid var(--border); z-index: -1;
}
.think-bubble {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%) scale(.8);
  padding: 4px 9px; border-radius: 10px; font-size: 10px; font-weight: 650; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text-dim);
  opacity: 0; transition: all .2s var(--ease-out); pointer-events: none; z-index: 30;
  box-shadow: var(--shadow-2); max-width: 170px; overflow: hidden; text-overflow: ellipsis;
}
.desk:hover .think-bubble { opacity: 1; transform: translateX(-50%) scale(1); }
.think-bubble::after {
  content: ""; position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%) rotate(45deg);
  width: 7px; height: 7px; background: var(--surface); border-right: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

.nameplate {
  margin-top: 16px; text-align: center; padding: 4px 6px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-1);
}
.nameplate b { display: block; font-size: var(--fs-11); font-weight: 700; line-height: 1.3; }
.nameplate span { display: block; font-size: 9px; color: var(--text-mute); line-height: 1.3; }

.desk.empty .desk-top {
  background: transparent; border: 1.5px dashed var(--border-strong); box-shadow: none;
  color: var(--text-mute); font-size: var(--fs-11); font-weight: 600;
}
.desk.empty .desk-top::after { display: none; }
.desk.empty .seat .avatar { background: var(--surface-2); border: 1.5px dashed var(--border-strong); box-shadow: none; }
.desk.empty .nameplate { border-style: dashed; color: var(--text-mute); background: var(--surface-2); }
.desk.drop-hint .desk-top { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.desk.drop-hint .nameplate { border-color: var(--accent); color: var(--accent); }

/* 办公室装饰物 */
.prop { position: absolute; pointer-events: none; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); }
.prop svg { width: 100%; height: 100%; }
.prop.clickable { pointer-events: auto; cursor: pointer; }
.prop.clickable:hover { transform: translateY(-2px); }

.office-legend {
  display: flex; gap: var(--sp-4); flex-wrap: wrap; align-items: center;
  padding: 10px var(--sp-4); font-size: var(--fs-11); color: var(--text-mute);
}

/* 待入职员工托盘 */
.tray {
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: var(--sp-3);
}
.tray-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.tray-head b { font-size: var(--fs-13); }
.tray-list { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.tray-item {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border); cursor: grab;
  transition: all var(--dur) var(--ease);
}
.tray-item:hover { border-color: var(--accent); transform: translateX(2px); }
.tray-item.dragging { opacity: .4; }
.tray-item .ti-meta { flex: 1 1 auto; min-width: 0; }
.tray-item .ti-meta b { display: block; font-size: var(--fs-12); }
.tray-item .ti-meta span { display: block; font-size: 10px; color: var(--text-mute); }

/* ============ 看板 ============ */
.kanban { display: flex; gap: var(--sp-3); overflow-x: auto; padding-bottom: var(--sp-3); align-items: flex-start; }
.kb-col { flex: 0 0 300px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.kb-col.drop { border-color: var(--accent); background: var(--accent-soft); }
.kb-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.kb-head .kb-dot { width: 8px; height: 8px; border-radius: 99px; }
.kb-head b { font-size: var(--fs-13); }
.kb-head .kb-n { margin-left: auto; font-size: var(--fs-11); font-weight: 700; color: var(--text-mute); background: var(--surface-3); padding: 1px 7px; border-radius: 99px; }
.kb-body { padding: 10px; display: flex; flex-direction: column; gap: 10px; min-height: 90px; }
.kb-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px; cursor: pointer; transition: all var(--dur) var(--ease);
}
.kb-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); transform: translateY(-1px); }
.kb-card.dragging { opacity: .4; }
.kb-card .kc-top { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.kb-card .kc-id { font-family: var(--font-mono); font-size: 10px; color: var(--text-mute); }
.kb-card .kc-title { font-size: var(--fs-13); font-weight: 650; line-height: 1.45; margin-bottom: 8px; }
.kb-card .kc-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kb-card .kc-prog { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.kb-card .kc-prog .progress { flex: 1 1 auto; }
.kb-card .kc-prog span { font-size: 10px; font-family: var(--font-mono); color: var(--text-mute); }
.kb-add { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border: 1px dashed var(--border-strong); border-radius: var(--r-md); color: var(--text-mute); font-size: var(--fs-12); font-weight: 600; }
.kb-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* ============ 模板市场 ============ */
.tpl-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); transition: all var(--dur) var(--ease); display: flex; flex-direction: column;
}
.tpl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); border-color: var(--border-strong); }
.tpl-hero { height: 96px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tpl-hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .6;
}
.tpl-hero .avatar { width: 62px; height: 62px; border-radius: 18px; box-shadow: 0 8px 20px rgba(0, 0, 0, .26); position: relative; z-index: 1; }
.tpl-cat {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .18); color: #fff;
  backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .24);
}
.tpl-hot { position: absolute; top: 10px; right: 10px; z-index: 2; }
.tpl-body { padding: 14px; flex: 1 1 auto; display: flex; flex-direction: column; }
.tpl-body h4 { font-size: var(--fs-14); font-weight: 700; margin-bottom: 5px; }
.tpl-body p { font-size: var(--fs-12); color: var(--text-mute); line-height: 1.6; flex: 1 1 auto; }
.tpl-skills { display: flex; gap: 5px; flex-wrap: wrap; margin: 10px 0; }
.tpl-foot { display: flex; align-items: center; gap: var(--sp-2); padding: 12px 14px; border-top: 1px solid var(--border); }
.tpl-foot .tpl-stat { font-size: var(--fs-11); color: var(--text-mute); display: flex; align-items: center; gap: 4px; }
.tpl-foot .tpl-stat svg { width: 12px; height: 12px; }

/* ============ 员工卡片 ============ */
.emp-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: var(--sp-4); cursor: pointer; transition: all var(--dur) var(--ease); position: relative; overflow: hidden;
}
.emp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.emp-card .ec-top { display: flex; gap: 12px; align-items: flex-start; }
.emp-card .ec-name { font-size: var(--fs-15); font-weight: 700; }
.emp-card .ec-role { font-size: var(--fs-12); color: var(--text-mute); margin-top: 1px; }
.emp-card .ec-desc { font-size: var(--fs-12); color: var(--text-dim); margin-top: 12px; line-height: 1.6; min-height: 38px; }
.emp-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.emp-kpis div { text-align: center; }
.emp-kpis b { display: block; font-size: var(--fs-15); font-weight: 750; }
.emp-kpis span { font-size: 10px; color: var(--text-mute); }
.emp-skills { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 12px; }
.emp-card .ec-actions { display: flex; gap: 6px; margin-top: 14px; }

/* ============ 记忆中心 ============ */
.mem-layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.mem-layer {
  border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface);
  padding: var(--sp-4); position: relative; overflow: hidden;
}
.mem-layer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--accent); }
.mem-layer.l2::before { background: var(--info); }
.mem-layer.l3::before { background: var(--purple); }
.mem-layer .ml-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.mem-layer .ml-head .ml-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.mem-layer.l2 .ml-ic { background: rgba(86, 199, 255, .14); color: var(--info); }
.mem-layer.l3 .ml-ic { background: rgba(179, 123, 255, .14); color: var(--purple); }
.mem-layer .ml-head svg { width: 17px; height: 17px; }
.mem-item {
  padding: 10px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--border); margin-top: 10px; transition: all var(--dur) var(--ease); cursor: pointer;
}
.mem-item:hover { border-color: var(--accent); }
.mem-item .mi-top { display: flex; align-items: center; gap: 6px; }
.mem-item .mi-txt { font-size: var(--fs-12); color: var(--text-dim); margin-top: 5px; line-height: 1.55; }
.mem-item .mi-foot { display: flex; gap: 8px; margin-top: 7px; font-size: 10px; color: var(--text-mute); font-family: var(--font-mono); }

/* ============ 订阅与积分 ============ */
.plan-card {
  border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface);
  padding: var(--sp-5); position: relative; display: flex; flex-direction: column;
  transition: all var(--dur) var(--ease);
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-2); }
.plan-card.featured::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px 200px at 50% 0%, var(--accent-soft), transparent 70%);
}
.pc-ribbon {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 3px 14px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .5px;
  background: linear-gradient(135deg, var(--accent), var(--purple)); color: #fff; white-space: nowrap;
}
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 14px 0 4px; position: relative; }
.plan-price .cur { font-size: var(--fs-18); font-weight: 700; color: var(--text-dim); }
.plan-price .num { font-size: var(--fs-40); font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.plan-price .per { font-size: var(--fs-12); color: var(--text-mute); }
.plan-feats { display: flex; flex-direction: column; gap: 9px; margin: var(--sp-4) 0; position: relative; }
.plan-feats li { display: flex; gap: 9px; font-size: var(--fs-12); color: var(--text-dim); align-items: flex-start; }
.plan-feats svg { width: 15px; height: 15px; color: var(--ok); flex: 0 0 15px; margin-top: 1px; }
.plan-feats li.off { color: var(--text-mute); opacity: .65; }
.plan-feats li.off svg { color: var(--text-mute); }

.credit-meter {
  padding: var(--sp-5); border-radius: var(--r-xl); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--purple)); color: #fff;
}
.credit-meter::after {
  content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px;
  border-radius: 99px; background: rgba(255, 255, 255, .12);
}
.cm-row { display: flex; align-items: flex-end; gap: var(--sp-4); position: relative; z-index: 1; flex-wrap: wrap; }
.cm-num { font-size: var(--fs-40); font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.cm-lbl { font-size: var(--fs-12); opacity: .85; }
.cm-bar { margin-top: 16px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .25); overflow: hidden; position: relative; z-index: 1; }
.cm-bar > i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.cm-foot { display: flex; justify-content: space-between; margin-top: 10px; font-size: var(--fs-11); opacity: .9; position: relative; z-index: 1; }

.usage-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.usage-row:last-child { border-bottom: 0; }
.usage-row .ur-name { flex: 0 0 190px; font-size: var(--fs-12); font-weight: 600; }
.usage-row .progress { flex: 1 1 auto; }
.usage-row .ur-val { flex: 0 0 110px; text-align: right; font-family: var(--font-mono); font-size: var(--fs-11); color: var(--text-dim); }

/* ============ 运行监控 ============ */
.trace-item {
  display: flex; gap: 12px; padding: 12px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px;
  transition: all var(--dur) var(--ease); cursor: pointer;
}
.trace-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow-2); }
.trace-item .ti-bar { width: 3px; border-radius: 99px; background: var(--ok); flex: 0 0 3px; }
.trace-item.warn .ti-bar { background: var(--warn); }
.trace-item.err .ti-bar { background: var(--danger); }
.trace-item .ti-main { flex: 1 1 auto; min-width: 0; }
.trace-item .ti-title { font-size: var(--fs-13); font-weight: 650; }
.trace-item .ti-sub { font-size: var(--fs-11); color: var(--text-mute); margin-top: 3px; display: flex; gap: 10px; flex-wrap: wrap; }
.trace-item .ti-right { text-align: right; flex: 0 0 auto; }

.log-line { font-family: var(--font-mono); font-size: var(--fs-11); line-height: 1.9; display: flex; gap: 10px; }
.log-line .ll-t { color: var(--text-mute); flex: 0 0 62px; }
.log-line .ll-lv { flex: 0 0 46px; font-weight: 700; }
.log-line.info .ll-lv { color: var(--info); }
.log-line.ok .ll-lv { color: var(--ok); }
.log-line.warn .ll-lv { color: var(--warn); }
.log-line.err .ll-lv { color: var(--danger); }
.log-line .ll-m { color: var(--text-dim); }

/* ============ 技能中心 ============ */
.skill-row {
  display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 10px;
  transition: all var(--dur) var(--ease);
}
.skill-row:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.skill-row .sr-ic {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent);
}
.skill-row .sr-ic svg { width: 19px; height: 19px; }
.skill-row .sr-main { flex: 1 1 auto; min-width: 0; }
.skill-row .sr-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.skill-row .sr-title b { font-size: var(--fs-13); }
.skill-row .sr-desc { font-size: var(--fs-12); color: var(--text-mute); margin-top: 4px; line-height: 1.6; }
.skill-row .sr-meta { display: flex; gap: 14px; margin-top: 8px; font-size: var(--fs-11); color: var(--text-mute); flex-wrap: wrap; }

/* ============ 设置 / 主题选择 ============ */
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.theme-card {
  border-radius: var(--r-md); border: 2px solid var(--border); padding: 10px; cursor: pointer;
  background: var(--surface-2); transition: all var(--dur) var(--ease); text-align: left;
}
.theme-card:hover { border-color: var(--border-strong); }
.theme-card.active { border-color: var(--accent); }
.tc-preview { height: 62px; border-radius: var(--r-xs); position: relative; overflow: hidden; display: flex; }
.tc-preview > i { flex: 1 1 0; }
.tc-preview .pv-side { width: 34%; }
.tc-preview .pv-main { flex: 1 1 auto; padding: 7px; display: flex; flex-direction: column; gap: 4px; }
.tc-preview .pv-main span { height: 5px; border-radius: 99px; display: block; }
.tc-name { font-size: var(--fs-12); font-weight: 650; margin-top: 8px; }
.tc-sub { font-size: 10px; color: var(--text-mute); }

.lang-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.lang-card {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-md);
  border: 2px solid var(--border); background: var(--surface-2); cursor: pointer; text-align: left;
  transition: all var(--dur) var(--ease);
}
.lang-card:hover { border-color: var(--border-strong); }
.lang-card.active { border-color: var(--accent); background: var(--accent-soft); }
.lang-card .lc-flag {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; display: grid; place-items: center;
  font-size: var(--fs-13); font-weight: 800; background: var(--surface); border: 1px solid var(--border);
}
.lang-card b { display: block; font-size: var(--fs-13); }
.lang-card span { display: block; font-size: 10px; color: var(--text-mute); }

/* ============ 消息中心（单聊 / 群聊） ============ */
.chat-wrap {
  display: grid; grid-template-columns: 300px 1fr; gap: var(--sp-4);
  height: calc(100vh - 216px); min-height: 520px;
}
.chat-side { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.chat-side-top { display: flex; align-items: center; gap: 8px; }
.chat-side-top .seg { flex: 1 1 auto; }
.chat-conv-list {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 2px;
  display: flex; flex-direction: column; gap: 6px;
}
.conv-item {
  display: flex; gap: 10px; padding: 10px; border-radius: var(--r-md); flex: 0 0 auto;
  background: var(--surface); border: 1px solid var(--border); cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.conv-item:hover { border-color: var(--border-strong); }
.conv-item.active { border-color: var(--accent); background: var(--accent-soft); }
.conv-avatar { flex: 0 0 38px; width: 38px; height: 38px; }
.conv-avatar .avatar { width: 38px; height: 38px; border-radius: 12px; }
.conv-avatar .cv-stack {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr;
  width: 100%; height: 100%; border-radius: 12px; overflow: hidden; gap: 1px;
  background: var(--border); border: 1px solid var(--border);
}
.conv-avatar .cv-stack .avatar { width: 100%; height: 100%; border-radius: 0; }
.ci-main { flex: 1 1 auto; min-width: 0; }
.ci-row { display: flex; align-items: center; gap: 8px; }
.ci-row b { font-size: var(--fs-13); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-row + .ci-row { margin-top: 3px; }
.ci-time { margin-left: auto; flex: 0 0 auto; font-size: 10px; color: var(--text-mute); font-family: var(--font-mono); }
.ci-prev {
  flex: 1 1 auto; min-width: 0; font-size: var(--fs-12); color: var(--text-mute);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ci-unread {
  flex: 0 0 auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
}

.chat-main {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); flex: 0 0 auto;
}
.chat-head .conv-avatar { flex: 0 0 34px; width: 34px; height: 34px; }
.chat-head .conv-avatar .avatar,
.chat-head .conv-avatar .cv-stack { width: 34px; height: 34px; border-radius: 10px; }
.chat-msgs {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.msg { display: flex; gap: 10px; max-width: 78%; align-self: flex-start; }
.msg .avatar { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px; margin-top: 2px; }
.msg-body { min-width: 0; }
.msg-sender { font-size: 10px; font-weight: 700; color: var(--text-mute); margin-bottom: 3px; }
.msg-bubble {
  display: inline-block; padding: 9px 12px; border-radius: 12px; border-top-left-radius: 4px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: var(--fs-13); line-height: 1.6; color: var(--text-dim);
  white-space: pre-wrap; word-break: break-word;
}
.msg-time { font-size: 9px; color: var(--text-mute); font-family: var(--font-mono); margin-top: 3px; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg.me .msg-bubble {
  background: var(--accent); color: var(--accent-text); border-color: transparent;
  border-radius: 12px; border-bottom-right-radius: 4px;
}
.msg.me .msg-time { text-align: right; }

.chat-input {
  display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); flex: 0 0 auto;
}
.chat-input .input { flex: 1 1 auto; }

@media (max-width: 960px) {
  .chat-wrap { grid-template-columns: 1fr; height: auto; }
  .chat-conv-list { max-height: 220px; }
  .chat-main { height: 560px; }
}

/* ============ 杂项 ============ */
.kv { display: grid; grid-template-columns: 118px 1fr; gap: 10px 14px; font-size: var(--fs-13); }
.kv dt { color: var(--text-mute); font-size: var(--fs-12); }
.kv dd { margin: 0; }

.hero-banner {
  border-radius: var(--r-xl); padding: var(--sp-6); position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
}
.hero-banner::after {
  content: ""; position: absolute; right: -80px; top: -100px; width: 340px; height: 340px;
  border-radius: 99px; background: var(--accent-soft);
}
.hb-inner { display: flex; align-items: center; gap: var(--sp-6); position: relative; z-index: 1; flex-wrap: wrap; }
.hb-inner .hb-txt { flex: 1 1 340px; min-width: 280px; }
.hb-inner h2 { font-size: var(--fs-24); font-weight: 780; letter-spacing: -.4px; }
.hb-inner p { font-size: var(--fs-13); color: var(--text-dim); margin-top: 8px; line-height: 1.7; }
.hb-actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); flex-wrap: wrap; }

.notice {
  display: flex; gap: 10px; padding: 11px 14px; border-radius: var(--r-md);
  background: var(--accent-soft); border: 1px solid transparent; font-size: var(--fs-12); color: var(--text-dim);
  align-items: flex-start;
}
.notice svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--accent); margin-top: 1px; }
.notice.warn { background: rgba(255, 184, 77, .12); }
.notice.warn svg { color: var(--warn); }
.notice b { color: var(--text); }

.flow-steps { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.flow-step { display: flex; align-items: center; gap: 10px; }
.flow-step .fs-n {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 99px; display: grid; place-items: center;
  font-size: var(--fs-11); font-weight: 800; background: var(--accent-soft); color: var(--accent);
}
.flow-step.done .fs-n { background: var(--ok); color: #04160F; }
.flow-step.cur .fs-n { background: var(--accent); color: var(--accent-text); box-shadow: 0 0 0 4px var(--accent-soft); }
.flow-step .fs-t { font-size: var(--fs-12); font-weight: 620; }
.flow-sep { width: 40px; height: 2px; background: var(--border); margin: 0 10px; }
.flow-sep.done { background: var(--ok); }

.spark-row { display: flex; align-items: center; gap: 12px; }
.spark-row .sr-meta { flex: 0 0 92px; }
.spark-row .sr-meta b { display: block; font-size: var(--fs-13); }
.spark-row .sr-meta span { font-size: 10px; color: var(--text-mute); }

.bar-list { display: flex; flex-direction: column; gap: 12px; }
.bar-item .bi-top { display: flex; justify-content: space-between; font-size: var(--fs-12); margin-bottom: 6px; }
.bar-item .bi-top b { font-weight: 650; }
.bar-item .bi-top span { color: var(--text-mute); font-family: var(--font-mono); font-size: var(--fs-11); }

.chip-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filter-chip {
  padding: 6px 14px; border-radius: 99px; font-size: var(--fs-12); font-weight: 620;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); white-space: nowrap;
  transition: all var(--dur) var(--ease);
}
.filter-chip:hover { border-color: var(--border-strong); color: var(--text); }
.filter-chip.active { background: var(--accent); color: var(--accent-text); border-color: transparent; }
