@import url("../assets/css/column-header.css?v=20260843");
:root{--pc-container-width:100%;--pc-container-padding:16px;--pc-reading-width:100%;--pc-grid-gap:20px;}@media (min-width:1200px){:root{--pc-container-width:1000px;--pc-reading-width:780px;}}html{background:#f4f6fb;}
/* ===== AI 提示词 · 前台样式 ===== */
body { background: #f4f6fb; margin: 0 auto; max-width: var(--pc-container-width); }

/* 主体 */
.prompt-main { padding: 28px 16px 40px; }

/* 搜索 + 筛选 */
.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;
  cursor: pointer;
}
.prompt-card:focus-visible { outline: 2px solid #2f6fed; outline-offset: 2px; }
.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: space-between; align-items: center; gap: 8px; }
.view-btn {
  background: #fff; color: #2f6fed; border: 1px solid #cdd8ee; border-radius: 8px;
  padding: 8px 14px; font-size: 13px; cursor: pointer; transition: background .15s ease;
}
.view-btn:hover { background: #eef3ff; }
.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 {
  width: 100%;
  max-width: var(--pc-container-width);
  margin: 36px auto 0; padding: 22px 0; background: #1f2d3d; color: #c4ccd8;
  text-align: center; font-size: 13px;
  flex-shrink: 0;
}
.prompt-footer a { color: #c4ccd8; }
.prompt-footer a:hover { color: #fff; }

/* ===== 详情弹窗（v5：单一窗口 · 标题+正文居中） ===== */
.prompt-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: prompt-fade-in .25s cubic-bezier(0.16, 1, 0.3, 1);
}
.prompt-modal {
  position: relative;
  background: #fff; border-radius: 12px;
  width: 100%; max-width: 720px;
  max-height: calc(100vh - 40px);
  display: flex; flex-direction: column;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .24), 0 1px 4px rgba(15, 23, 42, .06);
  border: 1px solid #eceef2;
  margin: auto;
  animation: prompt-modal-in .3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.prompt-modal-head {
  position: relative;
  padding: 20px 24px 10px;
  text-align: center;
  flex: 0 0 auto;
}
.prompt-modal-title {
  font-size: 16px; font-weight: 600;
  margin: 0 auto; color: #1f2d3d; line-height: 1.45;
  word-break: break-word;
}
.prompt-modal-tag {
  display: inline-block; margin-top: 8px;
  font-size: 12px; color: #2f6fed;
  background: #eaf1ff; border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.prompt-modal-close {
  position: absolute; top: 12px; right: 16px;
  z-index: 2;
  width: 32px; height: 32px; border: 0; padding: 0;
  border-radius: 50%;
  background: #f1f3f7; color: #55606e;
  font-size: 18px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.prompt-modal-close:hover { background: #e2e6ec; color: #1f2d3d; }
.prompt-modal-close:focus-visible { outline: 2px solid #2f6fed; outline-offset: 2px; }
.prompt-modal-body {
  padding: 8px 24px 16px;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  text-align: center;
}
.prompt-modal-desc {
  display: inline-block;
  color: #64748b; font-size: 12.5px; line-height: 1.6; margin: 0 0 10px;
  max-width: 580px; text-align: center;
}
.prompt-modal-content {
  margin: 0 auto; padding: 12px 14px;
  background: #fafbfd; border: 1px solid #eef1f5; border-radius: 8px;
  font-family: Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.65;
  color: #33455c; white-space: pre-wrap; word-break: break-word;
  max-height: 48vh; overflow-y: auto;
  width: 100%; max-width: 600px;
  text-align: left;
}
.prompt-modal-actions {
  padding: 12px 24px 18px;
  text-align: center;
  border-top: 1px solid #f0f2f6;
  flex: 0 0 auto;
}
.prompt-modal-copy {
  background: #2f6fed; color: #fff; border: 0; border-radius: 8px;
  padding: 8px 24px; font-size: 13px; cursor: pointer;
  transition: background .15s ease;
}
.prompt-modal-copy:hover { background: #2257c4; }
.prompt-modal-copy.copied { background: #1f9d55; }
.prompt-modal-copy.copied:hover { background: #18853f; }
.prompt-modal-copy:focus-visible { outline: 2px solid #2f6fed; outline-offset: 2px; }
.prompt-modal-overlay.prompt-modal-leave { opacity: 0; transition: opacity .2s ease; }
.prompt-modal-overlay.prompt-modal-leave .prompt-modal {
  transform: translateY(8px); transition: transform .2s ease;
}
@keyframes prompt-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes prompt-modal-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* 自定义滚动条（WebKit，细条） */
.prompt-modal-body::-webkit-scrollbar,
.prompt-modal-content::-webkit-scrollbar { width: 6px; }
.prompt-modal-body::-webkit-scrollbar-track,
.prompt-modal-content::-webkit-scrollbar-track { background: transparent; }
.prompt-modal-body::-webkit-scrollbar-thumb,
.prompt-modal-content::-webkit-scrollbar-thumb { background: #dce1e8; border-radius: 3px; }
.prompt-modal-body::-webkit-scrollbar-thumb:hover,
.prompt-modal-content::-webkit-scrollbar-thumb:hover { background: #b9c2ce; }
@media (max-width: 640px) {
  .prompt-modal-overlay { padding: 10px; }
  .prompt-modal { max-height: calc(100vh - 20px); border-radius: 10px; }
  .prompt-modal-head { padding: 16px 16px 8px; }
  .prompt-modal-title { font-size: 14px; }
  .prompt-modal-tag { font-size: 11px; padding: 1px 8px; margin-top: 6px; }
  .prompt-modal-close { top: 10px; right: 12px; }
  .prompt-modal-body { padding: 6px 16px 12px; }
  .prompt-modal-desc { font-size: 12px; max-width: 100%; margin-bottom: 8px; }
  .prompt-modal-content { padding: 10px 12px; font-size: 12px; max-height: 50vh; max-width: 100%; }
  .prompt-modal-actions { padding: 10px 16px 14px; }
}
