/* 技能广场页面样式。 */
.skill-square-page { min-height: 100vh; background: radial-gradient(circle at 18% 0%, rgba(105,114,235,.16), transparent 34%), var(--canvas); }
.skill-square-container { max-width: 1280px; margin: 0 auto; padding: 18px 24px 48px; }
.skills-hero {
  display: flex; justify-content: space-between; gap: 18px; align-items: center;
  padding: 16px 20px; border: 1px solid var(--hairline); border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  box-shadow: var(--shadow-pop); margin-bottom: 12px;
}
.skills-hero h1 { margin: 4px 0 6px; font-size: clamp(26px, 3vw, 32px); letter-spacing: -.8px; }
.skills-hero p { margin: 0; color: var(--ink-subtle); max-width: 720px; line-height: 1.5; font-size: 13px; }
.skills-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.skills-hero-actions .btn { padding: 8px 13px; }
.skills-toolbar {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  margin: 10px 0 8px;
}
.skills-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.skills-tab {
  padding: 7px 12px; border-radius: 999px; color: var(--ink-subtle);
  border: 1px solid transparent; background: rgba(255,255,255,.04); font-size: 13px;
}
.skills-tab:hover, .skills-tab.active { color: #fff; border-color: rgba(124,132,255,.42); background: rgba(124,132,255,.18); }
.skills-search {
  min-width: min(320px, 100%); padding: 8px 12px; border-radius: 11px;
  background: rgba(255,255,255,.055); border: 1px solid var(--hairline); color: var(--ink);
}
.skills-search:focus { border-color: rgba(124,132,255,.65); outline: none; }
.skills-stats { color: var(--ink-subtle); font-size: 12px; margin-bottom: 10px; }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 12px; }
.skills-empty {
  grid-column: 1 / -1; padding: 28px 20px; text-align: center; color: var(--ink-subtle);
  border: 1px dashed var(--hairline-strong); border-radius: 15px; background: rgba(255,255,255,.025);
}
.prompt-card {
  display: flex; flex-direction: column; min-width: 0; padding: 14px;
  border: 1px solid var(--hairline); border-radius: 15px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035));
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}
.prompt-card.is-favorite { border-color: rgba(245,196,92,.45); }
.prompt-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.prompt-type {
  font-size: 11px; color: #c9d0ff; padding: 4px 8px; border-radius: 999px;
  background: rgba(124,132,255,.16); border: 1px solid rgba(124,132,255,.22);
}
.favorite-btn { width: 28px; height: 28px; border-radius: 50%; font-size: 16px; color: #f5c45c; background: rgba(255,255,255,.05); }
.favorite-btn:hover { background: rgba(245,196,92,.14); }
.prompt-card h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -.2px; }
.prompt-desc {
  margin: 0 0 8px; color: var(--ink-subtle); font-size: 12.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.prompt-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 7px; }
