/* ==========================================================================
   唯枸WEGO 智算平台 · 统一界面套件样式
   覆盖：主题切换按钮 / PageHeader / PageState / AI 助手面板 / 响应式断点

   与 app.css 的关系：
     app.css 定义平台既有组件（卡片、表格、按钮、弹窗）。
     本文件只补三样东西：
       1. 全局通用组件（PageHeader / PageState / 主题切换 / AI 面板）
       2. 响应式断点（1280 / 1920 / 2560）
       3. 图标与可访问性细节
   不重复定义 app.css 已有的样式，避免两处规则打架。
   ========================================================================== */

/* --------------------------------------------------------------------------
   一、图标尺寸令牌

   统一 14/16/20/24 四档。所有图标用 SVG 或字体图标，
   不用位图缩放（位图缩放会糊）。
   -------------------------------------------------------------------------- */
.icon-xs, .icon-sm, .icon-md, .icon-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    line-height: 1;
}
.icon-xs { width: var(--icon-xs); height: var(--icon-xs); font-size: var(--icon-xs); }
.icon-sm { width: var(--icon-sm); height: var(--icon-sm); font-size: var(--icon-sm); }
.icon-md { width: var(--icon-md); height: var(--icon-md); font-size: var(--icon-md); }
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); font-size: var(--icon-lg); }

/* SVG 图标统一按当前色渲染，尺寸由外层 .icon-* 控制 */
.icon-xs svg, .icon-sm svg, .icon-md svg, .icon-lg svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
}

/* --------------------------------------------------------------------------
   二、按钮 loading 状态

   异步操作的按钮在请求期间禁用并显示转圈。
   转圈用 border 动画，不用 SVG 图片（避免额外请求，也避免图标模糊）。
   -------------------------------------------------------------------------- */
.btn.loading,
.ai-launch-btn.loading,
button.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
    cursor: not-allowed;
}

.btn.loading::after,
.ai-launch-btn.loading::after,
button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    margin: -6.5px 0 0 -6.5px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wego-spin .62s linear infinite;
    color: var(--cyan);
}

/* 深色或危险按钮上的转圈用浅色，否则在深底上看不见 */
.btn.primary.loading::after,
.btn.danger-solid.loading::after,
.ai-launch-btn.loading::after {
    color: #fff;
}

@keyframes wego-spin {
    to { transform: rotate(360deg); }
}

/* 带文字的 loading：文字保留可见，转圈排在前面。
   用 btn-spinner 类时走这条路径（配合 btnLoading 的 text 参数）。 */
.btn-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 6px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wego-spin .62s linear infinite;
    vertical-align: -2px;
}

/* --------------------------------------------------------------------------
   三、主题切换按钮（ThemeToggle）

   放在顶栏、用户头像旁。三态：日间 / 夜间 / 跟随系统。
   用 radiogroup 语义：屏幕阅读器能读出「已选中」，方向键可切换。
   -------------------------------------------------------------------------- */
.theme-toggle-host {
    display: inline-flex;
    align-items: center;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1px;
    padding: 2px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
}

.theme-tgl {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 2px;
    background: transparent;
    color: var(--ink-3);
    font-family: inherit;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    transition: background-color var(--theme-dur) var(--theme-ease),
                color var(--theme-dur) var(--theme-ease);
    white-space: nowrap;
}

.theme-tgl:hover {
    background: var(--panel);
    color: var(--ink);
}

/* 暗色下 hover 文字用亮蓝，保持可读 */
:root[data-theme="dark"] .theme-tgl:hover {
    color: var(--cyan-2);
}

.theme-tgl.on {
    background: var(--panel);
    border-color: var(--cyan-line);
    color: var(--cyan);
    font-weight: 600;
}

/* 暗色下 --cyan（#1E5AA8）在深底上对比度只有 2.5:1，达不到 WCAG AA。
   选中态与强调文字改用 --cyan-2/--cyan-3 这两个亮档。 */
:root[data-theme="dark"] .theme-tgl.on {
    color: var(--cyan-3);
    border-color: var(--cyan-2);
}

