/* 新灵境 · 点图AI 1:1 视觉还原 (原生 + Tailwind 内联基线) */
.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  color: #a3a3a3;
  transition: all .15s ease;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-link.active { color: #fff; background: linear-gradient(135deg, #7c3aed, #6366f1); box-shadow: 0 4px 12px rgba(124,58,237,.35); }

.card { background: #18181b; border: 1px solid #27272a; border-radius: 16px; }
.card-hover:hover { border-color: #4f46e5; transform: translateY(-2px); transition: all .15s ease; }
.section-title { font-size: 18px; font-weight: 700; }
.tab { padding: 6px 12px; border-radius: 8px; font-size: 13px; color: #a3a3a3; cursor: pointer; }
.tab.active { background: #7c3aed; color: #fff; }

.chip { padding: 4px 10px; border-radius: 999px; font-size: 12px; background: #27272a; color: #d4d4d8; }
.chip.active { background: #7c3aed; color: #fff; }

.ratio { padding: 6px 10px; border-radius: 8px; font-size: 12px; border: 1px solid #3f3f46; cursor: pointer; }
.ratio.active { background: #7c3aed; border-color: #7c3aed; color: #fff; }

.btn-primary { background: linear-gradient(135deg,#7c3aed,#6366f1); padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; color: #fff; }
.btn-primary:hover { opacity: .9; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-ghost { padding: 10px 18px; border-radius: 10px; font-size: 14px; border: 1px solid #3f3f46; color: #e4e4e7; }
.btn-ghost:hover { background: rgba(255,255,255,.05); }

.input { background: #18181b; border: 1px solid #3f3f46; border-radius: 10px; padding: 8px 12px; font-size: 14px; color: #fff; outline: none; }
.input:focus { border-color: #7c3aed; }

.grid-insp { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.insp-card { background: #18181b; border: 1px solid #27272a; border-radius: 14px; overflow: hidden; cursor: pointer; transition: all .15s; }
.insp-card:hover { border-color: #4f46e5; transform: translateY(-2px); }
.insp-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

/* 侧栏抽屉 (画布/应用) */
.drawer { position: fixed; top: 56px; bottom: 0; right: 0; width: 380px; background: #0a0a0a; border-left: 1px solid #27272a; z-index: 40; overflow-y: auto; }

/* 工作流步骤 */
.wf-step { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; }
.wf-step.active { background: rgba(124,58,237,.15); color: #c4b5fd; }
.wf-step.done { color: #22c55e; }

/* 模态框 */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); z-index: 100; display: none; align-items: center; justify-content: center; }
.modal.show { display: flex; }
