/* 芯聊OS · 全局样式（桌面 + 手机） */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: #0f172a;
  background: #0a0f1e;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea { font: inherit; color: inherit; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grow { flex: 1; }
.muted { color: #94a3b8; }

/* ------------------------------------------------------------------ 锁屏 */
.lock {
  position: fixed; inset: 0; z-index: 9000; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: max(5vh, env(safe-area-inset-top)) 20px max(4vh, env(safe-area-inset-bottom));
  color: #fff;
  background:
    radial-gradient(45% 40% at 50% 58%, rgba(56, 189, 248, .16), transparent 70%),
    radial-gradient(38% 45% at 12% 22%, rgba(124, 58, 237, .32), transparent 70%),
    radial-gradient(42% 40% at 90% 78%, rgba(14, 165, 233, .22), transparent 70%),
    radial-gradient(30% 30% at 78% 14%, rgba(236, 72, 153, .14), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, #0a0f24 0%, #050712 60%, #020308 100%);
  transition: opacity .6s ease, transform .6s ease;
}
.lock.out { opacity: 0; transform: scale(1.04); pointer-events: none; }
.lk-grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(148, 163, 184, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .12) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 50%, #000, transparent);
}
.lk-clock { position: relative; text-align: center; z-index: 2; }
.lk-date { font-size: 18px; font-weight: 600; opacity: .85; letter-spacing: .04em; }
.lk-time { font-size: clamp(56px, 8vw, 104px); font-weight: 800; line-height: 1; letter-spacing: -.02em; text-shadow: 0 10px 40px rgba(56, 189, 248, .35); }
.lk-stage { position: relative; flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; transition: transform .25s ease-out; }
.lk-halo { position: absolute; width: min(46vh, 70vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(56, 189, 248, .45), rgba(99, 102, 241, .15) 55%, transparent 70%); filter: blur(10px); animation: halo 5s ease-in-out infinite; }
.lk-card {
  position: relative; height: min(50vh, 540px); aspect-ratio: 2 / 3; max-width: 72vw; border-radius: 28px; overflow: hidden;
  border: 1px solid rgba(186, 230, 253, .35);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, .06), 0 30px 80px rgba(2, 6, 23, .7), 0 0 60px rgba(56, 189, 248, .25);
  animation: float 6s ease-in-out infinite;
}
.lk-robot { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; filter: saturate(.75) contrast(1.08) brightness(.92); }
.lk-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 116, 144, .25), transparent 35%, transparent 60%, rgba(7, 11, 24, .85)); mix-blend-mode: normal; }
.lk-card::before { content: ""; position: absolute; left: 0; right: 0; height: 30%; z-index: 1; background: linear-gradient(180deg, transparent, rgba(125, 211, 252, .18), transparent); animation: scan 4.5s linear infinite; }
@keyframes scan { from { top: -30%; } to { top: 100%; } }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes halo { 50% { transform: scale(1.08); opacity: .8; } }
.lk-user { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lk-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .7); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.lk-name { font-weight: 700; font-size: 15px; }
.lk-enter {
  padding: 10px 28px; border-radius: 999px; font-weight: 700; color: #fff;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: background .2s, transform .2s;
}
.lk-enter:hover { background: rgba(255, 255, 255, .26); transform: translateY(-1px); }
.lk-online { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .8; }
.lk-online i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }

/* ------------------------------------------------------------------ 系统外壳 */
.os { position: fixed; inset: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity .5s ease; }
.os.on { opacity: 1; }
.menubar {
  position: relative; z-index: 5000; height: 30px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 12px;
  padding-top: env(safe-area-inset-top);
  color: #fff; font-size: 13px;
  background: rgba(10, 15, 30, .55); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.mb-logo { width: 18px; height: 18px; color: #7dd3fc; margin-right: 4px; }
.mb-app { margin-right: 8px; font-weight: 800; }
.mb-menu { padding: 3px 8px; border-radius: 5px; opacity: .9; }
.mb-menu:hover { background: rgba(255, 255, 255, .14); }
.mb-online { padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 600; margin-right: 10px; }
.mb-time { font-variant-numeric: tabular-nums; font-weight: 600; }
.mb-pop { position: fixed; top: 30px; z-index: 6000; min-width: 180px; padding: 5px; border-radius: 8px; display: none; background: rgba(248, 250, 252, .92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .5); }
.mb-pop.on { display: block; }
.mb-pop button { display: block; width: 100%; text-align: left; padding: 6px 12px; border-radius: 5px; font-size: 13px; }
.mb-pop button:hover { background: #2563eb; color: #fff; }

.desktop { position: relative; flex: 1; overflow: hidden; }
.desk-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 70% 35%, rgba(56, 189, 248, .18), transparent 70%),
    radial-gradient(40% 50% at 15% 85%, rgba(139, 92, 246, .25), transparent 70%),
    linear-gradient(160deg, #0a0f1e, #101a3a 60%, #151436);
}
.desk-robot {
  position: absolute; right: 4%; bottom: 0; height: 82%; pointer-events: none; user-select: none; opacity: .55;
  mix-blend-mode: luminosity;
  mask-image: radial-gradient(42% 50% at 50% 45%, #000 45%, transparent 75%);
  -webkit-mask-image: radial-gradient(42% 50% at 50% 45%, #000 45%, transparent 75%);
}
.desk-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 15, 30, .2), rgba(10, 15, 30, .55) 60%, rgba(10, 15, 30, .2)); }
.desk-files { position: absolute; top: 18px; left: 18px; bottom: 110px; display: grid; grid-auto-flow: column; grid-template-rows: repeat(auto-fill, 96px); grid-auto-columns: 92px; gap: 8px 12px; z-index: 1; }
.desk-file { width: 92px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 4px; border-radius: 8px; color: #fff; font-size: 12px; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.desk-file:hover, .desk-file:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.desk-file span { line-height: 1.25; word-break: break-all; text-align: center; }
.doc { width: 42px; height: 50px; border-radius: 4px 12px 4px 4px; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 12px; color: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); }
.doc.chip { background: linear-gradient(160deg, #334155, #0f172a); border: 1px solid #64748b; color: #7dd3fc; }
.doc.txt { background: #f8fafc; color: #475569; }
.doc.msg { background: linear-gradient(160deg, #38bdf8, #6366f1); }

.widget { position: absolute; top: 18px; right: 18px; width: 300px; z-index: 1; padding: 14px; border-radius: 16px; color: #fff; cursor: pointer; background: rgba(15, 23, 42, .45); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); }
.wg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.wg-head span { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(34, 197, 94, .2); color: #86efac; }
.wg-row { font-size: 12.5px; line-height: 1.5; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-home { display: none; }

/* Dock */
.dock {
  position: fixed; left: 50%; bottom: max(8px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5000;
  display: flex; align-items: flex-end; gap: 6px; padding: 7px 9px; border-radius: 22px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}
.dock-sep { width: 1px; height: 46px; background: rgba(255, 255, 255, .25); margin: 0 4px; align-self: center; }
.dock-item { position: relative; display: flex; flex-direction: column; align-items: center; transition: transform .18s ease; }
.dock-item:hover { transform: translateY(-8px) scale(1.12); }
.dock-tip { position: absolute; bottom: 70px; white-space: nowrap; font-size: 12px; padding: 4px 10px; border-radius: 6px; color: #fff; background: rgba(15, 23, 42, .85); opacity: 0; pointer-events: none; transition: opacity .15s; }
.dock-item:hover .dock-tip { opacity: 1; }
.dock-dot { width: 4px; height: 4px; border-radius: 50%; background: #fff; margin-top: 3px; opacity: 0; }
.dock-item.open .dock-dot { opacity: .9; }
.dock-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 11px; line-height: 18px; display: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.dock-badge.on { display: block; }

.app-ico { width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: 0 6px 14px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .35); }
.app-ico em { font-style: normal; font-weight: 900; color: #fff; letter-spacing: -.02em; }
.ic-terminal { background: linear-gradient(160deg, #3f3f46, #111827); }
.ic-terminal em { font-family: ui-monospace, Menlo, monospace; font-size: 18px; color: #e5e7eb; }
.ic-finder { background: linear-gradient(160deg, #7dd3fc, #2563eb); }
.ic-finder::before { content: ""; position: absolute; left: 11px; right: 11px; top: 16px; bottom: 12px; border-radius: 3px 3px 6px 6px; background: #fff; opacity: .95; }
.ic-finder::after { content: ""; position: absolute; left: 11px; top: 12px; width: 15px; height: 7px; border-radius: 3px 3px 0 0; background: #fff; opacity: .95; }
.ic-icnet { background: linear-gradient(150deg, #ff9a3c, #f05a0a); }
.ic-icnet em { font-size: 21px; font-style: italic; }
.ic-hqew { background: linear-gradient(150deg, #4f8df5, #173fa8); }
.ic-hqew em { font-size: 15px; }
.ic-bomai { background: linear-gradient(150deg, #ffb35c, #e2531f); }
.ic-bomai em { font-size: 24px; }
.ic-xinliao { background: linear-gradient(150deg, #38bdf8, #6366f1); }
.ic-xinliao::before { content: ""; position: absolute; left: 12px; top: 13px; width: 30px; height: 23px; border-radius: 9px; background: #fff; }
.ic-xinliao::after { content: ""; position: absolute; left: 16px; top: 33px; border: 6px solid transparent; border-top-color: #fff; border-left-color: #fff; }
.ic-xinliao em { position: relative; z-index: 1; font-size: 11px; color: #4f46e5; margin-top: -4px; }
.ic-xinliao em::before { content: "芯聊"; }

/* 多人光标 */
.cursor-layer { position: fixed; inset: 0; z-index: 8000; pointer-events: none; overflow: hidden; }
.peer-cur { position: absolute; left: 0; top: 0; opacity: 0; transform: translate3d(-100px, -100px, 0); transition: transform .32s linear, opacity .2s; will-change: transform; }
.peer-cur.on { opacity: 1; }
.peer-cur .arrow { display: block; width: 18px; height: 22px; background: var(--c); clip-path: polygon(0 0, 0 18px, 5px 14px, 8px 22px, 12px 20px, 9px 12px, 17px 12px); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)); }
.peer-cur .tag { position: absolute; left: 15px; top: 16px; max-width: 120px; padding: 3px 8px; border-radius: 999px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }

/* 提示 */
.toast-box { position: fixed; top: 46px; left: 50%; transform: translateX(-50%); z-index: 9500; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 9px 16px; border-radius: 999px; color: #fff; font-size: 13px; background: rgba(15, 23, 42, .88); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); animation: tin .25s ease; transition: opacity .35s, transform .35s; }
.toast.out { opacity: 0; transform: translateY(-8px); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* ------------------------------------------------------------------ 窗口 */
.win {
  position: absolute; display: flex; flex-direction: column; overflow: hidden; z-index: 20;
  border-radius: 12px; background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .18);
  animation: win-in .18s ease;
}
@keyframes win-in { from { opacity: 0; transform: scale(.96); } }
.win.closing { opacity: 0; transform: scale(.96); transition: opacity .18s ease, transform .18s ease; }
.win.min { display: none; }
.win.max { left: 0 !important; top: 0 !important; width: 100% !important; height: calc(100% - 92px) !important; border-radius: 0; }
.win:not(.focused) { box-shadow: 0 18px 50px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .14); }
.win-bar { flex: none; height: 38px; display: flex; align-items: center; gap: 10px; padding: 0 12px; background: linear-gradient(#f3f4f6, #e5e7eb); border-bottom: 1px solid #d1d5db; user-select: none; cursor: default; touch-action: none; }
.traffic { display: flex; gap: 8px; }
.tl { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.tl-close { background: #ff5f57; }
.tl-min { background: #febc2e; }
.tl-max { background: #28c840; }
.win:not(.focused) .tl { background: #d1d5db; }
.win-back { display: none; }
.win-title { flex: 1; text-align: center; font-size: 13px; font-weight: 600; color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 52px; }
.win-bar-right { display: none; }
.win-body { flex: 1; min-height: 0; overflow: auto; position: relative; }
.win-rz { position: absolute; right: 0; bottom: 0; width: 18px; height: 18px; cursor: nwse-resize; }

/* ------------------------------------------------------------------ 行情 App（三套皮肤） */
.mk { --ac: #ff6a00; --ac2: #fff4ec; display: flex; flex-direction: column; background: #f5f5f5; font-size: 13px; }
.skin-hqew { --ac: #1d5fd6; --ac2: #eef4ff; }
.skin-bomai { --ac: #f06a1d; --ac2: #fff6ef; }
.mk-head { background: #fff; flex: none; }
.mk-top { display: flex; gap: 18px; padding: 6px 20px; font-size: 12px; color: #6b7280; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; white-space: nowrap; overflow: hidden; }
.mk-top span:first-child { color: #374151; }
.mk-brandrow { display: flex; align-items: center; gap: 28px; padding: 14px 20px; border-bottom: 2px solid var(--ac); }
.mk-word { display: flex; align-items: baseline; flex-wrap: wrap; width: 180px; flex: none; line-height: 1; }
.mk-word b { font-size: 34px; font-weight: 900; color: var(--ac); font-style: italic; letter-spacing: -.03em; }
.skin-hqew .mk-word b, .skin-bomai .mk-word b { font-style: normal; font-size: 26px; }
.mk-word span { font-size: 20px; font-weight: 800; color: #1f2937; margin-left: 4px; }
.mk-word small { flex-basis: 100%; margin-top: 6px; font-size: 10px; letter-spacing: .06em; color: #9ca3af; }
.mk-searchwrap { flex: 1; max-width: 640px; }
.mk-tabs { display: flex; gap: 22px; margin: 0 0 6px 8px; font-size: 14px; color: #4b5563; }
.mk-tabs .on { color: var(--ac); font-weight: 700; }
.mk-search { display: flex; align-items: center; height: 42px; border: 2px solid var(--ac); border-radius: 4px; background: #fff; overflow: hidden; }
.mk-search-ico { width: 18px; height: 18px; margin: 0 6px 0 12px; color: #9ca3af; flex: none; }
.mk-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; font-size: 16px; font-weight: 600; letter-spacing: .02em; }
.mk-exact { display: flex; align-items: center; gap: 4px; padding: 0 12px; font-size: 13px; color: #6b7280; white-space: nowrap; border-left: 1px solid #e5e7eb; }
.mk-go { height: 100%; padding: 0 30px; background: var(--ac); color: #fff; font-size: 16px; font-weight: 700; }
.mk-go:hover { filter: brightness(1.08); }
.mk-main { flex: 1; min-height: 0; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.mk-foot { flex: none; padding: 6px 16px; font-size: 11.5px; color: #6b7280; background: #fff; border-top: 1px solid #e5e7eb; }
.mk-home { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 20px; }
.mk-hero { text-align: center; }
.mk-hero-word { font-size: 44px; font-weight: 900; color: #374151; letter-spacing: .04em; }
.mk-hero-word::first-letter { color: var(--ac); }
.mk-hero p { margin: 8px 0 0; color: var(--ac); letter-spacing: .3em; font-weight: 600; }
.mk-searchwrap.center { width: min(640px, 100%); flex: none; }
.mk-hot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; color: #6b7280; }
.mk-hot a { color: #374151; text-decoration: underline; cursor: pointer; }
.mk-hot a:hover { color: var(--ac); }
.mk-tip { max-width: 560px; text-align: center; font-size: 12.5px; color: #6b7280; line-height: 1.7; padding: 10px 16px; border-radius: 8px; background: #fff; border: 1px dashed #d1d5db; }
.mk-info { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; padding: 10px 14px; background: #fff; border-bottom: 2px solid var(--ac); font-size: 13px; color: #4b5563; }
.mk-info b { color: #111827; }
.mk-info .hl { color: var(--ac); }
.mk-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border: 1px solid #e5e7eb; }
.mk-filter-tag { padding: 6px 8px; background: #2f6fe4; color: #fff; font-size: 12px; border-radius: 3px; }
.mk-filter input { width: 110px; height: 30px; padding: 0 8px; border: 1px solid #d1d5db; border-radius: 3px; outline: 0; }
.mk-filter input:focus { border-color: var(--ac); }
.mk-filter button { height: 30px; padding: 0 18px; background: #2f6fe4; color: #fff; border-radius: 3px; }
.mk-note { background: #fff; border: 2px solid #c7d7fe; border-radius: 8px; padding: 10px 14px; }
.mk-note-head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; font-size: 12.5px; color: #6b7280; }
.mk-note-head b { color: #1d4ed8; font-size: 13px; }
.mk-note-head b::before { content: "▮ "; color: #facc15; }
.mk-note-empty { margin-top: 8px; color: #9ca3af; font-size: 12.5px; }
.mk-note-list { margin-top: 8px; display: flex; flex-direction: column; }
.mk-note-row { display: grid; grid-template-columns: 90px 1.6fr 1.2fr .8fr .7fr .7fr 1fr; gap: 8px; padding: 6px 4px; font-size: 12.5px; border-top: 1px solid #f1f5f9; cursor: pointer; }
.mk-note-row:hover { background: #f8fafc; }
.mk-note-row .c { color: #1d4ed8; }
.mk-note-row .s { color: #16a34a; }
.mk-tablebox { background: #fff; border: 1px solid #e5e7eb; }
.mk-table { width: 100%; border-collapse: collapse; }
.mk-table th { position: sticky; top: 0; background: #f9fafb; color: #6b7280; font-weight: 600; text-align: left; padding: 9px 10px; border-bottom: 1px solid #e5e7eb; font-size: 12.5px; white-space: nowrap; z-index: 1; }
.mk-table td { padding: 10px; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: #1f2937; }
.mk-table tr:nth-child(even) td { background: #fbfbfb; }
.mk-table tr:hover td { background: var(--ac2); }
.mk-table td.co { color: #1f2937; font-weight: 500; max-width: 240px; }
.mk-ask { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--ac); border: 1px solid var(--ac); background: #fff; white-space: nowrap; }
.mk-ask:hover { background: var(--ac); color: #fff; }
.mk-ask .bub { width: 14px; height: 14px; }
.mk-empty { padding: 50px 20px; text-align: center; color: #6b7280; background: #fff; border: 1px solid #e5e7eb; }
.mk-empty.err { color: #b91c1c; display: flex; gap: 12px; justify-content: center; align-items: center; }
.mk-empty button { padding: 5px 14px; border-radius: 4px; background: var(--ac); color: #fff; }
.mk-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 60px 20px; color: #6b7280; background: #fff; }
.mk-loading i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #e5e7eb; border-top-color: var(--ac); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ 芯聊（仿 QQ 桌面版布局） */
.app-xinliao { background: #f4f5f7; }
.app-xinliao .win-bar { height: 46px; background: linear-gradient(180deg, #eaf1f8, #f1f4f7); border-bottom: 0; }
.app-xinliao .win-title { text-align: left; margin: 0 0 0 10px; overflow: visible; }
.app-xinliao .win-bar-right { display: flex; gap: 4px; }
.qq-bar { display: inline-flex; align-items: center; gap: 9px; }
.qq-baravatar { width: 28px; height: 28px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 0 0 2px #fff; position: relative; }
.qq-baravatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; border-radius: 50%; background: #2ec05c; border: 2px solid #fff; }
.qq-bar b { font-size: 15px; color: #111; }
.qq-sign { font-size: 13px; font-weight: 400; color: #8a8f99; cursor: pointer; }
.qq-ib { width: 30px; height: 30px; padding: 5px; border-radius: 7px; color: #303339; flex: none; }
.qq-ib:hover { background: rgba(0, 0, 0, .06); }
.qq-ib svg { stroke-width: 1.6; }

.qq { display: flex; background: #f4f5f7; font-size: 14px; color: #111; }
.qq-rail { width: 62px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0 14px; }
.qq-rb { position: relative; width: 42px; height: 42px; padding: 9px; border-radius: 10px; color: #303339; }
.qq-rb svg { stroke-width: 1.6; }
.qq-rb:hover { background: rgba(0, 0, 0, .05); }
.qq-rb.on { color: #1e88ff; }
.qq-rb.on svg { fill: #1e88ff; stroke: #1e88ff; }
.qq-rb.dot::after, .qq-rb.warn::after { content: ""; position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f; }
.qq-rb.warn::after { background: #ffa31a; }
.qq-list { width: 300px; flex: none; display: flex; flex-direction: column; border-right: 1px solid #e7e8eb; }
.qq-searchrow { display: flex; gap: 8px; padding: 12px 12px 10px; }
.qq-searchbox { flex: 1; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 8px; background: #e8e9ec; color: #8a8f99; }
.qq-searchbox i { width: 17px; height: 17px; flex: none; }
.qq-search { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; }
.qq-plus { width: 34px; height: 34px; padding: 8px; border-radius: 8px; background: #e8e9ec; color: #6b7079; }
.qq-listbody { flex: 1; overflow: auto; padding: 0 8px 10px; }
.qq-item { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 10px; cursor: pointer; }
.qq-item:hover { background: #ebecef; }
.qq-item.on { background: #e1e3e7; }
.qq-meta { flex: 1; min-width: 0; }
.qq-meta .r1, .qq-meta .r2 { display: flex; align-items: center; gap: 8px; }
.qq-meta .r1 b { flex: 1; font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qq-meta time { flex: none; font-size: 12px; color: #a0a4ab; }
.qq-meta .r2 span { flex: 1; margin-top: 4px; font-size: 13px; color: #9a9ea6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qq-badge { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #ff4d4f; color: #fff; font-size: 12px; font-style: normal; line-height: 20px; text-align: center; margin-top: 4px; }
.qq-badge.mute { background: #c4c7cc; }
.qq-empty { padding: 16px; color: #a0a4ab; font-size: 13px; }
.qq-av { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px; }
.qq-av.sm { width: 38px; height: 38px; font-size: 14px; }
.qq-av.xs { width: 30px; height: 30px; font-size: 12px; }
.qq-av.lg { width: 64px; height: 64px; font-size: 24px; }
.qq-av.helper { background: linear-gradient(135deg, #ffb640, #ff8d1a); padding: 12px; }
.qq-av.helper svg { fill: #fff; stroke: #fff; }
.qq-av.grp { padding: 11px; }
.qq-av.grp svg { stroke: #fff; stroke-width: 2; }
.g-ic { background: linear-gradient(135deg, #fb923c, #ea580c); }
.g-cap { background: linear-gradient(135deg, #34d399, #059669); }
.g-hq { background: linear-gradient(135deg, #60a5fa, #1d4ed8); }
.g-flash { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
.g-yanbiao { background: linear-gradient(135deg, #f87171, #b91c1c); }
.g-love { background: linear-gradient(135deg, #fb7185, #e11d48); }
.g-global { background: linear-gradient(135deg, #22d3ee, #0e7490); }

.qq-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #f2f3f5; }
.qq-chead { flex: none; height: 62px; display: flex; align-items: center; gap: 10px; padding: 0 18px 0 26px; border-bottom: 1px solid #e7e8eb; }
.qq-back { display: none; font-size: 30px; line-height: 1; padding: 0 6px 4px 0; color: #1e88ff; }
.qq-ctitles { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
.qq-ctitle { font-size: 18px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.qq-csub { font-size: 18px; font-weight: 700; color: #111; }
.qq-csub.temp { font-size: 13px; font-weight: 400; color: #9a9ea6; }
.qq-ctools { display: flex; gap: 10px; }
.qq-ctools .qq-ib { width: 34px; height: 34px; padding: 6px; }
.qq-msgwrap { position: relative; flex: 1; min-height: 0; }
.qq-msgs { position: absolute; inset: 0; overflow: auto; padding: 16px 30px 20px; display: flex; flex-direction: column; gap: 14px; }
.qq-time { align-self: center; font-size: 13px; color: #a0a4ab; padding: 4px 0; }
.qq-sys { align-self: center; max-width: 86%; text-align: center; font-size: 13px; color: #9a9ea6; line-height: 1.6; }
.qq-sys a { color: #2b74e2; cursor: default; }
.qq-sys.tip { background: rgba(0, 0, 0, .04); padding: 4px 12px; border-radius: 6px; }
.qq-notice { align-self: center; max-width: 80%; font-size: 12.5px; color: #8a6d3b; background: #fff8e6; border: 1px solid #fbe3a8; padding: 6px 12px; border-radius: 8px; line-height: 1.6; }
.qq-notice b { margin-right: 6px; }
.qq-msg { display: flex; gap: 10px; align-items: flex-start; }
.qq-msg.me { flex-direction: row-reverse; }
.qq-msg.grouped { margin-top: -8px; }
.qq-msg.grouped > .qq-av { visibility: hidden; height: 0; }
.qq-mmain { max-width: min(560px, 72%); display: flex; flex-direction: column; gap: 5px; }
.qq-msg.me .qq-mmain { align-items: flex-end; }
.qq-mname { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #8a8f99; }
.qq-lv { font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 4px; background: #e9ebef; color: #8a8f99; }
.qq-bubble { padding: 10px 14px; border-radius: 10px; background: #fff; font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.qq-msg.me .qq-bubble { background: #cfe5ff; }
.qq-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.qq-parts button { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: #fff; color: #ea580c; border: 1px solid #fed7aa; }
.qq-unread { align-self: flex-end; margin: -8px 48px 0 0; font-size: 11.5px; color: #a0a4ab; }
.qq-newpill { position: absolute; top: 14px; right: 26px; display: none; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; background: #fff; color: #1e88ff; font-size: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .1); }
.qq-newpill.on { display: flex; }
.qq-newpill i { width: 16px; height: 16px; }
.qq-compose { flex: none; position: relative; border-top: 1px solid #e7e8eb; padding: 8px 20px 12px; }
.qq-tools { display: flex; align-items: center; gap: 8px; }
.qq-tools .qq-ib { width: 34px; height: 34px; padding: 6px; }
.qq-tpl { height: 28px; padding: 0 10px; border-radius: 6px; font-size: 13px; color: #555a63; }
.qq-tpl:hover { background: rgba(0, 0, 0, .06); }
.qq-emoji { position: absolute; bottom: calc(100% + 4px); left: 16px; display: none; grid-template-columns: repeat(6, 38px); gap: 2px; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); z-index: 3; }
.qq-emoji.on { display: grid; }
.qq-emoji button { font-size: 21px; height: 38px; border-radius: 6px; }
.qq-emoji button:hover { background: #f1f2f4; }
.qq-quick { display: none; gap: 6px; overflow-x: auto; padding: 6px 0 2px; scrollbar-width: none; }
.qq-quick.on { display: flex; }
.qq-quick button { flex: none; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; background: #fff; color: #444; border: 1px solid #e3e5e8; }
.qq-input { width: 100%; resize: none; border: 0; outline: 0; background: transparent; font-size: 15px; line-height: 1.6; padding: 6px 4px; }
.qq-sendrow { display: flex; justify-content: flex-end; }
.qq-send { padding: 7px 24px; border-radius: 8px; background: #1e88ff; color: #fff; font-size: 14px; }
.qq-send:hover { background: #1677e6; }

.qq-side { width: 290px; flex: none; display: flex; flex-direction: column; background: #f7f8fa; border-left: 1px solid #e7e8eb; }
.qq.hide-side .qq-side { display: none; }
.qq-sbox { padding: 18px 20px; border-bottom: 1px solid #ebecef; }
.qq-sbox.grow { flex: 1; min-height: 0; display: flex; flex-direction: column; border: 0; }
.qq-shead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.qq-shead b { font-size: 16px; }
.qq-shead i { width: 18px; height: 18px; color: #555a63; }
.qq-snotice { margin: 0; font-size: 13.5px; color: #8a8f99; line-height: 1.7; }
.qq-members { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.qq-mem { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #555a63; }
.qq-mem span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qq-mem em { flex: none; font-style: normal; font-size: 12px; padding: 1px 7px; border-radius: 4px; }
.qq-mem em.owner { background: #fff1e0; color: #ff8a00; }
.qq-mem em.admin { background: #e6f1ff; color: #1e88ff; }
.qq-loading { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #8a8f99; font-size: 13px; }
.qq-loading i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #e1e3e7; border-top-color: #8a8f99; animation: spin .8s linear infinite; }
.qq-card { padding: 22px 20px; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.qq-cardtop { display: flex; align-items: center; gap: 12px; }
.qq-cardtop b { display: block; font-size: 16px; line-height: 1.4; }
.qq-cert { display: inline-block; margin-top: 6px; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #e6f1ff; color: #1e88ff; }
.qq-kvs { display: flex; flex-direction: column; gap: 12px; }
.qq-kv { display: grid; grid-template-columns: 72px 1fr; gap: 8px; font-size: 13.5px; }
.qq-kv span { color: #8a8f99; }
.qq-kv b { font-weight: 400; color: #222; word-break: break-all; }
.qq-cardnote { margin: auto 0 0; font-size: 12px; color: #a0a4ab; line-height: 1.6; }

/* ------------------------------------------------------------------ 终端 / 访达 */
.term { background: #111318; color: #d1d5db; font: 13px/1.6 ui-monospace, "SF Mono", Menlo, monospace; padding: 10px 14px; }
.term-out div { white-space: pre-wrap; word-break: break-all; }
.term-out .echo { color: #93c5fd; }
.term-out .err { color: #fca5a5; }
.term-line { display: flex; gap: 8px; }
.term-line .ps { color: #86efac; flex: none; }
.term-in { flex: 1; background: transparent; border: 0; outline: 0; color: #f9fafb; font: inherit; }
.finder { display: flex; background: #fff; }
.fd-side { width: 170px; flex: none; padding: 12px 8px; background: #f3f4f6; border-right: 1px solid #e5e7eb; display: flex; flex-direction: column; gap: 2px; }
.fd-side small { padding: 4px 10px; color: #9ca3af; font-size: 11px; }
.fd-side button { text-align: left; padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.fd-side button.on { background: #dbeafe; color: #1d4ed8; }
.fd-main { flex: 1; min-width: 0; overflow: auto; }
.fd-path { padding: 10px 16px; font-size: 12px; color: #6b7280; border-bottom: 1px solid #f1f5f9; }
.fd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; padding: 16px; }
.fd-file { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; border-radius: 8px; font-size: 12px; text-align: center; word-break: break-all; }
.fd-file:hover { background: #eff6ff; }
.fd-empty { color: #9ca3af; padding: 20px; }
.fd-doc { padding: 16px 22px; }
.fd-text { margin: 0; white-space: pre-wrap; font: 13.5px/1.9 -apple-system, "PingFang SC", sans-serif; color: #1f2937; }

/* ------------------------------------------------------------------ 中等宽度 */
@media (max-width: 1100px) {
  .qq-side { display: none; }
  .widget { display: none; }
}

/* ------------------------------------------------------------------ 手机 */
@media (max-width: 760px) {
  .menubar { height: calc(28px + env(safe-area-inset-top)); }
  .mb-menu, .mb-app { display: none; }
  .mb-time { font-size: 12px; }
  .desk-files { display: none; }
  .desk-bg { background-size: auto, auto, auto 62%, auto; background-position: 0 0, 0 0, right -30% bottom 70px, 0 0; }
  .widget { display: block; position: absolute; top: 14px; left: 14px; right: 14px; width: auto; }
  .m-home { display: grid; position: absolute; left: 14px; right: 14px; top: 190px; grid-template-columns: repeat(4, 1fr); gap: 18px 8px; z-index: 1; }
  .m-app { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 11.5px; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
  .m-app .app-ico { width: 58px; height: 58px; border-radius: 15px; }
  .dock { gap: 10px; padding: 8px 12px; border-radius: 26px; width: calc(100% - 20px); justify-content: space-around; }
  .dock-sep, .dock-tip, .dock-dot { display: none; }
  .dock-item[data-app="icnet"], .dock-item[data-app="hqew"], .dock-item[data-app="bomai"] { display: none; }
  .dock-item:hover { transform: none; }
  .app-ico { width: 52px; height: 52px; }

  .win, .win.max { position: fixed; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; z-index: 7000 !important; }
  .win { animation-name: win-up; }
  @keyframes win-up { from { opacity: 0; transform: translateY(24px); } }
  .win-bar { height: calc(46px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); background: #f8fafc; }
  .traffic { display: none; }
  .win-back { display: block; color: #2563eb; font-size: 15px; font-weight: 600; flex: none; }
  .win-title { margin-right: 56px; font-size: 15px; }
  .win-rz { display: none; }
  .win-body { padding-bottom: env(safe-area-inset-bottom); }

  .mk-top { display: none; }
  .mk-brandrow { flex-direction: column; align-items: stretch; gap: 10px; padding: 10px 12px; }
  .mk-word { width: auto; }
  .mk-word b { font-size: 26px; }
  .mk-word small { display: none; }
  .mk-tabs { gap: 14px; font-size: 13px; overflow-x: auto; white-space: nowrap; }
  .mk-exact { display: none; }
  .mk-go { padding: 0 18px; }
  .mk-main { padding: 10px; }
  .mk-hero-word { font-size: 32px; }
  .mk-info { gap: 6px 14px; }
  .mk-filter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px; }
  .mk-filter-tag, .mk-filter button { display: none; }
  .mk-filter input { width: 100%; min-width: 0; font-size: 13px; }
  .mk-note-row { grid-template-columns: 1fr auto; }
  .mk-note-row span:not(.c):not(.s) { display: none; }
  .mk-table thead { display: none; }
  .mk-table, .mk-table tbody, .mk-table tr, .mk-table td { display: block; width: 100%; }
  .mk-table tr { padding: 10px 12px; border-bottom: 8px solid #f5f5f5; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
  .mk-table td { padding: 0; border: 0; background: none !important; font-size: 12.5px; }
  .mk-table td::before { content: attr(data-l) "："; color: #9ca3af; }
  .mk-table td.co { grid-column: 1 / -1; font-size: 14.5px; font-weight: 700; max-width: none; }
  .mk-table td.co::before, .mk-table td.ask::before { content: none; }
  .mk-table td.ask { grid-column: 1 / -1; text-align: right; margin-top: 4px; }
  .mk-table td:empty { display: none; }

  .qq-rail, .qq-side { display: none; }
  .qq-list { width: 100%; border: 0; }
  .qq-chat { display: none; }
  .qq.show-chat .qq-list { display: none; }
  .qq.show-chat .qq-chat { display: flex; }
  .qq-back { display: block; }
  .qq-chead { padding: 0 12px; height: 54px; }
  .qq-ctools { display: none; }
  .qq-msgs { padding: 12px 12px 16px; }
  .qq-mmain { max-width: 80%; }
  .qq-compose { padding: 6px 10px 10px; }
  .qq-tools .qq-ib:not(:first-child) { display: none; }
  .qq-tools .qq-ib:last-of-type { display: none; }
  .qq-input { font-size: 16px; }
  .qq-sign, .app-xinliao .win-bar-right { display: none; }
  .app-xinliao .win-title { margin-right: 0; }
}

/* ------------------------------------------------------------------ 锁屏 3D 奥创 */
.lk-3d { position: absolute; inset: 0; z-index: 1; opacity: 0; transition: opacity .6s ease; }
.lk-3d canvas { width: 100%; height: 100%; display: block; }
.lock.ul-ready .lk-3d { opacity: 1; }
.lock.ul-ready .lk-card { opacity: 0; transform: scale(.96); pointer-events: none; }
.lk-card { transition: opacity .5s ease, transform .5s ease; }
.lk-clock, .lk-user, .lk-acts { z-index: 3; }
.lk-stage { z-index: 0; pointer-events: none; }
.lock.over-robot { cursor: pointer; }
.lk-progress { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 4px rgba(0, 0, 0, .6); }
.lk-flash { position: fixed; inset: 0; z-index: 9100; background: radial-gradient(circle at 50% 50%, #fff, #bfe9ff 60%, #7cc8ff); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.lk-acts { position: absolute; right: max(22px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.lk-acts-tip { font-size: 11px; letter-spacing: .12em; color: rgba(255, 255, 255, .55); text-align: center; margin-bottom: 2px; }
.lk-act { padding: 9px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #e0f2fe; background: rgba(255, 255, 255, .08); border: 1px solid rgba(186, 230, 253, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background .2s, transform .2s, border-color .2s; }
.lk-act:hover:not(:disabled) { background: rgba(56, 189, 248, .22); transform: translateX(-3px); }
.lk-act.on { background: rgba(56, 189, 248, .35); border-color: #7dd3fc; color: #fff; box-shadow: 0 0 18px rgba(56, 189, 248, .45); }
.lk-act:disabled { opacity: .4; cursor: default; }
@media (max-width: 760px) {
  .lk-acts { position: relative; right: auto; top: auto; transform: none; flex-direction: row; overflow-x: auto; max-width: 100%; padding: 4px 2px; margin-bottom: 10px; scrollbar-width: none; }
  .lk-acts-tip { display: none; }
  .lk-act { flex: none; padding: 7px 12px; font-size: 12px; }
  .lk-user { gap: 6px; }
  .lk-avatar { width: 48px; height: 48px; }
}
.lock.ul-ready .lk-avatar { display: none; }

/* 宇宙版：去掉网格，桌面 3D 摆设 */
.lk-grid { display: none; }
.desk-3d { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.desk-3d canvas { width: 100%; height: 100%; display: block; }
.desktop.ul-ready .desk-3d { opacity: 1; }
.desktop.ul-ready .desk-robot { opacity: 0; transition: opacity .6s ease; }
.desk-bg {
  background:
    radial-gradient(40% 45% at 15% 25%, rgba(124, 58, 237, .28), transparent 70%),
    radial-gradient(45% 45% at 85% 70%, rgba(14, 165, 233, .2), transparent 70%),
    radial-gradient(30% 30% at 70% 12%, rgba(236, 72, 153, .12), transparent 70%),
    radial-gradient(120% 90% at 50% 50%, #0a0f24 0%, #050712 60%, #020308 100%) !important;
}
.desk-bg::after { display: none; }
.lock.ul-ready .lk-name { display: none; }