/* 窄屏只留图标 */
.theme-toggle.compact .theme-tgl { padding: 0 5px; }
.theme-toggle.compact .tx { display: none; }

/* 焦点环：仅键盘导航时出现 */
.theme-tgl:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
}

/* --------------------------------------------------------------------------
   四、PageHeader —— 全站统一的页面头部

   结构：标题 + 说明 + 弹性占位 + 操作区（右对齐）。
   看板 / 台账 / RPA / 模型 / 任务 / 日志 / 设置七个页面统一用它。
   -------------------------------------------------------------------------- */
.page-header {
    display: flex;
    align-items: flex-start;
    gap: var(--gap-md);
    margin-bottom: var(--gap-lg);
    padding-bottom: var(--gap-md);
    border-bottom: 1px solid var(--divider);
}

.page-header-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.page-header-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: .2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-header-desc {
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.5;
}

/* 面包屑：与标题同行的上一级路径 */
.page-header-crumb {
    font-size: 12px;
    color: var(--ink-4);
}

.page-header-crumb .sep { margin: 0 6px; color: var(--ink-4); }

/* 操作区：统一右对齐，主/次/危险按钮靠右排 */
.page-header-actions {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* 按钮分组：组内贴紧，组间有间隔 */
.page-header-actions .btn-group {
    display: inline-flex;
    align-items: center;
    gap: var(--gap-sm);
}

.page-header-actions .btn-group + .btn-group {
    margin-left: var(--gap-sm);
    padding-left: var(--gap-sm);
    border-left: 1px solid var(--divider);
}

/* --------------------------------------------------------------------------
   五、PageState —— 统一的加载 / 空 / 错误状态

   用法：<div id="xxx"></div> 之后调用 PageState.render(el, 'loading'|'empty'|'error', opts)
   -------------------------------------------------------------------------- */
.page-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--gap-md);
    padding: 48px 24px;
    text-align: center;
    color: var(--ink-3);
    font-size: 13px;
    min-height: 180px;
}

.page-state-ico {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 20px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    color: var(--ink-4);
}

.page-state.error .page-state-ico {
    background: var(--err-soft);
    border-color: var(--err);
    color: var(--err);
}

.page-state.empty .page-state-ico {
    background: var(--cyan-soft);
    border-color: var(--cyan-line);
    color: var(--cyan);
}

.page-state-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
}

.page-state.error .page-state-title { color: var(--err); }

.page-state-desc {
    font-size: 12.5px;
    color: var(--ink-3);
    max-width: 420px;
    line-height: 1.6;
}

.page-state-actions {
    display: flex;
    gap: var(--gap-sm);
    margin-top: var(--gap-xs, 2px);
}

/* 加载态：三条呼吸横线，比转圈更轻，不抢视觉 */
.page-state.loading .page-state-ico {
    background: transparent;
    border: none;
}

.page-state-bars {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 22px;
}

.page-state-bars span {
    width: 5px;
    height: 18px;
    border-radius: 2px;
    background: var(--cyan-3);
    animation: wego-breathe 1.05s ease-in-out infinite;
}

.page-state-bars span:nth-child(2) { animation-delay: .14s; }
.page-state-bars span:nth-child(3) { animation-delay: .28s; }

