/* 电脑网页 = 电脑客户端的样子（2026-10-21，配合 desk-ui.js，MARK deskui-20261021）。只在 html.dk（≥960px）生效。配色同客户端 brand.css。 */
.dk-side, .dk-top { display: none; }
html.dk {
  --dk-red: #d93a2b; --dk-red-dark: #b32b1e; --dk-red-soft: #fdecea; --dk-ink: #1f2328; --dk-ink-2: #4a5058; --dk-ink-3: #8a9099;
  --dk-line: #ebedf0; --dk-hover: #f5f6f8; --dk-rail: #fbf9f8; --dk-list: clamp(268px, 21vw, 320px);
}
html.dk #app { grid-template-columns: calc(72px + var(--dk-list)) minmax(0, 1fr) !important; }
html.dk .side { display: none !important; }
html.dk .sv2-topbar { display: none !important; }
html.dk .dk-side { display: flex; height: 100vh; min-height: 0; border-right: 1px solid var(--dk-line); background: #fff; }

/* 图标栏 */
.dk-rail { flex: none; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 0 14px; background: var(--dk-rail); border-right: 1px solid #f1efed; }
.dk-logo { margin-bottom: 12px; }
.dk-logo img { display: block; width: 42px; height: 42px; }
.dk-tab, .dk-teach { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 60px; padding: 9px 0 7px; border: 0; border-radius: 14px; background: transparent; color: var(--dk-ink-2); font: inherit; font-size: 12px; line-height: 1.2; cursor: pointer; position: relative; }
.dk-tab:hover, .dk-teach:hover { background: #f2efec; }
.dk-tab.on { background: var(--dk-red-soft); color: var(--dk-red); font-weight: 700; }
.dk-tab:focus-visible, .dk-railbtn:focus-visible, .dk-me:focus-visible { outline: 2px solid var(--dk-red); outline-offset: 2px; }
.dk-rail-gap { flex: 1; }
.dk-rail-foot { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dk-railbtn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--dk-ink-2); cursor: pointer; position: relative; }
.dk-railbtn:hover { background: #f2efec; }
.dk-teach.dot::after { content: ''; position: absolute; top: 6px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--dk-red); }
.dk-me { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #ebe8e5; color: var(--dk-ink-2); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

/* 第二栏 */
.dk-list { flex: none; width: var(--dk-list); display: flex; flex-direction: column; min-height: 0; }
.dk-panel { flex: 1; display: flex; flex-direction: column; min-height: 0; padding: 24px 16px 0; }
.dk-panel[hidden] { display: none; }
.dk-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px; }
.dk-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: .5px; color: var(--dk-ink); }
.dk-new { height: 36px; padding: 0 14px; border: 1px solid #f4c9c3; border-radius: 10px; background: var(--dk-red-soft); color: var(--dk-red); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.dk-new:hover { background: #fbdcd8; }
.dk-desc { margin: 10px 4px 14px; color: var(--dk-ink-3); font-size: 13px; line-height: 1.6; }
.dk-card { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid #f6d6d1; border-radius: 12px; background: #fff6f4; text-align: left; font: inherit; cursor: pointer; }
.dk-card strong { color: var(--dk-red); font-size: 14px; }
.dk-card small { color: var(--dk-ink-3); font-size: 12px; }
.dk-card:hover { border-color: #f0b8b0; }
.dk-search { display: flex; align-items: center; gap: 8px; height: 40px; margin-bottom: 6px; padding: 0 12px; border-radius: 10px; background: #f4f5f7; color: #9aa0a8; }
.dk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--dk-ink); font: inherit; font-size: 14px; }
.dk-search:focus-within { box-shadow: 0 0 0 2px #f4c9c3; }
.dk-scroll { flex: 1; min-height: 0; overflow: auto; margin: 0 -16px; padding: 2px 12px 18px; }
.dk-sec + .dk-sec { margin-top: 8px; }
.dk-sec-title { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 6px; color: var(--dk-ink-3); font-size: 12px; font-weight: 600; }
.dk-more { border: 0; background: none; color: var(--dk-red); font: inherit; font-size: 12px; cursor: pointer; }
.dk-empty { padding: 6px 8px; color: #9aa0a8; font-size: 13px; }

/* 对话行（用原来的 chatRow，只换样子） */
html.dk .dk-chat { display: flex; align-items: center; gap: 8px; min-height: 38px; margin: 0; padding: 0 6px 0 8px; border-radius: 10px; background: transparent; }
html.dk .dk-chat:hover { background: var(--dk-hover); }
html.dk .dk-chat.on { background: var(--dk-red-soft); }
html.dk .dk-chat .ct { flex: 1; min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--dk-ink); font: inherit; font-size: 14px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
html.dk .dk-chat.on .ct { color: var(--dk-red-dark); font-weight: 600; }
html.dk .dk-chat .chat-more { flex: none; opacity: 0; }
html.dk .dk-chat:hover .chat-more, html.dk .dk-chat .chat-more:focus-visible { opacity: 1; }
.dk-av-sm { flex: none; width: 22px; height: 22px; border-radius: 50%; object-fit: cover; background: #f3f1ef; }

/* 教练行 */
.dk-ex { position: relative; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; padding: 6px 8px 6px 10px; border-radius: 12px; }
.dk-ex:hover { background: #f7f8fa; }
.dk-ex.on { background: var(--dk-red-soft); }
.dk-ex.on::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 2px; background: var(--dk-red); }
.dk-ex-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px 0; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.dk-av { flex: none; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; background: #f3f1ef; }
.dk-ex-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dk-ex-text strong { color: var(--dk-ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-ex-text small { color: #9aa0a8; font-size: 12px; }
.dk-ex-new { flex: none; height: 32px; padding: 0 10px; border: 1px solid var(--dk-line); border-radius: 9px; background: #fff; color: var(--dk-red); font: inherit; font-size: 13px; cursor: pointer; }
.dk-ex-new:hover { border-color: #f4c9c3; background: #fff8f6; }
.dk-ex-chats { margin: -2px 0 6px 52px; }
.dk-add { width: 100%; height: 42px; margin-top: 8px; border: 1px dashed #f0b8b0; border-radius: 12px; background: #fff; color: var(--dk-red); font: inherit; font-size: 14px; cursor: pointer; }
.dk-add:hover { background: #fff8f6; }

/* 资料 / 工具 */
.dk-entry { display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 2px; padding: 12px 12px; border: 0; border-radius: 12px; background: none; color: var(--dk-ink); text-align: left; font: inherit; cursor: pointer; }
.dk-entry:hover { background: #f7f8fa; }
.dk-entry.on { background: var(--dk-red-soft); }
.dk-entry.on strong { color: var(--dk-red); }
.dk-entry-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dk-entry-text strong { font-size: 15px; }
.dk-entry-text small { color: #9aa0a8; font-size: 12px; line-height: 1.5; }
.dk-entry svg { flex: none; color: #c2c6cc; }

/* 对话区顶部：教练名片 */
html.dk.dk-chatview .dk-top { display: flex; flex: none; align-items: center; gap: 12px; height: 76px; padding: 0 28px; border-bottom: 1px solid #f2f3f5; background: #fff; }
.dk-top-av { display: flex; }
.dk-av-lg { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #f3f1ef; }
.dk-top-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dk-top-name { color: var(--dk-ink); font-size: 19px; font-weight: 800; }
.dk-top-sub { color: #9aa0a8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }

/* 欢迎页：字号、红色教练按钮、底下那行状态照客户端 */
html.dk #welcome #hello { font-size: clamp(32px, 2.6vw, 42px); font-weight: 900; letter-spacing: 1px; }
html.dk #welcome #expick { height: 38px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--dk-red); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(217, 58, 43, .22); }
html.dk #welcome #expick:hover { background: var(--dk-red-dark); }
html.dk.sv2-status-quiet #welcome .status { display: flex !important; }

/* 窄一点的电脑窗口：教练行的「新对话」缩成一个加号，名字留够地方 */
@media (max-width: 1199px) {
  .dk-ex-new { width: 32px; padding: 0; font-size: 0; }
  .dk-ex-new::before { content: '＋'; font-size: 16px; }
}

/* 第二版（左边六项）：客户助手、团队管理直接进页面，不出第二栏 */
html.dk.dk-nolist #app { grid-template-columns: 72px minmax(0, 1fr) !important; }
html.dk.dk-nolist .dk-list { display: none; }
.dk-tab[hidden] { display: none; }
.dk-scroll > .dk-sec-title:first-child { padding-top: 4px; }
.dk-more-row { display: block; width: 100%; margin-top: 6px; padding: 8px; text-align: center; }

/* 第三版：收起第二栏、项目文件夹、底部版本积分（MARK chat-folders-20261021） */
.dk-head-act { display: flex; align-items: center; gap: 6px; }
.dk-iconbtn { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #9aa0a8; cursor: pointer; }
.dk-iconbtn:hover { background: var(--dk-hover); color: var(--dk-ink); }
.dk-iconbtn:focus-visible { outline: 2px solid var(--dk-red); outline-offset: 1px; }
html.dk.dk-collapsed #app { grid-template-columns: 72px minmax(0, 1fr) !important; }
html.dk.dk-collapsed .dk-list { display: none; }
.dk-open { display: none; margin-left: -8px; }
html.dk.dk-collapsed:not(.dk-nolist) .dk-open { display: inline-grid; }

.dk-foot { flex: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 10px 18px 12px; border: 0; border-top: 1px solid #f2f3f5; background: #fff; text-align: left; font: inherit; cursor: pointer; }
.dk-foot[hidden] { display: none; }
.dk-foot:hover { background: #fafafa; }
.dk-foot-name { color: var(--dk-ink); font-size: 13px; }
.dk-foot-plan { color: #9aa0a8; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dk-tip { line-height: 1.6; font-size: 12px; }
.dk-folder { position: relative; display: flex; align-items: center; gap: 2px; border-radius: 10px; }
.dk-folder:hover { background: var(--dk-hover); }
.dk-folder.drop { background: var(--dk-red-soft); box-shadow: inset 0 0 0 1.5px #f0b8b0; }
.dk-folder-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 4px 0 6px; border: 0; background: none; color: var(--dk-ink-2); text-align: left; font: inherit; font-size: 14px; cursor: pointer; }
.dk-folder-main svg { flex: none; color: #b0b5bc; }
.dk-caret { display: inline-grid; transition: transform .15s; }
.dk-folder.open .dk-caret { transform: rotate(90deg); }
.dk-folder-name { flex: 1; min-width: 0; color: var(--dk-ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-folder-n { color: #9aa0a8; font-size: 12px; }
.dk-folder-more { width: 28px; height: 28px; opacity: 0; }
.dk-folder:hover .dk-folder-more, .dk-folder-more:focus-visible { opacity: 1; }
.dk-folder-chats { margin: 0 0 6px 22px; padding-left: 6px; border-left: 1px solid #f0f1f3; }
html.dk .dk-chat[draggable="true"] { cursor: grab; }
@media (prefers-reduced-motion: reduce) { .dk-caret { transition: none; } }

/* 「认识我」卡片：可以关；画像填全了就不显示 */
.dk-card { position: relative; flex-direction: row; align-items: flex-start; gap: 4px; padding: 0; }
.dk-card[hidden] { display: none; }
.dk-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 12px 6px 12px 14px; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; }
.dk-card-main strong { color: var(--dk-red); font-size: 14px; }
.dk-card-main small { color: var(--dk-ink-3); font-size: 12px; line-height: 1.5; }
.dk-card-x { width: 28px; height: 28px; margin: 6px 6px 0 0; font-size: 18px; line-height: 1; }

/* 老版左栏顶上的「体验新版电脑页面」（MARK deskui-pref-20261022）：只在电脑宽度显示 */
.dk-try { display: none; }
@media (min-width: 960px) {
  .dk-try { display: flex; flex-direction: column; gap: 2px; width: calc(100% - 24px); margin: 0 12px 12px; padding: 10px 12px; border: 1px solid #f4c9c3; border-radius: 12px; background: #fff6f4; text-align: left; font: inherit; cursor: pointer; }
  .dk-try strong { color: #d93a2b; font-size: 14px; }
  .dk-try small { color: #8a9099; font-size: 12px; }
  .dk-try:hover { border-color: #f0b8b0; background: #fdecea; }
}

/* CC 没有 side-v2：顶上浮着的「测试模式」「云端教练」照 TEST 的规则处理，不压教练名片 */
html.dk .quota { display: none !important; }
html.dk .trial-mode { top: 22px; left: auto; right: 180px; z-index: 31; }
html.dk.dk-trial-solo .trial-mode { display: none !important; }

/* formal-ui3-1028：正式版不显示「测试模式 · 正常回答 / 模型盲测」 */
html body.formal-ui .trial-mode, html.dk body.formal-ui .trial-mode { display: none !important; }
