/* ============================================================
   visual-page.css · 前端可视化标准术语
   页面结构：分类入口卡 / 分组总览 / 树导航 / 两栏元素区
   标本组件：vd-* 前缀，纯静态展示用，颜色全部走令牌（暗色自适配）
   ============================================================ */

/* ---------- 分类页「可视化」入口卡 ---------- */

.visual-entry {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin: var(--s4) 0 var(--s5);
  padding: var(--s3) var(--s4);
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.visual-entry:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); text-decoration: none; }
.visual-entry-badge {
  flex-shrink: 0;
  padding: 3px 9px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.visual-entry-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.visual-entry-body strong { font-size: var(--fs-md); color: var(--text); }
.visual-entry-body span { font-size: var(--fs-xs); color: var(--muted); }
.visual-entry-arrow { margin-left: auto; color: var(--accent); font-size: var(--fs-lg); flex-shrink: 0; }

/* ---------- 分组总览页 ---------- */

.vs-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s5);
}
.vs-group-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s4) var(--s4) var(--s3);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.vs-group-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.vs-group-card > header a {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  text-decoration: none;
}
.vs-group-card h2 { font-size: var(--fs-lg); color: var(--text); }
.vs-group-card h2 .vs-en {
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  color: var(--muted);
  font-weight: 400;
  margin-left: var(--s1);
}
.vs-count { margin-left: auto; font-size: var(--fs-xs); color: var(--accent); flex-shrink: 0; }
.vs-group-desc { font-size: var(--fs-sm); color: var(--muted); margin: var(--s2) 0 var(--s3); }
.vs-group-items {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px var(--s3);
}
.vs-group-items a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  padding: 4px 6px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text);
  text-decoration: none;
}
.vs-group-items a:hover { background: var(--accent-soft); color: var(--accent); }
.vs-group-items a span {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 分组页布局：树导航 + 两栏元素区 ---------- */

.vs-layout {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: var(--s5);
  align-items: start;
  margin-top: var(--s4);
}

.vs-tree {
  position: sticky;
  top: calc(var(--header-h) + var(--s4));
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s2);
  max-height: calc(100vh - var(--header-h) - var(--s6));
  overflow-y: auto;
}
.vs-tree-home {
  padding: 4px 8px;
  font-size: var(--fs-xs);
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--r-sm);
}
.vs-tree-home:hover { color: var(--accent); background: var(--surface-2); }
.vs-tree-group-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font-size: var(--fs-sm);
  color: var(--muted);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.vs-tree-group-btn:hover { background: var(--surface-2); color: var(--text); }
