
    /* ════════════════════════════════════════════════════════
       Agent 管理界面 · 专业蓝色主题
       ════════════════════════════════════════════════════════ */
    .admin-wrap.agents-page { max-width: 1200px; }

    /* —— 页头（已统一为 topbar 风格，见 components.css） —— */

    /* —— 架构图 —— */
    .arch-diagram {
      background:
        radial-gradient(circle at 15% 0%, rgba(22,93,255,.10), transparent 50%),
        radial-gradient(circle at 85% 100%, rgba(103,232,249,.08), transparent 50%),
        var(--bg-1);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 28px 24px;
      margin-bottom: 24px;
      position: relative;
      overflow: hidden;
    }
    .arch-diagram::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
      background-size: 32px 32px;
      opacity: .25;
      mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    }
    .arch-title {
      font-size: 12px;
      color: var(--t3);
      text-align: center;
      margin-bottom: 20px;
      letter-spacing: .08em;
      text-transform: uppercase;
      position: relative;
    }
    .arch-steps {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
      position: relative;
    }
    .arch-box {
      background: var(--bg-1);
      border: 1.5px solid var(--brand);
      border-radius: 14px;
      padding: 18px 24px;
      text-align: center;
      box-shadow: 0 8px 24px rgba(22,93,255,.14);
      transition: transform .25s ease, box-shadow .25s ease;
      min-width: 150px;
    }
    .arch-box:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 32px rgba(22,93,255,.22);
    }
    .arch-box i {
      width: 30px; height: 30px;
      color: var(--brand-text);
      display: block;
      margin: 0 auto 8px;
    }
    .arch-label {
      font-size:16px; font-weight: 700; color: var(--t1);
      margin-bottom: 3px;
    }
    .arch-desc { font-size:12px; color: var(--t3); }
    .arch-arrow {
      color: var(--brand-text);
      font-size: 22px;
      font-weight: 300;
      flex-shrink: 0;
      animation: archPulse 2s ease-in-out infinite;
    }
    @keyframes archPulse {
      0%, 100% { opacity: .4; transform: translateX(0); }
      50% { opacity: 1; transform: translateX(3px); }
    }

    /* —— 统计面板 —— */
    .stats-panel {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
      margin-bottom: 28px;
    }
    .stat-card {
      background: var(--bg-1);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 20px;
      display: flex;
      align-items: center;
      gap:16px;
      transition: border-color .2s ease, transform .2s ease;
    }
    .stat-card:hover {
      border-color: var(--brand-text);
      transform: translateY(-2px);
    }
    .stat-icon {
      width: 44px; height: 44px;
      border-radius: 12px;
      display: grid; place-items: center;
      color: #fff;
      flex-shrink: 0;
    }
    .stat-icon i { width: 22px; height: 22px; }
    .stat-icon.c1 { background: linear-gradient(135deg, #4080FF, #165DFF); }
    .stat-icon.c2 { background: linear-gradient(135deg, #4080FF, #165DFF); }
    .stat-icon.c3 { background: linear-gradient(135deg, #4080FF, #165DFF); }
    .stat-icon.c4 { background: linear-gradient(135deg, #00B42A, #00B42A); }
    .stat-value {
      font-size: 20px; font-weight: 600; color: var(--t1);
      line-height: 1.2;
      font-variant-numeric: tabular-nums;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .stat-label { font-size: 12px; color: var(--t3); margin-top: 2px; }

    /* —— Tab 导航 —— */
    .tab-nav {
      display: flex;
      gap: 4px;
      background: var(--bg-2);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 5px;
      margin-bottom: 24px;
    }
    .tab-btn {
      flex: 1;
      border: none;
      background: transparent;
      color: var(--t3);
      padding: 10px 16px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all .2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-family: inherit;
    }
    .tab-btn i { width: 16px; height: 16px; }
    .tab-btn:hover { color: var(--t1); }
    .tab-btn.active {
      background: var(--bg-1);
      color: var(--brand-text);
      box-shadow: 0 2px 8px rgba(0,0,0,.06);
    }
    .tab-content { animation: fadeUp .3s ease; }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* —— 区块标题 —— */
    .section-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 16px;
    }
    .section-head h2 {
      font-size:16px; font-weight: 700; color: var(--t1); margin: 0;
      display: flex; align-items: center; gap: 8px;
    }
    .section-head h2 i { width: 20px; height: 20px; color: var(--brand-text); }

    /* —— Agent 卡片网格 —— */
    .agent-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
      gap:20px;
    }
    .agent-card {
      background: var(--bg-1);
      border: 1px solid var(--line);
      border-radius: 16px;
      overflow: hidden;
      transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
      display: flex;
      flex-direction: column;
      animation: cardIn .4s ease backwards;
    }
    @keyframes cardIn {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .agent-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 14px 36px rgba(22,93,255,.12);
      border-color: var(--brand-soft);
    }
    .agent-card.disabled { opacity: .62; }
    .agent-card.disabled .agent-avatar { filter: grayscale(.5); }

    .agent-card-top {
      padding: 18px 20px 16px;
      display: flex;
      gap:16px;
      align-items: flex-start;
    }
    .agent-avatar {
      width: 54px; height: 54px;
      border-radius: 14px;
      background: var(--grad-brand);
      display: grid; place-items: center;
      color: #fff;
      flex-shrink: 0;
      box-shadow: 0 6px 16px rgba(22,93,255,.28);
    }
    .agent-avatar i { width: 26px; height: 26px; }
    .agent-head-info { flex: 1; min-width: 0; }
    .agent-name-row {
      display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
      margin-bottom: 2px;
    }
    .agent-name { font-size: 16px; font-weight: 700; color: var(--t1); }
    .order-badge {
      font-size:12px; font-weight: 700;
      background: var(--bg-2);
      color: var(--t3);
      padding: 2px 7px;
      border-radius: 10px;
      border: 1px solid var(--line);
    }
    .agent-title { font-size:14px; color: var(--brand-text); margin-bottom: 5px; font-weight: 600; }
    .agent-prompt-preview {
      font-size: 12px;
      color: var(--t3);
      line-height: 1.55;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    /* —— 温度滑块 —— */
    .temp-row {
      padding: 10px 20px;
      border-top: 1px solid var(--line);
      display: flex;
      align-items: center;
      gap: 12px;
      background: var(--bg-2);
    }
    .temp-label {
      font-size:12px; color: var(--t3);
      display: flex; align-items: center; gap: 5px;
      white-space: nowrap;
    }
    .temp-label i { width: 13px; height: 13px; }
    .temp-slider {
      flex: 1;
      -webkit-appearance: none;
      appearance: none;
      height: 5px;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--brand), var(--warn));
      outline: none;
      cursor: pointer;
    }
    .temp-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 16px; height: 16px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid var(--brand);
      cursor: pointer;
      box-shadow: 0 2px 6px rgba(0,0,0,.18);
      transition: transform .15s ease;
    }
    .temp-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
    .temp-slider::-moz-range-thumb {
      width: 16px; height: 16px;
      border-radius: 50%;
      background: #fff;
      border: 2px solid var(--brand);
      cursor: pointer;
    }
    .temp-value {
      font-size: 12px; font-weight: 700;
      color: var(--brand-text);
      font-family: var(--font-mono);
      min-width: 32px;
      text-align: right;
    }

    /* —— 卡片底部 —— */
    .agent-card-body {
      padding: 14px 20px;
      flex: 1;
    }
    .body-label {
      font-size:12px; color: var(--t3);
      text-transform: uppercase;
      letter-spacing: .05em;
      margin-bottom: 8px;
      display: flex; align-items: center; gap: 5px;
    }
    .body-label i { width: 12px; height: 12px; }
    .skill-tags {
      display: flex; flex-wrap: wrap; gap: 6px;
    }
    .skill-tag {
      font-size:12px;
      padding: 4px 10px;
      background: rgba(22,93,255,.08);
      color: var(--brand-text);
      border-radius: 12px;
      border: 1px solid rgba(22,93,255,.18);
      font-weight: 500;
    }
    .skill-tag.default {
      background: var(--grad-brand);
      color: #fff;
      border-color: transparent;
    }
    .skill-tag.default::before { content: '★ '; }

    .agent-card-foot {
      padding: 12px 20px;
      border-top: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap:12px;
      background: var(--bg-2);
    }

    /* —— 开关 —— */
    .switch {
      position: relative;
      display: inline-block;
      width: 38px; height: 22px;
      flex-shrink: 0;
    }
    .switch input { opacity: 0; width: 0; height: 0; }
    .switch .slider {
      position: absolute;
      cursor: pointer;
      inset: 0;
      background: var(--line-strong);
      border-radius: 22px;
      transition: .25s;
    }
    .switch .slider::before {
      content: '';
      position: absolute;
      width: 16px; height: 16px;
      left: 3px; top: 3px;
      background: #fff;
      border-radius: 50%;
      transition: .25s;
      box-shadow: 0 1px 3px rgba(0,0,0,.2);
    }
    .switch input:checked + .slider { background: var(--brand); }
    .switch input:checked + .slider::before { transform: translateX(16px); }
    .switch-label {
      font-size: 12px; color: var(--t3);
      display: flex; align-items: center; gap: 7px;
    }

    .card-btns { display: flex; gap: 6px; }
    .icon-btn {
      width: 30px; height: 30px;
      border: 1px solid var(--line);
      background: var(--bg-1);
      border-radius: 8px;
      cursor: pointer;
      display: grid; place-items: center;
      color: var(--t2);
      transition: all .18s ease;
    }
    .icon-btn i { width: 15px; height: 15px; }
    .icon-btn:hover { border-color: var(--brand-text); color: var(--brand-text); transform: translateY(-1px); }
    .icon-btn.danger:hover { border-color: #F53F3F; color: #F53F3F; }

    /* —— 技能管理 —— */
    .skill-category-group { margin-bottom: 28px; }
    .cat-group-head {
      display: flex; align-items: center; gap:12px;
      margin-bottom: 14px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--line);
    }
    .cat-icon {
      width: 32px; height: 32px;
      border-radius: 9px;
      background: rgba(22,93,255,.1);
      color: var(--brand-text);
      display: grid; place-items: center;
    }
    .cat-icon i { width: 17px; height: 17px; }
    .cat-name { font-size:16px; font-weight: 700; color: var(--t1); }
    .cat-count { font-size: 12px; color: var(--t3); }
    .skill-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
      gap:16px;
    }
    .skill-card {
      background: var(--bg-1);
      border: 1px solid var(--line);
      border-radius: 13px;
      padding: 16px;
      transition: all .2s ease;
    }
    .skill-card:hover {
      border-color: var(--brand-soft);
      box-shadow: 0 8px 20px rgba(22,93,255,.08);
      transform: translateY(-2px);
    }
    .skill-card-top {
      display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px;
    }
    .skill-icon {
      width: 38px; height: 38px;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(22,93,255,.12), rgba(103,232,249,.08));
      color: var(--brand-text);
      display: grid; place-items: center;
      flex-shrink: 0;
    }
    .skill-icon i { width: 19px; height: 19px; }
    .skill-card-info { flex: 1; min-width: 0; }
    .skill-card-name { font-size: 14px; font-weight: 700; color: var(--t1); margin-bottom: 3px; }
    .skill-card-desc { font-size: 12px; color: var(--t3); line-height: 1.5; }
    .skill-meta {
      display: flex; gap:12px; flex-wrap: wrap;
      margin: 10px 0;
      padding: 8px 10px;
      background: var(--bg-2);
      border-radius: 8px;
    }
    .meta-chip {
      font-size: 10.5px;
      color: var(--t2);
      display: flex; align-items: center; gap: 4px;
    }
    .meta-chip i { width: 11px; height: 11px; color: var(--t3); }
    .meta-chip b { color: var(--brand-text); font-weight: 600; }
    .skill-card-foot {
      display: flex; justify-content: flex-end; gap: 5px;
      margin-top: 10px;
      flex-wrap: nowrap;
    }

    /* —— 提示词预览 —— */
    .preview-controls {
      background: var(--bg-1);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 20px;
      margin-bottom: 20px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }
    .control-group label {
      font-size: 12px; font-weight: 600; color: var(--t2);
      display: block; margin-bottom: 7px;
    }
    .control-group select {
      width: 100%;
      padding: 9px 12px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--bg-1);
      color: var(--t1);
      font-size:14px;
      font-family: inherit;
      cursor: pointer;
      transition: border-color .2s ease;
    }
    .control-group select:focus { outline: none; border-color: var(--brand-text); }

    .param-inputs {
      background: var(--bg-1);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 20px;
      margin-bottom: 20px;
    }
    .param-inputs-title {
      font-size:14px; font-weight: 600; color: var(--t1);
      margin-bottom: 14px;
      display: flex; align-items: center; gap: 7px;
    }
    .param-inputs-title i { width: 16px; height: 16px; color: var(--brand-text); }
    .param-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 12px;
    }
    .param-field label {
      font-size:12px; color: var(--t3);
      display: block; margin-bottom: 4px;
      font-family: var(--font-mono);
    }
    .param-field input {
      width: 100%;
      padding: 7px 10px;
      border: 1px solid var(--line);
      border-radius: 7px;
      background: var(--bg-2);
      color: var(--t1);
      font-size: 12px;
      font-family: inherit;
    }
    .param-field input:focus { outline: none; border-color: var(--brand-text); background: var(--bg-1); }

    .prompt-list { display: flex; flex-direction: column; gap:16px; }
    .prompt-card {
      background: var(--bg-1);
      border: 1px solid var(--line);
      border-radius: 14px;
      overflow: hidden;
    }
    .prompt-card-head {
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px;
      background: linear-gradient(135deg, rgba(22,93,255,.05), transparent);
    }
    .prompt-card-name {
      font-size: 14px; font-weight: 700; color: var(--t1);
      display: flex; align-items: center; gap: 8px;
    }
    .prompt-card-name i { width: 16px; height: 16px; color: var(--brand-text); }
    .prompt-badges { display: flex; gap: 6px; flex-wrap: wrap; }
    .prompt-badge {
      font-size:12px; font-weight: 600;
      padding: 3px 8px; border-radius: 10px;
    }
    .prompt-badge.fmt { background: rgba(16,185,129,.1); color: #3f8a70; }
    .prompt-badge.param { background: rgba(103,232,249,.1); color: var(--brand-text); }
    .prompt-card-body { padding: 16px 18px; }
    .prompt-section-label {
      font-size:12px; font-weight: 600; color: var(--t3);
      text-transform: uppercase; letter-spacing: .05em;
      margin-bottom: 7px; margin-top: 14px;
      display: flex; align-items: center; gap: 5px;
    }
    .prompt-section-label:first-child { margin-top: 0; }
    .prompt-section-label i { width: 12px; height: 12px; }
    .prompt-content {
      font-size:14px;
      color: var(--t2);
      line-height: 1.7;
      white-space: pre-wrap;
      font-family: var(--font-mono);
      background: var(--bg-2);
      border: 1px solid var(--line);
      border-radius: 9px;
      padding: 14px;
      max-height: 340px;
      overflow-y: auto;
    }
    .prompt-content.rendered { border-color: var(--brand-soft); }
    .constraints-list {
      list-style: none; padding: 0; margin: 0;
      display: flex; flex-direction: column; gap: 5px;
    }
    .constraints-list li {
      font-size: 12px; color: var(--t2);
      padding-left: 18px;
      position: relative;
      line-height: 1.5;
    }
    .constraints-list li::before {
      content: '⚠';
      position: absolute; left: 0; top: 0;
      font-size:12px; color: #FF7D00;
    }

    .empty-state {
      text-align: center;
      padding: 48px 20px;
      color: var(--t3);
    }
    .empty-state i { width: 40px; height: 40px; color: var(--line-strong); margin-bottom: 12px; }
    .empty-state p { font-size: 14px; margin: 0; }

    /* —— 导入导出 —— */
    .io-panel {
      background: var(--bg-1);
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 20px;
      margin-bottom: 24px;
    }
    .io-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
    .io-tab {
      padding: 7px 14px;
      border: 1px solid var(--line);
      background: var(--bg-1);
      border-radius: 8px;
      font-size:14px; font-weight: 600;
      color: var(--t3);
      cursor: pointer;
      font-family: inherit;
      transition: all .2s ease;
    }
    .io-tab.active { background: var(--brand); color: #0E42D2; border-color: var(--brand-text); }
    .io-textarea {
      width: 100%;
      min-height: 220px;
      padding: 14px;
      border: 1px solid var(--line);
      border-radius: 10px;
      background: var(--bg-2);
      color: var(--t1);
      font-family: var(--font-mono);
      font-size: 12px;
      line-height: 1.6;
      resize: vertical;
      white-space: pre;
      overflow-x: auto;
    }
    .io-textarea:focus { outline: none; border-color: var(--brand-text); }
    .io-actions { display: flex; gap:12px; margin-top: 12px; align-items: center; }

    /* —— 模态框 —— */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15,23,42,.55);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      display: grid;
      place-items: center;
      z-index: 1000;
      padding: 20px;
      animation: overlayIn .2s ease;
    }
    .modal-overlay[hidden] { display: none; }
    @keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
    .modal {
      background: var(--bg-1);
      border-radius: 18px;
      width: 100%;
      max-width: 620px;
      max-height: 88vh;
      overflow-y: auto;
      box-shadow: 0 24px 60px rgba(0,0,0,.3);
      animation: modalIn .28s cubic-bezier(.34,1.36,.64,1);
    }
    @keyframes modalIn {
      from { opacity: 0; transform: translateY(20px) scale(.96); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .modal-head {
      padding: 20px 24px;
      border-bottom: 1px solid var(--line);
      display: flex; align-items: center; justify-content: space-between;
      position: sticky; top: 0;
      background: var(--bg-1);
      z-index: 2;
      border-radius: 18px 18px 0 0;
    }
    .modal-title {
      font-size:16px; font-weight: 700; color: var(--t1);
      display: flex; align-items: center; gap:12px;
    }
    .modal-title i { width: 20px; height: 20px; color: var(--brand-text); }
    .modal-close {
      width: 32px; height: 32px;
      border: none; background: var(--bg-2);
      border-radius: 8px; cursor: pointer;
      display: grid; place-items: center;
      color: var(--t3);
      transition: all .18s ease;
    }
    .modal-close:hover { background: #F53F3F; color: #fff; }
    .modal-close i { width: 16px; height: 16px; }
    .modal-body { padding: 22px 24px; }
    .modal-foot {
      padding: 16px 24px;
      border-top: 1px solid var(--line);
      display: flex; justify-content: flex-end; gap:12px;
      background: var(--bg-2);
      border-radius: 0 0 18px 18px;
      position: sticky; bottom: 0;
    }

    /* —— 表单 —— */
    .form-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap:16px;
    }
    .form-field { display: flex; flex-direction: column; gap: 5px; }
    .form-field.full { grid-column: 1 / -1; }
    .form-field label {
      font-size: 12px; font-weight: 600; color: var(--t2);
    }
    .form-field label .hint { color: var(--t3); font-weight: 400; font-size:12px; }
    .form-field input[type="text"],
    .form-field input[type="number"],
    .form-field textarea,
    .form-field select {
      width: 100%;
      padding: 9px 12px;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: var(--bg-2);
      color: var(--t1);
      font-size:14px;
      font-family: inherit;
      transition: border-color .18s ease, background .18s ease;
    }
    .form-field input:focus,
    .form-field textarea:focus,
    .form-field select:focus {
      outline: none; border-color: var(--brand-text); background: var(--bg-1);
    }
    .form-field textarea {
      resize: vertical;
      line-height: 1.6;
      min-height: 90px;
    }
    .form-field textarea.system-prompt { min-height: 130px; font-family: var(--font-mono); font-size: 12px; }

    .temp-edit-row {
      display: flex; align-items: center; gap: 12px;
      padding: 4px 0;
    }
    .temp-edit-row input[type="range"] { flex: 1; }

    .skills-checkboxes {
      display: flex; flex-wrap: wrap; gap: 8px;
      padding: 10px;
      background: var(--bg-2);
      border: 1px solid var(--line);
      border-radius: 9px;
      max-height: 140px;
      overflow-y: auto;
    }
    .skill-check {
      display: flex; align-items: center; gap: 6px;
      padding: 5px 11px;
      background: var(--bg-1);
      border: 1px solid var(--line);
      border-radius: 8px;
      cursor: pointer;
      font-size: 12px;
      color: var(--t2);
      transition: all .15s ease;
      user-select: none;
    }
    .skill-check:hover { border-color: var(--brand-soft); }
    .skill-check input { accent-color: var(--brand-text); cursor: pointer; }
    .skill-check.checked {
      border-color: var(--brand-text);
      background: rgba(22,93,255,.08);
      color: var(--brand-text);
      font-weight: 600;
    }

    .form-switch-row {
      display: flex; align-items: center; gap:12px;
      padding: 10px 12px;
      background: var(--bg-2);
      border: 1px solid var(--line);
      border-radius: 9px;
    }

    /* —— 确认对话框 —— */
    .confirm-modal { max-width: 400px; }
    .confirm-icon {
      width: 56px; height: 56px;
      border-radius: 50%;
      background: rgba(245,63,63,.1);
      color: #F53F3F;
      display: grid; place-items: center;
      margin: 0 auto 16px;
    }
    .confirm-icon i { width: 28px; height: 28px; }
    .confirm-text {
      text-align: center;
      font-size: 14px; color: var(--t2);
      line-height: 1.6;
      margin-bottom: 4px;
    }
    .confirm-text b { color: var(--t1); }

    /* —— Toast —— */
    .toast {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%) translateY(20px);
      background: var(--t1);
      color: #fff;
      padding: 12px 22px;
      border-radius: 10px;
      font-size:14px;
      font-weight: 600;
      box-shadow: 0 12px 30px rgba(0,0,0,.25);
      z-index: 2000;
      display: flex; align-items: center; gap: 8px;
      opacity: 0;
      transition: all .3s ease;
      pointer-events: none;
    }
    .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
    .toast i { width: 16px; height: 16px; }
    .toast.success { background: #3f8a70; }
    .toast.error { background: #F53F3F; }

    /* —— 响应式 —— */
    @media (max-width: 768px) {
      .stats-panel { grid-template-columns: repeat(2, 1fr); }
      .form-grid { grid-template-columns: 1fr; }
      .preview-controls { grid-template-columns: 1fr; }
      .arch-steps { gap: 12px; }
      .arch-arrow { transform: rotate(90deg); }
    }

    /* —— Prompt 管理 Tab —— */
    .pm-intro { margin-bottom: 20px; }
    .pm-intro h3 { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
    .pm-intro p { font-size:14px; color: var(--t2); margin: 0; }
    .pm-sub-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
    .pm-sub-tab { padding: 8px 14px; font-size:14px; font-weight: 600; color: var(--t3); cursor: pointer; border: 0; background: transparent; border-bottom: 2px solid transparent; transition: .15s; font-family: inherit; }
    .pm-sub-tab.active { color: var(--brand-text); border-bottom-color: var(--brand-text); }
    .pm-sub-tab:hover { color: var(--t1); }
    .pm-panel { display: none; }
    .pm-panel.active { display: block; }
    .pm-matrix { width: 100%; border-collapse: collapse; font-size:14px; }
    .pm-matrix th, .pm-matrix td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
    .pm-matrix th { background: var(--bg-2); color: var(--t2); font-weight: 600; font-size: 12px; white-space: nowrap; }
    .pm-matrix tr:hover td { background: rgba(22,93,255,.04); }
    .pm-cat-name { font-weight: 600; color: var(--t1); }
    .pm-cat-kw { font-size:12px; color: var(--t3); margin-top: 2px; }
    .pm-cell { cursor: pointer; color: var(--t2); font-size: 12px; }
    .pm-cell:hover { color: var(--brand-text); }
    .pm-cell.default { color: var(--t3); font-style: italic; }
    .pm-cell.has-override { color: var(--brand-text); }
    .pm-new-row { display: flex; gap:12px; margin-bottom: 16px; flex-wrap: wrap; }
    .pm-new-row input { flex: 1; min-width: 140px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--bg-0); border: 1px solid var(--line); color: var(--t1); font-size:14px; font-family: inherit; }
    .pm-new-row input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
    .pm-llm-list { display: grid; gap: 12px; }
    .pm-llm-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; cursor: pointer; transition: .15s; }
    .pm-llm-card:hover { border-color: var(--brand-text); }
    .pm-llm-card-head { display: flex; align-items: center; justify-content: space-between; }
    .pm-llm-card h4 { font-size: 14px; font-weight: 600; color: var(--t1); margin: 0; }
    .pm-llm-card .pm-llm-temp { font-size: 12px; color: var(--brand-text); font-variant-numeric: tabular-nums; }
    .pm-llm-card .pm-llm-preview { font-size: 12px; color: var(--t3); margin-top: 8px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .pm-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-sm); font-size:14px; font-weight: 600; cursor: pointer; border: 1px solid var(--line-strong); background: transparent; color: var(--t1); transition: .15s; font-family: inherit; }
    .pm-btn.primary { background: var(--brand); border-color: var(--brand-text); color: #0E42D2; }
    .pm-btn.primary:hover { opacity: .88; }
    .pm-btn.ghost:hover { border-color: var(--brand-text); color: var(--brand-text); }
    .pm-btn.danger { color: var(--err); border-color: rgba(245,63,63,.3); }
    .pm-btn.danger:hover { background: rgba(245,63,63,.1); }
    .pm-editor { max-width: 760px; width: 100%; max-height: 85vh; }
    .pm-editor .modal-body { padding: 20px; overflow-y: auto; }
    .pm-editor .modal-foot { display: flex; gap:12px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); }
    .pm-field { margin-bottom: 16px; }
    .pm-field label { display: block; font-size:14px; font-weight: 600; color: var(--t1); margin-bottom: 6px; }
    .pm-field .pm-hint { font-size:12px; color: var(--t3); margin-top: 4px; }
    .pm-field textarea { width: 100%; min-height: 120px; padding: 12px; border-radius: var(--r-sm); background: var(--bg-0); border: 1px solid var(--line); color: var(--t1); font-family: var(--font-ui); font-size:14px; line-height: 1.6; resize: vertical; }
    .pm-field textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
    .pm-field input[type="number"] { width: 100px; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg-0); border: 1px solid var(--line); color: var(--t1); font-size: 14px; }
    .pm-field input[type="text"] { width: 100%; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg-0); border: 1px solid var(--line); color: var(--t1); font-size: 14px; }
    /* v18.3 品类管理 */
    .cat-filter { padding: 8px 14px; font-size:14px; font-weight: 600; color: var(--t3); cursor: pointer; border: 0; background: transparent; border-bottom: 2px solid transparent; transition: .15s; font-family: inherit; }
    .cat-filter.active { color: var(--brand-text); border-bottom-color: var(--brand-text); }
    .cat-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 14px; }
    .cat-card-head { display: flex; align-items: center; gap:12px; flex-wrap: wrap; }
    .cat-card-title { font-weight: 600; color: var(--t1); font-size: 14px; }
    .cat-chip { font-size:12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
    .cat-chip.ok { background: rgba(63,185,80,.15); color: #2f9e44; }
    .cat-chip.warn { background: rgba(255,169,0,.18); color: #b76e00; }
    .cat-chip.err { background: rgba(226,75,74,.12); color: #a32d2d; }
    .cat-meta { font-size:12px; color: var(--t3); }
    .cat-actions { margin-left: auto; display: flex; gap: 6px; }
    .cat-json { width: 100%; min-height: 260px; margin-top: 10px; border-radius: var(--r-sm); background: var(--bg-0); border: 1px solid var(--line); color: var(--t1); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px 12px; box-sizing: border-box; resize: vertical; }
    .cat-empty { padding: 24px; text-align: center; color: var(--t3); font-size:14px; }
  
/* admin 左侧边栏「创意协作」子项缩进 */
.admin-nav-item.sub { padding-left: 38px; font-size:14px; }
.admin-nav-item.sub .admin-nav-icon { width: 15px; height: 15px; }

/* —— 技能管理：搜索框 + 计数 badge + 卡片可点击 + 按钮带图标文字 —— */
.section-head-actions {
  display: flex; align-items: center; gap: 12px;
}
.skill-search {
  position: relative;
  display: flex; align-items: center;
}
.skill-search i {
  position: absolute; left: 10px;
  width: 14px; height: 14px;
  color: var(--t3);
  pointer-events: none;
}
.skill-search input {
  padding: 7px 12px 7px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-1);
  color: var(--t1);
  font-size:14px;
  min-width: 220px;
  outline: none;
  transition: border-color .15s;
}
.skill-search input:focus { border-color: var(--brand-text); }
.skill-count-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-text);
  background: rgba(22,93,255,.12);
  border-radius: 999px;
  vertical-align: middle;
}
.skill-card {
  cursor: pointer;
  position: relative;
}
/* 「详情」按钮带图标 + 文字 */
.skill-card-foot .icon-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px;
  font-size:12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
  color: var(--t2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  transition: all .15s ease;
}
.skill-card-foot .icon-btn i { width: 13px; height: 13px; }
.skill-card-foot .icon-btn:hover { color: var(--brand-text); border-color: var(--brand-text); background: var(--bg-1); }
.skill-card-foot .icon-btn.danger:hover { color: #F53F3F; border-color: #F53F3F; }
.empty-state {
  padding: 40px 20px; text-align: center;
  color: var(--t3); font-size: 14px;
  background: var(--bg-1);
  border: 1px dashed var(--line);
  border-radius: 12px;
}

/* ═══════════ v3 设计刷新 · 技能管理 / 创意协作面板 ═══════════ */
/* 追加覆盖（CSS 后置优先），仅约束本页，不改既有组件 */
.admin-panel .section-head { align-items: flex-end; margin-bottom: 22px; }
.admin-panel .section-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; color: var(--t1); }
.admin-panel .section-head h2 i { width: 24px; height: 24px; color: var(--brand-text); }
.admin-panel .section-head .section-desc { margin-top: 4px; font-size:14px; color: var(--t3); }

/* 分类组头 */
.admin-panel .cat-group-head { align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; }
.admin-panel .cat-group-head .cat-icon { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, rgba(22,93,255,.14), rgba(103,232,249,.08)); }
.admin-panel .cat-group-head .cat-name { font-size:16px; font-weight: 700; }
.admin-panel .cat-group-head .cat-count { font-size: 12px; color: var(--t3); margin-left: auto; }

