/* ==========================================================================
   wechat-desktop.css — 桌面端（>768px）：三栏布局
   ========================================================================== */

@media (min-width: 769px) {

  .app { flex-direction: row; }

  /* 左：会话列表栏 */
  .col-list {
    width: var(--col-list); flex: none; background: var(--bg-page);
    border-right: 1px solid var(--line); display: flex; flex-direction: column;
  }
  .col-list .list { background: var(--bg-page); }
  .col-list .list-item { background: var(--bg-page); }
  .col-list .list-item + .list-item::before { left: 68px; }
  .col-list .list-item.active { background: #D9D9D9; }
  [data-theme="dark"] .col-list .list-item.active { background: #2A2A2A; }

  /* 中间：聊天区 */
  .col-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; }

  /* 右侧：状态面板 */
  .col-side {
    width: var(--col-side); flex: none; background: var(--bg-panel);
    border-left: 1px solid var(--line); display: flex; flex-direction: column;
    overflow: hidden; position: relative;
  }
  .col-side.collapsed { width: 0; border-left: none; }

  /* 面板拖拽手柄 */
  .side-resizer {
    position: absolute; left: -3px; top: 0; bottom: 0; width: 6px;
    cursor: col-resize; z-index: 5;
  }

  /* 左侧底部我 */
  .list-foot {
    flex: none; height: 58px; border-top: 1px solid var(--line);
    display: flex; align-items: center; padding: 0 16px; gap: 10px; background: var(--bg-page);
    cursor: pointer;
  }
  .list-foot .avatar { width: 34px; height: 34px; font-size: 14px; }
  .list-foot .lf-name { font-size: 15px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* 欢迎页（未选会话） */
  .welcome {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; color: var(--text-sub); background: var(--bg-page);
  }
  .welcome svg { width: 80px; height: 80px; opacity: .35; }
  .welcome .w-title { font-size: 16px; }
  .welcome .w-sub { font-size: 13px; }
  .welcome kbd {
    background: var(--bg-list); border: 1px solid var(--line); border-radius: 4px;
    padding: 1px 6px; font-size: 12px; font-family: var(--font-num);
  }

  /* 桌面状态面板内容 */
  .side-head {
    height: var(--nav-h); display: flex; align-items: center; padding: 0 16px;
    border-bottom: 1px solid var(--line); gap: 10px; flex: none;
  }
  .side-head .sh-title { font-size: 15px; font-weight: 500; flex: 1; }
  .side-body { flex: 1; overflow-y: auto; padding: 12px; }
  .side-block { background: var(--bg-list); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
  .side-block .sb-title { font-size: 13px; color: var(--text-desc); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
  .side-block .sb-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 5px 0; gap: 10px; }
  .side-block .sb-row .k { color: var(--text-desc); }
  .side-block .sb-row .v { font-family: var(--font-num); text-align: right; overflow: hidden; text-overflow: ellipsis; }
  .kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .kv-card { background: var(--bg-list); border-radius: var(--radius); padding: 10px; text-align: center; }
  .kv-card .kv-num { font-size: 20px; font-weight: 500; font-family: var(--font-num); }
  .kv-card .kv-label { font-size: 12px; color: var(--text-desc); margin-top: 2px; }

  /* 工具调用日志 */
  .tool-log { max-height: 240px; overflow-y: auto; }
  .tool-log-item { font-size: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); line-height: 1.45; }
  .tool-log-item:last-child { border-bottom: none; }
  .tool-log-item .tl-name { color: var(--wx-green); font-weight: 500; }
  .tool-log-item .tl-time { color: var(--text-sub); float: right; font-family: var(--font-num); }
  .tool-log-item .tl-args { color: var(--text-desc); word-break: break-all; margin-top: 2px; }
  .tool-log-item .tl-err { color: var(--wx-red); }

  /* 桌面端右键菜单 */
  .ctx-menu {
    position: fixed; z-index: 2000; background: var(--bg-list); border-radius: 8px;
    box-shadow: var(--shadow-2); min-width: 160px; padding: 4px; overflow: hidden;
  }
  .ctx-menu .ctx-item { padding: 8px 12px; font-size: 14px; border-radius: 6px; cursor: pointer; }
  .ctx-menu .ctx-item:hover { background: var(--bg-hover); }
  .ctx-menu .ctx-item.danger { color: var(--wx-red); }

  /* 移动端元素隐藏 */
  .tabbar { display: none !important; }
}