.vs-tree-group-btn.is-current {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.vs-tree-group-btn .vs-count { color: inherit; opacity: 0.7; }
.vs-tree-items { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 var(--s2); }
.vs-tree-item {
  width: 100%;
  padding: 4px 8px 4px 20px;
  border: 0;
  border-radius: var(--r-sm);
  background: none;
  font-size: var(--fs-sm);
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.vs-tree-item:hover { color: var(--accent); background: var(--surface-2); }
.vs-tree-item.is-active { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.vs-tree-item.is-target { color: var(--accent); font-weight: 600; }

.vs-main { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }

.vs-item {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s4);
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.vs-item:focus { outline: none; }
.vs-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@keyframes vsFlash {
  0%, 30% { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  100% { border-color: var(--line); box-shadow: none; }
}
.vs-item.is-flash { animation: vsFlash 1.6s var(--t-med) both; }

.vs-name { font-size: var(--fs-lg); color: var(--text); display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; }
.vs-en { font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--muted); font-weight: 400; }
.vs-aliases { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.vs-desc { font-size: var(--fs-sm); color: var(--text); line-height: 1.75; margin-top: var(--s2); }
.vs-term-link {
  display: inline-block;
  margin-top: var(--s3);
  font-size: var(--fs-xs);
  color: var(--accent);
  text-decoration: none;
}
.vs-term-link:hover { text-decoration: underline; }

.vs-stage {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  align-content: center;
  gap: var(--s3);
  min-height: 170px;
  padding: var(--s4);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
/* 可视化容器「导出为图片」角标按钮（导出时会被剔除，不进图；默认隐藏，悬浮卡片时显示） */
.vs-export {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity var(--t-fast), transform var(--t-fast), color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.vs-item:hover .vs-export,
.vs-export:focus-visible { opacity: 1; pointer-events: auto; transform: none; }
.vs-export:hover { color: var(--text); background: var(--surface); border-color: var(--accent); }
.vs-export:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 触屏设备（无 hover）：始终显示，保证可点 */
@media (hover: none) {
  .vs-export { opacity: 1; pointer-events: auto; transform: none; }
}
.vs-missing { font-size: var(--fs-xs); color: var(--muted); border: 1px dashed var(--line-strong); padding: var(--s3) var(--s4); border-radius: var(--r-md); }

/* ---------- 标本公共工具 ---------- */

.vd-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); }
.vd-row-mid { justify-content: center; }
.vd-stack { display: flex; flex-direction: column; gap: var(--s3); width: 100%; max-width: 280px; }
.vd-label { font-size: var(--fs-xs); color: var(--muted); }
.vd-help { font-size: var(--fs-xs); color: var(--muted); }
.vd-help.is-error { color: var(--danger); }

/* ---------- 按钮 / 图标按钮 ---------- */

.vd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.vd-btn-primary { background: var(--accent); color: var(--on-accent); }
.vd-btn-primary:hover:not(:disabled) { background: var(--accent-strong); }
.vd-btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.vd-btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.vd-btn-danger { background: var(--danger); color: #fff; }
.vd-btn-danger:hover:not(:disabled) { filter: brightness(0.94); }
.vd-btn-sm { padding: 4px 10px; font-size: var(--fs-xs); }
.vd-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.vd-icon-btn {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
}
.vd-icon-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.vd-icon-btn.is-active { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.vd-icon-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 标签 / 徽标 / 头像 ---------- */

.vd-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: var(--fs-xs);
}
.vd-tag-ok { background: var(--ok-soft); color: var(--ok); }
.vd-tag-warn { background: var(--warn-soft); color: var(--warn); }
.vd-tag-pill { border-radius: var(--r-full); background: var(--surface-3); color: var(--text); }
.vd-tag-del { background: var(--surface-3); color: var(--text); }
.vd-tag-del i { display: inline-flex; cursor: pointer; color: var(--muted); }
.vd-tag-del i:hover { color: var(--danger); }

.vd-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: var(--r-full);
  background: var(--danger);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}
.vd-count-float { transform: translateY(-8px); }

.vd-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.vd-avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.vd-avatar-more { background: var(--surface-3); color: var(--muted); font-size: 12px; }
.vd-avatar-stack { display: inline-flex; }
.vd-avatar-stack .vd-avatar { margin-left: -9px; border: 2px solid var(--surface); }
.vd-avatar-stack .vd-avatar:first-child { margin-left: 0; }
.vd-dot {
  position: absolute;
  right: 0; bottom: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--surface);
}

/* ---------- 分割线 / 折叠面板 ---------- */

.vd-divider { height: 1px; background: var(--line); width: 100%; }
.vd-divider-dashed { background: none; border-top: 1px dashed var(--line-strong); }
.vd-divider-text {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: none; height: auto;
}
.vd-divider-text::before, .vd-divider-text::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.vd-divider-text span { font-size: var(--fs-xs); color: var(--muted); }

.vd-accordion { width: 100%; max-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.vd-acc-item + .vd-acc-item { border-top: 1px solid var(--line); }
.vd-acc-head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 10px 12px;
  border: 0; background: none;
  font-size: var(--fs-sm); color: var(--text);
  font-family: inherit; cursor: pointer;
}
.vd-acc-item.is-open .vd-acc-head { color: var(--accent); font-weight: 600; }
.vd-acc-body { padding: 0 12px 10px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.7; }

/* ---------- 表单控件 ---------- */

.vd-field { display: flex; flex-direction: column; gap: 4px; }
.vd-field > label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }

.vd-input {
  width: 240px;
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  font-size: var(--fs-sm);
  font-family: inherit;
}
.vd-input::placeholder { color: var(--muted); opacity: 0.8; }
.vd-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vd-input.is-error { border-color: var(--danger); }
.vd-input.is-error:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.vd-select { width: 240px; max-width: 100%; }
.vd-textarea { width: 240px; max-width: 100%; min-height: 72px; resize: vertical; }

/* 标签输入框 · 输入型 Chip：输入固化成胶囊 + 可点选的筛选 chip（checkbox 纯 CSS 交互） */
.vd-ti { display: flex; flex-direction: column; gap: var(--s3); }
.vd-ti-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md);
}
.vd-ti-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vd-ti-caret { width: 1px; height: 18px; background: var(--line-strong); }
.vd-ti-hint { font-size: var(--fs-xs); color: var(--muted); }
.vd-ti-filters { display: flex; flex-wrap: wrap; gap: var(--s2); }
.vd-ti-filter {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; font-size: var(--fs-sm); color: var(--text); cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-full);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.vd-ti-filter input { position: absolute; opacity: 0; pointer-events: none; }
.vd-ti-filter i { display: inline-flex; opacity: 0; transition: opacity 0.15s ease; }
.vd-ti-filter i svg { width: 12px; height: 12px; }
.vd-ti-filter:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.vd-ti-filter:has(input:checked) i { opacity: 1; }
.vd-ti-filter:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.vd-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  color: var(--text);
  cursor: pointer;
}
.vd-check input { position: absolute; opacity: 0; }
.vd-check i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  color: transparent;
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.vd-check input[type="radio"] + i { border-radius: 50%; }
.vd-check input:checked + i { background: var(--accent); border-color: var(--accent); color: #fff; }
.vd-check input[type="radio"]:checked + i { border-width: 5px; border-color: var(--accent); background: var(--surface); }
.vd-check input:disabled ~ i, .vd-check input:disabled { opacity: 0.5; cursor: not-allowed; }
.vd-check input.is-indeterminate + i { background: var(--accent); border-color: var(--accent); }
.vd-check input.is-indeterminate + i svg { display: none; }
.vd-check input.is-indeterminate + i::after { content: ''; width: 8px; height: 2px; background: #fff; border-radius: 1px; }
.vd-check input:disabled ~ span, .vd-check:has(input:disabled) { color: var(--muted); }

.vd-switch-label { font-size: var(--fs-sm); color: var(--text); }
.vd-switch {
  position: relative;
  display: inline-block;
  width: 40px; height: 22px;
  border-radius: var(--r-full);
  background: var(--surface-3);
  transition: background var(--t-fast);
  flex-shrink: 0;
}
.vd-switch i {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-fast);
}
.vd-switch.is-on { background: var(--accent); }
.vd-switch.is-on i { transform: translateX(18px); }
.vd-switch.is-disabled { opacity: 0.5; }

.vd-slider { position: relative; width: 240px; max-width: 100%; height: 4px; border-radius: var(--r-full); background: var(--surface-3); }
.vd-slider-fill { position: absolute; left: 0; top: 0; height: 100%; border-radius: var(--r-full); background: var(--accent); }
.vd-slider-thumb {
  position: absolute; top: 50%;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-1);
  transform: translate(-50%, -50%);
}
.vd-slider-tick { position: absolute; top: -4px; width: 2px; height: 12px; background: var(--line-strong); transform: translateX(-50%); }

