/* ==========================================================================
   panshen-plus 样式（纯新增，命名空间 psp-，不影响原站任何样式）
   ========================================================================== */

/* ---------- 1) 公告轮番条 ---------- */
.psp-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff5f7 0%, #f3f0ff 100%);
  border: 1px solid #ffe0e6;
  box-shadow: 0 4px 14px rgba(255, 120, 150, .08);
  overflow: hidden;
}
.psp-notice-tag {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #e0517e;
  padding: 4px 10px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #ffd3dd;
}
.psp-notice-viewport {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 22px;
}
.psp-notice-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #5a4a52;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.1s ease, transform 1.1s ease;
  pointer-events: none;
}
.psp-notice-item.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.psp-notice-live {
  flex: 0 0 auto;
  font-size: 11px;
  color: #b78aa0;
}
.psp-notice-live i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6b81;
  box-shadow: 0 0 0 3px rgba(255, 107, 129, .15);
  margin-right: 4px;
  vertical-align: 1px;
  animation: psp-pulse 1.6s ease infinite;
}
@keyframes psp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------- 通用区块头 ---------- */
.psp-latest, .psp-tools {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #f0e8ee;
  box-shadow: 0 6px 18px rgba(120, 90, 110, .06);
}
.psp-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}
.psp-head-ic { font-size: 16px; }
.psp-head b { font-size: 15px; color: #3d3340; }
.psp-head-sub { font-size: 11px; color: #b3a4ad; margin-left: 4px; }

/* ---------- 2) 纯标题列表 ---------- */
.psp-list { display: block; }
.psp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 40px;
  padding: 0 6px;
  border-bottom: 1px dashed #f2e9ef;
  border-radius: 8px;
  transition: background .18s, padding .18s;
}
.psp-row:last-child { border-bottom: 0; }
.psp-row:hover { background: #fdf4f7; padding-left: 10px; }
.psp-badge {
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  color: #e0517e;
  background: #ffeef3;
  border-radius: 4px;
  padding: 3px 6px;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.psp-title {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #453943;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.psp-row:hover .psp-title { color: #e0517e; }
.psp-meta { flex: 0 0 auto; font-size: 11px; color: #b9adb5; }
.psp-hot { flex: 0 0 auto; font-size: 11px; color: #d98f62; }
.psp-arrow { flex: 0 0 auto; color: #d8c7d1; font-size: 16px; }

/* ---------- 3) 免费开源工具 ---------- */
.psp-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.psp-tool {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #f2e6ec;
  background: linear-gradient(180deg, #fffafc 0%, #fff 100%);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.psp-tool:hover {
  transform: translateY(-2px);
  border-color: #f7c4d6;
  box-shadow: 0 8px 18px rgba(224, 81, 126, .10);
}
.psp-tool-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  color: #7c5cff;
  background: #f1edff;
  padding: 2px 8px;
  border-radius: 20px;
}
.psp-tool-name { font-size: 13px; font-weight: 700; color: #3d3340; }
.psp-tool-desc {
  font-size: 11px;
  color: #9b8e97;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.psp-tool:hover .psp-tool-name { color: #e0517e; }

/* ---------- 移动端 ---------- */
@media screen and (max-width: 768px) {
  .psp-notice { gap: 8px; padding: 8px 12px; }
  .psp-notice-tag { font-size: 10px; padding: 3px 8px; }
  .psp-notice-viewport { height: 18px; }
  .psp-notice-item { font-size: 12px; }
  .psp-notice-live { display: none; }
  .psp-latest, .psp-tools { padding: 12px; margin: 12px 0; }
  .psp-row { height: 36px; gap: 7px; }
  .psp-title { font-size: 12px; }
  .psp-meta { display: none; }
  .psp-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .psp-tool { padding: 10px; }
}
@media screen and (max-width: 420px) {
  .psp-tool-grid { grid-template-columns: 1fr; }
}
