/* ===== AI 提示词 · 前台样式 ===== */
body { background: #f4f6fb; }

/* 顶部栏 */
.prompt-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
}
.prompt-head-inner {
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
}
.prompt-brand { font-size: 18px; font-weight: 700; color: #fff; }
.prompt-nav { display: flex; gap: 18px; }
.prompt-nav a { color: #cdd8f7; font-size: 14px; }
.prompt-nav a:hover { color: #fff; }

/* 主体 */
.prompt-main { padding: 28px 16px 40px; }
.prompt-page-title { font-size: 24px; margin: 6px 0 4px; }
.prompt-sub { color: #6b7686; font-size: 14px; margin: 0 0 20px; }
.prompt-empty { color: #9aa3b2; font-size: 14px; padding: 18px 2px; }

/* 搜索 + 筛选 */
.prompt-toolbar { margin-bottom: 18px; }
.prompt-search {
  display: flex; gap: 8px; max-width: 560px; margin-bottom: 14px;
}
.prompt-search input {
  flex: 1; min-width: 0;
  border: 1px solid #dfe4ec; border-radius: 10px;
  padding: 11px 14px; font-size: 14px; font-family: inherit;
}
.prompt-search-btn {
  background: #2f6fed; color: #fff; border: 0; border-radius: 10px;
  padding: 0 22px; font-size: 14px; cursor: pointer; flex: 0 0 auto;
}
.prompt-search-btn:hover { background: #2257c4; }

.prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-chip {
  font-size: 13px; color: #475569;
  padding: 6px 15px; background: #fff;
  border: 1px solid #e1e6ef; border-radius: 999px; cursor: pointer;
  transition: all .15s ease;
}
.prompt-chip:hover { border-color: #2f6fed; color: #2f6fed; }
.prompt-chip.active { background: #2f6fed; color: #fff; border-color: #2f6fed; }

/* 卡片网格 */
.prompt-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .prompt-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .prompt-list { grid-template-columns: 1fr; } }

.prompt-card {
  background: #fff; border: 1px solid #eceef2; border-radius: 14px;
  padding: 16px; display: flex; flex-direction: column;
  box-shadow: 0 4px 16px rgba(31, 45, 61, .05);
  transition: transform .15s ease, box-shadow .15s ease;
}
.prompt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(47, 111, 237, .14); }

.prompt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.prompt-title { font-size: 16px; margin: 0; color: #1f2d3d; line-height: 1.4; }
.prompt-tag {
  flex: 0 0 auto; font-size: 12px; color: #2f6fed;
  background: #eaf1ff; border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.prompt-desc { font-size: 13px; color: #8a93a3; margin: 8px 0 0; line-height: 1.5; }
.prompt-content {
  margin: 10px 0 0; padding: 12px;
  background: #f7f9fc; border: 1px solid #eef1f6; border-radius: 10px;
  font-family: Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.65;
  color: #34455c; white-space: pre-wrap; word-break: break-word;
  max-height: 200px; overflow: auto; flex: 1;
}
.prompt-foot { margin-top: 12px; display: flex; justify-content: flex-end; }
.copy-btn {
  background: #2f6fed; color: #fff; border: 0; border-radius: 8px;
  padding: 8px 18px; font-size: 13px; cursor: pointer; transition: background .15s ease;
}
.copy-btn:hover { background: #2257c4; }
.copy-btn.copied { background: #1f9d55; }
.copy-btn.copied:hover { background: #18853f; }

/* 加载更多 */
.prompt-more-wrap { text-align: center; margin: 24px 0 4px; }
.prompt-more {
  background: #fff; color: #2f6fed; border: 1px solid #cdd8ee; border-radius: 10px;
  padding: 10px 32px; font-size: 14px; cursor: pointer;
}
.prompt-more:hover { background: #eef3ff; }
.prompt-more:disabled { opacity: .6; cursor: default; }

/* 底部 */
.prompt-footer {
  margin-top: 36px; padding: 22px 0; background: #1f2d3d; color: #c4ccd8;
  text-align: center; font-size: 13px;
}
.prompt-footer a { color: #c4ccd8; }
.prompt-footer a:hover { color: #fff; }
