/* 实践平台 — AI 绘画 / 作曲 / 创客 内置工具 */
.practice-editor-stage--ai .practice-frame-wrap,
.practice-editor-stage--ai .practice-editor-slot--blockly,
.practice-editor-stage--ai .practice-client-panel {
  display: none !important;
}

.practice-editor-slot--ai:not([hidden]) {
  display: block;
  width: 100%;
}

.practice-builtin-ai {
  width: 100%;
  min-height: clamp(560px, 72vh, 900px);
  border-radius: var(--radius-lg);
  border: 2px solid #c4b5fd;
  background: linear-gradient(165deg, #faf5ff 0%, #f0f9ff 45%, #fff 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.practice-builtin-ai.is-active {
  display: flex;
}

.ai-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(90deg, #7c3aed, #2563eb);
}

.ai-toolbar .ai-status {
  color: #ede9fe;
  font-size: 0.86rem;
  margin-left: auto;
}

.ai-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  min-height: 0;
  gap: 0;
}

.ai-side {
  padding: 1rem;
  background: #fff;
  border-right: 1px solid #e9d5ff;
  overflow-y: auto;
}

.ai-side h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #5b21b6;
}

.ai-side label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin: 0.65rem 0 0.35rem;
}

.ai-side textarea,
.ai-side select,
.ai-side input[type="range"] {
  width: 100%;
  font-family: inherit;
}

.ai-side textarea {
  min-height: 72px;
  padding: 0.5rem 0.6rem;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  resize: vertical;
}

.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ai-chip {
  border: 1px solid #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.ai-chip:hover,
.ai-chip.is-on {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}

.ai-main {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #f8fafc;
}

.ai-canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(52vh, 480px);
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: relative;
}

.ai-canvas-wrap canvas {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.ai-draw-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ai-draw-img[hidden] {
  display: none !important;
}

.ai-draw-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  color: #5b21b6;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
}

.ai-draw-loading[hidden] {
  display: none !important;
}

.ai-draw-img {
  position: relative;
  z-index: 1;
}

.ai-canvas-wrap.is-loading .ai-draw-loading {
  display: flex;
}

.ai-tip {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fef3c7;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #92400e;
  line-height: 1.5;
}

.ai-learn {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.55;
}

.ai-learn strong {
  color: #5b21b6;
}

/* 作曲 */
#practice-builtin-aimusic .ai-body {
  grid-template-columns: minmax(272px, 300px) 1fr;
}

#practice-builtin-aimusic .ai-side {
  max-height: min(72vh, 680px);
  overflow-y: auto;
  padding: 0.65rem 0.85rem;
}

.ai-music-side {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ai-music-block {
  padding: 0.55rem 0;
  border-bottom: 1px solid #ede9fe;
}

.ai-music-block:last-child {
  border-bottom: none;
}

.ai-music-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #5b21b6;
}

.ai-music-block-desc {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  color: #94a3b8;
}

.ai-chips--wrap {
  gap: 0.3rem;
}

.ai-music-bpm-hints {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.ai-music-vol-val {
  font-size: 0.78rem;
  color: #64748b;
  margin-left: 0.35rem;
}

.ai-music-learn {
  background: #faf5ff;
  border-radius: 8px;
  padding: 0.55rem !important;
  margin-top: 0.25rem;
}

.ai-music-steps-list {
  margin: 0.35rem 0 0.5rem 1.1rem;
  padding: 0;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.5;
}

.ai-music-course-link {
  margin: 0;
  font-size: 0.75rem;
  color: #0f766e;
}

.ai-music-main {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
}

.ai-music-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: linear-gradient(90deg, #ede9fe, #e0f2fe);
  border-radius: 8px;
  font-size: 0.8rem;
}

.ai-music-flow-step {
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: #64748b;
  background: rgba(255, 255, 255, 0.6);
}

.ai-music-flow-step.is-done {
  background: #7c3aed;
  color: #fff;
  font-weight: 600;
}

.ai-music-flow-arrow {
  color: #94a3b8;
  font-size: 0.75rem;
}

.ai-music-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.ai-music-stat {
  background: #fff;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  text-align: center;
}

.ai-music-stat-k {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
}

.ai-music-stat-v {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #5b21b6;
}

.ai-music-viz-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.5rem 0.65rem 0.65rem;
}

.ai-music-viz-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: #64748b;
}

.ai-music-viz {
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 140px;
  display: block;
  background: #0f172a;
  border-radius: 8px;
}

.ai-music-report {
  background: linear-gradient(135deg, #faf5ff 0%, #fffbeb 100%);
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
}

.ai-music-report h4 {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  color: #5b21b6;
}

.ai-music-report p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #334155;
}

.ai-music-uses {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.ai-music-uses h4 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: #166534;
}

.ai-music-uses ul {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.55;
}

.ai-play-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}

.ai-music-library {
  background: #fff;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
}

.ai-music-library__head h4 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  color: #5b21b6;
}

.ai-music-library__head p {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: #64748b;
}

