body {
  background: #0d1117;
  font-family: sans-serif;
  margin: 0;
  color: white;
}

h1 {
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  color: white;
  background: #111;
  height: 200px;
}

.stage-preview {
  width: 100%;
  height: 100%;
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.card-info h3 {
  margin: 0;
  font-size: 1.2em;
}

.card-info p {
  margin: 4px 0 0;
  font-size: 0.85em;
  opacity: 0.8;
}

/* 预览容器负责裁剪；iframe 铺满且不可交互 */
.stage-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;              /* 裁剪多余区域 */
  border-radius: inherit;        /* 与卡片圆角一致 */
}

.stage-preview iframe {
  position: absolute;
  inset: 0;
  display: block;                /* 清掉 inline iframe 的缝隙 */
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;          /* 预览不可点击，点击落到 <a> */
  background: transparent;
  border-radius: inherit;
}

/* 保持你喜欢的文字浮显效果 */
.card-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  box-sizing: border-box;
}