@keyframes wego-breathe {
    0%, 100% { transform: scaleY(.42); opacity: .45; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* --------------------------------------------------------------------------
   六、AI 助手面板

   宽度 clamp(360px, 28vw, 420px)，由 JS 写入行内 style。
   移动端（<=720px）改为全屏。
   -------------------------------------------------------------------------- */
.ai-panel-root {
    position: fixed;
    inset: 0;
    z-index: var(--z-drawer, 80);
    pointer-events: none;
}

.ai-panel-root.open { pointer-events: auto; }

/* 遮罩：移动端才用，桌面端不遮挡主区 */
.ai-panel-mask {
    position: absolute;
    inset: 0;
    background: var(--overlay-bg);
    opacity: 0;
    transition: opacity var(--theme-dur) var(--theme-ease);
}

.ai-panel-root.shown .ai-panel-mask { opacity: 1; }

.ai-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    max-width: 100vw;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform .26s cubic-bezier(.32, .72, 0, 1);
}

.ai-panel-root.shown .ai-panel { transform: translateX(0); }

.ai-panel-head {
    display: flex;
    align-items: center;
    gap: var(--gap-sm);
    padding: 12px 14px;
    border-bottom: 1px solid var(--divider);
    background: var(--panel);
    flex: none;
}

.ai-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.ai-panel-mode {
    font-size: 11.5px;
    color: var(--cyan);
    background: var(--cyan-soft);
    border: 1px solid var(--cyan-line);
    border-radius: var(--radius-pill, 999px);
    padding: 1px 8px;
}

/* 暗色下模式标签用亮蓝档，保证在深底上可读 */
:root[data-theme="dark"] .ai-panel-mode {
    color: var(--cyan-3);
}

.ai-panel-head .grow { flex: 1; }

.ai-panel-close {
    width: 26px;
    height: 26px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink-3);
    font-size: 13px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ai-panel-close:hover {
    background: var(--panel-2);
    color: var(--ink);
    border-color: var(--line);
}

.ai-panel-close:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
}

/* 快捷指令条 */
.ai-panel-quick {
    display: flex;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--divider);
    flex: none;
    overflow-x: auto;
}

.ai-chip {
    flex: none;
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill, 999px);
    background: var(--panel-2);
    color: var(--ink-2);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, color .15s, border-color .15s;
}

.ai-chip:hover {
    background: var(--cyan-soft);
    border-color: var(--cyan-line);
    color: var(--cyan);
}

/* 对话区 */
.ai-panel-log {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-panel-msg {
    max-width: 100%;
    font-size: 13px;
    line-height: 1.65;
}

.ai-panel-msg.user {
    align-self: flex-end;
    max-width: 88%;
    background: var(--cyan);
    color: #fff;
    border-radius: var(--r-md) var(--r-md) 3px var(--r-md);
    padding: 8px 11px;
    white-space: pre-wrap;
    word-break: break-word;
}

.ai-panel-msg.assistant {
    align-self: flex-start;
    width: 100%;
    color: var(--ink);
}

.ai-panel-msg.assistant .ai-md {
    word-break: break-word;
}

/* Markdown 渲染后的排版 */
.ai-md p { margin: 0 0 8px; }
.ai-md p:last-child { margin-bottom: 0; }
.ai-md h2, .ai-md h3, .ai-md h4 {
    margin: 12px 0 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
}
.ai-md h2 { font-size: 14.5px; }
.ai-md ul { margin: 0 0 8px; padding-left: 20px; }
.ai-md li { margin: 2px 0; }
.ai-md strong { font-weight: 600; color: var(--ink); }
.ai-md em { font-style: normal; color: var(--ink-2); }
.ai-md del { color: var(--ink-4); }
.ai-md a { color: var(--cyan); text-decoration: underline; }
.ai-md code {
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 1px 5px;
    font-family: var(--mono);
    font-size: 12px;
}

.ai-md pre.ai-code {
    margin: 8px 0;
    padding: 10px 12px;
    background: var(--panel-2);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    overflow-x: auto;
    font-family: var(--mono);
    font-size: 12px;
    line-height: 1.55;
}

.ai-md pre.ai-code code {
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
}

/* 状态说明与错误 */
.ai-panel-note {
    font-size: 12px;
    color: var(--ink-4);
    padding-left: 2px;
}

.ai-panel-err {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--err);
    background: var(--err-soft);
    border: 1px solid var(--err);
    border-radius: var(--r-sm);
    padding: 8px 11px;
}