/* 技能卡：更清晰的层级 + 现代卡片 */
.admin-panel .skill-grid { gap: 16px; }
.admin-panel .skill-card {
  border-radius: 15px;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  box-shadow: 0 1px 2px rgba(0,0,0,.02);
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.admin-panel .skill-card:hover { border-color: var(--brand-soft); box-shadow: 0 10px 26px rgba(22,93,255,.10); transform: translateY(-3px); }
.admin-panel .skill-card-top { gap: 13px; margin-bottom: 12px; align-items: flex-start; }
.admin-panel .skill-icon { width: 42px; height: 42px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(22,93,255,.10); }
.admin-panel .skill-icon i { width: 20px; height: 20px; }
.admin-panel .skill-card-name { font-size:16px; font-weight: 700; letter-spacing: -0.01em; }
.admin-panel .skill-card-desc { font-size:14px; line-height: 1.55; color: var(--t3); margin-top: 3px; }
.admin-panel .skill-meta { margin: 10px 0 12px; padding: 8px 12px; border-radius: 9px; background: var(--bg-2); border: 1px solid transparent; }
.admin-panel .meta-chip { font-size:12px; padding: 2px 7px; border-radius: 999px; background: var(--bg-1); border: 1px solid var(--line); }

/* 操作按钮：主操作「编辑」高亮，其余为次级 */
.admin-panel .skill-card-foot { justify-content: flex-end; gap: 7px; margin-top: auto; }
.admin-panel .skill-card-foot .icon-btn { padding: 5px 10px; font-size: 12px; border-radius: 8px; }
.admin-panel .skill-card-foot .icon-btn[data-edit-skill] { color: var(--brand-text); border-color: rgba(22,93,255,.35); background: rgba(22,93,255,.08); font-weight: 700; }
.admin-panel .skill-card-foot .icon-btn.danger { color: #F53F3F; border-color: rgba(245,63,63,.25); }

/* ═══════════ v3 统一设计规范 · 全管理面板（统一 .section-head/.admin-section-head、字段、卡片、空态、容器） ═══════════ */
/* 面板容器统一 */
.admin-panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; box-shadow: 0 1px 2px rgba(0,0,0,.02); }

/* 统一 section 头：兼容 .section-head 与 .admin-section-head 两套命名 */
.admin-panel .admin-section-head,
.admin-panel .section-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.admin-panel .admin-section-head h2,
.admin-panel .section-head h2 {
  font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--t1); margin: 0;
}
.admin-panel .admin-section-head h2 i,
.admin-panel .section-head h2 i { width: 22px; height: 22px; color: var(--brand-text); }
.admin-panel .admin-section-head .sec-sub,
.admin-panel .section-head .section-desc,
.admin-panel .admin-section-head .section-desc { font-size:14px; color: var(--t3); }

