/* ============================================================
   组件样式 - 通用复用组件
   ============================================================ */

/* ============================================================
   表格
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-md);
}
.table thead th {
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: var(--fs-sm);
  text-align: left;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.table tbody tr {
  transition: background var(--transition-fast);
}
.table tbody tr:hover { background: var(--bg-hover); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr.selected { background: var(--brand-50); }
.table .num { font-variant-numeric: tabular-nums; }
.table .col-actions {
  display: flex; gap: 2px;
  justify-content: flex-end;
}

/* 分页 */
.pagination {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-tertiary);
}
.pagination-controls {
  display: flex; gap: 4px;
}

/* ============================================================
   匹配度可视化
   ============================================================ */
.match-cell {
  display: flex; align-items: center; gap: 10px;
  min-width: 140px;
}
.match-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-muted);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.match-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 400ms ease;
}
.match-bar-fill.high { background: var(--match-high); }
.match-bar-fill.mid  { background: var(--match-mid); }
.match-bar-fill.low  { background: var(--match-low); }
.match-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: var(--fs-md);
  width: 38px;
  text-align: right;
}
.match-pct.high { color: var(--match-high); }
.match-pct.mid  { color: var(--match-mid); }
.match-pct.low  { color: var(--match-low); }

/* 圆形匹配度 */
.match-ring {
  position: relative;
  width: 56px; height: 56px;
}
.match-ring svg { transform: rotate(-90deg); }
.match-ring .track { stroke: var(--bg-muted); }
.match-ring .progress.high { stroke: var(--match-high); }
.match-ring .progress.mid  { stroke: var(--match-mid); }
.match-ring .progress.low  { stroke: var(--match-low); }
.match-ring .label {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--text-primary);
}

/* ============================================================
   筛选条 / 工具栏
   ============================================================ */
.filter-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.filter-bar .label {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-right: 4px;
}
.filter-bar-spacer {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.filter-bar-search {
  position: relative;
  flex: 1;
  max-width: 260px;
}
.filter-bar-search .input {
  padding-left: 28px;
  height: 28px;
  font-size: var(--fs-sm);
}
.filter-bar-search .icon {
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  color: var(--text-tertiary);
  display: flex;
}

/* 批量操作条 */
.batch-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 14px;
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  font-size: 13px;
}
.batch-bar strong { font-weight: 600; }
.batch-bar-spacer { flex: 1; }

/* 活动筛选器 chips */
.active-filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  padding: 8px 12px;
  background: var(--bg-muted);
  border-left: 3px solid var(--brand-400);
  margin-bottom: 12px;
}
.filter-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 3px;
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}
.filter-chip button {
  margin-left: 2px;
  color: var(--brand-500);
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}
.filter-clear-all {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--brand-500);
  background: transparent;
  cursor: pointer;
}

/* ============================================================
   Modal & Drawer & Toast
   ============================================================ */

/* Modal */
.modal-root {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-modal);
}
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fadeIn 0.2s ease-out;
  padding: 16px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 40, 20, 0.45);
  backdrop-filter: blur(2px);
}
.modal-content {
  position: relative;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.2s ease-out;
}
.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  font-family: var(--font-serif);
}
.modal-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}
.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
}
.drawer.open { pointer-events: auto; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(60, 40, 20, 0.4);
  opacity: 0;
  transition: opacity 0.2s;
}
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-content {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 600px;
  max-width: 90vw;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
}
.drawer.open .drawer-content { transform: translateX(0); }
.drawer-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.drawer-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  font-family: var(--font-serif);
}
.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

/* Help drawer (帮助) */
.help-drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
  background: rgba(60, 40, 20, 0);
  transition: background 0.2s;
}
.help-drawer.open {
  pointer-events: auto;
  background: rgba(60, 40, 20, 0.4);
}
.help-content {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 480px;
  max-width: 90vw;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-subtle);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
}
.help-drawer.open .help-content { transform: translateX(0); }
.help-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.help-header h2 {
  font-size: var(--fs-lg);
  font-weight: 600;
  font-family: var(--font-serif);
}
.help-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1;
}
.help-body details {
  margin-bottom: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
}
.help-body summary {
  padding: 10px 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  font-size: var(--fs-md);
}
.help-body details[open] summary {
  border-bottom: 1px solid var(--border-subtle);
}
.help-body details p {
  padding: 12px 14px;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
  margin: 0;
}
.help-body code {
  padding: 1px 5px;
  background: var(--bg-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  border-radius: 3px;
}

/* Toast */
.toast-container {
  position: fixed;
  top: calc(var(--topbar-h) + 16px);
  right: 16px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 380px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-400);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--fs-md);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  animation: slideInRight 0.25s ease-out;
}
.toast.fadeout {
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s;
}
.toast-success { border-left-color: var(--success-fg); }
.toast-warning { border-left-color: var(--warning-fg); }
.toast-error { border-left-color: var(--danger-fg); }
.toast-info { border-left-color: var(--info-fg); }
.toast-icon {
  flex-shrink: 0;
  display: flex; align-items: center;
  margin-top: 1px;
}
.toast-success .toast-icon { color: var(--success-fg); }
.toast-warning .toast-icon { color: var(--warning-fg); }
.toast-error .toast-icon { color: var(--danger-fg); }
.toast-info .toast-icon { color: var(--info-fg); }
.toast-content {
  flex: 1;
  line-height: var(--lh-base);
}
.toast-close {
  color: var(--text-tertiary);
  padding: 0 2px;
  margin-left: 4px;
  font-size: 14px;
  cursor: pointer;
}
.toast-close:hover { color: var(--text-primary); }