.ai-panel-retry {
    margin-left: auto;
    flex: none;
    height: 24px;
    padding: 0 10px;
    border: 1px solid var(--err);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--err);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.ai-panel-retry:hover { background: var(--err); color: #fff; }

/* 底部输入区 */
.ai-panel-foot {
    flex: none;
    border-top: 1px solid var(--divider);
    padding: 10px 14px 12px;
    background: var(--panel);
}

.ai-panel-ctx {
    font-size: 11.5px;
    color: var(--ink-3);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-panel-input-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.ai-panel-input-row textarea {
    flex: 1 1 auto;
    min-height: 32px;
    max-height: 120px;
    padding: 7px 10px;
    border: 1px solid var(--input-border, var(--line));
    border-radius: var(--r-sm);
    background: var(--input-bg, var(--panel-2));
    color: var(--ink);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.5;
    resize: none;
}

.ai-panel-input-row textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px var(--focus-ring);
}

.ai-panel-send,
.ai-panel-stop {
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    border: 1px solid var(--cyan);
    background: var(--cyan);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.ai-panel-send:hover { background: var(--cyan-hov); border-color: var(--cyan-hov); }
.ai-panel-send:disabled { opacity: .5; cursor: not-allowed; }

.ai-panel-stop {
    background: var(--err);
    border-color: var(--err);
    font-size: 11px;
}

.ai-panel-stop:hover { background: #A32D21; border-color: #A32D21; }

/* AI 入口按钮：放在顶栏 / PageHeader 操作区 */
.ai-launch-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 12px;
    border: 1px solid var(--cyan-line);
    border-radius: var(--r-sm);
    background: var(--cyan-soft);
    color: var(--cyan);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .15s, border-color .15s, box-shadow .15s;
}

.ai-launch-btn:hover {
    background: var(--cyan);
    border-color: var(--cyan);
    color: #fff;
    box-shadow: var(--shadow-hov);
}

/* 暗色下品牌蓝底上的深蓝字对比度不足 2.3:1，
   按钮文字改用 --cyan-3 这档亮蓝（对 --cyan-soft 底实测 4.97:1，达 WCAG AA）。
   --cyan-2 实测 4.45:1，差 0.05 不达标，所以再亮一档。 */
:root[data-theme="dark"] .ai-launch-btn {
    color: var(--cyan-3);
}

:root[data-theme="dark"] .ai-launch-btn:hover {
    background: var(--cyan-2);
    border-color: var(--cyan-2);
    color: #0F1115;
}

.ai-launch-btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
}

.ai-launch-ico { font-size: 13px; line-height: 1; }

/* --------------------------------------------------------------------------
   七、可访问性细节

   focus-visible 只在键盘导航时出现，鼠标点击不显示。
   -------------------------------------------------------------------------- */
:where(a, button, input, select, textarea, [tabindex],
       .mitem, .mgroup .gh, .side-toggle, th.sortable, .pill, .tabs div,
       .theme-tgl, .ai-chip, .ai-launch-btn, .page-header-actions .btn):focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
}

/* 屏幕阅读器专用文本 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   八、响应式断点

   目标分辨率：1280 / 1440 / 1600 / 1920 / 2560
   分档：
     <1280        窄屏，侧栏自动折叠，隐藏次要标签
     1280 - 1919  常规工作台
     1920 - 2559  大屏，内容区限宽居中
     >=2560       超宽屏，进一步放大留白与字号
   -------------------------------------------------------------------------- */

/* 窄屏：顶栏元素精简，AI 按钮只留图标 */
@media (max-width: 1279px) {
    .ai-launch-btn .ai-launch-tx { display: none; }
    .ai-launch-btn { padding: 0 9px; }
    .page-header { gap: var(--gap-sm); }
}

/* 大屏：内容区限宽，避免超宽屏一行拉太长 */
@media (min-width: 1920px) {
    .main > * { max-width: 1760px; }
    .page-header-title { font-size: 17px; }
}

/* 超宽屏：进一步放宽留白，字号微调 */
@media (min-width: 2560px) {
    .main > * { max-width: 2080px; }
    .main {
        padding: 18px 28px 40px;
    }
    .page-header-title { font-size: 18px; }
    .page-header-desc { font-size: 13px; }
}