.prompt-tag { font-size: 11px; color: var(--ink-muted); padding: 3px 7px; border-radius: 999px; background: rgba(255,255,255,.06); }
.prompt-meta { color: var(--ink-subtle); font-size: 11px; margin-bottom: 9px; }
.prompt-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.prompt-actions .btn { padding: 6px 10px; font-size: 12px; }
.prompt-editor-modal { width: min(760px, 94vw); }
.prompt-editor-body { display: flex; flex-direction: column; gap: 14px; }
.prompt-editor-body label { display: flex; flex-direction: column; gap: 7px; color: var(--ink-muted); font-size: 13px; }
.prompt-editor-body input, .prompt-editor-body textarea {
  width: 100%; padding: 11px 12px; border-radius: 12px; color: var(--ink);
  background: rgba(255,255,255,.055); border: 1px solid var(--hairline);
}
.prompt-editor-body textarea { min-height: 250px; resize: vertical; line-height: 1.7; font-family: inherit; }
.prompt-editor-body input:focus, .prompt-editor-body textarea:focus { border-color: rgba(124,132,255,.65); outline: none; }
.prompt-skill-option {
  width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left;
  padding: 10px 11px; border-radius: 12px; color: var(--ink);
}
.prompt-skill-option:hover { background: rgba(124,132,255,.14); }
.prompt-skill-type {
  flex: 0 0 auto; font-size: 11px; color: #c9d0ff; padding: 4px 7px; border-radius: 999px;
  background: rgba(124,132,255,.16);
}
.selected-prompt-slot:empty { display: none; }
.selected-prompt-chip {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-bottom: 8px;
  border: 1px solid rgba(245,196,92,.35); border-radius: 13px;
  background: rgba(245,196,92,.09);
}
.selected-prompt-lock { font-size: 16px; }
.selected-prompt-chip span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.selected-prompt-chip b { font-size: 13px; }
.selected-prompt-chip small {
  color: var(--ink-subtle); font-size: 11px; line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.selected-prompt-chip button {
  width: 26px; height: 26px; border-radius: 50%; font-size: 18px;
  color: var(--ink-subtle); background: rgba(255,255,255,.06);
}
.selected-prompt-chip button:hover { color: #fff; background: rgba(255,255,255,.14); }
.review-note {
  margin: 0 0 9px; padding: 8px 10px; border-radius: 10px;
  color: #ffc9c9; font-size: 12px; line-height: 1.5;
  background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.18);
}
.review-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.review-summary div {
  padding: 16px; border-radius: 15px; border: 1px solid var(--hairline);
  background: rgba(255,255,255,.045);
}
.review-summary b { display: block; font-size: 26px; margin-bottom: 4px; }
.review-summary span { color: var(--ink-subtle); font-size: 12px; }
.prompt-review-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.prompt-review-card {
  padding: 16px; border: 1px solid var(--hairline); border-radius: 16px;
  background: rgba(255,255,255,.045);
}
.prompt-review-card.status-pending { border-color: rgba(245,196,92,.4); }
.prompt-review-card.status-approved { border-color: rgba(82,196,141,.35); }
.prompt-review-card.status-rejected { border-color: rgba(255,107,107,.35); }
.prompt-review-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.prompt-review-head h3 { margin: 8px 0 0; font-size: 17px; }
.prompt-review-head small { color: var(--ink-subtle); white-space: nowrap; }
.review-status-badge {
  font-size: 11px; padding: 4px 8px; border-radius: 999px;
  color: #c9d0ff; background: rgba(124,132,255,.16);
}
.prompt-review-card p { margin: 0 0 10px; color: var(--ink-subtle); font-size: 13px; line-height: 1.6; }
.review-content {
  margin: 0 0 10px; padding: 11px; max-height: 210px; overflow: auto;
  white-space: pre-wrap; word-break: break-word; border-radius: 12px;
  color: #d7dce8; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.06);
  font-family: inherit; font-size: 12px; line-height: 1.65;
}
.prompt-review-actions { display: flex; gap: 8px; }
.reject-modal { width: min(560px, 94vw); }
.reject-modal textarea { min-height: 180px; }
@media (max-width: 820px) {
  .skills-hero, .skills-toolbar { flex-direction: column; align-items: stretch; }
  .skills-hero-actions { justify-content: flex-start; }
  .review-summary { grid-template-columns: repeat(2, 1fr); }
  .prompt-review-list { grid-template-columns: 1fr; }
  .skill-square-container { padding: 14px 14px 38px; }
}

/* 提示词后台管理。 */
.prompt-manage-summary { grid-template-columns: repeat(5, 1fr); }
.prompt-filter-panel { margin-bottom: 14px; }
.prompt-filter-form { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 10px; }
.prompt-filter-form input, .prompt-filter-form select {
  width: 100%; padding: 9px 11px; border-radius: 11px; color: var(--ink);
  background: rgba(255,255,255,.055); border: 1px solid var(--hairline);
}
.prompt-manage-table td small { display: block; color: var(--ink-subtle); margin-top: 4px; line-height: 1.45; }
.prompt-manage-table .row-disabled { opacity: .58; }
.manage-status {
  display: inline-block; margin: 0 5px 4px 0; padding: 4px 8px; border-radius: 999px;
  font-size: 11px; color: #c9d0ff; background: rgba(124,132,255,.16);
}
.manage-status.status-pending { color: #f5d28a; background: rgba(245,196,92,.14); }
.manage-status.status-approved { color: #8be0b7; background: rgba(82,196,141,.14); }
.manage-status.status-rejected, .manage-status.status-disabled { color: #ff9f9f; background: rgba(255,107,107,.14); }
.prompt-row-actions { min-width: 260px; }
.prompt-row-actions .btn { margin: 0 5px 5px 0; padding: 6px 9px; font-size: 12px; }
.prompt-detail-modal { width: min(980px, 94vw); }
.prompt-editor-modal { width: min(860px, 94vw); }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.detail-grid span {
  padding: 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04); color: var(--ink-subtle); font-size: 12px;
}
.detail-grid b { display: block; margin-top: 4px; color: var(--ink); font-size: 14px; }
.detail-desc { color: var(--ink-subtle); line-height: 1.6; }
.prompt-detail-modal pre {
  padding: 14px; max-height: 320px; overflow: auto; border-radius: 13px;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.07);
  white-space: pre-wrap; word-break: break-word; line-height: 1.65;
}
.prompt-detail-modal h4 { margin: 16px 0 8px; }
.history-list { display: grid; gap: 8px; }
.history-list > div {
  padding: 10px; border-radius: 12px; background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
}
.history-list b { margin-right: 8px; }
.history-list span { color: var(--ink-subtle); font-size: 12px; }
.history-list p { margin: 6px 0 0; color: var(--ink-subtle); line-height: 1.5; }
.prompt-editor-body { display: grid; gap: 12px; }
.prompt-editor-body label { display: grid; gap: 6px; color: var(--ink-subtle); font-size: 12px; }
.prompt-editor-body input, .prompt-editor-body select, .prompt-editor-body textarea {
  width: 100%; padding: 10px 12px; border-radius: 11px; color: var(--ink);
  background: rgba(255,255,255,.055); border: 1px solid var(--hairline);
}
.prompt-editor-body textarea { min-height: 260px; resize: vertical; line-height: 1.6; }
@media (max-width: 1100px) {
  .prompt-filter-form { grid-template-columns: 1fr 1fr; }
  .prompt-manage-summary { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; }
}