/* ============================================================
   Chip Input (用于技能标签输入)
   ============================================================ */
.chip-input {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 6px 8px;
  min-height: 60px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
}
.chip-input:focus-within {
  border-color: var(--brand-400);
}
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 8px;
  background: var(--brand-50);
  color: var(--brand-600);
  border: 1px solid var(--brand-100);
  border-radius: 3px;
  font-size: var(--fs-sm);
}
.chip.chip-success {
  background: var(--success-bg);
  color: var(--success-fg);
  border-color: var(--success-border);
}
.chip .x {
  cursor: pointer;
  opacity: 0.6;
  font-size: 14px;
  line-height: 1;
}
.chip .x:hover { opacity: 1; }
.chip-input input {
  flex: 1; min-width: 100px;
  border: none; outline: none;
  background: transparent;
  font-size: var(--fs-md);
  padding: 3px 4px;
}

/* ============================================================
   KPI 卡片 (Dashboard)
   ============================================================ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.kpi-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: all var(--transition-fast);
}
.kpi-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.kpi-label {
  font-size: var(--fs-sm);
  color: var(--text-tertiary);
  margin-bottom: 6px;
  display: flex; align-items: center; justify-content: space-between;
}
.kpi-value {
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  font-family: var(--font-serif);
  line-height: 1.2;
}
.kpi-delta {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: var(--fs-xs);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.kpi-delta.up { color: var(--success-fg); }
.kpi-delta.down { color: var(--danger-fg); }

/* Dashboard 主网格 */
.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

/* 活动时间线 */
.activity-item {
  display: flex; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-400);
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-text { flex: 1; font-size: var(--fs-md); color: var(--text-primary); line-height: var(--lh-base); }
.activity-text .actor { color: var(--brand-600); font-weight: 500; }
.activity-time {
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  flex-shrink: 0;
}

/* ============================================================
   智能建议横幅
   ============================================================ */
.suggestions-panel {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 4px solid var(--brand-500);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}
.suggestions-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.suggestions-title {
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--brand-700);
  font-family: var(--font-serif);
}
.suggestions-list { display: flex; flex-direction: column; gap: 6px; }
.suggestion-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}
.suggestion-priority {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}
.suggestion-item[data-type="blocker"] .suggestion-priority { background: var(--danger-bg); color: var(--danger-fg); }
.suggestion-item[data-type="warning"] .suggestion-priority { background: var(--warning-bg); color: var(--warning-fg); }
.suggestion-item[data-type="opportunity"] .suggestion-priority { background: var(--success-bg); color: var(--success-fg); }
.suggestion-item[data-type="action"] .suggestion-priority { background: var(--info-bg); color: var(--info-fg); }
.suggestion-item[data-type="tip"] .suggestion-priority { background: var(--bg-muted); color: var(--text-secondary); }
.suggestion-content { font-size: var(--fs-sm); }
.suggestion-title { font-weight: 500; color: var(--text-primary); }
.suggestion-desc { color: var(--text-tertiary); font-size: var(--fs-xs); margin-top: 2px; }

/* ============================================================
   Interview Tab - Task 4 题集列表两栏布局
   ============================================================ */
.intv-tab-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  min-height: 380px;
}
.intv-set-list {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px;
}
.intv-set-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.intv-set-list-header .title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}
.intv-set-list-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.intv-set-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.intv-set-card:hover {
  background: var(--brand-50);
}
.intv-set-card.active {
  background: var(--brand-50);
  border-left: 3px solid var(--brand-500);
  padding-left: 9px;
}
.intv-set-card-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}
.intv-set-card-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.intv-set-card-menu {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1;
  padding: 0 4px;
}
.intv-set-card-meta {
  color: var(--text-tertiary);
  font-size: 11px;
  margin-top: 4px;
}
.intv-set-detail {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 14px 18px;
  min-height: 380px;
}

