/*
 * 首屏动效：钉钉 ⇄ DooAny 左右交叉。
 *
 * 三部分：
 *   1. .yx  —— DooAny 桌面端。样式逐条取自桌面端设计稿
 *             design-output/yingxi-desktop/prototype（base.css + desktop.html），数值不改，
 *             只加 .yx 前缀避免和官网的 .btn / .chip / .card 打架。品牌换成 DooAny。
 *   2. .dk  —— 钉钉手机端（iOS）群聊。颜色、字号、圆角取自钉钉客户端自带的
 *             dingtalk-theme.css（--common_* 令牌）。
 *   3. .hd  —— 舞台：进度条、焦点、飞行光点、手机版切换。
 */

/* =====================================================================
   1. DooAny 桌面端（设计稿 1:1）
   ===================================================================== */
.yx {
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Inter", "Helvetica Neue", sans-serif;
  --num: "Inter", -apple-system, "SF Pro Text", sans-serif;
  --brand: #011627;
  --brand-2: #12355b;
  --ice: #8cb8e0;
  --lilac: #b9b3e8;
  --bg: #f4f3ef;
  --surface: #ffffff;
  --sunken: #efede7;
  --border: #e4e2dc;
  --divider: #eceae4;
  --text: #1b1f23;
  --heading: #011627;
  --muted: #5b6470;
  --faint: #8a919a;
  --success: #15803d;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --danger: #b91c1c;
  --e1: 0 1px 2px rgb(1 22 39 / 0.06);
  --e2: 0 8px 24px rgb(1 22 39 / 0.08), 0 1px 2px rgb(1 22 39 / 0.06);
  --e3: 0 24px 64px rgb(1 22 39 / 0.16), 0 2px 6px rgb(1 22 39 / 0.06);
  --ai-edge: linear-gradient(90deg, var(--brand-2), var(--ice) 55%, var(--lilac));
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  font-family: var(--font);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-align: left;
  letter-spacing: 0;
}
.yx *,
.yx *::before,
.yx *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.yx button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: default;
}
.yx svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.yx svg.i.sm { width: 15px; height: 15px; }