.vd-date { display: flex; flex-direction: column; align-items: center; gap: var(--s2); }
.vd-date-input { display: inline-flex; align-items: center; gap: 6px; width: auto; color: var(--text); }
.vd-date-input svg { color: var(--muted); }
.vd-cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; box-shadow: var(--shadow-2); }
.vd-cal-head { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); margin-bottom: 6px; }
.vd-cal-head span { color: var(--muted); letter-spacing: 4px; }
.vd-cal-grid { display: grid; grid-template-columns: repeat(7, 26px); gap: 2px; }
.vd-cal-wd { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; }
.vd-cal-d {
  height: 24px;
  display: grid; place-items: center;
  font-size: var(--fs-xs);
  border-radius: var(--r-sm);
  color: var(--text);
}
.vd-cal-d.is-out { color: var(--line-strong); }
.vd-cal-d.is-today { box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.vd-cal-d.is-selected { background: var(--accent); color: var(--on-accent); }

/* ---------- 导航类标本 ---------- */

.vd-crumb { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); }
.vd-crumb a { color: var(--accent); cursor: pointer; }
.vd-crumb a:hover { text-decoration: underline; }
.vd-crumb span { color: var(--muted); }
.vd-crumb b { color: var(--text); font-weight: 600; }

.vd-navbar {
  display: flex;
  align-items: center;
  gap: var(--s4);
  width: 100%;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.vd-navbar-brand { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.vd-navbar-brand i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.vd-navbar-links { display: inline-flex; gap: var(--s3); font-size: var(--fs-sm); color: var(--muted); }
.vd-navbar-links b { color: var(--accent); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }
.vd-navbar-right { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }

.vd-sidebar { display: flex; flex-direction: column; gap: 2px; width: 150px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.vd-side-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--muted); }
.vd-side-item i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.vd-side-item.is-active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.vd-side-item.is-active i { background: var(--accent); }

.vd-tabs { width: 100%; max-width: 300px; }
.vd-tabs-bar { display: flex; gap: var(--s2); border-bottom: 1px solid var(--line); }
.vd-tabs-bar b {
  position: relative;
  padding: 7px 12px;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vd-tabs-bar b i { font-style: normal; font-size: 11px; background: var(--surface-3); border-radius: var(--r-full); padding: 0 5px; }
.vd-tabs-bar b.is-active { color: var(--accent); font-weight: 600; }
.vd-tabs-bar b.is-active::after {
  content: '';
  position: absolute;
  left: 10px; right: 10px; bottom: -1px;
  height: 2px;
  border-radius: var(--r-full);
  background: var(--accent);
}
.vd-tabs-body { padding: var(--s3) 2px 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.7; }

.vd-pager { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.vd-pager-btn {
  min-width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--fs-sm);
  cursor: pointer;
}
.vd-pager-btn:hover { border-color: var(--accent); color: var(--accent); }
.vd-pager-btn.is-current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); cursor: default; }
.vd-pager-ellipsis { color: var(--muted); }

