/* 11-25 首屏演示（新）："多个网站的咨询，一个后台接待"
   左边三个来源（官网 / 会员中心 / App）发出光点，沿弧线飞进接线端；会话列表一条条弹进来，打开第一条：
   访客提问 → AI 先回复（来自知识库）→ 客服接入 → 右边会员资料逐行出现 → 质检分数环涨到 92。循环播放。
   全部用网页元素画（任何屏幕都清晰），动画只动 transform / opacity（不卡）。往下滚时窗口从后仰转正。 */
.hd { --hd-w: 1180px; --hd-src-w: 196px; --hd-gap: 64px;
  --hd-win: var(--card); --hd-line: var(--line); --hd-soft: var(--bg-2);
  --hd-ease: cubic-bezier(.2, .8, .2, 1); --hd-spring: cubic-bezier(.22, 1.25, .36, 1);
  position: relative; width: min(var(--hd-w), calc(100vw - 48px)); margin: 64px auto 0; text-align: left;
  opacity: 0; transform: translateY(36px); animation: hdIn 1.2s .85s var(--hd-ease) forwards; }
@keyframes hdIn { to { opacity: 1; transform: none; } }
.hd-glow { position: absolute; inset: -12% 6% -6% 22%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .55;
  background: radial-gradient(40% 50% at 30% 40%, color-mix(in srgb, var(--ai1) 45%, transparent), transparent 70%),
              radial-gradient(35% 45% at 75% 60%, color-mix(in srgb, var(--ai2) 35%, transparent), transparent 70%); }

/* 布局：左边来源一列 + 右边接线端窗口 */
.hd-row { position: relative; z-index: 1; display: grid; grid-template-columns: var(--hd-src-w) 1fr; gap: var(--hd-gap); align-items: center; }
.hd-src { display: flex; flex-direction: column; gap: 22px; }
.hd-s { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 16px; background: var(--hd-win);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 0 0 1px var(--hd-line), 0 18px 40px -22px rgba(10, 20, 50, .45);
  transition: transform .5s var(--hd-spring), box-shadow .5s var(--hd-ease); }
.hd-s .fav { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font: 700 15px/1 -apple-system, "SF Pro Display", "PingFang SC", sans-serif;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c)); box-shadow: 0 6px 14px -6px var(--c); }
.hd-s b { display: block; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.hd-s span { display: block; font-size: 12px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; }
.hd-s.ping { transform: translateX(6px) scale(1.03); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 0 6px color-mix(in srgb, var(--c) 14%, transparent), 0 18px 40px -20px var(--c); }

/* 光点飞行的弧线（画在整块上面，坐标由脚本按实际位置算） */
.hd-wires { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
.hd-wires path { fill: none; stroke: color-mix(in srgb, var(--ink-3) 55%, transparent); stroke-width: 1.4; stroke-dasharray: 3 6; opacity: .0; transition: opacity .6s var(--hd-ease); }
.hd.wired .hd-wires path { opacity: .9; }
.hd-dot { position: absolute; z-index: 3; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 70%, transparent), 0 0 18px 6px color-mix(in srgb, var(--c) 60%, transparent); will-change: transform, opacity; }

/* 接线端窗口：往下滚时从后仰转正（--hd-tilt 0~1 由脚本按滚动给） */
.hd-stage3d { perspective: 2000px; }
.hd-win { --t: var(--hd-tilt, 1); position: relative; border-radius: 20px; overflow: hidden; background: var(--hd-win);
  box-shadow: 0 0 0 1px var(--hd-line), 0 50px 100px -40px rgba(10, 20, 60, .55), 0 18px 36px -18px rgba(10, 20, 60, .35);
  transform: rotateX(calc(var(--t) * 13deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg)) translateY(calc(var(--t) * 26px)) scale(calc(1 - var(--t) * .05)); transform-origin: 50% 0; will-change: transform;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
/* 11-25 鼠标在窗口上：跟着光标微微倾斜，表面有一块跟着走的反光 */
.hd-win::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .5s;
  background: radial-gradient(520px circle at var(--gx, 50%) var(--gy, 0%), rgba(255, 255, 255, .07), transparent 60%); }
.hd-win.hov::after { opacity: 1; }
.hd-s { cursor: default; }
.hd-s:hover { transform: translateX(4px); }
/* 11-30 窗口里面照真实接线端画：颜色、圆角、字号都用接线端自己的（public/admin/app.css 的设计令牌） */
.hd-win { --d-bg: #f5f6f8; --d-card: #fff; --d-line: #e3e6eb; --d-line2: #eef0f3; --d-fill: #f7f8fa; --d-hover: #f2f4f7;
  --d-ink: #1b1f27; --d-ink2: #4a5160; --d-ink3: #828997; --d-ink4: #b2b7c1;
  --d-p: #2456e8; --d-p-rgb: 36, 86, 232; --d-psoft: #edf2fe; --d-ok: #1f9d55; --d-oksoft: #e8f6ee; --d-bad: #d93a3a; --d-badsoft: #fdeded;
  --d-rail: #1b1f2b; --d-rail-ink: #8d94a3; --d-sh: 0 0 0 1px var(--d-line);
  color: var(--d-ink); background: var(--d-bg); font: 13px/1.5 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif; }
.hd-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hd-bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; background: var(--d-rail); }
.hd-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; } .hd-bar > i:nth-child(2) { background: #febc2e; } .hd-bar > i:nth-child(3) { background: #28c840; }
.hd-bar .ttl { margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--d-rail-ink); }
.hd-app { display: grid; grid-template-columns: 52px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); height: 496px; }

