/* AI 图生图 自定义样式 */

body {
  background: #f5f7fa;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* ========== 全屏生成遮罩 ========== */
.gen-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  /* 阻止所有鼠标事件冒泡到下面 */
  cursor: wait;
}
.gen-overlay.is-active {
  display: flex !important;
}
.gen-overlay-inner {
  text-align: center;
  pointer-events: auto;
}
/* 遮罩打开时，下层所有点击都吃掉 */
.gen-overlay.is-active ~ * {
  pointer-events: none !important;
}

.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}
.hero h1,
.hero p {
  color: white;
}

.preset-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.preset-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.preset-card img {
  height: 200px;
  object-fit: cover;
  background: #f0f0f0;
}

.card-img-top {
  background: linear-gradient(45deg, #eee, #fafafa);
}

table img {
  border-radius: 4px;
}

/* 表格行高紧凑 */
.table-sm td,
.table-sm th {
  padding: 0.5rem;
}