.vd-steps { display: flex; align-items: center; gap: var(--s2); width: 100%; max-width: 320px; }
.vd-step { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.vd-step i {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
  flex-shrink: 0;
}
.vd-step.is-done i { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vd-step.is-done { color: var(--text); }
.vd-step.is-current i { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vd-step.is-current { color: var(--text); font-weight: 600; }
.vd-step-line { flex: 1; height: 2px; background: var(--line); min-width: 12px; }

/* ---------- 数据展示标本 ---------- */

.vd-card { width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.vd-card-cover { height: 84px; display: grid; place-items: center; background: var(--surface-3); color: var(--line-strong); }
.vd-card-cover svg { width: 22px; height: 22px; }
.vd-card-body { padding: 10px 12px 6px; }
.vd-card-body strong { font-size: var(--fs-sm); color: var(--text); }
.vd-card-body p { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px; }
.vd-card-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 10px; }
.vd-price { color: var(--accent); font-weight: 700; font-size: var(--fs-sm); }
.vd-card-foot > span:last-child { display: inline-flex; gap: 6px; }

.vd-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.vd-table th { text-align: left; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; padding: 7px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.vd-table td { font-size: var(--fs-sm); padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--text); }
.vd-table tr:last-child td { border-bottom: 0; }

.vd-list { width: 100%; max-width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.vd-list-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.vd-list-item:last-child { border-bottom: 0; }
.vd-list-item:hover { background: var(--surface-2); }
.vd-list-item > svg { margin-left: auto; color: var(--muted); flex-shrink: 0; }
.vd-list-txt { display: flex; flex-direction: column; min-width: 0; }
.vd-list-txt b { font-size: var(--fs-sm); color: var(--text); font-weight: 600; }
.vd-list-txt i { font-style: normal; font-size: var(--fs-xs); color: var(--muted); }

.vd-progress { width: 240px; max-width: 100%; height: 8px; border-radius: var(--r-full); background: var(--surface-3); overflow: hidden; }
.vd-progress span { display: block; height: 100%; border-radius: var(--r-full); background: var(--accent); }
.vd-progress-head { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 4px; }

.vd-timeline { display: flex; flex-direction: column; width: 100%; max-width: 280px; }
.vd-tl-item { position: relative; display: flex; gap: 10px; padding-bottom: 16px; }
.vd-tl-item::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--line); }
.vd-tl-item:last-child::before { display: none; }
.vd-tl-item:last-child { padding-bottom: 0; }
.vd-tl-item i {
  position: relative; z-index: 1;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--surface);
  flex-shrink: 0;
  margin-top: 3px;
}
.vd-tl-item.is-done i { background: var(--accent); border-color: var(--accent); }
.vd-tl-item.is-current i { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.vd-tl-item b { display: block; font-size: var(--fs-sm); color: var(--text); font-weight: 600; }
.vd-tl-item span { font-size: var(--fs-xs); color: var(--muted); }

.vd-tree { width: 100%; max-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px; font-size: var(--fs-sm); }
.vd-tree-item { display: flex; align-items: center; gap: 6px; padding: 4px 6px; border-radius: var(--r-sm); color: var(--text); }
.vd-tree-item svg { color: var(--muted); }
.vd-tree-caret { display: inline-flex; width: 12px; color: var(--muted); }
.vd-tree-item.is-open .vd-tree-caret svg { transform: rotate(90deg); }
.vd-tree-item.is-active { background: var(--accent-soft); color: var(--accent); }
.vd-tree-item.is-active svg { color: var(--accent); }
.vd-tree-sub { margin-left: 16px; }

.vd-stats { display: flex; gap: var(--s3); flex-wrap: wrap; }
.vd-stat { display: flex; flex-direction: column; gap: 2px; min-width: 118px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.vd-stat-label { font-size: var(--fs-xs); color: var(--muted); }
.vd-stat-num { font-size: var(--fs-2xl); font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.5px; }
.vd-stat-delta { font-size: var(--fs-xs); }
.vd-stat-delta.is-up { color: var(--ok); }
.vd-stat-delta.is-down { color: var(--danger); }

/* ---------- 反馈标本 ---------- */

.vd-alert { display: flex; align-items: flex-start; gap: 8px; width: 100%; max-width: 300px; padding: 9px 12px; border-radius: var(--r-md); font-size: var(--fs-sm); line-height: 1.6; }
.vd-alert i { font-style: normal; flex-shrink: 0; display: inline-flex; margin-top: 2px; }
.vd-alert u { color: inherit; cursor: pointer; font-weight: 600; }
.vd-alert.is-ok { background: var(--ok-soft); color: var(--ok); }
.vd-alert.is-info { background: var(--info-soft); color: var(--info); }
.vd-alert.is-warn { background: var(--warn-soft); color: var(--warn); }
.vd-alert.is-danger { background: var(--danger-soft); color: var(--danger); }

.vd-toast-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: var(--s2); width: 100%; }
.vd-toast { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); font-size: var(--fs-sm); color: var(--text); }
.vd-toast u { color: var(--accent); cursor: pointer; font-weight: 600; }
.vd-toast.is-ok svg, .vd-toast.is-ok i { color: var(--ok); }
.vd-toast.is-danger svg, .vd-toast.is-danger i { color: var(--danger); }
.vd-toast i { font-style: normal; display: inline-flex; }

@keyframes vdSpin { to { transform: rotate(360deg); } }
.vd-spinner {
  display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: vdSpin 0.8s linear infinite;
}
.vd-spinner-light { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }

.vd-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 260px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.vd-sk-row { display: flex; align-items: center; gap: 10px; }
@keyframes skPulse { from { opacity: 1; } to { opacity: 0.5; } }
.vd-sk { display: inline-block; background: var(--surface-3); border-radius: var(--r-sm); animation: skPulse 1.1s ease-in-out infinite alternate; }
.vd-sk-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.vd-sk-line { height: 12px; }
.vd-sk-block { height: 68px; }

.vd-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 26px; text-align: center; }
.vd-empty-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--muted);
  margin-bottom: 4px;
}
.vd-empty-icon svg { width: 20px; height: 20px; }
.vd-empty b { font-size: var(--fs-md); color: var(--text); }
.vd-empty span { font-size: var(--fs-xs); color: var(--muted); }
.vd-empty .vd-btn { margin-top: var(--s2); }

.vd-tip-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--s3); padding-top: 38px; }
.vd-tip-bubble {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  font-size: var(--fs-xs);
  padding: 4px 9px;
  border-radius: var(--r-sm);
  white-space: nowrap;
}
.vd-tip-bubble i {
  position: absolute;
  left: 50%; bottom: -4px;
  width: 8px; height: 8px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

/* ---------- 浮层标本 ---------- */

.vd-modal-stage { position: relative; width: 100%; height: 200px; border-radius: var(--r-md); overflow: hidden; }
.vd-modal-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.vd-modal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-3);
  padding: 14px 16px;
}
.vd-modal > p { font-size: var(--fs-sm); color: var(--muted); line-height: 1.7; margin-top: 8px; }
.vd-modal-head { display: flex; align-items: center; justify-content: space-between; }
.vd-modal-head b { font-size: var(--fs-md); color: var(--text); }
.vd-modal-head i { font-style: normal; color: var(--muted); display: inline-flex; cursor: pointer; }
.vd-modal-foot { display: flex; justify-content: flex-end; gap: var(--s2); margin-top: 14px; }
.vd-modal-foot-center { justify-content: center; }
.vd-modal-confirm { text-align: center; width: 230px; }
.vd-modal-confirm b { font-size: var(--fs-md); color: var(--text); display: block; margin-top: 8px; }
.vd-modal-confirm p { margin-top: 4px; }
.vd-confirm-icon {
  display: inline-flex;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
}
.vd-confirm-icon svg { width: 18px; height: 18px; }

.vd-drawer-stage { position: relative; width: 100%; height: 200px; border-radius: var(--r-md); overflow: hidden; }
.vd-drawer-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.vd-drawer {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 62%;
  background: var(--surface);
  box-shadow: var(--shadow-3);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}
.vd-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.vd-drawer-head b { font-size: var(--fs-sm); color: var(--text); }
.vd-drawer-head i { font-style: normal; color: var(--muted); display: inline-flex; cursor: pointer; }
.vd-drawer-body { display: flex; flex-direction: column; gap: var(--s2); margin-top: 8px; overflow: hidden; }
.vd-drawer-body .vd-list-item { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 10px; }