/* 左边图标栏 */
.hd-rail { min-height: 0; overflow: hidden; background: var(--d-rail); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 0 12px; }
.hd-logo { width: 28px; height: 28px; margin-bottom: 10px; background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 5C13.5 5 5 12.6 5 22c0 5.2 2.6 9.9 6.8 13L10 43l8.6-4.3c1.7.4 3.5.6 5.4.6 10.5 0 19-7.6 19-17S34.5 5 24 5Z' fill='%232456e8'/%3E%3Ccircle cx='16' cy='22' r='3' fill='%23fff'/%3E%3Ccircle cx='24' cy='22' r='3' fill='%23fff'/%3E%3Ccircle cx='32' cy='22' r='3' fill='%23fff'/%3E%3C/svg%3E"); }
.hd-rail .rb { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--d-rail-ink); position: relative; }
.hd-rail .rb .hd-i { width: 18px; height: 18px; }
.hd-rail .rb.on { background: var(--d-p); color: #fff; box-shadow: 0 6px 14px rgba(var(--d-p-rgb), .45); }
.hd-rail .sp { flex: 1; }
.hd-badge { position: absolute; top: -3px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--d-bad); color: #fff; font: 600 10.5px/17px -apple-system, sans-serif; text-align: center; font-style: normal;
  box-shadow: 0 0 0 2px var(--d-rail); transform: scale(0); transition: transform .4s var(--hd-spring); }
.hd-badge.on { transform: none; }
.hd-me { position: relative; width: 30px; height: 30px; margin-top: 6px; border-radius: 50%; background: #e0679a; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.hd-me i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; border: 2px solid var(--d-rail); }

/* 右边主体：顶上一条 + 三栏卡片 */
.hd-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.hd-top { display: flex; gap: 6px; align-items: center; height: 30px; flex: none; min-width: 0; }
.hd-top .tb { height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 10px; border-radius: 8px; background: var(--d-card); box-shadow: var(--d-sh); font-size: 12px; color: var(--d-ink2); white-space: nowrap; flex: none; }
.hd-top .tb .hd-i { width: 13px; height: 13px; color: var(--d-ink3); }
.hd-top .st { color: var(--d-ok); font-weight: 500; } .hd-top .st > i { width: 7px; height: 7px; border-radius: 50%; background: var(--d-ok); }
.hd-top .kpi b { font-weight: 650; color: var(--d-ink); }
.hd-top .vol { margin-left: auto; padding: 0 8px; }
.hd-top .sch { width: 200px; flex: 0 1 200px; min-width: 0; color: var(--d-ink4); }
.hd-top .sch span { overflow: hidden; text-overflow: ellipsis; }
.hd-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; grid-template-rows: minmax(0, 1fr); gap: 8px; }
.hd-cols > * { min-height: 0; overflow: hidden; background: var(--d-card); border-radius: 10px; box-shadow: var(--d-sh); }   /* 三栏都不许被内容撑高 */

