/* ===== AI籽型展示页 样式 ===== */

/* Banner */
.sg-banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
  overflow: hidden;
}
.sg-banner-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(0,255,136,0.06), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(0,200,255,0.04), transparent 50%),
    var(--bg);
  z-index: 0;
}
.sg-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 0;
}
.sg-banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.sg-banner h1 {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.sg-banner .sub {
  font-size: clamp(14px, 3.5vw, 18px);
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.sg-banner .green-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
}
.sg-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  z-index: 1;
  animation: sg-bounce 2s ease-in-out infinite;
}
@keyframes sg-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===== Gallery Grid ===== */
.sg-gallery {
  padding: 40px 16px 60px;
  max-width: 960px;
  margin: 0 auto;
}
.sg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 680px) {
  .sg-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

/* ===== Seed Card ===== */
.sg-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.sg-card.sg-visible {
  opacity: 1;
  transform: translateY(0);
}
.sg-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(0,255,136,0.15), transparent);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.sg-card:hover {
  border-color: rgba(0,255,136,0.2);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), 0 0 20px rgba(0,255,136,0.05);
  transform: translateY(-4px);
}
.sg-card:hover::before {
  opacity: 1;
}

/* Card Image Area */
.sg-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, rgba(0,255,136,0.03), transparent 70%),
    #06080F;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sg-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}
.sg-img-slide {
  position: absolute;
  max-width: 75%;
  max-height: 75%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 1s ease, transform 1s ease;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.5));
  pointer-events: none;
}
.sg-img-slide.sg-active {
  opacity: 1;
  transform: scale(1);
}

/* Scan line effect on image */
.sg-card-img::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,255,136,0.3), transparent);
  top: 0;
  opacity: 0;
  z-index: 2;
}
.sg-card.sg-visible .sg-card-img::after {
  animation: sg-scan 4s ease-in-out infinite;
}
@keyframes sg-scan {
  0% { top: 10%; opacity: 0; }
  10% { opacity: 0.6; }
  50% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { top: 90%; opacity: 0; }
}

/* Card Info */
.sg-card-info {
  padding: 20px 20px 24px;
  text-align: center;
}
.sg-card-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.sg-card-gen {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0,255,136,0.08);
  color: var(--accent);
  border: 1px solid rgba(0,255,136,0.15);
  margin-bottom: 10px;
}
.sg-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Corner brackets */
.sg-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0,255,136,0.2);
  z-index: 1;
}
.sg-corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.sg-corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.sg-corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.sg-corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

/* ===== CTA Section ===== */
.sg-cta {
  padding: 60px 20px 80px;
  text-align: center;
  background: var(--bg2);
  border-top: 1px solid var(--rule);
}
.sg-cta-title {
  font-size: clamp(18px, 4vw, 24px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}
.sg-cta-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 28px;
}
.sg-cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.sg-cta-btn:hover {
  background: rgba(0,255,136,0.08);
  box-shadow: 0 0 20px rgba(0,255,136,0.1);
}

/* ===== Image index dots ===== */
.sg-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.sg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.3s ease;
}
.sg-dot.sg-active {
  background: var(--accent);
}

/* ===== AI badge on cards ===== */
.sg-ai-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(0,255,136,0.06);
  border: 1px solid rgba(0,255,136,0.12);
  border-radius: 4px;
  font-size: 10px;
  color: var(--accent);
  z-index: 2;
}
.sg-ai-badge svg {
  width: 10px;
  height: 10px;
}