/* 窗口外框 */
.yx.window {
  width: 1280px; height: 800px; border-radius: 14px; overflow: hidden; position: relative;
  background: var(--bg); box-shadow: 0 30px 80px rgb(1 22 39 / 0.28), 0 0 0 1px rgb(1 22 39 / 0.1);
  display: flex;
}
.yx .titlebar { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; position: absolute; inset: 0 0 auto 0; z-index: 5; }
.yx .titlebar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; display: block; }
.yx .titlebar i:nth-child(2) { background: #febc2e; }
.yx .titlebar i:nth-child(3) { background: #28c840; }

/* 犀光背景光晕 */
.yx .aura { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.yx .aura::before, .yx .aura::after { content: ""; position: absolute; border-radius: 50%; filter: blur(80px); }
.yx .aura::before { width: 620px; height: 620px; left: -160px; top: -220px; background: #cfe0f2; opacity: 0.7; }
.yx .aura::after { width: 560px; height: 560px; right: -140px; bottom: -200px; background: #f3e3d3; opacity: 0.65; }

/* 基础组件 */
.yx .btn {
  height: 44px; padding: 0 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; transition: transform 0.12s var(--ease), background 0.2s, box-shadow 0.2s;
}
.yx .btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgb(1 22 39 / 0.22); }
.yx .btn-ghost { background: var(--surface); color: var(--heading); box-shadow: inset 0 0 0 1px var(--border); }
.yx .btn-sm { height: 34px; padding: 0 14px; font-size: 13.5px; }
.yx .btn.is-pressed { transform: scale(0.94); background: var(--brand-2); }
.yx .link { color: var(--brand-2); font-weight: 500; }
.yx .tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; background: var(--sunken); color: var(--muted); }
.yx .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.yx .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 13px; background: var(--brand); flex-shrink: 0; }
.yx .xi { position: relative; background: radial-gradient(circle at 35% 30%, #12355b, #011627 70%); color: #fff; }
.yx .xi::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 2px;
  background: conic-gradient(from 0deg, #12355b, #8cb8e0, #b9b3e8, #12355b);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.yx .xi img { width: 64%; height: 64%; display: block; }
.yx .thinking::after { animation: yx-spin 2.4s linear infinite; }
@keyframes yx-spin { to { transform: rotate(360deg); } }
@keyframes yx-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes yx-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes yx-slidein { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 外壳：左栏 → 主区 → 右侧面板 → 右侧能力栏 */
.yx .ws { flex: 1; display: flex; min-width: 0; }
.yx .ws-body { flex: 1; display: flex; min-height: 0; min-width: 0; }

.yx .side { width: 256px; flex-shrink: 0; display: flex; flex-direction: column; padding: 46px 12px 8px; background: rgb(255 255 255 / 0.42); border-right: 1px solid var(--divider); }
.yx .dest { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: rgb(1 22 39 / 0.05); border-radius: 12px; margin-bottom: 12px; }
.yx .dest button { height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.yx .dest button.on { background: var(--surface); color: var(--heading); box-shadow: var(--e1); font-weight: 600; }
.yx .newtask { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px; font-weight: 600; color: var(--heading); width: 100%; }
.yx .newtask .k { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 500; font-family: var(--num); }
.yx .search-row { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: 10px; color: var(--faint); font-size: 13.5px; width: 100%; }
.yx .search-row .k { margin-left: auto; font-size: 11.5px; font-family: var(--num); }
.yx .grp { font-size: 12px; color: var(--faint); padding: 14px 12px 4px; font-weight: 500; display: flex; justify-content: space-between; }
.yx .list { flex: 1; overflow: hidden; margin-top: 4px; }
.yx .row { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; text-align: left; color: var(--text); }
.yx .row.on { background: var(--surface); box-shadow: var(--e1); font-weight: 600; color: var(--heading); }
.yx .row span.t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yx .row .st { font-size: 11.5px; color: var(--warn); font-weight: 500; }
.yx .run { background: var(--ice); animation: yx-breathe 1.6s ease-in-out infinite; box-shadow: 0 0 0 3px rgb(140 184 224 / 0.3); }
.yx .wait { background: #e08a1e; }
.yx .done { background: var(--success); }

/* 左栏底部：头像 + 名字 │ 通知 · 钉钉 */
.yx .me { display: flex; align-items: center; gap: 4px; padding: 10px 4px 2px; margin-top: 6px; border-top: 1px solid var(--divider); flex-shrink: 0; }
.yx .me-who { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; text-align: left; }
.yx .me-who .avatar { width: 34px; height: 34px; background: linear-gradient(135deg, #1f4a73, #12355b); }
.yx .me-who .n { font-size: 14px; font-weight: 600; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yx .me-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); position: relative; flex-shrink: 0; }
.yx .me-ic .bd { position: absolute; top: 4px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e08a1e; color: #fff; font-size: 10px; font-weight: 600; font-family: var(--num); display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.yx .me-ic .st { position: absolute; right: 7px; bottom: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px var(--bg); }

/* 右侧插件图标 */
.yx .prail { width: 56px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 52px 0 14px; border-left: 1px solid var(--divider); background: rgb(255 255 255 / 0.45); }
.yx .pr { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); position: relative; transition: background 0.3s, color 0.3s; }
.yx .pr.on { background: var(--brand); color: #fff; }
.yx .pr .live { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 0 2px #fff; animation: yx-breathe 1.6s ease-in-out infinite; }
.yx .pr .cnt { position: absolute; top: -3px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--surface); color: var(--heading); font-size: 10px; font-family: var(--num); font-weight: 600; display: grid; place-items: center; box-shadow: var(--e1); }
.yx .pr-sep { width: 22px; height: 1px; background: var(--border); margin: 2px 0; }
.yx .ding { width: 20px; height: 20px; border-radius: 6px; background: #1f6feb; color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }

/* 主区 */
.yx .main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }
.yx .hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 64px 8px; position: relative; }
.yx .hero .orb { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; box-shadow: var(--e3); }
.yx .hero h1 { font-size: 30px; color: var(--heading); font-weight: 700; letter-spacing: -0.01em; line-height: 1.6; }
.yx .hero p.q { color: var(--muted); font-size: 16px; margin: 6px 0 26px; }
.yx .composer { width: 100%; max-width: 720px; background: var(--surface); border-radius: 24px; box-shadow: var(--e2); padding: 16px 16px 12px 20px; position: relative; }
.yx .composer .ph-text { font-size: 16px; line-height: 1.6; min-height: 52px; color: #9aa1aa; }
.yx .c-bar { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.yx .c-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.yx .c-hint { font-size: 12px; color: var(--faint); margin-left: 6px; }
.yx .send { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.yx .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; max-width: 720px; }
.yx .chip { height: 36px; padding: 0 14px; border-radius: 999px; background: rgb(255 255 255 / 0.7); box-shadow: inset 0 0 0 1px var(--border); font-size: 13.5px; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }

.yx .head { height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 10px 24px 0; }
.yx .head h2 { font-size: 15px; color: var(--heading); font-weight: 600; line-height: 1.6; }
.yx .head .tag.w { background: var(--warn-soft); color: var(--warn); }
.yx .head .tag.ok { background: #e3efe7; color: var(--success); }
.yx .head .tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.yx .thread { flex: 1; overflow: hidden; padding: 8px 0 20px; position: relative; }
.yx .col { max-width: 720px; margin: 0 auto; padding: 0 32px; display: flex; flex-direction: column; gap: 16px; transition: transform 0.6s var(--ease); }
.yx .u { align-self: flex-end; max-width: 78%; background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 20px 20px 6px 20px; font-size: 15px; }
.yx .steps { display: flex; flex-direction: column; gap: 2px; padding-left: 2px; }
.yx .steps .sum { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.yx .steps .sum .avatar { width: 24px; height: 24px; font-size: 11px; }
.yx .steps .sum .link { font-size: 13px; }
.yx .steps ul { list-style: none; margin: 8px 0 0 34px; display: flex; flex-direction: column; gap: 6px; }
.yx .steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.yx .steps li svg { color: var(--success); }
.yx .steps li .dot { margin: 0 4px; }
.yx .ai { position: relative; background: var(--surface); border-radius: 22px; box-shadow: var(--e2); padding: 20px 22px; }
.yx .ai::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 2px; background: var(--ai-edge); }
.yx .ai .who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.yx .ai .who .avatar { width: 24px; height: 24px; font-size: 11px; }
.yx .ai .who b { color: var(--heading); font-weight: 600; }
.yx .ai p.lead { font-size: 18px; line-height: 1.6; color: var(--heading); font-weight: 600; }
.yx .ai p.more { font-size: 15px; color: var(--text); margin-top: 8px; }
.yx .srcs { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.yx .srcs .tag { height: 28px; padding: 0 10px; font-size: 12.5px; }
.yx .ask { background: var(--warn-soft); border-radius: 20px; padding: 18px 20px; box-shadow: inset 0 0 0 1px #f2d7ad; }
.yx .ask .t { display: flex; align-items: center; gap: 8px; color: var(--warn); font-weight: 600; font-size: 14px; }
.yx .ask p { margin: 8px 0 14px; font-size: 15px; color: var(--text); }
.yx .ask p b { color: var(--heading); }
.yx .ask .acts { display: flex; align-items: center; gap: 8px; }
.yx .ask .acts .link { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 400; }
.yx .past { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--faint); }
.yx .past::before, .yx .past::after { content: ""; flex: 1; height: 1px; background: var(--divider); }
.yx .past svg { color: var(--success); }
.yx .dock-c { padding: 0 32px 6px; }
.yx .dock-c .composer { margin: 0 auto; padding: 10px 12px 10px 18px; border-radius: 22px; display: flex; align-items: flex-end; gap: 6px; }
.yx .dock-c .ph-text { flex: 1; min-height: 28px; height: 28px; font-size: 15px; padding-top: 4px; line-height: 1.6; align-self: center; }

/* 右侧面板：本任务的文件 */
.yx .panel { width: 300px; flex-shrink: 0; border-left: 1px solid var(--divider); background: rgb(255 255 255 / 0.55); display: flex; flex-direction: column; padding-top: 46px; overflow: hidden; }
.yx .panel .ph { display: flex; align-items: center; padding: 0 12px 10px 20px; font-size: 13px; color: var(--muted); font-weight: 600; }
.yx .panel .ph > button { margin-left: auto; }
.yx .ptabs { display: flex; gap: 4px; padding: 3px; background: rgb(1 22 39 / 0.05); border-radius: 10px; }
.yx .ptabs button { height: 28px; padding: 0 12px; border-radius: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.yx .ptabs button.on { background: var(--surface); color: var(--heading); box-shadow: var(--e1); font-weight: 600; }
.yx .doc { margin: 0 16px; background: var(--surface); border-radius: 16px; box-shadow: var(--e2); padding: 20px 20px 16px; }
.yx .doc h4 { font-size: 15px; color: var(--heading); line-height: 1.6; }
.yx .doc .meta { font-size: 11.5px; color: var(--faint); margin: 2px 0 14px; }
.yx .kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.yx .kpi { background: var(--sunken); border-radius: 10px; padding: 10px; }
.yx .kpi b { display: block; white-space: nowrap; font-family: var(--num); font-size: 14.5px; color: var(--heading); }
.yx .kpi span { font-size: 11.5px; color: var(--muted); }
.yx .bars { display: flex; flex-direction: column; gap: 8px; }
.yx .bar { display: grid; grid-template-columns: 40px 1fr 36px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
html[lang='en'] .yx .bar { grid-template-columns: 64px 1fr 36px; } /* 英文城市名更长 */
.yx .bar i { display: block; height: 8px; border-radius: 4px; background: var(--brand-2); }
.yx .bar em { font-style: normal; font-family: var(--num); text-align: right; }
.yx .files { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.yx .file { width: 100%; text-align: left; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 10px; border-radius: 12px; font-size: 13.5px; }
.yx .file .fi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #e6ecf3; color: var(--brand-2); flex-shrink: 0; }
.yx .file .fi.x { background: #e3efe7; color: var(--success); }
.yx .file small { display: block; font-size: 11.5px; color: var(--faint); line-height: 1.2; }
.yx .file div { line-height: 1.3; }
.yx .file .dl { margin-left: auto; color: var(--faint); }

/* —— 挡住官网 app.css 的同名类 ——
   官网自己的产品画面模型（app.css）里有全局的 .main / .panel / .doc / .list / .steps / .me，
   设计稿没写的属性会漏进 .yx（多出边框、底色、内边距）。这里按设计稿的值显式写回。 */
.yx .main { background: none; }
.yx .me { justify-content: normal; }
.yx .list { border: 0; border-radius: 0; background: none; }
.yx .steps { margin: 0; }
.yx .steps li { padding: 0; }
.yx .panel { padding: 46px 0 0; }
.yx .doc { margin-top: 0; border: 0; }
.yx .dot:not(.run):not(.wait):not(.done) { background: transparent; }

/* —— 动效用的状态（设计稿里没有的中间态，用设计稿已有的件拼出来） —— */
.yx .scr { position: absolute; inset: 0; display: flex; transition: opacity 0.5s var(--ease); }
.yx .scr.off { opacity: 0; pointer-events: none; }
.yx .in { opacity: 0; transform: translateY(10px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.yx .in.on { opacity: 1; transform: none; }
.yx .fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.45s var(--ease), opacity 0.35s var(--ease); }
.yx .fold.on { grid-template-rows: 1fr; opacity: 1; }
.yx .fold > * { min-height: 0; overflow: hidden; }
.yx .steps li { opacity: 0; transform: translateX(-6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s; }
.yx .steps li.on { opacity: 1; transform: none; }
.yx .steps li .ic-done { display: none; }
.yx .steps li.ok .ic-done { display: block; }
.yx .steps li.ok .dot { display: none; }
.yx .bar i { transform: scaleX(0); transform-origin: left; transition: transform 0.8s var(--ease); }
.yx .doc.on .bar i { transform: scaleX(1); }
.yx .doc.on .bar:nth-child(2) i { transition-delay: 0.12s; }
.yx .doc.on .bar:nth-child(3) i { transition-delay: 0.24s; }
.yx .doc.on .bar:nth-child(4) i { transition-delay: 0.36s; }
.yx .swap > * { transition: opacity 0.3s; }
.yx .swap > .alt { display: none; }
.yx .swap.flip > .alt { display: inline-flex; }
.yx .swap.flip > .main-v { display: none; }

/* =====================================================================
   2. 钉钉手机端（iOS）群聊。令牌取自钉钉客户端 dingtalk-theme.css（--common_* 令牌），
      布局按钉钉 iOS 会话页：状态栏 → 导航栏（返回 · 群名居中 · 电话 / 更多）→ 灰底消息区
      （别人白气泡、自己浅蓝气泡、圆头像、群里显示名字）→ 输入栏（语音 · 输入框 · 表情 · ＋）。
   ===================================================================== */
.dk {
  --dk-blue: #007fff;            /* common_blue1_color */
  --dk-blue-soft: #d4e8ff;       /* 自己发的气泡：common_blue3_color 叠在白底上 */
  --dk-text: #171a1d;            /* common_level1_base_color */
  --dk-text-2: rgba(23, 26, 29, 0.6);  /* common_level2_base_color */
  --dk-text-3: rgba(23, 26, 29, 0.4);  /* common_level3_base_color */
  --dk-line: #e8e8e9;            /* common_darkline_bg_color */
  --dk-chat: #f2f2f6;            /* common_bg_color：会话区底色 */
  --dk-hover: rgba(126, 134, 142, 0.12); /* common_hover_bg_color */
  position: relative;
  width: 372px;
  height: 764px;
  padding: 11px;
  border-radius: 58px;
  background: #16181b;
  box-shadow: inset 0 0 0 1.5px #3b3f45, 0 0 0 1px rgba(1, 22, 39, 0.12), 0 28px 64px rgba(1, 22, 39, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--dk-text);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.dk *, .dk *::before, .dk *::after { box-sizing: border-box; margin: 0; padding: 0; }
.dk svg.di { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.dk-screen { position: relative; height: 100%; border-radius: 47px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
/* 状态栏 + 灵动岛 */
.dk-status { height: 50px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 4px 26px 0 36px; font-size: 16px; font-weight: 600; color: #000; letter-spacing: -0.2px; }
.dk-island { position: absolute; left: 50%; top: 11px; width: 108px; height: 31px; margin-left: -54px; border-radius: 16px; background: #000; }
.dk-sys { display: flex; align-items: center; gap: 6px; }
.dk-sys svg { display: block; fill: #000; }
/* 导航栏 */
.dk-nav { position: relative; height: 46px; flex-shrink: 0; display: flex; align-items: center; padding: 0 14px 0 4px; background: #fff; border-bottom: 0.5px solid var(--dk-line); }
.dk-back { display: flex; align-items: center; gap: 0; color: var(--dk-text); font-size: 16px; }
.dk-back svg.di { width: 28px; height: 28px; stroke-width: 2; }
.dk-title { position: absolute; left: 76px; right: 76px; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 0; }
.dk-title b { font-size: 17px; font-weight: 600; color: var(--dk-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-title em { font-style: normal; font-size: 17px; font-weight: 600; color: var(--dk-text); }
.dk-tools { margin-left: auto; display: flex; align-items: center; gap: 18px; color: var(--dk-text); }
/* 消息区 */
.dk-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 8px 14px 12px; overflow: hidden; background: var(--dk-chat); }
.dk-time { align-self: center; font-size: 12px; color: var(--dk-text-3); padding: 8px 0 4px; }
.dk-msg { display: flex; gap: 10px; padding: 7px 0; }
.dk-msg.me { flex-direction: row-reverse; }
.dk-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 500; overflow: hidden; }
.dk-av img { width: 100%; height: 100%; display: block; }
.dk-av.bot { background: radial-gradient(circle at 35% 30%, #12355b, #011627 70%); }
.dk-av.bot img { width: 62%; height: 62%; }
.dk-c { min-width: 0; max-width: 236px; display: flex; flex-direction: column; align-items: flex-start; }
.dk-msg.me .dk-c { align-items: flex-end; }
.dk-name { font-size: 12px; color: var(--dk-text-3); margin-bottom: 4px; line-height: 1.4; }
.dk-bub { padding: 9px 12px; border-radius: 10px; background: #fff; font-size: 16px; line-height: 1.45; color: var(--dk-text); word-break: break-word; }
.dk-msg.me .dk-bub { background: var(--dk-blue-soft); }
.dk-at { color: var(--dk-blue); }
.dk-quote { display: block; margin-bottom: 6px; padding-left: 8px; border-left: 2px solid rgba(23, 26, 29, 0.16); font-size: 13px; color: var(--dk-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 212px; }
.dk-read { margin-top: 4px; font-size: 12px; color: var(--dk-blue); line-height: 1.4; }
.dk-react { margin-top: 6px; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 13px; background: #fff; font-size: 12px; color: var(--dk-text-2); }
.dk-react .em { font-size: 14px; line-height: 1; }
.dk-file { width: 236px; padding: 12px 12px 10px; border-radius: 10px; background: #fff; }
.dk-file .row1 { display: flex; gap: 10px; align-items: flex-start; }
.dk-file .nm { flex: 1; min-width: 0; font-size: 15px; line-height: 1.45; color: var(--dk-text); }
.dk-file .sz { font-size: 12px; color: var(--dk-text-3); margin-top: 2px; }
.dk-file .fic { width: 40px; height: 40px; flex-shrink: 0; }
.dk-file .row2 { margin-top: 10px; padding-top: 8px; border-top: 0.5px solid var(--dk-line); display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dk-text-3); }
.dk-file .row2 svg.di { width: 16px; height: 16px; }
/* 输入栏 + Home 指示条 */
.dk-input { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #f7f7f9; border-top: 0.5px solid var(--dk-line); color: var(--dk-text); }
.dk-input svg.di { width: 30px; height: 30px; stroke-width: 1.4; }
.dk-input .ph { flex: 1; height: 38px; border-radius: 8px; background: #fff; }
.dk-home { height: 30px; flex-shrink: 0; display: grid; place-items: center; background: #f7f7f9; }
.dk-home i { display: block; width: 134px; height: 5px; border-radius: 3px; background: #000; }

/* 消息逐条进来：高度展开 + 淡入（钉钉自己就是这么推上去的） */
.dk .fold { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s; }
.dk .fold.on { grid-template-rows: 1fr; opacity: 1; }
.dk .fold > * { min-height: 0; overflow: hidden; }
.dk .pop { opacity: 0; transform: scale(0.6); transition: opacity 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.dk .pop.on { opacity: 1; transform: none; }

/* =====================================================================
   3. 舞台
   ===================================================================== */
.hd { position: relative; width: 100%; }
.hd-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.hd-stage.instant *, .hd-stage.instant *::before, .hd-stage.instant *::after { transition: none !important; }

/* ①②③ 进度条：官网自己的样式，不属于产品界面 */
.hd-phases { position: absolute; left: 0; right: 0; top: 0; height: 48px; display: flex; justify-content: center; align-items: center; gap: 16px; font-family: var(--font); }
.hd-ph { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: #9aa7b3; white-space: nowrap; transition: color 0.4s; }
.hd-ph i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 15px; border: 1.5px solid var(--line); background: #fff; transition: all 0.4s var(--ease-out); }
.hd-ph.on { color: var(--ink); }
.hd-ph.on i { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 0 0 6px rgba(10, 183, 173, 0.16); }
.hd-ph.done { color: var(--ink-2); }
.hd-ph.done i { border-color: var(--teal); color: var(--teal-ink); }
.hd-ln { width: 96px; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.hd-ln b { position: absolute; inset: 0; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.hd-ln.on b { transform: scaleX(1); }

.hd-desk { position: absolute; left: 200px; top: 80px; transition: transform 0.6s var(--ease-out), opacity 0.5s; transform-origin: right center; }
.hd-ding { position: absolute; left: 0; top: 108px; z-index: 3; transition: transform 0.6s var(--ease-out), opacity 0.5s; transform-origin: left center; }
/* 不在焦点的一边：盖一层底色、稍微缩小，不模糊 */
.hd-desk::after, .hd-ding::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(245, 247, 248, 0.6); opacity: 0; transition: opacity 0.5s; pointer-events: none; z-index: 20; }
.hd-desk.dim { transform: scale(0.985); }
.hd-ding.dim { transform: translateX(-14px) scale(0.96); }
/* 焦点在桌面端时，桌面端整个压在手机上面，完整露出来 */
.hd-stage.desk-top .hd-cam { z-index: 4; }
.hd-desk.dim::after, .hd-ding.dim::after { opacity: 1; }

/* 桌面窗口里的焦点框：一个框在各区块之间移动，其余区域压暗 */
.hd-spot { position: absolute; z-index: 15; pointer-events: none; border-radius: 22px; box-shadow: 0 0 0 2px rgba(10, 183, 173, 0.75), 0 0 0 7px rgba(10, 183, 173, 0.14), 0 0 0 3000px rgba(244, 243, 239, 0.55); opacity: 0; transition: left 0.6s var(--ease-out), top 0.6s var(--ease-out), width 0.6s var(--ease-out), height 0.6s var(--ease-out), opacity 0.4s; }
.hd-spot.on { opacity: 1; }
.hd-clip { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; pointer-events: none; z-index: 15; }

.hd-fly { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 30; overflow: visible; }
.hd-fly path { fill: none; stroke: var(--teal); stroke-width: 2.5; opacity: 0; }
.hd-dot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 7px rgba(10, 183, 173, 0.18), 0 0 22px rgba(10, 183, 173, 0.9); opacity: 0; z-index: 31; pointer-events: none; }


/* 手机：没法左右并排，改成同一个位置左右滑动切换；桌面窗口只放大要看的那一块 */
.hd.is-m .hd-phases { gap: 6px; }
.hd.is-m .hd-ph { font-size: 13px; gap: 6px; }
.hd.is-m .hd-ph i { width: 22px; height: 22px; font-size: 12px; }
.hd.is-m .hd-ln { width: 14px; }
/* 英文标签太长，手机上三段放不下：只给当前这一步显示文字，其余只留序号 */
html[lang='en'] .hd.is-m .hd-ph:not(.on) { font-size: 0; gap: 0; }
.hd.is-m .hd-ding, .hd.is-m .hd-cam { left: 0; top: 60px; }
/* 手机宽度：去掉手机外壳，钉钉画面直接撑满取景框 */
.hd.is-m .hd-ding { width: 390px; height: 640px; padding: 0; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgb(1 22 39 / 0.1), 0 12px 32px rgba(1, 22, 39, 0.16); }
.hd.is-m .dk-screen { border-radius: 14px; }
.hd.is-m .dk-island { display: none; }
.hd.is-m .dk-status { height: 34px; padding: 0 20px; font-size: 14px; }
.hd.is-m .hd-ding.dim, .hd.is-m .hd-desk.dim { transform: none; }
.hd.is-m .hd-ding::after, .hd.is-m .hd-desk::after { display: none; }
.hd.is-m .hd-ding.off { opacity: 0; transform: translateX(-40px); }
/* 桌面宽度下 .hd-cam 只是个不裁切的壳；手机上它才是「取景框」 */
.hd-cam { position: absolute; left: 0; top: 0; width: 0; height: 0; overflow: visible; }
.hd.is-m .hd-cam { width: 390px; height: 640px; overflow: hidden; border-radius: 14px; box-shadow: 0 0 0 1px rgb(1 22 39 / 0.1), 0 12px 32px rgba(1, 22, 39, 0.16); transition: opacity 0.5s, transform 0.6s var(--ease-out); background: #f4f3ef; }
.hd.is-m .hd-cam.off { opacity: 0; transform: translateX(40px); }
.hd.is-m .hd-desk { left: 0; top: 0; transform-origin: 0 0; transition: transform 0.7s var(--ease-out); }
.hd.is-m .yx.window { box-shadow: none; border-radius: 0; }
/* 手机：对话列收窄（相当于把桌面窗口拉窄），卡片能撑满取景框，字接近原大 */
.hd.is-m .yx .col { max-width: 440px; padding: 0 12px; }
.hd.is-m .yx .u { max-width: 92%; }
/* 手机：标题栏和对话列同宽居中，取景框框住对话列时标题不被切掉 */
.hd.is-m .yx .head { max-width: 440px; margin: 0 auto; width: 100%; box-sizing: border-box; padding-left: 12px; padding-right: 12px; }
