/* ============================================================
   作品展板：五列纯图片，组名小字 + 图 + 极简 AI评分 文字链
   ============================================================ */

.board-hint { font-size: 11px; letter-spacing: .5px; color: var(--muted-2); margin-left: 10px; }

/* 覆盖 main.css：内容靠上排布（用户要求整体上移），网格贴合内容高度 */
.board { justify-content: flex-start; max-width: 1840px; }
.board-grid { flex: 0 1 auto; margin-top: clamp(6px, 1.4vh, 16px); }

/* 五列等宽，无卡片框 */
.board-grid {
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-columns: none;
  gap: clamp(12px, 1.6vw, 24px);
  padding: 0 clamp(4px, 1vw, 16px);
}
.board-grid.has-tip { padding-bottom: 52px; }

.aida-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}
.aida-card:hover { box-shadow: none; transform: none; }

/* 组名：安静的一行小字，点一下可以改名 */
.aida-card-head {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  padding: 0 0 clamp(8px, 1.4vh, 14px);
}
.aida-card-name {
  max-width: 100%;
  padding: 2px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-family: var(--sans);
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.aida-card-name:hover {
  background: rgba(255, 255, 255, .7);
  border-color: var(--line-strong);
  color: var(--teal-deep);
}
.aida-card-name:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* 图片：直接贴在宣纸底上，只有一层极淡的落影 */
.aida-card-media {
  flex: 0 0 auto;   /* 媒体区高度=图片高度，消除上下空洞 */
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.aida-card-media .board-shot {
  flex: 0 1 auto;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  background: transparent;
  box-shadow: 0 10px 26px rgba(23, 60, 64, .12), 0 2px 6px rgba(23, 60, 64, .08);
  transition: box-shadow .3s ease, transform .3s ease;
}
.aida-card-media .board-shot:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(23, 60, 64, .2); }
.aida-card-media .board-shot img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.board-shot.is-empty {
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(147, 181, 172, .45);
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 2px;
}

/* 图片下方的钩子文案：小字、最多两行、超出省略 */
.board-copy {
  flex: none;
  margin: clamp(8px, 1.4vh, 14px) 2px 0;
  min-height: 2.9em;
  font-family: var(--serif);
  font-size: clamp(12.5px, 1.05vw, 15px);
  line-height: 1.5;
  letter-spacing: .5px;
  color: var(--text);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-copy.is-empty { color: var(--muted-2); font-size: 12px; }

/* AI评分：文案下一行极简文字链 */
.ai-score-link {
  flex: none;
  align-self: center;
  margin-top: clamp(6px, 1vh, 10px);
  padding: 4px 2px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--teal);
  border-bottom: 1px solid rgba(27, 106, 109, .4);
  transition: color .2s ease, border-color .2s ease;
}
.ai-score-link:hover { color: var(--accent); border-color: var(--accent); }

/* 智能体头像：靠右下角，尺寸放大到看得清脸又不压住展板 */
.agent-fab {
  width: clamp(96px, 5.8vw, 124px);
  height: clamp(96px, 5.8vw, 124px);
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  opacity: .96;
}
.agent-fab:hover { opacity: 1; }

/* 上传页：小组名输入框 */
.group-name-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  font-size: 13.5px;
  letter-spacing: .5px;
}
.group-name-input::placeholder { color: var(--muted-2); }
.group-name-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27, 106, 109, .12); }

@media (max-width: 900px) {
  .board-grid { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; }
  .aida-card-media { flex: 0 0 auto; height: clamp(220px, 42vw, 340px); }
}
@media (max-width: 620px) {
  .board-grid { grid-template-columns: minmax(0, 1fr); }
  .board-hint { display: none; }
}