.ai-music-library__toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ai-music-library__search {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid #c4b5fd;
  border-radius: 8px;
  font-size: 0.88rem;
  background: #faf5ff;
  color: #1e293b;
}

.ai-music-library__search:focus {
  outline: 2px solid rgba(124, 58, 237, 0.35);
  border-color: #7c3aed;
}

.ai-music-library__filters {
  margin: 0;
}

.ai-music-library__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.45rem;
  max-height: 168px;
  overflow-y: auto;
  margin-top: 0.55rem;
  padding-right: 0.15rem;
}

.ai-music-library__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid #e9d5ff;
  border-radius: 10px;
  background: #fafafa;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.ai-music-library__item:hover {
  border-color: #a78bfa;
  background: #f5f3ff;
}

.ai-music-library__item.is-active {
  border-color: #7c3aed;
  background: linear-gradient(135deg, #ede9fe, #e0f2fe);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.2);
}

.ai-music-library__item-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #312e81;
}

.ai-music-library__item-meta {
  font-size: 0.72rem;
  color: #64748b;
}

.ai-music-library__item-tags {
  font-size: 0.68rem;
  color: #7c3aed;
  line-height: 1.35;
}

.ai-music-library__empty {
  grid-column: 1 / -1;
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

.ai-music-lib-sub {
  font-size: 0.85em;
  color: #64748b;
  font-weight: normal;
}

@media (max-width: 900px) {
  .ai-music-library__list {
    grid-template-columns: 1fr 1fr;
    max-height: 200px;
  }
}

@media (max-width: 900px) {
  #practice-builtin-aimusic .ai-body {
    grid-template-columns: 1fr;
  }

  .ai-music-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* AI 创作 */
#practice-builtin-aicreate .ai-body {
  grid-template-columns: minmax(272px, 300px) 1fr;
  align-items: stretch;
}

#practice-builtin-aicreate .ai-main {
  min-height: min(68vh, 640px);
}

#practice-builtin-aicreate .ai-side {
  max-height: min(72vh, 680px);
  overflow-y: auto;
}

.ai-create-side {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ai-create-step-banner {
  background: linear-gradient(135deg, #ede9fe 0%, #faf5ff 100%);
  border: 1px solid #c4b5fd;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.25rem;
}

.ai-create-step-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: #7c3aed;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.35rem;
}

.ai-create-step-banner strong {
  display: block;
  font-size: 0.92rem;
  color: #5b21b6;
  margin-bottom: 0.2rem;
}

.ai-create-step-desc {
  margin: 0;
  font-size: 0.78rem;
  color: #6d28d9;
  line-height: 1.45;
}

.ai-create-brief {
  background: #fff;
  border: 2px solid #c4b5fd;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 4px 16px rgba(91, 33, 182, 0.06);
}

.ai-create-brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.ai-create-brief-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #5b21b6;
}

.ai-create-brief-sync {
  font-size: 0.72rem;
  color: #7c3aed;
  font-weight: 600;
  white-space: nowrap;
}

.ai-create-brief-theme {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
}

.ai-create-brief-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.ai-create-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #5b21b6;
  background: #ede9fe;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.ai-create-generate-main {
  width: 100%;
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
}

.ai-create-block {
  padding: 0.55rem 0;
  border-bottom: 1px solid #ede9fe;
}

.ai-create-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: #5b21b6;
}

.ai-create-block textarea {
  width: 100%;
  min-height: 72px;
  padding: 0.5rem;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  font-family: inherit;
  resize: vertical;
}

.ai-create-main {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 0;
  flex: 1;
}

.ai-create-window {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-height: min(68vh, 640px);
  background: linear-gradient(180deg, #faf5ff 0%, #f8fafc 100%);
  border: 1px solid #ddd6fe;
  border-radius: 14px;
  padding: 0.85rem 1rem 1rem;
  box-shadow: 0 8px 28px rgba(91, 33, 182, 0.08);
}

.ai-create-window-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.ai-create-window-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6d28d9;
  background: #ede9fe;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.ai-create-result-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: min(420px, 58vh);
  gap: 0.5rem;
}

.ai-create-result-heading {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #5b21b6;
}

.ai-create-output-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.15rem;
  flex: 1;
  min-height: 360px;
  max-height: none;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ai-create-field-label {
  display: block;
  margin: 0.65rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5b21b6;
}

.ai-create-field-label:first-child {
  margin-top: 0;
}

.ai-create-title-input {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #c4b5fd;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #4c1d95;
  font-family: inherit;
  background: #faf5ff;
}

.ai-create-title-input:focus,
.ai-create-outline-edit:focus,
.ai-create-editor:focus {
  outline: 2px solid rgba(124, 58, 237, 0.35);
  border-color: #7c3aed;
}

.ai-create-outline-edit {
  width: 100%;
  min-height: 88px;
  padding: 0.55rem 0.65rem;
  border: 1px solid #ddd6fe;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
  resize: vertical;
  color: #334155;
}