/* 窄屏：左栏折叠为顶部下拉 */
@media (max-width: 900px) {
  .intv-tab-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Interview Tab - Task 5 题集详情 + 题目卡片
   ============================================================ */

/* 题集详情头部 */
.intv-set-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.intv-set-header-left {
  flex: 1;
  min-width: 0;
}
.intv-set-header-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}
.intv-set-header-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.intv-set-header-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.intv-star {
  color: #C19A4F;
  font-size: 11px;
  font-weight: 400;
  margin-left: 4px;
}

/* 题目卡片 */
.intv-question-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.intv-question-card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 12px 14px;
}
.intv-q-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.intv-q-main {
  flex: 1;
  min-width: 0;
}
.intv-q-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.intv-q-num {
  background: var(--brand-500);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}
.intv-q-cat {
  background: var(--brand-50);
  color: var(--text-secondary);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
}
.intv-q-lvl {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
}
.intv-q-lvl.lvl-basic { background: #E0E8D8; color: #4A6B2A; }
.intv-q-lvl.lvl-mid { background: #FAE8C8; color: #8A5A14; }
.intv-q-lvl.lvl-expert { background: #C19A4F; color: #fff; }
.intv-q-lvl.lvl-critical { background: #B83A1E; color: #fff; }
.intv-q-tag {
  background: var(--brand-50);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
}
.intv-q-text {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.6;
}
.intv-q-intent {
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--bg-surface);
  border-left: 2px solid #C19A4F;
  font-size: 11px;
  color: var(--text-secondary);
  border-radius: 0 3px 3px 0;
}
.intv-q-intent.lvl-critical { border-left-color: #B83A1E; }
.intv-q-intent.lvl-expert { border-left-color: #C19A4F; }
.intv-q-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-left: 4px;
}
.intv-q-actions button {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  padding: 4px 6px;
  border-radius: 3px;
  cursor: pointer;
  color: var(--text-tertiary);
}
.intv-q-actions button:hover { color: var(--text-primary); }
.intv-q-actions button.intv-q-danger:hover { color: #B83A1E; border-color: #B83A1E; }

.intv-add-custom {
  width: 100%;
  padding: 10px;
  border-style: dashed !important;
  color: var(--text-tertiary);
  background: transparent;
  margin-top: 4px;
}

/* ============================================================
   Detail Drawer Top Tabs - Task 6
   ============================================================ */
.detail-tabs-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-subtle);
  margin-bottom: 12px;
  padding: 0;
}
.detail-tab {
  padding: 10px 16px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.detail-tab:hover { color: var(--text-primary); }
.detail-tab.active {
  color: var(--brand-500);
  border-bottom-color: var(--brand-500);
  font-weight: 600;
}
.detail-tab-badge {
  display: inline-block;
  background: var(--brand-500);
  color: #fff;
  border-radius: 8px;
  padding: 1px 6px;
  font-size: 10px;
  margin-left: 6px;
  font-weight: 600;
}
.detail-tab-badge.danger { background: #B83A1E; }

/* ============================================================
   Field Tooltips - 字段帮助提示（hover ⓘ 浮窗）
   ============================================================ */

.field-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  color: var(--text-tertiary);
  cursor: help;
  vertical-align: -2px;
  position: relative;
  transition: color 0.15s;
  outline: none;
}
.field-info:hover,
.field-info:focus {
  color: var(--brand-500);
}

/* tooltip 浮窗 - 用 ::after 伪元素 + data-tip 实现
   注意：放在 ⓘ 下方 - 因为父级 .section-card 有 overflow:hidden 会裁掉上方的溢出 */
.field-info::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  max-width: 280px;
  padding: 8px 10px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s 0.3s, visibility 0s 0.3s;
  z-index: 1000;
}

/* 三角箭头（指向上方的 ⓘ）*/
.field-info::before {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--bg-elevated);
  filter: drop-shadow(0 -1px 0 var(--border-subtle));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s 0.3s, visibility 0s 0.3s;
  z-index: 1000;
}

/* hover 或 focus 时显示 */
.field-info:hover::after,
.field-info:hover::before,
.field-info:focus::after,
.field-info:focus::before {
  opacity: 1;
  visibility: visible;
}

/* 让 .field-label 容纳 inline-flex 的 ⓘ */
.field-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
}
