/* 客户端截图展示（产品页 / 首页 / 下载页） */

.app-showcase {
  margin-bottom: var(--section-gap);
}

.app-showcase__head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(3.5rem, 7vw, 5rem);
}

.app-showcase__grid {
  display: flex;
  flex-direction: column;
  gap: clamp(4.5rem, 9vw, 7rem);
}

.app-shot-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.app-shot-row--reverse {
  grid-template-columns: 1.15fr 1fr;
}

.app-shot-row--reverse .app-shot-copy {
  order: 2;
}

.app-shot-row--reverse .app-shot-frame {
  order: 1;
}

.app-shot-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.app-shot-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  max-width: 28em;
}

.app-shot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.app-shot-tag {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent);
  background: rgba(94, 179, 255, 0.1);
  border: 1px solid rgba(94, 179, 255, 0.2);
}

.app-shot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 0.65rem;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.app-shot-frame::before {
  content: "";
  position: absolute;
  top: 0.65rem;
  left: 1.25rem;
  right: 1.25rem;
  height: 28px;
  border-radius: 8px 8px 0 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.app-shot-frame::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(94, 179, 255, 0.25),
    transparent 40%,
    rgba(201, 169, 98, 0.15)
  );
  pointer-events: none;
  z-index: 0;
  mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  mask-composite: exclude;
  padding: 1px;
}

.app-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 4px);
  position: relative;
  z-index: 2;
}

.app-shot-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-bottom: var(--section-gap);
}

.app-shot-gallery__hero {
  grid-column: span 7;
}

.app-shot-gallery__side {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-shot-gallery__side .app-shot-frame {
  flex: 1;
}

.app-shot-gallery .app-shot-frame--compact::before {
  display: none;
}

.app-shot-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.app-shot-tab {
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.app-shot-tab:hover {
  color: var(--text);
  border-color: rgba(94, 179, 255, 0.3);
}

.app-shot-tab.is-active {
  color: var(--text);
  background: rgba(94, 179, 255, 0.15);
  border-color: rgba(94, 179, 255, 0.4);
}

.app-shot-preview {
  position: relative;
  min-height: 280px;
}

.app-shot-preview .app-shot-frame {
  display: none;
  margin: 0 auto;
  max-width: 960px;
}

.app-shot-preview .app-shot-frame.is-active {
  display: block;
  max-width: min(1040px, 100%);
  animation: shotFadeIn 0.45s ease;
}

@keyframes shotFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.download-showcase,
.order-page-shot {
  margin-bottom: 2.5rem;
}

.order-page-shot::before {
  display: none;
}

.download-showcase .app-shot-frame {
  max-width: 920px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .app-shot-row,
  .app-shot-row--reverse {
    grid-template-columns: 1fr;
  }

  .app-shot-row--reverse .app-shot-copy,
  .app-shot-row--reverse .app-shot-frame {
    order: unset;
  }

  .app-shot-gallery {
    grid-template-columns: 1fr;
  }

  .app-shot-gallery__hero,
  .app-shot-gallery__side {
    grid-column: span 1;
  }
}

/* 带截图缩略图的特色卡片（首页） */
.feature-card--shot {
  padding: 0;
  overflow: hidden;
}

.feature-card--shot h3,
.feature-card--shot p,
.feature-card--shot a {
  margin-left: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-right: clamp(1.25rem, 2.5vw, 1.75rem);
}

.feature-card--shot h3 {
  margin-top: 1.15rem;
}

.feature-card--shot a {
  margin-bottom: 1.35rem;
}

.feature-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #0a0e14;
}

.feature-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.feature-card__thumb img[data-tone="light"],
.app-shot-frame img[data-tone="light"] {
  filter: brightness(0.86) contrast(1.03) saturate(0.92);
}

.feature-card--shot:hover .feature-card__thumb img {
  transform: scale(1.03);
}

/* 登录页左侧：真实登录界面为背景 */
.auth-showcase-pane--shot {
  position: relative;
  background: #0d1118 url("/assets/screenshots/login-dark.png") center / cover no-repeat;
}

.auth-showcase-pane--shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(5, 7, 10, 0.88) 0%,
    rgba(5, 7, 10, 0.55) 50%,
    rgba(5, 7, 10, 0.75) 100%
  );
  pointer-events: none;
}

.auth-showcase-pane--shot > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .app-shot-preview .app-shot-frame.is-active {
    animation: none;
  }

  .feature-card--shot:hover .feature-card__thumb img {
    transform: none;
  }
}
