/* 智能体界面：首页（浅灰网格底 + 电光蓝点缀：品牌行、智能体宠物“小塔”、输入框、三维展示装置、难题→技术轮播卡、技术地图）、
   运行页（左栏智能体 + 被操作的工作台 + 自动操作条）、工作台里的智能体胶囊、智能体光标。 */

/* ---------------------------------------------------------------- 两层：工作台在下，智能体界面在上 */
/* 首页盖住整个工作台（工作台保持挂载，进入运行页时直接淡入；被盖住时三维图不渲染） */
.sh-work.ghost { visibility: hidden; }
/* 从首页进入运行页：工作台淡入 */
.sh-app.st-agent.av-run .sh-work { animation: asWorkIn 0.35s ease both; }
/* 运行页：工作台让出左栏的位置，由智能体操作 */
.sh-app.st-agent.av-run .sh-work { left: var(--w-rail); }

.as-stage { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.as-stage.v-home { pointer-events: auto; }

/* ---------------------------------------------------------------- 首页 */
.hm {
  --hm-ink: #111; --hm-ink2: #555; --hm-ink3: #8a8a8a; --hm-line: rgba(17, 17, 17, 0.14); --hm-line2: rgba(17, 17, 17, 0.08);
  --hm-blue: #0014dc; --hm-blue-d: #0010b4; --hm-soft: rgba(0, 20, 220, 0.06);
  --hm-col: max(440px, min(600px, 42vw)); /* 左栏（小塔 + 输入框）的宽度；右下的轮播卡从它右边开始 */
  position: absolute; inset: 0; overflow: hidden; color: var(--hm-ink); background: #f0f0f0;
}
/* 底：浅灰 + 细网格（往下淡出），三维装置后面一团很淡的白光 */
.hm-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(40% 56% at 70% 48%, #fbfbfb 0%, rgba(251, 251, 251, 0) 100%), #f0f0f0; }
.hm-bg::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(22, 24, 29, 0.045) 1px, transparent 1px), linear-gradient(rgba(22, 24, 29, 0.045) 1px, transparent 1px);
  background-size: 72px 72px; background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 72%, transparent 100%);
}
.hm-3d {
  position: absolute; z-index: 1; left: 34%; right: 7%; top: 2%; bottom: 168px; pointer-events: none; animation: asFade 0.9s ease both;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%), linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%), linear-gradient(180deg, #000 0%, #000 84%, transparent 100%);
  mask-composite: intersect;
}
.hm-3d .p3d { background: none; }
.hm-pfd { position: absolute; inset: 10% 4% 14% 8%; opacity: 0.92; }

/* 左边：品牌行 + 小塔 + 输入框 + 示例 */
.hm-agent {
  position: absolute; z-index: 3; left: clamp(40px, 7vw, 140px); top: 0; bottom: 0; width: var(--hm-col);
  display: flex; flex-direction: column; justify-content: center; animation: asRise 0.5s ease both;
}
.hm-kick { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--hm-blue); letter-spacing: 0.4px; }
.hm-kick b { font-weight: 600; }
.hm-kick i { width: 1px; height: 12px; background: rgba(0, 20, 220, 0.35); }

.hm-pet { display: flex; align-items: flex-end; gap: 4px; margin: 18px 0 14px -14px; }
.hm .pet .pet-shadow { fill: rgba(17, 17, 17, 0.12); }
.hm-say {
  position: relative; flex: 1; min-width: 0; max-width: 420px; margin-bottom: 30px; padding: 11px 15px 12px;
  border: 1px solid var(--hm-line); background: #fff; color: #222; box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}
.hm-say::before {
  content: ''; position: absolute; left: -6px; bottom: 12px; width: 10px; height: 10px; background: #fff;
  border-left: 1px solid var(--hm-line); border-bottom: 1px solid var(--hm-line); transform: rotate(45deg);
}
.hm-say p { margin: 0; min-height: 22px; font-size: 14px; line-height: 1.65; animation: asFade 0.25s ease both; }
.hm-caret { display: inline-block; width: 2px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--hm-blue); animation: hmBlink 0.8s steps(2) infinite; }