/* AI 面板在移动端改为全屏 */
@media (max-width: 720px) {
    .ai-panel {
        width: 100% !important;
        max-width: 100vw;
        border-left: none;
    }
    .ai-panel-quick { flex-wrap: nowrap; }
}

/* --------------------------------------------------------------------------
   九、表格固定列与横向滚动

   列多时表格横向滚动，首列（勾选）与末列（操作）固定，
   用户横向拖动时始终能看到「选哪一行」和「能做什么」。

   实现要点：
     - border-collapse: separate（app.css 已设），固定列才能有独立边框
     - 固定列必须给明确的背景色，否则下层内容会透出来
     - 阴影用 box-shadow 的负偏移做出「被遮住」的层次感
   -------------------------------------------------------------------------- */

/* 固定首列：勾选框 */
table.grid thead th:first-child,
table.grid tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 3;
    background: var(--panel);
}

/* 固定末列：操作 */
table.grid thead th.ops-col,
table.grid tbody td.ops {
    position: sticky;
    right: 0;
    z-index: 3;
    background: var(--panel);
    box-shadow: -6px 0 8px -6px rgba(16, 32, 54, .16);
}

/* 表头的固定列层级更高，避免被数据行盖住 */
table.grid thead th:first-child,
table.grid thead th.ops-col {
    z-index: 4;
    background: var(--table-head-bg, var(--bg));
}

/* 行 hover 时固定列也跟着变，否则固定列与行底色不一致 */
table.grid tbody tr:hover td:first-child,
table.grid tbody tr:hover td.ops {
    background: var(--table-row-hover, var(--panel-2));
}

/* 暗色下的固定列阴影更克制 */
:root[data-theme="dark"] table.grid thead th.ops-col,
:root[data-theme="dark"] table.grid tbody td.ops {
    box-shadow: -6px 0 8px -6px rgba(0, 0, 0, .5);
}

/* 表格容器：横向滚动条常驻在底部，滚动时不被内容盖住 */
.table-wrap {
    /* 表头已 sticky，纵向滚动时表头吸顶；
       这里给一点右内边距，滚动条不压住最后一列 */
    scrollbar-gutter: stable;
}

/* --------------------------------------------------------------------------
   十、图标一致性

   图标统一 14/16/20/24 四档，优先 SVG。
   禁止用位图缩放（img 拉伸会糊），
   这里的规则把 img 图标按当前色渲染并约束尺寸。
   -------------------------------------------------------------------------- */
img.icon,
.icon-img {
    display: inline-block;
    vertical-align: middle;
    /* 位图放大必糊：小于 32px 的原图统一按 2 倍渲染再缩，
       保证边缘锐利 */
    image-rendering: -webkit-optimize-contrast;
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink-3);
    cursor: pointer;
    padding: 0;
}

.icon-btn:hover {
    background: var(--panel-2);
    border-color: var(--line);
    color: var(--ink);
}

.icon-btn:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 1px;
}

/* --------------------------------------------------------------------------
   十一、表单校验统一

   错误提示放在字段下方，左侧一条红杠 + 浅红底。
   与 PageState 的错误态用同一套 --err / --err-soft 令牌。
   -------------------------------------------------------------------------- */
.field-error {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 4px;
    padding: 5px 8px;
    border-left: 3px solid var(--err);
    border-radius: 2px;
    background: var(--err-soft);
    color: var(--err);
    font-size: 12px;
    line-height: 1.5;
}

.field-error::before {
    content: '!';
    flex: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--err);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
    margin-top: 1px;
}

/* 字段本身标错：边框变红 */
.field-invalid {
    border-color: var(--err) !important;
}

.field-invalid:focus {
    box-shadow: 0 0 0 3px var(--err-soft) !important;
}

/* 滚动到错误项时的短暂高亮，让用户知道看的是哪一条 */
.field-error-flash {
    animation: wego-flash 1.1s ease-out;
}

@keyframes wego-flash {
    0%, 100% { background: var(--err-soft); }
    30% { background: rgba(192, 57, 43, .22); }
}
