/* ============ 模型管理模块 CSS ============ */
/* 提取自 ai-cs-v1.7.3 · 2026-07-11 */

  .model-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 4px 10px;
        background: #fafbfc;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        margin-bottom: 4px;
      }
  .model-row .model-row-select {
    height: 38px;
    font-size: 15px;
    width: 100%;
    padding: 4px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    color: #1f2937;
  }
  .model-row-label {
    font-size: 15px;
    color: #374151;
    font-weight: 500;
    white-space: nowrap;
    width: 80px;
    flex-shrink: 0;
  }
  .model-row-select:focus {
    outline: 0;
    border-color: #4f46e5;
  }
  .model-row-hint {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
  }
  .model-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .model-row-select.left { text-align: left; }
  .modal-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 100;
    align-items: center; justify-content: center;
  }
  .modal-backdrop.show { display: flex; }
  .modal-backdrop.confirm { z-index: 200; }
  .modal {
    background: #fff; border-radius: 10px;
    width: 520px; max-width: 92vw;
    max-height: 86vh;
    display: flex; flex-direction: column;
  }
  .modal-lg { width: 680px; }
  .modal-header {
    padding: 14px 18px;
    border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center; justify-content: space-between;
  }
  .modal-title { font-size: 15px; font-weight: 600; }
  .modal-body { padding: 14px 18px; flex: 1; overflow-y: auto; }
  .modal-footer {
    padding: 12px 18px;
    border-top: 1px solid #e5e7eb;
    display: flex; justify-content: flex-end; gap: 8px;
  }
  .field { margin-bottom: 12px; }
  .field label {
    display: block; font-size: 15px; color: #374151;
    margin-bottom: 6px; font-weight: 500;
  }
  .field label .required { color: #dc2626; margin-left: 2px; }
  .field input, .field select, .field textarea {
    width: 100%; padding: 8px 10px;
    border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 15px; font-family: inherit;
    background: #fff;
  }
  .field input:focus, .field select:focus, .field textarea:focus {
    outline: 0; border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79,70,229,.1);
  }
  .field .hint { font-size: 11px; color: #9ca3af; margin-top: 4px; }
  .btn {
    border: 0; border-radius: 6px; padding: 6px 12px;
    font-size: 15px; cursor: pointer; transition: all .15s;
    display: inline-flex; align-items: center; gap: 4px;
    font-family: inherit;
  }
  .btn:disabled { cursor: not-allowed; opacity: .6; }
  .btn-primary { background: #4f46e5; color: #fff; }
  .btn-primary:hover:not(:disabled) { background: #4338ca; }
  .btn-secondary { background: #f3f4f6; color: #374151; }
  .btn-secondary:hover:not(:disabled) { background: #e5e7eb; }
  .btn-ghost { background: transparent; color: #6b7280; }
  .btn-ghost:hover { color: #1f2937; }
  .btn-danger { background: #fee2e2; color: #dc2626; }
  .btn-danger:hover { background: #fecaca; }
  .btn-success { background: #dcfce7; color: #16a34a; }
  .add-link {
    background: #f3f4f6; color: #4f46e5;
    border: 1px dashed #4f46e5;
    width: 100%; padding: 6px; border-radius: 6px;
    cursor: pointer; font-size: 12px;
    margin-top: 6px; font-family: inherit;
  }
  .add-link:hover { background: #eef2ff; }
  .select-wrapper {
    position: relative;
    flex: 1;
  }
  .select-wrapper.empty::before {
    content: attr(data-placeholder);
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 12px;
    pointer-events: none;
    z-index: 1;
  }