/* 会话列表 */
.hd-list { display: flex; flex-direction: column; min-width: 0; }
.hd-seg { display: flex; margin: 8px 8px 6px; padding: 3px; gap: 2px; border-radius: 7px; background: var(--d-line2); }
.hd-seg span { flex: 1; height: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; border-radius: 6px; font-size: 11.5px; color: var(--d-ink2); white-space: nowrap; }
.hd-seg span.on { background: var(--d-card); color: var(--d-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20,22,50,.1); }
.hd-cnt { min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px; background: var(--d-bad); color: #fff; font: 600 10px/15px -apple-system, sans-serif; font-style: normal; text-align: center; transform: scale(0); transition: transform .4s var(--hd-spring); }
.hd-cnt.on { transform: none; }
.hd-cnt.pop, .hd-badge.pop { animation: hdPop .45s var(--hd-spring); }
@keyframes hdPop { 40% { transform: scale(1.3); } }
.hd-ls { margin: 0 8px 6px; height: 28px; border-radius: 7px; background: var(--d-fill); display: flex; align-items: center; gap: 6px; padding: 0 9px; font-size: 11.5px; color: var(--d-ink4); white-space: nowrap; overflow: hidden; }
.hd-ls .hd-i { width: 13px; height: 13px; }
.hd-items { flex: 1; padding: 0 6px; display: flex; flex-direction: column; }
.hd-it { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-10px) scale(.98); transition: grid-template-rows .55s var(--hd-ease), opacity .45s var(--hd-ease), transform .6s var(--hd-spring); }
.hd-it.in { grid-template-rows: 1fr; opacity: 1; transform: none; }
.hd-it > div { overflow: hidden; }
.hd-it .row { position: relative; display: flex; gap: 9px; padding: 9px 8px 9px 10px; margin-bottom: 2px; border-radius: 8px; transition: background .4s var(--hd-ease); }
.hd-it .bar { position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--c); opacity: .9; transition: background .3s; }
.hd-it.sel .row { background: var(--d-psoft); }
.hd-it.sel .bar { background: var(--d-p); opacity: 1; }
.hd-av { position: relative; width: 32px; height: 32px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 600; background: var(--c); }
.hd-av > i { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid var(--d-card); }
.hd-av.sm { width: 26px; height: 26px; font-size: 11px; }
.hd-av.ai { background: #7c5cf0; } .hd-av.ai .hd-i { width: 13px; height: 13px; }
.hd-it .tx { min-width: 0; flex: 1; }
.hd-it .l1 { display: flex; align-items: center; gap: 5px; }
.hd-it .l1 .nm { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.hd-it .l1 time { margin-left: auto; font-size: 10.5px; color: var(--d-ink3); flex: none; }
.hd-it .l2 { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.hd-it .pv { flex: 1; min-width: 0; font-size: 12px; color: var(--d-ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-it .un { flex: none; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--d-bad); color: #fff; font: 600 10px/16px -apple-system, sans-serif; font-style: normal; text-align: center; }
.hd-it .tr { font-size: 10px; font-weight: 600; color: var(--d-p); margin-right: 4px; }
/* 网站标签：圆点 + 网站名（接线端的 site-chip） */
.hd-sc { display: inline-flex; align-items: center; gap: 4px; height: 18px; padding: 0 6px 0 5px; border-radius: 5px; font-size: 10.5px; font-weight: 500; white-space: nowrap; flex: none;
  color: color-mix(in srgb, var(--c) 78%, var(--d-ink)); background: color-mix(in srgb, var(--c) 11%, var(--d-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); }
.hd-sc i { width: 5px; height: 5px; border-radius: 50%; background: var(--c); }

/* 对话 */
.hd-chat { display: flex; flex-direction: column; min-width: 0; position: relative; }
.hd-ch { height: 58px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--d-line); opacity: 0; transform: translateY(-4px); transition: opacity .45s var(--hd-ease), transform .45s var(--hd-ease); }
.hd-chat.open .hd-ch { opacity: 1; transform: none; }
.hd-ch .hd-av { width: 36px; height: 36px; font-size: 13px; }
.hd-ch .who { flex: 1; min-width: 0; }
.hd-ch .who > b { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.hd-ch .cp { width: 13px; height: 13px; color: var(--d-ink4); }
.hd-ch .ol { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 400; color: var(--d-ink3); }
.hd-ch .ol::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #22c55e; }
.hd-vf { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; height: 19px; padding: 0 7px; border-radius: 99px; font-size: 10.5px; color: var(--d-p); background: var(--d-psoft); box-shadow: inset 0 0 0 1px rgba(var(--d-p-rgb), .18);
  opacity: 0; transform: scale(.9); transform-origin: 0 50%; transition: opacity .4s var(--hd-ease), transform .5s var(--hd-spring); }
.hd-vf b { font-weight: 600; letter-spacing: .02em; } .hd-vf .hd-i { width: 11px; height: 11px; color: var(--d-ok); stroke-width: 2.4; }
.hd.vfy .hd-vf { opacity: 1; transform: none; }
.hd-ch .acts { display: flex; gap: 4px; flex: none; }
.hd-ch .ab { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--d-ink2); background: var(--d-fill); }
.hd-ch .ab .hd-i { width: 14px; height: 14px; }
.hd-ch .ab.end { color: var(--d-bad); background: var(--d-badsoft); } .hd-ch .ab.on { color: var(--d-p); background: var(--d-psoft); }
.hd-empty { position: absolute; inset: 58px 0 104px; display: grid; place-items: center; font-size: 12.5px; color: var(--d-ink3); transition: opacity .4s var(--hd-ease); }
.hd-chat.open .hd-empty { opacity: 0; }
.hd-msgs { flex: 1; min-height: 0; padding: 12px 14px 8px; display: flex; flex-direction: column; gap: 6px; justify-content: flex-end; overflow: hidden; }
.hd-m { display: flex; gap: 8px; align-items: flex-start; opacity: 0; transform: translateY(12px) scale(.97); transform-origin: 0 100%; transition: opacity .4s var(--hd-ease), transform .55s var(--hd-spring); }
.hd-m.in { opacity: 1; transform: none; }
.hd-m.me { flex-direction: row-reverse; transform-origin: 100% 100%; }
.hd-m .col { max-width: 78%; display: flex; flex-direction: column; min-width: 0; }
.hd-m.me .col { align-items: flex-end; }
.hd-m .nm { display: flex; align-items: center; font-size: 11px; color: var(--d-ink3); margin: 0 3px 3px; }
.hd-m .tag { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; padding: 0 5px; border-radius: 4px; background: var(--d-psoft); color: var(--d-p); margin-right: 4px; }
.hd-m .tag .hd-i { width: 10px; height: 10px; }
.hd-m .bb { background: var(--d-card); padding: 7px 11px; border-radius: 8px; border-top-left-radius: 2px; box-shadow: var(--d-sh); font-size: 13px; line-height: 1.55; word-break: break-word; }
.hd-m.me .bb { background: var(--d-p); color: #fff; border-radius: 8px; border-top-right-radius: 2px; box-shadow: none; }
.hd-m .meta { font-size: 10.5px; color: var(--d-ink4); margin: 3px 4px 0; white-space: nowrap; }
.hd-m .meta .rd, .hd-m .meta .kb { color: var(--d-p); }
.hd-sys { display: flex; justify-content: center; margin: 4px 0; opacity: 0; transform: scale(.9); transition: opacity .4s var(--hd-ease), transform .5s var(--hd-spring); }
.hd-sys span { font-size: 11px; color: var(--d-ink3); background: rgba(20,22,50,.045); padding: 3px 11px; border-radius: 999px; }
.hd-sys.in { opacity: 1; transform: none; }
.hd-ty { display: flex; justify-content: flex-end; padding-right: 34px; opacity: 0; transform: scale(.9); transform-origin: 100% 100%; transition: opacity .3s, transform .45s var(--hd-spring); }
.hd-ty span { display: flex; gap: 4px; padding: 10px 12px; border-radius: 8px; border-top-right-radius: 2px; background: var(--d-psoft); }
.hd-ty.in { opacity: 1; transform: none; }
.hd-ty i { width: 5px; height: 5px; border-radius: 50%; background: var(--d-p); animation: hdDot 1.1s infinite ease-in-out; }
.hd-ty i:nth-child(2) { animation-delay: .15s; } .hd-ty i:nth-child(3) { animation-delay: .3s; }
@keyframes hdDot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-3px); opacity: 1; } }
/* 输入框：回复访客 / 内部备注 + 工具条 + 发送 */
.hd-in { flex: none; margin: 0 10px 10px; border-radius: 10px; border: 1.5px solid rgba(var(--d-p-rgb), .55); padding: 6px 8px 6px; display: flex; flex-direction: column; gap: 2px; }
.hd-in .mode { display: flex; gap: 4px; }
.hd-in .mode span { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; color: var(--d-ink2); }
.hd-in .mode span.on { background: var(--d-psoft); color: var(--d-p); font-weight: 500; }
.hd-in .mode .hd-i { width: 12px; height: 12px; }
.hd-in .ta { height: 18px; padding: 0 8px; }
.hd-in .caret { display: inline-block; width: 1.5px; height: 14px; background: var(--d-ink); animation: hdCaret 1s steps(1) infinite; }
@keyframes hdCaret { 50% { opacity: 0; } }
.hd-in .tools { display: flex; align-items: center; gap: 10px; padding: 0 6px; color: var(--d-ink3); }
.hd-in .tools .hd-i { width: 14px; height: 14px; }
.hd-in .snd { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 11px; border-radius: 99px; background: rgba(var(--d-p-rgb), .45); color: #fff; font-size: 11px; font-weight: 500; }
.hd-in .snd .hd-i { width: 12px; height: 12px; }

/* 右边：资料 / 快捷 / 历史 / 小结 + 会员资料 + AI 质检 */
.hd-cols > .hd-side { background: none; box-shadow: none; border-radius: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hd-stabs { display: flex; padding: 5px; gap: 2px; border-radius: 10px; background: var(--d-card); box-shadow: var(--d-sh); flex: none; }
.hd-stabs span { flex: 1; height: 26px; display: grid; place-items: center; border-radius: 7px; font-size: 11.5px; color: var(--d-ink2); }
.hd-stabs span.on { background: var(--d-psoft); color: var(--d-p); font-weight: 600; }
.hd.en .hd-stabs { padding: 4px; gap: 0; } .hd.en .hd-stabs span { font-size: 10.5px; }
.hd.en .hd-ch .ol { font-size: 0; gap: 0; }
.hd-card { border-radius: 10px; padding: 12px; background: var(--d-card); box-shadow: var(--d-sh); }
.hd-card h4 { margin: 0 0 10px; font-size: 11.5px; font-weight: 600; color: var(--d-ink3); display: flex; align-items: center; justify-content: space-between; }
.mb-ok { display: inline-flex; align-items: center; gap: 2px; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10.5px; font-weight: 500; color: var(--d-ok); background: var(--d-oksoft); opacity: 0; transform: scale(.85); transition: opacity .4s var(--hd-ease), transform .5s var(--hd-spring); }
.mb-ok .hd-i { width: 11px; height: 11px; stroke-width: 2.4; }
.hd.vfy .mb-ok { opacity: 1; transform: none; }
.hd-kv { display: grid; grid-template-columns: auto 1fr; gap: 7px 10px; font-size: 12px; margin: 0; }
.hd-kv dt { color: var(--d-ink3); } .hd-kv dd { margin: 0; font-weight: 500; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-kv > * { opacity: 0; transform: translateX(8px); transition: opacity .4s var(--hd-ease), transform .5s var(--hd-ease); }
.hd-kv > .in { opacity: 1; transform: none; }
.hd-qc { display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--hd-ease), transform .6s var(--hd-spring); }
.hd-qc.in { opacity: 1; transform: none; }
.hd-ring { position: relative; width: 54px; height: 54px; flex: none; }
.hd-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hd-ring circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.hd-ring .bg { stroke: var(--d-line2); }
.hd-ring .fg { stroke: url(#hdQcGrad); stroke-dasharray: 163.4; stroke-dashoffset: 163.4; transition: stroke-dashoffset 1.4s cubic-bezier(.3, .7, .2, 1); }
.hd-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 17px/1 -apple-system, "SF Pro Display", sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hd-qc .t b { display: block; font-size: 12px; font-weight: 600; } .hd-qc .t span { display: block; font-size: 11px; color: var(--d-ink3); margin-top: 2px; }

/* 11-25 窗口下面"试一下"：点问题或自己输入，演示里的 AI / 客服当场回复 */
.hd-try { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 26px; }
.hd-try .lb { font-size: 14px; font-weight: 650; color: var(--ink-2); margin-right: 2px; }
.hd-chip { height: 36px; padding: 0 16px; border-radius: 99px; border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 550; color: var(--ink);
  background: var(--hd-win); box-shadow: 0 0 0 1px var(--hd-line), 0 6px 16px -10px rgba(10, 20, 50, .35);
  transition: transform .4s var(--hd-spring), box-shadow .3s var(--hd-ease), color .2s; }
.hd-chip:hover { transform: translateY(-2px); color: var(--p); box-shadow: 0 0 0 1px color-mix(in srgb, var(--p) 50%, transparent), 0 10px 22px -10px color-mix(in srgb, var(--p) 55%, transparent); }
.hd-chip:active { transform: scale(.96); }
.hd-ask { display: flex; align-items: center; height: 36px; border-radius: 99px; background: var(--hd-win); box-shadow: 0 0 0 1px var(--hd-line); padding: 0 4px 0 14px; transition: box-shadow .3s var(--hd-ease); }
.hd-ask:focus-within { box-shadow: 0 0 0 2px color-mix(in srgb, var(--p) 70%, transparent), 0 10px 24px -12px color-mix(in srgb, var(--p) 55%, transparent); }
.hd-ask input { width: 190px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; }
.hd-ask input::placeholder { color: var(--ink-3); }
.hd-ask button { height: 28px; padding: 0 13px; border: 0; border-radius: 99px; background: var(--p); color: #fff; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; transition: transform .35s var(--hd-spring), filter .2s; }
.hd-ask button:hover { filter: brightness(1.08); } .hd-ask button:active { transform: scale(.94); }
.hd-replay { height: 36px; padding: 0 14px; border: 0; border-radius: 99px; background: transparent; color: var(--ink-3); font: inherit; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hd-replay:hover { color: var(--ink); }
.hd-replay[hidden] { display: none; }
@media (max-width: 640px) { .hd-ask { width: 100%; } .hd-ask input { flex: 1; width: auto; } }

/* 收尾：整块淡出再重播 */
.hd.reset .hd-items, .hd.reset .hd-msgs, .hd.reset .hd-ch, .hd.reset .hd-card { opacity: 0; transition: opacity .6s var(--hd-ease); }

/* 深色：用接线端自己的深色主题 */
@media (prefers-color-scheme: dark) {
  .hd { --hd-win: #141922; --hd-soft: #1b212c; --hd-line: rgba(255, 255, 255, .08); }
  .hd-win { --d-bg: #121418; --d-card: #181b21; --d-line: #2a2f38; --d-line2: #22262e; --d-fill: #1d2027; --d-hover: #22262e;
    --d-ink: #e6e8ec; --d-ink2: #b2b8c3; --d-ink3: #828997; --d-ink4: #565d6a;
    --d-p: #5b82ff; --d-p-rgb: 91, 130, 255; --d-psoft: #1b2442; --d-ok: #3fbf78; --d-oksoft: #15301f; --d-bad: #f06b6f; --d-badsoft: #3a1c1e; --d-rail: #15181d;
    box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 60px 120px -40px rgba(0,0,0,.85), 0 20px 40px -20px rgba(0,0,0,.6); }
  .hd-sys span { background: rgba(255,255,255,.06); }
  .hd-seg span.on { box-shadow: 0 1px 3px rgba(0,0,0,.4); }
  .hd-glow { opacity: .45; }
}
/* 窄一点的屏幕：先去掉左边的来源，再去掉右栏、会话列表 */
@media (max-width: 1180px) { .hd-row { grid-template-columns: 1fr; } .hd-src, .hd-wires, .hd-dot { display: none; } }
@media (max-width: 960px) { .hd-cols { grid-template-columns: 210px minmax(0, 1fr); } .hd-side { display: none !important; } .hd-top .kpi { display: none; } }
@media (max-width: 640px) {
  .hd-app { grid-template-columns: 1fr; height: 460px; } .hd-rail { display: none; }
  .hd-cols { grid-template-columns: minmax(0, 1fr); } .hd-list { display: none !important; }
  .hd-top .tb:nth-child(2), .hd-top .vol { display: none; } .hd-top .sch { margin-left: auto; flex: 1 1 auto; }
  .hd-ch .acts .ab:nth-child(1), .hd-ch .acts .ab:nth-child(3) { display: none; }
  .hd-win { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .hd, .hd * { animation: none !important; transition: none !important; } .hd { opacity: 1; transform: none; } }