.ai-create-editor {
  width: 100%;
  min-height: 280px;
  padding: 0.75rem 0.85rem;
  border: 2px solid #7c3aed;
  border-radius: 10px;
  font-family: "Microsoft YaHei", KaiTi, serif;
  font-size: 0.95rem;
  line-height: 1.85;
  resize: vertical;
  color: #1e293b;
  background: #fff;
  box-shadow: inset 0 2px 8px rgba(91, 33, 182, 0.08);
  cursor: text;
}

.ai-create-editor.has-content {
  background: #fffef8;
}

.ai-create-editor:focus {
  border-color: #5b21b6;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
  outline: none;
}

.ai-create-empty {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
  min-height: 260px;
}

.ai-create-output h2.ai-create-title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #4c1d95;
}

.ai-create-output h3 {
  margin: 0.75rem 0 0.4rem;
  font-size: 0.95rem;
  color: #5b21b6;
}

.ai-create-output ol {
  margin: 0 0 0.75rem 1.2rem;
  padding: 0;
  line-height: 1.6;
  color: #334155;
}

.ai-create-body {
  line-height: 1.85;
  color: #1e293b;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.ai-create-meta {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.ai-create-placeholder {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.ai-create-vocab {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.ai-create-vocab h4 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: #b45309;
}

.ai-create-vocab ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: #78350f;
  line-height: 1.55;
}

@media (max-width: 900px) {
  #practice-builtin-aicreate .ai-body {
    grid-template-columns: 1fr;
  }
}

/* 创客 */
.ai-maker-theme-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
}

.ai-maker-categories {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.ai-maker-cat {
  padding: 0.35rem 0.65rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  color: #334155;
}

.ai-maker-cat.is-on {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
}

.ai-maker-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}

.ai-maker-tab {
  flex: 0 1 auto;
  min-width: 7.5rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid #c4b5fd;
  background: #fff;
  border-radius: 8px;
  font-size: 0.75rem;
  cursor: pointer;
  color: #5b21b6;
  text-align: left;
}

.ai-maker-tab.is-on {
  background: #7c3aed;
  color: #fff;
  border-color: #7c3aed;
}

.ai-maker-stage {
  flex: 1;
  min-height: min(48vh, 420px);
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 40%, #fef3c7 100%);
  border-radius: 14px;
  border: 2px solid #bae6fd;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 12px rgba(14, 116, 144, 0.08);
}

.ai-maker-canvas {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #fff7ed;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.ai-maker-result {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #ecfdf5;
  border: 1px solid #86efac;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #166534;
  max-width: 420px;
  width: 100%;
}

.ai-maker-result.is-warn {
  background: #fff7ed;
  border-color: #fdba74;
  color: #9a3412;
}

.ai-maker-photo {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  background: #f8fafc;
  border: 1px dashed #c4b5fd;
  border-radius: 12px;
}

.ai-maker-photo-preview {
  width: 100%;
  min-height: 120px;
  max-height: 180px;
  margin: 0.5rem 0;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ai-maker-photo-placeholder {
  font-size: 0.85rem;
  color: #94a3b8;
  text-align: center;
  padding: 0.75rem;
}

.ai-maker-photo-img {
  width: 100%;
  height: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
}

.ai-maker-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.ai-maker-photo-btn {
  cursor: pointer;
  margin: 0;
}

.ai-maker-photo-hint {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.ai-maker-essay {
  margin: 0.5rem 0 1rem;
  padding: 0.75rem;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 12px;
}

.ai-maker-essay textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.55;
  resize: vertical;
  min-height: 100px;
}

.ai-maker-essay textarea:focus {
  outline: 2px solid #a78bfa;
  border-color: #8b5cf6;
}

.ai-meter {
  width: 100%;
  max-width: 320px;
  height: 12px;
  background: #e2e8f0;
  border-radius: 6px;
  margin: 0.75rem 0;
  overflow: hidden;
}

.ai-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  width: 50%;
  transition: width 0.3s;
}

.tool-cards--ai .tool-card {
  border-color: #ddd6fe;
}

.tool-cards--ai .tool-card.active {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
}

@media (max-width: 900px) {
  .ai-body {
    grid-template-columns: 1fr;
  }

  .ai-side {
    border-right: none;
    border-bottom: 1px solid #e9d5ff;
  }
}

/* 访客模式 — 登录门禁 */
.practice-login-gate {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(320px, 48vh, 520px);
  padding: 2rem 1.25rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 100%);
  border: 1px dashed #c4b5fd;
  border-radius: 16px;
}

.practice-login-gate__inner {
  max-width: 420px;
  text-align: center;
}

.practice-login-gate__icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.practice-login-gate h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  color: #312e81;
}

.practice-login-gate p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #475569;
}

.practice-community-login-gate {
  padding: 1.25rem 1rem;
  background: linear-gradient(135deg, #f5f3ff 0%, #ecfeff 100%);
  border: 1px dashed #c4b5fd;
  border-radius: 12px;
  text-align: center;
}

.practice-community-login-gate p {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: #475569;
}