.vd-menu-stage { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.vd-menu {
  min-width: 170px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
  padding: 4px;
  display: flex;
  flex-direction: column;
}
.vd-menu-item { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--text); cursor: pointer; }
.vd-menu-item svg { color: var(--muted); }
.vd-menu-item:hover { background: var(--surface-2); }
.vd-menu-item.is-danger { color: var(--danger); }
.vd-menu-item.is-danger svg { color: var(--danger); }
.vd-menu-sep { height: 1px; background: var(--line); margin: 4px 6px; }

.vd-carousel { position: relative; width: 280px; height: 150px; border-radius: var(--r-md); overflow: hidden; background: var(--accent-soft); }
.vd-carousel-slide {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--accent);
}
.vd-carousel-slide b { color: var(--text); font-size: var(--fs-sm); }
.vd-carousel-slide svg { width: 24px; height: 24px; opacity: 0.7; }
.vd-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-1);
  font-size: var(--fs-md);
  cursor: pointer;
}
.vd-carousel-arrow.is-prev { left: 8px; }
.vd-carousel-arrow.is-next { right: 8px; }
.vd-carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.vd-carousel-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.vd-carousel-dots i.is-active { background: var(--accent); }

/* ---------- 媒体标本 ---------- */

.vd-figure { width: 100%; max-width: 280px; }
.vd-fig-media {
  aspect-ratio: 16 / 9;
  display: grid; place-items: center;
  background: var(--surface-3);
  color: var(--muted);
  border-radius: var(--r-md);
  overflow: hidden;
}
.vd-fig-media svg { width: 24px; height: 24px; }
.vd-figure figcaption { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

.vd-icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.vd-icon-cell {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
}
.vd-icon-cell svg { width: 18px; height: 18px; }

.vd-video { position: relative; width: 280px; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #191d22; }
.vd-video-play {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -60%);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #191d22;
  cursor: pointer;
}
.vd-video-play svg { width: 20px; height: 20px; margin-left: 2px; }
.vd-video-bar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
}
.vd-video-track { flex: 1; height: 3px; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.3); }
.vd-video-track i { display: block; height: 100%; border-radius: var(--r-full); background: #fff; }

.vd-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
  max-width: 280px;
  padding: 18px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--muted);
}
.vd-drop svg { color: var(--accent); }
.vd-drop b { font-size: var(--fs-sm); color: var(--text); font-weight: 600; }
.vd-drop span { font-size: var(--fs-xs); }
.vd-upfile {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.vd-upfile-icon { display: inline-flex; color: var(--muted); }
.vd-upfile-del { margin-left: auto; display: inline-flex; color: var(--muted); cursor: pointer; }
.vd-upfile-del:hover { color: var(--danger); }

/* ---------- 补充标本：FAB / 搜索框 / 评分 / 步进器 / 标签栏 / 瀑布流 / 通知 / 气泡卡 / 结果页 / 动作面板 / 命令面板 ---------- */

.vd-fab-stage {
  position: relative;
  width: 100%;
  max-width: 280px;
  height: 120px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  overflow: hidden;
}
.vd-fab {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-2);
  cursor: pointer;
}
.vd-fab:hover { background: var(--accent-strong); }
.vd-fab svg { width: 18px; height: 18px; }

.vd-search { position: relative; width: 260px; max-width: 100%; }
.vd-search > svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.vd-search .vd-input { width: 100%; padding-left: 32px; }
.vd-search-pop {
  display: flex;
  flex-direction: column;
  width: 260px;
  max-width: 100%;
  margin-top: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.vd-search-pop span { padding: 7px 12px; font-size: var(--fs-sm); color: var(--text); }
.vd-search-pop span.is-hit { background: var(--accent-soft); color: var(--accent); }

.vd-rate { display: inline-flex; align-items: center; gap: 2px; }
.vd-rate i { display: inline-flex; color: var(--line-strong); }
.vd-rate i.is-on { color: var(--warn); }
.vd-rate i.is-on svg { fill: currentColor; }
.vd-rate svg { width: 18px; height: 18px; }

.vd-num { display: inline-flex; }
.vd-num-btn {
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-md);
  line-height: 1;
  cursor: pointer;
}
.vd-num-btn:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.vd-num-btn:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.vd-num-btn:hover { color: var(--accent); border-color: var(--accent); }
.vd-num-input {
  width: 52px;
  padding: 7px 0;
  text-align: center;
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sm);
}

.vd-tabbar {
  display: flex;
  width: 100%;
  max-width: 280px;
  padding: 6px 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.vd-tabbar span {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}
.vd-tabbar span svg { width: 18px; height: 18px; }
.vd-tabbar span i { font-style: normal; }
.vd-tabbar span.is-active { color: var(--accent); font-weight: 600; }

.vd-masonry { columns: 3; column-gap: 8px; width: 100%; max-width: 300px; }
.vd-masonry i {
  display: block;
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: var(--r-sm);
  background: var(--surface-3);
}

.vd-notif {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--info);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
}
.vd-notif > i { font-style: normal; display: inline-flex; margin-top: 1px; color: var(--info); }
.vd-notif.is-danger { border-left-color: var(--danger); }
.vd-notif.is-danger > i { color: var(--danger); }
.vd-notif .vd-list-txt { flex: 1; }
.vd-notif-x { display: inline-flex; color: var(--muted); cursor: pointer; }
.vd-notif-x:hover { color: var(--text); }

.vd-pop-stage { display: flex; flex-direction: column; align-items: center; }
.vd-pop {
  position: relative;
  width: 220px;
  max-width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-2);
}
.vd-pop::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 28px;
  width: 8px;
  height: 8px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.vd-pop > b { font-size: var(--fs-sm); color: var(--text); }

