/* AI Photo Editor — 1:1 Replicate bitStudio.ai/ai-photo-editor Above-the-fold layout (right angle / zinc dark / 16:9 预览) */
/* hero title缩小到一行显示 */
.hero h1 { font-size: clamp(30px, 4vw, 44px); max-width: 960px; }
/* hero 下优势胶囊间距加大 */
.model-row { gap: 14px; }

.he-sec { padding: 40px 0 64px; }
.he-wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.he-h1 { font-size: 36px; font-weight: 500; letter-spacing: .02em; color: #fff; margin-bottom: 36px; }

.he-grid { display: grid; grid-template-columns: 1.2fr minmax(320px, 420px); gap: 24px; align-items: start; }
.he-left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
/* 预览图随page面正常滚动 (notUse sticky,避免滑过时盖住下方文字) */
.he-sticky { position: relative; }

/* 16:9 预览大图 (黑底 + 细白边,图片 contain) */
.he-preview {
  position: relative; aspect-ratio: 16 / 9; width: 100%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.15);
}
.he-preview img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s; }
.he-preview img.busy { opacity: .35; }
.he-callout {
  position: absolute; left: 28px; bottom: 28px; max-width: 46%;
  padding: 12px 16px; background: rgba(0,0,0,.88);
  border: 2px solid #fff; color: #fff; font-size: 15px; line-height: 1.5; font-weight: 500;
}

/* 预览下方三段文案 (长度对齐 bitStudio 原文) */
.he-copy { display: flex; flex-direction: column; gap: 24px; }
.he-p1 { font-size: 18px; line-height: 1.7; color: rgba(255,255,255,.9); }
.he-p2 { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,.8); }
.he-a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.he-a:hover { color: var(--brand); }

/* ===== Right-side control panel (zinc-900/85 + white/10 frame, all right angles) ===== */
.he-panel {
  display: flex; flex-direction: column; gap: 24px;
  border: 1px solid rgba(255,255,255,.1); background: rgba(24,24,27,.85); padding: 24px;
}
.he-slots { display: grid; grid-template-columns: 1fr; gap: 20px; }
.he-slot { display: flex; flex-direction: column; gap: 10px; }
.he-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.7); }
.he-label span { color: rgba(255,255,255,.4); font-size: 10.5px; margin-left: 4px; }
.he-max { font-style: normal; text-transform: none; letter-spacing: normal; color: rgba(255,255,255,.4); font-size: 10.5px; margin-left: 8px; }

.he-box {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  display: flex; align-items: center; justify-content: center; padding: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.55; font-family: inherit;
  cursor: pointer; overflow: hidden; transition: border-color .15s;
}
.he-box:hover { border-color: rgba(255,255,255,.45); }
.he-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.he-box img[hidden] { display: none; }
.he-box.filled { padding: 0; }
.he-box-hint { display: block; }
.he-box.filled .he-box-hint { display: none; }
.he-check {
  display: none; position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; border-radius: 50%; background: #22c55e; color: #fff;
  font-style: normal; font-size: 13px; font-weight: 800; line-height: 22px; text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.he-box.filled .he-check { display: block; }

.he-upload {
  width: 100%; height: 38px; background: transparent;
  border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.9);
  font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; transition: .15s;
}
.he-upload:hover { background: rgba(255,255,255,.08); }

/* 多图:Selected缩略图 + Results切换条 */
.he-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.he-thumb { position: relative; width: 56px; height: 56px; border: 1px solid rgba(255,255,255,.2); }
.he-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-thumb-x {
  position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0;
  border-radius: 50%; background: rgba(0,0,0,.9); border: 1px solid rgba(255,255,255,.4);
  color: #fff; font-size: 12px; line-height: 16px; text-align: center; cursor: pointer;
}
.he-thumb-x:hover { background: rgba(239,68,68,.9); }
.he-results { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.he-res { width: 64px; height: 64px; padding: 0; overflow: hidden; cursor: pointer; background: none; border: 1px solid rgba(255,255,255,.18); }
.he-res img { width: 100%; height: 100%; object-fit: cover; display: block; }
.he-res.on { border-color: rgba(255,255,255,.9); }
.he-cost { font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,.45); margin: 0; }

.he-prompt {
  width: 100%; min-height: 88px; resize: vertical; outline: none;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  color: #fff; padding: 10px 12px; font-family: inherit; font-size: 14px; line-height: 1.6;
}
.he-prompt::placeholder { color: rgba(255,255,255,.35); }
.he-prompt:focus { border-color: rgba(255,255,255,.45); }

.he-quality { display: flex; gap: 8px; }
.he-q {
  flex: 1; display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 10px 12px; background: transparent; border: 1px solid rgba(255,255,255,.15);
  font-family: inherit; cursor: pointer; transition: border-color .15s;
}
.he-q b { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.9); }
.he-q span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.5); }
.he-q span.free { color: rgba(74,222,128,.85); }
.he-q:hover { border-color: rgba(255,255,255,.45); }
.he-q.on { border-color: rgba(255,255,255,.85); }

.he-generate {
  width: 100%; height: 44px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.15); color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 500; letter-spacing: .15em; font-family: inherit;
  cursor: pointer; transition: .15s;
}
.he-generate:hover:not(:disabled) { background: rgba(255,255,255,.12); }
.he-generate:disabled { opacity: .4; cursor: not-allowed; }

.he-quota { font-size: 12.5px; color: rgba(255,255,255,.5); text-align: center; }

/* ===== Responsiveness<1024px Single Column: Rendering → Upload Panel → Text) ===== */
@media (max-width: 1023px) {
  .he-grid { grid-template-columns: 1fr; gap: 12px; }
  .he-left { display: contents; }
  .he-sticky { position: static; order: 1; }
  .he-panel { order: 2; }
  .he-copy { order: 3; margin-top: 20px; }
  .he-h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .he-h1 { font-size: 26px; }
  .he-callout { left: 14px; bottom: 14px; font-size: 13px; padding: 8px 12px; }
}