.hm-box {
  padding: 12px 14px 10px; border: 1px solid rgba(17, 17, 17, 0.18); background: #fff; box-shadow: 0 12px 32px rgba(17, 17, 17, 0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hm-box.focus { border-color: var(--hm-blue); box-shadow: 0 0 0 3px rgba(0, 20, 220, 0.08), 0 12px 32px rgba(17, 17, 17, 0.08); }
.hm-ta {
  display: block; width: 100%; min-height: 48px; max-height: 150px; padding: 2px 0; border: none; resize: none; background: none;
  font-size: 15px; line-height: 1.6; color: var(--hm-ink);
}
.hm-ta:focus { outline: none; box-shadow: none; }
.hm-ta::placeholder { color: #9a9a9a; }
.hm-crow { display: flex; align-items: center; gap: 5px; margin-top: 6px; }
/* 这一行放不下时只收缩模型名（省略号，悬停看全名），档位、多工况、发送按钮保持完整 */
.hm-crow > * { flex: none; }
.hm-crow > .ag-sp { flex: 1 1 0; }
.hm-crow > .as-chip.md { flex: 0 1 auto; min-width: 0; }
.as-chip .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.as-seg { display: inline-flex; padding: 2px; border-radius: 8px; border: 1px solid #e1e4ef; background: #f1f3f9; }
.as-seg button { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border: none; border-radius: 6px; background: none; font-size: 12.5px; white-space: nowrap; }
.as-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; max-width: 240px; padding: 0 9px; border: 1px solid #e1e4ef; border-radius: 8px;
  background: #fff; font-size: 12.5px; white-space: nowrap; overflow: hidden;
}
.hm .as-seg { border-color: var(--hm-line2); border-radius: 0; background: #f4f4f4; }
.hm .as-seg button { gap: 4px; padding: 0 7px; border-radius: 0; color: var(--hm-ink2); }
.hm .as-seg button:hover { color: var(--hm-blue); }
.hm .as-seg button.on, .hm .as-seg button.on.c { background: #fff; color: var(--hm-blue); box-shadow: inset 0 0 0 1px rgba(0, 20, 220, 0.35); }
.hm .as-chip { gap: 5px; padding: 0 8px; border-color: var(--hm-line2); border-radius: 0; color: var(--hm-ink2); }
.hm .as-chip:hover { border-color: var(--hm-blue); color: var(--hm-blue); }
.hm .as-chip .ic { color: var(--hm-ink3); }
.hm .as-chip.on { border-color: rgba(0, 20, 220, 0.35); color: var(--hm-blue); background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 20, 220, 0.35); }
.hm .as-chip.on .ic { color: var(--hm-blue); }
.hm-ib { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 28px; border: 1px solid transparent; background: none; color: var(--hm-ink3); }
.hm-ib:hover { border-color: var(--hm-line2); color: var(--hm-blue); }
.hm-send {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px 0 15px; border: none; border-radius: 0;
  background: var(--hm-blue); color: #fff; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 0.15s;
}
.hm-send:hover { background: var(--hm-blue-d); }
.hm-send.off { background: #b9bee6; }

.hm-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin-top: 14px; }
.hm-exl { font-size: 12.5px; color: var(--hm-ink3); }
.hm-exc {
  display: inline-flex; align-items: baseline; gap: 5px; height: 26px; padding: 0; border: none; border-bottom: 1px solid transparent; border-radius: 0;
  background: none; color: var(--hm-ink2); font-size: 13px; white-space: nowrap; transition: color 0.15s, border-color 0.15s;
}
.hm-exc:hover, .hm-exc:focus-visible { color: var(--hm-blue); border-bottom-color: var(--hm-blue); }
.hm-exc i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--hm-blue); }
.hm-exc.bad i { font-family: inherit; color: #b35f00; }
/* “试试”下面一行“案例”：案例库入口（细框 + 蓝字）+ 一句说明 */
.hm-ex2 { margin-top: 8px; gap: 2px 12px; }
.hm-exn { font-size: 12px; color: var(--hm-ink3); }
.hm-cases {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 9px; border: 1px solid rgba(0, 20, 220, 0.35);
  background: #fff; color: var(--hm-blue); font-size: 12.5px; white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.hm-cases b { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.hm-cases:hover, .hm-cases:focus-visible { background: var(--hm-blue); color: #fff; }

/* 右下角：难题 → 技术轮播卡（白卡 + 蓝色顶线）。难题（图标 + 名称）→ 虚线 → 核心技术标签 → 一句实证；
   翻页时内容按方向滑入，技术标签依次出现；悬停时停住并加一圈淡蓝光 */
/* 横条：左端接在对话区右侧，右端与三维装置右沿对齐，像三维装置的“底座说明”，不再窄窄地悬在角上 */
.hm-side {
  position: absolute; z-index: 3; bottom: 28px; right: 4%;
  left: calc(clamp(40px, 7vw, 140px) + var(--hm-col) + 40px); max-width: 980px; margin-left: auto;
  animation: asRise 0.6s 0.1s ease both;
}
.hm-cap {
  position: relative; overflow: hidden; border: 1px solid var(--hm-line2); border-top: 2px solid var(--hm-blue); background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: box-shadow 0.25s;
}
.hm-cap.hold { box-shadow: 0 0 0 3px rgba(0, 20, 220, 0.07), 0 16px 40px rgba(0, 20, 220, 0.10); }
.hm-cap-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px 0 18px; }
.hm-prog { flex: 1; display: flex; gap: 4px; }
.hm-prog button { flex: 1; display: flex; align-items: center; height: 14px; padding: 0; border: none; background: none; }
.hm-prog i { position: relative; display: block; width: 100%; height: 2px; overflow: hidden; background: rgba(17, 17, 17, 0.12); transition: height 0.15s; }
.hm-prog button:hover i { height: 4px; background: rgba(0, 20, 220, 0.3); }
.hm-prog button.done i { background: rgba(0, 20, 220, 0.3); }
.hm-prog button.on i::after { content: ''; position: absolute; inset: 0; background: var(--hm-blue); transform-origin: left center; }
/* 时长与 stage.js 的 CAP_MS 一致 */
.hm-prog i.run::after { animation: hmProg 4s linear both; }
.hm-cap-no { flex: none; font-family: var(--mono); font-size: 11px; color: var(--hm-ink3); font-variant-numeric: tabular-nums; }
.hm-cap-no b { font-weight: 600; color: var(--hm-blue); }
.hm-cap-top { padding: 6px 8px 0 18px; gap: 10px; }
.hm-cap-no { margin-right: 4px; }
/* 主体三栏：难题 | 核心技术 + 实证 | 操作 */
.hm-cap-b {
  display: grid; grid-template-columns: minmax(150px, max-content) minmax(0, 1fr) auto; align-items: center; column-gap: 20px;
  padding: 8px 18px 14px; animation: hmSlide 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.hm-cap-m { min-width: 0; padding-left: 20px; border-left: 1px dashed rgba(17, 17, 17, 0.18); }
.hm-cap-b.back { animation-name: hmSlideBack; }
.hm-cap-p { display: flex; align-items: center; gap: 12px; }
.hm-cap-i {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  background: var(--hm-soft); color: var(--hm-blue); box-shadow: inset 0 0 0 1px rgba(0, 20, 220, 0.14);
}
.hm-cap-pt { min-width: 0; }
.hm-cap-pt span { display: block; font-size: 11.5px; letter-spacing: 0.5px; color: var(--hm-ink3); }
.hm-cap-pt b { display: block; margin-top: 1px; font-size: 20px; font-weight: 400; line-height: 1.3; white-space: nowrap; color: var(--hm-ink); }
/* “核心技术”压在虚线上（像分组框的标题），技术标签整行留给标签本身 */
.hm-cap-k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hm-cap-kl { margin-right: 4px; font-size: 11px; line-height: 15px; font-weight: 600; letter-spacing: 0.5px; color: var(--hm-blue); }
.hm-cap-tg { padding: 0 8px; border: 1px solid rgba(0, 20, 220, 0.22); background: #fff; font-size: 12.5px; line-height: 24px; color: #1a1a1a; animation: hmTag 0.35s ease both; }
.hm-cap-v { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; line-height: 1.5; color: #1d6b45; animation: asFade 0.35s 0.32s ease both; }
.hm-cap-v .ic { flex: none; color: #1fa463; }
.hm-cap-v span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hm-cap-f { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding-left: 20px; border-left: 1px solid var(--hm-line2); }
.hm-cap-a, .hm-cap-r { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0; border: none; background: none; font-size: 12.5px; }
.hm-cap-a { color: var(--hm-blue); }
.hm-cap-a:hover { text-decoration: underline; }
.hm-cap-r { gap: 5px; color: var(--hm-ink2); }
.hm-cap-r:hover { color: var(--hm-blue); }
.hm-cap-nav { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid transparent; background: none; color: var(--hm-ink3); }
.hm-cap-nav:hover { border-color: var(--hm-line2); color: var(--hm-blue); }

/* 三维装置上的说明标签（白卡 + 细边 + 左侧色条） */
.hm .p3l.tag {
  padding: 4px 9px 5px; border: 1px solid rgba(17, 17, 17, 0.14); border-left: 2px solid var(--hm-blue); border-radius: 0;
  background: rgba(255, 255, 255, 0.96); color: #333; font-size: 12px; box-shadow: 0 6px 16px rgba(17, 17, 17, 0.06);
  -webkit-backdrop-filter: none; backdrop-filter: none; transition: opacity 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.hm .p3l.tag b { color: var(--hm-blue); }
.hm .p3l.tag.amber { border-left-color: #e0902a; }
.hm .p3l.tag.amber b { color: #a35a00; }
.hm .p3l.tag.violet { border-left-color: #7c5cff; }
.hm .p3l.tag.violet b { color: #5636d0; }
.hm .p3l.tag.green { border-left-color: #1fa463; }
.hm .p3l.tag.green b { color: #137a47; }
.hm .p3l.tag.dim { opacity: 0.35; }
.hm .p3l.tag.on { border-color: var(--hm-blue); border-left-width: 3px; box-shadow: 0 0 0 3px rgba(0, 20, 220, 0.1), 0 8px 20px rgba(0, 20, 220, 0.12); }
.hm .p3l.tag.on b { color: var(--hm-blue); }

/* 技术地图 */
.hm-map {
  position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; padding: 26px;
  background: rgba(240, 240, 240, 0.74); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: asFade 0.2s ease both;
}
.hm-map-in {
  display: flex; flex-direction: column; width: min(1180px, 100%); max-height: 100%; border: 1px solid var(--hm-line); border-top: 2px solid var(--hm-blue);
  background: #fff; box-shadow: 0 30px 80px rgba(17, 17, 17, 0.14); outline: none;
}
.hm-map-h { display: flex; align-items: center; gap: 12px; padding: 12px 18px 10px 14px; border-bottom: 1px solid var(--hm-line2); }
.hm-map-t b { display: block; font-size: 19px; font-weight: 400; color: var(--hm-ink); }
.hm-map-t span { font-size: 12px; color: var(--hm-ink3); }
.hm-x { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--hm-line2); background: none; color: var(--hm-ink2); }
.hm-x:hover { border-color: var(--hm-blue); color: var(--hm-blue); }
.hm-rows { overflow: auto; padding: 0 18px 14px; }
.hm-rh, .hm-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; }
.hm-rh { position: sticky; top: 0; z-index: 1; padding: 10px 12px 8px; border-bottom: 1px solid var(--hm-line2); background: #fff; font-size: 11.5px; color: var(--hm-ink3); letter-spacing: 1px; }
.hm-row { align-items: start; padding: 14px 12px; border-bottom: 1px solid var(--hm-line2); }
.hm-row:last-child { border-bottom: none; }
.hm-row.on { background: rgba(0, 20, 220, 0.035); box-shadow: inset 2px 0 0 var(--hm-blue); }
.hm-rp { display: flex; gap: 10px; min-width: 0; }
.hm-ci { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: var(--hm-soft); color: var(--hm-blue); }
.hm-rp b { display: block; font-size: 14.5px; font-weight: 600; color: var(--hm-ink); }
.hm-rp b em { margin-right: 8px; font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--hm-blue); }
.hm-rp p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--hm-ink2); }
.hm-rt2 { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.hm-rt2 li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.6; color: #222; }
.hm-rt2 li::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--hm-blue); }
.hm-re { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hm-ev { position: relative; padding-left: 15px; font-size: 12px; line-height: 1.55; color: #2c5a40; }
.hm-ev::before { content: '✓'; position: absolute; left: 0; color: #1fa463; font-weight: 700; }
.hm-ra { display: flex; gap: 6px; margin-top: 4px; }
.hm-rb { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; border: 1px solid var(--hm-blue); border-radius: 0; background: #fff; color: var(--hm-blue); font-size: 12px; }
.hm-rb:hover { background: var(--hm-soft); }
.hm-rb.pri { background: var(--hm-blue); color: #fff; }
.hm-rb.pri:hover { background: var(--hm-blue-d); }

/* 运行页头部的小塔 */
.ag-pet { margin: -4px -2px -6px -4px; }

/* ---------------------------------------------------------------- 运行页 */
.as-rail { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; width: var(--w-rail); display: flex; flex-direction: column; pointer-events: auto; box-shadow: 4px 0 18px rgba(16, 32, 96, 0.10); animation: asSlide 0.3s ease both; }
.as-rail .ag-col { flex: 1; border-left: none; border-top: none; border-right: 1px solid var(--line); }
.as-frame { position: absolute; left: var(--w-rail); top: 0; right: 0; bottom: 0; pointer-events: none; box-shadow: inset 0 0 0 2px rgba(0, 20, 220, 0.20); transition: box-shadow 0.3s; }
.as-frame.act { box-shadow: inset 0 0 0 2px rgba(0, 20, 220, 0.55), inset 0 0 28px rgba(0, 20, 220, 0.12); }
.as-frame.off { box-shadow: none; }
.as-drive {
  position: absolute; right: 16px; bottom: calc(var(--h-status) + 12px); display: flex; align-items: center; gap: 8px;
  max-width: min(780px, calc(100% - var(--w-rail) - 40px)); padding: 5px 5px 5px 13px; border-radius: 999px; pointer-events: auto;
  background: rgba(12, 22, 80, 0.88); color: #fff; font-size: 12.5px; box-shadow: 0 8px 24px rgba(10, 20, 80, 0.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: asFade 0.4s ease both;
}
.as-dd { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8; }
.as-drive.busy .as-dd, .as-drive.run .as-dd { background: #6ea8ff; animation: asPulse 1.2s infinite; }
.as-drive.wait .as-dd { background: #ffd166; animation: asPulse 1.2s infinite; }
.as-drive.off .as-dd { background: #9aa0ad; }
.as-dl { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-db {
  flex: none; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 11px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 12px; white-space: nowrap;
}
.as-db:hover { background: rgba(255, 255, 255, 0.18); }
.as-db.pri { border-color: #fff; background: #fff; color: var(--brand); font-weight: 600; }
.as-db.pri .ic { color: var(--brand); }
/* 自动操作三档：演示跟随 / 快速联动 / 手动 */
.as-dseg { flex: none; display: inline-flex; padding: 2px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.as-dseg button { height: 22px; padding: 0 10px; border: none; border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.78); font-size: 12px; white-space: nowrap; cursor: pointer; }
.as-dseg button:hover { color: #fff; }
.as-dseg button.on { background: #fff; color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------------- 工作台里的智能体胶囊 */
.as-cap {
  position: absolute; right: 14px; bottom: calc(var(--h-status) + 10px); z-index: 20; display: flex; align-items: center; gap: 4px; padding: 3px;
  border-radius: 999px; border: 1px solid rgba(0, 20, 220, 0.22); background: rgba(255, 255, 255, 0.94); box-shadow: 0 6px 18px rgba(16, 32, 96, 0.16);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: asFade 0.3s ease both;
}
.as-cap.waiting { border-color: var(--brand); }
.as-cap-b { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 5px; border: none; border-radius: 999px; background: none; color: var(--brand); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.as-cap-b:hover { background: var(--brand-soft); }
.as-cap-b .t { max-width: 320px; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.as-cap-l { position: relative; display: inline-flex; margin: -6px 0 -5px; }
.as-cap-g { height: 26px; padding: 0 11px; border: none; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; white-space: nowrap; animation: pulseb 1.8s infinite; }

/* ---------------------------------------------------------------- 智能体光标 */
.as-cur-layer { position: fixed; inset: 0; z-index: 150; pointer-events: none; }
.as-hit {
  position: fixed; border: 2px solid rgba(0, 20, 220, 0.75); border-radius: 6px; background: rgba(0, 20, 220, 0.05); box-shadow: 0 0 0 4px rgba(0, 20, 220, 0.10);
  transition: left 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), top 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), width 0.5s, height 0.5s;
}
.as-hit.hold { animation: asHold 1.4s infinite; }
.as-cur { position: fixed; left: 0; top: 0; transition: transform 0.56s cubic-bezier(0.2, 0.7, 0.2, 1); will-change: transform; }
.as-ptr { position: absolute; left: -2px; top: -2px; filter: drop-shadow(0 2px 3px rgba(0, 0, 30, 0.35)); }
.as-ring { position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border: 2px solid rgba(0, 20, 220, 0.85); border-radius: 50%; animation: asRing 0.5s ease-out forwards; }
.as-bub {
  position: absolute; left: 20px; top: 24px; display: flex; flex-direction: column; gap: 1px; width: max-content; max-width: 340px; padding: 6px 10px;
  border-radius: 9px; background: rgba(12, 22, 80, 0.93); color: #fff; font-size: 12px; line-height: 1.45; box-shadow: 0 6px 16px rgba(10, 20, 80, 0.28);
}
.as-bub b { font-size: 11px; font-weight: 600; color: #a9c4ff; }
.as-bub.flip { left: auto; right: 6px; }

@keyframes asRing { from { transform: scale(0.4); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
@keyframes asPulse { 0% { box-shadow: 0 0 0 0 rgba(110, 168, 255, 0.6); } 70% { box-shadow: 0 0 0 6px rgba(110, 168, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 168, 255, 0); } }
@keyframes asFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes asRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes asSlide { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes asHold { 0%, 100% { box-shadow: 0 0 0 3px rgba(0, 20, 220, 0.10); } 50% { box-shadow: 0 0 0 9px rgba(0, 20, 220, 0.18); } }
@keyframes asWorkIn { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes hmBlink { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes hmProg { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hmSlide { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes hmSlideBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
@keyframes hmTag { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .as-cur, .as-hit, .sh-work { transition: none; }
  .as-rail, .as-drive, .as-cap, .hm-agent, .hm-3d, .hm-side, .hm-cap-b, .hm-cap-tg, .hm-cap-v, .hm-map, .hm-say p { animation: none; }
  .hm-exc, .hm-send, .hm-cap, .hm-prog i { transition: none; }
}
/* 中等宽度：轮播卡放不下三栏，“技术地图 / 看建模过程”换到卡片底部一行 */
@media (max-width: 1560px) {
  .hm-cap-b { grid-template-columns: minmax(0, max-content) minmax(0, 1fr); }
  .hm-cap-f { grid-column: 1 / -1; flex-direction: row; gap: 18px; margin-top: 8px; padding: 6px 0 0; border-left: none; border-top: 1px solid var(--hm-line2); }
}
/* 窄窗口：技术地图的证据列换到下面；三维装置往右让 */
@media (max-width: 1280px) {
  .hm-rh { display: none; }
  .hm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .hm-re { grid-column: 1 / -1; }
  .hm-3d { left: 40%; right: 6%; }
  .hm-side { left: calc(clamp(40px, 7vw, 140px) + var(--hm-col) + 28px); }
  .hm-cap-pt b { font-size: 18px; }
}
/* 矮窗口：小塔和说明卡收紧（说明卡去掉“行业难题”小字，少挡三维装置） */
@media (max-height: 820px) {
  .hm-pet { margin: 12px 0 8px -12px; }
  .hm-say { margin-bottom: 22px; }
  .hm-ex { margin-top: 10px; }
  .hm-side { bottom: 16px; }
  .hm-cap-b { padding: 6px 18px 10px; }
  .hm-cap-i { width: 34px; height: 34px; }
  .hm-cap-pt span { display: none; }
  .hm-cap-pt b { font-size: 18px; }
  .hm-cap-v { margin-top: 6px; }
  .hm-3d { bottom: 132px; }
}