/* 统一表单字段（.form-field 与 .auth-field） */
.admin-panel .form-field,
.admin-panel .auth-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.admin-panel .form-field > label,
.admin-panel .auth-field > label { font-size:14px; font-weight: 600; color: var(--t2); }
.admin-panel .form-field input, .admin-panel .form-field select, .admin-panel .form-field textarea,
.admin-panel .auth-field input, .admin-panel .auth-field select, .admin-panel .auth-field textarea,
.admin-panel .auth-input {
  width: 100%; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-1); color: var(--t1); font-size: 13.5px;
  transition: border-color .15s, box-shadow .15s;
}
.admin-panel .form-field input:focus, .admin-panel .form-field select:focus, .admin-panel .auth-input:focus,
.admin-panel .form-field input:focus, .admin-panel .form-field select:focus, .admin-panel .auth-input:focus {
  border-color: var(--brand-text); box-shadow: 0 0 0 3px rgba(22,93,255,.12); outline: none;
}
.admin-panel .form-field .hint, .admin-panel .auth-field .hint, .admin-panel .hint { font-size:12px; color: var(--t3); }

/* 统一卡片（admin-card / stat-card / users-stat-card / quick-card） */
.admin-panel .admin-card, .admin-panel .stat-card, .admin-panel .users-stat-card, .admin-panel .quick-card {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.02);
}

/* 统一空状态 */
.admin-panel .empty-state { background: var(--bg-1); border: 1px dashed var(--line); border-radius: 12px; padding: 42px 20px; text-align: center; color: var(--t3); font-size: 14px; }

/* 一致按钮 */
.admin-panel .btn { border-radius: 9px; }

/* 数据表统一 */
.admin-panel table, .admin-panel .rtable, .admin-panel .users-table { border-collapse: collapse; width: 100%; }
.admin-panel table th, .admin-panel .rtable th, .admin-panel .users-table th { font-size: 12px; font-weight: 700; color: var(--t3); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.admin-panel table td, .admin-panel .rtable td, .admin-panel .users-table td { padding: 11px 12px; font-size:14px; color: var(--t1); border-bottom: 1px solid var(--line); }