.vd-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 24px 18px;
  text-align: center;
}
.vd-result-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ok-soft);
  color: var(--ok);
}
.vd-result-icon svg { width: 24px; height: 24px; }
.vd-result b { font-size: var(--fs-md); color: var(--text); }
.vd-result span { font-size: var(--fs-xs); color: var(--muted); }
.vd-result .vd-btn { margin-top: 8px; }

.vd-sheet-stage {
  position: relative;
  width: 100%;
  max-width: 260px;
  height: 170px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  overflow: hidden;
}
.vd-sheet {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 6px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.vd-sheet-grab {
  display: block;
  width: 36px;
  height: 4px;
  margin: 0 auto 4px;
  border-radius: var(--r-full);
  background: var(--line-strong);
}
.vd-sheet-opt {
  display: flex;
  justify-content: center;
  padding: 10px 12px;
  font-size: var(--fs-sm);
  color: var(--text);
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.vd-sheet-opt:first-of-type { border-top: 0; }
.vd-sheet-opt:hover { background: var(--surface-2); }
.vd-sheet-opt.is-cancel { color: var(--muted); font-weight: 600; }

.vd-cmdk {
  width: 100%;
  max-width: 300px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.vd-cmdk-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.vd-cmdk-input span { flex: 1; }
.vd-cmdk-list { display: flex; flex-direction: column; padding: 6px; }
.vd-cmdk-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  color: var(--text);
  cursor: pointer;
}
.vd-cmdk-list span svg { color: var(--muted); }
.vd-cmdk-list span.is-active { background: var(--accent-soft); color: var(--accent); }
.vd-cmdk-list span.is-active svg { color: var(--accent); }
.vd-cmdk kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 1px 5px;
  background: var(--surface-2);
}

/* ---------- 图鉴 × 搜索 / 词条互链 ---------- */

.vs-match-list { display: flex; flex-wrap: wrap; gap: var(--s2); }
.vs-match {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--text);
}
.vs-match:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.vs-match .g { font-size: var(--fs-xs); color: var(--muted); }
.vs-match:hover .g { color: var(--accent); opacity: 0.75; }

.term-visual-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
  margin: var(--s3) 0 0;
}
.term-visual-row > span { font-size: var(--fs-sm); color: var(--muted); }
.term-visual-row .vs-term-link { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 0; }

/* ---------- 补充标本 · 浮层（遮罩） / 媒体（favicon） / 数据（社会证明） ---------- */

.vd-ov-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.vd-ov { margin: 0; }
.vd-ov-cap { display: block; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 6px; }
.vd-ov-stage { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; min-height: 108px; }
.vd-ov-page { display: grid; gap: 6px; padding: 10px; }
.vd-ov-page i { height: 10px; border-radius: var(--r-sm); background: var(--surface-3); }
.vd-ov-page i:nth-child(2) { width: 72%; }
.vd-ov-page i:nth-child(3) { width: 88%; }
.vd-ov-page i:nth-child(4) { width: 54%; }
.vd-ov-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); }
.vd-ov-dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-2); padding: 12px 16px; font-size: var(--fs-sm); font-weight: 600; color: var(--text);
  text-align: center; white-space: nowrap;
}
.vd-ov-dialog em { display: block; font-style: normal; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }

.vd-marquee {
  overflow: hidden; max-width: 100%;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.vd-marquee-track { display: inline-flex; white-space: nowrap; width: max-content; animation: vdMarquee 18s linear infinite; }
.vd-marquee-track span { font-size: var(--fs-sm); color: var(--muted); padding-right: 2em; }
@keyframes vdMarquee { to { transform: translateX(-50%); } }

.vd-sp { display: flex; flex-direction: column; gap: var(--s3); }
.vd-sp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.vd-sp-stats > div { display: flex; flex-direction: column; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.vd-sp-stats b { font-size: var(--fs-xl); color: var(--text); font-variant-numeric: tabular-nums; }
.vd-sp-stats span { font-size: var(--fs-xs); color: var(--muted); }
.vd-sp-logos { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); align-items: center; justify-content: center; padding: 8px 0; }
.vd-sp-logos span { font-family: var(--font-mono); font-size: var(--fs-sm); letter-spacing: 0.18em; color: var(--muted); opacity: 0.75; }
.vd-sp-quote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; margin: 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.vd-sp-quote .vd-avatar { grid-row: span 2; }
.vd-sp-quote blockquote { margin: 0; font-size: var(--fs-sm); color: var(--text); line-height: 1.7; }
.vd-sp-quote figcaption { font-size: var(--fs-xs); color: var(--muted); }

.vd-fav { display: flex; gap: 6px; align-items: flex-end; border-bottom: 1px solid var(--line-strong); padding-bottom: 0; }
.vd-fav-tab {
  display: inline-flex; align-items: center; gap: 8px; max-width: 240px;
  padding: 7px 12px; font-size: var(--fs-xs); color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line); border-bottom: none;
  border-radius: 8px 8px 0 0; cursor: default;
}
.vd-fav-tab.is-active { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.vd-fav-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-fav-tab em { font-style: normal; color: var(--muted); display: inline-flex; }
.vd-fav-ico {
  flex-shrink: 0; width: 16px; height: 16px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); border-radius: 4px;
  font-size: 10px; font-weight: 700; font-style: normal;
}
.vd-fav-ico.is-none { background: var(--surface-3); color: var(--muted); border: 1px solid var(--line-strong); }
.vd-fav-ico.is-none svg { width: 11px; height: 11px; }

/* ---------- 补充标本 · 布局 ---------- */

