/* 基础容器布局 */
#scene-gallery {
    margin: 20px 0;
}
/* 每个画布项的包装 */
.scene-item {
    flex: 0 0 calc((100% - 20px) / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 画布样式 */
.scene-item canvas {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    display: block;
}
/* 下载按钮 */
.scene-download-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.scene-download-btn:hover {
    background-color: #45a049;
    color: white;            /* 保持文字白色不变 */
    text-decoration: none;   /* 确保不出现下划线 */
}


/* 手机端只显示 Download */
@media (max-width: 768px) {
  .download-scene-text {
    display: none;
  }
}

/* 加载提示 */
.scene-loading {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #666;
}
.scene-loading::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 2px solid #ccc;
  border-top-color: #4f8cff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 移动端合成图大小优化：两张图占满宽度 */
@media (max-width: 768px) {
  .scene-item {
    flex: 0 0 calc((100% - 10px) / 2); /* 两个item，gap 10px */
    max-width: calc((100% - 10px) / 2);
  }
  .scene-download-btn {
    font-size: 13px;
    padding: 6px 10px;
  }
  .download-scene-text {
    display: none; /* 移动端隐藏“Scene”字样 */
  }
}