.vd-flex-line { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: center; gap: 10px; }
.vd-flex-line + .vd-flex-line { margin-top: 8px; }
.vd-flex-line i { font-style: normal; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.vd-flex-box { display: flex; gap: 8px; padding: 8px; background: var(--surface-2); border-radius: var(--r-md); }
.vd-flex-box b { width: 26px; height: 26px; border-radius: 6px; background: var(--accent-soft); border: 1.5px solid var(--accent); }
.vd-flex-box.is-start { justify-content: flex-start; }
.vd-flex-box.is-center { justify-content: center; }
.vd-flex-box.is-between { justify-content: space-between; }

.vd-grid-demo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vd-grid-demo span {
  display: grid; place-items: center; height: 34px;
  background: var(--surface-3); border-radius: var(--r-sm);
  font-size: var(--fs-xs); color: var(--muted);
}
.vd-grid-demo span.is-span {
  grid-column: span 2; background: var(--accent-soft); color: var(--accent); font-weight: 600;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.vd-ws-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.vd-ws-row figure { margin: 0; }
.vd-ws-row figcaption { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.vd-ws { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.vd-ws b { display: block; font-size: var(--fs-sm); color: var(--text); }
.vd-ws span { display: block; font-size: var(--fs-xs); color: var(--muted); }
.vd-ws.is-tight { padding: 6px 8px; }
.vd-ws.is-tight b + span, .vd-ws.is-tight span + span { margin-top: 3px; }
.vd-ws:not(.is-tight) { padding: 18px 20px; }
.vd-ws:not(.is-tight) b + span { margin-top: 10px; }
.vd-ws:not(.is-tight) span + span { margin-top: 8px; line-height: 1.7; }

.vd-rs-row { display: flex; gap: var(--s3); align-items: flex-end; justify-content: center; }
.vd-rs-row figure { margin: 0; flex-shrink: 0; }
.vd-rs-row figcaption { margin-top: 6px; font-size: 11px; font-family: var(--font-mono); color: var(--muted); text-align: center; }
.vd-rs { border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 4px; background: var(--surface); }
.vd-rs-body { display: flex; gap: 4px; border-radius: 6px; background: var(--surface-2); padding: 4px; }
.vd-rs-body i { height: 72px; border-radius: 4px; background: var(--surface-3); flex: 1; }
.vd-rs.is-desktop .vd-rs-body { flex-direction: row; min-width: 168px; }
.vd-rs.is-tablet .vd-rs-body { flex-direction: row; width: 118px; }
.vd-rs.is-phone .vd-rs-body { flex-direction: column; width: 54px; }
.vd-rs.is-phone .vd-rs-body i { height: auto; flex: 1; }

.vd-sticky-stage { position: relative; }
.vd-sticky-scroll {
  height: 150px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
}
.vd-sticky-head {
  position: sticky; top: 0; z-index: 1;
  padding: 8px 12px; font-size: var(--fs-xs); font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-bottom: 1px solid var(--line);
}
.vd-sticky-row { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.vd-sticky-row b { font-family: var(--font-mono); color: var(--text); }
.vd-sticky-row span:last-child { margin-left: auto; }
.vd-sticky-fab {
  position: absolute; right: 10px; bottom: 10px;
  padding: 5px 10px; font-size: var(--fs-xs); font-weight: 600;
  background: var(--accent); color: var(--on-accent); border-radius: var(--r-full);
  box-shadow: var(--shadow-2);
}

/* ---------- 补充标本 · 视觉技法 ---------- */

.vd-grad-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.vd-grad { margin: 0; }
.vd-grad::before { content: ''; display: block; height: 64px; border-radius: var(--r-md); border: 1px solid var(--line); }
.vd-grad.is-linear::before { background: linear-gradient(135deg, var(--accent-strong), var(--accent) 55%, var(--accent-soft)); }
.vd-grad.is-radial::before { background: radial-gradient(circle at 50% 42%, var(--accent-soft), var(--accent) 70%, var(--accent-strong)); }
.vd-grad.is-conic::before { background: conic-gradient(var(--accent) 0 25%, var(--ok) 0 50%, var(--warn) 0 75%, var(--danger) 0); }
.vd-grad figcaption { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); text-align: center; }
.vd-grad-text {
  display: block; margin-top: var(--s3); font-size: var(--fs-xl); font-weight: 700; text-align: center;
  background: linear-gradient(120deg, var(--accent-strong), var(--accent) 45%, var(--warn));
  -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; margin-inline: auto;
}

.vd-go-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.vd-go { position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.vd-go-img { height: 108px; background: linear-gradient(165deg, #7fa192, #46695c 58%, #2f4b41); }
.vd-go-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgb(10 20 17 / 0.72)); }
.vd-go-shade.is-vignette { background: radial-gradient(circle at 50% 46%, transparent 42%, rgb(10 20 17 / 0.66)); }
.vd-go-shade.is-feather {
  background: linear-gradient(165deg, #7fa192, #46695c 58%, #2f4b41);
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 55%, transparent 98%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, #000 55%, transparent 98%);
}
.vd-go figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 10px; }
.vd-go figcaption b { display: block; font-size: var(--fs-sm); color: #fff; }
.vd-go figcaption span { display: block; font-size: 11px; color: rgb(255 255 255 / 0.78); }

.vd-glass-stage {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface-2); min-height: 150px;
  display: grid; place-items: center; padding: var(--s3);
}
.vd-glass-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.85; }
.vd-glass-blob.b1 { width: 110px; height: 110px; background: var(--accent); left: 8%; top: -18%; }
.vd-glass-blob.b2 { width: 84px; height: 84px; background: var(--warn); right: 12%; top: 12%; }
.vd-glass-blob.b3 { width: 96px; height: 96px; background: var(--danger); left: 34%; bottom: -26%; }
.vd-glass-card {
  position: relative; text-align: center; padding: 14px 22px;
  background: color-mix(in srgb, var(--surface) 42%, transparent);
  border: 1px solid rgb(255 255 255 / 0.45); border-radius: var(--r-lg);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);
}
.vd-glass-card b { display: block; font-size: var(--fs-md); color: var(--text); }
.vd-glass-card span { display: block; font-size: var(--fs-xs); font-family: var(--font-mono); color: var(--muted); margin-top: 3px; }

.vd-op-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.vd-op { padding: 12px 14px; background: var(--accent); border-radius: var(--r-md); }
.vd-op b { display: block; font-size: var(--fs-lg); color: var(--on-accent); font-variant-numeric: tabular-nums; }
.vd-op span { display: block; font-size: var(--fs-xs); color: var(--on-accent); opacity: 0.85; }

.vd-ac-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.vd-ac-col { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); }
.vd-ac-col label { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text); }

.vd-dm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.vd-dm { border-radius: var(--r-md); padding: 12px 16px; }
.vd-dm header { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.06em; margin-bottom: 8px; }
.vd-dm b { display: block; font-size: var(--fs-xs); font-weight: 400; }
.vd-dm strong { display: block; font-size: var(--fs-2xl); letter-spacing: -0.5px; }
.vd-dm > span { display: block; margin-top: 8px; font-size: 11px; font-family: var(--font-mono); }
.vd-dm.is-light { background: #fffdf8; border: 1px solid #e2dccd; }
.vd-dm.is-light header, .vd-dm.is-light b, .vd-dm.is-light strong { color: #26221b; }
.vd-dm.is-light > span { color: #6d665a; }
.vd-dm.is-dark { background: #22262c; border: 1px solid #30343b; }
.vd-dm.is-dark header, .vd-dm.is-dark b, .vd-dm.is-dark strong { color: #e8e5dd; }
.vd-dm.is-dark > span { color: #a49d90; }
.vd-dm.is-dark strong { color: #52c3ac; }
.vd-dm.is-light strong { color: #0e6b5b; }

/* ---------- 补充标本 · 动效 ---------- */

.vd-hv-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.vd-hv-card {
  position: relative; margin: 0; padding: 18px 16px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.vd-hv-card:hover, .vd-hv-card.is-hover {
  transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--accent);
}
.vd-hv-cap {
  position: absolute; top: -9px; left: 12px; padding: 1px 8px;
  font-size: 11px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: var(--r-full);
}
.vd-hv-card b { display: block; font-size: var(--fs-sm); color: var(--text); }
.vd-hv-card > span { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); }

.vd-tr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.vd-tr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-md); cursor: pointer; }
.vd-tr input { position: absolute; opacity: 0; pointer-events: none; }
.vd-tr-box { width: 52px; height: 52px; border-radius: 12px; background: var(--surface-3); }
.vd-tr:hover .vd-tr-box { background: var(--accent-soft); }
.vd-tr input:checked + .vd-tr-box { background: var(--accent); box-shadow: var(--shadow-2); }
.vd-tr input:checked + .vd-tr-box.is-smooth { transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; transform: scale(1.08); }
.vd-tr input:focus-visible + .vd-tr-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.vd-tr i { font-style: normal; font-size: var(--fs-xs); color: var(--muted); }

.vd-ent { display: flex; flex-direction: column; gap: 8px; }
.vd-ent-item {
  padding: 10px 14px; font-size: var(--fs-sm); color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  animation: vdEnt 0.55s ease both;
}
.vd-ent-item:nth-child(2) { border-color: var(--line-strong); }
.vd-ent-item:nth-child(3) { border-color: var(--accent); }
@keyframes vdEnt {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.vd-pulse-row { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: center; }
.vd-pulse { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text); }
.vd-pulse i { width: 10px; height: 10px; border-radius: 50%; background: var(--pulse-c, var(--accent)); animation: vdPulse 1.6s ease-out infinite; }
.vd-pulse.is-live i, .vd-pulse.is-rec i { --pulse-c: var(--danger); }
.vd-pulse.is-online i { --pulse-c: var(--ok); animation-delay: 0.3s; }
@keyframes vdPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pulse-c, var(--accent)) 45%, transparent); }
  70% { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* 标本舞台是 flex 居中容器：整行布局的 grid/flex 子块必须显式占满宽度，
   否则会收缩到内容宽——空色块 + 绝对定位说明文字的标本会塌成一条竖线 */
.vd-grad-row, .vd-go-row, .vd-op-row, .vd-hv-row, .vd-tr-row, .vd-dm-row,
.vd-ac-row, .vd-ov-row, .vd-ws-row, .vd-grid-demo, .vd-flex-line,
.vd-marquee, .vd-ent, .vd-sp, .vd-sticky-stage, .vd-glass-stage, .vd-ti { width: 100%; }

/* ---------- 响应式 ---------- */

@media (max-width: 900px) {
  .vs-layout { grid-template-columns: 1fr; gap: var(--s4); }
  .vs-tree {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    max-height: none;
  }
  .vs-tree-home { display: none; }
  .vs-tree-group-btn { width: auto; }
  .vs-tree-items { flex-direction: row; flex-wrap: wrap; margin: 0; }
  .vs-tree-item { width: auto; padding: 4px 8px; }
  .vs-item { grid-template-columns: 1fr; }
  .vs-groups { grid-template-columns: 1fr; }
  .vs-group-items { grid-template-columns: 1fr; }
  .vd-grad-row, .vd-go-row, .vd-op-row { grid-template-columns: 1fr; }
  .vd-rs-row { flex-wrap: wrap; justify-content: flex-start; }
}

/* ---------- 减动效偏好 ---------- */

@media (prefers-reduced-motion: reduce) {
  .vd-spinner { animation: none; border-top-color: var(--accent); border-right-color: var(--accent-soft); }
  .vd-sk { animation: none; opacity: 0.7; }
  .vs-item.is-flash { animation: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
  .vd-marquee-track { animation: none; }
  .vd-ent-item { animation: none; }
  .vd-pulse i { animation: none; }
}
